@3t-transform/threeteeui 0.1.43 → 0.1.45
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/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/{domsanitiser.options-975e3317.js → domsanitiser.options-b2d88e35.js} +16 -30
- package/dist/cjs/{index-457ca775.js → index-1a35850c.js} +62 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +24 -24
- package/dist/cjs/tttx-dialog-box.cjs.entry.js +81 -0
- package/dist/cjs/tttx-filter.cjs.entry.js +177 -177
- package/dist/cjs/tttx-form.cjs.entry.js +459 -458
- 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 +33 -32
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-qrcode.cjs.entry.js +37 -0
- 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 -2
- package/dist/collection/collection-manifest.json +2 -0
- 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/atoms/tttx-qrcode/tttx-qrcode.css +0 -0
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +74 -0
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -0
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.css +146 -0
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +172 -0
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +380 -0
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +369 -369
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +72 -72
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -61
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -479
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +272 -272
- 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/_commonjsHelpers.js +17 -0
- package/dist/components/domsanitiser.options.js +13 -27
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/tttx-button.js +1 -54
- package/dist/components/tttx-button2.js +56 -0
- package/dist/components/tttx-dialog-box.d.ts +11 -0
- package/dist/components/tttx-dialog-box.js +110 -0
- package/dist/components/tttx-filter.js +210 -210
- package/dist/components/tttx-form.js +475 -475
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +53 -53
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-qrcode.d.ts +11 -0
- package/dist/components/tttx-qrcode.js +53 -0
- 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/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/{domsanitiser.options-3c7ded83.js → domsanitiser.options-81611f82.js} +13 -27
- package/dist/esm/{index-d784fb3e.js → index-a848bfb4.js} +62 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- 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 +24 -24
- package/dist/esm/tttx-dialog-box.entry.js +77 -0
- package/dist/esm/tttx-filter.entry.js +177 -177
- package/dist/esm/tttx-form.entry.js +459 -458
- 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 +33 -32
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-qrcode.entry.js +33 -0
- 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 +3 -3
- package/dist/tttx/p-0b25ac9c.js +3 -0
- package/dist/tttx/p-112455b1.js +1 -0
- package/dist/tttx/{p-b720c4ad.entry.js → p-120a0732.entry.js} +1 -1
- package/dist/tttx/p-2d130f82.entry.js +1 -0
- package/dist/tttx/{p-aaf02902.entry.js → p-42349ae5.entry.js} +1 -1
- package/dist/tttx/{p-92cade7f.entry.js → p-623b9147.entry.js} +1 -1
- package/dist/tttx/{p-cac26a1b.entry.js → p-7428fc97.entry.js} +1 -1
- package/dist/tttx/{p-ab6ce9f6.entry.js → p-77fb8e0f.entry.js} +1 -1
- package/dist/tttx/p-83563ce9.entry.js +1 -0
- package/dist/tttx/p-a092cd71.entry.js +1 -0
- package/dist/tttx/p-ab4652a8.js +2 -0
- package/dist/tttx/p-af7ff3b3.entry.js +1 -0
- package/dist/tttx/{p-563605b2.entry.js → p-d0ca435d.entry.js} +1 -1
- package/dist/tttx/{p-798a098a.entry.js → p-d2b0ec0a.entry.js} +1 -1
- package/dist/tttx/{p-ec253eea.entry.js → p-e1efb888.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/atoms/tttx-qrcode/tttx-qrcode.d.ts +6 -0
- package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -0
- package/dist/types/components/molecules/tttx-dialog-box/interfaces.d.ts +25 -0
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +18 -0
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +23 -0
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +41 -41
- 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 -133
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
- 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 +41 -0
- 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/package.json +7 -5
- package/readme.md +19 -7
- package/dist/tttx/p-0ebffdfc.js +0 -2
- package/dist/tttx/p-1db3704e.entry.js +0 -1
- package/dist/tttx/p-350ddb03.js +0 -3
- package/dist/tttx/p-f702df4f.entry.js +0 -1
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +0 -70
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -278
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -14
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +0 -30
package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts
CHANGED
|
@@ -1,143 +1,143 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
iconleft: {
|
|
6
|
-
options: string[];
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
iconleftcolor: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
iconright: {
|
|
17
|
-
options: string[];
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
iconrightcolor: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
inputicon: {
|
|
28
|
-
options: string[];
|
|
29
|
-
control: {
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
inputiconcolor: {
|
|
34
|
-
control: {
|
|
35
|
-
type: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
label: {
|
|
39
|
-
control: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
secondarylabel: {
|
|
44
|
-
control: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
errormsg: {
|
|
49
|
-
control: {
|
|
50
|
-
type: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
showerrorbubble: {
|
|
54
|
-
control: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
showerrormsg: {
|
|
59
|
-
control: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
inline: {
|
|
64
|
-
control: {
|
|
65
|
-
type: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
checked: {
|
|
69
|
-
control: {
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
disabled: {
|
|
74
|
-
control: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
max: {
|
|
79
|
-
control: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
maxlength: {
|
|
84
|
-
control: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
min: {
|
|
89
|
-
control: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
minlength: {
|
|
94
|
-
control: {
|
|
95
|
-
type: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
name: {
|
|
99
|
-
control: {
|
|
100
|
-
type: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
pattern: {
|
|
104
|
-
control: {
|
|
105
|
-
type: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
placeholder: {
|
|
109
|
-
control: {
|
|
110
|
-
type: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
readonly: {
|
|
114
|
-
control: {
|
|
115
|
-
type: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
required: {
|
|
119
|
-
control: {
|
|
120
|
-
type: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
step: {
|
|
124
|
-
control: {
|
|
125
|
-
type: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
type: {
|
|
129
|
-
options: string[];
|
|
130
|
-
control: {
|
|
131
|
-
type: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
value: {
|
|
135
|
-
control: {
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
export default _default;
|
|
142
|
-
export declare const InputField: any;
|
|
143
|
-
export declare const searchField: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
iconleft: {
|
|
6
|
+
options: string[];
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
iconleftcolor: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
iconright: {
|
|
17
|
+
options: string[];
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
iconrightcolor: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
inputicon: {
|
|
28
|
+
options: string[];
|
|
29
|
+
control: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
inputiconcolor: {
|
|
34
|
+
control: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
label: {
|
|
39
|
+
control: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
secondarylabel: {
|
|
44
|
+
control: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
errormsg: {
|
|
49
|
+
control: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
showerrorbubble: {
|
|
54
|
+
control: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
showerrormsg: {
|
|
59
|
+
control: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
inline: {
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
checked: {
|
|
69
|
+
control: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
disabled: {
|
|
74
|
+
control: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
max: {
|
|
79
|
+
control: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
maxlength: {
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
min: {
|
|
89
|
+
control: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
minlength: {
|
|
94
|
+
control: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
name: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
pattern: {
|
|
104
|
+
control: {
|
|
105
|
+
type: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
placeholder: {
|
|
109
|
+
control: {
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly: {
|
|
114
|
+
control: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
required: {
|
|
119
|
+
control: {
|
|
120
|
+
type: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
step: {
|
|
124
|
+
control: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
type: {
|
|
129
|
+
options: string[];
|
|
130
|
+
control: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
value: {
|
|
135
|
+
control: {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
export default _default;
|
|
142
|
+
export declare const InputField: any;
|
|
143
|
+
export declare const searchField: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class TttxToolbar {
|
|
2
|
-
border: boolean;
|
|
3
|
-
render(): any;
|
|
4
|
-
}
|
|
1
|
+
export declare class TttxToolbar {
|
|
2
|
+
border: boolean;
|
|
3
|
+
render(): any;
|
|
4
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
border: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const BasicStringList: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
border: {
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const BasicStringList: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Default: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: any;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { DialogItems } from "./components/molecules/tttx-dialog-box/interfaces";
|
|
8
9
|
import { FilterChangeEvent, FilterSettings } from "./components/molecules/tttx-filter/tttx-filter";
|
|
9
10
|
import { ListItem } from "./components/molecules/tttx-list/interfaces";
|
|
10
11
|
import { SorterChangeEvent, SorterData } from "./components/molecules/tttx-sorter/interfaces";
|
|
@@ -16,6 +17,10 @@ export namespace Components {
|
|
|
16
17
|
"iconposition": 'left' | 'right';
|
|
17
18
|
"notext": boolean;
|
|
18
19
|
}
|
|
20
|
+
interface TttxDialogBox {
|
|
21
|
+
"data": string | DialogItems;
|
|
22
|
+
"size": 'regular' | 'mobile' | 'large' | 'small';
|
|
23
|
+
}
|
|
19
24
|
interface TttxFilter {
|
|
20
25
|
"defaultFilterOptions": string[] | string;
|
|
21
26
|
"filterButtonStyle": 'list filter' | 'list icon' | 'table icon';
|
|
@@ -47,6 +52,10 @@ export namespace Components {
|
|
|
47
52
|
"loadingMessage": boolean;
|
|
48
53
|
"size": 'small' | 'large';
|
|
49
54
|
}
|
|
55
|
+
interface TttxQrcode {
|
|
56
|
+
"link": string;
|
|
57
|
+
"size": number;
|
|
58
|
+
}
|
|
50
59
|
interface TttxSorter {
|
|
51
60
|
"defaultOption": string;
|
|
52
61
|
"defaultSortDirection": 'ascending' | 'descending';
|
|
@@ -102,6 +111,10 @@ export namespace Components {
|
|
|
102
111
|
"border": boolean;
|
|
103
112
|
}
|
|
104
113
|
}
|
|
114
|
+
export interface TttxDialogBoxCustomEvent<T> extends CustomEvent<T> {
|
|
115
|
+
detail: T;
|
|
116
|
+
target: HTMLTttxDialogBoxElement;
|
|
117
|
+
}
|
|
105
118
|
export interface TttxFilterCustomEvent<T> extends CustomEvent<T> {
|
|
106
119
|
detail: T;
|
|
107
120
|
target: HTMLTttxFilterElement;
|
|
@@ -129,6 +142,12 @@ declare global {
|
|
|
129
142
|
prototype: HTMLTttxButtonElement;
|
|
130
143
|
new (): HTMLTttxButtonElement;
|
|
131
144
|
};
|
|
145
|
+
interface HTMLTttxDialogBoxElement extends Components.TttxDialogBox, HTMLStencilElement {
|
|
146
|
+
}
|
|
147
|
+
var HTMLTttxDialogBoxElement: {
|
|
148
|
+
prototype: HTMLTttxDialogBoxElement;
|
|
149
|
+
new (): HTMLTttxDialogBoxElement;
|
|
150
|
+
};
|
|
132
151
|
interface HTMLTttxFilterElement extends Components.TttxFilter, HTMLStencilElement {
|
|
133
152
|
}
|
|
134
153
|
var HTMLTttxFilterElement: {
|
|
@@ -165,6 +184,12 @@ declare global {
|
|
|
165
184
|
prototype: HTMLTttxLoadingSpinnerElement;
|
|
166
185
|
new (): HTMLTttxLoadingSpinnerElement;
|
|
167
186
|
};
|
|
187
|
+
interface HTMLTttxQrcodeElement extends Components.TttxQrcode, HTMLStencilElement {
|
|
188
|
+
}
|
|
189
|
+
var HTMLTttxQrcodeElement: {
|
|
190
|
+
prototype: HTMLTttxQrcodeElement;
|
|
191
|
+
new (): HTMLTttxQrcodeElement;
|
|
192
|
+
};
|
|
168
193
|
interface HTMLTttxSorterElement extends Components.TttxSorter, HTMLStencilElement {
|
|
169
194
|
}
|
|
170
195
|
var HTMLTttxSorterElement: {
|
|
@@ -185,12 +210,14 @@ declare global {
|
|
|
185
210
|
};
|
|
186
211
|
interface HTMLElementTagNameMap {
|
|
187
212
|
"tttx-button": HTMLTttxButtonElement;
|
|
213
|
+
"tttx-dialog-box": HTMLTttxDialogBoxElement;
|
|
188
214
|
"tttx-filter": HTMLTttxFilterElement;
|
|
189
215
|
"tttx-form": HTMLTttxFormElement;
|
|
190
216
|
"tttx-icon": HTMLTttxIconElement;
|
|
191
217
|
"tttx-keyvalue-block": HTMLTttxKeyvalueBlockElement;
|
|
192
218
|
"tttx-list": HTMLTttxListElement;
|
|
193
219
|
"tttx-loading-spinner": HTMLTttxLoadingSpinnerElement;
|
|
220
|
+
"tttx-qrcode": HTMLTttxQrcodeElement;
|
|
194
221
|
"tttx-sorter": HTMLTttxSorterElement;
|
|
195
222
|
"tttx-standalone-input": HTMLTttxStandaloneInputElement;
|
|
196
223
|
"tttx-toolbar": HTMLTttxToolbarElement;
|
|
@@ -203,6 +230,12 @@ declare namespace LocalJSX {
|
|
|
203
230
|
"iconposition"?: 'left' | 'right';
|
|
204
231
|
"notext"?: boolean;
|
|
205
232
|
}
|
|
233
|
+
interface TttxDialogBox {
|
|
234
|
+
"data"?: string | DialogItems;
|
|
235
|
+
"onButtonClick"?: (event: TttxDialogBoxCustomEvent<any>) => void;
|
|
236
|
+
"onCloseButtonClick"?: (event: TttxDialogBoxCustomEvent<any>) => void;
|
|
237
|
+
"size"?: 'regular' | 'mobile' | 'large' | 'small';
|
|
238
|
+
}
|
|
206
239
|
interface TttxFilter {
|
|
207
240
|
"defaultFilterOptions"?: string[] | string;
|
|
208
241
|
"filterButtonStyle"?: 'list filter' | 'list icon' | 'table icon';
|
|
@@ -237,6 +270,10 @@ declare namespace LocalJSX {
|
|
|
237
270
|
"loadingMessage"?: boolean;
|
|
238
271
|
"size"?: 'small' | 'large';
|
|
239
272
|
}
|
|
273
|
+
interface TttxQrcode {
|
|
274
|
+
"link"?: string;
|
|
275
|
+
"size"?: number;
|
|
276
|
+
}
|
|
240
277
|
interface TttxSorter {
|
|
241
278
|
"defaultOption"?: string;
|
|
242
279
|
"defaultSortDirection"?: 'ascending' | 'descending';
|
|
@@ -301,12 +338,14 @@ declare namespace LocalJSX {
|
|
|
301
338
|
}
|
|
302
339
|
interface IntrinsicElements {
|
|
303
340
|
"tttx-button": TttxButton;
|
|
341
|
+
"tttx-dialog-box": TttxDialogBox;
|
|
304
342
|
"tttx-filter": TttxFilter;
|
|
305
343
|
"tttx-form": TttxForm;
|
|
306
344
|
"tttx-icon": TttxIcon;
|
|
307
345
|
"tttx-keyvalue-block": TttxKeyvalueBlock;
|
|
308
346
|
"tttx-list": TttxList;
|
|
309
347
|
"tttx-loading-spinner": TttxLoadingSpinner;
|
|
348
|
+
"tttx-qrcode": TttxQrcode;
|
|
310
349
|
"tttx-sorter": TttxSorter;
|
|
311
350
|
"tttx-standalone-input": TttxStandaloneInput;
|
|
312
351
|
"tttx-toolbar": TttxToolbar;
|
|
@@ -317,12 +356,14 @@ declare module "@stencil/core" {
|
|
|
317
356
|
export namespace JSX {
|
|
318
357
|
interface IntrinsicElements {
|
|
319
358
|
"tttx-button": LocalJSX.TttxButton & JSXBase.HTMLAttributes<HTMLTttxButtonElement>;
|
|
359
|
+
"tttx-dialog-box": LocalJSX.TttxDialogBox & JSXBase.HTMLAttributes<HTMLTttxDialogBoxElement>;
|
|
320
360
|
"tttx-filter": LocalJSX.TttxFilter & JSXBase.HTMLAttributes<HTMLTttxFilterElement>;
|
|
321
361
|
"tttx-form": LocalJSX.TttxForm & JSXBase.HTMLAttributes<HTMLTttxFormElement>;
|
|
322
362
|
"tttx-icon": LocalJSX.TttxIcon & JSXBase.HTMLAttributes<HTMLTttxIconElement>;
|
|
323
363
|
"tttx-keyvalue-block": LocalJSX.TttxKeyvalueBlock & JSXBase.HTMLAttributes<HTMLTttxKeyvalueBlockElement>;
|
|
324
364
|
"tttx-list": LocalJSX.TttxList & JSXBase.HTMLAttributes<HTMLTttxListElement>;
|
|
325
365
|
"tttx-loading-spinner": LocalJSX.TttxLoadingSpinner & JSXBase.HTMLAttributes<HTMLTttxLoadingSpinnerElement>;
|
|
366
|
+
"tttx-qrcode": LocalJSX.TttxQrcode & JSXBase.HTMLAttributes<HTMLTttxQrcodeElement>;
|
|
326
367
|
"tttx-sorter": LocalJSX.TttxSorter & JSXBase.HTMLAttributes<HTMLTttxSorterElement>;
|
|
327
368
|
"tttx-standalone-input": LocalJSX.TttxStandaloneInput & JSXBase.HTMLAttributes<HTMLTttxStandaloneInputElement>;
|
|
328
369
|
"tttx-toolbar": LocalJSX.TttxToolbar & JSXBase.HTMLAttributes<HTMLTttxToolbarElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: any;
|
package/dist/types/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const icons: string[];
|
|
2
|
-
export default icons;
|
|
1
|
+
declare const icons: string[];
|
|
2
|
+
export default icons;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Components, JSX } from './components';
|
|
1
|
+
export { Components, JSX } from './components';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare function tagRegXp(tagName: string): RegExpExecArray;
|
|
2
|
-
declare function attributeNameCheck(): boolean;
|
|
3
|
-
declare const domSanitiserOptions: {
|
|
4
|
-
CUSTOM_ELEMENT_HANDLING: {
|
|
5
|
-
tagNameCheck: typeof tagRegXp;
|
|
6
|
-
attributeNameCheck: typeof attributeNameCheck;
|
|
7
|
-
allowCustomizedBuiltInElements: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default domSanitiserOptions;
|
|
1
|
+
declare function tagRegXp(tagName: string): RegExpExecArray;
|
|
2
|
+
declare function attributeNameCheck(): boolean;
|
|
3
|
+
declare const domSanitiserOptions: {
|
|
4
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
5
|
+
tagNameCheck: typeof tagRegXp;
|
|
6
|
+
attributeNameCheck: typeof attributeNameCheck;
|
|
7
|
+
allowCustomizedBuiltInElements: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default domSanitiserOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3t-transform/threeteeui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "3t Design System",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
"generate": "stencil generate",
|
|
24
24
|
"storybook": "storybook dev -p 6006",
|
|
25
25
|
"build-storybook": "storybook build",
|
|
26
|
-
"chromatic": "npx chromatic --project-token=
|
|
26
|
+
"chromatic": "npx chromatic --project-token=531b9621b0be5 --exit-zero-on-changes --exit-once-uploaded",
|
|
27
27
|
"lint": "eslint \"src/**/*.{tsx,jsx}\"",
|
|
28
28
|
"lint:generate": "eslint \"src/**/*.{tsx,jsx}\" -o output.eslint.json -f json",
|
|
29
29
|
"lint:fix": "eslint \"src/**/*.{tsx,jsx}\" --fix"
|
|
30
30
|
},
|
|
31
31
|
"resolutions": {
|
|
32
|
-
"@types/babel__traverse": "7.0.6"
|
|
32
|
+
"@types/babel__traverse": "7.0.6",
|
|
33
|
+
"file-system-cache": "2.3.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@babel/core": "^7.18.10",
|
|
@@ -67,8 +68,9 @@
|
|
|
67
68
|
"readme": "ERROR: No README data found!",
|
|
68
69
|
"dependencies": {
|
|
69
70
|
"@popperjs/core": "^2.11.7",
|
|
71
|
+
"@types/react": "^18.2.6",
|
|
70
72
|
"dompurify": "^3.0.3",
|
|
71
73
|
"storybook": "^7.0.6",
|
|
72
|
-
"
|
|
74
|
+
"ts-qrcode": "^0.0.4"
|
|
73
75
|
}
|
|
74
|
-
}
|
|
76
|
+
}
|
package/readme.md
CHANGED
|
@@ -18,31 +18,43 @@
|
|
|
18
18
|
Pull down this repo and run:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
yarn
|
|
22
|
+
yarn start
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
To build the component for production, run:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
|
|
28
|
+
yarn build
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
To run the unit tests for the components, run:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
|
|
34
|
+
yarn test
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
To see the components in Storybook, run:
|
|
38
38
|
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
``` bash
|
|
40
|
+
yarn build
|
|
41
|
+
yarn storybook
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Need help? Check out our [docs](https://stenciljs.com/docs/my-first-component).
|
|
45
45
|
|
|
46
|
+
## Release Process
|
|
47
|
+
|
|
48
|
+
To release a new version of the library, follow these steps:
|
|
49
|
+
|
|
50
|
+
1. Update the version number in the `package.json` file according to [semantic versioning](https://semver.org/).
|
|
51
|
+
1. Push the changes to the remote `master` branch.
|
|
52
|
+
1. This will trigger a build and run the tests on the CI/CD pipeline.
|
|
53
|
+
1. If the tests pass, the new version will be published to npm and a new tag will be created.
|
|
54
|
+
1. If the tests fail, the release process will be halted and you will need to fix the issues before trying again.
|
|
55
|
+
|
|
56
|
+
Make sure to follow the [semantic versioning](https://semver.org/) guidelines when updating the version number. This will help users understand the impact of the changes in the new version and avoid breaking changes.
|
|
57
|
+
|
|
46
58
|
## Naming Components
|
|
47
59
|
|
|
48
60
|
When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
|
package/dist/tttx/p-0ebffdfc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,n,t=!1;const l={},s=e=>"object"==(e=typeof e)||"function"===e;function o(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(e,n,...t)=>{let l=null,o=null,i=!1,r=!1;const u=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!s(l))&&(l+=""),i&&r?u[u.length-1].t+=l:u.push(i?c(null,l):l),r=i)};if(a(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=c(e,null);return f.l=n,u.length>0&&(f.o=u),f.i=o,f},c=(e,n)=>({u:0,m:e,t:n,$:null,o:null,l:null,i:null}),r={},u=e=>U(e).h,a=(e,n,t)=>{const l=u(e);return{emit:e=>f(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},f=(e,n,t)=>{const l=J.ce(n,t);return e.dispatchEvent(l),l},d=new WeakMap,m=e=>"sc-"+e.p,y=(e,n,t,l,o,i)=>{if(t!==l){let c=F(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,s=h(t),o=h(l);n.remove(...s.filter((e=>e&&!o.includes(e)))),n.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(c||"o"!==n[0]||"n"!==n[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const s=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==s||(e[n]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&i||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):F(G,r)?r.slice(2):r[2]+n.slice(3),t&&J.rel(e,n,t,!1),l&&J.ael(e,n,l,!1)}},$=/\s/,h=e=>e?e.split($):[],p=(e,n,t,s)=>{const o=11===n.$.nodeType&&n.$.host?n.$.host:n.$,i=e&&e.l||l,c=n.l||l;for(s in i)s in c||y(o,s,i[s],void 0,t,n.u);for(s in c)y(o,s,i[s],c[s],t,n.u)},b=(n,t,l)=>{const s=t.o[l];let o,i,c=0;if(null!==s.t)o=s.$=I.createTextNode(s.t);else if(o=s.$=I.createElement(s.m),p(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.o)for(c=0;c<s.o.length;++c)i=b(n,s,c),i&&o.appendChild(i);return o},w=(e,t,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=b(null,l,o),c&&(s[o].$=c,r.insertBefore(c,t)))},v=(e,n,t,l,s)=>{for(;n<=t;++n)(l=e[n])&&(s=l.$,j(l),s.remove())},S=(e,n)=>e.m===n.m&&e.i===n.i,g=(e,n)=>{const t=n.$=e.$,l=e.o,s=n.o,o=n.t;null===o?("slot"===n.m||p(e,n,!1),null!==l&&null!==s?((e,n,t,l)=>{let s,o,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],m=l.length-1,y=l[0],$=l[m];for(;i<=a&&c<=m;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==y)y=l[++c];else if(null==$)$=l[--m];else if(S(f,y))g(f,y),f=n[++i],y=l[++c];else if(S(d,$))g(d,$),d=n[--a],$=l[--m];else if(S(f,$))g(f,$),e.insertBefore(f.$,d.$.nextSibling),f=n[++i],$=l[--m];else if(S(d,y))g(d,y),e.insertBefore(d.$,f.$),d=n[--a],y=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].i&&n[u].i===y.i){r=u;break}r>=0?(o=n[r],o.m!==y.m?s=b(n&&n[c],t,r):(g(o,y),n[r]=void 0,s=o.$),y=l[++c]):(s=b(n&&n[c],t,c),y=l[++c]),s&&f.$.parentNode.insertBefore(s,f.$)}i>a?w(e,null==l[m+1]?null:l[m+1].$,t,l,c,m):c>m&&v(n,i,a)})(t,l,n,s):null!==s?(null!==e.t&&(t.textContent=""),w(t,null,n,s,0,s.length-1)):null!==l&&v(l,0,l.length-1)):e.t!==o&&(t.data=o)},j=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(j)},k=(e,n)=>{n&&!e.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.v=n)))},M=(e,n)=>{if(e.u|=16,!(4&e.u))return k(e,e.S),le((()=>O(e,n)));e.u|=512},O=(e,n)=>{const t=e.g;let l;return n&&(l=W(t,"componentWillLoad")),l=E(l,(()=>W(t,"componentWillRender"))),E(l,(()=>C(e,t,n)))},C=async(e,n,t)=>{const l=e.h,s=l["s-rc"];t&&(e=>{const n=e.j,t=e.h,l=n.u,s=((e,n)=>{var t;let l=m(n);const s=B.get(l);if(e=11===e.nodeType?e:I,s)if("string"==typeof s){let n,i=d.get(e=e.head||e);if(i||d.set(e,i=new Set),!i.has(l)){{n=I.createElement("style"),n.innerHTML=s;const l=null!==(t=J.k)&&void 0!==t?t:o(I);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}i&&i.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"),2&l&&t.classList.add(s+"-s"))})(e);P(e,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>x(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},P=(t,l)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l)=>{const s=t.h,o=t.M||c(null,null),u=(e=>e&&e.m===r)(l)?l:i(null,null,l);n=s.tagName,u.m=null,u.u|=4,t.M=u,u.$=o.$=s.shadowRoot||s,e=s["s-sc"],g(o,u)})(t,l)}catch(e){V(e,t.h)}return null},x=e=>{const n=e.h,t=e.S;W(e.g,"componentDidRender"),64&e.u||(e.u|=64,L(n),e.O(n),t||R()),e.C(n),e.v&&(e.v(),e.v=void 0),512&e.u&&te((()=>M(e,!1))),e.u&=-517},R=()=>{L(I.documentElement),te((()=>f(G,"appload",{detail:{namespace:"tttx"}})))},W=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){V(e)}},E=(e,n)=>e&&e.then?e.then(n):n(),L=e=>e.classList.add("hydrated"),N=(e,n,t)=>{if(n.P){e.watchers&&(n.R=e.watchers);const l=Object.entries(n.P),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,e,{get(){return((e,n)=>U(this).W.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=U(e),i=o.h,c=o.W.get(n),r=o.u,u=o.g;if(t=((e,n)=>null==e||s(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,l.P[n][0]),(!(8&r)||void 0===c)&&t!==c&&(!Number.isNaN(c)||!Number.isNaN(t))&&(o.W.set(n,t),u)){if(l.R&&128&r){const e=l.R[n];e&&e.map((e=>{try{u[e](t,c,n)}catch(e){V(e,i)}}))}2==(18&r)&&M(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,e,{value(...n){const t=U(this);return t.L.then((()=>t.g[e](...n)))}})})),1&t){const n=new Map;o.attributeChangedCallback=function(e,t,l){J.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},T=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=G.customElements,c=I.head,r=c.querySelector("meta[charset]"),u=I.createElement("style"),a=[];let f,d=!0;Object.assign(J,n),J.N=new URL(n.resourcesUrl||"./",I.baseURI).href,e.map((e=>{e[1].map((t=>{const o={u:t[0],p:t[1],P:t[2],T:t[3]};o.P=t[2],o.R={};const c=n.transformTagName?n.transformTagName(o.p):o.p,r=class extends HTMLElement{constructor(e){super(e),D(e=this,o),1&o.u&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):J.jmp((()=>(e=>{if(0==(1&J.u)){const n=U(e),t=n.j,l=()=>{};if(!(1&n.u)){n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){k(n,n.S=t);break}}t.P&&Object.entries(t.P).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,s)=>{if(0==(32&n.u)){{if(n.u|=32,(s=z(t)).then){const e=()=>{};s=await s,e()}s.isProxied||(t.R=s.watchers,N(s,t,2),s.isProxied=!0);const e=()=>{};n.u|=8;try{new s(n)}catch(e){V(e)}n.u&=-9,n.u|=128,e()}if(s.style){let e=s.style;const n=m(t);if(!B.has(n)){const l=()=>{};((e,n,t)=>{let l=B.get(e);Q&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,B.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.S,i=()=>M(n,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,n,t)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>{}))}componentOnReady(){return U(this).A}};o.H=e[0],s.includes(c)||i.get(c)||(l.push(c),i.define(c,N(r,o,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=J.k)&&void 0!==t?t:o(I);null!=e&&u.setAttribute("nonce",e),c.insertBefore(u,r?r.nextSibling:c.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):J.jmp((()=>f=setTimeout(R,30)))},A=e=>J.k=e,H=new WeakMap,U=e=>H.get(e),q=(e,n)=>H.set(n.g=e,n),D=(e,n)=>{const t={u:0,h:e,j:n,W:new Map};return t.L=new Promise((e=>t.C=e)),t.A=new Promise((e=>t.O=e)),e["s-p"]=[],e["s-rc"]=[],H.set(e,t)},F=(e,n)=>n in e,V=(e,n)=>(0,console.error)(e,n),_=new Map,z=e=>{const n=e.p.replace(/-/g,"_"),t=e.H,l=_.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(_.set(t,e),e[n])),V)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,G="undefined"!=typeof window?window:{},I=G.document||{head:{}},J={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},K=e=>Promise.resolve(e),Q=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),X=[],Y=[],Z=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&J.u?te(ne):J.raf(ne))},ee=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){V(e)}e.length=0},ne=()=>{ee(X),ee(Y),(t=X.length>0)&&J.raf(ne)},te=e=>K().then(e),le=Z(Y,!0);export{r as H,T as b,a as c,u as g,i as h,K as p,q as r,A as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./p-0ebffdfc.js";import{p as s,d as n}from"./p-350ddb03.js";const o=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.data=void 0,this.name=void 0}onRowClickHandler(t){t.clickable&&t.rowData&&this.rowClick.emit({name:this.name,data:t.rowData})}renderListItem(t){const i=s.sanitize(t.element,n);return e("li",{class:"item "+(t.clickable?"clickable":""),onClick:()=>{this.onRowClickHandler(t)}},t.element&&e("span",{class:"item-content",innerHTML:i}),t.icon&&e("tttx-icon",{class:"align-right ",icon:t.icon}))}render(){if(this.data)return this._data="string"==typeof this.data?JSON.parse(this.data):this.data,e("ul",{class:"list"},this._data.map((t=>this.renderListItem(t))))}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;display:flex;align-items:center}.item:first-of-type{border-top:1px solid #d5d5d5}.item.clickable:hover{cursor:pointer}.item.clickable:active{background-color:#e6e6e6}.align-right{margin-left:auto}.item-content{display:flex;align-items:center}';export{o as tttx_list}
|