@3t-transform/threeteeui 1.9.22 → 1.9.24
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_9_22.cjs.entry.js → tttx-button_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_22.cjs.entry.js → tttx-checkbox-group-caption_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_22.cjs.entry.js → tttx-checkbox-group-heading_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_22.cjs.entry.js → tttx-checkbox-group_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_22.cjs.entry.js → tttx-checkbox_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-comments_1_9_22.cjs.entry.js → tttx-comments_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-data-pattern_1_9_22.cjs.entry.js → tttx-data-pattern_1_9_24.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-datacard_1_9_22.cjs.entry.js → tttx-datacard_1_9_24.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog-box_1_9_22.cjs.entry.js → tttx-dialog-box_1_9_24.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_9_22.cjs.entry.js → tttx-dialog_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_22.cjs.entry.js → tttx-expander_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_22_4.cjs.entry.js → tttx-filter_1_9_24_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_22.cjs.entry.js → tttx-form_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_22.cjs.entry.js → tttx-graph_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_22.cjs.entry.js → tttx-icon_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_22.cjs.entry.js → tttx-keyvalue-block_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/tttx-loading-spinner_1_9_24_3.cjs.entry.js +135 -0
- package/dist/cjs/{tttx-multiselect-box_1_9_22.cjs.entry.js → tttx-multiselect-box_1_9_24.cjs.entry.js} +30 -9
- package/dist/cjs/{tttx-percentage-bar_1_9_22.cjs.entry.js → tttx-percentage-bar_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_22.cjs.entry.js → tttx-qrcode_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_22.cjs.entry.js → tttx-select-box_1_9_24.cjs.entry.js} +57 -13
- package/dist/cjs/{tttx-table_1_9_22.cjs.entry.js → tttx-table_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tabs_1_9_22.cjs.entry.js → tttx-tabs_1_9_24.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-textarea_1_9_22.cjs.entry.js → tttx-textarea_1_9_24.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_22.cjs.entry.js → tttx-toggle_1_9_24.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tree-view_1_9_22.cjs.entry.js → tttx-tree-view_1_9_24.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-datacard/tttx-datacard.js +4 -4
- package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
- 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 +2 -2
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
- package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
- 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-comments/tttx-comments.js +2 -2
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +1 -1
- 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 +7 -7
- package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
- package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.css +6 -0
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +66 -9
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +72 -35
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.css +4 -0
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +143 -12
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +64 -20
- 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-table/tttx-table.js +1 -1
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
- 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 +5 -5
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +31 -31
- package/dist/components/index.js +31 -31
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-button_1_9_22.d.ts → tttx-button_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_22.js → tttx-button_1_9_24.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_22.js → tttx-checkbox-group-caption_1_9_24.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_22.js → tttx-checkbox-group-heading_1_9_24.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_22.js → tttx-checkbox-group_1_9_24.js} +5 -5
- package/dist/components/{tttx-datacard_1_9_22.d.ts → tttx-checkbox_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_22.js → tttx-checkbox_1_9_24.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_22.d.ts → tttx-comments_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-comments_1_9_22.js → tttx-comments_1_9_24.js} +7 -7
- package/dist/components/tttx-data-pattern_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_22.js → tttx-data-pattern_1_9_24.js} +16 -16
- package/dist/components/{tttx-comments_1_9_22.d.ts → tttx-datacard_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-datacard_1_9_22.js → tttx-datacard_1_9_24.js} +10 -10
- package/dist/components/tttx-dialog-box_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_22.js → tttx-dialog-box_1_9_24.js} +9 -9
- package/dist/components/{tttx-dialog_1_9_22.d.ts → tttx-dialog_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_22.js → tttx-dialog_1_9_24.js} +8 -8
- package/dist/components/tttx-expander_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_22.js → tttx-expander_1_9_24.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-filter_1_9_22.d.ts → tttx-filter_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_22.js → tttx-filter_1_9_24.js} +2 -2
- package/dist/components/{tttx-tabs_1_9_22.d.ts → tttx-form_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_22.js → tttx-form_1_9_24.js} +20 -14
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-graph_1_9_22.d.ts → tttx-graph_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_22.js → tttx-graph_1_9_24.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-icon_1_9_22.d.ts → tttx-icon_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_22.js → tttx-icon_1_9_24.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_22.js → tttx-keyvalue-block_1_9_24.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-list_1_9_22.d.ts → tttx-list_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_22.js → tttx-list_1_9_24.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_22.js → tttx-loading-spinner_1_9_24.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_22.js → tttx-multiselect-box_1_9_24.js} +51 -22
- package/dist/components/tttx-percentage-bar_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_22.js → tttx-percentage-bar_1_9_24.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_22.d.ts → tttx-qrcode_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_22.js → tttx-qrcode_1_9_24.js} +5 -5
- package/dist/components/tttx-select-box.js +76 -21
- package/dist/components/tttx-select-box_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_22.js → tttx-select-box_1_9_24.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_22.js → tttx-sorter_1_9_24.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_22.js → tttx-standalone-input_1_9_24.js} +2 -2
- package/dist/components/{tttx-table_1_9_22.d.ts → tttx-table_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_22.js → tttx-table_1_9_24.js} +5 -5
- package/dist/components/{tttx-form_1_9_22.d.ts → tttx-tabs_1_9_24.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_22.js → tttx-tabs_1_9_24.js} +9 -9
- package/dist/components/{tttx-tag_1_9_22.js → tttx-tag.js} +9 -12
- package/dist/components/{tttx-tag_1_9_22.d.ts → tttx-tag_1_9_24.d.ts} +4 -4
- package/dist/components/tttx-tag_1_9_24.js +6 -0
- package/dist/components/tttx-textarea_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_22.js → tttx-textarea_1_9_24.js} +6 -6
- package/dist/components/tttx-toggle_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_22.js → tttx-toggle_1_9_24.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_22.js → tttx-toolbar_1_9_24.js} +2 -2
- package/dist/components/tttx-tree-view_1_9_24.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_22.js → tttx-tree-view_1_9_24.js} +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_9_22.entry.js → tttx-button_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_9_22.entry.js → tttx-checkbox-group-caption_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_22.entry.js → tttx-checkbox-group-heading_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_22.entry.js → tttx-checkbox-group_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_22.entry.js → tttx-checkbox_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-comments_1_9_22.entry.js → tttx-comments_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-data-pattern_1_9_22.entry.js → tttx-data-pattern_1_9_24.entry.js} +5 -5
- package/dist/esm/{tttx-datacard_1_9_22.entry.js → tttx-datacard_1_9_24.entry.js} +4 -4
- package/dist/esm/{tttx-dialog-box_1_9_22.entry.js → tttx-dialog-box_1_9_24.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_9_22.entry.js → tttx-dialog_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_22.entry.js → tttx-expander_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_22_4.entry.js → tttx-filter_1_9_24_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_22.entry.js → tttx-form_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_22.entry.js → tttx-graph_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_22.entry.js → tttx-icon_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_22.entry.js → tttx-keyvalue-block_1_9_24.entry.js} +1 -1
- package/dist/esm/tttx-loading-spinner_1_9_24_3.entry.js +129 -0
- package/dist/esm/{tttx-multiselect-box_1_9_22.entry.js → tttx-multiselect-box_1_9_24.entry.js} +31 -10
- package/dist/esm/{tttx-percentage-bar_1_9_22.entry.js → tttx-percentage-bar_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_22.entry.js → tttx-qrcode_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_22.entry.js → tttx-select-box_1_9_24.entry.js} +57 -13
- package/dist/esm/{tttx-table_1_9_22.entry.js → tttx-table_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-tabs_1_9_22.entry.js → tttx-tabs_1_9_24.entry.js} +4 -4
- package/dist/esm/{tttx-textarea_1_9_22.entry.js → tttx-textarea_1_9_24.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_22.entry.js → tttx-toggle_1_9_24.entry.js} +1 -1
- package/dist/esm/{tttx-tree-view_1_9_22.entry.js → tttx-tree-view_1_9_24.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-0da9f04c.entry.js +1 -1
- package/dist/tttx/p-0e515960.entry.js +1 -1
- package/dist/tttx/p-0ffbf27e.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-2d4c1e8a.entry.js +1 -1
- package/dist/tttx/p-49ef7451.entry.js +1 -1
- package/dist/tttx/p-56c8c353.entry.js +1 -1
- package/dist/tttx/p-5722f326.entry.js +1 -0
- package/dist/tttx/p-59c7b049.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-74148f2a.entry.js +1 -1
- package/dist/tttx/p-79e218d0.entry.js +1 -1
- package/dist/tttx/p-90d21e86.entry.js +1 -1
- package/dist/tttx/p-9434561e.entry.js +1 -1
- package/dist/tttx/p-996a6061.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-b7347352.entry.js +1 -1
- package/dist/tttx/p-c170e3b8.entry.js +1 -1
- package/dist/tttx/p-c34d99d1.entry.js +1 -0
- package/dist/tttx/p-cfe412d0.entry.js +1 -1
- package/dist/tttx/p-de6e8250.entry.js +1 -1
- package/dist/tttx/p-f115bff6.entry.js +1 -0
- package/dist/tttx/p-f374e293.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-multiselect-box/interfaces.d.ts +5 -4
- package/dist/types/components/molecules/tttx-multiselect-box/tttx-multiselect-box.d.ts +3 -0
- package/dist/types/components/molecules/tttx-select-box/interfaces.d.ts +5 -4
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +12 -1
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.stories.d.ts +1 -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 +381 -368
- package/package.json +1 -1
- package/dist/cjs/tttx-loading-spinner_1_9_22_2.cjs.entry.js +0 -114
- package/dist/cjs/tttx-tag_1_9_22.cjs.entry.js +0 -27
- package/dist/components/tttx-checkbox-group-caption_1_9_22.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_22.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_22.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_22.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_22.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_22.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_22.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_22.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_22.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_22.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_22.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_22.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_22.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_22.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_22.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_22.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_22.d.ts +0 -11
- package/dist/esm/tttx-loading-spinner_1_9_22_2.entry.js +0 -109
- package/dist/esm/tttx-tag_1_9_22.entry.js +0 -23
- package/dist/tttx/p-2d184378.entry.js +0 -1
- package/dist/tttx/p-3df60a1b.entry.js +0 -1
- package/dist/tttx/p-bbad0784.entry.js +0 -1
- package/dist/tttx/p-c4756f1b.entry.js +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { d as defineCustomElement$4 } from './tttx-icon.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './tttx-loading-spinner.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './tttx-standalone-input.js';
|
|
6
|
+
import { d as defineCustomElement$1 } from './tttx-tag.js';
|
|
6
7
|
|
|
7
|
-
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}.dropdown-read-only{background-color:#BDBDBD !important}.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}";
|
|
8
|
+
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}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.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}";
|
|
8
9
|
|
|
9
10
|
const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
11
|
constructor() {
|
|
@@ -14,6 +15,7 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
14
15
|
this.selectItemEvent = createEvent(this, "selectItemEvent", 3);
|
|
15
16
|
this.toggleOpen = createEvent(this, "toggleOpen", 3);
|
|
16
17
|
this.searchUpdated = createEvent(this, "multiselectSearchUpdated", 7);
|
|
18
|
+
this.selectEndReachedEvent = createEvent(this, "selectEndReached", 7);
|
|
17
19
|
this.bodyOffset = {};
|
|
18
20
|
this.closeSelectBoxHandler = () => {
|
|
19
21
|
if (this.open) {
|
|
@@ -27,14 +29,19 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
27
29
|
this.searchEnabled = undefined;
|
|
28
30
|
this.selectedValue = undefined;
|
|
29
31
|
this.useExternalFiltering = undefined;
|
|
32
|
+
this.useExternalPaginatedFiltering = undefined;
|
|
33
|
+
this.isAllExternalDataLoaded = undefined;
|
|
30
34
|
this.isLoading = undefined;
|
|
31
35
|
this.readOnly = undefined;
|
|
36
|
+
this.priorityLabel = 'Priority Group';
|
|
37
|
+
this.nonPriorityLabel = 'Non Priority Group';
|
|
32
38
|
this.showErrorMsg = undefined;
|
|
33
39
|
this.showErrorBubble = false;
|
|
34
40
|
this.errorMsg = undefined;
|
|
35
41
|
this.open = false;
|
|
36
42
|
this.selectedItem = undefined;
|
|
37
43
|
this.searchTerm = '';
|
|
44
|
+
this.loadingNextExternalPage = false;
|
|
38
45
|
}
|
|
39
46
|
async componentWillLoad() {
|
|
40
47
|
if (this.optionsData) {
|
|
@@ -44,12 +51,17 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
44
51
|
});
|
|
45
52
|
this.selectedItem = matchingItems.length > 0 ? matchingItems[0] : undefined;
|
|
46
53
|
}
|
|
54
|
+
this._isAllExternalDataLoaded = this.isAllExternalDataLoaded;
|
|
47
55
|
}
|
|
48
56
|
async setOptionsData() {
|
|
49
57
|
this._optionsData = typeof this.optionsData === 'string' ? JSON.parse(this.optionsData) : this.optionsData;
|
|
50
58
|
if (this.open) {
|
|
51
59
|
this.calculateDropdownMenuOffset();
|
|
52
60
|
}
|
|
61
|
+
this.loadingNextExternalPage = false;
|
|
62
|
+
}
|
|
63
|
+
updateAllLoadedBool() {
|
|
64
|
+
this._isAllExternalDataLoaded = this.isAllExternalDataLoaded;
|
|
53
65
|
}
|
|
54
66
|
async setSelectedItem(value) {
|
|
55
67
|
if (!value)
|
|
@@ -82,6 +94,7 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
82
94
|
return;
|
|
83
95
|
this.open = !this.open;
|
|
84
96
|
this.searchTerm = '';
|
|
97
|
+
this.loadingNextExternalPage = false;
|
|
85
98
|
this.calculateDropdownMenuOffset();
|
|
86
99
|
this.toggleOpen.emit(this.open);
|
|
87
100
|
}
|
|
@@ -94,7 +107,7 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
94
107
|
let title;
|
|
95
108
|
let subtitle;
|
|
96
109
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
97
|
-
const icon = h("tttx-
|
|
110
|
+
const icon = h("tttx-icon_1_9_24", { icon: chevronIcon, color: "black" });
|
|
98
111
|
let chevron = h("div", { class: "dropdown-selector-chevron" }, icon);
|
|
99
112
|
if (!this.selectedItem) {
|
|
100
113
|
title = h("div", { class: "placeholder" }, this.placeholder);
|
|
@@ -113,27 +126,49 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
113
126
|
return (h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), chevron));
|
|
114
127
|
}
|
|
115
128
|
}
|
|
129
|
+
renderDropdownOptions(options) {
|
|
130
|
+
let usingPriority = false;
|
|
131
|
+
const priorityOptions = [];
|
|
132
|
+
const nonPriorityOptions = [];
|
|
133
|
+
for (const option of options) {
|
|
134
|
+
// using priority groups if any item has the option set, so set true for first found
|
|
135
|
+
usingPriority = usingPriority || option.prioritise === true;
|
|
136
|
+
// don't include if it doesn't match the search term when searching
|
|
137
|
+
if (this.searchEnabled &&
|
|
138
|
+
(!this.useExternalFiltering && !this.useExternalPaginatedFiltering) &&
|
|
139
|
+
option.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()) === -1)
|
|
140
|
+
continue;
|
|
141
|
+
if (option.prioritise === true) {
|
|
142
|
+
priorityOptions.push(option);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
nonPriorityOptions.push(option);
|
|
146
|
+
}
|
|
147
|
+
// render priority options at the top of the dropdown list
|
|
148
|
+
return (h(Fragment, null, usingPriority && priorityOptions.length > 0 &&
|
|
149
|
+
h(Fragment, null, h("tttx-tag_1_9_24", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
|
|
150
|
+
h(Fragment, null, usingPriority &&
|
|
151
|
+
h("tttx-tag_1_9_24", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
|
|
152
|
+
}
|
|
116
153
|
dropdownOption(option) {
|
|
117
|
-
const hideOption = this.searchEnabled && option.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()) === -1;
|
|
118
154
|
const selected = this.selectedItem && option.value === this.selectedItem.value;
|
|
119
155
|
if (option.html) {
|
|
120
156
|
const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
|
|
121
|
-
return (h("div", { class: `dropdown-option ${
|
|
157
|
+
return (h("div", { class: `dropdown-option ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label, innerHTML: sanitisedHTML }));
|
|
122
158
|
}
|
|
123
159
|
else if (option.description) {
|
|
124
|
-
return (h("div", { class: `dropdown-option ${
|
|
160
|
+
return (h("div", { class: `dropdown-option ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label, h("div", { class: "description-dd" }, h("p", null, option.description))));
|
|
125
161
|
}
|
|
126
|
-
return (h("div", { class: `dropdown-option ${
|
|
162
|
+
return (h("div", { class: `dropdown-option ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label));
|
|
127
163
|
}
|
|
128
164
|
handleSearchInput(event) {
|
|
129
165
|
const searchInput = event.target.value;
|
|
130
|
-
if (this.useExternalFiltering) {
|
|
166
|
+
if (this.useExternalFiltering || this.useExternalPaginatedFiltering) {
|
|
131
167
|
// emit event with the latest search value
|
|
132
168
|
clearTimeout(this.searchFilterTimeout);
|
|
133
169
|
this.searchFilterTimeout = setTimeout((filterValue) => {
|
|
134
170
|
this.searchUpdated.emit(filterValue);
|
|
135
171
|
}, 500, searchInput);
|
|
136
|
-
return;
|
|
137
172
|
}
|
|
138
173
|
this.searchTerm = searchInput;
|
|
139
174
|
}
|
|
@@ -183,21 +218,31 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
183
218
|
overflowY: 'auto', // Allow scrolling if needed
|
|
184
219
|
};
|
|
185
220
|
}
|
|
221
|
+
onSelectScroll(scrollEvent) {
|
|
222
|
+
const selectDiv = scrollEvent.target;
|
|
223
|
+
const isScrolledEnd = selectDiv.scrollTop === (selectDiv.scrollHeight - selectDiv.offsetHeight);
|
|
224
|
+
if (this.useExternalPaginatedFiltering && isScrolledEnd && !this.loadingNextExternalPage && !this._isAllExternalDataLoaded) {
|
|
225
|
+
this.loadingNextExternalPage = true;
|
|
226
|
+
clearTimeout(this.selectEndReached);
|
|
227
|
+
this.selectEndReached = setTimeout((filterValue) => {
|
|
228
|
+
this.selectEndReachedEvent.emit(filterValue);
|
|
229
|
+
}, 500, this.searchTerm);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
186
232
|
render() {
|
|
187
233
|
if (!this.optionsData)
|
|
188
234
|
return;
|
|
189
235
|
const invalidClass = this.showErrorMsg ? 'invalid' : '';
|
|
190
236
|
const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
|
|
191
|
-
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, readOnlyClass].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-
|
|
192
|
-
return this.dropdownOption(option);
|
|
193
|
-
})))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_22", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
|
|
237
|
+
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, readOnlyClass].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_9_24", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list", onScroll: this.onSelectScroll.bind(this) }, !this.isLoading && (this.renderDropdownOptions(this._optionsData)), (this.isLoading || this.loadingNextExternalPage) && (h("tttx-loading-spinner_1_9_24", { class: 'loading-style' })))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_24", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
|
|
194
238
|
}
|
|
195
239
|
get el() { return this; }
|
|
196
240
|
static get watchers() { return {
|
|
197
|
-
"optionsData": ["setOptionsData"]
|
|
241
|
+
"optionsData": ["setOptionsData"],
|
|
242
|
+
"isAllExternalDataLoaded": ["updateAllLoadedBool"]
|
|
198
243
|
}; }
|
|
199
244
|
static get style() { return tttxSelectBoxCss; }
|
|
200
|
-
}, [1, "tttx-select-
|
|
245
|
+
}, [1, "tttx-select-box_1_9_24", {
|
|
201
246
|
"optionsData": [1, "options-data"],
|
|
202
247
|
"label": [1],
|
|
203
248
|
"inline": [4],
|
|
@@ -205,38 +250,48 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
205
250
|
"searchEnabled": [4, "search-enabled"],
|
|
206
251
|
"selectedValue": [1, "selected-value"],
|
|
207
252
|
"useExternalFiltering": [4, "use-external-filtering"],
|
|
253
|
+
"useExternalPaginatedFiltering": [4, "use-external-paginated-filtering"],
|
|
254
|
+
"isAllExternalDataLoaded": [4, "is-all-external-data-loaded"],
|
|
208
255
|
"isLoading": [4, "is-loading"],
|
|
209
256
|
"readOnly": [4, "read-only"],
|
|
257
|
+
"priorityLabel": [1, "priority-label"],
|
|
258
|
+
"nonPriorityLabel": [1, "non-priority-label"],
|
|
210
259
|
"showErrorMsg": [4, "show-error-msg"],
|
|
211
260
|
"showErrorBubble": [4, "show-error-bubble"],
|
|
212
261
|
"errorMsg": [1, "error-msg"],
|
|
213
262
|
"open": [32],
|
|
214
263
|
"selectedItem": [32],
|
|
215
264
|
"searchTerm": [32],
|
|
265
|
+
"loadingNextExternalPage": [32],
|
|
216
266
|
"setSelectedItem": [64]
|
|
217
267
|
}, [[0, "closeSelectBox", "handleCloseSelectBox"], [0, "blur", "handleBlur"]]]);
|
|
218
268
|
function defineCustomElement() {
|
|
219
269
|
if (typeof customElements === "undefined") {
|
|
220
270
|
return;
|
|
221
271
|
}
|
|
222
|
-
const components = ["tttx-select-
|
|
272
|
+
const components = ["tttx-select-box_1_9_24", "tttx-icon_1_9_24", "tttx-loading-spinner_1_9_24", "tttx-standalone-input_1_9_24", "tttx-tag_1_9_24"];
|
|
223
273
|
components.forEach(tagName => { switch (tagName) {
|
|
224
|
-
case "tttx-select-
|
|
274
|
+
case "tttx-select-box_1_9_24":
|
|
225
275
|
if (!customElements.get(tagName)) {
|
|
226
276
|
customElements.define(tagName, TttxSelectBox);
|
|
227
277
|
}
|
|
228
278
|
break;
|
|
229
|
-
case "tttx-
|
|
279
|
+
case "tttx-icon_1_9_24":
|
|
280
|
+
if (!customElements.get(tagName)) {
|
|
281
|
+
defineCustomElement$4();
|
|
282
|
+
}
|
|
283
|
+
break;
|
|
284
|
+
case "tttx-loading-spinner_1_9_24":
|
|
230
285
|
if (!customElements.get(tagName)) {
|
|
231
286
|
defineCustomElement$3();
|
|
232
287
|
}
|
|
233
288
|
break;
|
|
234
|
-
case "tttx-
|
|
289
|
+
case "tttx-standalone-input_1_9_24":
|
|
235
290
|
if (!customElements.get(tagName)) {
|
|
236
291
|
defineCustomElement$2();
|
|
237
292
|
}
|
|
238
293
|
break;
|
|
239
|
-
case "tttx-
|
|
294
|
+
case "tttx-tag_1_9_24":
|
|
240
295
|
if (!customElements.get(tagName)) {
|
|
241
296
|
defineCustomElement$1();
|
|
242
297
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxSelectBox_1_9_24 extends Components.TttxSelectBox_1_9_24, HTMLElement {}
|
|
4
|
+
export const TttxSelectBox_1_9_24: {
|
|
5
|
+
prototype: TttxSelectBox_1_9_24;
|
|
6
|
+
new (): TttxSelectBox_1_9_24;
|
|
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_9_24 = TttxSelectBox;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxSelectBox_1_9_24, 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_9_24", { 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_9_24", { 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_9_24", {
|
|
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_9_24", "tttx-icon_1_9_24"];
|
|
130
130
|
components.forEach(tagName => { switch (tagName) {
|
|
131
|
-
case "tttx-
|
|
131
|
+
case "tttx-sorter_1_9_24":
|
|
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_9_24":
|
|
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_9_24 extends Components.TttxSorter_1_9_24, HTMLElement {}
|
|
4
|
+
export const TttxSorter_1_9_24: {
|
|
5
|
+
prototype: TttxSorter_1_9_24;
|
|
6
|
+
new (): TttxSorter_1_9_24;
|
|
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_9_24 = TttxSorter;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxSorter_1_9_24, defineCustomElement };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$1 } from './tttx-icon.js';
|
|
3
3
|
|
|
4
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-
|
|
4
|
+
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_24{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_24{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_24{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_24 .optional.sc-tttx-standalone-input_1_9_24{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24{position:relative}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 .left-icons.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 .right-icons.sc-tttx-standalone-input_1_9_24{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 .left-icons.sc-tttx-standalone-input_1_9_24 tttx-icon.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 .right-icons.sc-tttx-standalone-input_1_9_24 tttx-icon.sc-tttx-standalone-input_1_9_24{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 .left-icons.sc-tttx-standalone-input_1_9_24{left:8px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 .right-icons.sc-tttx-standalone-input_1_9_24{right:8px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.sc-tttx-standalone-input_1_9_24{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.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.has-input-icon.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.has-input-icon.sc-tttx-standalone-input_1_9_24{padding-left:40px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_24{padding-left:72px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.has-left-icon.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.has-left-icon.sc-tttx-standalone-input_1_9_24{padding-left:40px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.has-right-icon.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.has-right-icon.sc-tttx-standalone-input_1_9_24{padding-right:40px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.invalid.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.invalid.sc-tttx-standalone-input_1_9_24{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.sc-tttx-standalone-input_1_9_24:not([type=submit]),label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.sc-tttx-standalone-input_1_9_24:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input[type=radio].sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea[type=radio].sc-tttx-standalone-input_1_9_24{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input[type=date].sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea[type=date].sc-tttx-standalone-input_1_9_24{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input[readonly].sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea[readonly].sc-tttx-standalone-input_1_9_24{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.sc-tttx-standalone-input_1_9_24:focus,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.sc-tttx-standalone-input_1_9_24:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 input.sc-tttx-standalone-input_1_9_24:focus-visible,label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.sc-tttx-standalone-input_1_9_24:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.sc-tttx-standalone-input_1_9_24{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_24 .outer-container.sc-tttx-standalone-input_1_9_24 textarea.resize-none.sc-tttx-standalone-input_1_9_24{resize:none}label.sc-tttx-standalone-input_1_9_24 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_24{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_24 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_24 .left-icons.sc-tttx-standalone-input_1_9_24,label.sc-tttx-standalone-input_1_9_24 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_24 .right-icons.sc-tttx-standalone-input_1_9_24{margin-top:4px}label.sc-tttx-standalone-input_1_9_24 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_24{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_24 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_24{display:block}label.sc-tttx-standalone-input_1_9_24 .outer-container.inputInline.sc-tttx-standalone-input_1_9_24{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_24 .outer-container.inputInline.sc-tttx-standalone-input_1_9_24 input.sc-tttx-standalone-input_1_9_24{margin-top:0}label.sc-tttx-standalone-input_1_9_24 .secondarylabel.sc-tttx-standalone-input_1_9_24{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_24 .errorBubble.sc-tttx-standalone-input_1_9_24{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.sc-tttx-standalone-input_1_9_24 .errorBubble.sc-tttx-standalone-input_1_9_24:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_24 .errorBubble.sc-tttx-standalone-input_1_9_24 span.sc-tttx-standalone-input_1_9_24{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_24{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}.sc-tttx-standalone-input_1_9_24-h{display:block}";
|
|
5
5
|
|
|
6
6
|
const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -84,10 +84,10 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
84
84
|
this.iconleft ? 'has-left-icon' : '',
|
|
85
85
|
this.iconright ? 'has-right-icon' : '',
|
|
86
86
|
].join(' ');
|
|
87
|
-
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-
|
|
87
|
+
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_9_24", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_9_24", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_9_24", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
|
|
88
88
|
}
|
|
89
89
|
static get style() { return tttxStandaloneInputCss; }
|
|
90
|
-
}, [2, "tttx-standalone-
|
|
90
|
+
}, [2, "tttx-standalone-input_1_9_24", {
|
|
91
91
|
"label": [1],
|
|
92
92
|
"secondarylabel": [1],
|
|
93
93
|
"showerrormsg": [4],
|
|
@@ -125,14 +125,14 @@ function defineCustomElement() {
|
|
|
125
125
|
if (typeof customElements === "undefined") {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
const components = ["tttx-standalone-
|
|
128
|
+
const components = ["tttx-standalone-input_1_9_24", "tttx-icon_1_9_24"];
|
|
129
129
|
components.forEach(tagName => { switch (tagName) {
|
|
130
|
-
case "tttx-standalone-
|
|
130
|
+
case "tttx-standalone-input_1_9_24":
|
|
131
131
|
if (!customElements.get(tagName)) {
|
|
132
132
|
customElements.define(tagName, TttxInput);
|
|
133
133
|
}
|
|
134
134
|
break;
|
|
135
|
-
case "tttx-
|
|
135
|
+
case "tttx-icon_1_9_24":
|
|
136
136
|
if (!customElements.get(tagName)) {
|
|
137
137
|
defineCustomElement$1();
|
|
138
138
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxStandaloneInput_1_9_24 extends Components.TttxStandaloneInput_1_9_24, HTMLElement {}
|
|
4
|
+
export const TttxStandaloneInput_1_9_24: {
|
|
5
|
+
prototype: TttxStandaloneInput_1_9_24;
|
|
6
|
+
new (): TttxStandaloneInput_1_9_24;
|
|
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 TttxInput, d as defineCustomElement$1 } from './tttx-standalone-input.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const TttxStandaloneInput_1_9_24 = TttxInput;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxStandaloneInput_1_9_24, 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 TttxTable_1_9_24 extends Components.TttxTable_1_9_24, HTMLElement {}
|
|
4
|
+
export const TttxTable_1_9_24: {
|
|
5
|
+
prototype: TttxTable_1_9_24;
|
|
6
|
+
new (): TttxTable_1_9_24;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -53,7 +53,7 @@ const TttxTable = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
53
53
|
Object.keys(this.data).map((key, index) => (h("tr", { key: 'row-' + index, class: (this.selectable ? 'clickable' : '') + (index === this.selected && this.selectable ? ' selected' : ''), onClick: () => this.rowClickedHandler(this.data[key]) }, this.headers.map((header) => (h("td", { key: 'cell-' + header.key, class: "cell-typography" }, h("div", { class: "cell-spacing", innerHTML: purify.sanitize(this.data[key][header.key], domSanitiserOptions) }))))))))))));
|
|
54
54
|
}
|
|
55
55
|
static get style() { return tttxTableCss; }
|
|
56
|
-
}, [1, "tttx-
|
|
56
|
+
}, [1, "tttx-table_1_9_24", {
|
|
57
57
|
"headers": [16],
|
|
58
58
|
"data": [8],
|
|
59
59
|
"selectable": [4],
|
|
@@ -66,9 +66,9 @@ function defineCustomElement$1() {
|
|
|
66
66
|
if (typeof customElements === "undefined") {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
const components = ["tttx-
|
|
69
|
+
const components = ["tttx-table_1_9_24"];
|
|
70
70
|
components.forEach(tagName => { switch (tagName) {
|
|
71
|
-
case "tttx-
|
|
71
|
+
case "tttx-table_1_9_24":
|
|
72
72
|
if (!customElements.get(tagName)) {
|
|
73
73
|
customElements.define(tagName, TttxTable);
|
|
74
74
|
}
|
|
@@ -76,7 +76,7 @@ function defineCustomElement$1() {
|
|
|
76
76
|
} });
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
const
|
|
79
|
+
const TttxTable_1_9_24 = TttxTable;
|
|
80
80
|
const defineCustomElement = defineCustomElement$1;
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { TttxTable_1_9_24, 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 TttxTabs_1_9_24 extends Components.TttxTabs_1_9_24, HTMLElement {}
|
|
4
|
+
export const TttxTabs_1_9_24: {
|
|
5
|
+
prototype: TttxTabs_1_9_24;
|
|
6
|
+
new (): TttxTabs_1_9_24;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
4
4
|
|
|
5
|
-
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-
|
|
5
|
+
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_24{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_24-h{display:block}.tab-bar.sc-tttx-tabs_1_9_24{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_24>.left-navigation.sc-tttx-tabs_1_9_24,.tab-bar.sc-tttx-tabs_1_9_24>.right-navigation.sc-tttx-tabs_1_9_24{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_24>.left-navigation.sc-tttx-tabs_1_9_24>*.sc-tttx-tabs_1_9_24,.tab-bar.sc-tttx-tabs_1_9_24>.right-navigation.sc-tttx-tabs_1_9_24>*.sc-tttx-tabs_1_9_24{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_24>.tabs-container.sc-tttx-tabs_1_9_24{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_24>.tabs-container.wide.sc-tttx-tabs_1_9_24{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_24>.tabs-container.sc-tttx-tabs_1_9_24>*[role=tab].sc-tttx-tabs_1_9_24{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_24>.tabs-container.sc-tttx-tabs_1_9_24>*[role=tab].sc-tttx-tabs_1_9_24:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_24>.tabs-container.sc-tttx-tabs_1_9_24>*[role=tab][aria-selected].sc-tttx-tabs_1_9_24{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
|
|
6
6
|
|
|
7
7
|
const TttxTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
8
|
constructor() {
|
|
@@ -75,7 +75,7 @@ const TttxTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
75
75
|
}
|
|
76
76
|
generateTab(tab) {
|
|
77
77
|
var _a, _b;
|
|
78
|
-
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-
|
|
78
|
+
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_24", { style: { pointerEvents: 'none', marginTop: '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_b = tab.tabIconSize) !== null && _b !== void 0 ? _b : 24 }));
|
|
79
79
|
return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
|
|
80
80
|
this.handleTabClick(tab);
|
|
81
81
|
} }, tabTitle));
|
|
@@ -94,13 +94,13 @@ const TttxTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
const selectedTab = this._tabs.find(tab => tab.selected);
|
|
97
|
-
return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-
|
|
97
|
+
return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_24", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_24", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
|
|
98
98
|
}
|
|
99
99
|
static get watchers() { return {
|
|
100
100
|
"tabs": ["onDataChange"]
|
|
101
101
|
}; }
|
|
102
102
|
static get style() { return tttxTabsCss; }
|
|
103
|
-
}, [2, "tttx-
|
|
103
|
+
}, [2, "tttx-tabs_1_9_24", {
|
|
104
104
|
"tabsName": [1, "tabs-name"],
|
|
105
105
|
"navigation": [4],
|
|
106
106
|
"wide": [4],
|
|
@@ -111,14 +111,14 @@ function defineCustomElement$1() {
|
|
|
111
111
|
if (typeof customElements === "undefined") {
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
const components = ["tttx-
|
|
114
|
+
const components = ["tttx-tabs_1_9_24", "tttx-icon_1_9_24"];
|
|
115
115
|
components.forEach(tagName => { switch (tagName) {
|
|
116
|
-
case "tttx-
|
|
116
|
+
case "tttx-tabs_1_9_24":
|
|
117
117
|
if (!customElements.get(tagName)) {
|
|
118
118
|
customElements.define(tagName, TttxTabs);
|
|
119
119
|
}
|
|
120
120
|
break;
|
|
121
|
-
case "tttx-
|
|
121
|
+
case "tttx-icon_1_9_24":
|
|
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 TttxTabs_1_9_24 = TttxTabs;
|
|
130
130
|
const defineCustomElement = defineCustomElement$1;
|
|
131
131
|
|
|
132
|
-
export {
|
|
132
|
+
export { TttxTabs_1_9_24, defineCustomElement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$
|
|
2
|
+
import { d as defineCustomElement$1 } from './tttx-icon.js';
|
|
3
3
|
|
|
4
4
|
const tttxTagCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}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:inline-block}.tag{display:inline-flex;align-items:center;border-radius:20px;padding:4px;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:400;width:max-content}.tag_icon{padding-top:4px}.tag span{margin-left:4px;margin-right:4px}.icon{height:18px;width:18px;font-weight:400}";
|
|
5
5
|
|
|
@@ -18,10 +18,10 @@ const TttxTag = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
21
|
-
h("tttx-
|
|
21
|
+
h("tttx-icon_1_9_24", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
|
|
22
22
|
}
|
|
23
23
|
static get style() { return tttxTagCss; }
|
|
24
|
-
}, [1, "tttx-
|
|
24
|
+
}, [1, "tttx-tag_1_9_24", {
|
|
25
25
|
"text": [1],
|
|
26
26
|
"color": [1],
|
|
27
27
|
"textColor": [1, "text-color"],
|
|
@@ -30,26 +30,23 @@ const TttxTag = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
30
30
|
"iconColor": [1, "icon-color"],
|
|
31
31
|
"iconSize": [2, "icon-size"]
|
|
32
32
|
}]);
|
|
33
|
-
function defineCustomElement
|
|
33
|
+
function defineCustomElement() {
|
|
34
34
|
if (typeof customElements === "undefined") {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
const components = ["tttx-
|
|
37
|
+
const components = ["tttx-tag_1_9_24", "tttx-icon_1_9_24"];
|
|
38
38
|
components.forEach(tagName => { switch (tagName) {
|
|
39
|
-
case "tttx-
|
|
39
|
+
case "tttx-tag_1_9_24":
|
|
40
40
|
if (!customElements.get(tagName)) {
|
|
41
41
|
customElements.define(tagName, TttxTag);
|
|
42
42
|
}
|
|
43
43
|
break;
|
|
44
|
-
case "tttx-
|
|
44
|
+
case "tttx-icon_1_9_24":
|
|
45
45
|
if (!customElements.get(tagName)) {
|
|
46
|
-
defineCustomElement$
|
|
46
|
+
defineCustomElement$1();
|
|
47
47
|
}
|
|
48
48
|
break;
|
|
49
49
|
} });
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
const defineCustomElement = defineCustomElement$1;
|
|
54
|
-
|
|
55
|
-
export { TttxTag_1_9_22, defineCustomElement };
|
|
52
|
+
export { TttxTag as T, defineCustomElement as d };
|