@3t-transform/threeteeui 1.9.101 → 1.9.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/dist/cjs/{auto-be8ad100.js → auto-356ad09b.js} +177 -177
  2. package/dist/cjs/{domsanitiser.options-55ce2d65.js → domsanitiser.options-065dbed8.js} +12 -12
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{tttx-action-dropdown_1_9_101.cjs.entry.js → tttx-action-dropdown_1_9_103.cjs.entry.js} +51 -51
  5. package/dist/cjs/{tttx-button-v2_1_9_101.cjs.entry.js → tttx-button-v2_1_9_103.cjs.entry.js} +147 -147
  6. package/dist/cjs/{tttx-button_1_9_101.cjs.entry.js → tttx-button_1_9_103.cjs.entry.js} +26 -26
  7. package/dist/cjs/{tttx-chart_1_9_101.cjs.entry.js → tttx-chart_1_9_103.cjs.entry.js} +524 -524
  8. package/dist/cjs/{tttx-checkbox-group-caption_1_9_101.cjs.entry.js → tttx-checkbox-group-caption_1_9_103.cjs.entry.js} +9 -9
  9. package/dist/cjs/{tttx-checkbox-group-heading_1_9_101.cjs.entry.js → tttx-checkbox-group-heading_1_9_103.cjs.entry.js} +9 -9
  10. package/dist/cjs/{tttx-checkbox-group_1_9_101.cjs.entry.js → tttx-checkbox-group_1_9_103.cjs.entry.js} +9 -9
  11. package/dist/cjs/{tttx-checkbox_1_9_101.cjs.entry.js → tttx-checkbox_1_9_103.cjs.entry.js} +33 -33
  12. package/dist/cjs/{tttx-comments_1_9_101.cjs.entry.js → tttx-comments_1_9_103.cjs.entry.js} +204 -204
  13. package/dist/cjs/{tttx-data-pattern_1_9_101.cjs.entry.js → tttx-data-pattern_1_9_103.cjs.entry.js} +20 -20
  14. package/dist/cjs/{tttx-datacard_1_9_101.cjs.entry.js → tttx-datacard_1_9_103.cjs.entry.js} +43 -43
  15. package/dist/cjs/tttx-date-range-picker.cjs.entry.js +212 -212
  16. package/dist/cjs/{tttx-dialog-box_1_9_101.cjs.entry.js → tttx-dialog-box_1_9_103.cjs.entry.js} +94 -94
  17. package/dist/cjs/{tttx-dialog_1_9_101.cjs.entry.js → tttx-dialog_1_9_103.cjs.entry.js} +69 -69
  18. package/dist/cjs/{tttx-expander_1_9_101.cjs.entry.js → tttx-expander_1_9_103.cjs.entry.js} +28 -28
  19. package/dist/cjs/{tttx-filter_1_9_101_4.cjs.entry.js → tttx-filter_1_9_103_4.cjs.entry.js} +386 -386
  20. package/dist/cjs/{tttx-form_1_9_101.cjs.entry.js → tttx-form_1_9_103.cjs.entry.js} +985 -985
  21. package/dist/cjs/{tttx-graph_1_9_101.cjs.entry.js → tttx-graph_1_9_103.cjs.entry.js} +124 -124
  22. package/dist/cjs/{tttx-icon_1_9_101.cjs.entry.js → tttx-icon_1_9_103.cjs.entry.js} +24 -24
  23. package/dist/cjs/{tttx-keyvalue-block_1_9_101.cjs.entry.js → tttx-keyvalue-block_1_9_103.cjs.entry.js} +62 -62
  24. package/dist/cjs/{tttx-loading-spinner_1_9_101_3.cjs.entry.js → tttx-loading-spinner_1_9_103_3.cjs.entry.js} +172 -172
  25. package/dist/cjs/{tttx-multiselect-box_1_9_101.cjs.entry.js → tttx-multiselect-box_1_9_103.cjs.entry.js} +175 -175
  26. package/dist/cjs/{tttx-percentage-bar_1_9_101.cjs.entry.js → tttx-percentage-bar_1_9_103.cjs.entry.js} +56 -56
  27. package/dist/cjs/{tttx-qrcode_1_9_101.cjs.entry.js → tttx-qrcode_1_9_103.cjs.entry.js} +28 -28
  28. package/dist/cjs/{tttx-range-slider_1_9_101.cjs.entry.js → tttx-range-slider_1_9_103.cjs.entry.js} +185 -185
  29. package/dist/cjs/{tttx-select-box_1_9_101.cjs.entry.js → tttx-select-box_1_9_103.cjs.entry.js} +239 -239
  30. package/dist/cjs/{tttx-skeleton_loader_1_9_101.cjs.entry.js → tttx-skeleton_loader_1_9_103.cjs.entry.js} +30 -30
  31. package/dist/cjs/{tttx-table_1_9_101.cjs.entry.js → tttx-table_1_9_103.cjs.entry.js} +72 -72
  32. package/dist/cjs/{tttx-tabs_1_9_101.cjs.entry.js → tttx-tabs_1_9_103.cjs.entry.js} +103 -103
  33. package/dist/cjs/{tttx-tag-v2_1_9_101.cjs.entry.js → tttx-tag-v2_1_9_103.cjs.entry.js} +72 -72
  34. package/dist/cjs/{tttx-textarea_1_9_101.cjs.entry.js → tttx-textarea_1_9_103.cjs.entry.js} +50 -50
  35. package/dist/cjs/{tttx-toggle_1_9_101.cjs.entry.js → tttx-toggle_1_9_103.cjs.entry.js} +30 -30
  36. package/dist/cjs/{tttx-tooltip_1_9_101.cjs.entry.js → tttx-tooltip_1_9_103.cjs.entry.js} +87 -87
  37. package/dist/cjs/{tttx-tree-view_1_9_101.cjs.entry.js → tttx-tree-view_1_9_103.cjs.entry.js} +342 -342
  38. package/dist/cjs/tttx.cjs.js +1 -1
  39. package/dist/collection/components/atoms/tttx-button/tttx-button.js +129 -129
  40. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +40 -40
  41. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.css +1 -1
  42. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +436 -436
  43. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +143 -143
  44. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +154 -154
  45. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +58 -58
  46. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +186 -186
  47. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +92 -92
  48. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +92 -92
  49. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +26 -26
  50. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +137 -137
  51. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +94 -94
  52. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +194 -194
  53. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +53 -53
  54. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +168 -168
  55. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +52 -52
  56. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +81 -81
  57. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -22
  58. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +225 -225
  59. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.stories.js +44 -44
  60. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +157 -157
  61. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +53 -53
  62. package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.js +281 -281
  63. package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.stories.js +84 -84
  64. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +84 -84
  65. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +8 -8
  66. package/dist/collection/components/domsanitiser.options.js +14 -14
  67. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +213 -213
  68. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +55 -55
  69. package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +793 -793
  70. package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +209 -209
  71. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +17 -17
  72. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +17 -17
  73. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +18 -18
  74. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +62 -62
  75. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +536 -536
  76. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +151 -151
  77. package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.js +292 -292
  78. package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.stories.js +48 -48
  79. package/dist/collection/components/molecules/tttx-dialog/icon-types.js +6 -6
  80. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +218 -218
  81. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +50 -50
  82. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +246 -246
  83. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +314 -314
  84. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +134 -134
  85. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +46 -46
  86. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +416 -416
  87. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +81 -81
  88. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +49 -49
  89. package/dist/collection/components/molecules/tttx-form/lib/timecomparatorChecks.js +64 -64
  90. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +76 -76
  91. package/dist/collection/components/molecules/tttx-form/tttx-form.js +1267 -1267
  92. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +595 -595
  93. package/dist/collection/components/molecules/tttx-graph/gauge-label-plugin.js +14 -14
  94. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +184 -184
  95. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +32 -32
  96. package/dist/collection/components/molecules/tttx-list/tttx-list.js +165 -165
  97. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +134 -134
  98. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +499 -499
  99. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +151 -151
  100. package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.js +304 -304
  101. package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.stories.js +22 -22
  102. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +671 -671
  103. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +140 -140
  104. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +253 -253
  105. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +43 -43
  106. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +764 -764
  107. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +191 -191
  108. package/dist/collection/components/molecules/tttx-table/tttx-table.css +1 -1
  109. package/dist/collection/components/molecules/tttx-table/tttx-table.js +318 -318
  110. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +191 -191
  111. package/dist/collection/components/molecules/tttx-table/tttx-table.types.js +1 -1
  112. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +253 -253
  113. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +82 -82
  114. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +420 -420
  115. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +81 -81
  116. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +73 -73
  117. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +97 -97
  118. package/dist/collection/components/molecules/tttx-tooltip/tttx-tooltip.js +253 -253
  119. package/dist/collection/components/molecules/tttx-tooltip/tttx-tootip.stories.js +117 -117
  120. package/dist/collection/components/molecules/tttx-tree-view/helper/helper.js +1 -1
  121. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +1 -1
  122. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +463 -463
  123. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +402 -402
  124. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +176 -176
  125. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +28 -28
  126. package/dist/collection/components/palette.stories.js +7 -7
  127. package/dist/collection/icons.js +2838 -2838
  128. package/dist/collection/index.js +1 -1
  129. package/dist/collection/shared/domsanitiser.options.js +14 -14
  130. package/dist/components/auto.js +177 -177
  131. package/dist/components/domsanitiser.options.js +12 -12
  132. package/dist/components/index.d.ts +38 -38
  133. package/dist/components/index.js +38 -38
  134. package/dist/components/tttx-action-dropdown_1_9_103.d.ts +11 -0
  135. package/dist/components/{tttx-action-dropdown_1_9_101.js → tttx-action-dropdown_1_9_103.js} +81 -81
  136. package/dist/components/tttx-button-v2.js +182 -182
  137. package/dist/components/tttx-button-v2_1_9_103.d.ts +11 -0
  138. package/dist/components/{tttx-button-v2_1_9_101.js → tttx-button-v2_1_9_103.js} +2 -2
  139. package/dist/components/tttx-button.js +51 -51
  140. package/dist/components/{tttx-dialog_1_9_101.d.ts → tttx-button_1_9_103.d.ts} +4 -4
  141. package/dist/components/{tttx-button_1_9_101.js → tttx-button_1_9_103.js} +2 -2
  142. package/dist/components/{tttx-table_1_9_101.d.ts → tttx-chart_1_9_103.d.ts} +4 -4
  143. package/dist/components/{tttx-chart_1_9_101.js → tttx-chart_1_9_103.js} +574 -574
  144. package/dist/components/tttx-checkbox-group-caption_1_9_103.d.ts +11 -0
  145. package/dist/components/{tttx-checkbox-group-caption_1_9_101.js → tttx-checkbox-group-caption_1_9_103.js} +24 -24
  146. package/dist/components/tttx-checkbox-group-heading_1_9_103.d.ts +11 -0
  147. package/dist/components/{tttx-checkbox-group-heading_1_9_101.js → tttx-checkbox-group-heading_1_9_103.js} +24 -24
  148. package/dist/components/tttx-checkbox-group_1_9_103.d.ts +11 -0
  149. package/dist/components/{tttx-checkbox-group_1_9_101.js → tttx-checkbox-group_1_9_103.js} +25 -25
  150. package/dist/components/tttx-checkbox_1_9_103.d.ts +11 -0
  151. package/dist/components/{tttx-checkbox_1_9_101.js → tttx-checkbox_1_9_103.js} +59 -59
  152. package/dist/components/tttx-comments_1_9_103.d.ts +11 -0
  153. package/dist/components/{tttx-comments_1_9_101.js → tttx-comments_1_9_103.js} +241 -241
  154. package/dist/components/tttx-data-pattern_1_9_103.d.ts +11 -0
  155. package/dist/components/{tttx-data-pattern_1_9_101.js → tttx-data-pattern_1_9_103.js} +80 -80
  156. package/dist/components/tttx-datacard_1_9_103.d.ts +11 -0
  157. package/dist/components/{tttx-datacard_1_9_101.js → tttx-datacard_1_9_103.js} +79 -79
  158. package/dist/components/tttx-date-range-picker.js +242 -242
  159. package/dist/components/tttx-dialog-box_1_9_103.d.ts +11 -0
  160. package/dist/components/{tttx-dialog-box_1_9_101.js → tttx-dialog-box_1_9_103.js} +125 -125
  161. package/dist/components/{tttx-filter_1_9_101.d.ts → tttx-dialog_1_9_103.d.ts} +4 -4
  162. package/dist/components/{tttx-dialog_1_9_101.js → tttx-dialog_1_9_103.js} +103 -103
  163. package/dist/components/tttx-expander_1_9_103.d.ts +11 -0
  164. package/dist/components/{tttx-expander_1_9_101.js → tttx-expander_1_9_103.js} +55 -55
  165. package/dist/components/tttx-filter.js +217 -217
  166. package/dist/components/{tttx-button_1_9_101.d.ts → tttx-filter_1_9_103.d.ts} +4 -4
  167. package/dist/components/{tttx-filter_1_9_101.js → tttx-filter_1_9_103.js} +2 -2
  168. package/dist/components/{tttx-form_1_9_101.d.ts → tttx-form_1_9_103.d.ts} +4 -4
  169. package/dist/components/{tttx-form_1_9_101.js → tttx-form_1_9_103.js} +1039 -1039
  170. package/dist/components/tttx-graph.js +143 -143
  171. package/dist/components/{tttx-graph_1_9_101.d.ts → tttx-graph_1_9_103.d.ts} +4 -4
  172. package/dist/components/{tttx-graph_1_9_101.js → tttx-graph_1_9_103.js} +2 -2
  173. package/dist/components/tttx-icon.js +42 -42
  174. package/dist/components/{tttx-list_1_9_101.d.ts → tttx-icon_1_9_103.d.ts} +4 -4
  175. package/dist/components/{tttx-icon_1_9_101.js → tttx-icon_1_9_103.js} +2 -2
  176. package/dist/components/tttx-keyvalue-block_1_9_103.d.ts +11 -0
  177. package/dist/components/{tttx-keyvalue-block_1_9_101.js → tttx-keyvalue-block_1_9_103.js} +83 -83
  178. package/dist/components/tttx-list.js +92 -92
  179. package/dist/components/{tttx-tabs_1_9_101.d.ts → tttx-list_1_9_103.d.ts} +4 -4
  180. package/dist/components/{tttx-list_1_9_101.js → tttx-list_1_9_103.js} +2 -2
  181. package/dist/components/tttx-loading-spinner.js +92 -92
  182. package/dist/components/tttx-loading-spinner_1_9_103.d.ts +11 -0
  183. package/dist/components/{tttx-loading-spinner_1_9_101.js → tttx-loading-spinner_1_9_103.js} +2 -2
  184. package/dist/components/tttx-multiselect-box_1_9_103.d.ts +11 -0
  185. package/dist/components/{tttx-multiselect-box_1_9_101.js → tttx-multiselect-box_1_9_103.js} +231 -231
  186. package/dist/components/tttx-percentage-bar_1_9_103.d.ts +11 -0
  187. package/dist/components/{tttx-percentage-bar_1_9_101.js → tttx-percentage-bar_1_9_103.js} +80 -80
  188. package/dist/components/tttx-qrcode_1_9_103.d.ts +11 -0
  189. package/dist/components/{tttx-qrcode_1_9_101.js → tttx-qrcode_1_9_103.js} +47 -47
  190. package/dist/components/tttx-range-slider_1_9_103.d.ts +11 -0
  191. package/dist/components/{tttx-range-slider_1_9_101.js → tttx-range-slider_1_9_103.js} +208 -208
  192. package/dist/components/tttx-select-box.js +295 -295
  193. package/dist/components/tttx-select-box_1_9_103.d.ts +11 -0
  194. package/dist/components/{tttx-select-box_1_9_101.js → tttx-select-box_1_9_103.js} +2 -2
  195. package/dist/components/tttx-skeleton_loader_1_9_103.d.ts +11 -0
  196. package/dist/components/{tttx-skeleton_loader_1_9_101.js → tttx-skeleton_loader_1_9_103.js} +57 -57
  197. package/dist/components/tttx-sorter.js +136 -136
  198. package/dist/components/tttx-sorter_1_9_103.d.ts +11 -0
  199. package/dist/components/{tttx-sorter_1_9_101.js → tttx-sorter_1_9_103.js} +2 -2
  200. package/dist/components/tttx-standalone-input.js +136 -136
  201. package/dist/components/tttx-standalone-input_1_9_103.d.ts +11 -0
  202. package/dist/components/{tttx-standalone-input_1_9_101.js → tttx-standalone-input_1_9_103.js} +2 -2
  203. package/dist/components/{tttx-chart_1_9_101.d.ts → tttx-table_1_9_103.d.ts} +4 -4
  204. package/dist/components/{tttx-table_1_9_101.js → tttx-table_1_9_103.js} +109 -109
  205. package/dist/components/{tttx-icon_1_9_101.d.ts → tttx-tabs_1_9_103.d.ts} +4 -4
  206. package/dist/components/{tttx-tabs_1_9_101.js → tttx-tabs_1_9_103.js} +128 -128
  207. package/dist/components/{tttx-tag-v2_1_9_101.d.ts → tttx-tag-v2_1_9_103.d.ts} +4 -4
  208. package/dist/components/{tttx-tag-v2_1_9_101.js → tttx-tag-v2_1_9_103.js} +105 -105
  209. package/dist/components/tttx-tag.js +44 -44
  210. package/dist/components/{tttx-tag_1_9_101.d.ts → tttx-tag_1_9_103.d.ts} +4 -4
  211. package/dist/components/{tttx-tag_1_9_101.js → tttx-tag_1_9_103.js} +2 -2
  212. package/dist/components/tttx-textarea_1_9_103.d.ts +11 -0
  213. package/dist/components/{tttx-textarea_1_9_101.js → tttx-textarea_1_9_103.js} +83 -83
  214. package/dist/components/tttx-toggle_1_9_103.d.ts +11 -0
  215. package/dist/components/{tttx-toggle_1_9_101.js → tttx-toggle_1_9_103.js} +49 -49
  216. package/dist/components/tttx-toolbar.js +42 -42
  217. package/dist/components/tttx-toolbar_1_9_103.d.ts +11 -0
  218. package/dist/components/{tttx-toolbar_1_9_101.js → tttx-toolbar_1_9_103.js} +2 -2
  219. package/dist/components/tttx-tooltip_1_9_103.d.ts +11 -0
  220. package/dist/components/{tttx-tooltip_1_9_101.js → tttx-tooltip_1_9_103.js} +114 -114
  221. package/dist/components/tttx-tree-view_1_9_103.d.ts +11 -0
  222. package/dist/components/{tttx-tree-view_1_9_101.js → tttx-tree-view_1_9_103.js} +371 -371
  223. package/dist/esm/{auto-421f2656.js → auto-a07ee1b1.js} +177 -177
  224. package/dist/esm/{domsanitiser.options-38a67458.js → domsanitiser.options-2c1ef894.js} +12 -12
  225. package/dist/esm/loader.js +1 -1
  226. package/dist/esm/polyfills/core-js.js +0 -0
  227. package/dist/esm/polyfills/dom.js +0 -0
  228. package/dist/esm/polyfills/es5-html-element.js +0 -0
  229. package/dist/esm/polyfills/index.js +0 -0
  230. package/dist/esm/polyfills/system.js +0 -0
  231. package/dist/esm/{tttx-action-dropdown_1_9_101.entry.js → tttx-action-dropdown_1_9_103.entry.js} +51 -51
  232. package/dist/esm/{tttx-button-v2_1_9_101.entry.js → tttx-button-v2_1_9_103.entry.js} +147 -147
  233. package/dist/esm/{tttx-button_1_9_101.entry.js → tttx-button_1_9_103.entry.js} +26 -26
  234. package/dist/esm/{tttx-chart_1_9_101.entry.js → tttx-chart_1_9_103.entry.js} +524 -524
  235. package/dist/esm/{tttx-checkbox-group-caption_1_9_101.entry.js → tttx-checkbox-group-caption_1_9_103.entry.js} +9 -9
  236. package/dist/esm/{tttx-checkbox-group-heading_1_9_101.entry.js → tttx-checkbox-group-heading_1_9_103.entry.js} +9 -9
  237. package/dist/esm/{tttx-checkbox-group_1_9_101.entry.js → tttx-checkbox-group_1_9_103.entry.js} +9 -9
  238. package/dist/esm/{tttx-checkbox_1_9_101.entry.js → tttx-checkbox_1_9_103.entry.js} +33 -33
  239. package/dist/esm/{tttx-comments_1_9_101.entry.js → tttx-comments_1_9_103.entry.js} +204 -204
  240. package/dist/esm/{tttx-data-pattern_1_9_101.entry.js → tttx-data-pattern_1_9_103.entry.js} +20 -20
  241. package/dist/esm/{tttx-datacard_1_9_101.entry.js → tttx-datacard_1_9_103.entry.js} +43 -43
  242. package/dist/esm/tttx-date-range-picker.entry.js +212 -212
  243. package/dist/esm/{tttx-dialog-box_1_9_101.entry.js → tttx-dialog-box_1_9_103.entry.js} +94 -94
  244. package/dist/esm/{tttx-dialog_1_9_101.entry.js → tttx-dialog_1_9_103.entry.js} +69 -69
  245. package/dist/esm/{tttx-expander_1_9_101.entry.js → tttx-expander_1_9_103.entry.js} +28 -28
  246. package/dist/esm/{tttx-filter_1_9_101_4.entry.js → tttx-filter_1_9_103_4.entry.js} +383 -383
  247. package/dist/esm/{tttx-form_1_9_101.entry.js → tttx-form_1_9_103.entry.js} +985 -985
  248. package/dist/esm/{tttx-graph_1_9_101.entry.js → tttx-graph_1_9_103.entry.js} +124 -124
  249. package/dist/esm/{tttx-icon_1_9_101.entry.js → tttx-icon_1_9_103.entry.js} +24 -24
  250. package/dist/esm/{tttx-keyvalue-block_1_9_101.entry.js → tttx-keyvalue-block_1_9_103.entry.js} +62 -62
  251. package/dist/esm/{tttx-loading-spinner_1_9_101_3.entry.js → tttx-loading-spinner_1_9_103_3.entry.js} +170 -170
  252. package/dist/esm/{tttx-multiselect-box_1_9_101.entry.js → tttx-multiselect-box_1_9_103.entry.js} +175 -175
  253. package/dist/esm/{tttx-percentage-bar_1_9_101.entry.js → tttx-percentage-bar_1_9_103.entry.js} +56 -56
  254. package/dist/esm/{tttx-qrcode_1_9_101.entry.js → tttx-qrcode_1_9_103.entry.js} +28 -28
  255. package/dist/esm/{tttx-range-slider_1_9_101.entry.js → tttx-range-slider_1_9_103.entry.js} +185 -185
  256. package/dist/esm/{tttx-select-box_1_9_101.entry.js → tttx-select-box_1_9_103.entry.js} +239 -239
  257. package/dist/esm/{tttx-skeleton_loader_1_9_101.entry.js → tttx-skeleton_loader_1_9_103.entry.js} +30 -30
  258. package/dist/esm/{tttx-table_1_9_101.entry.js → tttx-table_1_9_103.entry.js} +72 -72
  259. package/dist/esm/{tttx-tabs_1_9_101.entry.js → tttx-tabs_1_9_103.entry.js} +103 -103
  260. package/dist/esm/{tttx-tag-v2_1_9_101.entry.js → tttx-tag-v2_1_9_103.entry.js} +72 -72
  261. package/dist/esm/{tttx-textarea_1_9_101.entry.js → tttx-textarea_1_9_103.entry.js} +50 -50
  262. package/dist/esm/{tttx-toggle_1_9_101.entry.js → tttx-toggle_1_9_103.entry.js} +30 -30
  263. package/dist/esm/{tttx-tooltip_1_9_101.entry.js → tttx-tooltip_1_9_103.entry.js} +87 -87
  264. package/dist/esm/{tttx-tree-view_1_9_101.entry.js → tttx-tree-view_1_9_103.entry.js} +342 -342
  265. package/dist/esm/tttx.js +1 -1
  266. package/dist/tttx/{p-b3f49d83.entry.js → p-0c5bc253.entry.js} +1 -1
  267. package/dist/tttx/{p-82b4e575.entry.js → p-10d2d044.entry.js} +1 -1
  268. package/dist/tttx/p-1623f3cf.entry.js +1 -1
  269. package/dist/tttx/{p-b161205b.entry.js → p-16aa3f67.entry.js} +1 -1
  270. package/dist/tttx/p-21707b8d.entry.js +1 -1
  271. package/dist/tttx/p-2251ab85.entry.js +1 -1
  272. package/dist/tttx/p-2d19c46c.entry.js +1 -1
  273. package/dist/tttx/p-358eaa44.entry.js +1 -1
  274. package/dist/tttx/p-362999b3.entry.js +1 -1
  275. package/dist/tttx/p-3ec67d75.entry.js +1 -1
  276. package/dist/tttx/p-44f0af69.entry.js +1 -1
  277. package/dist/tttx/p-4664d065.entry.js +1 -1
  278. package/dist/tttx/{p-00a849cf.entry.js → p-486ca932.entry.js} +1 -1
  279. package/dist/tttx/{p-e21e3a9c.entry.js → p-59115c8f.entry.js} +1 -1
  280. package/dist/tttx/p-5d289334.entry.js +1 -1
  281. package/dist/tttx/p-6ec18b4a.entry.js +1 -1
  282. package/dist/tttx/{p-a59ad197.entry.js → p-700c2816.entry.js} +1 -1
  283. package/dist/tttx/p-7b5b0670.entry.js +1 -1
  284. package/dist/tttx/p-7d1712fe.entry.js +1 -1
  285. package/dist/tttx/{p-41b69e01.entry.js → p-8f85ab3e.entry.js} +1 -1
  286. package/dist/tttx/p-a1b8ecda.entry.js +1 -1
  287. package/dist/tttx/p-a43e2c5e.entry.js +1 -1
  288. package/dist/tttx/p-b8cc0cb2.entry.js +1 -1
  289. package/dist/tttx/p-b9003a76.entry.js +1 -1
  290. package/dist/tttx/p-bb59054f.entry.js +1 -1
  291. package/dist/tttx/p-c66bc14c.entry.js +1 -1
  292. package/dist/tttx/p-c8051143.entry.js +1 -1
  293. package/dist/tttx/p-ca93f786.entry.js +1 -1
  294. package/dist/tttx/p-d21b0507.entry.js +1 -1
  295. package/dist/tttx/p-d945d492.entry.js +1 -1
  296. package/dist/tttx/{p-34e0e487.entry.js → p-df708b75.entry.js} +2 -2
  297. package/dist/tttx/p-f0c1380f.entry.js +1 -1
  298. package/dist/tttx/{p-0bb158ce.js → p-f411d1e5.js} +2 -2
  299. package/dist/tttx/{p-d4c4edbd.entry.js → p-fa25ee03.entry.js} +1 -1
  300. package/dist/tttx/{p-41f0bf7f.entry.js → p-fbdd1046.entry.js} +1 -1
  301. package/dist/tttx/tttx.esm.js +1 -1
  302. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +11 -11
  303. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +11 -11
  304. package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.d.ts +36 -36
  305. package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.stories.d.ts +68 -68
  306. package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.d.ts +17 -17
  307. package/dist/types/components/atoms/tttx-datacard/tttx-datacard.d.ts +21 -21
  308. package/dist/types/components/atoms/tttx-datacard/tttx-datacard.stories.d.ts +44 -44
  309. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +9 -9
  310. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +25 -25
  311. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +13 -13
  312. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +11 -11
  313. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +23 -23
  314. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +47 -47
  315. package/dist/types/components/atoms/tttx-percentage-bar/tttx-percentage-bar.d.ts +22 -22
  316. package/dist/types/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.d.ts +10 -10
  317. package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.d.ts +8 -8
  318. package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -23
  319. package/dist/types/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.d.ts +14 -14
  320. package/dist/types/components/atoms/tttx-tag/tttx-tag.d.ts +10 -10
  321. package/dist/types/components/atoms/tttx-tag/tttx-tag.stories.d.ts +51 -51
  322. package/dist/types/components/atoms/tttx-tag-v2/tttx-tag-v2.d.ts +15 -15
  323. package/dist/types/components/atoms/tttx-tag-v2/tttx-tag-v2.stories.d.ts +48 -48
  324. package/dist/types/components/atoms/tttx-toggle/tttx-toggle.d.ts +11 -11
  325. package/dist/types/components/atoms/tttx-toggle/tttx-toggle.stories.d.ts +6 -6
  326. package/dist/types/components/domsanitiser.options.d.ts +10 -10
  327. package/dist/types/components/molecules/tttx-action-dropdown/tttx-action-dropdown.d.ts +21 -21
  328. package/dist/types/components/molecules/tttx-chart/tttx-chart.d.ts +60 -60
  329. package/dist/types/components/molecules/tttx-chart/tttx-chart.stories.d.ts +38 -38
  330. package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.d.ts +3 -3
  331. package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.d.ts +3 -3
  332. package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.d.ts +3 -3
  333. package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.d.ts +15 -15
  334. package/dist/types/components/molecules/tttx-comments/tttx-comments.d.ts +68 -68
  335. package/dist/types/components/molecules/tttx-date-range-picker/tttx-date-range-picker.d.ts +42 -42
  336. package/dist/types/components/molecules/tttx-dialog/icon-types.d.ts +18 -18
  337. package/dist/types/components/molecules/tttx-dialog/tttx-dialog.d.ts +27 -27
  338. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +26 -26
  339. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +24 -24
  340. package/dist/types/components/molecules/tttx-expander/tttx-expander.d.ts +16 -16
  341. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +44 -44
  342. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +14 -14
  343. package/dist/types/components/molecules/tttx-form/lib/timecomparatorChecks.d.ts +4 -4
  344. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +15 -15
  345. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +297 -297
  346. package/dist/types/components/molecules/tttx-graph/gauge-label-plugin.d.ts +4 -4
  347. package/dist/types/components/molecules/tttx-graph/tttx-graph.d.ts +13 -13
  348. package/dist/types/components/molecules/tttx-graph/tttx-graph.stories.d.ts +26 -26
  349. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +23 -23
  350. package/dist/types/components/molecules/tttx-multiselect-box/tttx-multiselect-box.d.ts +50 -50
  351. package/dist/types/components/molecules/tttx-range-slider/tttx-range-slider.d.ts +45 -45
  352. package/dist/types/components/molecules/tttx-range-slider/tttx-range-slider.stories.d.ts +7 -7
  353. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +55 -55
  354. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.stories.d.ts +28 -28
  355. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +21 -21
  356. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
  357. package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +32 -32
  358. package/dist/types/components/molecules/tttx-table/tttx-table.types.d.ts +6 -6
  359. package/dist/types/components/molecules/tttx-tabs/tttx-tabs.d.ts +25 -25
  360. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +42 -42
  361. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.stories.d.ts +89 -89
  362. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +8 -8
  363. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +19 -19
  364. package/dist/types/components/molecules/tttx-tooltip/tttx-tooltip.d.ts +37 -37
  365. package/dist/types/components/molecules/tttx-tooltip/tttx-tootip.stories.d.ts +12 -12
  366. package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +24 -24
  367. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +57 -57
  368. package/dist/types/components/organisms/tttx-data-pattern/tttx-data-pattern.d.ts +11 -11
  369. package/dist/types/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.d.ts +13 -13
  370. package/dist/types/components/palette.stories.d.ts +6 -6
  371. package/dist/types/components.d.ts +451 -451
  372. package/dist/types/icons.d.ts +2 -2
  373. package/dist/types/index.d.ts +1 -1
  374. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  375. package/package.json +1 -1
  376. package/dist/components/tttx-action-dropdown_1_9_101.d.ts +0 -11
  377. package/dist/components/tttx-button-v2_1_9_101.d.ts +0 -11
  378. package/dist/components/tttx-checkbox-group-caption_1_9_101.d.ts +0 -11
  379. package/dist/components/tttx-checkbox-group-heading_1_9_101.d.ts +0 -11
  380. package/dist/components/tttx-checkbox-group_1_9_101.d.ts +0 -11
  381. package/dist/components/tttx-checkbox_1_9_101.d.ts +0 -11
  382. package/dist/components/tttx-comments_1_9_101.d.ts +0 -11
  383. package/dist/components/tttx-data-pattern_1_9_101.d.ts +0 -11
  384. package/dist/components/tttx-datacard_1_9_101.d.ts +0 -11
  385. package/dist/components/tttx-dialog-box_1_9_101.d.ts +0 -11
  386. package/dist/components/tttx-expander_1_9_101.d.ts +0 -11
  387. package/dist/components/tttx-keyvalue-block_1_9_101.d.ts +0 -11
  388. package/dist/components/tttx-loading-spinner_1_9_101.d.ts +0 -11
  389. package/dist/components/tttx-multiselect-box_1_9_101.d.ts +0 -11
  390. package/dist/components/tttx-percentage-bar_1_9_101.d.ts +0 -11
  391. package/dist/components/tttx-qrcode_1_9_101.d.ts +0 -11
  392. package/dist/components/tttx-range-slider_1_9_101.d.ts +0 -11
  393. package/dist/components/tttx-select-box_1_9_101.d.ts +0 -11
  394. package/dist/components/tttx-skeleton_loader_1_9_101.d.ts +0 -11
  395. package/dist/components/tttx-sorter_1_9_101.d.ts +0 -11
  396. package/dist/components/tttx-standalone-input_1_9_101.d.ts +0 -11
  397. package/dist/components/tttx-textarea_1_9_101.d.ts +0 -11
  398. package/dist/components/tttx-toggle_1_9_101.d.ts +0 -11
  399. package/dist/components/tttx-toolbar_1_9_101.d.ts +0 -11
  400. package/dist/components/tttx-tooltip_1_9_101.d.ts +0 -11
  401. package/dist/components/tttx-tree-view_1_9_101.d.ts +0 -11
  402. package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.stories.d.ts +0 -47
  403. package/dist/types/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.stories.d.ts +0 -58
  404. package/dist/types/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.d.ts +0 -36
  405. package/dist/types/components/molecules/tttx-comments/tttx-comments.stories.d.ts +0 -8
  406. package/dist/types/components/molecules/tttx-date-range-picker/tttx-date-range-picker.stories.d.ts +0 -28
  407. package/dist/types/components/molecules/tttx-dialog/tttx-dialog.stories.d.ts +0 -42
  408. package/dist/types/components/molecules/tttx-expander/tttx-expander.stories.d.ts +0 -27
  409. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +0 -76
  410. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -718
  411. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -15
  412. package/dist/types/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.d.ts +0 -17
  413. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +0 -30
  414. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +0 -150
  415. package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +0 -79
  416. package/dist/types/components/molecules/tttx-tabs/tttx-tabs.stories.d.ts +0 -13
  417. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +0 -15
  418. /package/dist/tttx/{p-55799798.js → p-62d92a44.js} +0 -0
