@3t-transform/threeteeui 1.4.2 → 1.5.0
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-button_1_4_2.cjs.entry.js → tttx-button_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_4_2.cjs.entry.js → tttx-checkbox-group-caption_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_4_2.cjs.entry.js → tttx-checkbox-group-heading_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_4_2.cjs.entry.js → tttx-checkbox-group_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_4_2.cjs.entry.js → tttx-checkbox_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-data-pattern_1_4_2.cjs.entry.js → tttx-data-pattern_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-dialog-box_1_4_2.cjs.entry.js → tttx-dialog-box_1_5_0.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_4_2.cjs.entry.js → tttx-dialog_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_4_2.cjs.entry.js → tttx-expander_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_4_2_4.cjs.entry.js → tttx-filter_1_5_0_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_4_2.cjs.entry.js → tttx-form_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-icon_1_4_2.cjs.entry.js → tttx-icon_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_4_2.cjs.entry.js → tttx-keyvalue-block_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_4_2.cjs.entry.js → tttx-loading-spinner_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-multiselect-box_1_4_2.cjs.entry.js → tttx-multiselect-box_1_5_0.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-percentage-bar_1_4_2.cjs.entry.js → tttx-percentage-bar_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_4_2.cjs.entry.js → tttx-qrcode_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_4_2.cjs.entry.js → tttx-select-box_1_5_0.cjs.entry.js} +4 -4
- package/dist/cjs/tttx-standalone-input_1_5_0.cjs.entry.js +94 -0
- package/dist/cjs/{tttx-tabs_1_4_2.cjs.entry.js → tttx-tabs_1_5_0.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag_1_4_2.cjs.entry.js → tttx-tag_1_5_0.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-textarea_1_4_2.cjs.entry.js → tttx-textarea_1_5_0.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view_1_4_2.cjs.entry.js → tttx-tree-view_1_5_0.cjs.entry.js} +12 -10
- 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 +20 -20
- 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-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 +1 -1
- 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-tag/tttx-tag.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- 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-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 +5 -5
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +4 -4
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
- 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-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-tree-view/tttx-tree-view.css +52 -53
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +12 -10
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -38
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +26 -26
- package/dist/components/index.js +26 -26
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-button_1_4_2.d.ts → tttx-button_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-button_1_4_2.js → tttx-button_1_5_0.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_4_2.js → tttx-checkbox-group-caption_1_5_0.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_4_2.js → tttx-checkbox-group-heading_1_5_0.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_4_2.js → tttx-checkbox-group_1_5_0.js} +5 -5
- package/dist/components/{tttx-expander_1_4_2.d.ts → tttx-checkbox_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_4_2.js → tttx-checkbox_1_5_0.js} +7 -7
- package/dist/components/tttx-data-pattern_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_4_2.js → tttx-data-pattern_1_5_0.js} +13 -13
- package/dist/components/{tttx-dialog-box_1_4_2.d.ts → tttx-dialog-box_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-dialog-box_1_4_2.js → tttx-dialog-box_1_5_0.js} +9 -9
- package/dist/components/{tttx-filter_1_4_2.d.ts → tttx-dialog_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_4_2.js → tttx-dialog_1_5_0.js} +8 -8
- package/dist/components/{tttx-checkbox_1_4_2.d.ts → tttx-expander_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-expander_1_4_2.js → tttx-expander_1_5_0.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-qrcode_1_4_2.d.ts → tttx-filter_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_4_2.js → tttx-filter_1_5_0.js} +2 -2
- package/dist/components/{tttx-icon_1_4_2.d.ts → tttx-form_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-form_1_4_2.js → tttx-form_1_5_0.js} +9 -9
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_4_2.d.ts → tttx-icon_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_4_2.js → tttx-icon_1_5_0.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_4_2.js → tttx-keyvalue-block_1_5_0.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-form_1_4_2.d.ts → tttx-list_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-list_1_4_2.js → tttx-list_1_5_0.js} +2 -2
- package/dist/components/tttx-loading-spinner_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_4_2.js → tttx-loading-spinner_1_5_0.js} +5 -5
- package/dist/components/tttx-multiselect-box_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_4_2.js → tttx-multiselect-box_1_5_0.js} +13 -13
- package/dist/components/tttx-percentage-bar_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_4_2.js → tttx-percentage-bar_1_5_0.js} +6 -6
- package/dist/components/{tttx-dialog_1_4_2.d.ts → tttx-qrcode_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_4_2.js → tttx-qrcode_1_5_0.js} +5 -5
- package/dist/components/tttx-select-box.js +8 -8
- package/dist/components/tttx-select-box_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_4_2.js → tttx-select-box_1_5_0.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_4_2.js → tttx-sorter_1_5_0.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_4_2.js → tttx-standalone-input_1_5_0.js} +2 -2
- package/dist/components/{tttx-tabs_1_4_2.d.ts → tttx-tabs_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_4_2.js → tttx-tabs_1_5_0.js} +9 -9
- package/dist/components/{tttx-tag_1_4_2.d.ts → tttx-tag_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_4_2.js → tttx-tag_1_5_0.js} +5 -5
- package/dist/components/tttx-textarea_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_4_2.js → tttx-textarea_1_5_0.js} +6 -6
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/{tttx-toolbar_1_4_2.d.ts → tttx-toolbar_1_5_0.d.ts} +4 -4
- package/dist/components/{tttx-toolbar_1_4_2.js → tttx-toolbar_1_5_0.js} +2 -2
- package/dist/components/tttx-tree-view_1_5_0.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_4_2.js → tttx-tree-view_1_5_0.js} +19 -17
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_4_2.entry.js → tttx-button_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_4_2.entry.js → tttx-checkbox-group-caption_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_4_2.entry.js → tttx-checkbox-group-heading_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_4_2.entry.js → tttx-checkbox-group_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_4_2.entry.js → tttx-checkbox_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-data-pattern_1_4_2.entry.js → tttx-data-pattern_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-dialog-box_1_4_2.entry.js → tttx-dialog-box_1_5_0.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_4_2.entry.js → tttx-dialog_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_4_2.entry.js → tttx-expander_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_4_2_4.entry.js → tttx-filter_1_5_0_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_4_2.entry.js → tttx-form_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-icon_1_4_2.entry.js → tttx-icon_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_4_2.entry.js → tttx-keyvalue-block_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_4_2.entry.js → tttx-loading-spinner_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-multiselect-box_1_4_2.entry.js → tttx-multiselect-box_1_5_0.entry.js} +6 -6
- package/dist/esm/{tttx-percentage-bar_1_4_2.entry.js → tttx-percentage-bar_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_4_2.entry.js → tttx-qrcode_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_4_2.entry.js → tttx-select-box_1_5_0.entry.js} +4 -4
- package/dist/esm/tttx-standalone-input_1_5_0.entry.js +90 -0
- package/dist/esm/{tttx-tabs_1_4_2.entry.js → tttx-tabs_1_5_0.entry.js} +4 -4
- package/dist/esm/{tttx-tag_1_4_2.entry.js → tttx-tag_1_5_0.entry.js} +1 -1
- package/dist/esm/{tttx-textarea_1_4_2.entry.js → tttx-textarea_1_5_0.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view_1_4_2.entry.js → tttx-tree-view_1_5_0.entry.js} +13 -11
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-0e515960.entry.js +1 -1
- package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
- package/dist/tttx/p-23f45005.entry.js +1 -1
- package/dist/tttx/p-3676cddd.entry.js +1 -1
- package/dist/tttx/p-56c8c353.entry.js +1 -1
- package/dist/tttx/p-59c7b049.entry.js +1 -1
- package/dist/tttx/p-5d2706b1.entry.js +1 -1
- package/dist/tttx/p-5fa512cb.entry.js +1 -0
- package/dist/tttx/p-63ad6fb7.entry.js +1 -1
- package/dist/tttx/p-6b1c7a21.entry.js +1 -1
- package/dist/tttx/p-7077c8ed.entry.js +1 -1
- package/dist/tttx/p-796f699a.entry.js +1 -1
- package/dist/tttx/p-884f37d3.entry.js +1 -1
- package/dist/tttx/p-8b0b95b7.entry.js +1 -1
- package/dist/tttx/p-9434561e.entry.js +1 -1
- package/dist/tttx/p-983d63ff.entry.js +1 -1
- package/dist/tttx/p-a01e679a.entry.js +1 -1
- package/dist/tttx/p-a8e76e78.entry.js +1 -1
- package/dist/tttx/p-c08a54f9.entry.js +1 -1
- package/dist/tttx/p-c170e3b8.entry.js +1 -1
- package/dist/tttx/p-ee358ce4.entry.js +1 -1
- package/dist/tttx/p-f374e293.entry.js +1 -1
- package/dist/tttx/p-f4db1cf2.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +4 -3
- package/dist/types/components.d.ts +304 -304
- package/package.json +1 -1
- package/dist/cjs/tttx-standalone-input_1_4_2.cjs.entry.js +0 -94
- package/dist/components/tttx-checkbox-group-caption_1_4_2.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_4_2.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_4_2.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_4_2.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_4_2.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_4_2.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_4_2.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_4_2.d.ts +0 -11
- package/dist/components/tttx-select-box_1_4_2.d.ts +0 -11
- package/dist/components/tttx-sorter_1_4_2.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_4_2.d.ts +0 -11
- package/dist/components/tttx-textarea_1_4_2.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_4_2.d.ts +0 -11
- package/dist/esm/tttx-standalone-input_1_4_2.entry.js +0 -90
- package/dist/tttx/p-6deb8699.entry.js +0 -1
|
@@ -2,32 +2,64 @@
|
|
|
2
2
|
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.tree-view-element {
|
|
6
|
-
margin
|
|
5
|
+
.tree-view-element > ul {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
.tree-view-element > * ul {
|
|
10
|
+
padding: 0 0 0 36px;
|
|
11
|
+
}
|
|
12
|
+
.tree-view-element ul li {
|
|
13
|
+
list-style-type: none;
|
|
14
|
+
}
|
|
15
|
+
.tree-view-element ul li.inline-tree-item {
|
|
10
16
|
display: flex;
|
|
11
17
|
align-items: center;
|
|
12
18
|
}
|
|
13
|
-
|
|
14
|
-
.element {
|
|
19
|
+
.tree-view-element ul li.inline-tree-item .element {
|
|
15
20
|
display: flex;
|
|
16
21
|
flex-flow: row nowrap;
|
|
17
22
|
justify-content: flex-start;
|
|
18
23
|
align-items: center;
|
|
19
24
|
width: 100%;
|
|
25
|
+
padding-left: 8px;
|
|
20
26
|
}
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
.tree-view-element ul li.inline-tree-item .element .padding-icon {
|
|
28
|
+
padding: 6px;
|
|
29
|
+
height: 24px;
|
|
30
|
+
width: 24px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
@media (hover: hover) {
|
|
36
|
+
.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover::before {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: -50%;
|
|
43
|
+
top: 0;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
right: 0;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
.tree-view-element ul li.inline-tree-item.element-row.rowHover:not(.rowSelected):hover::before {
|
|
49
|
+
background-color: rgba(17, 17, 17, 0.05);
|
|
50
|
+
}
|
|
51
|
+
.tree-view-element ul li.inline-tree-item.element-row.rowHover.rowSelected:hover::before {
|
|
52
|
+
background-color: rgba(17, 17, 17, 0.15);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.tree-view-element ul li.inline-tree-item.element-row {
|
|
23
56
|
min-height: 36px;
|
|
24
57
|
font-family: "Roboto", serif;
|
|
25
58
|
font-size: 16px;
|
|
26
59
|
padding: 8px 0px;
|
|
27
60
|
position: relative;
|
|
28
61
|
}
|
|
29
|
-
|
|
30
|
-
.element-row::before {
|
|
62
|
+
.tree-view-element ul li.inline-tree-item.element-row::before {
|
|
31
63
|
content: "";
|
|
32
64
|
position: absolute;
|
|
33
65
|
left: -50%;
|
|
@@ -36,8 +68,7 @@
|
|
|
36
68
|
border-bottom: 1px solid #d5d5d5;
|
|
37
69
|
pointer-events: none;
|
|
38
70
|
}
|
|
39
|
-
|
|
40
|
-
.element-row.rowSelected::before {
|
|
71
|
+
.tree-view-element ul li.inline-tree-item.element-row.rowSelected::before {
|
|
41
72
|
content: "";
|
|
42
73
|
position: absolute;
|
|
43
74
|
left: -50%;
|
|
@@ -47,52 +78,20 @@
|
|
|
47
78
|
background-color: rgba(17, 17, 17, 0.1);
|
|
48
79
|
pointer-events: none;
|
|
49
80
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
81
|
+
.tree-view-element ul li.inline-tree-item.element-row.tree-node::before {
|
|
82
|
+
background-color: #fafafa;
|
|
83
|
+
height: 51px;
|
|
84
|
+
z-index: 1;
|
|
53
85
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
padding-right: 3px;
|
|
86
|
+
.tree-view-element ul li.inline-tree-item.element-row.tree-node * {
|
|
87
|
+
z-index: 2;
|
|
57
88
|
}
|
|
58
|
-
|
|
59
|
-
.padding-icon {
|
|
60
|
-
padding: 6px 6px;
|
|
61
|
-
height: 24px;
|
|
62
|
-
width: 24px;
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.treeNode {
|
|
89
|
+
.tree-view-element ul li.inline-tree-item.element-row .treeNode {
|
|
69
90
|
width: 100%;
|
|
70
91
|
font-weight: 500;
|
|
92
|
+
color: #212121;
|
|
71
93
|
}
|
|
72
|
-
|
|
73
|
-
.treeLeaf {
|
|
94
|
+
.tree-view-element ul li.inline-tree-item.element-row .treeLeaf {
|
|
74
95
|
width: 100%;
|
|
75
96
|
font-weight: 400;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.borderless:active {
|
|
79
|
-
outline-style: none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (hover: hover) {
|
|
83
|
-
.element-row.rowHover:hover {
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.element-row.rowHover:hover::before {
|
|
88
|
-
content: "";
|
|
89
|
-
position: absolute;
|
|
90
|
-
left: -50%;
|
|
91
|
-
top: 0;
|
|
92
|
-
bottom: 0;
|
|
93
|
-
background-color: rgba(17, 17, 17, 0.05);
|
|
94
|
-
opacity: 0.5;
|
|
95
|
-
right: 0;
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
}
|
|
98
97
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import { h } from '@stencil/core';
|
|
2
|
+
import { h, Fragment } from '@stencil/core';
|
|
3
3
|
import * as DOMPurify from 'dompurify';
|
|
4
4
|
import domSanitiserOptions from '../../../shared/domsanitiser.options';
|
|
5
5
|
export class TttxTreeView {
|
|
@@ -7,6 +7,11 @@ export class TttxTreeView {
|
|
|
7
7
|
this.data = undefined;
|
|
8
8
|
this.treeData = undefined;
|
|
9
9
|
}
|
|
10
|
+
componentWillRender() {
|
|
11
|
+
if (!this.data)
|
|
12
|
+
return;
|
|
13
|
+
this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
|
|
14
|
+
}
|
|
10
15
|
onClickHandler(event, node) {
|
|
11
16
|
event.stopPropagation();
|
|
12
17
|
this.clickEvent.emit(node);
|
|
@@ -49,35 +54,32 @@ export class TttxTreeView {
|
|
|
49
54
|
renderNode(node) {
|
|
50
55
|
const options = this.treeConfigs(node);
|
|
51
56
|
if (node.child) {
|
|
52
|
-
return (h(
|
|
57
|
+
return (h(Fragment, null, h("li", { class: `inline-tree-item element-row tree-node ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
|
|
53
58
|
if (node.hasHover) {
|
|
54
|
-
event.stopPropagation();
|
|
55
59
|
this.onClickHandler(event, node);
|
|
56
60
|
}
|
|
57
|
-
} }, h("tttx-
|
|
61
|
+
} }, h("tttx-button_1_5_0", { 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)), node.isOpen ? (h("li", null, h("ul", null, node.child.map(childNode => {
|
|
58
62
|
return this.renderNode(childNode);
|
|
59
63
|
})))) : null));
|
|
60
64
|
}
|
|
61
65
|
else {
|
|
62
|
-
return (h("li",
|
|
66
|
+
return (h("li", { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
|
|
63
67
|
if (node.hasHover) {
|
|
64
|
-
event.stopPropagation();
|
|
65
68
|
this.onClickHandler(event, node);
|
|
66
69
|
}
|
|
67
|
-
} }, this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor)))
|
|
70
|
+
} }, this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor)));
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
htmlcode(type, node, check_box, check_boxColor) {
|
|
71
|
-
const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-
|
|
74
|
+
const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button_1_5_0", { 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_5_0", { 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) })));
|
|
72
75
|
return htmlcode;
|
|
73
76
|
}
|
|
74
77
|
render() {
|
|
75
78
|
if (!this.data)
|
|
76
79
|
return;
|
|
77
|
-
this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
|
|
78
80
|
return (h("div", { class: "tree-view-element" }, h("ul", null, this.treeData.map((node) => this.renderNode(node)))));
|
|
79
81
|
}
|
|
80
|
-
static get is() { return "tttx-tree-
|
|
82
|
+
static get is() { return "tttx-tree-view_1_5_0"; }
|
|
81
83
|
static get encapsulation() { return "shadow"; }
|
|
82
84
|
static get originalStyleUrls() {
|
|
83
85
|
return {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
2
|
-
//import fs from 'fs';
|
|
3
|
-
//import path from 'path';
|
|
4
2
|
export default {
|
|
5
3
|
title: 'molecules/Tree View',
|
|
6
4
|
component: 'tttx-tree-view',
|
|
@@ -12,7 +10,7 @@ export default {
|
|
|
12
10
|
decorators: [withActions],
|
|
13
11
|
};
|
|
14
12
|
const TttxTreeViewStory = ({ data }) => `
|
|
15
|
-
<tttx-tree-
|
|
13
|
+
<tttx-tree-view_1_5_0 id="treeViewDefault"></tttx-tree-view_1_5_0>
|
|
16
14
|
<script>
|
|
17
15
|
if(!treeViewDefault) {
|
|
18
16
|
const treeViewDefault = document.getElementById('treeViewDefault');
|
|
@@ -27,7 +25,6 @@ Default.args = {
|
|
|
27
25
|
id: 'First',
|
|
28
26
|
title: 'Role Specific Vocational Qualification',
|
|
29
27
|
isOpen: false,
|
|
30
|
-
openOrClosed: 'arrow_right',
|
|
31
28
|
hasCheckbox: true,
|
|
32
29
|
checked: false,
|
|
33
30
|
icon: 'check_circle',
|
|
@@ -37,7 +34,6 @@ Default.args = {
|
|
|
37
34
|
id: 'second',
|
|
38
35
|
title: 'Boop',
|
|
39
36
|
isOpen: false,
|
|
40
|
-
openOrClosed: 'arrow_right',
|
|
41
37
|
icon: 'check_circle',
|
|
42
38
|
iconColor: 'green',
|
|
43
39
|
child: [
|
|
@@ -54,7 +50,6 @@ Default.args = {
|
|
|
54
50
|
id: 3,
|
|
55
51
|
title: 'Boop',
|
|
56
52
|
isOpen: false,
|
|
57
|
-
openOrClosed: 'arrow_right',
|
|
58
53
|
hasIcon: true,
|
|
59
54
|
icon: 'check_circle',
|
|
60
55
|
iconColor: 'green',
|
|
@@ -65,7 +60,6 @@ Default.args = {
|
|
|
65
60
|
id: 3,
|
|
66
61
|
title: 'second route',
|
|
67
62
|
isOpen: false,
|
|
68
|
-
openOrClosed: 'arrow_right',
|
|
69
63
|
icon: 'help',
|
|
70
64
|
iconColor: 'gray',
|
|
71
65
|
child: [
|
|
@@ -90,7 +84,7 @@ Default.args = {
|
|
|
90
84
|
],
|
|
91
85
|
};
|
|
92
86
|
const TttxTreeViewSimple = ({ data }) => `
|
|
93
|
-
<tttx-tree-
|
|
87
|
+
<tttx-tree-view_1_5_0 id="treeViewSimple"></tttx-tree-view_1_5_0>
|
|
94
88
|
<script>
|
|
95
89
|
if(!treeViewSimple) {
|
|
96
90
|
const treeViewSimple = document.getElementById('treeViewSimple');
|
|
@@ -105,7 +99,6 @@ Simple.args = {
|
|
|
105
99
|
id: 'First',
|
|
106
100
|
title: 'Role Specific Vocational Qualification',
|
|
107
101
|
isOpen: false,
|
|
108
|
-
openOrClosed: 'arrow_right',
|
|
109
102
|
hasCheckbox: false,
|
|
110
103
|
hasIcon: false,
|
|
111
104
|
child: [
|
|
@@ -113,7 +106,6 @@ Simple.args = {
|
|
|
113
106
|
id: 'second',
|
|
114
107
|
title: 'Boop',
|
|
115
108
|
isOpen: false,
|
|
116
|
-
openOrClosed: 'arrow_right',
|
|
117
109
|
child: [
|
|
118
110
|
{
|
|
119
111
|
id: 'third',
|
|
@@ -126,7 +118,6 @@ Simple.args = {
|
|
|
126
118
|
id: 3,
|
|
127
119
|
title: 'Boop',
|
|
128
120
|
isOpen: false,
|
|
129
|
-
openOrClosed: 'arrow_right',
|
|
130
121
|
hasIcon: false,
|
|
131
122
|
},
|
|
132
123
|
],
|
|
@@ -135,7 +126,6 @@ Simple.args = {
|
|
|
135
126
|
id: 3,
|
|
136
127
|
title: 'second route',
|
|
137
128
|
isOpen: false,
|
|
138
|
-
openOrClosed: 'arrow_right',
|
|
139
129
|
hasIcon: false,
|
|
140
130
|
hasCheckbox: false,
|
|
141
131
|
child: [
|
|
@@ -152,7 +142,7 @@ Simple.args = {
|
|
|
152
142
|
],
|
|
153
143
|
};
|
|
154
144
|
const TttxTreeViewHTML = ({ data }) => `
|
|
155
|
-
<tttx-tree-
|
|
145
|
+
<tttx-tree-view_1_5_0 id="treeViewHTML"></tttx-tree-view_1_5_0>
|
|
156
146
|
<script>
|
|
157
147
|
if(!treeViewHTML) {
|
|
158
148
|
const treeViewHTML = document.getElementById('treeViewHTML');
|
|
@@ -168,7 +158,6 @@ HTML.args = {
|
|
|
168
158
|
title: 'Role Specific Vocational Qualification',
|
|
169
159
|
isOpen: false,
|
|
170
160
|
html: '<div>This is html </div>',
|
|
171
|
-
openOrClosed: 'arrow_right',
|
|
172
161
|
hasCheckbox: false,
|
|
173
162
|
hasIcon: false,
|
|
174
163
|
child: [
|
|
@@ -177,7 +166,6 @@ HTML.args = {
|
|
|
177
166
|
title: 'Boop',
|
|
178
167
|
isOpen: false,
|
|
179
168
|
html: '<div>This is html </div>',
|
|
180
|
-
openOrClosed: 'arrow_right',
|
|
181
169
|
child: [
|
|
182
170
|
{
|
|
183
171
|
id: 2,
|
|
@@ -191,7 +179,6 @@ HTML.args = {
|
|
|
191
179
|
id: 3,
|
|
192
180
|
title: 'Boop',
|
|
193
181
|
isOpen: false,
|
|
194
|
-
openOrClosed: 'arrow_right',
|
|
195
182
|
hasIcon: false,
|
|
196
183
|
html: '<div>This is html </div>',
|
|
197
184
|
},
|
|
@@ -201,7 +188,6 @@ HTML.args = {
|
|
|
201
188
|
id: 3,
|
|
202
189
|
title: 'second route',
|
|
203
190
|
isOpen: false,
|
|
204
|
-
openOrClosed: 'arrow_right',
|
|
205
191
|
hasIcon: false,
|
|
206
192
|
hasCheckbox: false,
|
|
207
193
|
html: '<div>This is html </div>',
|
|
@@ -221,7 +207,7 @@ HTML.args = {
|
|
|
221
207
|
],
|
|
222
208
|
};
|
|
223
209
|
const TttxTreeViewCheckbox = ({ data }) => `
|
|
224
|
-
<tttx-tree-
|
|
210
|
+
<tttx-tree-view_1_5_0 id="treeViewCheckbox"></tttx-tree-view_1_5_0>
|
|
225
211
|
<script>
|
|
226
212
|
if(!treeViewCheckbox) {
|
|
227
213
|
const treeViewCheckbox = document.getElementById('treeViewCheckbox');
|
|
@@ -236,7 +222,6 @@ Checkbox.args = {
|
|
|
236
222
|
id: 'First',
|
|
237
223
|
title: 'Role Specific Vocational Qualification',
|
|
238
224
|
isOpen: false,
|
|
239
|
-
openOrClosed: 'arrow_right',
|
|
240
225
|
hasCheckbox: true,
|
|
241
226
|
checked: false,
|
|
242
227
|
hasIcon: false,
|
|
@@ -245,7 +230,6 @@ Checkbox.args = {
|
|
|
245
230
|
id: 2,
|
|
246
231
|
title: 'Boop',
|
|
247
232
|
isOpen: false,
|
|
248
|
-
openOrClosed: 'arrow_right',
|
|
249
233
|
hasCheckbox: true,
|
|
250
234
|
checked: false,
|
|
251
235
|
child: [
|
|
@@ -262,7 +246,6 @@ Checkbox.args = {
|
|
|
262
246
|
id: 3,
|
|
263
247
|
title: 'Boop',
|
|
264
248
|
isOpen: false,
|
|
265
|
-
openOrClosed: 'arrow_right',
|
|
266
249
|
hasIcon: false,
|
|
267
250
|
hasCheckbox: true,
|
|
268
251
|
checked: false,
|
|
@@ -273,7 +256,6 @@ Checkbox.args = {
|
|
|
273
256
|
id: 3,
|
|
274
257
|
title: 'second route',
|
|
275
258
|
isOpen: false,
|
|
276
|
-
openOrClosed: 'arrow_right',
|
|
277
259
|
hasIcon: false,
|
|
278
260
|
hasCheckbox: true,
|
|
279
261
|
checked: false,
|
|
@@ -295,7 +277,7 @@ Checkbox.args = {
|
|
|
295
277
|
],
|
|
296
278
|
};
|
|
297
279
|
const TttxTreeViewIcons = ({ data }) => `
|
|
298
|
-
<tttx-tree-
|
|
280
|
+
<tttx-tree-view_1_5_0 id="treeViewIcons"></tttx-tree-view_1_5_0>
|
|
299
281
|
<script>
|
|
300
282
|
if(!treeViewIcons) {
|
|
301
283
|
const treeViewIcons = document.getElementById('treeViewIcons');
|
|
@@ -310,7 +292,6 @@ Icons.args = {
|
|
|
310
292
|
id: 'First',
|
|
311
293
|
title: 'Role Specific Vocational Qualification',
|
|
312
294
|
isOpen: false,
|
|
313
|
-
openOrClosed: 'arrow_right',
|
|
314
295
|
hasCheckbox: false,
|
|
315
296
|
hasIcon: true,
|
|
316
297
|
icon: 'check_circle',
|
|
@@ -323,7 +304,6 @@ Icons.args = {
|
|
|
323
304
|
hasIcon: true,
|
|
324
305
|
icon: 'check_circle',
|
|
325
306
|
iconColor: 'green',
|
|
326
|
-
openOrClosed: 'arrow_right',
|
|
327
307
|
child: [
|
|
328
308
|
{
|
|
329
309
|
id: 2,
|
|
@@ -338,7 +318,6 @@ Icons.args = {
|
|
|
338
318
|
id: 3,
|
|
339
319
|
title: 'Boop',
|
|
340
320
|
isOpen: false,
|
|
341
|
-
openOrClosed: 'arrow_right',
|
|
342
321
|
hasIcon: true,
|
|
343
322
|
icon: 'check_circle',
|
|
344
323
|
iconColor: 'green',
|
|
@@ -349,7 +328,6 @@ Icons.args = {
|
|
|
349
328
|
id: 3,
|
|
350
329
|
title: 'second route',
|
|
351
330
|
isOpen: false,
|
|
352
|
-
openOrClosed: 'arrow_right',
|
|
353
331
|
hasIcon: true,
|
|
354
332
|
icon: 'help',
|
|
355
333
|
iconColor: 'gray',
|
|
@@ -374,7 +352,7 @@ Icons.args = {
|
|
|
374
352
|
],
|
|
375
353
|
};
|
|
376
354
|
const TttxTreeViewCheckBoxAndIcons = ({ data }) => `
|
|
377
|
-
<tttx-tree-
|
|
355
|
+
<tttx-tree-view_1_5_0 id="treeViewCheckBoxAndIcons"></tttx-tree-view_1_5_0>
|
|
378
356
|
<script>
|
|
379
357
|
if(!treeViewCheckBoxAndIcons) {
|
|
380
358
|
const treeViewCheckBoxAndIcons = document.getElementById('treeViewCheckBoxAndIcons');
|
|
@@ -389,7 +367,6 @@ CheckBoxAndIcons.args = {
|
|
|
389
367
|
id: 'First',
|
|
390
368
|
title: 'Role Specific Vocational Qualification',
|
|
391
369
|
isOpen: false,
|
|
392
|
-
openOrClosed: 'arrow_right',
|
|
393
370
|
hasCheckbox: true,
|
|
394
371
|
checked: false,
|
|
395
372
|
hasIcon: true,
|
|
@@ -405,7 +382,6 @@ CheckBoxAndIcons.args = {
|
|
|
405
382
|
checked: false,
|
|
406
383
|
icon: 'check_circle',
|
|
407
384
|
iconColor: 'green',
|
|
408
|
-
openOrClosed: 'arrow_right',
|
|
409
385
|
child: [
|
|
410
386
|
{
|
|
411
387
|
id: 2,
|
|
@@ -422,7 +398,6 @@ CheckBoxAndIcons.args = {
|
|
|
422
398
|
id: 3,
|
|
423
399
|
title: 'Boop',
|
|
424
400
|
isOpen: false,
|
|
425
|
-
openOrClosed: 'arrow_right',
|
|
426
401
|
hasCheckbox: true,
|
|
427
402
|
checked: false,
|
|
428
403
|
hasIcon: true,
|
|
@@ -435,7 +410,6 @@ CheckBoxAndIcons.args = {
|
|
|
435
410
|
id: 3,
|
|
436
411
|
title: 'second route',
|
|
437
412
|
isOpen: false,
|
|
438
|
-
openOrClosed: 'arrow_right',
|
|
439
413
|
hasCheckbox: true,
|
|
440
414
|
checked: false,
|
|
441
415
|
hasIcon: true,
|
|
@@ -508,7 +482,7 @@ RequirementsList2.args = {
|
|
|
508
482
|
data: [convertedData2],
|
|
509
483
|
};
|
|
510
484
|
const TttxTreeViewEmptyGroup = ({ data }) => `
|
|
511
|
-
<tttx-tree-
|
|
485
|
+
<tttx-tree-view_1_5_0 id="treeViewEmptyGroup"></tttx-tree-view_1_5_0>
|
|
512
486
|
<script>
|
|
513
487
|
if(!treeViewEmptyGroup) {
|
|
514
488
|
const treeViewEmptyGroup = document.getElementById('treeViewEmptyGroup');
|
|
@@ -523,7 +497,6 @@ EmptyGroup.args = {
|
|
|
523
497
|
id: 'First',
|
|
524
498
|
title: 'Role Specific Vocational Qualification',
|
|
525
499
|
isOpen: false,
|
|
526
|
-
openOrClosed: 'arrow_right',
|
|
527
500
|
hasCheckbox: true,
|
|
528
501
|
checked: false,
|
|
529
502
|
hasIcon: true,
|
|
@@ -534,7 +507,7 @@ EmptyGroup.args = {
|
|
|
534
507
|
],
|
|
535
508
|
};
|
|
536
509
|
const TttxTreeViewselectable = ({ data }) => `
|
|
537
|
-
<tttx-tree-
|
|
510
|
+
<tttx-tree-view_1_5_0 id="treeViewselectable"></tttx-tree-view_1_5_0>
|
|
538
511
|
<script>
|
|
539
512
|
if(!treeViewselectable) {
|
|
540
513
|
const treeViewselectable = document.getElementById('treeViewselectable');
|
|
@@ -550,7 +523,6 @@ SelectableAndHover.args = {
|
|
|
550
523
|
id: 'First',
|
|
551
524
|
title: 'Role Specific Vocational Qualification',
|
|
552
525
|
isOpen: false,
|
|
553
|
-
openOrClosed: 'arrow_right',
|
|
554
526
|
hasCheckbox: false,
|
|
555
527
|
hasIcon: false,
|
|
556
528
|
hasHover: true,
|
|
@@ -563,7 +535,6 @@ SelectableAndHover.args = {
|
|
|
563
535
|
isOpen: false,
|
|
564
536
|
hasCheckbox: false,
|
|
565
537
|
hasIcon: false,
|
|
566
|
-
openOrClosed: 'arrow_right',
|
|
567
538
|
hasHover: true,
|
|
568
539
|
selectable: true,
|
|
569
540
|
selected: false,
|
|
@@ -583,7 +554,6 @@ SelectableAndHover.args = {
|
|
|
583
554
|
id: 'fouth',
|
|
584
555
|
title: 'Boop',
|
|
585
556
|
isOpen: false,
|
|
586
|
-
openOrClosed: 'arrow_right',
|
|
587
557
|
hasCheckbox: false,
|
|
588
558
|
hasIcon: false,
|
|
589
559
|
hasHover: true,
|
|
@@ -7,9 +7,9 @@ export class TttxDataPattern {
|
|
|
7
7
|
this.filterheader = 'Filter';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, null, h("div", { class: "container" }, h("tttx-
|
|
10
|
+
return (h(Host, null, h("div", { class: "container" }, h("tttx-toolbar_1_5_0", { border: true }, h("span", { slot: "before" }, h("tttx-sorter_1_5_0", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorteroptions, defaultOption: "Sort by" }), h("tttx-filter_1_5_0", { "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_5_0", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: "Search", type: "text", maxlength: 30 }))), h("tttx-toolbar_1_5_0", { border: false }, h("span", { slot: "before" }, h("tttx-button_1_5_0", { design: "primary", icon: "add" }, "Add"))), h("tttx-list_1_5_0", { data: this.data }))));
|
|
11
11
|
}
|
|
12
|
-
static get is() { return "tttx-data-
|
|
12
|
+
static get is() { return "tttx-data-pattern_1_5_0"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
15
15
|
return {
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
10
|
const Default = ({ data, sorterOptions, filterOptions }) => `
|
|
11
|
-
<tttx-data-
|
|
11
|
+
<tttx-data-pattern_1_5_0 id="datapatternlist"></tttx-data-pattern_1_5_0>
|
|
12
12
|
<script>
|
|
13
13
|
const element = document.getElementById('datapatternlist');
|
|
14
14
|
element.data = ${JSON.stringify(data)};
|
|
@@ -19,10 +19,10 @@ const Default = ({ data, sorterOptions, filterOptions }) => `
|
|
|
19
19
|
export const WIPDefaultDataPattern = Default.bind({});
|
|
20
20
|
WIPDefaultDataPattern.args = {
|
|
21
21
|
data: [
|
|
22
|
-
{ icon: 'chevron_right', element: '<span><tttx-
|
|
23
|
-
{ icon: 'chevron_right', element: '<span><tttx-
|
|
24
|
-
{ icon: 'chevron_right', element: '<span><tttx-
|
|
25
|
-
{ icon: 'chevron_right', element: '<span><tttx-
|
|
22
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon_1_5_0 icon="egg" /></span> Demulon 1,000,000' },
|
|
23
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon_1_5_0 icon="egg" color="red" /></span> Patrick' },
|
|
24
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon_1_5_0 icon="add" /></span> Lee' },
|
|
25
|
+
{ icon: 'chevron_right', element: '<span><tttx-icon_1_5_0 icon="egg" /></span> Ben' },
|
|
26
26
|
],
|
|
27
27
|
sorterOptions: {
|
|
28
28
|
sorterOptions: [{ optionLabel: 'Name' }, { optionLabel: 'Age' }],
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/* tttx custom elements */
|
|
2
|
-
export { TttxButton as
|
|
3
|
-
export { TttxCheckboxGroupCaption as
|
|
4
|
-
export { TttxCheckboxGroupHeading as
|
|
5
|
-
export { TttxCheckboxGroup as
|
|
6
|
-
export { TttxCheckbox as
|
|
7
|
-
export { TttxDataPattern as
|
|
8
|
-
export { TttxDialogBox as
|
|
9
|
-
export { TttxDialog as
|
|
10
|
-
export { TttxExpander as
|
|
11
|
-
export { TttxFilter as
|
|
12
|
-
export { TttxForm as
|
|
13
|
-
export { TttxIcon as
|
|
14
|
-
export { TttxKeyvalueBlock as
|
|
15
|
-
export { TttxList as
|
|
16
|
-
export { TttxLoadingSpinner as
|
|
17
|
-
export { TttxMultiselectBox as
|
|
18
|
-
export { TttxPercentageBar as
|
|
19
|
-
export { TttxQrCode as
|
|
20
|
-
export { TttxSelectBox as
|
|
21
|
-
export { TttxSorter as
|
|
22
|
-
export { TttxInput as
|
|
23
|
-
export { TttxTabs as
|
|
24
|
-
export { TttxTag as
|
|
25
|
-
export { TttxTextarea as
|
|
26
|
-
export { TttxToolbar as
|
|
27
|
-
export { TttxTreeView as
|
|
2
|
+
export { TttxButton as TttxButton_1_5_0 } from '../types/components/atoms/tttx-button/tttx-button';
|
|
3
|
+
export { TttxCheckboxGroupCaption as TttxCheckboxGroupCaption_1_5_0 } from '../types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption';
|
|
4
|
+
export { TttxCheckboxGroupHeading as TttxCheckboxGroupHeading_1_5_0 } from '../types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading';
|
|
5
|
+
export { TttxCheckboxGroup as TttxCheckboxGroup_1_5_0 } from '../types/components/molecules/tttx-checkbox-group/tttx-checkbox-group';
|
|
6
|
+
export { TttxCheckbox as TttxCheckbox_1_5_0 } from '../types/components/atoms/tttx-checkbox/tttx-checkbox';
|
|
7
|
+
export { TttxDataPattern as TttxDataPattern_1_5_0 } from '../types/components/organisms/tttx-data-pattern/tttx-data-pattern';
|
|
8
|
+
export { TttxDialogBox as TttxDialogBox_1_5_0 } from '../types/components/molecules/tttx-dialog-box/tttx-dialog-box';
|
|
9
|
+
export { TttxDialog as TttxDialog_1_5_0 } from '../types/components/molecules/tttx-dialog/tttx-dialog';
|
|
10
|
+
export { TttxExpander as TttxExpander_1_5_0 } from '../types/components/molecules/tttx-expander/tttx-expander';
|
|
11
|
+
export { TttxFilter as TttxFilter_1_5_0 } from '../types/components/molecules/tttx-filter/tttx-filter';
|
|
12
|
+
export { TttxForm as TttxForm_1_5_0 } from '../types/components/molecules/tttx-form/tttx-form';
|
|
13
|
+
export { TttxIcon as TttxIcon_1_5_0 } from '../types/components/atoms/tttx-icon/tttx-icon';
|
|
14
|
+
export { TttxKeyvalueBlock as TttxKeyvalueBlock_1_5_0 } from '../types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block';
|
|
15
|
+
export { TttxList as TttxList_1_5_0 } from '../types/components/molecules/tttx-list/tttx-list';
|
|
16
|
+
export { TttxLoadingSpinner as TttxLoadingSpinner_1_5_0 } from '../types/components/atoms/tttx-loading-spinner/tttx-loading-spinner';
|
|
17
|
+
export { TttxMultiselectBox as TttxMultiselectBox_1_5_0 } from '../types/components/molecules/tttx-multiselect-box/tttx-multiselect-box';
|
|
18
|
+
export { TttxPercentageBar as TttxPercentageBar_1_5_0 } from '../types/components/atoms/tttx-percentage-bar/tttx-percentage-bar';
|
|
19
|
+
export { TttxQrCode as TttxQrcode_1_5_0 } from '../types/components/atoms/tttx-qrcode/tttx-qrcode';
|
|
20
|
+
export { TttxSelectBox as TttxSelectBox_1_5_0 } from '../types/components/molecules/tttx-select-box/tttx-select-box';
|
|
21
|
+
export { TttxSorter as TttxSorter_1_5_0 } from '../types/components/molecules/tttx-sorter/tttx-sorter';
|
|
22
|
+
export { TttxInput as TttxStandaloneInput_1_5_0 } from '../types/components/molecules/tttx-standalone-input/tttx-standalone-input';
|
|
23
|
+
export { TttxTabs as TttxTabs_1_5_0 } from '../types/components/molecules/tttx-tabs/tttx-tabs';
|
|
24
|
+
export { TttxTag as TttxTag_1_5_0 } from '../types/components/atoms/tttx-tag/tttx-tag';
|
|
25
|
+
export { TttxTextarea as TttxTextarea_1_5_0 } from '../types/components/molecules/tttx-textarea/tttx-textarea';
|
|
26
|
+
export { TttxToolbar as TttxToolbar_1_5_0 } from '../types/components/molecules/tttx-toolbar/tttx-toolbar';
|
|
27
|
+
export { TttxTreeView as TttxTreeView_1_5_0 } from '../types/components/molecules/tttx-tree-view/tttx-tree-view';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Used to manually set the base path where assets can be found.
|