@3t-transform/threeteeui 0.1.59 → 0.1.61
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/loader.cjs.js +1 -1
- package/dist/cjs/tttx-button.cjs.entry.js +5 -3
- package/dist/cjs/tttx-form.cjs.entry.js +1 -1
- package/dist/cjs/tttx-select-box.cjs.entry.js +79 -0
- package/dist/cjs/tttx-tree-view.cjs.entry.js +92 -0
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +20 -0
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +22 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +20 -0
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.css +89 -0
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +235 -0
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +69 -0
- package/dist/collection/components/molecules/tttx-tree-view/helper/helper.js +1 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +72 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +140 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +698 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/tttx-button2.js +6 -3
- package/dist/components/tttx-form.js +1 -1
- package/dist/components/tttx-select-box.d.ts +11 -0
- package/dist/components/tttx-select-box.js +113 -0
- package/dist/components/tttx-standalone-input.js +1 -136
- package/dist/components/tttx-standalone-input2.js +138 -0
- package/dist/components/tttx-tree-view.d.ts +11 -0
- package/dist/components/tttx-tree-view.js +120 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tttx-button.entry.js +5 -3
- package/dist/esm/tttx-form.entry.js +1 -1
- package/dist/esm/tttx-select-box.entry.js +75 -0
- package/dist/esm/tttx-tree-view.entry.js +88 -0
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-2f066b53.entry.js +1 -0
- package/dist/tttx/p-3c7e11d9.entry.js +1 -0
- package/dist/tttx/{p-5a4eacd9.entry.js → p-57621fdb.entry.js} +1 -1
- package/dist/tttx/p-f94b26dc.entry.js +1 -0
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +1 -0
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-select-box/interfaces.d.ts +5 -0
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +23 -0
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.stories.d.ts +7 -0
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +1 -1
- package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +14 -0
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +14 -0
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +20 -0
- package/dist/types/components.d.ts +53 -0
- package/package.json +1 -1
- package/dist/tttx/p-28d80500.entry.js +0 -1
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'molecules/Tree View',
|
|
4
|
+
component: 'tttx-tree-view',
|
|
5
|
+
parameters: {
|
|
6
|
+
actions: {
|
|
7
|
+
handles: ['clickEvent'],
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
decorators: [withActions],
|
|
11
|
+
};
|
|
12
|
+
const TttxTreeViewStory = ({ data }) => `
|
|
13
|
+
<tttx-tree-view id="treeViewDefault"></tttx-tree-view>
|
|
14
|
+
<script>
|
|
15
|
+
if(!treeViewDefault) {
|
|
16
|
+
const treeViewDefault = document.getElementById('treeViewDefault');
|
|
17
|
+
}
|
|
18
|
+
treeViewDefault.data = ${JSON.stringify(data)};
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
`;
|
|
22
|
+
export const Default = TttxTreeViewStory.bind({});
|
|
23
|
+
Default.args = {
|
|
24
|
+
data: [
|
|
25
|
+
{
|
|
26
|
+
id: 1,
|
|
27
|
+
title: 'Role Specific Vocational Qualification',
|
|
28
|
+
isOpen: false,
|
|
29
|
+
openOrClosed: 'arrow_right',
|
|
30
|
+
hasCheckbox: true,
|
|
31
|
+
checked: false,
|
|
32
|
+
icon: 'check_circle',
|
|
33
|
+
iconColor: 'green',
|
|
34
|
+
child: [
|
|
35
|
+
{
|
|
36
|
+
id: 2,
|
|
37
|
+
title: 'Boop',
|
|
38
|
+
isOpen: false,
|
|
39
|
+
openOrClosed: 'arrow_right',
|
|
40
|
+
icon: 'check_circle',
|
|
41
|
+
iconColor: 'green',
|
|
42
|
+
menuActive: true,
|
|
43
|
+
child: [
|
|
44
|
+
{
|
|
45
|
+
id: 2,
|
|
46
|
+
hasIcon: true,
|
|
47
|
+
icon: 'help',
|
|
48
|
+
iconColor: 'gray',
|
|
49
|
+
title: 'this is a test',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 3,
|
|
55
|
+
title: 'Boop',
|
|
56
|
+
isOpen: false,
|
|
57
|
+
openOrClosed: 'arrow_right',
|
|
58
|
+
hasIcon: true,
|
|
59
|
+
icon: 'check_circle',
|
|
60
|
+
iconColor: 'green',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 3,
|
|
66
|
+
title: 'second route',
|
|
67
|
+
isOpen: false,
|
|
68
|
+
openOrClosed: 'arrow_right',
|
|
69
|
+
icon: 'help',
|
|
70
|
+
iconColor: 'gray',
|
|
71
|
+
chevronActive: true,
|
|
72
|
+
child: [
|
|
73
|
+
{
|
|
74
|
+
id: 4,
|
|
75
|
+
hasCheckbox: true,
|
|
76
|
+
hasIcon: true,
|
|
77
|
+
icon: 'help',
|
|
78
|
+
iconColor: 'gray',
|
|
79
|
+
title: 'Boop 2077',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 4,
|
|
83
|
+
hasCheckbox: true,
|
|
84
|
+
hasIcon: true,
|
|
85
|
+
icon: 'help',
|
|
86
|
+
iconColor: 'gray',
|
|
87
|
+
title: 'sjdnfkn 2077',
|
|
88
|
+
chevronActive: true,
|
|
89
|
+
menuActive: true,
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
};
|
|
95
|
+
const TttxTreeViewSimple = ({ data }) => `
|
|
96
|
+
<tttx-tree-view id="treeViewSimple"></tttx-tree-view>
|
|
97
|
+
<script>
|
|
98
|
+
if(!treeViewSimple) {
|
|
99
|
+
const treeViewSimple = document.getElementById('treeViewSimple');
|
|
100
|
+
}
|
|
101
|
+
treeViewSimple.data = ${JSON.stringify(data)};
|
|
102
|
+
</script>
|
|
103
|
+
`;
|
|
104
|
+
export const Simple = TttxTreeViewSimple.bind({});
|
|
105
|
+
Simple.args = {
|
|
106
|
+
data: [
|
|
107
|
+
{
|
|
108
|
+
id: 1,
|
|
109
|
+
title: 'Role Specific Vocational Qualification',
|
|
110
|
+
isOpen: false,
|
|
111
|
+
openOrClosed: 'arrow_right',
|
|
112
|
+
hasCheckbox: false,
|
|
113
|
+
hasIcon: false,
|
|
114
|
+
child: [
|
|
115
|
+
{
|
|
116
|
+
id: 2,
|
|
117
|
+
title: 'Boop',
|
|
118
|
+
isOpen: false,
|
|
119
|
+
openOrClosed: 'arrow_right',
|
|
120
|
+
child: [
|
|
121
|
+
{
|
|
122
|
+
id: 2,
|
|
123
|
+
hasIcon: false,
|
|
124
|
+
title: 'this is a test',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: 3,
|
|
130
|
+
title: 'Boop',
|
|
131
|
+
isOpen: false,
|
|
132
|
+
openOrClosed: 'arrow_right',
|
|
133
|
+
hasIcon: false,
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 3,
|
|
139
|
+
title: 'second route',
|
|
140
|
+
isOpen: false,
|
|
141
|
+
openOrClosed: 'arrow_right',
|
|
142
|
+
hasIcon: false,
|
|
143
|
+
hasCheckbox: false,
|
|
144
|
+
child: [
|
|
145
|
+
{
|
|
146
|
+
id: 4,
|
|
147
|
+
title: 'Boop 2077',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: 4,
|
|
151
|
+
title: 'sjdnfkn 2077',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
};
|
|
157
|
+
const TttxTreeViewRightButtons = ({ data }) => `
|
|
158
|
+
<tttx-tree-view id="treeViewRightButtons"></tttx-tree-view>
|
|
159
|
+
<script>
|
|
160
|
+
if(!treeViewRightButtons) {
|
|
161
|
+
const treeViewRightButtons = document.getElementById('treeViewRightButtons');
|
|
162
|
+
}
|
|
163
|
+
treeViewRightButtons.data = ${JSON.stringify(data)};
|
|
164
|
+
</script>
|
|
165
|
+
|
|
166
|
+
`;
|
|
167
|
+
export const RightButtons = TttxTreeViewRightButtons.bind({});
|
|
168
|
+
RightButtons.args = {
|
|
169
|
+
data: [
|
|
170
|
+
{
|
|
171
|
+
id: 1,
|
|
172
|
+
title: 'Role Specific Vocational Qualification',
|
|
173
|
+
isOpen: false,
|
|
174
|
+
openOrClosed: 'arrow_right',
|
|
175
|
+
hasCheckbox: false,
|
|
176
|
+
hasIcon: false,
|
|
177
|
+
menuActive: true,
|
|
178
|
+
chevronActive: true,
|
|
179
|
+
child: [
|
|
180
|
+
{
|
|
181
|
+
id: 2,
|
|
182
|
+
title: 'Boop',
|
|
183
|
+
isOpen: false,
|
|
184
|
+
openOrClosed: 'arrow_right',
|
|
185
|
+
hasIcon: false,
|
|
186
|
+
menuActive: true,
|
|
187
|
+
chevronActive: true,
|
|
188
|
+
child: [
|
|
189
|
+
{
|
|
190
|
+
id: 2,
|
|
191
|
+
hasIcon: false,
|
|
192
|
+
title: 'this is a test',
|
|
193
|
+
menuActive: true,
|
|
194
|
+
chevronActive: true,
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 3,
|
|
200
|
+
title: 'Boop',
|
|
201
|
+
isOpen: false,
|
|
202
|
+
openOrClosed: 'arrow_right',
|
|
203
|
+
hasIcon: false,
|
|
204
|
+
menuActive: true,
|
|
205
|
+
chevronActive: true,
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: 3,
|
|
211
|
+
title: 'second route',
|
|
212
|
+
isOpen: false,
|
|
213
|
+
openOrClosed: 'arrow_right',
|
|
214
|
+
hasIcon: false,
|
|
215
|
+
menuActive: true,
|
|
216
|
+
chevronActive: true,
|
|
217
|
+
child: [
|
|
218
|
+
{
|
|
219
|
+
id: 4,
|
|
220
|
+
hasCheckbox: false,
|
|
221
|
+
hasIcon: false,
|
|
222
|
+
title: 'Boop 2077',
|
|
223
|
+
menuActive: true,
|
|
224
|
+
chevronActive: true,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: 4,
|
|
228
|
+
hasCheckbox: false,
|
|
229
|
+
hasIcon: false,
|
|
230
|
+
title: 'sjdnfkn 2077',
|
|
231
|
+
chevronActive: true,
|
|
232
|
+
menuActive: true,
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
};
|
|
238
|
+
const TttxTreeViewMenuButton = ({ data }) => `
|
|
239
|
+
<tttx-tree-view id="treeViewMenuButton"></tttx-tree-view>
|
|
240
|
+
<script>
|
|
241
|
+
if(!treeViewMenuButton) {
|
|
242
|
+
const treeViewMenuButton = document.getElementById('treeViewMenuButton');
|
|
243
|
+
}
|
|
244
|
+
treeViewMenuButton.data = ${JSON.stringify(data)};
|
|
245
|
+
</script>
|
|
246
|
+
|
|
247
|
+
`;
|
|
248
|
+
export const MenuButton = TttxTreeViewMenuButton.bind({});
|
|
249
|
+
MenuButton.args = {
|
|
250
|
+
data: [
|
|
251
|
+
{
|
|
252
|
+
id: 1,
|
|
253
|
+
title: 'Role Specific Vocational Qualification',
|
|
254
|
+
isOpen: false,
|
|
255
|
+
openOrClosed: 'arrow_right',
|
|
256
|
+
hasCheckbox: false,
|
|
257
|
+
hasIcon: false,
|
|
258
|
+
menuActive: true,
|
|
259
|
+
child: [
|
|
260
|
+
{
|
|
261
|
+
id: 2,
|
|
262
|
+
title: 'Boop',
|
|
263
|
+
isOpen: false,
|
|
264
|
+
openOrClosed: 'arrow_right',
|
|
265
|
+
hasIcon: false,
|
|
266
|
+
menuActive: true,
|
|
267
|
+
child: [
|
|
268
|
+
{
|
|
269
|
+
id: 2,
|
|
270
|
+
hasIcon: false,
|
|
271
|
+
title: 'this is a test',
|
|
272
|
+
menuActive: true,
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
id: 3,
|
|
278
|
+
title: 'Boop',
|
|
279
|
+
isOpen: false,
|
|
280
|
+
openOrClosed: 'arrow_right',
|
|
281
|
+
hasIcon: false,
|
|
282
|
+
menuActive: true,
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: 3,
|
|
288
|
+
title: 'second route',
|
|
289
|
+
isOpen: false,
|
|
290
|
+
openOrClosed: 'arrow_right',
|
|
291
|
+
hasIcon: false,
|
|
292
|
+
menuActive: true,
|
|
293
|
+
child: [
|
|
294
|
+
{
|
|
295
|
+
id: 4,
|
|
296
|
+
hasCheckbox: false,
|
|
297
|
+
hasIcon: false,
|
|
298
|
+
title: 'Boop 2077',
|
|
299
|
+
menuActive: true,
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: 4,
|
|
303
|
+
hasCheckbox: false,
|
|
304
|
+
hasIcon: false,
|
|
305
|
+
title: 'sjdnfkn 2077',
|
|
306
|
+
menuActive: true,
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
};
|
|
312
|
+
const TttxTreeViewChevron = ({ data }) => `
|
|
313
|
+
<tttx-tree-view id="treeViewChevron"></tttx-tree-view>
|
|
314
|
+
<script>
|
|
315
|
+
if(!treeViewChevron) {
|
|
316
|
+
const treeViewChevron = document.getElementById('treeViewChevron');
|
|
317
|
+
}
|
|
318
|
+
treeViewChevron.data = ${JSON.stringify(data)};
|
|
319
|
+
</script>
|
|
320
|
+
|
|
321
|
+
`;
|
|
322
|
+
export const Chevron = TttxTreeViewChevron.bind({});
|
|
323
|
+
Chevron.args = {
|
|
324
|
+
data: [
|
|
325
|
+
{
|
|
326
|
+
id: 1,
|
|
327
|
+
title: 'Role Specific Vocational Qualification',
|
|
328
|
+
isOpen: false,
|
|
329
|
+
openOrClosed: 'arrow_right',
|
|
330
|
+
hasCheckbox: false,
|
|
331
|
+
hasIcon: false,
|
|
332
|
+
chevronActive: true,
|
|
333
|
+
child: [
|
|
334
|
+
{
|
|
335
|
+
id: 2,
|
|
336
|
+
title: 'Boop',
|
|
337
|
+
isOpen: false,
|
|
338
|
+
openOrClosed: 'arrow_right',
|
|
339
|
+
hasIcon: false,
|
|
340
|
+
chevronActive: true,
|
|
341
|
+
child: [
|
|
342
|
+
{
|
|
343
|
+
id: 2,
|
|
344
|
+
hasIcon: false,
|
|
345
|
+
title: 'this is a test',
|
|
346
|
+
chevronActive: true,
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
id: 3,
|
|
352
|
+
title: 'Boop',
|
|
353
|
+
isOpen: false,
|
|
354
|
+
openOrClosed: 'arrow_right',
|
|
355
|
+
hasIcon: false,
|
|
356
|
+
chevronActive: true,
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: 3,
|
|
362
|
+
title: 'second route',
|
|
363
|
+
isOpen: false,
|
|
364
|
+
openOrClosed: 'arrow_right',
|
|
365
|
+
hasIcon: false,
|
|
366
|
+
chevronActive: true,
|
|
367
|
+
child: [
|
|
368
|
+
{
|
|
369
|
+
id: 4,
|
|
370
|
+
hasCheckbox: false,
|
|
371
|
+
hasIcon: false,
|
|
372
|
+
title: 'Boop 2077',
|
|
373
|
+
chevronActive: true,
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
id: 4,
|
|
377
|
+
hasCheckbox: false,
|
|
378
|
+
hasIcon: false,
|
|
379
|
+
title: 'sjdnfkn 2077',
|
|
380
|
+
chevronActive: true,
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
};
|
|
386
|
+
const TttxTreeViewHTML = ({ data }) => `
|
|
387
|
+
<tttx-tree-view id="treeViewHTML"></tttx-tree-view>
|
|
388
|
+
<script>
|
|
389
|
+
if(!treeViewHTML) {
|
|
390
|
+
const treeViewHTML = document.getElementById('treeViewHTML');
|
|
391
|
+
}
|
|
392
|
+
treeViewHTML.data = ${JSON.stringify(data)};
|
|
393
|
+
</script>
|
|
394
|
+
`;
|
|
395
|
+
export const HTML = TttxTreeViewHTML.bind({});
|
|
396
|
+
HTML.args = {
|
|
397
|
+
data: [
|
|
398
|
+
{
|
|
399
|
+
id: 1,
|
|
400
|
+
title: 'Role Specific Vocational Qualification',
|
|
401
|
+
isOpen: false,
|
|
402
|
+
html: '<p>This is html </p>',
|
|
403
|
+
openOrClosed: 'arrow_right',
|
|
404
|
+
hasCheckbox: false,
|
|
405
|
+
hasIcon: false,
|
|
406
|
+
child: [
|
|
407
|
+
{
|
|
408
|
+
id: 2,
|
|
409
|
+
title: 'Boop',
|
|
410
|
+
isOpen: false,
|
|
411
|
+
html: '<p>This is html </p>',
|
|
412
|
+
openOrClosed: 'arrow_right',
|
|
413
|
+
child: [
|
|
414
|
+
{
|
|
415
|
+
id: 2,
|
|
416
|
+
hasIcon: false,
|
|
417
|
+
title: 'this is a test',
|
|
418
|
+
html: '<p>This is html </p>',
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
id: 3,
|
|
424
|
+
title: 'Boop',
|
|
425
|
+
isOpen: false,
|
|
426
|
+
openOrClosed: 'arrow_right',
|
|
427
|
+
hasIcon: false,
|
|
428
|
+
html: '<p>This is html </p>',
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
id: 3,
|
|
434
|
+
title: 'second route',
|
|
435
|
+
isOpen: false,
|
|
436
|
+
openOrClosed: 'arrow_right',
|
|
437
|
+
hasIcon: false,
|
|
438
|
+
hasCheckbox: false,
|
|
439
|
+
html: '<p>This is html </p>',
|
|
440
|
+
child: [
|
|
441
|
+
{
|
|
442
|
+
id: 4,
|
|
443
|
+
title: 'Boop 2077',
|
|
444
|
+
html: '<p>This is html </p>',
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
id: 4,
|
|
448
|
+
title: 'sjdnfkn 2077',
|
|
449
|
+
html: '<p>This is html </p>',
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
},
|
|
453
|
+
],
|
|
454
|
+
};
|
|
455
|
+
const TttxTreeViewCheckbox = ({ data }) => `
|
|
456
|
+
<tttx-tree-view id="treeViewCheckbox"></tttx-tree-view>
|
|
457
|
+
<script>
|
|
458
|
+
if(!treeViewCheckbox) {
|
|
459
|
+
const treeViewCheckbox = document.getElementById('treeViewCheckbox');
|
|
460
|
+
}
|
|
461
|
+
treeViewCheckbox.data = ${JSON.stringify(data)};
|
|
462
|
+
</script>
|
|
463
|
+
`;
|
|
464
|
+
export const Checkbox = TttxTreeViewCheckbox.bind({});
|
|
465
|
+
Checkbox.args = {
|
|
466
|
+
data: [
|
|
467
|
+
{
|
|
468
|
+
id: 1,
|
|
469
|
+
title: 'Role Specific Vocational Qualification',
|
|
470
|
+
isOpen: false,
|
|
471
|
+
openOrClosed: 'arrow_right',
|
|
472
|
+
hasCheckbox: true,
|
|
473
|
+
checked: false,
|
|
474
|
+
hasIcon: false,
|
|
475
|
+
child: [
|
|
476
|
+
{
|
|
477
|
+
id: 2,
|
|
478
|
+
title: 'Boop',
|
|
479
|
+
isOpen: false,
|
|
480
|
+
openOrClosed: 'arrow_right',
|
|
481
|
+
hasCheckbox: true,
|
|
482
|
+
checked: false,
|
|
483
|
+
child: [
|
|
484
|
+
{
|
|
485
|
+
id: 2,
|
|
486
|
+
hasIcon: false,
|
|
487
|
+
title: 'this is a test',
|
|
488
|
+
hasCheckbox: true,
|
|
489
|
+
checked: false,
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
id: 3,
|
|
495
|
+
title: 'Boop',
|
|
496
|
+
isOpen: false,
|
|
497
|
+
openOrClosed: 'arrow_right',
|
|
498
|
+
hasIcon: false,
|
|
499
|
+
hasCheckbox: true,
|
|
500
|
+
checked: false,
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
id: 3,
|
|
506
|
+
title: 'second route',
|
|
507
|
+
isOpen: false,
|
|
508
|
+
openOrClosed: 'arrow_right',
|
|
509
|
+
hasIcon: false,
|
|
510
|
+
hasCheckbox: true,
|
|
511
|
+
checked: false,
|
|
512
|
+
child: [
|
|
513
|
+
{
|
|
514
|
+
id: 4,
|
|
515
|
+
title: 'Boop 2077',
|
|
516
|
+
hasCheckbox: true,
|
|
517
|
+
checked: false,
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
id: 4,
|
|
521
|
+
title: 'sjdnfkn 2077',
|
|
522
|
+
hasCheckbox: true,
|
|
523
|
+
checked: false,
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
};
|
|
529
|
+
const TttxTreeViewIcons = ({ data }) => `
|
|
530
|
+
<tttx-tree-view id="treeViewIcons"></tttx-tree-view>
|
|
531
|
+
<script>
|
|
532
|
+
if(!treeViewIcons) {
|
|
533
|
+
const treeViewIcons = document.getElementById('treeViewIcons');
|
|
534
|
+
}
|
|
535
|
+
treeViewIcons.data = ${JSON.stringify(data)};
|
|
536
|
+
</script>
|
|
537
|
+
`;
|
|
538
|
+
export const Icons = TttxTreeViewIcons.bind({});
|
|
539
|
+
Icons.args = {
|
|
540
|
+
data: [
|
|
541
|
+
{
|
|
542
|
+
id: 1,
|
|
543
|
+
title: 'Role Specific Vocational Qualification',
|
|
544
|
+
isOpen: false,
|
|
545
|
+
openOrClosed: 'arrow_right',
|
|
546
|
+
hasCheckbox: false,
|
|
547
|
+
hasIcon: true,
|
|
548
|
+
icon: 'check_circle',
|
|
549
|
+
iconColor: 'green',
|
|
550
|
+
child: [
|
|
551
|
+
{
|
|
552
|
+
id: 2,
|
|
553
|
+
title: 'Boop',
|
|
554
|
+
isOpen: false,
|
|
555
|
+
hasIcon: true,
|
|
556
|
+
icon: 'check_circle',
|
|
557
|
+
iconColor: 'green',
|
|
558
|
+
openOrClosed: 'arrow_right',
|
|
559
|
+
child: [
|
|
560
|
+
{
|
|
561
|
+
id: 2,
|
|
562
|
+
hasIcon: true,
|
|
563
|
+
icon: 'check_circle',
|
|
564
|
+
iconColor: 'green',
|
|
565
|
+
title: 'this is a test',
|
|
566
|
+
},
|
|
567
|
+
],
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
id: 3,
|
|
571
|
+
title: 'Boop',
|
|
572
|
+
isOpen: false,
|
|
573
|
+
openOrClosed: 'arrow_right',
|
|
574
|
+
hasIcon: true,
|
|
575
|
+
icon: 'check_circle',
|
|
576
|
+
iconColor: 'green',
|
|
577
|
+
},
|
|
578
|
+
],
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
id: 3,
|
|
582
|
+
title: 'second route',
|
|
583
|
+
isOpen: false,
|
|
584
|
+
openOrClosed: 'arrow_right',
|
|
585
|
+
hasIcon: true,
|
|
586
|
+
icon: 'help',
|
|
587
|
+
iconColor: 'gray',
|
|
588
|
+
hasCheckbox: false,
|
|
589
|
+
child: [
|
|
590
|
+
{
|
|
591
|
+
id: 4,
|
|
592
|
+
title: 'Boop 2077',
|
|
593
|
+
hasIcon: true,
|
|
594
|
+
icon: 'check_circle',
|
|
595
|
+
iconColor: 'green',
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
id: 4,
|
|
599
|
+
title: 'sjdnfkn 2077',
|
|
600
|
+
hasIcon: true,
|
|
601
|
+
icon: 'help',
|
|
602
|
+
iconColor: 'gray',
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
};
|
|
608
|
+
const TttxTreeViewCheckBoxAndIcons = ({ data }) => `
|
|
609
|
+
<tttx-tree-view id="treeViewCheckBoxAndIcons"></tttx-tree-view>
|
|
610
|
+
<script>
|
|
611
|
+
if(!treeViewCheckBoxAndIcons) {
|
|
612
|
+
const treeViewCheckBoxAndIcons = document.getElementById('treeViewCheckBoxAndIcons');
|
|
613
|
+
}
|
|
614
|
+
treeViewCheckBoxAndIcons.data = ${JSON.stringify(data)};
|
|
615
|
+
</script>
|
|
616
|
+
`;
|
|
617
|
+
export const CheckBoxAndIcons = TttxTreeViewCheckBoxAndIcons.bind({});
|
|
618
|
+
CheckBoxAndIcons.args = {
|
|
619
|
+
data: [
|
|
620
|
+
{
|
|
621
|
+
id: 1,
|
|
622
|
+
title: 'Role Specific Vocational Qualification',
|
|
623
|
+
isOpen: false,
|
|
624
|
+
openOrClosed: 'arrow_right',
|
|
625
|
+
hasCheckbox: true,
|
|
626
|
+
checked: false,
|
|
627
|
+
hasIcon: true,
|
|
628
|
+
icon: 'check_circle',
|
|
629
|
+
iconColor: 'green',
|
|
630
|
+
child: [
|
|
631
|
+
{
|
|
632
|
+
id: 2,
|
|
633
|
+
title: 'Boop',
|
|
634
|
+
isOpen: false,
|
|
635
|
+
hasIcon: true,
|
|
636
|
+
hasCheckbox: true,
|
|
637
|
+
checked: false,
|
|
638
|
+
icon: 'check_circle',
|
|
639
|
+
iconColor: 'green',
|
|
640
|
+
openOrClosed: 'arrow_right',
|
|
641
|
+
child: [
|
|
642
|
+
{
|
|
643
|
+
id: 2,
|
|
644
|
+
hasIcon: true,
|
|
645
|
+
icon: 'check_circle',
|
|
646
|
+
iconColor: 'green',
|
|
647
|
+
hasCheckbox: true,
|
|
648
|
+
checked: false,
|
|
649
|
+
title: 'this is a test',
|
|
650
|
+
},
|
|
651
|
+
],
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
id: 3,
|
|
655
|
+
title: 'Boop',
|
|
656
|
+
isOpen: false,
|
|
657
|
+
openOrClosed: 'arrow_right',
|
|
658
|
+
hasCheckbox: true,
|
|
659
|
+
checked: false,
|
|
660
|
+
hasIcon: true,
|
|
661
|
+
icon: 'check_circle',
|
|
662
|
+
iconColor: 'green',
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
id: 3,
|
|
668
|
+
title: 'second route',
|
|
669
|
+
isOpen: false,
|
|
670
|
+
openOrClosed: 'arrow_right',
|
|
671
|
+
hasCheckbox: true,
|
|
672
|
+
checked: false,
|
|
673
|
+
hasIcon: true,
|
|
674
|
+
icon: 'check_circle',
|
|
675
|
+
iconColor: 'green',
|
|
676
|
+
child: [
|
|
677
|
+
{
|
|
678
|
+
id: 4,
|
|
679
|
+
title: 'Boop 2077',
|
|
680
|
+
hasCheckbox: true,
|
|
681
|
+
checked: false,
|
|
682
|
+
hasIcon: true,
|
|
683
|
+
icon: 'check_circle',
|
|
684
|
+
iconColor: 'green',
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
id: 4,
|
|
688
|
+
title: 'sjdnfkn 2077',
|
|
689
|
+
hasCheckbox: true,
|
|
690
|
+
checked: false,
|
|
691
|
+
hasIcon: true,
|
|
692
|
+
icon: 'check_circle',
|
|
693
|
+
iconColor: 'green',
|
|
694
|
+
},
|
|
695
|
+
],
|
|
696
|
+
},
|
|
697
|
+
],
|
|
698
|
+
};
|
|
@@ -8,9 +8,11 @@ export { TttxKeyvalueBlock as TttxKeyvalueBlock } from '../types/components/atom
|
|
|
8
8
|
export { TttxList as TttxList } from '../types/components/molecules/tttx-list/tttx-list';
|
|
9
9
|
export { TttxLoadingSpinner as TttxLoadingSpinner } from '../types/components/atoms/tttx-loading-spinner/tttx-loading-spinner';
|
|
10
10
|
export { TttxQrCode as TttxQrcode } from '../types/components/atoms/tttx-qrcode/tttx-qrcode';
|
|
11
|
+
export { TttxSelectBox as TttxSelectBox } from '../types/components/molecules/tttx-select-box/tttx-select-box';
|
|
11
12
|
export { TttxSorter as TttxSorter } from '../types/components/molecules/tttx-sorter/tttx-sorter';
|
|
12
13
|
export { TttxInput as TttxStandaloneInput } from '../types/components/molecules/tttx-standalone-input/tttx-standalone-input';
|
|
13
14
|
export { TttxToolbar as TttxToolbar } from '../types/components/molecules/tttx-toolbar/tttx-toolbar';
|
|
15
|
+
export { TttxTreeView as TttxTreeView } from '../types/components/molecules/tttx-tree-view/tttx-tree-view';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Used to manually set the base path where assets can be found.
|
package/dist/components/index.js
CHANGED
|
@@ -8,6 +8,8 @@ export { TttxKeyvalueBlock, defineCustomElement as defineCustomElementTttxKeyval
|
|
|
8
8
|
export { TttxList, defineCustomElement as defineCustomElementTttxList } from './tttx-list.js';
|
|
9
9
|
export { TttxLoadingSpinner, defineCustomElement as defineCustomElementTttxLoadingSpinner } from './tttx-loading-spinner.js';
|
|
10
10
|
export { TttxQrcode, defineCustomElement as defineCustomElementTttxQrcode } from './tttx-qrcode.js';
|
|
11
|
+
export { TttxSelectBox, defineCustomElement as defineCustomElementTttxSelectBox } from './tttx-select-box.js';
|
|
11
12
|
export { TttxSorter, defineCustomElement as defineCustomElementTttxSorter } from './tttx-sorter.js';
|
|
12
13
|
export { TttxStandaloneInput, defineCustomElement as defineCustomElementTttxStandaloneInput } from './tttx-standalone-input.js';
|
|
13
14
|
export { TttxToolbar, defineCustomElement as defineCustomElementTttxToolbar } from './tttx-toolbar.js';
|
|
15
|
+
export { TttxTreeView, defineCustomElement as defineCustomElementTttxTreeView } from './tttx-tree-view.js';
|