@3t-transform/threeteeui 1.9.63 → 1.9.64
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/{index-ec367fa3.js → index-1249dc08.js} +12 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tttx-action-dropdown_1_9_63.cjs.entry.js → tttx-action-dropdown_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-button-v2_1_9_64.cjs.entry.js +121 -0
- package/dist/cjs/{tttx-button_1_9_63.cjs.entry.js → tttx-button_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-chart_1_9_63.cjs.entry.js → tttx-chart_1_9_64.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_63.cjs.entry.js → tttx-checkbox-group-caption_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_63.cjs.entry.js → tttx-checkbox-group-heading_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group_1_9_63.cjs.entry.js → tttx-checkbox-group_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox_1_9_63.cjs.entry.js → tttx-checkbox_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-comments_1_9_63.cjs.entry.js → tttx-comments_1_9_64.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-data-pattern_1_9_63.cjs.entry.js → tttx-data-pattern_1_9_64.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-datacard_1_9_63.cjs.entry.js → tttx-datacard_1_9_64.cjs.entry.js} +5 -5
- package/dist/cjs/tttx-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/{tttx-dialog-box_1_9_63.cjs.entry.js → tttx-dialog-box_1_9_64.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog_1_9_63.cjs.entry.js → tttx-dialog_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-expander_1_9_63.cjs.entry.js → tttx-expander_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-filter_1_9_63_4.cjs.entry.js → tttx-filter_1_9_64_4.cjs.entry.js} +10 -10
- package/dist/cjs/{tttx-form_1_9_63.cjs.entry.js → tttx-form_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-graph_1_9_63.cjs.entry.js → tttx-graph_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-icon_1_9_63.cjs.entry.js → tttx-icon_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-keyvalue-block_1_9_63.cjs.entry.js → tttx-keyvalue-block_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-loading-spinner_1_9_63_3.cjs.entry.js → tttx-loading-spinner_1_9_64_3.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-multiselect-box_1_9_63.cjs.entry.js → tttx-multiselect-box_1_9_64.cjs.entry.js} +8 -8
- package/dist/cjs/{tttx-percentage-bar_1_9_63.cjs.entry.js → tttx-percentage-bar_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-qrcode_1_9_63.cjs.entry.js → tttx-qrcode_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-select-box_1_9_63.cjs.entry.js → tttx-select-box_1_9_64.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-skeleton_loader_1_9_63.cjs.entry.js → tttx-skeleton_loader_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-table_1_9_63.cjs.entry.js → tttx-table_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tabs_1_9_63.cjs.entry.js → tttx-tabs_1_9_64.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-textarea_1_9_63.cjs.entry.js → tttx-textarea_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-toggle_1_9_63.cjs.entry.js → tttx-toggle_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view_1_9_63.cjs.entry.js → tttx-tree-view_1_9_64.cjs.entry.js} +4 -4
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- 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 +286 -0
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +386 -0
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +197 -0
- 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-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 +3 -3
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +4 -4
- 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-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.js +1 -1
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
- 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.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +1 -1
- 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 +35 -34
- package/dist/components/index.js +35 -34
- package/dist/components/tttx-action-dropdown_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_63.js → tttx-action-dropdown_1_9_64.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_63.d.ts → tttx-button-v2_1_9_64.d.ts} +4 -4
- package/dist/components/tttx-button-v2_1_9_64.js +156 -0
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-dialog_1_9_63.d.ts → tttx-button_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_63.js → tttx-button_1_9_64.js} +2 -2
- package/dist/components/{tttx-table_1_9_63.d.ts → tttx-chart_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-chart_1_9_63.js → tttx-chart_1_9_64.js} +10 -10
- package/dist/components/tttx-checkbox-group-caption_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_63.js → tttx-checkbox-group-caption_1_9_64.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_63.js → tttx-checkbox-group-heading_1_9_64.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_63.js → tttx-checkbox-group_1_9_64.js} +5 -5
- package/dist/components/{tttx-comments_1_9_63.d.ts → tttx-checkbox_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_63.js → tttx-checkbox_1_9_64.js} +7 -7
- package/dist/components/tttx-comments_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-comments_1_9_63.js → tttx-comments_1_9_64.js} +9 -9
- package/dist/components/tttx-data-pattern_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_63.js → tttx-data-pattern_1_9_64.js} +16 -16
- package/dist/components/tttx-datacard_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_63.js → tttx-datacard_1_9_64.js} +10 -10
- package/dist/components/tttx-date-range-picker.js +3 -3
- package/dist/components/tttx-dialog-box_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_63.js → tttx-dialog-box_1_9_64.js} +9 -9
- package/dist/components/{tttx-button_1_9_63.d.ts → tttx-dialog_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_63.js → tttx-dialog_1_9_64.js} +8 -8
- package/dist/components/tttx-expander_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_63.js → tttx-expander_1_9_64.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-filter_1_9_63.d.ts → tttx-filter_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_63.js → tttx-filter_1_9_64.js} +2 -2
- package/dist/components/{tttx-form_1_9_63.d.ts → tttx-form_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_63.js → tttx-form_1_9_64.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-graph_1_9_63.d.ts → tttx-graph_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_63.js → tttx-graph_1_9_64.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_9_63.d.ts → tttx-icon_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_63.js → tttx-icon_1_9_64.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_63.js → tttx-keyvalue-block_1_9_64.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-icon_1_9_63.d.ts → tttx-list_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_63.js → tttx-list_1_9_64.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_63.js → tttx-loading-spinner_1_9_64.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_63.js → tttx-multiselect-box_1_9_64.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_63.js → tttx-percentage-bar_1_9_64.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_63.d.ts → tttx-qrcode_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_63.js → tttx-qrcode_1_9_64.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_63.js → tttx-select-box_1_9_64.js} +2 -2
- package/dist/components/tttx-skeleton_loader_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_63.js → tttx-skeleton_loader_1_9_64.js} +5 -5
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_63.js → tttx-sorter_1_9_64.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_63.js → tttx-standalone-input_1_9_64.js} +2 -2
- package/dist/components/{tttx-chart_1_9_63.d.ts → tttx-table_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_63.js → tttx-table_1_9_64.js} +5 -5
- package/dist/components/{tttx-tabs_1_9_63.d.ts → tttx-tabs_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_63.js → tttx-tabs_1_9_64.js} +9 -9
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-tag_1_9_63.d.ts → tttx-tag_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_63.js → tttx-tag_1_9_64.js} +2 -2
- package/dist/components/tttx-textarea_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_63.js → tttx-textarea_1_9_64.js} +6 -6
- package/dist/components/tttx-toggle_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_63.js → tttx-toggle_1_9_64.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_63.js → tttx-toolbar_1_9_64.js} +2 -2
- package/dist/components/tttx-tree-view_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_63.js → tttx-tree-view_1_9_64.js} +9 -9
- package/dist/esm/{index-3d473f8b.js → index-6b9af9c9.js} +12 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tttx-action-dropdown_1_9_63.entry.js → tttx-action-dropdown_1_9_64.entry.js} +3 -3
- package/dist/esm/tttx-button-v2_1_9_64.entry.js +117 -0
- package/dist/esm/{tttx-button_1_9_63.entry.js → tttx-button_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-chart_1_9_63.entry.js → tttx-chart_1_9_64.entry.js} +4 -4
- package/dist/esm/{tttx-checkbox-group-caption_1_9_63.entry.js → tttx-checkbox-group-caption_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-heading_1_9_63.entry.js → tttx-checkbox-group-heading_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group_1_9_63.entry.js → tttx-checkbox-group_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox_1_9_63.entry.js → tttx-checkbox_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-comments_1_9_63.entry.js → tttx-comments_1_9_64.entry.js} +5 -5
- package/dist/esm/{tttx-data-pattern_1_9_63.entry.js → tttx-data-pattern_1_9_64.entry.js} +6 -6
- package/dist/esm/{tttx-datacard_1_9_63.entry.js → tttx-datacard_1_9_64.entry.js} +5 -5
- package/dist/esm/tttx-date-range-picker.entry.js +2 -2
- package/dist/esm/{tttx-dialog-box_1_9_63.entry.js → tttx-dialog-box_1_9_64.entry.js} +4 -4
- package/dist/esm/{tttx-dialog_1_9_63.entry.js → tttx-dialog_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-expander_1_9_63.entry.js → tttx-expander_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-filter_1_9_63_4.entry.js → tttx-filter_1_9_64_4.entry.js} +7 -7
- package/dist/esm/{tttx-form_1_9_63.entry.js → tttx-form_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-graph_1_9_63.entry.js → tttx-graph_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-icon_1_9_63.entry.js → tttx-icon_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-keyvalue-block_1_9_63.entry.js → tttx-keyvalue-block_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-loading-spinner_1_9_63_3.entry.js → tttx-loading-spinner_1_9_64_3.entry.js} +5 -5
- package/dist/esm/{tttx-multiselect-box_1_9_63.entry.js → tttx-multiselect-box_1_9_64.entry.js} +8 -8
- package/dist/esm/{tttx-percentage-bar_1_9_63.entry.js → tttx-percentage-bar_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-qrcode_1_9_63.entry.js → tttx-qrcode_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-select-box_1_9_63.entry.js → tttx-select-box_1_9_64.entry.js} +7 -7
- package/dist/esm/{tttx-skeleton_loader_1_9_63.entry.js → tttx-skeleton_loader_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-table_1_9_63.entry.js → tttx-table_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-tabs_1_9_63.entry.js → tttx-tabs_1_9_64.entry.js} +5 -5
- package/dist/esm/{tttx-textarea_1_9_63.entry.js → tttx-textarea_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-toggle_1_9_63.entry.js → tttx-toggle_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view_1_9_63.entry.js → tttx-tree-view_1_9_64.entry.js} +4 -4
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-477b66de.entry.js → p-04acb4f7.entry.js} +1 -1
- package/dist/tttx/{p-f1e945ba.entry.js → p-1b8af0a1.entry.js} +1 -1
- package/dist/tttx/p-1c0db631.entry.js +1 -0
- package/dist/tttx/{p-b44ddcb7.entry.js → p-210a3640.entry.js} +1 -1
- package/dist/tttx/{p-7bfa4e1e.entry.js → p-28528c3a.entry.js} +1 -1
- package/dist/tttx/{p-1814eb61.entry.js → p-28902955.entry.js} +1 -1
- package/dist/tttx/{p-bc8c1d08.entry.js → p-2a6e57b3.entry.js} +1 -1
- package/dist/tttx/{p-d62c8ed2.entry.js → p-46853736.entry.js} +1 -1
- package/dist/tttx/{p-a800aa5d.entry.js → p-46933761.entry.js} +1 -1
- package/dist/tttx/{p-a1ba99fb.entry.js → p-46985553.entry.js} +1 -1
- package/dist/tttx/{p-cb3b393b.entry.js → p-478169f8.entry.js} +1 -1
- package/dist/tttx/{p-b4b5e1e1.entry.js → p-4bc84dcf.entry.js} +1 -1
- package/dist/tttx/{p-54060e46.entry.js → p-4e8dee24.entry.js} +1 -1
- package/dist/tttx/{p-c9e7d9fa.entry.js → p-655cebb7.entry.js} +1 -1
- package/dist/tttx/{p-2636cba4.entry.js → p-6ae828ed.entry.js} +1 -1
- package/dist/tttx/{p-24eef142.entry.js → p-72aa3209.entry.js} +1 -1
- package/dist/tttx/{p-a7527509.entry.js → p-753a802a.entry.js} +1 -1
- package/dist/tttx/{p-13d3d63c.entry.js → p-79a18842.entry.js} +1 -1
- package/dist/tttx/{p-218f3309.entry.js → p-8db27f20.entry.js} +1 -1
- package/dist/tttx/{p-972b7449.entry.js → p-92b48e8e.entry.js} +1 -1
- package/dist/tttx/{p-8be90d8a.entry.js → p-95ea704b.entry.js} +1 -1
- package/dist/tttx/{p-edf27c73.entry.js → p-964b5e1a.entry.js} +1 -1
- package/dist/tttx/{p-e84965f0.entry.js → p-99cee169.entry.js} +1 -1
- package/dist/tttx/{p-a474dc05.entry.js → p-a380f600.entry.js} +1 -1
- package/dist/tttx/{p-2b0fc913.js → p-c2a82822.js} +1 -1
- package/dist/tttx/{p-fac3056d.entry.js → p-ce6a69bc.entry.js} +1 -1
- package/dist/tttx/{p-61af5028.entry.js → p-cfc7f861.entry.js} +1 -1
- package/dist/tttx/{p-19294325.entry.js → p-e0bd4daa.entry.js} +1 -1
- package/dist/tttx/{p-67f75171.entry.js → p-e7c92d26.entry.js} +1 -1
- package/dist/tttx/{p-acb9e007.entry.js → p-e8d02dd3.entry.js} +1 -1
- package/dist/tttx/{p-5f35edd8.entry.js → p-eda88cd9.entry.js} +1 -1
- package/dist/tttx/{p-7c7e8951.entry.js → p-ffb09d64.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.d.ts +32 -0
- package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.stories.d.ts +64 -0
- 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.d.ts +467 -407
- package/package.json +1 -1
- package/dist/components/tttx-action-dropdown_1_9_63.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_63.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_63.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_63.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_63.d.ts +0 -11
- package/dist/components/tttx-datacard_1_9_63.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_63.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_63.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_63.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_63.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_63.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_63.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_63.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_63.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_63.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_63.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_63.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_63.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_63.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_63.d.ts +0 -11
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { Host, h, } from '@stencil/core';
|
|
2
|
+
export class TttxButton {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.toggleDropdown = () => {
|
|
5
|
+
if (!this.isDisabled) {
|
|
6
|
+
this.dropdownOpen = !this.dropdownOpen;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
this.handleDropdownItemClick = (item) => {
|
|
10
|
+
this.dropdownOpen = false;
|
|
11
|
+
this.buttonDropdownChange.emit(item);
|
|
12
|
+
};
|
|
13
|
+
this.notext = false;
|
|
14
|
+
this.icon = undefined;
|
|
15
|
+
this.label = undefined;
|
|
16
|
+
this.iconcolor = 'black';
|
|
17
|
+
this.iconposition = 'left';
|
|
18
|
+
this.iconStart = undefined;
|
|
19
|
+
this.iconEnd = undefined;
|
|
20
|
+
this.design = 'primary';
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.type = 'button';
|
|
23
|
+
this.href = undefined;
|
|
24
|
+
this.options = [];
|
|
25
|
+
this.size = 'M';
|
|
26
|
+
this.dropdownOpen = false;
|
|
27
|
+
}
|
|
28
|
+
get isDisabled() {
|
|
29
|
+
return this.disabled || this.design === 'disabled';
|
|
30
|
+
}
|
|
31
|
+
get parsedOptions() {
|
|
32
|
+
if (Array.isArray(this.options)) {
|
|
33
|
+
return this.options.map(opt => (typeof opt === 'string' ? { label: opt } : opt));
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
const parsed = JSON.parse(this.options);
|
|
37
|
+
return parsed.map((opt) => (typeof opt === 'string' ? { label: opt } : opt));
|
|
38
|
+
}
|
|
39
|
+
catch (_a) {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
get iconSize() {
|
|
44
|
+
switch (this.size) {
|
|
45
|
+
case 'L':
|
|
46
|
+
return 24;
|
|
47
|
+
case 'M':
|
|
48
|
+
return 20;
|
|
49
|
+
case 'S':
|
|
50
|
+
default:
|
|
51
|
+
return 16;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
const validDesigns = [
|
|
56
|
+
'primary',
|
|
57
|
+
'secondary',
|
|
58
|
+
'default',
|
|
59
|
+
'disabled',
|
|
60
|
+
'danger',
|
|
61
|
+
'light',
|
|
62
|
+
'success',
|
|
63
|
+
'warning',
|
|
64
|
+
'transparent'
|
|
65
|
+
];
|
|
66
|
+
const validSizes = ['S', 'M', 'L'];
|
|
67
|
+
if (!validDesigns.includes(this.design)) {
|
|
68
|
+
this.design = 'primary';
|
|
69
|
+
}
|
|
70
|
+
if (!validSizes.includes(this.size)) {
|
|
71
|
+
this.size = 'M';
|
|
72
|
+
}
|
|
73
|
+
if (['primary', 'danger', 'light', 'success', 'warning'].includes(this.design)) {
|
|
74
|
+
this.iconcolor = 'white';
|
|
75
|
+
}
|
|
76
|
+
if (this.design === 'transparent') {
|
|
77
|
+
this.iconcolor = '#1479c6';
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
handleClickOutside(event) {
|
|
81
|
+
if (this.dropdownOpen && !this.host.contains(event.target)) {
|
|
82
|
+
this.dropdownOpen = false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
renderButtonContent() {
|
|
86
|
+
var _a;
|
|
87
|
+
return (h("div", { class: "button-content" }, this.iconStart && (h("div", { class: "icon-left" }, h("tttx-icon_1_9_64", { icon: this.iconStart, color: this.iconcolor, size: this.iconSize }))), !this.notext && (h("div", { class: "label-text" }, (_a = this.label) !== null && _a !== void 0 ? _a : h("slot", null))), this.iconEnd && (h("div", { class: "icon-right" }, h("tttx-icon_1_9_64", { icon: this.iconEnd, color: this.iconcolor, size: this.iconSize }))), this.type === 'dropdown' && (h("div", { class: "dropdown-arrow" }, h("tttx-icon_1_9_64", { icon: "keyboard_arrow_down", color: this.iconcolor, size: this.iconSize })))));
|
|
88
|
+
}
|
|
89
|
+
renderDropdownList() {
|
|
90
|
+
if (this.type !== 'dropdown' || !this.dropdownOpen)
|
|
91
|
+
return null;
|
|
92
|
+
return (h("ul", { class: "dropdown-list", role: "listbox" }, this.parsedOptions.map((item, index) => (h("li", { class: "dropdown-option", role: "option", tabindex: 0, key: index, onClick: () => this.handleDropdownItemClick(item.label) }, h("div", { class: "dropdown-item-content" }, item.icon && (h("tttx-icon_1_9_64", { icon: item.icon, color: "black", size: this.iconSize, class: "dropdown-item-icon" })), h("span", { class: "dropdown-item-label" }, item.label)))))));
|
|
93
|
+
}
|
|
94
|
+
render() {
|
|
95
|
+
const classes = [
|
|
96
|
+
'button',
|
|
97
|
+
`btn-${this.design}`,
|
|
98
|
+
this.iconStart ? 'icon-start' : '',
|
|
99
|
+
this.iconEnd ? 'icon-end' : '',
|
|
100
|
+
this.notext ? 'notext' : '',
|
|
101
|
+
this.type === 'dropdown' ? 'dropdown-button' : '',
|
|
102
|
+
`btn-size-${this.size.toLowerCase()}`
|
|
103
|
+
]
|
|
104
|
+
.filter(Boolean)
|
|
105
|
+
.join(' ');
|
|
106
|
+
return (h(Host, null, h("div", { class: "button-wrapper" }, h("button", { class: classes, disabled: this.isDisabled, onClick: this.type === 'dropdown' ? this.toggleDropdown : undefined, "aria-haspopup": this.type === 'dropdown' ? 'listbox' : undefined, "aria-expanded": this.type === 'dropdown' ? String(this.dropdownOpen) : undefined }, this.renderButtonContent()), this.renderDropdownList())));
|
|
107
|
+
}
|
|
108
|
+
static get is() { return "tttx-button-v2_1_9_64"; }
|
|
109
|
+
static get encapsulation() { return "shadow"; }
|
|
110
|
+
static get originalStyleUrls() {
|
|
111
|
+
return {
|
|
112
|
+
"$": ["tttx-button-v2.scss"]
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
static get styleUrls() {
|
|
116
|
+
return {
|
|
117
|
+
"$": ["tttx-button-v2.css"]
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
static get properties() {
|
|
121
|
+
return {
|
|
122
|
+
"notext": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "boolean",
|
|
127
|
+
"resolved": "boolean",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": ""
|
|
135
|
+
},
|
|
136
|
+
"attribute": "notext",
|
|
137
|
+
"reflect": false,
|
|
138
|
+
"defaultValue": "false"
|
|
139
|
+
},
|
|
140
|
+
"icon": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"mutable": false,
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "string",
|
|
145
|
+
"resolved": "string",
|
|
146
|
+
"references": {}
|
|
147
|
+
},
|
|
148
|
+
"required": false,
|
|
149
|
+
"optional": true,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [],
|
|
152
|
+
"text": ""
|
|
153
|
+
},
|
|
154
|
+
"attribute": "icon",
|
|
155
|
+
"reflect": false
|
|
156
|
+
},
|
|
157
|
+
"label": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "string",
|
|
162
|
+
"resolved": "string",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": true,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"attribute": "label",
|
|
172
|
+
"reflect": false
|
|
173
|
+
},
|
|
174
|
+
"iconcolor": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"mutable": true,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "string",
|
|
179
|
+
"resolved": "string",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"attribute": "iconcolor",
|
|
189
|
+
"reflect": false,
|
|
190
|
+
"defaultValue": "'black'"
|
|
191
|
+
},
|
|
192
|
+
"iconposition": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "'left' | 'right'",
|
|
197
|
+
"resolved": "\"left\" | \"right\"",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": false,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": ""
|
|
205
|
+
},
|
|
206
|
+
"attribute": "iconposition",
|
|
207
|
+
"reflect": false,
|
|
208
|
+
"defaultValue": "'left'"
|
|
209
|
+
},
|
|
210
|
+
"iconStart": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "string",
|
|
215
|
+
"resolved": "string",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": true,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": ""
|
|
223
|
+
},
|
|
224
|
+
"attribute": "icon-start",
|
|
225
|
+
"reflect": false
|
|
226
|
+
},
|
|
227
|
+
"iconEnd": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "string",
|
|
232
|
+
"resolved": "string",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": true,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"attribute": "icon-end",
|
|
242
|
+
"reflect": false
|
|
243
|
+
},
|
|
244
|
+
"design": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "| 'primary'\n | 'secondary'\n | 'default'\n | 'disabled'\n | 'danger'\n | 'light'\n | 'success'\n | 'warning'\n | 'transparent'",
|
|
249
|
+
"resolved": "\"danger\" | \"default\" | \"disabled\" | \"light\" | \"primary\" | \"secondary\" | \"success\" | \"transparent\" | \"warning\"",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": ""
|
|
257
|
+
},
|
|
258
|
+
"attribute": "design",
|
|
259
|
+
"reflect": false,
|
|
260
|
+
"defaultValue": "'primary'"
|
|
261
|
+
},
|
|
262
|
+
"disabled": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"mutable": false,
|
|
265
|
+
"complexType": {
|
|
266
|
+
"original": "boolean",
|
|
267
|
+
"resolved": "boolean",
|
|
268
|
+
"references": {}
|
|
269
|
+
},
|
|
270
|
+
"required": false,
|
|
271
|
+
"optional": false,
|
|
272
|
+
"docs": {
|
|
273
|
+
"tags": [],
|
|
274
|
+
"text": ""
|
|
275
|
+
},
|
|
276
|
+
"attribute": "disabled",
|
|
277
|
+
"reflect": true,
|
|
278
|
+
"defaultValue": "false"
|
|
279
|
+
},
|
|
280
|
+
"type": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"mutable": false,
|
|
283
|
+
"complexType": {
|
|
284
|
+
"original": "'button' | 'dropdown'",
|
|
285
|
+
"resolved": "\"button\" | \"dropdown\"",
|
|
286
|
+
"references": {}
|
|
287
|
+
},
|
|
288
|
+
"required": false,
|
|
289
|
+
"optional": true,
|
|
290
|
+
"docs": {
|
|
291
|
+
"tags": [],
|
|
292
|
+
"text": ""
|
|
293
|
+
},
|
|
294
|
+
"attribute": "type",
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"defaultValue": "'button'"
|
|
297
|
+
},
|
|
298
|
+
"href": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"mutable": false,
|
|
301
|
+
"complexType": {
|
|
302
|
+
"original": "string",
|
|
303
|
+
"resolved": "string",
|
|
304
|
+
"references": {}
|
|
305
|
+
},
|
|
306
|
+
"required": false,
|
|
307
|
+
"optional": true,
|
|
308
|
+
"docs": {
|
|
309
|
+
"tags": [],
|
|
310
|
+
"text": ""
|
|
311
|
+
},
|
|
312
|
+
"attribute": "href",
|
|
313
|
+
"reflect": false
|
|
314
|
+
},
|
|
315
|
+
"options": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"mutable": false,
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "string | { label: string; icon?: string }[]",
|
|
320
|
+
"resolved": "string | { label: string; icon?: string; }[]",
|
|
321
|
+
"references": {}
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"optional": true,
|
|
325
|
+
"docs": {
|
|
326
|
+
"tags": [],
|
|
327
|
+
"text": ""
|
|
328
|
+
},
|
|
329
|
+
"attribute": "options",
|
|
330
|
+
"reflect": false,
|
|
331
|
+
"defaultValue": "[]"
|
|
332
|
+
},
|
|
333
|
+
"size": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"mutable": false,
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "'S' | 'M' | 'L'",
|
|
338
|
+
"resolved": "\"L\" | \"M\" | \"S\"",
|
|
339
|
+
"references": {}
|
|
340
|
+
},
|
|
341
|
+
"required": false,
|
|
342
|
+
"optional": false,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [],
|
|
345
|
+
"text": ""
|
|
346
|
+
},
|
|
347
|
+
"attribute": "size",
|
|
348
|
+
"reflect": false,
|
|
349
|
+
"defaultValue": "'M'"
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
static get states() {
|
|
354
|
+
return {
|
|
355
|
+
"dropdownOpen": {}
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
static get events() {
|
|
359
|
+
return [{
|
|
360
|
+
"method": "buttonDropdownChange",
|
|
361
|
+
"name": "buttonDropdownChange",
|
|
362
|
+
"bubbles": true,
|
|
363
|
+
"cancelable": true,
|
|
364
|
+
"composed": true,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [],
|
|
367
|
+
"text": ""
|
|
368
|
+
},
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "string",
|
|
371
|
+
"resolved": "string",
|
|
372
|
+
"references": {}
|
|
373
|
+
}
|
|
374
|
+
}];
|
|
375
|
+
}
|
|
376
|
+
static get elementRef() { return "host"; }
|
|
377
|
+
static get listeners() {
|
|
378
|
+
return [{
|
|
379
|
+
"name": "click",
|
|
380
|
+
"method": "handleClickOutside",
|
|
381
|
+
"target": "document",
|
|
382
|
+
"capture": false,
|
|
383
|
+
"passive": false
|
|
384
|
+
}];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Atoms/Button v2',
|
|
3
|
+
component: 'tttx-button-v2_1_9_64',
|
|
4
|
+
argTypes: {
|
|
5
|
+
showIconStart: {
|
|
6
|
+
control: 'boolean',
|
|
7
|
+
description: 'Toggle iconStart',
|
|
8
|
+
},
|
|
9
|
+
iconStart: {
|
|
10
|
+
control: 'text',
|
|
11
|
+
description: 'Icon to show at the start (left)',
|
|
12
|
+
},
|
|
13
|
+
showIconEnd: {
|
|
14
|
+
control: 'boolean',
|
|
15
|
+
description: 'Toggle iconEnd',
|
|
16
|
+
},
|
|
17
|
+
iconEnd: {
|
|
18
|
+
control: 'text',
|
|
19
|
+
description: 'Icon to show at the end (right)',
|
|
20
|
+
},
|
|
21
|
+
label: { control: 'text' },
|
|
22
|
+
design: {
|
|
23
|
+
control: { type: 'select' },
|
|
24
|
+
options: ['primary', 'secondary', 'success', 'warning', 'danger', 'light', 'transparent'],
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
control: { type: 'select' },
|
|
28
|
+
options: ['S', 'M', 'L'],
|
|
29
|
+
defaultValue: 'M',
|
|
30
|
+
description: 'Size of the button: Small (S), Medium (M), or Large (L)',
|
|
31
|
+
},
|
|
32
|
+
notext: { control: 'boolean' },
|
|
33
|
+
disabled: { control: 'boolean' },
|
|
34
|
+
type: {
|
|
35
|
+
control: { type: 'select' },
|
|
36
|
+
options: ['button', 'dropdown'],
|
|
37
|
+
},
|
|
38
|
+
options: {
|
|
39
|
+
control: 'object',
|
|
40
|
+
description: 'Options for dropdown button',
|
|
41
|
+
defaultValue: [],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const renderButtons = (args) => {
|
|
46
|
+
const getIconStartAttr = () => {
|
|
47
|
+
return args.showIconStart && args.iconStart ? `icon-start="${args.iconStart}"` : '';
|
|
48
|
+
};
|
|
49
|
+
const getIconEndAttr = () => {
|
|
50
|
+
if (args.type === 'dropdown')
|
|
51
|
+
return '';
|
|
52
|
+
return args.showIconEnd && args.iconEnd ? `icon-end="${args.iconEnd}"` : '';
|
|
53
|
+
};
|
|
54
|
+
const getSizeAttr = () => {
|
|
55
|
+
return args.size ? `size="${args.size}"` : '';
|
|
56
|
+
};
|
|
57
|
+
const getCursorStyle = () => (args.disabled ? 'cursor: not-allowed;' : 'pointer');
|
|
58
|
+
const label = args.label || (args.design === 'secondary' ? 'Secondary' : 'Primary');
|
|
59
|
+
if (args.type === 'dropdown') {
|
|
60
|
+
return `
|
|
61
|
+
<div style="width: 250px;">
|
|
62
|
+
<tttx-button-v2_1_9_64
|
|
63
|
+
design="${args.design}"
|
|
64
|
+
${getSizeAttr()}
|
|
65
|
+
type="dropdown"
|
|
66
|
+
${args.disabled ? 'disabled' : ''}
|
|
67
|
+
options='${JSON.stringify(args.options || [])}'
|
|
68
|
+
${getIconStartAttr()}
|
|
69
|
+
${getIconEndAttr()}
|
|
70
|
+
>
|
|
71
|
+
${label}
|
|
72
|
+
</tttx-button-v2_1_9_64>
|
|
73
|
+
</div>
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
const sections = [];
|
|
77
|
+
// Standard Button
|
|
78
|
+
sections.push(`
|
|
79
|
+
<h2>Standard</h2>
|
|
80
|
+
<tttx-button-v2_1_9_64
|
|
81
|
+
design="${args.design}"
|
|
82
|
+
${getSizeAttr()}
|
|
83
|
+
${args.disabled ? 'disabled' : ''}
|
|
84
|
+
${args.notext ? 'notext' : ''}
|
|
85
|
+
style="${getCursorStyle()}"
|
|
86
|
+
>
|
|
87
|
+
${!args.notext ? label : ''}
|
|
88
|
+
</tttx-button-v2_1_9_64>
|
|
89
|
+
`);
|
|
90
|
+
// Icon Both Sides
|
|
91
|
+
if (args.showIconStart && args.iconStart && args.showIconEnd && args.iconEnd) {
|
|
92
|
+
sections.push(`
|
|
93
|
+
<hr />
|
|
94
|
+
<h2>Icons on Both Sides</h2>
|
|
95
|
+
<tttx-button-v2_1_9_64
|
|
96
|
+
design="${args.design}"
|
|
97
|
+
${getSizeAttr()}
|
|
98
|
+
${args.disabled ? 'disabled' : ''}
|
|
99
|
+
${args.notext ? 'notext' : ''}
|
|
100
|
+
icon-start="${args.iconStart}"
|
|
101
|
+
icon-end="${args.iconEnd}"
|
|
102
|
+
style="${getCursorStyle()}"
|
|
103
|
+
>
|
|
104
|
+
${!args.notext ? label : ''}
|
|
105
|
+
</tttx-button-v2_1_9_64>
|
|
106
|
+
`);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// Icon Start Only
|
|
110
|
+
if (args.showIconStart && args.iconStart) {
|
|
111
|
+
sections.push(`
|
|
112
|
+
<hr />
|
|
113
|
+
<h2>Icon Left</h2>
|
|
114
|
+
<tttx-button-v2_1_9_64
|
|
115
|
+
design="${args.design}"
|
|
116
|
+
${getSizeAttr()}
|
|
117
|
+
${args.disabled ? 'disabled' : ''}
|
|
118
|
+
${args.notext ? 'notext' : ''}
|
|
119
|
+
icon-start="${args.iconStart}"
|
|
120
|
+
style="${getCursorStyle()}"
|
|
121
|
+
>
|
|
122
|
+
${!args.notext ? label : ''}
|
|
123
|
+
</tttx-button-v2_1_9_64>
|
|
124
|
+
`);
|
|
125
|
+
}
|
|
126
|
+
// Icon End Only
|
|
127
|
+
if (args.showIconEnd && args.iconEnd) {
|
|
128
|
+
sections.push(`
|
|
129
|
+
<hr />
|
|
130
|
+
<h2>Icon Right</h2>
|
|
131
|
+
<tttx-button-v2_1_9_64
|
|
132
|
+
design="${args.design}"
|
|
133
|
+
${getSizeAttr()}
|
|
134
|
+
${args.disabled ? 'disabled' : ''}
|
|
135
|
+
${args.notext ? 'notext' : ''}
|
|
136
|
+
icon-end="${args.iconEnd}"
|
|
137
|
+
style="${getCursorStyle()}"
|
|
138
|
+
>
|
|
139
|
+
${!args.notext ? label : ''}
|
|
140
|
+
</tttx-button-v2_1_9_64>
|
|
141
|
+
`);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
// Icon Only
|
|
145
|
+
if (args.showIconStart && args.iconStart && args.notext) {
|
|
146
|
+
sections.push(`
|
|
147
|
+
<hr />
|
|
148
|
+
<h2>Icon Only</h2>
|
|
149
|
+
<tttx-button-v2_1_9_64
|
|
150
|
+
design="${args.design}"
|
|
151
|
+
${getSizeAttr()}
|
|
152
|
+
style="${getCursorStyle()}"
|
|
153
|
+
icon-start="${args.iconStart}"
|
|
154
|
+
notext
|
|
155
|
+
${args.disabled ? 'disabled' : ''}
|
|
156
|
+
></tttx-button-v2_1_9_64>
|
|
157
|
+
`);
|
|
158
|
+
}
|
|
159
|
+
return sections.join('\n');
|
|
160
|
+
};
|
|
161
|
+
export const Primary = renderButtons.bind({});
|
|
162
|
+
Primary.args = {
|
|
163
|
+
disabled: false,
|
|
164
|
+
label: 'Primary',
|
|
165
|
+
design: 'primary',
|
|
166
|
+
notext: false,
|
|
167
|
+
type: 'button',
|
|
168
|
+
size: 'M',
|
|
169
|
+
showIconStart: true,
|
|
170
|
+
iconStart: 'star',
|
|
171
|
+
showIconEnd: false,
|
|
172
|
+
iconEnd: 'close',
|
|
173
|
+
options: [
|
|
174
|
+
{ label: 'Add worker', icon: 'group' },
|
|
175
|
+
{ label: 'Book training', icon: 'event' },
|
|
176
|
+
{ label: 'New training request', icon: 'school' },
|
|
177
|
+
{ label: 'Add activity', icon: 'description' },
|
|
178
|
+
{ label: 'Add Group', icon: 'grid_view' },
|
|
179
|
+
],
|
|
180
|
+
};
|
|
181
|
+
export const Secondary = renderButtons.bind({});
|
|
182
|
+
Secondary.args = Object.assign(Object.assign({}, Primary.args), { label: 'Secondary', design: 'secondary' });
|
|
183
|
+
// ---------- Danger ----------
|
|
184
|
+
export const Danger = renderButtons.bind({});
|
|
185
|
+
Danger.args = Object.assign(Object.assign({}, Primary.args), { label: 'Danger', design: 'danger' });
|
|
186
|
+
// ---------- Success ----------
|
|
187
|
+
export const Success = renderButtons.bind({});
|
|
188
|
+
Success.args = Object.assign(Object.assign({}, Primary.args), { label: 'Success', design: 'success' });
|
|
189
|
+
// ---------- Warning ----------
|
|
190
|
+
export const Warning = renderButtons.bind({});
|
|
191
|
+
Warning.args = Object.assign(Object.assign({}, Primary.args), { label: 'Warning', design: 'warning' });
|
|
192
|
+
// ---------- light ----------
|
|
193
|
+
export const Light = renderButtons.bind({});
|
|
194
|
+
Light.args = Object.assign(Object.assign({}, Primary.args), { label: 'Light', design: 'light' });
|
|
195
|
+
// ---------- Transparent ----------
|
|
196
|
+
export const Transparent = renderButtons.bind({});
|
|
197
|
+
Transparent.args = Object.assign(Object.assign({}, Primary.args), { label: 'Transparent', design: 'transparent' });
|
|
@@ -23,9 +23,9 @@ export class TttxCheckbox {
|
|
|
23
23
|
render() {
|
|
24
24
|
const checkBoxIcon = this.checked ? 'check_box' : 'check_box_outline_blank';
|
|
25
25
|
const renderedIcon = this.indeterminate ? 'indeterminate_check_box' : checkBoxIcon;
|
|
26
|
-
return (h(Host, null, h("label", { class: `tttx-checkbox ${this.inline ? '--inline' : ''}` }, h("input", { class: "tttx-checkbox__input", type: "checkbox", id: this.checkboxId, checked: this.checked, ref: (el) => this.checkbox = el }), h("tttx-
|
|
26
|
+
return (h(Host, null, h("label", { class: `tttx-checkbox ${this.inline ? '--inline' : ''}` }, h("input", { class: "tttx-checkbox__input", type: "checkbox", id: this.checkboxId, checked: this.checked, ref: (el) => this.checkbox = el }), h("tttx-icon_1_9_64", { color: this.checked ? 'blue' : 'grey', icon: renderedIcon, onClick: this.onClick.bind(this) }), h("span", { class: "tttx-checkbox__label" }, this.label))));
|
|
27
27
|
}
|
|
28
|
-
static get is() { return "tttx-
|
|
28
|
+
static get is() { return "tttx-checkbox_1_9_64"; }
|
|
29
29
|
static get originalStyleUrls() {
|
|
30
30
|
return {
|
|
31
31
|
"$": ["tttx-checkbox.scss"]
|
|
@@ -24,19 +24,19 @@ export class TttxDatacard {
|
|
|
24
24
|
renderIcon(iconstyle) {
|
|
25
25
|
switch (iconstyle) {
|
|
26
26
|
case 'up':
|
|
27
|
-
return h("tttx-
|
|
27
|
+
return h("tttx-icon_1_9_64", { size: 24, icon: "arrow_circle_up", color: "green" });
|
|
28
28
|
case 'down':
|
|
29
|
-
return h("tttx-
|
|
29
|
+
return h("tttx-icon_1_9_64", { size: 24, icon: "arrow_circle_down", color: "darkred" });
|
|
30
30
|
default:
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
return (h(Host, null, h("div", { class: "datacard" }, this.cardTitle && h("h2", { style: { 'position': 'relative', 'top': '0', 'left': '0', 'height': '40px' } }, this.cardTitle), this.chartRender && this.cardType === 'chart' &&
|
|
36
|
-
h("tttx-
|
|
36
|
+
h("tttx-graph_1_9_64", { style: { 'position': 'relative', 'width': '100%', 'height': this.cardTitle ? 'calc(100% - 40px)' : '100%' }, class: 'chart', "chart-data": this._chartConfig.chartData, "chart-text": this._chartConfig.chartText, "chart-type": this._chartConfig.chartType }), h("div", { style: { 'position': 'relative', 'width': '100%', 'height': this.cardTitle ? 'calc(100% - 40px)' : '100%' } }, h("div", { class: "lower" }, h("div", { class: this.rightData && this.rightData !== 'undefined' ? 'left' : 'centered' }, this.leftData), this.rightData && this.rightData !== 'undefined' &&
|
|
37
37
|
h("div", { class: "right" }, h("div", { class: "flex" }, h("div", { class: "righticon" }, this.renderIcon(this.iconStyle)), h("div", { class: "rightdata" }, this.rightData)), h("div", { class: "subtext" }, this.rightSubtext)))))));
|
|
38
38
|
}
|
|
39
|
-
static get is() { return "tttx-
|
|
39
|
+
static get is() { return "tttx-datacard_1_9_64"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
41
41
|
static get originalStyleUrls() {
|
|
42
42
|
return {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
};
|
|
21
21
|
const Template = ({ cardTitle = '', leftData = '', rightData = '', iconStyle, rightSubtext, cardType = 'text', chartConfig, width = 392, height = 120 }) => `
|
|
22
22
|
<div style="width: ${width}px; height: ${height}px;">
|
|
23
|
-
<tttx-
|
|
23
|
+
<tttx-datacard_1_9_64
|
|
24
24
|
card-title="${cardTitle}"
|
|
25
25
|
left-data="${leftData}"
|
|
26
26
|
right-data="${rightData}"
|
|
@@ -28,7 +28,7 @@ const Template = ({ cardTitle = '', leftData = '', rightData = '', iconStyle, ri
|
|
|
28
28
|
right-subtext="${rightSubtext}"
|
|
29
29
|
card-type="${cardType}"
|
|
30
30
|
chart-config='${chartConfig}'
|
|
31
|
-
></tttx-
|
|
31
|
+
></tttx-datacard_1_9_64>
|
|
32
32
|
<div style="clear: both;"></div>
|
|
33
33
|
</div>`;
|
|
34
34
|
export const DataCardUp = Template.bind({});
|
|
@@ -91,14 +91,14 @@ DataCardLineChart.args = {
|
|
|
91
91
|
*/
|
|
92
92
|
const StackTemplate = () => `
|
|
93
93
|
<div style="background: #F0F0F0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 16px;">
|
|
94
|
-
<tttx-
|
|
95
|
-
<tttx-
|
|
96
|
-
<tttx-
|
|
97
|
-
<tttx-
|
|
98
|
-
<tttx-
|
|
99
|
-
<tttx-
|
|
100
|
-
<tttx-
|
|
101
|
-
<tttx-
|
|
94
|
+
<tttx-datacard_1_9_64 card-title="Employees" left-data="200" right-data="1%" icon-style="up" right-subtext="vs last month"></tttx-datacard_1_9_64>
|
|
95
|
+
<tttx-datacard_1_9_64 card-title="Training" left-data="82%" right-data="6%" icon-style="down" right-subtext="vs last month"></tttx-datacard_1_9_64>
|
|
96
|
+
<tttx-datacard_1_9_64 card-title="Safety critical training" left-data="88%" right-data="4%" icon-style="up" right-subtext="vs last month"></tttx-datacard_1_9_64>
|
|
97
|
+
<tttx-datacard_1_9_64 card-title="Competency" left-data="76%" right-data="11%" icon-style="up" right-subtext="vs last month" card-type="text"></tttx-datacard_1_9_64>
|
|
98
|
+
<tttx-datacard_1_9_64 style="height: 250px;" card-title="Training Progress" card-type="chart" chart-config='{"chartType": "gauge", "chartData": "[50]", "chartText": "50%"}'></tttx-datacard_1_9_64>
|
|
99
|
+
<tttx-datacard_1_9_64 style="height: 250px;" card-title="Budget Utilization" card-type="chart" chart-config='{"chartType": "gauge", "chartData": "[15]", "chartText":"15%"}'></tttx-datacard_1_9_64>
|
|
100
|
+
<tttx-datacard_1_9_64 style="height: 250px;" card-title="Project Completion" card-type="chart" chart-config='{"chartType": "gauge", "chartData": "[60]", "chartText": "60%"}'></tttx-datacard_1_9_64>
|
|
101
|
+
<tttx-datacard_1_9_64 style="height: 250px;" card-title="Employee Satisfaction" card-type="chart" chart-config='{"chartType": "gauge", "chartData": "[100]", "chartText": "99%"}'></tttx-datacard_1_9_64>
|
|
102
102
|
</div>
|
|
103
103
|
`;
|
|
104
104
|
export const DataCardStacked = StackTemplate.bind({});
|