PortableInfobox/tests/phpunit/PortableInfoboxRenderServiceTest.php

1914 lines
60 KiB
PHP
Raw Normal View History

<?php
2018-08-08 09:42:22 +00:00
/**
* @group PortableInfobox
2018-08-13 14:31:50 +00:00
* @covers PortableInfoboxRenderService
2022-03-11 20:35:51 +00:00
* @coversDefaultClass PortableInfoboxRenderService
2018-08-08 09:42:22 +00:00
*/
2021-12-15 22:01:13 +00:00
class PortableInfoboxRenderServiceTest extends MediaWikiIntegrationTestCase {
2015-07-13 08:56:19 +00:00
/**
* @param $html
* @return string
2015-07-22 13:28:39 +00:00
*/
2015-07-13 08:56:19 +00:00
private function normalizeHTML( $html ) {
if ( empty( $html ) ) {
return '';
}
$DOM = new DOMDocument( '1.0' );
2015-07-10 14:57:57 +00:00
$DOM->formatOutput = true;
$DOM->preserveWhiteSpace = false;
2015-07-13 08:56:19 +00:00
$DOM->loadXML( $html );
2015-05-04 14:16:35 +00:00
2015-07-10 14:57:57 +00:00
return $DOM->saveXML();
}
/**
2022-03-11 20:35:51 +00:00
* @covers ::renderInfobox
* @covers \PortableInfobox\Helpers\PortableInfoboxTemplateEngine
* @param $input
* @param $expectedOutput
* @param $description
* @param $accentColor
* @param $accentColorText
2017-03-15 18:07:51 +00:00
* @dataProvider renderInfoboxDataProvider
*/
2018-10-02 07:41:19 +00:00
public function testRenderInfobox(
$input, $expectedOutput, $description, $accentColor, $accentColorText
) {
2015-07-29 08:58:39 +00:00
$infoboxRenderService = new PortableInfoboxRenderService();
2018-08-08 09:42:22 +00:00
2018-10-02 07:41:19 +00:00
$actualOutput = $infoboxRenderService->renderInfobox(
2019-02-02 22:34:48 +00:00
$input, '', '', $accentColor, $accentColorText, '', ''
2018-10-02 07:41:19 +00:00
);
$expectedHtml = $this->normalizeHTML( $expectedOutput );
2015-07-13 08:56:19 +00:00
$actualHtml = $this->normalizeHTML( $actualOutput );
$this->assertEquals( $expectedHtml, $actualHtml, $description );
}
2018-10-02 07:41:19 +00:00
// phpcs:disable Generic.Files.LineLength
2017-03-15 18:07:51 +00:00
public function renderInfoboxDataProvider() {
2015-07-01 14:34:34 +00:00
return [
[
2018-08-16 09:25:53 +00:00
'input' => [],
'output' => '',
'description' => 'Empty data should yield no infobox markup',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
</aside>',
'description' => 'Only title',
'accentColor' => '',
'accentColorText' => ''
],
2016-12-28 12:36:57 +00:00
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-28 12:36:57 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title" style="background-color:#FFF;color:#000;">Test Title</h2>
</aside>',
2016-12-28 12:36:57 +00:00
'description' => 'Only title with custom colors',
'accentColor' => '#FFF',
'accentColorText' => '#000'
],
[
'input' => [
[
'type' => 'media',
'data' => [
[
'alt' => 'image alt',
'url' => 'http://image.jpg',
2018-08-22 14:22:30 +00:00
'caption' => 'Lorem ipsum dolor',
'width' => '400',
'height' => '200',
'thumbnail' => 'http://thumbnail.jpg',
'thumbnail2x' => 'http://thumbnail2x.jpg',
2019-02-02 22:34:48 +00:00
'isImage' => true,
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<figure class="pi-item pi-media pi-image">
<a href="http://image.jpg" class="image image-thumbnail" title="image alt">
<img src="http://thumbnail.jpg" srcset="http://thumbnail.jpg 1x, http://thumbnail2x.jpg 2x"
class="pi-image-thumbnail" alt="image alt" width="400" height="200"/>
</a>
<figcaption class="pi-item-spacing pi-caption">Lorem ipsum dolor</figcaption>
</figure>
</aside>',
2015-07-29 08:58:39 +00:00
'description' => 'Only image',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'media',
'data' => [
[
'alt' => 'image alt',
'url' => 'http://image.jpg',
2018-08-22 14:22:30 +00:00
'caption' => 'Lorem ipsum dolor',
2019-02-02 22:34:48 +00:00
'isVideo' => true,
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<figure class="pi-item pi-media pi-video">
<a href="http://image.jpg" class="video" title="image alt">
<video src="http://image.jpg" class="pi-video-player" controls="true"
controlsList="nodownload" preload="metadata">image alt</video>
</a>
<figcaption class="pi-item-spacing pi-caption">Lorem ipsum dolor</figcaption>
</figure>
</aside>',
'description' => 'Only video',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'navigation',
'data' => [
'value' => 'navigation value',
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<nav class="pi-navigation pi-item-spacing pi-secondary-background pi-secondary-font">navigation value</nav>
</aside>',
'description' => 'navigation only',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
2015-05-04 14:30:40 +00:00
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</aside>',
'description' => 'Only pair',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'media',
'data' => [
[
'alt' => 'image alt',
2018-08-22 14:22:30 +00:00
'url' => 'http://image.jpg',
'width' => '400',
'height' => '200',
'thumbnail' => 'http://thumbnail.jpg',
'thumbnail2x' => 'http://thumbnail2x.jpg',
2019-02-02 22:34:48 +00:00
'isImage' => true,
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => 'test',
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
<figure class="pi-item pi-media pi-image">
<a href="http://image.jpg" class="image image-thumbnail" title="image alt">
<img src="http://thumbnail.jpg" srcset="http://thumbnail.jpg 1x, http://thumbnail2x.jpg 2x"
class="pi-image-thumbnail" alt="image alt" width="400" height="200"/>
</a>
</figure>
2019-02-03 16:49:06 +00:00
<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="test">
2018-10-02 07:41:19 +00:00
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</aside>',
2015-07-29 08:58:39 +00:00
'description' => 'Simple infobox with title, image and key-value pair',
'accentColor' => '',
'accentColorText' => ''
2015-07-21 11:33:24 +00:00
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'media',
2018-08-16 09:25:53 +00:00
'data' => []
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</aside>',
'description' => 'Simple infobox with title, INVALID image and key-value pair',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
'item-name' => 'testname'
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
2019-02-03 16:49:06 +00:00
<div class="pi-item pi-data pi-item-spacing pi-border-color" data-item-name="testname">
2018-10-02 07:41:19 +00:00
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</aside>',
'description' => 'Simple infobox with title, empty image and key-value pair',
'accentColor' => '',
'accentColorText' => ''
2015-05-04 14:30:40 +00:00
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
2015-05-04 14:30:40 +00:00
],
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'header',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Header',
'item-name' => null
]
2015-05-04 14:30:40 +00:00
],
[
2015-05-07 12:36:30 +00:00
'type' => 'data',
2015-05-04 14:30:40 +00:00
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
'item-name' => 'dataname'
]
2015-05-04 14:30:40 +00:00
],
[
2015-05-07 12:36:30 +00:00
'type' => 'data',
2015-05-04 14:30:40 +00:00
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => 'datasrc',
2019-02-02 22:34:48 +00:00
'item-name' => null
]
2015-05-04 14:30:40 +00:00
]
],
'layout' => 'default',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
]
2015-05-04 14:30:40 +00:00
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
<section class="pi-item pi-group pi-border-color">
<h2 class="pi-item pi-header pi-secondary-font pi-item-spacing pi-secondary-background">Test Header</h2>
2019-02-03 16:49:06 +00:00
<div class="pi-item pi-data pi-item-spacing pi-border-color" data-item-name="dataname">
2018-10-02 07:41:19 +00:00
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
2019-02-03 16:49:06 +00:00
<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="datasrc">
2018-10-02 07:41:19 +00:00
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</section>
</aside>',
'description' => 'Infobox with title, group with header and two key-value pairs',
'accentColor' => '',
'accentColorText' => ''
2015-05-04 14:30:40 +00:00
],
2016-12-28 12:36:57 +00:00
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-28 12:36:57 +00:00
]
],
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'header',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Header',
'item-name' => null
2016-12-28 12:36:57 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-28 12:36:57 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-28 12:36:57 +00:00
]
]
],
'layout' => 'default',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2016-12-28 12:36:57 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title" style="background-color:#FFF;color:#000;">Test Title</h2>
<section class="pi-item pi-group pi-border-color">
<h2 class="pi-item pi-header pi-secondary-font pi-item-spacing pi-secondary-background" style="background-color:#FFF;color:#000;">Test Header</h2>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</section>
</aside>',
'description' => 'Infobox with title, group with header and two key-value pairs, custom' .
'accent color and accent text color',
2016-12-28 12:36:57 +00:00
'accentColor' => '#FFF',
'accentColorText' => '#000'
],
2015-06-11 17:28:49 +00:00
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'header',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test header',
'item-name' => null
2015-07-29 08:58:39 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2015-06-11 17:28:49 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2015-06-11 17:28:49 +00:00
]
]
],
'layout' => 'horizontal',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2015-06-11 17:28:49 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<table class="pi-horizontal-group">
<caption class="pi-header pi-secondary-font pi-secondary-background pi-item-spacing">Test header</caption>
<thead>
<tr>
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing">test label</th>
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing">test label</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value</td>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value</td>
</tr>
</tbody>
</table>
</section>
</aside>',
'description' => 'Infobox with horizontal group',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => '',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => '',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => 'horizontal',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<table class="pi-horizontal-group pi-horizontal-group-no-labels">
<tbody>
<tr>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value</td>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value</td>
</tr>
</tbody>
</table>
</section>
</aside>',
'description' => 'Infobox with horizontal group without header and labels',
'accentColor' => '',
'accentColorText' => ''
2015-06-11 17:28:49 +00:00
],
2015-05-04 14:30:40 +00:00
[
'input' => [
[
'type' => 'navigation',
2015-05-04 14:30:40 +00:00
'data' => [
2019-02-02 22:34:48 +00:00
'value' => '<p>Links</p>',
'item-name' => null
]
2015-05-04 14:30:40 +00:00
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<nav class="pi-navigation pi-item-spacing pi-secondary-background pi-secondary-font">
<p>Links</p>
</nav>
</aside>',
'description' => 'Infobox with navigation',
2016-12-29 10:28:26 +00:00
'accentColor' => '',
'accentColorText' => ''
],
// horizontal group tests
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'test label 1',
2019-02-02 22:34:48 +00:00
'value' => 'test value 1',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-29 10:28:26 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label 2',
2019-02-02 22:34:48 +00:00
'value' => 'test value 2',
2019-02-03 16:49:06 +00:00
'source' => 'src',
'item-name' => 'name'
2016-12-29 10:28:26 +00:00
]
]
],
'layout' => 'horizontal',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2016-12-29 10:28:26 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<table class="pi-horizontal-group">
<thead>
<tr>
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing">test label 1</th>
2019-02-03 16:49:06 +00:00
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing" data-source="src" data-item-name="name">test label 2</th>
2018-10-02 07:41:19 +00:00
</tr>
</thead>
<tbody>
<tr>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value 1</td>
2019-02-03 16:49:06 +00:00
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing" data-source="src" data-item-name="name">test value 2</td>
2018-10-02 07:41:19 +00:00
</tr>
</tbody>
</table>
</section>
</aside>',
2016-12-29 10:28:26 +00:00
'description' => 'Horizontal group data without header',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'header',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'test header',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-29 10:28:26 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => '',
2019-02-02 22:34:48 +00:00
'value' => 'test value 1',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-29 10:28:26 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label 2',
2019-02-02 22:34:48 +00:00
'value' => 'test value 2',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-29 10:28:26 +00:00
]
]
],
'layout' => 'horizontal',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2016-12-29 10:28:26 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<table class="pi-horizontal-group">
<caption class="pi-header pi-secondary-font pi-secondary-background pi-item-spacing">test header</caption>
<thead>
<tr>
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing"/>
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing">test label 2</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value 1</td>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value 2</td>
</tr>
</tbody>
</table>
</section>
</aside>',
2016-12-29 10:28:26 +00:00
'description' => 'Horizontal group data with empty label',
'accentColor' => '',
'accentColorText' => ''
2016-12-29 10:28:26 +00:00
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => '',
2019-02-02 22:34:48 +00:00
'value' => 'test value 1',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-29 10:28:26 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => '',
2019-02-02 22:34:48 +00:00
'value' => 'test value 2',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2016-12-29 10:28:26 +00:00
]
]
],
'layout' => 'horizontal',
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2016-12-29 10:28:26 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<table class="pi-horizontal-group pi-horizontal-group-no-labels">
<tbody>
<tr>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value 1</td>
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">test value 2</td>
</tr>
</tbody>
</table>
</section>
</aside>',
2016-12-29 10:28:26 +00:00
'description' => 'Horizontal group data with empty label',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 4',
'value' => 'test value 4',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 5',
'value' => 'test value 5',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 1</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 2</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 3</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 2</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 3</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 4</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 5</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 4</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 5</div>
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 5 elements with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
'item-name' => 'test2'
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => 'test3',
'item-name' => 'test3'
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 4',
'value' => 'test value 4',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => 'test4',
'item-name' => 'test4'
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 1</h3>
2019-02-03 16:49:06 +00:00
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%" data-item-name="test2">Test 2</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%" data-source="test3" data-item-name="test3">Test 3</h3>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 1</div>
2019-02-03 16:49:06 +00:00
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%" data-item-name="test2">test value 2</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%" data-source="test3" data-item-name="test3">test value 3</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
2019-02-03 16:49:06 +00:00
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%" data-source="test4" data-item-name="test4">Test 4</h3>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-smart-group-body">
2019-02-03 16:49:06 +00:00
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%" data-source="test4" data-item-name="test4">test value 4</div>
2018-10-02 07:41:19 +00:00
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 4 elements with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 1</h3>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 1</div>
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of a single element with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 2,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 66.666666666667%">Test 1</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 2</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 66.666666666667%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 2</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 2 + 1 with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 2,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 7,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 66.666666666667%">Test 1</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 2</h3>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 66.666666666667%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 2</div>
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 2 + 1 with row size 7',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 2,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 2,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 2,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 1</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 1</div>
</section>
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 2</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 2</div>
</section>
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 3</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 3</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 2 + 2 + 2 with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => null,
2019-02-02 22:34:48 +00:00
'layout' => 'default',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 4',
'value' => 'test value 4',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 5',
'value' => 'test value 5',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 6',
'value' => 'test value 6',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 1</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 2</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 2</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">Test 3</h3>
<div class="pi-data-value pi-font">test value 3</div>
</div>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 4</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 5</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 6</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 4</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 5</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 6</div>
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 1 + 1 + default + 1 + 1 + 1 with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 4',
'value' => 'test value 4',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 5',
'value' => 'test value 5',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 6',
'value' => 'test value 6',
'span' => null,
2019-02-02 22:34:48 +00:00
'layout' => 'default',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 1</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 2</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 33.333333333333%">Test 3</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 2</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 33.333333333333%">test value 3</div>
</section>
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 4</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 5</h3>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 4</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 5</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">Test 6</h3>
<div class="pi-data-value pi-font">test value 6</div>
</div>
</section>
</aside>',
'description' => 'Flex wrapped group of 1 + 1 + 1 + 1 + 1 + default with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 40,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 1</h3>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 1</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 2</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 3</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 2</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 3</div>
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 40 + 1 + 1 with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 40,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 1</h3>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 1</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 2</h3>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 2</div>
</section>
</section>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 3</h3>
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 3</div>
</section>
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 1 + 40 + 1 with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => 'Test 1',
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 2',
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'title value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 3',
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 1</h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 2</h3>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 2</div>
2018-10-02 07:41:19 +00:00
</section>
</section>
<h2 class="pi-item pi-item-spacing pi-title">title value</h2>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 100%">Test 3</h3>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 100%">test value 3</div>
2017-01-12 13:11:46 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
</section>
</aside>',
'description' => 'Flex wrapped group of 1 + 1 + title + 1 with row size 3',
'accentColor' => '',
'accentColorText' => ''
],
2017-01-12 13:14:58 +00:00
[
'input' => [
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'data',
'data' => [
'label' => null,
'value' => 'test value 1',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2017-01-12 13:14:58 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => null,
'value' => 'test value 2',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2017-01-12 13:14:58 +00:00
]
],
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'title value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2017-01-12 13:14:58 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => null,
'value' => 'test value 3',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2017-01-12 13:14:58 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'Test 4',
'value' => 'test value 4',
'span' => 1,
2019-02-02 22:34:48 +00:00
'layout' => null,
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2017-01-12 13:14:58 +00:00
]
]
],
'layout' => null,
'collapse' => null,
2019-02-02 22:34:48 +00:00
'row-items' => 3,
'item-name' => null
2017-01-12 13:14:58 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<section class="pi-item pi-group pi-border-color">
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 1</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 2</div>
2017-01-12 13:14:58 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
<h2 class="pi-item pi-item-spacing pi-title">title value</h2>
<section class="pi-item pi-smart-group pi-border-color">
<section class="pi-smart-group-head">
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%"></h3>
<h3 class="pi-smart-data-label pi-data-label pi-secondary-font pi-item-spacing" style="width: 50%">Test 4</h3>
2018-10-02 07:41:19 +00:00
</section>
<section class="pi-smart-group-body">
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 3</div>
<div class="pi-smart-data-value pi-data-value pi-font pi-item-spacing" style="width: 50%">test value 4</div>
2017-01-12 13:14:58 +00:00
</section>
2018-10-02 07:41:19 +00:00
</section>
</section>
</aside>',
2017-01-12 13:15:48 +00:00
'description' => 'Flex wrapped group of 1 (no label) + 1 (no label) + title + 1 (no label) + 1 with row size 3',
2017-01-12 13:14:58 +00:00
'accentColor' => '',
'accentColorText' => ''
],
2018-08-13 14:31:50 +00:00
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'media',
2018-08-13 14:31:50 +00:00
'data' => [
[
'alt' => 'image alt',
'url' => 'http://image.jpg',
2018-08-22 14:22:30 +00:00
'caption' => 'caption',
'ref' => 1,
'width' => '400',
'height' => '200',
'thumbnail' => 'http://thumbnail.jpg',
'thumbnail2x' => 'http://thumbnail2x.jpg',
'isImage' => true,
2019-02-02 22:34:48 +00:00
'isFirst' => true,
2019-02-03 16:49:06 +00:00
'source' => 'src',
'item-name' => 'img'
2018-08-13 14:31:50 +00:00
],
[
'alt' => 'image alt',
'url' => 'http://image.jpg',
2018-08-22 14:22:30 +00:00
'caption' => 'caption',
'ref' => 2,
'width' => '400',
'height' => '200',
'thumbnail' => 'http://thumbnail.jpg',
'thumbnail2x' => 'http://thumbnail2x.jpg',
2019-02-02 22:34:48 +00:00
'isImage' => true,
2019-02-03 16:49:06 +00:00
'source' => 'src',
'item-name' => 'img'
2018-08-13 14:31:50 +00:00
]
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
2019-02-03 16:49:06 +00:00
<div class="pi-media-collection" data-source="src" data-item-name="img">
2018-10-02 07:41:19 +00:00
<ul class="pi-media-collection-tabs">
<li class="pi-tab-link pi-item-spacing current" data-pi-tab="pi-tab-1">caption</li>
<li class="pi-tab-link pi-item-spacing" data-pi-tab="pi-tab-2">caption</li>
</ul>
<div class="pi-media-collection-tab-content current" id="pi-tab-1">
2019-02-03 16:49:06 +00:00
<figure class="pi-item pi-media pi-image" data-source="src" data-item-name="img">
2018-10-02 07:41:19 +00:00
<a href="http://image.jpg" class="image image-thumbnail" title="image alt">
<img src="http://thumbnail.jpg" srcset="http://thumbnail.jpg 1x, http://thumbnail2x.jpg 2x"
class="pi-image-thumbnail" alt="image alt" width="400" height="200"/>
</a>
</figure>
</div>
<div class="pi-media-collection-tab-content" id="pi-tab-2">
2019-02-03 16:49:06 +00:00
<figure class="pi-item pi-media pi-image" data-source="src" data-item-name="img">
2018-10-02 07:41:19 +00:00
<a href="http://image.jpg" class="image image-thumbnail" title="image alt">
<img src="http://thumbnail.jpg" srcset="http://thumbnail.jpg 1x, http://thumbnail2x.jpg 2x"
class="pi-image-thumbnail" alt="image alt" width="400" height="200"/>
</a>
</figure>
</div>
</div>
</aside>',
2018-08-13 14:31:50 +00:00
'description' => 'Simple infobox with title and image collection',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'header',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Header',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
]
],
'layout' => 'default',
'collapse' => 'open',
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2018-08-13 14:31:50 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
<section class="pi-item pi-group pi-border-color pi-collapse pi-collapse-open">
<h2 class="pi-item pi-header pi-secondary-font pi-item-spacing pi-secondary-background">Test Header</h2>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</section>
</aside>',
2018-08-13 14:31:50 +00:00
'description' => 'Infobox with title, collapsible group with header and two key-value pairs',
'accentColor' => '',
'accentColorText' => ''
],
[
'input' => [
[
'type' => 'title',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Title',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'group',
'data' => [
'value' => [
[
'type' => 'header',
'data' => [
2019-02-02 22:34:48 +00:00
'value' => 'Test Header',
2019-02-03 16:49:06 +00:00
'item-name' => 'header'
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
],
[
'type' => 'data',
'data' => [
'label' => 'test label',
2019-02-02 22:34:48 +00:00
'value' => 'test value',
2019-02-03 16:49:06 +00:00
'source' => null,
2019-02-02 22:34:48 +00:00
'item-name' => null
2018-08-13 14:31:50 +00:00
]
]
],
'layout' => 'default',
'collapse' => 'closed',
2019-02-02 22:34:48 +00:00
'row-items' => null,
'item-name' => null
2018-08-13 14:31:50 +00:00
]
]
],
2024-11-25 21:39:55 +00:00
'output' => '<aside class="portable-infobox noexcerpt searchaux pi-background">
2018-10-02 07:41:19 +00:00
<h2 class="pi-item pi-item-spacing pi-title">Test Title</h2>
<section class="pi-item pi-group pi-border-color pi-collapse pi-collapse-closed">
2019-02-03 16:49:06 +00:00
<h2 class="pi-item pi-header pi-secondary-font pi-item-spacing pi-secondary-background" data-item-name="header">Test Header</h2>
2018-10-02 07:41:19 +00:00
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
<div class="pi-item pi-data pi-item-spacing pi-border-color">
<h3 class="pi-data-label pi-secondary-font">test label</h3>
<div class="pi-data-value pi-font">test value</div>
</div>
</section>
</aside>',
2018-08-13 14:31:50 +00:00
'description' => 'Infobox with title, collapsed group with header and two key-value pairs',
'accentColor' => '',
'accentColorText' => ''
]
];
}
2018-10-02 07:41:19 +00:00
// phpcs:enable
}