@3t-transform/threeteeui 1.9.67 → 1.9.69

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 (301) hide show
  1. package/dist/cjs/{auto-1fd7408f.js → auto-ac58fa98.js} +243 -80
  2. package/dist/cjs/{index-1249dc08.js → index-3fc38d11.js} +8 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{tttx-action-dropdown_1_9_67.cjs.entry.js → tttx-action-dropdown_1_9_69.cjs.entry.js} +3 -3
  5. package/dist/cjs/{tttx-button-v2_1_9_67.cjs.entry.js → tttx-button-v2_1_9_69.cjs.entry.js} +5 -5
  6. package/dist/cjs/{tttx-button_1_9_67.cjs.entry.js → tttx-button_1_9_69.cjs.entry.js} +3 -3
  7. package/dist/cjs/{tttx-chart_1_9_67.cjs.entry.js → tttx-chart_1_9_69.cjs.entry.js} +45 -11
  8. package/dist/cjs/{tttx-checkbox-group-caption_1_9_67.cjs.entry.js → tttx-checkbox-group-caption_1_9_69.cjs.entry.js} +2 -2
  9. package/dist/cjs/{tttx-checkbox-group-heading_1_9_67.cjs.entry.js → tttx-checkbox-group-heading_1_9_69.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-checkbox-group_1_9_67.cjs.entry.js → tttx-checkbox-group_1_9_69.cjs.entry.js} +2 -2
  11. package/dist/cjs/{tttx-checkbox_1_9_67.cjs.entry.js → tttx-checkbox_1_9_69.cjs.entry.js} +3 -3
  12. package/dist/cjs/{tttx-comments_1_9_67.cjs.entry.js → tttx-comments_1_9_69.cjs.entry.js} +5 -5
  13. package/dist/cjs/{tttx-data-pattern_1_9_67.cjs.entry.js → tttx-data-pattern_1_9_69.cjs.entry.js} +6 -6
  14. package/dist/cjs/{tttx-datacard_1_9_67.cjs.entry.js → tttx-datacard_1_9_69.cjs.entry.js} +5 -5
  15. package/dist/cjs/tttx-date-range-picker.cjs.entry.js +2 -2
  16. package/dist/cjs/{tttx-dialog-box_1_9_67.cjs.entry.js → tttx-dialog-box_1_9_69.cjs.entry.js} +4 -4
  17. package/dist/cjs/{tttx-dialog_1_9_67.cjs.entry.js → tttx-dialog_1_9_69.cjs.entry.js} +3 -3
  18. package/dist/cjs/{tttx-expander_1_9_67.cjs.entry.js → tttx-expander_1_9_69.cjs.entry.js} +3 -3
  19. package/dist/cjs/{tttx-filter_1_9_67_4.cjs.entry.js → tttx-filter_1_9_69_4.cjs.entry.js} +10 -10
  20. package/dist/cjs/{tttx-form_1_9_67.cjs.entry.js → tttx-form_1_9_69.cjs.entry.js} +3 -3
  21. package/dist/cjs/{tttx-graph_1_9_67.cjs.entry.js → tttx-graph_1_9_69.cjs.entry.js} +3 -3
  22. package/dist/cjs/{tttx-icon_1_9_67.cjs.entry.js → tttx-icon_1_9_69.cjs.entry.js} +2 -2
  23. package/dist/cjs/{tttx-keyvalue-block_1_9_67.cjs.entry.js → tttx-keyvalue-block_1_9_69.cjs.entry.js} +2 -2
  24. package/dist/cjs/{tttx-loading-spinner_1_9_67_3.cjs.entry.js → tttx-loading-spinner_1_9_69_3.cjs.entry.js} +7 -7
  25. package/dist/cjs/{tttx-multiselect-box_1_9_67.cjs.entry.js → tttx-multiselect-box_1_9_69.cjs.entry.js} +8 -8
  26. package/dist/cjs/{tttx-percentage-bar_1_9_67.cjs.entry.js → tttx-percentage-bar_1_9_69.cjs.entry.js} +3 -3
  27. package/dist/cjs/{tttx-qrcode_1_9_67.cjs.entry.js → tttx-qrcode_1_9_69.cjs.entry.js} +2 -2
  28. package/dist/cjs/{tttx-select-box_1_9_67.cjs.entry.js → tttx-select-box_1_9_69.cjs.entry.js} +7 -7
  29. package/dist/cjs/{tttx-skeleton_loader_1_9_67.cjs.entry.js → tttx-skeleton_loader_1_9_69.cjs.entry.js} +2 -2
  30. package/dist/cjs/{tttx-table_1_9_67.cjs.entry.js → tttx-table_1_9_69.cjs.entry.js} +2 -2
  31. package/dist/cjs/{tttx-tabs_1_9_67.cjs.entry.js → tttx-tabs_1_9_69.cjs.entry.js} +5 -5
  32. package/dist/cjs/{tttx-textarea_1_9_67.cjs.entry.js → tttx-textarea_1_9_69.cjs.entry.js} +3 -3
  33. package/dist/cjs/{tttx-toggle_1_9_67.cjs.entry.js → tttx-toggle_1_9_69.cjs.entry.js} +2 -2
  34. package/dist/cjs/tttx-tooltip_1_9_69.cjs.entry.js +61 -0
  35. package/dist/cjs/{tttx-tree-view_1_9_67.cjs.entry.js → tttx-tree-view_1_9_69.cjs.entry.js} +4 -4
  36. package/dist/cjs/tttx.cjs.js +2 -2
  37. package/dist/collection/collection-manifest.json +1 -0
  38. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  39. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +24 -24
  40. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.css +1 -1
  41. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +3 -3
  42. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +15 -15
  43. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  44. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  45. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  46. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  47. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  48. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  49. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  50. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  51. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  52. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +2 -2
  53. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  54. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  55. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  56. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  57. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +1 -1
  58. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
  59. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  60. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  61. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  62. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +2 -2
  63. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +1 -1
  64. package/dist/collection/components/molecules/tttx-chart/tttx-chart.css +2 -0
  65. package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +61 -9
  66. package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +12 -10
  67. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  68. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  69. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  70. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  71. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +4 -4
  72. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +4 -4
  73. package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.js +1 -1
  74. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  75. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  76. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  77. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  78. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  79. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  80. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  81. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  82. package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -2
  83. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +8 -8
  84. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  85. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  86. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  87. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  88. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +7 -7
  89. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
  90. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
  91. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
  92. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  93. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  94. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  95. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  96. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  97. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  98. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  99. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  100. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  101. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  102. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  103. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  104. package/dist/collection/components/molecules/tttx-tooltip/tttx-tooltip.css +88 -0
  105. package/dist/collection/components/molecules/tttx-tooltip/tttx-tooltip.js +180 -0
  106. package/dist/collection/components/molecules/tttx-tooltip/tttx-tootip.stories.js +39 -0
  107. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  108. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +1 -1
  109. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  110. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  111. package/dist/components/auto.js +243 -80
  112. package/dist/components/index.d.ts +36 -35
  113. package/dist/components/index.js +36 -35
  114. package/dist/components/tttx-action-dropdown_1_9_69.d.ts +11 -0
  115. package/dist/components/{tttx-action-dropdown_1_9_67.js → tttx-action-dropdown_1_9_69.js} +7 -7
  116. package/dist/components/{tttx-checkbox_1_9_67.d.ts → tttx-button-v2_1_9_69.d.ts} +4 -4
  117. package/dist/components/{tttx-button-v2_1_9_67.js → tttx-button-v2_1_9_69.js} +9 -9
  118. package/dist/components/tttx-button.js +5 -5
  119. package/dist/components/{tttx-dialog_1_9_67.d.ts → tttx-button_1_9_69.d.ts} +4 -4
  120. package/dist/components/{tttx-button_1_9_67.js → tttx-button_1_9_69.js} +2 -2
  121. package/dist/components/{tttx-table_1_9_67.d.ts → tttx-chart_1_9_69.d.ts} +4 -4
  122. package/dist/components/{tttx-chart_1_9_67.js → tttx-chart_1_9_69.js} +51 -16
  123. package/dist/components/tttx-checkbox-group-caption_1_9_69.d.ts +11 -0
  124. package/dist/components/{tttx-checkbox-group-caption_1_9_67.js → tttx-checkbox-group-caption_1_9_69.js} +5 -5
  125. package/dist/components/tttx-checkbox-group-heading_1_9_69.d.ts +11 -0
  126. package/dist/components/{tttx-checkbox-group-heading_1_9_67.js → tttx-checkbox-group-heading_1_9_69.js} +5 -5
  127. package/dist/components/tttx-checkbox-group_1_9_69.d.ts +11 -0
  128. package/dist/components/{tttx-checkbox-group_1_9_67.js → tttx-checkbox-group_1_9_69.js} +5 -5
  129. package/dist/components/{tttx-button-v2_1_9_67.d.ts → tttx-checkbox_1_9_69.d.ts} +4 -4
  130. package/dist/components/{tttx-checkbox_1_9_67.js → tttx-checkbox_1_9_69.js} +7 -7
  131. package/dist/components/tttx-comments_1_9_69.d.ts +11 -0
  132. package/dist/components/{tttx-comments_1_9_67.js → tttx-comments_1_9_69.js} +9 -9
  133. package/dist/components/tttx-data-pattern_1_9_69.d.ts +11 -0
  134. package/dist/components/{tttx-data-pattern_1_9_67.js → tttx-data-pattern_1_9_69.js} +16 -16
  135. package/dist/components/tttx-datacard_1_9_69.d.ts +11 -0
  136. package/dist/components/{tttx-datacard_1_9_67.js → tttx-datacard_1_9_69.js} +10 -10
  137. package/dist/components/tttx-date-range-picker.js +3 -3
  138. package/dist/components/tttx-dialog-box_1_9_69.d.ts +11 -0
  139. package/dist/components/{tttx-dialog-box_1_9_67.js → tttx-dialog-box_1_9_69.js} +9 -9
  140. package/dist/components/{tttx-filter_1_9_67.d.ts → tttx-dialog_1_9_69.d.ts} +4 -4
  141. package/dist/components/{tttx-dialog_1_9_67.js → tttx-dialog_1_9_69.js} +8 -8
  142. package/dist/components/tttx-expander_1_9_69.d.ts +11 -0
  143. package/dist/components/{tttx-expander_1_9_67.js → tttx-expander_1_9_69.js} +7 -7
  144. package/dist/components/tttx-filter.js +6 -6
  145. package/dist/components/{tttx-button_1_9_67.d.ts → tttx-filter_1_9_69.d.ts} +4 -4
  146. package/dist/components/{tttx-filter_1_9_67.js → tttx-filter_1_9_69.js} +2 -2
  147. package/dist/components/{tttx-form_1_9_67.d.ts → tttx-form_1_9_69.d.ts} +4 -4
  148. package/dist/components/{tttx-form_1_9_67.js → tttx-form_1_9_69.js} +11 -11
  149. package/dist/components/tttx-graph.js +3 -3
  150. package/dist/components/{tttx-graph_1_9_67.d.ts → tttx-graph_1_9_69.d.ts} +4 -4
  151. package/dist/components/{tttx-graph_1_9_67.js → tttx-graph_1_9_69.js} +2 -2
  152. package/dist/components/tttx-icon.js +3 -3
  153. package/dist/components/{tttx-list_1_9_67.d.ts → tttx-icon_1_9_69.d.ts} +4 -4
  154. package/dist/components/{tttx-icon_1_9_67.js → tttx-icon_1_9_69.js} +2 -2
  155. package/dist/components/tttx-keyvalue-block_1_9_69.d.ts +11 -0
  156. package/dist/components/{tttx-keyvalue-block_1_9_67.js → tttx-keyvalue-block_1_9_69.js} +5 -5
  157. package/dist/components/tttx-list.js +6 -6
  158. package/dist/components/{tttx-icon_1_9_67.d.ts → tttx-list_1_9_69.d.ts} +4 -4
  159. package/dist/components/{tttx-list_1_9_67.js → tttx-list_1_9_69.js} +2 -2
  160. package/dist/components/tttx-loading-spinner.js +3 -3
  161. package/dist/components/tttx-loading-spinner_1_9_69.d.ts +11 -0
  162. package/dist/components/{tttx-loading-spinner_1_9_67.js → tttx-loading-spinner_1_9_69.js} +2 -2
  163. package/dist/components/tttx-multiselect-box_1_9_69.d.ts +11 -0
  164. package/dist/components/{tttx-multiselect-box_1_9_67.js → tttx-multiselect-box_1_9_69.js} +16 -16
  165. package/dist/components/tttx-percentage-bar_1_9_69.d.ts +11 -0
  166. package/dist/components/{tttx-percentage-bar_1_9_67.js → tttx-percentage-bar_1_9_69.js} +6 -6
  167. package/dist/components/{tttx-qrcode_1_9_67.d.ts → tttx-qrcode_1_9_69.d.ts} +4 -4
  168. package/dist/components/{tttx-qrcode_1_9_67.js → tttx-qrcode_1_9_69.js} +5 -5
  169. package/dist/components/tttx-select-box.js +12 -12
  170. package/dist/components/tttx-select-box_1_9_69.d.ts +11 -0
  171. package/dist/components/{tttx-select-box_1_9_67.js → tttx-select-box_1_9_69.js} +2 -2
  172. package/dist/components/tttx-skeleton_loader_1_9_69.d.ts +11 -0
  173. package/dist/components/{tttx-skeleton_loader_1_9_67.js → tttx-skeleton_loader_1_9_69.js} +5 -5
  174. package/dist/components/tttx-sorter.js +5 -5
  175. package/dist/components/tttx-sorter_1_9_69.d.ts +11 -0
  176. package/dist/components/{tttx-sorter_1_9_67.js → tttx-sorter_1_9_69.js} +2 -2
  177. package/dist/components/tttx-standalone-input.js +6 -6
  178. package/dist/components/tttx-standalone-input_1_9_69.d.ts +11 -0
  179. package/dist/components/{tttx-standalone-input_1_9_67.js → tttx-standalone-input_1_9_69.js} +2 -2
  180. package/dist/components/{tttx-chart_1_9_67.d.ts → tttx-table_1_9_69.d.ts} +4 -4
  181. package/dist/components/{tttx-table_1_9_67.js → tttx-table_1_9_69.js} +5 -5
  182. package/dist/components/{tttx-tabs_1_9_67.d.ts → tttx-tabs_1_9_69.d.ts} +4 -4
  183. package/dist/components/{tttx-tabs_1_9_67.js → tttx-tabs_1_9_69.js} +9 -9
  184. package/dist/components/tttx-tag.js +5 -5
  185. package/dist/components/{tttx-tag_1_9_67.d.ts → tttx-tag_1_9_69.d.ts} +4 -4
  186. package/dist/components/{tttx-tag_1_9_67.js → tttx-tag_1_9_69.js} +2 -2
  187. package/dist/components/tttx-textarea_1_9_69.d.ts +11 -0
  188. package/dist/components/{tttx-textarea_1_9_67.js → tttx-textarea_1_9_69.js} +6 -6
  189. package/dist/components/tttx-toggle_1_9_69.d.ts +11 -0
  190. package/dist/components/{tttx-toggle_1_9_67.js → tttx-toggle_1_9_69.js} +5 -5
  191. package/dist/components/tttx-toolbar.js +3 -3
  192. package/dist/components/tttx-toolbar_1_9_69.d.ts +11 -0
  193. package/dist/components/{tttx-toolbar_1_9_67.js → tttx-toolbar_1_9_69.js} +2 -2
  194. package/dist/components/tttx-tooltip_1_9_69.d.ts +11 -0
  195. package/dist/components/tttx-tooltip_1_9_69.js +83 -0
  196. package/dist/components/tttx-tree-view_1_9_69.d.ts +11 -0
  197. package/dist/components/{tttx-tree-view_1_9_67.js → tttx-tree-view_1_9_69.js} +9 -9
  198. package/dist/esm/{auto-c6e6ac5c.js → auto-1d8b24f0.js} +243 -80
  199. package/dist/esm/{index-6b9af9c9.js → index-9f3e16ad.js} +8 -0
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/esm/{tttx-action-dropdown_1_9_67.entry.js → tttx-action-dropdown_1_9_69.entry.js} +3 -3
  202. package/dist/esm/{tttx-button-v2_1_9_67.entry.js → tttx-button-v2_1_9_69.entry.js} +5 -5
  203. package/dist/esm/{tttx-button_1_9_67.entry.js → tttx-button_1_9_69.entry.js} +3 -3
  204. package/dist/esm/{tttx-chart_1_9_67.entry.js → tttx-chart_1_9_69.entry.js} +45 -11
  205. package/dist/esm/{tttx-checkbox-group-caption_1_9_67.entry.js → tttx-checkbox-group-caption_1_9_69.entry.js} +2 -2
  206. package/dist/esm/{tttx-checkbox-group-heading_1_9_67.entry.js → tttx-checkbox-group-heading_1_9_69.entry.js} +2 -2
  207. package/dist/esm/{tttx-checkbox-group_1_9_67.entry.js → tttx-checkbox-group_1_9_69.entry.js} +2 -2
  208. package/dist/esm/{tttx-checkbox_1_9_67.entry.js → tttx-checkbox_1_9_69.entry.js} +3 -3
  209. package/dist/esm/{tttx-comments_1_9_67.entry.js → tttx-comments_1_9_69.entry.js} +5 -5
  210. package/dist/esm/{tttx-data-pattern_1_9_67.entry.js → tttx-data-pattern_1_9_69.entry.js} +6 -6
  211. package/dist/esm/{tttx-datacard_1_9_67.entry.js → tttx-datacard_1_9_69.entry.js} +5 -5
  212. package/dist/esm/tttx-date-range-picker.entry.js +2 -2
  213. package/dist/esm/{tttx-dialog-box_1_9_67.entry.js → tttx-dialog-box_1_9_69.entry.js} +4 -4
  214. package/dist/esm/{tttx-dialog_1_9_67.entry.js → tttx-dialog_1_9_69.entry.js} +3 -3
  215. package/dist/esm/{tttx-expander_1_9_67.entry.js → tttx-expander_1_9_69.entry.js} +3 -3
  216. package/dist/esm/{tttx-filter_1_9_67_4.entry.js → tttx-filter_1_9_69_4.entry.js} +7 -7
  217. package/dist/esm/{tttx-form_1_9_67.entry.js → tttx-form_1_9_69.entry.js} +3 -3
  218. package/dist/esm/{tttx-graph_1_9_67.entry.js → tttx-graph_1_9_69.entry.js} +3 -3
  219. package/dist/esm/{tttx-icon_1_9_67.entry.js → tttx-icon_1_9_69.entry.js} +2 -2
  220. package/dist/esm/{tttx-keyvalue-block_1_9_67.entry.js → tttx-keyvalue-block_1_9_69.entry.js} +2 -2
  221. package/dist/esm/{tttx-loading-spinner_1_9_67_3.entry.js → tttx-loading-spinner_1_9_69_3.entry.js} +5 -5
  222. package/dist/esm/{tttx-multiselect-box_1_9_67.entry.js → tttx-multiselect-box_1_9_69.entry.js} +8 -8
  223. package/dist/esm/{tttx-percentage-bar_1_9_67.entry.js → tttx-percentage-bar_1_9_69.entry.js} +3 -3
  224. package/dist/esm/{tttx-qrcode_1_9_67.entry.js → tttx-qrcode_1_9_69.entry.js} +2 -2
  225. package/dist/esm/{tttx-select-box_1_9_67.entry.js → tttx-select-box_1_9_69.entry.js} +7 -7
  226. package/dist/esm/{tttx-skeleton_loader_1_9_67.entry.js → tttx-skeleton_loader_1_9_69.entry.js} +2 -2
  227. package/dist/esm/{tttx-table_1_9_67.entry.js → tttx-table_1_9_69.entry.js} +2 -2
  228. package/dist/esm/{tttx-tabs_1_9_67.entry.js → tttx-tabs_1_9_69.entry.js} +5 -5
  229. package/dist/esm/{tttx-textarea_1_9_67.entry.js → tttx-textarea_1_9_69.entry.js} +3 -3
  230. package/dist/esm/{tttx-toggle_1_9_67.entry.js → tttx-toggle_1_9_69.entry.js} +2 -2
  231. package/dist/esm/tttx-tooltip_1_9_69.entry.js +57 -0
  232. package/dist/esm/{tttx-tree-view_1_9_67.entry.js → tttx-tree-view_1_9_69.entry.js} +4 -4
  233. package/dist/esm/tttx.js +3 -3
  234. package/dist/tttx/{p-eda88cd9.entry.js → p-13272658.entry.js} +1 -1
  235. package/dist/tttx/{p-210a3640.entry.js → p-1f75b5d3.entry.js} +1 -1
  236. package/dist/tttx/p-296958ae.entry.js +1 -0
  237. package/dist/tttx/{p-cfc7f861.entry.js → p-32cf4137.entry.js} +1 -1
  238. package/dist/tttx/{p-95ea704b.entry.js → p-36edf716.entry.js} +1 -1
  239. package/dist/tttx/{p-6ae828ed.entry.js → p-47fadd24.entry.js} +1 -1
  240. package/dist/tttx/{p-79a18842.entry.js → p-4c63f7da.entry.js} +1 -1
  241. package/dist/tttx/{p-4bc84dcf.entry.js → p-4ddf7946.entry.js} +1 -1
  242. package/dist/tttx/{p-46985553.entry.js → p-5765b7da.entry.js} +1 -1
  243. package/dist/tttx/{p-655cebb7.entry.js → p-5a4e385f.entry.js} +1 -1
  244. package/dist/tttx/{p-28528c3a.entry.js → p-5b7c20ff.entry.js} +1 -1
  245. package/dist/tttx/p-5c9beaf9.js +2 -0
  246. package/dist/tttx/{p-e0bd4daa.entry.js → p-5e14d6aa.entry.js} +1 -1
  247. package/dist/tttx/p-71bb2f21.entry.js +1 -0
  248. package/dist/tttx/{p-92b48e8e.entry.js → p-74a8c484.entry.js} +1 -1
  249. package/dist/tttx/{p-a380f600.entry.js → p-789defe0.entry.js} +1 -1
  250. package/dist/tttx/{p-4e8dee24.entry.js → p-8392774e.entry.js} +1 -1
  251. package/dist/tttx/{p-e7c92d26.entry.js → p-86cdb616.entry.js} +1 -1
  252. package/dist/tttx/{p-d51f2e01.entry.js → p-8beccdc9.entry.js} +1 -1
  253. package/dist/tttx/{p-99cee169.entry.js → p-969a4944.entry.js} +1 -1
  254. package/dist/tttx/p-a2979a57.entry.js +1 -0
  255. package/dist/tttx/{p-46853736.entry.js → p-a50d9105.entry.js} +1 -1
  256. package/dist/tttx/{p-72aa3209.entry.js → p-a8526f90.entry.js} +1 -1
  257. package/dist/tttx/{p-04acb4f7.entry.js → p-b2a0053a.entry.js} +1 -1
  258. package/dist/tttx/{p-e8d02dd3.entry.js → p-b4fe2853.entry.js} +1 -1
  259. package/dist/tttx/{p-8db27f20.entry.js → p-b97e0e3c.entry.js} +1 -1
  260. package/dist/tttx/{p-46933761.entry.js → p-c33f9022.entry.js} +1 -1
  261. package/dist/tttx/{p-1b8af0a1.entry.js → p-ca58259a.entry.js} +1 -1
  262. package/dist/tttx/{p-ffb09d64.entry.js → p-d1ee41dd.entry.js} +1 -1
  263. package/dist/tttx/{p-2a6e57b3.entry.js → p-ee41fe8f.entry.js} +1 -1
  264. package/dist/tttx/{p-964b5e1a.entry.js → p-f30833e3.entry.js} +1 -1
  265. package/dist/tttx/{p-ce6a69bc.entry.js → p-f69b4685.entry.js} +1 -1
  266. package/dist/tttx/p-fa01bbb2.js +19 -0
  267. package/dist/tttx/{p-478169f8.entry.js → p-ff7edd81.entry.js} +1 -1
  268. package/dist/tttx/tttx.esm.js +1 -1
  269. package/dist/types/components/molecules/tttx-chart/tttx-chart.d.ts +1 -0
  270. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  271. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  272. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  273. package/dist/types/components/molecules/tttx-tooltip/tttx-tooltip.d.ts +17 -0
  274. package/dist/types/components/molecules/tttx-tooltip/tttx-tootip.stories.d.ts +10 -0
  275. package/dist/types/components.d.ts +446 -419
  276. package/package.json +2 -2
  277. package/dist/components/tttx-action-dropdown_1_9_67.d.ts +0 -11
  278. package/dist/components/tttx-checkbox-group-caption_1_9_67.d.ts +0 -11
  279. package/dist/components/tttx-checkbox-group-heading_1_9_67.d.ts +0 -11
  280. package/dist/components/tttx-checkbox-group_1_9_67.d.ts +0 -11
  281. package/dist/components/tttx-comments_1_9_67.d.ts +0 -11
  282. package/dist/components/tttx-data-pattern_1_9_67.d.ts +0 -11
  283. package/dist/components/tttx-datacard_1_9_67.d.ts +0 -11
  284. package/dist/components/tttx-dialog-box_1_9_67.d.ts +0 -11
  285. package/dist/components/tttx-expander_1_9_67.d.ts +0 -11
  286. package/dist/components/tttx-keyvalue-block_1_9_67.d.ts +0 -11
  287. package/dist/components/tttx-loading-spinner_1_9_67.d.ts +0 -11
  288. package/dist/components/tttx-multiselect-box_1_9_67.d.ts +0 -11
  289. package/dist/components/tttx-percentage-bar_1_9_67.d.ts +0 -11
  290. package/dist/components/tttx-select-box_1_9_67.d.ts +0 -11
  291. package/dist/components/tttx-skeleton_loader_1_9_67.d.ts +0 -11
  292. package/dist/components/tttx-sorter_1_9_67.d.ts +0 -11
  293. package/dist/components/tttx-standalone-input_1_9_67.d.ts +0 -11
  294. package/dist/components/tttx-textarea_1_9_67.d.ts +0 -11
  295. package/dist/components/tttx-toggle_1_9_67.d.ts +0 -11
  296. package/dist/components/tttx-toolbar_1_9_67.d.ts +0 -11
  297. package/dist/components/tttx-tree-view_1_9_67.d.ts +0 -11
  298. package/dist/tttx/p-28902955.entry.js +0 -1
  299. package/dist/tttx/p-39bb618e.js +0 -19
  300. package/dist/tttx/p-753a802a.entry.js +0 -1
  301. package/dist/tttx/p-c2a82822.js +0 -2