@@ -1,402 +1,402 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } from './index-b614efb4.js';
2
- import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-38a67458.js';
2
+ import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-2c1ef894.js';
3
3
  import './_commonjsHelpers-9943807e.js';
4
4
 
5
5
  const tttxFilterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:\"Roboto\", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:\"Roboto\", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:\"Roboto\", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:\"Roboto\", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:\"Roboto\", serif;font-weight:500}";
6
6
 
7
- const TttxFilter = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.filterChangeEvent = createEvent(this, "filterChangeEvent", 7);
11
- this.toggleFilter = createEvent(this, "toggleFilter", 7);
12
- this.filterKey = undefined;
13
- this.filterOptions = [
14
- { optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
15
- { optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
16
- { optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
17
- ];
18
- this.showSelectAll = true;
19
- this.showSearchField = false;
20
- this.showOptionIcons = true;
21
- this.filterButtonStyle = 'list filter';
22
- this.filterHeader = 'Qualification status';
23
- this.defaultFilterOptions = undefined;
24
- this.popoverWidth = '193px';
25
- this.showPopover = false;
26
- this.displayedFilterSettings = undefined;
27
- this.selectedFilters = undefined;
28
- this.filterSearchTerm = '';
29
- this.allSelected = undefined;
30
- }
31
- handleCloseFilter() {
32
- this.showPopover = false;
33
- }
34
- emitFilterEvent() {
35
- this.filterChangeEvent.emit({
36
- selectedFilters: this.selectedFilters,
37
- filterKey: this.filterKey,
38
- allSelected: this.allSelected,
39
- });
40
- }
41
- onFilterButtonClick() {
42
- this.togglePopover();
43
- }
44
- onCloseButtonClick() {
45
- this.togglePopover();
46
- }
47
- onApplyFilterButtonClick() {
48
- this.emitFilterEvent();
49
- this.togglePopover();
50
- }
51
- onFilterOptionSelected(selectedOption) {
52
- this.allSelected = false;
53
- if (this.selectedFilters.includes(selectedOption)) {
54
- this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
55
- }
56
- else {
57
- this.selectedFilters = [...this.selectedFilters, selectedOption];
58
- }
59
- }
60
- componentWillLoad() {
61
- this.displayedFilterSettings = this.parseFilterOptions();
62
- if (this.defaultFilterOptions !== undefined) {
63
- const parsedDefaultFilterOptions = this.parseDefaultFilterOptions();
64
- this.selectedFilters = parsedDefaultFilterOptions;
65
- let allSelected = true;
66
- this.parseFilterOptions().map(filterOption => {
67
- if (!this.selectedFilters.includes(filterOption.optionText)) {
68
- allSelected = false;
69
- }
70
- });
71
- this.allSelected = allSelected;
72
- }
73
- else {
74
- this.allSelected = true;
75
- this.selectedFilters = this.displayedFilterSettings.map((filterOption) => filterOption.optionText);
76
- }
77
- }
78
- togglePopover() {
79
- this.showPopover = !this.showPopover;
80
- this.toggleFilter.emit(this.showPopover);
81
- // if(!this.showPopover) {
82
- // // this._focussedElementIndex = -1;
83
- // }
84
- }
85
- // Commented out keyboard interaction for now
86
- // @Listen('keyup')
87
- // handleKeyUp(event: KeyboardEvent) {
88
- // const keyboardEventValue = event.key;
89
- // if (document.activeElement.id != `filter__${this.filterKey}`) return;
90
- // if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
91
- // if (this._focussedElementIndex == 0) {
92
- // this.onSelectAllClick()
93
- // } else {
94
- // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
95
- // this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
96
- // }
97
- // return;
98
- // }
99
- // switch (keyboardEventValue) {
100
- // case 'Enter':
101
- // if(!this.showPopover) {
102
- // this.showPopover=true
103
- // } else {
104
- // this.emitFilterEvent()
105
- // }
106
- // break;
107
- // case 'Escape':
108
- // this.showPopover = false;
109
- // this._focussedElementIndex = -1;
110
- // break;
111
- // case 'ArrowDown':
112
- // this.showPopover = true;
113
- // if (this._focussedElementIndex == -1) {
114
- // this._focussedElementIndex = 0;
115
- // } else {
116
- // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
117
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
118
- // currentOption.blur();
119
- // // options[this._focussedElementIndex].focus();
120
- // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
121
- // }
122
- // break;
123
- // case 'ArrowUp':
124
- // if (this._focussedElementIndex == -1) {
125
- // this.showPopover = true;
126
- // this._focussedElementIndex = 0;
127
- // } else {
128
- // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
129
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
130
- // currentOption.blur();
131
- // // options[this._focussedElementIndex].focus();
132
- // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
133
- // }
134
- // break;
135
- // }
136
- // }
137
- handleFilterChange(event) {
138
- const target = event.target;
139
- this.filterSearchTerm = target.value;
140
- const filteredResults = this.parseFilterOptions().filter((filterOption) => {
141
- const lowercaseOption = filterOption.optionText.toLowerCase();
142
- const filterTerm = this.filterSearchTerm.toLowerCase();
143
- return lowercaseOption.includes(filterTerm);
144
- });
145
- this.displayedFilterSettings = filteredResults;
146
- }
147
- onSelectAllClick() {
148
- this.allSelected = !this.allSelected;
149
- if (this.allSelected) {
150
- this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
151
- }
152
- else {
153
- this.selectedFilters = [];
154
- }
155
- }
156
- getFilterButtonClassName(buttonStyle) {
157
- switch (buttonStyle) {
158
- case 'table icon': {
159
- return '--table-icon';
160
- }
161
- case 'list icon': {
162
- return '--list-icon';
163
- }
164
- default: {
165
- return '';
166
- }
167
- }
168
- }
169
- parseFilterOptions() {
170
- return typeof this.filterOptions === 'string' ? JSON.parse(this.filterOptions) : this.filterOptions;
171
- }
172
- parseDefaultFilterOptions() {
173
- return typeof this.defaultFilterOptions === 'string' ? JSON.parse(this.defaultFilterOptions) : this.defaultFilterOptions;
174
- }
175
- render() {
176
- const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
177
- const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
178
- const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
179
- const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
180
- const filterKey = `filter__${this.filterKey}`;
181
- return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-icon_1_9_101", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}`, style: { width: this.popoverWidth } }, h("div", { class: 'filter-header' }, this.filterHeader), this.showSearchField ? (h("div", { class: 'search-field-container' }, h("tttx-icon_1_9_101", { icon: 'search', class: 'search-icon' }), h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }))) : (''), h("div", { class: 'filter-options-container' }, this.showSelectAll ? (h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, h("tttx-icon_1_9_101", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
182
- const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
183
- const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
184
- return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon_1_9_101", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon_1_9_101", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
185
- })), h("div", { class: 'filter-popover-button-container' }, h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
186
- }
187
- get el() { return getElement(this); }
188
- };
7
+ const TttxFilter = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.filterChangeEvent = createEvent(this, "filterChangeEvent", 7);
11
+ this.toggleFilter = createEvent(this, "toggleFilter", 7);
12
+ this.filterKey = undefined;
13
+ this.filterOptions = [
14
+ { optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
15
+ { optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
16
+ { optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
17
+ ];
18
+ this.showSelectAll = true;
19
+ this.showSearchField = false;
20
+ this.showOptionIcons = true;
21
+ this.filterButtonStyle = 'list filter';
22
+ this.filterHeader = 'Qualification status';
23
+ this.defaultFilterOptions = undefined;
24
+ this.popoverWidth = '193px';
25
+ this.showPopover = false;
26
+ this.displayedFilterSettings = undefined;
27
+ this.selectedFilters = undefined;
28
+ this.filterSearchTerm = '';
29
+ this.allSelected = undefined;
30
+ }
31
+ handleCloseFilter() {
32
+ this.showPopover = false;
33
+ }
34
+ emitFilterEvent() {
35
+ this.filterChangeEvent.emit({
36
+ selectedFilters: this.selectedFilters,
37
+ filterKey: this.filterKey,
38
+ allSelected: this.allSelected,
39
+ });
40
+ }
41
+ onFilterButtonClick() {
42
+ this.togglePopover();
43
+ }
44
+ onCloseButtonClick() {
45
+ this.togglePopover();
46
+ }
47
+ onApplyFilterButtonClick() {
48
+ this.emitFilterEvent();
49
+ this.togglePopover();
50
+ }
51
+ onFilterOptionSelected(selectedOption) {
52
+ this.allSelected = false;
53
+ if (this.selectedFilters.includes(selectedOption)) {
54
+ this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
55
+ }
56
+ else {
57
+ this.selectedFilters = [...this.selectedFilters, selectedOption];
58
+ }
59
+ }
60
+ componentWillLoad() {
61
+ this.displayedFilterSettings = this.parseFilterOptions();
62
+ if (this.defaultFilterOptions !== undefined) {
63
+ const parsedDefaultFilterOptions = this.parseDefaultFilterOptions();
64
+ this.selectedFilters = parsedDefaultFilterOptions;
65
+ let allSelected = true;
66
+ this.parseFilterOptions().map(filterOption => {
67
+ if (!this.selectedFilters.includes(filterOption.optionText)) {
68
+ allSelected = false;
69
+ }
70
+ });
71
+ this.allSelected = allSelected;
72
+ }
73
+ else {
74
+ this.allSelected = true;
75
+ this.selectedFilters = this.displayedFilterSettings.map((filterOption) => filterOption.optionText);
76
+ }
77
+ }
78
+ togglePopover() {
79
+ this.showPopover = !this.showPopover;
80
+ this.toggleFilter.emit(this.showPopover);
81
+ // if(!this.showPopover) {
82
+ // // this._focussedElementIndex = -1;
83
+ // }
84
+ }
85
+ // Commented out keyboard interaction for now
86
+ // @Listen('keyup')
87
+ // handleKeyUp(event: KeyboardEvent) {
88
+ // const keyboardEventValue = event.key;
89
+ // if (document.activeElement.id != `filter__${this.filterKey}`) return;
90
+ // if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
91
+ // if (this._focussedElementIndex == 0) {
92
+ // this.onSelectAllClick()
93
+ // } else {
94
+ // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
95
+ // this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
96
+ // }
97
+ // return;
98
+ // }
99
+ // switch (keyboardEventValue) {
100
+ // case 'Enter':
101
+ // if(!this.showPopover) {
102
+ // this.showPopover=true
103
+ // } else {
104
+ // this.emitFilterEvent()
105
+ // }
106
+ // break;
107
+ // case 'Escape':
108
+ // this.showPopover = false;
109
+ // this._focussedElementIndex = -1;
110
+ // break;
111
+ // case 'ArrowDown':
112
+ // this.showPopover = true;
113
+ // if (this._focussedElementIndex == -1) {
114
+ // this._focussedElementIndex = 0;
115
+ // } else {
116
+ // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
117
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
118
+ // currentOption.blur();
119
+ // // options[this._focussedElementIndex].focus();
120
+ // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
121
+ // }
122
+ // break;
123
+ // case 'ArrowUp':
124
+ // if (this._focussedElementIndex == -1) {
125
+ // this.showPopover = true;
126
+ // this._focussedElementIndex = 0;
127
+ // } else {
128
+ // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
129
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
130
+ // currentOption.blur();
131
+ // // options[this._focussedElementIndex].focus();
132
+ // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
133
+ // }
134
+ // break;
135
+ // }
136
+ // }
137
+ handleFilterChange(event) {
138
+ const target = event.target;
139
+ this.filterSearchTerm = target.value;
140
+ const filteredResults = this.parseFilterOptions().filter((filterOption) => {
141
+ const lowercaseOption = filterOption.optionText.toLowerCase();
142
+ const filterTerm = this.filterSearchTerm.toLowerCase();
143
+ return lowercaseOption.includes(filterTerm);
144
+ });
145
+ this.displayedFilterSettings = filteredResults;
146
+ }
147
+ onSelectAllClick() {
148
+ this.allSelected = !this.allSelected;
149
+ if (this.allSelected) {
150
+ this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
151
+ }
152
+ else {
153
+ this.selectedFilters = [];
154
+ }
155
+ }
156
+ getFilterButtonClassName(buttonStyle) {
157
+ switch (buttonStyle) {
158
+ case 'table icon': {
159
+ return '--table-icon';
160
+ }
161
+ case 'list icon': {
162
+ return '--list-icon';
163
+ }
164
+ default: {
165
+ return '';
166
+ }
167
+ }
168
+ }
169
+ parseFilterOptions() {
170
+ return typeof this.filterOptions === 'string' ? JSON.parse(this.filterOptions) : this.filterOptions;
171
+ }
172
+ parseDefaultFilterOptions() {
173
+ return typeof this.defaultFilterOptions === 'string' ? JSON.parse(this.defaultFilterOptions) : this.defaultFilterOptions;
174
+ }
175
+ render() {
176
+ const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
177
+ const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
178
+ const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
179
+ const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
180
+ const filterKey = `filter__${this.filterKey}`;
181
+ return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-icon_1_9_103", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}`, style: { width: this.popoverWidth } }, h("div", { class: 'filter-header' }, this.filterHeader), this.showSearchField ? (h("div", { class: 'search-field-container' }, h("tttx-icon_1_9_103", { icon: 'search', class: 'search-icon' }), h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }))) : (''), h("div", { class: 'filter-options-container' }, this.showSelectAll ? (h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, h("tttx-icon_1_9_103", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
182
+ const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
183
+ const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
184
+ return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon_1_9_103", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon_1_9_103", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
185
+ })), h("div", { class: 'filter-popover-button-container' }, h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
186
+ }
187
+ get el() { return getElement(this); }
188
+ };
189
189
  TttxFilter.style = tttxFilterCss;
