@3t-transform/threeteeui 1.9.100 → 1.9.102
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_100.cjs.entry.js → tttx-action-dropdown_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-button-v2_1_9_100.cjs.entry.js → tttx-button-v2_localcomponent.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-button_1_9_100.cjs.entry.js → tttx-button_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-chart_1_9_100.cjs.entry.js → tttx-chart_localcomponent.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_100.cjs.entry.js → tttx-checkbox-group-caption_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_100.cjs.entry.js → tttx-checkbox-group-heading_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_100.cjs.entry.js → tttx-checkbox-group_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_100.cjs.entry.js → tttx-checkbox_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-comments_1_9_100.cjs.entry.js → tttx-comments_localcomponent.cjs.entry.js} +4 -4
- package/dist/cjs/tttx-data-pattern_localcomponent.cjs.entry.js +30 -0
- package/dist/cjs/{tttx-datacard_1_9_100.cjs.entry.js → tttx-datacard_localcomponent.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_100.cjs.entry.js → tttx-dialog-box_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_9_100.cjs.entry.js → tttx-dialog_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_100.cjs.entry.js → tttx-expander_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_100_4.cjs.entry.js → tttx-filter_localcomponent_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_100.cjs.entry.js → tttx-form_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_100.cjs.entry.js → tttx-graph_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_100.cjs.entry.js → tttx-icon_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_100.cjs.entry.js → tttx-keyvalue-block_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_9_100_3.cjs.entry.js → tttx-loading-spinner_localcomponent_3.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-multiselect-box_1_9_100.cjs.entry.js → tttx-multiselect-box_localcomponent.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_9_100.cjs.entry.js → tttx-percentage-bar_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_100.cjs.entry.js → tttx-qrcode_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-range-slider_1_9_100.cjs.entry.js → tttx-range-slider_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_100.cjs.entry.js → tttx-select-box_localcomponent.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-skeleton_loader_1_9_100.cjs.entry.js → tttx-skeleton_loader_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-table_1_9_100.cjs.entry.js → tttx-table_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-tabs_1_9_100.cjs.entry.js → tttx-tabs_localcomponent.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag-v2_1_9_100.cjs.entry.js → tttx-tag-v2_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-textarea_1_9_100.cjs.entry.js → tttx-textarea_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_100.cjs.entry.js → tttx-toggle_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tooltip_1_9_100.cjs.entry.js → tttx-tooltip_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/tttx-tree-view_localcomponent.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 -24
- 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_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_100.js → tttx-action-dropdown_localcomponent.js} +7 -7
- package/dist/components/tttx-button-v2.js +7 -7
- package/dist/components/tttx-button-v2_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-button-v2_1_9_100.js → tttx-button-v2_localcomponent.js} +2 -2
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/tttx-button_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-button_1_9_100.js → tttx-button_localcomponent.js} +2 -2
- package/dist/components/tttx-chart_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-chart_1_9_100.js → tttx-chart_localcomponent.js} +11 -11
- package/dist/components/tttx-checkbox-group-caption_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_100.js → tttx-checkbox-group-caption_localcomponent.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_100.js → tttx-checkbox-group-heading_localcomponent.js} +5 -5
- package/dist/components/tttx-checkbox-group_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_100.js → tttx-checkbox-group_localcomponent.js} +5 -5
- package/dist/components/tttx-checkbox_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox_1_9_100.js → tttx-checkbox_localcomponent.js} +7 -7
- package/dist/components/tttx-comments_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-comments_1_9_100.js → tttx-comments_localcomponent.js} +9 -9
- package/dist/components/tttx-data-pattern_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_100.js → tttx-data-pattern_localcomponent.js} +16 -16
- package/dist/components/tttx-datacard_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_100.js → tttx-datacard_localcomponent.js} +10 -10
- package/dist/components/tttx-date-range-picker.js +3 -3
- package/dist/components/tttx-dialog-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_100.js → tttx-dialog-box_localcomponent.js} +9 -9
- package/dist/components/tttx-dialog_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-dialog_1_9_100.js → tttx-dialog_localcomponent.js} +8 -8
- package/dist/components/tttx-expander_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_100.js → tttx-expander_localcomponent.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/tttx-filter_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-filter_1_9_100.js → tttx-filter_localcomponent.js} +2 -2
- package/dist/components/tttx-form_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-form_1_9_100.js → tttx-form_localcomponent.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/tttx-graph_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-graph_1_9_100.js → tttx-graph_localcomponent.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/tttx-icon_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-icon_1_9_100.js → tttx-icon_localcomponent.js} +2 -2
- package/dist/components/tttx-keyvalue-block_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_100.js → tttx-keyvalue-block_localcomponent.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/tttx-list_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-list_1_9_100.js → tttx-list_localcomponent.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_100.js → tttx-loading-spinner_localcomponent.js} +2 -2
- package/dist/components/tttx-multiselect-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_100.js → tttx-multiselect-box_localcomponent.js} +16 -16
- package/dist/components/tttx-percentage-bar_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_100.js → tttx-percentage-bar_localcomponent.js} +6 -6
- package/dist/components/tttx-qrcode_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-qrcode_1_9_100.js → tttx-qrcode_localcomponent.js} +5 -5
- package/dist/components/tttx-range-slider_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-range-slider_1_9_100.js → tttx-range-slider_localcomponent.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_100.js → tttx-select-box_localcomponent.js} +2 -2
- package/dist/components/tttx-skeleton_loader_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_100.js → tttx-skeleton_loader_localcomponent.js} +5 -5
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_100.js → tttx-sorter_localcomponent.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_100.js → tttx-standalone-input_localcomponent.js} +2 -2
- package/dist/components/tttx-table_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-table_1_9_100.js → tttx-table_localcomponent.js} +9 -9
- package/dist/components/tttx-tabs_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-tabs_1_9_100.js → tttx-tabs_localcomponent.js} +9 -9
- package/dist/components/tttx-tag-v2_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-tag-v2_1_9_100.js → tttx-tag-v2_localcomponent.js} +7 -7
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/tttx-tag_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-tag_1_9_100.js → tttx-tag_localcomponent.js} +2 -2
- package/dist/components/tttx-textarea_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_100.js → tttx-textarea_localcomponent.js} +6 -6
- package/dist/components/tttx-toggle_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_100.js → tttx-toggle_localcomponent.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_100.js → tttx-toolbar_localcomponent.js} +2 -2
- package/dist/components/tttx-tooltip_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-tooltip_1_9_100.js → tttx-tooltip_localcomponent.js} +5 -5
- package/dist/components/tttx-tree-view_localcomponent.d.ts +11 -0
- package/dist/components/tttx-tree-view_localcomponent.js +389 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-action-dropdown_1_9_100.entry.js → tttx-action-dropdown_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-button-v2_1_9_100.entry.js → tttx-button-v2_localcomponent.entry.js} +4 -4
- package/dist/esm/{tttx-button_1_9_100.entry.js → tttx-button_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-chart_1_9_100.entry.js → tttx-chart_localcomponent.entry.js} +4 -4
- package/dist/esm/{tttx-checkbox-group-caption_1_9_100.entry.js → tttx-checkbox-group-caption_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_100.entry.js → tttx-checkbox-group-heading_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_100.entry.js → tttx-checkbox-group_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_100.entry.js → tttx-checkbox_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-comments_1_9_100.entry.js → tttx-comments_localcomponent.entry.js} +4 -4
- package/dist/esm/tttx-data-pattern_localcomponent.entry.js +26 -0
- package/dist/esm/{tttx-datacard_1_9_100.entry.js → tttx-datacard_localcomponent.entry.js} +4 -4
- package/dist/esm/tttx-date-range-picker.entry.js +1 -1
- package/dist/esm/{tttx-dialog-box_1_9_100.entry.js → tttx-dialog-box_localcomponent.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_9_100.entry.js → tttx-dialog_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_100.entry.js → tttx-expander_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_100_4.entry.js → tttx-filter_localcomponent_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_100.entry.js → tttx-form_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_100.entry.js → tttx-graph_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_100.entry.js → tttx-icon_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_100.entry.js → tttx-keyvalue-block_localcomponent.entry.js} +1 -1
- package/dist/esm/tttx-loading-spinner_localcomponent_3.entry.js +183 -0
- package/dist/esm/{tttx-multiselect-box_1_9_100.entry.js → tttx-multiselect-box_localcomponent.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_9_100.entry.js → tttx-percentage-bar_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_100.entry.js → tttx-qrcode_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-range-slider_1_9_100.entry.js → tttx-range-slider_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_100.entry.js → tttx-select-box_localcomponent.entry.js} +6 -6
- package/dist/esm/{tttx-skeleton_loader_1_9_100.entry.js → tttx-skeleton_loader_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-table_1_9_100.entry.js → tttx-table_localcomponent.entry.js} +3 -3
- package/dist/esm/{tttx-tabs_1_9_100.entry.js → tttx-tabs_localcomponent.entry.js} +4 -4
- package/dist/esm/{tttx-tag-v2_1_9_100.entry.js → tttx-tag-v2_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-textarea_1_9_100.entry.js → tttx-textarea_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_100.entry.js → tttx-toggle_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-tooltip_1_9_100.entry.js → tttx-tooltip_localcomponent.entry.js} +1 -1
- package/dist/esm/tttx-tree-view_localcomponent.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-86e4c8cc.entry.js +1 -0
- package/dist/tttx/p-a1b8ecda.entry.js +1 -1
- package/dist/tttx/p-a43e2c5e.entry.js +1 -1
- 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_100.cjs.entry.js +0 -30
- package/dist/cjs/tttx-tree-view_1_9_100.cjs.entry.js +0 -255
- package/dist/components/tttx-action-dropdown_1_9_100.d.ts +0 -11
- package/dist/components/tttx-button-v2_1_9_100.d.ts +0 -11
- package/dist/components/tttx-button_1_9_100.d.ts +0 -11
- package/dist/components/tttx-chart_1_9_100.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_100.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_100.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_100.d.ts +0 -11
- package/dist/components/tttx-checkbox_1_9_100.d.ts +0 -11
- package/dist/components/tttx-comments_1_9_100.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_100.d.ts +0 -11
- package/dist/components/tttx-datacard_1_9_100.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_100.d.ts +0 -11
- package/dist/components/tttx-dialog_1_9_100.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_100.d.ts +0 -11
- package/dist/components/tttx-filter_1_9_100.d.ts +0 -11
- package/dist/components/tttx-form_1_9_100.d.ts +0 -11
- package/dist/components/tttx-graph_1_9_100.d.ts +0 -11
- package/dist/components/tttx-icon_1_9_100.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_100.d.ts +0 -11
- package/dist/components/tttx-list_1_9_100.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_100.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_100.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_100.d.ts +0 -11
- package/dist/components/tttx-qrcode_1_9_100.d.ts +0 -11
- package/dist/components/tttx-range-slider_1_9_100.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_100.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_100.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_100.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_100.d.ts +0 -11
- package/dist/components/tttx-table_1_9_100.d.ts +0 -11
- package/dist/components/tttx-tabs_1_9_100.d.ts +0 -11
- package/dist/components/tttx-tag-v2_1_9_100.d.ts +0 -11
- package/dist/components/tttx-tag_1_9_100.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_100.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_100.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_100.d.ts +0 -11
- package/dist/components/tttx-tooltip_1_9_100.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_100.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_100.js +0 -283
- package/dist/esm/tttx-data-pattern_1_9_100.entry.js +0 -26
- package/dist/esm/tttx-loading-spinner_1_9_100_3.entry.js +0 -183
- package/dist/esm/tttx-tree-view_1_9_100.entry.js +0 -251
- package/dist/tttx/p-2527a4d3.entry.js +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxSorter_1_9_100 extends Components.TttxSorter_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxSorter_1_9_100: {
|
|
5
|
-
prototype: TttxSorter_1_9_100;
|
|
6
|
-
new (): TttxSorter_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxStandaloneInput_1_9_100 extends Components.TttxStandaloneInput_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxStandaloneInput_1_9_100: {
|
|
5
|
-
prototype: TttxStandaloneInput_1_9_100;
|
|
6
|
-
new (): TttxStandaloneInput_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTable_1_9_100 extends Components.TttxTable_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTable_1_9_100: {
|
|
5
|
-
prototype: TttxTable_1_9_100;
|
|
6
|
-
new (): TttxTable_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTabs_1_9_100 extends Components.TttxTabs_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTabs_1_9_100: {
|
|
5
|
-
prototype: TttxTabs_1_9_100;
|
|
6
|
-
new (): TttxTabs_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTagV2_1_9_100 extends Components.TttxTagV2_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTagV2_1_9_100: {
|
|
5
|
-
prototype: TttxTagV2_1_9_100;
|
|
6
|
-
new (): TttxTagV2_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTag_1_9_100 extends Components.TttxTag_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTag_1_9_100: {
|
|
5
|
-
prototype: TttxTag_1_9_100;
|
|
6
|
-
new (): TttxTag_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTextarea_1_9_100 extends Components.TttxTextarea_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTextarea_1_9_100: {
|
|
5
|
-
prototype: TttxTextarea_1_9_100;
|
|
6
|
-
new (): TttxTextarea_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxToggle_1_9_100 extends Components.TttxToggle_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxToggle_1_9_100: {
|
|
5
|
-
prototype: TttxToggle_1_9_100;
|
|
6
|
-
new (): TttxToggle_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxToolbar_1_9_100 extends Components.TttxToolbar_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxToolbar_1_9_100: {
|
|
5
|
-
prototype: TttxToolbar_1_9_100;
|
|
6
|
-
new (): TttxToolbar_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTooltip_1_9_100 extends Components.TttxTooltip_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTooltip_1_9_100: {
|
|
5
|
-
prototype: TttxTooltip_1_9_100;
|
|
6
|
-
new (): TttxTooltip_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTreeView_1_9_100 extends Components.TttxTreeView_1_9_100, HTMLElement {}
|
|
4
|
-
export const TttxTreeView_1_9_100: {
|
|
5
|
-
prototype: TttxTreeView_1_9_100;
|
|
6
|
-
new (): TttxTreeView_1_9_100;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './tttx-button.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
5
|
-
|
|
6
|
-
const tttxTreeViewCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{--tree-accent:#1579C6;--tree-selected-bg:#E7E7E7;--indent:36px;--accent-gap:46px;--accent-width:6px;--tree-left-edge-shift:0px;--leaf-accent-offset:48px}.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){cursor:pointer}.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.element-row{min-height:36px;font-family:\"Roboto\", serif;font-size:16px;padding:8px 0px;position:relative;color:#212121 !important;}.tree-view-element ul li.inline-tree-item.element-row::before{content:\"\";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #d5d5d5;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.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}.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;cursor:not-allowed;opacity:0.7}@media (forced-colors: active){.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::after{background:CanvasText}.tree-view-element ul li.selected-group::after{background:Highlight}.tree-view-element ul li.inline-tree-item.element-row.rowSelected{background:Highlight !important}}.inline-tree-item:focus-visible{outline:2px solid var(--tree-accent);outline-offset:2px;border-radius:6px}";
|
|
7
|
-
|
|
8
|
-
const TttxTreeView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.clickEvent = createEvent(this, "clickEvent", 7);
|
|
14
|
-
this.expandNode = createEvent(this, "expandNode", 7);
|
|
15
|
-
this.checkboxChange = createEvent(this, "checkboxChange", 7);
|
|
16
|
-
this.moveNode = createEvent(this, "moveNode", 7);
|
|
17
|
-
this.dragGhost = {
|
|
18
|
-
el: null,
|
|
19
|
-
};
|
|
20
|
-
this.createGhostImage = (label) => {
|
|
21
|
-
const ghost = document.createElement('div');
|
|
22
|
-
ghost.textContent = label;
|
|
23
|
-
Object.assign(ghost.style, {
|
|
24
|
-
position: 'absolute',
|
|
25
|
-
top: '-9999px',
|
|
26
|
-
left: '-9999px',
|
|
27
|
-
padding: '6px 20px',
|
|
28
|
-
background: 'white',
|
|
29
|
-
border: '1px solid #ccc',
|
|
30
|
-
fontSize: '14px',
|
|
31
|
-
pointerEvents: 'none',
|
|
32
|
-
});
|
|
33
|
-
document.body.appendChild(ghost);
|
|
34
|
-
setTimeout(() => document.body.removeChild(ghost), 0);
|
|
35
|
-
return ghost;
|
|
36
|
-
};
|
|
37
|
-
this.handleDragStart = (event, node, index, parentId) => {
|
|
38
|
-
if (!event.dataTransfer)
|
|
39
|
-
return;
|
|
40
|
-
this.draggedNodeParentId = parentId;
|
|
41
|
-
const payload = JSON.stringify({ parentId, index, node });
|
|
42
|
-
event.dataTransfer.setData('text/plain', payload);
|
|
43
|
-
const ghostImg = this.createGhostImage(node.title);
|
|
44
|
-
this.dragGhost.el = ghostImg;
|
|
45
|
-
event.dataTransfer.setDragImage(ghostImg, 0, 0);
|
|
46
|
-
};
|
|
47
|
-
this.handleDragDrop = (event, node, targetIndex, parentId) => {
|
|
48
|
-
var _a;
|
|
49
|
-
event.preventDefault();
|
|
50
|
-
const nodeData = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
|
51
|
-
if (!nodeData)
|
|
52
|
-
return;
|
|
53
|
-
const { parentId: sourceParentId, index: sourceParentIndex, node: sourceNode } = JSON.parse(nodeData);
|
|
54
|
-
// Prevent dropping on itself or different parents
|
|
55
|
-
if (node.id === sourceNode.id || sourceParentId !== parentId)
|
|
56
|
-
return;
|
|
57
|
-
const updatedTree = [...this.treeData];
|
|
58
|
-
// Find the parent node
|
|
59
|
-
const parent = parentId ? this.findNodeById(updatedTree, parentId) : null;
|
|
60
|
-
// If no parent (root level), work with treeData directly
|
|
61
|
-
const children = (parent === null || parent === void 0 ? void 0 : parent.child) ? [...parent.child] : [...updatedTree];
|
|
62
|
-
if (!children || children.length === 0)
|
|
63
|
-
return;
|
|
64
|
-
// Move the node
|
|
65
|
-
const [moved] = children.splice(sourceParentIndex, 1);
|
|
66
|
-
children.splice(targetIndex, 0, moved);
|
|
67
|
-
// Update the tree
|
|
68
|
-
if (parent) {
|
|
69
|
-
parent.child = children;
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
this.treeData = children;
|
|
73
|
-
}
|
|
74
|
-
this.draggedNodeParentId = undefined;
|
|
75
|
-
if (this.dragGhost.el) {
|
|
76
|
-
this.dragGhost.el.remove();
|
|
77
|
-
this.dragGhost.el = null;
|
|
78
|
-
}
|
|
79
|
-
this.moveNode.emit(this.treeData);
|
|
80
|
-
};
|
|
81
|
-
this.handleDragOver = (event, parentId) => {
|
|
82
|
-
event.preventDefault();
|
|
83
|
-
if (!event.dataTransfer)
|
|
84
|
-
return;
|
|
85
|
-
const validDrag = this.draggedNodeParentId === parentId;
|
|
86
|
-
event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
|
|
87
|
-
};
|
|
88
|
-
this.data = undefined;
|
|
89
|
-
this.treeData = undefined;
|
|
90
|
-
}
|
|
91
|
-
componentWillRender() {
|
|
92
|
-
if (!this.data)
|
|
93
|
-
return;
|
|
94
|
-
this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
|
|
95
|
-
if (!this.dragIcon) {
|
|
96
|
-
this.dragIcon = getAssetPath('assets/img/drag-icon.svg');
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
onClickHandler(event, node) {
|
|
100
|
-
event.stopPropagation();
|
|
101
|
-
// Handle selection: if node is already selected, deselect it; otherwise select it and deselect all others
|
|
102
|
-
if (node.selectable) {
|
|
103
|
-
if (node.selected) {
|
|
104
|
-
// Toggle off: deselect this node
|
|
105
|
-
node.selected = false;
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
// Toggle on: deselect all others and select this one
|
|
109
|
-
this.handleNodeSelection(node);
|
|
110
|
-
// node.selected is already set to true in handleNodeSelection
|
|
111
|
-
}
|
|
112
|
-
this.treeData = [...this.treeData];
|
|
113
|
-
}
|
|
114
|
-
this.clickEvent.emit(node);
|
|
115
|
-
}
|
|
116
|
-
toggleNode(node, event) {
|
|
117
|
-
event.stopPropagation();
|
|
118
|
-
node.isOpen = !node.isOpen;
|
|
119
|
-
this.treeData = [...this.treeData];
|
|
120
|
-
this.expandNode.emit({ node: node, treeViewData: this.treeData });
|
|
121
|
-
}
|
|
122
|
-
handleCheckboxChange(node, event) {
|
|
123
|
-
event.stopPropagation();
|
|
124
|
-
node.checked = !node.checked;
|
|
125
|
-
this.updateChildrenCheckStatus(node);
|
|
126
|
-
this.updateParentCheckStatus();
|
|
127
|
-
this.treeData = [...this.treeData];
|
|
128
|
-
this.checkboxChange.emit(this.treeData);
|
|
129
|
-
}
|
|
130
|
-
updateChildrenCheckStatus(node) {
|
|
131
|
-
if (node.child) {
|
|
132
|
-
node.child.forEach(childNode => {
|
|
133
|
-
if (childNode.hasCheckbox && childNode.checked !== undefined) {
|
|
134
|
-
// don't set checked on a child that doesn't have a checkbox
|
|
135
|
-
// makes it impossible to unselect a parent as child can never be unchecked in frontend
|
|
136
|
-
childNode.checked = node.checked;
|
|
137
|
-
}
|
|
138
|
-
this.updateChildrenCheckStatus(childNode);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Update the checkbox status of parent nodes when children have been updated.
|
|
144
|
-
* Called recursively to traverse the tree for parents.
|
|
145
|
-
* First call with no params to automatically start at the top of the tree.
|
|
146
|
-
*
|
|
147
|
-
* Any children checked -> parent is checked.
|
|
148
|
-
*
|
|
149
|
-
* All children unchecked -> parent is unchecked.
|
|
150
|
-
*/
|
|
151
|
-
updateParentCheckStatus(parent = undefined, children = undefined) {
|
|
152
|
-
if (parent === undefined) {
|
|
153
|
-
this.treeData.forEach(node => this.updateParentCheckStatus(node, node.child));
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
let childrenCheckedStatuses = [];
|
|
157
|
-
// set status relative to children if we have some
|
|
158
|
-
if (children && children.length > 0) {
|
|
159
|
-
childrenCheckedStatuses = children.map(node => this.updateParentCheckStatus(node, node.child)).flat(1);
|
|
160
|
-
// parent checked if any children are checked
|
|
161
|
-
if (childrenCheckedStatuses.some(checked => checked)) {
|
|
162
|
-
parent.checked = true;
|
|
163
|
-
}
|
|
164
|
-
// parent unchecked if all children are unchecked
|
|
165
|
-
if (childrenCheckedStatuses.every(checked => !checked)) {
|
|
166
|
-
parent.checked = false;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
// return the gathered checked statuses so nodes above can make check choices
|
|
170
|
-
return [...childrenCheckedStatuses, parent.checked];
|
|
171
|
-
}
|
|
172
|
-
treeConfigs(node) {
|
|
173
|
-
let checkboxIcon, checkboxColor;
|
|
174
|
-
if (node.checked) {
|
|
175
|
-
checkboxIcon = 'check_box';
|
|
176
|
-
checkboxColor = 'blue';
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
checkboxIcon = 'check_box_outline_blank';
|
|
180
|
-
checkboxColor = 'grey';
|
|
181
|
-
}
|
|
182
|
-
const rowHoverActive = node.hasHover ? 'rowHover' : '';
|
|
183
|
-
const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
|
|
184
|
-
const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
|
|
185
|
-
return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive };
|
|
186
|
-
}
|
|
187
|
-
findNodeById(nodes, id) {
|
|
188
|
-
for (const node of nodes) {
|
|
189
|
-
if (node.id === id)
|
|
190
|
-
return node;
|
|
191
|
-
if (node.child) {
|
|
192
|
-
const found = this.findNodeById(node.child, id);
|
|
193
|
-
if (found)
|
|
194
|
-
return found;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return undefined;
|
|
198
|
-
}
|
|
199
|
-
deselectAllNodes(nodes) {
|
|
200
|
-
for (const node of nodes) {
|
|
201
|
-
if (node.selectable) {
|
|
202
|
-
node.selected = false;
|
|
203
|
-
}
|
|
204
|
-
if (node.child) {
|
|
205
|
-
this.deselectAllNodes(node.child);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
handleNodeSelection(node) {
|
|
210
|
-
// Deselect all nodes first
|
|
211
|
-
this.deselectAllNodes(this.treeData);
|
|
212
|
-
// Select only the clicked node if it's selectable
|
|
213
|
-
if (node.selectable) {
|
|
214
|
-
node.selected = true;
|
|
215
|
-
}
|
|
216
|
-
// Update the tree to trigger re-render
|
|
217
|
-
this.treeData = [...this.treeData];
|
|
218
|
-
}
|
|
219
|
-
renderNode(node, index, parentId = undefined, level = 0 // <-- depth
|
|
220
|
-
) {
|
|
221
|
-
const options = this.treeConfigs(node);
|
|
222
|
-
if (node.child) {
|
|
223
|
-
// group node
|
|
224
|
-
const isSelectedGroup = !!node.selected;
|
|
225
|
-
return (h("li", { class: `${isSelectedGroup ? 'selected-group' : ''}`, style: { '--level': String(level) } }, h("li", Object.assign({ "data-id": node.id }, (node.draggable ? { onDragOver: event => this.handleDragOver(event, parentId) } : {}), (node.draggable ? { onDrop: event => this.handleDragDrop(event, node, index, parentId) } : {}), { class: `inline-tree-item element-row tree-node ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
|
|
226
|
-
if (node.hasHover) {
|
|
227
|
-
this.onClickHandler(event, node);
|
|
228
|
-
}
|
|
229
|
-
} }), h("tttx-button_1_9_100", { 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) => {
|
|
230
|
-
// next level = level + 1
|
|
231
|
-
return this.renderNode(childNode, childIndex, node.id, level + 1);
|
|
232
|
-
}))) : null));
|
|
233
|
-
}
|
|
234
|
-
// leaf (activity)
|
|
235
|
-
return (h("li", Object.assign({ "data-id": node.id }, (node.draggable ? { onDragOver: event => this.handleDragOver(event, parentId) } : {}), (node.draggable ? { onDrop: event => this.handleDragDrop(event, node, index, parentId) } : {}), { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, style: { '--level': String(level) }, onClick: event => {
|
|
236
|
-
if (node.hasHover) {
|
|
237
|
-
this.onClickHandler(event, node);
|
|
238
|
-
}
|
|
239
|
-
} }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index, parentId)));
|
|
240
|
-
}
|
|
241
|
-
htmlcode(type, node, check_box, check_boxColor, index, parentId = undefined) {
|
|
242
|
-
const htmlcode = (h("div", { class: "inline-tree-item element" }, node.draggable && (h("img", { src: this.dragIcon, alt: "drag", class: "drag-handle", draggable: true, onDragStart: event => this.handleDragStart(event, node, index, parentId) })), node.hasCheckbox && (h("tttx-button_1_9_100", { 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_100", { 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) })));
|
|
243
|
-
return htmlcode;
|
|
244
|
-
}
|
|
245
|
-
render() {
|
|
246
|
-
if (!this.data)
|
|
247
|
-
return;
|
|
248
|
-
return (h("div", { class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
|
|
249
|
-
}
|
|
250
|
-
get el() { return this; }
|
|
251
|
-
static get style() { return tttxTreeViewCss; }
|
|
252
|
-
}, [1, "tttx-tree-view_1_9_100", {
|
|
253
|
-
"data": [1040],
|
|
254
|
-
"treeData": [32]
|
|
255
|
-
}]);
|
|
256
|
-
function defineCustomElement$1() {
|
|
257
|
-
if (typeof customElements === "undefined") {
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
const components = ["tttx-tree-view_1_9_100", "tttx-button_1_9_100", "tttx-icon_1_9_100"];
|
|
261
|
-
components.forEach(tagName => { switch (tagName) {
|
|
262
|
-
case "tttx-tree-view_1_9_100":
|
|
263
|
-
if (!customElements.get(tagName)) {
|
|
264
|
-
customElements.define(tagName, TttxTreeView);
|
|
265
|
-
}
|
|
266
|
-
break;
|
|
267
|
-
case "tttx-button_1_9_100":
|
|
268
|
-
if (!customElements.get(tagName)) {
|
|
269
|
-
defineCustomElement$3();
|
|
270
|
-
}
|
|
271
|
-
break;
|
|
272
|
-
case "tttx-icon_1_9_100":
|
|
273
|
-
if (!customElements.get(tagName)) {
|
|
274
|
-
defineCustomElement$2();
|
|
275
|
-
}
|
|
276
|
-
break;
|
|
277
|
-
} });
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
const TttxTreeView_1_9_100 = TttxTreeView;
|
|
281
|
-
const defineCustomElement = defineCustomElement$1;
|
|
282
|
-
|
|
283
|
-
export { TttxTreeView_1_9_100, defineCustomElement };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-b614efb4.js';
|
|
2
|
-
|
|
3
|
-
const tttxDataPatternCss = ":host{display:block}";
|
|
4
|
-
|
|
5
|
-
const TttxDataPattern = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.data = undefined;
|
|
9
|
-
this.sorterOptions = undefined;
|
|
10
|
-
this.filterOptions = undefined;
|
|
11
|
-
this.filterHeader = 'Filter';
|
|
12
|
-
this.defaultSortOption = 'Sort by';
|
|
13
|
-
this.searchplaceholder = 'Search';
|
|
14
|
-
this.addbuttonlabel = 'Add';
|
|
15
|
-
this.addbutton = false;
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return (h(Host, null, h("div", { class: "container" }, h("tttx-toolbar_1_9_100", { border: true }, h("span", { slot: "before" }, this.sorterOptions &&
|
|
19
|
-
h("tttx-sorter_1_9_100", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorterOptions, defaultOption: this.defaultSortOption }), this.filterOptions &&
|
|
20
|
-
h("tttx-filter_1_9_100", { "filter-options": JSON.stringify(this.filterOptions), showSelectAll: false, "show-option-icons": true, "filter-header": this.filterHeader, "filter-key": "data-pattern-list" })), h("span", { slot: "after" }, h("tttx-standalone-input_1_9_100", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: this.searchplaceholder, type: "text", maxlength: 30 }))), h("tttx-toolbar_1_9_100", { border: false }, h("span", { slot: "before" }, this.addbutton &&
|
|
21
|
-
h("tttx-button_1_9_100", { design: "primary", icon: "add" }, this.addbuttonlabel))), h("tttx-list_1_9_100", { data: this.data }))));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
TttxDataPattern.style = tttxDataPatternCss;
|
|
25
|
-
|
|
26
|
-
export { TttxDataPattern as tttx_data_pattern_1_9_100 };
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent, H as Host } from './index-b614efb4.js';
|
|
2
|
-
|
|
3
|
-
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.loading-container{display:flex;flex-direction:column;align-items:center}.loading-box{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.loading-text{font-size:16px;font-weight:400;text-align:center;border-radius:4px;padding:12px 16px;color:#666;box-shadow:0 0 1px 0 rgba(33, 33, 33, 0.16)}.spinner{position:relative;box-sizing:border-box;animation:rotation 1s linear infinite;transform-origin:center}.spinner.small{height:20px;width:20px}.spinner.large{height:60px;width:60px}.spinner .spinner-circle{transform-origin:center}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
4
|
-
|
|
5
|
-
const TttxLoadingSpinner = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.defaultMessageSchema = [
|
|
9
|
-
{ threshold: 2, message: 'Loading please wait…' },
|
|
10
|
-
{ threshold: 4, message: 'Processing your request…' },
|
|
11
|
-
{ threshold: Infinity, message: 'Hang tight, almost there…' },
|
|
12
|
-
];
|
|
13
|
-
this.loadingMessage = false;
|
|
14
|
-
this.size = 'large';
|
|
15
|
-
this.color = '#2e6dcc';
|
|
16
|
-
this.cardBackgroundColor = undefined;
|
|
17
|
-
this.message = undefined;
|
|
18
|
-
this.customMessageSchema = undefined;
|
|
19
|
-
this.timeElapsed = 0;
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
if (this.loadingMessage && !this.message && !this.timer) {
|
|
23
|
-
this.startTimer();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
disconnectedCallback() {
|
|
27
|
-
this.clearTimer();
|
|
28
|
-
}
|
|
29
|
-
startTimer() {
|
|
30
|
-
this.timer = setInterval(() => {
|
|
31
|
-
this.timeElapsed += 1;
|
|
32
|
-
}, 1000);
|
|
33
|
-
}
|
|
34
|
-
clearTimer() {
|
|
35
|
-
if (this.timer) {
|
|
36
|
-
clearInterval(this.timer);
|
|
37
|
-
this.timer = undefined;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
getEffectiveSchema() {
|
|
41
|
-
// Use custom schema if valid, otherwise fallback
|
|
42
|
-
return Array.isArray(this.customMessageSchema) && this.customMessageSchema.length > 0
|
|
43
|
-
? this.customMessageSchema
|
|
44
|
-
: this.defaultMessageSchema;
|
|
45
|
-
}
|
|
46
|
-
getMessageFromSchema() {
|
|
47
|
-
const schema = this.getEffectiveSchema();
|
|
48
|
-
for (const { threshold, message } of schema) {
|
|
49
|
-
if (this.timeElapsed <= threshold) {
|
|
50
|
-
return message;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return ''; // fallback, should not occur if Infinity is present
|
|
54
|
-
}
|
|
55
|
-
getDynamicMessage() {
|
|
56
|
-
var _a;
|
|
57
|
-
return (_a = this.message) !== null && _a !== void 0 ? _a : this.getMessageFromSchema();
|
|
58
|
-
}
|
|
59
|
-
renderMessage() {
|
|
60
|
-
if (!this.loadingMessage)
|
|
61
|
-
return null;
|
|
62
|
-
return (h("div", { class: "loading-text", style: this.cardBackgroundColor ? { 'background-color': this.cardBackgroundColor } : {} }, this.getDynamicMessage()));
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
const size = this.size === 'small' ? 20 : 60;
|
|
66
|
-
const strokeWidth = this.size === 'small' ? 4 : 8;
|
|
67
|
-
const radius = (size - strokeWidth) / 2;
|
|
68
|
-
const circumference = 2 * Math.PI * radius;
|
|
69
|
-
const strokeDasharray = circumference;
|
|
70
|
-
const strokeDashoffset = circumference * 0.80;
|
|
71
|
-
return (h("div", { class: "loading-container" }, h("div", { class: "loading-box" }, h("svg", { class: `spinner ${this.size}`, viewBox: `0 0 ${size} ${size}`, style: { '--spinner-color': this.color } }, h("circle", { class: "spinner-ring", cx: size / 2, cy: size / 2, r: radius, fill: "none", stroke: "#e0e0e0", "stroke-width": strokeWidth, opacity: "0.3" }), h("circle", { class: "spinner-circle", cx: size / 2, cy: size / 2, r: radius, fill: "none", stroke: this.color, "stroke-width": strokeWidth, "stroke-dasharray": strokeDasharray, "stroke-dashoffset": strokeDashoffset, "stroke-linecap": "round" }))), this.renderMessage()));
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
|
|
75
|
-
|
|
76
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_100{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_100{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_100{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_100 .optional.sc-tttx-standalone-input_1_9_100{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100{position:relative}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 .left-icons.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 .right-icons.sc-tttx-standalone-input_1_9_100{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 .left-icons.sc-tttx-standalone-input_1_9_100 tttx-icon.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 .right-icons.sc-tttx-standalone-input_1_9_100 tttx-icon.sc-tttx-standalone-input_1_9_100{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 .left-icons.sc-tttx-standalone-input_1_9_100{left:8px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 .right-icons.sc-tttx-standalone-input_1_9_100{right:8px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.sc-tttx-standalone-input_1_9_100{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px;padding:0;padding-left:16px;padding-right:16px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.has-input-icon.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.has-input-icon.sc-tttx-standalone-input_1_9_100{padding-left:40px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_100{padding-left:72px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.has-left-icon.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.has-left-icon.sc-tttx-standalone-input_1_9_100{padding-left:40px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.has-right-icon.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.has-right-icon.sc-tttx-standalone-input_1_9_100{padding-right:40px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.invalid.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.invalid.sc-tttx-standalone-input_1_9_100{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.sc-tttx-standalone-input_1_9_100:not([type=submit]),label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.sc-tttx-standalone-input_1_9_100:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input[type=radio].sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea[type=radio].sc-tttx-standalone-input_1_9_100{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input[type=date].sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea[type=date].sc-tttx-standalone-input_1_9_100{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input[readonly].sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea[readonly].sc-tttx-standalone-input_1_9_100{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.sc-tttx-standalone-input_1_9_100:focus,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.sc-tttx-standalone-input_1_9_100:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 input.sc-tttx-standalone-input_1_9_100:focus-visible,label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.sc-tttx-standalone-input_1_9_100:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.sc-tttx-standalone-input_1_9_100{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_100 .outer-container.sc-tttx-standalone-input_1_9_100 textarea.resize-none.sc-tttx-standalone-input_1_9_100{resize:none}label.sc-tttx-standalone-input_1_9_100 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_100{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_100 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_100 .left-icons.sc-tttx-standalone-input_1_9_100,label.sc-tttx-standalone-input_1_9_100 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_100 .right-icons.sc-tttx-standalone-input_1_9_100{margin-top:4px}label.sc-tttx-standalone-input_1_9_100 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_100{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_100 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_100{display:block}label.sc-tttx-standalone-input_1_9_100 .outer-container.inputInline.sc-tttx-standalone-input_1_9_100{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_100 .outer-container.inputInline.sc-tttx-standalone-input_1_9_100 input.sc-tttx-standalone-input_1_9_100{margin-top:0}label.sc-tttx-standalone-input_1_9_100 .secondarylabel.sc-tttx-standalone-input_1_9_100{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_100 .errorBubble.sc-tttx-standalone-input_1_9_100{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-standalone-input_1_9_100 .errorBubble.sc-tttx-standalone-input_1_9_100:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_100 .errorBubble.sc-tttx-standalone-input_1_9_100 span.sc-tttx-standalone-input_1_9_100{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_100{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.sc-tttx-standalone-input_1_9_100-h{display:block}";
|
|
77
|
-
|
|
78
|
-
const TttxInput = class {
|
|
79
|
-
constructor(hostRef) {
|
|
80
|
-
registerInstance(this, hostRef);
|
|
81
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
82
|
-
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
83
|
-
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
84
|
-
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
85
|
-
this.inputIconClick = createEvent(this, "inputIconClick", 7);
|
|
86
|
-
this.leftIconClick = createEvent(this, "leftIconClick", 7);
|
|
87
|
-
this.rightIconClick = createEvent(this, "rightIconClick", 7);
|
|
88
|
-
this.label = undefined;
|
|
89
|
-
this.secondarylabel = undefined;
|
|
90
|
-
this.showerrormsg = undefined;
|
|
91
|
-
this.showerrorbubble = true;
|
|
92
|
-
this.errormsg = undefined;
|
|
93
|
-
this.iconleft = undefined;
|
|
94
|
-
this.iconleftcolor = 'grey';
|
|
95
|
-
this.iconright = undefined;
|
|
96
|
-
this.iconrightcolor = 'grey';
|
|
97
|
-
this.inputicon = undefined;
|
|
98
|
-
this.inputiconcolor = 'grey';
|
|
99
|
-
this.inline = undefined;
|
|
100
|
-
this.inputautocapitalize = undefined;
|
|
101
|
-
this.inputautofocus = undefined;
|
|
102
|
-
this.inputkeyhint = undefined;
|
|
103
|
-
this.inputindex = undefined;
|
|
104
|
-
this.inputtitle = undefined;
|
|
105
|
-
this.autocomplete = undefined;
|
|
106
|
-
this.checked = undefined;
|
|
107
|
-
this.disabled = undefined;
|
|
108
|
-
this.max = undefined;
|
|
109
|
-
this.maxlength = undefined;
|
|
110
|
-
this.min = undefined;
|
|
111
|
-
this.minlength = undefined;
|
|
112
|
-
this.name = undefined;
|
|
113
|
-
this.pattern = undefined;
|
|
114
|
-
this.placeholder = undefined;
|
|
115
|
-
this.readonly = undefined;
|
|
116
|
-
this.required = undefined;
|
|
117
|
-
this.step = undefined;
|
|
118
|
-
this.type = 'text';
|
|
119
|
-
this.value = undefined;
|
|
120
|
-
}
|
|
121
|
-
handleChange(event) {
|
|
122
|
-
const target = event.target;
|
|
123
|
-
this.value = target.value;
|
|
124
|
-
this.valueChanged.emit(target.value);
|
|
125
|
-
}
|
|
126
|
-
handleFocus(event) {
|
|
127
|
-
const target = event.target;
|
|
128
|
-
this.focusChanged.emit(target.value);
|
|
129
|
-
}
|
|
130
|
-
handleBlur(event) {
|
|
131
|
-
const target = event.target;
|
|
132
|
-
this.blurChanged.emit(target.value);
|
|
133
|
-
}
|
|
134
|
-
handleInvalid(event) {
|
|
135
|
-
event.preventDefault();
|
|
136
|
-
const target = event.target;
|
|
137
|
-
this.invalidChanged.emit(target.value);
|
|
138
|
-
}
|
|
139
|
-
handleInputIconClick(event) {
|
|
140
|
-
event.preventDefault();
|
|
141
|
-
this.inputIconClick.emit();
|
|
142
|
-
}
|
|
143
|
-
handleLeftIconClick(event) {
|
|
144
|
-
event.preventDefault();
|
|
145
|
-
this.leftIconClick.emit();
|
|
146
|
-
}
|
|
147
|
-
handleRightIconClick(event) {
|
|
148
|
-
event.preventDefault();
|
|
149
|
-
this.rightIconClick.emit();
|
|
150
|
-
}
|
|
151
|
-
render() {
|
|
152
|
-
const classNames = [
|
|
153
|
-
this.showerrormsg ? 'invalid' : '',
|
|
154
|
-
this.inputicon ? 'has-input-icon' : '',
|
|
155
|
-
this.iconleft ? 'has-left-icon' : '',
|
|
156
|
-
this.iconright ? 'has-right-icon' : '',
|
|
157
|
-
].join(' ');
|
|
158
|
-
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_9_100", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_9_100", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_9_100", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
TttxInput.style = tttxStandaloneInputCss;
|
|
162
|
-
|
|
163
|
-
const tttxTagCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.blackout:hover{background:#212121;border:1px solid #212121}}:host{display:inline-block}.tag{display:inline-flex;align-items:center;border-radius:20px;padding:4px;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:400;width:max-content}.tag_icon{padding-top:4px}.tag span{margin-left:4px;margin-right:4px}.icon{height:18px;width:18px;font-weight:400}";
|
|
164
|
-
|
|
165
|
-
const TttxTag = class {
|
|
166
|
-
constructor(hostRef) {
|
|
167
|
-
registerInstance(this, hostRef);
|
|
168
|
-
this.text = undefined;
|
|
169
|
-
this.color = '#d5d5d5';
|
|
170
|
-
this.textColor = '#212121';
|
|
171
|
-
this.hasIcon = false;
|
|
172
|
-
this.icon = 'check_circle';
|
|
173
|
-
this.iconColor = '#397A4C';
|
|
174
|
-
this.iconSize = 24;
|
|
175
|
-
}
|
|
176
|
-
render() {
|
|
177
|
-
return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
178
|
-
h("tttx-icon_1_9_100", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
TttxTag.style = tttxTagCss;
|
|
182
|
-
|
|
183
|
-
export { TttxLoadingSpinner as tttx_loading_spinner_1_9_100, TttxInput as tttx_standalone_input_1_9_100, TttxTag as tttx_tag_1_9_100 };
|