@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
|
@@ -70,9 +70,9 @@ const TttxTagV2 = class {
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
const colors = this.getColors();
|
|
73
|
-
return (h(Host, null, h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (h("tttx-
|
|
73
|
+
return (h(Host, null, h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (h("tttx-icon_1_9_101", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconStart, color: colors.icon, size: this.size === 'S' ? 12 : 16 })), h("span", null, this.text), this.hasEndIcon && this.iconEnd && (h("tttx-icon_1_9_101", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconEnd, color: colors.icon, size: this.iconSize })))));
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
TttxTagV2.style = tttxTagV2Css;
|
|
77
77
|
|
|
78
|
-
export { TttxTagV2 as
|
|
78
|
+
export { TttxTagV2 as tttx_tag_v2_1_9_101 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b614efb4.js';
|
|
2
2
|
|
|
3
|
-
const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-
|
|
3
|
+
const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_101{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_101-h{display:block}label.sc-tttx-textarea_1_9_101{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101{position:relative}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101{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_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.no-label.sc-tttx-textarea_1_9_101{margin-top:0}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101~.errorBubble.sc-tttx-textarea_1_9_101{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_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101~.errorBubble.sc-tttx-textarea_1_9_101:not(.visible){display:none}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101~.errorBubble.sc-tttx-textarea_1_9_101 span.sc-tttx-textarea_1_9_101{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101:focus-visible{outline:none}label.sc-tttx-textarea_1_9_101 .secondarylabel.sc-tttx-textarea_1_9_101{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_101 .optional.sc-tttx-textarea_1_9_101{color:#757575;font-weight:normal}";
|
|
4
4
|
|
|
5
5
|
const TttxTextarea = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -52,4 +52,4 @@ const TttxTextarea = class {
|
|
|
52
52
|
};
|
|
53
53
|
TttxTextarea.style = tttxTextareaCss;
|
|
54
54
|
|
|
55
|
-
export { TttxTextarea as
|
|
55
|
+
export { TttxTextarea as tttx_textarea_1_9_101 };
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, g as getElement } from './index-b614efb4.js';
|
|
2
|
+
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-38a67458.js';
|
|
3
|
+
import './_commonjsHelpers-9943807e.js';
|
|
4
|
+
|
|
5
|
+
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}";
|
|
6
|
+
|
|
7
|
+
const TttxTreeView = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.clickEvent = createEvent(this, "clickEvent", 7);
|
|
11
|
+
this.expandNode = createEvent(this, "expandNode", 7);
|
|
12
|
+
this.checkboxChange = createEvent(this, "checkboxChange", 7);
|
|
13
|
+
this.moveNode = createEvent(this, "moveNode", 7);
|
|
14
|
+
this.dragGhost = {
|
|
15
|
+
el: null,
|
|
16
|
+
};
|
|
17
|
+
this.dragDropPlaceholderId = 'drag-drop-placeholder';
|
|
18
|
+
this.createGhostImage = (label) => {
|
|
19
|
+
if (label.length > 30)
|
|
20
|
+
label = `${label.slice(0, 30)}...`;
|
|
21
|
+
const ghost = document.createElement('div');
|
|
22
|
+
Object.assign(ghost.style, {
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
top: '-9999px',
|
|
25
|
+
left: '-9999px',
|
|
26
|
+
padding: '8px 12px',
|
|
27
|
+
background: 'white',
|
|
28
|
+
pointerEvents: 'none',
|
|
29
|
+
boxShadow: '0px 0px 12px #F9F9F9',
|
|
30
|
+
display: 'flex',
|
|
31
|
+
flexDirection: 'row',
|
|
32
|
+
gap: '10px',
|
|
33
|
+
borderRadius: '4px'
|
|
34
|
+
});
|
|
35
|
+
const dragHandle = document.createElement('img');
|
|
36
|
+
dragHandle.src = this.dragIcon;
|
|
37
|
+
dragHandle.alt = 'drag';
|
|
38
|
+
ghost.appendChild(dragHandle);
|
|
39
|
+
const ghostText = document.createElement('span');
|
|
40
|
+
Object.assign(ghostText.style, { fontSize: '14px' });
|
|
41
|
+
ghostText.textContent = label;
|
|
42
|
+
ghost.appendChild(ghostText);
|
|
43
|
+
document.body.appendChild(ghost);
|
|
44
|
+
return ghost;
|
|
45
|
+
};
|
|
46
|
+
this.handleDragStart = (event, node, index, parentId) => {
|
|
47
|
+
if (!event.dataTransfer)
|
|
48
|
+
return;
|
|
49
|
+
this.draggedNodeParentId = parentId;
|
|
50
|
+
this.draggedNodeId = node.id;
|
|
51
|
+
const payload = JSON.stringify({ parentId, index, node });
|
|
52
|
+
event.dataTransfer.setData('text/plain', payload);
|
|
53
|
+
const ghostImg = this.createGhostImage(node.title);
|
|
54
|
+
this.dragGhost.el = ghostImg;
|
|
55
|
+
event.dataTransfer.setDragImage(ghostImg, 32, 30);
|
|
56
|
+
};
|
|
57
|
+
this.handleDragEnd = () => {
|
|
58
|
+
// if drag ends on a valid target, handleDragDrop should handle everything
|
|
59
|
+
// if not dropped on a valid target, use this trigger to remove the placeholder
|
|
60
|
+
setTimeout(() => {
|
|
61
|
+
const placeHolderExists = this.findNodeById(this.treeData, this.dragDropPlaceholderId);
|
|
62
|
+
if (placeHolderExists) {
|
|
63
|
+
const placeHolderRemovedList = this.updateDragDropPlaceholder(this.treeData);
|
|
64
|
+
this.treeData = [...placeHolderRemovedList];
|
|
65
|
+
}
|
|
66
|
+
}, 300);
|
|
67
|
+
};
|
|
68
|
+
this.handleDragDrop = (event, node, parentId) => {
|
|
69
|
+
var _a;
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
const nodeData = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
|
72
|
+
if (!nodeData)
|
|
73
|
+
return;
|
|
74
|
+
const { parentId: sourceParentId, node: sourceNode } = JSON.parse(nodeData);
|
|
75
|
+
// Prevent dropping on itself or different parents
|
|
76
|
+
if (node.id === sourceNode.id || sourceParentId !== parentId)
|
|
77
|
+
return;
|
|
78
|
+
const updatedTree = [...this.treeData];
|
|
79
|
+
// Find the parent node
|
|
80
|
+
const parent = parentId ? this.findNodeById(updatedTree, parentId) : null;
|
|
81
|
+
// If no parent (root level), work with treeData directly
|
|
82
|
+
const children = (parent === null || parent === void 0 ? void 0 : parent.child) ? [...parent.child] : [...updatedTree];
|
|
83
|
+
if (!children || children.length === 0)
|
|
84
|
+
return;
|
|
85
|
+
// move the node to wherever the placeholder now is
|
|
86
|
+
const movedElement = sourceNode;
|
|
87
|
+
const newChildren = [];
|
|
88
|
+
for (const child of children) {
|
|
89
|
+
if (child.id == movedElement.id)
|
|
90
|
+
continue; // will be inserted in placeholder position
|
|
91
|
+
if (child.id == this.dragDropPlaceholderId) {
|
|
92
|
+
// moved element added to new list in placeholder's place
|
|
93
|
+
newChildren.push(movedElement);
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
newChildren.push(child); // retain existing elements
|
|
97
|
+
}
|
|
98
|
+
// Update the tree
|
|
99
|
+
if (parent) {
|
|
100
|
+
parent.child = newChildren;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
this.treeData = newChildren;
|
|
104
|
+
}
|
|
105
|
+
this.draggedNodeParentId = undefined;
|
|
106
|
+
this.draggedNodeId = undefined;
|
|
107
|
+
if (this.dragGhost.el) {
|
|
108
|
+
this.dragGhost.el.remove();
|
|
109
|
+
this.dragGhost.el = null;
|
|
110
|
+
}
|
|
111
|
+
this.handleDragDropSuccessBackground(movedElement.id);
|
|
112
|
+
this.treeData = [...this.updateDragDropPlaceholder(this.treeData)];
|
|
113
|
+
this.moveNode.emit(this.treeData);
|
|
114
|
+
};
|
|
115
|
+
this.handleDragOver = (event, draggedOverId, parentId, isDragDropPlaceholder) => {
|
|
116
|
+
event.preventDefault();
|
|
117
|
+
if (!event.dataTransfer)
|
|
118
|
+
return;
|
|
119
|
+
const validDrag = this.draggedNodeParentId === parentId || isDragDropPlaceholder;
|
|
120
|
+
event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
|
|
121
|
+
if (validDrag && !isDragDropPlaceholder) {
|
|
122
|
+
this.treeData = [...this.updateDragDropPlaceholder(this.treeData, draggedOverId)];
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.updateDragDropPlaceholder = (treeData, createPlaceholderOnId) => {
|
|
126
|
+
const newTreeData = [];
|
|
127
|
+
for (const treeViewItem of treeData) {
|
|
128
|
+
// delete existing placeholders & create a new one if this is where it should be dropped
|
|
129
|
+
if (treeViewItem.isDragDropPlaceholder)
|
|
130
|
+
continue;
|
|
131
|
+
if (treeViewItem.id == createPlaceholderOnId) {
|
|
132
|
+
newTreeData.push({
|
|
133
|
+
id: this.dragDropPlaceholderId,
|
|
134
|
+
title: 'Drop here',
|
|
135
|
+
isDragDropPlaceholder: true
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
if (treeViewItem.child) {
|
|
139
|
+
const children = this.updateDragDropPlaceholder(treeViewItem.child, createPlaceholderOnId);
|
|
140
|
+
treeViewItem.child = children;
|
|
141
|
+
}
|
|
142
|
+
newTreeData.push(treeViewItem);
|
|
143
|
+
}
|
|
144
|
+
return newTreeData;
|
|
145
|
+
};
|
|
146
|
+
this.data = undefined;
|
|
147
|
+
this.treeData = undefined;
|
|
148
|
+
this.nodesRecentlyMoved = [];
|
|
149
|
+
}
|
|
150
|
+
componentWillRender() {
|
|
151
|
+
if (!this.data)
|
|
152
|
+
return;
|
|
153
|
+
this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
|
|
154
|
+
if (!this.dragIcon) {
|
|
155
|
+
this.dragIcon = getAssetPath('assets/img/drag-icon.svg');
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
onClickHandler(event, node) {
|
|
159
|
+
event.stopPropagation();
|
|
160
|
+
// Handle selection: if node is already selected, deselect it; otherwise select it and deselect all others
|
|
161
|
+
if (node.selectable) {
|
|
162
|
+
if (node.selected) {
|
|
163
|
+
// Toggle off: deselect this node
|
|
164
|
+
node.selected = false;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
// Toggle on: deselect all others and select this one
|
|
168
|
+
this.handleNodeSelection(node);
|
|
169
|
+
// node.selected is already set to true in handleNodeSelection
|
|
170
|
+
}
|
|
171
|
+
this.treeData = [...this.treeData];
|
|
172
|
+
}
|
|
173
|
+
this.clickEvent.emit(node);
|
|
174
|
+
}
|
|
175
|
+
toggleNode(node, event) {
|
|
176
|
+
event.stopPropagation();
|
|
177
|
+
node.isOpen = !node.isOpen;
|
|
178
|
+
this.treeData = [...this.treeData];
|
|
179
|
+
this.expandNode.emit({ node: node, treeViewData: this.treeData });
|
|
180
|
+
}
|
|
181
|
+
handleCheckboxChange(node, event) {
|
|
182
|
+
event.stopPropagation();
|
|
183
|
+
node.checked = !node.checked;
|
|
184
|
+
this.updateChildrenCheckStatus(node);
|
|
185
|
+
this.updateParentCheckStatus();
|
|
186
|
+
this.treeData = [...this.treeData];
|
|
187
|
+
this.checkboxChange.emit(this.treeData);
|
|
188
|
+
}
|
|
189
|
+
updateChildrenCheckStatus(node) {
|
|
190
|
+
if (node.child) {
|
|
191
|
+
node.child.forEach(childNode => {
|
|
192
|
+
if (childNode.hasCheckbox && childNode.checked !== undefined) {
|
|
193
|
+
// don't set checked on a child that doesn't have a checkbox
|
|
194
|
+
// makes it impossible to unselect a parent as child can never be unchecked in frontend
|
|
195
|
+
childNode.checked = node.checked;
|
|
196
|
+
}
|
|
197
|
+
this.updateChildrenCheckStatus(childNode);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Update the checkbox status of parent nodes when children have been updated.
|
|
203
|
+
* Called recursively to traverse the tree for parents.
|
|
204
|
+
* First call with no params to automatically start at the top of the tree.
|
|
205
|
+
*
|
|
206
|
+
* Any children checked -> parent is checked.
|
|
207
|
+
*
|
|
208
|
+
* All children unchecked -> parent is unchecked.
|
|
209
|
+
*/
|
|
210
|
+
updateParentCheckStatus(parent = undefined, children = undefined) {
|
|
211
|
+
if (parent === undefined) {
|
|
212
|
+
this.treeData.forEach(node => this.updateParentCheckStatus(node, node.child));
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
let childrenCheckedStatuses = [];
|
|
216
|
+
// set status relative to children if we have some
|
|
217
|
+
if (children && children.length > 0) {
|
|
218
|
+
childrenCheckedStatuses = children.map(node => this.updateParentCheckStatus(node, node.child)).flat(1);
|
|
219
|
+
// parent checked if any children are checked
|
|
220
|
+
if (childrenCheckedStatuses.some(checked => checked)) {
|
|
221
|
+
parent.checked = true;
|
|
222
|
+
}
|
|
223
|
+
// parent unchecked if all children are unchecked
|
|
224
|
+
if (childrenCheckedStatuses.every(checked => !checked)) {
|
|
225
|
+
parent.checked = false;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
// return the gathered checked statuses so nodes above can make check choices
|
|
229
|
+
return [...childrenCheckedStatuses, parent.checked];
|
|
230
|
+
}
|
|
231
|
+
treeConfigs(node) {
|
|
232
|
+
let checkboxIcon, checkboxColor;
|
|
233
|
+
if (node.checked) {
|
|
234
|
+
checkboxIcon = 'check_box';
|
|
235
|
+
checkboxColor = 'blue';
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
checkboxIcon = 'check_box_outline_blank';
|
|
239
|
+
checkboxColor = 'grey';
|
|
240
|
+
}
|
|
241
|
+
const rowHoverActive = node.hasHover ? 'rowHover' : '';
|
|
242
|
+
const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
|
|
243
|
+
const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
|
|
244
|
+
const dragDropPlaceholder = node.isDragDropPlaceholder ? 'drag_drop_placeholder' : '';
|
|
245
|
+
return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive, dragDropPlaceholder };
|
|
246
|
+
}
|
|
247
|
+
findNodeById(nodes, id) {
|
|
248
|
+
for (const node of nodes) {
|
|
249
|
+
if (node.id === id)
|
|
250
|
+
return node;
|
|
251
|
+
if (node.child) {
|
|
252
|
+
const found = this.findNodeById(node.child, id);
|
|
253
|
+
if (found)
|
|
254
|
+
return found;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return undefined;
|
|
258
|
+
}
|
|
259
|
+
deselectAllNodes(nodes) {
|
|
260
|
+
for (const node of nodes) {
|
|
261
|
+
if (node.selectable) {
|
|
262
|
+
node.selected = false;
|
|
263
|
+
}
|
|
264
|
+
if (node.child) {
|
|
265
|
+
this.deselectAllNodes(node.child);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
handleNodeSelection(node) {
|
|
270
|
+
// Deselect all nodes first
|
|
271
|
+
this.deselectAllNodes(this.treeData);
|
|
272
|
+
// Select only the clicked node if it's selectable
|
|
273
|
+
if (node.selectable) {
|
|
274
|
+
node.selected = true;
|
|
275
|
+
}
|
|
276
|
+
// Update the tree to trigger re-render
|
|
277
|
+
this.treeData = [...this.treeData];
|
|
278
|
+
}
|
|
279
|
+
handleDragDropSuccessBackground(nodeId) {
|
|
280
|
+
this.nodesRecentlyMoved.push(nodeId);
|
|
281
|
+
setTimeout((nodeId) => {
|
|
282
|
+
this.nodesRecentlyMoved = [...this.nodesRecentlyMoved.filter((id) => id !== nodeId)];
|
|
283
|
+
}, 300, nodeId);
|
|
284
|
+
}
|
|
285
|
+
doesNodePrecedeDragDropPlaceholder(node, index, parentId = undefined) {
|
|
286
|
+
var _a;
|
|
287
|
+
if (node.child) {
|
|
288
|
+
// is parent, so first child would have to be placeholder
|
|
289
|
+
return node.child.length > 0 && node.child[0].isDragDropPlaceholder;
|
|
290
|
+
}
|
|
291
|
+
// child, so check if following element is placeholder
|
|
292
|
+
const parentNode = parentId ? this.findNodeById(this.treeData, parentId) : undefined;
|
|
293
|
+
if (parentNode) {
|
|
294
|
+
return index !== parentNode.child.length && ((_a = parentNode.child[index + 1]) === null || _a === void 0 ? void 0 : _a.isDragDropPlaceholder);
|
|
295
|
+
}
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
renderNode(node, index, parentId = undefined, level = 0 // <-- depth
|
|
299
|
+
) {
|
|
300
|
+
const options = this.treeConfigs(node);
|
|
301
|
+
const precedesDragDropPlaceholderClass = this.doesNodePrecedeDragDropPlaceholder(node, index, parentId) ? 'precedes_drag_drop' : '';
|
|
302
|
+
if (node.child) {
|
|
303
|
+
// group node
|
|
304
|
+
const isSelectedGroup = !!node.selected;
|
|
305
|
+
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 => {
|
|
306
|
+
if (node.hasHover) {
|
|
307
|
+
this.onClickHandler(event, node);
|
|
308
|
+
}
|
|
309
|
+
} }), 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) => {
|
|
310
|
+
// next level = level + 1
|
|
311
|
+
return this.renderNode(childNode, childIndex, node.id, level + 1);
|
|
312
|
+
}))) : null));
|
|
313
|
+
}
|
|
314
|
+
// leaf (activity)
|
|
315
|
+
const leafStyle = { '--level': String(level) };
|
|
316
|
+
if (this.nodesRecentlyMoved.find((x) => x == node.id)) {
|
|
317
|
+
leafStyle['background-color'] = '#D1F7F0'; //'rgba(51, 170, 51, .1)';
|
|
318
|
+
}
|
|
319
|
+
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: `
|
|
320
|
+
inline-tree-item element-row
|
|
321
|
+
${options.rowHoverActive}
|
|
322
|
+
${options.selectedActive}
|
|
323
|
+
${options.dragDropPlaceholder}
|
|
324
|
+
${precedesDragDropPlaceholderClass}
|
|
325
|
+
drag_drop_success_fade
|
|
326
|
+
${this.draggedNodeId == node.id ? ' is-being-dragged' : ''}
|
|
327
|
+
`, style: leafStyle, onClick: event => {
|
|
328
|
+
if (node.hasHover) {
|
|
329
|
+
this.onClickHandler(event, node);
|
|
330
|
+
}
|
|
331
|
+
} }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index, parentId)));
|
|
332
|
+
}
|
|
333
|
+
htmlcode(type, node, check_box, check_boxColor, index, parentId = undefined) {
|
|
334
|
+
if (node.isDragDropPlaceholder) {
|
|
335
|
+
return (h("div", { class: "inline-tree-item element" }, h("div", { class: 'drag-drop-placeholder-row' }, h("div", { class: 'placeholder-text' }, node.title))));
|
|
336
|
+
}
|
|
337
|
+
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 => {
|
|
338
|
+
if (node.draggable) {
|
|
339
|
+
this.handleDragStart(event, node, index, parentId);
|
|
340
|
+
}
|
|
341
|
+
}, onDragEnd: () => {
|
|
342
|
+
if (node.draggable) {
|
|
343
|
+
this.handleDragEnd();
|
|
344
|
+
}
|
|
345
|
+
} }))), 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) })));
|
|
346
|
+
}
|
|
347
|
+
render() {
|
|
348
|
+
if (!this.data)
|
|
349
|
+
return;
|
|
350
|
+
return (h("div", { ref: (element) => this.rootElement = element, class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
|
|
351
|
+
}
|
|
352
|
+
get el() { return getElement(this); }
|
|
353
|
+
};
|
|
354
|
+
TttxTreeView.style = tttxTreeViewCss;
|
|
355
|
+
|
|
356
|
+
export { TttxTreeView as tttx_tree_view_1_9_101 };
|
package/dist/esm/tttx.js
CHANGED
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
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);
|
|
17
|
+
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);
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-457a7731.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-
|
|
1
|
+
import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-457a7731.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-tag_1_9_101",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),s.map((t=>this.dropdownOption(t)))),n.length>0&&i(e,null,o&&i("tttx-tag_1_9_101",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=t.selected?"check_box":"check_box_outline_blank",e=t.selected?"blue":"grey";if(t.html){const s=l.sanitize(t.html,r);return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_101",{icon:o,color:e,class:"checkbox-icon"}),i("div",{innerHTML:s}))}return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_101",{icon:o,color:e,class:"checkbox-icon"}),i("div",{class:"plaintext-option"},t.label))}handleSearchInput(t){const o=t.target;this.searchTerm=o.value,this.searchDataChanged.emit({searchTerm:o.value}),this.calculateDropdownMenuOffset()}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),o=t.getBoundingClientRect().bottom,i=t.getBoundingClientRect();let e=Math.min(288,36*this.unsavedSelectedItems.length)+45+8;this.searchEnabled&&(e+=52),this.bodyOffset=o+e>window.innerHeight?{top:window.innerHeight-(e+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:i.left,top:`${i.top}px`,width:i.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.open?"expand_less":"expand_more",o=this.readOnly?"dropdown-read-only":"";return i(s,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",o].join(" "),onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent(),i("div",{class:"dropdown-selector-chevron"},i("tttx-icon_1_9_101",{icon:t,color:"black"}))),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_101",{type:"text",placeholder:"Search",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this),inline:!0})),i("div",{class:"dropdown-options-list"},this.isLoading?i("tttx-loading-spinner_1_9_101",{class:"loading-style"}):this.renderDropdownOptions(this.unsavedSelectedItems)),i("div",{class:"footer"},i("tttx-button_1_9_101",{design:"primary",onClick:this.applyChanges.bind(this)},"Apply"),i("tttx-button_1_9_101",{onClick:this.onCancel.bind(this)},"Cancel"))))))}get el(){return n(this)}static get watchers(){return{optionsData:["handleOptionsDataChange"]}}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-style:normal;font-weight:500;line-height:normal}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{align-items:center;gap:8px;padding:6px 8px 6px 16px;cursor:pointer;border:1px solid #d5d5d5}.dropdown-selector *{font-weight:400}.dropdown-selector-chevron{margin-left:auto;height:24px;align-self:flex-start}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-selector-html-content{display:flex;gap:8px;flex-wrap:wrap}.dropdown-read-only{background-color:#BDBDBD !important}.dropdown-body-container{position:relative}.dropdown-body{position:absolute;display:flex;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5;width:100%}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable;max-height:288px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer;display:flex;gap:8px}.dropdown-option .checkbox-icon{height:24px}.dropdown-option .plaintext-option{line-height:24px}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.priority-pill{padding:6px 8px 6px 16px;display:flex;gap:8px}.placeholder{color:#9e9e9e}.searchbox{padding:8px 16px 8px 16px;height:52px;box-sizing:border-box}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}.footer{display:flex;gap:8px;flex-direction:row-reverse;padding:8px 16px 0 16px;border-top:1px solid #d5d5d5}';export{d as tttx_multiselect_box_1_9_101}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as e}from"./p-457a7731.js";const i=class{constructor(e){t(this,e),this.toggleSwitchEvent=o(this,"toggleSwitchEvent",3),this.initialstate=void 0,this._state=void 0}componentWillLoad(){this._state=!0===this.initialstate||"true"===this.initialstate}onChange(t){this.toggleSwitchEvent.emit({checked:t.target.checked})}render(){let t;return t=e("input",this._state?{type:"checkbox",checked:!0,onChange:this.onChange.bind(this)}:{type:"checkbox",onChange:this.onChange.bind(this)}),e("div",{id:"toggle-switch"},t,e("div",{id:"toggle-body"}))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:inline-block}#toggle-switch{width:50px;height:30px;border-radius:30px;position:relative;box-sizing:border-box}#toggle-switch input{cursor:pointer;width:50px;height:30px;padding:0;margin:0;top:0;left:0;border:none;outline:none;opacity:0;position:absolute}#toggle-switch #toggle-body{width:50px;height:30px;border-radius:28px;position:relative;top:0;left:0;pointer-events:none;background:#9e9e9e}#toggle-switch #toggle-body::after{font-family:"Material Symbols Rounded", sans-serif;content:"\\e5ca";position:absolute;width:26px;height:26px;left:2px;top:2px;border-radius:26px;background:white;transition:all 0.1s;font-size:22px;color:#FFFFFF;justify-content:center;display:inline-flex}#toggle-switch input:checked~#toggle-body::after{color:#a2bb31;left:22px}#toggle-switch input:checked~#toggle-body{background:#a2bb31}';export{i as
|
|
1
|
+
import{r as t,c as o,h as e}from"./p-457a7731.js";const i=class{constructor(e){t(this,e),this.toggleSwitchEvent=o(this,"toggleSwitchEvent",3),this.initialstate=void 0,this._state=void 0}componentWillLoad(){this._state=!0===this.initialstate||"true"===this.initialstate}onChange(t){this.toggleSwitchEvent.emit({checked:t.target.checked})}render(){let t;return t=e("input",this._state?{type:"checkbox",checked:!0,onChange:this.onChange.bind(this)}:{type:"checkbox",onChange:this.onChange.bind(this)}),e("div",{id:"toggle-switch"},t,e("div",{id:"toggle-body"}))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:inline-block}#toggle-switch{width:50px;height:30px;border-radius:30px;position:relative;box-sizing:border-box}#toggle-switch input{cursor:pointer;width:50px;height:30px;padding:0;margin:0;top:0;left:0;border:none;outline:none;opacity:0;position:absolute}#toggle-switch #toggle-body{width:50px;height:30px;border-radius:28px;position:relative;top:0;left:0;pointer-events:none;background:#9e9e9e}#toggle-switch #toggle-body::after{font-family:"Material Symbols Rounded", sans-serif;content:"\\e5ca";position:absolute;width:26px;height:26px;left:2px;top:2px;border-radius:26px;background:white;transition:all 0.1s;font-size:22px;color:#FFFFFF;justify-content:center;display:inline-flex}#toggle-switch input:checked~#toggle-body::after{color:#a2bb31;left:22px}#toggle-switch input:checked~#toggle-body{background:#a2bb31}';export{i as tttx_toggle_1_9_101}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as e}from"./p-457a7731.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.leftData=void 0,this.rightData=void 0,this.rightSubtext=void 0,this.iconStyle=void 0,this.cardType=void 0,this.chartConfig=void 0,this._chartConfig=void 0,this.chartRender=void 0}chartConfigChanged(t){this._chartConfig=JSON.parse(t),this.chartRender=!0}componentDidLoad(){this.chartConfig&&(this._chartConfig=JSON.parse(this.chartConfig),this.chartRender=!0)}renderIcon(t){switch(t){case"up":return i("tttx-
|
|
1
|
+
import{r as t,h as i,H as e}from"./p-457a7731.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.leftData=void 0,this.rightData=void 0,this.rightSubtext=void 0,this.iconStyle=void 0,this.cardType=void 0,this.chartConfig=void 0,this._chartConfig=void 0,this.chartRender=void 0}chartConfigChanged(t){this._chartConfig=JSON.parse(t),this.chartRender=!0}componentDidLoad(){this.chartConfig&&(this._chartConfig=JSON.parse(this.chartConfig),this.chartRender=!0)}renderIcon(t){switch(t){case"up":return i("tttx-icon_1_9_101",{size:24,icon:"arrow_circle_up",color:"green"});case"down":return i("tttx-icon_1_9_101",{size:24,icon:"arrow_circle_down",color:"darkred"});default:return null}}render(){return i(e,null,i("div",{class:"datacard"},this.cardTitle&&i("h2",{style:{position:"relative",top:"0",left:"0",height:"40px"}},this.cardTitle),this.chartRender&&"chart"===this.cardType&&i("tttx-graph_1_9_101",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"},class:"chart","chart-data":this._chartConfig.chartData,"chart-text":this._chartConfig.chartText,"chart-type":this._chartConfig.chartType}),i("div",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"}},i("div",{class:"lower"},i("div",{class:this.rightData&&"undefined"!==this.rightData?"left":"centered"},this.leftData),this.rightData&&"undefined"!==this.rightData&&i("div",{class:"right"},i("div",{class:"flex"},i("div",{class:"righticon"},this.renderIcon(this.iconStyle)),i("div",{class:"rightdata"},this.rightData)),i("div",{class:"subtext"},this.rightSubtext))))))}static get watchers(){return{chartConfig:["chartConfigChanged"]}}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block;width:100%;height:100%}.datacard{font-family:"Roboto", Arial, Verdana, Tahoma, sans-serif;box-sizing:border-box;width:100%;height:100%;background-color:white;border-radius:4px;padding:0px 16px 16px 16px;margin-right:16px;margin-bottom:16px}.chart{width:100%;height:100%}h2{box-sizing:border-box;margin:0;padding:16px;width:100%;font-size:18px;font-weight:500;line-height:21.09px;text-align:left;height:40px}.lower{width:100%;display:flex}.right{box-sizing:border-box;flex-grow:1;border-left:1px solid #D5D5D5;padding-left:24px;font-size:24px;font-weight:500;line-height:28.13px;text-align:left}.flex{display:flex;justify-content:flex-start}.righticon{margin-top:1px;margin-right:4px;height:24px}.left{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:right;margin-right:20px;padding-left:40px}.centered{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:center;margin:0;padding-left:20px}.subtext{font-size:14px;font-weight:400;line-height:16.41px;text-align:left;color:#757575}';export{o as tttx_datacard_1_9_101}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as o}from"./p-457a7731.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-
|
|
1
|
+
import{r as t,c as e,h as a,H as o}from"./p-457a7731.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-textarea_1_9_101{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-textarea_1_9_101-h{display:block}label.sc-tttx-textarea_1_9_101{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101{position:relative}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101{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_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.no-label.sc-tttx-textarea_1_9_101{margin-top:0}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101~.errorBubble.sc-tttx-textarea_1_9_101{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_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101~.errorBubble.sc-tttx-textarea_1_9_101:not(.visible){display:none}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101~.errorBubble.sc-tttx-textarea_1_9_101 span.sc-tttx-textarea_1_9_101{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_101 .textarea-container.sc-tttx-textarea_1_9_101 textarea.sc-tttx-textarea_1_9_101:focus-visible{outline:none}label.sc-tttx-textarea_1_9_101 .secondarylabel.sc-tttx-textarea_1_9_101{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_101 .optional.sc-tttx-textarea_1_9_101{color:#757575;font-weight:normal}';export{n as tttx_textarea_1_9_101}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i}from"./p-457a7731.js";const r=class{constructor(s){t(this,s),this.percentage=void 0,this.thresholds=void 0,this.color="#d5d5d5",this.min="1",this.labelid=void 0,this._percentage=void 0,this._ranges=void 0,this._min=void 0}componentWillRender(){let t;if(this._percentage="string"==typeof this.percentage?parseInt(this.percentage):this.percentage,this.thresholds){t="string"==typeof this.thresholds?JSON.parse(this.thresholds):this.thresholds,this._ranges=[{range:[0],color:t[0].color}];for(const[s,i]of t.entries())this._ranges[this._ranges.length-1].range.push(i.threshold),this._ranges[this._ranges.length-1].color=i.color,s<t.length-1&&this._ranges.push({range:[i.threshold],color:void 0})}this._min=parseInt(this.min)}getColour(){return this._ranges&&0!==this._ranges.length?this._ranges.find((t=>this._percentage>=t.range[0]&&this._percentage<=t.range[1])).color:this.color}getWidth(){return Math.min(Math.max(this._percentage,Math.min(this._min,100)),100)}render(){return s(i,null,s("div",{class:"progress"},s("div",{class:"bar",style:{"background-color":this.getColour(),width:`${this.getWidth()}%`},role:"progressbar","aria-valuemin":this._min,"aria-valuemax":"100","aria-valuenow":this._percentage,"aria-labelledby":this.labelid})))}};r.style=".sc-tttx-percentage-
|
|
1
|
+
import{r as t,h as s,H as i}from"./p-457a7731.js";const r=class{constructor(s){t(this,s),this.percentage=void 0,this.thresholds=void 0,this.color="#d5d5d5",this.min="1",this.labelid=void 0,this._percentage=void 0,this._ranges=void 0,this._min=void 0}componentWillRender(){let t;if(this._percentage="string"==typeof this.percentage?parseInt(this.percentage):this.percentage,this.thresholds){t="string"==typeof this.thresholds?JSON.parse(this.thresholds):this.thresholds,this._ranges=[{range:[0],color:t[0].color}];for(const[s,i]of t.entries())this._ranges[this._ranges.length-1].range.push(i.threshold),this._ranges[this._ranges.length-1].color=i.color,s<t.length-1&&this._ranges.push({range:[i.threshold],color:void 0})}this._min=parseInt(this.min)}getColour(){return this._ranges&&0!==this._ranges.length?this._ranges.find((t=>this._percentage>=t.range[0]&&this._percentage<=t.range[1])).color:this.color}getWidth(){return Math.min(Math.max(this._percentage,Math.min(this._min,100)),100)}render(){return s(i,null,s("div",{class:"progress"},s("div",{class:"bar",style:{"background-color":this.getColour(),width:`${this.getWidth()}%`},role:"progressbar","aria-valuemin":this._min,"aria-valuemax":"100","aria-valuenow":this._percentage,"aria-labelledby":this.labelid})))}};r.style=".sc-tttx-percentage-bar_1_9_101-h{display:block}.progress.sc-tttx-percentage-bar_1_9_101{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_101 .bar.sc-tttx-percentage-bar_1_9_101{height:20px}";export{r as tttx_percentage_bar_1_9_101}
|