@3t-transform/threeteeui 1.9.101 → 1.9.103
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/{auto-be8ad100.js → auto-356ad09b.js} +177 -177
- package/dist/cjs/{domsanitiser.options-55ce2d65.js → domsanitiser.options-065dbed8.js} +12 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tttx-action-dropdown_1_9_101.cjs.entry.js → tttx-action-dropdown_1_9_103.cjs.entry.js} +51 -51
- package/dist/cjs/{tttx-button-v2_1_9_101.cjs.entry.js → tttx-button-v2_1_9_103.cjs.entry.js} +147 -147
- package/dist/cjs/{tttx-button_1_9_101.cjs.entry.js → tttx-button_1_9_103.cjs.entry.js} +26 -26
- package/dist/cjs/{tttx-chart_1_9_101.cjs.entry.js → tttx-chart_1_9_103.cjs.entry.js} +524 -524
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_101.cjs.entry.js → tttx-checkbox-group-caption_1_9_103.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_101.cjs.entry.js → tttx-checkbox-group-heading_1_9_103.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-checkbox-group_1_9_101.cjs.entry.js → tttx-checkbox-group_1_9_103.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-checkbox_1_9_101.cjs.entry.js → tttx-checkbox_1_9_103.cjs.entry.js} +33 -33
- package/dist/cjs/{tttx-comments_1_9_101.cjs.entry.js → tttx-comments_1_9_103.cjs.entry.js} +204 -204
- package/dist/cjs/{tttx-data-pattern_1_9_101.cjs.entry.js → tttx-data-pattern_1_9_103.cjs.entry.js} +20 -20
- package/dist/cjs/{tttx-datacard_1_9_101.cjs.entry.js → tttx-datacard_1_9_103.cjs.entry.js} +43 -43
- package/dist/cjs/tttx-date-range-picker.cjs.entry.js +212 -212
- package/dist/cjs/{tttx-dialog-box_1_9_101.cjs.entry.js → tttx-dialog-box_1_9_103.cjs.entry.js} +94 -94
- package/dist/cjs/{tttx-dialog_1_9_101.cjs.entry.js → tttx-dialog_1_9_103.cjs.entry.js} +69 -69
- package/dist/cjs/{tttx-expander_1_9_101.cjs.entry.js → tttx-expander_1_9_103.cjs.entry.js} +28 -28
- package/dist/cjs/{tttx-filter_1_9_101_4.cjs.entry.js → tttx-filter_1_9_103_4.cjs.entry.js} +386 -386
- package/dist/cjs/{tttx-form_1_9_101.cjs.entry.js → tttx-form_1_9_103.cjs.entry.js} +985 -985
- package/dist/cjs/{tttx-graph_1_9_101.cjs.entry.js → tttx-graph_1_9_103.cjs.entry.js} +124 -124
- package/dist/cjs/{tttx-icon_1_9_101.cjs.entry.js → tttx-icon_1_9_103.cjs.entry.js} +24 -24
- package/dist/cjs/{tttx-keyvalue-block_1_9_101.cjs.entry.js → tttx-keyvalue-block_1_9_103.cjs.entry.js} +62 -62
- package/dist/cjs/{tttx-loading-spinner_1_9_101_3.cjs.entry.js → tttx-loading-spinner_1_9_103_3.cjs.entry.js} +172 -172
- package/dist/cjs/{tttx-multiselect-box_1_9_101.cjs.entry.js → tttx-multiselect-box_1_9_103.cjs.entry.js} +175 -175
- package/dist/cjs/{tttx-percentage-bar_1_9_101.cjs.entry.js → tttx-percentage-bar_1_9_103.cjs.entry.js} +56 -56
- package/dist/cjs/{tttx-qrcode_1_9_101.cjs.entry.js → tttx-qrcode_1_9_103.cjs.entry.js} +28 -28
- package/dist/cjs/{tttx-range-slider_1_9_101.cjs.entry.js → tttx-range-slider_1_9_103.cjs.entry.js} +185 -185
- package/dist/cjs/{tttx-select-box_1_9_101.cjs.entry.js → tttx-select-box_1_9_103.cjs.entry.js} +239 -239
- package/dist/cjs/{tttx-skeleton_loader_1_9_101.cjs.entry.js → tttx-skeleton_loader_1_9_103.cjs.entry.js} +30 -30
- package/dist/cjs/{tttx-table_1_9_101.cjs.entry.js → tttx-table_1_9_103.cjs.entry.js} +72 -72
- package/dist/cjs/{tttx-tabs_1_9_101.cjs.entry.js → tttx-tabs_1_9_103.cjs.entry.js} +103 -103
- package/dist/cjs/{tttx-tag-v2_1_9_101.cjs.entry.js → tttx-tag-v2_1_9_103.cjs.entry.js} +72 -72
- package/dist/cjs/{tttx-textarea_1_9_101.cjs.entry.js → tttx-textarea_1_9_103.cjs.entry.js} +50 -50
- package/dist/cjs/{tttx-toggle_1_9_101.cjs.entry.js → tttx-toggle_1_9_103.cjs.entry.js} +30 -30
- package/dist/cjs/{tttx-tooltip_1_9_101.cjs.entry.js → tttx-tooltip_1_9_103.cjs.entry.js} +87 -87
- package/dist/cjs/{tttx-tree-view_1_9_101.cjs.entry.js → tttx-tree-view_1_9_103.cjs.entry.js} +342 -342
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +129 -129
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +40 -40
- 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 +436 -436
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +143 -143
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +154 -154
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +58 -58
- package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +186 -186
- package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +92 -92
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +92 -92
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +26 -26
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +137 -137
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +94 -94
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +194 -194
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +53 -53
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +168 -168
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +52 -52
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +81 -81
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +225 -225
- package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.stories.js +44 -44
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +157 -157
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +53 -53
- package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.js +281 -281
- package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.stories.js +84 -84
- package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +84 -84
- package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +8 -8
- package/dist/collection/components/domsanitiser.options.js +14 -14
- package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +213 -213
- package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +55 -55
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +793 -793
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +209 -209
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +17 -17
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +17 -17
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +18 -18
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +62 -62
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +536 -536
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +151 -151
- package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.js +292 -292
- package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.stories.js +48 -48
- package/dist/collection/components/molecules/tttx-dialog/icon-types.js +6 -6
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +218 -218
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +50 -50
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +246 -246
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +314 -314
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +134 -134
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +46 -46
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +416 -416
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +81 -81
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +49 -49
- package/dist/collection/components/molecules/tttx-form/lib/timecomparatorChecks.js +64 -64
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +76 -76
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +1267 -1267
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +595 -595
- package/dist/collection/components/molecules/tttx-graph/gauge-label-plugin.js +14 -14
- package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +184 -184
- package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +32 -32
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +165 -165
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +134 -134
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +499 -499
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +151 -151
- package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.js +304 -304
- package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.stories.js +22 -22
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +671 -671
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +140 -140
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +253 -253
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +764 -764
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +191 -191
- package/dist/collection/components/molecules/tttx-table/tttx-table.css +1 -1
- package/dist/collection/components/molecules/tttx-table/tttx-table.js +318 -318
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +191 -191
- package/dist/collection/components/molecules/tttx-table/tttx-table.types.js +1 -1
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +253 -253
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +82 -82
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +420 -420
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +81 -81
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +73 -73
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +97 -97
- package/dist/collection/components/molecules/tttx-tooltip/tttx-tooltip.js +253 -253
- package/dist/collection/components/molecules/tttx-tooltip/tttx-tootip.stories.js +117 -117
- package/dist/collection/components/molecules/tttx-tree-view/helper/helper.js +1 -1
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +1 -1
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +463 -463
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +402 -402
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +176 -176
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +28 -28
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/components/auto.js +177 -177
- package/dist/components/domsanitiser.options.js +12 -12
- package/dist/components/index.d.ts +38 -38
- package/dist/components/index.js +38 -38
- package/dist/components/tttx-action-dropdown_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_101.js → tttx-action-dropdown_1_9_103.js} +81 -81
- package/dist/components/tttx-button-v2.js +182 -182
- package/dist/components/tttx-button-v2_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-button-v2_1_9_101.js → tttx-button-v2_1_9_103.js} +2 -2
- package/dist/components/tttx-button.js +51 -51
- package/dist/components/{tttx-dialog_1_9_101.d.ts → tttx-button_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_101.js → tttx-button_1_9_103.js} +2 -2
- package/dist/components/{tttx-table_1_9_101.d.ts → tttx-chart_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-chart_1_9_101.js → tttx-chart_1_9_103.js} +574 -574
- package/dist/components/tttx-checkbox-group-caption_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_101.js → tttx-checkbox-group-caption_1_9_103.js} +24 -24
- package/dist/components/tttx-checkbox-group-heading_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_101.js → tttx-checkbox-group-heading_1_9_103.js} +24 -24
- package/dist/components/tttx-checkbox-group_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_101.js → tttx-checkbox-group_1_9_103.js} +25 -25
- package/dist/components/tttx-checkbox_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-checkbox_1_9_101.js → tttx-checkbox_1_9_103.js} +59 -59
- package/dist/components/tttx-comments_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-comments_1_9_101.js → tttx-comments_1_9_103.js} +241 -241
- package/dist/components/tttx-data-pattern_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_101.js → tttx-data-pattern_1_9_103.js} +80 -80
- package/dist/components/tttx-datacard_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_101.js → tttx-datacard_1_9_103.js} +79 -79
- package/dist/components/tttx-date-range-picker.js +242 -242
- package/dist/components/tttx-dialog-box_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_101.js → tttx-dialog-box_1_9_103.js} +125 -125
- package/dist/components/{tttx-filter_1_9_101.d.ts → tttx-dialog_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_101.js → tttx-dialog_1_9_103.js} +103 -103
- package/dist/components/tttx-expander_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_101.js → tttx-expander_1_9_103.js} +55 -55
- package/dist/components/tttx-filter.js +217 -217
- package/dist/components/{tttx-button_1_9_101.d.ts → tttx-filter_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_101.js → tttx-filter_1_9_103.js} +2 -2
- package/dist/components/{tttx-form_1_9_101.d.ts → tttx-form_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_101.js → tttx-form_1_9_103.js} +1039 -1039
- package/dist/components/tttx-graph.js +143 -143
- package/dist/components/{tttx-graph_1_9_101.d.ts → tttx-graph_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_101.js → tttx-graph_1_9_103.js} +2 -2
- package/dist/components/tttx-icon.js +42 -42
- package/dist/components/{tttx-list_1_9_101.d.ts → tttx-icon_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_101.js → tttx-icon_1_9_103.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_101.js → tttx-keyvalue-block_1_9_103.js} +83 -83
- package/dist/components/tttx-list.js +92 -92
- package/dist/components/{tttx-tabs_1_9_101.d.ts → tttx-list_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_101.js → tttx-list_1_9_103.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +92 -92
- package/dist/components/tttx-loading-spinner_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_101.js → tttx-loading-spinner_1_9_103.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_101.js → tttx-multiselect-box_1_9_103.js} +231 -231
- package/dist/components/tttx-percentage-bar_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_101.js → tttx-percentage-bar_1_9_103.js} +80 -80
- package/dist/components/tttx-qrcode_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-qrcode_1_9_101.js → tttx-qrcode_1_9_103.js} +47 -47
- package/dist/components/tttx-range-slider_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-range-slider_1_9_101.js → tttx-range-slider_1_9_103.js} +208 -208
- package/dist/components/tttx-select-box.js +295 -295
- package/dist/components/tttx-select-box_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_101.js → tttx-select-box_1_9_103.js} +2 -2
- package/dist/components/tttx-skeleton_loader_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_101.js → tttx-skeleton_loader_1_9_103.js} +57 -57
- package/dist/components/tttx-sorter.js +136 -136
- package/dist/components/tttx-sorter_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_101.js → tttx-sorter_1_9_103.js} +2 -2
- package/dist/components/tttx-standalone-input.js +136 -136
- package/dist/components/tttx-standalone-input_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_101.js → tttx-standalone-input_1_9_103.js} +2 -2
- package/dist/components/{tttx-chart_1_9_101.d.ts → tttx-table_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_101.js → tttx-table_1_9_103.js} +109 -109
- package/dist/components/{tttx-icon_1_9_101.d.ts → tttx-tabs_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_101.js → tttx-tabs_1_9_103.js} +128 -128
- package/dist/components/{tttx-tag-v2_1_9_101.d.ts → tttx-tag-v2_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-tag-v2_1_9_101.js → tttx-tag-v2_1_9_103.js} +105 -105
- package/dist/components/tttx-tag.js +44 -44
- package/dist/components/{tttx-tag_1_9_101.d.ts → tttx-tag_1_9_103.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_101.js → tttx-tag_1_9_103.js} +2 -2
- package/dist/components/tttx-textarea_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_101.js → tttx-textarea_1_9_103.js} +83 -83
- package/dist/components/tttx-toggle_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_101.js → tttx-toggle_1_9_103.js} +49 -49
- package/dist/components/tttx-toolbar.js +42 -42
- package/dist/components/tttx-toolbar_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_101.js → tttx-toolbar_1_9_103.js} +2 -2
- package/dist/components/tttx-tooltip_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-tooltip_1_9_101.js → tttx-tooltip_1_9_103.js} +114 -114
- package/dist/components/tttx-tree-view_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_101.js → tttx-tree-view_1_9_103.js} +371 -371
- package/dist/esm/{auto-421f2656.js → auto-a07ee1b1.js} +177 -177
- package/dist/esm/{domsanitiser.options-38a67458.js → domsanitiser.options-2c1ef894.js} +12 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{tttx-action-dropdown_1_9_101.entry.js → tttx-action-dropdown_1_9_103.entry.js} +51 -51
- package/dist/esm/{tttx-button-v2_1_9_101.entry.js → tttx-button-v2_1_9_103.entry.js} +147 -147
- package/dist/esm/{tttx-button_1_9_101.entry.js → tttx-button_1_9_103.entry.js} +26 -26
- package/dist/esm/{tttx-chart_1_9_101.entry.js → tttx-chart_1_9_103.entry.js} +524 -524
- package/dist/esm/{tttx-checkbox-group-caption_1_9_101.entry.js → tttx-checkbox-group-caption_1_9_103.entry.js} +9 -9
- package/dist/esm/{tttx-checkbox-group-heading_1_9_101.entry.js → tttx-checkbox-group-heading_1_9_103.entry.js} +9 -9
- package/dist/esm/{tttx-checkbox-group_1_9_101.entry.js → tttx-checkbox-group_1_9_103.entry.js} +9 -9
- package/dist/esm/{tttx-checkbox_1_9_101.entry.js → tttx-checkbox_1_9_103.entry.js} +33 -33
- package/dist/esm/{tttx-comments_1_9_101.entry.js → tttx-comments_1_9_103.entry.js} +204 -204
- package/dist/esm/{tttx-data-pattern_1_9_101.entry.js → tttx-data-pattern_1_9_103.entry.js} +20 -20
- package/dist/esm/{tttx-datacard_1_9_101.entry.js → tttx-datacard_1_9_103.entry.js} +43 -43
- package/dist/esm/tttx-date-range-picker.entry.js +212 -212
- package/dist/esm/{tttx-dialog-box_1_9_101.entry.js → tttx-dialog-box_1_9_103.entry.js} +94 -94
- package/dist/esm/{tttx-dialog_1_9_101.entry.js → tttx-dialog_1_9_103.entry.js} +69 -69
- package/dist/esm/{tttx-expander_1_9_101.entry.js → tttx-expander_1_9_103.entry.js} +28 -28
- package/dist/esm/{tttx-filter_1_9_101_4.entry.js → tttx-filter_1_9_103_4.entry.js} +383 -383
- package/dist/esm/{tttx-form_1_9_101.entry.js → tttx-form_1_9_103.entry.js} +985 -985
- package/dist/esm/{tttx-graph_1_9_101.entry.js → tttx-graph_1_9_103.entry.js} +124 -124
- package/dist/esm/{tttx-icon_1_9_101.entry.js → tttx-icon_1_9_103.entry.js} +24 -24
- package/dist/esm/{tttx-keyvalue-block_1_9_101.entry.js → tttx-keyvalue-block_1_9_103.entry.js} +62 -62
- package/dist/esm/{tttx-loading-spinner_1_9_101_3.entry.js → tttx-loading-spinner_1_9_103_3.entry.js} +170 -170
- package/dist/esm/{tttx-multiselect-box_1_9_101.entry.js → tttx-multiselect-box_1_9_103.entry.js} +175 -175
- package/dist/esm/{tttx-percentage-bar_1_9_101.entry.js → tttx-percentage-bar_1_9_103.entry.js} +56 -56
- package/dist/esm/{tttx-qrcode_1_9_101.entry.js → tttx-qrcode_1_9_103.entry.js} +28 -28
- package/dist/esm/{tttx-range-slider_1_9_101.entry.js → tttx-range-slider_1_9_103.entry.js} +185 -185
- package/dist/esm/{tttx-select-box_1_9_101.entry.js → tttx-select-box_1_9_103.entry.js} +239 -239
- package/dist/esm/{tttx-skeleton_loader_1_9_101.entry.js → tttx-skeleton_loader_1_9_103.entry.js} +30 -30
- package/dist/esm/{tttx-table_1_9_101.entry.js → tttx-table_1_9_103.entry.js} +72 -72
- package/dist/esm/{tttx-tabs_1_9_101.entry.js → tttx-tabs_1_9_103.entry.js} +103 -103
- package/dist/esm/{tttx-tag-v2_1_9_101.entry.js → tttx-tag-v2_1_9_103.entry.js} +72 -72
- package/dist/esm/{tttx-textarea_1_9_101.entry.js → tttx-textarea_1_9_103.entry.js} +50 -50
- package/dist/esm/{tttx-toggle_1_9_101.entry.js → tttx-toggle_1_9_103.entry.js} +30 -30
- package/dist/esm/{tttx-tooltip_1_9_101.entry.js → tttx-tooltip_1_9_103.entry.js} +87 -87
- package/dist/esm/{tttx-tree-view_1_9_101.entry.js → tttx-tree-view_1_9_103.entry.js} +342 -342
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/{p-b3f49d83.entry.js → p-0c5bc253.entry.js} +1 -1
- package/dist/tttx/{p-82b4e575.entry.js → p-10d2d044.entry.js} +1 -1
- package/dist/tttx/p-1623f3cf.entry.js +1 -1
- package/dist/tttx/{p-b161205b.entry.js → p-16aa3f67.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-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-44f0af69.entry.js +1 -1
- package/dist/tttx/p-4664d065.entry.js +1 -1
- package/dist/tttx/{p-00a849cf.entry.js → p-486ca932.entry.js} +1 -1
- package/dist/tttx/{p-e21e3a9c.entry.js → p-59115c8f.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-a59ad197.entry.js → p-700c2816.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-41b69e01.entry.js → p-8f85ab3e.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-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-d945d492.entry.js +1 -1
- package/dist/tttx/{p-34e0e487.entry.js → p-df708b75.entry.js} +2 -2
- package/dist/tttx/p-f0c1380f.entry.js +1 -1
- package/dist/tttx/{p-0bb158ce.js → p-f411d1e5.js} +2 -2
- package/dist/tttx/{p-d4c4edbd.entry.js → p-fa25ee03.entry.js} +1 -1
- package/dist/tttx/{p-41f0bf7f.entry.js → p-fbdd1046.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +11 -11
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +11 -11
- package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.d.ts +36 -36
- package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.stories.d.ts +68 -68
- package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.d.ts +17 -17
- package/dist/types/components/atoms/tttx-datacard/tttx-datacard.d.ts +21 -21
- package/dist/types/components/atoms/tttx-datacard/tttx-datacard.stories.d.ts +44 -44
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +9 -9
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +25 -25
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +13 -13
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +11 -11
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +23 -23
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +47 -47
- package/dist/types/components/atoms/tttx-percentage-bar/tttx-percentage-bar.d.ts +22 -22
- package/dist/types/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.d.ts +8 -8
- package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -23
- package/dist/types/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.d.ts +14 -14
- package/dist/types/components/atoms/tttx-tag/tttx-tag.d.ts +10 -10
- package/dist/types/components/atoms/tttx-tag/tttx-tag.stories.d.ts +51 -51
- package/dist/types/components/atoms/tttx-tag-v2/tttx-tag-v2.d.ts +15 -15
- package/dist/types/components/atoms/tttx-tag-v2/tttx-tag-v2.stories.d.ts +48 -48
- package/dist/types/components/atoms/tttx-toggle/tttx-toggle.d.ts +11 -11
- package/dist/types/components/atoms/tttx-toggle/tttx-toggle.stories.d.ts +6 -6
- package/dist/types/components/domsanitiser.options.d.ts +10 -10
- package/dist/types/components/molecules/tttx-action-dropdown/tttx-action-dropdown.d.ts +21 -21
- package/dist/types/components/molecules/tttx-chart/tttx-chart.d.ts +60 -60
- package/dist/types/components/molecules/tttx-chart/tttx-chart.stories.d.ts +38 -38
- package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.d.ts +3 -3
- package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.d.ts +3 -3
- package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.d.ts +3 -3
- package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.d.ts +15 -15
- package/dist/types/components/molecules/tttx-comments/tttx-comments.d.ts +68 -68
- package/dist/types/components/molecules/tttx-date-range-picker/tttx-date-range-picker.d.ts +42 -42
- package/dist/types/components/molecules/tttx-dialog/icon-types.d.ts +18 -18
- package/dist/types/components/molecules/tttx-dialog/tttx-dialog.d.ts +27 -27
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +26 -26
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +24 -24
- package/dist/types/components/molecules/tttx-expander/tttx-expander.d.ts +16 -16
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +44 -44
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +14 -14
- package/dist/types/components/molecules/tttx-form/lib/timecomparatorChecks.d.ts +4 -4
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +15 -15
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +297 -297
- package/dist/types/components/molecules/tttx-graph/gauge-label-plugin.d.ts +4 -4
- package/dist/types/components/molecules/tttx-graph/tttx-graph.d.ts +13 -13
- package/dist/types/components/molecules/tttx-graph/tttx-graph.stories.d.ts +26 -26
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +23 -23
- package/dist/types/components/molecules/tttx-multiselect-box/tttx-multiselect-box.d.ts +50 -50
- package/dist/types/components/molecules/tttx-range-slider/tttx-range-slider.d.ts +45 -45
- package/dist/types/components/molecules/tttx-range-slider/tttx-range-slider.stories.d.ts +7 -7
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +55 -55
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.stories.d.ts +28 -28
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +21 -21
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
- package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +32 -32
- package/dist/types/components/molecules/tttx-table/tttx-table.types.d.ts +6 -6
- package/dist/types/components/molecules/tttx-tabs/tttx-tabs.d.ts +25 -25
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +42 -42
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.stories.d.ts +89 -89
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +8 -8
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +19 -19
- package/dist/types/components/molecules/tttx-tooltip/tttx-tooltip.d.ts +37 -37
- package/dist/types/components/molecules/tttx-tooltip/tttx-tootip.stories.d.ts +12 -12
- package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +24 -24
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +57 -57
- package/dist/types/components/organisms/tttx-data-pattern/tttx-data-pattern.d.ts +11 -11
- package/dist/types/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.d.ts +13 -13
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +451 -451
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/package.json +1 -1
- package/dist/components/tttx-action-dropdown_1_9_101.d.ts +0 -11
- package/dist/components/tttx-button-v2_1_9_101.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_101.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_101.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_101.d.ts +0 -11
- package/dist/components/tttx-checkbox_1_9_101.d.ts +0 -11
- package/dist/components/tttx-comments_1_9_101.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_101.d.ts +0 -11
- package/dist/components/tttx-datacard_1_9_101.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_101.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_101.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_101.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_101.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_101.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_101.d.ts +0 -11
- package/dist/components/tttx-qrcode_1_9_101.d.ts +0 -11
- package/dist/components/tttx-range-slider_1_9_101.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_101.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_101.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_101.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_101.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_101.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_101.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_101.d.ts +0 -11
- package/dist/components/tttx-tooltip_1_9_101.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_101.d.ts +0 -11
- package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.stories.d.ts +0 -47
- package/dist/types/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.stories.d.ts +0 -58
- package/dist/types/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.d.ts +0 -36
- package/dist/types/components/molecules/tttx-comments/tttx-comments.stories.d.ts +0 -8
- package/dist/types/components/molecules/tttx-date-range-picker/tttx-date-range-picker.stories.d.ts +0 -28
- package/dist/types/components/molecules/tttx-dialog/tttx-dialog.stories.d.ts +0 -42
- package/dist/types/components/molecules/tttx-expander/tttx-expander.stories.d.ts +0 -27
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +0 -76
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -718
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -15
- package/dist/types/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.d.ts +0 -17
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +0 -30
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +0 -150
- package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +0 -79
- package/dist/types/components/molecules/tttx-tabs/tttx-tabs.stories.d.ts +0 -13
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +0 -15
- /package/dist/tttx/{p-55799798.js → p-62d92a44.js} +0 -0
|
@@ -2,136 +2,136 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
4
4
|
|
|
5
|
-
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-
|
|
5
|
+
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_103{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_103-h{display:block}.tab-bar.sc-tttx-tabs_1_9_103{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_103>.left-navigation.sc-tttx-tabs_1_9_103,.tab-bar.sc-tttx-tabs_1_9_103>.right-navigation.sc-tttx-tabs_1_9_103{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_103>.left-navigation.sc-tttx-tabs_1_9_103>*.sc-tttx-tabs_1_9_103,.tab-bar.sc-tttx-tabs_1_9_103>.right-navigation.sc-tttx-tabs_1_9_103>*.sc-tttx-tabs_1_9_103{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_103>.tabs-container.sc-tttx-tabs_1_9_103{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_103>.tabs-container.wide.sc-tttx-tabs_1_9_103{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_103>.tabs-container.sc-tttx-tabs_1_9_103>*[role=tab].sc-tttx-tabs_1_9_103{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_103>.tabs-container.sc-tttx-tabs_1_9_103>*[role=tab].sc-tttx-tabs_1_9_103:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_103>.tabs-container.sc-tttx-tabs_1_9_103>*[role=tab][aria-selected].sc-tttx-tabs_1_9_103{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
|
|
6
6
|
|
|
7
|
-
const TttxTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.tabClick = createEvent(this, "tabClick", 7);
|
|
12
|
-
this.leftNavigation = createEvent(this, "leftNavigation", 7);
|
|
13
|
-
this.rightNavigation = createEvent(this, "rightNavigation", 7);
|
|
14
|
-
this.tabFocus = 0;
|
|
15
|
-
this.tabsName = undefined;
|
|
16
|
-
this.navigation = undefined;
|
|
17
|
-
this.wide = undefined;
|
|
18
|
-
this.tabs = undefined;
|
|
19
|
-
this._tabs = undefined;
|
|
20
|
-
}
|
|
21
|
-
onDataChange() {
|
|
22
|
-
if (!this.tabs) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (typeof this.tabs === 'string') {
|
|
26
|
-
this._tabs = JSON.parse(this.tabs);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this._tabs = [...this.tabs];
|
|
30
|
-
}
|
|
31
|
-
this.tabFocus = this._tabs.findIndex(tab => tab.tabIndex !== -1);
|
|
32
|
-
}
|
|
33
|
-
componentWillLoad() {
|
|
34
|
-
// dynamic constructor: any props can be added later
|
|
35
|
-
this.onDataChange();
|
|
36
|
-
}
|
|
37
|
-
handleTabClick(tab) {
|
|
38
|
-
this.tabClick.emit({ tabId: tab.id });
|
|
39
|
-
}
|
|
40
|
-
handleLeftNavigation() {
|
|
41
|
-
this.leftNavigation.emit();
|
|
42
|
-
}
|
|
43
|
-
handleRightNavigation() {
|
|
44
|
-
this.rightNavigation.emit();
|
|
45
|
-
}
|
|
46
|
-
handleKeyDown(event) {
|
|
47
|
-
const orientation = this.tabList.getAttribute('aria-orientation'); // horizontal by default
|
|
48
|
-
const previous = orientation && orientation === 'vertical' ? 'ArrowUp' : 'ArrowLeft';
|
|
49
|
-
const next = orientation && orientation === 'vertical' ? 'ArrowDown' : 'ArrowRight';
|
|
50
|
-
const target = event.target;
|
|
51
|
-
const isTyping = target === null || target === void 0 ? void 0 : target.tagName.toLowerCase().startsWith('tttx-comments'); // checking if it is comment component
|
|
52
|
-
if (isTyping) {
|
|
53
|
-
return; // Let the input handle arrow keys naturally
|
|
54
|
-
}
|
|
55
|
-
if (event.key === previous || event.key === next) {
|
|
56
|
-
// Make the previous tab deselectable
|
|
57
|
-
this._tabs[this.tabFocus].tabIndex = -1;
|
|
58
|
-
if (event.key === previous) {
|
|
59
|
-
this.tabFocus--;
|
|
60
|
-
// If we're at the start, move to the end
|
|
61
|
-
if (this.tabFocus < 0) {
|
|
62
|
-
this.tabFocus = this._tabs.length - 1;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else if (event.key === next) {
|
|
66
|
-
this.tabFocus++;
|
|
67
|
-
// If we're at the end, go to the start
|
|
68
|
-
if (this.tabFocus >= this._tabs.length) {
|
|
69
|
-
this.tabFocus = 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
// Make the next tab selectable
|
|
73
|
-
this._tabs[this.tabFocus].tabIndex = 0;
|
|
74
|
-
this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus();
|
|
75
|
-
this._tabs = [...this._tabs];
|
|
76
|
-
}
|
|
77
|
-
else if (event.code === 'Space' || event.code === 'Enter') {
|
|
78
|
-
this.tabClick.emit({ tabId: this._tabs[this.tabFocus].id });
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
generateTab(tab) {
|
|
82
|
-
var _a, _b, _c;
|
|
83
|
-
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-
|
|
84
|
-
return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
|
|
85
|
-
this.handleTabClick(tab);
|
|
86
|
-
} }, tabTitle));
|
|
87
|
-
}
|
|
88
|
-
renderSelectedTab(selectedTab) {
|
|
89
|
-
// render a string of HTML or output a React object
|
|
90
|
-
if (typeof selectedTab.pageContent === 'string') {
|
|
91
|
-
return (h("article", { key: selectedTab.id, id: selectedTab.controls, role: "tabpanel", tabindex: "0", "aria-labelledby": selectedTab.id, "aria-expanded": selectedTab.selected, innerHTML: purify.sanitize(selectedTab.pageContent, domSanitiserOptions), hidden: !selectedTab.selected }));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return (h("article", { key: selectedTab.id, id: selectedTab.controls, role: "tabpanel", tabindex: "0", "aria-labelledby": selectedTab.id, "aria-expanded": selectedTab.selected, hidden: !selectedTab.selected }, selectedTab.pageContent));
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
render() {
|
|
98
|
-
if (!this.tabs || this.tabs.length == 0) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const selectedTab = this._tabs.find(tab => tab.selected);
|
|
102
|
-
return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-
|
|
103
|
-
}
|
|
104
|
-
static get watchers() { return {
|
|
105
|
-
"tabs": ["onDataChange"]
|
|
106
|
-
}; }
|
|
107
|
-
static get style() { return tttxTabsCss; }
|
|
108
|
-
}, [2, "tttx-
|
|
109
|
-
"tabsName": [1, "tabs-name"],
|
|
110
|
-
"navigation": [4],
|
|
111
|
-
"wide": [4],
|
|
112
|
-
"tabs": [1],
|
|
113
|
-
"_tabs": [32]
|
|
114
|
-
}, [[0, "keydown", "handleKeyDown"]]]);
|
|
115
|
-
function defineCustomElement$1() {
|
|
116
|
-
if (typeof customElements === "undefined") {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const components = ["tttx-
|
|
120
|
-
components.forEach(tagName => { switch (tagName) {
|
|
121
|
-
case "tttx-
|
|
122
|
-
if (!customElements.get(tagName)) {
|
|
123
|
-
customElements.define(tagName, TttxTabs);
|
|
124
|
-
}
|
|
125
|
-
break;
|
|
126
|
-
case "tttx-
|
|
127
|
-
if (!customElements.get(tagName)) {
|
|
128
|
-
defineCustomElement$2();
|
|
129
|
-
}
|
|
130
|
-
break;
|
|
131
|
-
} });
|
|
7
|
+
const TttxTabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.tabClick = createEvent(this, "tabClick", 7);
|
|
12
|
+
this.leftNavigation = createEvent(this, "leftNavigation", 7);
|
|
13
|
+
this.rightNavigation = createEvent(this, "rightNavigation", 7);
|
|
14
|
+
this.tabFocus = 0;
|
|
15
|
+
this.tabsName = undefined;
|
|
16
|
+
this.navigation = undefined;
|
|
17
|
+
this.wide = undefined;
|
|
18
|
+
this.tabs = undefined;
|
|
19
|
+
this._tabs = undefined;
|
|
20
|
+
}
|
|
21
|
+
onDataChange() {
|
|
22
|
+
if (!this.tabs) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (typeof this.tabs === 'string') {
|
|
26
|
+
this._tabs = JSON.parse(this.tabs);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this._tabs = [...this.tabs];
|
|
30
|
+
}
|
|
31
|
+
this.tabFocus = this._tabs.findIndex(tab => tab.tabIndex !== -1);
|
|
32
|
+
}
|
|
33
|
+
componentWillLoad() {
|
|
34
|
+
// dynamic constructor: any props can be added later
|
|
35
|
+
this.onDataChange();
|
|
36
|
+
}
|
|
37
|
+
handleTabClick(tab) {
|
|
38
|
+
this.tabClick.emit({ tabId: tab.id });
|
|
39
|
+
}
|
|
40
|
+
handleLeftNavigation() {
|
|
41
|
+
this.leftNavigation.emit();
|
|
42
|
+
}
|
|
43
|
+
handleRightNavigation() {
|
|
44
|
+
this.rightNavigation.emit();
|
|
45
|
+
}
|
|
46
|
+
handleKeyDown(event) {
|
|
47
|
+
const orientation = this.tabList.getAttribute('aria-orientation'); // horizontal by default
|
|
48
|
+
const previous = orientation && orientation === 'vertical' ? 'ArrowUp' : 'ArrowLeft';
|
|
49
|
+
const next = orientation && orientation === 'vertical' ? 'ArrowDown' : 'ArrowRight';
|
|
50
|
+
const target = event.target;
|
|
51
|
+
const isTyping = target === null || target === void 0 ? void 0 : target.tagName.toLowerCase().startsWith('tttx-comments'); // checking if it is comment component
|
|
52
|
+
if (isTyping) {
|
|
53
|
+
return; // Let the input handle arrow keys naturally
|
|
54
|
+
}
|
|
55
|
+
if (event.key === previous || event.key === next) {
|
|
56
|
+
// Make the previous tab deselectable
|
|
57
|
+
this._tabs[this.tabFocus].tabIndex = -1;
|
|
58
|
+
if (event.key === previous) {
|
|
59
|
+
this.tabFocus--;
|
|
60
|
+
// If we're at the start, move to the end
|
|
61
|
+
if (this.tabFocus < 0) {
|
|
62
|
+
this.tabFocus = this._tabs.length - 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else if (event.key === next) {
|
|
66
|
+
this.tabFocus++;
|
|
67
|
+
// If we're at the end, go to the start
|
|
68
|
+
if (this.tabFocus >= this._tabs.length) {
|
|
69
|
+
this.tabFocus = 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Make the next tab selectable
|
|
73
|
+
this._tabs[this.tabFocus].tabIndex = 0;
|
|
74
|
+
this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus();
|
|
75
|
+
this._tabs = [...this._tabs];
|
|
76
|
+
}
|
|
77
|
+
else if (event.code === 'Space' || event.code === 'Enter') {
|
|
78
|
+
this.tabClick.emit({ tabId: this._tabs[this.tabFocus].id });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
generateTab(tab) {
|
|
82
|
+
var _a, _b, _c;
|
|
83
|
+
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_103", { style: { pointerEvents: 'none', marginTop: (_b = tab.marginTop) !== null && _b !== void 0 ? _b : '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_c = tab.tabIconSize) !== null && _c !== void 0 ? _c : 24 }));
|
|
84
|
+
return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
|
|
85
|
+
this.handleTabClick(tab);
|
|
86
|
+
} }, tabTitle));
|
|
87
|
+
}
|
|
88
|
+
renderSelectedTab(selectedTab) {
|
|
89
|
+
// render a string of HTML or output a React object
|
|
90
|
+
if (typeof selectedTab.pageContent === 'string') {
|
|
91
|
+
return (h("article", { key: selectedTab.id, id: selectedTab.controls, role: "tabpanel", tabindex: "0", "aria-labelledby": selectedTab.id, "aria-expanded": selectedTab.selected, innerHTML: purify.sanitize(selectedTab.pageContent, domSanitiserOptions), hidden: !selectedTab.selected }));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return (h("article", { key: selectedTab.id, id: selectedTab.controls, role: "tabpanel", tabindex: "0", "aria-labelledby": selectedTab.id, "aria-expanded": selectedTab.selected, hidden: !selectedTab.selected }, selectedTab.pageContent));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
render() {
|
|
98
|
+
if (!this.tabs || this.tabs.length == 0) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const selectedTab = this._tabs.find(tab => tab.selected);
|
|
102
|
+
return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_103", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_103", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
|
|
103
|
+
}
|
|
104
|
+
static get watchers() { return {
|
|
105
|
+
"tabs": ["onDataChange"]
|
|
106
|
+
}; }
|
|
107
|
+
static get style() { return tttxTabsCss; }
|
|
108
|
+
}, [2, "tttx-tabs_1_9_103", {
|
|
109
|
+
"tabsName": [1, "tabs-name"],
|
|
110
|
+
"navigation": [4],
|
|
111
|
+
"wide": [4],
|
|
112
|
+
"tabs": [1],
|
|
113
|
+
"_tabs": [32]
|
|
114
|
+
}, [[0, "keydown", "handleKeyDown"]]]);
|
|
115
|
+
function defineCustomElement$1() {
|
|
116
|
+
if (typeof customElements === "undefined") {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const components = ["tttx-tabs_1_9_103", "tttx-icon_1_9_103"];
|
|
120
|
+
components.forEach(tagName => { switch (tagName) {
|
|
121
|
+
case "tttx-tabs_1_9_103":
|
|
122
|
+
if (!customElements.get(tagName)) {
|
|
123
|
+
customElements.define(tagName, TttxTabs);
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case "tttx-icon_1_9_103":
|
|
127
|
+
if (!customElements.get(tagName)) {
|
|
128
|
+
defineCustomElement$2();
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
} });
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
const
|
|
134
|
+
const TttxTabs_1_9_103 = TttxTabs;
|
|
135
135
|
const defineCustomElement = defineCustomElement$1;
|
|
136
136
|
|
|
137
|
-
export {
|
|
137
|
+
export { TttxTabs_1_9_103, defineCustomElement };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface TttxTagV2_1_9_103 extends Components.TttxTagV2_1_9_103, HTMLElement {}
|
|
4
|
+
export const TttxTagV2_1_9_103: {
|
|
5
|
+
prototype: TttxTagV2_1_9_103;
|
|
6
|
+
new (): TttxTagV2_1_9_103;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -3,112 +3,112 @@ import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
|
3
3
|
|
|
4
4
|
const tttxTagV2Css = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.blackout:hover{background:#212121;border:1px solid #212121}}:host{display:inline-block}.tag{display:inline-flex;align-items:center;padding:8px 12px;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:400;width:max-content;border-radius:var(--sds-size-radius-200, 8px)}.tag.S{font-size:14px;height:16px;padding:4px;border:var(--sds-size-stroke-border, 1px) solid #E5E5E5;border-radius:var(--sds-size-radius-100, 8px)}.tag.M{font-size:16px;height:32px;padding:8px;border:1px solid #E5E5E5;border-radius:8px;font-weight:400}.tag.M span{margin-left:8px;margin-right:8px}.tag.brand{background-color:#1479c6;color:#FFFFFF}.tag.danger{background-color:#DC2626;color:#FFFFFF}.tag.success{background-color:#16A34A;color:#FFFFFF}.tag.warning{background-color:#FACC15;color:#58310E}.tag.neutral{background-color:#E5E5E5;color:#737373}.tag.primary{background-color:#1479c6;color:#FFFFFF}.tag.secondary{background-color:#b9d5ed;color:#1479c6}.tag_icon{padding-top:4px}.tag span{margin-left:4px;margin-right:4px}.icon{height:18px;width:18px;font-weight:400}";
|
|
5
5
|
|
|
6
|
-
const TttxTagV2 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.text = undefined;
|
|
12
|
-
this.color = undefined;
|
|
13
|
-
this.textColor = undefined;
|
|
14
|
-
this.iconStart = 'star';
|
|
15
|
-
this.iconEnd = 'close';
|
|
16
|
-
this.iconSize = 16;
|
|
17
|
-
this.state = 'neutral';
|
|
18
|
-
this.size = 'M';
|
|
19
|
-
this.variant = undefined;
|
|
20
|
-
this.hasStartIcon = true;
|
|
21
|
-
this.hasEndIcon = true;
|
|
22
|
-
}
|
|
23
|
-
getColors() {
|
|
24
|
-
// If both variant and state are given, state overrides variant
|
|
25
|
-
if (this.variant) {
|
|
26
|
-
let base;
|
|
27
|
-
switch (this.variant) {
|
|
28
|
-
case 'primary':
|
|
29
|
-
base = { bg: '#1479c6', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
30
|
-
break;
|
|
31
|
-
case 'secondary':
|
|
32
|
-
base = { bg: '#b9d5ed', text: '#1479c6', icon: '#1479c6' };
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
if (this.state && this.state !== 'neutral') {
|
|
36
|
-
// apply state overrides
|
|
37
|
-
switch (this.state) {
|
|
38
|
-
case 'danger':
|
|
39
|
-
return { bg: '#DC2626', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
40
|
-
case 'success':
|
|
41
|
-
return { bg: '#16A34A', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
42
|
-
case 'warning':
|
|
43
|
-
return { bg: '#FACC15', text: '#58310E', icon: '#58310E' };
|
|
44
|
-
case 'brand':
|
|
45
|
-
return { bg: '#1479c6', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return base;
|
|
49
|
-
}
|
|
50
|
-
// fall back to custom color or state
|
|
51
|
-
if (this.color || this.textColor) {
|
|
52
|
-
return {
|
|
53
|
-
bg: this.color || '#E5E5E5',
|
|
54
|
-
text: this.textColor || '#737373',
|
|
55
|
-
icon: this.textColor || '#737373',
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
// state only (no variant)
|
|
59
|
-
switch (this.state) {
|
|
60
|
-
case 'brand':
|
|
61
|
-
return { bg: '#197A68', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
62
|
-
case 'danger':
|
|
63
|
-
return { bg: '#DC2626', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
64
|
-
case 'success':
|
|
65
|
-
return { bg: '#16A34A', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
66
|
-
case 'warning':
|
|
67
|
-
return { bg: '#FACC15', text: '#58310E', icon: '#58310E' };
|
|
68
|
-
case 'neutral':
|
|
69
|
-
return { bg: '#E5E5E5', text: '#737373', icon: '#737373' };
|
|
70
|
-
default:
|
|
71
|
-
return { bg: '#E5E5E5', text: '#737373', icon: '#737373' };
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
render() {
|
|
75
|
-
const colors = this.getColors();
|
|
76
|
-
return (h(Host, null, h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (h("tttx-
|
|
77
|
-
}
|
|
78
|
-
static get style() { return tttxTagV2Css; }
|
|
79
|
-
}, [1, "tttx-tag-
|
|
80
|
-
"text": [1],
|
|
81
|
-
"color": [1],
|
|
82
|
-
"textColor": [1, "text-color"],
|
|
83
|
-
"iconStart": [1, "icon-start"],
|
|
84
|
-
"iconEnd": [1, "icon-end"],
|
|
85
|
-
"iconSize": [2, "icon-size"],
|
|
86
|
-
"state": [1],
|
|
87
|
-
"size": [1],
|
|
88
|
-
"variant": [1],
|
|
89
|
-
"hasStartIcon": [4, "has-start-icon"],
|
|
90
|
-
"hasEndIcon": [4, "has-end-icon"]
|
|
91
|
-
}]);
|
|
92
|
-
function defineCustomElement$1() {
|
|
93
|
-
if (typeof customElements === "undefined") {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
const components = ["tttx-tag-
|
|
97
|
-
components.forEach(tagName => { switch (tagName) {
|
|
98
|
-
case "tttx-tag-
|
|
99
|
-
if (!customElements.get(tagName)) {
|
|
100
|
-
customElements.define(tagName, TttxTagV2);
|
|
101
|
-
}
|
|
102
|
-
break;
|
|
103
|
-
case "tttx-
|
|
104
|
-
if (!customElements.get(tagName)) {
|
|
105
|
-
defineCustomElement$2();
|
|
106
|
-
}
|
|
107
|
-
break;
|
|
108
|
-
} });
|
|
6
|
+
const TttxTagV2 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.text = undefined;
|
|
12
|
+
this.color = undefined;
|
|
13
|
+
this.textColor = undefined;
|
|
14
|
+
this.iconStart = 'star';
|
|
15
|
+
this.iconEnd = 'close';
|
|
16
|
+
this.iconSize = 16;
|
|
17
|
+
this.state = 'neutral';
|
|
18
|
+
this.size = 'M';
|
|
19
|
+
this.variant = undefined;
|
|
20
|
+
this.hasStartIcon = true;
|
|
21
|
+
this.hasEndIcon = true;
|
|
22
|
+
}
|
|
23
|
+
getColors() {
|
|
24
|
+
// If both variant and state are given, state overrides variant
|
|
25
|
+
if (this.variant) {
|
|
26
|
+
let base;
|
|
27
|
+
switch (this.variant) {
|
|
28
|
+
case 'primary':
|
|
29
|
+
base = { bg: '#1479c6', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
30
|
+
break;
|
|
31
|
+
case 'secondary':
|
|
32
|
+
base = { bg: '#b9d5ed', text: '#1479c6', icon: '#1479c6' };
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
if (this.state && this.state !== 'neutral') {
|
|
36
|
+
// apply state overrides
|
|
37
|
+
switch (this.state) {
|
|
38
|
+
case 'danger':
|
|
39
|
+
return { bg: '#DC2626', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
40
|
+
case 'success':
|
|
41
|
+
return { bg: '#16A34A', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
42
|
+
case 'warning':
|
|
43
|
+
return { bg: '#FACC15', text: '#58310E', icon: '#58310E' };
|
|
44
|
+
case 'brand':
|
|
45
|
+
return { bg: '#1479c6', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return base;
|
|
49
|
+
}
|
|
50
|
+
// fall back to custom color or state
|
|
51
|
+
if (this.color || this.textColor) {
|
|
52
|
+
return {
|
|
53
|
+
bg: this.color || '#E5E5E5',
|
|
54
|
+
text: this.textColor || '#737373',
|
|
55
|
+
icon: this.textColor || '#737373',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// state only (no variant)
|
|
59
|
+
switch (this.state) {
|
|
60
|
+
case 'brand':
|
|
61
|
+
return { bg: '#197A68', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
62
|
+
case 'danger':
|
|
63
|
+
return { bg: '#DC2626', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
64
|
+
case 'success':
|
|
65
|
+
return { bg: '#16A34A', text: '#FFFFFF', icon: '#FFFFFF' };
|
|
66
|
+
case 'warning':
|
|
67
|
+
return { bg: '#FACC15', text: '#58310E', icon: '#58310E' };
|
|
68
|
+
case 'neutral':
|
|
69
|
+
return { bg: '#E5E5E5', text: '#737373', icon: '#737373' };
|
|
70
|
+
default:
|
|
71
|
+
return { bg: '#E5E5E5', text: '#737373', icon: '#737373' };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
const colors = this.getColors();
|
|
76
|
+
return (h(Host, null, h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (h("tttx-icon_1_9_103", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconStart, color: colors.icon, size: this.size === 'S' ? 12 : 16 })), h("span", null, this.text), this.hasEndIcon && this.iconEnd && (h("tttx-icon_1_9_103", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconEnd, color: colors.icon, size: this.iconSize })))));
|
|
77
|
+
}
|
|
78
|
+
static get style() { return tttxTagV2Css; }
|
|
79
|
+
}, [1, "tttx-tag-v2_1_9_103", {
|
|
80
|
+
"text": [1],
|
|
81
|
+
"color": [1],
|
|
82
|
+
"textColor": [1, "text-color"],
|
|
83
|
+
"iconStart": [1, "icon-start"],
|
|
84
|
+
"iconEnd": [1, "icon-end"],
|
|
85
|
+
"iconSize": [2, "icon-size"],
|
|
86
|
+
"state": [1],
|
|
87
|
+
"size": [1],
|
|
88
|
+
"variant": [1],
|
|
89
|
+
"hasStartIcon": [4, "has-start-icon"],
|
|
90
|
+
"hasEndIcon": [4, "has-end-icon"]
|
|
91
|
+
}]);
|
|
92
|
+
function defineCustomElement$1() {
|
|
93
|
+
if (typeof customElements === "undefined") {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const components = ["tttx-tag-v2_1_9_103", "tttx-icon_1_9_103"];
|
|
97
|
+
components.forEach(tagName => { switch (tagName) {
|
|
98
|
+
case "tttx-tag-v2_1_9_103":
|
|
99
|
+
if (!customElements.get(tagName)) {
|
|
100
|
+
customElements.define(tagName, TttxTagV2);
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
case "tttx-icon_1_9_103":
|
|
104
|
+
if (!customElements.get(tagName)) {
|
|
105
|
+
defineCustomElement$2();
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
} });
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
const
|
|
111
|
+
const TttxTagV2_1_9_103 = TttxTagV2;
|
|
112
112
|
const defineCustomElement = defineCustomElement$1;
|
|
113
113
|
|
|
114
|
-
export {
|
|
114
|
+
export { TttxTagV2_1_9_103, defineCustomElement };
|
|
@@ -3,50 +3,50 @@ import { d as defineCustomElement$1 } from './tttx-icon.js';
|
|
|
3
3
|
|
|
4
4
|
const tttxTagCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.blackout:hover{background:#212121;border:1px solid #212121}}:host{display:inline-block}.tag{display:inline-flex;align-items:center;border-radius:20px;padding:4px;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:400;width:max-content}.tag_icon{padding-top:4px}.tag span{margin-left:4px;margin-right:4px}.icon{height:18px;width:18px;font-weight:400}";
|
|
5
5
|
|
|
6
|
-
const TttxTag = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.text = undefined;
|
|
12
|
-
this.color = '#d5d5d5';
|
|
13
|
-
this.textColor = '#212121';
|
|
14
|
-
this.hasIcon = false;
|
|
15
|
-
this.icon = 'check_circle';
|
|
16
|
-
this.iconColor = '#397A4C';
|
|
17
|
-
this.iconSize = 24;
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
21
|
-
h("tttx-
|
|
22
|
-
}
|
|
23
|
-
static get style() { return tttxTagCss; }
|
|
24
|
-
}, [1, "tttx-
|
|
25
|
-
"text": [1],
|
|
26
|
-
"color": [1],
|
|
27
|
-
"textColor": [1, "text-color"],
|
|
28
|
-
"hasIcon": [4, "has-icon"],
|
|
29
|
-
"icon": [1],
|
|
30
|
-
"iconColor": [1, "icon-color"],
|
|
31
|
-
"iconSize": [2, "icon-size"]
|
|
32
|
-
}]);
|
|
33
|
-
function defineCustomElement() {
|
|
34
|
-
if (typeof customElements === "undefined") {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const components = ["tttx-
|
|
38
|
-
components.forEach(tagName => { switch (tagName) {
|
|
39
|
-
case "tttx-
|
|
40
|
-
if (!customElements.get(tagName)) {
|
|
41
|
-
customElements.define(tagName, TttxTag);
|
|
42
|
-
}
|
|
43
|
-
break;
|
|
44
|
-
case "tttx-
|
|
45
|
-
if (!customElements.get(tagName)) {
|
|
46
|
-
defineCustomElement$1();
|
|
47
|
-
}
|
|
48
|
-
break;
|
|
49
|
-
} });
|
|
6
|
+
const TttxTag = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.text = undefined;
|
|
12
|
+
this.color = '#d5d5d5';
|
|
13
|
+
this.textColor = '#212121';
|
|
14
|
+
this.hasIcon = false;
|
|
15
|
+
this.icon = 'check_circle';
|
|
16
|
+
this.iconColor = '#397A4C';
|
|
17
|
+
this.iconSize = 24;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
21
|
+
h("tttx-icon_1_9_103", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
|
|
22
|
+
}
|
|
23
|
+
static get style() { return tttxTagCss; }
|
|
24
|
+
}, [1, "tttx-tag_1_9_103", {
|
|
25
|
+
"text": [1],
|
|
26
|
+
"color": [1],
|
|
27
|
+
"textColor": [1, "text-color"],
|
|
28
|
+
"hasIcon": [4, "has-icon"],
|
|
29
|
+
"icon": [1],
|
|
30
|
+
"iconColor": [1, "icon-color"],
|
|
31
|
+
"iconSize": [2, "icon-size"]
|
|
32
|
+
}]);
|
|
33
|
+
function defineCustomElement() {
|
|
34
|
+
if (typeof customElements === "undefined") {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const components = ["tttx-tag_1_9_103", "tttx-icon_1_9_103"];
|
|
38
|
+
components.forEach(tagName => { switch (tagName) {
|
|
39
|
+
case "tttx-tag_1_9_103":
|
|
40
|
+
if (!customElements.get(tagName)) {
|
|
41
|
+
customElements.define(tagName, TttxTag);
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case "tttx-icon_1_9_103":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
defineCustomElement$1();
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
} });
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export { TttxTag as T, defineCustomElement as d };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface TttxTag_1_9_103 extends Components.TttxTag_1_9_103, HTMLElement {}
|
|
4
|
+
export const TttxTag_1_9_103: {
|
|
5
|
+
prototype: TttxTag_1_9_103;
|
|
6
|
+
new (): TttxTag_1_9_103;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as TttxTag, d as defineCustomElement$1 } from './tttx-tag.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const TttxTag_1_9_103 = TttxTag;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { TttxTag_1_9_103, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxTextarea_1_9_103 extends Components.TttxTextarea_1_9_103, HTMLElement {}
|
|
4
|
+
export const TttxTextarea_1_9_103: {
|
|
5
|
+
prototype: TttxTextarea_1_9_103;
|
|
6
|
+
new (): TttxTextarea_1_9_103;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|