@3t-transform/threeteeui 1.9.102 → 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_localcomponent.cjs.entry.js → tttx-action-dropdown_1_9_103.cjs.entry.js} +51 -51
- package/dist/cjs/{tttx-button-v2_localcomponent.cjs.entry.js → tttx-button-v2_1_9_103.cjs.entry.js} +147 -147
- package/dist/cjs/{tttx-button_localcomponent.cjs.entry.js → tttx-button_1_9_103.cjs.entry.js} +26 -26
- package/dist/cjs/{tttx-chart_localcomponent.cjs.entry.js → tttx-chart_1_9_103.cjs.entry.js} +524 -524
- package/dist/cjs/{tttx-checkbox-group-caption_localcomponent.cjs.entry.js → tttx-checkbox-group-caption_1_9_103.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-checkbox-group-heading_localcomponent.cjs.entry.js → tttx-checkbox-group-heading_1_9_103.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-checkbox-group_localcomponent.cjs.entry.js → tttx-checkbox-group_1_9_103.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-checkbox_localcomponent.cjs.entry.js → tttx-checkbox_1_9_103.cjs.entry.js} +33 -33
- package/dist/cjs/{tttx-comments_localcomponent.cjs.entry.js → tttx-comments_1_9_103.cjs.entry.js} +204 -204
- package/dist/cjs/tttx-data-pattern_1_9_103.cjs.entry.js +30 -0
- package/dist/cjs/{tttx-datacard_localcomponent.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_localcomponent.cjs.entry.js → tttx-dialog-box_1_9_103.cjs.entry.js} +94 -94
- package/dist/cjs/{tttx-dialog_localcomponent.cjs.entry.js → tttx-dialog_1_9_103.cjs.entry.js} +69 -69
- package/dist/cjs/{tttx-expander_localcomponent.cjs.entry.js → tttx-expander_1_9_103.cjs.entry.js} +28 -28
- package/dist/cjs/{tttx-filter_localcomponent_4.cjs.entry.js → tttx-filter_1_9_103_4.cjs.entry.js} +386 -386
- package/dist/cjs/{tttx-form_localcomponent.cjs.entry.js → tttx-form_1_9_103.cjs.entry.js} +985 -985
- package/dist/cjs/{tttx-graph_localcomponent.cjs.entry.js → tttx-graph_1_9_103.cjs.entry.js} +124 -124
- package/dist/cjs/{tttx-icon_localcomponent.cjs.entry.js → tttx-icon_1_9_103.cjs.entry.js} +24 -24
- package/dist/cjs/{tttx-keyvalue-block_localcomponent.cjs.entry.js → tttx-keyvalue-block_1_9_103.cjs.entry.js} +62 -62
- package/dist/cjs/{tttx-loading-spinner_localcomponent_3.cjs.entry.js → tttx-loading-spinner_1_9_103_3.cjs.entry.js} +172 -172
- package/dist/cjs/{tttx-multiselect-box_localcomponent.cjs.entry.js → tttx-multiselect-box_1_9_103.cjs.entry.js} +175 -175
- package/dist/cjs/{tttx-percentage-bar_localcomponent.cjs.entry.js → tttx-percentage-bar_1_9_103.cjs.entry.js} +56 -56
- package/dist/cjs/{tttx-qrcode_localcomponent.cjs.entry.js → tttx-qrcode_1_9_103.cjs.entry.js} +28 -28
- package/dist/cjs/{tttx-range-slider_localcomponent.cjs.entry.js → tttx-range-slider_1_9_103.cjs.entry.js} +185 -185
- package/dist/cjs/{tttx-select-box_localcomponent.cjs.entry.js → tttx-select-box_1_9_103.cjs.entry.js} +239 -239
- package/dist/cjs/{tttx-skeleton_loader_localcomponent.cjs.entry.js → tttx-skeleton_loader_1_9_103.cjs.entry.js} +30 -30
- package/dist/cjs/{tttx-table_localcomponent.cjs.entry.js → tttx-table_1_9_103.cjs.entry.js} +72 -72
- package/dist/cjs/{tttx-tabs_localcomponent.cjs.entry.js → tttx-tabs_1_9_103.cjs.entry.js} +103 -103
- package/dist/cjs/{tttx-tag-v2_localcomponent.cjs.entry.js → tttx-tag-v2_1_9_103.cjs.entry.js} +72 -72
- package/dist/cjs/{tttx-textarea_localcomponent.cjs.entry.js → tttx-textarea_1_9_103.cjs.entry.js} +50 -50
- package/dist/cjs/{tttx-toggle_localcomponent.cjs.entry.js → tttx-toggle_1_9_103.cjs.entry.js} +30 -30
- package/dist/cjs/{tttx-tooltip_localcomponent.cjs.entry.js → tttx-tooltip_1_9_103.cjs.entry.js} +87 -87
- package/dist/cjs/{tttx-tree-view_localcomponent.cjs.entry.js → tttx-tree-view_1_9_103.cjs.entry.js} +341 -341
- 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.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_localcomponent.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_localcomponent.js → tttx-button-v2_1_9_103.js} +2 -2
- package/dist/components/tttx-button.js +51 -51
- package/dist/components/tttx-button_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-button_localcomponent.js → tttx-button_1_9_103.js} +2 -2
- package/dist/components/tttx-chart_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-chart_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.js → tttx-dialog-box_1_9_103.js} +125 -125
- package/dist/components/tttx-dialog_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-dialog_localcomponent.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_localcomponent.js → tttx-expander_1_9_103.js} +55 -55
- package/dist/components/tttx-filter.js +217 -217
- package/dist/components/tttx-filter_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-filter_localcomponent.js → tttx-filter_1_9_103.js} +2 -2
- package/dist/components/tttx-form_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-form_localcomponent.js → tttx-form_1_9_103.js} +1039 -1039
- package/dist/components/tttx-graph.js +143 -143
- package/dist/components/tttx-graph_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-graph_localcomponent.js → tttx-graph_1_9_103.js} +2 -2
- package/dist/components/tttx-icon.js +42 -42
- package/dist/components/tttx-icon_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-icon_localcomponent.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_localcomponent.js → tttx-keyvalue-block_1_9_103.js} +83 -83
- package/dist/components/tttx-list.js +92 -92
- package/dist/components/tttx-list_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-list_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.js → tttx-standalone-input_1_9_103.js} +2 -2
- package/dist/components/tttx-table_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-table_localcomponent.js → tttx-table_1_9_103.js} +109 -109
- package/dist/components/tttx-tabs_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-tabs_localcomponent.js → tttx-tabs_1_9_103.js} +128 -128
- package/dist/components/tttx-tag-v2_1_9_103.d.ts +11 -0
- package/dist/components/{tttx-tag-v2_localcomponent.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_103.d.ts +11 -0
- package/dist/components/{tttx-tag_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.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_localcomponent.js → tttx-tree-view_1_9_103.js} +370 -370
- 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_localcomponent.entry.js → tttx-action-dropdown_1_9_103.entry.js} +51 -51
- package/dist/esm/{tttx-button-v2_localcomponent.entry.js → tttx-button-v2_1_9_103.entry.js} +147 -147
- package/dist/esm/{tttx-button_localcomponent.entry.js → tttx-button_1_9_103.entry.js} +26 -26
- package/dist/esm/{tttx-chart_localcomponent.entry.js → tttx-chart_1_9_103.entry.js} +524 -524
- package/dist/esm/{tttx-checkbox-group-caption_localcomponent.entry.js → tttx-checkbox-group-caption_1_9_103.entry.js} +9 -9
- package/dist/esm/{tttx-checkbox-group-heading_localcomponent.entry.js → tttx-checkbox-group-heading_1_9_103.entry.js} +9 -9
- package/dist/esm/{tttx-checkbox-group_localcomponent.entry.js → tttx-checkbox-group_1_9_103.entry.js} +9 -9
- package/dist/esm/{tttx-checkbox_localcomponent.entry.js → tttx-checkbox_1_9_103.entry.js} +33 -33
- package/dist/esm/{tttx-comments_localcomponent.entry.js → tttx-comments_1_9_103.entry.js} +204 -204
- package/dist/esm/tttx-data-pattern_1_9_103.entry.js +26 -0
- package/dist/esm/{tttx-datacard_localcomponent.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_localcomponent.entry.js → tttx-dialog-box_1_9_103.entry.js} +94 -94
- package/dist/esm/{tttx-dialog_localcomponent.entry.js → tttx-dialog_1_9_103.entry.js} +69 -69
- package/dist/esm/{tttx-expander_localcomponent.entry.js → tttx-expander_1_9_103.entry.js} +28 -28
- package/dist/esm/{tttx-filter_localcomponent_4.entry.js → tttx-filter_1_9_103_4.entry.js} +383 -383
- package/dist/esm/{tttx-form_localcomponent.entry.js → tttx-form_1_9_103.entry.js} +985 -985
- package/dist/esm/{tttx-graph_localcomponent.entry.js → tttx-graph_1_9_103.entry.js} +124 -124
- package/dist/esm/{tttx-icon_localcomponent.entry.js → tttx-icon_1_9_103.entry.js} +24 -24
- package/dist/esm/{tttx-keyvalue-block_localcomponent.entry.js → tttx-keyvalue-block_1_9_103.entry.js} +62 -62
- package/dist/esm/tttx-loading-spinner_1_9_103_3.entry.js +183 -0
- package/dist/esm/{tttx-multiselect-box_localcomponent.entry.js → tttx-multiselect-box_1_9_103.entry.js} +175 -175
- package/dist/esm/{tttx-percentage-bar_localcomponent.entry.js → tttx-percentage-bar_1_9_103.entry.js} +56 -56
- package/dist/esm/{tttx-qrcode_localcomponent.entry.js → tttx-qrcode_1_9_103.entry.js} +28 -28
- package/dist/esm/{tttx-range-slider_localcomponent.entry.js → tttx-range-slider_1_9_103.entry.js} +185 -185
- package/dist/esm/{tttx-select-box_localcomponent.entry.js → tttx-select-box_1_9_103.entry.js} +239 -239
- package/dist/esm/{tttx-skeleton_loader_localcomponent.entry.js → tttx-skeleton_loader_1_9_103.entry.js} +30 -30
- package/dist/esm/{tttx-table_localcomponent.entry.js → tttx-table_1_9_103.entry.js} +72 -72
- package/dist/esm/{tttx-tabs_localcomponent.entry.js → tttx-tabs_1_9_103.entry.js} +103 -103
- package/dist/esm/{tttx-tag-v2_localcomponent.entry.js → tttx-tag-v2_1_9_103.entry.js} +72 -72
- package/dist/esm/{tttx-textarea_localcomponent.entry.js → tttx-textarea_1_9_103.entry.js} +50 -50
- package/dist/esm/{tttx-toggle_localcomponent.entry.js → tttx-toggle_1_9_103.entry.js} +30 -30
- package/dist/esm/{tttx-tooltip_localcomponent.entry.js → tttx-tooltip_1_9_103.entry.js} +87 -87
- package/dist/esm/{tttx-tree-view_localcomponent.entry.js → tttx-tree-view_1_9_103.entry.js} +341 -341
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-0c5bc253.entry.js +1 -0
- package/dist/tttx/p-10d2d044.entry.js +1 -0
- package/dist/tttx/p-1623f3cf.entry.js +1 -1
- package/dist/tttx/p-16aa3f67.entry.js +1 -0
- 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-486ca932.entry.js +1 -0
- package/dist/tttx/p-59115c8f.entry.js +1 -0
- package/dist/tttx/p-5d289334.entry.js +1 -1
- package/dist/tttx/p-6ec18b4a.entry.js +1 -1
- package/dist/tttx/p-700c2816.entry.js +1 -0
- 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-fa25ee03.entry.js +1 -0
- package/dist/tttx/p-fbdd1046.entry.js +1 -0
- 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/cjs/tttx-data-pattern_localcomponent.cjs.entry.js +0 -30
- package/dist/components/tttx-action-dropdown_localcomponent.d.ts +0 -11
- package/dist/components/tttx-button-v2_localcomponent.d.ts +0 -11
- package/dist/components/tttx-button_localcomponent.d.ts +0 -11
- package/dist/components/tttx-chart_localcomponent.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_localcomponent.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_localcomponent.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_localcomponent.d.ts +0 -11
- package/dist/components/tttx-checkbox_localcomponent.d.ts +0 -11
- package/dist/components/tttx-comments_localcomponent.d.ts +0 -11
- package/dist/components/tttx-data-pattern_localcomponent.d.ts +0 -11
- package/dist/components/tttx-datacard_localcomponent.d.ts +0 -11
- package/dist/components/tttx-dialog-box_localcomponent.d.ts +0 -11
- package/dist/components/tttx-dialog_localcomponent.d.ts +0 -11
- package/dist/components/tttx-expander_localcomponent.d.ts +0 -11
- package/dist/components/tttx-filter_localcomponent.d.ts +0 -11
- package/dist/components/tttx-form_localcomponent.d.ts +0 -11
- package/dist/components/tttx-graph_localcomponent.d.ts +0 -11
- package/dist/components/tttx-icon_localcomponent.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_localcomponent.d.ts +0 -11
- package/dist/components/tttx-list_localcomponent.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_localcomponent.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_localcomponent.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_localcomponent.d.ts +0 -11
- package/dist/components/tttx-qrcode_localcomponent.d.ts +0 -11
- package/dist/components/tttx-range-slider_localcomponent.d.ts +0 -11
- package/dist/components/tttx-select-box_localcomponent.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_localcomponent.d.ts +0 -11
- package/dist/components/tttx-sorter_localcomponent.d.ts +0 -11
- package/dist/components/tttx-standalone-input_localcomponent.d.ts +0 -11
- package/dist/components/tttx-table_localcomponent.d.ts +0 -11
- package/dist/components/tttx-tabs_localcomponent.d.ts +0 -11
- package/dist/components/tttx-tag-v2_localcomponent.d.ts +0 -11
- package/dist/components/tttx-tag_localcomponent.d.ts +0 -11
- package/dist/components/tttx-textarea_localcomponent.d.ts +0 -11
- package/dist/components/tttx-toggle_localcomponent.d.ts +0 -11
- package/dist/components/tttx-toolbar_localcomponent.d.ts +0 -11
- package/dist/components/tttx-tooltip_localcomponent.d.ts +0 -11
- package/dist/components/tttx-tree-view_localcomponent.d.ts +0 -11
- package/dist/esm/tttx-data-pattern_localcomponent.entry.js +0 -26
- package/dist/esm/tttx-loading-spinner_localcomponent_3.entry.js +0 -183
- package/dist/tttx/p-00a849cf.entry.js +0 -1
- package/dist/tttx/p-41f0bf7f.entry.js +0 -1
- package/dist/tttx/p-82b4e575.entry.js +0 -1
- package/dist/tttx/p-86e4c8cc.entry.js +0 -1
- package/dist/tttx/p-b161205b.entry.js +0 -1
- package/dist/tttx/p-b3f49d83.entry.js +0 -1
- package/dist/tttx/p-d4c4edbd.entry.js +0 -1
- package/dist/tttx/p-e21e3a9c.entry.js +0 -1
- 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
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent, H as Host } from './index-b614efb4.js';
|
|
2
|
-
|
|
3
|
-
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.loading-container{display:flex;flex-direction:column;align-items:center}.loading-box{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.loading-text{font-size:16px;font-weight:400;text-align:center;border-radius:4px;padding:12px 16px;color:#666;box-shadow:0 0 1px 0 rgba(33, 33, 33, 0.16)}.spinner{position:relative;box-sizing:border-box;animation:rotation 1s linear infinite;transform-origin:center}.spinner.small{height:20px;width:20px}.spinner.large{height:60px;width:60px}.spinner .spinner-circle{transform-origin:center}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
4
|
-
|
|
5
|
-
const TttxLoadingSpinner = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.defaultMessageSchema = [
|
|
9
|
-
{ threshold: 2, message: 'Loading please wait…' },
|
|
10
|
-
{ threshold: 4, message: 'Processing your request…' },
|
|
11
|
-
{ threshold: Infinity, message: 'Hang tight, almost there…' },
|
|
12
|
-
];
|
|
13
|
-
this.loadingMessage = false;
|
|
14
|
-
this.size = 'large';
|
|
15
|
-
this.color = '#2e6dcc';
|
|
16
|
-
this.cardBackgroundColor = undefined;
|
|
17
|
-
this.message = undefined;
|
|
18
|
-
this.customMessageSchema = undefined;
|
|
19
|
-
this.timeElapsed = 0;
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
if (this.loadingMessage && !this.message && !this.timer) {
|
|
23
|
-
this.startTimer();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
disconnectedCallback() {
|
|
27
|
-
this.clearTimer();
|
|
28
|
-
}
|
|
29
|
-
startTimer() {
|
|
30
|
-
this.timer = setInterval(() => {
|
|
31
|
-
this.timeElapsed += 1;
|
|
32
|
-
}, 1000);
|
|
33
|
-
}
|
|
34
|
-
clearTimer() {
|
|
35
|
-
if (this.timer) {
|
|
36
|
-
clearInterval(this.timer);
|
|
37
|
-
this.timer = undefined;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
getEffectiveSchema() {
|
|
41
|
-
// Use custom schema if valid, otherwise fallback
|
|
42
|
-
return Array.isArray(this.customMessageSchema) && this.customMessageSchema.length > 0
|
|
43
|
-
? this.customMessageSchema
|
|
44
|
-
: this.defaultMessageSchema;
|
|
45
|
-
}
|
|
46
|
-
getMessageFromSchema() {
|
|
47
|
-
const schema = this.getEffectiveSchema();
|
|
48
|
-
for (const { threshold, message } of schema) {
|
|
49
|
-
if (this.timeElapsed <= threshold) {
|
|
50
|
-
return message;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return ''; // fallback, should not occur if Infinity is present
|
|
54
|
-
}
|
|
55
|
-
getDynamicMessage() {
|
|
56
|
-
var _a;
|
|
57
|
-
return (_a = this.message) !== null && _a !== void 0 ? _a : this.getMessageFromSchema();
|
|
58
|
-
}
|
|
59
|
-
renderMessage() {
|
|
60
|
-
if (!this.loadingMessage)
|
|
61
|
-
return null;
|
|
62
|
-
return (h("div", { class: "loading-text", style: this.cardBackgroundColor ? { 'background-color': this.cardBackgroundColor } : {} }, this.getDynamicMessage()));
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
const size = this.size === 'small' ? 20 : 60;
|
|
66
|
-
const strokeWidth = this.size === 'small' ? 4 : 8;
|
|
67
|
-
const radius = (size - strokeWidth) / 2;
|
|
68
|
-
const circumference = 2 * Math.PI * radius;
|
|
69
|
-
const strokeDasharray = circumference;
|
|
70
|
-
const strokeDashoffset = circumference * 0.80;
|
|
71
|
-
return (h("div", { class: "loading-container" }, h("div", { class: "loading-box" }, h("svg", { class: `spinner ${this.size}`, viewBox: `0 0 ${size} ${size}`, style: { '--spinner-color': this.color } }, h("circle", { class: "spinner-ring", cx: size / 2, cy: size / 2, r: radius, fill: "none", stroke: "#e0e0e0", "stroke-width": strokeWidth, opacity: "0.3" }), h("circle", { class: "spinner-circle", cx: size / 2, cy: size / 2, r: radius, fill: "none", stroke: this.color, "stroke-width": strokeWidth, "stroke-dasharray": strokeDasharray, "stroke-dashoffset": strokeDashoffset, "stroke-linecap": "round" }))), this.renderMessage()));
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
|
|
75
|
-
|
|
76
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_localcomponent{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_localcomponent{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_localcomponent{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_localcomponent .optional.sc-tttx-standalone-input_localcomponent{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent{position:relative}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent .left-icons.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent .right-icons.sc-tttx-standalone-input_localcomponent{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent .left-icons.sc-tttx-standalone-input_localcomponent tttx-icon.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent .right-icons.sc-tttx-standalone-input_localcomponent tttx-icon.sc-tttx-standalone-input_localcomponent{height:24px;width:24px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent .left-icons.sc-tttx-standalone-input_localcomponent{left:8px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent .right-icons.sc-tttx-standalone-input_localcomponent{right:8px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.sc-tttx-standalone-input_localcomponent{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px;padding:0;padding-left:16px;padding-right:16px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.has-input-icon.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.has-input-icon.sc-tttx-standalone-input_localcomponent{padding-left:40px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.has-input-icon.has-left-icon.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_localcomponent{padding-left:72px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.has-left-icon.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.has-left-icon.sc-tttx-standalone-input_localcomponent{padding-left:40px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.has-right-icon.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.has-right-icon.sc-tttx-standalone-input_localcomponent{padding-right:40px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.invalid.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.invalid.sc-tttx-standalone-input_localcomponent{border:1px solid #dc0000}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.sc-tttx-standalone-input_localcomponent:not([type=submit]),label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.sc-tttx-standalone-input_localcomponent:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input[type=radio].sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea[type=radio].sc-tttx-standalone-input_localcomponent{width:20px;height:20px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input[type=date].sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea[type=date].sc-tttx-standalone-input_localcomponent{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input[readonly].sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea[readonly].sc-tttx-standalone-input_localcomponent{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.sc-tttx-standalone-input_localcomponent:focus,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.sc-tttx-standalone-input_localcomponent:focus{border-color:#1479c6}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent input.sc-tttx-standalone-input_localcomponent:focus-visible,label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.sc-tttx-standalone-input_localcomponent:focus-visible{outline:none}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.sc-tttx-standalone-input_localcomponent{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_localcomponent .outer-container.sc-tttx-standalone-input_localcomponent textarea.resize-none.sc-tttx-standalone-input_localcomponent{resize:none}label.sc-tttx-standalone-input_localcomponent .outer-container.inputBlock.sc-tttx-standalone-input_localcomponent{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_localcomponent .outer-container.inputBlock.sc-tttx-standalone-input_localcomponent .left-icons.sc-tttx-standalone-input_localcomponent,label.sc-tttx-standalone-input_localcomponent .outer-container.inputBlock.sc-tttx-standalone-input_localcomponent .right-icons.sc-tttx-standalone-input_localcomponent{margin-top:4px}label.sc-tttx-standalone-input_localcomponent .outer-container.inputBlock.readonly.sc-tttx-standalone-input_localcomponent{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_localcomponent .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_localcomponent{display:block}label.sc-tttx-standalone-input_localcomponent .outer-container.inputInline.sc-tttx-standalone-input_localcomponent{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_localcomponent .outer-container.inputInline.sc-tttx-standalone-input_localcomponent input.sc-tttx-standalone-input_localcomponent{margin-top:0}label.sc-tttx-standalone-input_localcomponent .secondarylabel.sc-tttx-standalone-input_localcomponent{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_localcomponent .errorBubble.sc-tttx-standalone-input_localcomponent{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-standalone-input_localcomponent .errorBubble.sc-tttx-standalone-input_localcomponent:not(.visible){display:none}label.sc-tttx-standalone-input_localcomponent .errorBubble.sc-tttx-standalone-input_localcomponent span.sc-tttx-standalone-input_localcomponent{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_localcomponent{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}.sc-tttx-standalone-input_localcomponent-h{display:block}";
|
|
77
|
-
|
|
78
|
-
const TttxInput = class {
|
|
79
|
-
constructor(hostRef) {
|
|
80
|
-
registerInstance(this, hostRef);
|
|
81
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
82
|
-
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
83
|
-
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
84
|
-
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
85
|
-
this.inputIconClick = createEvent(this, "inputIconClick", 7);
|
|
86
|
-
this.leftIconClick = createEvent(this, "leftIconClick", 7);
|
|
87
|
-
this.rightIconClick = createEvent(this, "rightIconClick", 7);
|
|
88
|
-
this.label = undefined;
|
|
89
|
-
this.secondarylabel = undefined;
|
|
90
|
-
this.showerrormsg = undefined;
|
|
91
|
-
this.showerrorbubble = true;
|
|
92
|
-
this.errormsg = undefined;
|
|
93
|
-
this.iconleft = undefined;
|
|
94
|
-
this.iconleftcolor = 'grey';
|
|
95
|
-
this.iconright = undefined;
|
|
96
|
-
this.iconrightcolor = 'grey';
|
|
97
|
-
this.inputicon = undefined;
|
|
98
|
-
this.inputiconcolor = 'grey';
|
|
99
|
-
this.inline = undefined;
|
|
100
|
-
this.inputautocapitalize = undefined;
|
|
101
|
-
this.inputautofocus = undefined;
|
|
102
|
-
this.inputkeyhint = undefined;
|
|
103
|
-
this.inputindex = undefined;
|
|
104
|
-
this.inputtitle = undefined;
|
|
105
|
-
this.autocomplete = undefined;
|
|
106
|
-
this.checked = undefined;
|
|
107
|
-
this.disabled = undefined;
|
|
108
|
-
this.max = undefined;
|
|
109
|
-
this.maxlength = undefined;
|
|
110
|
-
this.min = undefined;
|
|
111
|
-
this.minlength = undefined;
|
|
112
|
-
this.name = undefined;
|
|
113
|
-
this.pattern = undefined;
|
|
114
|
-
this.placeholder = undefined;
|
|
115
|
-
this.readonly = undefined;
|
|
116
|
-
this.required = undefined;
|
|
117
|
-
this.step = undefined;
|
|
118
|
-
this.type = 'text';
|
|
119
|
-
this.value = undefined;
|
|
120
|
-
}
|
|
121
|
-
handleChange(event) {
|
|
122
|
-
const target = event.target;
|
|
123
|
-
this.value = target.value;
|
|
124
|
-
this.valueChanged.emit(target.value);
|
|
125
|
-
}
|
|
126
|
-
handleFocus(event) {
|
|
127
|
-
const target = event.target;
|
|
128
|
-
this.focusChanged.emit(target.value);
|
|
129
|
-
}
|
|
130
|
-
handleBlur(event) {
|
|
131
|
-
const target = event.target;
|
|
132
|
-
this.blurChanged.emit(target.value);
|
|
133
|
-
}
|
|
134
|
-
handleInvalid(event) {
|
|
135
|
-
event.preventDefault();
|
|
136
|
-
const target = event.target;
|
|
137
|
-
this.invalidChanged.emit(target.value);
|
|
138
|
-
}
|
|
139
|
-
handleInputIconClick(event) {
|
|
140
|
-
event.preventDefault();
|
|
141
|
-
this.inputIconClick.emit();
|
|
142
|
-
}
|
|
143
|
-
handleLeftIconClick(event) {
|
|
144
|
-
event.preventDefault();
|
|
145
|
-
this.leftIconClick.emit();
|
|
146
|
-
}
|
|
147
|
-
handleRightIconClick(event) {
|
|
148
|
-
event.preventDefault();
|
|
149
|
-
this.rightIconClick.emit();
|
|
150
|
-
}
|
|
151
|
-
render() {
|
|
152
|
-
const classNames = [
|
|
153
|
-
this.showerrormsg ? 'invalid' : '',
|
|
154
|
-
this.inputicon ? 'has-input-icon' : '',
|
|
155
|
-
this.iconleft ? 'has-left-icon' : '',
|
|
156
|
-
this.iconright ? 'has-right-icon' : '',
|
|
157
|
-
].join(' ');
|
|
158
|
-
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_localcomponent", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_localcomponent", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_localcomponent", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
TttxInput.style = tttxStandaloneInputCss;
|
|
162
|
-
|
|
163
|
-
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}";
|
|
164
|
-
|
|
165
|
-
const TttxTag = class {
|
|
166
|
-
constructor(hostRef) {
|
|
167
|
-
registerInstance(this, hostRef);
|
|
168
|
-
this.text = undefined;
|
|
169
|
-
this.color = '#d5d5d5';
|
|
170
|
-
this.textColor = '#212121';
|
|
171
|
-
this.hasIcon = false;
|
|
172
|
-
this.icon = 'check_circle';
|
|
173
|
-
this.iconColor = '#397A4C';
|
|
174
|
-
this.iconSize = 24;
|
|
175
|
-
}
|
|
176
|
-
render() {
|
|
177
|
-
return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
178
|
-
h("tttx-icon_localcomponent", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
TttxTag.style = tttxTagCss;
|
|
182
|
-
|
|
183
|
-
export { TttxLoadingSpinner as tttx_loading_spinner_localcomponent, TttxInput as tttx_standalone_input_localcomponent, TttxTag as tttx_tag_localcomponent };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-457a7731.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-tag_localcomponent",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),s.map((t=>this.dropdownOption(t)))),n.length>0&&i(e,null,o&&i("tttx-tag_localcomponent",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=t.selected?"check_box":"check_box_outline_blank",e=t.selected?"blue":"grey";if(t.html){const s=l.sanitize(t.html,r);return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_localcomponent",{icon:o,color:e,class:"checkbox-icon"}),i("div",{innerHTML:s}))}return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_localcomponent",{icon:o,color:e,class:"checkbox-icon"}),i("div",{class:"plaintext-option"},t.label))}handleSearchInput(t){const o=t.target;this.searchTerm=o.value,this.searchDataChanged.emit({searchTerm:o.value}),this.calculateDropdownMenuOffset()}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),o=t.getBoundingClientRect().bottom,i=t.getBoundingClientRect();let e=Math.min(288,36*this.unsavedSelectedItems.length)+45+8;this.searchEnabled&&(e+=52),this.bodyOffset=o+e>window.innerHeight?{top:window.innerHeight-(e+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:i.left,top:`${i.top}px`,width:i.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.open?"expand_less":"expand_more",o=this.readOnly?"dropdown-read-only":"";return i(s,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",o].join(" "),onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent(),i("div",{class:"dropdown-selector-chevron"},i("tttx-icon_localcomponent",{icon:t,color:"black"}))),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_localcomponent",{type:"text",placeholder:"Search",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this),inline:!0})),i("div",{class:"dropdown-options-list"},this.isLoading?i("tttx-loading-spinner_localcomponent",{class:"loading-style"}):this.renderDropdownOptions(this.unsavedSelectedItems)),i("div",{class:"footer"},i("tttx-button_localcomponent",{design:"primary",onClick:this.applyChanges.bind(this)},"Apply"),i("tttx-button_localcomponent",{onClick:this.onCancel.bind(this)},"Cancel"))))))}get el(){return n(this)}static get watchers(){return{optionsData:["handleOptionsDataChange"]}}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-style:normal;font-weight:500;line-height:normal}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{align-items:center;gap:8px;padding:6px 8px 6px 16px;cursor:pointer;border:1px solid #d5d5d5}.dropdown-selector *{font-weight:400}.dropdown-selector-chevron{margin-left:auto;height:24px;align-self:flex-start}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-selector-html-content{display:flex;gap:8px;flex-wrap:wrap}.dropdown-read-only{background-color:#BDBDBD !important}.dropdown-body-container{position:relative}.dropdown-body{position:absolute;display:flex;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5;width:100%}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable;max-height:288px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer;display:flex;gap:8px}.dropdown-option .checkbox-icon{height:24px}.dropdown-option .plaintext-option{line-height:24px}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.priority-pill{padding:6px 8px 6px 16px;display:flex;gap:8px}.placeholder{color:#9e9e9e}.searchbox{padding:8px 16px 8px 16px;height:52px;box-sizing:border-box}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}.footer{display:flex;gap:8px;flex-direction:row-reverse;padding:8px 16px 0 16px;border-top:1px solid #d5d5d5}';export{d as tttx_multiselect_box_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as o,H as i}from"./p-457a7731.js";import{p as n,d as a}from"./p-55799798.js";import"./p-112455b1.js";function r(e,t,o,i){let n;if(n=void 0!==i?i.querySelector(".errorBubble"):"label"===e.parentElement.nodeName.toLowerCase()?e.parentElement.querySelector(".errorBubble"):e.parentElement.parentElement.querySelector(".errorBubble"),n)if(t){e.classList.add("invalid"),n.classList.add("visible");const t=document.createElement("span");t.className="material-symbols-rounded",t.textContent="warning",n.innerHTML="",n.append(t),n.append(o)}else n.classList.remove("visible"),e.classList.remove("invalid"),n.innerHTML=""}function l(e){var t,o;const i=e.target,n=i.getAttribute("data-formkey"),a=Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${n}]`));if(4===a.length){const n=a.find((e=>e.name.endsWith("starttime"))),l=a.find((e=>e.name.endsWith("endtime"))),s=a.find((e=>e.name.endsWith("startdate"))),d=a.find((e=>e.name.endsWith("enddate")));n.valueAsNumber>=l.valueAsNumber&&(null===(t=s.valueAsDate)||void 0===t?void 0:t.valueOf())===(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())?(r(l,!0,"End time cannot be the same or before the start time"),i.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),r(l,!1,null),this.validityCheckWrapper(e))}}function s(e){const t=e.target,o=t.getAttribute("data-formkey"),i=Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(`[type=time][data-formkey=${o}]`));if(i.length){const e=i.find((e=>e.name.endsWith("endtime")));e.setCustomValidity(""),r(e,!1,null)}}function d(e,t=!1){var o,i,n,a;const d=e.target;if(!d.value&&t)return;const c=d.getAttribute("data-compare-with"),u=d.parentElement.parentElement.parentElement.querySelector(`[name=${c}]`);(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(i=u.valueAsDate)||void 0===i?void 0:i.valueOf())?(d.setCustomValidity(d.getAttribute("data-compare")),r(d,!0,d.getAttribute("data-compare"))):(null===(n=d.valueAsDate)||void 0===n?void 0:n.valueOf())===(null===(a=u.valueAsDate)||void 0===a?void 0:a.valueOf())?(d.setCustomValidity(""),this.validityCheckWrapper(e),l.bind(this)(e)):(s.bind(this)(e),this.validityCheckWrapper(e))}function c(e){const t=e.target,o=t.getAttribute("data-compare-to"),i=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);d.bind(this)({target:i},!0),this.validityCheckWrapper(e)}const u=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.searchTermChanged=t(this,"searchTermChanged",7),this.selectToggleOpen=t(this,"selectToggleOpen",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){return this._formSchema="string"==typeof e?JSON.parse(e):e,this._formSchema}onDataChange(e){return this._data="string"==typeof e?JSON.parse(e):e,this._data}fieldChanged(e){const t=e.target;let o=t.value;"checkbox"===t.type&&(o=t.checked?"on":"off"),this.dataChanged.emit({name:t.name,value:o})}async submit(){this.submitButton.click()}async showLoadingSpinner(e,t){this.fieldset.querySelector(`[name=overlay-${e}]`).isLoading=t}async setSelectedItem(e,t){const o=this.fieldset.querySelector(`[name=overlay-${e}]`);await o.setSelectedItem(t)}async setSelectOptions(e,t,o){const i=this.fieldset.querySelector(`[name=${e}]`),n=this.fieldset.querySelector(`[name=overlay-${e}]`),a=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,e.disabled&&(t.disabled=!0),a.appendChild(t)}i.replaceChildren(a),n.optionsData=t,o||await n.setSelectedItem(t.length>0?t[0].value:void 0)}async isValid(){const e=this.form.checkValidity();return!(this.fieldset.querySelectorAll("[custom-validation-set=true]").length||!e)}doSubmit(e){if(e.preventDefault(),this.fieldset.querySelectorAll("[custom-validation-set=true]").length)return;const t=new FormData(e.target),o=this._formSchema.properties;for(const e of Object.keys(o))"checkbox"!==o[e].form.type||t.has(e)||t.append(e,"off");this.dataSubmitted.emit(t)}componentWillLoad(){this.onFormSchemaChange(this.formschema),this.data&&this.onDataChange(this.data)}componentWillRender(){this.template=document.createElement("template"),this.populateFormFromSchema()}createSelect(e,t){var o,i,n,a,r,l;const s=document.createElement("select");s.setAttribute("name",e),null===(o=t.options)||void 0===o||o.forEach((e=>{this.appendOption(s,e)})),(null===(i=this._data)||void 0===i?void 0:i[e])&&s.classList.remove("placeholder");const d=document.createElement("tttx-select-box_localcomponent");d.optionsData=null===(n=t.options)||void 0===n?void 0:n.filter((e=>!e.placeholder)),d.placeholder=null===(r=null===(a=t.options)||void 0===a?void 0:a.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,d.inline=!1,d.searchEnabled=!0,d.useExternalFiltering=t.useExternalFiltering||!1,d.style.width="100%",d.style.marginTop="6px",d.isLoading=t.isLoading||!1,d.readOnly=null!==(l=t.readOnly)&&void 0!==l&&l,d.setAttribute("name","overlay-"+e);const c=document.createDocumentFragment();return c.append(d),s.style.display="none",d.addEventListener("selectItemEvent",this.selectItemEventCallback.bind(s)),d.addEventListener("multiselectSearchUpdated",(t=>this.searchTermChanged.emit({name:e,value:t.detail,type:"SearchTermChanged"}))),d.addEventListener("toggleOpen",(t=>this.selectToggleOpen.emit({name:e,value:t.detail,type:"ToggleOpen"}))),{input:s,overlay:c}}selectItemEventCallback(e){const t=this;t.value=e.detail.value,t.onblur({target:t}),t.onchange({target:t})}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",t.disabled?"true":""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=n.sanitize(t.label,a)),e.appendChild(o)}createInput(e,t){var o;const i=document.createElement("input");return i.type=t.type,i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),t.maskedValue&&(i.onfocus=()=>{i.value===t.maskedValue&&(i.value="")},i.addEventListener("blur",(()=>{""===i.value.trim()?i.value=t.maskedValue:t.value=i.value}))),i}createTextArea(e,t){var o;const i=document.createElement("textarea");return i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),"none"===t.resize&&i.classList.add("resize-none"),i}createStartEndDateComponent(e,t){var o,i,n,a;const r=document.createElement("input"),l=document.createElement("input");let s,d;r.type=l.type="date",r.name=`${e}-startdate`,l.name=`${e}-enddate`,r.setAttribute("data-formkey",e),l.setAttribute("data-formkey",e),t.readonly&&(r.readOnly=!0,l.readOnly=!0),this.applyValidation(r,Object.assign({required:{message:"Please enter a start date"},dateCompare:{to:l.name}},null===(o=t.validation)||void 0===o?void 0:o.startDate)),this.applyValidation(l,Object.assign({required:{message:"Please enter an end date"},dateCompare:{with:r.name,message:"End date cannot be before the start date"}},null===(i=t.validation)||void 0===i?void 0:i.endDate)),t.includeTime&&(s=document.createElement("input"),d=document.createElement("input"),s.type=d.type="time",s.name=`${e}-starttime`,d.name=`${e}-endtime`,s.setAttribute("data-formkey",e),d.setAttribute("data-formkey",e),t.readonly&&(s.readOnly=!0,d.readOnly=!0),this.applyValidation(s,Object.assign({required:{message:"Please enter a start time"}},null===(n=t.validation)||void 0===n?void 0:n.startTime)),this.applyValidation(d,Object.assign({required:{message:"Please enter an end time"}},null===(a=t.validation)||void 0===a?void 0:a.endTime)));const c=document.createElement("label");c.innerText="Start date";const u=document.createElement("label");u.innerText="End date";const p=document.createElement("div"),h=document.createElement("div");return p.className=h.className="outer-container inputBlock",c.className=u.className="flex-label",p.append(r),s&&p.append(s),c.append(p),c.append(this.createErrorBubble()),h.append(l),d&&h.append(d),u.append(h),u.append(this.createErrorBubble()),{start:c,end:u}}applyValidation(e,t){var o,i;t.required&&(e.setAttribute("required",""),e.setAttribute("data-required",null!==(o=t.required.message)&&void 0!==o?o:"")),t.pattern&&(e.setAttribute("pattern",t.pattern.pattern),e.setAttribute("data-pattern",null!==(i=t.pattern.message)&&void 0!==i?i:"")),t.badInput&&e.setAttribute("data-badinput",t.badInput.message),t.minmax&&(e.setAttribute("min",t.minmax.min),e.setAttribute("max",t.minmax.max),e.setAttribute("data-range",t.minmax.message)),t.maxlength&&e.setAttribute("maxlength",t.maxlength),t.dateCompare&&(t.dateCompare.message&&t.dateCompare.with&&(e.setAttribute("data-compare",t.dateCompare.message),e.setAttribute("data-compare-with",t.dateCompare.with)),t.dateCompare.to&&e.setAttribute("data-compare-to",t.dateCompare.to))}createErrorBubble(){const e=document.createElement("div");return e.className="errorBubble",e}appendCheckboxInput(e,t,o){if(e.label){const e=document.createElement("br");o.appendChild(e)}if(o.appendChild(t),!e.inlineLabel)return;const i=document.createElement("span");i.className="inlineLabel",i.textContent=e.inlineLabel,o.appendChild(i)}createLabel(e,t,o=null,i){var n;const a=document.createElement("div");let r="outer-container inputBlock";const l=document.createElement("label");if(l.innerText=e.label,!(null===(n=e.validation)||void 0===n?void 0:n.required)&&e.label){const e=document.createElement("span");e.className="optional",e.innerHTML=" (optional)",l.appendChild(e)}return"radio"===e.type&&(r+=" radioBlock"),a.className=r,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&a.appendChild(o),a.appendChild(t)),"checkbox"!==e.type&&l.appendChild(a),l.appendChild(i),l}createRadio(e,t){var o,i;const n=document.createDocumentFragment();for(const a of t.options){const r=document.createElement("input");r.type="radio",r.name=e,r.value=a.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(r.setAttribute("required","required"),r.setAttribute("data-required",null!==(i=t.validation.required.message)&&void 0!==i?i:""));const l=document.createElement("span");l.innerText=a.label,n.appendChild(r),n.appendChild(l),n.appendChild(document.createElement("br"))}return n}populateFormFromSchema(){var e;if(!this._formSchema)return;const t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=t[i].form;if("startenddate"===o.type){const{start:e,end:t}=this.createStartEndDateComponent(i,o);this.template.content.append(e),this.template.content.append(t);continue}let n={};switch(o.type){case"select":n=this.createSelect(i,o);break;case"radio":n.input=this.createRadio(i,o);break;case"textarea":n.input=this.createTextArea(i,o);break;default:n.input=this.createInput(i,o)}o.validation&&"radio"!==o.type&&this.applyValidation(n.input,o.validation);const a=this.createErrorBubble(),l=this.createLabel(o,n.input,n.overlay,a);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;n.input.setCustomValidity(e),r(n.input,!0,e)}this.template.content.append(l),o.disabled&&this.toggleFormField(n.input,!0)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const i of o)this.applyValidationFunctionsToFormElement(e,i,t);this._data&&Object.keys(this._data).length>0&&this.populateFormWithExistingData(e),this.fieldset.replaceChildren(e)}applyValidationFunctionsToFormElement(e,t,o){const i=e.querySelectorAll(`[name^=${t}]`);for(const e of i)e.oninvalid=this.validityCheckWrapper.bind(this),e.onblur=this.validityCheckWrapper.bind(this),e.onkeyup=this.fieldChanged.bind(this),e.onchange=this.fieldChanged.bind(this),"select"===o[t].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",this.selectRemovePlaceholderCallback.bind(e)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=d.bind(this),e.onblur=d.bind(this)),"startenddate"===o[t].form.type&&"time"===e.type&&(e.oninvalid=l.bind(this),e.onblur=l.bind(this)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=c.bind(this),e.onblur=c.bind(this))}populateFormWithExistingData(e){var t;const o=Object.keys(this._data);for(const i of o){const o=e.querySelectorAll(`[name=${i}]`);for(const n of o)switch(n.type){case"checkbox":"on"===this._data[i]&&(n.checked=!0);break;case"radio":n.value===this._data[i]&&(n.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${i}]`).selectedValue=this._data[i],n.value=this._data[i];break;case"date":n.value=null===(t=this._data[i])||void 0===t?void 0:t.split("T")[0];break;default:n.value=this._data[i]}}}selectRemovePlaceholderCallback(){this.classList.remove("placeholder")}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:i}=function(e){var t,o,i,n;e.preventDefault&&e.preventDefault();const a=e.target;let r=!0,l="";switch(a.hasAttribute("custom-validation-set")||(a.value.length&&!a.value.replace(/\s/g,"").length?(l="This field cannot be left blank",a.setCustomValidity(l)):a.setCustomValidity&&a.setCustomValidity("")),!0){case a.validity.valueMissing:l=null!==(t=a.dataset.required)&&void 0!==t?t:"This field is required";break;case a.validity.patternMismatch:l=null!==(o=a.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case a.validity.badInput:l=null!==(i=a.dataset.badinput)&&void 0!==i?i:"Wrong input type";break;case a.validity.rangeOverflow||a.validity.rangeUnderflow:l=null!==(n=a.dataset.range)&&void 0!==n?n:"Invalid value";break;case a.validity.customError:l=a.validationMessage;break;default:r=!1}return{target:a,hasError:r,errorMessage:l}}(e);r(t,o,i)}assignFieldsetReference(e){this.fieldset=e}assignButtonReference(e){this.submitButton=e}async setValidationFor(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o.disabled||(o.setCustomValidity(t),o.setAttribute("custom-validation-set","true"),r(o,!0,t))}async clearValidationFor(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.setCustomValidity(""),t.removeAttribute("custom-validation-set"),r(t,!1,"")}toggleFormField(e,t){e.disabled=t;let o=e.parentElement;if(o){do{"LABEL"!==o.nodeName&&(o=o.parentElement)}while(o&&"LABEL"!==o.nodeName);o&&(o.style.display=t?"none":"block")}}async disableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.hasAttribute("custom-validation-set")||this.toggleFormField(t,!0)}async enableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);this.toggleFormField(t,!1)}async setInputFieldValue(e,t){this.fieldset.querySelector(`[name=${e}]`).value=t}async setFieldReadOnlyMode(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o&&"SELECT"===o.nodeName?(this.fieldset.querySelector(`[name=overlay-${e}]`).readOnly=t,o.disabled=t):o.readOnly=t,t&&await this.clearValidationFor(e)}render(){return o(i,null,o("form",{onSubmit:this.doSubmit.bind(this),ref:e=>this.form=e},o("fieldset",{ref:this.assignFieldsetReference.bind(this)}),o("input",{type:"submit",ref:this.assignButtonReference.bind(this),style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};u.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px;padding:0;padding-left:16px;padding-right:16px;}label .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:"Roboto", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container textarea.resize-none{resize:none}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.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}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:block}fieldset{margin:0;padding:0;border:none}label{display:block;position:relative;margin-bottom:16px}.inlineLabel{font-weight:400;display:inline-block;vertical-align:top;padding-top:4px}input[type=checkbox]{width:18px;height:18px}input~label{font-weight:400}select{font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}.placeholder{color:#9e9e9e}.placeholder option{color:initial}select.invalid:invalid{border:1px solid #dc0000}select~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}select~.errorBubble:not(.visible){visibility:hidden}select~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}select.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}select:focus{border-color:#1479c6}select:focus-visible{outline:none}.button{padding:0 16px}.footer{display:flex;gap:16px;flex-direction:row-reverse}label.flex-label{display:flex;flex-direction:column;width:346px;box-sizing:border-box}label>.outer-container>input[type=date]{min-width:0;width:200px}label.flex-label input[type=time]{min-width:auto;text-align:center;width:130px;margin-left:16px}label>.outer-container>input[type=date],label.flex-label input[type=time]{line-height:36px}input[type=radio]~span{transform:translateY(-17%);display:inline-block;margin-left:5px}';export{u as tttx_form_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as o,g as n,F as r}from"./p-457a7731.js";import{p as s,d as l}from"./p-55799798.js";import"./p-112455b1.js";const a=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.toggleFilter=i(this,"toggleFilter",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover,this.toggleFilter.emit(this.showPopover)}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon_localcomponent",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon_localcomponent",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon_localcomponent",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon_localcomponent",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon_localcomponent",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};a.style='.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}';const c=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.rowCheckboxClick=i(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const t of this._data)t.hasCheckbox&&void 0===t.checked&&(t.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(t,i){t.stopPropagation(),i.rowData&&this.rowCheckboxClick.emit({key:i.key,name:this.name,data:i.rowData})}onRowClickHandler(t){(t.clickable||t.toggleable)&&t.rowData&&this.rowClick.emit({key:t.key,name:this.name,data:t.rowData})}renderListItem(t){let i;if("string"==typeof t.element){const o=s.sanitize(t.element,l);i=e("span",{class:"item-content",innerHTML:o})}else i=e("span",{class:"item-content"},t.element);return e(r,null,t.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon_localcomponent",{icon:t.checked?"check_box":"check_box_outline_blank",color:t.checked?"blue":"grey",onClick:i=>{this.onRowCheckboxHandler(i,t)}})),t.element&&i,t.icon&&e("span",{class:"icons"},e("tttx-icon_localcomponent",{class:"align-right",icon:t.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((t=>e("li",{key:t.key,class:"item"+(t.clickable?" clickable":"")+(t.toggleable?" toggleable":"")+(t.checked?" selected":"")+(t.active?" active":""),onClick:()=>{this.onRowClickHandler(t)}},this.renderListItem(t)))))}static get watchers(){return{data:["onDataChange"]}}};c.style='.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}';const d=class{constructor(e){t(this,e),this.sorterChangeEvent=i(this,"sorterChangeEvent",7),this.toggleSorter=i(this,"toggleSorter",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(t){t.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand,this.toggleSorter.emit(this.dropdownExpand)}onDropdownSelected(t){this.dropdownExpand=!1,this.selectedField=t.target.innerHTML,this.emitSortEvent(),this.toggleSorter.emit(this.dropdownExpand)}render(){const t="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const i="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",n=this.dropdownExpand?"expand_less":"expand_more",r=this.selectedField;return e(o,{id:`sorter__${this.sorterKey}`},e("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},e("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},e("tttx-icon_localcomponent",{icon:i,color:"black"})),e("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},e("div",{class:"dropdown-selector-button"},e("div",{class:"dropdown-selector-text"},r),e("div",{class:"dropdown-selector-chevron"},e("tttx-icon_localcomponent",{icon:n,color:"black"})))),this.dropdownExpand&&e("div",{class:"dropdown-options-list"},t.sorterOptions.map((t=>e("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:t.optionLabel},t.optionLabel))))))}get el(){return n(this)}};d.style='.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}}';const p=class{constructor(i){t(this,i),this.border=!0,this.viewSize=void 0}handleResize(){this.setViewSize()}async componentWillLoad(){this.setViewSize()}setViewSize(){this.viewSize=window.innerWidth<698?"mobile":"desktop"}render(){return e(o,null,e("div",{class:`container ${this.border?"bordered":""} ${this.viewSize}`},e("slot",{name:"before"}),e("slot",{name:"center"}),e("slot",{name:"after"})))}};p.style=".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}";export{a as tttx_filter_localcomponent,c as tttx_list_localcomponent,d as tttx_sorter_localcomponent,p as tttx_toolbar_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,a as i,h as r,g as n}from"./p-457a7731.js";import{p as o,d as l}from"./p-55799798.js";import"./p-112455b1.js";const s=class{constructor(i){e(this,i),this.clickEvent=t(this,"clickEvent",7),this.expandNode=t(this,"expandNode",7),this.checkboxChange=t(this,"checkboxChange",7),this.moveNode=t(this,"moveNode",7),this.dragGhost={el:null},this.dragDropPlaceholderId="drag-drop-placeholder",this.createGhostImage=e=>{e.length>30&&(e=`${e.slice(0,30)}...`);const t=document.createElement("div");Object.assign(t.style,{position:"absolute",top:"-9999px",left:"-9999px",padding:"8px 12px",background:"white",pointerEvents:"none",boxShadow:"0px 0px 12px #F9F9F9",display:"flex",flexDirection:"row",gap:"10px",borderRadius:"4px"});const i=document.createElement("img");i.src=this.dragIcon,i.alt="drag",t.appendChild(i);const r=document.createElement("span");return Object.assign(r.style,{fontSize:"14px"}),r.textContent=e,t.appendChild(r),document.body.appendChild(t),t},this.handleDragStart=(e,t,i,r)=>{if(!e.dataTransfer)return;this.draggedNodeParentId=r,this.draggedNodeId=t.id;const n=JSON.stringify({parentId:r,index:i,node:t});e.dataTransfer.setData("text/plain",n);const o=this.createGhostImage(t.title);this.dragGhost.el=o,e.dataTransfer.setDragImage(o,32,30)},this.handleDragEnd=()=>{setTimeout((()=>{if(this.findNodeById(this.treeData,this.dragDropPlaceholderId)){const e=this.updateDragDropPlaceholder(this.treeData);this.treeData=[...e]}}),300)},this.handleDragDrop=(e,t,i)=>{var r;e.preventDefault();const n=null===(r=e.dataTransfer)||void 0===r?void 0:r.getData("text/plain");if(!n)return;const{parentId:o,node:l}=JSON.parse(n);if(t.id===l.id||o!==i)return;const s=[...this.treeData],d=i?this.findNodeById(s,i):null,a=(null==d?void 0:d.child)?[...d.child]:[...s];if(!a||0===a.length)return;const c=l,h=[];for(const e of a)e.id!=c.id&&h.push(e.id!=this.dragDropPlaceholderId?e:c);d?d.child=h:this.treeData=h,this.draggedNodeParentId=void 0,this.draggedNodeId=void 0,this.dragGhost.el&&(this.dragGhost.el.remove(),this.dragGhost.el=null),this.handleDragDropSuccessBackground(c.id),this.treeData=[...this.updateDragDropPlaceholder(this.treeData)],this.moveNode.emit(this.treeData)},this.handleDragOver=(e,t,i,r)=>{if(e.preventDefault(),!e.dataTransfer)return;const n=this.draggedNodeParentId===i||r;e.dataTransfer.dropEffect=n?"move":"none",n&&!r&&(this.treeData=[...this.updateDragDropPlaceholder(this.treeData,t)])},this.updateDragDropPlaceholder=(e,t)=>{const i=[];for(const r of e)if(!r.isDragDropPlaceholder){if(r.id==t&&i.push({id:this.dragDropPlaceholderId,title:"Drop here",isDragDropPlaceholder:!0}),r.child){const e=this.updateDragDropPlaceholder(r.child,t);r.child=e}i.push(r)}return i},this.data=void 0,this.treeData=void 0,this.nodesRecentlyMoved=[]}componentWillRender(){this.data&&(this.treeData="string"==typeof this.data?JSON.parse(this.data):this.data,this.dragIcon||(this.dragIcon=i("assets/img/drag-icon.svg")))}onClickHandler(e,t){e.stopPropagation(),t.selectable&&(t.selected?t.selected=!1:this.handleNodeSelection(t),this.treeData=[...this.treeData]),this.clickEvent.emit(t)}toggleNode(e,t){t.stopPropagation(),e.isOpen=!e.isOpen,this.treeData=[...this.treeData],this.expandNode.emit({node:e,treeViewData:this.treeData})}handleCheckboxChange(e,t){t.stopPropagation(),e.checked=!e.checked,this.updateChildrenCheckStatus(e),this.updateParentCheckStatus(),this.treeData=[...this.treeData],this.checkboxChange.emit(this.treeData)}updateChildrenCheckStatus(e){e.child&&e.child.forEach((t=>{t.hasCheckbox&&void 0!==t.checked&&(t.checked=e.checked),this.updateChildrenCheckStatus(t)}))}updateParentCheckStatus(e,t){if(void 0===e)return void this.treeData.forEach((e=>this.updateParentCheckStatus(e,e.child)));let i=[];return t&&t.length>0&&(i=t.map((e=>this.updateParentCheckStatus(e,e.child))).flat(1),i.some((e=>e))&&(e.checked=!0),i.every((e=>!e))&&(e.checked=!1)),[...i,e.checked]}treeConfigs(e){let t,i;return e.checked?(t="check_box",i="blue"):(t="check_box_outline_blank",i="grey"),{checkboxColor:i,checkboxIcon:t,rowHoverActive:e.hasHover?"rowHover":"",expanderIcon:e.isOpen?"arrow_drop_down":"arrow_right",selectedActive:e.selectable&&e.selected?"rowSelected":"",dragDropPlaceholder:e.isDragDropPlaceholder?"drag_drop_placeholder":""}}findNodeById(e,t){for(const i of e){if(i.id===t)return i;if(i.child){const e=this.findNodeById(i.child,t);if(e)return e}}}deselectAllNodes(e){for(const t of e)t.selectable&&(t.selected=!1),t.child&&this.deselectAllNodes(t.child)}handleNodeSelection(e){this.deselectAllNodes(this.treeData),e.selectable&&(e.selected=!0),this.treeData=[...this.treeData]}handleDragDropSuccessBackground(e){this.nodesRecentlyMoved.push(e),setTimeout((e=>{this.nodesRecentlyMoved=[...this.nodesRecentlyMoved.filter((t=>t!==e))]}),300,e)}doesNodePrecedeDragDropPlaceholder(e,t,i){var r;if(e.child)return e.child.length>0&&e.child[0].isDragDropPlaceholder;const n=i?this.findNodeById(this.treeData,i):void 0;return!!n&&t!==n.child.length&&(null===(r=n.child[t+1])||void 0===r?void 0:r.isDragDropPlaceholder)}renderNode(e,t,i,n=0){const o=this.treeConfigs(e),l=this.doesNodePrecedeDragDropPlaceholder(e,t,i)?"precedes_drag_drop":"";if(e.child)return r("li",{class:e.selected?"selected-group":"",style:{"--level":String(n)}},r("li",Object.assign({id:e.id,"data-id":e.id},e.draggable||e.isDragDropPlaceholder?{onDragOver:t=>this.handleDragOver(t,e.id,i,e.isDragDropPlaceholder)}:{},e.draggable||e.isDragDropPlaceholder?{onDrop:t=>this.handleDragDrop(t,e,i)}:{},{class:`inline-tree-item element-row tree-node ${o.rowHoverActive} ${o.selectedActive} ${o.dragDropPlaceholder} ${l}`,onClick:t=>{e.hasHover&&this.onClickHandler(t,e)}}),r("tttx-button_localcomponent",{class:"toggleNode",design:"borderless-circle",notext:!0,icon:o.expanderIcon,color:"black",onClick:t=>this.toggleNode(e,t)}),this.htmlcode("treeNode",e,o.checkboxIcon,o.checkboxColor,t,i)),e.isOpen?r("ul",null,e.child.map(((t,i)=>this.renderNode(t,i,e.id,n+1)))):null);const s={"--level":String(n)};return this.nodesRecentlyMoved.find((t=>t==e.id))&&(s["background-color"]="#D1F7F0"),r("li",Object.assign({"data-id":e.id},e.draggable||e.isDragDropPlaceholder?{onDragOver:t=>this.handleDragOver(t,e.id,i,e.isDragDropPlaceholder)}:{},e.draggable||e.isDragDropPlaceholder?{onDrop:t=>this.handleDragDrop(t,e,i)}:{},{class:`\n inline-tree-item element-row\n ${o.rowHoverActive}\n ${o.selectedActive}\n ${o.dragDropPlaceholder}\n ${l}\n drag_drop_success_fade\n ${this.draggedNodeId==e.id?" is-being-dragged":""}\n `,style:s,onClick:t=>{e.hasHover&&this.onClickHandler(t,e)}}),this.htmlcode("treeLeaf",e,o.checkboxIcon,o.checkboxColor,t,i))}htmlcode(e,t,i,n,s,d){return t.isDragDropPlaceholder?r("div",{class:"inline-tree-item element"},r("div",{class:"drag-drop-placeholder-row"},r("div",{class:"placeholder-text"},t.title))):r("div",{class:"inline-tree-item element"},t.draggable&&r("div",{class:"drag-handle-container"},r("img",{src:this.dragIcon,alt:"drag",class:"drag-handle",draggable:t.draggable,onDragStart:e=>{t.draggable&&this.handleDragStart(e,t,s,d)},onDragEnd:()=>{t.draggable&&this.handleDragEnd()}})),t.hasCheckbox&&r("tttx-button_localcomponent",{design:"borderless-circle",notext:!0,icon:i,iconcolor:n,class:"padding-icon checkbox",onClick:e=>this.handleCheckboxChange(t,e)}),!t.html&&t.hasIcon&&r("tttx-icon_localcomponent",{icon:t.icon,color:t.iconColor,class:"padding-icon"}),!t.html&&r("div",{class:e},t.title),t.html&&r("div",{class:e,innerHTML:o.sanitize(t.html,l)}))}render(){if(this.data)return r("div",{ref:e=>this.rootElement=e,class:"tree-view-element"},r("ul",null,this.treeData.map(((e,t)=>this.renderNode(e,t)))))}get el(){return n(this)}};s.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{--tree-accent:#1579C6;--tree-selected-bg:#E7E7E7;--indent:36px;--accent-gap:46px;--accent-width:6px;--tree-left-edge-shift:0px;--leaf-accent-offset:48px}.drag-drop-placeholder-row{background-color:#DBEAFE;padding:5px;border:1px dashed #3B82F6;border-radius:4px;width:100%}.drag_drop_success_fade{transition:background-color 1s linear}.inline-tree-item>.drag-drop-placeholder-row>.treeLeaf{text-align:center;padding:10px 0px}.placeholder-text{color:#3B82F6;width:100%;font-weight:400;text-align:center;padding:8px}.is-being-dragged{background-color:rgba(125, 130, 138, 0.05) !important}.drag-handle-container{height:100%}.tree-node{padding-top:0px !important;padding-bottom:0px !important;height:52px}.tree-view-element>ul{margin:0;padding:0}.tree-view-element ul{padding-left:var(--indent)}.tree-view-element ul li{list-style:none}.tree-view-element ul li.selected-group{position:relative;}.tree-view-element ul li.selected-group::before,.tree-view-element ul li.selected-group::after{display:none}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node{background-color:var(--tree-selected-bg) !important;position:relative}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node::after{content:"";position:absolute;top:0;bottom:0;width:var(--accent-width);left:calc(-1 * (var(--accent-gap) + var(--level, 0) * var(--indent)));background-color:var(--tree-accent);z-index:5}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node{background-color:#F9F9F9 !important}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node::after{display:none !important}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;width:100%;padding-left:8px;align-items:center}.tree-view-element ul li.inline-tree-item .element .padding-icon{padding:6px;height:24px;width:24px;display:flex;align-items:center;justify-content:center}@media (hover: hover){.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected)::before{background-color:rgba(17, 17, 17, 0.05);z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover.rowSelected::before{background-color:rgba(17, 17, 17, 0.15);z-index:3}}.tree-view-element ul li.inline-tree-item.precedes_drag_drop::before{content:"";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #3B82F6 !important}.tree-view-element ul li.inline-tree-item.element-row{font-family:"Roboto", serif;font-size:16px;padding:15px 0px;position:relative;color:#212121 !important;}.tree-view-element ul li.inline-tree-item.element-row::before{content:"";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #d5d5d5;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.tree-node::before{height:51px;z-index:2;background-color:#F9F9F9}.tree-view-element ul li.inline-tree-item.element-row.tree-node *{z-index:3}.tree-view-element ul li.inline-tree-item.element-row .treeNode{width:100%;font-weight:500;color:#212121}.tree-view-element ul li.inline-tree-item.element-row .treeLeaf{width:100%;font-weight:400;color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row.rowSelected{background-color:var(--tree-selected-bg) !important;}.tree-view-element ul li.inline-tree-item.element-row.rowSelected::before{background-color:var(--tree-selected-bg) !important}.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeLeaf,.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeNode{color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row.tree-node.rowSelected{position:relative}.tree-view-element ul li.inline-tree-item.element-row.tree-node.rowSelected::after{content:"";position:absolute;top:0;bottom:0;width:var(--accent-width);left:calc(-1 * (var(--accent-gap) + var(--level, 0) * var(--indent)));background-color:var(--tree-accent);z-index:5}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node){position:relative}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node)::after{content:"";position:absolute;top:0;bottom:0;width:var(--accent-width);background-color:var(--tree-accent);z-index:5}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node)[data-has-drag-handle=true]{--drag-handle-offset:34px}.tree-view-element ul li.inline-tree-item.element-row.rowSelected:not(.tree-node)[data-has-checkbox=true]{--checkbox-offset:36px}.tree-view-element ul li.inline-tree-item.element-row .drag-handle{margin-right:10px;cursor:grab}.tree-view-element ul li.inline-tree-item.element-row.rowSelected .drag-handle{margin-left:10px}.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed{border-color:red;border-style:dashed;opacity:0.7}@media (forced-colors: active){.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::after{background:CanvasText}.tree-view-element ul li.selected-group::after{background:Highlight}.tree-view-element ul li.inline-tree-item.element-row.rowSelected{background:Highlight !important}}.inline-tree-item:focus-visible{outline:2px solid var(--tree-accent);outline-offset:2px;border-radius:6px}';export{s as tttx_tree_view_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as a,h as o,H as i}from"./p-457a7731.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i,s;const n=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-icon_localcomponent",{style:{pointerEvents:"none",marginTop:null!==(i=t.marginTop)&&void 0!==i?i:"-2px"},icon:t.tabIcon,color:"gray",size:null!==(s=t.tabIconSize)&&void 0!==s?s:24});return o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},n)}renderSelectedTab(t){return"string"==typeof t.pageContent?o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:s.sanitize(t.pageContent,n),hidden:!t.selected}):o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,hidden:!t.selected},t.pageContent)}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(i,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_localcomponent",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map(this.generateTab.bind(this))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_localcomponent",{icon:"navigate_next",color:"black"}))),t&&this.renderSelectedTab(t)))}static get watchers(){return{tabs:["onDataChange"]}}};e.style='.material-symbols-rounded.sc-tttx-tabs_localcomponent{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_localcomponent-h{display:block}.tab-bar.sc-tttx-tabs_localcomponent{display:flex;height:52px}.tab-bar.sc-tttx-tabs_localcomponent>.left-navigation.sc-tttx-tabs_localcomponent,.tab-bar.sc-tttx-tabs_localcomponent>.right-navigation.sc-tttx-tabs_localcomponent{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_localcomponent>.left-navigation.sc-tttx-tabs_localcomponent>*.sc-tttx-tabs_localcomponent,.tab-bar.sc-tttx-tabs_localcomponent>.right-navigation.sc-tttx-tabs_localcomponent>*.sc-tttx-tabs_localcomponent{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_localcomponent>.tabs-container.sc-tttx-tabs_localcomponent{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_localcomponent>.tabs-container.wide.sc-tttx-tabs_localcomponent{flex-grow:1}.tab-bar.sc-tttx-tabs_localcomponent>.tabs-container.sc-tttx-tabs_localcomponent>*[role=tab].sc-tttx-tabs_localcomponent{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_localcomponent>.tabs-container.sc-tttx-tabs_localcomponent>*[role=tab].sc-tttx-tabs_localcomponent:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_localcomponent>.tabs-container.sc-tttx-tabs_localcomponent>*[role=tab][aria-selected].sc-tttx-tabs_localcomponent{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{e as tttx_tabs_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as i,h as t,g as l}from"./p-457a7731.js";import{p as e,d}from"./p-55799798.js";import"./p-112455b1.js";const s=class{constructor(t){o(this,t),this.closeButtonClick=i(this,"closeButtonClick",6),this.buttonClick=i(this,"buttonClick",7),this.closeSelectBoxOnScroll=i(this,"closeSelectBoxOnScroll",7),this.emitDialogClose=()=>{this.closeButtonClick.emit()},this.data=void 0,this.size="regular",this.open=!1,this.allowOverflow=!1,this.elementSize=void 0}handleResize(){this.elementSize=window.innerWidth<698?"mobile":this.size}handleScrollEvent(){this.closeSelectBoxOnScroll.emit()}componentDidRender(){this.dialog&&(this.dialog.removeEventListener("close",this.emitDialogClose),this.dialog.addEventListener("close",this.emitDialogClose),this.open?this.dialog.open||this.dialog.showModal():this.dialog.close())}onCloseClickHandler(){this.open=!1,this.dialog.close()}onButtonClickHandler(o){this.buttonClick.emit({buttonNumber:o,buttonClicked:!0})}renderHeader(o){const i=o.title,l=!!o.hasClose;return t("div",{class:"dialog-box-header"},!!o.hasIcon&&t("tttx-icon_localcomponent",{class:"dialog-box-icon",icon:o.iconName,color:o.iconColor}),t("h3",{class:"dialog-box-title"},i),l&&t("div",{class:"dialog-box-align-right close-button",onClick:()=>this.onCloseClickHandler()},t("tttx-icon_localcomponent",{class:"dialog-box-icon-close dialog-box-clickable",icon:"close",color:"black"})))}renderContent(o){if(o.isCustomHtml){const i=e.sanitize(o.customHtml,d);return t("div",{class:"dialog-box-body "+(this.allowOverflow?"":"overflow-hidden")},t("div",{innerHTML:i}))}return t("div",{class:"dialog-box-body "+(this.allowOverflow?"":"overflow-hidden")},t("span",{class:"dialog-box-content"},o.contentText))}renderFooter(o){const i=o.buttons,l=i.length>0,e=i.length>1,d="mobile"===this.elementSize;return t("div",{class:"dialog-box-footer"},t("div",{class:"dialog-box-align-right"},3==i.length&&t("tttx-button_localcomponent",{class:"dialog-box-spacing-button",onClick:()=>this.onButtonClickHandler(3),design:i[2].type,notext:d,icon:i[2].icon},!d&&i[2].name),e&&t("tttx-button_localcomponent",{class:"dialog-box-spacing-button",onClick:()=>this.onButtonClickHandler(2),design:i[1].type,icon:i[1].icon},i[1].name),l&&t("tttx-button_localcomponent",{onClick:()=>this.onButtonClickHandler(1),design:i[0].type,icon:i[0].icon},i[0].name)))}componentWillLoad(){this.elementSize=window.innerWidth<698?"mobile":this.size}render(){if(this.data)return this._data="string"==typeof this.data?JSON.parse(this.data):this.data,t("dialog",{ref:o=>this.dialog=o,class:`dialog-box ${this.allowOverflow?"overflow-visible":""} ${this.elementSize}`,onScroll:this.handleScrollEvent.bind(this)},t("div",{class:"contents"},t("div",{class:`dialog-box-padding dialog-box-header-box ${this._data.type||""}`},this.renderHeader(this._data.header)),t("div",{class:"dialog-box-padding dialog-box-body-box"},this.renderContent(this._data.body)),t("div",{class:"dialog-box-padding dialog-box-footer-box"},this.renderFooter(this._data.footer))))}get el(){return l(this)}};s.style='.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}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d;padding:0}.overflow-visible{overflow-y:auto}.overflow-hidden{overflow:hidden}dialog::backdrop{background-color:#75757580}.dialog-box.small{width:400px;min-height:200px}.dialog-box.regular{width:600px;min-height:200px}.dialog-box.large{width:900px;min-height:200px}.dialog-box.mobile{max-width:424px;width:calc(100vw - 20px)}.dialog-box-clickable{cursor:pointer}.contents{display:flex;flex-direction:column;min-height:inherit}.dialog-box-padding{padding:8px 16px}.dialog-box-align-right{margin-left:auto;display:flex}.dialog-box-header-box{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;height:36px;position:sticky;top:0;background:white;z-index:2}.dialog-box-header{display:flex;align-items:center;width:100%}.dialog-box-title{font-size:18;font-weight:500;font-family:"Roboto", serif}.dialog-box-icon{padding-right:8px;width:24px;height:24px}.dialog-box-icon-close{margin-left:auto;padding-top:3px;width:24px;height:24px}.dialog-box-content{font-size:16;font-weight:400;font-family:"Roboto", serif}.dialog-box-body{text-overflow:ellipsis}.dialog-box-body-box{padding:16px}.dialog-box-footer-box{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px;position:sticky;bottom:0;background:white}.dialog-box-footer{display:flex;align-items:center;width:100%}.dialog-box-spacing-button{margin-right:8px}.dialog-box-header-box.info{border-bottom:1px solid #1479c6}.dialog-box-header-box.success{border-bottom:1px solid #a2bb31}.dialog-box-header-box.warning{border-bottom:1px solid #f59500}.dialog-box-header-box.critical{border-bottom:1px solid #dc0000}';export{s as tttx_dialog_box_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-457a7731.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-icon_localcomponent",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=i("div",{class:"dropdown-selector-chevron"},e);return this.selectedItem?this.selectedItem.html?(t=i("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),i(s,null,t,n)):(t=i("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(o=i("div",{class:"description"},i("p",null,this.selectedItem.description)),n=i("div",{class:"dropdown-selector-chevron-offset"},e)),i(s,null,i("div",{class:"left-wrapper"},t,o),this.clearable&&!this.readOnly&&i("tttx-icon_localcomponent",{class:"input-icon",style:{paddingTop:"5px",cursor:"pointer"},icon:"close_small",onClick:this.cleanSelectedItem.bind(this)}),n)):(t=i("div",{class:"placeholder"},this.placeholder),i(s,null,t,n))}renderDropdownOptions(t){let o=!1;const e=[],n=[];for(const i of t)o=o||!0===i.prioritise,(!this.searchEnabled||this.useExternalFiltering||this.useExternalPaginatedFiltering||-1!==i.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()))&&(!0!==i.prioritise?n.push(i):e.push(i));return i(s,null,o&&e.length>0&&i(s,null,i("tttx-tag_localcomponent",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),e.map((t=>this.dropdownOption(t)))),n.length>0&&i(s,null,o&&i("tttx-tag_localcomponent",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=l.sanitize(t.html,d);return i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,i("div",{class:"description-dd"},i("p",null,t.description))):i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const o=t.target.value;(this.useExternalFiltering||this.useExternalPaginatedFiltering)&&(clearTimeout(this.searchFilterTimeout),this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,o)),this.searchTerm=o}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector").getBoundingClientRect(),o=window.innerHeight,i=window.innerWidth;let s=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(s+=52);const e=o-t.bottom,n=t.top;let l,d,r;this._optionsData.length||(s=200),e>=s?(l=t.bottom+"px",d="",r=s+"px"):n>=s?(l="",d=o-t.top+"px",r=s+"px"):(l=s-n+"px",d=s-e+"px",r=s+"px"),this.bodyOffset={position:"fixed",left:Math.max(t.left,0)+"px",width:Math.min(t.width,i-t.left-16)+"px",top:l,bottom:d,maxHeight:r,zIndex:"10",overflowY:"auto"}}onSelectScroll(t){const o=t.target;this.useExternalPaginatedFiltering&&o.scrollHeight-o.scrollTop-o.offsetHeight<=5&&!this.loadingNextExternalPage&&!this._isAllExternalDataLoaded&&(this.loadingNextExternalPage=!0,clearTimeout(this.selectEndReached),this.selectEndReached=setTimeout((t=>{this.selectEndReachedEvent.emit(t)}),500,this.searchTerm))}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"",o=this.readOnly?"dropdown-read-only":"";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",t,o].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_localcomponent",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),i("div",{class:"dropdown-options-list",onScroll:this.onSelectScroll.bind(this)},!this.isLoading&&this.renderDropdownOptions(this._optionsData),(this.isLoading||this.loadingNextExternalPage)&&i("tttx-loading-spinner_localcomponent",{class:"loading-style"})))),this.showErrorBubble&&i("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},i("tttx-icon_localcomponent",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"],isAllExternalDataLoaded:["updateAllLoadedBool"]}}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:fixed;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}';export{r as tttx_select_box_localcomponent}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as o,H as e}from"./p-457a7731.js";import{p as n,d as a}from"./p-55799798.js";import"./p-112455b1.js";const s=class{constructor(o){t(this,o),this.rowClicked=i(this,"rowClicked",7),this.headerClicked=i(this,"headerClicked",7),this.headerOrderChanged=i(this,"headerOrderChanged",7),this.pageChanged=i(this,"pageChanged",7),this.headers=[],this.data=[],this.selectable=!1,this.loading=!1,this.draggableHeaders=!1,this.rowsPerPage=5,this.totalRecords=0,this.selected=-1,this.page=0,this.currentPage=0,this.draggedHeaderIndex=null}onPagePropChange(t){this.currentPage=t}componentWillLoad(){this.currentPage=this.page}get totalPages(){return Math.ceil(this.totalRecords/this.rowsPerPage)}changePage(t){t<0||t>=this.totalPages||(this.currentPage=t,this.pageChanged.emit({page:t,rowsPerPage:this.rowsPerPage,offset:t*this.rowsPerPage}))}headerClickedHandler(t){this.headerClicked.emit(t)}handleDragStart(t){this.draggedHeaderIndex=t}handleDragOver(t){t.preventDefault()}handleDrop(t){if(null!==this.draggedHeaderIndex&&this.draggedHeaderIndex!==t){const i=[...this.headers],o=i[this.draggedHeaderIndex];i.splice(this.draggedHeaderIndex,1),i.splice(t,0,o),this.headerOrderChanged.emit(i.map((t=>t.key)))}this.draggedHeaderIndex=null}render(){const t=0===this.totalRecords?0:this.currentPage*this.rowsPerPage+1,i=Math.min(t+this.data.length-1,this.totalRecords),s=this.totalPages>1;return o(e,null,o("div",{style:{width:"100%",overflowX:"auto"}},o("table",null,o("thead",null,o("tr",null,this.headers.map(((t,i)=>o("th",{class:"header-typography",onClick:()=>this.headerClickedHandler(t),innerHTML:n.sanitize(t.label,a),draggable:this.draggableHeaders,onDragStart:()=>this.draggedHeaderIndex=i,onDragOver:t=>t.preventDefault(),onDrop:()=>this.headerOrderChanged.emit(this.headers.map((t=>t.key)))}))))),o("tbody",null,this.loading?o("tr",null,o("td",{class:"cell-spacing",colSpan:this.headers.length},"Loading…")):this.data.map((t=>o("tr",{onClick:()=>this.rowClicked.emit(t)},this.headers.map((i=>o("td",{class:"cell-spacing",innerHTML:n.sanitize(t[i.key],a)}))))))))),s&&o("div",{class:"pagination-footer"},o("div",{class:"pagination-text"},"Showing ",t," – ",i," of ",this.totalRecords),o("div",{class:"pagination-buttons"},o("tttx-button-v2_localcomponent",{design:"default",size:"S",iconStart:"keyboard_arrow_left",iconcolor:0===this.currentPage?"#737373":"#525252",notext:!0,disabled:0===this.currentPage,onClick:()=>this.changePage(this.currentPage-1)}),o("tttx-button-v2_localcomponent",{design:"default",size:"S",iconStart:"keyboard_arrow_right",iconcolor:this.currentPage===this.totalPages-1?"#737373":"#525252",notext:!0,disabled:this.currentPage===this.totalPages-1,onClick:()=>this.changePage(this.currentPage+1)}))))}static get watchers(){return{page:["onPagePropChange"]}}};s.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:#c2cfd6}100%{background-color:#f0f3f5}}:host{display:block}table{width:100%;border-collapse:collapse;table-layout:fixed;box-sizing:border-box;min-width:600px}thead tr{height:52px}thead tr td{text-align:left;padding-left:8px 16px;min-width:40px}tbody tr{height:52px}tr{border-bottom:1px solid #D4D4D4}.selected{background-color:#ebfbfc}th{text-align:left;padding:8px 0;min-width:40px}td{text-align:left;padding:16px 0;min-width:40px}.cell-spacing a.table-link{color:#000000;text-decoration:none;cursor:pointer}.cell-spacing a.table-link:hover{text-decoration:underline}.skeleton{height:24px;display:block}.header-typography,.cell-typography{font-family:"Roboto", sans-serif;font-size:14px;font-style:normal;line-height:normal}.header-typography{font-weight:600}.cell-typography{font-weight:normal;color:#212121}.clickable{cursor:pointer}.pagination-footer{margin-top:12px;padding:8px 4px;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#4c4c4c}.pagination-text{opacity:0.75}.pagination-buttons{display:flex;align-items:center;gap:10px}.pagination-buttons tttx-button-v2_localcomponent{--button-bg:#ffffff;--button-border:#d4d4d4;--button-color:#525252;--button-bg-hover:#f5f5f5;--button-border-hover:#d4d4d4;--button-bg-active:#f5f5f5;--button-border-active:#d4d4d4;--button-focus-outline:none;--button-bg-disabled:#e5e5e5;--button-color-disabled:#737373;--button-border-disabled:#d4d4d4;--button-opacity-disabled:1}.nav-btn{width:32px;height:32px;border-radius:8px;background:#fff;border:1px solid #d5d5d5;cursor:pointer;font-size:14px;line-height:0;display:flex;justify-content:center;align-items:center;transition:background 0.15s ease, border 0.15s ease}.nav-btn:hover:not(:disabled){background:#f0f0f0}.nav-btn:disabled{opacity:0.35;cursor:not-allowed}tbody tr:hover{background-color:#f5f5f5}';export{s as tttx_table_localcomponent}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
checkboxId: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
label: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
inline: {
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
indeterminate: {
|
|
24
|
-
control: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
checked: {
|
|
30
|
-
control: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
parameters: {
|
|
37
|
-
actions: {
|
|
38
|
-
handles: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
|
44
|
-
export declare const Checkbox: any;
|
|
45
|
-
export declare const InlineCheckbox: any;
|
|
46
|
-
export declare const CheckedCheckbox: any;
|
|
47
|
-
export declare const IndeterminateCheckbox: any;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
5
|
-
argTypes: {
|
|
6
|
-
width: {
|
|
7
|
-
control: string;
|
|
8
|
-
defaultValue: string;
|
|
9
|
-
};
|
|
10
|
-
height: {
|
|
11
|
-
control: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
};
|
|
14
|
-
borderRadius: {
|
|
15
|
-
control: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
|
18
|
-
color: {
|
|
19
|
-
control: string;
|
|
20
|
-
defaultValue: string;
|
|
21
|
-
};
|
|
22
|
-
variant: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
options: string[];
|
|
27
|
-
defaultValue: string;
|
|
28
|
-
};
|
|
29
|
-
animation: {
|
|
30
|
-
control: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
options: string[];
|
|
34
|
-
defaultValue: string;
|
|
35
|
-
};
|
|
36
|
-
count: {
|
|
37
|
-
control: string;
|
|
38
|
-
defaultValue: number;
|
|
39
|
-
};
|
|
40
|
-
direction: {
|
|
41
|
-
control: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
options: string[];
|
|
45
|
-
defaultValue: string;
|
|
46
|
-
};
|
|
47
|
-
gap: {
|
|
48
|
-
control: string;
|
|
49
|
-
defaultValue: string;
|
|
50
|
-
};
|
|
51
|
-
customClass: {
|
|
52
|
-
control: string;
|
|
53
|
-
defaultValue: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export default _default;
|
|
58
|
-
export declare const Default: any;
|
package/dist/types/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
fieldOptionsData: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
actionKey: {
|
|
11
|
-
control: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
icon: {
|
|
16
|
-
control: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
isIconVisible: {
|
|
21
|
-
control: {
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
parameters: {
|
|
27
|
-
actions: {
|
|
28
|
-
handles: string[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
34
|
-
export declare const BasicActionDropdown: any;
|
|
35
|
-
export declare const ActionDropdownWithoutIcon: any;
|
|
36
|
-
export declare const DocumentActionDropdown: any;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const DefaultComments: any;
|
|
8
|
-
export declare const UnreadComments: any;
|
package/dist/types/components/molecules/tttx-date-range-picker/tttx-date-range-picker.stories.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
5
|
-
parameters: {
|
|
6
|
-
actions: {
|
|
7
|
-
handles: string[];
|
|
8
|
-
};
|
|
9
|
-
docs: {
|
|
10
|
-
description: {
|
|
11
|
-
component: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
argTypes: {
|
|
16
|
-
initialValue: {
|
|
17
|
-
control: string;
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
placeholderText: {
|
|
21
|
-
control: string;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
|
27
|
-
export declare const Default: any;
|
|
28
|
-
export declare const WithPreselectedRange: any;
|