@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
|
@@ -8,63 +8,63 @@ export default {
|
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
10
|
const Default = ({ border }) => `
|
|
11
|
-
<tttx-
|
|
12
|
-
<span slot="before"><tttx-
|
|
13
|
-
<span slot="center"><tttx-
|
|
14
|
-
<span slot="after"><tttx-
|
|
15
|
-
</tttx-
|
|
11
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
12
|
+
<span slot="before"><tttx-button_1_9_101 design="primary">Before</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101></span>
|
|
13
|
+
<span slot="center"><tttx-button_1_9_101 design="primary">Center</tttx-button_1_9_101></span>
|
|
14
|
+
<span slot="after"><tttx-button_1_9_101 design="primary">After</tttx-button_1_9_101></span>
|
|
15
|
+
</tttx-toolbar_1_9_101>
|
|
16
16
|
`;
|
|
17
17
|
export const DefaultToolbar = Default.bind({});
|
|
18
18
|
DefaultToolbar.args = {
|
|
19
19
|
border: true
|
|
20
20
|
};
|
|
21
21
|
const TallElements = ({ border }) => `
|
|
22
|
-
<tttx-
|
|
23
|
-
<span slot="before"><tttx-
|
|
24
|
-
<span slot="center"><div style="position: relative; top: 17px;"><tttx-standalone-
|
|
25
|
-
<span slot="after"><div style="position: relative; top: 22px;"><tttx-keyvalue-
|
|
26
|
-
</tttx-
|
|
22
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
23
|
+
<span slot="before"><tttx-button_1_9_101 design="primary">Before</tttx-button_1_9_101><div style="position: relative; top: 18px;"><tttx-standalone-input_1_9_101 placeholder="before" label="search" required showerrorbubble="false" inputicon="search" /></div></span>
|
|
24
|
+
<span slot="center"><div style="position: relative; top: 17px;"><tttx-standalone-input_1_9_101 placeholder="center" inline required showerrorbubble="false" inputicon="search" /></div></span>
|
|
25
|
+
<span slot="after"><div style="position: relative; top: 22px;"><tttx-keyvalue-block_1_9_101 horizontal keyvalues='{"Position":"after"}' /></div></span>
|
|
26
|
+
</tttx-toolbar_1_9_101>
|
|
27
27
|
`;
|
|
28
28
|
export const TallElementsToolbar = TallElements.bind({});
|
|
29
29
|
TallElementsToolbar.args = {
|
|
30
30
|
border: true
|
|
31
31
|
};
|
|
32
32
|
const WrapElements = ({ border }) => `
|
|
33
|
-
<tttx-
|
|
34
|
-
<span slot="before"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-
|
|
35
|
-
<span slot="center"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-
|
|
36
|
-
<span slot="after"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-
|
|
37
|
-
</tttx-
|
|
33
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
34
|
+
<span slot="before"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_9_101 design="primary">Button One</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Three</tttx-button_1_9_101></div></span>
|
|
35
|
+
<span slot="center"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_9_101 design="primary">Button One</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Three</tttx-button_1_9_101></div></span>
|
|
36
|
+
<span slot="after"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_9_101 design="primary">Button One</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Three</tttx-button_1_9_101></div></span>
|
|
37
|
+
</tttx-toolbar_1_9_101>
|
|
38
38
|
`;
|
|
39
39
|
export const WrapElementsToolbar = WrapElements.bind({});
|
|
40
40
|
WrapElementsToolbar.args = {
|
|
41
41
|
border: true
|
|
42
42
|
};
|
|
43
43
|
const LeftToolbar = ({ border }) => `
|
|
44
|
-
<tttx-
|
|
45
|
-
<span slot="before"><tttx-
|
|
46
|
-
</tttx-
|
|
44
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
45
|
+
<span slot="before"><tttx-button_1_9_101 design="primary">Before</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101></span>
|
|
46
|
+
</tttx-toolbar_1_9_101>
|
|
47
47
|
`;
|
|
48
48
|
export const LeftToolbarOnly = LeftToolbar.bind({});
|
|
49
49
|
LeftToolbarOnly.args = {
|
|
50
50
|
border: true
|
|
51
51
|
};
|
|
52
52
|
const CenterToolbar = ({ border }) => `
|
|
53
|
-
<tttx-
|
|
53
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
54
54
|
<span slot='before'></span>
|
|
55
|
-
<span slot="center"><tttx-
|
|
55
|
+
<span slot="center"><tttx-button_1_9_101 design="primary">Before</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101></span>
|
|
56
56
|
<span slot='after'></span>
|
|
57
|
-
</tttx-
|
|
57
|
+
</tttx-toolbar_1_9_101>
|
|
58
58
|
`;
|
|
59
59
|
export const CenterToolbarOnly = CenterToolbar.bind({});
|
|
60
60
|
CenterToolbarOnly.args = {
|
|
61
61
|
border: true
|
|
62
62
|
};
|
|
63
63
|
const TwoColumn = ({ border }) => `
|
|
64
|
-
<tttx-
|
|
65
|
-
<span slot="before"><tttx-
|
|
66
|
-
<span slot='after'><tttx-
|
|
67
|
-
</tttx-
|
|
64
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
65
|
+
<span slot="before"><tttx-button_1_9_101 design="primary">Before</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101></span>
|
|
66
|
+
<span slot='after'><tttx-button_1_9_101 design="primary">After</tttx-button_1_9_101><tttx-button_1_9_101 design="primary">Button Two</tttx-button_1_9_101></span>
|
|
67
|
+
</tttx-toolbar_1_9_101>
|
|
68
68
|
`;
|
|
69
69
|
export const TwoColumnToolbar = TwoColumn.bind({});
|
|
70
70
|
TwoColumnToolbar.args = {
|
|
@@ -87,34 +87,34 @@ const selectOptions = JSON.stringify([
|
|
|
87
87
|
{ value: 'Ronaldo', label: 'Mann' },
|
|
88
88
|
]);
|
|
89
89
|
const LongItems = ({ border }) => `
|
|
90
|
-
<tttx-
|
|
90
|
+
<tttx-toolbar_1_9_101 border="${border ? 'true' : 'false'}">
|
|
91
91
|
<span slot="before">
|
|
92
92
|
<div style="width: 350px">
|
|
93
|
-
<tttx-select-
|
|
93
|
+
<tttx-select-box_1_9_101
|
|
94
94
|
id="htmlSelectBox"
|
|
95
95
|
options-data='${selectOptions}'
|
|
96
96
|
placeholder='Select a name'
|
|
97
97
|
label=''
|
|
98
98
|
inline='true'
|
|
99
|
-
></tttx-select-
|
|
99
|
+
></tttx-select-box_1_9_101>
|
|
100
100
|
</div>
|
|
101
|
-
<tttx-
|
|
101
|
+
<tttx-button_1_9_101>
|
|
102
102
|
This is a very long button
|
|
103
|
-
</tttx-
|
|
104
|
-
<tttx-
|
|
103
|
+
</tttx-button_1_9_101>
|
|
104
|
+
<tttx-button_1_9_101>
|
|
105
105
|
This is a very long button
|
|
106
|
-
</tttx-
|
|
107
|
-
<tttx-
|
|
106
|
+
</tttx-button_1_9_101>
|
|
107
|
+
<tttx-button_1_9_101>
|
|
108
108
|
This is a very long button
|
|
109
|
-
</tttx-
|
|
109
|
+
</tttx-button_1_9_101>
|
|
110
110
|
</span>
|
|
111
111
|
<span slot="center">
|
|
112
|
-
<tttx-
|
|
112
|
+
<tttx-button_1_9_101>
|
|
113
113
|
This is a very long button in the middle
|
|
114
|
-
</tttx-
|
|
114
|
+
</tttx-button_1_9_101>
|
|
115
115
|
</span>
|
|
116
116
|
<span slot="after"></span>
|
|
117
|
-
</tttx-
|
|
117
|
+
</tttx-toolbar_1_9_101>
|
|
118
118
|
`;
|
|
119
119
|
export const LongItemsToolbar = LongItems.bind({});
|
|
120
120
|
LongItemsToolbar.args = {
|
|
@@ -82,7 +82,7 @@ export class TttxTooltip {
|
|
|
82
82
|
render() {
|
|
83
83
|
return (h("div", { class: "tooltip-wrapper" }, h("slot", null), this.visible && (h("div", { class: `tooltip-box ${this.placement} ${!this.showShadow ? 'no-shadow' : ''}`, style: this.tooltipStyles, role: "tooltip", "aria-label": this.ariaLabel || this.text }, this.text, h("span", { class: "arrow" })))));
|
|
84
84
|
}
|
|
85
|
-
static get is() { return "tttx-
|
|
85
|
+
static get is() { return "tttx-tooltip_1_9_101"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
|
87
87
|
static get originalStyleUrls() {
|
|
88
88
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
export default {
|
|
3
3
|
title: 'atoms/Tooltip',
|
|
4
|
-
component: 'tttx-
|
|
4
|
+
component: 'tttx-tooltip_1_9_101',
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: 'centered',
|
|
7
7
|
},
|
|
@@ -10,7 +10,7 @@ const Template = ({ text, placement, delay, showShadow }) => {
|
|
|
10
10
|
const wrapper = document.createElement('div');
|
|
11
11
|
wrapper.style.display = 'inline-block';
|
|
12
12
|
wrapper.style.margin = '100px'; // Ensure enough space around for placement testing
|
|
13
|
-
const tooltip = document.createElement('tttx-
|
|
13
|
+
const tooltip = document.createElement('tttx-tooltip_1_9_101');
|
|
14
14
|
tooltip.setAttribute('text', text);
|
|
15
15
|
tooltip.setAttribute('placement', placement);
|
|
16
16
|
tooltip.setAttribute('delay', delay);
|
|
@@ -75,7 +75,7 @@ const ScrollableTemplate = ({ placement, numRows, showOnlyOnOverflow }) => {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
items.forEach((item) => {
|
|
78
|
-
const tooltipEl = document.createElement('tttx-
|
|
78
|
+
const tooltipEl = document.createElement('tttx-tooltip_1_9_101');
|
|
79
79
|
tooltipEl.text = item.tooltip;
|
|
80
80
|
tooltipEl.placement = placement;
|
|
81
81
|
tooltipEl.showOnlyOnOverflow = showOnlyOnOverflow;
|
|
@@ -12,6 +12,45 @@
|
|
|
12
12
|
--leaf-accent-offset: 48px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
.drag-drop-placeholder-row {
|
|
16
|
+
background-color: #DBEAFE;
|
|
17
|
+
padding: 5px;
|
|
18
|
+
border: 1px dashed #3B82F6;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.drag_drop_success_fade {
|
|
24
|
+
transition: background-color 1s linear;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.inline-tree-item > .drag-drop-placeholder-row > .treeLeaf {
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 10px 0px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.placeholder-text {
|
|
33
|
+
color: #3B82F6;
|
|
34
|
+
width: 100%;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
text-align: center;
|
|
37
|
+
padding: 8px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.is-being-dragged {
|
|
41
|
+
background-color: rgba(125, 130, 138, 0.05) !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.drag-handle-container {
|
|
45
|
+
height: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tree-node {
|
|
49
|
+
padding-top: 0px !important;
|
|
50
|
+
padding-bottom: 0px !important;
|
|
51
|
+
height: 51px;
|
|
52
|
+
}
|
|
53
|
+
|
|
15
54
|
.tree-view-element > ul {
|
|
16
55
|
margin: 0;
|
|
17
56
|
padding: 0;
|
|
@@ -70,9 +109,6 @@
|
|
|
70
109
|
justify-content: center;
|
|
71
110
|
}
|
|
72
111
|
@media (hover: hover) {
|
|
73
|
-
.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected) {
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
}
|
|
76
112
|
.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected)::before {
|
|
77
113
|
background-color: rgba(17, 17, 17, 0.05);
|
|
78
114
|
z-index: 3;
|
|
@@ -82,11 +118,18 @@
|
|
|
82
118
|
z-index: 3;
|
|
83
119
|
}
|
|
84
120
|
}
|
|
121
|
+
.tree-view-element ul li.inline-tree-item.precedes_drag_drop::before {
|
|
122
|
+
content: "";
|
|
123
|
+
position: absolute;
|
|
124
|
+
left: -50%;
|
|
125
|
+
bottom: 0;
|
|
126
|
+
right: 0;
|
|
127
|
+
border-bottom: 1px solid #3B82F6 !important;
|
|
128
|
+
}
|
|
85
129
|
.tree-view-element ul li.inline-tree-item.element-row {
|
|
86
|
-
min-height: 36px;
|
|
87
130
|
font-family: "Roboto", serif;
|
|
88
131
|
font-size: 16px;
|
|
89
|
-
padding:
|
|
132
|
+
padding: 15px 0px;
|
|
90
133
|
position: relative;
|
|
91
134
|
color: #212121 !important;
|
|
92
135
|
/* Apply the same selected background for both groups and leaves */
|
|
@@ -165,6 +208,7 @@
|
|
|
165
208
|
}
|
|
166
209
|
.tree-view-element ul li.inline-tree-item.element-row .drag-handle {
|
|
167
210
|
margin-right: 10px;
|
|
211
|
+
cursor: grab;
|
|
168
212
|
}
|
|
169
213
|
.tree-view-element ul li.inline-tree-item.element-row.rowSelected .drag-handle {
|
|
170
214
|
margin-left: 10px;
|
|
@@ -172,7 +216,6 @@
|
|
|
172
216
|
.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed {
|
|
173
217
|
border-color: red;
|
|
174
218
|
border-style: dashed;
|
|
175
|
-
cursor: not-allowed;
|
|
176
219
|
opacity: 0.7;
|
|
177
220
|
}
|
|
178
221
|
|
|
@@ -7,40 +7,64 @@ export class TttxTreeView {
|
|
|
7
7
|
this.dragGhost = {
|
|
8
8
|
el: null,
|
|
9
9
|
};
|
|
10
|
+
this.dragDropPlaceholderId = 'drag-drop-placeholder';
|
|
10
11
|
this.createGhostImage = (label) => {
|
|
12
|
+
if (label.length > 30)
|
|
13
|
+
label = `${label.slice(0, 30)}...`;
|
|
11
14
|
const ghost = document.createElement('div');
|
|
12
|
-
ghost.textContent = label;
|
|
13
15
|
Object.assign(ghost.style, {
|
|
14
16
|
position: 'absolute',
|
|
15
17
|
top: '-9999px',
|
|
16
18
|
left: '-9999px',
|
|
17
|
-
padding: '
|
|
19
|
+
padding: '8px 12px',
|
|
18
20
|
background: 'white',
|
|
19
|
-
border: '1px solid #ccc',
|
|
20
|
-
fontSize: '14px',
|
|
21
21
|
pointerEvents: 'none',
|
|
22
|
+
boxShadow: '0px 0px 12px #F9F9F9',
|
|
23
|
+
display: 'flex',
|
|
24
|
+
flexDirection: 'row',
|
|
25
|
+
gap: '10px',
|
|
26
|
+
borderRadius: '4px'
|
|
22
27
|
});
|
|
28
|
+
const dragHandle = document.createElement('img');
|
|
29
|
+
dragHandle.src = this.dragIcon;
|
|
30
|
+
dragHandle.alt = 'drag';
|
|
31
|
+
ghost.appendChild(dragHandle);
|
|
32
|
+
const ghostText = document.createElement('span');
|
|
33
|
+
Object.assign(ghostText.style, { fontSize: '14px' });
|
|
34
|
+
ghostText.textContent = label;
|
|
35
|
+
ghost.appendChild(ghostText);
|
|
23
36
|
document.body.appendChild(ghost);
|
|
24
|
-
setTimeout(() => document.body.removeChild(ghost), 0);
|
|
25
37
|
return ghost;
|
|
26
38
|
};
|
|
27
39
|
this.handleDragStart = (event, node, index, parentId) => {
|
|
28
40
|
if (!event.dataTransfer)
|
|
29
41
|
return;
|
|
30
42
|
this.draggedNodeParentId = parentId;
|
|
43
|
+
this.draggedNodeId = node.id;
|
|
31
44
|
const payload = JSON.stringify({ parentId, index, node });
|
|
32
45
|
event.dataTransfer.setData('text/plain', payload);
|
|
33
46
|
const ghostImg = this.createGhostImage(node.title);
|
|
34
47
|
this.dragGhost.el = ghostImg;
|
|
35
|
-
event.dataTransfer.setDragImage(ghostImg,
|
|
48
|
+
event.dataTransfer.setDragImage(ghostImg, 32, 30);
|
|
36
49
|
};
|
|
37
|
-
this.
|
|
50
|
+
this.handleDragEnd = () => {
|
|
51
|
+
// if drag ends on a valid target, handleDragDrop should handle everything
|
|
52
|
+
// if not dropped on a valid target, use this trigger to remove the placeholder
|
|
53
|
+
setTimeout(() => {
|
|
54
|
+
const placeHolderExists = this.findNodeById(this.treeData, this.dragDropPlaceholderId);
|
|
55
|
+
if (placeHolderExists) {
|
|
56
|
+
const placeHolderRemovedList = this.updateDragDropPlaceholder(this.treeData);
|
|
57
|
+
this.treeData = [...placeHolderRemovedList];
|
|
58
|
+
}
|
|
59
|
+
}, 300);
|
|
60
|
+
};
|
|
61
|
+
this.handleDragDrop = (event, node, parentId) => {
|
|
38
62
|
var _a;
|
|
39
63
|
event.preventDefault();
|
|
40
64
|
const nodeData = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
|
41
65
|
if (!nodeData)
|
|
42
66
|
return;
|
|
43
|
-
const { parentId: sourceParentId,
|
|
67
|
+
const { parentId: sourceParentId, node: sourceNode } = JSON.parse(nodeData);
|
|
44
68
|
// Prevent dropping on itself or different parents
|
|
45
69
|
if (node.id === sourceNode.id || sourceParentId !== parentId)
|
|
46
70
|
return;
|
|
@@ -51,32 +75,70 @@ export class TttxTreeView {
|
|
|
51
75
|
const children = (parent === null || parent === void 0 ? void 0 : parent.child) ? [...parent.child] : [...updatedTree];
|
|
52
76
|
if (!children || children.length === 0)
|
|
53
77
|
return;
|
|
54
|
-
//
|
|
55
|
-
const
|
|
56
|
-
|
|
78
|
+
// move the node to wherever the placeholder now is
|
|
79
|
+
const movedElement = sourceNode;
|
|
80
|
+
const newChildren = [];
|
|
81
|
+
for (const child of children) {
|
|
82
|
+
if (child.id == movedElement.id)
|
|
83
|
+
continue; // will be inserted in placeholder position
|
|
84
|
+
if (child.id == this.dragDropPlaceholderId) {
|
|
85
|
+
// moved element added to new list in placeholder's place
|
|
86
|
+
newChildren.push(movedElement);
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
newChildren.push(child); // retain existing elements
|
|
90
|
+
}
|
|
57
91
|
// Update the tree
|
|
58
92
|
if (parent) {
|
|
59
|
-
parent.child =
|
|
93
|
+
parent.child = newChildren;
|
|
60
94
|
}
|
|
61
95
|
else {
|
|
62
|
-
this.treeData =
|
|
96
|
+
this.treeData = newChildren;
|
|
63
97
|
}
|
|
64
98
|
this.draggedNodeParentId = undefined;
|
|
99
|
+
this.draggedNodeId = undefined;
|
|
65
100
|
if (this.dragGhost.el) {
|
|
66
101
|
this.dragGhost.el.remove();
|
|
67
102
|
this.dragGhost.el = null;
|
|
68
103
|
}
|
|
104
|
+
this.handleDragDropSuccessBackground(movedElement.id);
|
|
105
|
+
this.treeData = [...this.updateDragDropPlaceholder(this.treeData)];
|
|
69
106
|
this.moveNode.emit(this.treeData);
|
|
70
107
|
};
|
|
71
|
-
this.handleDragOver = (event, parentId) => {
|
|
108
|
+
this.handleDragOver = (event, draggedOverId, parentId, isDragDropPlaceholder) => {
|
|
72
109
|
event.preventDefault();
|
|
73
110
|
if (!event.dataTransfer)
|
|
74
111
|
return;
|
|
75
|
-
const validDrag = this.draggedNodeParentId === parentId;
|
|
112
|
+
const validDrag = this.draggedNodeParentId === parentId || isDragDropPlaceholder;
|
|
76
113
|
event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
|
|
114
|
+
if (validDrag && !isDragDropPlaceholder) {
|
|
115
|
+
this.treeData = [...this.updateDragDropPlaceholder(this.treeData, draggedOverId)];
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
this.updateDragDropPlaceholder = (treeData, createPlaceholderOnId) => {
|
|
119
|
+
const newTreeData = [];
|
|
120
|
+
for (const treeViewItem of treeData) {
|
|
121
|
+
// delete existing placeholders & create a new one if this is where it should be dropped
|
|
122
|
+
if (treeViewItem.isDragDropPlaceholder)
|
|
123
|
+
continue;
|
|
124
|
+
if (treeViewItem.id == createPlaceholderOnId) {
|
|
125
|
+
newTreeData.push({
|
|
126
|
+
id: this.dragDropPlaceholderId,
|
|
127
|
+
title: 'Drop here',
|
|
128
|
+
isDragDropPlaceholder: true
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
if (treeViewItem.child) {
|
|
132
|
+
const children = this.updateDragDropPlaceholder(treeViewItem.child, createPlaceholderOnId);
|
|
133
|
+
treeViewItem.child = children;
|
|
134
|
+
}
|
|
135
|
+
newTreeData.push(treeViewItem);
|
|
136
|
+
}
|
|
137
|
+
return newTreeData;
|
|
77
138
|
};
|
|
78
139
|
this.data = undefined;
|
|
79
140
|
this.treeData = undefined;
|
|
141
|
+
this.nodesRecentlyMoved = [];
|
|
80
142
|
}
|
|
81
143
|
componentWillRender() {
|
|
82
144
|
if (!this.data)
|
|
@@ -172,7 +234,8 @@ export class TttxTreeView {
|
|
|
172
234
|
const rowHoverActive = node.hasHover ? 'rowHover' : '';
|
|
173
235
|
const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
|
|
174
236
|
const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
|
|
175
|
-
|
|
237
|
+
const dragDropPlaceholder = node.isDragDropPlaceholder ? 'drag_drop_placeholder' : '';
|
|
238
|
+
return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive, dragDropPlaceholder };
|
|
176
239
|
}
|
|
177
240
|
findNodeById(nodes, id) {
|
|
178
241
|
for (const node of nodes) {
|
|
@@ -206,39 +269,80 @@ export class TttxTreeView {
|
|
|
206
269
|
// Update the tree to trigger re-render
|
|
207
270
|
this.treeData = [...this.treeData];
|
|
208
271
|
}
|
|
272
|
+
handleDragDropSuccessBackground(nodeId) {
|
|
273
|
+
this.nodesRecentlyMoved.push(nodeId);
|
|
274
|
+
setTimeout((nodeId) => {
|
|
275
|
+
this.nodesRecentlyMoved = [...this.nodesRecentlyMoved.filter((id) => id !== nodeId)];
|
|
276
|
+
}, 300, nodeId);
|
|
277
|
+
}
|
|
278
|
+
doesNodePrecedeDragDropPlaceholder(node, index, parentId = undefined) {
|
|
279
|
+
var _a;
|
|
280
|
+
if (node.child) {
|
|
281
|
+
// is parent, so first child would have to be placeholder
|
|
282
|
+
return node.child.length > 0 && node.child[0].isDragDropPlaceholder;
|
|
283
|
+
}
|
|
284
|
+
// child, so check if following element is placeholder
|
|
285
|
+
const parentNode = parentId ? this.findNodeById(this.treeData, parentId) : undefined;
|
|
286
|
+
if (parentNode) {
|
|
287
|
+
return index !== parentNode.child.length && ((_a = parentNode.child[index + 1]) === null || _a === void 0 ? void 0 : _a.isDragDropPlaceholder);
|
|
288
|
+
}
|
|
289
|
+
return false;
|
|
290
|
+
}
|
|
209
291
|
renderNode(node, index, parentId = undefined, level = 0 // <-- depth
|
|
210
292
|
) {
|
|
211
|
-
var _a, _b;
|
|
212
293
|
const options = this.treeConfigs(node);
|
|
294
|
+
const precedesDragDropPlaceholderClass = this.doesNodePrecedeDragDropPlaceholder(node, index, parentId) ? 'precedes_drag_drop' : '';
|
|
213
295
|
if (node.child) {
|
|
214
296
|
// group node
|
|
215
297
|
const isSelectedGroup = !!node.selected;
|
|
216
|
-
return (h("li", { class: `${isSelectedGroup ? 'selected-group' : ''}`, style: { '--level': String(level) } }, h("li", Object.assign({
|
|
298
|
+
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 => {
|
|
217
299
|
if (node.hasHover) {
|
|
218
300
|
this.onClickHandler(event, node);
|
|
219
301
|
}
|
|
220
|
-
} }), h("tttx-
|
|
302
|
+
} }), 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) => {
|
|
221
303
|
// next level = level + 1
|
|
222
304
|
return this.renderNode(childNode, childIndex, node.id, level + 1);
|
|
223
305
|
}))) : null));
|
|
224
306
|
}
|
|
225
307
|
// leaf (activity)
|
|
226
|
-
|
|
308
|
+
const leafStyle = { '--level': String(level) };
|
|
309
|
+
if (this.nodesRecentlyMoved.find((x) => x == node.id)) {
|
|
310
|
+
leafStyle['background-color'] = '#D1F7F0'; //'rgba(51, 170, 51, .1)';
|
|
311
|
+
}
|
|
312
|
+
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: `
|
|
313
|
+
inline-tree-item element-row
|
|
314
|
+
${options.rowHoverActive}
|
|
315
|
+
${options.selectedActive}
|
|
316
|
+
${options.dragDropPlaceholder}
|
|
317
|
+
${precedesDragDropPlaceholderClass}
|
|
318
|
+
drag_drop_success_fade
|
|
319
|
+
${this.draggedNodeId == node.id ? ' is-being-dragged' : ''}
|
|
320
|
+
`, style: leafStyle, onClick: event => {
|
|
227
321
|
if (node.hasHover) {
|
|
228
322
|
this.onClickHandler(event, node);
|
|
229
323
|
}
|
|
230
324
|
} }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index, parentId)));
|
|
231
325
|
}
|
|
232
326
|
htmlcode(type, node, check_box, check_boxColor, index, parentId = undefined) {
|
|
233
|
-
|
|
234
|
-
|
|
327
|
+
if (node.isDragDropPlaceholder) {
|
|
328
|
+
return (h("div", { class: "inline-tree-item element" }, h("div", { class: 'drag-drop-placeholder-row' }, h("div", { class: 'placeholder-text' }, node.title))));
|
|
329
|
+
}
|
|
330
|
+
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 => {
|
|
331
|
+
if (node.draggable) {
|
|
332
|
+
this.handleDragStart(event, node, index, parentId);
|
|
333
|
+
}
|
|
334
|
+
}, onDragEnd: () => {
|
|
335
|
+
if (node.draggable) {
|
|
336
|
+
this.handleDragEnd();
|
|
337
|
+
}
|
|
338
|
+
} }))), 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: DOMPurify.sanitize(node.html, domSanitiserOptions) })));
|
|
235
339
|
}
|
|
236
340
|
render() {
|
|
237
341
|
if (!this.data)
|
|
238
342
|
return;
|
|
239
|
-
return (h("div", { class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
|
|
343
|
+
return (h("div", { ref: (element) => this.rootElement = element, class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
|
|
240
344
|
}
|
|
241
|
-
static get is() { return "tttx-tree-
|
|
345
|
+
static get is() { return "tttx-tree-view_1_9_101"; }
|
|
242
346
|
static get encapsulation() { return "shadow"; }
|
|
243
347
|
static get originalStyleUrls() {
|
|
244
348
|
return {
|
|
@@ -276,7 +380,8 @@ export class TttxTreeView {
|
|
|
276
380
|
}
|
|
277
381
|
static get states() {
|
|
278
382
|
return {
|
|
279
|
-
"treeData": {}
|
|
383
|
+
"treeData": {},
|
|
384
|
+
"nodesRecentlyMoved": {}
|
|
280
385
|
};
|
|
281
386
|
}
|
|
282
387
|
static get events() {
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
decorators: [withActions],
|
|
11
11
|
};
|
|
12
12
|
const TttxTreeViewTemplate = ({ data }) => `
|
|
13
|
-
<tttx-tree-
|
|
13
|
+
<tttx-tree-view_1_9_101 id="treeView"></tttx-tree-view_1_9_101>
|
|
14
14
|
<script>
|
|
15
15
|
(function() {
|
|
16
16
|
const treeView = document.getElementById('treeView');
|
|
@@ -333,7 +333,7 @@ DragDropWithSelection.args = {
|
|
|
333
333
|
draggable: false,
|
|
334
334
|
child: [
|
|
335
335
|
{
|
|
336
|
-
id: '
|
|
336
|
+
id: '01KKC11BWW4RJ138DXQQBH4TWJ',
|
|
337
337
|
title: 'Cloud engineer',
|
|
338
338
|
hasIcon: false,
|
|
339
339
|
hasHover: true,
|
|
@@ -341,7 +341,7 @@ DragDropWithSelection.args = {
|
|
|
341
341
|
draggable: true,
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
id: '
|
|
344
|
+
id: '01KKC11K9FHKZX03S85ZA8G5SK',
|
|
345
345
|
title: 'Software engineer',
|
|
346
346
|
hasIcon: false,
|
|
347
347
|
hasHover: true,
|
|
@@ -349,23 +349,15 @@ DragDropWithSelection.args = {
|
|
|
349
349
|
draggable: true,
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
|
-
id: '
|
|
353
|
-
title: '
|
|
352
|
+
id: '01KKC11PHZZWN1X65SW44JBT0Q',
|
|
353
|
+
title: 'This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name This is a long name ',
|
|
354
354
|
hasIcon: false,
|
|
355
355
|
hasHover: true,
|
|
356
356
|
selectable: true,
|
|
357
357
|
draggable: true,
|
|
358
|
-
}
|
|
358
|
+
}
|
|
359
359
|
],
|
|
360
360
|
},
|
|
361
|
-
{
|
|
362
|
-
id: 'gdpr',
|
|
363
|
-
title: 'GDPR',
|
|
364
|
-
hasIcon: false,
|
|
365
|
-
hasHover: true,
|
|
366
|
-
selectable: true,
|
|
367
|
-
draggable: true,
|
|
368
|
-
},
|
|
369
361
|
{
|
|
370
362
|
id: 'skills',
|
|
371
363
|
title: 'Skills',
|
|
@@ -378,14 +370,14 @@ DragDropWithSelection.args = {
|
|
|
378
370
|
draggable: false,
|
|
379
371
|
child: [
|
|
380
372
|
{
|
|
381
|
-
id: '
|
|
373
|
+
id: '01KKC11VFZ6A4Q479EYDG7BVT6',
|
|
382
374
|
title: 'Software engineering',
|
|
383
375
|
hasHover: true,
|
|
384
376
|
selectable: true,
|
|
385
377
|
draggable: true,
|
|
386
378
|
},
|
|
387
379
|
{
|
|
388
|
-
id: '
|
|
380
|
+
id: '01KKC11YHZ9SB1T56SRZWTB4P7',
|
|
389
381
|
title: 'Design patterns',
|
|
390
382
|
hasHover: true,
|
|
391
383
|
selectable: true,
|
|
@@ -393,6 +385,26 @@ DragDropWithSelection.args = {
|
|
|
393
385
|
},
|
|
394
386
|
],
|
|
395
387
|
},
|
|
388
|
+
{
|
|
389
|
+
id: 'thinking',
|
|
390
|
+
title: 'Thinking',
|
|
391
|
+
isOpen: true,
|
|
392
|
+
hasCheckbox: false,
|
|
393
|
+
hasIcon: false,
|
|
394
|
+
hasHover: true,
|
|
395
|
+
selectable: true,
|
|
396
|
+
selected: false,
|
|
397
|
+
draggable: false,
|
|
398
|
+
child: [
|
|
399
|
+
{
|
|
400
|
+
id: '01KKESF79WXXC3T137YBMAES51',
|
|
401
|
+
title: 'Critical thinking skills',
|
|
402
|
+
hasHover: true,
|
|
403
|
+
selectable: true,
|
|
404
|
+
draggable: true,
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
},
|
|
396
408
|
],
|
|
397
409
|
},
|
|
398
410
|
],
|
|
@@ -11,12 +11,12 @@ export class TttxDataPattern {
|
|
|
11
11
|
this.addbutton = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, null, h("div", { class: "container" }, h("tttx-
|
|
15
|
-
h("tttx-
|
|
16
|
-
h("tttx-
|
|
17
|
-
h("tttx-
|
|
14
|
+
return (h(Host, null, h("div", { class: "container" }, h("tttx-toolbar_1_9_101", { border: true }, h("span", { slot: "before" }, this.sorterOptions &&
|
|
15
|
+
h("tttx-sorter_1_9_101", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorterOptions, defaultOption: this.defaultSortOption }), this.filterOptions &&
|
|
16
|
+
h("tttx-filter_1_9_101", { "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_101", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: this.searchplaceholder, type: "text", maxlength: 30 }))), h("tttx-toolbar_1_9_101", { border: false }, h("span", { slot: "before" }, this.addbutton &&
|
|
17
|
+
h("tttx-button_1_9_101", { design: "primary", icon: "add" }, this.addbuttonlabel))), h("tttx-list_1_9_101", { data: this.data }))));
|
|
18
18
|
}
|
|
19
|
-
static get is() { return "tttx-data-
|
|
19
|
+
static get is() { return "tttx-data-pattern_1_9_101"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
22
22
|
return {
|