@3t-transform/threeteeui 0.1.33 → 0.1.35
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/{index-b8a62ede.js → index-457ca775.js} +16 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +24 -24
- package/dist/cjs/tttx-filter.cjs.entry.js +160 -160
- package/dist/cjs/tttx-form.cjs.entry.js +373 -364
- 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 +43 -43
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-sorter.cjs.entry.js +103 -103
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +80 -80
- package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
- package/dist/cjs/tttx.cjs.js +2 -2
- 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.css +6 -0
- 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 -35
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +13 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +393 -364
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +248 -127
- 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.css +11 -0
- 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.css +13 -0
- 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/tttx-button.js +48 -48
- package/dist/components/tttx-filter.js +192 -192
- package/dist/components/tttx-form.js +391 -381
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +65 -65
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-sorter.js +131 -131
- package/dist/components/tttx-standalone-input.js +131 -131
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/{index-e888a5f4.js → index-d784fb3e.js} +16 -0
- 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-filter.entry.js +160 -160
- package/dist/esm/tttx-form.entry.js +373 -364
- 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 +43 -43
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-sorter.entry.js +103 -103
- package/dist/esm/tttx-standalone-input.entry.js +80 -80
- package/dist/esm/tttx-toolbar.entry.js +10 -10
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/p-0ebffdfc.js +2 -0
- package/dist/tttx/{p-ccd0065e.entry.js → p-400868f1.entry.js} +1 -1
- package/dist/tttx/{p-48ecec8f.entry.js → p-563605b2.entry.js} +1 -1
- package/dist/tttx/{p-6dff6b5a.entry.js → p-72e7f7dd.entry.js} +1 -1
- package/dist/tttx/{p-dc5c356b.entry.js → p-798a098a.entry.js} +1 -1
- package/dist/tttx/{p-b3a03986.entry.js → p-91e42647.entry.js} +1 -1
- package/dist/tttx/{p-5631f7c2.entry.js → p-92cade7f.entry.js} +1 -1
- package/dist/tttx/{p-043f9b8a.entry.js → p-b720c4ad.entry.js} +1 -1
- package/dist/tttx/{p-96bbf1ed.entry.js → p-c4162029.entry.js} +1 -1
- package/dist/tttx/{p-82bb3136.entry.js → p-cac26a1b.entry.js} +1 -1
- package/dist/tttx/p-eb126fd0.entry.js +1 -0
- 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 +111 -114
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -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 +3 -2
- 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 +1 -1
- package/dist/tttx/p-65adb464.entry.js +0 -1
- package/dist/tttx/p-f764ffc4.js +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { withActions } from '@storybook/addon-actions/decorator';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'molecules/Sorter',
|
|
4
|
-
component: 'tttx-sorter',
|
|
5
|
-
argTypes: {
|
|
6
|
-
fieldOptionsData: {
|
|
7
|
-
control: { type: 'object' },
|
|
8
|
-
},
|
|
9
|
-
defaultOption: {
|
|
10
|
-
control: { type: 'text' },
|
|
11
|
-
},
|
|
12
|
-
sorterKey: {
|
|
13
|
-
control: { type: 'text' },
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
parameters: {
|
|
17
|
-
actions: {
|
|
18
|
-
handles: ['sorterChangeEvent'],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
decorators: [withActions],
|
|
22
|
-
};
|
|
23
|
-
const TemplateSorter = ({ fieldOptionsData, sorterKey, defaultOption }) => {
|
|
1
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'molecules/Sorter',
|
|
4
|
+
component: 'tttx-sorter',
|
|
5
|
+
argTypes: {
|
|
6
|
+
fieldOptionsData: {
|
|
7
|
+
control: { type: 'object' },
|
|
8
|
+
},
|
|
9
|
+
defaultOption: {
|
|
10
|
+
control: { type: 'text' },
|
|
11
|
+
},
|
|
12
|
+
sorterKey: {
|
|
13
|
+
control: { type: 'text' },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
parameters: {
|
|
17
|
+
actions: {
|
|
18
|
+
handles: ['sorterChangeEvent'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
decorators: [withActions],
|
|
22
|
+
};
|
|
23
|
+
const TemplateSorter = ({ fieldOptionsData, sorterKey, defaultOption }) => {
|
|
24
24
|
return `
|
|
25
25
|
<div style='width: 250px;'>
|
|
26
26
|
<tttx-sorter
|
|
@@ -28,22 +28,22 @@ const TemplateSorter = ({ fieldOptionsData, sorterKey, defaultOption }) => {
|
|
|
28
28
|
default-option='${defaultOption}'
|
|
29
29
|
sorter-key='${sorterKey}'/>
|
|
30
30
|
</div>
|
|
31
|
-
`;
|
|
32
|
-
};
|
|
33
|
-
const fieldOptionsData = {
|
|
34
|
-
sorterOptions: [{ optionLabel: 'Expiry date' }, { optionLabel: 'Qualification name' }],
|
|
35
|
-
};
|
|
36
|
-
export const BasicSorter = TemplateSorter.bind({});
|
|
37
|
-
BasicSorter.args = {
|
|
38
|
-
fieldOptionsData: fieldOptionsData,
|
|
39
|
-
sorterKey: 'BasicDropdown',
|
|
40
|
-
defaultOption: 'Qualification name',
|
|
41
|
-
};
|
|
42
|
-
export const AnotherSorter = TemplateSorter.bind({});
|
|
43
|
-
AnotherSorter.args = {
|
|
44
|
-
fieldOptionsData: {
|
|
45
|
-
sorterOptions: [{ optionLabel: 'Name' }, { optionLabel: 'Date of Birth' }, { optionLabel: 'Job Role' }],
|
|
46
|
-
},
|
|
47
|
-
sorterKey: 'BasicDropdown',
|
|
48
|
-
defaultOption: 'Date of Birth',
|
|
49
|
-
};
|
|
31
|
+
`;
|
|
32
|
+
};
|
|
33
|
+
const fieldOptionsData = {
|
|
34
|
+
sorterOptions: [{ optionLabel: 'Expiry date' }, { optionLabel: 'Qualification name' }],
|
|
35
|
+
};
|
|
36
|
+
export const BasicSorter = TemplateSorter.bind({});
|
|
37
|
+
BasicSorter.args = {
|
|
38
|
+
fieldOptionsData: fieldOptionsData,
|
|
39
|
+
sorterKey: 'BasicDropdown',
|
|
40
|
+
defaultOption: 'Qualification name',
|
|
41
|
+
};
|
|
42
|
+
export const AnotherSorter = TemplateSorter.bind({});
|
|
43
|
+
AnotherSorter.args = {
|
|
44
|
+
fieldOptionsData: {
|
|
45
|
+
sorterOptions: [{ optionLabel: 'Name' }, { optionLabel: 'Date of Birth' }, { optionLabel: 'Job Role' }],
|
|
46
|
+
},
|
|
47
|
+
sorterKey: 'BasicDropdown',
|
|
48
|
+
defaultOption: 'Date of Birth',
|
|
49
|
+
};
|
package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css
CHANGED
|
@@ -218,6 +218,19 @@ input:focus-visible {
|
|
|
218
218
|
margin-top: 4px;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
label.inputBlock.readonly {
|
|
222
|
+
pointer-events: none;
|
|
223
|
+
user-select: none;
|
|
224
|
+
color: gray;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
input[readonly] {
|
|
228
|
+
cursor: default;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
user-select: none;
|
|
231
|
+
color: gray;
|
|
232
|
+
}
|
|
233
|
+
|
|
221
234
|
:host {
|
|
222
235
|
display: block;
|
|
223
236
|
}
|