package/dist/esm/tttx.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6b9af9c9.js';
2
- export { s as setNonce } from './index-6b9af9c9.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-9f3e16ad.js';
2
+ export { s as setNonce } from './index-9f3e16ad.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["tttx-data-pattern_1_9_67",[[1,"tttx-data-pattern_1_9_67",{"data":[1],"sorterOptions":[1,"sorter-options"],"filterOptions":[1,"filter-options"],"filterHeader":[1,"filter-header"],"defaultSortOption":[1,"default-sort-option"],"searchplaceholder":[1],"addbuttonlabel":[1],"addbutton":[4]}]]],["tttx-form_1_9_67",[[1,"tttx-form_1_9_67",{"formschema":[1025],"data":[1032],"submit":[64],"showLoadingSpinner":[64],"setSelectedItem":[64],"setSelectOptions":[64],"isValid":[64],"setValidationFor":[64],"clearValidationFor":[64],"disableFormField":[64],"enableFormField":[64],"setInputFieldValue":[64],"setFieldReadOnlyMode":[64]}]]],["tttx-multiselect-box_1_9_67",[[1,"tttx-multiselect-box_1_9_67",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"htmlVisibleValue":[4,"html-visible-value"],"visibleValue":[1,"visible-value"],"isLoading":[4,"is-loading"],"stopLocalSearch":[4,"stop-local-search"],"readOnly":[4,"read-only"],"priorityLabel":[1,"priority-label"],"nonPriorityLabel":[1,"non-priority-label"],"open":[32],"unsavedSelectedItems":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-chart_1_9_67",[[1,"tttx-chart_1_9_67",{"chartType":[1,"chart-type"],"chartData":[16],"chartOptions":[16],"loading":[4],"error":[4],"fallbackText":[1,"fallback-text"],"width":[1],"height":[1],"exportable":[32],"chartInstance":[32],"showPngSvgExport":[32]}]]],["tttx-datacard_1_9_67",[[1,"tttx-datacard_1_9_67",{"cardTitle":[1,"card-title"],"leftData":[1,"left-data"],"rightData":[1,"right-data"],"rightSubtext":[1,"right-subtext"],"iconStyle":[1,"icon-style"],"cardType":[1,"card-type"],"chartConfig":[1,"chart-config"],"_chartConfig":[32],"chartRender":[32]}]]],["tttx-dialog-box_1_9_67",[[1,"tttx-dialog-box_1_9_67",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_67",[[1,"tttx-dialog_1_9_67",{"header":[1],"type":[1],"size":[1],"open":[4],"allowOverflow":[4,"allow-overflow"],"closeEnabled":[4,"close-enabled"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-tree-view_1_9_67",[[1,"tttx-tree-view_1_9_67",{"data":[1040],"treeData":[32]}]]],["tttx-action-dropdown_1_9_67",[[1,"tttx-action-dropdown_1_9_67",{"actionKey":[1,"action-key"],"icon":[1],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"isIconVisible":[4,"is-icon-visible"],"selectedField":[32],"dropdownExpand":[32],"dropdownOptions":[32]},[[0,"closeActionDropdown","handleCloseActionDropdown"]]]]],["tttx-button-v2_1_9_67",[[1,"tttx-button-v2_1_9_67",{"notext":[4],"icon":[1],"label":[1],"iconcolor":[1025],"iconposition":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"design":[1],"disabled":[516],"type":[1],"href":[1],"options":[1],"size":[1],"dropdownOpen":[32],"dropdownDirection":[32]},[[4,"click","handleClickOutside"]]]]],["tttx-checkbox_1_9_67",[[0,"tttx-checkbox_1_9_67",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_67",[[1,"tttx-comments_1_9_67",{"currentuser":[1],"comments":[1],"disableFile":[4,"disable-file"],"messageLimit":[2,"message-limit"],"inputBoxHeight":[2,"input-box-height"],"placeholder":[1],"saveButtonText":[1,"save-button-text"],"value":[1],"allowEditing":[4,"allow-editing"],"readonly":[4],"_comments":[32],"showError":[32],"_saveButtonText":[32],"editingComment":[32],"addDummyComment":[64]}]]],["tttx-date-range-picker",[[1,"tttx-date-range-picker",{"initialValue":[16],"placeholderText":[1,"placeholder-text"],"showCalendar":[32],"startDate":[32],"endDate":[32],"currentMonth":[32],"currentYear":[32],"isSelecting":[32],"hoverDate":[32]}]]],["tttx-expander_1_9_67",[[1,"tttx-expander_1_9_67",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_67",[[2,"tttx-tabs_1_9_67",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_67",[[4,"tttx-checkbox-group-caption_1_9_67"]]],["tttx-checkbox-group-heading_1_9_67",[[4,"tttx-checkbox-group-heading_1_9_67"]]],["tttx-checkbox-group_1_9_67",[[1,"tttx-checkbox-group_1_9_67"]]],["tttx-keyvalue-block_1_9_67",[[1,"tttx-keyvalue-block_1_9_67",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-percentage-bar_1_9_67",[[2,"tttx-percentage-bar_1_9_67",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_67",[[1,"tttx-qrcode_1_9_67",{"link":[1025],"size":[1026]}]]],["tttx-skeleton_loader_1_9_67",[[1,"tttx-skeleton_loader_1_9_67",{"width":[1],"height":[1],"borderRadius":[1,"border-radius"],"color":[1],"variant":[1],"animation":[1],"count":[2],"direction":[1],"gap":[1],"customClass":[1,"custom-class"]}]]],["tttx-table_1_9_67",[[1,"tttx-table_1_9_67",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-textarea_1_9_67",[[2,"tttx-textarea_1_9_67",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"rows":[2],"textareaautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"disabled":[4],"maxlength":[8],"name":[1],"placeholder":[1],"readonly":[8],"required":[4],"value":[1032]}]]],["tttx-toggle_1_9_67",[[1,"tttx-toggle_1_9_67",{"initialstate":[8],"_state":[32]}]]],["tttx-loading-spinner_1_9_67_3",[[1,"tttx-tag_1_9_67",{"text":[1],"color":[1],"textColor":[1,"text-color"],"hasIcon":[4,"has-icon"],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"]}],[2,"tttx-standalone-input_1_9_67",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconleftcolor":[1],"iconright":[1],"iconrightcolor":[1],"inputicon":[1],"inputiconcolor":[1],"inline":[4],"inputautocapitalize":[1],"inputautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}],[1,"tttx-loading-spinner_1_9_67",{"loadingMessage":[4,"loading-message"],"size":[1],"color":[1],"message":[1],"customMessageSchema":[16],"timeElapsed":[32]}]]],["tttx-select-box_1_9_67",[[1,"tttx-select-box_1_9_67",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"selectedValue":[1,"selected-value"],"useExternalFiltering":[4,"use-external-filtering"],"useExternalPaginatedFiltering":[4,"use-external-paginated-filtering"],"isAllExternalDataLoaded":[4,"is-all-external-data-loaded"],"isLoading":[4,"is-loading"],"readOnly":[4,"read-only"],"priorityLabel":[1,"priority-label"],"nonPriorityLabel":[1,"non-priority-label"],"clearable":[4],"showErrorMsg":[4,"show-error-msg"],"showErrorBubble":[4,"show-error-bubble"],"errorMsg":[1,"error-msg"],"open":[32],"selectedItem":[32],"searchTerm":[32],"loadingNextExternalPage":[32],"setSelectedItem":[64]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-graph_1_9_67",[[1,"tttx-graph_1_9_67",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-icon_1_9_67",[[1,"tttx-icon_1_9_67",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-filter_1_9_67_4",[[1,"tttx-filter_1_9_67",{"filterKey":[1,"filter-key"],"filterOptions":[1,"filter-options"],"showSelectAll":[4,"show-select-all"],"showSearchField":[4,"show-search-field"],"showOptionIcons":[4,"show-option-icons"],"filterButtonStyle":[1,"filter-button-style"],"filterHeader":[1,"filter-header"],"defaultFilterOptions":[1,"default-filter-options"],"popoverWidth":[1,"popover-width"],"showPopover":[32],"displayedFilterSettings":[32],"selectedFilters":[32],"filterSearchTerm":[32],"allSelected":[32]},[[0,"closeFilter","handleCloseFilter"]]],[1,"tttx-list_1_9_67",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_67",{"sorterKey":[1,"sorter-key"],"defaultSortDirection":[1,"default-sort-direction"],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"selectedField":[32],"sortDirection":[32],"dropdownExpand":[32],"dropdownOptions":[32]},[[0,"closeSorter","handleCloseSorter"]]],[1,"tttx-toolbar_1_9_67",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_67",[[1,"tttx-button_1_9_67",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
17
+ return bootstrapLazy([["tttx-data-pattern_1_9_69",[[1,"tttx-data-pattern_1_9_69",{"data":[1],"sorterOptions":[1,"sorter-options"],"filterOptions":[1,"filter-options"],"filterHeader":[1,"filter-header"],"defaultSortOption":[1,"default-sort-option"],"searchplaceholder":[1],"addbuttonlabel":[1],"addbutton":[4]}]]],["tttx-form_1_9_69",[[1,"tttx-form_1_9_69",{"formschema":[1025],"data":[1032],"submit":[64],"showLoadingSpinner":[64],"setSelectedItem":[64],"setSelectOptions":[64],"isValid":[64],"setValidationFor":[64],"clearValidationFor":[64],"disableFormField":[64],"enableFormField":[64],"setInputFieldValue":[64],"setFieldReadOnlyMode":[64]}]]],["tttx-multiselect-box_1_9_69",[[1,"tttx-multiselect-box_1_9_69",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"htmlVisibleValue":[4,"html-visible-value"],"visibleValue":[1,"visible-value"],"isLoading":[4,"is-loading"],"stopLocalSearch":[4,"stop-local-search"],"readOnly":[4,"read-only"],"priorityLabel":[1,"priority-label"],"nonPriorityLabel":[1,"non-priority-label"],"open":[32],"unsavedSelectedItems":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-chart_1_9_69",[[1,"tttx-chart_1_9_69",{"chartType":[1,"chart-type"],"chartData":[16],"chartOptions":[16],"loading":[4],"error":[4],"fallbackText":[1,"fallback-text"],"width":[1],"height":[1],"isYAxisPercentageValues":[4,"is-y-axis-percentage-values"],"exportable":[32],"chartInstance":[32],"showPngSvgExport":[32]}]]],["tttx-datacard_1_9_69",[[1,"tttx-datacard_1_9_69",{"cardTitle":[1,"card-title"],"leftData":[1,"left-data"],"rightData":[1,"right-data"],"rightSubtext":[1,"right-subtext"],"iconStyle":[1,"icon-style"],"cardType":[1,"card-type"],"chartConfig":[1,"chart-config"],"_chartConfig":[32],"chartRender":[32]}]]],["tttx-dialog-box_1_9_69",[[1,"tttx-dialog-box_1_9_69",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_69",[[1,"tttx-dialog_1_9_69",{"header":[1],"type":[1],"size":[1],"open":[4],"allowOverflow":[4,"allow-overflow"],"closeEnabled":[4,"close-enabled"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-tree-view_1_9_69",[[1,"tttx-tree-view_1_9_69",{"data":[1040],"treeData":[32]}]]],["tttx-action-dropdown_1_9_69",[[1,"tttx-action-dropdown_1_9_69",{"actionKey":[1,"action-key"],"icon":[1],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"isIconVisible":[4,"is-icon-visible"],"selectedField":[32],"dropdownExpand":[32],"dropdownOptions":[32]},[[0,"closeActionDropdown","handleCloseActionDropdown"]]]]],["tttx-button-v2_1_9_69",[[1,"tttx-button-v2_1_9_69",{"notext":[4],"icon":[1],"label":[1],"iconcolor":[1025],"iconposition":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"design":[1],"disabled":[516],"type":[1],"href":[1],"options":[1],"size":[1],"dropdownOpen":[32],"dropdownDirection":[32]},[[4,"click","handleClickOutside"]]]]],["tttx-checkbox_1_9_69",[[0,"tttx-checkbox_1_9_69",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_69",[[1,"tttx-comments_1_9_69",{"currentuser":[1],"comments":[1],"disableFile":[4,"disable-file"],"messageLimit":[2,"message-limit"],"inputBoxHeight":[2,"input-box-height"],"placeholder":[1],"saveButtonText":[1,"save-button-text"],"value":[1],"allowEditing":[4,"allow-editing"],"readonly":[4],"_comments":[32],"showError":[32],"_saveButtonText":[32],"editingComment":[32],"addDummyComment":[64]}]]],["tttx-date-range-picker",[[1,"tttx-date-range-picker",{"initialValue":[16],"placeholderText":[1,"placeholder-text"],"showCalendar":[32],"startDate":[32],"endDate":[32],"currentMonth":[32],"currentYear":[32],"isSelecting":[32],"hoverDate":[32]}]]],["tttx-expander_1_9_69",[[1,"tttx-expander_1_9_69",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_69",[[2,"tttx-tabs_1_9_69",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_69",[[4,"tttx-checkbox-group-caption_1_9_69"]]],["tttx-checkbox-group-heading_1_9_69",[[4,"tttx-checkbox-group-heading_1_9_69"]]],["tttx-checkbox-group_1_9_69",[[1,"tttx-checkbox-group_1_9_69"]]],["tttx-keyvalue-block_1_9_69",[[1,"tttx-keyvalue-block_1_9_69",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-percentage-bar_1_9_69",[[2,"tttx-percentage-bar_1_9_69",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_69",[[1,"tttx-qrcode_1_9_69",{"link":[1025],"size":[1026]}]]],["tttx-skeleton_loader_1_9_69",[[1,"tttx-skeleton_loader_1_9_69",{"width":[1],"height":[1],"borderRadius":[1,"border-radius"],"color":[1],"variant":[1],"animation":[1],"count":[2],"direction":[1],"gap":[1],"customClass":[1,"custom-class"]}]]],["tttx-table_1_9_69",[[1,"tttx-table_1_9_69",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-textarea_1_9_69",[[2,"tttx-textarea_1_9_69",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"rows":[2],"textareaautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"disabled":[4],"maxlength":[8],"name":[1],"placeholder":[1],"readonly":[8],"required":[4],"value":[1032]}]]],["tttx-toggle_1_9_69",[[1,"tttx-toggle_1_9_69",{"initialstate":[8],"_state":[32]}]]],["tttx-tooltip_1_9_69",[[1,"tttx-tooltip_1_9_69",{"text":[1],"placement":[1],"trigger":[16],"delay":[2],"disabled":[4],"ariaLabel":[1,"aria-label"],"visible":[32]}]]],["tttx-icon_1_9_69",[[1,"tttx-icon_1_9_69",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-loading-spinner_1_9_69_3",[[1,"tttx-tag_1_9_69",{"text":[1],"color":[1],"textColor":[1,"text-color"],"hasIcon":[4,"has-icon"],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"]}],[2,"tttx-standalone-input_1_9_69",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconleftcolor":[1],"iconright":[1],"iconrightcolor":[1],"inputicon":[1],"inputiconcolor":[1],"inline":[4],"inputautocapitalize":[1],"inputautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}],[1,"tttx-loading-spinner_1_9_69",{"loadingMessage":[4,"loading-message"],"size":[1],"color":[1],"message":[1],"customMessageSchema":[16],"timeElapsed":[32]}]]],["tttx-select-box_1_9_69",[[1,"tttx-select-box_1_9_69",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"selectedValue":[1,"selected-value"],"useExternalFiltering":[4,"use-external-filtering"],"useExternalPaginatedFiltering":[4,"use-external-paginated-filtering"],"isAllExternalDataLoaded":[4,"is-all-external-data-loaded"],"isLoading":[4,"is-loading"],"readOnly":[4,"read-only"],"priorityLabel":[1,"priority-label"],"nonPriorityLabel":[1,"non-priority-label"],"clearable":[4],"showErrorMsg":[4,"show-error-msg"],"showErrorBubble":[4,"show-error-bubble"],"errorMsg":[1,"error-msg"],"open":[32],"selectedItem":[32],"searchTerm":[32],"loadingNextExternalPage":[32],"setSelectedItem":[64]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-graph_1_9_69",[[1,"tttx-graph_1_9_69",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-filter_1_9_69_4",[[1,"tttx-filter_1_9_69",{"filterKey":[1,"filter-key"],"filterOptions":[1,"filter-options"],"showSelectAll":[4,"show-select-all"],"showSearchField":[4,"show-search-field"],"showOptionIcons":[4,"show-option-icons"],"filterButtonStyle":[1,"filter-button-style"],"filterHeader":[1,"filter-header"],"defaultFilterOptions":[1,"default-filter-options"],"popoverWidth":[1,"popover-width"],"showPopover":[32],"displayedFilterSettings":[32],"selectedFilters":[32],"filterSearchTerm":[32],"allSelected":[32]},[[0,"closeFilter","handleCloseFilter"]]],[1,"tttx-list_1_9_69",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_69",{"sorterKey":[1,"sorter-key"],"defaultSortDirection":[1,"default-sort-direction"],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"selectedField":[32],"sortDirection":[32],"dropdownExpand":[32],"dropdownOptions":[32]},[[0,"closeSorter","handleCloseSorter"]]],[1,"tttx-toolbar_1_9_69",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_69",[[1,"tttx-button_1_9_69",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
18
18
  });
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as l}from"./p-c2a82822.js";import{p as s,d as o}from"./p-55799798.js";import"./p-112455b1.js";const h=class{constructor(i){t(this,i),this.rowClicked=e(this,"rowClicked",7),this.headerClicked=e(this,"headerClicked",7),this.headerOrderChanged=e(this,"headerOrderChanged",7),this.headers=[],this.data=[],this.selectable=!1,this.loading=!1,this.selected=-1,this.draggableHeaders=!1,this.draggedHeaderIndex=null}rowClickedHandler(t){this.rowClicked.emit(t),this.selectable&&(this.selected=this.data.findIndex((e=>e===t)))}headerClickedHandler(t){this.headerClicked.emit(t)}handleDragStart(t){this.draggedHeaderIndex=t}handleDragOver(t){t.preventDefault()}handleDrop(t){if(null!==this.draggedHeaderIndex&&this.draggedHeaderIndex!==t){const e=[...this.headers],i=e[this.draggedHeaderIndex];e.splice(this.draggedHeaderIndex,1),e.splice(t,0,i),console.log("newOrder",e),this.headerOrderChanged.emit(e.map((t=>t.key)))}this.draggedHeaderIndex=null}render(){return i(l,null,i("div",{style:{width:"100%",overflowX:"auto"}},i("table",null,i("colgroup",null,this.headers&&this.headers.map((t=>i("col",{style:{width:t.width?`${t.width}`:"auto"}})))),i("thead",null,i("tr",null,this.loading?[1,2,3].map((t=>i("th",{key:"skeleton-header-"+t},i("div",{class:"skeleton"})))):this.headers&&this.headers.map(((t,e)=>i("th",{key:"header-"+t.key,class:"header-typography",onClick:()=>this.headerClickedHandler(t),innerHTML:s.sanitize(t.label,o),draggable:this.draggableHeaders,onDragStart:this.draggableHeaders?()=>this.handleDragStart(e):void 0,onDragOver:this.draggableHeaders?t=>this.handleDragOver(t):void 0,onDrop:this.draggableHeaders?()=>this.handleDrop(e):void 0}))))),i("tbody",null,this.loading?[1,2,3].map((t=>i("tr",{key:"skeleton-row-"+t},[1,2,3].map((t=>i("td",{key:"skeleton-cell-"+t},i("div",{class:"skeleton"}))))))):Object.keys(this.data).map(((t,e)=>i("tr",{key:"row-"+e,class:(this.selectable?"clickable":"")+(e===this.selected&&this.selectable?" selected":""),onClick:()=>this.rowClickedHandler(this.data[t])},this.headers.map((e=>i("td",{key:"cell-"+e.key,class:"cell-typography"},i("div",{class:"cell-spacing",innerHTML:s.sanitize(this.data[t][e.key],o)})))))))))))}};h.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:#c2cfd6}100%{background-color:#f0f3f5}}:host{display:block}table{width:100%;border-collapse:collapse;table-layout:fixed;box-sizing:border-box;min-width:600px}thead tr{height:52px;background-color:#f0f0f0}thead tr td{text-align:left;padding-left:8px 16px;min-width:40px}tbody tr{height:52px}tr{border-bottom:1px solid #d5d5d5}.selected{background-color:#ebfbfc}td,th{text-align:left;padding:8px 16px;min-width:40px}.cell-spacing{display:flex;align-items:left}.skeleton{height:24px;display:block}.header-typography,.cell-typography{font-family:"Roboto", sans-serif;font-size:16px;font-style:normal;line-height:normal}.header-typography{font-weight:500;color:#757575}.cell-typography{font-weight:normal;color:#212121}.clickable{cursor:pointer}';export{h as tttx_table_1_9_67}
1
+ import{r as t,c as e,h as i,H as l}from"./p-5c9beaf9.js";import{p as s,d as o}from"./p-55799798.js";import"./p-112455b1.js";const h=class{constructor(i){t(this,i),this.rowClicked=e(this,"rowClicked",7),this.headerClicked=e(this,"headerClicked",7),this.headerOrderChanged=e(this,"headerOrderChanged",7),this.headers=[],this.data=[],this.selectable=!1,this.loading=!1,this.selected=-1,this.draggableHeaders=!1,this.draggedHeaderIndex=null}rowClickedHandler(t){this.rowClicked.emit(t),this.selectable&&(this.selected=this.data.findIndex((e=>e===t)))}headerClickedHandler(t){this.headerClicked.emit(t)}handleDragStart(t){this.draggedHeaderIndex=t}handleDragOver(t){t.preventDefault()}handleDrop(t){if(null!==this.draggedHeaderIndex&&this.draggedHeaderIndex!==t){const e=[...this.headers],i=e[this.draggedHeaderIndex];e.splice(this.draggedHeaderIndex,1),e.splice(t,0,i),console.log("newOrder",e),this.headerOrderChanged.emit(e.map((t=>t.key)))}this.draggedHeaderIndex=null}render(){return i(l,null,i("div",{style:{width:"100%",overflowX:"auto"}},i("table",null,i("colgroup",null,this.headers&&this.headers.map((t=>i("col",{style:{width:t.width?`${t.width}`:"auto"}})))),i("thead",null,i("tr",null,this.loading?[1,2,3].map((t=>i("th",{key:"skeleton-header-"+t},i("div",{class:"skeleton"})))):this.headers&&this.headers.map(((t,e)=>i("th",{key:"header-"+t.key,class:"header-typography",onClick:()=>this.headerClickedHandler(t),innerHTML:s.sanitize(t.label,o),draggable:this.draggableHeaders,onDragStart:this.draggableHeaders?()=>this.handleDragStart(e):void 0,onDragOver:this.draggableHeaders?t=>this.handleDragOver(t):void 0,onDrop:this.draggableHeaders?()=>this.handleDrop(e):void 0}))))),i("tbody",null,this.loading?[1,2,3].map((t=>i("tr",{key:"skeleton-row-"+t},[1,2,3].map((t=>i("td",{key:"skeleton-cell-"+t},i("div",{class:"skeleton"}))))))):Object.keys(this.data).map(((t,e)=>i("tr",{key:"row-"+e,class:(this.selectable?"clickable":"")+(e===this.selected&&this.selectable?" selected":""),onClick:()=>this.rowClickedHandler(this.data[t])},this.headers.map((e=>i("td",{key:"cell-"+e.key,class:"cell-typography"},i("div",{class:"cell-spacing",innerHTML:s.sanitize(this.data[t][e.key],o)})))))))))))}};h.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:#c2cfd6}100%{background-color:#f0f3f5}}:host{display:block}table{width:100%;border-collapse:collapse;table-layout:fixed;box-sizing:border-box;min-width:600px}thead tr{height:52px;background-color:#f0f0f0}thead tr td{text-align:left;padding-left:8px 16px;min-width:40px}tbody tr{height:52px}tr{border-bottom:1px solid #d5d5d5}.selected{background-color:#ebfbfc}td,th{text-align:left;padding:8px 16px;min-width:40px}.cell-spacing{display:flex;align-items:left}.skeleton{height:24px;display:block}.header-typography,.cell-typography{font-family:"Roboto", sans-serif;font-size:16px;font-style:normal;line-height:normal}.header-typography{font-weight:500;color:#757575}.cell-typography{font-weight:normal;color:#212121}.clickable{cursor:pointer}';export{h as tttx_table_1_9_69}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i}from"./p-c2a82822.js";const r=class{constructor(s){t(this,s),this.percentage=void 0,this.thresholds=void 0,this.color="#d5d5d5",this.min="1",this.labelid=void 0,this._percentage=void 0,this._ranges=void 0,this._min=void 0}componentWillRender(){let t;if(this._percentage="string"==typeof this.percentage?parseInt(this.percentage):this.percentage,this.thresholds){t="string"==typeof this.thresholds?JSON.parse(this.thresholds):this.thresholds,this._ranges=[{range:[0],color:t[0].color}];for(const[s,i]of t.entries())this._ranges[this._ranges.length-1].range.push(i.threshold),this._ranges[this._ranges.length-1].color=i.color,s<t.length-1&&this._ranges.push({range:[i.threshold],color:void 0})}this._min=parseInt(this.min)}getColour(){return this._ranges&&0!==this._ranges.length?this._ranges.find((t=>this._percentage>=t.range[0]&&this._percentage<=t.range[1])).color:this.color}getWidth(){return Math.min(Math.max(this._percentage,Math.min(this._min,100)),100)}render(){return s(i,null,s("div",{class:"progress"},s("div",{class:"bar",style:{"background-color":this.getColour(),width:`${this.getWidth()}%`},role:"progressbar","aria-valuemin":this._min,"aria-valuemax":"100","aria-valuenow":this._percentage,"aria-labelledby":this.labelid})))}};r.style=".sc-tttx-percentage-bar_1_9_67-h{display:block}.progress.sc-tttx-percentage-bar_1_9_67{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_67 .bar.sc-tttx-percentage-bar_1_9_67{height:20px}";export{r as tttx_percentage_bar_1_9_67}
1
+ import{r as t,h as s,H as i}from"./p-5c9beaf9.js";const r=class{constructor(s){t(this,s),this.percentage=void 0,this.thresholds=void 0,this.color="#d5d5d5",this.min="1",this.labelid=void 0,this._percentage=void 0,this._ranges=void 0,this._min=void 0}componentWillRender(){let t;if(this._percentage="string"==typeof this.percentage?parseInt(this.percentage):this.percentage,this.thresholds){t="string"==typeof this.thresholds?JSON.parse(this.thresholds):this.thresholds,this._ranges=[{range:[0],color:t[0].color}];for(const[s,i]of t.entries())this._ranges[this._ranges.length-1].range.push(i.threshold),this._ranges[this._ranges.length-1].color=i.color,s<t.length-1&&this._ranges.push({range:[i.threshold],color:void 0})}this._min=parseInt(this.min)}getColour(){return this._ranges&&0!==this._ranges.length?this._ranges.find((t=>this._percentage>=t.range[0]&&this._percentage<=t.range[1])).color:this.color}getWidth(){return Math.min(Math.max(this._percentage,Math.min(this._min,100)),100)}render(){return s(i,null,s("div",{class:"progress"},s("div",{class:"bar",style:{"background-color":this.getColour(),width:`${this.getWidth()}%`},role:"progressbar","aria-valuemin":this._min,"aria-valuemax":"100","aria-valuenow":this._percentage,"aria-labelledby":this.labelid})))}};r.style=".sc-tttx-percentage-bar_1_9_69-h{display:block}.progress.sc-tttx-percentage-bar_1_9_69{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_69 .bar.sc-tttx-percentage-bar_1_9_69{height:20px}";export{r as tttx_percentage_bar_1_9_69}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,g as o}from"./p-5c9beaf9.js";import{C as n}from"./p-fa01bbb2.js";const s=class{constructor(i){t(this,i),this.exportCSV=e(this,"exportCSV",7),this.chartType=void 0,this.chartData=void 0,this.chartOptions=void 0,this.loading=!1,this.error=void 0,this.fallbackText="No data available",this.width="100%",this.height="auto",this.isYAxisPercentageValues=!1,this.exportable=!1,this.chartInstance=void 0,this.showPngSvgExport=!1}handleUpdate(){this.renderChart()}componentDidLoad(){this.renderChart()}disconnectedCallback(){this.destroyChart()}renderChart(){var t,e;if(!this.canvasEl||!this.chartData||!this.chartType)return;this.destroyChart();const i={type:this.getChartJsType(),data:this.chartData,options:this.getChartOptions(),plugins:[]};if("doughnut"===this.chartType||"semi-gauge"===this.chartType){const o=(null===(e=null===(t=this.chartData.datasets[0])||void 0===t?void 0:t.data)||void 0===e?void 0:e.map((t=>Number(t)||0)).reduce(((t,e)=>t+e),0))||0;i.plugins.push(this.getCenterTextPlugin(o.toLocaleString()))}this.chartInstance=new n(this.canvasEl,i)}destroyChart(){this.chartInstance&&this.chartInstance.destroy()}getChartJsType(){return"semi-gauge"===this.chartType?"doughnut":this.chartType}getBaseOptions(){return{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{usePointStyle:!0,pointStyle:"circle"}},tooltip:{callbacks:{label:t=>`${t.label||t.dataset.label}: ${t.formattedValue}`},backgroundColor:"#17272B"}}}}getLineChartConfig(){return{plugins:{legend:{labels:{padding:20,generateLabels:t=>t.data.datasets.map(((e,i)=>({text:e.label||"",strokeStyle:e.borderColor,lineDash:e.borderDash||[],lineWidth:e.borderWidth,hidden:!t.isDatasetVisible(i),datasetIndex:i,pointStyle:"line"})))}},tooltip:{callbacks:{label:t=>`${t.dataset.label}: ${t.formattedValue}${this.isYAxisPercentageValues?"%":""}`}}},scales:{x:{grid:{color:"#E5E5E5"},border:{dash:[2,4]}},y:{beginAtZero:!0,max:100,ticks:{callback:t=>this.isYAxisPercentageValues?`${t}%`:t},grid:{color:"#E5E5E5"},border:{dash:[2,4]}}}}}getDoughnutChartConfig(){return{plugins:{legend:{labels:{pointStyle:"circle",padding:16}}},cutout:"60%"}}getCenterTextPlugin(t){return{id:"centerText",afterDatasetsDraw:e=>{const{ctx:i}=e;i.save();const o=e.getDatasetMeta(0).data[0].x;let n=e.getDatasetMeta(0).data[0].y;"semi-gauge"===this.chartType&&(n-=20),i.font="bold 20px Roboto",i.fillStyle="#111",i.textAlign="center",i.textBaseline="middle",i.fillText(t,o,n)}}}getSemiGaugeChartConfig(){return{plugins:{legend:{labels:{pointStyle:"circle",padding:16}}},rotation:-90,circumference:180,cutout:"70%"}}merge(t,e){if("object"!=typeof t||"object"!=typeof e)return e;for(const i of Object.keys(e))t[i]=e[i]instanceof Object&&i in t?this.merge(Object.assign({},t[i]),e[i]):e[i];return t}getChartOptions(){const t=this.getBaseOptions();let e={};return"line"===this.chartType?e=this.getLineChartConfig():"doughnut"===this.chartType?e=this.getDoughnutChartConfig():"semi-gauge"===this.chartType&&(e=this.getSemiGaugeChartConfig()),this.merge(this.merge(t,e),this.chartOptions||{})}exportChart(t){if(!this.chartInstance)return;const e=document.createElement("a");if(e.download=`chart-export.${t}`,"png"===t)e.href=this.chartInstance.toBase64Image("image/png");else{const t=(new XMLSerializer).serializeToString(this.canvasEl),i=new Blob([t],{type:"image/svg+xml"});e.href=URL.createObjectURL(i)}e.click()}getErrorContent(){return this.commonContent("warning","Something went wrong","We ran into an issue while trying to load this widget.","#DC0000",!0)}getNoDataContent(){return this.commonContent("ssid_chart","No data available","There is currently no data available to show performance trends.","#111")}commonContent(t,e,o,n,s=!1){return i("div",{class:"error-content"},i("tttx-icon_1_9_69",{icon:t,color:n,size:48}),i("span",{class:"error-heading"},e),i("span",{class:"error-message"},o),s&&i("div",{class:"error-actions"},i("tttx-button_1_9_69",{class:"support-btn",icon:"help",design:"primary",onClick:()=>this.renderChart()},"Contact support")))}render(){var t,e,o;return i("div",{class:"chart-wrapper",style:{width:this.width,height:this.height}},this.loading&&i("div",{class:"chart-loading"},i("tttx-loading-spinner_1_9_69",{size:"large",color:"#2b9ab7"})),this.error&&this.getErrorContent(),!this.loading&&!this.error&&(!this.chartData||!(null===(t=this.chartData.datasets)||void 0===t?void 0:t.length))&&this.getNoDataContent(),!this.loading&&!this.error&&(null===(o=null===(e=this.chartData)||void 0===e?void 0:e.datasets)||void 0===o?void 0:o.length)>0&&i("canvas",{ref:t=>this.canvasEl=t,"aria-label":"Chart canvas",role:"img"}),this.exportable&&!this.loading&&!this.error&&i("div",{class:"export-buttons"},this.showPngSvgExport&&i("tttx-button_1_9_69",{class:"export-png",design:"primary",onClick:()=>this.exportChart("png")},"Export PNG"),this.showPngSvgExport&&i("tttx-button_1_9_69",{class:"export-svg",design:"primary",onClick:()=>this.exportChart("svg")},"Export SVG"),i("tttx-button_1_9_69",{class:"export-csv",design:"primary",onClick:()=>this.exportCSV.emit({name:this.chartType})},"Export CSV")))}get el(){return o(this)}static get watchers(){return{chartData:["handleUpdate"],chartOptions:["handleUpdate"]}}};s.style=".chart-wrapper{position:relative;width:100%;height:100%}canvas{display:block;width:100% !important;height:100% !important}.export-buttons{display:flex;gap:0.5rem;justify-content:flex-end;padding-top:0.5rem;padding-bottom:0.5rem}.chart-loading{width:100%;height:100%;align-items:center;justify-content:center;display:flex}.error-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;align-self:stretch;background-color:#FAFAFA}.error-content .error-heading{color:var(--Text-Default-Default, #111);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:600;line-height:20px}.error-content .error-message{color:var(--Text-Neutral-Default, #737373);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.error-content .error-actions{display:flex;align-items:flex-start;gap:12px;margin-top:16px}";export{s as tttx_chart_1_9_69}
@@ -1 +1 @@
1
- import{r as t,h as i,H as o}from"./p-c2a82822.js";const d=class{constructor(i){t(this,i),this.keyvalues=void 0,this.horizontal=void 0,this.spacedout=void 0,this._elements=void 0}renderSingleElements(t){const o=Object.keys(t),d=[],l=(100/o.length).toString()+"%";for(const s of o)this.horizontal||this.spacedout?d.push(i("div",{style:{maxWidth:l}},i("dt",null,s),i("dd",null,t[s]))):(d.push(i("dt",null,s)),d.push(i("dd",null,t[s])));return d}renderArrayElements(t){const o=[],d=(100/t.length).toString()+"%";for(const l of t){const t=l;this.horizontal||this.spacedout?o.push(i("div",{style:{maxWidth:d}},i("dt",{class:"mainTitle"},t.title),i("dt",{class:"subTitle"},t.subTitle),i("dd",null,t.data))):(o.push(i("dt",{class:"mainTitle"},t.title)),o.push(i("dt",{class:"subTitle"},t.subTitle)),o.push(i("dd",null,t.data)))}return o}componentWillRender(){if(!this.keyvalues)return;let t;t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,this._elements=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t)}render(){return i(o,null,i("dl",{class:[this.horizontal?"horizontal":void 0,this.spacedout?" spacedout":void 0].join(" ").trim()},this._elements))}};d.style=':host{display:block}dl{margin:0;padding:0;font-family:"Roboto", sans-serif;cursor:default}dt{font-weight:400;font-size:16px;margin-bottom:4px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dt,dd{overflow-wrap:anywhere}dd{margin:0;font-weight:400;font-size:16px;color:#212121}dd:not(:last-child){margin-bottom:16px}dl.spacedout,dl.horizontal{display:flex;flex-direction:row;width:100%}dl.spacedout{justify-content:space-between}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%;max-width:50% !important}}@media (max-width: 600px){dl.horizontal div{width:100%;max-width:100% !important}}';export{d as tttx_keyvalue_block_1_9_67}
1
+ import{r as t,h as i,H as o}from"./p-5c9beaf9.js";const d=class{constructor(i){t(this,i),this.keyvalues=void 0,this.horizontal=void 0,this.spacedout=void 0,this._elements=void 0}renderSingleElements(t){const o=Object.keys(t),d=[],l=(100/o.length).toString()+"%";for(const s of o)this.horizontal||this.spacedout?d.push(i("div",{style:{maxWidth:l}},i("dt",null,s),i("dd",null,t[s]))):(d.push(i("dt",null,s)),d.push(i("dd",null,t[s])));return d}renderArrayElements(t){const o=[],d=(100/t.length).toString()+"%";for(const l of t){const t=l;this.horizontal||this.spacedout?o.push(i("div",{style:{maxWidth:d}},i("dt",{class:"mainTitle"},t.title),i("dt",{class:"subTitle"},t.subTitle),i("dd",null,t.data))):(o.push(i("dt",{class:"mainTitle"},t.title)),o.push(i("dt",{class:"subTitle"},t.subTitle)),o.push(i("dd",null,t.data)))}return o}componentWillRender(){if(!this.keyvalues)return;let t;t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,this._elements=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t)}render(){return i(o,null,i("dl",{class:[this.horizontal?"horizontal":void 0,this.spacedout?" spacedout":void 0].join(" ").trim()},this._elements))}};d.style=':host{display:block}dl{margin:0;padding:0;font-family:"Roboto", sans-serif;cursor:default}dt{font-weight:400;font-size:16px;margin-bottom:4px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dt,dd{overflow-wrap:anywhere}dd{margin:0;font-weight:400;font-size:16px;color:#212121}dd:not(:last-child){margin-bottom:16px}dl.spacedout,dl.horizontal{display:flex;flex-direction:row;width:100%}dl.spacedout{justify-content:space-between}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%;max-width:50% !important}}@media (max-width: 600px){dl.horizontal div{width:100%;max-width:100% !important}}';export{d as tttx_keyvalue_block_1_9_69}
@@ -1 +1 @@
1
- import{r as e,c as t,h as a,H as n}from"./p-c2a82822.js";const i=class{constructor(a){e(this,a),this.dateRangeChanged=t(this,"dateRangeChanged",7),this.handleOutsideClick=e=>{this.showCalendar&&this.inputRef&&!this.inputRef.contains(e.target)&&(this.showCalendar=!1)},this.toggleCalendar=()=>{this.showCalendar=!this.showCalendar},this.handleInputClick=e=>{e.stopPropagation(),this.toggleCalendar()},this.handleClear=e=>{e.stopPropagation(),this.resetRange()},this.initialValue=void 0,this.placeholderText="dd/mm/yyyy - dd/mm/yyyy",this.showCalendar=!1,this.startDate="",this.endDate="",this.currentMonth=(new Date).getMonth(),this.currentYear=(new Date).getFullYear(),this.isSelecting=!0,this.hoverDate=""}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}componentWillLoad(){this.initializeRangeFromProp()}watchInitialValue(){this.initializeRangeFromProp()}initializeRangeFromProp(){let e="",t="";if("string"==typeof this.initialValue)try{const a=JSON.parse(this.initialValue);e=a.start,t=a.end}catch(e){console.error("Invalid JSON passed to initialValue")}else"object"==typeof this.initialValue&&null!==this.initialValue&&(e=this.initialValue.start,t=this.initialValue.end);e&&e.includes("/")&&(e=this.parseDDMMYYYYToISO(e)),t&&t.includes("/")&&(t=this.parseDDMMYYYYToISO(t)),e&&(this.startDate=e),t&&(this.endDate=t),(e||t)&&this.emitRangeChange(e,t)}resetRange(){this.startDate="",this.endDate="",this.isSelecting=!0,this.emitRangeChange("","")}emitRangeChange(e,t){const a=e?this.formatToDDMMYYYY(e):"",n=t?this.formatToDDMMYYYY(t):"";this.dateRangeChanged.emit({name:"customDateRange",value:{start:a,end:n}})}handleDateClick(e){const t=new Date(e);this.isSelecting?(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""),this.isSelecting=!1):t>=new Date(this.startDate)?(this.endDate=e,this.emitRangeChange(this.startDate,this.endDate),this.showCalendar=!1,this.isSelecting=!0,this.hoverDate=""):(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""))}changeMonth(e){"prev"===e?(this.currentMonth=0===this.currentMonth?11:this.currentMonth-1,this.currentYear=11===this.currentMonth?this.currentYear-1:this.currentYear):(this.currentMonth=11===this.currentMonth?0:this.currentMonth+1,this.currentYear=0===this.currentMonth?this.currentYear+1:this.currentYear)}formatToDDMMYYYY(e){const t=new Date(e);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`}parseDDMMYYYYToISO(e){const[t,a,n]=e.split("/");return new Date(`${n}-${a}-${t}`).toISOString().split("T")[0]}generateCalendarGrid(e,t){const a=new Date(e,t,1).getDay(),n=new Date(e,t+1,0).getDate(),i=[];for(let e=0;e<a;e++)i.push({date:null,isCurrentMonth:!1});for(let a=1;a<=n;a++){const n=new Date(e,t,a),r=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");i.push({date:`${r}-${s}-${o}`,isCurrentMonth:!0})}for(;i.length<42;)i.push({date:null,isCurrentMonth:!1});return i}getMonthName(e){return new Date(2e3,e).toLocaleString("default",{month:"long"})}renderCalendar(e,t,n){const i=this.generateCalendarGrid(e,t);return a("div",{class:"calendar"},a("div",{class:"calendar-header"},a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("prev")}},"<"),a("span",{class:"month-label"},this.getMonthName(t)," ",e),a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("next")}},">")),a("div",{class:"calendar-grid"},["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>a("div",{class:"calendar-weekday",key:e},e))),i.map(((e,t)=>{var r;if(!e.isCurrentMonth||!e.date)return a("div",{class:"calendar-date empty",key:`empty-${t}`,onClick:e=>e.stopPropagation()});const s=e.date,o=s===this.startDate,d=s===this.endDate,l=this.startDate&&this.endDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<new Date(this.endDate),h=this.startDate&&!this.endDate&&this.hoverDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<=new Date(this.hoverDate),c=null===(r=i[t-1])||void 0===r?void 0:r.date,p=h&&(0===t||!c||this.startDate&&new Date(c)<new Date(this.startDate));return a("div",{class:{"calendar-date":!0,"range-start":o,"range-end":d,inrange:l,hoverrange:h,"range-hover-start":p,"range-hover-end":h&&s===this.hoverDate},onClick:e=>{e.stopPropagation(),n(s)},onMouseEnter:()=>{!this.isSelecting&&this.startDate&&(this.hoverDate=s)},onMouseLeave:()=>{this.hoverDate=""},key:s},new Date(s).getDate())}))))}render(){const e=this.startDate&&this.endDate?`${this.formatToDDMMYYYY(this.startDate)} – ${this.formatToDDMMYYYY(this.endDate)}`:this.startDate?`${this.formatToDDMMYYYY(this.startDate)} –`:this.placeholderText;return a(n,null,a("div",{class:"date-range-input",tabIndex:0,"aria-haspopup":"dialog","aria-expanded":this.showCalendar?"true":"false",ref:e=>this.inputRef=e,onClick:this.handleInputClick},a("span",{class:{"range-text":!0,"is-placeholder":!(this.startDate||this.endDate)}},e),(this.startDate||this.endDate)&&a("button",{class:"clear-btn","aria-label":"Clear",onClick:this.handleClear},"×"),a("span",{class:"calendar-icon","aria-hidden":"true"},a("tttx-icon_1_9_67",{icon:"calendar_month"}))),this.showCalendar&&a("div",{class:"calendar-popup single"},this.renderCalendar(this.currentYear,this.currentMonth,this.handleDateClick.bind(this))))}static get watchers(){return{initialValue:["watchInitialValue"]}}};i.style=':host{display:block;position:relative;font-family:sans-serif}.date-range-input{display:inline-flex;align-items:center;justify-content:space-between;border:1px solid #ccc;padding:8px 4px;border-radius:4px;cursor:pointer;background:white;min-width:220px;width:100%;font-size:14px}.date-range-input .range-text{flex:1;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:15px;padding-left:5px}.date-range-input .range-text.is-placeholder{padding-left:10px;font-size:15px;font-weight:500;color:#212121}.date-range-input .clear-btn{background:none;border:none;font-size:16px;color:#888;margin-left:8px;cursor:pointer}.date-range-input .clear-btn:hover{color:#333}.date-range-input .calendar-icon{margin-left:8px;display:flex;align-items:center;margin-right:5px}.calendar-popup{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;background:white;border:1px solid #ccc;padding:8px 4px;border-radius:4px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);width:auto;min-width:260px}.calendar-popup.single{display:flex;flex-direction:column}.calendar{display:flex;flex-direction:column;width:100%}.calendar .calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5em}.calendar .calendar-header .nav-btn{background:none;border:none;cursor:pointer;font-size:16px;padding:0 8px;color:#333}.calendar .calendar-header .nav-btn:hover{color:#1479c6}.calendar .calendar-header .month-label{font-weight:bold;font-size:14px;color:#333}.calendar .calendar-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:4px}.calendar .calendar-grid .calendar-weekday{font-weight:bold;text-align:center;font-size:12px;padding-bottom:4px;color:#666}.calendar .calendar-grid .calendar-date{text-align:center;padding:0.5em;border-radius:4px;font-size:14px;cursor:pointer;transition:background 0.2s ease;color:#333}.calendar .calendar-grid .calendar-date:hover{background-color:#f0f0f0}.calendar .calendar-grid .calendar-date.range-start,.calendar .calendar-grid .calendar-date.range-end,.calendar .calendar-grid .calendar-date.inrange{background-color:#1479c6;color:white;font-weight:bold}.calendar .calendar-grid .calendar-date.empty{background:transparent;cursor:default}.calendar .calendar-date.hoverrange{position:relative;z-index:1}.calendar .calendar-date.hoverrange::before{content:"";position:absolute;inset:0;border:1px dotted #bdbdbd;background-color:white;z-index:-1;pointer-events:none}.calendar .calendar-date.hoverrange.range-hover-start::before{border-top-left-radius:999px;border-bottom-left-radius:999px;left:0}.calendar .calendar-date.hoverrange.range-hover-end::before{border-top-right-radius:999px;border-bottom-right-radius:999px;right:0}.calendar .calendar-date.hoverrange:first-child{border-top-left-radius:50%;border-bottom-left-radius:50%}.calendar .calendar-date.hoverrange:last-child{border-top-right-radius:50%;border-bottom-right-radius:50%}';export{i as tttx_date_range_picker}
1
+ import{r as e,c as t,h as a,H as n}from"./p-5c9beaf9.js";const i=class{constructor(a){e(this,a),this.dateRangeChanged=t(this,"dateRangeChanged",7),this.handleOutsideClick=e=>{this.showCalendar&&this.inputRef&&!this.inputRef.contains(e.target)&&(this.showCalendar=!1)},this.toggleCalendar=()=>{this.showCalendar=!this.showCalendar},this.handleInputClick=e=>{e.stopPropagation(),this.toggleCalendar()},this.handleClear=e=>{e.stopPropagation(),this.resetRange()},this.initialValue=void 0,this.placeholderText="dd/mm/yyyy - dd/mm/yyyy",this.showCalendar=!1,this.startDate="",this.endDate="",this.currentMonth=(new Date).getMonth(),this.currentYear=(new Date).getFullYear(),this.isSelecting=!0,this.hoverDate=""}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}componentWillLoad(){this.initializeRangeFromProp()}watchInitialValue(){this.initializeRangeFromProp()}initializeRangeFromProp(){let e="",t="";if("string"==typeof this.initialValue)try{const a=JSON.parse(this.initialValue);e=a.start,t=a.end}catch(e){console.error("Invalid JSON passed to initialValue")}else"object"==typeof this.initialValue&&null!==this.initialValue&&(e=this.initialValue.start,t=this.initialValue.end);e&&e.includes("/")&&(e=this.parseDDMMYYYYToISO(e)),t&&t.includes("/")&&(t=this.parseDDMMYYYYToISO(t)),e&&(this.startDate=e),t&&(this.endDate=t),(e||t)&&this.emitRangeChange(e,t)}resetRange(){this.startDate="",this.endDate="",this.isSelecting=!0,this.emitRangeChange("","")}emitRangeChange(e,t){const a=e?this.formatToDDMMYYYY(e):"",n=t?this.formatToDDMMYYYY(t):"";this.dateRangeChanged.emit({name:"customDateRange",value:{start:a,end:n}})}handleDateClick(e){const t=new Date(e);this.isSelecting?(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""),this.isSelecting=!1):t>=new Date(this.startDate)?(this.endDate=e,this.emitRangeChange(this.startDate,this.endDate),this.showCalendar=!1,this.isSelecting=!0,this.hoverDate=""):(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""))}changeMonth(e){"prev"===e?(this.currentMonth=0===this.currentMonth?11:this.currentMonth-1,this.currentYear=11===this.currentMonth?this.currentYear-1:this.currentYear):(this.currentMonth=11===this.currentMonth?0:this.currentMonth+1,this.currentYear=0===this.currentMonth?this.currentYear+1:this.currentYear)}formatToDDMMYYYY(e){const t=new Date(e);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`}parseDDMMYYYYToISO(e){const[t,a,n]=e.split("/");return new Date(`${n}-${a}-${t}`).toISOString().split("T")[0]}generateCalendarGrid(e,t){const a=new Date(e,t,1).getDay(),n=new Date(e,t+1,0).getDate(),i=[];for(let e=0;e<a;e++)i.push({date:null,isCurrentMonth:!1});for(let a=1;a<=n;a++){const n=new Date(e,t,a),r=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");i.push({date:`${r}-${s}-${o}`,isCurrentMonth:!0})}for(;i.length<42;)i.push({date:null,isCurrentMonth:!1});return i}getMonthName(e){return new Date(2e3,e).toLocaleString("default",{month:"long"})}renderCalendar(e,t,n){const i=this.generateCalendarGrid(e,t);return a("div",{class:"calendar"},a("div",{class:"calendar-header"},a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("prev")}},"<"),a("span",{class:"month-label"},this.getMonthName(t)," ",e),a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("next")}},">")),a("div",{class:"calendar-grid"},["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>a("div",{class:"calendar-weekday",key:e},e))),i.map(((e,t)=>{var r;if(!e.isCurrentMonth||!e.date)return a("div",{class:"calendar-date empty",key:`empty-${t}`,onClick:e=>e.stopPropagation()});const s=e.date,o=s===this.startDate,d=s===this.endDate,l=this.startDate&&this.endDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<new Date(this.endDate),h=this.startDate&&!this.endDate&&this.hoverDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<=new Date(this.hoverDate),c=null===(r=i[t-1])||void 0===r?void 0:r.date,p=h&&(0===t||!c||this.startDate&&new Date(c)<new Date(this.startDate));return a("div",{class:{"calendar-date":!0,"range-start":o,"range-end":d,inrange:l,hoverrange:h,"range-hover-start":p,"range-hover-end":h&&s===this.hoverDate},onClick:e=>{e.stopPropagation(),n(s)},onMouseEnter:()=>{!this.isSelecting&&this.startDate&&(this.hoverDate=s)},onMouseLeave:()=>{this.hoverDate=""},key:s},new Date(s).getDate())}))))}render(){const e=this.startDate&&this.endDate?`${this.formatToDDMMYYYY(this.startDate)} – ${this.formatToDDMMYYYY(this.endDate)}`:this.startDate?`${this.formatToDDMMYYYY(this.startDate)} –`:this.placeholderText;return a(n,null,a("div",{class:"date-range-input",tabIndex:0,"aria-haspopup":"dialog","aria-expanded":this.showCalendar?"true":"false",ref:e=>this.inputRef=e,onClick:this.handleInputClick},a("span",{class:{"range-text":!0,"is-placeholder":!(this.startDate||this.endDate)}},e),(this.startDate||this.endDate)&&a("button",{class:"clear-btn","aria-label":"Clear",onClick:this.handleClear},"×"),a("span",{class:"calendar-icon","aria-hidden":"true"},a("tttx-icon_1_9_69",{icon:"calendar_month"}))),this.showCalendar&&a("div",{class:"calendar-popup single"},this.renderCalendar(this.currentYear,this.currentMonth,this.handleDateClick.bind(this))))}static get watchers(){return{initialValue:["watchInitialValue"]}}};i.style=':host{display:block;position:relative;font-family:sans-serif}.date-range-input{display:inline-flex;align-items:center;justify-content:space-between;border:1px solid #ccc;padding:8px 4px;border-radius:4px;cursor:pointer;background:white;min-width:220px;width:100%;font-size:14px}.date-range-input .range-text{flex:1;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:15px;padding-left:5px}.date-range-input .range-text.is-placeholder{padding-left:10px;font-size:15px;font-weight:500;color:#212121}.date-range-input .clear-btn{background:none;border:none;font-size:16px;color:#888;margin-left:8px;cursor:pointer}.date-range-input .clear-btn:hover{color:#333}.date-range-input .calendar-icon{margin-left:8px;display:flex;align-items:center;margin-right:5px}.calendar-popup{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;background:white;border:1px solid #ccc;padding:8px 4px;border-radius:4px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);width:auto;min-width:260px}.calendar-popup.single{display:flex;flex-direction:column}.calendar{display:flex;flex-direction:column;width:100%}.calendar .calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5em}.calendar .calendar-header .nav-btn{background:none;border:none;cursor:pointer;font-size:16px;padding:0 8px;color:#333}.calendar .calendar-header .nav-btn:hover{color:#1479c6}.calendar .calendar-header .month-label{font-weight:bold;font-size:14px;color:#333}.calendar .calendar-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:4px}.calendar .calendar-grid .calendar-weekday{font-weight:bold;text-align:center;font-size:12px;padding-bottom:4px;color:#666}.calendar .calendar-grid .calendar-date{text-align:center;padding:0.5em;border-radius:4px;font-size:14px;cursor:pointer;transition:background 0.2s ease;color:#333}.calendar .calendar-grid .calendar-date:hover{background-color:#f0f0f0}.calendar .calendar-grid .calendar-date.range-start,.calendar .calendar-grid .calendar-date.range-end,.calendar .calendar-grid .calendar-date.inrange{background-color:#1479c6;color:white;font-weight:bold}.calendar .calendar-grid .calendar-date.empty{background:transparent;cursor:default}.calendar .calendar-date.hoverrange{position:relative;z-index:1}.calendar .calendar-date.hoverrange::before{content:"";position:absolute;inset:0;border:1px dotted #bdbdbd;background-color:white;z-index:-1;pointer-events:none}.calendar .calendar-date.hoverrange.range-hover-start::before{border-top-left-radius:999px;border-bottom-left-radius:999px;left:0}.calendar .calendar-date.hoverrange.range-hover-end::before{border-top-right-radius:999px;border-bottom-right-radius:999px;right:0}.calendar .calendar-date.hoverrange:first-child{border-top-left-radius:50%;border-bottom-left-radius:50%}.calendar .calendar-date.hoverrange:last-child{border-top-right-radius:50%;border-bottom-right-radius:50%}';export{i as tttx_date_range_picker}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,H as o}from"./p-c2a82822.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-textarea_1_9_67{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-textarea_1_9_67-h{display:block}label.sc-tttx-textarea_1_9_67{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67{position:relative}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.sc-tttx-textarea_1_9_67{font-family:"Roboto", serif;box-sizing:border-box;width:100%;padding:9px 16px;font-size:16px;line-height:18.752px;border:1px solid #d5d5d5;border-radius:4px;margin-top:8px;resize:none}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.no-label.sc-tttx-textarea_1_9_67{margin-top:0}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.sc-tttx-textarea_1_9_67~.errorBubble.sc-tttx-textarea_1_9_67{font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.sc-tttx-textarea_1_9_67~.errorBubble.sc-tttx-textarea_1_9_67:not(.visible){display:none}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.sc-tttx-textarea_1_9_67~.errorBubble.sc-tttx-textarea_1_9_67 span.sc-tttx-textarea_1_9_67{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.sc-tttx-textarea_1_9_67:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_67 .textarea-container.sc-tttx-textarea_1_9_67 textarea.sc-tttx-textarea_1_9_67:focus-visible{outline:none}label.sc-tttx-textarea_1_9_67 .secondarylabel.sc-tttx-textarea_1_9_67{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_67 .optional.sc-tttx-textarea_1_9_67{color:#757575;font-weight:normal}';export{n as tttx_textarea_1_9_67}
1
+ import{r as t,c as e,h as a,H as o}from"./p-5c9beaf9.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-textarea_1_9_69{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-textarea_1_9_69-h{display:block}label.sc-tttx-textarea_1_9_69{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69{position:relative}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.sc-tttx-textarea_1_9_69{font-family:"Roboto", serif;box-sizing:border-box;width:100%;padding:9px 16px;font-size:16px;line-height:18.752px;border:1px solid #d5d5d5;border-radius:4px;margin-top:8px;resize:none}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.no-label.sc-tttx-textarea_1_9_69{margin-top:0}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.sc-tttx-textarea_1_9_69~.errorBubble.sc-tttx-textarea_1_9_69{font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.sc-tttx-textarea_1_9_69~.errorBubble.sc-tttx-textarea_1_9_69:not(.visible){display:none}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.sc-tttx-textarea_1_9_69~.errorBubble.sc-tttx-textarea_1_9_69 span.sc-tttx-textarea_1_9_69{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.sc-tttx-textarea_1_9_69:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_69 .textarea-container.sc-tttx-textarea_1_9_69 textarea.sc-tttx-textarea_1_9_69:focus-visible{outline:none}label.sc-tttx-textarea_1_9_69 .secondarylabel.sc-tttx-textarea_1_9_69{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_69 .optional.sc-tttx-textarea_1_9_69{color:#757575;font-weight:normal}';export{n as tttx_textarea_1_9_69}
@@ -1 +1 @@
1
- import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-c2a82822.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-icon_1_9_67",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=i("div",{class:"dropdown-selector-chevron"},e);return this.selectedItem?this.selectedItem.html?(t=i("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),i(s,null,t,n)):(t=i("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(o=i("div",{class:"description"},i("p",null,this.selectedItem.description)),n=i("div",{class:"dropdown-selector-chevron-offset"},e)),i(s,null,i("div",{class:"left-wrapper"},t,o),this.clearable&&!this.readOnly&&i("tttx-icon_1_9_67",{class:"input-icon",style:{paddingTop:"5px",cursor:"pointer"},icon:"close_small",onClick:this.cleanSelectedItem.bind(this)}),n)):(t=i("div",{class:"placeholder"},this.placeholder),i(s,null,t,n))}renderDropdownOptions(t){let o=!1;const e=[],n=[];for(const i of t)o=o||!0===i.prioritise,(!this.searchEnabled||this.useExternalFiltering||this.useExternalPaginatedFiltering||-1!==i.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()))&&(!0!==i.prioritise?n.push(i):e.push(i));return i(s,null,o&&e.length>0&&i(s,null,i("tttx-tag_1_9_67",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),e.map((t=>this.dropdownOption(t)))),n.length>0&&i(s,null,o&&i("tttx-tag_1_9_67",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=l.sanitize(t.html,d);return i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,i("div",{class:"description-dd"},i("p",null,t.description))):i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const o=t.target.value;(this.useExternalFiltering||this.useExternalPaginatedFiltering)&&(clearTimeout(this.searchFilterTimeout),this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,o)),this.searchTerm=o}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector").getBoundingClientRect(),o=window.innerHeight,i=window.innerWidth;let s=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(s+=52);const e=o-t.bottom,n=t.top;let l,d,r;this._optionsData.length||(s=200),e>=s?(l=t.bottom+"px",d="",r=s+"px"):n>=s?(l="",d=o-t.top+"px",r=s+"px"):(l=s-n+"px",d=s-e+"px",r=s+"px"),this.bodyOffset={position:"fixed",left:Math.max(t.left,0)+"px",width:Math.min(t.width,i-t.left-16)+"px",top:l,bottom:d,maxHeight:r,zIndex:"10",overflowY:"auto"}}onSelectScroll(t){const o=t.target;this.useExternalPaginatedFiltering&&o.scrollHeight-o.scrollTop-o.offsetHeight<=5&&!this.loadingNextExternalPage&&!this._isAllExternalDataLoaded&&(this.loadingNextExternalPage=!0,clearTimeout(this.selectEndReached),this.selectEndReached=setTimeout((t=>{this.selectEndReachedEvent.emit(t)}),500,this.searchTerm))}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"",o=this.readOnly?"dropdown-read-only":"";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",t,o].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_67",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),i("div",{class:"dropdown-options-list",onScroll:this.onSelectScroll.bind(this)},!this.isLoading&&this.renderDropdownOptions(this._optionsData),(this.isLoading||this.loadingNextExternalPage)&&i("tttx-loading-spinner_1_9_67",{class:"loading-style"})))),this.showErrorBubble&&i("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},i("tttx-icon_1_9_67",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"],isAllExternalDataLoaded:["updateAllLoadedBool"]}}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:fixed;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}';export{r as tttx_select_box_1_9_67}
1
+ import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-5c9beaf9.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-icon_1_9_69",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=i("div",{class:"dropdown-selector-chevron"},e);return this.selectedItem?this.selectedItem.html?(t=i("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),i(s,null,t,n)):(t=i("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(o=i("div",{class:"description"},i("p",null,this.selectedItem.description)),n=i("div",{class:"dropdown-selector-chevron-offset"},e)),i(s,null,i("div",{class:"left-wrapper"},t,o),this.clearable&&!this.readOnly&&i("tttx-icon_1_9_69",{class:"input-icon",style:{paddingTop:"5px",cursor:"pointer"},icon:"close_small",onClick:this.cleanSelectedItem.bind(this)}),n)):(t=i("div",{class:"placeholder"},this.placeholder),i(s,null,t,n))}renderDropdownOptions(t){let o=!1;const e=[],n=[];for(const i of t)o=o||!0===i.prioritise,(!this.searchEnabled||this.useExternalFiltering||this.useExternalPaginatedFiltering||-1!==i.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()))&&(!0!==i.prioritise?n.push(i):e.push(i));return i(s,null,o&&e.length>0&&i(s,null,i("tttx-tag_1_9_69",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),e.map((t=>this.dropdownOption(t)))),n.length>0&&i(s,null,o&&i("tttx-tag_1_9_69",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=l.sanitize(t.html,d);return i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,i("div",{class:"description-dd"},i("p",null,t.description))):i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const o=t.target.value;(this.useExternalFiltering||this.useExternalPaginatedFiltering)&&(clearTimeout(this.searchFilterTimeout),this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,o)),this.searchTerm=o}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector").getBoundingClientRect(),o=window.innerHeight,i=window.innerWidth;let s=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(s+=52);const e=o-t.bottom,n=t.top;let l,d,r;this._optionsData.length||(s=200),e>=s?(l=t.bottom+"px",d="",r=s+"px"):n>=s?(l="",d=o-t.top+"px",r=s+"px"):(l=s-n+"px",d=s-e+"px",r=s+"px"),this.bodyOffset={position:"fixed",left:Math.max(t.left,0)+"px",width:Math.min(t.width,i-t.left-16)+"px",top:l,bottom:d,maxHeight:r,zIndex:"10",overflowY:"auto"}}onSelectScroll(t){const o=t.target;this.useExternalPaginatedFiltering&&o.scrollHeight-o.scrollTop-o.offsetHeight<=5&&!this.loadingNextExternalPage&&!this._isAllExternalDataLoaded&&(this.loadingNextExternalPage=!0,clearTimeout(this.selectEndReached),this.selectEndReached=setTimeout((t=>{this.selectEndReachedEvent.emit(t)}),500,this.searchTerm))}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"",o=this.readOnly?"dropdown-read-only":"";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",t,o].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_69",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),i("div",{class:"dropdown-options-list",onScroll:this.onSelectScroll.bind(this)},!this.isLoading&&this.renderDropdownOptions(this._optionsData),(this.isLoading||this.loadingNextExternalPage)&&i("tttx-loading-spinner_1_9_69",{class:"loading-style"})))),this.showErrorBubble&&i("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},i("tttx-icon_1_9_69",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"],isAllExternalDataLoaded:["updateAllLoadedBool"]}}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:fixed;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}';export{r as tttx_select_box_1_9_69}
@@ -1 +1 @@
1
- import{r as o,h as t,H as e,g as i}from"./p-c2a82822.js";const r=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey",this.size=24}updateIconSize(o){this.element.style.setProperty("--icon-size",o)}componentWillRender(){this.updateIconSize(this.size+"px")}render(){return this.color.startsWith("#")?t(e,null,t("span",{class:"material-symbols-rounded",style:{color:this.color}},this.icon)):t(e,null,t("span",{class:`material-symbols-rounded ${this.color}`},this.icon))}get element(){return i(this)}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{--icon-size:24;display:inline-block;cursor:default;user-select:none}.material-symbols-rounded{font-size:var(--icon-size)}.icon-size{width:var(--icon-size);height:var(--icon-size)}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}';export{r as tttx_icon_1_9_67}
1
+ import{r as o,h as t,H as e,g as i}from"./p-5c9beaf9.js";const r=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey",this.size=24}updateIconSize(o){this.element.style.setProperty("--icon-size",o)}componentWillRender(){this.updateIconSize(this.size+"px")}render(){return this.color.startsWith("#")?t(e,null,t("span",{class:"material-symbols-rounded",style:{color:this.color}},this.icon)):t(e,null,t("span",{class:`material-symbols-rounded ${this.color}`},this.icon))}get element(){return i(this)}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{--icon-size:24;display:inline-block;cursor:default;user-select:none}.material-symbols-rounded{font-size:var(--icon-size)}.icon-size{width:var(--icon-size);height:var(--icon-size)}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}';export{r as tttx_icon_1_9_69}
@@ -1 +1 @@
1
- import{r as t,h as i,H as e}from"./p-c2a82822.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.leftData=void 0,this.rightData=void 0,this.rightSubtext=void 0,this.iconStyle=void 0,this.cardType=void 0,this.chartConfig=void 0,this._chartConfig=void 0,this.chartRender=void 0}chartConfigChanged(t){this._chartConfig=JSON.parse(t),this.chartRender=!0}componentDidLoad(){this.chartConfig&&(this._chartConfig=JSON.parse(this.chartConfig),this.chartRender=!0)}renderIcon(t){switch(t){case"up":return i("tttx-icon_1_9_67",{size:24,icon:"arrow_circle_up",color:"green"});case"down":return i("tttx-icon_1_9_67",{size:24,icon:"arrow_circle_down",color:"darkred"});default:return null}}render(){return i(e,null,i("div",{class:"datacard"},this.cardTitle&&i("h2",{style:{position:"relative",top:"0",left:"0",height:"40px"}},this.cardTitle),this.chartRender&&"chart"===this.cardType&&i("tttx-graph_1_9_67",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"},class:"chart","chart-data":this._chartConfig.chartData,"chart-text":this._chartConfig.chartText,"chart-type":this._chartConfig.chartType}),i("div",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"}},i("div",{class:"lower"},i("div",{class:this.rightData&&"undefined"!==this.rightData?"left":"centered"},this.leftData),this.rightData&&"undefined"!==this.rightData&&i("div",{class:"right"},i("div",{class:"flex"},i("div",{class:"righticon"},this.renderIcon(this.iconStyle)),i("div",{class:"rightdata"},this.rightData)),i("div",{class:"subtext"},this.rightSubtext))))))}static get watchers(){return{chartConfig:["chartConfigChanged"]}}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block;width:100%;height:100%}.datacard{font-family:"Roboto", Arial, Verdana, Tahoma, sans-serif;box-sizing:border-box;width:100%;height:100%;background-color:white;border-radius:4px;padding:0px 16px 16px 16px;margin-right:16px;margin-bottom:16px}.chart{width:100%;height:100%}h2{box-sizing:border-box;margin:0;padding:16px;width:100%;font-size:18px;font-weight:500;line-height:21.09px;text-align:left;height:40px}.lower{width:100%;display:flex}.right{box-sizing:border-box;flex-grow:1;border-left:1px solid #D5D5D5;padding-left:24px;font-size:24px;font-weight:500;line-height:28.13px;text-align:left}.flex{display:flex;justify-content:flex-start}.righticon{margin-top:1px;margin-right:4px;height:24px}.left{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:right;margin-right:20px;padding-left:40px}.centered{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:center;margin:0;padding-left:20px}.subtext{font-size:14px;font-weight:400;line-height:16.41px;text-align:left;color:#757575}';export{o as tttx_datacard_1_9_67}
1
+ import{r as t,h as i,H as e}from"./p-5c9beaf9.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.leftData=void 0,this.rightData=void 0,this.rightSubtext=void 0,this.iconStyle=void 0,this.cardType=void 0,this.chartConfig=void 0,this._chartConfig=void 0,this.chartRender=void 0}chartConfigChanged(t){this._chartConfig=JSON.parse(t),this.chartRender=!0}componentDidLoad(){this.chartConfig&&(this._chartConfig=JSON.parse(this.chartConfig),this.chartRender=!0)}renderIcon(t){switch(t){case"up":return i("tttx-icon_1_9_69",{size:24,icon:"arrow_circle_up",color:"green"});case"down":return i("tttx-icon_1_9_69",{size:24,icon:"arrow_circle_down",color:"darkred"});default:return null}}render(){return i(e,null,i("div",{class:"datacard"},this.cardTitle&&i("h2",{style:{position:"relative",top:"0",left:"0",height:"40px"}},this.cardTitle),this.chartRender&&"chart"===this.cardType&&i("tttx-graph_1_9_69",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"},class:"chart","chart-data":this._chartConfig.chartData,"chart-text":this._chartConfig.chartText,"chart-type":this._chartConfig.chartType}),i("div",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"}},i("div",{class:"lower"},i("div",{class:this.rightData&&"undefined"!==this.rightData?"left":"centered"},this.leftData),this.rightData&&"undefined"!==this.rightData&&i("div",{class:"right"},i("div",{class:"flex"},i("div",{class:"righticon"},this.renderIcon(this.iconStyle)),i("div",{class:"rightdata"},this.rightData)),i("div",{class:"subtext"},this.rightSubtext))))))}static get watchers(){return{chartConfig:["chartConfigChanged"]}}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block;width:100%;height:100%}.datacard{font-family:"Roboto", Arial, Verdana, Tahoma, sans-serif;box-sizing:border-box;width:100%;height:100%;background-color:white;border-radius:4px;padding:0px 16px 16px 16px;margin-right:16px;margin-bottom:16px}.chart{width:100%;height:100%}h2{box-sizing:border-box;margin:0;padding:16px;width:100%;font-size:18px;font-weight:500;line-height:21.09px;text-align:left;height:40px}.lower{width:100%;display:flex}.right{box-sizing:border-box;flex-grow:1;border-left:1px solid #D5D5D5;padding-left:24px;font-size:24px;font-weight:500;line-height:28.13px;text-align:left}.flex{display:flex;justify-content:flex-start}.righticon{margin-top:1px;margin-right:4px;height:24px}.left{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:right;margin-right:20px;padding-left:40px}.centered{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:center;margin:0;padding-left:20px}.subtext{font-size:14px;font-weight:400;line-height:16.41px;text-align:left;color:#757575}';export{o as tttx_datacard_1_9_69}
@@ -1 +1 @@
1
- import{r as t,h as e}from"./p-c2a82822.js";import{C as i,D as s,L as o}from"./p-39bb618e.js";const n={id:"gaugeLabel",beforeDatasetsDraw(t){const{ctx:e}=t;e.save();const i=t.getDatasetMeta(0).data[0].x,s=t.getDatasetMeta(0).data[0].y-12;e.font="bold 20px sans-serif",e.fillStyle="rgba(0, 0, 0, 1)",e.textAlign="center",e.textBaseline="middle",e.fillText(t.config.options.gaugeText||"",i,s)}};i.register(s,o,n);const a=class{constructor(e){t(this,e),this.chartConfig=void 0,this.chartType=void 0,this.chartData=void 0,this.chartText=void 0,this.formattedData=void 0}componentDidLoad(){if(this.formattedData=JSON.parse(this.chartData),!this.chartConfig)switch(this.chartType){case"gauge":this.chartConfig=this.getGaugeConfig(),i.register(n);break;case"line":console.log("line"),this.chartConfig=this.getLineConfig(),console.log(this.chartConfig)}new i(this.canvasElement,JSON.parse(this.chartConfig))}render(){return e("div",{class:"chart-container",style:{position:"relative",height:"100%",width:"100%"}},e("canvas",{ref:t=>this.canvasElement=t}))}getLineConfig(){return console.log(this.formattedData),JSON.stringify({type:"line",data:{datasets:[{fill:!1,borderColor:"#00187C",tension:.1,data:this.formattedData}]},options:{maintainAspectRatio:!1,responsive:!0,plugins:{legend:{display:!1}},scales:{x:{type:"linear",position:"bottom"}}}})}getGaugeConfig(){this.formattedData.push(100-this.formattedData[0]);const t={type:"doughnut",data:{datasets:[{data:this.formattedData,backgroundColor:[this.getRAGColour(this.formattedData[0]),"#F0F0F0"],borderWidth:0,hoverBorderWidth:0}]},options:{maintainAspectRatio:!1,responsive:!0,rotation:270,circumference:180,cutout:"60%",gaugeText:this.chartText,plugins:{legend:{display:!1},tooltip:{enabled:!1},hover:{enabled:!1}}}};return JSON.stringify(t)}getRAGColour(t){return t<50?"#DC0000":t<100?"#F59500":100===t?"#A2BB31":"#F0F0F0"}};a.style=":host{display:block;width:100%;height:100%}.chart-container{display:flex;align-items:center;justify-content:center}.overlay-text{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;font-size:24px;font-weight:bold;text-shadow:2px 2px 4px rgba(0, 0, 0, 0.7);pointer-events:none;}";export{a as tttx_graph_1_9_67}
1
+ import{r as t,h as e}from"./p-5c9beaf9.js";import{C as i,D as s,L as o}from"./p-fa01bbb2.js";const n={id:"gaugeLabel",beforeDatasetsDraw(t){const{ctx:e}=t;e.save();const i=t.getDatasetMeta(0).data[0].x,s=t.getDatasetMeta(0).data[0].y-12;e.font="bold 20px sans-serif",e.fillStyle="rgba(0, 0, 0, 1)",e.textAlign="center",e.textBaseline="middle",e.fillText(t.config.options.gaugeText||"",i,s)}};i.register(s,o,n);const a=class{constructor(e){t(this,e),this.chartConfig=void 0,this.chartType=void 0,this.chartData=void 0,this.chartText=void 0,this.formattedData=void 0}componentDidLoad(){if(this.formattedData=JSON.parse(this.chartData),!this.chartConfig)switch(this.chartType){case"gauge":this.chartConfig=this.getGaugeConfig(),i.register(n);break;case"line":console.log("line"),this.chartConfig=this.getLineConfig(),console.log(this.chartConfig)}new i(this.canvasElement,JSON.parse(this.chartConfig))}render(){return e("div",{class:"chart-container",style:{position:"relative",height:"100%",width:"100%"}},e("canvas",{ref:t=>this.canvasElement=t}))}getLineConfig(){return console.log(this.formattedData),JSON.stringify({type:"line",data:{datasets:[{fill:!1,borderColor:"#00187C",tension:.1,data:this.formattedData}]},options:{maintainAspectRatio:!1,responsive:!0,plugins:{legend:{display:!1}},scales:{x:{type:"linear",position:"bottom"}}}})}getGaugeConfig(){this.formattedData.push(100-this.formattedData[0]);const t={type:"doughnut",data:{datasets:[{data:this.formattedData,backgroundColor:[this.getRAGColour(this.formattedData[0]),"#F0F0F0"],borderWidth:0,hoverBorderWidth:0}]},options:{maintainAspectRatio:!1,responsive:!0,rotation:270,circumference:180,cutout:"60%",gaugeText:this.chartText,plugins:{legend:{display:!1},tooltip:{enabled:!1},hover:{enabled:!1}}}};return JSON.stringify(t)}getRAGColour(t){return t<50?"#DC0000":t<100?"#F59500":100===t?"#A2BB31":"#F0F0F0"}};a.style=":host{display:block;width:100%;height:100%}.chart-container{display:flex;align-items:center;justify-content:center}.overlay-text{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;font-size:24px;font-weight:bold;text-shadow:2px 2px 4px rgba(0, 0, 0, 0.7);pointer-events:none;}";export{a as tttx_graph_1_9_69}
@@ -1 +1 @@
1
- import{r as o,c as i,h as t,g as e}from"./p-c2a82822.js";const n={critical:{iconName:"report",iconColor:"red"},info:{iconName:"info",iconColor:"blue"},success:{iconName:"check_circle",iconColor:"green"},warning:{iconName:"warning",iconColor:"orange"}},s=class{constructor(t){o(this,t),this.closeButtonClick=i(this,"closeButtonClick",6),this.header=void 0,this.type=void 0,this.size="regular",this.open=!1,this.allowOverflow=!1,this.closeEnabled=!0,this.elementSize=void 0}handleResize(){this.elementSize=window.innerWidth<698?"mobile":this.size}emitDialogClose(){this.closeButtonClick.emit()}componentDidLoad(){this.dialog.addEventListener("close",this.emitDialogClose.bind(this))}onCloseClickHandler(){this.dialog.close()}headerIconDetails(o){return o?n[this.type]:{iconName:void 0,iconColor:void 0}}renderHeader(){const o=void 0!==this.type,{iconName:i,iconColor:e}=this.headerIconDetails(o);return t("div",{class:`padding header ${this.type||""}`},o&&t("tttx-icon_1_9_67",{class:"icon",icon:i,color:e}),t("h3",{class:"title",title:this.header},this.header),this.closeEnabled&&t("tttx-button_1_9_67",{class:"align-right close-button",design:"borderless-circle",icon:"close",color:"black",notext:!0,onClick:()=>this.onCloseClickHandler()}))}body(){return t("div",{class:"body "+(this.allowOverflow?"":"overflow-hidden")},t("span",{class:"body-content"},t("slot",null)))}footer(){if(this.el.querySelector('[slot="buttons"]'))return t("div",{class:"padding footer"},t("div",{class:"align-right"},t("slot",{name:"buttons"})))}componentDidRender(){this.open?this.dialog.open||this.dialog.showModal():this.dialog.close()}componentWillLoad(){this.handleResize()}render(){return t("dialog",{ref:o=>this.dialog=o,class:`dialog-box ${this.allowOverflow?"overflow-visible":""} ${this.elementSize}`},t("div",{class:"contents"},this.renderHeader(),this.body(),this.footer()))}get el(){return e(this)}};s.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d;padding:0}.dialog-box.small{width:400px;min-height:200px}.dialog-box.regular{width:600px;min-height:200px}.dialog-box.large{width:900px;min-height:200px}.dialog-box.mobile{max-width:424px;width:calc(100vw - 20px)}.overflow-visible{overflow-y:auto}.overflow-hidden{overflow:hidden}dialog::backdrop{background-color:#75757580}.clickable{cursor:pointer}.contents{display:flex;flex-direction:column;min-height:inherit}.padding{padding:8px 16px}.align-right{margin-left:auto;display:flex}.header{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;align-items:center;height:36px;position:sticky;top:0;background:white;z-index:2}.title{font-size:18;font-weight:500;font-family:"Roboto", serif;text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.icon{padding-right:8px;width:24px;height:24px}.icon-close{width:24px;height:24px}.body-content{font-size:16;font-weight:400;font-family:"Roboto", serif}.body{text-overflow:ellipsis;padding:16px}.footer{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px;position:sticky;background:white;bottom:0}::slotted([slot=buttons]){display:flex;gap:8px}.header.info{border-bottom:1px solid #1479c6}.header.success{border-bottom:1px solid #a2bb31}.header.warning{border-bottom:1px solid #f59500}.header.critical{border-bottom:1px solid #dc0000}';export{s as tttx_dialog_1_9_67}
1
+ import{r as o,c as i,h as t,g as e}from"./p-5c9beaf9.js";const n={critical:{iconName:"report",iconColor:"red"},info:{iconName:"info",iconColor:"blue"},success:{iconName:"check_circle",iconColor:"green"},warning:{iconName:"warning",iconColor:"orange"}},s=class{constructor(t){o(this,t),this.closeButtonClick=i(this,"closeButtonClick",6),this.header=void 0,this.type=void 0,this.size="regular",this.open=!1,this.allowOverflow=!1,this.closeEnabled=!0,this.elementSize=void 0}handleResize(){this.elementSize=window.innerWidth<698?"mobile":this.size}emitDialogClose(){this.closeButtonClick.emit()}componentDidLoad(){this.dialog.addEventListener("close",this.emitDialogClose.bind(this))}onCloseClickHandler(){this.dialog.close()}headerIconDetails(o){return o?n[this.type]:{iconName:void 0,iconColor:void 0}}renderHeader(){const o=void 0!==this.type,{iconName:i,iconColor:e}=this.headerIconDetails(o);return t("div",{class:`padding header ${this.type||""}`},o&&t("tttx-icon_1_9_69",{class:"icon",icon:i,color:e}),t("h3",{class:"title",title:this.header},this.header),this.closeEnabled&&t("tttx-button_1_9_69",{class:"align-right close-button",design:"borderless-circle",icon:"close",color:"black",notext:!0,onClick:()=>this.onCloseClickHandler()}))}body(){return t("div",{class:"body "+(this.allowOverflow?"":"overflow-hidden")},t("span",{class:"body-content"},t("slot",null)))}footer(){if(this.el.querySelector('[slot="buttons"]'))return t("div",{class:"padding footer"},t("div",{class:"align-right"},t("slot",{name:"buttons"})))}componentDidRender(){this.open?this.dialog.open||this.dialog.showModal():this.dialog.close()}componentWillLoad(){this.handleResize()}render(){return t("dialog",{ref:o=>this.dialog=o,class:`dialog-box ${this.allowOverflow?"overflow-visible":""} ${this.elementSize}`},t("div",{class:"contents"},this.renderHeader(),this.body(),this.footer()))}get el(){return e(this)}};s.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d;padding:0}.dialog-box.small{width:400px;min-height:200px}.dialog-box.regular{width:600px;min-height:200px}.dialog-box.large{width:900px;min-height:200px}.dialog-box.mobile{max-width:424px;width:calc(100vw - 20px)}.overflow-visible{overflow-y:auto}.overflow-hidden{overflow:hidden}dialog::backdrop{background-color:#75757580}.clickable{cursor:pointer}.contents{display:flex;flex-direction:column;min-height:inherit}.padding{padding:8px 16px}.align-right{margin-left:auto;display:flex}.header{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;align-items:center;height:36px;position:sticky;top:0;background:white;z-index:2}.title{font-size:18;font-weight:500;font-family:"Roboto", serif;text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.icon{padding-right:8px;width:24px;height:24px}.icon-close{width:24px;height:24px}.body-content{font-size:16;font-weight:400;font-family:"Roboto", serif}.body{text-overflow:ellipsis;padding:16px}.footer{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px;position:sticky;background:white;bottom:0}::slotted([slot=buttons]){display:flex;gap:8px}.header.info{border-bottom:1px solid #1479c6}.header.success{border-bottom:1px solid #a2bb31}.header.warning{border-bottom:1px solid #f59500}.header.critical{border-bottom:1px solid #dc0000}';export{s as tttx_dialog_1_9_69}
@@ -0,0 +1,2 @@
1
+ let e,t,n,l=!1,o=!1,s=!1,i=!1;const c=e=>{const t=new URL(e,ye.t);return t.origin!==me.location.origin?t.href:t.pathname},r="http://www.w3.org/1999/xlink",f={},a=e=>"object"==(e=typeof e)||"function"===e;function u(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const d=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,c=!1;const r=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!a(l))&&(l+=""),i&&c?r[r.length-1].l+=l:r.push(i?$(null,l):l),c=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,p);const u=$(e,null);return u.o=t,r.length>0&&(u.i=r),u.u=o,u.$=s,u},$=(e,t)=>({m:0,p:e,l:t,h:null,i:null,o:null,u:null,$:null}),m={},p={forEach:(e,t)=>e.map(y).forEach(t),map:(e,t)=>e.map(y).map(t).map(h)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.$,vtag:e.p,vtext:e.l}),h=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=$(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.$=e.vname,t},b=e=>ie(e).v,v=(e,t,n)=>{const l=b(e);return{emit:e=>w(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const l=ye.ce(t,n);return e.dispatchEvent(l),l},k=new WeakMap,g=e=>"sc-"+e.k,S=(e,t,n,l,o,s)=>{if(n!==l){let i=fe(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=C(n),s=C(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const f=a(l);if((i||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,u=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(r,t):e.removeAttribute(t)):(!i||4&s||o)&&!f&&(l=!0===l?"":l,u?e.setAttributeNS(r,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):fe(me,c)?c.slice(2):c[2]+t.slice(3),n&&ye.rel(e,t,n,!1),l&&ye.ael(e,t,l,!1)}},j=/\s/,C=e=>e?e.split(j):[],M=(e,t,n,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,s=e&&e.o||f,i=t.o||f;for(l in s)l in i||S(o,l,s[l],void 0,n,t.m);for(l in i)S(o,l,s[l],i[l],n,t.m)},O=(o,i,c,r)=>{const f=i.i[c];let a,u,d,$=0;if(l||(s=!0,"slot"===f.p&&(e&&r.classList.add(e+"-s"),f.m|=f.i?2:1)),null!==f.l)a=f.h=pe.createTextNode(f.l);else if(1&f.m)a=f.h=pe.createTextNode("");else if(a=f.h=pe.createElement(2&f.m?"slot-fb":f.p),M(null,f,!1),null!=e&&a["s-si"]!==e&&a.classList.add(a["s-si"]=e),f.i)for($=0;$<f.i.length;++$)u=O(o,f,$,a),u&&a.appendChild(u);return a["s-hn"]=n,3&f.m&&(a["s-sr"]=!0,a["s-cr"]=t,a["s-sn"]=f.$||"",d=o&&o.i&&o.i[c],d&&d.p===f.p&&o.h&&R(o.h,!1)),a},R=(e,t)=>{ye.m|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(E(o).insertBefore(o,T(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&R(o,t)}ye.m&=-2},x=(e,t,l,o,s,i)=>{let c,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=O(null,l,s,e),c&&(o[s].h=c,r.insertBefore(c,T(t))))},L=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.h,D(l),o=!0,s["s-ol"]?s["s-ol"].remove():R(s,!0),s.remove())},P=(e,t)=>e.p===t.p&&("slot"===e.p?e.$===t.$:e.u===t.u),T=e=>e&&e["s-ol"]||e,E=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const n=t.h=e.h,l=e.i,o=t.i,s=t.l;let i;null===s?("slot"===t.p||M(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,f=0,a=t.length-1,u=t[0],d=t[a],$=l.length-1,m=l[0],p=l[$];for(;i<=a&&c<=$;)if(null==u)u=t[++i];else if(null==d)d=t[--a];else if(null==m)m=l[++c];else if(null==p)p=l[--$];else if(P(u,m))N(u,m),u=t[++i],m=l[++c];else if(P(d,p))N(d,p),d=t[--a],p=l[--$];else if(P(u,p))"slot"!==u.p&&"slot"!==p.p||R(u.h.parentNode,!1),N(u,p),e.insertBefore(u.h,d.h.nextSibling),u=t[++i],p=l[--$];else if(P(d,m))"slot"!==u.p&&"slot"!==p.p||R(d.h.parentNode,!1),N(d,m),e.insertBefore(d.h,u.h),d=t[--a],m=l[++c];else{for(r=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].u&&t[f].u===m.u){r=f;break}r>=0?(s=t[r],s.p!==m.p?o=O(t&&t[c],n,r,e):(N(s,m),t[r]=void 0,o=s.h),m=l[++c]):(o=O(t&&t[c],n,c,e),m=l[++c]),o&&E(u.h).insertBefore(o,T(u.h))}i>a?x(e,null==l[$+1]?null:l[$+1].h,n,l,c,$):c>$&&L(t,i,a)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),x(n,null,t,o,0,o.length-1)):null!==l&&L(l,0,l.length-1)):(i=n["s-cr"])?i.parentNode.textContent=s:e.l!==s&&(n.data=s)},W=e=>{const t=e.childNodes;let n,l,o,s,i,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===c&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}W(n)}},F=[],U=e=>{let t,n,l,s,i,c,r=0;const f=e.childNodes,a=f.length;for(;r<a;r++){if(t=f[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(A(n,s)?(i=F.find((e=>e.g===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.S=t:F.push({S:t,g:n}),n["s-sr"]&&F.map((e=>{A(e.g,n["s-sn"])&&(i=F.find((e=>e.g===n)),i&&!e.S&&(e.S=i.S))}))):F.some((e=>e.g===n))||F.push({g:n}));1===t.nodeType&&U(t)}},A=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,D=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(D)},H=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},q=(e,t)=>{if(e.m|=16,!(4&e.m))return H(e,e.C),Ce((()=>V(e,t)));e.m|=512},V=(e,t)=>{const n=e.M;let l;return t&&(e.m|=256,e.O&&(e.O.map((([e,t])=>I(n,e,t))),e.O=null),l=I(n,"componentWillLoad")),l=J(l,(()=>I(n,"componentWillRender"))),J(l,(()=>_(e,n,t)))},_=async(e,t,n)=>{const l=e.v,o=l["s-rc"];n&&(e=>{const t=e.R,n=e.v,l=t.m,o=((e,t)=>{var n;let l=g(t);const o=$e.get(l);if(e=11===e.nodeType?e:pe,o)if("string"==typeof o){let t,s=k.get(e=e.head||e);if(s||k.set(e,s=new Set),!s.has(l)){{t=pe.createElement("style"),t.innerHTML=o;const l=null!==(n=ye.L)&&void 0!==n?n:u(pe);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);z(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>B(e);0===t.length?n():(Promise.all(t).then(n),e.m|=4,t.length=0)}},z=(i,c)=>{try{c=c.render(),i.m&=-17,i.m|=2,((i,c)=>{const r=i.v,f=i.R,a=i.P||$(null,null),u=(e=>e&&e.p===m)(c)?c:d(null,null,c);if(n=r.tagName,f.T&&(u.o=u.o||{},f.T.map((([e,t])=>u.o[t]=r[e]))),u.p=null,u.m|=4,i.P=u,u.h=a.h=r.shadowRoot||r,e=r["s-sc"],t=r["s-cr"],l=0!=(1&f.m),o=!1,N(a,u),ye.m|=1,s){let e,t,n,l,o,s;U(u.h);let i=0;for(;i<F.length;i++)e=F[i],t=e.g,t["s-ol"]||(n=pe.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<F.length;i++)if(e=F[i],t=e.g,e.S){for(l=e.S.parentNode,o=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&W(u.h),ye.m&=-2,F.length=0})(i,c)}catch(e){ae(e,i.v)}return null},B=e=>{const t=e.v,n=e.M,l=e.C;I(n,"componentDidRender"),64&e.m||(e.m|=64,K(t),I(n,"componentDidLoad"),e.N(t),l||G()),e.W(t),e.j&&(e.j(),e.j=void 0),512&e.m&&je((()=>q(e,!1))),e.m&=-517},G=()=>{K(pe.documentElement),je((()=>w(me,"appload",{detail:{namespace:"tttx"}})))},I=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ae(e)}},J=(e,t)=>e&&e.then?e.then(t):t(),K=e=>e.classList.add("hydrated"),Q=(e,t,n)=>{if(t.F){e.watchers&&(t.U=e.watchers);const l=Object.entries(t.F),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>ie(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ie(e),s=o.v,i=o.A.get(t),c=o.m,r=o.M;if(n=((e,t)=>null==e||a(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.F[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.A.set(t,n),r)){if(l.U&&128&c){const e=l.U[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){ae(e,s)}}))}2==(18&c)&&q(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=ie(this);return n.D.then((()=>n.M[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){ye.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.T.push([e,o]),o}))}}return e},X=e=>{I(e,"connectedCallback")},Y=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=me.customElements,i=pe.head,c=i.querySelector("meta[charset]"),r=pe.createElement("style"),f=[];let a,d=!0;Object.assign(ye,t),ye.t=new URL(t.resourcesUrl||"./",pe.baseURI).href,e.map((e=>{e[1].map((n=>{const i={m:n[0],k:n[1],F:n[2],H:n[3]};i.F=n[2],i.H=n[3],i.T=[],i.U={};const c=t.transformTagName?t.transformTagName(i.k):i.k,r=class extends HTMLElement{constructor(e){super(e),re(e=this,i),1&i.m&&e.attachShadow({mode:"open"})}connectedCallback(){a&&(clearTimeout(a),a=null),d?f.push(this):ye.jmp((()=>(e=>{if(0==(1&ye.m)){const t=ie(e),n=t.R,l=()=>{};if(1&t.m)ee(e,t,n.H),X(t.M);else{t.m|=1,12&n.m&&(e=>{const t=e["s-cr"]=pe.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.C=n);break}}n.F&&Object.entries(n.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.m)){{if(t.m|=32,(o=de(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.U=o.watchers,Q(o,n,2),o.isProxied=!0);const e=()=>{};t.m|=8;try{new o(t)}catch(e){ae(e)}t.m&=-9,t.m|=128,e(),X(t.M)}if(o.style){let e=o.style;const t=g(n);if(!$e.has(t)){const l=()=>{};((e,t,n)=>{let l=$e.get(e);be&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,$e.set(e,l)})(t,e,!!(1&n.m)),l()}}}const s=t.C,i=()=>q(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){ye.jmp((()=>(()=>{if(0==(1&ye.m)){const e=ie(this),t=e.M;e.q&&(e.q.map((e=>e())),e.q=void 0),I(t,"disconnectedCallback")}})()))}componentOnReady(){return ie(this).V}};i._=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,Q(r,i,1)))}))}));{r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles","");const e=null!==(n=ye.L)&&void 0!==n?n:u(pe);null!=e&&r.setAttribute("nonce",e),i.insertBefore(r,c?c.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):ye.jmp((()=>a=setTimeout(G,30)))},Z=(e,t)=>t,ee=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ne(e,n),i=te(t,o),c=le(n);ye.ael(s,l,i,c),(t.q=t.q||[]).push((()=>ye.rel(s,l,i,c)))}))},te=(e,t)=>n=>{try{256&e.m?e.M[t](n):(e.O=e.O||[]).push([t,n])}catch(e){ae(e)}},ne=(e,t)=>4&t?pe:8&t?me:e,le=e=>0!=(2&e),oe=e=>ye.L=e,se=new WeakMap,ie=e=>se.get(e),ce=(e,t)=>se.set(t.M=e,t),re=(e,t)=>{const n={m:0,v:e,R:t,A:new Map};return n.D=new Promise((e=>n.W=e)),n.V=new Promise((e=>n.N=e)),e["s-p"]=[],e["s-rc"]=[],ee(e,n,t.H),se.set(e,n)},fe=(e,t)=>t in e,ae=(e,t)=>(0,console.error)(e,t),ue=new Map,de=e=>{const t=e.k.replace(/-/g,"_"),n=e._,l=ue.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ue.set(n,e),e[t])),ae)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},$e=new Map,me="undefined"!=typeof window?window:{},pe=me.document||{head:{}},ye={m:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},he=e=>Promise.resolve(e),be=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ve=[],we=[],ke=(e,t)=>n=>{e.push(n),i||(i=!0,t&&4&ye.m?je(Se):ye.raf(Se))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ae(e)}e.length=0},Se=()=>{ge(ve),ge(we),(i=ve.length>0)&&ye.raf(Se)},je=e=>he().then(e),Ce=ke(we,!0);export{Z as F,m as H,c as a,Y as b,v as c,b as g,d as h,he as p,ce as r,oe as s}
@@ -1 +1 @@
1
- import{r as e,c as n,h as t,H as a}from"./p-c2a82822.js";const o=class{constructor(t){e(this,t),this.toggleExpander=n(this,"toggleExpander",7),this.name=void 0,this.open=!1,this.lefticon=void 0,this.lefticoncolor=void 0,this.isExpanded=!1}componentWillRender(){this.isExpanded=this.open}handleExpand(){this.isExpanded=null===this.expander.getAttribute("open"),this.toggleExpander.emit({open:this.isExpanded,name:this.name})}render(){return t(a,null,t("details",{class:"expander",open:this.open,"aria-owns":"expanderContent","aria-expanded":`${this.isExpanded}`,onClick:this.handleExpand.bind(this),ref:e=>this.expander=e},t("summary",{class:"panel"},t("span",{class:"panel-frame"},this.lefticon&&t("span",{class:"left-icons"},t("tttx-icon_1_9_67",{icon:this.lefticon,color:this.lefticoncolor})),t("span",{class:"name"},this.name)),t("span",{class:"expand-button"},t("tttx-icon_1_9_67",{class:"open",icon:"expand_more",color:"black"}),t("tttx-icon_1_9_67",{class:"closed",icon:"chevron_right",color:"black"}))),t("div",{id:"expanderContent",class:"content",tabindex:"0"},t("slot",null))))}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block}.expander{border-bottom:1px solid #d5d5d5}.expander[open] .panel .open{display:initial}.expander[open] .panel .closed{display:none}.expander:not([open]) .panel .open{display:none}.expander:not([open]) .panel .closed{display:initial}.expander .panel{display:flex;gap:4px;height:36px;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}.expander .panel .panel-frame{display:flex;gap:4px;height:36px;align-items:center}.expander .panel .panel-frame .name{font-size:16px;font-weight:500;color:#212121}.expander .panel .left-icons,.expander .panel .expand-button{display:flex;height:36px;width:36px;align-items:center;justify-content:center}.expander .panel .left-icons>tttx-icon,.expander .panel .expand-button>tttx-icon{height:24px;cursor:inherit}.expander .content{margin-top:8px;margin-bottom:8px}';export{o as tttx_expander_1_9_67}
1
+ import{r as e,c as n,h as t,H as a}from"./p-5c9beaf9.js";const o=class{constructor(t){e(this,t),this.toggleExpander=n(this,"toggleExpander",7),this.name=void 0,this.open=!1,this.lefticon=void 0,this.lefticoncolor=void 0,this.isExpanded=!1}componentWillRender(){this.isExpanded=this.open}handleExpand(){this.isExpanded=null===this.expander.getAttribute("open"),this.toggleExpander.emit({open:this.isExpanded,name:this.name})}render(){return t(a,null,t("details",{class:"expander",open:this.open,"aria-owns":"expanderContent","aria-expanded":`${this.isExpanded}`,onClick:this.handleExpand.bind(this),ref:e=>this.expander=e},t("summary",{class:"panel"},t("span",{class:"panel-frame"},this.lefticon&&t("span",{class:"left-icons"},t("tttx-icon_1_9_69",{icon:this.lefticon,color:this.lefticoncolor})),t("span",{class:"name"},this.name)),t("span",{class:"expand-button"},t("tttx-icon_1_9_69",{class:"open",icon:"expand_more",color:"black"}),t("tttx-icon_1_9_69",{class:"closed",icon:"chevron_right",color:"black"}))),t("div",{id:"expanderContent",class:"content",tabindex:"0"},t("slot",null))))}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block}.expander{border-bottom:1px solid #d5d5d5}.expander[open] .panel .open{display:initial}.expander[open] .panel .closed{display:none}.expander:not([open]) .panel .open{display:none}.expander:not([open]) .panel .closed{display:initial}.expander .panel{display:flex;gap:4px;height:36px;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}.expander .panel .panel-frame{display:flex;gap:4px;height:36px;align-items:center}.expander .panel .panel-frame .name{font-size:16px;font-weight:500;color:#212121}.expander .panel .left-icons,.expander .panel .expand-button{display:flex;height:36px;width:36px;align-items:center;justify-content:center}.expander .panel .left-icons>tttx-icon,.expander .panel .expand-button>tttx-icon{height:24px;cursor:inherit}.expander .content{margin-top:8px;margin-bottom:8px}';export{o as tttx_expander_1_9_69}
@@ -0,0 +1 @@
1
+ import{r as t,h as o,g as r}from"./p-5c9beaf9.js";const s=class{constructor(o){t(this,o),this.show=()=>{this.disabled||(this.timeoutId=setTimeout((()=>{this.visible=!0}),this.delay))},this.hide=()=>{clearTimeout(this.timeoutId),this.visible=!1},this.toggle=()=>{this.visible=!this.visible},this.text=void 0,this.placement="top",this.trigger=["hover","click"],this.delay=0,this.disabled=!1,this.ariaLabel="",this.visible=!1}connectedCallback(){this.trigger.includes("hover")&&(this.el.addEventListener("mouseenter",this.show),this.el.addEventListener("mouseleave",this.hide)),this.trigger.includes("focus")&&(this.el.addEventListener("focus",this.show),this.el.addEventListener("blur",this.hide)),this.trigger.includes("click")&&this.el.addEventListener("click",this.toggle)}disconnectedCallback(){this.el.removeEventListener("mouseenter",this.show),this.el.removeEventListener("mouseleave",this.hide),this.el.removeEventListener("focus",this.show),this.el.removeEventListener("blur",this.hide),this.el.removeEventListener("click",this.toggle)}render(){return o("div",{class:"tooltip-wrapper"},o("slot",null),this.visible&&o("div",{class:`tooltip-box ${this.placement}`,role:"tooltip","aria-label":this.ariaLabel||this.text},this.text,o("span",{class:"arrow"})))}get el(){return r(this)}};s.style=":host{position:relative;display:inline-block}.tooltip-box{position:absolute;background-color:#020505;color:#fff;padding:8px 12px;border-radius:8px;font-size:12px;z-index:100000;box-shadow:0px 1px 4px 0px #0C0C0D;width:max-content;max-width:300px;white-space:normal;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box}.tooltip-box.top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:8px}.tooltip-box.bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:8px}.tooltip-box.left{right:100%;top:50%;transform:translateY(-50%);margin-right:8px}.tooltip-box.right{left:100%;top:50%;transform:translateY(-50%);margin-left:8px}.arrow{width:0;height:0;position:absolute;border-style:solid}.tooltip-box.top .arrow{bottom:-5px;left:50%;transform:translateX(-50%);border-width:5px 5px 0 5px;border-color:#1e1e1e transparent transparent transparent}.tooltip-box.bottom .arrow{top:-5px;left:50%;transform:translateX(-50%);border-width:0 5px 5px 5px;border-color:transparent transparent #1e1e1e transparent}.tooltip-box.left .arrow{right:-5px;top:50%;transform:translateY(-50%);border-width:5px 0 5px 5px;border-color:transparent transparent transparent #1e1e1e}.tooltip-box.right .arrow{left:-5px;top:50%;transform:translateY(-50%);border-width:5px 5px 5px 0;border-color:transparent #1e1e1e transparent transparent}";export{s as tttx_tooltip_1_9_69}
@@ -1 +1 @@
1
- import{r as o,h as r,H as t}from"./p-c2a82822.js";const e=class{constructor(r){o(this,r),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.iconcolor="black",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless","borderless-circle","blackout"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design&&"blackout"!==this._design||(this.iconcolor="white")}render(){return this._iconcolor=this.iconcolor,r(t,null,r("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&r("div",{class:"icon-left"},r("tttx-icon_1_9_67",{icon:this.icon,color:this._iconcolor})),!this.notext&&r("div",{class:"button-content"},r("slot",null)),this.icon&&"right"===this.iconposition&&r("div",{class:"icon-right"},r("tttx-icon_1_9_67",{icon:this.icon,color:this._iconcolor}))))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.blackout:hover{background:#212121;border:1px solid #212121}}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}';export{e as tttx_button_1_9_67}
1
+ import{r as o,h as r,H as t}from"./p-5c9beaf9.js";const e=class{constructor(r){o(this,r),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.iconcolor="black",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless","borderless-circle","blackout"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design&&"blackout"!==this._design||(this.iconcolor="white")}render(){return this._iconcolor=this.iconcolor,r(t,null,r("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&r("div",{class:"icon-left"},r("tttx-icon_1_9_69",{icon:this.icon,color:this._iconcolor})),!this.notext&&r("div",{class:"button-content"},r("slot",null)),this.icon&&"right"===this.iconposition&&r("div",{class:"icon-right"},r("tttx-icon_1_9_69",{icon:this.icon,color:this._iconcolor}))))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.blackout:hover{background:#212121;border:1px solid #212121}}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}';export{e as tttx_button_1_9_69}
@@ -1 +1 @@
1
- import{r as o,h as t,H as n}from"./p-c2a82822.js";const e=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group__heading"},t("slot",null)))}};e.style='.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}';export{e as tttx_checkbox_group_heading_1_9_67}
1
+ import{r as o,h as t,H as n}from"./p-5c9beaf9.js";const e=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group__heading"},t("slot",null)))}};e.style='.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}';export{e as tttx_checkbox_group_heading_1_9_69}
@@ -1 +1 @@
1
- import{r as t,c as a,h as o,H as i}from"./p-c2a82822.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i;const s=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-icon_1_9_67",{style:{pointerEvents:"none",marginTop:"-2px"},icon:t.tabIcon,color:"gray",size:null!==(i=t.tabIconSize)&&void 0!==i?i:24});return o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},s)}renderSelectedTab(t){return"string"==typeof t.pageContent?o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:s.sanitize(t.pageContent,n),hidden:!t.selected}):o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,hidden:!t.selected},t.pageContent)}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(i,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_1_9_67",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map(this.generateTab.bind(this))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_1_9_67",{icon:"navigate_next",color:"black"}))),t&&this.renderSelectedTab(t)))}static get watchers(){return{tabs:["onDataChange"]}}};e.style='.material-symbols-rounded.sc-tttx-tabs_1_9_67{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_1_9_67-h{display:block}.tab-bar.sc-tttx-tabs_1_9_67{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_67>.left-navigation.sc-tttx-tabs_1_9_67,.tab-bar.sc-tttx-tabs_1_9_67>.right-navigation.sc-tttx-tabs_1_9_67{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_67>.left-navigation.sc-tttx-tabs_1_9_67>*.sc-tttx-tabs_1_9_67,.tab-bar.sc-tttx-tabs_1_9_67>.right-navigation.sc-tttx-tabs_1_9_67>*.sc-tttx-tabs_1_9_67{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_67>.tabs-container.sc-tttx-tabs_1_9_67{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_67>.tabs-container.wide.sc-tttx-tabs_1_9_67{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_67>.tabs-container.sc-tttx-tabs_1_9_67>*[role=tab].sc-tttx-tabs_1_9_67{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_67>.tabs-container.sc-tttx-tabs_1_9_67>*[role=tab].sc-tttx-tabs_1_9_67:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_67>.tabs-container.sc-tttx-tabs_1_9_67>*[role=tab][aria-selected].sc-tttx-tabs_1_9_67{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{e as tttx_tabs_1_9_67}
1
+ import{r as t,c as a,h as o,H as i}from"./p-5c9beaf9.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i;const s=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-icon_1_9_69",{style:{pointerEvents:"none",marginTop:"-2px"},icon:t.tabIcon,color:"gray",size:null!==(i=t.tabIconSize)&&void 0!==i?i:24});return o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},s)}renderSelectedTab(t){return"string"==typeof t.pageContent?o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:s.sanitize(t.pageContent,n),hidden:!t.selected}):o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,hidden:!t.selected},t.pageContent)}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(i,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_1_9_69",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map(this.generateTab.bind(this))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_1_9_69",{icon:"navigate_next",color:"black"}))),t&&this.renderSelectedTab(t)))}static get watchers(){return{tabs:["onDataChange"]}}};e.style='.material-symbols-rounded.sc-tttx-tabs_1_9_69{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_1_9_69-h{display:block}.tab-bar.sc-tttx-tabs_1_9_69{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_69>.left-navigation.sc-tttx-tabs_1_9_69,.tab-bar.sc-tttx-tabs_1_9_69>.right-navigation.sc-tttx-tabs_1_9_69{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_69>.left-navigation.sc-tttx-tabs_1_9_69>*.sc-tttx-tabs_1_9_69,.tab-bar.sc-tttx-tabs_1_9_69>.right-navigation.sc-tttx-tabs_1_9_69>*.sc-tttx-tabs_1_9_69{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_69>.tabs-container.sc-tttx-tabs_1_9_69{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_69>.tabs-container.wide.sc-tttx-tabs_1_9_69{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_69>.tabs-container.sc-tttx-tabs_1_9_69>*[role=tab].sc-tttx-tabs_1_9_69{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_69>.tabs-container.sc-tttx-tabs_1_9_69>*[role=tab].sc-tttx-tabs_1_9_69:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_69>.tabs-container.sc-tttx-tabs_1_9_69>*[role=tab][aria-selected].sc-tttx-tabs_1_9_69{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{e as tttx_tabs_1_9_69}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as o,g as n,F as r}from"./p-c2a82822.js";import{p as s,d as l}from"./p-55799798.js";import"./p-112455b1.js";const a=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.toggleFilter=i(this,"toggleFilter",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover,this.toggleFilter.emit(this.showPopover)}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon_1_9_67",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon_1_9_67",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon_1_9_67",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon_1_9_67",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon_1_9_67",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};a.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:"Roboto", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:"Roboto", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:"Roboto", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:"Roboto", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:"Roboto", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:"Roboto", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:"Roboto", serif;font-weight:500}';const c=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.rowCheckboxClick=i(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const t of this._data)t.hasCheckbox&&void 0===t.checked&&(t.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(t,i){t.stopPropagation(),i.rowData&&this.rowCheckboxClick.emit({key:i.key,name:this.name,data:i.rowData})}onRowClickHandler(t){(t.clickable||t.toggleable)&&t.rowData&&this.rowClick.emit({key:t.key,name:this.name,data:t.rowData})}renderListItem(t){let i;if("string"==typeof t.element){const o=s.sanitize(t.element,l);i=e("span",{class:"item-content",innerHTML:o})}else i=e("span",{class:"item-content"},t.element);return e(r,null,t.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon_1_9_67",{icon:t.checked?"check_box":"check_box_outline_blank",color:t.checked?"blue":"grey",onClick:i=>{this.onRowCheckboxHandler(i,t)}})),t.element&&i,t.icon&&e("span",{class:"icons"},e("tttx-icon_1_9_67",{class:"align-right",icon:t.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((t=>e("li",{key:t.key,class:"item"+(t.clickable?" clickable":"")+(t.toggleable?" toggleable":"")+(t.checked?" selected":"")+(t.active?" active":""),onClick:()=>{this.onRowClickHandler(t)}},this.renderListItem(t)))))}static get watchers(){return{data:["onDataChange"]}}};c.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start;width:100%}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;box-sizing:border-box;width:100%}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;width:100%;min-height:36px}.checkbox{padding:6px;margin-left:-8px}';const d=class{constructor(e){t(this,e),this.sorterChangeEvent=i(this,"sorterChangeEvent",7),this.toggleSorter=i(this,"toggleSorter",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(t){t.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand,this.toggleSorter.emit(this.dropdownExpand)}onDropdownSelected(t){this.dropdownExpand=!1,this.selectedField=t.target.innerHTML,this.emitSortEvent(),this.toggleSorter.emit(this.dropdownExpand)}render(){const t="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const i="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",n=this.dropdownExpand?"expand_less":"expand_more",r=this.selectedField;return e(o,{id:`sorter__${this.sorterKey}`},e("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},e("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},e("tttx-icon_1_9_67",{icon:i,color:"black"})),e("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},e("div",{class:"dropdown-selector-button"},e("div",{class:"dropdown-selector-text"},r),e("div",{class:"dropdown-selector-chevron"},e("tttx-icon_1_9_67",{icon:n,color:"black"})))),this.dropdownExpand&&e("div",{class:"dropdown-options-list"},t.sorterOptions.map((t=>e("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:t.optionLabel},t.optionLabel))))))}get el(){return n(this)}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';const p=class{constructor(i){t(this,i),this.border=!0,this.viewSize=void 0}handleResize(){this.setViewSize()}async componentWillLoad(){this.setViewSize()}setViewSize(){this.viewSize=window.innerWidth<698?"mobile":"desktop"}render(){return e(o,null,e("div",{class:`container ${this.border?"bordered":""} ${this.viewSize}`},e("slot",{name:"before"}),e("slot",{name:"center"}),e("slot",{name:"after"})))}};p.style=".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";export{a as tttx_filter_1_9_67,c as tttx_list_1_9_67,d as tttx_sorter_1_9_67,p as tttx_toolbar_1_9_67}
1
+ import{r as t,c as i,h as e,H as o,g as n,F as r}from"./p-5c9beaf9.js";import{p as s,d as l}from"./p-55799798.js";import"./p-112455b1.js";const a=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.toggleFilter=i(this,"toggleFilter",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover,this.toggleFilter.emit(this.showPopover)}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon_1_9_69",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon_1_9_69",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon_1_9_69",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon_1_9_69",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon_1_9_69",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};a.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:"Roboto", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:"Roboto", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:"Roboto", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:"Roboto", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:"Roboto", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:"Roboto", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:"Roboto", serif;font-weight:500}';const c=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.rowCheckboxClick=i(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const t of this._data)t.hasCheckbox&&void 0===t.checked&&(t.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(t,i){t.stopPropagation(),i.rowData&&this.rowCheckboxClick.emit({key:i.key,name:this.name,data:i.rowData})}onRowClickHandler(t){(t.clickable||t.toggleable)&&t.rowData&&this.rowClick.emit({key:t.key,name:this.name,data:t.rowData})}renderListItem(t){let i;if("string"==typeof t.element){const o=s.sanitize(t.element,l);i=e("span",{class:"item-content",innerHTML:o})}else i=e("span",{class:"item-content"},t.element);return e(r,null,t.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon_1_9_69",{icon:t.checked?"check_box":"check_box_outline_blank",color:t.checked?"blue":"grey",onClick:i=>{this.onRowCheckboxHandler(i,t)}})),t.element&&i,t.icon&&e("span",{class:"icons"},e("tttx-icon_1_9_69",{class:"align-right",icon:t.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((t=>e("li",{key:t.key,class:"item"+(t.clickable?" clickable":"")+(t.toggleable?" toggleable":"")+(t.checked?" selected":"")+(t.active?" active":""),onClick:()=>{this.onRowClickHandler(t)}},this.renderListItem(t)))))}static get watchers(){return{data:["onDataChange"]}}};c.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start;width:100%}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;box-sizing:border-box;width:100%}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;width:100%;min-height:36px}.checkbox{padding:6px;margin-left:-8px}';const d=class{constructor(e){t(this,e),this.sorterChangeEvent=i(this,"sorterChangeEvent",7),this.toggleSorter=i(this,"toggleSorter",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(t){t.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand,this.toggleSorter.emit(this.dropdownExpand)}onDropdownSelected(t){this.dropdownExpand=!1,this.selectedField=t.target.innerHTML,this.emitSortEvent(),this.toggleSorter.emit(this.dropdownExpand)}render(){const t="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const i="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",n=this.dropdownExpand?"expand_less":"expand_more",r=this.selectedField;return e(o,{id:`sorter__${this.sorterKey}`},e("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},e("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},e("tttx-icon_1_9_69",{icon:i,color:"black"})),e("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},e("div",{class:"dropdown-selector-button"},e("div",{class:"dropdown-selector-text"},r),e("div",{class:"dropdown-selector-chevron"},e("tttx-icon_1_9_69",{icon:n,color:"black"})))),this.dropdownExpand&&e("div",{class:"dropdown-options-list"},t.sorterOptions.map((t=>e("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:t.optionLabel},t.optionLabel))))))}get el(){return n(this)}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';const p=class{constructor(i){t(this,i),this.border=!0,this.viewSize=void 0}handleResize(){this.setViewSize()}async componentWillLoad(){this.setViewSize()}setViewSize(){this.viewSize=window.innerWidth<698?"mobile":"desktop"}render(){return e(o,null,e("div",{class:`container ${this.border?"bordered":""} ${this.viewSize}`},e("slot",{name:"before"}),e("slot",{name:"center"}),e("slot",{name:"after"})))}};p.style=".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";export{a as tttx_filter_1_9_69,c as tttx_list_1_9_69,d as tttx_sorter_1_9_69,p as tttx_toolbar_1_9_69}