190
190
 
191
191
  const tttxListCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start;width:100%}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;box-sizing:border-box;width:100%}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;width:100%;min-height:36px}.checkbox{padding:6px;margin-left:-8px}";
192
192
 
193
- const TttxList = class {
194
- constructor(hostRef) {
195
- registerInstance(this, hostRef);
196
- this.rowClick = createEvent(this, "listRowClick", 7);
197
- this.rowCheckboxClick = createEvent(this, "listRowCheckboxClick", 7);
198
- this.data = undefined;
199
- this._data = undefined;
200
- this.name = undefined;
201
- }
202
- onDataChange() {
203
- if (!this.data) {
204
- return;
205
- }
206
- if (typeof this.data === 'string') {
207
- this._data = JSON.parse(this.data);
208
- }
209
- else {
210
- this._data = [...this.data];
211
- }
212
- for (const data of this._data) {
213
- if (data.hasCheckbox && data.checked === undefined) {
214
- data.checked = false;
215
- }
216
- }
217
- }
218
- componentWillLoad() {
219
- // dynamic constructor: any props can be added later
220
- this.onDataChange();
221
- }
222
- onRowCheckboxHandler(event, item) {
223
- event.stopPropagation();
224
- if (!item.rowData)
225
- return;
226
- this.rowCheckboxClick.emit({ key: item.key, name: this.name, data: item.rowData });
227
- }
228
- onRowClickHandler(item) {
229
- if ((!item.clickable && !item.toggleable) || !item.rowData)
230
- return;
231
- this.rowClick.emit({ key: item.key, name: this.name, data: item.rowData });
232
- }
233
- renderListItem(item) {
234
- let element;
235
- if (typeof item.element === 'string') {
236
- const cleanHTML = purify.sanitize(item.element, domSanitiserOptions);
237
- element = h("span", { class: "item-content", innerHTML: cleanHTML });
238
- }
239
- else {
240
- element = h("span", { class: "item-content" }, item.element);
241
- }
242
- return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_9_101", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
243
- this.onRowCheckboxHandler(event, item);
244
- } }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_9_101", { class: "align-right", icon: item.icon, color: 'black' })))));
245
- }
246
- render() {
247
- if (!this._data)
248
- return;
249
- return (h("ul", { class: "list" }, this._data.map((item) => (h("li", { key: item.key, class: 'item' +
250
- (item.clickable ? ' clickable' : '') +
251
- (item.toggleable ? ' toggleable' : '') +
252
- (item.checked ? ' selected' : '') +
253
- (item.active ? ' active' : ''), onClick: () => {
254
- this.onRowClickHandler(item);
255
- } }, this.renderListItem(item))))));
256
- }
257
- static get watchers() { return {
258
- "data": ["onDataChange"]
259
- }; }
260
- };
193
+ const TttxList = class {
194
+ constructor(hostRef) {
195
+ registerInstance(this, hostRef);
196
+ this.rowClick = createEvent(this, "listRowClick", 7);
197
+ this.rowCheckboxClick = createEvent(this, "listRowCheckboxClick", 7);
198
+ this.data = undefined;
199
+ this._data = undefined;
200
+ this.name = undefined;
201
+ }
202
+ onDataChange() {
203
+ if (!this.data) {
204
+ return;
205
+ }
206
+ if (typeof this.data === 'string') {
207
+ this._data = JSON.parse(this.data);
208
+ }
209
+ else {
210
+ this._data = [...this.data];
211
+ }
212
+ for (const data of this._data) {
213
+ if (data.hasCheckbox && data.checked === undefined) {
214
+ data.checked = false;
215
+ }
216
+ }
217
+ }
218
+ componentWillLoad() {
219
+ // dynamic constructor: any props can be added later
220
+ this.onDataChange();
221
+ }
222
+ onRowCheckboxHandler(event, item) {
223
+ event.stopPropagation();
224
+ if (!item.rowData)
225
+ return;
226
+ this.rowCheckboxClick.emit({ key: item.key, name: this.name, data: item.rowData });
227
+ }
228
+ onRowClickHandler(item) {
229
+ if ((!item.clickable && !item.toggleable) || !item.rowData)
230
+ return;
231
+ this.rowClick.emit({ key: item.key, name: this.name, data: item.rowData });
232
+ }
233
+ renderListItem(item) {
234
+ let element;
235
+ if (typeof item.element === 'string') {
236
+ const cleanHTML = purify.sanitize(item.element, domSanitiserOptions);
237
+ element = h("span", { class: "item-content", innerHTML: cleanHTML });
238
+ }
239
+ else {
240
+ element = h("span", { class: "item-content" }, item.element);
241
+ }
242
+ return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_9_103", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
243
+ this.onRowCheckboxHandler(event, item);
244
+ } }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_9_103", { class: "align-right", icon: item.icon, color: 'black' })))));
245
+ }
246
+ render() {
247
+ if (!this._data)
248
+ return;
249
+ return (h("ul", { class: "list" }, this._data.map((item) => (h("li", { key: item.key, class: 'item' +
250
+ (item.clickable ? ' clickable' : '') +
251
+ (item.toggleable ? ' toggleable' : '') +
252
+ (item.checked ? ' selected' : '') +
253
+ (item.active ? ' active' : ''), onClick: () => {
254
+ this.onRowClickHandler(item);
255
+ } }, this.renderListItem(item))))));
256
+ }
257
+ static get watchers() { return {
258
+ "data": ["onDataChange"]
259
+ }; }
260
+ };
261
261
  TttxList.style = tttxListCss;
