@3t-transform/threeteeui 1.3.0 → 1.4.1
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_3_0.cjs.entry.js → tttx-button_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_3_0.cjs.entry.js → tttx-checkbox-group-caption_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_3_0.cjs.entry.js → tttx-checkbox-group-heading_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_3_0.cjs.entry.js → tttx-checkbox-group_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_3_0.cjs.entry.js → tttx-checkbox_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-data-pattern_1_3_0.cjs.entry.js → tttx-data-pattern_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-dialog-box_1_3_0.cjs.entry.js → tttx-dialog-box_1_4_1.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_3_0.cjs.entry.js → tttx-dialog_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_3_0.cjs.entry.js → tttx-expander_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_3_0_4.cjs.entry.js → tttx-filter_1_4_1_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_3_0.cjs.entry.js → tttx-form_1_4_1.cjs.entry.js} +77 -11
- package/dist/cjs/{tttx-icon_1_3_0.cjs.entry.js → tttx-icon_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_3_0.cjs.entry.js → tttx-keyvalue-block_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_3_0.cjs.entry.js → tttx-loading-spinner_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-multiselect-box_1_3_0.cjs.entry.js → tttx-multiselect-box_1_4_1.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-percentage-bar_1_3_0.cjs.entry.js → tttx-percentage-bar_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_3_0.cjs.entry.js → tttx-qrcode_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_3_0.cjs.entry.js → tttx-select-box_1_4_1.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-standalone-input_1_4_1.cjs.entry.js +94 -0
- package/dist/cjs/{tttx-tabs_1_3_0.cjs.entry.js → tttx-tabs_1_4_1.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag_1_3_0.cjs.entry.js → tttx-tag_1_4_1.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-textarea_1_3_0.cjs.entry.js → tttx-textarea_1_4_1.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view_1_3_0.cjs.entry.js → tttx-tree-view_1_4_1.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/lib/validityCheck.js +9 -8
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +28 -13
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +206 -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.js +3 -3
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -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.css +28 -13
- 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_3_0.d.ts → tttx-button_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-button_1_3_0.js → tttx-button_1_4_1.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_3_0.js → tttx-checkbox-group-caption_1_4_1.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_3_0.js → tttx-checkbox-group-heading_1_4_1.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_3_0.js → tttx-checkbox-group_1_4_1.js} +5 -5
- package/dist/components/{tttx-expander_1_3_0.d.ts → tttx-checkbox_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_3_0.js → tttx-checkbox_1_4_1.js} +7 -7
- package/dist/components/tttx-data-pattern_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_3_0.js → tttx-data-pattern_1_4_1.js} +13 -13
- package/dist/components/{tttx-dialog-box_1_3_0.d.ts → tttx-dialog-box_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-dialog-box_1_3_0.js → tttx-dialog-box_1_4_1.js} +9 -9
- package/dist/components/{tttx-filter_1_3_0.d.ts → tttx-dialog_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_3_0.js → tttx-dialog_1_4_1.js} +8 -8
- package/dist/components/{tttx-checkbox_1_3_0.d.ts → tttx-expander_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-expander_1_3_0.js → tttx-expander_1_4_1.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-qrcode_1_3_0.d.ts → tttx-filter_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_3_0.js → tttx-filter_1_4_1.js} +2 -2
- package/dist/components/{tttx-icon_1_3_0.d.ts → tttx-form_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-form_1_3_0.js → tttx-form_1_4_1.js} +89 -19
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_3_0.d.ts → tttx-icon_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_3_0.js → tttx-icon_1_4_1.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_3_0.js → tttx-keyvalue-block_1_4_1.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-form_1_3_0.d.ts → tttx-list_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-list_1_3_0.js → tttx-list_1_4_1.js} +2 -2
- package/dist/components/tttx-loading-spinner_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_3_0.js → tttx-loading-spinner_1_4_1.js} +5 -5
- package/dist/components/tttx-multiselect-box_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_3_0.js → tttx-multiselect-box_1_4_1.js} +13 -13
- package/dist/components/tttx-percentage-bar_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_3_0.js → tttx-percentage-bar_1_4_1.js} +6 -6
- package/dist/components/{tttx-dialog_1_3_0.d.ts → tttx-qrcode_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_3_0.js → tttx-qrcode_1_4_1.js} +5 -5
- package/dist/components/tttx-select-box.js +7 -7
- package/dist/components/tttx-select-box_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_3_0.js → tttx-select-box_1_4_1.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_3_0.js → tttx-sorter_1_4_1.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_3_0.js → tttx-standalone-input_1_4_1.js} +2 -2
- package/dist/components/{tttx-tabs_1_3_0.d.ts → tttx-tabs_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_3_0.js → tttx-tabs_1_4_1.js} +9 -9
- package/dist/components/{tttx-tag_1_3_0.d.ts → tttx-tag_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_3_0.js → tttx-tag_1_4_1.js} +5 -5
- package/dist/components/tttx-textarea_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_3_0.js → tttx-textarea_1_4_1.js} +6 -6
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/{tttx-toolbar_1_3_0.d.ts → tttx-toolbar_1_4_1.d.ts} +4 -4
- package/dist/components/{tttx-toolbar_1_3_0.js → tttx-toolbar_1_4_1.js} +2 -2
- package/dist/components/tttx-tree-view_1_4_1.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_3_0.js → tttx-tree-view_1_4_1.js} +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_3_0.entry.js → tttx-button_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_3_0.entry.js → tttx-checkbox-group-caption_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_3_0.entry.js → tttx-checkbox-group-heading_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_3_0.entry.js → tttx-checkbox-group_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_3_0.entry.js → tttx-checkbox_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-data-pattern_1_3_0.entry.js → tttx-data-pattern_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-dialog-box_1_3_0.entry.js → tttx-dialog-box_1_4_1.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_3_0.entry.js → tttx-dialog_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_3_0.entry.js → tttx-expander_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_3_0_4.entry.js → tttx-filter_1_4_1_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_3_0.entry.js → tttx-form_1_4_1.entry.js} +77 -11
- package/dist/esm/{tttx-icon_1_3_0.entry.js → tttx-icon_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_3_0.entry.js → tttx-keyvalue-block_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_3_0.entry.js → tttx-loading-spinner_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-multiselect-box_1_3_0.entry.js → tttx-multiselect-box_1_4_1.entry.js} +6 -6
- package/dist/esm/{tttx-percentage-bar_1_3_0.entry.js → tttx-percentage-bar_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_3_0.entry.js → tttx-qrcode_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_3_0.entry.js → tttx-select-box_1_4_1.entry.js} +3 -3
- package/dist/esm/tttx-standalone-input_1_4_1.entry.js +90 -0
- package/dist/esm/{tttx-tabs_1_3_0.entry.js → tttx-tabs_1_4_1.entry.js} +4 -4
- package/dist/esm/{tttx-tag_1_3_0.entry.js → tttx-tag_1_4_1.entry.js} +1 -1
- package/dist/esm/{tttx-textarea_1_3_0.entry.js → tttx-textarea_1_4_1.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view_1_3_0.entry.js → tttx-tree-view_1_4_1.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-796f699a.entry.js +1 -1
- package/dist/tttx/p-81aaafa0.entry.js +1 -1
- package/dist/tttx/p-884f37d3.entry.js +1 -1
- package/dist/tttx/p-8b0b95b7.entry.js +1 -0
- 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 -0
- 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-form/tttx-form.d.ts +22 -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 +325 -304
- package/package.json +1 -1
- package/dist/cjs/tttx-standalone-input_1_3_0.cjs.entry.js +0 -94
- package/dist/components/tttx-checkbox-group-caption_1_3_0.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_3_0.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_3_0.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_3_0.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_3_0.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_3_0.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_3_0.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_3_0.d.ts +0 -11
- package/dist/components/tttx-select-box_1_3_0.d.ts +0 -11
- package/dist/components/tttx-sorter_1_3_0.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_3_0.d.ts +0 -11
- package/dist/components/tttx-textarea_1_3_0.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_3_0.d.ts +0 -11
- package/dist/esm/tttx-standalone-input_1_3_0.entry.js +0 -90
- package/dist/tttx/p-822ec9dc.entry.js +0 -1
- package/dist/tttx/p-fe967031.entry.js +0 -1
|
@@ -30,13 +30,13 @@ const TttxCheckbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
30
30
|
render() {
|
|
31
31
|
const checkBoxIcon = this.checked ? 'check_box' : 'check_box_outline_blank';
|
|
32
32
|
const renderedIcon = this.indeterminate ? 'indeterminate_check_box' : checkBoxIcon;
|
|
33
|
-
return (h(Host, null, h("label", { class: `tttx-checkbox ${this.inline ? '--inline' : ''}` }, h("input", { class: "tttx-checkbox__input", type: "checkbox", id: this.checkboxId, checked: this.checked, ref: (el) => this.checkbox = el }), h("tttx-
|
|
33
|
+
return (h(Host, null, h("label", { class: `tttx-checkbox ${this.inline ? '--inline' : ''}` }, h("input", { class: "tttx-checkbox__input", type: "checkbox", id: this.checkboxId, checked: this.checked, ref: (el) => this.checkbox = el }), h("tttx-icon_1_4_1", { color: this.checked ? 'blue' : 'grey', icon: renderedIcon, onClick: this.onClick.bind(this) }), h("span", { class: "tttx-checkbox__label" }, this.label))));
|
|
34
34
|
}
|
|
35
35
|
static get watchers() { return {
|
|
36
36
|
"indeterminate": ["watchIndeterminateChange"]
|
|
37
37
|
}; }
|
|
38
38
|
static get style() { return tttxCheckboxCss; }
|
|
39
|
-
}, [0, "tttx-
|
|
39
|
+
}, [0, "tttx-checkbox_1_4_1", {
|
|
40
40
|
"checkboxId": [1, "checkbox-id"],
|
|
41
41
|
"label": [1],
|
|
42
42
|
"inline": [4],
|
|
@@ -47,14 +47,14 @@ function defineCustomElement$1() {
|
|
|
47
47
|
if (typeof customElements === "undefined") {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
const components = ["tttx-
|
|
50
|
+
const components = ["tttx-checkbox_1_4_1", "tttx-icon_1_4_1"];
|
|
51
51
|
components.forEach(tagName => { switch (tagName) {
|
|
52
|
-
case "tttx-
|
|
52
|
+
case "tttx-checkbox_1_4_1":
|
|
53
53
|
if (!customElements.get(tagName)) {
|
|
54
54
|
customElements.define(tagName, TttxCheckbox);
|
|
55
55
|
}
|
|
56
56
|
break;
|
|
57
|
-
case "tttx-
|
|
57
|
+
case "tttx-icon_1_4_1":
|
|
58
58
|
if (!customElements.get(tagName)) {
|
|
59
59
|
defineCustomElement$2();
|
|
60
60
|
}
|
|
@@ -62,7 +62,7 @@ function defineCustomElement$1() {
|
|
|
62
62
|
} });
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
const
|
|
65
|
+
const TttxCheckbox_1_4_1 = TttxCheckbox;
|
|
66
66
|
const defineCustomElement = defineCustomElement$1;
|
|
67
67
|
|
|
68
|
-
export {
|
|
68
|
+
export { TttxCheckbox_1_4_1, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxDataPattern_1_4_1 extends Components.TttxDataPattern_1_4_1, HTMLElement {}
|
|
4
|
+
export const TttxDataPattern_1_4_1: {
|
|
5
|
+
prototype: TttxDataPattern_1_4_1;
|
|
6
|
+
new (): TttxDataPattern_1_4_1;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -20,10 +20,10 @@ const TttxDataPattern = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
20
20
|
this.filterheader = 'Filter';
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, null, h("div", { class: "container" }, h("tttx-
|
|
23
|
+
return (h(Host, null, h("div", { class: "container" }, h("tttx-toolbar_1_4_1", { border: true }, h("span", { slot: "before" }, h("tttx-sorter_1_4_1", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorteroptions, defaultOption: "Sort by" }), h("tttx-filter_1_4_1", { "filter-options": JSON.stringify(this.filteroptions), showSelectAll: false, "show-option-icons": true, "filter-header": this.filterheader, "filter-key": "data-pattern-list" })), h("span", { slot: "after" }, h("tttx-standalone-input_1_4_1", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: "Search", type: "text", maxlength: 30 }))), h("tttx-toolbar_1_4_1", { border: false }, h("span", { slot: "before" }, h("tttx-button_1_4_1", { design: "primary", icon: "add" }, "Add"))), h("tttx-list_1_4_1", { data: this.data }))));
|
|
24
24
|
}
|
|
25
25
|
static get style() { return tttxDataPatternCss; }
|
|
26
|
-
}, [1, "tttx-data-
|
|
26
|
+
}, [1, "tttx-data-pattern_1_4_1", {
|
|
27
27
|
"data": [1],
|
|
28
28
|
"sorteroptions": [1],
|
|
29
29
|
"filteroptions": [1],
|
|
@@ -33,44 +33,44 @@ function defineCustomElement$1() {
|
|
|
33
33
|
if (typeof customElements === "undefined") {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
const components = ["tttx-data-
|
|
36
|
+
const components = ["tttx-data-pattern_1_4_1", "tttx-button_1_4_1", "tttx-filter_1_4_1", "tttx-icon_1_4_1", "tttx-list_1_4_1", "tttx-sorter_1_4_1", "tttx-standalone-input_1_4_1", "tttx-toolbar_1_4_1"];
|
|
37
37
|
components.forEach(tagName => { switch (tagName) {
|
|
38
|
-
case "tttx-data-
|
|
38
|
+
case "tttx-data-pattern_1_4_1":
|
|
39
39
|
if (!customElements.get(tagName)) {
|
|
40
40
|
customElements.define(tagName, TttxDataPattern);
|
|
41
41
|
}
|
|
42
42
|
break;
|
|
43
|
-
case "tttx-
|
|
43
|
+
case "tttx-button_1_4_1":
|
|
44
44
|
if (!customElements.get(tagName)) {
|
|
45
45
|
defineCustomElement$8();
|
|
46
46
|
}
|
|
47
47
|
break;
|
|
48
|
-
case "tttx-
|
|
48
|
+
case "tttx-filter_1_4_1":
|
|
49
49
|
if (!customElements.get(tagName)) {
|
|
50
50
|
defineCustomElement$7();
|
|
51
51
|
}
|
|
52
52
|
break;
|
|
53
|
-
case "tttx-
|
|
53
|
+
case "tttx-icon_1_4_1":
|
|
54
54
|
if (!customElements.get(tagName)) {
|
|
55
55
|
defineCustomElement$6();
|
|
56
56
|
}
|
|
57
57
|
break;
|
|
58
|
-
case "tttx-
|
|
58
|
+
case "tttx-list_1_4_1":
|
|
59
59
|
if (!customElements.get(tagName)) {
|
|
60
60
|
defineCustomElement$5();
|
|
61
61
|
}
|
|
62
62
|
break;
|
|
63
|
-
case "tttx-
|
|
63
|
+
case "tttx-sorter_1_4_1":
|
|
64
64
|
if (!customElements.get(tagName)) {
|
|
65
65
|
defineCustomElement$4();
|
|
66
66
|
}
|
|
67
67
|
break;
|
|
68
|
-
case "tttx-standalone-
|
|
68
|
+
case "tttx-standalone-input_1_4_1":
|
|
69
69
|
if (!customElements.get(tagName)) {
|
|
70
70
|
defineCustomElement$3();
|
|
71
71
|
}
|
|
72
72
|
break;
|
|
73
|
-
case "tttx-
|
|
73
|
+
case "tttx-toolbar_1_4_1":
|
|
74
74
|
if (!customElements.get(tagName)) {
|
|
75
75
|
defineCustomElement$2();
|
|
76
76
|
}
|
|
@@ -78,7 +78,7 @@ function defineCustomElement$1() {
|
|
|
78
78
|
} });
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
const
|
|
81
|
+
const TttxDataPattern_1_4_1 = TttxDataPattern;
|
|
82
82
|
const defineCustomElement = defineCustomElement$1;
|
|
83
83
|
|
|
84
|
-
export {
|
|
84
|
+
export { TttxDataPattern_1_4_1, 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 TttxDialogBox_1_4_1 extends Components.TttxDialogBox_1_4_1, HTMLElement {}
|
|
4
|
+
export const TttxDialogBox_1_4_1: {
|
|
5
|
+
prototype: TttxDialogBox_1_4_1;
|
|
6
|
+
new (): TttxDialogBox_1_4_1;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -55,7 +55,7 @@ const TttxDialogBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
55
55
|
const iconColor = header.iconColor;
|
|
56
56
|
const iconEnabled = header.hasIcon ? true : false;
|
|
57
57
|
const closeEnabled = header.hasClose ? true : false;
|
|
58
|
-
return (h("div", { class: "dialog-box-header" }, iconEnabled && h("tttx-
|
|
58
|
+
return (h("div", { class: "dialog-box-header" }, iconEnabled && h("tttx-icon_1_4_1", { class: "dialog-box-icon", icon: iconName, color: iconColor }), h("h3", { class: "dialog-box-title" }, title), closeEnabled && (h("div", { class: "dialog-box-align-right close-button", onClick: () => this.onCloseClickHandler() }, h("tttx-icon_1_4_1", { class: "dialog-box-icon-close dialog-box-clickable", icon: "close", color: "black" })))));
|
|
59
59
|
}
|
|
60
60
|
renderContent(content) {
|
|
61
61
|
if (content.isCustomHtml) {
|
|
@@ -72,7 +72,7 @@ const TttxDialogBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
72
72
|
const button2Enabled = button.length > 1;
|
|
73
73
|
const button3Enabled = button.length == 3;
|
|
74
74
|
const isMobile = this.elementSize === 'mobile';
|
|
75
|
-
return (h("div", { class: "dialog-box-footer" }, h("div", { class: "dialog-box-align-right" }, button3Enabled && (h("tttx-
|
|
75
|
+
return (h("div", { class: "dialog-box-footer" }, h("div", { class: "dialog-box-align-right" }, button3Enabled && (h("tttx-button_1_4_1", { class: "dialog-box-spacing-button", onClick: () => this.onButtonClickHandler(3), design: button[2].type, notext: isMobile, icon: button[2].icon }, !isMobile && button[2].name)), button2Enabled && (h("tttx-button_1_4_1", { class: "dialog-box-spacing-button", onClick: () => this.onButtonClickHandler(2), design: button[1].type, icon: button[1].icon }, button[1].name)), button1Enabled && (h("tttx-button_1_4_1", { onClick: () => this.onButtonClickHandler(1), design: button[0].type, icon: button[0].icon }, button[0].name)))));
|
|
76
76
|
}
|
|
77
77
|
componentWillLoad() {
|
|
78
78
|
if (window.innerWidth < 698) {
|
|
@@ -95,7 +95,7 @@ const TttxDialogBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
95
95
|
}
|
|
96
96
|
get el() { return this; }
|
|
97
97
|
static get style() { return tttxDialogBoxCss; }
|
|
98
|
-
}, [1, "tttx-dialog-
|
|
98
|
+
}, [1, "tttx-dialog-box_1_4_1", {
|
|
99
99
|
"data": [1025],
|
|
100
100
|
"size": [1],
|
|
101
101
|
"open": [1028],
|
|
@@ -106,19 +106,19 @@ function defineCustomElement$1() {
|
|
|
106
106
|
if (typeof customElements === "undefined") {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
const components = ["tttx-dialog-
|
|
109
|
+
const components = ["tttx-dialog-box_1_4_1", "tttx-button_1_4_1", "tttx-icon_1_4_1"];
|
|
110
110
|
components.forEach(tagName => { switch (tagName) {
|
|
111
|
-
case "tttx-dialog-
|
|
111
|
+
case "tttx-dialog-box_1_4_1":
|
|
112
112
|
if (!customElements.get(tagName)) {
|
|
113
113
|
customElements.define(tagName, TttxDialogBox);
|
|
114
114
|
}
|
|
115
115
|
break;
|
|
116
|
-
case "tttx-
|
|
116
|
+
case "tttx-button_1_4_1":
|
|
117
117
|
if (!customElements.get(tagName)) {
|
|
118
118
|
defineCustomElement$3();
|
|
119
119
|
}
|
|
120
120
|
break;
|
|
121
|
-
case "tttx-
|
|
121
|
+
case "tttx-icon_1_4_1":
|
|
122
122
|
if (!customElements.get(tagName)) {
|
|
123
123
|
defineCustomElement$2();
|
|
124
124
|
}
|
|
@@ -126,7 +126,7 @@ function defineCustomElement$1() {
|
|
|
126
126
|
} });
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
const
|
|
129
|
+
const TttxDialogBox_1_4_1 = TttxDialogBox;
|
|
130
130
|
const defineCustomElement = defineCustomElement$1;
|
|
131
131
|
|
|
132
|
-
export {
|
|
132
|
+
export { TttxDialogBox_1_4_1, 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 TttxDialog_1_4_1 extends Components.TttxDialog_1_4_1, HTMLElement {}
|
|
4
|
+
export const TttxDialog_1_4_1: {
|
|
5
|
+
prototype: TttxDialog_1_4_1;
|
|
6
|
+
new (): TttxDialog_1_4_1;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -50,7 +50,7 @@ const TttxDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
50
50
|
renderHeader() {
|
|
51
51
|
const iconEnabled = typeof this.type !== 'undefined';
|
|
52
52
|
const { iconName, iconColor } = this.headerIconDetails(iconEnabled);
|
|
53
|
-
return (h("div", { class: `padding header ${this.type || ''}` }, iconEnabled && h("tttx-
|
|
53
|
+
return (h("div", { class: `padding header ${this.type || ''}` }, iconEnabled && h("tttx-icon_1_4_1", { class: "icon", icon: iconName, color: iconColor }), h("h3", { class: "title", title: this.header }, this.header), this.closeEnabled && (h("tttx-button_1_4_1", { class: "align-right close-button", design: "borderless-circle", icon: "close", color: "black", notext: true, onClick: () => this.onCloseClickHandler() }))));
|
|
54
54
|
}
|
|
55
55
|
body() {
|
|
56
56
|
return (h("div", { class: `body ${!this.allowOverflow ? 'overflow-hidden' : ''}` }, h("span", { class: "body-content" }, h("slot", null))));
|
|
@@ -76,7 +76,7 @@ const TttxDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
76
76
|
}
|
|
77
77
|
get el() { return this; }
|
|
78
78
|
static get style() { return tttxDialogCss; }
|
|
79
|
-
}, [1, "tttx-
|
|
79
|
+
}, [1, "tttx-dialog_1_4_1", {
|
|
80
80
|
"header": [1],
|
|
81
81
|
"type": [1],
|
|
82
82
|
"size": [1],
|
|
@@ -89,19 +89,19 @@ function defineCustomElement$1() {
|
|
|
89
89
|
if (typeof customElements === "undefined") {
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
const components = ["tttx-
|
|
92
|
+
const components = ["tttx-dialog_1_4_1", "tttx-button_1_4_1", "tttx-icon_1_4_1"];
|
|
93
93
|
components.forEach(tagName => { switch (tagName) {
|
|
94
|
-
case "tttx-
|
|
94
|
+
case "tttx-dialog_1_4_1":
|
|
95
95
|
if (!customElements.get(tagName)) {
|
|
96
96
|
customElements.define(tagName, TttxDialog);
|
|
97
97
|
}
|
|
98
98
|
break;
|
|
99
|
-
case "tttx-
|
|
99
|
+
case "tttx-button_1_4_1":
|
|
100
100
|
if (!customElements.get(tagName)) {
|
|
101
101
|
defineCustomElement$3();
|
|
102
102
|
}
|
|
103
103
|
break;
|
|
104
|
-
case "tttx-
|
|
104
|
+
case "tttx-icon_1_4_1":
|
|
105
105
|
if (!customElements.get(tagName)) {
|
|
106
106
|
defineCustomElement$2();
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ function defineCustomElement$1() {
|
|
|
109
109
|
} });
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
const
|
|
112
|
+
const TttxDialog_1_4_1 = TttxDialog;
|
|
113
113
|
const defineCustomElement = defineCustomElement$1;
|
|
114
114
|
|
|
115
|
-
export {
|
|
115
|
+
export { TttxDialog_1_4_1, 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 TttxExpander_1_4_1 extends Components.TttxExpander_1_4_1, HTMLElement {}
|
|
4
|
+
export const TttxExpander_1_4_1: {
|
|
5
|
+
prototype: TttxExpander_1_4_1;
|
|
6
|
+
new (): TttxExpander_1_4_1;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -29,10 +29,10 @@ const TttxExpander = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
29
29
|
this.toggleExpander.emit({ open: this.isExpanded, name: this.name });
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, null, h("details", { class: "expander", open: this.open, "aria-owns": "expanderContent", "aria-expanded": `${this.isExpanded}`, onClick: this.handleExpand.bind(this), ref: el => (this.expander = el) }, h("summary", { class: "panel" }, h("span", { class: "panel-frame" }, this.lefticon && (h("span", { class: "left-icons" }, h("tttx-
|
|
32
|
+
return (h(Host, null, h("details", { class: "expander", open: this.open, "aria-owns": "expanderContent", "aria-expanded": `${this.isExpanded}`, onClick: this.handleExpand.bind(this), ref: el => (this.expander = el) }, h("summary", { class: "panel" }, h("span", { class: "panel-frame" }, this.lefticon && (h("span", { class: "left-icons" }, h("tttx-icon_1_4_1", { icon: this.lefticon, color: this.lefticoncolor }))), h("span", { class: "name" }, this.name)), h("span", { class: "expand-button" }, h("tttx-icon_1_4_1", { class: "open", icon: "expand_more", color: "black" }), h("tttx-icon_1_4_1", { class: "closed", icon: "chevron_right", color: "black" }))), h("div", { id: "expanderContent", class: "content", tabindex: "0" }, h("slot", null)))));
|
|
33
33
|
}
|
|
34
34
|
static get style() { return tttxExpanderCss; }
|
|
35
|
-
}, [1, "tttx-
|
|
35
|
+
}, [1, "tttx-expander_1_4_1", {
|
|
36
36
|
"name": [1],
|
|
37
37
|
"open": [4],
|
|
38
38
|
"lefticon": [1],
|
|
@@ -43,14 +43,14 @@ function defineCustomElement$1() {
|
|
|
43
43
|
if (typeof customElements === "undefined") {
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
const components = ["tttx-
|
|
46
|
+
const components = ["tttx-expander_1_4_1", "tttx-icon_1_4_1"];
|
|
47
47
|
components.forEach(tagName => { switch (tagName) {
|
|
48
|
-
case "tttx-
|
|
48
|
+
case "tttx-expander_1_4_1":
|
|
49
49
|
if (!customElements.get(tagName)) {
|
|
50
50
|
customElements.define(tagName, TttxExpander);
|
|
51
51
|
}
|
|
52
52
|
break;
|
|
53
|
-
case "tttx-
|
|
53
|
+
case "tttx-icon_1_4_1":
|
|
54
54
|
if (!customElements.get(tagName)) {
|
|
55
55
|
defineCustomElement$2();
|
|
56
56
|
}
|
|
@@ -58,7 +58,7 @@ function defineCustomElement$1() {
|
|
|
58
58
|
} });
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const TttxExpander_1_4_1 = TttxExpander;
|
|
62
62
|
const defineCustomElement = defineCustomElement$1;
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { TttxExpander_1_4_1, defineCustomElement };
|
|
@@ -179,15 +179,15 @@ const TttxFilter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
179
179
|
const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
|
|
180
180
|
const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
|
|
181
181
|
const filterKey = `filter__${this.filterKey}`;
|
|
182
|
-
return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-
|
|
182
|
+
return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-icon_1_4_1", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}`, style: { width: this.popoverWidth } }, h("div", { class: 'filter-header' }, this.filterHeader), this.showSearchField ? (h("div", { class: 'search-field-container' }, h("tttx-icon_1_4_1", { icon: 'search', class: 'search-icon' }), h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }))) : (''), h("div", { class: 'filter-options-container' }, this.showSelectAll ? (h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, h("tttx-icon_1_4_1", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
|
|
183
183
|
const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
|
|
184
184
|
const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
|
|
185
|
-
return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-
|
|
185
|
+
return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon_1_4_1", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon_1_4_1", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
|
|
186
186
|
})), h("div", { class: 'filter-popover-button-container' }, h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
|
|
187
187
|
}
|
|
188
188
|
get el() { return this; }
|
|
189
189
|
static get style() { return tttxFilterCss; }
|
|
190
|
-
}, [1, "tttx-
|
|
190
|
+
}, [1, "tttx-filter_1_4_1", {
|
|
191
191
|
"filterKey": [1, "filter-key"],
|
|
192
192
|
"filterOptions": [1, "filter-options"],
|
|
193
193
|
"showSelectAll": [4, "show-select-all"],
|
|
@@ -207,14 +207,14 @@ function defineCustomElement() {
|
|
|
207
207
|
if (typeof customElements === "undefined") {
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
|
-
const components = ["tttx-
|
|
210
|
+
const components = ["tttx-filter_1_4_1", "tttx-icon_1_4_1"];
|
|
211
211
|
components.forEach(tagName => { switch (tagName) {
|
|
212
|
-
case "tttx-
|
|
212
|
+
case "tttx-filter_1_4_1":
|
|
213
213
|
if (!customElements.get(tagName)) {
|
|
214
214
|
customElements.define(tagName, TttxFilter);
|
|
215
215
|
}
|
|
216
216
|
break;
|
|
217
|
-
case "tttx-
|
|
217
|
+
case "tttx-icon_1_4_1":
|
|
218
218
|
if (!customElements.get(tagName)) {
|
|
219
219
|
defineCustomElement$1();
|
|
220
220
|
}
|
|
@@ -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 TttxFilter_1_4_1 extends Components.TttxFilter_1_4_1, HTMLElement {}
|
|
4
|
+
export const TttxFilter_1_4_1: {
|
|
5
|
+
prototype: TttxFilter_1_4_1;
|
|
6
|
+
new (): TttxFilter_1_4_1;
|
|
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 TttxFilter, d as defineCustomElement$1 } from './tttx-filter.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const TttxFilter_1_4_1 = TttxFilter;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxFilter_1_4_1, 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 TttxForm_1_4_1 extends Components.TttxForm_1_4_1, HTMLElement {}
|
|
4
|
+
export const TttxForm_1_4_1: {
|
|
5
|
+
prototype: TttxForm_1_4_1;
|
|
6
|
+
new (): TttxForm_1_4_1;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -39,14 +39,15 @@ function validityCheck(event) {
|
|
|
39
39
|
// and cleared with
|
|
40
40
|
// target.setCustomValidity('');
|
|
41
41
|
//handle whitespace-only input
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
if (!target.hasAttribute('custom-validation-set')) {
|
|
43
|
+
if (target.value.length && !target.value.replace(/\s/g, '').length) {
|
|
44
|
+
errorMessage = 'This field cannot be left blank';
|
|
45
|
+
target.setCustomValidity(errorMessage);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
if (target.setCustomValidity) // tests are dumb as a brick
|
|
49
|
+
target.setCustomValidity('');
|
|
50
|
+
}
|
|
50
51
|
}
|
|
51
52
|
// Check the validity of the input field and set an error message if needed
|
|
52
53
|
switch (true) {
|
|
@@ -192,7 +193,7 @@ function startDateComparisonValidator(event) {
|
|
|
192
193
|
this.validityCheckWrapper(event);
|
|
193
194
|
}
|
|
194
195
|
|
|
195
|
-
const tttxFormCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;padding:0;padding-left:16px;padding-right:16px;
|
|
196
|
+
const tttxFormCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px;padding:0;padding-left:16px;padding-right:16px;}label .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container textarea.resize-none{resize:none}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .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}label .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.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}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:block}fieldset{margin:0;padding:0;border:none}label{display:block;position:relative;margin-bottom:16px}.inlineLabel{font-weight:400;display:inline-block;vertical-align:top;padding-top:4px}input[type=checkbox]{width:18px;height:18px}input~label{font-weight:400}select{font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}.placeholder{color:#9e9e9e}.placeholder option{color:initial}select.invalid:invalid{border:1px solid #dc0000}select~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}select~.errorBubble:not(.visible){visibility:hidden}select~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}select.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}select:focus{border-color:#1479c6}select:focus-visible{outline:none}.button{padding:0 16px}.footer{display:flex;gap:16px;flex-direction:row-reverse}label.flex-label{display:flex;flex-direction:column;width:346px;box-sizing:border-box}label>.outer-container>input[type=date]{min-width:0;width:200px}label.flex-label input[type=time]{min-width:auto;text-align:center;width:130px;margin-left:16px}label>.outer-container>input[type=date],label.flex-label input[type=time]{line-height:36px}";
|
|
196
197
|
|
|
197
198
|
const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
198
199
|
constructor() {
|
|
@@ -277,6 +278,10 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
277
278
|
doSubmit(event) {
|
|
278
279
|
// prevent the form from submitting normally
|
|
279
280
|
event.preventDefault();
|
|
281
|
+
const allElements = this.fieldset.querySelectorAll('[custom-validation-set=true]');
|
|
282
|
+
if (allElements.length) {
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
280
285
|
// create a new FormData object with the form data
|
|
281
286
|
const formData = new FormData(event.target);
|
|
282
287
|
// get a list of checkboxes, if any, so we can manually set unchecked box data
|
|
@@ -326,7 +331,7 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
326
331
|
if ((_a = this._data) === null || _a === void 0 ? void 0 : _a[formKey]) {
|
|
327
332
|
select.classList.remove('placeholder');
|
|
328
333
|
}
|
|
329
|
-
const tttxSelect = document.createElement('tttx-select-
|
|
334
|
+
const tttxSelect = document.createElement('tttx-select-box_1_4_1');
|
|
330
335
|
tttxSelect.optionsData = (_b = formProperties.options) === null || _b === void 0 ? void 0 : _b.filter(o => !o.placeholder);
|
|
331
336
|
tttxSelect.placeholder = (_d = (_c = formProperties.options) === null || _c === void 0 ? void 0 : _c.filter(o => o.placeholder)[0]) === null || _d === void 0 ? void 0 : _d.label;
|
|
332
337
|
tttxSelect.inline = false;
|
|
@@ -419,6 +424,9 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
419
424
|
if (formProperties.readonly) {
|
|
420
425
|
input.readOnly = true;
|
|
421
426
|
}
|
|
427
|
+
if (formProperties.resize === 'none') {
|
|
428
|
+
input.classList.add('resize-none');
|
|
429
|
+
}
|
|
422
430
|
// Return the input element
|
|
423
431
|
return input;
|
|
424
432
|
}
|
|
@@ -821,6 +829,64 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
821
829
|
assignButtonReference(el) {
|
|
822
830
|
this.submitButton = el;
|
|
823
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* An external validation trigger to apply to a form field
|
|
834
|
+
* @param { string } fieldName The form field name to apply the validation too
|
|
835
|
+
* @param { string } message The validation message to display under the form field
|
|
836
|
+
*/
|
|
837
|
+
async setValidationFor(fieldName, message) {
|
|
838
|
+
const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
|
|
839
|
+
if (formField.disabled) {
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
formField.setCustomValidity(message);
|
|
843
|
+
formField.setAttribute('custom-validation-set', 'true');
|
|
844
|
+
setErrorState(formField, true, message);
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Clear the validation message on a given form field
|
|
848
|
+
* @param { string } fieldName The form field name to clear the validation of
|
|
849
|
+
*/
|
|
850
|
+
async clearValidationFor(fieldName) {
|
|
851
|
+
const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
|
|
852
|
+
formField.setCustomValidity('');
|
|
853
|
+
formField.removeAttribute('custom-validation-set');
|
|
854
|
+
setErrorState(formField, false, '');
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Disable a form field and visually remove it from the form.
|
|
858
|
+
* If custom validation is set, this function will return without affecting the form field.
|
|
859
|
+
* @param { string } fieldName The form field name to disable
|
|
860
|
+
*/
|
|
861
|
+
async disableFormField(fieldName) {
|
|
862
|
+
const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
|
|
863
|
+
if (formField.hasAttribute('custom-validation-set')) {
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
formField.disabled = true;
|
|
867
|
+
let parent = formField.parentElement;
|
|
868
|
+
do {
|
|
869
|
+
if (parent.nodeName !== 'LABEL') {
|
|
870
|
+
parent = parent.parentElement;
|
|
871
|
+
}
|
|
872
|
+
} while (parent.nodeName !== 'LABEL');
|
|
873
|
+
parent.style.display = 'none';
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Enable a form field and visually add it back to the form.
|
|
877
|
+
* @param { string } fieldName The form field name to enable
|
|
878
|
+
*/
|
|
879
|
+
async enableFormField(fieldName) {
|
|
880
|
+
const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
|
|
881
|
+
formField.disabled = false;
|
|
882
|
+
let parent = formField.parentElement;
|
|
883
|
+
do {
|
|
884
|
+
if (parent.nodeName !== 'LABEL') {
|
|
885
|
+
parent = parent.parentElement;
|
|
886
|
+
}
|
|
887
|
+
} while (parent.nodeName !== 'LABEL');
|
|
888
|
+
parent.style.display = 'block';
|
|
889
|
+
}
|
|
824
890
|
/**
|
|
825
891
|
* Renders the component's template as a form element with a fieldset container. The form's
|
|
826
892
|
* "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
|
|
@@ -836,34 +902,38 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
836
902
|
"data": ["onDataChange"]
|
|
837
903
|
}; }
|
|
838
904
|
static get style() { return tttxFormCss; }
|
|
839
|
-
}, [1, "tttx-
|
|
905
|
+
}, [1, "tttx-form_1_4_1", {
|
|
840
906
|
"formschema": [1025],
|
|
841
907
|
"data": [1032],
|
|
842
908
|
"submit": [64],
|
|
843
|
-
"setSelectOptions": [64]
|
|
909
|
+
"setSelectOptions": [64],
|
|
910
|
+
"setValidationFor": [64],
|
|
911
|
+
"clearValidationFor": [64],
|
|
912
|
+
"disableFormField": [64],
|
|
913
|
+
"enableFormField": [64]
|
|
844
914
|
}]);
|
|
845
915
|
function defineCustomElement$1() {
|
|
846
916
|
if (typeof customElements === "undefined") {
|
|
847
917
|
return;
|
|
848
918
|
}
|
|
849
|
-
const components = ["tttx-
|
|
919
|
+
const components = ["tttx-form_1_4_1", "tttx-icon_1_4_1", "tttx-select-box_1_4_1", "tttx-standalone-input_1_4_1"];
|
|
850
920
|
components.forEach(tagName => { switch (tagName) {
|
|
851
|
-
case "tttx-
|
|
921
|
+
case "tttx-form_1_4_1":
|
|
852
922
|
if (!customElements.get(tagName)) {
|
|
853
923
|
customElements.define(tagName, TttxForm);
|
|
854
924
|
}
|
|
855
925
|
break;
|
|
856
|
-
case "tttx-
|
|
926
|
+
case "tttx-icon_1_4_1":
|
|
857
927
|
if (!customElements.get(tagName)) {
|
|
858
928
|
defineCustomElement$4();
|
|
859
929
|
}
|
|
860
930
|
break;
|
|
861
|
-
case "tttx-select-
|
|
931
|
+
case "tttx-select-box_1_4_1":
|
|
862
932
|
if (!customElements.get(tagName)) {
|
|
863
933
|
defineCustomElement$3();
|
|
864
934
|
}
|
|
865
935
|
break;
|
|
866
|
-
case "tttx-standalone-
|
|
936
|
+
case "tttx-standalone-input_1_4_1":
|
|
867
937
|
if (!customElements.get(tagName)) {
|
|
868
938
|
defineCustomElement$2();
|
|
869
939
|
}
|
|
@@ -871,7 +941,7 @@ function defineCustomElement$1() {
|
|
|
871
941
|
} });
|
|
872
942
|
}
|
|
873
943
|
|
|
874
|
-
const
|
|
944
|
+
const TttxForm_1_4_1 = TttxForm;
|
|
875
945
|
const defineCustomElement = defineCustomElement$1;
|
|
876
946
|
|
|
877
|
-
export {
|
|
947
|
+
export { TttxForm_1_4_1, defineCustomElement };
|