@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
|
@@ -3,407 +3,407 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2c07dc57.js');
|
|
6
|
-
const domsanitiser_options = require('./domsanitiser.options-
|
|
6
|
+
const domsanitiser_options = require('./domsanitiser.options-065dbed8.js');
|
|
7
7
|
require('./_commonjsHelpers-537d719a.js');
|
|
8
8
|
|
|
9
9
|
const tttxFilterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:\"Roboto\", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:\"Roboto\", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:\"Roboto\", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:\"Roboto\", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:\"Roboto\", serif;font-weight:500}";
|
|
10
10
|
|
|
11
|
-
const TttxFilter = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.filterChangeEvent = index.createEvent(this, "filterChangeEvent", 7);
|
|
15
|
-
this.toggleFilter = index.createEvent(this, "toggleFilter", 7);
|
|
16
|
-
this.filterKey = undefined;
|
|
17
|
-
this.filterOptions = [
|
|
18
|
-
{ optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
|
|
19
|
-
{ optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
|
|
20
|
-
{ optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
|
|
21
|
-
];
|
|
22
|
-
this.showSelectAll = true;
|
|
23
|
-
this.showSearchField = false;
|
|
24
|
-
this.showOptionIcons = true;
|
|
25
|
-
this.filterButtonStyle = 'list filter';
|
|
26
|
-
this.filterHeader = 'Qualification status';
|
|
27
|
-
this.defaultFilterOptions = undefined;
|
|
28
|
-
this.popoverWidth = '193px';
|
|
29
|
-
this.showPopover = false;
|
|
30
|
-
this.displayedFilterSettings = undefined;
|
|
31
|
-
this.selectedFilters = undefined;
|
|
32
|
-
this.filterSearchTerm = '';
|
|
33
|
-
this.allSelected = undefined;
|
|
34
|
-
}
|
|
35
|
-
handleCloseFilter() {
|
|
36
|
-
this.showPopover = false;
|
|
37
|
-
}
|
|
38
|
-
emitFilterEvent() {
|
|
39
|
-
this.filterChangeEvent.emit({
|
|
40
|
-
selectedFilters: this.selectedFilters,
|
|
41
|
-
filterKey: this.filterKey,
|
|
42
|
-
allSelected: this.allSelected,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
onFilterButtonClick() {
|
|
46
|
-
this.togglePopover();
|
|
47
|
-
}
|
|
48
|
-
onCloseButtonClick() {
|
|
49
|
-
this.togglePopover();
|
|
50
|
-
}
|
|
51
|
-
onApplyFilterButtonClick() {
|
|
52
|
-
this.emitFilterEvent();
|
|
53
|
-
this.togglePopover();
|
|
54
|
-
}
|
|
55
|
-
onFilterOptionSelected(selectedOption) {
|
|
56
|
-
this.allSelected = false;
|
|
57
|
-
if (this.selectedFilters.includes(selectedOption)) {
|
|
58
|
-
this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
this.selectedFilters = [...this.selectedFilters, selectedOption];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
componentWillLoad() {
|
|
65
|
-
this.displayedFilterSettings = this.parseFilterOptions();
|
|
66
|
-
if (this.defaultFilterOptions !== undefined) {
|
|
67
|
-
const parsedDefaultFilterOptions = this.parseDefaultFilterOptions();
|
|
68
|
-
this.selectedFilters = parsedDefaultFilterOptions;
|
|
69
|
-
let allSelected = true;
|
|
70
|
-
this.parseFilterOptions().map(filterOption => {
|
|
71
|
-
if (!this.selectedFilters.includes(filterOption.optionText)) {
|
|
72
|
-
allSelected = false;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
this.allSelected = allSelected;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.allSelected = true;
|
|
79
|
-
this.selectedFilters = this.displayedFilterSettings.map((filterOption) => filterOption.optionText);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
togglePopover() {
|
|
83
|
-
this.showPopover = !this.showPopover;
|
|
84
|
-
this.toggleFilter.emit(this.showPopover);
|
|
85
|
-
// if(!this.showPopover) {
|
|
86
|
-
// // this._focussedElementIndex = -1;
|
|
87
|
-
// }
|
|
88
|
-
}
|
|
89
|
-
// Commented out keyboard interaction for now
|
|
90
|
-
// @Listen('keyup')
|
|
91
|
-
// handleKeyUp(event: KeyboardEvent) {
|
|
92
|
-
// const keyboardEventValue = event.key;
|
|
93
|
-
// if (document.activeElement.id != `filter__${this.filterKey}`) return;
|
|
94
|
-
// if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
|
|
95
|
-
// if (this._focussedElementIndex == 0) {
|
|
96
|
-
// this.onSelectAllClick()
|
|
97
|
-
// } else {
|
|
98
|
-
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
99
|
-
// this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
|
|
100
|
-
// }
|
|
101
|
-
// return;
|
|
102
|
-
// }
|
|
103
|
-
// switch (keyboardEventValue) {
|
|
104
|
-
// case 'Enter':
|
|
105
|
-
// if(!this.showPopover) {
|
|
106
|
-
// this.showPopover=true
|
|
107
|
-
// } else {
|
|
108
|
-
// this.emitFilterEvent()
|
|
109
|
-
// }
|
|
110
|
-
// break;
|
|
111
|
-
// case 'Escape':
|
|
112
|
-
// this.showPopover = false;
|
|
113
|
-
// this._focussedElementIndex = -1;
|
|
114
|
-
// break;
|
|
115
|
-
// case 'ArrowDown':
|
|
116
|
-
// this.showPopover = true;
|
|
117
|
-
// if (this._focussedElementIndex == -1) {
|
|
118
|
-
// this._focussedElementIndex = 0;
|
|
119
|
-
// } else {
|
|
120
|
-
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
121
|
-
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
122
|
-
// currentOption.blur();
|
|
123
|
-
// // options[this._focussedElementIndex].focus();
|
|
124
|
-
// this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
|
|
125
|
-
// }
|
|
126
|
-
// break;
|
|
127
|
-
// case 'ArrowUp':
|
|
128
|
-
// if (this._focussedElementIndex == -1) {
|
|
129
|
-
// this.showPopover = true;
|
|
130
|
-
// this._focussedElementIndex = 0;
|
|
131
|
-
// } else {
|
|
132
|
-
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
133
|
-
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
134
|
-
// currentOption.blur();
|
|
135
|
-
// // options[this._focussedElementIndex].focus();
|
|
136
|
-
// this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
|
|
137
|
-
// }
|
|
138
|
-
// break;
|
|
139
|
-
// }
|
|
140
|
-
// }
|
|
141
|
-
handleFilterChange(event) {
|
|
142
|
-
const target = event.target;
|
|
143
|
-
this.filterSearchTerm = target.value;
|
|
144
|
-
const filteredResults = this.parseFilterOptions().filter((filterOption) => {
|
|
145
|
-
const lowercaseOption = filterOption.optionText.toLowerCase();
|
|
146
|
-
const filterTerm = this.filterSearchTerm.toLowerCase();
|
|
147
|
-
return lowercaseOption.includes(filterTerm);
|
|
148
|
-
});
|
|
149
|
-
this.displayedFilterSettings = filteredResults;
|
|
150
|
-
}
|
|
151
|
-
onSelectAllClick() {
|
|
152
|
-
this.allSelected = !this.allSelected;
|
|
153
|
-
if (this.allSelected) {
|
|
154
|
-
this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
this.selectedFilters = [];
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
getFilterButtonClassName(buttonStyle) {
|
|
161
|
-
switch (buttonStyle) {
|
|
162
|
-
case 'table icon': {
|
|
163
|
-
return '--table-icon';
|
|
164
|
-
}
|
|
165
|
-
case 'list icon': {
|
|
166
|
-
return '--list-icon';
|
|
167
|
-
}
|
|
168
|
-
default: {
|
|
169
|
-
return '';
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
parseFilterOptions() {
|
|
174
|
-
return typeof this.filterOptions === 'string' ? JSON.parse(this.filterOptions) : this.filterOptions;
|
|
175
|
-
}
|
|
176
|
-
parseDefaultFilterOptions() {
|
|
177
|
-
return typeof this.defaultFilterOptions === 'string' ? JSON.parse(this.defaultFilterOptions) : this.defaultFilterOptions;
|
|
178
|
-
}
|
|
179
|
-
render() {
|
|
180
|
-
const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
|
|
181
|
-
const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
|
|
182
|
-
const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
|
|
183
|
-
const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
|
|
184
|
-
const filterKey = `filter__${this.filterKey}`;
|
|
185
|
-
return (index.h(index.Host, { id: filterKey }, index.h("div", { class: 'filter-container' }, index.h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, index.h("tttx-
|
|
186
|
-
const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
|
|
187
|
-
const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
|
|
188
|
-
return index.h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, index.h("tttx-
|
|
189
|
-
})), index.h("div", { class: 'filter-popover-button-container' }, index.h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), index.h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
|
|
190
|
-
}
|
|
191
|
-
get el() { return index.getElement(this); }
|
|
192
|
-
};
|
|
11
|
+
const TttxFilter = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.filterChangeEvent = index.createEvent(this, "filterChangeEvent", 7);
|
|
15
|
+
this.toggleFilter = index.createEvent(this, "toggleFilter", 7);
|
|
16
|
+
this.filterKey = undefined;
|
|
17
|
+
this.filterOptions = [
|
|
18
|
+
{ optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
|
|
19
|
+
{ optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
|
|
20
|
+
{ optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
|
|
21
|
+
];
|
|
22
|
+
this.showSelectAll = true;
|
|
23
|
+
this.showSearchField = false;
|
|
24
|
+
this.showOptionIcons = true;
|
|
25
|
+
this.filterButtonStyle = 'list filter';
|
|
26
|
+
this.filterHeader = 'Qualification status';
|
|
27
|
+
this.defaultFilterOptions = undefined;
|
|
28
|
+
this.popoverWidth = '193px';
|
|
29
|
+
this.showPopover = false;
|
|
30
|
+
this.displayedFilterSettings = undefined;
|
|
31
|
+
this.selectedFilters = undefined;
|
|
32
|
+
this.filterSearchTerm = '';
|
|
33
|
+
this.allSelected = undefined;
|
|
34
|
+
}
|
|
35
|
+
handleCloseFilter() {
|
|
36
|
+
this.showPopover = false;
|
|
37
|
+
}
|
|
38
|
+
emitFilterEvent() {
|
|
39
|
+
this.filterChangeEvent.emit({
|
|
40
|
+
selectedFilters: this.selectedFilters,
|
|
41
|
+
filterKey: this.filterKey,
|
|
42
|
+
allSelected: this.allSelected,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
onFilterButtonClick() {
|
|
46
|
+
this.togglePopover();
|
|
47
|
+
}
|
|
48
|
+
onCloseButtonClick() {
|
|
49
|
+
this.togglePopover();
|
|
50
|
+
}
|
|
51
|
+
onApplyFilterButtonClick() {
|
|
52
|
+
this.emitFilterEvent();
|
|
53
|
+
this.togglePopover();
|
|
54
|
+
}
|
|
55
|
+
onFilterOptionSelected(selectedOption) {
|
|
56
|
+
this.allSelected = false;
|
|
57
|
+
if (this.selectedFilters.includes(selectedOption)) {
|
|
58
|
+
this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.selectedFilters = [...this.selectedFilters, selectedOption];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
componentWillLoad() {
|
|
65
|
+
this.displayedFilterSettings = this.parseFilterOptions();
|
|
66
|
+
if (this.defaultFilterOptions !== undefined) {
|
|
67
|
+
const parsedDefaultFilterOptions = this.parseDefaultFilterOptions();
|
|
68
|
+
this.selectedFilters = parsedDefaultFilterOptions;
|
|
69
|
+
let allSelected = true;
|
|
70
|
+
this.parseFilterOptions().map(filterOption => {
|
|
71
|
+
if (!this.selectedFilters.includes(filterOption.optionText)) {
|
|
72
|
+
allSelected = false;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
this.allSelected = allSelected;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.allSelected = true;
|
|
79
|
+
this.selectedFilters = this.displayedFilterSettings.map((filterOption) => filterOption.optionText);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
togglePopover() {
|
|
83
|
+
this.showPopover = !this.showPopover;
|
|
84
|
+
this.toggleFilter.emit(this.showPopover);
|
|
85
|
+
// if(!this.showPopover) {
|
|
86
|
+
// // this._focussedElementIndex = -1;
|
|
87
|
+
// }
|
|
88
|
+
}
|
|
89
|
+
// Commented out keyboard interaction for now
|
|
90
|
+
// @Listen('keyup')
|
|
91
|
+
// handleKeyUp(event: KeyboardEvent) {
|
|
92
|
+
// const keyboardEventValue = event.key;
|
|
93
|
+
// if (document.activeElement.id != `filter__${this.filterKey}`) return;
|
|
94
|
+
// if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
|
|
95
|
+
// if (this._focussedElementIndex == 0) {
|
|
96
|
+
// this.onSelectAllClick()
|
|
97
|
+
// } else {
|
|
98
|
+
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
99
|
+
// this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
|
|
100
|
+
// }
|
|
101
|
+
// return;
|
|
102
|
+
// }
|
|
103
|
+
// switch (keyboardEventValue) {
|
|
104
|
+
// case 'Enter':
|
|
105
|
+
// if(!this.showPopover) {
|
|
106
|
+
// this.showPopover=true
|
|
107
|
+
// } else {
|
|
108
|
+
// this.emitFilterEvent()
|
|
109
|
+
// }
|
|
110
|
+
// break;
|
|
111
|
+
// case 'Escape':
|
|
112
|
+
// this.showPopover = false;
|
|
113
|
+
// this._focussedElementIndex = -1;
|
|
114
|
+
// break;
|
|
115
|
+
// case 'ArrowDown':
|
|
116
|
+
// this.showPopover = true;
|
|
117
|
+
// if (this._focussedElementIndex == -1) {
|
|
118
|
+
// this._focussedElementIndex = 0;
|
|
119
|
+
// } else {
|
|
120
|
+
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
121
|
+
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
122
|
+
// currentOption.blur();
|
|
123
|
+
// // options[this._focussedElementIndex].focus();
|
|
124
|
+
// this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
|
|
125
|
+
// }
|
|
126
|
+
// break;
|
|
127
|
+
// case 'ArrowUp':
|
|
128
|
+
// if (this._focussedElementIndex == -1) {
|
|
129
|
+
// this.showPopover = true;
|
|
130
|
+
// this._focussedElementIndex = 0;
|
|
131
|
+
// } else {
|
|
132
|
+
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
133
|
+
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
134
|
+
// currentOption.blur();
|
|
135
|
+
// // options[this._focussedElementIndex].focus();
|
|
136
|
+
// this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
|
|
137
|
+
// }
|
|
138
|
+
// break;
|
|
139
|
+
// }
|
|
140
|
+
// }
|
|
141
|
+
handleFilterChange(event) {
|
|
142
|
+
const target = event.target;
|
|
143
|
+
this.filterSearchTerm = target.value;
|
|
144
|
+
const filteredResults = this.parseFilterOptions().filter((filterOption) => {
|
|
145
|
+
const lowercaseOption = filterOption.optionText.toLowerCase();
|
|
146
|
+
const filterTerm = this.filterSearchTerm.toLowerCase();
|
|
147
|
+
return lowercaseOption.includes(filterTerm);
|
|
148
|
+
});
|
|
149
|
+
this.displayedFilterSettings = filteredResults;
|
|
150
|
+
}
|
|
151
|
+
onSelectAllClick() {
|
|
152
|
+
this.allSelected = !this.allSelected;
|
|
153
|
+
if (this.allSelected) {
|
|
154
|
+
this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
this.selectedFilters = [];
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
getFilterButtonClassName(buttonStyle) {
|
|
161
|
+
switch (buttonStyle) {
|
|
162
|
+
case 'table icon': {
|
|
163
|
+
return '--table-icon';
|
|
164
|
+
}
|
|
165
|
+
case 'list icon': {
|
|
166
|
+
return '--list-icon';
|
|
167
|
+
}
|
|
168
|
+
default: {
|
|
169
|
+
return '';
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
parseFilterOptions() {
|
|
174
|
+
return typeof this.filterOptions === 'string' ? JSON.parse(this.filterOptions) : this.filterOptions;
|
|
175
|
+
}
|
|
176
|
+
parseDefaultFilterOptions() {
|
|
177
|
+
return typeof this.defaultFilterOptions === 'string' ? JSON.parse(this.defaultFilterOptions) : this.defaultFilterOptions;
|
|
178
|
+
}
|
|
179
|
+
render() {
|
|
180
|
+
const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
|
|
181
|
+
const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
|
|
182
|
+
const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
|
|
183
|
+
const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
|
|
184
|
+
const filterKey = `filter__${this.filterKey}`;
|
|
185
|
+
return (index.h(index.Host, { id: filterKey }, index.h("div", { class: 'filter-container' }, index.h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, index.h("tttx-icon_1_9_103", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (index.h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}`, style: { width: this.popoverWidth } }, index.h("div", { class: 'filter-header' }, this.filterHeader), this.showSearchField ? (index.h("div", { class: 'search-field-container' }, index.h("tttx-icon_1_9_103", { icon: 'search', class: 'search-icon' }), index.h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }))) : (''), index.h("div", { class: 'filter-options-container' }, this.showSelectAll ? (index.h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, index.h("tttx-icon_1_9_103", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), index.h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
|
|
186
|
+
const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
|
|
187
|
+
const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
|
|
188
|
+
return index.h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, index.h("tttx-icon_1_9_103", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && index.h("tttx-icon_1_9_103", { icon: option.optionIcon, color: option.optionIconColor }), index.h("label", { class: 'filter-label' }, option.optionText));
|
|
189
|
+
})), index.h("div", { class: 'filter-popover-button-container' }, index.h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), index.h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
|
|
190
|
+
}
|
|
191
|
+
get el() { return index.getElement(this); }
|
|
192
|
+
};
|
|
193
193
|
TttxFilter.style = tttxFilterCss;
|
|
194
194
|
|
|
195
195
|
const tttxListCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start;width:100%}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;box-sizing:border-box;width:100%}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;width:100%;min-height:36px}.checkbox{padding:6px;margin-left:-8px}";
|
|
196
196
|
|
|
197
|
-
const TttxList = class {
|
|
198
|
-
constructor(hostRef) {
|
|
199
|
-
index.registerInstance(this, hostRef);
|
|
200
|
-
this.rowClick = index.createEvent(this, "listRowClick", 7);
|
|
201
|
-
this.rowCheckboxClick = index.createEvent(this, "listRowCheckboxClick", 7);
|
|
202
|
-
this.data = undefined;
|
|
203
|
-
this._data = undefined;
|
|
204
|
-
this.name = undefined;
|
|
205
|
-
}
|
|
206
|
-
onDataChange() {
|
|
207
|
-
if (!this.data) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
if (typeof this.data === 'string') {
|
|
211
|
-
this._data = JSON.parse(this.data);
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
this._data = [...this.data];
|
|
215
|
-
}
|
|
216
|
-
for (const data of this._data) {
|
|
217
|
-
if (data.hasCheckbox && data.checked === undefined) {
|
|
218
|
-
data.checked = false;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
componentWillLoad() {
|
|
223
|
-
// dynamic constructor: any props can be added later
|
|
224
|
-
this.onDataChange();
|
|
225
|
-
}
|
|
226
|
-
onRowCheckboxHandler(event, item) {
|
|
227
|
-
event.stopPropagation();
|
|
228
|
-
if (!item.rowData)
|
|
229
|
-
return;
|
|
230
|
-
this.rowCheckboxClick.emit({ key: item.key, name: this.name, data: item.rowData });
|
|
231
|
-
}
|
|
232
|
-
onRowClickHandler(item) {
|
|
233
|
-
if ((!item.clickable && !item.toggleable) || !item.rowData)
|
|
234
|
-
return;
|
|
235
|
-
this.rowClick.emit({ key: item.key, name: this.name, data: item.rowData });
|
|
236
|
-
}
|
|
237
|
-
renderListItem(item) {
|
|
238
|
-
let element;
|
|
239
|
-
if (typeof item.element === 'string') {
|
|
240
|
-
const cleanHTML = domsanitiser_options.purify.sanitize(item.element, domsanitiser_options.domSanitiserOptions);
|
|
241
|
-
element = index.h("span", { class: "item-content", innerHTML: cleanHTML });
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
element = index.h("span", { class: "item-content" }, item.element);
|
|
245
|
-
}
|
|
246
|
-
return (index.h(index.Fragment, null, item.hasCheckbox && (index.h("div", { class: "checkbox" }, index.h("tttx-
|
|
247
|
-
this.onRowCheckboxHandler(event, item);
|
|
248
|
-
} }))), item.element && element, item.icon && (index.h("span", { class: "icons" }, index.h("tttx-
|
|
249
|
-
}
|
|
250
|
-
render() {
|
|
251
|
-
if (!this._data)
|
|
252
|
-
return;
|
|
253
|
-
return (index.h("ul", { class: "list" }, this._data.map((item) => (index.h("li", { key: item.key, class: 'item' +
|
|
254
|
-
(item.clickable ? ' clickable' : '') +
|
|
255
|
-
(item.toggleable ? ' toggleable' : '') +
|
|
256
|
-
(item.checked ? ' selected' : '') +
|
|
257
|
-
(item.active ? ' active' : ''), onClick: () => {
|
|
258
|
-
this.onRowClickHandler(item);
|
|
259
|
-
} }, this.renderListItem(item))))));
|
|
260
|
-
}
|
|
261
|
-
static get watchers() { return {
|
|
262
|
-
"data": ["onDataChange"]
|
|
263
|
-
}; }
|
|
264
|
-
};
|
|
197
|
+
const TttxList = class {
|
|
198
|
+
constructor(hostRef) {
|
|
199
|
+
index.registerInstance(this, hostRef);
|
|
200
|
+
this.rowClick = index.createEvent(this, "listRowClick", 7);
|
|
201
|
+
this.rowCheckboxClick = index.createEvent(this, "listRowCheckboxClick", 7);
|
|
202
|
+
this.data = undefined;
|
|
203
|
+
this._data = undefined;
|
|
204
|
+
this.name = undefined;
|
|
205
|
+
}
|
|
206
|
+
onDataChange() {
|
|
207
|
+
if (!this.data) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (typeof this.data === 'string') {
|
|
211
|
+
this._data = JSON.parse(this.data);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this._data = [...this.data];
|
|
215
|
+
}
|
|
216
|
+
for (const data of this._data) {
|
|
217
|
+
if (data.hasCheckbox && data.checked === undefined) {
|
|
218
|
+
data.checked = false;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
componentWillLoad() {
|
|
223
|
+
// dynamic constructor: any props can be added later
|
|
224
|
+
this.onDataChange();
|
|
225
|
+
}
|
|
226
|
+
onRowCheckboxHandler(event, item) {
|
|
227
|
+
event.stopPropagation();
|
|
228
|
+
if (!item.rowData)
|
|
229
|
+
return;
|
|
230
|
+
this.rowCheckboxClick.emit({ key: item.key, name: this.name, data: item.rowData });
|
|
231
|
+
}
|
|
232
|
+
onRowClickHandler(item) {
|
|
233
|
+
if ((!item.clickable && !item.toggleable) || !item.rowData)
|
|
234
|
+
return;
|
|
235
|
+
this.rowClick.emit({ key: item.key, name: this.name, data: item.rowData });
|
|
236
|
+
}
|
|
237
|
+
renderListItem(item) {
|
|
238
|
+
let element;
|
|
239
|
+
if (typeof item.element === 'string') {
|
|
240
|
+
const cleanHTML = domsanitiser_options.purify.sanitize(item.element, domsanitiser_options.domSanitiserOptions);
|
|
241
|
+
element = index.h("span", { class: "item-content", innerHTML: cleanHTML });
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
element = index.h("span", { class: "item-content" }, item.element);
|
|
245
|
+
}
|
|
246
|
+
return (index.h(index.Fragment, null, item.hasCheckbox && (index.h("div", { class: "checkbox" }, index.h("tttx-icon_1_9_103", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
|
|
247
|
+
this.onRowCheckboxHandler(event, item);
|
|
248
|
+
} }))), item.element && element, item.icon && (index.h("span", { class: "icons" }, index.h("tttx-icon_1_9_103", { class: "align-right", icon: item.icon, color: 'black' })))));
|
|
249
|
+
}
|
|
250
|
+
render() {
|
|
251
|
+
if (!this._data)
|
|
252
|
+
return;
|
|
253
|
+
return (index.h("ul", { class: "list" }, this._data.map((item) => (index.h("li", { key: item.key, class: 'item' +
|
|
254
|
+
(item.clickable ? ' clickable' : '') +
|
|
255
|
+
(item.toggleable ? ' toggleable' : '') +
|
|
256
|
+
(item.checked ? ' selected' : '') +
|
|
257
|
+
(item.active ? ' active' : ''), onClick: () => {
|
|
258
|
+
this.onRowClickHandler(item);
|
|
259
|
+
} }, this.renderListItem(item))))));
|
|
260
|
+
}
|
|
261
|
+
static get watchers() { return {
|
|
262
|
+
"data": ["onDataChange"]
|
|
263
|
+
}; }
|
|
264
|
+
};
|
|
265
265
|
TttxList.style = tttxListCss;
|
|
266
266
|
|
|
267
267
|
const tttxSorterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}";
|
|
268
268
|
|
|
269
|
-
const TttxSorter = class {
|
|
270
|
-
constructor(hostRef) {
|
|
271
|
-
index.registerInstance(this, hostRef);
|
|
272
|
-
this.sorterChangeEvent = index.createEvent(this, "sorterChangeEvent", 7);
|
|
273
|
-
this.toggleSorter = index.createEvent(this, "toggleSorter", 7);
|
|
274
|
-
this.sorterKey = undefined;
|
|
275
|
-
this.defaultSortDirection = 'descending';
|
|
276
|
-
this.fieldOptionsData = null;
|
|
277
|
-
this.defaultOption = '';
|
|
278
|
-
this.selectedField = this.defaultOption;
|
|
279
|
-
this.sortDirection = this.defaultSortDirection;
|
|
280
|
-
this.dropdownExpand = false;
|
|
281
|
-
this.dropdownOptions = undefined;
|
|
282
|
-
}
|
|
283
|
-
handleCloseSorter() {
|
|
284
|
-
this.dropdownExpand = false;
|
|
285
|
-
}
|
|
286
|
-
emitSortEvent() {
|
|
287
|
-
this.sorterChangeEvent.emit({
|
|
288
|
-
sorterDirection: this.sortDirection,
|
|
289
|
-
sorterKey: this.sorterKey,
|
|
290
|
-
sortField: this.selectedField,
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
onSortToggleClick(event) {
|
|
294
|
-
event.preventDefault();
|
|
295
|
-
if (this.sortDirection == 'ascending') {
|
|
296
|
-
this.sortDirection = 'descending';
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
this.sortDirection = 'ascending';
|
|
300
|
-
}
|
|
301
|
-
this.emitSortEvent();
|
|
302
|
-
}
|
|
303
|
-
onDropdownClicked() {
|
|
304
|
-
this.dropdownExpand = !this.dropdownExpand;
|
|
305
|
-
this.toggleSorter.emit(this.dropdownExpand);
|
|
306
|
-
}
|
|
307
|
-
onDropdownSelected(event) {
|
|
308
|
-
this.dropdownExpand = false;
|
|
309
|
-
const target = event.target;
|
|
310
|
-
this.selectedField = target.innerHTML;
|
|
311
|
-
this.emitSortEvent();
|
|
312
|
-
this.toggleSorter.emit(this.dropdownExpand);
|
|
313
|
-
}
|
|
314
|
-
// getOptionsList() {
|
|
315
|
-
// return this.el.shadowRoot.querySelectorAll('.dropdown-option');
|
|
316
|
-
// }
|
|
317
|
-
// /* istanbul ignore next */
|
|
318
|
-
// @Listen('keyup')
|
|
319
|
-
// handleKeyDown(ev: KeyboardEvent) {
|
|
320
|
-
// const keyboardEventValue = ev.key;
|
|
321
|
-
// if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
|
|
322
|
-
// switch (keyboardEventValue) {
|
|
323
|
-
// case 'Enter':
|
|
324
|
-
// if (this._focussedElementIndex > -1) {
|
|
325
|
-
// const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
|
|
326
|
-
// this.selectedField = options[this._focussedElementIndex].innerHTML;
|
|
327
|
-
// this.emitSortEvent();
|
|
328
|
-
// }
|
|
329
|
-
// this.dropdownExpand = false;
|
|
330
|
-
// break;
|
|
331
|
-
// case 'Escape':
|
|
332
|
-
// this.dropdownExpand = false;
|
|
333
|
-
// break;
|
|
334
|
-
// case 'ArrowDown':
|
|
335
|
-
// this.dropdownExpand = true;
|
|
336
|
-
// if (this._focussedElementIndex > -1) {
|
|
337
|
-
// const options = this.getOptionsList();
|
|
338
|
-
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
339
|
-
// currentOption.blur();
|
|
340
|
-
// options[this._focussedElementIndex].focus();
|
|
341
|
-
// this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
|
|
342
|
-
// } else {
|
|
343
|
-
// this._focussedElementIndex++;
|
|
344
|
-
// }
|
|
345
|
-
// break;
|
|
346
|
-
// case 'ArrowUp':
|
|
347
|
-
// this.dropdownExpand = true;
|
|
348
|
-
// if (this._focussedElementIndex == -1) {
|
|
349
|
-
// const options = this.getOptionsList();
|
|
350
|
-
// this._focussedElementIndex = options.length - 1;
|
|
351
|
-
// } else {
|
|
352
|
-
// const options = this.getOptionsList();
|
|
353
|
-
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
354
|
-
// currentOption.blur();
|
|
355
|
-
// this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
|
|
356
|
-
// options[this._focussedElementIndex].focus();
|
|
357
|
-
// }
|
|
358
|
-
// break;
|
|
359
|
-
// }
|
|
360
|
-
// }
|
|
361
|
-
render() {
|
|
362
|
-
const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
|
|
363
|
-
if (!this.fieldOptionsData)
|
|
364
|
-
return;
|
|
365
|
-
const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
|
|
366
|
-
const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
|
|
367
|
-
const selectedOption = this.selectedField;
|
|
368
|
-
const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
|
|
369
|
-
const sorterKey = `sorter__${this.sorterKey}`;
|
|
370
|
-
return (index.h(index.Host, { id: sorterKey }, index.h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, index.h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, index.h("tttx-
|
|
371
|
-
return (index.h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
|
|
372
|
-
}))))));
|
|
373
|
-
}
|
|
374
|
-
get el() { return index.getElement(this); }
|
|
375
|
-
};
|
|
269
|
+
const TttxSorter = class {
|
|
270
|
+
constructor(hostRef) {
|
|
271
|
+
index.registerInstance(this, hostRef);
|
|
272
|
+
this.sorterChangeEvent = index.createEvent(this, "sorterChangeEvent", 7);
|
|
273
|
+
this.toggleSorter = index.createEvent(this, "toggleSorter", 7);
|
|
274
|
+
this.sorterKey = undefined;
|
|
275
|
+
this.defaultSortDirection = 'descending';
|
|
276
|
+
this.fieldOptionsData = null;
|
|
277
|
+
this.defaultOption = '';
|
|
278
|
+
this.selectedField = this.defaultOption;
|
|
279
|
+
this.sortDirection = this.defaultSortDirection;
|
|
280
|
+
this.dropdownExpand = false;
|
|
281
|
+
this.dropdownOptions = undefined;
|
|
282
|
+
}
|
|
283
|
+
handleCloseSorter() {
|
|
284
|
+
this.dropdownExpand = false;
|
|
285
|
+
}
|
|
286
|
+
emitSortEvent() {
|
|
287
|
+
this.sorterChangeEvent.emit({
|
|
288
|
+
sorterDirection: this.sortDirection,
|
|
289
|
+
sorterKey: this.sorterKey,
|
|
290
|
+
sortField: this.selectedField,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
onSortToggleClick(event) {
|
|
294
|
+
event.preventDefault();
|
|
295
|
+
if (this.sortDirection == 'ascending') {
|
|
296
|
+
this.sortDirection = 'descending';
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
this.sortDirection = 'ascending';
|
|
300
|
+
}
|
|
301
|
+
this.emitSortEvent();
|
|
302
|
+
}
|
|
303
|
+
onDropdownClicked() {
|
|
304
|
+
this.dropdownExpand = !this.dropdownExpand;
|
|
305
|
+
this.toggleSorter.emit(this.dropdownExpand);
|
|
306
|
+
}
|
|
307
|
+
onDropdownSelected(event) {
|
|
308
|
+
this.dropdownExpand = false;
|
|
309
|
+
const target = event.target;
|
|
310
|
+
this.selectedField = target.innerHTML;
|
|
311
|
+
this.emitSortEvent();
|
|
312
|
+
this.toggleSorter.emit(this.dropdownExpand);
|
|
313
|
+
}
|
|
314
|
+
// getOptionsList() {
|
|
315
|
+
// return this.el.shadowRoot.querySelectorAll('.dropdown-option');
|
|
316
|
+
// }
|
|
317
|
+
// /* istanbul ignore next */
|
|
318
|
+
// @Listen('keyup')
|
|
319
|
+
// handleKeyDown(ev: KeyboardEvent) {
|
|
320
|
+
// const keyboardEventValue = ev.key;
|
|
321
|
+
// if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
|
|
322
|
+
// switch (keyboardEventValue) {
|
|
323
|
+
// case 'Enter':
|
|
324
|
+
// if (this._focussedElementIndex > -1) {
|
|
325
|
+
// const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
|
|
326
|
+
// this.selectedField = options[this._focussedElementIndex].innerHTML;
|
|
327
|
+
// this.emitSortEvent();
|
|
328
|
+
// }
|
|
329
|
+
// this.dropdownExpand = false;
|
|
330
|
+
// break;
|
|
331
|
+
// case 'Escape':
|
|
332
|
+
// this.dropdownExpand = false;
|
|
333
|
+
// break;
|
|
334
|
+
// case 'ArrowDown':
|
|
335
|
+
// this.dropdownExpand = true;
|
|
336
|
+
// if (this._focussedElementIndex > -1) {
|
|
337
|
+
// const options = this.getOptionsList();
|
|
338
|
+
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
339
|
+
// currentOption.blur();
|
|
340
|
+
// options[this._focussedElementIndex].focus();
|
|
341
|
+
// this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
|
|
342
|
+
// } else {
|
|
343
|
+
// this._focussedElementIndex++;
|
|
344
|
+
// }
|
|
345
|
+
// break;
|
|
346
|
+
// case 'ArrowUp':
|
|
347
|
+
// this.dropdownExpand = true;
|
|
348
|
+
// if (this._focussedElementIndex == -1) {
|
|
349
|
+
// const options = this.getOptionsList();
|
|
350
|
+
// this._focussedElementIndex = options.length - 1;
|
|
351
|
+
// } else {
|
|
352
|
+
// const options = this.getOptionsList();
|
|
353
|
+
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
354
|
+
// currentOption.blur();
|
|
355
|
+
// this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
|
|
356
|
+
// options[this._focussedElementIndex].focus();
|
|
357
|
+
// }
|
|
358
|
+
// break;
|
|
359
|
+
// }
|
|
360
|
+
// }
|
|
361
|
+
render() {
|
|
362
|
+
const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
|
|
363
|
+
if (!this.fieldOptionsData)
|
|
364
|
+
return;
|
|
365
|
+
const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
|
|
366
|
+
const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
|
|
367
|
+
const selectedOption = this.selectedField;
|
|
368
|
+
const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
|
|
369
|
+
const sorterKey = `sorter__${this.sorterKey}`;
|
|
370
|
+
return (index.h(index.Host, { id: sorterKey }, index.h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, index.h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, index.h("tttx-icon_1_9_103", { icon: arrowIcon, color: "black" })), index.h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, index.h("div", { class: "dropdown-selector-button" }, index.h("div", { class: "dropdown-selector-text" }, selectedOption), index.h("div", { class: "dropdown-selector-chevron" }, index.h("tttx-icon_1_9_103", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (index.h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
|
|
371
|
+
return (index.h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
|
|
372
|
+
}))))));
|
|
373
|
+
}
|
|
374
|
+
get el() { return index.getElement(this); }
|
|
375
|
+
};
|
|
376
376
|
TttxSorter.style = tttxSorterCss;
|
|
377
377
|
|
|
378
378
|
const tttxToolbarCss = ".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";
|
|
379
379
|
|
|
380
|
-
const TttxToolbar = class {
|
|
381
|
-
constructor(hostRef) {
|
|
382
|
-
index.registerInstance(this, hostRef);
|
|
383
|
-
this.border = true;
|
|
384
|
-
this.viewSize = undefined;
|
|
385
|
-
}
|
|
386
|
-
handleResize() {
|
|
387
|
-
this.setViewSize();
|
|
388
|
-
}
|
|
389
|
-
async componentWillLoad() {
|
|
390
|
-
this.setViewSize();
|
|
391
|
-
}
|
|
392
|
-
setViewSize() {
|
|
393
|
-
if (window.innerWidth < 698) {
|
|
394
|
-
this.viewSize = 'mobile';
|
|
395
|
-
}
|
|
396
|
-
else {
|
|
397
|
-
this.viewSize = 'desktop';
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
render() {
|
|
401
|
-
return (index.h(index.Host, null, index.h("div", { class: `container ${this.border ? 'bordered' : ''} ${this.viewSize}` }, index.h("slot", { name: 'before' }), index.h("slot", { name: 'center' }), index.h("slot", { name: 'after' }))));
|
|
402
|
-
}
|
|
403
|
-
};
|
|
380
|
+
const TttxToolbar = class {
|
|
381
|
+
constructor(hostRef) {
|
|
382
|
+
index.registerInstance(this, hostRef);
|
|
383
|
+
this.border = true;
|
|
384
|
+
this.viewSize = undefined;
|
|
385
|
+
}
|
|
386
|
+
handleResize() {
|
|
387
|
+
this.setViewSize();
|
|
388
|
+
}
|
|
389
|
+
async componentWillLoad() {
|
|
390
|
+
this.setViewSize();
|
|
391
|
+
}
|
|
392
|
+
setViewSize() {
|
|
393
|
+
if (window.innerWidth < 698) {
|
|
394
|
+
this.viewSize = 'mobile';
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
this.viewSize = 'desktop';
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
render() {
|
|
401
|
+
return (index.h(index.Host, null, index.h("div", { class: `container ${this.border ? 'bordered' : ''} ${this.viewSize}` }, index.h("slot", { name: 'before' }), index.h("slot", { name: 'center' }), index.h("slot", { name: 'after' }))));
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
404
|
TttxToolbar.style = tttxToolbarCss;
|
|
405
405
|
|
|
406
|
-
exports.
|
|
407
|
-
exports.
|
|
408
|
-
exports.
|
|
409
|
-
exports.
|
|
406
|
+
exports.tttx_filter_1_9_103 = TttxFilter;
|
|
407
|
+
exports.tttx_list_1_9_103 = TttxList;
|
|
408
|
+
exports.tttx_sorter_1_9_103 = TttxSorter;
|
|
409
|
+
exports.tttx_toolbar_1_9_103 = TttxToolbar;
|