262
262
 
263
263
  const tttxSorterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}";
264
264
 
265
- const TttxSorter = class {
266
- constructor(hostRef) {
267
- registerInstance(this, hostRef);
268
- this.sorterChangeEvent = createEvent(this, "sorterChangeEvent", 7);
269
- this.toggleSorter = createEvent(this, "toggleSorter", 7);
270
- this.sorterKey = undefined;
271
- this.defaultSortDirection = 'descending';
272
- this.fieldOptionsData = null;
273
- this.defaultOption = '';
274
- this.selectedField = this.defaultOption;
275
- this.sortDirection = this.defaultSortDirection;
276
- this.dropdownExpand = false;
277
- this.dropdownOptions = undefined;
278
- }
279
- handleCloseSorter() {
280
- this.dropdownExpand = false;
281
- }
282
- emitSortEvent() {
283
- this.sorterChangeEvent.emit({
284
- sorterDirection: this.sortDirection,
285
- sorterKey: this.sorterKey,
286
- sortField: this.selectedField,
287
- });
288
- }
289
- onSortToggleClick(event) {
290
- event.preventDefault();
291
- if (this.sortDirection == 'ascending') {
292
- this.sortDirection = 'descending';
293
- }
294
- else {
295
- this.sortDirection = 'ascending';
296
- }
297
- this.emitSortEvent();
298
- }
299
- onDropdownClicked() {
300
- this.dropdownExpand = !this.dropdownExpand;
301
- this.toggleSorter.emit(this.dropdownExpand);
302
- }
303
- onDropdownSelected(event) {
304
- this.dropdownExpand = false;
305
- const target = event.target;
306
- this.selectedField = target.innerHTML;
307
- this.emitSortEvent();
308
- this.toggleSorter.emit(this.dropdownExpand);
309
- }
310
- // getOptionsList() {
311
- // return this.el.shadowRoot.querySelectorAll('.dropdown-option');
312
- // }
313
- // /* istanbul ignore next */
314
- // @Listen('keyup')
315
- // handleKeyDown(ev: KeyboardEvent) {
316
- // const keyboardEventValue = ev.key;
317
- // if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
318
- // switch (keyboardEventValue) {
319
- // case 'Enter':
320
- // if (this._focussedElementIndex > -1) {
321
- // const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
322
- // this.selectedField = options[this._focussedElementIndex].innerHTML;
323
- // this.emitSortEvent();
324
- // }
325
- // this.dropdownExpand = false;
326
- // break;
327
- // case 'Escape':
328
- // this.dropdownExpand = false;
329
- // break;
330
- // case 'ArrowDown':
331
- // this.dropdownExpand = true;
332
- // if (this._focussedElementIndex > -1) {
333
- // const options = this.getOptionsList();
334
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
335
- // currentOption.blur();
336
- // options[this._focussedElementIndex].focus();
337
- // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
338
- // } else {
339
- // this._focussedElementIndex++;
340
- // }
341
- // break;
342
- // case 'ArrowUp':
343
- // this.dropdownExpand = true;
344
- // if (this._focussedElementIndex == -1) {
345
- // const options = this.getOptionsList();
346
- // this._focussedElementIndex = options.length - 1;
347
- // } else {
348
- // const options = this.getOptionsList();
349
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
350
- // currentOption.blur();
351
- // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
352
- // options[this._focussedElementIndex].focus();
353
- // }
354
- // break;
355
- // }
356
- // }
357
- render() {
358
- const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
359
- if (!this.fieldOptionsData)
360
- return;
361
- const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
362
- const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
363
- const selectedOption = this.selectedField;
364
- const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
365
- const sorterKey = `sorter__${this.sorterKey}`;
366
- return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon_1_9_101", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_101", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
367
- return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
368
- }))))));
369
- }
370
- get el() { return getElement(this); }
371
- };
265
+ const TttxSorter = class {
266
+ constructor(hostRef) {
267
+ registerInstance(this, hostRef);
268
+ this.sorterChangeEvent = createEvent(this, "sorterChangeEvent", 7);
269
+ this.toggleSorter = createEvent(this, "toggleSorter", 7);
270
+ this.sorterKey = undefined;
271
+ this.defaultSortDirection = 'descending';
272
+ this.fieldOptionsData = null;
273
+ this.defaultOption = '';
274
+ this.selectedField = this.defaultOption;
275
+ this.sortDirection = this.defaultSortDirection;
276
+ this.dropdownExpand = false;
277
+ this.dropdownOptions = undefined;
278
+ }
279
+ handleCloseSorter() {
280
+ this.dropdownExpand = false;
281
+ }
282
+ emitSortEvent() {
283
+ this.sorterChangeEvent.emit({
284
+ sorterDirection: this.sortDirection,
285
+ sorterKey: this.sorterKey,
286
+ sortField: this.selectedField,
287
+ });
288
+ }
289
+ onSortToggleClick(event) {
290
+ event.preventDefault();
291
+ if (this.sortDirection == 'ascending') {
292
+ this.sortDirection = 'descending';
293
+ }
294
+ else {
295
+ this.sortDirection = 'ascending';
296
+ }
297
+ this.emitSortEvent();
298
+ }
299
+ onDropdownClicked() {
300
+ this.dropdownExpand = !this.dropdownExpand;
301
+ this.toggleSorter.emit(this.dropdownExpand);
302
+ }
303
+ onDropdownSelected(event) {
304
+ this.dropdownExpand = false;
305
+ const target = event.target;
306
+ this.selectedField = target.innerHTML;
307
+ this.emitSortEvent();
308
+ this.toggleSorter.emit(this.dropdownExpand);
309
+ }
310
+ // getOptionsList() {
311
+ // return this.el.shadowRoot.querySelectorAll('.dropdown-option');
312
+ // }
313
+ // /* istanbul ignore next */
314
+ // @Listen('keyup')
315
+ // handleKeyDown(ev: KeyboardEvent) {
316
+ // const keyboardEventValue = ev.key;
317
+ // if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
318
+ // switch (keyboardEventValue) {
319
+ // case 'Enter':
320
+ // if (this._focussedElementIndex > -1) {
321
+ // const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
322
+ // this.selectedField = options[this._focussedElementIndex].innerHTML;
323
+ // this.emitSortEvent();
324
+ // }
325
+ // this.dropdownExpand = false;
326
+ // break;
327
+ // case 'Escape':
328
+ // this.dropdownExpand = false;
329
+ // break;
330
+ // case 'ArrowDown':
331
+ // this.dropdownExpand = true;
332
+ // if (this._focussedElementIndex > -1) {
333
+ // const options = this.getOptionsList();
334
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
335
+ // currentOption.blur();
336
+ // options[this._focussedElementIndex].focus();
337
+ // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
338
+ // } else {
339
+ // this._focussedElementIndex++;
340
+ // }
341
+ // break;
342
+ // case 'ArrowUp':
343
+ // this.dropdownExpand = true;
344
+ // if (this._focussedElementIndex == -1) {
345
+ // const options = this.getOptionsList();
346
+ // this._focussedElementIndex = options.length - 1;
347
+ // } else {
348
+ // const options = this.getOptionsList();
349
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
350
+ // currentOption.blur();
351
+ // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
352
+ // options[this._focussedElementIndex].focus();
353
+ // }
354
+ // break;
355
+ // }
356
+ // }
357
+ render() {
358
+ const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
359
+ if (!this.fieldOptionsData)
360
+ return;
361
+ const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
362
+ const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
363
+ const selectedOption = this.selectedField;
364
+ const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
365
+ const sorterKey = `sorter__${this.sorterKey}`;
366
+ return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon_1_9_103", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_103", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
367
+ return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
368
+ }))))));
369
+ }
370
+ get el() { return getElement(this); }
371
+ };
372
372
  TttxSorter.style = tttxSorterCss;
