@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
package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js
CHANGED
|
@@ -13,7 +13,7 @@ const options = [
|
|
|
13
13
|
{ value: 'Bonnie', label: 'Steuber', selected: true },
|
|
14
14
|
{ value: 'Priscilla', label: 'Lowe' },
|
|
15
15
|
{ value: 'Andy', label: 'Thompson-Keebler', html: '<span style="color: red">Thompson-Keebler</span>' },
|
|
16
|
-
{ value: 'egg', label: 'egg', html: '<tttx-
|
|
16
|
+
{ value: 'egg', label: 'egg', html: '<tttx-icon_1_9_24 icon="egg" />' },
|
|
17
17
|
{ value: 'Terence', label: 'Hyatt' },
|
|
18
18
|
{ value: 'Ruben', label: 'Toy' },
|
|
19
19
|
{ value: 'Rhiannon', label: 'Hills' },
|
|
@@ -28,7 +28,7 @@ const options = [
|
|
|
28
28
|
{ value: 'Ronaldo', label: 'Mann' },
|
|
29
29
|
];
|
|
30
30
|
const TemplateMultiselectBox = args => `
|
|
31
|
-
<tttx-multiselect-
|
|
31
|
+
<tttx-multiselect-box_1_9_24
|
|
32
32
|
id="multiselectBox"
|
|
33
33
|
options-data='${JSON.stringify(args.optionsData)}'
|
|
34
34
|
label='${args.label}'
|
|
@@ -38,7 +38,7 @@ const TemplateMultiselectBox = args => `
|
|
|
38
38
|
is-loading='${args.isLoading}'
|
|
39
39
|
stop-local-search='${args.stopLocalSearch}'
|
|
40
40
|
html-visible-value: true,
|
|
41
|
-
></tttx-multiselect-
|
|
41
|
+
></tttx-multiselect-box_1_9_24>
|
|
42
42
|
|
|
43
43
|
<script>
|
|
44
44
|
// Handle case where storybook renders this story twice
|
|
@@ -61,7 +61,7 @@ BasicMultiselectBox.args = {
|
|
|
61
61
|
stopLocalSearch: true
|
|
62
62
|
};
|
|
63
63
|
const ReadOnlyMultiselectBoxTemplate = args => `
|
|
64
|
-
<tttx-multiselect-
|
|
64
|
+
<tttx-multiselect-box_1_9_24
|
|
65
65
|
id="multiselectBox"
|
|
66
66
|
options-data='${JSON.stringify(args.optionsData)}'
|
|
67
67
|
label='${args.label}'
|
|
@@ -72,7 +72,7 @@ const ReadOnlyMultiselectBoxTemplate = args => `
|
|
|
72
72
|
stop-local-search='${args.stopLocalSearch}'
|
|
73
73
|
read-only='${args.readOnly}'
|
|
74
74
|
visible-value='${options[0].label}'
|
|
75
|
-
></tttx-multiselect-
|
|
75
|
+
></tttx-multiselect-box_1_9_24>
|
|
76
76
|
|
|
77
77
|
<script>
|
|
78
78
|
// Handle case where storybook renders this story twice
|
|
@@ -96,20 +96,20 @@ ReadOnlyMultiselectBox.args = {
|
|
|
96
96
|
readOnly: true
|
|
97
97
|
};
|
|
98
98
|
const htmlOptions = [
|
|
99
|
-
{ value: '1', label: 'Client', html: '<tttx-
|
|
100
|
-
{ value: '2', label: 'Job Role', html: '<tttx-
|
|
101
|
-
{ value: '3', label: 'Foo', html: '<tttx-
|
|
102
|
-
{ value: '4', label: 'Bar', html: '<tttx-
|
|
103
|
-
{ value: '5', label: 'Baz', html: '<tttx-
|
|
104
|
-
{ value: '6', label: 'Mill', html: '<tttx-
|
|
105
|
-
{ value: '7', label: 'Hill', html: '<tttx-
|
|
106
|
-
{ value: '8', label: 'Fill', html: '<tttx-
|
|
107
|
-
{ value: '9', label: 'Supercalifragilisticexpialidocious', html: '<tttx-
|
|
99
|
+
{ value: '1', label: 'Client', html: '<tttx-tag_1_9_24 text="Client" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
100
|
+
{ value: '2', label: 'Job Role', html: '<tttx-tag_1_9_24 text="Job Role" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
101
|
+
{ value: '3', label: 'Foo', html: '<tttx-tag_1_9_24 text="Foo" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
102
|
+
{ value: '4', label: 'Bar', html: '<tttx-tag_1_9_24 text="Bar" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
103
|
+
{ value: '5', label: 'Baz', html: '<tttx-tag_1_9_24 text="Baz" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
104
|
+
{ value: '6', label: 'Mill', html: '<tttx-tag_1_9_24 text="Mill" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
105
|
+
{ value: '7', label: 'Hill', html: '<tttx-tag_1_9_24 text="Hill" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
106
|
+
{ value: '8', label: 'Fill', html: '<tttx-tag_1_9_24 text="Fill" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
107
|
+
{ value: '9', label: 'Supercalifragilisticexpialidocious', html: '<tttx-tag_1_9_24 text="Supercalifragilisticexpialidocious" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
108
108
|
];
|
|
109
109
|
const TemplateHtmlVisibleValueWrap = args => `
|
|
110
110
|
<div style="height: 400px; width: 50px"></div>
|
|
111
111
|
<div style="width: 300px">
|
|
112
|
-
<tttx-multiselect-
|
|
112
|
+
<tttx-multiselect-box_1_9_24
|
|
113
113
|
id="multiselectBoxVisibleValueWrap"
|
|
114
114
|
options-data='${JSON.stringify(args.optionsData)}'
|
|
115
115
|
label='${args.label}'
|
|
@@ -117,8 +117,8 @@ const TemplateHtmlVisibleValueWrap = args => `
|
|
|
117
117
|
search-enabled='${args.searchEnabled}'
|
|
118
118
|
inline='${args.inline}'
|
|
119
119
|
html-visible-value='true'
|
|
120
|
-
visible-value='<tttx-
|
|
121
|
-
></tttx-multiselect-
|
|
120
|
+
visible-value='<tttx-tag_1_9_24 text="Client" color="#f2bebe"></tttx-tag_1_9_24><tttx-tag_1_9_24 text="Foo" color="#e4ebc9"></tttx-tag_1_9_24><tttx-tag_1_9_24 text="Bar" color="#f2bebe"></tttx-tag_1_9_24><tttx-tag_1_9_24 text="Mill" color="#e4ebc9"></tttx-tag_1_9_24><tttx-tag_1_9_24 text="Hill" color="#f2bebe"></tttx-tag_1_9_24><tttx-tag_1_9_24 text="Supercalifragilisticexpialidocious" color="#e4ebc9"></tttx-tag_1_9_24>'
|
|
121
|
+
></tttx-multiselect-box_1_9_24>
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<script>
|
|
@@ -140,12 +140,12 @@ HtmlVisibleValueWrap.args = {
|
|
|
140
140
|
inline: false,
|
|
141
141
|
};
|
|
142
142
|
const htmlOptionsShort = [
|
|
143
|
-
{ value: '1', label: 'Client', html: '<tttx-
|
|
144
|
-
{ value: '2', label: 'Job Role', html: '<tttx-
|
|
145
|
-
{ value: '3', label: 'Foo', html: '<tttx-
|
|
143
|
+
{ value: '1', label: 'Client', html: '<tttx-tag_1_9_24 text="Client" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
144
|
+
{ value: '2', label: 'Job Role', html: '<tttx-tag_1_9_24 text="Job Role" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
145
|
+
{ value: '3', label: 'Foo', html: '<tttx-tag_1_9_24 text="Foo" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
146
146
|
];
|
|
147
147
|
const TemplateHtmlVisibleValue = args => `
|
|
148
|
-
<tttx-multiselect-
|
|
148
|
+
<tttx-multiselect-box_1_9_24
|
|
149
149
|
id="multiselectBox"
|
|
150
150
|
options-data='${JSON.stringify(args.optionsData)}'
|
|
151
151
|
label='${args.label}'
|
|
@@ -153,7 +153,7 @@ const TemplateHtmlVisibleValue = args => `
|
|
|
153
153
|
search-enabled='${args.searchEnabled}'
|
|
154
154
|
inline='${args.inline}'
|
|
155
155
|
html-visible-value='true'
|
|
156
|
-
></tttx-multiselect-
|
|
156
|
+
></tttx-multiselect-box_1_9_24>
|
|
157
157
|
|
|
158
158
|
<script>
|
|
159
159
|
// Handle case where storybook renders this story twice
|
|
@@ -174,22 +174,22 @@ HtmlVisibleValue.args = {
|
|
|
174
174
|
inline: false,
|
|
175
175
|
};
|
|
176
176
|
const tagOptions = [
|
|
177
|
-
{ value: '1', label: 'Client', html: '<tttx-
|
|
178
|
-
{ value: '2', label: 'Job Role', html: '<tttx-
|
|
179
|
-
{ value: '3', label: 'Foo', html: '<tttx-
|
|
180
|
-
{ value: '4', label: 'Bar', html: '<tttx-
|
|
181
|
-
{ value: '5', label: 'Baz', html: '<tttx-
|
|
182
|
-
{ value: '6', label: 'Mill', html: '<tttx-
|
|
183
|
-
{ value: '7', label: 'Hill', html: '<tttx-
|
|
184
|
-
{ value: '8', label: 'Fill', html: '<tttx-
|
|
185
|
-
{ value: '9', label: 'Supercalifragilisticexpialidocious', html: '<tttx-
|
|
177
|
+
{ value: '1', label: 'Client', html: '<tttx-tag_1_9_24 text="Client" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
178
|
+
{ value: '2', label: 'Job Role', html: '<tttx-tag_1_9_24 text="Job Role" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
179
|
+
{ value: '3', label: 'Foo', html: '<tttx-tag_1_9_24 text="Foo" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
180
|
+
{ value: '4', label: 'Bar', html: '<tttx-tag_1_9_24 text="Bar" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
181
|
+
{ value: '5', label: 'Baz', html: '<tttx-tag_1_9_24 text="Baz" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
182
|
+
{ value: '6', label: 'Mill', html: '<tttx-tag_1_9_24 text="Mill" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
183
|
+
{ value: '7', label: 'Hill', html: '<tttx-tag_1_9_24 text="Hill" color="#f2bebe"></tttx-tag_1_9_24>', selected: true },
|
|
184
|
+
{ value: '8', label: 'Fill', html: '<tttx-tag_1_9_24 text="Fill" color="#f9e1be"></tttx-tag_1_9_24>' },
|
|
185
|
+
{ value: '9', label: 'Supercalifragilisticexpialidocious', html: '<tttx-tag_1_9_24 text="Supercalifragilisticexpialidocious" color="#e4ebc9"></tttx-tag_1_9_24>', selected: true },
|
|
186
186
|
];
|
|
187
187
|
const TttxDialogBoxStory = ({ data }) => `
|
|
188
188
|
<button onclick="openDialog()">Open</button>
|
|
189
|
-
<tttx-dialog-
|
|
189
|
+
<tttx-dialog-box_1_9_24
|
|
190
190
|
id='dialogBox'
|
|
191
191
|
allow-overflow='true'
|
|
192
|
-
></tttx-dialog-
|
|
192
|
+
></tttx-dialog-box_1_9_24>
|
|
193
193
|
<script>
|
|
194
194
|
if(!dialogBox) {
|
|
195
195
|
const dialogBox = document.getElementById('dialogBox');
|
|
@@ -216,7 +216,7 @@ DialogBoxWithDropdown.args = {
|
|
|
216
216
|
isCustomHtml: true,
|
|
217
217
|
customHtml: `
|
|
218
218
|
<div style="padding: 5px;">
|
|
219
|
-
<tttx-multiselect-
|
|
219
|
+
<tttx-multiselect-box_1_9_24
|
|
220
220
|
id="dropdownSelectBox"
|
|
221
221
|
options-data='${JSON.stringify(tagOptions)}'
|
|
222
222
|
label='Label'
|
|
@@ -225,7 +225,7 @@ DialogBoxWithDropdown.args = {
|
|
|
225
225
|
inline='${false}'
|
|
226
226
|
visible-value='${tagOptions[0].html} ${tagOptions[2].html}'
|
|
227
227
|
html-visible-value='true'
|
|
228
|
-
></tttx-multiselect-
|
|
228
|
+
></tttx-multiselect-box_1_9_24>
|
|
229
229
|
</div>
|
|
230
230
|
`,
|
|
231
231
|
},
|
|
@@ -238,3 +238,40 @@ DialogBoxWithDropdown.args = {
|
|
|
238
238
|
},
|
|
239
239
|
},
|
|
240
240
|
};
|
|
241
|
+
const priorityMultiSelectOptions = [
|
|
242
|
+
{ value: '1', label: 'Triss Merigold', prioritise: true },
|
|
243
|
+
{ value: '2', label: 'Yennefer of Vengerberg', prioritise: true },
|
|
244
|
+
{ value: '3', label: 'Philippa Eilhart' },
|
|
245
|
+
{ value: '4', label: 'Keira Metz' }
|
|
246
|
+
];
|
|
247
|
+
const TemplatePriorityMultiSelect = args => `
|
|
248
|
+
<tttx-multiselect-box_1_9_24
|
|
249
|
+
id="multiselectBox"
|
|
250
|
+
options-data='${JSON.stringify(args.optionsData)}'
|
|
251
|
+
label='${args.label}'
|
|
252
|
+
placeholder='${args.placeholder}'
|
|
253
|
+
search-enabled='${args.searchEnabled}'
|
|
254
|
+
inline='${args.inline}'
|
|
255
|
+
priority-label='${args.priorityLabel}'
|
|
256
|
+
non-priority-label='${args.nonPriorityLabel}'
|
|
257
|
+
></tttx-multiselect-box_1_9_24>
|
|
258
|
+
|
|
259
|
+
<script>
|
|
260
|
+
if (!multiselectBox.length) {
|
|
261
|
+
multiselectBox.addEventListener('changesApplied', (event) => {
|
|
262
|
+
multiselectBox.optionsData = event.detail;
|
|
263
|
+
multiselectBox.visibleValue = event.detail.filter((option) => option.selected).map((option) => option.label).join(', ');
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
</script>
|
|
267
|
+
`;
|
|
268
|
+
export const PriorityMultiSelect = TemplatePriorityMultiSelect.bind({});
|
|
269
|
+
PriorityMultiSelect.args = {
|
|
270
|
+
optionsData: priorityMultiSelectOptions,
|
|
271
|
+
label: 'Label',
|
|
272
|
+
placeholder: 'Placeholder',
|
|
273
|
+
searchEnabled: true,
|
|
274
|
+
inline: false,
|
|
275
|
+
priorityLabel: 'The Best',
|
|
276
|
+
nonPriorityLabel: 'The Rest'
|
|
277
|
+
};
|
|
@@ -17,14 +17,19 @@ export class TttxSelectBox {
|
|
|
17
17
|
this.searchEnabled = undefined;
|
|
18
18
|
this.selectedValue = undefined;
|
|
19
19
|
this.useExternalFiltering = undefined;
|
|
20
|
+
this.useExternalPaginatedFiltering = undefined;
|
|
21
|
+
this.isAllExternalDataLoaded = undefined;
|
|
20
22
|
this.isLoading = undefined;
|
|
21
23
|
this.readOnly = undefined;
|
|
24
|
+
this.priorityLabel = 'Priority Group';
|
|
25
|
+
this.nonPriorityLabel = 'Non Priority Group';
|
|
22
26
|
this.showErrorMsg = undefined;
|
|
23
27
|
this.showErrorBubble = false;
|
|
24
28
|
this.errorMsg = undefined;
|
|
25
29
|
this.open = false;
|
|
26
30
|
this.selectedItem = undefined;
|
|
27
31
|
this.searchTerm = '';
|
|
32
|
+
this.loadingNextExternalPage = false;
|
|
28
33
|
}
|
|
29
34
|
async componentWillLoad() {
|
|
30
35
|
if (this.optionsData) {
|
|
@@ -34,12 +39,17 @@ export class TttxSelectBox {
|
|
|
34
39
|
});
|
|
35
40
|
this.selectedItem = matchingItems.length > 0 ? matchingItems[0] : undefined;
|
|
36
41
|
}
|
|
42
|
+
this._isAllExternalDataLoaded = this.isAllExternalDataLoaded;
|
|
37
43
|
}
|
|
38
44
|
async setOptionsData() {
|
|
39
45
|
this._optionsData = typeof this.optionsData === 'string' ? JSON.parse(this.optionsData) : this.optionsData;
|
|
40
46
|
if (this.open) {
|
|
41
47
|
this.calculateDropdownMenuOffset();
|
|
42
48
|
}
|
|
49
|
+
this.loadingNextExternalPage = false;
|
|
50
|
+
}
|
|
51
|
+
updateAllLoadedBool() {
|
|
52
|
+
this._isAllExternalDataLoaded = this.isAllExternalDataLoaded;
|
|
43
53
|
}
|
|
44
54
|
async setSelectedItem(value) {
|
|
45
55
|
if (!value)
|
|
@@ -72,6 +82,7 @@ export class TttxSelectBox {
|
|
|
72
82
|
return;
|
|
73
83
|
this.open = !this.open;
|
|
74
84
|
this.searchTerm = '';
|
|
85
|
+
this.loadingNextExternalPage = false;
|
|
75
86
|
this.calculateDropdownMenuOffset();
|
|
76
87
|
this.toggleOpen.emit(this.open);
|
|
77
88
|
}
|
|
@@ -84,7 +95,7 @@ export class TttxSelectBox {
|
|
|
84
95
|
let title;
|
|
85
96
|
let subtitle;
|
|
86
97
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
87
|
-
const icon = h("tttx-
|
|
98
|
+
const icon = h("tttx-icon_1_9_24", { icon: chevronIcon, color: "black" });
|
|
88
99
|
let chevron = h("div", { class: "dropdown-selector-chevron" }, icon);
|
|
89
100
|
if (!this.selectedItem) {
|
|
90
101
|
title = h("div", { class: "placeholder" }, this.placeholder);
|
|
@@ -103,27 +114,49 @@ export class TttxSelectBox {
|
|
|
103
114
|
return (h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), chevron));
|
|
104
115
|
}
|
|
105
116
|
}
|
|
117
|
+
renderDropdownOptions(options) {
|
|
118
|
+
let usingPriority = false;
|
|
119
|
+
const priorityOptions = [];
|
|
120
|
+
const nonPriorityOptions = [];
|
|
121
|
+
for (const option of options) {
|
|
122
|
+
// using priority groups if any item has the option set, so set true for first found
|
|
123
|
+
usingPriority = usingPriority || option.prioritise === true;
|
|
124
|
+
// don't include if it doesn't match the search term when searching
|
|
125
|
+
if (this.searchEnabled &&
|
|
126
|
+
(!this.useExternalFiltering && !this.useExternalPaginatedFiltering) &&
|
|
127
|
+
option.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()) === -1)
|
|
128
|
+
continue;
|
|
129
|
+
if (option.prioritise === true) {
|
|
130
|
+
priorityOptions.push(option);
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
nonPriorityOptions.push(option);
|
|
134
|
+
}
|
|
135
|
+
// render priority options at the top of the dropdown list
|
|
136
|
+
return (h(Fragment, null, usingPriority && priorityOptions.length > 0 &&
|
|
137
|
+
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 &&
|
|
138
|
+
h(Fragment, null, usingPriority &&
|
|
139
|
+
h("tttx-tag_1_9_24", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
|
|
140
|
+
}
|
|
106
141
|
dropdownOption(option) {
|
|
107
|
-
const hideOption = this.searchEnabled && option.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()) === -1;
|
|
108
142
|
const selected = this.selectedItem && option.value === this.selectedItem.value;
|
|
109
143
|
if (option.html) {
|
|
110
144
|
const sanitisedHTML = DOMPurify.sanitize(option.html, domSanitiserOptions);
|
|
111
|
-
return (h("div", { class: `dropdown-option ${
|
|
145
|
+
return (h("div", { class: `dropdown-option ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label, innerHTML: sanitisedHTML }));
|
|
112
146
|
}
|
|
113
147
|
else if (option.description) {
|
|
114
|
-
return (h("div", { class: `dropdown-option ${
|
|
148
|
+
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))));
|
|
115
149
|
}
|
|
116
|
-
return (h("div", { class: `dropdown-option ${
|
|
150
|
+
return (h("div", { class: `dropdown-option ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label));
|
|
117
151
|
}
|
|
118
152
|
handleSearchInput(event) {
|
|
119
153
|
const searchInput = event.target.value;
|
|
120
|
-
if (this.useExternalFiltering) {
|
|
154
|
+
if (this.useExternalFiltering || this.useExternalPaginatedFiltering) {
|
|
121
155
|
// emit event with the latest search value
|
|
122
156
|
clearTimeout(this.searchFilterTimeout);
|
|
123
157
|
this.searchFilterTimeout = setTimeout((filterValue) => {
|
|
124
158
|
this.searchUpdated.emit(filterValue);
|
|
125
159
|
}, 500, searchInput);
|
|
126
|
-
return;
|
|
127
160
|
}
|
|
128
161
|
this.searchTerm = searchInput;
|
|
129
162
|
}
|
|
@@ -173,16 +206,25 @@ export class TttxSelectBox {
|
|
|
173
206
|
overflowY: 'auto', // Allow scrolling if needed
|
|
174
207
|
};
|
|
175
208
|
}
|
|
209
|
+
onSelectScroll(scrollEvent) {
|
|
210
|
+
const selectDiv = scrollEvent.target;
|
|
211
|
+
const isScrolledEnd = selectDiv.scrollTop === (selectDiv.scrollHeight - selectDiv.offsetHeight);
|
|
212
|
+
if (this.useExternalPaginatedFiltering && isScrolledEnd && !this.loadingNextExternalPage && !this._isAllExternalDataLoaded) {
|
|
213
|
+
this.loadingNextExternalPage = true;
|
|
214
|
+
clearTimeout(this.selectEndReached);
|
|
215
|
+
this.selectEndReached = setTimeout((filterValue) => {
|
|
216
|
+
this.selectEndReachedEvent.emit(filterValue);
|
|
217
|
+
}, 500, this.searchTerm);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
176
220
|
render() {
|
|
177
221
|
if (!this.optionsData)
|
|
178
222
|
return;
|
|
179
223
|
const invalidClass = this.showErrorMsg ? 'invalid' : '';
|
|
180
224
|
const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
|
|
181
|
-
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-
|
|
182
|
-
return this.dropdownOption(option);
|
|
183
|
-
})))))), 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)))));
|
|
225
|
+
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)))));
|
|
184
226
|
}
|
|
185
|
-
static get is() { return "tttx-select-
|
|
227
|
+
static get is() { return "tttx-select-box_1_9_24"; }
|
|
186
228
|
static get encapsulation() { return "shadow"; }
|
|
187
229
|
static get originalStyleUrls() {
|
|
188
230
|
return {
|
|
@@ -322,6 +364,40 @@ export class TttxSelectBox {
|
|
|
322
364
|
"attribute": "use-external-filtering",
|
|
323
365
|
"reflect": false
|
|
324
366
|
},
|
|
367
|
+
"useExternalPaginatedFiltering": {
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"mutable": false,
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "boolean",
|
|
372
|
+
"resolved": "boolean",
|
|
373
|
+
"references": {}
|
|
374
|
+
},
|
|
375
|
+
"required": false,
|
|
376
|
+
"optional": false,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [],
|
|
379
|
+
"text": ""
|
|
380
|
+
},
|
|
381
|
+
"attribute": "use-external-paginated-filtering",
|
|
382
|
+
"reflect": false
|
|
383
|
+
},
|
|
384
|
+
"isAllExternalDataLoaded": {
|
|
385
|
+
"type": "boolean",
|
|
386
|
+
"mutable": false,
|
|
387
|
+
"complexType": {
|
|
388
|
+
"original": "boolean",
|
|
389
|
+
"resolved": "boolean",
|
|
390
|
+
"references": {}
|
|
391
|
+
},
|
|
392
|
+
"required": false,
|
|
393
|
+
"optional": false,
|
|
394
|
+
"docs": {
|
|
395
|
+
"tags": [],
|
|
396
|
+
"text": ""
|
|
397
|
+
},
|
|
398
|
+
"attribute": "is-all-external-data-loaded",
|
|
399
|
+
"reflect": false
|
|
400
|
+
},
|
|
325
401
|
"isLoading": {
|
|
326
402
|
"type": "boolean",
|
|
327
403
|
"mutable": false,
|
|
@@ -356,6 +432,42 @@ export class TttxSelectBox {
|
|
|
356
432
|
"attribute": "read-only",
|
|
357
433
|
"reflect": false
|
|
358
434
|
},
|
|
435
|
+
"priorityLabel": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"mutable": false,
|
|
438
|
+
"complexType": {
|
|
439
|
+
"original": "string",
|
|
440
|
+
"resolved": "string",
|
|
441
|
+
"references": {}
|
|
442
|
+
},
|
|
443
|
+
"required": false,
|
|
444
|
+
"optional": false,
|
|
445
|
+
"docs": {
|
|
446
|
+
"tags": [],
|
|
447
|
+
"text": ""
|
|
448
|
+
},
|
|
449
|
+
"attribute": "priority-label",
|
|
450
|
+
"reflect": false,
|
|
451
|
+
"defaultValue": "'Priority Group'"
|
|
452
|
+
},
|
|
453
|
+
"nonPriorityLabel": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"mutable": false,
|
|
456
|
+
"complexType": {
|
|
457
|
+
"original": "string",
|
|
458
|
+
"resolved": "string",
|
|
459
|
+
"references": {}
|
|
460
|
+
},
|
|
461
|
+
"required": false,
|
|
462
|
+
"optional": false,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [],
|
|
465
|
+
"text": ""
|
|
466
|
+
},
|
|
467
|
+
"attribute": "non-priority-label",
|
|
468
|
+
"reflect": false,
|
|
469
|
+
"defaultValue": "'Non Priority Group'"
|
|
470
|
+
},
|
|
359
471
|
"showErrorMsg": {
|
|
360
472
|
"type": "boolean",
|
|
361
473
|
"mutable": false,
|
|
@@ -414,7 +526,8 @@ export class TttxSelectBox {
|
|
|
414
526
|
return {
|
|
415
527
|
"open": {},
|
|
416
528
|
"selectedItem": {},
|
|
417
|
-
"searchTerm": {}
|
|
529
|
+
"searchTerm": {},
|
|
530
|
+
"loadingNextExternalPage": {}
|
|
418
531
|
};
|
|
419
532
|
}
|
|
420
533
|
static get events() {
|
|
@@ -468,6 +581,21 @@ export class TttxSelectBox {
|
|
|
468
581
|
"resolved": "string",
|
|
469
582
|
"references": {}
|
|
470
583
|
}
|
|
584
|
+
}, {
|
|
585
|
+
"method": "selectEndReachedEvent",
|
|
586
|
+
"name": "selectEndReached",
|
|
587
|
+
"bubbles": true,
|
|
588
|
+
"cancelable": true,
|
|
589
|
+
"composed": true,
|
|
590
|
+
"docs": {
|
|
591
|
+
"tags": [],
|
|
592
|
+
"text": ""
|
|
593
|
+
},
|
|
594
|
+
"complexType": {
|
|
595
|
+
"original": "string",
|
|
596
|
+
"resolved": "string",
|
|
597
|
+
"references": {}
|
|
598
|
+
}
|
|
471
599
|
}];
|
|
472
600
|
}
|
|
473
601
|
static get methods() {
|
|
@@ -498,6 +626,9 @@ export class TttxSelectBox {
|
|
|
498
626
|
return [{
|
|
499
627
|
"propName": "optionsData",
|
|
500
628
|
"methodName": "setOptionsData"
|
|
629
|
+
}, {
|
|
630
|
+
"propName": "isAllExternalDataLoaded",
|
|
631
|
+
"methodName": "updateAllLoadedBool"
|
|
501
632
|
}];
|
|
502
633
|
}
|
|
503
634
|
static get listeners() {
|