@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
|
@@ -6,14 +6,14 @@ const index = require('./index-2c07dc57.js');
|
|
|
6
6
|
|
|
7
7
|
const tttxCheckboxGroupCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:\"Roboto\", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}";
|
|
8
8
|
|
|
9
|
-
const TttxCheckboxGroupCaption = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group__caption' }, index.h("slot", null))));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
9
|
+
const TttxCheckboxGroupCaption = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group__caption' }, index.h("slot", null))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
TttxCheckboxGroupCaption.style = tttxCheckboxGroupCss;
|
|
18
18
|
|
|
19
|
-
exports.
|
|
19
|
+
exports.tttx_checkbox_group_caption_1_9_103 = TttxCheckboxGroupCaption;
|
|
@@ -6,14 +6,14 @@ const index = require('./index-2c07dc57.js');
|
|
|
6
6
|
|
|
7
7
|
const tttxCheckboxGroupCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:\"Roboto\", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}";
|
|
8
8
|
|
|
9
|
-
const TttxCheckboxGroupHeading = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group__heading' }, index.h("slot", null))));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
9
|
+
const TttxCheckboxGroupHeading = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group__heading' }, index.h("slot", null))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
TttxCheckboxGroupHeading.style = tttxCheckboxGroupCss;
|
|
18
18
|
|
|
19
|
-
exports.
|
|
19
|
+
exports.tttx_checkbox_group_heading_1_9_103 = TttxCheckboxGroupHeading;
|
|
@@ -6,14 +6,14 @@ const index = require('./index-2c07dc57.js');
|
|
|
6
6
|
|
|
7
7
|
const tttxCheckboxGroupCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:\"Roboto\", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}";
|
|
8
8
|
|
|
9
|
-
const TttxCheckboxGroup = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group' }, index.h("slot", null))));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
9
|
+
const TttxCheckboxGroup = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group' }, index.h("slot", null))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
TttxCheckboxGroup.style = tttxCheckboxGroupCss;
|
|
18
18
|
|
|
19
|
-
exports.
|
|
19
|
+
exports.tttx_checkbox_group_1_9_103 = TttxCheckboxGroup;
|
package/dist/cjs/{tttx-checkbox_localcomponent.cjs.entry.js → tttx-checkbox_1_9_103.cjs.entry.js}
RENAMED
|
@@ -6,38 +6,38 @@ const index = require('./index-2c07dc57.js');
|
|
|
6
6
|
|
|
7
7
|
const tttxCheckboxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.tttx-checkbox{padding:8px;display:flex;justify-content:flex-start;font-size:16px;align-items:center;font-weight:normal;line-height:18.752px}.tttx-checkbox tttx-icon{height:24px}.tttx-checkbox.--inline{display:inline-flex}.tttx-checkbox__input{display:none}.tttx-checkbox__label{margin-left:8px;padding-right:0;color:#212121;font-weight:normal}";
|
|
8
8
|
|
|
9
|
-
const TttxCheckbox = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.checkboxChangeEvent = index.createEvent(this, "checkboxChangeEvent", 3);
|
|
13
|
-
this.checkboxId = undefined;
|
|
14
|
-
this.label = undefined;
|
|
15
|
-
this.inline = false;
|
|
16
|
-
this.indeterminate = false;
|
|
17
|
-
this.checked = undefined;
|
|
18
|
-
}
|
|
19
|
-
watchIndeterminateChange(newValue) {
|
|
20
|
-
this.checkbox.indeterminate = newValue;
|
|
21
|
-
}
|
|
22
|
-
onClick() {
|
|
23
|
-
const { checked, indeterminate } = this;
|
|
24
|
-
this.checkboxChangeEvent.emit({
|
|
25
|
-
indeterminate,
|
|
26
|
-
checked
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
componentDidLoad() {
|
|
30
|
-
this.checkbox.indeterminate = this.indeterminate;
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const checkBoxIcon = this.checked ? 'check_box' : 'check_box_outline_blank';
|
|
34
|
-
const renderedIcon = this.indeterminate ? 'indeterminate_check_box' : checkBoxIcon;
|
|
35
|
-
return (index.h(index.Host, null, index.h("label", { class: `tttx-checkbox ${this.inline ? '--inline' : ''}` }, index.h("input", { class: "tttx-checkbox__input", type: "checkbox", id: this.checkboxId, checked: this.checked, ref: (el) => this.checkbox = el }), index.h("tttx-
|
|
36
|
-
}
|
|
37
|
-
static get watchers() { return {
|
|
38
|
-
"indeterminate": ["watchIndeterminateChange"]
|
|
39
|
-
}; }
|
|
40
|
-
};
|
|
9
|
+
const TttxCheckbox = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.checkboxChangeEvent = index.createEvent(this, "checkboxChangeEvent", 3);
|
|
13
|
+
this.checkboxId = undefined;
|
|
14
|
+
this.label = undefined;
|
|
15
|
+
this.inline = false;
|
|
16
|
+
this.indeterminate = false;
|
|
17
|
+
this.checked = undefined;
|
|
18
|
+
}
|
|
19
|
+
watchIndeterminateChange(newValue) {
|
|
20
|
+
this.checkbox.indeterminate = newValue;
|
|
21
|
+
}
|
|
22
|
+
onClick() {
|
|
23
|
+
const { checked, indeterminate } = this;
|
|
24
|
+
this.checkboxChangeEvent.emit({
|
|
25
|
+
indeterminate,
|
|
26
|
+
checked
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
this.checkbox.indeterminate = this.indeterminate;
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const checkBoxIcon = this.checked ? 'check_box' : 'check_box_outline_blank';
|
|
34
|
+
const renderedIcon = this.indeterminate ? 'indeterminate_check_box' : checkBoxIcon;
|
|
35
|
+
return (index.h(index.Host, null, index.h("label", { class: `tttx-checkbox ${this.inline ? '--inline' : ''}` }, index.h("input", { class: "tttx-checkbox__input", type: "checkbox", id: this.checkboxId, checked: this.checked, ref: (el) => this.checkbox = el }), index.h("tttx-icon_1_9_103", { color: this.checked ? 'blue' : 'grey', icon: renderedIcon, onClick: this.onClick.bind(this) }), index.h("span", { class: "tttx-checkbox__label" }, this.label))));
|
|
36
|
+
}
|
|
37
|
+
static get watchers() { return {
|
|
38
|
+
"indeterminate": ["watchIndeterminateChange"]
|
|
39
|
+
}; }
|
|
40
|
+
};
|
|
41
41
|
TttxCheckbox.style = tttxCheckboxCss;
|
|
42
42
|
|
|
43
|
-
exports.
|
|
43
|
+
exports.tttx_checkbox_1_9_103 = TttxCheckbox;
|
package/dist/cjs/{tttx-comments_localcomponent.cjs.entry.js → tttx-comments_1_9_103.cjs.entry.js}
RENAMED
|
@@ -6,209 +6,209 @@ const index = require('./index-2c07dc57.js');
|
|
|
6
6
|
|
|
7
7
|
const tttxCommentsCss = ".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}*{font-family:\"Roboto\", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column;padding:0px 1px}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0;margin-left:5px;font-size:11pt}.file-link-container{display:flex;align-items:center}.commentBubble .bubbleHeader{display:flex;justify-content:space-between}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;padding:0 10px;font-size:9pt;color:#757575}.comment-date{margin-left:auto}.editing-sub-text{margin-top:5px;font-size:9pt;color:#757575}.flex-right-align{margin-left:auto}.cancel-edit-container{position:relative;width:100%;display:flex;justify-content:end}.cancel-edit-button{color:whitesmoke;background-color:#aaaaaa;border-radius:10px;height:20px;width:20px;text-align:center;position:absolute;margin-top:11px;margin-right:18px}.clickable,.clickable>*{cursor:pointer}.deleted-comment{background:white !important;color:gray;border:1px solid lightgray}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}.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 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}.comment-textarea{resize:vertical;height:var(--textarea-max-height, 90px);width:100%;padding:10px 35px 10px 12px;box-sizing:border-box;border:1px solid #ccc;border-radius:6px;font-size:14px;line-height:1.4;font-family:\"Roboto\", sans-serif}.no-comments{display:flex;flex-direction:row;align-items:center;justify-content:start;color:#757575;font-size:14px;gap:4px;font-family:\"Roboto\", sans-serif;margin-top:20px}.mt-s{margin-top:4px}.bubble-header-inner{display:flex}.unread-symbol{margin-left:5px}.unread-comment-divider{display:flex;margin:10px 0}.unread-comments-text{font-size:10pt;margin:0px 10px;white-space:nowrap;color:#757575}.unread-comment-divider-line{border:none;border-top:1px solid #ccc;width:100%}";
|
|
8
8
|
|
|
9
|
-
const TttxComments = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.commentAdded = index.createEvent(this, "commentAdded", 6);
|
|
13
|
-
this.commentEdited = index.createEvent(this, "commentEdited", 6);
|
|
14
|
-
this.requestCommentRemoval = index.createEvent(this, "requestCommentRemoval", 6);
|
|
15
|
-
this.requestFileUpload = index.createEvent(this, "requestFileUpload", 6);
|
|
16
|
-
this.requestFileDownload = index.createEvent(this, "requestFileDownload", 6);
|
|
17
|
-
this.blurChanged = index.createEvent(this, "commentFocusOut", 7);
|
|
18
|
-
this.isFileComment = (comment) => { var _a; return (((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.type) === ECommentType.FILE); };
|
|
19
|
-
this.isUnread = (comment) => {
|
|
20
|
-
if (comment.createdByFullName === this.currentuser)
|
|
21
|
-
return false; // your own comment cannot be unread
|
|
22
|
-
if (!comment.userLastViewed)
|
|
23
|
-
return true; // has never viewed, so unread
|
|
24
|
-
return comment.createdAt > comment.userLastViewed;
|
|
25
|
-
};
|
|
26
|
-
this.currentuser = undefined;
|
|
27
|
-
this.comments = undefined;
|
|
28
|
-
this.disableFile = false;
|
|
29
|
-
this.messageLimit = 1000;
|
|
30
|
-
this.inputBoxHeight = 90;
|
|
31
|
-
this.placeholder = 'Enter Comment';
|
|
32
|
-
this.saveButtonText = 'Add Comment';
|
|
33
|
-
this.value = undefined;
|
|
34
|
-
this.allowEditing = false;
|
|
35
|
-
this.readonly = false;
|
|
36
|
-
this._comments = undefined;
|
|
37
|
-
this.showError = undefined;
|
|
38
|
-
this._saveButtonText = undefined;
|
|
39
|
-
this.editingComment = undefined;
|
|
40
|
-
}
|
|
41
|
-
componentWillLoad() {
|
|
42
|
-
// dynamic constructor: any props can be added later
|
|
43
|
-
this.onCommentsChange();
|
|
44
|
-
this._saveButtonText = this.saveButtonText;
|
|
45
|
-
}
|
|
46
|
-
onCommentsChange() {
|
|
47
|
-
if (!this.comments) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (typeof this.comments === 'string') {
|
|
51
|
-
this._comments = JSON.parse(this.comments);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
this._comments = this.comments;
|
|
55
|
-
}
|
|
56
|
-
if (this.editingComment) {
|
|
57
|
-
// if comment being edited is now deleted, clear the active edit session
|
|
58
|
-
const latestComment = this._comments.find((comment) => comment.id === this.editingComment.id);
|
|
59
|
-
if (latestComment.isDeleted)
|
|
60
|
-
this.onFinishEdit();
|
|
61
|
-
}
|
|
62
|
-
this.scrollToBottom();
|
|
63
|
-
}
|
|
64
|
-
renderCommentBubble() {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
const hasUnreadAtTop = ((_a = this._comments) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.isUnread(this._comments[0]) : false;
|
|
67
|
-
let unreadDividerRendered = false;
|
|
68
|
-
let topDivider = null;
|
|
69
|
-
if (hasUnreadAtTop) {
|
|
70
|
-
topDivider = (index.h("div", { class: "unread-comment-divider" }, index.h("hr", { class: "unread-comment-divider-line" }), index.h("span", { class: "unread-comments-text" }, "New Unread Comments"), index.h("hr", { class: "unread-comment-divider-line" })));
|
|
71
|
-
}
|
|
72
|
-
return (index.h(index.Fragment, null, (_b = this._comments) === null || _b === void 0 ? void 0 : _b.map((comment, index$1) => {
|
|
73
|
-
var _a;
|
|
74
|
-
const isCurrentUser = comment.createdByFullName === this.currentuser;
|
|
75
|
-
const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
|
|
76
|
-
const isLastComment = index$1 === this._comments.length - 1;
|
|
77
|
-
const topComment = index$1 === 0 ? { marginTop: '10px' } : {};
|
|
78
|
-
const nextIsUnread = !isLastComment ? this.isUnread(this._comments[index$1 + 1]) : false;
|
|
79
|
-
const firstComment = index$1 === 0 ? true : false;
|
|
80
|
-
let divider = null;
|
|
81
|
-
if (!isLastComment &&
|
|
82
|
-
nextIsUnread &&
|
|
83
|
-
!unreadDividerRendered &&
|
|
84
|
-
!(hasUnreadAtTop && index$1 === 0)) {
|
|
85
|
-
divider = (index.h("div", { class: "unread-comment-divider" }, index.h("hr", { class: "unread-comment-divider-line" }), index.h("span", { class: "unread-comments-text" }, "New Unread Comments"), index.h("hr", { class: "unread-comment-divider-line" })));
|
|
86
|
-
}
|
|
87
|
-
unreadDividerRendered = unreadDividerRendered || nextIsUnread;
|
|
88
|
-
return [
|
|
89
|
-
index.h("div", { class: bubbleClass, style: topComment }, firstComment && topDivider, index.h("div", { class: "bubbleHeader" }, index.h("div", { class: "bubble-header-inner" }, index.h("span", { class: "commentName" }, comment.createdByFullName), this.isUnread(comment) && (index.h("tttx-
|
|
90
|
-
];
|
|
91
|
-
})));
|
|
92
|
-
}
|
|
93
|
-
renderCommentInner(comment) {
|
|
94
|
-
if (comment.isDeleted) {
|
|
95
|
-
return this.isFileComment(comment) ? 'File removed.' : 'Comment removed.';
|
|
96
|
-
}
|
|
97
|
-
return this.isFileComment(comment) ? this.renderFileLink(comment.metadata) : comment.text;
|
|
98
|
-
}
|
|
99
|
-
renderFileLink(metadata) {
|
|
100
|
-
return (index.h("div", { class: "file-link-container" }, index.h("tttx-
|
|
101
|
-
}
|
|
102
|
-
onFormSubmit(event) {
|
|
103
|
-
// get comment text
|
|
104
|
-
event.preventDefault();
|
|
105
|
-
const fd = new FormData(event.currentTarget);
|
|
106
|
-
let text;
|
|
107
|
-
for (const data of fd.entries()) {
|
|
108
|
-
text = data[1];
|
|
109
|
-
}
|
|
110
|
-
event.currentTarget.reset();
|
|
111
|
-
// edit / create new as required
|
|
112
|
-
if (this.editingComment) {
|
|
113
|
-
this.editComment(text);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
this.createComment(text);
|
|
117
|
-
}
|
|
118
|
-
this.scrollToBottom();
|
|
119
|
-
}
|
|
120
|
-
createComment(text) {
|
|
121
|
-
const newComment = {
|
|
122
|
-
id: undefined,
|
|
123
|
-
text: text,
|
|
124
|
-
createdAt: +(new Date()),
|
|
125
|
-
createdByFullName: this.currentuser,
|
|
126
|
-
createdById: undefined,
|
|
127
|
-
isDeleted: false
|
|
128
|
-
};
|
|
129
|
-
this._comments = [...this._comments, newComment];
|
|
130
|
-
this.commentAdded.emit(newComment);
|
|
131
|
-
}
|
|
132
|
-
editComment(updatedText) {
|
|
133
|
-
// update comment for list refresh
|
|
134
|
-
const index = this._comments.findIndex((x) => x.id === this.editingComment.id);
|
|
135
|
-
this._comments[index] = Object.assign(Object.assign({}, this._comments[index]), { text: updatedText, lastUpdatedAt: +(new Date()), updatedByFullName: this.currentuser, updatedById: undefined });
|
|
136
|
-
this._comments = [...this._comments];
|
|
137
|
-
// emit updated comment event
|
|
138
|
-
this.commentEdited.emit(this._comments[index]);
|
|
139
|
-
// reset comments box
|
|
140
|
-
this.onFinishEdit();
|
|
141
|
-
}
|
|
142
|
-
scrollToBottom() {
|
|
143
|
-
setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
|
|
144
|
-
}
|
|
145
|
-
onFileUploadRequest() {
|
|
146
|
-
this.requestFileUpload.emit();
|
|
147
|
-
}
|
|
148
|
-
onFileDownloadRequest(event) {
|
|
149
|
-
this.requestFileDownload.emit(event.currentTarget.value);
|
|
150
|
-
}
|
|
151
|
-
async addDummyComment(text, createdByFullName) {
|
|
152
|
-
const newComment = {
|
|
153
|
-
id: undefined,
|
|
154
|
-
text: text,
|
|
155
|
-
createdAt: +(new Date()),
|
|
156
|
-
createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
|
|
157
|
-
createdById: undefined,
|
|
158
|
-
isDeleted: false
|
|
159
|
-
};
|
|
160
|
-
this._comments = [...this._comments, newComment];
|
|
161
|
-
this.scrollToBottom();
|
|
162
|
-
}
|
|
163
|
-
onCommentFieldChange(e) {
|
|
164
|
-
const input = e.target;
|
|
165
|
-
if (input.value.length >= this.messageLimit) {
|
|
166
|
-
this.showError = true;
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
this.showError = false;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
handleBlur(event) {
|
|
173
|
-
if (this.editingComment)
|
|
174
|
-
return; // don't save drafts for edits
|
|
175
|
-
const target = event.target;
|
|
176
|
-
this.blurChanged.emit(target.value);
|
|
177
|
-
}
|
|
178
|
-
onEdit(comment) {
|
|
179
|
-
this.editingComment = comment;
|
|
180
|
-
this.textInput.value = this.editingComment.text;
|
|
181
|
-
this._saveButtonText = 'Update comment';
|
|
182
|
-
this.scrollToBottom();
|
|
183
|
-
}
|
|
184
|
-
onFinishEdit() {
|
|
185
|
-
this.editingComment = undefined;
|
|
186
|
-
this.textInput.value = '';
|
|
187
|
-
this._saveButtonText = this.saveButtonText;
|
|
188
|
-
}
|
|
189
|
-
onRemove(comment) {
|
|
190
|
-
comment = Object.assign(Object.assign({}, comment), { lastUpdatedAt: +(new Date()), updatedByFullName: this.currentuser, updatedById: undefined });
|
|
191
|
-
this.requestCommentRemoval.emit(comment);
|
|
192
|
-
}
|
|
193
|
-
render() {
|
|
194
|
-
return (index.h(index.Host, null, index.h("article", { id: "comment-container" }, (!Array.isArray(this._comments) || this._comments.length === 0) && (index.h("div", { class: "no-comments" }, index.h("tttx-
|
|
195
|
-
}
|
|
196
|
-
static get watchers() { return {
|
|
197
|
-
"comments": ["onCommentsChange"]
|
|
198
|
-
}; }
|
|
199
|
-
};
|
|
200
|
-
var ECommentType;
|
|
201
|
-
(function (ECommentType) {
|
|
202
|
-
ECommentType[ECommentType["FILE"] = 0] = "FILE";
|
|
203
|
-
})(ECommentType || (ECommentType = {}));
|
|
204
|
-
const timestampOptions = {
|
|
205
|
-
hour12: false,
|
|
206
|
-
year: 'numeric',
|
|
207
|
-
month: 'long',
|
|
208
|
-
day: 'numeric',
|
|
209
|
-
hour: 'numeric',
|
|
210
|
-
minute: 'numeric'
|
|
211
|
-
};
|
|
9
|
+
const TttxComments = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.commentAdded = index.createEvent(this, "commentAdded", 6);
|
|
13
|
+
this.commentEdited = index.createEvent(this, "commentEdited", 6);
|
|
14
|
+
this.requestCommentRemoval = index.createEvent(this, "requestCommentRemoval", 6);
|
|
15
|
+
this.requestFileUpload = index.createEvent(this, "requestFileUpload", 6);
|
|
16
|
+
this.requestFileDownload = index.createEvent(this, "requestFileDownload", 6);
|
|
17
|
+
this.blurChanged = index.createEvent(this, "commentFocusOut", 7);
|
|
18
|
+
this.isFileComment = (comment) => { var _a; return (((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.type) === ECommentType.FILE); };
|
|
19
|
+
this.isUnread = (comment) => {
|
|
20
|
+
if (comment.createdByFullName === this.currentuser)
|
|
21
|
+
return false; // your own comment cannot be unread
|
|
22
|
+
if (!comment.userLastViewed)
|
|
23
|
+
return true; // has never viewed, so unread
|
|
24
|
+
return comment.createdAt > comment.userLastViewed;
|
|
25
|
+
};
|
|
26
|
+
this.currentuser = undefined;
|
|
27
|
+
this.comments = undefined;
|
|
28
|
+
this.disableFile = false;
|
|
29
|
+
this.messageLimit = 1000;
|
|
30
|
+
this.inputBoxHeight = 90;
|
|
31
|
+
this.placeholder = 'Enter Comment';
|
|
32
|
+
this.saveButtonText = 'Add Comment';
|
|
33
|
+
this.value = undefined;
|
|
34
|
+
this.allowEditing = false;
|
|
35
|
+
this.readonly = false;
|
|
36
|
+
this._comments = undefined;
|
|
37
|
+
this.showError = undefined;
|
|
38
|
+
this._saveButtonText = undefined;
|
|
39
|
+
this.editingComment = undefined;
|
|
40
|
+
}
|
|
41
|
+
componentWillLoad() {
|
|
42
|
+
// dynamic constructor: any props can be added later
|
|
43
|
+
this.onCommentsChange();
|
|
44
|
+
this._saveButtonText = this.saveButtonText;
|
|
45
|
+
}
|
|
46
|
+
onCommentsChange() {
|
|
47
|
+
if (!this.comments) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (typeof this.comments === 'string') {
|
|
51
|
+
this._comments = JSON.parse(this.comments);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this._comments = this.comments;
|
|
55
|
+
}
|
|
56
|
+
if (this.editingComment) {
|
|
57
|
+
// if comment being edited is now deleted, clear the active edit session
|
|
58
|
+
const latestComment = this._comments.find((comment) => comment.id === this.editingComment.id);
|
|
59
|
+
if (latestComment.isDeleted)
|
|
60
|
+
this.onFinishEdit();
|
|
61
|
+
}
|
|
62
|
+
this.scrollToBottom();
|
|
63
|
+
}
|
|
64
|
+
renderCommentBubble() {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
const hasUnreadAtTop = ((_a = this._comments) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.isUnread(this._comments[0]) : false;
|
|
67
|
+
let unreadDividerRendered = false;
|
|
68
|
+
let topDivider = null;
|
|
69
|
+
if (hasUnreadAtTop) {
|
|
70
|
+
topDivider = (index.h("div", { class: "unread-comment-divider" }, index.h("hr", { class: "unread-comment-divider-line" }), index.h("span", { class: "unread-comments-text" }, "New Unread Comments"), index.h("hr", { class: "unread-comment-divider-line" })));
|
|
71
|
+
}
|
|
72
|
+
return (index.h(index.Fragment, null, (_b = this._comments) === null || _b === void 0 ? void 0 : _b.map((comment, index$1) => {
|
|
73
|
+
var _a;
|
|
74
|
+
const isCurrentUser = comment.createdByFullName === this.currentuser;
|
|
75
|
+
const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
|
|
76
|
+
const isLastComment = index$1 === this._comments.length - 1;
|
|
77
|
+
const topComment = index$1 === 0 ? { marginTop: '10px' } : {};
|
|
78
|
+
const nextIsUnread = !isLastComment ? this.isUnread(this._comments[index$1 + 1]) : false;
|
|
79
|
+
const firstComment = index$1 === 0 ? true : false;
|
|
80
|
+
let divider = null;
|
|
81
|
+
if (!isLastComment &&
|
|
82
|
+
nextIsUnread &&
|
|
83
|
+
!unreadDividerRendered &&
|
|
84
|
+
!(hasUnreadAtTop && index$1 === 0)) {
|
|
85
|
+
divider = (index.h("div", { class: "unread-comment-divider" }, index.h("hr", { class: "unread-comment-divider-line" }), index.h("span", { class: "unread-comments-text" }, "New Unread Comments"), index.h("hr", { class: "unread-comment-divider-line" })));
|
|
86
|
+
}
|
|
87
|
+
unreadDividerRendered = unreadDividerRendered || nextIsUnread;
|
|
88
|
+
return [
|
|
89
|
+
index.h("div", { class: bubbleClass, style: topComment }, firstComment && topDivider, index.h("div", { class: "bubbleHeader" }, index.h("div", { class: "bubble-header-inner" }, index.h("span", { class: "commentName" }, comment.createdByFullName), this.isUnread(comment) && (index.h("tttx-icon_1_9_103", { class: "unread-symbol", icon: "error", color: "blue", style: { height: '18px' }, size: 18 }))), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (index.h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), index.h("div", { class: `bubbleText ${comment.isDeleted ? 'deleted-comment' : ''}` }, this.renderCommentInner(comment)), index.h("div", { class: "bubbleFooter" }, !this.readonly && this.allowEditing && isCurrentUser && !comment.isDeleted && !!comment.id && (index.h("div", null, !this.isFileComment(comment) && (index.h(index.Fragment, null, index.h("span", { class: "clickable", onClick: this.onEdit.bind(this, comment) }, "Edit"), " | ")), index.h("span", { class: "clickable", onClick: this.onRemove.bind(this, comment) }, "Remove"))), index.h("span", { class: "comment-date" }, !!comment.lastUpdatedAt && !comment.isDeleted && `Edited ${new Date(comment.lastUpdatedAt).toLocaleString(undefined, timestampOptions)}`, !!comment.lastUpdatedAt && comment.isDeleted && `Removed ${new Date(comment.lastUpdatedAt).toLocaleString(undefined, timestampOptions)}`, !comment.lastUpdatedAt && `${new Date(comment.createdAt).toLocaleString(undefined, timestampOptions)}`)), !divider && !isLastComment && index.h("hr", { class: "commentDivider" }), divider)
|
|
90
|
+
];
|
|
91
|
+
})));
|
|
92
|
+
}
|
|
93
|
+
renderCommentInner(comment) {
|
|
94
|
+
if (comment.isDeleted) {
|
|
95
|
+
return this.isFileComment(comment) ? 'File removed.' : 'Comment removed.';
|
|
96
|
+
}
|
|
97
|
+
return this.isFileComment(comment) ? this.renderFileLink(comment.metadata) : comment.text;
|
|
98
|
+
}
|
|
99
|
+
renderFileLink(metadata) {
|
|
100
|
+
return (index.h("div", { class: "file-link-container" }, index.h("tttx-icon_1_9_103", { icon: "attach_file", color: "black", style: { height: '20px' }, size: 20 }), index.h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename)));
|
|
101
|
+
}
|
|
102
|
+
onFormSubmit(event) {
|
|
103
|
+
// get comment text
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
const fd = new FormData(event.currentTarget);
|
|
106
|
+
let text;
|
|
107
|
+
for (const data of fd.entries()) {
|
|
108
|
+
text = data[1];
|
|
109
|
+
}
|
|
110
|
+
event.currentTarget.reset();
|
|
111
|
+
// edit / create new as required
|
|
112
|
+
if (this.editingComment) {
|
|
113
|
+
this.editComment(text);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.createComment(text);
|
|
117
|
+
}
|
|
118
|
+
this.scrollToBottom();
|
|
119
|
+
}
|
|
120
|
+
createComment(text) {
|
|
121
|
+
const newComment = {
|
|
122
|
+
id: undefined,
|
|
123
|
+
text: text,
|
|
124
|
+
createdAt: +(new Date()),
|
|
125
|
+
createdByFullName: this.currentuser,
|
|
126
|
+
createdById: undefined,
|
|
127
|
+
isDeleted: false
|
|
128
|
+
};
|
|
129
|
+
this._comments = [...this._comments, newComment];
|
|
130
|
+
this.commentAdded.emit(newComment);
|
|
131
|
+
}
|
|
132
|
+
editComment(updatedText) {
|
|
133
|
+
// update comment for list refresh
|
|
134
|
+
const index = this._comments.findIndex((x) => x.id === this.editingComment.id);
|
|
135
|
+
this._comments[index] = Object.assign(Object.assign({}, this._comments[index]), { text: updatedText, lastUpdatedAt: +(new Date()), updatedByFullName: this.currentuser, updatedById: undefined });
|
|
136
|
+
this._comments = [...this._comments];
|
|
137
|
+
// emit updated comment event
|
|
138
|
+
this.commentEdited.emit(this._comments[index]);
|
|
139
|
+
// reset comments box
|
|
140
|
+
this.onFinishEdit();
|
|
141
|
+
}
|
|
142
|
+
scrollToBottom() {
|
|
143
|
+
setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
|
|
144
|
+
}
|
|
145
|
+
onFileUploadRequest() {
|
|
146
|
+
this.requestFileUpload.emit();
|
|
147
|
+
}
|
|
148
|
+
onFileDownloadRequest(event) {
|
|
149
|
+
this.requestFileDownload.emit(event.currentTarget.value);
|
|
150
|
+
}
|
|
151
|
+
async addDummyComment(text, createdByFullName) {
|
|
152
|
+
const newComment = {
|
|
153
|
+
id: undefined,
|
|
154
|
+
text: text,
|
|
155
|
+
createdAt: +(new Date()),
|
|
156
|
+
createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
|
|
157
|
+
createdById: undefined,
|
|
158
|
+
isDeleted: false
|
|
159
|
+
};
|
|
160
|
+
this._comments = [...this._comments, newComment];
|
|
161
|
+
this.scrollToBottom();
|
|
162
|
+
}
|
|
163
|
+
onCommentFieldChange(e) {
|
|
164
|
+
const input = e.target;
|
|
165
|
+
if (input.value.length >= this.messageLimit) {
|
|
166
|
+
this.showError = true;
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
this.showError = false;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
handleBlur(event) {
|
|
173
|
+
if (this.editingComment)
|
|
174
|
+
return; // don't save drafts for edits
|
|
175
|
+
const target = event.target;
|
|
176
|
+
this.blurChanged.emit(target.value);
|
|
177
|
+
}
|
|
178
|
+
onEdit(comment) {
|
|
179
|
+
this.editingComment = comment;
|
|
180
|
+
this.textInput.value = this.editingComment.text;
|
|
181
|
+
this._saveButtonText = 'Update comment';
|
|
182
|
+
this.scrollToBottom();
|
|
183
|
+
}
|
|
184
|
+
onFinishEdit() {
|
|
185
|
+
this.editingComment = undefined;
|
|
186
|
+
this.textInput.value = '';
|
|
187
|
+
this._saveButtonText = this.saveButtonText;
|
|
188
|
+
}
|
|
189
|
+
onRemove(comment) {
|
|
190
|
+
comment = Object.assign(Object.assign({}, comment), { lastUpdatedAt: +(new Date()), updatedByFullName: this.currentuser, updatedById: undefined });
|
|
191
|
+
this.requestCommentRemoval.emit(comment);
|
|
192
|
+
}
|
|
193
|
+
render() {
|
|
194
|
+
return (index.h(index.Host, null, index.h("article", { id: "comment-container" }, (!Array.isArray(this._comments) || this._comments.length === 0) && (index.h("div", { class: "no-comments" }, index.h("tttx-icon_1_9_103", { class: 'mt-s', icon: "chat_bubble_outline", color: "grey" }), index.h("span", null, "No comments have been added"))), index.h("section", { id: "comment-bubbles-section" }, index.h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), index.h("section", { id: "input-section" }, !this.readonly && index.h("form", { onSubmit: this.onFormSubmit.bind(this) }, this.editingComment && (index.h("div", { class: "cancel-edit-container" }, index.h("span", { class: "cancel-edit-button clickable", onClick: this.onFinishEdit.bind(this) }, "x"))), index.h("fieldset", null, index.h("textarea", { ref: el => this.textInput = el, name: "commentText", required: true, maxlength: `${this.messageLimit}`, placeholder: this.placeholder, onInput: (e) => this.onCommentFieldChange(e), style: { '--textarea-max-height': `${this.inputBoxHeight}px` }, class: "comment-textarea", value: this.value, onBlur: this.handleBlur.bind(this) })), this.showError && (index.h("span", { class: 'errorBubble visible' }, index.h("span", { class: "material-symbols-rounded" }, "warning"), " ", `${this.messageLimit} character limit is reached.`)), index.h("fieldset", null, this.editingComment && (index.h("span", { class: 'editing-sub-text' }, "Editing comment")), !this.disableFile && (index.h("button", { id: "attach-file", class: "flex-right-align clickable", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, index.h("tttx-icon_1_9_103", { color: "black", icon: "attach_file" }))), index.h("input", { class: (this.disableFile ? 'flex-right-align ' : '') + 'clickable', style: { width: 'fit-content' }, type: "submit", value: this._saveButtonText })))))));
|
|
195
|
+
}
|
|
196
|
+
static get watchers() { return {
|
|
197
|
+
"comments": ["onCommentsChange"]
|
|
198
|
+
}; }
|
|
199
|
+
};
|
|
200
|
+
var ECommentType;
|
|
201
|
+
(function (ECommentType) {
|
|
202
|
+
ECommentType[ECommentType["FILE"] = 0] = "FILE";
|
|
203
|
+
})(ECommentType || (ECommentType = {}));
|
|
204
|
+
const timestampOptions = {
|
|
205
|
+
hour12: false,
|
|
206
|
+
year: 'numeric',
|
|
207
|
+
month: 'long',
|
|
208
|
+
day: 'numeric',
|
|
209
|
+
hour: 'numeric',
|
|
210
|
+
minute: 'numeric'
|
|
211
|
+
};
|
|
212
212
|
TttxComments.style = tttxCommentsCss;
|
|
213
213
|
|
|
214
|
-
exports.
|
|
214
|
+
exports.tttx_comments_1_9_103 = TttxComments;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-2c07dc57.js');
|
|
6
|
+
|
|
7
|
+
const tttxDataPatternCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const TttxDataPattern = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.data = undefined;
|
|
13
|
+
this.sorterOptions = undefined;
|
|
14
|
+
this.filterOptions = undefined;
|
|
15
|
+
this.filterHeader = 'Filter';
|
|
16
|
+
this.defaultSortOption = 'Sort by';
|
|
17
|
+
this.searchplaceholder = 'Search';
|
|
18
|
+
this.addbuttonlabel = 'Add';
|
|
19
|
+
this.addbutton = false;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (index.h(index.Host, null, index.h("div", { class: "container" }, index.h("tttx-toolbar_1_9_103", { border: true }, index.h("span", { slot: "before" }, this.sorterOptions &&
|
|
23
|
+
index.h("tttx-sorter_1_9_103", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorterOptions, defaultOption: this.defaultSortOption }), this.filterOptions &&
|
|
24
|
+
index.h("tttx-filter_1_9_103", { "filter-options": JSON.stringify(this.filterOptions), showSelectAll: false, "show-option-icons": true, "filter-header": this.filterHeader, "filter-key": "data-pattern-list" })), index.h("span", { slot: "after" }, index.h("tttx-standalone-input_1_9_103", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: this.searchplaceholder, type: "text", maxlength: 30 }))), index.h("tttx-toolbar_1_9_103", { border: false }, index.h("span", { slot: "before" }, this.addbutton &&
|
|
25
|
+
index.h("tttx-button_1_9_103", { design: "primary", icon: "add" }, this.addbuttonlabel))), index.h("tttx-list_1_9_103", { data: this.data }))));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
TttxDataPattern.style = tttxDataPatternCss;
|
|
29
|
+
|
|
30
|
+
exports.tttx_data_pattern_1_9_103 = TttxDataPattern;
|