373
373
 
374
374
  const tttxToolbarCss = ".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";
375
375
 
376
- const TttxToolbar = class {
377
- constructor(hostRef) {
378
- registerInstance(this, hostRef);
379
- this.border = true;
380
- this.viewSize = undefined;
381
- }
382
- handleResize() {
383
- this.setViewSize();
384
- }
385
- async componentWillLoad() {
386
- this.setViewSize();
387
- }
388
- setViewSize() {
389
- if (window.innerWidth < 698) {
390
- this.viewSize = 'mobile';
391
- }
392
- else {
393
- this.viewSize = 'desktop';
394
- }
395
- }
396
- render() {
397
- return (h(Host, null, h("div", { class: `container ${this.border ? 'bordered' : ''} ${this.viewSize}` }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' }))));
398
- }
399
- };
376
+ const TttxToolbar = class {
377
+ constructor(hostRef) {
378
+ registerInstance(this, hostRef);
379
+ this.border = true;
380
+ this.viewSize = undefined;
381
+ }
382
+ handleResize() {
383
+ this.setViewSize();
384
+ }
385
+ async componentWillLoad() {
386
+ this.setViewSize();
387
+ }
388
+ setViewSize() {
389
+ if (window.innerWidth < 698) {
390
+ this.viewSize = 'mobile';
391
+ }
392
+ else {
393
+ this.viewSize = 'desktop';
394
+ }
395
+ }
396
+ render() {
397
+ return (h(Host, null, h("div", { class: `container ${this.border ? 'bordered' : ''} ${this.viewSize}` }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' }))));
398
+ }
399
+ };
400
400
  TttxToolbar.style = tttxToolbarCss;
401
401
 
402
- export { TttxFilter as tttx_filter_1_9_101, TttxList as tttx_list_1_9_101, TttxSorter as tttx_sorter_1_9_101, TttxToolbar as tttx_toolbar_1_9_101 };
402
+ export { TttxFilter as tttx_filter_1_9_103, TttxList as tttx_list_1_9_103, TttxSorter as tttx_sorter_1_9_103, TttxToolbar as tttx_toolbar_1_9_103 };