@3t-transform/threeteeui 1.9.72 → 1.9.73
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-action-dropdown_1_9_72.cjs.entry.js → tttx-action-dropdown_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-button-v2_1_9_72.cjs.entry.js → tttx-button-v2_1_9_73.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-button_1_9_72.cjs.entry.js → tttx-button_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-chart_1_9_72.cjs.entry.js → tttx-chart_1_9_73.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_72.cjs.entry.js → tttx-checkbox-group-caption_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_72.cjs.entry.js → tttx-checkbox-group-heading_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_72.cjs.entry.js → tttx-checkbox-group_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_72.cjs.entry.js → tttx-checkbox_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-comments_1_9_72.cjs.entry.js → tttx-comments_1_9_73.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-data-pattern_1_9_72.cjs.entry.js → tttx-data-pattern_1_9_73.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-datacard_1_9_72.cjs.entry.js → tttx-datacard_1_9_73.cjs.entry.js} +4 -4
- package/dist/cjs/tttx-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/{tttx-dialog-box_1_9_72.cjs.entry.js → tttx-dialog-box_1_9_73.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_9_72.cjs.entry.js → tttx-dialog_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_72.cjs.entry.js → tttx-expander_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_72_4.cjs.entry.js → tttx-filter_1_9_73_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_72.cjs.entry.js → tttx-form_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_72.cjs.entry.js → tttx-graph_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_72.cjs.entry.js → tttx-icon_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_72.cjs.entry.js → tttx-keyvalue-block_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_9_72_3.cjs.entry.js → tttx-loading-spinner_1_9_73_3.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-multiselect-box_1_9_72.cjs.entry.js → tttx-multiselect-box_1_9_73.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_9_72.cjs.entry.js → tttx-percentage-bar_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_72.cjs.entry.js → tttx-qrcode_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-range-slider_1_9_72.cjs.entry.js → tttx-range-slider_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_72.cjs.entry.js → tttx-select-box_1_9_73.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-skeleton_loader_1_9_72.cjs.entry.js → tttx-skeleton_loader_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-table_1_9_72.cjs.entry.js → tttx-table_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tabs_1_9_72.cjs.entry.js → tttx-tabs_1_9_73.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag-v2_1_9_72.cjs.entry.js → tttx-tag-v2_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-textarea_1_9_72.cjs.entry.js → tttx-textarea_1_9_73.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_72.cjs.entry.js → tttx-toggle_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tooltip_1_9_72.cjs.entry.js → tttx-tooltip_1_9_73.cjs.entry.js} +1 -1
- package/dist/cjs/tttx-tree-view_1_9_73.cjs.entry.js +221 -0
- 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 +24 -24
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.css +1 -1
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +3 -3
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +15 -15
- 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 +2 -2
- 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-skeleton-loader/tttx-skeleton-loader.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-tag-v2/tttx-tag-v2.js +2 -2
- package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.stories.js +2 -2
- 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-action-dropdown/tttx-action-dropdown.js +2 -2
- package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +3 -3
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +4 -4
- 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 +4 -4
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.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 +8 -8
- 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.js +7 -7
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.js +1 -1
- package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.stories.js +3 -3
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
- 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-tooltip/tttx-tooltip.js +1 -1
- package/dist/collection/components/molecules/tttx-tooltip/tttx-tootip.stories.js +2 -2
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +129 -6
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +33 -19
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +446 -23
- 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 +38 -38
- package/dist/components/index.js +38 -38
- package/dist/components/tttx-action-dropdown_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_72.js → tttx-action-dropdown_1_9_73.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_72.d.ts → tttx-button-v2_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-button-v2_1_9_72.js → tttx-button-v2_1_9_73.js} +9 -9
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-dialog_1_9_72.d.ts → tttx-button_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_72.js → tttx-button_1_9_73.js} +2 -2
- package/dist/components/{tttx-table_1_9_72.d.ts → tttx-chart_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-chart_1_9_72.js → tttx-chart_1_9_73.js} +10 -10
- package/dist/components/tttx-checkbox-group-caption_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_72.js → tttx-checkbox-group-caption_1_9_73.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_72.js → tttx-checkbox-group-heading_1_9_73.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_72.js → tttx-checkbox-group_1_9_73.js} +5 -5
- package/dist/components/{tttx-button-v2_1_9_72.d.ts → tttx-checkbox_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_72.js → tttx-checkbox_1_9_73.js} +7 -7
- package/dist/components/tttx-comments_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-comments_1_9_72.js → tttx-comments_1_9_73.js} +9 -9
- package/dist/components/tttx-data-pattern_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_72.js → tttx-data-pattern_1_9_73.js} +16 -16
- package/dist/components/tttx-datacard_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_72.js → tttx-datacard_1_9_73.js} +10 -10
- package/dist/components/tttx-date-range-picker.js +3 -3
- package/dist/components/tttx-dialog-box_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_72.js → tttx-dialog-box_1_9_73.js} +9 -9
- package/dist/components/{tttx-filter_1_9_72.d.ts → tttx-dialog_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_72.js → tttx-dialog_1_9_73.js} +8 -8
- package/dist/components/tttx-expander_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_72.js → tttx-expander_1_9_73.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-button_1_9_72.d.ts → tttx-filter_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_72.js → tttx-filter_1_9_73.js} +2 -2
- package/dist/components/{tttx-form_1_9_72.d.ts → tttx-form_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_72.js → tttx-form_1_9_73.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-graph_1_9_72.d.ts → tttx-graph_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_72.js → tttx-graph_1_9_73.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_9_72.d.ts → tttx-icon_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_72.js → tttx-icon_1_9_73.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_72.js → tttx-keyvalue-block_1_9_73.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-icon_1_9_72.d.ts → tttx-list_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_72.js → tttx-list_1_9_73.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_72.js → tttx-loading-spinner_1_9_73.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_72.js → tttx-multiselect-box_1_9_73.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_72.js → tttx-percentage-bar_1_9_73.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_72.d.ts → tttx-qrcode_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_72.js → tttx-qrcode_1_9_73.js} +5 -5
- package/dist/components/tttx-range-slider_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-range-slider_1_9_72.js → tttx-range-slider_1_9_73.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_72.js → tttx-select-box_1_9_73.js} +2 -2
- package/dist/components/tttx-skeleton_loader_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_72.js → tttx-skeleton_loader_1_9_73.js} +5 -5
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_72.js → tttx-sorter_1_9_73.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_72.js → tttx-standalone-input_1_9_73.js} +2 -2
- package/dist/components/{tttx-tag-v2_1_9_72.d.ts → tttx-table_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_72.js → tttx-table_1_9_73.js} +5 -5
- package/dist/components/{tttx-tabs_1_9_72.d.ts → tttx-tabs_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_72.js → tttx-tabs_1_9_73.js} +9 -9
- package/dist/components/{tttx-chart_1_9_72.d.ts → tttx-tag-v2_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-tag-v2_1_9_72.js → tttx-tag-v2_1_9_73.js} +7 -7
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-tag_1_9_72.d.ts → tttx-tag_1_9_73.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_72.js → tttx-tag_1_9_73.js} +2 -2
- package/dist/components/tttx-textarea_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_72.js → tttx-textarea_1_9_73.js} +6 -6
- package/dist/components/tttx-toggle_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_72.js → tttx-toggle_1_9_73.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_72.js → tttx-toolbar_1_9_73.js} +2 -2
- package/dist/components/tttx-tooltip_1_9_73.d.ts +11 -0
- package/dist/components/{tttx-tooltip_1_9_72.js → tttx-tooltip_1_9_73.js} +5 -5
- package/dist/components/tttx-tree-view_1_9_73.d.ts +11 -0
- package/dist/components/tttx-tree-view_1_9_73.js +249 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-action-dropdown_1_9_72.entry.js → tttx-action-dropdown_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-button-v2_1_9_72.entry.js → tttx-button-v2_1_9_73.entry.js} +4 -4
- package/dist/esm/{tttx-button_1_9_72.entry.js → tttx-button_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-chart_1_9_72.entry.js → tttx-chart_1_9_73.entry.js} +3 -3
- package/dist/esm/{tttx-checkbox-group-caption_1_9_72.entry.js → tttx-checkbox-group-caption_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_72.entry.js → tttx-checkbox-group-heading_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_72.entry.js → tttx-checkbox-group_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_72.entry.js → tttx-checkbox_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-comments_1_9_72.entry.js → tttx-comments_1_9_73.entry.js} +4 -4
- package/dist/esm/{tttx-data-pattern_1_9_72.entry.js → tttx-data-pattern_1_9_73.entry.js} +5 -5
- package/dist/esm/{tttx-datacard_1_9_72.entry.js → tttx-datacard_1_9_73.entry.js} +4 -4
- package/dist/esm/tttx-date-range-picker.entry.js +1 -1
- package/dist/esm/{tttx-dialog-box_1_9_72.entry.js → tttx-dialog-box_1_9_73.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_9_72.entry.js → tttx-dialog_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_72.entry.js → tttx-expander_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_72_4.entry.js → tttx-filter_1_9_73_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_72.entry.js → tttx-form_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_72.entry.js → tttx-graph_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_72.entry.js → tttx-icon_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_72.entry.js → tttx-keyvalue-block_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_9_72_3.entry.js → tttx-loading-spinner_1_9_73_3.entry.js} +4 -4
- package/dist/esm/{tttx-multiselect-box_1_9_72.entry.js → tttx-multiselect-box_1_9_73.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_9_72.entry.js → tttx-percentage-bar_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_72.entry.js → tttx-qrcode_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-range-slider_1_9_72.entry.js → tttx-range-slider_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_72.entry.js → tttx-select-box_1_9_73.entry.js} +6 -6
- package/dist/esm/{tttx-skeleton_loader_1_9_72.entry.js → tttx-skeleton_loader_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-table_1_9_72.entry.js → tttx-table_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-tabs_1_9_72.entry.js → tttx-tabs_1_9_73.entry.js} +4 -4
- package/dist/esm/{tttx-tag-v2_1_9_72.entry.js → tttx-tag-v2_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-textarea_1_9_72.entry.js → tttx-textarea_1_9_73.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_72.entry.js → tttx-toggle_1_9_73.entry.js} +1 -1
- package/dist/esm/{tttx-tooltip_1_9_72.entry.js → tttx-tooltip_1_9_73.entry.js} +1 -1
- package/dist/esm/tttx-tree-view_1_9_73.entry.js +217 -0
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-13272658.entry.js +1 -1
- package/dist/tttx/p-1f75b5d3.entry.js +1 -1
- package/dist/tttx/p-32cf4137.entry.js +1 -1
- package/dist/tttx/p-36edf716.entry.js +1 -1
- package/dist/tttx/p-384f7c70.entry.js +1 -1
- package/dist/tttx/p-47fadd24.entry.js +1 -1
- package/dist/tttx/p-4c63f7da.entry.js +1 -1
- package/dist/tttx/p-4ddf7946.entry.js +1 -1
- package/dist/tttx/p-5765b7da.entry.js +1 -1
- package/dist/tttx/p-59533ed7.entry.js +1 -0
- package/dist/tttx/p-5b7c20ff.entry.js +1 -1
- package/dist/tttx/p-5e14d6aa.entry.js +1 -1
- package/dist/tttx/p-620b18f6.entry.js +1 -1
- package/dist/tttx/p-66340f2f.entry.js +1 -1
- package/dist/tttx/p-71bb2f21.entry.js +1 -1
- package/dist/tttx/p-74a8c484.entry.js +1 -1
- package/dist/tttx/p-789defe0.entry.js +1 -1
- package/dist/tttx/p-86cdb616.entry.js +1 -1
- package/dist/tttx/p-8beccdc9.entry.js +1 -1
- package/dist/tttx/p-969a4944.entry.js +1 -1
- package/dist/tttx/p-a2979a57.entry.js +1 -1
- package/dist/tttx/p-a50d9105.entry.js +1 -1
- package/dist/tttx/p-a8526f90.entry.js +1 -1
- package/dist/tttx/p-b1a24af0.entry.js +1 -1
- package/dist/tttx/p-b2a0053a.entry.js +1 -1
- package/dist/tttx/p-b4fe2853.entry.js +1 -1
- package/dist/tttx/p-b69ae246.entry.js +1 -1
- package/dist/tttx/p-b97e0e3c.entry.js +1 -1
- package/dist/tttx/p-c33f9022.entry.js +1 -1
- package/dist/tttx/p-ca58259a.entry.js +1 -1
- package/dist/tttx/p-ee41fe8f.entry.js +1 -1
- package/dist/tttx/p-f30833e3.entry.js +1 -1
- package/dist/tttx/p-f69b4685.entry.js +1 -1
- package/dist/tttx/p-ff7edd81.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
- 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/molecules/tttx-tree-view/tttx-tree-view.d.ts +1 -1
- package/dist/types/components.d.ts +449 -449
- package/package.json +1 -1
- package/dist/cjs/tttx-tree-view_1_9_72.cjs.entry.js +0 -207
- package/dist/components/tttx-action-dropdown_1_9_72.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_72.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_72.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_72.d.ts +0 -11
- package/dist/components/tttx-comments_1_9_72.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_72.d.ts +0 -11
- package/dist/components/tttx-datacard_1_9_72.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_72.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_72.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_72.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_72.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_72.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_72.d.ts +0 -11
- package/dist/components/tttx-range-slider_1_9_72.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_72.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_72.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_72.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_72.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_72.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_72.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_72.d.ts +0 -11
- package/dist/components/tttx-tooltip_1_9_72.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_72.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_72.js +0 -235
- package/dist/esm/tttx-tree-view_1_9_72.entry.js +0 -203
- package/dist/tttx/p-d1ee41dd.entry.js +0 -1
|
@@ -71,7 +71,7 @@ const TttxLoadingSpinner = class {
|
|
|
71
71
|
};
|
|
72
72
|
TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
|
|
73
73
|
|
|
74
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-
|
|
74
|
+
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_73{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_73{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_73{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_73 .optional.sc-tttx-standalone-input_1_9_73{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73{position:relative}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 .left-icons.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 .right-icons.sc-tttx-standalone-input_1_9_73{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 .left-icons.sc-tttx-standalone-input_1_9_73 tttx-icon.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 .right-icons.sc-tttx-standalone-input_1_9_73 tttx-icon.sc-tttx-standalone-input_1_9_73{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 .left-icons.sc-tttx-standalone-input_1_9_73{left:8px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 .right-icons.sc-tttx-standalone-input_1_9_73{right:8px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.sc-tttx-standalone-input_1_9_73{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_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.has-input-icon.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.has-input-icon.sc-tttx-standalone-input_1_9_73{padding-left:40px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_73{padding-left:72px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.has-left-icon.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.has-left-icon.sc-tttx-standalone-input_1_9_73{padding-left:40px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.has-right-icon.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.has-right-icon.sc-tttx-standalone-input_1_9_73{padding-right:40px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.invalid.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.invalid.sc-tttx-standalone-input_1_9_73{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.sc-tttx-standalone-input_1_9_73:not([type=submit]),label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.sc-tttx-standalone-input_1_9_73: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_73 .outer-container.sc-tttx-standalone-input_1_9_73 input[type=radio].sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea[type=radio].sc-tttx-standalone-input_1_9_73{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input[type=date].sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea[type=date].sc-tttx-standalone-input_1_9_73{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input[readonly].sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea[readonly].sc-tttx-standalone-input_1_9_73{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.sc-tttx-standalone-input_1_9_73:focus,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.sc-tttx-standalone-input_1_9_73:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 input.sc-tttx-standalone-input_1_9_73:focus-visible,label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.sc-tttx-standalone-input_1_9_73:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.sc-tttx-standalone-input_1_9_73{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_73 .outer-container.sc-tttx-standalone-input_1_9_73 textarea.resize-none.sc-tttx-standalone-input_1_9_73{resize:none}label.sc-tttx-standalone-input_1_9_73 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_73{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_73 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_73 .left-icons.sc-tttx-standalone-input_1_9_73,label.sc-tttx-standalone-input_1_9_73 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_73 .right-icons.sc-tttx-standalone-input_1_9_73{margin-top:4px}label.sc-tttx-standalone-input_1_9_73 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_73{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_73 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_73{display:block}label.sc-tttx-standalone-input_1_9_73 .outer-container.inputInline.sc-tttx-standalone-input_1_9_73{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_73 .outer-container.inputInline.sc-tttx-standalone-input_1_9_73 input.sc-tttx-standalone-input_1_9_73{margin-top:0}label.sc-tttx-standalone-input_1_9_73 .secondarylabel.sc-tttx-standalone-input_1_9_73{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_73 .errorBubble.sc-tttx-standalone-input_1_9_73{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_73 .errorBubble.sc-tttx-standalone-input_1_9_73:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_73 .errorBubble.sc-tttx-standalone-input_1_9_73 span.sc-tttx-standalone-input_1_9_73{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_73{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_73-h{display:block}";
|
|
75
75
|
|
|
76
76
|
const TttxInput = class {
|
|
77
77
|
constructor(hostRef) {
|
|
@@ -153,7 +153,7 @@ const TttxInput = class {
|
|
|
153
153
|
this.iconleft ? 'has-left-icon' : '',
|
|
154
154
|
this.iconright ? 'has-right-icon' : '',
|
|
155
155
|
].join(' ');
|
|
156
|
-
return (index.h(index.Host, null, index.h("label", null, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', index.h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, index.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) && (index.h("span", { class: "left-icons" }, this.inputicon && (index.h("tttx-
|
|
156
|
+
return (index.h(index.Host, null, index.h("label", null, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', index.h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, index.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) && (index.h("span", { class: "left-icons" }, this.inputicon && (index.h("tttx-icon_1_9_73", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (index.h("tttx-icon_1_9_73", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (index.h("span", { class: "right-icons" }, index.h("tttx-icon_1_9_73", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && index.h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
TttxInput.style = tttxStandaloneInputCss;
|
|
@@ -173,11 +173,11 @@ const TttxTag = class {
|
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
175
|
return (index.h(index.Host, null, index.h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
176
|
-
index.h("tttx-
|
|
176
|
+
index.h("tttx-icon_1_9_73", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), index.h("span", null, this.text))));
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
TttxTag.style = tttxTagCss;
|
|
180
180
|
|
|
181
|
-
exports.
|
|
182
|
-
exports.
|
|
183
|
-
exports.
|
|
181
|
+
exports.tttx_loading_spinner_1_9_73 = TttxLoadingSpinner;
|
|
182
|
+
exports.tttx_standalone_input_1_9_73 = TttxInput;
|
|
183
|
+
exports.tttx_tag_1_9_73 = TttxTag;
|
|
@@ -125,9 +125,9 @@ const TttxMultiselectBox = class {
|
|
|
125
125
|
}
|
|
126
126
|
// render priority options at the top of the dropdown list
|
|
127
127
|
return (index.h(index.Fragment, null, usingPriority && priorityOptions.length > 0 &&
|
|
128
|
-
index.h(index.Fragment, null, index.h("tttx-
|
|
128
|
+
index.h(index.Fragment, null, index.h("tttx-tag_1_9_73", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
|
|
129
129
|
index.h(index.Fragment, null, usingPriority &&
|
|
130
|
-
index.h("tttx-
|
|
130
|
+
index.h("tttx-tag_1_9_73", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
|
|
131
131
|
}
|
|
132
132
|
dropdownOption(option) {
|
|
133
133
|
// This is tested in e2e tests
|
|
@@ -138,11 +138,11 @@ const TttxMultiselectBox = class {
|
|
|
138
138
|
const sanitisedHTML = domsanitiser_options.purify.sanitize(option.html, domsanitiser_options.domSanitiserOptions);
|
|
139
139
|
// This is tested in e2e tests
|
|
140
140
|
/* istanbul ignore next */
|
|
141
|
-
return (index.h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, index.h("tttx-
|
|
141
|
+
return (index.h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, index.h("tttx-icon_1_9_73", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), index.h("div", { innerHTML: sanitisedHTML })));
|
|
142
142
|
}
|
|
143
143
|
// This is tested in e2e tests
|
|
144
144
|
/* istanbul ignore next */
|
|
145
|
-
return (index.h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, index.h("tttx-
|
|
145
|
+
return (index.h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, index.h("tttx-icon_1_9_73", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), index.h("div", { class: "plaintext-option" }, option.label)));
|
|
146
146
|
}
|
|
147
147
|
// This is tested in e2e tests
|
|
148
148
|
/* istanbul ignore next */
|
|
@@ -172,9 +172,9 @@ const TttxMultiselectBox = class {
|
|
|
172
172
|
return;
|
|
173
173
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
174
174
|
const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
|
|
175
|
-
return (index.h(index.Host, { class: this.inline ? 'inline' : 'block' }, this.label && index.h("div", { class: "label" }, this.label), index.h("div", { tabindex: "0", class: "dropdown-container" }, index.h("div", { class: ['dropdown-selector', readOnlyClass].join(' '), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), index.h("div", { class: "dropdown-selector-chevron" }, index.h("tttx-
|
|
175
|
+
return (index.h(index.Host, { class: this.inline ? 'inline' : 'block' }, this.label && index.h("div", { class: "label" }, this.label), index.h("div", { tabindex: "0", class: "dropdown-container" }, index.h("div", { class: ['dropdown-selector', readOnlyClass].join(' '), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), index.h("div", { class: "dropdown-selector-chevron" }, index.h("tttx-icon_1_9_73", { icon: chevronIcon, color: "black" }))), this.open && (index.h("div", { class: "dropdown-body-container" }, index.h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
|
|
176
176
|
/* istanbul ignore next */
|
|
177
|
-
index.h("div", { class: "searchbox" }, index.h("tttx-standalone-
|
|
177
|
+
index.h("div", { class: "searchbox" }, index.h("tttx-standalone-input_1_9_73", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), index.h("div", { class: "dropdown-options-list" }, this.isLoading ? (index.h("tttx-loading-spinner_1_9_73", { class: 'loading-style' })) : (this.renderDropdownOptions(this.unsavedSelectedItems))), index.h("div", { class: 'footer' }, index.h("tttx-button_1_9_73", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), index.h("tttx-button_1_9_73", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
|
|
178
178
|
}
|
|
179
179
|
get el() { return index.getElement(this); }
|
|
180
180
|
static get watchers() { return {
|
|
@@ -183,4 +183,4 @@ const TttxMultiselectBox = class {
|
|
|
183
183
|
};
|
|
184
184
|
TttxMultiselectBox.style = tttxMultiselectBoxCss;
|
|
185
185
|
|
|
186
|
-
exports.
|
|
186
|
+
exports.tttx_multiselect_box_1_9_73 = TttxMultiselectBox;
|
package/dist/cjs/{tttx-percentage-bar_1_9_72.cjs.entry.js → tttx-percentage-bar_1_9_73.cjs.entry.js}
RENAMED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-3fc38d11.js');
|
|
6
6
|
|
|
7
|
-
const tttxPercentageBarCss = ".sc-tttx-percentage-
|
|
7
|
+
const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_9_73-h{display:block}.progress.sc-tttx-percentage-bar_1_9_73{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_73 .bar.sc-tttx-percentage-bar_1_9_73{height:20px}";
|
|
8
8
|
|
|
9
9
|
const TttxPercentageBar = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -62,4 +62,4 @@ const TttxPercentageBar = class {
|
|
|
62
62
|
};
|
|
63
63
|
TttxPercentageBar.style = tttxPercentageBarCss;
|
|
64
64
|
|
|
65
|
-
exports.
|
|
65
|
+
exports.tttx_percentage_bar_1_9_73 = TttxPercentageBar;
|
package/dist/cjs/{tttx-select-box_1_9_72.cjs.entry.js → tttx-select-box_1_9_73.cjs.entry.js}
RENAMED
|
@@ -108,7 +108,7 @@ const TttxSelectBox = class {
|
|
|
108
108
|
let title;
|
|
109
109
|
let subtitle;
|
|
110
110
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
111
|
-
const icon = index.h("tttx-
|
|
111
|
+
const icon = index.h("tttx-icon_1_9_73", { icon: chevronIcon, color: "black" });
|
|
112
112
|
let chevron = index.h("div", { class: "dropdown-selector-chevron" }, icon);
|
|
113
113
|
if (!this.selectedItem) {
|
|
114
114
|
title = index.h("div", { class: "placeholder" }, this.placeholder);
|
|
@@ -125,7 +125,7 @@ const TttxSelectBox = class {
|
|
|
125
125
|
chevron = index.h("div", { class: "dropdown-selector-chevron-offset" }, icon);
|
|
126
126
|
}
|
|
127
127
|
return (index.h(index.Fragment, null, index.h("div", { class: "left-wrapper" }, title, subtitle), this.clearable && !this.readOnly &&
|
|
128
|
-
index.h("tttx-
|
|
128
|
+
index.h("tttx-icon_1_9_73", { class: "input-icon", style: { paddingTop: '5px', cursor: 'pointer' }, icon: 'close_small', onClick: this.cleanSelectedItem.bind(this) }), chevron));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
renderDropdownOptions(options) {
|
|
@@ -148,9 +148,9 @@ const TttxSelectBox = class {
|
|
|
148
148
|
}
|
|
149
149
|
// render priority options at the top of the dropdown list
|
|
150
150
|
return (index.h(index.Fragment, null, usingPriority && priorityOptions.length > 0 &&
|
|
151
|
-
index.h(index.Fragment, null, index.h("tttx-
|
|
151
|
+
index.h(index.Fragment, null, index.h("tttx-tag_1_9_73", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
|
|
152
152
|
index.h(index.Fragment, null, usingPriority &&
|
|
153
|
-
index.h("tttx-
|
|
153
|
+
index.h("tttx-tag_1_9_73", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
|
|
154
154
|
}
|
|
155
155
|
dropdownOption(option) {
|
|
156
156
|
const selected = this.selectedItem && option.value === this.selectedItem.value;
|
|
@@ -237,7 +237,7 @@ const TttxSelectBox = class {
|
|
|
237
237
|
return;
|
|
238
238
|
const invalidClass = this.showErrorMsg ? 'invalid' : '';
|
|
239
239
|
const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
|
|
240
|
-
return (index.h(index.Host, { class: this.inline ? 'inline' : 'block' }, this.label && index.h("div", { class: "label" }, this.label), index.h("div", { tabindex: "0", class: "dropdown-container" }, index.h("div", { class: ['dropdown-selector', invalidClass, readOnlyClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (index.h("div", { class: "dropdown-body-container" }, index.h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (index.h("div", { class: "searchbox" }, index.h("tttx-standalone-
|
|
240
|
+
return (index.h(index.Host, { class: this.inline ? 'inline' : 'block' }, this.label && index.h("div", { class: "label" }, this.label), index.h("div", { tabindex: "0", class: "dropdown-container" }, index.h("div", { class: ['dropdown-selector', invalidClass, readOnlyClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (index.h("div", { class: "dropdown-body-container" }, index.h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (index.h("div", { class: "searchbox" }, index.h("tttx-standalone-input_1_9_73", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), index.h("div", { class: "dropdown-options-list", onScroll: this.onSelectScroll.bind(this) }, !this.isLoading && (this.renderDropdownOptions(this._optionsData)), (this.isLoading || this.loadingNextExternalPage) && (index.h("tttx-loading-spinner_1_9_73", { class: 'loading-style' })))))), this.showErrorBubble && (index.h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, index.h("tttx-icon_1_9_73", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
|
|
241
241
|
}
|
|
242
242
|
get el() { return index.getElement(this); }
|
|
243
243
|
static get watchers() { return {
|
|
@@ -247,4 +247,4 @@ const TttxSelectBox = class {
|
|
|
247
247
|
};
|
|
248
248
|
TttxSelectBox.style = tttxSelectBoxCss;
|
|
249
249
|
|
|
250
|
-
exports.
|
|
250
|
+
exports.tttx_select_box_1_9_73 = TttxSelectBox;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-3fc38d11.js');
|
|
|
6
6
|
const domsanitiser_options = require('./domsanitiser.options-55ce2d65.js');
|
|
7
7
|
require('./_commonjsHelpers-537d719a.js');
|
|
8
8
|
|
|
9
|
-
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-
|
|
9
|
+
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_73{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_73-h{display:block}.tab-bar.sc-tttx-tabs_1_9_73{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_73>.left-navigation.sc-tttx-tabs_1_9_73,.tab-bar.sc-tttx-tabs_1_9_73>.right-navigation.sc-tttx-tabs_1_9_73{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_73>.left-navigation.sc-tttx-tabs_1_9_73>*.sc-tttx-tabs_1_9_73,.tab-bar.sc-tttx-tabs_1_9_73>.right-navigation.sc-tttx-tabs_1_9_73>*.sc-tttx-tabs_1_9_73{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_73>.tabs-container.sc-tttx-tabs_1_9_73{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_73>.tabs-container.wide.sc-tttx-tabs_1_9_73{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_73>.tabs-container.sc-tttx-tabs_1_9_73>*[role=tab].sc-tttx-tabs_1_9_73{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_73>.tabs-container.sc-tttx-tabs_1_9_73>*[role=tab].sc-tttx-tabs_1_9_73:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_73>.tabs-container.sc-tttx-tabs_1_9_73>*[role=tab][aria-selected].sc-tttx-tabs_1_9_73{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
|
|
10
10
|
|
|
11
11
|
const TttxTabs = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -83,7 +83,7 @@ const TttxTabs = class {
|
|
|
83
83
|
}
|
|
84
84
|
generateTab(tab) {
|
|
85
85
|
var _a, _b, _c;
|
|
86
|
-
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (index.h("tttx-
|
|
86
|
+
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (index.h("tttx-icon_1_9_73", { style: { pointerEvents: 'none', marginTop: (_b = tab.marginTop) !== null && _b !== void 0 ? _b : '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_c = tab.tabIconSize) !== null && _c !== void 0 ? _c : 24 }));
|
|
87
87
|
return (index.h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
|
|
88
88
|
this.handleTabClick(tab);
|
|
89
89
|
} }, tabTitle));
|
|
@@ -102,7 +102,7 @@ const TttxTabs = class {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
const selectedTab = this._tabs.find(tab => tab.selected);
|
|
105
|
-
return (index.h(index.Host, null, index.h("div", null, index.h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (index.h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, index.h("tttx-
|
|
105
|
+
return (index.h(index.Host, null, index.h("div", null, index.h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (index.h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, index.h("tttx-icon_1_9_73", { icon: "navigate_before", color: "black" }))), index.h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (index.h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, index.h("tttx-icon_1_9_73", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
|
|
106
106
|
}
|
|
107
107
|
static get watchers() { return {
|
|
108
108
|
"tabs": ["onDataChange"]
|
|
@@ -110,4 +110,4 @@ const TttxTabs = class {
|
|
|
110
110
|
};
|
|
111
111
|
TttxTabs.style = tttxTabsCss;
|
|
112
112
|
|
|
113
|
-
exports.
|
|
113
|
+
exports.tttx_tabs_1_9_73 = TttxTabs;
|
|
@@ -74,9 +74,9 @@ const TttxTagV2 = class {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
const colors = this.getColors();
|
|
77
|
-
return (index.h(index.Host, null, index.h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (index.h("tttx-
|
|
77
|
+
return (index.h(index.Host, null, index.h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (index.h("tttx-icon_1_9_73", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconStart, color: colors.icon, size: this.size === 'S' ? 12 : 16 })), index.h("span", null, this.text), this.hasEndIcon && this.iconEnd && (index.h("tttx-icon_1_9_73", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconEnd, color: colors.icon, size: this.iconSize })))));
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
TttxTagV2.style = tttxTagV2Css;
|
|
81
81
|
|
|
82
|
-
exports.
|
|
82
|
+
exports.tttx_tag_v2_1_9_73 = TttxTagV2;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-3fc38d11.js');
|
|
6
6
|
|
|
7
|
-
const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-
|
|
7
|
+
const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_73{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_73-h{display:block}label.sc-tttx-textarea_1_9_73{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73{position:relative}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.sc-tttx-textarea_1_9_73{font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;padding:9px 16px;font-size:16px;line-height:18.752px;border:1px solid #d5d5d5;border-radius:4px;margin-top:8px;resize:none}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.no-label.sc-tttx-textarea_1_9_73{margin-top:0}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.sc-tttx-textarea_1_9_73~.errorBubble.sc-tttx-textarea_1_9_73{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-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.sc-tttx-textarea_1_9_73~.errorBubble.sc-tttx-textarea_1_9_73:not(.visible){display:none}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.sc-tttx-textarea_1_9_73~.errorBubble.sc-tttx-textarea_1_9_73 span.sc-tttx-textarea_1_9_73{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.sc-tttx-textarea_1_9_73:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_73 .textarea-container.sc-tttx-textarea_1_9_73 textarea.sc-tttx-textarea_1_9_73:focus-visible{outline:none}label.sc-tttx-textarea_1_9_73 .secondarylabel.sc-tttx-textarea_1_9_73{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_73 .optional.sc-tttx-textarea_1_9_73{color:#757575;font-weight:normal}";
|
|
8
8
|
|
|
9
9
|
const TttxTextarea = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -56,4 +56,4 @@ const TttxTextarea = class {
|
|
|
56
56
|
};
|
|
57
57
|
TttxTextarea.style = tttxTextareaCss;
|
|
58
58
|
|
|
59
|
-
exports.
|
|
59
|
+
exports.tttx_textarea_1_9_73 = TttxTextarea;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3fc38d11.js');
|
|
6
|
+
const domsanitiser_options = require('./domsanitiser.options-55ce2d65.js');
|
|
7
|
+
require('./_commonjsHelpers-537d719a.js');
|
|
8
|
+
|
|
9
|
+
const tttxTreeViewCss = "@charset \"UTF-8\";.material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{--tree-accent:#2196F3;--tree-selected-bg:#EBFBFC;--indent:36px;--accent-gap:46px;--accent-width:4px;--tree-left-edge-shift:0px}.tree-view-element>ul{margin:0;padding:0}.tree-view-element ul{padding-left:var(--indent)}.tree-view-element ul li{list-style-type:none}.tree-view-element ul li.selected-group{position:relative;}.tree-view-element ul li.selected-group::before{display:none}.tree-view-element ul li.selected-group::after{display:none}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node{}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node::before{background-color:var(--tree-selected-bg) !important;z-index:2}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node::after{content:\"\";position:absolute;top:0;bottom:0;width:var(--accent-width);left:calc(-1 * (var(--accent-gap) + var(--level, 0) * var(--indent)));background-color:var(--tree-accent);border-radius:0 2px 2px 0;z-index:5}.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node{}.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::before{background-color:var(--tree-selected-bg) !important;z-index:2}.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::after{content:\"\";position:absolute;top:0;bottom:0;width:var(--accent-width);left:calc(-1 * (var(--accent-gap) + var(--level, 0) * var(--indent)));background-color:var(--tree-accent);border-radius:0 2px 2px 0;z-index:5}.tree-view-element ul li.selected-group li.inline-tree-item.element-row:not(.tree-node)::before{background-color:transparent !important}.tree-view-element ul li.selected-group li.selected-group::before{display:none}.tree-view-element ul li.selected-group>li.inline-tree-item,.tree-view-element ul li.selected-group>ul{position:relative;z-index:3;background:transparent}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;width:100%;padding-left:8px}.tree-view-element ul li.inline-tree-item .element .padding-icon{padding:6px;height:24px;width:24px;display:flex;align-items:center;justify-content:center}@media (hover: hover){.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover{cursor:pointer}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover::before{content:\"\";position:absolute;left:-50%;top:0;bottom:0;right:0;pointer-events:none;color:#212121 !important;z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover:not(.rowSelected):hover::before{background-color:rgba(17, 17, 17, 0.05);z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover.rowSelected:hover::before{background-color:rgba(17, 17, 17, 0.15);z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover:not(.tree-node).rowSelected:hover::before{background-color:transparent !important}}.tree-view-element ul li.inline-tree-item.element-row{min-height:36px;font-family:\"Roboto\", serif;font-size:16px;padding:8px 0px;position:relative;color:#212121 !important;}.tree-view-element ul li.inline-tree-item.element-row::before{content:\"\";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #d5d5d5;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.rowSelected::before{content:\"\";position:absolute;left:-50%;top:0;bottom:0;right:0;background-color:#EBFBFC;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.tree-node::before{height:51px;z-index:2}.tree-view-element ul li.inline-tree-item.element-row.tree-node *{z-index:3}.tree-view-element ul li.inline-tree-item.element-row .treeNode{width:100%;font-weight:500;color:#212121}.tree-view-element ul li.inline-tree-item.element-row .treeLeaf{width:100%;font-weight:400;color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeLeaf,.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeNode{color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row .drag-handle{margin-right:10px}.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed{border-color:red;border-style:dashed;cursor:not-allowed;opacity:0.7}@media (forced-colors: active){.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::after{background:CanvasText}.tree-view-element ul li.selected-group::after{background:Highlight}}.inline-tree-item:focus-visible{outline:2px solid var(--tree-accent);outline-offset:2px;border-radius:6px}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected{background-color:transparent !important;background:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected::before{background-color:transparent !important;background:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected:hover{background-color:transparent !important;background:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected:hover::before{display:none !important;background-color:transparent !important;background:transparent !important}";
|
|
10
|
+
|
|
11
|
+
const TttxTreeView = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.clickEvent = index.createEvent(this, "clickEvent", 7);
|
|
15
|
+
this.expandNode = index.createEvent(this, "expandNode", 7);
|
|
16
|
+
this.checkboxChange = index.createEvent(this, "checkboxChange", 7);
|
|
17
|
+
this.moveNode = index.createEvent(this, "moveNode", 7);
|
|
18
|
+
this.dragIcon = index.getAssetPath('assets/img/drag-icon.svg');
|
|
19
|
+
this.dragGhost = {
|
|
20
|
+
el: null,
|
|
21
|
+
};
|
|
22
|
+
this.createGhostImage = (label) => {
|
|
23
|
+
const ghost = document.createElement('div');
|
|
24
|
+
ghost.textContent = label;
|
|
25
|
+
Object.assign(ghost.style, {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
top: '-9999px',
|
|
28
|
+
left: '-9999px',
|
|
29
|
+
padding: '6px 20px',
|
|
30
|
+
background: 'white',
|
|
31
|
+
border: '1px solid #ccc',
|
|
32
|
+
fontSize: '14px',
|
|
33
|
+
pointerEvents: 'none',
|
|
34
|
+
});
|
|
35
|
+
document.body.appendChild(ghost);
|
|
36
|
+
setTimeout(() => document.body.removeChild(ghost), 0);
|
|
37
|
+
return ghost;
|
|
38
|
+
};
|
|
39
|
+
this.handleDragStart = (event, node, index, parentId) => {
|
|
40
|
+
if (!event.dataTransfer)
|
|
41
|
+
return;
|
|
42
|
+
this.draggedNodeParentId = parentId;
|
|
43
|
+
const payload = JSON.stringify({ parentId, index, node });
|
|
44
|
+
event.dataTransfer.setData('text/plain', payload);
|
|
45
|
+
const ghostImg = this.createGhostImage(node.title);
|
|
46
|
+
this.dragGhost.el = ghostImg;
|
|
47
|
+
event.dataTransfer.setDragImage(ghostImg, 0, 0);
|
|
48
|
+
};
|
|
49
|
+
this.handleDragDrop = (event, node, targetIndex, parentId) => {
|
|
50
|
+
var _a;
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
const nodeData = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
|
53
|
+
if (!nodeData)
|
|
54
|
+
return;
|
|
55
|
+
const { parentId: sourceParentId, index: sourceParentIndex, node: sourceNode } = JSON.parse(nodeData);
|
|
56
|
+
// Prevent dropping on itself or different parents
|
|
57
|
+
if (node.id === sourceNode.id || sourceParentId !== parentId)
|
|
58
|
+
return;
|
|
59
|
+
const updatedTree = [...this.treeData];
|
|
60
|
+
// Find the parent node
|
|
61
|
+
const parent = parentId ? this.findNodeById(updatedTree, parentId) : null;
|
|
62
|
+
// If no parent (root level), work with treeData directly
|
|
63
|
+
const children = (parent === null || parent === void 0 ? void 0 : parent.child) ? [...parent.child] : [...updatedTree];
|
|
64
|
+
if (!children || children.length === 0)
|
|
65
|
+
return;
|
|
66
|
+
// Move the node
|
|
67
|
+
const [moved] = children.splice(sourceParentIndex, 1);
|
|
68
|
+
children.splice(targetIndex, 0, moved);
|
|
69
|
+
// Update the tree
|
|
70
|
+
if (parent) {
|
|
71
|
+
parent.child = children;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
this.treeData = children;
|
|
75
|
+
}
|
|
76
|
+
this.draggedNodeParentId = undefined;
|
|
77
|
+
if (this.dragGhost.el) {
|
|
78
|
+
this.dragGhost.el.remove();
|
|
79
|
+
this.dragGhost.el = null;
|
|
80
|
+
}
|
|
81
|
+
this.moveNode.emit(this.treeData);
|
|
82
|
+
};
|
|
83
|
+
this.handleDragOver = (event, parentId) => {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
if (!event.dataTransfer)
|
|
86
|
+
return;
|
|
87
|
+
const validDrag = this.draggedNodeParentId === parentId;
|
|
88
|
+
event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
|
|
89
|
+
};
|
|
90
|
+
this.data = undefined;
|
|
91
|
+
this.treeData = undefined;
|
|
92
|
+
}
|
|
93
|
+
componentWillRender() {
|
|
94
|
+
if (!this.data)
|
|
95
|
+
return;
|
|
96
|
+
this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
|
|
97
|
+
}
|
|
98
|
+
onClickHandler(event, node) {
|
|
99
|
+
event.stopPropagation();
|
|
100
|
+
this.clickEvent.emit(node);
|
|
101
|
+
}
|
|
102
|
+
toggleNode(node, event) {
|
|
103
|
+
event.stopPropagation();
|
|
104
|
+
node.isOpen = !node.isOpen;
|
|
105
|
+
this.treeData = [...this.treeData];
|
|
106
|
+
this.expandNode.emit({ node: node, treeViewData: this.treeData });
|
|
107
|
+
}
|
|
108
|
+
handleCheckboxChange(node, event) {
|
|
109
|
+
event.stopPropagation();
|
|
110
|
+
node.checked = !node.checked;
|
|
111
|
+
this.updateChildrenCheckStatus(node);
|
|
112
|
+
this.updateParentCheckStatus();
|
|
113
|
+
this.treeData = [...this.treeData];
|
|
114
|
+
this.checkboxChange.emit(this.treeData);
|
|
115
|
+
}
|
|
116
|
+
updateChildrenCheckStatus(node) {
|
|
117
|
+
if (node.child) {
|
|
118
|
+
node.child.forEach(childNode => {
|
|
119
|
+
if (childNode.hasCheckbox && childNode.checked !== undefined) {
|
|
120
|
+
// don't set checked on a child that doesn't have a checkbox
|
|
121
|
+
// makes it impossible to unselect a parent as child can never be unchecked in frontend
|
|
122
|
+
childNode.checked = node.checked;
|
|
123
|
+
}
|
|
124
|
+
this.updateChildrenCheckStatus(childNode);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Update the checkbox status of parent nodes when children have been updated.
|
|
130
|
+
* Called recursively to traverse the tree for parents.
|
|
131
|
+
* First call with no params to automatically start at the top of the tree.
|
|
132
|
+
*
|
|
133
|
+
* Any children checked -> parent is checked.
|
|
134
|
+
*
|
|
135
|
+
* All children unchecked -> parent is unchecked.
|
|
136
|
+
*/
|
|
137
|
+
updateParentCheckStatus(parent = undefined, children = undefined) {
|
|
138
|
+
if (parent === undefined) {
|
|
139
|
+
this.treeData.forEach(node => this.updateParentCheckStatus(node, node.child));
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
let childrenCheckedStatuses = [];
|
|
143
|
+
// set status relative to children if we have some
|
|
144
|
+
if (children && children.length > 0) {
|
|
145
|
+
childrenCheckedStatuses = children.map(node => this.updateParentCheckStatus(node, node.child)).flat(1);
|
|
146
|
+
// parent checked if any children are checked
|
|
147
|
+
if (childrenCheckedStatuses.some(checked => checked)) {
|
|
148
|
+
parent.checked = true;
|
|
149
|
+
}
|
|
150
|
+
// parent unchecked if all children are unchecked
|
|
151
|
+
if (childrenCheckedStatuses.every(checked => !checked)) {
|
|
152
|
+
parent.checked = false;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
// return the gathered checked statuses so nodes above can make check choices
|
|
156
|
+
return [...childrenCheckedStatuses, parent.checked];
|
|
157
|
+
}
|
|
158
|
+
treeConfigs(node) {
|
|
159
|
+
let checkboxIcon, checkboxColor;
|
|
160
|
+
if (node.checked) {
|
|
161
|
+
checkboxIcon = 'check_box';
|
|
162
|
+
checkboxColor = 'blue';
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
checkboxIcon = 'check_box_outline_blank';
|
|
166
|
+
checkboxColor = 'grey';
|
|
167
|
+
}
|
|
168
|
+
const rowHoverActive = node.hasHover ? 'rowHover' : '';
|
|
169
|
+
const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
|
|
170
|
+
const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
|
|
171
|
+
return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive };
|
|
172
|
+
}
|
|
173
|
+
findNodeById(nodes, id) {
|
|
174
|
+
for (const node of nodes) {
|
|
175
|
+
if (node.id === id)
|
|
176
|
+
return node;
|
|
177
|
+
if (node.child) {
|
|
178
|
+
const found = this.findNodeById(node.child, id);
|
|
179
|
+
if (found)
|
|
180
|
+
return found;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
renderNode(node, index$1, parentId = undefined, level = 0 // <-- depth
|
|
186
|
+
) {
|
|
187
|
+
var _a, _b;
|
|
188
|
+
const options = this.treeConfigs(node);
|
|
189
|
+
if (node.child) {
|
|
190
|
+
// group node
|
|
191
|
+
const isSelectedGroup = !!node.selected;
|
|
192
|
+
return (index.h("li", { class: `${isSelectedGroup ? 'selected-group' : ''}`, style: { '--level': String(level) } }, index.h("li", Object.assign({ "data-id": node.id, draggable: (_a = node.draggable) !== null && _a !== void 0 ? _a : false }, (node.draggable ? { onDragOver: event => this.handleDragOver(event, parentId) } : {}), (node.draggable ? { onDrop: event => this.handleDragDrop(event, node, index$1, parentId) } : {}), { class: `inline-tree-item element-row tree-node ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
|
|
193
|
+
if (node.hasHover) {
|
|
194
|
+
this.onClickHandler(event, node);
|
|
195
|
+
}
|
|
196
|
+
} }), index.h("tttx-button_1_9_73", { class: "toggleNode", design: "borderless-circle", notext: true, icon: options.expanderIcon, color: "black", onClick: event => this.toggleNode(node, event) }), this.htmlcode('treeNode', node, options.checkboxIcon, options.checkboxColor, index$1, parentId)), node.isOpen ? (index.h("ul", null, node.child.map((childNode, childIndex) => {
|
|
197
|
+
// next level = level + 1
|
|
198
|
+
return this.renderNode(childNode, childIndex, node.id, level + 1);
|
|
199
|
+
}))) : null));
|
|
200
|
+
}
|
|
201
|
+
// leaf (activity)
|
|
202
|
+
return (index.h("li", Object.assign({ "data-id": node.id, draggable: (_b = node.draggable) !== null && _b !== void 0 ? _b : false }, (node.draggable ? { onDragOver: event => this.handleDragOver(event, parentId) } : {}), (node.draggable ? { onDrop: event => this.handleDragDrop(event, node, index$1, parentId) } : {}), { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, style: { '--level': String(level) }, onClick: event => {
|
|
203
|
+
if (node.hasHover) {
|
|
204
|
+
this.onClickHandler(event, node);
|
|
205
|
+
}
|
|
206
|
+
} }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index$1, parentId)));
|
|
207
|
+
}
|
|
208
|
+
htmlcode(type, node, check_box, check_boxColor, index$1, parentId = undefined) {
|
|
209
|
+
const htmlcode = (index.h("div", { class: "inline-tree-item element" }, node.draggable && (index.h("img", { src: this.dragIcon, alt: "drag", class: "drag-handle", draggable: true, onDragStart: event => this.handleDragStart(event, node, index$1, parentId) })), node.hasCheckbox && (index.h("tttx-button_1_9_73", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && (index.h("tttx-icon_1_9_73", { icon: node.icon, color: node.iconColor, class: "padding-icon" })), !node.html && index.h("div", { class: type }, node.title), node.html && index.h("div", { class: type, innerHTML: domsanitiser_options.purify.sanitize(node.html, domsanitiser_options.domSanitiserOptions) })));
|
|
210
|
+
return htmlcode;
|
|
211
|
+
}
|
|
212
|
+
render() {
|
|
213
|
+
if (!this.data)
|
|
214
|
+
return;
|
|
215
|
+
return (index.h("div", { class: "tree-view-element" }, index.h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
|
|
216
|
+
}
|
|
217
|
+
get el() { return index.getElement(this); }
|
|
218
|
+
};
|
|
219
|
+
TttxTreeView.style = tttxTreeViewCss;
|
|
220
|
+
|
|
221
|
+
exports.tttx_tree_view_1_9_73 = TttxTreeView;
|