@3t-transform/threeteeui 0.1.36 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/domsanitiser.options-277161b9.js +1667 -0
- package/dist/cjs/{index-457ca775.js → index-76f14107.js} +2 -88
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/tttx-button.cjs.entry.js +25 -25
- package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
- package/dist/cjs/tttx-form.cjs.entry.js +457 -373
- package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
- package/dist/cjs/tttx-list.cjs.entry.js +32 -1694
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
- package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
- package/dist/cjs/tttx.cjs.js +2 -6
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +4 -4
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +98 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +477 -393
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +274 -218
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/components/domsanitiser.options.js +1664 -0
- package/dist/components/index.d.ts +0 -9
- package/dist/components/index.js +1 -1
- package/dist/components/tttx-button.js +49 -49
- package/dist/components/tttx-filter.js +191 -191
- package/dist/components/tttx-form.js +475 -391
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +54 -1716
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-sorter.js +130 -130
- package/dist/components/tttx-standalone-input.js +130 -130
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/domsanitiser.options-cc420431.js +1664 -0
- package/dist/esm/{index-d784fb3e.js → index-9cde46a5.js} +3 -88
- package/dist/esm/loader.js +2 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +25 -25
- package/dist/esm/tttx-filter.entry.js +159 -159
- package/dist/esm/tttx-form.entry.js +457 -373
- package/dist/esm/tttx-icon.entry.js +11 -11
- package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
- package/dist/esm/tttx-list.entry.js +32 -1694
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-sorter.entry.js +102 -102
- package/dist/esm/tttx-standalone-input.entry.js +79 -79
- package/dist/esm/tttx-toolbar.entry.js +10 -10
- package/dist/esm/tttx.js +2 -3
- package/dist/tttx/{p-400868f1.entry.js → p-3b1be372.entry.js} +1 -1
- package/dist/tttx/{p-563605b2.entry.js → p-561224f5.entry.js} +1 -1
- package/dist/tttx/{p-b720c4ad.entry.js → p-9f1e9cc1.entry.js} +1 -1
- package/dist/tttx/{p-798a098a.entry.js → p-aef96333.entry.js} +1 -1
- package/dist/tttx/p-b4290a5b.js +3 -0
- package/dist/tttx/p-bd1edaed.entry.js +1 -0
- package/dist/tttx/p-d0ff9ad0.entry.js +1 -0
- package/dist/tttx/{p-cac26a1b.entry.js → p-d2f1aa8e.entry.js} +1 -1
- package/dist/tttx/p-db059a69.js +2 -0
- package/dist/tttx/p-dc2a37b0.entry.js +1 -0
- package/dist/tttx/{p-ab6ce9f6.entry.js → p-e53c7f9d.entry.js} +1 -1
- package/dist/tttx/{p-92cade7f.entry.js → p-f885f17a.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -111
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -13
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +1 -1
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/stencil-public-runtime.d.ts +3 -59
- package/loader/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/tttx/p-0ebffdfc.js +0 -2
- package/dist/tttx/p-72e7f7dd.entry.js +0 -3
- package/dist/tttx/p-c4162029.entry.js +0 -1
- package/dist/tttx/p-eb126fd0.entry.js +0 -1
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import { h } from '@stencil/core';
|
|
3
|
-
import * as DOMPurify from 'dompurify';
|
|
4
|
-
import domSanitiserOptions from '../../../shared/domsanitiser.options';
|
|
5
|
-
export class TttxList {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.data = undefined;
|
|
8
|
-
this.name = undefined;
|
|
9
|
-
}
|
|
10
|
-
onRowClickHandler(item) {
|
|
11
|
-
if (!item.clickable || !item.rowData)
|
|
12
|
-
return;
|
|
13
|
-
this.rowClick.emit({ name: this.name, data: item.rowData });
|
|
14
|
-
}
|
|
15
|
-
renderListItem(item) {
|
|
16
|
-
const cleanHTML = DOMPurify.sanitize(item.element, domSanitiserOptions);
|
|
17
|
-
return (h("li", { class: `item ${item.clickable ? 'clickable' : ''}`, onClick: () => {
|
|
18
|
-
this.onRowClickHandler(item);
|
|
19
|
-
} }, item.element && h("span", { class: "item-content", innerHTML: cleanHTML }), item.icon && h("tttx-icon", { class: "align-right ", icon: item.icon })));
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
if (!this.data)
|
|
23
|
-
return;
|
|
24
|
-
if (typeof this.data === 'string') {
|
|
25
|
-
this._data = JSON.parse(this.data);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this._data = this.data;
|
|
29
|
-
}
|
|
30
|
-
return h("ul", { class: "list" }, this._data.map((item) => this.renderListItem(item)));
|
|
31
|
-
}
|
|
32
|
-
static get is() { return "tttx-list"; }
|
|
33
|
-
static get encapsulation() { return "shadow"; }
|
|
34
|
-
static get originalStyleUrls() {
|
|
35
|
-
return {
|
|
36
|
-
"$": ["tttx-list.scss"]
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
static get styleUrls() {
|
|
40
|
-
return {
|
|
41
|
-
"$": ["tttx-list.css"]
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
static get properties() {
|
|
45
|
-
return {
|
|
46
|
-
"data": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"mutable": true,
|
|
49
|
-
"complexType": {
|
|
50
|
-
"original": "string | ListItem[]",
|
|
51
|
-
"resolved": "ListItem[] | string",
|
|
52
|
-
"references": {
|
|
53
|
-
"ListItem": {
|
|
54
|
-
"location": "import",
|
|
55
|
-
"path": "./interfaces"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": false,
|
|
60
|
-
"optional": false,
|
|
61
|
-
"docs": {
|
|
62
|
-
"tags": [],
|
|
63
|
-
"text": ""
|
|
64
|
-
},
|
|
65
|
-
"attribute": "data",
|
|
66
|
-
"reflect": false
|
|
67
|
-
},
|
|
68
|
-
"name": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"mutable": false,
|
|
71
|
-
"complexType": {
|
|
72
|
-
"original": "string",
|
|
73
|
-
"resolved": "string",
|
|
74
|
-
"references": {}
|
|
75
|
-
},
|
|
76
|
-
"required": false,
|
|
77
|
-
"optional": false,
|
|
78
|
-
"docs": {
|
|
79
|
-
"tags": [],
|
|
80
|
-
"text": ""
|
|
81
|
-
},
|
|
82
|
-
"attribute": "name",
|
|
83
|
-
"reflect": false
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
static get events() {
|
|
88
|
-
return [{
|
|
89
|
-
"method": "rowClick",
|
|
90
|
-
"name": "listRowClick",
|
|
91
|
-
"bubbles": true,
|
|
92
|
-
"cancelable": true,
|
|
93
|
-
"composed": true,
|
|
94
|
-
"docs": {
|
|
95
|
-
"tags": [],
|
|
96
|
-
"text": ""
|
|
97
|
-
},
|
|
98
|
-
"complexType": {
|
|
99
|
-
"original": "any",
|
|
100
|
-
"resolved": "any",
|
|
101
|
-
"references": {}
|
|
102
|
-
}
|
|
103
|
-
}];
|
|
104
|
-
}
|
|
105
|
-
}
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
import * as DOMPurify from 'dompurify';
|
|
4
|
+
import domSanitiserOptions from '../../../shared/domsanitiser.options';
|
|
5
|
+
export class TttxList {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.data = undefined;
|
|
8
|
+
this.name = undefined;
|
|
9
|
+
}
|
|
10
|
+
onRowClickHandler(item) {
|
|
11
|
+
if (!item.clickable || !item.rowData)
|
|
12
|
+
return;
|
|
13
|
+
this.rowClick.emit({ name: this.name, data: item.rowData });
|
|
14
|
+
}
|
|
15
|
+
renderListItem(item) {
|
|
16
|
+
const cleanHTML = DOMPurify.sanitize(item.element, domSanitiserOptions);
|
|
17
|
+
return (h("li", { class: `item ${item.clickable ? 'clickable' : ''}`, onClick: () => {
|
|
18
|
+
this.onRowClickHandler(item);
|
|
19
|
+
} }, item.element && h("span", { class: "item-content", innerHTML: cleanHTML }), item.icon && h("tttx-icon", { class: "align-right ", icon: item.icon })));
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
if (!this.data)
|
|
23
|
+
return;
|
|
24
|
+
if (typeof this.data === 'string') {
|
|
25
|
+
this._data = JSON.parse(this.data);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this._data = this.data;
|
|
29
|
+
}
|
|
30
|
+
return h("ul", { class: "list" }, this._data.map((item) => this.renderListItem(item)));
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "tttx-list"; }
|
|
33
|
+
static get encapsulation() { return "shadow"; }
|
|
34
|
+
static get originalStyleUrls() {
|
|
35
|
+
return {
|
|
36
|
+
"$": ["tttx-list.scss"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static get styleUrls() {
|
|
40
|
+
return {
|
|
41
|
+
"$": ["tttx-list.css"]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static get properties() {
|
|
45
|
+
return {
|
|
46
|
+
"data": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"mutable": true,
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "string | ListItem[]",
|
|
51
|
+
"resolved": "ListItem[] | string",
|
|
52
|
+
"references": {
|
|
53
|
+
"ListItem": {
|
|
54
|
+
"location": "import",
|
|
55
|
+
"path": "./interfaces"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": false,
|
|
60
|
+
"optional": false,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"attribute": "data",
|
|
66
|
+
"reflect": false
|
|
67
|
+
},
|
|
68
|
+
"name": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "string",
|
|
73
|
+
"resolved": "string",
|
|
74
|
+
"references": {}
|
|
75
|
+
},
|
|
76
|
+
"required": false,
|
|
77
|
+
"optional": false,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": ""
|
|
81
|
+
},
|
|
82
|
+
"attribute": "name",
|
|
83
|
+
"reflect": false
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
static get events() {
|
|
88
|
+
return [{
|
|
89
|
+
"method": "rowClick",
|
|
90
|
+
"name": "listRowClick",
|
|
91
|
+
"bubbles": true,
|
|
92
|
+
"cancelable": true,
|
|
93
|
+
"composed": true,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": ""
|
|
97
|
+
},
|
|
98
|
+
"complexType": {
|
|
99
|
+
"original": "any",
|
|
100
|
+
"resolved": "any",
|
|
101
|
+
"references": {}
|
|
102
|
+
}
|
|
103
|
+
}];
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'molecules/List',
|
|
4
|
-
component: 'tttx-list',
|
|
5
|
-
parameters: {
|
|
6
|
-
actions: {
|
|
7
|
-
handles: ['listRowClick'],
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
decorators: [withActions],
|
|
11
|
-
};
|
|
1
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'molecules/List',
|
|
4
|
+
component: 'tttx-list',
|
|
5
|
+
parameters: {
|
|
6
|
+
actions: {
|
|
7
|
+
handles: ['listRowClick'],
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
decorators: [withActions],
|
|
11
|
+
};
|
|
12
12
|
const TemplateStringList = ({ data }) => `
|
|
13
13
|
<tttx-list
|
|
14
14
|
data='${JSON.stringify(data)}'
|
|
15
15
|
id='list'
|
|
16
16
|
name='stringList'
|
|
17
17
|
></tttx-list>
|
|
18
|
-
`;
|
|
19
|
-
export const BasicStringList = TemplateStringList.bind({});
|
|
20
|
-
BasicStringList.args = {
|
|
21
|
-
data: [
|
|
22
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="green" /></span> Demulon 1,000,000' },
|
|
23
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="green" /></span> Patrick' },
|
|
24
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="orange" /></span> Lee' },
|
|
25
|
-
{ element: '<span><tttx-icon icon="egg" color="red" /></span> Ben' },
|
|
26
|
-
],
|
|
27
|
-
};
|
|
18
|
+
`;
|
|
19
|
+
export const BasicStringList = TemplateStringList.bind({});
|
|
20
|
+
BasicStringList.args = {
|
|
21
|
+
data: [
|
|
22
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="green" /></span> Demulon 1,000,000' },
|
|
23
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="green" /></span> Patrick' },
|
|
24
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="orange" /></span> Lee' },
|
|
25
|
+
{ element: '<span><tttx-icon icon="egg" color="red" /></span> Ben' },
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
28
|
const TemplateObjectList = ({ data }) => `
|
|
29
29
|
<tttx-list
|
|
30
30
|
id='objectList'
|
|
@@ -36,16 +36,16 @@ const TemplateObjectList = ({ data }) => `
|
|
|
36
36
|
}
|
|
37
37
|
objectList.data = ${JSON.stringify(data)};
|
|
38
38
|
</script>
|
|
39
|
-
`;
|
|
40
|
-
export const BasicObjectList = TemplateObjectList.bind({});
|
|
41
|
-
BasicObjectList.args = {
|
|
42
|
-
data: [
|
|
43
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Demulon 1,000,000' },
|
|
44
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="red" /></span> Patrick' },
|
|
45
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="add" /></span> Lee' },
|
|
46
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Ben' },
|
|
47
|
-
],
|
|
48
|
-
};
|
|
39
|
+
`;
|
|
40
|
+
export const BasicObjectList = TemplateObjectList.bind({});
|
|
41
|
+
BasicObjectList.args = {
|
|
42
|
+
data: [
|
|
43
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Demulon 1,000,000' },
|
|
44
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="red" /></span> Patrick' },
|
|
45
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="add" /></span> Lee' },
|
|
46
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Ben' },
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
49
|
const TemplateClickableList = ({ data }) => `
|
|
50
50
|
<tttx-list
|
|
51
51
|
id='clickableList'
|
|
@@ -57,15 +57,15 @@ const TemplateClickableList = ({ data }) => `
|
|
|
57
57
|
}
|
|
58
58
|
clickableList.data = ${JSON.stringify(data)};
|
|
59
59
|
</script>
|
|
60
|
-
`;
|
|
61
|
-
export const BasicClickableList = TemplateClickableList.bind({});
|
|
62
|
-
BasicClickableList.args = {
|
|
63
|
-
data: [
|
|
64
|
-
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Demulon 1,000,000', rowData: '[{ "name": "Demulon 1,000,000" }]' },
|
|
65
|
-
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="red" /></span> Emma', rowData: [{ name: 'Emma' }] },
|
|
66
|
-
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="green" /></span> Eulogio', rowData: 'Eulogio' },
|
|
67
|
-
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="red" /></span> Patrick' },
|
|
68
|
-
{ clickable: false, icon: 'chevron_right', element: '<span><tttx-icon icon="add" /></span> Lee ' },
|
|
69
|
-
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Ben' },
|
|
70
|
-
],
|
|
71
|
-
};
|
|
60
|
+
`;
|
|
61
|
+
export const BasicClickableList = TemplateClickableList.bind({});
|
|
62
|
+
BasicClickableList.args = {
|
|
63
|
+
data: [
|
|
64
|
+
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Demulon 1,000,000', rowData: '[{ "name": "Demulon 1,000,000" }]' },
|
|
65
|
+
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="red" /></span> Emma', rowData: [{ name: 'Emma' }] },
|
|
66
|
+
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="green" /></span> Eulogio', rowData: 'Eulogio' },
|
|
67
|
+
{ clickable: true, icon: 'chevron_right', element: '<span><tttx-icon icon="egg" color="red" /></span> Patrick' },
|
|
68
|
+
{ clickable: false, icon: 'chevron_right', element: '<span><tttx-icon icon="add" /></span> Lee ' },
|
|
69
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon icon="egg" /></span> Ben' },
|
|
70
|
+
],
|
|
71
|
+
};
|