@3t-transform/threeteeui 1.4.1 → 1.4.2
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_1_4_1.cjs.entry.js → tttx-button_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_4_1.cjs.entry.js → tttx-checkbox-group-caption_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_4_1.cjs.entry.js → tttx-checkbox-group-heading_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_4_1.cjs.entry.js → tttx-checkbox-group_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_4_1.cjs.entry.js → tttx-checkbox_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-data-pattern_1_4_1.cjs.entry.js → tttx-data-pattern_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-dialog-box_1_4_1.cjs.entry.js → tttx-dialog-box_1_4_2.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_4_1.cjs.entry.js → tttx-dialog_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_4_1.cjs.entry.js → tttx-expander_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_4_1_4.cjs.entry.js → tttx-filter_1_4_2_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_4_1.cjs.entry.js → tttx-form_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-icon_1_4_1.cjs.entry.js → tttx-icon_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_4_1.cjs.entry.js → tttx-keyvalue-block_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_4_1.cjs.entry.js → tttx-loading-spinner_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-multiselect-box_1_4_1.cjs.entry.js → tttx-multiselect-box_1_4_2.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-percentage-bar_1_4_1.cjs.entry.js → tttx-percentage-bar_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_4_1.cjs.entry.js → tttx-qrcode_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_4_1.cjs.entry.js → tttx-select-box_1_4_2.cjs.entry.js} +34 -23
- package/dist/cjs/tttx-standalone-input_1_4_2.cjs.entry.js +94 -0
- package/dist/cjs/{tttx-tabs_1_4_1.cjs.entry.js → tttx-tabs_1_4_2.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag_1_4_1.cjs.entry.js → tttx-tag_1_4_2.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-textarea_1_4_1.cjs.entry.js → tttx-textarea_1_4_2.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view_1_4_1.cjs.entry.js → tttx-tree-view_1_4_2.cjs.entry.js} +3 -3
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.css +28 -1
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +85 -22
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +33 -16
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +26 -26
- package/dist/components/index.js +26 -26
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-button_1_4_1.d.ts → tttx-button_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-button_1_4_1.js → tttx-button_1_4_2.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_4_1.js → tttx-checkbox-group-caption_1_4_2.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_4_1.js → tttx-checkbox-group-heading_1_4_2.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_4_1.js → tttx-checkbox-group_1_4_2.js} +5 -5
- package/dist/components/{tttx-expander_1_4_1.d.ts → tttx-checkbox_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_4_1.js → tttx-checkbox_1_4_2.js} +7 -7
- package/dist/components/tttx-data-pattern_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_4_1.js → tttx-data-pattern_1_4_2.js} +13 -13
- package/dist/components/{tttx-dialog-box_1_4_1.d.ts → tttx-dialog-box_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-dialog-box_1_4_1.js → tttx-dialog-box_1_4_2.js} +9 -9
- package/dist/components/{tttx-filter_1_4_1.d.ts → tttx-dialog_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_4_1.js → tttx-dialog_1_4_2.js} +8 -8
- package/dist/components/{tttx-checkbox_1_4_1.d.ts → tttx-expander_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-expander_1_4_1.js → tttx-expander_1_4_2.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-qrcode_1_4_1.d.ts → tttx-filter_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_4_1.js → tttx-filter_1_4_2.js} +2 -2
- package/dist/components/{tttx-icon_1_4_1.d.ts → tttx-form_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-form_1_4_1.js → tttx-form_1_4_2.js} +9 -9
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_4_1.d.ts → tttx-icon_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_4_1.js → tttx-icon_1_4_2.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_4_1.js → tttx-keyvalue-block_1_4_2.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-form_1_4_1.d.ts → tttx-list_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-list_1_4_1.js → tttx-list_1_4_2.js} +2 -2
- package/dist/components/tttx-loading-spinner_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_4_1.js → tttx-loading-spinner_1_4_2.js} +5 -5
- package/dist/components/tttx-multiselect-box_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_4_1.js → tttx-multiselect-box_1_4_2.js} +13 -13
- package/dist/components/tttx-percentage-bar_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_4_1.js → tttx-percentage-bar_1_4_2.js} +6 -6
- package/dist/components/{tttx-dialog_1_4_1.d.ts → tttx-qrcode_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_4_1.js → tttx-qrcode_1_4_2.js} +5 -5
- package/dist/components/tttx-select-box.js +41 -27
- package/dist/components/tttx-select-box_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_4_1.js → tttx-select-box_1_4_2.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_4_1.js → tttx-sorter_1_4_2.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_4_1.js → tttx-standalone-input_1_4_2.js} +2 -2
- package/dist/components/{tttx-tabs_1_4_1.d.ts → tttx-tabs_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_4_1.js → tttx-tabs_1_4_2.js} +9 -9
- package/dist/components/{tttx-tag_1_4_1.d.ts → tttx-tag_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_4_1.js → tttx-tag_1_4_2.js} +5 -5
- package/dist/components/tttx-textarea_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_4_1.js → tttx-textarea_1_4_2.js} +6 -6
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/{tttx-toolbar_1_4_1.d.ts → tttx-toolbar_1_4_2.d.ts} +4 -4
- package/dist/components/{tttx-toolbar_1_4_1.js → tttx-toolbar_1_4_2.js} +2 -2
- package/dist/components/tttx-tree-view_1_4_2.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_4_1.js → tttx-tree-view_1_4_2.js} +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_4_1.entry.js → tttx-button_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_4_1.entry.js → tttx-checkbox-group-caption_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_4_1.entry.js → tttx-checkbox-group-heading_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_4_1.entry.js → tttx-checkbox-group_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_4_1.entry.js → tttx-checkbox_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-data-pattern_1_4_1.entry.js → tttx-data-pattern_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-dialog-box_1_4_1.entry.js → tttx-dialog-box_1_4_2.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_4_1.entry.js → tttx-dialog_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_4_1.entry.js → tttx-expander_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_4_1_4.entry.js → tttx-filter_1_4_2_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_4_1.entry.js → tttx-form_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-icon_1_4_1.entry.js → tttx-icon_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_4_1.entry.js → tttx-keyvalue-block_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_4_1.entry.js → tttx-loading-spinner_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-multiselect-box_1_4_1.entry.js → tttx-multiselect-box_1_4_2.entry.js} +6 -6
- package/dist/esm/{tttx-percentage-bar_1_4_1.entry.js → tttx-percentage-bar_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_4_1.entry.js → tttx-qrcode_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_4_1.entry.js → tttx-select-box_1_4_2.entry.js} +34 -23
- package/dist/esm/tttx-standalone-input_1_4_2.entry.js +90 -0
- package/dist/esm/{tttx-tabs_1_4_1.entry.js → tttx-tabs_1_4_2.entry.js} +4 -4
- package/dist/esm/{tttx-tag_1_4_1.entry.js → tttx-tag_1_4_2.entry.js} +1 -1
- package/dist/esm/{tttx-textarea_1_4_1.entry.js → tttx-textarea_1_4_2.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view_1_4_1.entry.js → tttx-tree-view_1_4_2.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-0e515960.entry.js +1 -1
- package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
- package/dist/tttx/p-23f45005.entry.js +1 -1
- package/dist/tttx/p-3676cddd.entry.js +1 -1
- package/dist/tttx/p-56c8c353.entry.js +1 -1
- package/dist/tttx/p-59c7b049.entry.js +1 -1
- package/dist/tttx/p-5d2706b1.entry.js +1 -1
- package/dist/tttx/p-63ad6fb7.entry.js +1 -1
- package/dist/tttx/p-6b1c7a21.entry.js +1 -1
- package/dist/tttx/p-6deb8699.entry.js +1 -1
- package/dist/tttx/p-7077c8ed.entry.js +1 -0
- package/dist/tttx/p-796f699a.entry.js +1 -1
- package/dist/tttx/p-884f37d3.entry.js +1 -1
- package/dist/tttx/p-8b0b95b7.entry.js +1 -1
- package/dist/tttx/p-9434561e.entry.js +1 -1
- package/dist/tttx/p-983d63ff.entry.js +1 -1
- package/dist/tttx/p-a01e679a.entry.js +1 -1
- package/dist/tttx/p-a8e76e78.entry.js +1 -1
- package/dist/tttx/p-c08a54f9.entry.js +1 -1
- package/dist/tttx/p-c170e3b8.entry.js +1 -1
- package/dist/tttx/p-ee358ce4.entry.js +1 -1
- package/dist/tttx/p-f374e293.entry.js +1 -1
- package/dist/tttx/p-f4db1cf2.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +6 -3
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.stories.d.ts +17 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
- package/dist/types/components.d.ts +310 -304
- package/package.json +1 -1
- package/dist/cjs/tttx-standalone-input_1_4_1.cjs.entry.js +0 -94
- package/dist/components/tttx-checkbox-group-caption_1_4_1.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_4_1.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_4_1.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_4_1.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_4_1.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_4_1.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_4_1.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_4_1.d.ts +0 -11
- package/dist/components/tttx-select-box_1_4_1.d.ts +0 -11
- package/dist/components/tttx-sorter_1_4_1.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_4_1.d.ts +0 -11
- package/dist/components/tttx-textarea_1_4_1.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_4_1.d.ts +0 -11
- package/dist/esm/tttx-standalone-input_1_4_1.entry.js +0 -90
- package/dist/tttx/p-81aaafa0.entry.js +0 -1
|
@@ -65,7 +65,7 @@ const TttxKeyvalueBlock = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
65
65
|
return (h(Host, null, h("dl", { class: [this.horizontal ? 'horizontal' : undefined, this.spacedout ? ' spacedout' : undefined].join(' ').trim() }, this._elements)));
|
|
66
66
|
}
|
|
67
67
|
static get style() { return tttxKeyvalueBlockCss; }
|
|
68
|
-
}, [1, "tttx-keyvalue-
|
|
68
|
+
}, [1, "tttx-keyvalue-block_1_4_2", {
|
|
69
69
|
"keyvalues": [1],
|
|
70
70
|
"horizontal": [4],
|
|
71
71
|
"spacedout": [4],
|
|
@@ -75,9 +75,9 @@ function defineCustomElement$1() {
|
|
|
75
75
|
if (typeof customElements === "undefined") {
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
const components = ["tttx-keyvalue-
|
|
78
|
+
const components = ["tttx-keyvalue-block_1_4_2"];
|
|
79
79
|
components.forEach(tagName => { switch (tagName) {
|
|
80
|
-
case "tttx-keyvalue-
|
|
80
|
+
case "tttx-keyvalue-block_1_4_2":
|
|
81
81
|
if (!customElements.get(tagName)) {
|
|
82
82
|
customElements.define(tagName, TttxKeyvalueBlock);
|
|
83
83
|
}
|
|
@@ -85,7 +85,7 @@ function defineCustomElement$1() {
|
|
|
85
85
|
} });
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const
|
|
88
|
+
const TttxKeyvalueBlock_1_4_2 = TttxKeyvalueBlock;
|
|
89
89
|
const defineCustomElement = defineCustomElement$1;
|
|
90
90
|
|
|
91
|
-
export {
|
|
91
|
+
export { TttxKeyvalueBlock_1_4_2, defineCustomElement };
|
|
@@ -55,9 +55,9 @@ const TttxList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
55
55
|
else {
|
|
56
56
|
element = h("span", { class: "item-content" }, item.element);
|
|
57
57
|
}
|
|
58
|
-
return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-
|
|
58
|
+
return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_4_2", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
|
|
59
59
|
this.onRowCheckboxHandler(event, item);
|
|
60
|
-
} }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-
|
|
60
|
+
} }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_4_2", { class: "align-right", icon: item.icon, color: 'black' })))));
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
63
|
if (!this._data)
|
|
@@ -74,7 +74,7 @@ const TttxList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
74
74
|
"data": ["onDataChange"]
|
|
75
75
|
}; }
|
|
76
76
|
static get style() { return tttxListCss; }
|
|
77
|
-
}, [1, "tttx-
|
|
77
|
+
}, [1, "tttx-list_1_4_2", {
|
|
78
78
|
"data": [1025],
|
|
79
79
|
"name": [1],
|
|
80
80
|
"_data": [32]
|
|
@@ -83,14 +83,14 @@ function defineCustomElement() {
|
|
|
83
83
|
if (typeof customElements === "undefined") {
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
const components = ["tttx-
|
|
86
|
+
const components = ["tttx-list_1_4_2", "tttx-icon_1_4_2"];
|
|
87
87
|
components.forEach(tagName => { switch (tagName) {
|
|
88
|
-
case "tttx-
|
|
88
|
+
case "tttx-list_1_4_2":
|
|
89
89
|
if (!customElements.get(tagName)) {
|
|
90
90
|
customElements.define(tagName, TttxList);
|
|
91
91
|
}
|
|
92
92
|
break;
|
|
93
|
-
case "tttx-
|
|
93
|
+
case "tttx-icon_1_4_2":
|
|
94
94
|
if (!customElements.get(tagName)) {
|
|
95
95
|
defineCustomElement$1();
|
|
96
96
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface TttxList_1_4_2 extends Components.TttxList_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxList_1_4_2: {
|
|
5
|
+
prototype: TttxList_1_4_2;
|
|
6
|
+
new (): TttxList_1_4_2;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as TttxList, d as defineCustomElement$1 } from './tttx-list.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const TttxList_1_4_2 = TttxList;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxList_1_4_2, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxLoadingSpinner_1_4_2 extends Components.TttxLoadingSpinner_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxLoadingSpinner_1_4_2: {
|
|
5
|
+
prototype: TttxLoadingSpinner_1_4_2;
|
|
6
|
+
new (): TttxLoadingSpinner_1_4_2;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -19,7 +19,7 @@ const TttxLoadingSpinner = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
19
19
|
return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return tttxLoadingSpinnerCss; }
|
|
22
|
-
}, [1, "tttx-loading-
|
|
22
|
+
}, [1, "tttx-loading-spinner_1_4_2", {
|
|
23
23
|
"loadingMessage": [1028, "loading-message"],
|
|
24
24
|
"size": [1025]
|
|
25
25
|
}]);
|
|
@@ -27,9 +27,9 @@ function defineCustomElement$1() {
|
|
|
27
27
|
if (typeof customElements === "undefined") {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
const components = ["tttx-loading-
|
|
30
|
+
const components = ["tttx-loading-spinner_1_4_2"];
|
|
31
31
|
components.forEach(tagName => { switch (tagName) {
|
|
32
|
-
case "tttx-loading-
|
|
32
|
+
case "tttx-loading-spinner_1_4_2":
|
|
33
33
|
if (!customElements.get(tagName)) {
|
|
34
34
|
customElements.define(tagName, TttxLoadingSpinner);
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ function defineCustomElement$1() {
|
|
|
37
37
|
} });
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const
|
|
40
|
+
const TttxLoadingSpinner_1_4_2 = TttxLoadingSpinner;
|
|
41
41
|
const defineCustomElement = defineCustomElement$1;
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { TttxLoadingSpinner_1_4_2, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxMultiselectBox_1_4_2 extends Components.TttxMultiselectBox_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxMultiselectBox_1_4_2: {
|
|
5
|
+
prototype: TttxMultiselectBox_1_4_2;
|
|
6
|
+
new (): TttxMultiselectBox_1_4_2;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -88,11 +88,11 @@ const TttxMultiselectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
88
88
|
const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
|
|
89
89
|
// This is tested in e2e tests
|
|
90
90
|
/* istanbul ignore next */
|
|
91
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-
|
|
91
|
+
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_4_2", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
|
|
92
92
|
}
|
|
93
93
|
// This is tested in e2e tests
|
|
94
94
|
/* istanbul ignore next */
|
|
95
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-
|
|
95
|
+
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_4_2", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
|
|
96
96
|
}
|
|
97
97
|
// This is tested in e2e tests
|
|
98
98
|
/* istanbul ignore next */
|
|
@@ -124,18 +124,18 @@ const TttxMultiselectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
124
124
|
if (!this.unsavedSelectedItems)
|
|
125
125
|
this.unsavedSelectedItems = this.safelyCloneArray(this._optionsData);
|
|
126
126
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
127
|
-
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-
|
|
127
|
+
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_4_2", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
|
|
128
128
|
/* istanbul ignore next */
|
|
129
|
-
h("div", { class: "searchbox" }, h("tttx-standalone-
|
|
129
|
+
h("div", { class: "searchbox" }, h("tttx-standalone-input_1_4_2", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.unsavedSelectedItems.map((option) => {
|
|
130
130
|
return this.dropdownOption(option);
|
|
131
|
-
})), h("div", { class: 'footer' }, h("tttx-
|
|
131
|
+
})), h("div", { class: 'footer' }, h("tttx-button_1_4_2", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_4_2", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
|
|
132
132
|
}
|
|
133
133
|
get el() { return this; }
|
|
134
134
|
static get watchers() { return {
|
|
135
135
|
"optionsData": ["handleOptionsDataChange"]
|
|
136
136
|
}; }
|
|
137
137
|
static get style() { return tttxMultiselectBoxCss; }
|
|
138
|
-
}, [1, "tttx-multiselect-
|
|
138
|
+
}, [1, "tttx-multiselect-box_1_4_2", {
|
|
139
139
|
"optionsData": [1, "options-data"],
|
|
140
140
|
"label": [1],
|
|
141
141
|
"inline": [4],
|
|
@@ -151,24 +151,24 @@ function defineCustomElement$1() {
|
|
|
151
151
|
if (typeof customElements === "undefined") {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
const components = ["tttx-multiselect-
|
|
154
|
+
const components = ["tttx-multiselect-box_1_4_2", "tttx-button_1_4_2", "tttx-icon_1_4_2", "tttx-standalone-input_1_4_2"];
|
|
155
155
|
components.forEach(tagName => { switch (tagName) {
|
|
156
|
-
case "tttx-multiselect-
|
|
156
|
+
case "tttx-multiselect-box_1_4_2":
|
|
157
157
|
if (!customElements.get(tagName)) {
|
|
158
158
|
customElements.define(tagName, TttxMultiselectBox);
|
|
159
159
|
}
|
|
160
160
|
break;
|
|
161
|
-
case "tttx-
|
|
161
|
+
case "tttx-button_1_4_2":
|
|
162
162
|
if (!customElements.get(tagName)) {
|
|
163
163
|
defineCustomElement$4();
|
|
164
164
|
}
|
|
165
165
|
break;
|
|
166
|
-
case "tttx-
|
|
166
|
+
case "tttx-icon_1_4_2":
|
|
167
167
|
if (!customElements.get(tagName)) {
|
|
168
168
|
defineCustomElement$3();
|
|
169
169
|
}
|
|
170
170
|
break;
|
|
171
|
-
case "tttx-standalone-
|
|
171
|
+
case "tttx-standalone-input_1_4_2":
|
|
172
172
|
if (!customElements.get(tagName)) {
|
|
173
173
|
defineCustomElement$2();
|
|
174
174
|
}
|
|
@@ -176,7 +176,7 @@ function defineCustomElement$1() {
|
|
|
176
176
|
} });
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
const
|
|
179
|
+
const TttxMultiselectBox_1_4_2 = TttxMultiselectBox;
|
|
180
180
|
const defineCustomElement = defineCustomElement$1;
|
|
181
181
|
|
|
182
|
-
export {
|
|
182
|
+
export { TttxMultiselectBox_1_4_2, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxPercentageBar_1_4_2 extends Components.TttxPercentageBar_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxPercentageBar_1_4_2: {
|
|
5
|
+
prototype: TttxPercentageBar_1_4_2;
|
|
6
|
+
new (): TttxPercentageBar_1_4_2;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const tttxPercentageBarCss = ".sc-tttx-percentage-
|
|
3
|
+
const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_4_2-h{display:block}.progress.sc-tttx-percentage-bar_1_4_2{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_4_2 .bar.sc-tttx-percentage-bar_1_4_2{height:20px}";
|
|
4
4
|
|
|
5
5
|
const TttxPercentageBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -57,7 +57,7 @@ const TttxPercentageBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
57
57
|
return (h(Host, null, h("div", { class: "progress" }, h("div", { class: "bar", style: { 'background-color': this.getColour(), 'width': `${this.getWidth()}%` }, role: "progressbar", "aria-valuemin": this._min, "aria-valuemax": "100", "aria-valuenow": this._percentage, "aria-labelledby": this.labelid }))));
|
|
58
58
|
}
|
|
59
59
|
static get style() { return tttxPercentageBarCss; }
|
|
60
|
-
}, [2, "tttx-percentage-
|
|
60
|
+
}, [2, "tttx-percentage-bar_1_4_2", {
|
|
61
61
|
"percentage": [8],
|
|
62
62
|
"thresholds": [1],
|
|
63
63
|
"color": [1],
|
|
@@ -71,9 +71,9 @@ function defineCustomElement$1() {
|
|
|
71
71
|
if (typeof customElements === "undefined") {
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
const components = ["tttx-percentage-
|
|
74
|
+
const components = ["tttx-percentage-bar_1_4_2"];
|
|
75
75
|
components.forEach(tagName => { switch (tagName) {
|
|
76
|
-
case "tttx-percentage-
|
|
76
|
+
case "tttx-percentage-bar_1_4_2":
|
|
77
77
|
if (!customElements.get(tagName)) {
|
|
78
78
|
customElements.define(tagName, TttxPercentageBar);
|
|
79
79
|
}
|
|
@@ -81,7 +81,7 @@ function defineCustomElement$1() {
|
|
|
81
81
|
} });
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
const
|
|
84
|
+
const TttxPercentageBar_1_4_2 = TttxPercentageBar;
|
|
85
85
|
const defineCustomElement = defineCustomElement$1;
|
|
86
86
|
|
|
87
|
-
export {
|
|
87
|
+
export { TttxPercentageBar_1_4_2, defineCustomElement };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface TttxQrcode_1_4_2 extends Components.TttxQrcode_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxQrcode_1_4_2: {
|
|
5
|
+
prototype: TttxQrcode_1_4_2;
|
|
6
|
+
new (): TttxQrcode_1_4_2;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -36,7 +36,7 @@ const TttxQrCode = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
36
36
|
}
|
|
37
37
|
get hostElement() { return this; }
|
|
38
38
|
static get style() { return tttxQrcodeCss; }
|
|
39
|
-
}, [1, "tttx-
|
|
39
|
+
}, [1, "tttx-qrcode_1_4_2", {
|
|
40
40
|
"link": [1025],
|
|
41
41
|
"size": [1026]
|
|
42
42
|
}]);
|
|
@@ -44,9 +44,9 @@ function defineCustomElement$1() {
|
|
|
44
44
|
if (typeof customElements === "undefined") {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
const components = ["tttx-
|
|
47
|
+
const components = ["tttx-qrcode_1_4_2"];
|
|
48
48
|
components.forEach(tagName => { switch (tagName) {
|
|
49
|
-
case "tttx-
|
|
49
|
+
case "tttx-qrcode_1_4_2":
|
|
50
50
|
if (!customElements.get(tagName)) {
|
|
51
51
|
customElements.define(tagName, TttxQrCode);
|
|
52
52
|
}
|
|
@@ -54,7 +54,7 @@ function defineCustomElement$1() {
|
|
|
54
54
|
} });
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const TttxQrcode_1_4_2 = TttxQrCode;
|
|
58
58
|
const defineCustomElement = defineCustomElement$1;
|
|
59
59
|
|
|
60
|
-
export {
|
|
60
|
+
export { TttxQrcode_1_4_2, defineCustomElement };
|
|
@@ -3,7 +3,7 @@ import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js
|
|
|
3
3
|
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './tttx-standalone-input.js';
|
|
5
5
|
|
|
6
|
-
const tttxSelectBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:relative;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}";
|
|
6
|
+
const tttxSelectBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:relative;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}";
|
|
7
7
|
|
|
8
8
|
const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -19,6 +19,9 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
19
19
|
this.placeholder = '';
|
|
20
20
|
this.searchEnabled = undefined;
|
|
21
21
|
this.selectedValue = undefined;
|
|
22
|
+
this.showErrorMsg = undefined;
|
|
23
|
+
this.showErrorBubble = false;
|
|
24
|
+
this.errorMsg = undefined;
|
|
22
25
|
this.open = false;
|
|
23
26
|
this.selectedItem = undefined;
|
|
24
27
|
this.searchTerm = '';
|
|
@@ -26,8 +29,10 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
26
29
|
async componentWillLoad() {
|
|
27
30
|
if (this.optionsData) {
|
|
28
31
|
this.setOptionsData();
|
|
29
|
-
const matchingItems = this._optionsData.filter((item) => {
|
|
30
|
-
|
|
32
|
+
const matchingItems = this._optionsData.filter((item) => {
|
|
33
|
+
return item.value == this.selectedValue;
|
|
34
|
+
});
|
|
35
|
+
this.selectedItem = matchingItems.length > 0 ? matchingItems[0] : undefined;
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
async setOptionsData() {
|
|
@@ -64,41 +69,37 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
64
69
|
let title;
|
|
65
70
|
let subtitle;
|
|
66
71
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
67
|
-
const icon = h("tttx-
|
|
68
|
-
let chevron = h("div", { class:
|
|
72
|
+
const icon = h("tttx-icon_1_4_2", { icon: chevronIcon, color: "black" });
|
|
73
|
+
let chevron = h("div", { class: "dropdown-selector-chevron" }, icon);
|
|
69
74
|
if (!this.selectedItem) {
|
|
70
75
|
title = h("div", { class: "placeholder" }, this.placeholder);
|
|
71
|
-
return h(Fragment, null, title, chevron);
|
|
76
|
+
return (h(Fragment, null, title, chevron));
|
|
72
77
|
}
|
|
73
78
|
else if (this.selectedItem.html) {
|
|
74
79
|
title = h("div", { title: this.selectedItem.label, class: "truncated-text", innerHTML: this.selectedItem.html });
|
|
75
|
-
return h(Fragment, null, title, chevron);
|
|
80
|
+
return (h(Fragment, null, title, chevron));
|
|
76
81
|
}
|
|
77
82
|
else {
|
|
78
|
-
title = h("div", { title: this.selectedItem.label, class: "truncated-text" }, this.selectedItem.label);
|
|
83
|
+
title = (h("div", { title: this.selectedItem.label, class: "truncated-text" }, this.selectedItem.label));
|
|
79
84
|
if (this.selectedItem.description) {
|
|
80
|
-
subtitle = h("div", { class: "description" }, h("p", null, this.selectedItem.description));
|
|
81
|
-
chevron = h("div", { class:
|
|
85
|
+
subtitle = (h("div", { class: "description" }, h("p", null, this.selectedItem.description)));
|
|
86
|
+
chevron = h("div", { class: "dropdown-selector-chevron-offset" }, icon);
|
|
82
87
|
}
|
|
83
|
-
return h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), chevron);
|
|
88
|
+
return (h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), chevron));
|
|
84
89
|
}
|
|
85
90
|
}
|
|
86
91
|
dropdownOption(option) {
|
|
87
|
-
/* istanbul ignore next */
|
|
88
92
|
const hideOption = this.searchEnabled && option.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()) === -1;
|
|
89
93
|
const selected = this.selectedItem && option.value === this.selectedItem.value;
|
|
90
94
|
if (option.html) {
|
|
91
95
|
const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
|
|
92
|
-
/* istanbul ignore next */
|
|
93
96
|
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label, innerHTML: sanitisedHTML }));
|
|
94
97
|
}
|
|
95
98
|
else if (option.description) {
|
|
96
99
|
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label, h("div", { class: "description-dd" }, h("p", null, option.description))));
|
|
97
100
|
}
|
|
98
|
-
/* istanbul ignore next */
|
|
99
101
|
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label));
|
|
100
102
|
}
|
|
101
|
-
/* istanbul ignore next */
|
|
102
103
|
handleSearchInput(event) {
|
|
103
104
|
const target = event.target;
|
|
104
105
|
this.searchTerm = target.value;
|
|
@@ -107,38 +108,51 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
107
108
|
const dropdownSelector = this.el.shadowRoot.querySelector('.dropdown-selector');
|
|
108
109
|
const bottomPosY = this.dropdownSelector.getBoundingClientRect().bottom;
|
|
109
110
|
// (Max list height OR 31px * number of items) + 52px for search bar + 8px padding at bottom
|
|
110
|
-
let dropdownMenuMaxHeight = Math.min(
|
|
111
|
+
let dropdownMenuMaxHeight = Math.min(368, 36 * this._optionsData.length) + 8;
|
|
111
112
|
if (this.searchEnabled)
|
|
112
113
|
dropdownMenuMaxHeight += 52;
|
|
113
114
|
const clientRectangle = dropdownSelector.getBoundingClientRect();
|
|
114
115
|
if (bottomPosY + dropdownMenuMaxHeight > window.innerHeight) {
|
|
115
|
-
this.bodyOffset = {
|
|
116
|
+
this.bodyOffset = {
|
|
117
|
+
top: `${window.innerHeight - (dropdownMenuMaxHeight + 16)}px`,
|
|
118
|
+
position: 'fixed',
|
|
119
|
+
width: `${dropdownSelector.offsetWidth}px`,
|
|
120
|
+
zIndex: '10',
|
|
121
|
+
};
|
|
116
122
|
}
|
|
117
123
|
else {
|
|
118
|
-
this.bodyOffset = {
|
|
124
|
+
this.bodyOffset = {
|
|
125
|
+
position: 'fixed',
|
|
126
|
+
left: clientRectangle.left,
|
|
127
|
+
top: clientRectangle.top,
|
|
128
|
+
width: clientRectangle.width - 2 + 'px',
|
|
129
|
+
zIndex: '10',
|
|
130
|
+
};
|
|
119
131
|
}
|
|
120
132
|
}
|
|
121
133
|
render() {
|
|
122
134
|
if (!this.optionsData)
|
|
123
135
|
return;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
h("div", { class: "searchbox" }, h("tttx-standalone-input_1_4_1", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this) })), h("div", { class: "dropdown-options-list" }, this._optionsData.map((option) => {
|
|
136
|
+
const invalidClass = this.showErrorMsg ? 'invalid' : '';
|
|
137
|
+
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-input_1_4_2", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list" }, this._optionsData.map((option) => {
|
|
127
138
|
return this.dropdownOption(option);
|
|
128
|
-
}))))))));
|
|
139
|
+
}))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_4_2", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
|
|
129
140
|
}
|
|
130
141
|
get el() { return this; }
|
|
131
142
|
static get watchers() { return {
|
|
132
143
|
"optionsData": ["setOptionsData"]
|
|
133
144
|
}; }
|
|
134
145
|
static get style() { return tttxSelectBoxCss; }
|
|
135
|
-
}, [1, "tttx-select-
|
|
146
|
+
}, [1, "tttx-select-box_1_4_2", {
|
|
136
147
|
"optionsData": [1, "options-data"],
|
|
137
148
|
"label": [1],
|
|
138
149
|
"inline": [4],
|
|
139
150
|
"placeholder": [1],
|
|
140
151
|
"searchEnabled": [4, "search-enabled"],
|
|
141
152
|
"selectedValue": [1, "selected-value"],
|
|
153
|
+
"showErrorMsg": [4, "show-error-msg"],
|
|
154
|
+
"showErrorBubble": [4, "show-error-bubble"],
|
|
155
|
+
"errorMsg": [1, "error-msg"],
|
|
142
156
|
"open": [32],
|
|
143
157
|
"selectedItem": [32],
|
|
144
158
|
"searchTerm": [32],
|
|
@@ -148,19 +162,19 @@ function defineCustomElement() {
|
|
|
148
162
|
if (typeof customElements === "undefined") {
|
|
149
163
|
return;
|
|
150
164
|
}
|
|
151
|
-
const components = ["tttx-select-
|
|
165
|
+
const components = ["tttx-select-box_1_4_2", "tttx-icon_1_4_2", "tttx-standalone-input_1_4_2"];
|
|
152
166
|
components.forEach(tagName => { switch (tagName) {
|
|
153
|
-
case "tttx-select-
|
|
167
|
+
case "tttx-select-box_1_4_2":
|
|
154
168
|
if (!customElements.get(tagName)) {
|
|
155
169
|
customElements.define(tagName, TttxSelectBox);
|
|
156
170
|
}
|
|
157
171
|
break;
|
|
158
|
-
case "tttx-
|
|
172
|
+
case "tttx-icon_1_4_2":
|
|
159
173
|
if (!customElements.get(tagName)) {
|
|
160
174
|
defineCustomElement$2();
|
|
161
175
|
}
|
|
162
176
|
break;
|
|
163
|
-
case "tttx-standalone-
|
|
177
|
+
case "tttx-standalone-input_1_4_2":
|
|
164
178
|
if (!customElements.get(tagName)) {
|
|
165
179
|
defineCustomElement$1();
|
|
166
180
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxSelectBox_1_4_2 extends Components.TttxSelectBox_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxSelectBox_1_4_2: {
|
|
5
|
+
prototype: TttxSelectBox_1_4_2;
|
|
6
|
+
new (): TttxSelectBox_1_4_2;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as TttxSelectBox, d as defineCustomElement$1 } from './tttx-select-box.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const TttxSelectBox_1_4_2 = TttxSelectBox;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxSelectBox_1_4_2, defineCustomElement };
|
|
@@ -106,13 +106,13 @@ const TttxSorter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
106
106
|
const selectedOption = this.selectedField;
|
|
107
107
|
const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
|
|
108
108
|
const sorterKey = `sorter__${this.sorterKey}`;
|
|
109
|
-
return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-
|
|
109
|
+
return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon_1_4_2", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_4_2", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
|
|
110
110
|
return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
|
|
111
111
|
}))))));
|
|
112
112
|
}
|
|
113
113
|
get el() { return this; }
|
|
114
114
|
static get style() { return tttxSorterCss; }
|
|
115
|
-
}, [1, "tttx-
|
|
115
|
+
}, [1, "tttx-sorter_1_4_2", {
|
|
116
116
|
"sorterKey": [1, "sorter-key"],
|
|
117
117
|
"defaultSortDirection": [1, "default-sort-direction"],
|
|
118
118
|
"fieldOptionsData": [1, "field-options-data"],
|
|
@@ -126,14 +126,14 @@ function defineCustomElement() {
|
|
|
126
126
|
if (typeof customElements === "undefined") {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
const components = ["tttx-
|
|
129
|
+
const components = ["tttx-sorter_1_4_2", "tttx-icon_1_4_2"];
|
|
130
130
|
components.forEach(tagName => { switch (tagName) {
|
|
131
|
-
case "tttx-
|
|
131
|
+
case "tttx-sorter_1_4_2":
|
|
132
132
|
if (!customElements.get(tagName)) {
|
|
133
133
|
customElements.define(tagName, TttxSorter);
|
|
134
134
|
}
|
|
135
135
|
break;
|
|
136
|
-
case "tttx-
|
|
136
|
+
case "tttx-icon_1_4_2":
|
|
137
137
|
if (!customElements.get(tagName)) {
|
|
138
138
|
defineCustomElement$1();
|
|
139
139
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxSorter_1_4_2 extends Components.TttxSorter_1_4_2, HTMLElement {}
|
|
4
|
+
export const TttxSorter_1_4_2: {
|
|
5
|
+
prototype: TttxSorter_1_4_2;
|
|
6
|
+
new (): TttxSorter_1_4_2;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as TttxSorter, d as defineCustomElement$1 } from './tttx-sorter.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const TttxSorter_1_4_2 = TttxSorter;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxSorter_1_4_2, defineCustomElement };
|