@3t-transform/threeteeui 1.9.99 → 1.9.101
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_99.cjs.entry.js → tttx-action-dropdown_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-button-v2_1_9_99.cjs.entry.js → tttx-button-v2_1_9_101.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-button_1_9_99.cjs.entry.js → tttx-button_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-chart_1_9_99.cjs.entry.js → tttx-chart_1_9_101.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_99.cjs.entry.js → tttx-checkbox-group-caption_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_99.cjs.entry.js → tttx-checkbox-group-heading_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_99.cjs.entry.js → tttx-checkbox-group_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_99.cjs.entry.js → tttx-checkbox_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-comments_1_9_99.cjs.entry.js → tttx-comments_1_9_101.cjs.entry.js} +4 -4
- package/dist/cjs/tttx-data-pattern_1_9_101.cjs.entry.js +30 -0
- package/dist/cjs/{tttx-datacard_1_9_99.cjs.entry.js → tttx-datacard_1_9_101.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_99.cjs.entry.js → tttx-dialog-box_1_9_101.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_9_99.cjs.entry.js → tttx-dialog_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_99.cjs.entry.js → tttx-expander_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_99_4.cjs.entry.js → tttx-filter_1_9_101_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_99.cjs.entry.js → tttx-form_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_99.cjs.entry.js → tttx-graph_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_99.cjs.entry.js → tttx-icon_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_99.cjs.entry.js → tttx-keyvalue-block_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_9_99_3.cjs.entry.js → tttx-loading-spinner_1_9_101_3.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-multiselect-box_1_9_99.cjs.entry.js → tttx-multiselect-box_1_9_101.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_9_99.cjs.entry.js → tttx-percentage-bar_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_99.cjs.entry.js → tttx-qrcode_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-range-slider_1_9_99.cjs.entry.js → tttx-range-slider_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_99.cjs.entry.js → tttx-select-box_1_9_101.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-skeleton_loader_1_9_99.cjs.entry.js → tttx-skeleton_loader_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-table_1_9_99.cjs.entry.js → tttx-table_1_9_101.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-tabs_1_9_99.cjs.entry.js → tttx-tabs_1_9_101.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag-v2_1_9_99.cjs.entry.js → tttx-tag-v2_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-textarea_1_9_99.cjs.entry.js → tttx-textarea_1_9_101.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_99.cjs.entry.js → tttx-toggle_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tooltip_1_9_99.cjs.entry.js → tttx-tooltip_1_9_101.cjs.entry.js} +1 -1
- package/dist/cjs/tttx-tree-view_1_9_101.cjs.entry.js +360 -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 +4 -4
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +5 -5
- 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.css +1 -1
- package/dist/collection/components/molecules/tttx-table/tttx-table.js +2 -2
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +25 -25
- 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 +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +49 -6
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +130 -25
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +28 -16
- 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_101.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_99.js → tttx-action-dropdown_1_9_101.js} +7 -7
- package/dist/components/tttx-button-v2.js +7 -7
- package/dist/components/tttx-button-v2_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-button-v2_1_9_99.js → tttx-button-v2_1_9_101.js} +2 -2
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/tttx-button_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-button_1_9_99.js → tttx-button_1_9_101.js} +2 -2
- package/dist/components/{tttx-dialog_1_9_99.d.ts → tttx-chart_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-chart_1_9_99.js → tttx-chart_1_9_101.js} +11 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_99.js → tttx-checkbox-group-caption_1_9_101.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_99.js → tttx-checkbox-group-heading_1_9_101.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_99.js → tttx-checkbox-group_1_9_101.js} +5 -5
- package/dist/components/tttx-checkbox_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-checkbox_1_9_99.js → tttx-checkbox_1_9_101.js} +7 -7
- package/dist/components/tttx-comments_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-comments_1_9_99.js → tttx-comments_1_9_101.js} +9 -9
- package/dist/components/tttx-data-pattern_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_99.js → tttx-data-pattern_1_9_101.js} +16 -16
- package/dist/components/tttx-datacard_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_99.js → tttx-datacard_1_9_101.js} +10 -10
- package/dist/components/tttx-date-range-picker.js +3 -3
- package/dist/components/{tttx-standalone-input_1_9_99.d.ts → tttx-dialog-box_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-dialog-box_1_9_99.js → tttx-dialog-box_1_9_101.js} +9 -9
- package/dist/components/tttx-dialog_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-dialog_1_9_99.js → tttx-dialog_1_9_101.js} +8 -8
- package/dist/components/tttx-expander_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_99.js → tttx-expander_1_9_101.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/tttx-filter_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-filter_1_9_99.js → tttx-filter_1_9_101.js} +2 -2
- package/dist/components/{tttx-table_1_9_99.d.ts → tttx-form_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_99.js → tttx-form_1_9_101.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-filter_1_9_99.d.ts → tttx-graph_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_99.js → tttx-graph_1_9_101.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-graph_1_9_99.d.ts → tttx-icon_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_99.js → tttx-icon_1_9_101.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_99.js → tttx-keyvalue-block_1_9_101.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-chart_1_9_99.d.ts → tttx-list_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_99.js → tttx-list_1_9_101.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_99.js → tttx-loading-spinner_1_9_101.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_99.js → tttx-multiselect-box_1_9_101.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_99.js → tttx-percentage-bar_1_9_101.js} +6 -6
- package/dist/components/tttx-qrcode_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-qrcode_1_9_99.js → tttx-qrcode_1_9_101.js} +5 -5
- package/dist/components/tttx-range-slider_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-range-slider_1_9_99.js → tttx-range-slider_1_9_101.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_99.js → tttx-select-box_1_9_101.js} +2 -2
- package/dist/components/tttx-skeleton_loader_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_99.js → tttx-skeleton_loader_1_9_101.js} +5 -5
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_99.js → tttx-sorter_1_9_101.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_99.js → tttx-standalone-input_1_9_101.js} +2 -2
- package/dist/components/{tttx-qrcode_1_9_99.d.ts → tttx-table_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_99.js → tttx-table_1_9_101.js} +9 -9
- package/dist/components/{tttx-tag-v2_1_9_99.d.ts → tttx-tabs_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_99.js → tttx-tabs_1_9_101.js} +9 -9
- package/dist/components/{tttx-button_1_9_99.d.ts → tttx-tag-v2_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-tag-v2_1_9_99.js → tttx-tag-v2_1_9_101.js} +7 -7
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-form_1_9_99.d.ts → tttx-tag_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_99.js → tttx-tag_1_9_101.js} +2 -2
- package/dist/components/tttx-textarea_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_99.js → tttx-textarea_1_9_101.js} +6 -6
- package/dist/components/tttx-toggle_1_9_101.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_99.js → tttx-toggle_1_9_101.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/{tttx-checkbox_1_9_99.d.ts → tttx-toolbar_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-toolbar_1_9_99.js → tttx-toolbar_1_9_101.js} +2 -2
- package/dist/components/{tttx-button-v2_1_9_99.d.ts → tttx-tooltip_1_9_101.d.ts} +4 -4
- package/dist/components/{tttx-tooltip_1_9_99.js → tttx-tooltip_1_9_101.js} +5 -5
- package/dist/components/tttx-tree-view_1_9_101.d.ts +11 -0
- package/dist/components/tttx-tree-view_1_9_101.js +389 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-action-dropdown_1_9_99.entry.js → tttx-action-dropdown_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-button-v2_1_9_99.entry.js → tttx-button-v2_1_9_101.entry.js} +4 -4
- package/dist/esm/{tttx-button_1_9_99.entry.js → tttx-button_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-chart_1_9_99.entry.js → tttx-chart_1_9_101.entry.js} +4 -4
- package/dist/esm/{tttx-checkbox-group-caption_1_9_99.entry.js → tttx-checkbox-group-caption_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_99.entry.js → tttx-checkbox-group-heading_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_99.entry.js → tttx-checkbox-group_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_99.entry.js → tttx-checkbox_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-comments_1_9_99.entry.js → tttx-comments_1_9_101.entry.js} +4 -4
- package/dist/esm/tttx-data-pattern_1_9_101.entry.js +26 -0
- package/dist/esm/{tttx-datacard_1_9_99.entry.js → tttx-datacard_1_9_101.entry.js} +4 -4
- package/dist/esm/tttx-date-range-picker.entry.js +1 -1
- package/dist/esm/{tttx-dialog-box_1_9_99.entry.js → tttx-dialog-box_1_9_101.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_9_99.entry.js → tttx-dialog_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_99.entry.js → tttx-expander_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_99_4.entry.js → tttx-filter_1_9_101_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_99.entry.js → tttx-form_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_99.entry.js → tttx-graph_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_99.entry.js → tttx-icon_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_99.entry.js → tttx-keyvalue-block_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_9_99_3.entry.js → tttx-loading-spinner_1_9_101_3.entry.js} +4 -4
- package/dist/esm/{tttx-multiselect-box_1_9_99.entry.js → tttx-multiselect-box_1_9_101.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_9_99.entry.js → tttx-percentage-bar_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_99.entry.js → tttx-qrcode_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-range-slider_1_9_99.entry.js → tttx-range-slider_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_99.entry.js → tttx-select-box_1_9_101.entry.js} +6 -6
- package/dist/esm/{tttx-skeleton_loader_1_9_99.entry.js → tttx-skeleton_loader_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-table_1_9_99.entry.js → tttx-table_1_9_101.entry.js} +3 -3
- package/dist/esm/{tttx-tabs_1_9_99.entry.js → tttx-tabs_1_9_101.entry.js} +4 -4
- package/dist/esm/{tttx-tag-v2_1_9_99.entry.js → tttx-tag-v2_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-textarea_1_9_99.entry.js → tttx-textarea_1_9_101.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_99.entry.js → tttx-toggle_1_9_101.entry.js} +1 -1
- package/dist/esm/{tttx-tooltip_1_9_99.entry.js → tttx-tooltip_1_9_101.entry.js} +1 -1
- package/dist/esm/tttx-tree-view_1_9_101.entry.js +356 -0
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-00a849cf.entry.js +1 -1
- package/dist/tttx/p-1623f3cf.entry.js +1 -1
- package/dist/tttx/p-21707b8d.entry.js +1 -1
- package/dist/tttx/p-2251ab85.entry.js +1 -1
- package/dist/tttx/p-2d19c46c.entry.js +1 -1
- package/dist/tttx/p-34e0e487.entry.js +1 -1
- package/dist/tttx/p-358eaa44.entry.js +1 -1
- package/dist/tttx/p-362999b3.entry.js +1 -1
- package/dist/tttx/p-3ec67d75.entry.js +1 -1
- package/dist/tttx/p-41b69e01.entry.js +1 -1
- package/dist/tttx/p-41f0bf7f.entry.js +1 -1
- package/dist/tttx/p-44f0af69.entry.js +1 -1
- package/dist/tttx/p-4664d065.entry.js +1 -1
- package/dist/tttx/p-5d289334.entry.js +1 -1
- package/dist/tttx/p-6ec18b4a.entry.js +1 -1
- package/dist/tttx/p-7b5b0670.entry.js +1 -1
- package/dist/tttx/p-7d1712fe.entry.js +1 -1
- package/dist/tttx/p-82b4e575.entry.js +1 -1
- package/dist/tttx/p-a1b8ecda.entry.js +1 -1
- package/dist/tttx/p-a43e2c5e.entry.js +1 -1
- package/dist/tttx/p-a59ad197.entry.js +1 -0
- package/dist/tttx/p-b161205b.entry.js +1 -1
- package/dist/tttx/p-b3f49d83.entry.js +1 -1
- package/dist/tttx/p-b8cc0cb2.entry.js +1 -1
- package/dist/tttx/p-b9003a76.entry.js +1 -1
- package/dist/tttx/p-bb59054f.entry.js +1 -1
- package/dist/tttx/p-c66bc14c.entry.js +1 -1
- package/dist/tttx/p-c8051143.entry.js +1 -1
- package/dist/tttx/p-ca93f786.entry.js +1 -1
- package/dist/tttx/p-d21b0507.entry.js +1 -1
- package/dist/tttx/p-d4c4edbd.entry.js +1 -1
- package/dist/tttx/p-d945d492.entry.js +1 -1
- package/dist/tttx/p-e21e3a9c.entry.js +1 -1
- package/dist/tttx/p-f0c1380f.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/helper/helper.d.ts +1 -0
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +11 -2
- package/dist/types/components.d.ts +451 -451
- package/package.json +1 -1
- package/dist/cjs/tttx-data-pattern_1_9_99.cjs.entry.js +0 -30
- package/dist/cjs/tttx-tree-view_1_9_99.cjs.entry.js +0 -256
- package/dist/components/tttx-action-dropdown_1_9_99.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_99.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_99.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_99.d.ts +0 -11
- package/dist/components/tttx-comments_1_9_99.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_99.d.ts +0 -11
- package/dist/components/tttx-datacard_1_9_99.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_99.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_99.d.ts +0 -11
- package/dist/components/tttx-icon_1_9_99.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_99.d.ts +0 -11
- package/dist/components/tttx-list_1_9_99.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_99.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_99.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_99.d.ts +0 -11
- package/dist/components/tttx-range-slider_1_9_99.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_99.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_99.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_99.d.ts +0 -11
- package/dist/components/tttx-tabs_1_9_99.d.ts +0 -11
- package/dist/components/tttx-tag_1_9_99.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_99.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_99.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_99.d.ts +0 -11
- package/dist/components/tttx-tooltip_1_9_99.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_99.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_99.js +0 -284
- package/dist/esm/tttx-data-pattern_1_9_99.entry.js +0 -26
- package/dist/esm/tttx-tree-view_1_9_99.entry.js +0 -252
- package/dist/tttx/p-8f3fd755.entry.js +0 -1
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './tttx-button.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
5
|
+
|
|
6
|
+
const tttxTreeViewCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{--tree-accent:#1579C6;--tree-selected-bg:#E7E7E7;--indent:36px;--accent-gap:46px;--accent-width:6px;--tree-left-edge-shift:0px;--leaf-accent-offset:48px}.drag-drop-placeholder-row{background-color:#DBEAFE;padding:5px;border:1px dashed #3B82F6;border-radius:4px;width:100%}.drag_drop_success_fade{transition:background-color 1s linear}.inline-tree-item>.drag-drop-placeholder-row>.treeLeaf{text-align:center;padding:10px 0px}.placeholder-text{color:#3B82F6;width:100%;font-weight:400;text-align:center;padding:8px}.is-being-dragged{background-color:rgba(125, 130, 138, 0.05) !important}.drag-handle-container{height:100%}.tree-node{padding-top:0px !important;padding-bottom:0px !important;height:51px}.tree-view-element>ul{margin:0;padding:0}.tree-view-element ul{padding-left:var(--indent)}.tree-view-element ul li{list-style:none}.tree-view-element ul li.selected-group{position:relative;}.tree-view-element ul li.selected-group::before,.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{background-color:var(--tree-selected-bg) !important;position:relative}.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);z-index:5}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node{background-color:#F9F9F9 !important}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node::after{display:none !important}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;width:100%;padding-left:8px;align-items:center}.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:not(.rowSelected)::before{background-color:rgba(17, 17, 17, 0.05);z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover.rowSelected::before{background-color:rgba(17, 17, 17, 0.15);z-index:3}}.tree-view-element ul li.inline-tree-item.precedes_drag_drop::before{content:\"\";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #3B82F6 !important}.tree-view-element ul li.inline-tree-item.element-row{font-family:\"Roboto\", serif;font-size:16px;padding:15px 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.tree-node::before{height:51px;z-index:2;background-color:#F9F9F9}.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{background-color:var(--tree-selected-bg) !important;}.tree-view-element ul li.inline-tree-item.element-row.rowSelected::before{background-color:var(--tree-selected-bg) !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.tree-node.rowSelected{position:relative}.tree-view-element ul li.inline-tree-item.element-row.tree-node.rowSelected::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);z-index:5}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node){position:relative}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node)::after{content:\"\";position:absolute;top:0;bottom:0;width:var(--accent-width);background-color:var(--tree-accent);z-index:5}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node)[data-has-drag-handle=true]{--drag-handle-offset:34px}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node)[data-has-checkbox=true]{--checkbox-offset:36px}.tree-view-element ul li.inline-tree-item.element-row .drag-handle{margin-right:10px;cursor:grab}.tree-view-element ul li.inline-tree-item.element-row.rowSelected .drag-handle{margin-left:10px}.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed{border-color:red;border-style:dashed;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}.tree-view-element ul li.inline-tree-item.element-row.rowSelected{background:Highlight !important}}.inline-tree-item:focus-visible{outline:2px solid var(--tree-accent);outline-offset:2px;border-radius:6px}";
|
|
7
|
+
|
|
8
|
+
const TttxTreeView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.clickEvent = createEvent(this, "clickEvent", 7);
|
|
14
|
+
this.expandNode = createEvent(this, "expandNode", 7);
|
|
15
|
+
this.checkboxChange = createEvent(this, "checkboxChange", 7);
|
|
16
|
+
this.moveNode = createEvent(this, "moveNode", 7);
|
|
17
|
+
this.dragGhost = {
|
|
18
|
+
el: null,
|
|
19
|
+
};
|
|
20
|
+
this.dragDropPlaceholderId = 'drag-drop-placeholder';
|
|
21
|
+
this.createGhostImage = (label) => {
|
|
22
|
+
if (label.length > 30)
|
|
23
|
+
label = `${label.slice(0, 30)}...`;
|
|
24
|
+
const ghost = document.createElement('div');
|
|
25
|
+
Object.assign(ghost.style, {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
top: '-9999px',
|
|
28
|
+
left: '-9999px',
|
|
29
|
+
padding: '8px 12px',
|
|
30
|
+
background: 'white',
|
|
31
|
+
pointerEvents: 'none',
|
|
32
|
+
boxShadow: '0px 0px 12px #F9F9F9',
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flexDirection: 'row',
|
|
35
|
+
gap: '10px',
|
|
36
|
+
borderRadius: '4px'
|
|
37
|
+
});
|
|
38
|
+
const dragHandle = document.createElement('img');
|
|
39
|
+
dragHandle.src = this.dragIcon;
|
|
40
|
+
dragHandle.alt = 'drag';
|
|
41
|
+
ghost.appendChild(dragHandle);
|
|
42
|
+
const ghostText = document.createElement('span');
|
|
43
|
+
Object.assign(ghostText.style, { fontSize: '14px' });
|
|
44
|
+
ghostText.textContent = label;
|
|
45
|
+
ghost.appendChild(ghostText);
|
|
46
|
+
document.body.appendChild(ghost);
|
|
47
|
+
return ghost;
|
|
48
|
+
};
|
|
49
|
+
this.handleDragStart = (event, node, index, parentId) => {
|
|
50
|
+
if (!event.dataTransfer)
|
|
51
|
+
return;
|
|
52
|
+
this.draggedNodeParentId = parentId;
|
|
53
|
+
this.draggedNodeId = node.id;
|
|
54
|
+
const payload = JSON.stringify({ parentId, index, node });
|
|
55
|
+
event.dataTransfer.setData('text/plain', payload);
|
|
56
|
+
const ghostImg = this.createGhostImage(node.title);
|
|
57
|
+
this.dragGhost.el = ghostImg;
|
|
58
|
+
event.dataTransfer.setDragImage(ghostImg, 32, 30);
|
|
59
|
+
};
|
|
60
|
+
this.handleDragEnd = () => {
|
|
61
|
+
// if drag ends on a valid target, handleDragDrop should handle everything
|
|
62
|
+
// if not dropped on a valid target, use this trigger to remove the placeholder
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
const placeHolderExists = this.findNodeById(this.treeData, this.dragDropPlaceholderId);
|
|
65
|
+
if (placeHolderExists) {
|
|
66
|
+
const placeHolderRemovedList = this.updateDragDropPlaceholder(this.treeData);
|
|
67
|
+
this.treeData = [...placeHolderRemovedList];
|
|
68
|
+
}
|
|
69
|
+
}, 300);
|
|
70
|
+
};
|
|
71
|
+
this.handleDragDrop = (event, node, parentId) => {
|
|
72
|
+
var _a;
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
const nodeData = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
|
75
|
+
if (!nodeData)
|
|
76
|
+
return;
|
|
77
|
+
const { parentId: sourceParentId, node: sourceNode } = JSON.parse(nodeData);
|
|
78
|
+
// Prevent dropping on itself or different parents
|
|
79
|
+
if (node.id === sourceNode.id || sourceParentId !== parentId)
|
|
80
|
+
return;
|
|
81
|
+
const updatedTree = [...this.treeData];
|
|
82
|
+
// Find the parent node
|
|
83
|
+
const parent = parentId ? this.findNodeById(updatedTree, parentId) : null;
|
|
84
|
+
// If no parent (root level), work with treeData directly
|
|
85
|
+
const children = (parent === null || parent === void 0 ? void 0 : parent.child) ? [...parent.child] : [...updatedTree];
|
|
86
|
+
if (!children || children.length === 0)
|
|
87
|
+
return;
|
|
88
|
+
// move the node to wherever the placeholder now is
|
|
89
|
+
const movedElement = sourceNode;
|
|
90
|
+
const newChildren = [];
|
|
91
|
+
for (const child of children) {
|
|
92
|
+
if (child.id == movedElement.id)
|
|
93
|
+
continue; // will be inserted in placeholder position
|
|
94
|
+
if (child.id == this.dragDropPlaceholderId) {
|
|
95
|
+
// moved element added to new list in placeholder's place
|
|
96
|
+
newChildren.push(movedElement);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
newChildren.push(child); // retain existing elements
|
|
100
|
+
}
|
|
101
|
+
// Update the tree
|
|
102
|
+
if (parent) {
|
|
103
|
+
parent.child = newChildren;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this.treeData = newChildren;
|
|
107
|
+
}
|
|
108
|
+
this.draggedNodeParentId = undefined;
|
|
109
|
+
this.draggedNodeId = undefined;
|
|
110
|
+
if (this.dragGhost.el) {
|
|
111
|
+
this.dragGhost.el.remove();
|
|
112
|
+
this.dragGhost.el = null;
|
|
113
|
+
}
|
|
114
|
+
this.handleDragDropSuccessBackground(movedElement.id);
|
|
115
|
+
this.treeData = [...this.updateDragDropPlaceholder(this.treeData)];
|
|
116
|
+
this.moveNode.emit(this.treeData);
|
|
117
|
+
};
|
|
118
|
+
this.handleDragOver = (event, draggedOverId, parentId, isDragDropPlaceholder) => {
|
|
119
|
+
event.preventDefault();
|
|
120
|
+
if (!event.dataTransfer)
|
|
121
|
+
return;
|
|
122
|
+
const validDrag = this.draggedNodeParentId === parentId || isDragDropPlaceholder;
|
|
123
|
+
event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
|
|
124
|
+
if (validDrag && !isDragDropPlaceholder) {
|
|
125
|
+
this.treeData = [...this.updateDragDropPlaceholder(this.treeData, draggedOverId)];
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
this.updateDragDropPlaceholder = (treeData, createPlaceholderOnId) => {
|
|
129
|
+
const newTreeData = [];
|
|
130
|
+
for (const treeViewItem of treeData) {
|
|
131
|
+
// delete existing placeholders & create a new one if this is where it should be dropped
|
|
132
|
+
if (treeViewItem.isDragDropPlaceholder)
|
|
133
|
+
continue;
|
|
134
|
+
if (treeViewItem.id == createPlaceholderOnId) {
|
|
135
|
+
newTreeData.push({
|
|
136
|
+
id: this.dragDropPlaceholderId,
|
|
137
|
+
title: 'Drop here',
|
|
138
|
+
isDragDropPlaceholder: true
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
if (treeViewItem.child) {
|
|
142
|
+
const children = this.updateDragDropPlaceholder(treeViewItem.child, createPlaceholderOnId);
|
|
143
|
+
treeViewItem.child = children;
|
|
144
|
+
}
|
|
145
|
+
newTreeData.push(treeViewItem);
|
|
146
|
+
}
|
|
147
|
+
return newTreeData;
|
|
148
|
+
};
|
|
149
|
+
this.data = undefined;
|
|
150
|
+
this.treeData = undefined;
|
|
151
|
+
this.nodesRecentlyMoved = [];
|
|
152
|
+
}
|
|
153
|
+
componentWillRender() {
|
|
154
|
+
if (!this.data)
|
|
155
|
+
return;
|
|
156
|
+
this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
|
|
157
|
+
if (!this.dragIcon) {
|
|
158
|
+
this.dragIcon = getAssetPath('assets/img/drag-icon.svg');
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
onClickHandler(event, node) {
|
|
162
|
+
event.stopPropagation();
|
|
163
|
+
// Handle selection: if node is already selected, deselect it; otherwise select it and deselect all others
|
|
164
|
+
if (node.selectable) {
|
|
165
|
+
if (node.selected) {
|
|
166
|
+
// Toggle off: deselect this node
|
|
167
|
+
node.selected = false;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
// Toggle on: deselect all others and select this one
|
|
171
|
+
this.handleNodeSelection(node);
|
|
172
|
+
// node.selected is already set to true in handleNodeSelection
|
|
173
|
+
}
|
|
174
|
+
this.treeData = [...this.treeData];
|
|
175
|
+
}
|
|
176
|
+
this.clickEvent.emit(node);
|
|
177
|
+
}
|
|
178
|
+
toggleNode(node, event) {
|
|
179
|
+
event.stopPropagation();
|
|
180
|
+
node.isOpen = !node.isOpen;
|
|
181
|
+
this.treeData = [...this.treeData];
|
|
182
|
+
this.expandNode.emit({ node: node, treeViewData: this.treeData });
|
|
183
|
+
}
|
|
184
|
+
handleCheckboxChange(node, event) {
|
|
185
|
+
event.stopPropagation();
|
|
186
|
+
node.checked = !node.checked;
|
|
187
|
+
this.updateChildrenCheckStatus(node);
|
|
188
|
+
this.updateParentCheckStatus();
|
|
189
|
+
this.treeData = [...this.treeData];
|
|
190
|
+
this.checkboxChange.emit(this.treeData);
|
|
191
|
+
}
|
|
192
|
+
updateChildrenCheckStatus(node) {
|
|
193
|
+
if (node.child) {
|
|
194
|
+
node.child.forEach(childNode => {
|
|
195
|
+
if (childNode.hasCheckbox && childNode.checked !== undefined) {
|
|
196
|
+
// don't set checked on a child that doesn't have a checkbox
|
|
197
|
+
// makes it impossible to unselect a parent as child can never be unchecked in frontend
|
|
198
|
+
childNode.checked = node.checked;
|
|
199
|
+
}
|
|
200
|
+
this.updateChildrenCheckStatus(childNode);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Update the checkbox status of parent nodes when children have been updated.
|
|
206
|
+
* Called recursively to traverse the tree for parents.
|
|
207
|
+
* First call with no params to automatically start at the top of the tree.
|
|
208
|
+
*
|
|
209
|
+
* Any children checked -> parent is checked.
|
|
210
|
+
*
|
|
211
|
+
* All children unchecked -> parent is unchecked.
|
|
212
|
+
*/
|
|
213
|
+
updateParentCheckStatus(parent = undefined, children = undefined) {
|
|
214
|
+
if (parent === undefined) {
|
|
215
|
+
this.treeData.forEach(node => this.updateParentCheckStatus(node, node.child));
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
let childrenCheckedStatuses = [];
|
|
219
|
+
// set status relative to children if we have some
|
|
220
|
+
if (children && children.length > 0) {
|
|
221
|
+
childrenCheckedStatuses = children.map(node => this.updateParentCheckStatus(node, node.child)).flat(1);
|
|
222
|
+
// parent checked if any children are checked
|
|
223
|
+
if (childrenCheckedStatuses.some(checked => checked)) {
|
|
224
|
+
parent.checked = true;
|
|
225
|
+
}
|
|
226
|
+
// parent unchecked if all children are unchecked
|
|
227
|
+
if (childrenCheckedStatuses.every(checked => !checked)) {
|
|
228
|
+
parent.checked = false;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
// return the gathered checked statuses so nodes above can make check choices
|
|
232
|
+
return [...childrenCheckedStatuses, parent.checked];
|
|
233
|
+
}
|
|
234
|
+
treeConfigs(node) {
|
|
235
|
+
let checkboxIcon, checkboxColor;
|
|
236
|
+
if (node.checked) {
|
|
237
|
+
checkboxIcon = 'check_box';
|
|
238
|
+
checkboxColor = 'blue';
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
checkboxIcon = 'check_box_outline_blank';
|
|
242
|
+
checkboxColor = 'grey';
|
|
243
|
+
}
|
|
244
|
+
const rowHoverActive = node.hasHover ? 'rowHover' : '';
|
|
245
|
+
const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
|
|
246
|
+
const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
|
|
247
|
+
const dragDropPlaceholder = node.isDragDropPlaceholder ? 'drag_drop_placeholder' : '';
|
|
248
|
+
return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive, dragDropPlaceholder };
|
|
249
|
+
}
|
|
250
|
+
findNodeById(nodes, id) {
|
|
251
|
+
for (const node of nodes) {
|
|
252
|
+
if (node.id === id)
|
|
253
|
+
return node;
|
|
254
|
+
if (node.child) {
|
|
255
|
+
const found = this.findNodeById(node.child, id);
|
|
256
|
+
if (found)
|
|
257
|
+
return found;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
deselectAllNodes(nodes) {
|
|
263
|
+
for (const node of nodes) {
|
|
264
|
+
if (node.selectable) {
|
|
265
|
+
node.selected = false;
|
|
266
|
+
}
|
|
267
|
+
if (node.child) {
|
|
268
|
+
this.deselectAllNodes(node.child);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
handleNodeSelection(node) {
|
|
273
|
+
// Deselect all nodes first
|
|
274
|
+
this.deselectAllNodes(this.treeData);
|
|
275
|
+
// Select only the clicked node if it's selectable
|
|
276
|
+
if (node.selectable) {
|
|
277
|
+
node.selected = true;
|
|
278
|
+
}
|
|
279
|
+
// Update the tree to trigger re-render
|
|
280
|
+
this.treeData = [...this.treeData];
|
|
281
|
+
}
|
|
282
|
+
handleDragDropSuccessBackground(nodeId) {
|
|
283
|
+
this.nodesRecentlyMoved.push(nodeId);
|
|
284
|
+
setTimeout((nodeId) => {
|
|
285
|
+
this.nodesRecentlyMoved = [...this.nodesRecentlyMoved.filter((id) => id !== nodeId)];
|
|
286
|
+
}, 300, nodeId);
|
|
287
|
+
}
|
|
288
|
+
doesNodePrecedeDragDropPlaceholder(node, index, parentId = undefined) {
|
|
289
|
+
var _a;
|
|
290
|
+
if (node.child) {
|
|
291
|
+
// is parent, so first child would have to be placeholder
|
|
292
|
+
return node.child.length > 0 && node.child[0].isDragDropPlaceholder;
|
|
293
|
+
}
|
|
294
|
+
// child, so check if following element is placeholder
|
|
295
|
+
const parentNode = parentId ? this.findNodeById(this.treeData, parentId) : undefined;
|
|
296
|
+
if (parentNode) {
|
|
297
|
+
return index !== parentNode.child.length && ((_a = parentNode.child[index + 1]) === null || _a === void 0 ? void 0 : _a.isDragDropPlaceholder);
|
|
298
|
+
}
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
renderNode(node, index, parentId = undefined, level = 0 // <-- depth
|
|
302
|
+
) {
|
|
303
|
+
const options = this.treeConfigs(node);
|
|
304
|
+
const precedesDragDropPlaceholderClass = this.doesNodePrecedeDragDropPlaceholder(node, index, parentId) ? 'precedes_drag_drop' : '';
|
|
305
|
+
if (node.child) {
|
|
306
|
+
// group node
|
|
307
|
+
const isSelectedGroup = !!node.selected;
|
|
308
|
+
return (h("li", { class: `${isSelectedGroup ? 'selected-group' : ''}`, style: { '--level': String(level) } }, h("li", Object.assign({ id: node.id, "data-id": node.id }, (node.draggable || node.isDragDropPlaceholder ? { onDragOver: event => this.handleDragOver(event, node.id, parentId, node.isDragDropPlaceholder) } : {}), (node.draggable || node.isDragDropPlaceholder ? { onDrop: event => this.handleDragDrop(event, node, parentId) } : {}), { class: `inline-tree-item element-row tree-node ${options.rowHoverActive} ${options.selectedActive} ${options.dragDropPlaceholder} ${precedesDragDropPlaceholderClass}`, onClick: event => {
|
|
309
|
+
if (node.hasHover) {
|
|
310
|
+
this.onClickHandler(event, node);
|
|
311
|
+
}
|
|
312
|
+
} }), h("tttx-button_1_9_101", { 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, parentId)), node.isOpen ? (h("ul", null, node.child.map((childNode, childIndex) => {
|
|
313
|
+
// next level = level + 1
|
|
314
|
+
return this.renderNode(childNode, childIndex, node.id, level + 1);
|
|
315
|
+
}))) : null));
|
|
316
|
+
}
|
|
317
|
+
// leaf (activity)
|
|
318
|
+
const leafStyle = { '--level': String(level) };
|
|
319
|
+
if (this.nodesRecentlyMoved.find((x) => x == node.id)) {
|
|
320
|
+
leafStyle['background-color'] = '#D1F7F0'; //'rgba(51, 170, 51, .1)';
|
|
321
|
+
}
|
|
322
|
+
return (h("li", Object.assign({ "data-id": node.id }, (node.draggable || node.isDragDropPlaceholder ? { onDragOver: event => this.handleDragOver(event, node.id, parentId, node.isDragDropPlaceholder) } : {}), (node.draggable || node.isDragDropPlaceholder ? { onDrop: event => this.handleDragDrop(event, node, parentId) } : {}), { class: `
|
|
323
|
+
inline-tree-item element-row
|
|
324
|
+
${options.rowHoverActive}
|
|
325
|
+
${options.selectedActive}
|
|
326
|
+
${options.dragDropPlaceholder}
|
|
327
|
+
${precedesDragDropPlaceholderClass}
|
|
328
|
+
drag_drop_success_fade
|
|
329
|
+
${this.draggedNodeId == node.id ? ' is-being-dragged' : ''}
|
|
330
|
+
`, style: leafStyle, onClick: event => {
|
|
331
|
+
if (node.hasHover) {
|
|
332
|
+
this.onClickHandler(event, node);
|
|
333
|
+
}
|
|
334
|
+
} }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index, parentId)));
|
|
335
|
+
}
|
|
336
|
+
htmlcode(type, node, check_box, check_boxColor, index, parentId = undefined) {
|
|
337
|
+
if (node.isDragDropPlaceholder) {
|
|
338
|
+
return (h("div", { class: "inline-tree-item element" }, h("div", { class: 'drag-drop-placeholder-row' }, h("div", { class: 'placeholder-text' }, node.title))));
|
|
339
|
+
}
|
|
340
|
+
return (h("div", { class: "inline-tree-item element" }, node.draggable && (h("div", { class: "drag-handle-container" }, h("img", { src: this.dragIcon, alt: "drag", class: "drag-handle", draggable: node.draggable, onDragStart: event => {
|
|
341
|
+
if (node.draggable) {
|
|
342
|
+
this.handleDragStart(event, node, index, parentId);
|
|
343
|
+
}
|
|
344
|
+
}, onDragEnd: () => {
|
|
345
|
+
if (node.draggable) {
|
|
346
|
+
this.handleDragEnd();
|
|
347
|
+
}
|
|
348
|
+
} }))), node.hasCheckbox && (h("tttx-button_1_9_101", { 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 && (h("tttx-icon_1_9_101", { icon: node.icon, color: node.iconColor, class: "padding-icon" })), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: purify.sanitize(node.html, domSanitiserOptions) })));
|
|
349
|
+
}
|
|
350
|
+
render() {
|
|
351
|
+
if (!this.data)
|
|
352
|
+
return;
|
|
353
|
+
return (h("div", { ref: (element) => this.rootElement = element, class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
|
|
354
|
+
}
|
|
355
|
+
get el() { return this; }
|
|
356
|
+
static get style() { return tttxTreeViewCss; }
|
|
357
|
+
}, [1, "tttx-tree-view_1_9_101", {
|
|
358
|
+
"data": [1040],
|
|
359
|
+
"treeData": [32],
|
|
360
|
+
"nodesRecentlyMoved": [32]
|
|
361
|
+
}]);
|
|
362
|
+
function defineCustomElement$1() {
|
|
363
|
+
if (typeof customElements === "undefined") {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
const components = ["tttx-tree-view_1_9_101", "tttx-button_1_9_101", "tttx-icon_1_9_101"];
|
|
367
|
+
components.forEach(tagName => { switch (tagName) {
|
|
368
|
+
case "tttx-tree-view_1_9_101":
|
|
369
|
+
if (!customElements.get(tagName)) {
|
|
370
|
+
customElements.define(tagName, TttxTreeView);
|
|
371
|
+
}
|
|
372
|
+
break;
|
|
373
|
+
case "tttx-button_1_9_101":
|
|
374
|
+
if (!customElements.get(tagName)) {
|
|
375
|
+
defineCustomElement$3();
|
|
376
|
+
}
|
|
377
|
+
break;
|
|
378
|
+
case "tttx-icon_1_9_101":
|
|
379
|
+
if (!customElements.get(tagName)) {
|
|
380
|
+
defineCustomElement$2();
|
|
381
|
+
}
|
|
382
|
+
break;
|
|
383
|
+
} });
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
const TttxTreeView_1_9_101 = TttxTreeView;
|
|
387
|
+
const defineCustomElement = defineCustomElement$1;
|
|
388
|
+
|
|
389
|
+
export { TttxTreeView_1_9_101, defineCustomElement };
|
package/dist/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy(JSON.parse("[[\"tttx-data-pattern_1_9_99\",[[1,\"tttx-data-pattern_1_9_99\",{\"data\":[1],\"sorterOptions\":[1,\"sorter-options\"],\"filterOptions\":[1,\"filter-options\"],\"filterHeader\":[1,\"filter-header\"],\"defaultSortOption\":[1,\"default-sort-option\"],\"searchplaceholder\":[1],\"addbuttonlabel\":[1],\"addbutton\":[4]}]]],[\"tttx-form_1_9_99\",[[1,\"tttx-form_1_9_99\",{\"formschema\":[1025],\"data\":[1032],\"submit\":[64],\"showLoadingSpinner\":[64],\"setSelectedItem\":[64],\"setSelectOptions\":[64],\"isValid\":[64],\"setValidationFor\":[64],\"clearValidationFor\":[64],\"disableFormField\":[64],\"enableFormField\":[64],\"setInputFieldValue\":[64],\"setFieldReadOnlyMode\":[64]}]]],[\"tttx-multiselect-box_1_9_99\",[[1,\"tttx-multiselect-box_1_9_99\",{\"optionsData\":[1,\"options-data\"],\"label\":[1],\"inline\":[4],\"placeholder\":[1],\"searchEnabled\":[4,\"search-enabled\"],\"htmlVisibleValue\":[4,\"html-visible-value\"],\"visibleValue\":[1,\"visible-value\"],\"isLoading\":[4,\"is-loading\"],\"stopLocalSearch\":[4,\"stop-local-search\"],\"readOnly\":[4,\"read-only\"],\"priorityLabel\":[1,\"priority-label\"],\"nonPriorityLabel\":[1,\"non-priority-label\"],\"open\":[32],\"unsavedSelectedItems\":[32],\"searchTerm\":[32]},[[0,\"closeSelectBox\",\"handleCloseSelectBox\"],[0,\"blur\",\"handleBlur\"]]]]],[\"tttx-chart_1_9_99\",[[1,\"tttx-chart_1_9_99\",{\"chartType\":[1,\"chart-type\"],\"chartData\":[16],\"chartOptions\":[16],\"loading\":[4],\"error\":[4],\"fallbackText\":[1,\"fallback-text\"],\"width\":[1],\"height\":[1],\"isYAxisPercentageValues\":[4,\"is-y-axis-percentage-values\"],\"showActiveSegmentLabel\":[4,\"show-active-segment-label\"],\"initialActiveIndex\":[2,\"initial-active-index\"],\"activeSegmentChangeCallback\":[16],\"exportable\":[32],\"chartInstance\":[32],\"showPngSvgExport\":[32],\"selectedSegmentIndex\":[32],\"hoverSegmentIndex\":[32]}]]],[\"tttx-datacard_1_9_99\",[[1,\"tttx-datacard_1_9_99\",{\"cardTitle\":[1,\"card-title\"],\"leftData\":[1,\"left-data\"],\"rightData\":[1,\"right-data\"],\"rightSubtext\":[1,\"right-subtext\"],\"iconStyle\":[1,\"icon-style\"],\"cardType\":[1,\"card-type\"],\"chartConfig\":[1,\"chart-config\"],\"_chartConfig\":[32],\"chartRender\":[32]}]]],[\"tttx-dialog-box_1_9_99\",[[1,\"tttx-dialog-box_1_9_99\",{\"data\":[1025],\"size\":[1],\"open\":[1028],\"allowOverflow\":[4,\"allow-overflow\"],\"elementSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-dialog_1_9_99\",[[1,\"tttx-dialog_1_9_99\",{\"header\":[1],\"type\":[1],\"size\":[1],\"open\":[4],\"allowOverflow\":[4,\"allow-overflow\"],\"closeEnabled\":[4,\"close-enabled\"],\"elementSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-table_1_9_99\",[[1,\"tttx-table_1_9_99\",{\"headers\":[16],\"data\":[16],\"selectable\":[4],\"loading\":[4],\"draggableHeaders\":[4,\"draggable-headers\"],\"rowsPerPage\":[2,\"rows-per-page\"],\"totalRecords\":[2,\"total-records\"],\"selected\":[2],\"page\":[2],\"currentPage\":[32],\"draggedHeaderIndex\":[32]}]]],[\"tttx-tree-view_1_9_99\",[[1,\"tttx-tree-view_1_9_99\",{\"data\":[1040],\"treeData\":[32]}]]],[\"tttx-action-dropdown_1_9_99\",[[1,\"tttx-action-dropdown_1_9_99\",{\"actionKey\":[1,\"action-key\"],\"icon\":[1],\"fieldOptionsData\":[1,\"field-options-data\"],\"defaultOption\":[1,\"default-option\"],\"isIconVisible\":[4,\"is-icon-visible\"],\"selectedField\":[32],\"dropdownExpand\":[32],\"dropdownOptions\":[32]},[[0,\"closeActionDropdown\",\"handleCloseActionDropdown\"]]]]],[\"tttx-checkbox_1_9_99\",[[0,\"tttx-checkbox_1_9_99\",{\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"inline\":[4],\"indeterminate\":[4],\"checked\":[4]}]]],[\"tttx-comments_1_9_99\",[[1,\"tttx-comments_1_9_99\",{\"currentuser\":[1],\"comments\":[1],\"disableFile\":[4,\"disable-file\"],\"messageLimit\":[2,\"message-limit\"],\"inputBoxHeight\":[2,\"input-box-height\"],\"placeholder\":[1],\"saveButtonText\":[1,\"save-button-text\"],\"value\":[1],\"allowEditing\":[4,\"allow-editing\"],\"readonly\":[4],\"_comments\":[32],\"showError\":[32],\"_saveButtonText\":[32],\"editingComment\":[32],\"addDummyComment\":[64]}]]],[\"tttx-date-range-picker\",[[1,\"tttx-date-range-picker\",{\"initialValue\":[16],\"placeholderText\":[1,\"placeholder-text\"],\"showCalendar\":[32],\"startDate\":[32],\"endDate\":[32],\"currentMonth\":[32],\"currentYear\":[32],\"isSelecting\":[32],\"hoverDate\":[32]}]]],[\"tttx-expander_1_9_99\",[[1,\"tttx-expander_1_9_99\",{\"name\":[1],\"open\":[4],\"lefticon\":[1],\"lefticoncolor\":[1],\"isExpanded\":[32]}]]],[\"tttx-tabs_1_9_99\",[[2,\"tttx-tabs_1_9_99\",{\"tabsName\":[1,\"tabs-name\"],\"navigation\":[4],\"wide\":[4],\"tabs\":[1],\"_tabs\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"tttx-tag-v2_1_9_99\",[[1,\"tttx-tag-v2_1_9_99\",{\"text\":[1],\"color\":[1],\"textColor\":[1,\"text-color\"],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"iconSize\":[2,\"icon-size\"],\"state\":[1],\"size\":[1],\"variant\":[1],\"hasStartIcon\":[4,\"has-start-icon\"],\"hasEndIcon\":[4,\"has-end-icon\"]}]]],[\"tttx-checkbox-group-caption_1_9_99\",[[4,\"tttx-checkbox-group-caption_1_9_99\"]]],[\"tttx-checkbox-group-heading_1_9_99\",[[4,\"tttx-checkbox-group-heading_1_9_99\"]]],[\"tttx-checkbox-group_1_9_99\",[[1,\"tttx-checkbox-group_1_9_99\"]]],[\"tttx-keyvalue-block_1_9_99\",[[1,\"tttx-keyvalue-block_1_9_99\",{\"keyvalues\":[1],\"horizontal\":[4],\"spacedout\":[4],\"_elements\":[32]}]]],[\"tttx-percentage-bar_1_9_99\",[[2,\"tttx-percentage-bar_1_9_99\",{\"percentage\":[8],\"thresholds\":[1],\"color\":[1],\"min\":[1],\"labelid\":[1],\"_percentage\":[32],\"_ranges\":[32],\"_min\":[32]}]]],[\"tttx-qrcode_1_9_99\",[[1,\"tttx-qrcode_1_9_99\",{\"link\":[1025],\"size\":[1026]}]]],[\"tttx-range-slider_1_9_99\",[[1,\"tttx-range-slider_1_9_99\",{\"minimum\":[2],\"maximum\":[2],\"sliderMode\":[1,\"slider-mode\"],\"showFields\":[4,\"show-fields\"],\"lowerValue\":[32],\"upperValue\":[32]},[[0,\"setSliderValues\",\"onSetSliderValues\"]]]]],[\"tttx-skeleton_loader_1_9_99\",[[1,\"tttx-skeleton_loader_1_9_99\",{\"width\":[1],\"height\":[1],\"borderRadius\":[1,\"border-radius\"],\"color\":[1],\"variant\":[1],\"animation\":[1],\"count\":[2],\"direction\":[1],\"gap\":[1],\"customClass\":[1,\"custom-class\"]}]]],[\"tttx-textarea_1_9_99\",[[2,\"tttx-textarea_1_9_99\",{\"label\":[1],\"secondarylabel\":[1],\"showerrormsg\":[4],\"showerrorbubble\":[4],\"errormsg\":[1],\"rows\":[2],\"textareaautofocus\":[4],\"inputkeyhint\":[1],\"inputindex\":[8],\"inputtitle\":[1],\"disabled\":[4],\"maxlength\":[8],\"name\":[1],\"placeholder\":[1],\"readonly\":[8],\"required\":[4],\"value\":[1032]}]]],[\"tttx-toggle_1_9_99\",[[1,\"tttx-toggle_1_9_99\",{\"initialstate\":[8],\"_state\":[32]}]]],[\"tttx-tooltip_1_9_99\",[[1,\"tttx-tooltip_1_9_99\",{\"text\":[1],\"placement\":[1],\"trigger\":[16],\"delay\":[2],\"disabled\":[4],\"ariaLabel\":[1,\"aria-label\"],\"showShadow\":[4,\"show-shadow\"],\"showOnlyOnOverflow\":[4,\"show-only-on-overflow\"],\"visible\":[32],\"tooltipStyles\":[32]}]]],[\"tttx-icon_1_9_99\",[[1,\"tttx-icon_1_9_99\",{\"icon\":[1],\"color\":[1],\"size\":[1026]}]]],[\"tttx-loading-spinner_1_9_99_3\",[[1,\"tttx-tag_1_9_99\",{\"text\":[1],\"color\":[1],\"textColor\":[1,\"text-color\"],\"hasIcon\":[4,\"has-icon\"],\"icon\":[1],\"iconColor\":[1,\"icon-color\"],\"iconSize\":[2,\"icon-size\"]}],[2,\"tttx-standalone-input_1_9_99\",{\"label\":[1],\"secondarylabel\":[1],\"showerrormsg\":[4],\"showerrorbubble\":[4],\"errormsg\":[1],\"iconleft\":[1],\"iconleftcolor\":[1],\"iconright\":[1],\"iconrightcolor\":[1],\"inputicon\":[1],\"inputiconcolor\":[1],\"inline\":[4],\"inputautocapitalize\":[1],\"inputautofocus\":[4],\"inputkeyhint\":[1],\"inputindex\":[8],\"inputtitle\":[1],\"autocomplete\":[1],\"checked\":[4],\"disabled\":[4],\"max\":[8],\"maxlength\":[8],\"min\":[8],\"minlength\":[8],\"name\":[1],\"pattern\":[1],\"placeholder\":[1],\"readonly\":[8],\"required\":[4],\"step\":[8],\"type\":[1],\"value\":[1032]}],[1,\"tttx-loading-spinner_1_9_99\",{\"loadingMessage\":[4,\"loading-message\"],\"size\":[1],\"color\":[1],\"cardBackgroundColor\":[1,\"card-background-color\"],\"message\":[1],\"customMessageSchema\":[16],\"timeElapsed\":[32]}]]],[\"tttx-select-box_1_9_99\",[[1,\"tttx-select-box_1_9_99\",{\"optionsData\":[1,\"options-data\"],\"label\":[1],\"inline\":[4],\"placeholder\":[1],\"searchEnabled\":[4,\"search-enabled\"],\"selectedValue\":[1,\"selected-value\"],\"useExternalFiltering\":[4,\"use-external-filtering\"],\"useExternalPaginatedFiltering\":[4,\"use-external-paginated-filtering\"],\"isAllExternalDataLoaded\":[4,\"is-all-external-data-loaded\"],\"isLoading\":[4,\"is-loading\"],\"readOnly\":[4,\"read-only\"],\"priorityLabel\":[1,\"priority-label\"],\"nonPriorityLabel\":[1,\"non-priority-label\"],\"clearable\":[4],\"showErrorMsg\":[4,\"show-error-msg\"],\"showErrorBubble\":[4,\"show-error-bubble\"],\"errorMsg\":[1,\"error-msg\"],\"open\":[32],\"selectedItem\":[32],\"searchTerm\":[32],\"loadingNextExternalPage\":[32],\"setSelectedItem\":[64]},[[0,\"closeSelectBox\",\"handleCloseSelectBox\"],[0,\"blur\",\"handleBlur\"]]]]],[\"tttx-button-v2_1_9_99\",[[1,\"tttx-button-v2_1_9_99\",{\"notext\":[4],\"icon\":[1],\"label\":[1],\"iconcolor\":[1025],\"iconposition\":[1],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"design\":[1],\"disabled\":[516],\"type\":[1],\"href\":[1],\"options\":[1],\"size\":[1],\"dropdownOpen\":[32],\"dropdownDirection\":[32]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"tttx-graph_1_9_99\",[[1,\"tttx-graph_1_9_99\",{\"chartType\":[1,\"chart-type\"],\"chartData\":[1,\"chart-data\"],\"chartText\":[1,\"chart-text\"],\"chartConfig\":[32],\"formattedData\":[32]}]]],[\"tttx-filter_1_9_99_4\",[[1,\"tttx-filter_1_9_99\",{\"filterKey\":[1,\"filter-key\"],\"filterOptions\":[1,\"filter-options\"],\"showSelectAll\":[4,\"show-select-all\"],\"showSearchField\":[4,\"show-search-field\"],\"showOptionIcons\":[4,\"show-option-icons\"],\"filterButtonStyle\":[1,\"filter-button-style\"],\"filterHeader\":[1,\"filter-header\"],\"defaultFilterOptions\":[1,\"default-filter-options\"],\"popoverWidth\":[1,\"popover-width\"],\"showPopover\":[32],\"displayedFilterSettings\":[32],\"selectedFilters\":[32],\"filterSearchTerm\":[32],\"allSelected\":[32]},[[0,\"closeFilter\",\"handleCloseFilter\"]]],[1,\"tttx-list_1_9_99\",{\"data\":[1025],\"name\":[1],\"_data\":[32]}],[1,\"tttx-sorter_1_9_99\",{\"sorterKey\":[1,\"sorter-key\"],\"defaultSortDirection\":[1,\"default-sort-direction\"],\"fieldOptionsData\":[1,\"field-options-data\"],\"defaultOption\":[1,\"default-option\"],\"selectedField\":[32],\"sortDirection\":[32],\"dropdownExpand\":[32],\"dropdownOptions\":[32]},[[0,\"closeSorter\",\"handleCloseSorter\"]]],[1,\"tttx-toolbar_1_9_99\",{\"border\":[4],\"viewSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-button_1_9_99\",[[1,\"tttx-button_1_9_99\",{\"notext\":[4],\"icon\":[1],\"iconposition\":[1],\"iconcolor\":[1025],\"design\":[1]}]]]]"), options);
|
|
14
|
+
return bootstrapLazy(JSON.parse("[[\"tttx-data-pattern_1_9_101\",[[1,\"tttx-data-pattern_1_9_101\",{\"data\":[1],\"sorterOptions\":[1,\"sorter-options\"],\"filterOptions\":[1,\"filter-options\"],\"filterHeader\":[1,\"filter-header\"],\"defaultSortOption\":[1,\"default-sort-option\"],\"searchplaceholder\":[1],\"addbuttonlabel\":[1],\"addbutton\":[4]}]]],[\"tttx-form_1_9_101\",[[1,\"tttx-form_1_9_101\",{\"formschema\":[1025],\"data\":[1032],\"submit\":[64],\"showLoadingSpinner\":[64],\"setSelectedItem\":[64],\"setSelectOptions\":[64],\"isValid\":[64],\"setValidationFor\":[64],\"clearValidationFor\":[64],\"disableFormField\":[64],\"enableFormField\":[64],\"setInputFieldValue\":[64],\"setFieldReadOnlyMode\":[64]}]]],[\"tttx-multiselect-box_1_9_101\",[[1,\"tttx-multiselect-box_1_9_101\",{\"optionsData\":[1,\"options-data\"],\"label\":[1],\"inline\":[4],\"placeholder\":[1],\"searchEnabled\":[4,\"search-enabled\"],\"htmlVisibleValue\":[4,\"html-visible-value\"],\"visibleValue\":[1,\"visible-value\"],\"isLoading\":[4,\"is-loading\"],\"stopLocalSearch\":[4,\"stop-local-search\"],\"readOnly\":[4,\"read-only\"],\"priorityLabel\":[1,\"priority-label\"],\"nonPriorityLabel\":[1,\"non-priority-label\"],\"open\":[32],\"unsavedSelectedItems\":[32],\"searchTerm\":[32]},[[0,\"closeSelectBox\",\"handleCloseSelectBox\"],[0,\"blur\",\"handleBlur\"]]]]],[\"tttx-chart_1_9_101\",[[1,\"tttx-chart_1_9_101\",{\"chartType\":[1,\"chart-type\"],\"chartData\":[16],\"chartOptions\":[16],\"loading\":[4],\"error\":[4],\"fallbackText\":[1,\"fallback-text\"],\"width\":[1],\"height\":[1],\"isYAxisPercentageValues\":[4,\"is-y-axis-percentage-values\"],\"showActiveSegmentLabel\":[4,\"show-active-segment-label\"],\"initialActiveIndex\":[2,\"initial-active-index\"],\"activeSegmentChangeCallback\":[16],\"exportable\":[32],\"chartInstance\":[32],\"showPngSvgExport\":[32],\"selectedSegmentIndex\":[32],\"hoverSegmentIndex\":[32]}]]],[\"tttx-datacard_1_9_101\",[[1,\"tttx-datacard_1_9_101\",{\"cardTitle\":[1,\"card-title\"],\"leftData\":[1,\"left-data\"],\"rightData\":[1,\"right-data\"],\"rightSubtext\":[1,\"right-subtext\"],\"iconStyle\":[1,\"icon-style\"],\"cardType\":[1,\"card-type\"],\"chartConfig\":[1,\"chart-config\"],\"_chartConfig\":[32],\"chartRender\":[32]}]]],[\"tttx-dialog-box_1_9_101\",[[1,\"tttx-dialog-box_1_9_101\",{\"data\":[1025],\"size\":[1],\"open\":[1028],\"allowOverflow\":[4,\"allow-overflow\"],\"elementSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-dialog_1_9_101\",[[1,\"tttx-dialog_1_9_101\",{\"header\":[1],\"type\":[1],\"size\":[1],\"open\":[4],\"allowOverflow\":[4,\"allow-overflow\"],\"closeEnabled\":[4,\"close-enabled\"],\"elementSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-table_1_9_101\",[[1,\"tttx-table_1_9_101\",{\"headers\":[16],\"data\":[16],\"selectable\":[4],\"loading\":[4],\"draggableHeaders\":[4,\"draggable-headers\"],\"rowsPerPage\":[2,\"rows-per-page\"],\"totalRecords\":[2,\"total-records\"],\"selected\":[2],\"page\":[2],\"currentPage\":[32],\"draggedHeaderIndex\":[32]}]]],[\"tttx-tree-view_1_9_101\",[[1,\"tttx-tree-view_1_9_101\",{\"data\":[1040],\"treeData\":[32],\"nodesRecentlyMoved\":[32]}]]],[\"tttx-action-dropdown_1_9_101\",[[1,\"tttx-action-dropdown_1_9_101\",{\"actionKey\":[1,\"action-key\"],\"icon\":[1],\"fieldOptionsData\":[1,\"field-options-data\"],\"defaultOption\":[1,\"default-option\"],\"isIconVisible\":[4,\"is-icon-visible\"],\"selectedField\":[32],\"dropdownExpand\":[32],\"dropdownOptions\":[32]},[[0,\"closeActionDropdown\",\"handleCloseActionDropdown\"]]]]],[\"tttx-checkbox_1_9_101\",[[0,\"tttx-checkbox_1_9_101\",{\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"inline\":[4],\"indeterminate\":[4],\"checked\":[4]}]]],[\"tttx-comments_1_9_101\",[[1,\"tttx-comments_1_9_101\",{\"currentuser\":[1],\"comments\":[1],\"disableFile\":[4,\"disable-file\"],\"messageLimit\":[2,\"message-limit\"],\"inputBoxHeight\":[2,\"input-box-height\"],\"placeholder\":[1],\"saveButtonText\":[1,\"save-button-text\"],\"value\":[1],\"allowEditing\":[4,\"allow-editing\"],\"readonly\":[4],\"_comments\":[32],\"showError\":[32],\"_saveButtonText\":[32],\"editingComment\":[32],\"addDummyComment\":[64]}]]],[\"tttx-date-range-picker\",[[1,\"tttx-date-range-picker\",{\"initialValue\":[16],\"placeholderText\":[1,\"placeholder-text\"],\"showCalendar\":[32],\"startDate\":[32],\"endDate\":[32],\"currentMonth\":[32],\"currentYear\":[32],\"isSelecting\":[32],\"hoverDate\":[32]}]]],[\"tttx-expander_1_9_101\",[[1,\"tttx-expander_1_9_101\",{\"name\":[1],\"open\":[4],\"lefticon\":[1],\"lefticoncolor\":[1],\"isExpanded\":[32]}]]],[\"tttx-tabs_1_9_101\",[[2,\"tttx-tabs_1_9_101\",{\"tabsName\":[1,\"tabs-name\"],\"navigation\":[4],\"wide\":[4],\"tabs\":[1],\"_tabs\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"tttx-tag-v2_1_9_101\",[[1,\"tttx-tag-v2_1_9_101\",{\"text\":[1],\"color\":[1],\"textColor\":[1,\"text-color\"],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"iconSize\":[2,\"icon-size\"],\"state\":[1],\"size\":[1],\"variant\":[1],\"hasStartIcon\":[4,\"has-start-icon\"],\"hasEndIcon\":[4,\"has-end-icon\"]}]]],[\"tttx-checkbox-group-caption_1_9_101\",[[4,\"tttx-checkbox-group-caption_1_9_101\"]]],[\"tttx-checkbox-group-heading_1_9_101\",[[4,\"tttx-checkbox-group-heading_1_9_101\"]]],[\"tttx-checkbox-group_1_9_101\",[[1,\"tttx-checkbox-group_1_9_101\"]]],[\"tttx-keyvalue-block_1_9_101\",[[1,\"tttx-keyvalue-block_1_9_101\",{\"keyvalues\":[1],\"horizontal\":[4],\"spacedout\":[4],\"_elements\":[32]}]]],[\"tttx-percentage-bar_1_9_101\",[[2,\"tttx-percentage-bar_1_9_101\",{\"percentage\":[8],\"thresholds\":[1],\"color\":[1],\"min\":[1],\"labelid\":[1],\"_percentage\":[32],\"_ranges\":[32],\"_min\":[32]}]]],[\"tttx-qrcode_1_9_101\",[[1,\"tttx-qrcode_1_9_101\",{\"link\":[1025],\"size\":[1026]}]]],[\"tttx-range-slider_1_9_101\",[[1,\"tttx-range-slider_1_9_101\",{\"minimum\":[2],\"maximum\":[2],\"sliderMode\":[1,\"slider-mode\"],\"showFields\":[4,\"show-fields\"],\"lowerValue\":[32],\"upperValue\":[32]},[[0,\"setSliderValues\",\"onSetSliderValues\"]]]]],[\"tttx-skeleton_loader_1_9_101\",[[1,\"tttx-skeleton_loader_1_9_101\",{\"width\":[1],\"height\":[1],\"borderRadius\":[1,\"border-radius\"],\"color\":[1],\"variant\":[1],\"animation\":[1],\"count\":[2],\"direction\":[1],\"gap\":[1],\"customClass\":[1,\"custom-class\"]}]]],[\"tttx-textarea_1_9_101\",[[2,\"tttx-textarea_1_9_101\",{\"label\":[1],\"secondarylabel\":[1],\"showerrormsg\":[4],\"showerrorbubble\":[4],\"errormsg\":[1],\"rows\":[2],\"textareaautofocus\":[4],\"inputkeyhint\":[1],\"inputindex\":[8],\"inputtitle\":[1],\"disabled\":[4],\"maxlength\":[8],\"name\":[1],\"placeholder\":[1],\"readonly\":[8],\"required\":[4],\"value\":[1032]}]]],[\"tttx-toggle_1_9_101\",[[1,\"tttx-toggle_1_9_101\",{\"initialstate\":[8],\"_state\":[32]}]]],[\"tttx-tooltip_1_9_101\",[[1,\"tttx-tooltip_1_9_101\",{\"text\":[1],\"placement\":[1],\"trigger\":[16],\"delay\":[2],\"disabled\":[4],\"ariaLabel\":[1,\"aria-label\"],\"showShadow\":[4,\"show-shadow\"],\"showOnlyOnOverflow\":[4,\"show-only-on-overflow\"],\"visible\":[32],\"tooltipStyles\":[32]}]]],[\"tttx-icon_1_9_101\",[[1,\"tttx-icon_1_9_101\",{\"icon\":[1],\"color\":[1],\"size\":[1026]}]]],[\"tttx-loading-spinner_1_9_101_3\",[[1,\"tttx-tag_1_9_101\",{\"text\":[1],\"color\":[1],\"textColor\":[1,\"text-color\"],\"hasIcon\":[4,\"has-icon\"],\"icon\":[1],\"iconColor\":[1,\"icon-color\"],\"iconSize\":[2,\"icon-size\"]}],[2,\"tttx-standalone-input_1_9_101\",{\"label\":[1],\"secondarylabel\":[1],\"showerrormsg\":[4],\"showerrorbubble\":[4],\"errormsg\":[1],\"iconleft\":[1],\"iconleftcolor\":[1],\"iconright\":[1],\"iconrightcolor\":[1],\"inputicon\":[1],\"inputiconcolor\":[1],\"inline\":[4],\"inputautocapitalize\":[1],\"inputautofocus\":[4],\"inputkeyhint\":[1],\"inputindex\":[8],\"inputtitle\":[1],\"autocomplete\":[1],\"checked\":[4],\"disabled\":[4],\"max\":[8],\"maxlength\":[8],\"min\":[8],\"minlength\":[8],\"name\":[1],\"pattern\":[1],\"placeholder\":[1],\"readonly\":[8],\"required\":[4],\"step\":[8],\"type\":[1],\"value\":[1032]}],[1,\"tttx-loading-spinner_1_9_101\",{\"loadingMessage\":[4,\"loading-message\"],\"size\":[1],\"color\":[1],\"cardBackgroundColor\":[1,\"card-background-color\"],\"message\":[1],\"customMessageSchema\":[16],\"timeElapsed\":[32]}]]],[\"tttx-select-box_1_9_101\",[[1,\"tttx-select-box_1_9_101\",{\"optionsData\":[1,\"options-data\"],\"label\":[1],\"inline\":[4],\"placeholder\":[1],\"searchEnabled\":[4,\"search-enabled\"],\"selectedValue\":[1,\"selected-value\"],\"useExternalFiltering\":[4,\"use-external-filtering\"],\"useExternalPaginatedFiltering\":[4,\"use-external-paginated-filtering\"],\"isAllExternalDataLoaded\":[4,\"is-all-external-data-loaded\"],\"isLoading\":[4,\"is-loading\"],\"readOnly\":[4,\"read-only\"],\"priorityLabel\":[1,\"priority-label\"],\"nonPriorityLabel\":[1,\"non-priority-label\"],\"clearable\":[4],\"showErrorMsg\":[4,\"show-error-msg\"],\"showErrorBubble\":[4,\"show-error-bubble\"],\"errorMsg\":[1,\"error-msg\"],\"open\":[32],\"selectedItem\":[32],\"searchTerm\":[32],\"loadingNextExternalPage\":[32],\"setSelectedItem\":[64]},[[0,\"closeSelectBox\",\"handleCloseSelectBox\"],[0,\"blur\",\"handleBlur\"]]]]],[\"tttx-button-v2_1_9_101\",[[1,\"tttx-button-v2_1_9_101\",{\"notext\":[4],\"icon\":[1],\"label\":[1],\"iconcolor\":[1025],\"iconposition\":[1],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"design\":[1],\"disabled\":[516],\"type\":[1],\"href\":[1],\"options\":[1],\"size\":[1],\"dropdownOpen\":[32],\"dropdownDirection\":[32]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"tttx-graph_1_9_101\",[[1,\"tttx-graph_1_9_101\",{\"chartType\":[1,\"chart-type\"],\"chartData\":[1,\"chart-data\"],\"chartText\":[1,\"chart-text\"],\"chartConfig\":[32],\"formattedData\":[32]}]]],[\"tttx-filter_1_9_101_4\",[[1,\"tttx-filter_1_9_101\",{\"filterKey\":[1,\"filter-key\"],\"filterOptions\":[1,\"filter-options\"],\"showSelectAll\":[4,\"show-select-all\"],\"showSearchField\":[4,\"show-search-field\"],\"showOptionIcons\":[4,\"show-option-icons\"],\"filterButtonStyle\":[1,\"filter-button-style\"],\"filterHeader\":[1,\"filter-header\"],\"defaultFilterOptions\":[1,\"default-filter-options\"],\"popoverWidth\":[1,\"popover-width\"],\"showPopover\":[32],\"displayedFilterSettings\":[32],\"selectedFilters\":[32],\"filterSearchTerm\":[32],\"allSelected\":[32]},[[0,\"closeFilter\",\"handleCloseFilter\"]]],[1,\"tttx-list_1_9_101\",{\"data\":[1025],\"name\":[1],\"_data\":[32]}],[1,\"tttx-sorter_1_9_101\",{\"sorterKey\":[1,\"sorter-key\"],\"defaultSortDirection\":[1,\"default-sort-direction\"],\"fieldOptionsData\":[1,\"field-options-data\"],\"defaultOption\":[1,\"default-option\"],\"selectedField\":[32],\"sortDirection\":[32],\"dropdownExpand\":[32],\"dropdownOptions\":[32]},[[0,\"closeSorter\",\"handleCloseSorter\"]]],[1,\"tttx-toolbar_1_9_101\",{\"border\":[4],\"viewSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-button_1_9_101\",[[1,\"tttx-button_1_9_101\",{\"notext\":[4],\"icon\":[1],\"iconposition\":[1],\"iconcolor\":[1025],\"design\":[1]}]]]]"), options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
package/dist/esm/{tttx-action-dropdown_1_9_99.entry.js → tttx-action-dropdown_1_9_101.entry.js}
RENAMED
|
@@ -46,7 +46,7 @@ const TttxActionDropdown = class {
|
|
|
46
46
|
return;
|
|
47
47
|
const actionKey = `action-dropdown__${this.actionKey}`;
|
|
48
48
|
const chevronIcon = this.dropdownExpand ? 'keyboard_arrow_up' : 'keyboard_arrow_down';
|
|
49
|
-
return (h(Host, { id: actionKey }, h("div", { tabindex: 0, class: `action-dropdown-container ${this.dropdownExpand ? '--expanded' : ''}` }, h("button", { class: "action-button", type: "button", onClick: this.onActionClick.bind(this) }, h("div", { class: "button-content" }, this.isIconVisible && (h("tttx-
|
|
49
|
+
return (h(Host, { id: actionKey }, h("div", { tabindex: 0, class: `action-dropdown-container ${this.dropdownExpand ? '--expanded' : ''}` }, h("button", { class: "action-button", type: "button", onClick: this.onActionClick.bind(this) }, h("div", { class: "button-content" }, this.isIconVisible && (h("tttx-icon_1_9_101", { icon: this.icon, color: "black" })), h("span", { class: "action-text" }, this.selectedField)), h("div", { class: "dropdown-arrow" }, h("tttx-icon_1_9_101", { icon: chevronIcon, color: "black" }))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.actionOptions.map(option => {
|
|
50
50
|
return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
|
|
51
51
|
}))))));
|
|
52
52
|
}
|
|
@@ -54,4 +54,4 @@ const TttxActionDropdown = class {
|
|
|
54
54
|
};
|
|
55
55
|
TttxActionDropdown.style = tttxActionDropdownCss;
|
|
56
56
|
|
|
57
|
-
export { TttxActionDropdown as
|
|
57
|
+
export { TttxActionDropdown as tttx_action_dropdown_1_9_101 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b614efb4.js';
|
|
2
2
|
|
|
3
|
-
const tttxButtonV2Css = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:inline-block}button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;white-space:nowrap;vertical-align:middle;font-weight:600;text-transform:none;cursor:pointer;background:transparent;min-width:96px;max-width:240px;box-sizing:border-box}button:disabled{cursor:not-allowed}button.notext{min-width:40px;max-width:40px;height:40px;padding:8px;aspect-ratio:1/1;justify-content:center;align-items:center;box-sizing:border-box}button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.label-text{display:inline-block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}button.button.btn-size-s{font-size:13px;padding:6px 10px;gap:4px;min-height:32px}button.button.btn-size-m{font-size:14px;padding:8px 12px;gap:4px;min-height:40px}button.button.btn-size-l{font-size:16px;padding:12px 24px;gap:8px;min-height:48px}button.btn-primary{background-color:#1479c6;border:1px solid #1479c6;color:#ffffff;transition:background-color 0.2s ease}button.btn-primary:hover:not(:disabled){background-color:#146eb3}button.btn-primary:active:not(:disabled){background-color:#115a8f}button.btn-primary:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-secondary{background-color:#ffffff;color:#17272b;border:1px solid #D4D4D4;transition:background-color 0.2s ease}button.btn-secondary:hover:not(:disabled){background-color:#fafafa}button.btn-secondary:active:not(:disabled){background-color:#f5f5f5}button.btn-secondary:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-danger{background-color:#dc2626;color:#ffffff;transition:background-color 0.2s ease;border:1px solid #DC2626}button.btn-danger:hover:not(:disabled){background-color:#b91c1c}button.btn-danger:active:not(:disabled){background-color:#991b1b}button.btn-danger:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-success{background-color:#16a34a;color:#ffffff;transition:background-color 0.2s ease;border:1px solid #16a34a}button.btn-success:hover:not(:disabled){background-color:#15803d}button.btn-success:active:not(:disabled){background-color:#166534}button.btn-success:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-warning{background-color:#eab308;color:#ffffff;transition:background-color 0.2s ease;border:1px solid #eab308}button.btn-warning:hover:not(:disabled){background-color:#ca8a04}button.btn-warning:active:not(:disabled){background-color:#885544}button.btn-warning:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-light{background-color:#000000;color:#ffffff;border:1px solid #000000}button.btn-light:hover:not(:disabled){background-color:#222222}button.btn-light:active:not(:disabled){background-color:#1a1a1a}button.btn-transparent{background:transparent;border:1px solid transparent;box-shadow:none;color:#1479c6;border:1px solid transparent}button.btn-transparent:hover:not(:disabled){background:rgba(0, 0, 0, 0.04)}button.btn-transparent:disabled{opacity:0.4;pointer-events:none}button.btn-default{background-color:var(--button-bg, transparent);border:1px solid var(--button-border, transparent);color:var(--button-color, inherit);transition:background-color 0.2s ease, border-color 0.2s ease}button.btn-default:hover:not(:disabled){background-color:var(--button-bg-hover, var(--button-bg, transparent));border-color:var(--button-border-hover, var(--button-border, transparent))}button.btn-default:active:not(:disabled){background-color:var(--button-bg-active, var(--button-bg, transparent));border-color:var(--button-border-active, var(--button-border, transparent))}button.btn-default:focus-visible{outline:var(--button-focus-outline, 2px solid currentColor);outline-offset:var(--button-focus-offset, 2px)}button.btn-default:disabled{background-color:var(--button-bg-disabled, #e5e5e5);color:var(--button-color-disabled, #525252);border-color:var(--button-border-disabled, #d4d4d4);opacity:var(--button-opacity-disabled, 1)}button.icon-start .button-content,button.icon-end .button-content{gap:8px}button.icon-start .icon-left,button.icon-end .icon-right{display:flex;align-items:center;justify-content:center}button.icon-start.btn-size-s{padding-right:14px}button.icon-end.btn-size-s{padding-left:14px}button.icon-start.btn-size-m{padding-right:16px}button.icon-end.btn-size-m{padding-left:16px}button.icon-start.btn-size-l{padding-right:28px}button.icon-end.btn-size-l{padding-left:28px}.button-content{font-family:Roboto;display:inline-flex;align-items:center;justify-content:center;width:100%}.button-content:not(:has(.icon-left,.icon-right)){justify-content:center}button.notext .button-content{justify-content:center !important;align-items:center;width:100%;display:flex;gap:0}tttx-icon,tttx-
|
|
3
|
+
const tttxButtonV2Css = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:inline-block}button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;white-space:nowrap;vertical-align:middle;font-weight:600;text-transform:none;cursor:pointer;background:transparent;min-width:96px;max-width:240px;box-sizing:border-box}button:disabled{cursor:not-allowed}button.notext{min-width:40px;max-width:40px;height:40px;padding:8px;aspect-ratio:1/1;justify-content:center;align-items:center;box-sizing:border-box}button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.label-text{display:inline-block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}button.button.btn-size-s{font-size:13px;padding:6px 10px;gap:4px;min-height:32px}button.button.btn-size-m{font-size:14px;padding:8px 12px;gap:4px;min-height:40px}button.button.btn-size-l{font-size:16px;padding:12px 24px;gap:8px;min-height:48px}button.btn-primary{background-color:#1479c6;border:1px solid #1479c6;color:#ffffff;transition:background-color 0.2s ease}button.btn-primary:hover:not(:disabled){background-color:#146eb3}button.btn-primary:active:not(:disabled){background-color:#115a8f}button.btn-primary:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-secondary{background-color:#ffffff;color:#17272b;border:1px solid #D4D4D4;transition:background-color 0.2s ease}button.btn-secondary:hover:not(:disabled){background-color:#fafafa}button.btn-secondary:active:not(:disabled){background-color:#f5f5f5}button.btn-secondary:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-danger{background-color:#dc2626;color:#ffffff;transition:background-color 0.2s ease;border:1px solid #DC2626}button.btn-danger:hover:not(:disabled){background-color:#b91c1c}button.btn-danger:active:not(:disabled){background-color:#991b1b}button.btn-danger:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-success{background-color:#16a34a;color:#ffffff;transition:background-color 0.2s ease;border:1px solid #16a34a}button.btn-success:hover:not(:disabled){background-color:#15803d}button.btn-success:active:not(:disabled){background-color:#166534}button.btn-success:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-warning{background-color:#eab308;color:#ffffff;transition:background-color 0.2s ease;border:1px solid #eab308}button.btn-warning:hover:not(:disabled){background-color:#ca8a04}button.btn-warning:active:not(:disabled){background-color:#885544}button.btn-warning:disabled{background-color:#e5e5e5;color:#525252;border-color:#d4d4d4}button.btn-light{background-color:#000000;color:#ffffff;border:1px solid #000000}button.btn-light:hover:not(:disabled){background-color:#222222}button.btn-light:active:not(:disabled){background-color:#1a1a1a}button.btn-transparent{background:transparent;border:1px solid transparent;box-shadow:none;color:#1479c6;border:1px solid transparent}button.btn-transparent:hover:not(:disabled){background:rgba(0, 0, 0, 0.04)}button.btn-transparent:disabled{opacity:0.4;pointer-events:none}button.btn-default{background-color:var(--button-bg, transparent);border:1px solid var(--button-border, transparent);color:var(--button-color, inherit);transition:background-color 0.2s ease, border-color 0.2s ease}button.btn-default:hover:not(:disabled){background-color:var(--button-bg-hover, var(--button-bg, transparent));border-color:var(--button-border-hover, var(--button-border, transparent))}button.btn-default:active:not(:disabled){background-color:var(--button-bg-active, var(--button-bg, transparent));border-color:var(--button-border-active, var(--button-border, transparent))}button.btn-default:focus-visible{outline:var(--button-focus-outline, 2px solid currentColor);outline-offset:var(--button-focus-offset, 2px)}button.btn-default:disabled{background-color:var(--button-bg-disabled, #e5e5e5);color:var(--button-color-disabled, #525252);border-color:var(--button-border-disabled, #d4d4d4);opacity:var(--button-opacity-disabled, 1)}button.icon-start .button-content,button.icon-end .button-content{gap:8px}button.icon-start .icon-left,button.icon-end .icon-right{display:flex;align-items:center;justify-content:center}button.icon-start.btn-size-s{padding-right:14px}button.icon-end.btn-size-s{padding-left:14px}button.icon-start.btn-size-m{padding-right:16px}button.icon-end.btn-size-m{padding-left:16px}button.icon-start.btn-size-l{padding-right:28px}button.icon-end.btn-size-l{padding-left:28px}.button-content{font-family:Roboto;display:inline-flex;align-items:center;justify-content:center;width:100%}.button-content:not(:has(.icon-left,.icon-right)){justify-content:center}button.notext .button-content{justify-content:center !important;align-items:center;width:100%;display:flex;gap:0}tttx-icon,tttx-icon_1_9_101{cursor:inherit;display:inline-flex;vertical-align:middle;font-size:16px}.button-wrapper{position:relative}.button-wrapper .dropdown-list{position:absolute;top:100%;left:0;list-style:none;z-index:1;width:260px;border-radius:8px;padding:4px;background-color:white;border:1px solid #d4d4d4;margin-top:8px}.button-wrapper .dropdown-list .dropdown-option{padding:8px;cursor:pointer;white-space:nowrap;font-family:Roboto;font-size:14px;font-weight:400;line-height:16px}.button-wrapper .dropdown-list .dropdown-option:hover,.button-wrapper .dropdown-list .dropdown-option:focus{background-color:#f5f5f5;border-radius:8px}.button-wrapper .dropdown-list.dropdown-left{left:auto;right:0;top:100%;list-style:none;z-index:1;width:260px;border-radius:8px;padding:4px;margin-top:8px}.button-wrapper .dropdown-button{border-radius:4px;width:100%;justify-content:space-between}.button-wrapper .dropdown-button:hover{background-color:#f0f0f0}.button-wrapper .dropdown-button:active{background-color:#e3e3e3}.button-wrapper .dropdown-button .dropdown-arrow{display:flex;align-items:center;margin-left:8px}.button-wrapper .dropdown-button .dropdown-arrow .hydrated{display:flex;align-items:center}.dropdown-item-content{display:flex;align-items:center;gap:8px}.dropdown-item-icon{display:flex;align-items:center;justify-content:center}";
|
|
4
4
|
|
|
5
5
|
const TttxButton = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -123,13 +123,13 @@ const TttxButton = class {
|
|
|
123
123
|
}
|
|
124
124
|
renderButtonContent() {
|
|
125
125
|
var _a;
|
|
126
|
-
return (h("div", { class: "button-content" }, this.iconStart && (h("div", { class: "icon-left" }, h("tttx-
|
|
126
|
+
return (h("div", { class: "button-content" }, this.iconStart && (h("div", { class: "icon-left" }, h("tttx-icon_1_9_101", { icon: this.iconStart, color: this.iconcolor, size: this.iconSize }))), !this.notext && (h("div", { class: "label-text" }, h("span", null, (_a = this.label) !== null && _a !== void 0 ? _a : h("slot", null)))), this.iconEnd && (h("div", { class: "icon-right" }, h("tttx-icon_1_9_101", { icon: this.iconEnd, color: this.iconcolor, size: this.iconSize }))), this.type === 'dropdown' && (h("div", { class: "dropdown-arrow" }, h("tttx-icon_1_9_101", { icon: "keyboard_arrow_down", color: this.iconcolor, size: this.iconSize })))));
|
|
127
127
|
}
|
|
128
128
|
renderDropdownList() {
|
|
129
129
|
if (this.type !== 'dropdown' || !this.dropdownOpen)
|
|
130
130
|
return null;
|
|
131
131
|
const dropdownClasses = `dropdown-list dropdown-${this.dropdownDirection}`;
|
|
132
|
-
return (h("ul", { class: dropdownClasses, role: "listbox" }, this.parsedOptions.map((item, index) => (h("li", { class: "dropdown-option", role: "option", tabindex: 0, key: index, onClick: () => this.handleDropdownItemClick(index) }, h("div", { class: "dropdown-item-content" }, item.icon && (h("tttx-
|
|
132
|
+
return (h("ul", { class: dropdownClasses, role: "listbox" }, this.parsedOptions.map((item, index) => (h("li", { class: "dropdown-option", role: "option", tabindex: 0, key: index, onClick: () => this.handleDropdownItemClick(index) }, h("div", { class: "dropdown-item-content" }, item.icon && (h("tttx-icon_1_9_101", { icon: item.icon, color: "black", size: this.iconSize, class: "dropdown-item-icon" })), h("span", { class: "dropdown-item-label" }, item.label)))))));
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
135
|
const classes = [
|
|
@@ -149,4 +149,4 @@ const TttxButton = class {
|
|
|
149
149
|
};
|
|
150
150
|
TttxButton.style = tttxButtonV2Css;
|
|
151
151
|
|
|
152
|
-
export { TttxButton as
|
|
152
|
+
export { TttxButton as tttx_button_v2_1_9_101 };
|
|
@@ -24,9 +24,9 @@ const TttxButton = class {
|
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
26
|
this._iconcolor = this.iconcolor;
|
|
27
|
-
return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-
|
|
27
|
+
return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon_1_9_101", { icon: this.icon, color: this._iconcolor }))), !this.notext && (h("div", { class: "button-content" }, h("slot", null))), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon_1_9_101", { icon: this.icon, color: this._iconcolor }))))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
TttxButton.style = tttxButtonCss;
|
|
31
31
|
|
|
32
|
-
export { TttxButton as
|
|
32
|
+
export { TttxButton as tttx_button_1_9_101 };
|
|
@@ -7656,7 +7656,7 @@ const TttxChart = class {
|
|
|
7656
7656
|
return this.commonContent('ssid_chart', 'No data available', 'There is currently no data available to show performance trends.', '#111');
|
|
7657
7657
|
}
|
|
7658
7658
|
commonContent(iconName, heading, message, iconColor, showActions = false) {
|
|
7659
|
-
return (h("div", { class: "error-content" }, h("tttx-
|
|
7659
|
+
return (h("div", { class: "error-content" }, h("tttx-icon_1_9_101", { icon: iconName, color: iconColor, size: 48 }), h("span", { class: 'error-heading' }, heading), h("span", { class: 'error-message' }, message), showActions && h("div", { class: "error-actions" }, h("tttx-button_1_9_101", { class: 'support-btn', icon: "help", design: "primary", onClick: () => this.renderChart() }, "Contact support"))));
|
|
7660
7660
|
}
|
|
7661
7661
|
notifyActiveSegment() {
|
|
7662
7662
|
var _a, _b;
|
|
@@ -7672,11 +7672,11 @@ const TttxChart = class {
|
|
|
7672
7672
|
}
|
|
7673
7673
|
render() {
|
|
7674
7674
|
var _a, _b, _c;
|
|
7675
|
-
return (h("div", { class: "chart-wrapper", style: { width: this.width, height: this.height } }, this.loading && h("div", { class: "chart-loading" }, h("tttx-loading-
|
|
7675
|
+
return (h("div", { class: "chart-wrapper", style: { width: this.width, height: this.height } }, this.loading && h("div", { class: "chart-loading" }, h("tttx-loading-spinner_1_9_101", { size: 'large', color: '#2b9ab7' })), this.error && this.getErrorContent(), !this.loading && !this.error && (!this.chartData || !((_a = this.chartData.datasets) === null || _a === void 0 ? void 0 : _a.length)) && (this.getNoDataContent()), !this.loading && !this.error && ((_c = (_b = this.chartData) === null || _b === void 0 ? void 0 : _b.datasets) === null || _c === void 0 ? void 0 : _c.length) > 0 && (h("div", { class: "chart-canvas-container", style: { width: '100%', height: '100%' } }, h("canvas", { ref: el => (this.canvasEl = el), "aria-label": "Chart canvas", role: "img", style: {
|
|
7676
7676
|
width: '100%',
|
|
7677
7677
|
height: '100%',
|
|
7678
7678
|
cursor: this.chartType === 'doughnut-v2' ? 'pointer' : 'default'
|
|
7679
|
-
} }))), this.exportable && !this.loading && !this.error && (h("div", { class: "export-buttons" }, this.showPngSvgExport && h("tttx-
|
|
7679
|
+
} }))), this.exportable && !this.loading && !this.error && (h("div", { class: "export-buttons" }, this.showPngSvgExport && h("tttx-button_1_9_101", { class: 'export-png', design: "primary", onClick: () => this.exportChart('png') }, "Export PNG"), this.showPngSvgExport && h("tttx-button_1_9_101", { class: 'export-svg', design: "primary", onClick: () => this.exportChart('svg') }, "Export SVG"), h("tttx-button_1_9_101", { class: 'export-csv', design: "primary", onClick: () => this.exportCSV.emit({ name: this.chartType }) }, "Export CSV")))));
|
|
7680
7680
|
}
|
|
7681
7681
|
get el() { return getElement(this); }
|
|
7682
7682
|
static get watchers() { return {
|
|
@@ -7688,4 +7688,4 @@ const TttxChart = class {
|
|
|
7688
7688
|
};
|
|
7689
7689
|
TttxChart.style = tttxChartCss;
|
|
7690
7690
|
|
|
7691
|
-
export { TttxChart as
|
|
7691
|
+
export { TttxChart as tttx_chart_1_9_101 };
|