@3t-transform/threeteeui 1.9.72 → 1.9.74

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 (304) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-action-dropdown_1_9_72.cjs.entry.js → tttx-action-dropdown_1_9_74.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-button-v2_1_9_72.cjs.entry.js → tttx-button-v2_1_9_74.cjs.entry.js} +4 -4
  4. package/dist/cjs/{tttx-button_1_9_72.cjs.entry.js → tttx-button_1_9_74.cjs.entry.js} +2 -2
  5. package/dist/cjs/{tttx-chart_1_9_72.cjs.entry.js → tttx-chart_1_9_74.cjs.entry.js} +3 -3
  6. package/dist/cjs/{tttx-checkbox-group-caption_1_9_72.cjs.entry.js → tttx-checkbox-group-caption_1_9_74.cjs.entry.js} +1 -1
  7. package/dist/cjs/{tttx-checkbox-group-heading_1_9_72.cjs.entry.js → tttx-checkbox-group-heading_1_9_74.cjs.entry.js} +1 -1
  8. package/dist/cjs/{tttx-checkbox-group_1_9_72.cjs.entry.js → tttx-checkbox-group_1_9_74.cjs.entry.js} +1 -1
  9. package/dist/cjs/{tttx-checkbox_1_9_72.cjs.entry.js → tttx-checkbox_1_9_74.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-comments_1_9_72.cjs.entry.js → tttx-comments_1_9_74.cjs.entry.js} +4 -4
  11. package/dist/cjs/{tttx-data-pattern_1_9_72.cjs.entry.js → tttx-data-pattern_1_9_74.cjs.entry.js} +5 -5
  12. package/dist/cjs/{tttx-datacard_1_9_72.cjs.entry.js → tttx-datacard_1_9_74.cjs.entry.js} +4 -4
  13. package/dist/cjs/tttx-date-range-picker.cjs.entry.js +1 -1
  14. package/dist/cjs/{tttx-dialog-box_1_9_72.cjs.entry.js → tttx-dialog-box_1_9_74.cjs.entry.js} +3 -3
  15. package/dist/cjs/{tttx-dialog_1_9_72.cjs.entry.js → tttx-dialog_1_9_74.cjs.entry.js} +2 -2
  16. package/dist/cjs/{tttx-expander_1_9_72.cjs.entry.js → tttx-expander_1_9_74.cjs.entry.js} +2 -2
  17. package/dist/cjs/{tttx-filter_1_9_72_4.cjs.entry.js → tttx-filter_1_9_74_4.cjs.entry.js} +9 -9
  18. package/dist/cjs/{tttx-form_1_9_72.cjs.entry.js → tttx-form_1_9_74.cjs.entry.js} +2 -2
  19. package/dist/cjs/{tttx-graph_1_9_72.cjs.entry.js → tttx-graph_1_9_74.cjs.entry.js} +1 -1
  20. package/dist/cjs/{tttx-icon_1_9_72.cjs.entry.js → tttx-icon_1_9_74.cjs.entry.js} +1 -1
  21. package/dist/cjs/{tttx-keyvalue-block_1_9_72.cjs.entry.js → tttx-keyvalue-block_1_9_74.cjs.entry.js} +1 -1
  22. package/dist/cjs/{tttx-loading-spinner_1_9_72_3.cjs.entry.js → tttx-loading-spinner_1_9_74_3.cjs.entry.js} +6 -6
  23. package/dist/cjs/{tttx-multiselect-box_1_9_72.cjs.entry.js → tttx-multiselect-box_1_9_74.cjs.entry.js} +7 -7
  24. package/dist/cjs/{tttx-percentage-bar_1_9_72.cjs.entry.js → tttx-percentage-bar_1_9_74.cjs.entry.js} +2 -2
  25. package/dist/cjs/{tttx-qrcode_1_9_72.cjs.entry.js → tttx-qrcode_1_9_74.cjs.entry.js} +1 -1
  26. package/dist/cjs/{tttx-range-slider_1_9_72.cjs.entry.js → tttx-range-slider_1_9_74.cjs.entry.js} +1 -1
  27. package/dist/cjs/{tttx-select-box_1_9_72.cjs.entry.js → tttx-select-box_1_9_74.cjs.entry.js} +6 -6
  28. package/dist/cjs/{tttx-skeleton_loader_1_9_72.cjs.entry.js → tttx-skeleton_loader_1_9_74.cjs.entry.js} +1 -1
  29. package/dist/cjs/{tttx-table_1_9_72.cjs.entry.js → tttx-table_1_9_74.cjs.entry.js} +1 -1
  30. package/dist/cjs/{tttx-tabs_1_9_72.cjs.entry.js → tttx-tabs_1_9_74.cjs.entry.js} +4 -4
  31. package/dist/cjs/{tttx-tag-v2_1_9_72.cjs.entry.js → tttx-tag-v2_1_9_74.cjs.entry.js} +2 -2
  32. package/dist/cjs/{tttx-textarea_1_9_72.cjs.entry.js → tttx-textarea_1_9_74.cjs.entry.js} +2 -2
  33. package/dist/cjs/{tttx-toggle_1_9_72.cjs.entry.js → tttx-toggle_1_9_74.cjs.entry.js} +1 -1
  34. package/dist/cjs/{tttx-tooltip_1_9_72.cjs.entry.js → tttx-tooltip_1_9_74.cjs.entry.js} +1 -1
  35. package/dist/cjs/{tttx-tree-view_1_9_72.cjs.entry.js → tttx-tree-view_1_9_74.cjs.entry.js} +66 -19
  36. package/dist/cjs/tttx.cjs.js +1 -1
  37. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  38. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +24 -24
  39. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.css +1 -1
  40. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +3 -3
  41. package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +15 -15
  42. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  43. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  44. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  45. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  46. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  47. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  48. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  49. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  50. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  51. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +2 -2
  52. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  53. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  54. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  55. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  56. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +1 -1
  57. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
  58. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  59. package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.js +2 -2
  60. package/dist/collection/components/atoms/tttx-tag-v2/tttx-tag-v2.stories.js +2 -2
  61. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  62. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  63. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +2 -2
  64. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +1 -1
  65. package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +3 -3
  66. package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +4 -4
  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-range-slider/tttx-range-slider.js +1 -1
  91. package/dist/collection/components/molecules/tttx-range-slider/tttx-range-slider.stories.js +3 -3
  92. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
  93. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
  94. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  95. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  96. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  97. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  98. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  99. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  100. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  101. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  102. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  103. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  104. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  105. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  106. package/dist/collection/components/molecules/tttx-tooltip/tttx-tooltip.js +1 -1
  107. package/dist/collection/components/molecules/tttx-tooltip/tttx-tootip.stories.js +2 -2
  108. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +95 -31
  109. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +66 -19
  110. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +101 -52
  111. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  112. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  113. package/dist/components/index.d.ts +38 -38
  114. package/dist/components/index.js +38 -38
  115. package/dist/components/tttx-action-dropdown_1_9_74.d.ts +11 -0
  116. package/dist/components/{tttx-action-dropdown_1_9_72.js → tttx-action-dropdown_1_9_74.js} +7 -7
  117. package/dist/components/{tttx-checkbox_1_9_72.d.ts → tttx-button-v2_1_9_74.d.ts} +4 -4
  118. package/dist/components/{tttx-button-v2_1_9_72.js → tttx-button-v2_1_9_74.js} +9 -9
  119. package/dist/components/tttx-button.js +5 -5
  120. package/dist/components/{tttx-dialog_1_9_72.d.ts → tttx-button_1_9_74.d.ts} +4 -4
  121. package/dist/components/{tttx-button_1_9_72.js → tttx-button_1_9_74.js} +2 -2
  122. package/dist/components/{tttx-table_1_9_72.d.ts → tttx-chart_1_9_74.d.ts} +4 -4
  123. package/dist/components/{tttx-chart_1_9_72.js → tttx-chart_1_9_74.js} +10 -10
  124. package/dist/components/tttx-checkbox-group-caption_1_9_74.d.ts +11 -0
  125. package/dist/components/{tttx-checkbox-group-caption_1_9_72.js → tttx-checkbox-group-caption_1_9_74.js} +5 -5
  126. package/dist/components/tttx-checkbox-group-heading_1_9_74.d.ts +11 -0
  127. package/dist/components/{tttx-checkbox-group-heading_1_9_72.js → tttx-checkbox-group-heading_1_9_74.js} +5 -5
  128. package/dist/components/tttx-checkbox-group_1_9_74.d.ts +11 -0
  129. package/dist/components/{tttx-checkbox-group_1_9_72.js → tttx-checkbox-group_1_9_74.js} +5 -5
  130. package/dist/components/{tttx-button-v2_1_9_72.d.ts → tttx-checkbox_1_9_74.d.ts} +4 -4
  131. package/dist/components/{tttx-checkbox_1_9_72.js → tttx-checkbox_1_9_74.js} +7 -7
  132. package/dist/components/tttx-comments_1_9_74.d.ts +11 -0
  133. package/dist/components/{tttx-comments_1_9_72.js → tttx-comments_1_9_74.js} +9 -9
  134. package/dist/components/tttx-data-pattern_1_9_74.d.ts +11 -0
  135. package/dist/components/{tttx-data-pattern_1_9_72.js → tttx-data-pattern_1_9_74.js} +16 -16
  136. package/dist/components/tttx-datacard_1_9_74.d.ts +11 -0
  137. package/dist/components/{tttx-datacard_1_9_72.js → tttx-datacard_1_9_74.js} +10 -10
  138. package/dist/components/tttx-date-range-picker.js +3 -3
  139. package/dist/components/tttx-dialog-box_1_9_74.d.ts +11 -0
  140. package/dist/components/{tttx-dialog-box_1_9_72.js → tttx-dialog-box_1_9_74.js} +9 -9
  141. package/dist/components/{tttx-filter_1_9_72.d.ts → tttx-dialog_1_9_74.d.ts} +4 -4
  142. package/dist/components/{tttx-dialog_1_9_72.js → tttx-dialog_1_9_74.js} +8 -8
  143. package/dist/components/tttx-expander_1_9_74.d.ts +11 -0
  144. package/dist/components/{tttx-expander_1_9_72.js → tttx-expander_1_9_74.js} +7 -7
  145. package/dist/components/tttx-filter.js +6 -6
  146. package/dist/components/{tttx-button_1_9_72.d.ts → tttx-filter_1_9_74.d.ts} +4 -4
  147. package/dist/components/{tttx-filter_1_9_72.js → tttx-filter_1_9_74.js} +2 -2
  148. package/dist/components/{tttx-form_1_9_72.d.ts → tttx-form_1_9_74.d.ts} +4 -4
  149. package/dist/components/{tttx-form_1_9_72.js → tttx-form_1_9_74.js} +11 -11
  150. package/dist/components/tttx-graph.js +3 -3
  151. package/dist/components/{tttx-graph_1_9_72.d.ts → tttx-graph_1_9_74.d.ts} +4 -4
  152. package/dist/components/{tttx-graph_1_9_72.js → tttx-graph_1_9_74.js} +2 -2
  153. package/dist/components/tttx-icon.js +3 -3
  154. package/dist/components/{tttx-list_1_9_72.d.ts → tttx-icon_1_9_74.d.ts} +4 -4
  155. package/dist/components/{tttx-icon_1_9_72.js → tttx-icon_1_9_74.js} +2 -2
  156. package/dist/components/tttx-keyvalue-block_1_9_74.d.ts +11 -0
  157. package/dist/components/{tttx-keyvalue-block_1_9_72.js → tttx-keyvalue-block_1_9_74.js} +5 -5
  158. package/dist/components/tttx-list.js +6 -6
  159. package/dist/components/{tttx-icon_1_9_72.d.ts → tttx-list_1_9_74.d.ts} +4 -4
  160. package/dist/components/{tttx-list_1_9_72.js → tttx-list_1_9_74.js} +2 -2
  161. package/dist/components/tttx-loading-spinner.js +3 -3
  162. package/dist/components/tttx-loading-spinner_1_9_74.d.ts +11 -0
  163. package/dist/components/{tttx-loading-spinner_1_9_72.js → tttx-loading-spinner_1_9_74.js} +2 -2
  164. package/dist/components/tttx-multiselect-box_1_9_74.d.ts +11 -0
  165. package/dist/components/{tttx-multiselect-box_1_9_72.js → tttx-multiselect-box_1_9_74.js} +16 -16
  166. package/dist/components/tttx-percentage-bar_1_9_74.d.ts +11 -0
  167. package/dist/components/{tttx-percentage-bar_1_9_72.js → tttx-percentage-bar_1_9_74.js} +6 -6
  168. package/dist/components/{tttx-qrcode_1_9_72.d.ts → tttx-qrcode_1_9_74.d.ts} +4 -4
  169. package/dist/components/{tttx-qrcode_1_9_72.js → tttx-qrcode_1_9_74.js} +5 -5
  170. package/dist/components/tttx-range-slider_1_9_74.d.ts +11 -0
  171. package/dist/components/{tttx-range-slider_1_9_72.js → tttx-range-slider_1_9_74.js} +5 -5
  172. package/dist/components/tttx-select-box.js +12 -12
  173. package/dist/components/tttx-select-box_1_9_74.d.ts +11 -0
  174. package/dist/components/{tttx-select-box_1_9_72.js → tttx-select-box_1_9_74.js} +2 -2
  175. package/dist/components/tttx-skeleton_loader_1_9_74.d.ts +11 -0
  176. package/dist/components/{tttx-skeleton_loader_1_9_72.js → tttx-skeleton_loader_1_9_74.js} +5 -5
  177. package/dist/components/tttx-sorter.js +5 -5
  178. package/dist/components/tttx-sorter_1_9_74.d.ts +11 -0
  179. package/dist/components/{tttx-sorter_1_9_72.js → tttx-sorter_1_9_74.js} +2 -2
  180. package/dist/components/tttx-standalone-input.js +6 -6
  181. package/dist/components/tttx-standalone-input_1_9_74.d.ts +11 -0
  182. package/dist/components/{tttx-standalone-input_1_9_72.js → tttx-standalone-input_1_9_74.js} +2 -2
  183. package/dist/components/{tttx-tag-v2_1_9_72.d.ts → tttx-table_1_9_74.d.ts} +4 -4
  184. package/dist/components/{tttx-table_1_9_72.js → tttx-table_1_9_74.js} +5 -5
  185. package/dist/components/{tttx-tabs_1_9_72.d.ts → tttx-tabs_1_9_74.d.ts} +4 -4
  186. package/dist/components/{tttx-tabs_1_9_72.js → tttx-tabs_1_9_74.js} +9 -9
  187. package/dist/components/{tttx-chart_1_9_72.d.ts → tttx-tag-v2_1_9_74.d.ts} +4 -4
  188. package/dist/components/{tttx-tag-v2_1_9_72.js → tttx-tag-v2_1_9_74.js} +7 -7
  189. package/dist/components/tttx-tag.js +5 -5
  190. package/dist/components/{tttx-tag_1_9_72.d.ts → tttx-tag_1_9_74.d.ts} +4 -4
  191. package/dist/components/{tttx-tag_1_9_72.js → tttx-tag_1_9_74.js} +2 -2
  192. package/dist/components/tttx-textarea_1_9_74.d.ts +11 -0
  193. package/dist/components/{tttx-textarea_1_9_72.js → tttx-textarea_1_9_74.js} +6 -6
  194. package/dist/components/tttx-toggle_1_9_74.d.ts +11 -0
  195. package/dist/components/{tttx-toggle_1_9_72.js → tttx-toggle_1_9_74.js} +5 -5
  196. package/dist/components/tttx-toolbar.js +3 -3
  197. package/dist/components/tttx-toolbar_1_9_74.d.ts +11 -0
  198. package/dist/components/{tttx-toolbar_1_9_72.js → tttx-toolbar_1_9_74.js} +2 -2
  199. package/dist/components/tttx-tooltip_1_9_74.d.ts +11 -0
  200. package/dist/components/{tttx-tooltip_1_9_72.js → tttx-tooltip_1_9_74.js} +5 -5
  201. package/dist/components/tttx-tree-view_1_9_74.d.ts +11 -0
  202. package/dist/components/{tttx-tree-view_1_9_72.js → tttx-tree-view_1_9_74.js} +73 -26
  203. package/dist/esm/loader.js +1 -1
  204. package/dist/esm/{tttx-action-dropdown_1_9_72.entry.js → tttx-action-dropdown_1_9_74.entry.js} +2 -2
  205. package/dist/esm/{tttx-button-v2_1_9_72.entry.js → tttx-button-v2_1_9_74.entry.js} +4 -4
  206. package/dist/esm/{tttx-button_1_9_72.entry.js → tttx-button_1_9_74.entry.js} +2 -2
  207. package/dist/esm/{tttx-chart_1_9_72.entry.js → tttx-chart_1_9_74.entry.js} +3 -3
  208. package/dist/esm/{tttx-checkbox-group-caption_1_9_72.entry.js → tttx-checkbox-group-caption_1_9_74.entry.js} +1 -1
  209. package/dist/esm/{tttx-checkbox-group-heading_1_9_72.entry.js → tttx-checkbox-group-heading_1_9_74.entry.js} +1 -1
  210. package/dist/esm/{tttx-checkbox-group_1_9_72.entry.js → tttx-checkbox-group_1_9_74.entry.js} +1 -1
  211. package/dist/esm/{tttx-checkbox_1_9_72.entry.js → tttx-checkbox_1_9_74.entry.js} +2 -2
  212. package/dist/esm/{tttx-comments_1_9_72.entry.js → tttx-comments_1_9_74.entry.js} +4 -4
  213. package/dist/esm/{tttx-data-pattern_1_9_72.entry.js → tttx-data-pattern_1_9_74.entry.js} +5 -5
  214. package/dist/esm/{tttx-datacard_1_9_72.entry.js → tttx-datacard_1_9_74.entry.js} +4 -4
  215. package/dist/esm/tttx-date-range-picker.entry.js +1 -1
  216. package/dist/esm/{tttx-dialog-box_1_9_72.entry.js → tttx-dialog-box_1_9_74.entry.js} +3 -3
  217. package/dist/esm/{tttx-dialog_1_9_72.entry.js → tttx-dialog_1_9_74.entry.js} +2 -2
  218. package/dist/esm/{tttx-expander_1_9_72.entry.js → tttx-expander_1_9_74.entry.js} +2 -2
  219. package/dist/esm/{tttx-filter_1_9_72_4.entry.js → tttx-filter_1_9_74_4.entry.js} +6 -6
  220. package/dist/esm/{tttx-form_1_9_72.entry.js → tttx-form_1_9_74.entry.js} +2 -2
  221. package/dist/esm/{tttx-graph_1_9_72.entry.js → tttx-graph_1_9_74.entry.js} +1 -1
  222. package/dist/esm/{tttx-icon_1_9_72.entry.js → tttx-icon_1_9_74.entry.js} +1 -1
  223. package/dist/esm/{tttx-keyvalue-block_1_9_72.entry.js → tttx-keyvalue-block_1_9_74.entry.js} +1 -1
  224. package/dist/esm/{tttx-loading-spinner_1_9_72_3.entry.js → tttx-loading-spinner_1_9_74_3.entry.js} +4 -4
  225. package/dist/esm/{tttx-multiselect-box_1_9_72.entry.js → tttx-multiselect-box_1_9_74.entry.js} +7 -7
  226. package/dist/esm/{tttx-percentage-bar_1_9_72.entry.js → tttx-percentage-bar_1_9_74.entry.js} +2 -2
  227. package/dist/esm/{tttx-qrcode_1_9_72.entry.js → tttx-qrcode_1_9_74.entry.js} +1 -1
  228. package/dist/esm/{tttx-range-slider_1_9_72.entry.js → tttx-range-slider_1_9_74.entry.js} +1 -1
  229. package/dist/esm/{tttx-select-box_1_9_72.entry.js → tttx-select-box_1_9_74.entry.js} +6 -6
  230. package/dist/esm/{tttx-skeleton_loader_1_9_72.entry.js → tttx-skeleton_loader_1_9_74.entry.js} +1 -1
  231. package/dist/esm/{tttx-table_1_9_72.entry.js → tttx-table_1_9_74.entry.js} +1 -1
  232. package/dist/esm/{tttx-tabs_1_9_72.entry.js → tttx-tabs_1_9_74.entry.js} +4 -4
  233. package/dist/esm/{tttx-tag-v2_1_9_72.entry.js → tttx-tag-v2_1_9_74.entry.js} +2 -2
  234. package/dist/esm/{tttx-textarea_1_9_72.entry.js → tttx-textarea_1_9_74.entry.js} +2 -2
  235. package/dist/esm/{tttx-toggle_1_9_72.entry.js → tttx-toggle_1_9_74.entry.js} +1 -1
  236. package/dist/esm/{tttx-tooltip_1_9_72.entry.js → tttx-tooltip_1_9_74.entry.js} +1 -1
  237. package/dist/esm/tttx-tree-view_1_9_74.entry.js +250 -0
  238. package/dist/esm/tttx.js +1 -1
  239. package/dist/tttx/p-0e1e86bc.entry.js +1 -0
  240. package/dist/tttx/p-13272658.entry.js +1 -1
  241. package/dist/tttx/p-1f75b5d3.entry.js +1 -1
  242. package/dist/tttx/p-32cf4137.entry.js +1 -1
  243. package/dist/tttx/p-36edf716.entry.js +1 -1
  244. package/dist/tttx/p-384f7c70.entry.js +1 -1
  245. package/dist/tttx/p-47fadd24.entry.js +1 -1
  246. package/dist/tttx/p-4c63f7da.entry.js +1 -1
  247. package/dist/tttx/p-4ddf7946.entry.js +1 -1
  248. package/dist/tttx/p-5765b7da.entry.js +1 -1
  249. package/dist/tttx/p-5b7c20ff.entry.js +1 -1
  250. package/dist/tttx/p-5e14d6aa.entry.js +1 -1
  251. package/dist/tttx/p-620b18f6.entry.js +1 -1
  252. package/dist/tttx/p-66340f2f.entry.js +1 -1
  253. package/dist/tttx/p-71bb2f21.entry.js +1 -1
  254. package/dist/tttx/p-74a8c484.entry.js +1 -1
  255. package/dist/tttx/p-789defe0.entry.js +1 -1
  256. package/dist/tttx/p-86cdb616.entry.js +1 -1
  257. package/dist/tttx/p-8beccdc9.entry.js +1 -1
  258. package/dist/tttx/p-969a4944.entry.js +1 -1
  259. package/dist/tttx/p-a2979a57.entry.js +1 -1
  260. package/dist/tttx/p-a50d9105.entry.js +1 -1
  261. package/dist/tttx/p-a8526f90.entry.js +1 -1
  262. package/dist/tttx/p-b1a24af0.entry.js +1 -1
  263. package/dist/tttx/p-b2a0053a.entry.js +1 -1
  264. package/dist/tttx/p-b4fe2853.entry.js +1 -1
  265. package/dist/tttx/p-b69ae246.entry.js +1 -1
  266. package/dist/tttx/p-b97e0e3c.entry.js +1 -1
  267. package/dist/tttx/p-c33f9022.entry.js +1 -1
  268. package/dist/tttx/p-ca58259a.entry.js +1 -1
  269. package/dist/tttx/p-ee41fe8f.entry.js +1 -1
  270. package/dist/tttx/p-f30833e3.entry.js +1 -1
  271. package/dist/tttx/p-f69b4685.entry.js +1 -1
  272. package/dist/tttx/p-ff7edd81.entry.js +1 -1
  273. package/dist/tttx/tttx.esm.js +1 -1
  274. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  275. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  276. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  277. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +3 -1
  278. package/dist/types/components.d.ts +449 -449
  279. package/package.json +1 -1
  280. package/dist/components/tttx-action-dropdown_1_9_72.d.ts +0 -11
  281. package/dist/components/tttx-checkbox-group-caption_1_9_72.d.ts +0 -11
  282. package/dist/components/tttx-checkbox-group-heading_1_9_72.d.ts +0 -11
  283. package/dist/components/tttx-checkbox-group_1_9_72.d.ts +0 -11
  284. package/dist/components/tttx-comments_1_9_72.d.ts +0 -11
  285. package/dist/components/tttx-data-pattern_1_9_72.d.ts +0 -11
  286. package/dist/components/tttx-datacard_1_9_72.d.ts +0 -11
  287. package/dist/components/tttx-dialog-box_1_9_72.d.ts +0 -11
  288. package/dist/components/tttx-expander_1_9_72.d.ts +0 -11
  289. package/dist/components/tttx-keyvalue-block_1_9_72.d.ts +0 -11
  290. package/dist/components/tttx-loading-spinner_1_9_72.d.ts +0 -11
  291. package/dist/components/tttx-multiselect-box_1_9_72.d.ts +0 -11
  292. package/dist/components/tttx-percentage-bar_1_9_72.d.ts +0 -11
  293. package/dist/components/tttx-range-slider_1_9_72.d.ts +0 -11
  294. package/dist/components/tttx-select-box_1_9_72.d.ts +0 -11
  295. package/dist/components/tttx-skeleton_loader_1_9_72.d.ts +0 -11
  296. package/dist/components/tttx-sorter_1_9_72.d.ts +0 -11
  297. package/dist/components/tttx-standalone-input_1_9_72.d.ts +0 -11
  298. package/dist/components/tttx-textarea_1_9_72.d.ts +0 -11
  299. package/dist/components/tttx-toggle_1_9_72.d.ts +0 -11
  300. package/dist/components/tttx-toolbar_1_9_72.d.ts +0 -11
  301. package/dist/components/tttx-tooltip_1_9_72.d.ts +0 -11
  302. package/dist/components/tttx-tree-view_1_9_72.d.ts +0 -11
  303. package/dist/esm/tttx-tree-view_1_9_72.entry.js +0 -203
  304. package/dist/tttx/p-d1ee41dd.entry.js +0 -1
@@ -121,9 +121,9 @@ const TttxMultiselectBox = class {
121
121
  }
122
122
  // render priority options at the top of the dropdown list
123
123
  return (h(Fragment, null, usingPriority && priorityOptions.length > 0 &&
124
- h(Fragment, null, h("tttx-tag_1_9_72", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
124
+ h(Fragment, null, h("tttx-tag_1_9_74", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
125
125
  h(Fragment, null, usingPriority &&
126
- h("tttx-tag_1_9_72", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
126
+ h("tttx-tag_1_9_74", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
127
127
  }
128
128
  dropdownOption(option) {
129
129
  // This is tested in e2e tests
@@ -134,11 +134,11 @@ const TttxMultiselectBox = class {
134
134
  const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
135
135
  // This is tested in e2e tests
136
136
  /* istanbul ignore next */
137
- return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_72", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
137
+ return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_74", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
138
138
  }
139
139
  // This is tested in e2e tests
140
140
  /* istanbul ignore next */
141
- return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_72", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
141
+ return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_74", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
142
142
  }
143
143
  // This is tested in e2e tests
144
144
  /* istanbul ignore next */
@@ -168,9 +168,9 @@ const TttxMultiselectBox = class {
168
168
  return;
169
169
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
170
170
  const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
171
- return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', readOnlyClass].join(' '), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_72", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
171
+ return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', readOnlyClass].join(' '), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_74", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
172
172
  /* istanbul ignore next */
173
- h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_72", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.isLoading ? (h("tttx-loading-spinner_1_9_72", { class: 'loading-style' })) : (this.renderDropdownOptions(this.unsavedSelectedItems))), h("div", { class: 'footer' }, h("tttx-button_1_9_72", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_9_72", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
173
+ h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_74", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.isLoading ? (h("tttx-loading-spinner_1_9_74", { class: 'loading-style' })) : (this.renderDropdownOptions(this.unsavedSelectedItems))), h("div", { class: 'footer' }, h("tttx-button_1_9_74", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_9_74", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
174
174
  }
175
175
  get el() { return getElement(this); }
176
176
  static get watchers() { return {
@@ -179,4 +179,4 @@ const TttxMultiselectBox = class {
179
179
  };
180
180
  TttxMultiselectBox.style = tttxMultiselectBoxCss;
181
181
 
182
- export { TttxMultiselectBox as tttx_multiselect_box_1_9_72 };
182
+ export { TttxMultiselectBox as tttx_multiselect_box_1_9_74 };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-9f3e16ad.js';
2
2
 
3
- const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_9_72-h{display:block}.progress.sc-tttx-percentage-bar_1_9_72{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_72 .bar.sc-tttx-percentage-bar_1_9_72{height:20px}";
3
+ const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_9_74-h{display:block}.progress.sc-tttx-percentage-bar_1_9_74{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_74 .bar.sc-tttx-percentage-bar_1_9_74{height:20px}";
4
4
 
5
5
  const TttxPercentageBar = class {
6
6
  constructor(hostRef) {
@@ -58,4 +58,4 @@ const TttxPercentageBar = class {
58
58
  };
59
59
  TttxPercentageBar.style = tttxPercentageBarCss;
60
60
 
61
- export { TttxPercentageBar as tttx_percentage_bar_1_9_72 };
61
+ export { TttxPercentageBar as tttx_percentage_bar_1_9_74 };
@@ -36,4 +36,4 @@ const TttxQrCode = class {
36
36
  };
37
37
  TttxQrCode.style = tttxQrcodeCss;
38
38
 
39
- export { TttxQrCode as tttx_qrcode_1_9_72 };
39
+ export { TttxQrCode as tttx_qrcode_1_9_74 };
@@ -183,4 +183,4 @@ const TttxRangeSlider = class {
183
183
  };
184
184
  TttxRangeSlider.style = tttxRangeSliderCss;
185
185
 
186
- export { TttxRangeSlider as tttx_range_slider_1_9_72 };
186
+ export { TttxRangeSlider as tttx_range_slider_1_9_74 };
@@ -104,7 +104,7 @@ const TttxSelectBox = class {
104
104
  let title;
105
105
  let subtitle;
106
106
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
107
- const icon = h("tttx-icon_1_9_72", { icon: chevronIcon, color: "black" });
107
+ const icon = h("tttx-icon_1_9_74", { icon: chevronIcon, color: "black" });
108
108
  let chevron = h("div", { class: "dropdown-selector-chevron" }, icon);
109
109
  if (!this.selectedItem) {
110
110
  title = h("div", { class: "placeholder" }, this.placeholder);
@@ -121,7 +121,7 @@ const TttxSelectBox = class {
121
121
  chevron = h("div", { class: "dropdown-selector-chevron-offset" }, icon);
122
122
  }
123
123
  return (h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), this.clearable && !this.readOnly &&
124
- h("tttx-icon_1_9_72", { class: "input-icon", style: { paddingTop: '5px', cursor: 'pointer' }, icon: 'close_small', onClick: this.cleanSelectedItem.bind(this) }), chevron));
124
+ h("tttx-icon_1_9_74", { class: "input-icon", style: { paddingTop: '5px', cursor: 'pointer' }, icon: 'close_small', onClick: this.cleanSelectedItem.bind(this) }), chevron));
125
125
  }
126
126
  }
127
127
  renderDropdownOptions(options) {
@@ -144,9 +144,9 @@ const TttxSelectBox = class {
144
144
  }
145
145
  // render priority options at the top of the dropdown list
146
146
  return (h(Fragment, null, usingPriority && priorityOptions.length > 0 &&
147
- h(Fragment, null, h("tttx-tag_1_9_72", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
147
+ h(Fragment, null, h("tttx-tag_1_9_74", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
148
148
  h(Fragment, null, usingPriority &&
149
- h("tttx-tag_1_9_72", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
149
+ h("tttx-tag_1_9_74", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
150
150
  }
151
151
  dropdownOption(option) {
152
152
  const selected = this.selectedItem && option.value === this.selectedItem.value;
@@ -233,7 +233,7 @@ const TttxSelectBox = class {
233
233
  return;
234
234
  const invalidClass = this.showErrorMsg ? 'invalid' : '';
235
235
  const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
236
- return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass, readOnlyClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_72", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list", onScroll: this.onSelectScroll.bind(this) }, !this.isLoading && (this.renderDropdownOptions(this._optionsData)), (this.isLoading || this.loadingNextExternalPage) && (h("tttx-loading-spinner_1_9_72", { class: 'loading-style' })))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_72", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
236
+ return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass, readOnlyClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_74", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list", onScroll: this.onSelectScroll.bind(this) }, !this.isLoading && (this.renderDropdownOptions(this._optionsData)), (this.isLoading || this.loadingNextExternalPage) && (h("tttx-loading-spinner_1_9_74", { class: 'loading-style' })))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_74", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
237
237
  }
238
238
  get el() { return getElement(this); }
239
239
  static get watchers() { return {
@@ -243,4 +243,4 @@ const TttxSelectBox = class {
243
243
  };
244
244
  TttxSelectBox.style = tttxSelectBoxCss;
245
245
 
246
- export { TttxSelectBox as tttx_select_box_1_9_72 };
246
+ export { TttxSelectBox as tttx_select_box_1_9_74 };
@@ -33,4 +33,4 @@ const TttxSkeletonLoader = class {
33
33
  };
34
34
  TttxSkeletonLoader.style = tttxSkeletonLoaderCss;
35
35
 
36
- export { TttxSkeletonLoader as tttx_skeleton_loader_1_9_72 };
36
+ export { TttxSkeletonLoader as tttx_skeleton_loader_1_9_74 };
@@ -54,4 +54,4 @@ const TttxTable = class {
54
54
  };
55
55
  TttxTable.style = tttxTableCss;
56
56
 
57
- export { TttxTable as tttx_table_1_9_72 };
57
+ export { TttxTable as tttx_table_1_9_74 };
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-9
2
2
  import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-38a67458.js';
3
3
  import './_commonjsHelpers-9943807e.js';
4
4
 
5
- const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_72{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_72-h{display:block}.tab-bar.sc-tttx-tabs_1_9_72{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_72>.left-navigation.sc-tttx-tabs_1_9_72,.tab-bar.sc-tttx-tabs_1_9_72>.right-navigation.sc-tttx-tabs_1_9_72{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_72>.left-navigation.sc-tttx-tabs_1_9_72>*.sc-tttx-tabs_1_9_72,.tab-bar.sc-tttx-tabs_1_9_72>.right-navigation.sc-tttx-tabs_1_9_72>*.sc-tttx-tabs_1_9_72{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_72>.tabs-container.sc-tttx-tabs_1_9_72{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_72>.tabs-container.wide.sc-tttx-tabs_1_9_72{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_72>.tabs-container.sc-tttx-tabs_1_9_72>*[role=tab].sc-tttx-tabs_1_9_72{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_72>.tabs-container.sc-tttx-tabs_1_9_72>*[role=tab].sc-tttx-tabs_1_9_72:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_72>.tabs-container.sc-tttx-tabs_1_9_72>*[role=tab][aria-selected].sc-tttx-tabs_1_9_72{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
5
+ const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_74{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_74-h{display:block}.tab-bar.sc-tttx-tabs_1_9_74{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_74>.left-navigation.sc-tttx-tabs_1_9_74,.tab-bar.sc-tttx-tabs_1_9_74>.right-navigation.sc-tttx-tabs_1_9_74{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_74>.left-navigation.sc-tttx-tabs_1_9_74>*.sc-tttx-tabs_1_9_74,.tab-bar.sc-tttx-tabs_1_9_74>.right-navigation.sc-tttx-tabs_1_9_74>*.sc-tttx-tabs_1_9_74{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_74>.tabs-container.sc-tttx-tabs_1_9_74{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_74>.tabs-container.wide.sc-tttx-tabs_1_9_74{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_74>.tabs-container.sc-tttx-tabs_1_9_74>*[role=tab].sc-tttx-tabs_1_9_74{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_74>.tabs-container.sc-tttx-tabs_1_9_74>*[role=tab].sc-tttx-tabs_1_9_74:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_74>.tabs-container.sc-tttx-tabs_1_9_74>*[role=tab][aria-selected].sc-tttx-tabs_1_9_74{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
6
6
 
7
7
  const TttxTabs = class {
8
8
  constructor(hostRef) {
@@ -79,7 +79,7 @@ const TttxTabs = class {
79
79
  }
80
80
  generateTab(tab) {
81
81
  var _a, _b, _c;
82
- const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_72", { style: { pointerEvents: 'none', marginTop: (_b = tab.marginTop) !== null && _b !== void 0 ? _b : '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_c = tab.tabIconSize) !== null && _c !== void 0 ? _c : 24 }));
82
+ const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_74", { style: { pointerEvents: 'none', marginTop: (_b = tab.marginTop) !== null && _b !== void 0 ? _b : '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_c = tab.tabIconSize) !== null && _c !== void 0 ? _c : 24 }));
83
83
  return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
84
84
  this.handleTabClick(tab);
85
85
  } }, tabTitle));
@@ -98,7 +98,7 @@ const TttxTabs = class {
98
98
  return;
99
99
  }
100
100
  const selectedTab = this._tabs.find(tab => tab.selected);
101
- return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_72", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_72", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
101
+ return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_74", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_74", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
102
102
  }
103
103
  static get watchers() { return {
104
104
  "tabs": ["onDataChange"]
@@ -106,4 +106,4 @@ const TttxTabs = class {
106
106
  };
107
107
  TttxTabs.style = tttxTabsCss;
108
108
 
109
- export { TttxTabs as tttx_tabs_1_9_72 };
109
+ export { TttxTabs as tttx_tabs_1_9_74 };
@@ -70,9 +70,9 @@ const TttxTagV2 = class {
70
70
  }
71
71
  render() {
72
72
  const colors = this.getColors();
73
- return (h(Host, null, h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (h("tttx-icon_1_9_72", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconStart, color: colors.icon, size: this.size === 'S' ? 12 : 16 })), h("span", null, this.text), this.hasEndIcon && this.iconEnd && (h("tttx-icon_1_9_72", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconEnd, color: colors.icon, size: this.iconSize })))));
73
+ return (h(Host, null, h("div", { class: `tag ${this.state} ${this.size} ${this.variant || ''}`, style: { 'background-color': colors.bg, color: colors.text } }, this.hasStartIcon && this.iconStart && (h("tttx-icon_1_9_74", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconStart, color: colors.icon, size: this.size === 'S' ? 12 : 16 })), h("span", null, this.text), this.hasEndIcon && this.iconEnd && (h("tttx-icon_1_9_74", { role: "icon", class: "tag_icon", "aria-label": colors.text, icon: this.iconEnd, color: colors.icon, size: this.iconSize })))));
74
74
  }
75
75
  };
76
76
  TttxTagV2.style = tttxTagV2Css;
77
77
 
78
- export { TttxTagV2 as tttx_tag_v2_1_9_72 };
78
+ export { TttxTagV2 as tttx_tag_v2_1_9_74 };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-9f3e16ad.js';
2
2
 
3
- const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_72{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_72-h{display:block}label.sc-tttx-textarea_1_9_72{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_72 .textarea-container.sc-tttx-textarea_1_9_72{position:relative}label.sc-tttx-textarea_1_9_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.sc-tttx-textarea_1_9_72{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_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.no-label.sc-tttx-textarea_1_9_72{margin-top:0}label.sc-tttx-textarea_1_9_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.sc-tttx-textarea_1_9_72~.errorBubble.sc-tttx-textarea_1_9_72{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_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.sc-tttx-textarea_1_9_72~.errorBubble.sc-tttx-textarea_1_9_72:not(.visible){display:none}label.sc-tttx-textarea_1_9_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.sc-tttx-textarea_1_9_72~.errorBubble.sc-tttx-textarea_1_9_72 span.sc-tttx-textarea_1_9_72{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.sc-tttx-textarea_1_9_72:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_72 .textarea-container.sc-tttx-textarea_1_9_72 textarea.sc-tttx-textarea_1_9_72:focus-visible{outline:none}label.sc-tttx-textarea_1_9_72 .secondarylabel.sc-tttx-textarea_1_9_72{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_72 .optional.sc-tttx-textarea_1_9_72{color:#757575;font-weight:normal}";
3
+ const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_74{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_74-h{display:block}label.sc-tttx-textarea_1_9_74{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_74 .textarea-container.sc-tttx-textarea_1_9_74{position:relative}label.sc-tttx-textarea_1_9_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.sc-tttx-textarea_1_9_74{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_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.no-label.sc-tttx-textarea_1_9_74{margin-top:0}label.sc-tttx-textarea_1_9_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.sc-tttx-textarea_1_9_74~.errorBubble.sc-tttx-textarea_1_9_74{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_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.sc-tttx-textarea_1_9_74~.errorBubble.sc-tttx-textarea_1_9_74:not(.visible){display:none}label.sc-tttx-textarea_1_9_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.sc-tttx-textarea_1_9_74~.errorBubble.sc-tttx-textarea_1_9_74 span.sc-tttx-textarea_1_9_74{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.sc-tttx-textarea_1_9_74:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_74 .textarea-container.sc-tttx-textarea_1_9_74 textarea.sc-tttx-textarea_1_9_74:focus-visible{outline:none}label.sc-tttx-textarea_1_9_74 .secondarylabel.sc-tttx-textarea_1_9_74{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_74 .optional.sc-tttx-textarea_1_9_74{color:#757575;font-weight:normal}";
4
4
 
5
5
  const TttxTextarea = class {
6
6
  constructor(hostRef) {
@@ -52,4 +52,4 @@ const TttxTextarea = class {
52
52
  };
53
53
  TttxTextarea.style = tttxTextareaCss;
54
54
 
55
- export { TttxTextarea as tttx_textarea_1_9_72 };
55
+ export { TttxTextarea as tttx_textarea_1_9_74 };
@@ -33,4 +33,4 @@ const TttxToggle = class {
33
33
  };
34
34
  TttxToggle.style = tttxToggleCss;
35
35
 
36
- export { TttxToggle as tttx_toggle_1_9_72 };
36
+ export { TttxToggle as tttx_toggle_1_9_74 };
@@ -54,4 +54,4 @@ const TttxTooltip = class {
54
54
  };
55
55
  TttxTooltip.style = tttxTooltipCss;
56
56
 
57
- export { TttxTooltip as tttx_tooltip_1_9_72 };
57
+ export { TttxTooltip as tttx_tooltip_1_9_74 };
@@ -0,0 +1,250 @@
1
+ import { r as registerInstance, c as createEvent, a as getAssetPath, h, g as getElement } from './index-9f3e16ad.js';
2
+ import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-38a67458.js';
3
+ import './_commonjsHelpers-9943807e.js';
4
+
5
+ const tttxTreeViewCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{--tree-accent:#2196F3;--tree-selected-bg:#E8E8E8;--indent:36px;--accent-gap:46px;--accent-width:4px;--tree-left-edge-shift:0px}.tree-view-element>ul{margin:0;padding:0}.tree-view-element ul{padding-left:var(--indent)}.tree-view-element ul li{list-style:none}.tree-view-element ul li.selected-group{position:relative;}.tree-view-element ul li.selected-group::before,.tree-view-element ul li.selected-group::after{display:none}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node{background-color:#E8E8E8 !important;position:relative}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node::after{content:\"\";position:absolute;top:0;bottom:0;width:var(--accent-width);left:calc(-1 * (var(--accent-gap) + var(--level, 0) * var(--indent)));background-color:var(--tree-accent);border-radius:0 2px 2px 0;z-index:5}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node{background-color:#F9F9F9 !important}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node::after{display:none !important}.tree-view-element ul li.selected-group li.inline-tree-item.element-row:not(.tree-node)::before{background-color:transparent !important}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;width:100%;padding-left:8px;align-items:center}.tree-view-element ul li.inline-tree-item .element .padding-icon{padding:6px;height:24px;width:24px;display:flex;align-items:center;justify-content:center}@media (hover: hover){.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected){cursor:pointer}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected)::before{background-color:rgba(17, 17, 17, 0.05);z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover.rowSelected::before{background-color:rgba(17, 17, 17, 0.15);z-index:3}}.tree-view-element ul li.inline-tree-item.element-row{min-height:36px;font-family:\"Roboto\", serif;font-size:16px;padding:8px 0px;position:relative;color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row::before{content:\"\";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #d5d5d5;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.tree-node::before{height:51px;z-index:2;background-color:#F9F9F9}.tree-view-element ul li.inline-tree-item.element-row.tree-node.rowSelected::before{background-color:#E8E8E8 !important}.tree-view-element ul li.inline-tree-item.element-row.tree-node *{z-index:3}.tree-view-element ul li.inline-tree-item.element-row .treeNode{width:100%;font-weight:500;color:#212121}.tree-view-element ul li.inline-tree-item.element-row .treeLeaf{width:100%;font-weight:400;color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeLeaf,.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeNode{color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row .drag-handle{margin-right:10px}.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed{border-color:red;border-style:dashed;cursor:not-allowed;opacity:0.7}@media (forced-colors: active){.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::after{background:CanvasText}.tree-view-element ul li.selected-group::after{background:Highlight}}.inline-tree-item:focus-visible{outline:2px solid var(--tree-accent);outline-offset:2px;border-radius:6px}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected{background-color:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected::before{background-color:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected:hover::before{background-color:transparent !important}";
6
+
7
+ const TttxTreeView = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.clickEvent = createEvent(this, "clickEvent", 7);
11
+ this.expandNode = createEvent(this, "expandNode", 7);
12
+ this.checkboxChange = createEvent(this, "checkboxChange", 7);
13
+ this.moveNode = createEvent(this, "moveNode", 7);
14
+ this.dragIcon = getAssetPath('assets/img/drag-icon.svg');
15
+ this.dragGhost = {
16
+ el: null,
17
+ };
18
+ this.createGhostImage = (label) => {
19
+ const ghost = document.createElement('div');
20
+ ghost.textContent = label;
21
+ Object.assign(ghost.style, {
22
+ position: 'absolute',
23
+ top: '-9999px',
24
+ left: '-9999px',
25
+ padding: '6px 20px',
26
+ background: 'white',
27
+ border: '1px solid #ccc',
28
+ fontSize: '14px',
29
+ pointerEvents: 'none',
30
+ });
31
+ document.body.appendChild(ghost);
32
+ setTimeout(() => document.body.removeChild(ghost), 0);
33
+ return ghost;
34
+ };
35
+ this.handleDragStart = (event, node, index, parentId) => {
36
+ if (!event.dataTransfer)
37
+ return;
38
+ this.draggedNodeParentId = parentId;
39
+ const payload = JSON.stringify({ parentId, index, node });
40
+ event.dataTransfer.setData('text/plain', payload);
41
+ const ghostImg = this.createGhostImage(node.title);
42
+ this.dragGhost.el = ghostImg;
43
+ event.dataTransfer.setDragImage(ghostImg, 0, 0);
44
+ };
45
+ this.handleDragDrop = (event, node, targetIndex, parentId) => {
46
+ var _a;
47
+ event.preventDefault();
48
+ const nodeData = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
49
+ if (!nodeData)
50
+ return;
51
+ const { parentId: sourceParentId, index: sourceParentIndex, node: sourceNode } = JSON.parse(nodeData);
52
+ // Prevent dropping on itself or different parents
53
+ if (node.id === sourceNode.id || sourceParentId !== parentId)
54
+ return;
55
+ const updatedTree = [...this.treeData];
56
+ // Find the parent node
57
+ const parent = parentId ? this.findNodeById(updatedTree, parentId) : null;
58
+ // If no parent (root level), work with treeData directly
59
+ const children = (parent === null || parent === void 0 ? void 0 : parent.child) ? [...parent.child] : [...updatedTree];
60
+ if (!children || children.length === 0)
61
+ return;
62
+ // Move the node
63
+ const [moved] = children.splice(sourceParentIndex, 1);
64
+ children.splice(targetIndex, 0, moved);
65
+ // Update the tree
66
+ if (parent) {
67
+ parent.child = children;
68
+ }
69
+ else {
70
+ this.treeData = children;
71
+ }
72
+ this.draggedNodeParentId = undefined;
73
+ if (this.dragGhost.el) {
74
+ this.dragGhost.el.remove();
75
+ this.dragGhost.el = null;
76
+ }
77
+ this.moveNode.emit(this.treeData);
78
+ };
79
+ this.handleDragOver = (event, parentId) => {
80
+ event.preventDefault();
81
+ if (!event.dataTransfer)
82
+ return;
83
+ const validDrag = this.draggedNodeParentId === parentId;
84
+ event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
85
+ };
86
+ this.data = undefined;
87
+ this.treeData = undefined;
88
+ }
89
+ componentWillRender() {
90
+ if (!this.data)
91
+ return;
92
+ this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
93
+ }
94
+ onClickHandler(event, node) {
95
+ event.stopPropagation();
96
+ // Handle selection: if node is already selected, deselect it; otherwise select it and deselect all others
97
+ if (node.selectable) {
98
+ if (node.selected) {
99
+ // Toggle off: deselect this node
100
+ node.selected = false;
101
+ }
102
+ else {
103
+ // Toggle on: deselect all others and select this one
104
+ this.handleNodeSelection(node);
105
+ // node.selected is already set to true in handleNodeSelection
106
+ }
107
+ this.treeData = [...this.treeData];
108
+ }
109
+ this.clickEvent.emit(node);
110
+ }
111
+ toggleNode(node, event) {
112
+ event.stopPropagation();
113
+ node.isOpen = !node.isOpen;
114
+ this.treeData = [...this.treeData];
115
+ this.expandNode.emit({ node: node, treeViewData: this.treeData });
116
+ }
117
+ handleCheckboxChange(node, event) {
118
+ event.stopPropagation();
119
+ node.checked = !node.checked;
120
+ this.updateChildrenCheckStatus(node);
121
+ this.updateParentCheckStatus();
122
+ this.treeData = [...this.treeData];
123
+ this.checkboxChange.emit(this.treeData);
124
+ }
125
+ updateChildrenCheckStatus(node) {
126
+ if (node.child) {
127
+ node.child.forEach(childNode => {
128
+ if (childNode.hasCheckbox && childNode.checked !== undefined) {
129
+ // don't set checked on a child that doesn't have a checkbox
130
+ // makes it impossible to unselect a parent as child can never be unchecked in frontend
131
+ childNode.checked = node.checked;
132
+ }
133
+ this.updateChildrenCheckStatus(childNode);
134
+ });
135
+ }
136
+ }
137
+ /**
138
+ * Update the checkbox status of parent nodes when children have been updated.
139
+ * Called recursively to traverse the tree for parents.
140
+ * First call with no params to automatically start at the top of the tree.
141
+ *
142
+ * Any children checked -> parent is checked.
143
+ *
144
+ * All children unchecked -> parent is unchecked.
145
+ */
146
+ updateParentCheckStatus(parent = undefined, children = undefined) {
147
+ if (parent === undefined) {
148
+ this.treeData.forEach(node => this.updateParentCheckStatus(node, node.child));
149
+ return;
150
+ }
151
+ let childrenCheckedStatuses = [];
152
+ // set status relative to children if we have some
153
+ if (children && children.length > 0) {
154
+ childrenCheckedStatuses = children.map(node => this.updateParentCheckStatus(node, node.child)).flat(1);
155
+ // parent checked if any children are checked
156
+ if (childrenCheckedStatuses.some(checked => checked)) {
157
+ parent.checked = true;
158
+ }
159
+ // parent unchecked if all children are unchecked
160
+ if (childrenCheckedStatuses.every(checked => !checked)) {
161
+ parent.checked = false;
162
+ }
163
+ }
164
+ // return the gathered checked statuses so nodes above can make check choices
165
+ return [...childrenCheckedStatuses, parent.checked];
166
+ }
167
+ treeConfigs(node) {
168
+ let checkboxIcon, checkboxColor;
169
+ if (node.checked) {
170
+ checkboxIcon = 'check_box';
171
+ checkboxColor = 'blue';
172
+ }
173
+ else {
174
+ checkboxIcon = 'check_box_outline_blank';
175
+ checkboxColor = 'grey';
176
+ }
177
+ const rowHoverActive = node.hasHover ? 'rowHover' : '';
178
+ const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
179
+ const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
180
+ return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive };
181
+ }
182
+ findNodeById(nodes, id) {
183
+ for (const node of nodes) {
184
+ if (node.id === id)
185
+ return node;
186
+ if (node.child) {
187
+ const found = this.findNodeById(node.child, id);
188
+ if (found)
189
+ return found;
190
+ }
191
+ }
192
+ return undefined;
193
+ }
194
+ deselectAllNodes(nodes) {
195
+ for (const node of nodes) {
196
+ if (node.selectable) {
197
+ node.selected = false;
198
+ }
199
+ if (node.child) {
200
+ this.deselectAllNodes(node.child);
201
+ }
202
+ }
203
+ }
204
+ handleNodeSelection(node) {
205
+ // Deselect all nodes first
206
+ this.deselectAllNodes(this.treeData);
207
+ // Select only the clicked node if it's selectable
208
+ if (node.selectable) {
209
+ node.selected = true;
210
+ }
211
+ // Update the tree to trigger re-render
212
+ this.treeData = [...this.treeData];
213
+ }
214
+ renderNode(node, index, parentId = undefined, level = 0 // <-- depth
215
+ ) {
216
+ var _a, _b;
217
+ const options = this.treeConfigs(node);
218
+ if (node.child) {
219
+ // group node
220
+ const isSelectedGroup = !!node.selected;
221
+ return (h("li", { class: `${isSelectedGroup ? 'selected-group' : ''}`, style: { '--level': String(level) } }, h("li", Object.assign({ "data-id": node.id, draggable: (_a = node.draggable) !== null && _a !== void 0 ? _a : false }, (node.draggable ? { onDragOver: event => this.handleDragOver(event, parentId) } : {}), (node.draggable ? { onDrop: event => this.handleDragDrop(event, node, index, parentId) } : {}), { class: `inline-tree-item element-row tree-node ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
222
+ if (node.hasHover) {
223
+ this.onClickHandler(event, node);
224
+ }
225
+ } }), h("tttx-button_1_9_74", { class: "toggleNode", design: "borderless-circle", notext: true, icon: options.expanderIcon, color: "black", onClick: event => this.toggleNode(node, event) }), this.htmlcode('treeNode', node, options.checkboxIcon, options.checkboxColor, index, parentId)), node.isOpen ? (h("ul", null, node.child.map((childNode, childIndex) => {
226
+ // next level = level + 1
227
+ return this.renderNode(childNode, childIndex, node.id, level + 1);
228
+ }))) : null));
229
+ }
230
+ // leaf (activity)
231
+ return (h("li", Object.assign({ "data-id": node.id, draggable: (_b = node.draggable) !== null && _b !== void 0 ? _b : false }, (node.draggable ? { onDragOver: event => this.handleDragOver(event, parentId) } : {}), (node.draggable ? { onDrop: event => this.handleDragDrop(event, node, index, parentId) } : {}), { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, style: { '--level': String(level) }, onClick: event => {
232
+ if (node.hasHover) {
233
+ this.onClickHandler(event, node);
234
+ }
235
+ } }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index, parentId)));
236
+ }
237
+ htmlcode(type, node, check_box, check_boxColor, index, parentId = undefined) {
238
+ const htmlcode = (h("div", { class: "inline-tree-item element" }, node.draggable && (h("img", { src: this.dragIcon, alt: "drag", class: "drag-handle", draggable: true, onDragStart: event => this.handleDragStart(event, node, index, parentId) })), node.hasCheckbox && (h("tttx-button_1_9_74", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && (h("tttx-icon_1_9_74", { icon: node.icon, color: node.iconColor, class: "padding-icon" })), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: purify.sanitize(node.html, domSanitiserOptions) })));
239
+ return htmlcode;
240
+ }
241
+ render() {
242
+ if (!this.data)
243
+ return;
244
+ return (h("div", { class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
245
+ }
246
+ get el() { return getElement(this); }
247
+ };
248
+ TttxTreeView.style = tttxTreeViewCss;
249
+
250
+ export { TttxTreeView as tttx_tree_view_1_9_74 };
package/dist/esm/tttx.js CHANGED
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy(JSON.parse("[[\"tttx-data-pattern_1_9_72\",[[1,\"tttx-data-pattern_1_9_72\",{\"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_72\",[[1,\"tttx-form_1_9_72\",{\"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_72\",[[1,\"tttx-multiselect-box_1_9_72\",{\"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_72\",[[1,\"tttx-chart_1_9_72\",{\"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_72\",[[1,\"tttx-datacard_1_9_72\",{\"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_72\",[[1,\"tttx-dialog-box_1_9_72\",{\"data\":[1025],\"size\":[1],\"open\":[1028],\"allowOverflow\":[4,\"allow-overflow\"],\"elementSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-dialog_1_9_72\",[[1,\"tttx-dialog_1_9_72\",{\"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_72\",[[1,\"tttx-tree-view_1_9_72\",{\"data\":[1040],\"treeData\":[32]}]]],[\"tttx-action-dropdown_1_9_72\",[[1,\"tttx-action-dropdown_1_9_72\",{\"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_72\",[[1,\"tttx-button-v2_1_9_72\",{\"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_72\",[[0,\"tttx-checkbox_1_9_72\",{\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"inline\":[4],\"indeterminate\":[4],\"checked\":[4]}]]],[\"tttx-comments_1_9_72\",[[1,\"tttx-comments_1_9_72\",{\"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_72\",[[1,\"tttx-expander_1_9_72\",{\"name\":[1],\"open\":[4],\"lefticon\":[1],\"lefticoncolor\":[1],\"isExpanded\":[32]}]]],[\"tttx-tabs_1_9_72\",[[2,\"tttx-tabs_1_9_72\",{\"tabsName\":[1,\"tabs-name\"],\"navigation\":[4],\"wide\":[4],\"tabs\":[1],\"_tabs\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"tttx-tag-v2_1_9_72\",[[1,\"tttx-tag-v2_1_9_72\",{\"text\":[1],\"color\":[1],\"textColor\":[1,\"text-color\"],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"iconSize\":[2,\"icon-size\"],\"state\":[1],\"size\":[1],\"variant\":[1],\"hasStartIcon\":[4,\"has-start-icon\"],\"hasEndIcon\":[4,\"has-end-icon\"]}]]],[\"tttx-checkbox-group-caption_1_9_72\",[[4,\"tttx-checkbox-group-caption_1_9_72\"]]],[\"tttx-checkbox-group-heading_1_9_72\",[[4,\"tttx-checkbox-group-heading_1_9_72\"]]],[\"tttx-checkbox-group_1_9_72\",[[1,\"tttx-checkbox-group_1_9_72\"]]],[\"tttx-keyvalue-block_1_9_72\",[[1,\"tttx-keyvalue-block_1_9_72\",{\"keyvalues\":[1],\"horizontal\":[4],\"spacedout\":[4],\"_elements\":[32]}]]],[\"tttx-percentage-bar_1_9_72\",[[2,\"tttx-percentage-bar_1_9_72\",{\"percentage\":[8],\"thresholds\":[1],\"color\":[1],\"min\":[1],\"labelid\":[1],\"_percentage\":[32],\"_ranges\":[32],\"_min\":[32]}]]],[\"tttx-qrcode_1_9_72\",[[1,\"tttx-qrcode_1_9_72\",{\"link\":[1025],\"size\":[1026]}]]],[\"tttx-range-slider_1_9_72\",[[1,\"tttx-range-slider_1_9_72\",{\"minimum\":[2],\"maximum\":[2],\"sliderMode\":[1,\"slider-mode\"],\"showFields\":[4,\"show-fields\"],\"lowerValue\":[32],\"upperValue\":[32]},[[0,\"setSliderValues\",\"onSetSliderValues\"]]]]],[\"tttx-skeleton_loader_1_9_72\",[[1,\"tttx-skeleton_loader_1_9_72\",{\"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_72\",[[1,\"tttx-table_1_9_72\",{\"headers\":[16],\"data\":[8],\"selectable\":[4],\"loading\":[4],\"selected\":[2],\"draggableHeaders\":[4,\"draggable-headers\"],\"draggedHeaderIndex\":[32]}]]],[\"tttx-textarea_1_9_72\",[[2,\"tttx-textarea_1_9_72\",{\"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_72\",[[1,\"tttx-toggle_1_9_72\",{\"initialstate\":[8],\"_state\":[32]}]]],[\"tttx-tooltip_1_9_72\",[[1,\"tttx-tooltip_1_9_72\",{\"text\":[1],\"placement\":[1],\"trigger\":[16],\"delay\":[2],\"disabled\":[4],\"ariaLabel\":[1,\"aria-label\"],\"visible\":[32]}]]],[\"tttx-select-box_1_9_72\",[[1,\"tttx-select-box_1_9_72\",{\"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_72\",[[1,\"tttx-graph_1_9_72\",{\"chartType\":[1,\"chart-type\"],\"chartData\":[1,\"chart-data\"],\"chartText\":[1,\"chart-text\"],\"chartConfig\":[32],\"formattedData\":[32]}]]],[\"tttx-icon_1_9_72\",[[1,\"tttx-icon_1_9_72\",{\"icon\":[1],\"color\":[1],\"size\":[1026]}]]],[\"tttx-filter_1_9_72_4\",[[1,\"tttx-filter_1_9_72\",{\"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_72\",{\"data\":[1025],\"name\":[1],\"_data\":[32]}],[1,\"tttx-sorter_1_9_72\",{\"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_72\",{\"border\":[4],\"viewSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-button_1_9_72\",[[1,\"tttx-button_1_9_72\",{\"notext\":[4],\"icon\":[1],\"iconposition\":[1],\"iconcolor\":[1025],\"design\":[1]}]]],[\"tttx-loading-spinner_1_9_72_3\",[[1,\"tttx-tag_1_9_72\",{\"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_72\",{\"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_72\",{\"loadingMessage\":[4,\"loading-message\"],\"size\":[1],\"color\":[1],\"message\":[1],\"customMessageSchema\":[16],\"timeElapsed\":[32]}]]]]"), options);
17
+ return bootstrapLazy(JSON.parse("[[\"tttx-data-pattern_1_9_74\",[[1,\"tttx-data-pattern_1_9_74\",{\"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_74\",[[1,\"tttx-form_1_9_74\",{\"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_74\",[[1,\"tttx-multiselect-box_1_9_74\",{\"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_74\",[[1,\"tttx-chart_1_9_74\",{\"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_74\",[[1,\"tttx-datacard_1_9_74\",{\"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_74\",[[1,\"tttx-dialog-box_1_9_74\",{\"data\":[1025],\"size\":[1],\"open\":[1028],\"allowOverflow\":[4,\"allow-overflow\"],\"elementSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-dialog_1_9_74\",[[1,\"tttx-dialog_1_9_74\",{\"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_74\",[[1,\"tttx-tree-view_1_9_74\",{\"data\":[1040],\"treeData\":[32]}]]],[\"tttx-action-dropdown_1_9_74\",[[1,\"tttx-action-dropdown_1_9_74\",{\"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_74\",[[1,\"tttx-button-v2_1_9_74\",{\"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_74\",[[0,\"tttx-checkbox_1_9_74\",{\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"inline\":[4],\"indeterminate\":[4],\"checked\":[4]}]]],[\"tttx-comments_1_9_74\",[[1,\"tttx-comments_1_9_74\",{\"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_74\",[[1,\"tttx-expander_1_9_74\",{\"name\":[1],\"open\":[4],\"lefticon\":[1],\"lefticoncolor\":[1],\"isExpanded\":[32]}]]],[\"tttx-tabs_1_9_74\",[[2,\"tttx-tabs_1_9_74\",{\"tabsName\":[1,\"tabs-name\"],\"navigation\":[4],\"wide\":[4],\"tabs\":[1],\"_tabs\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"tttx-tag-v2_1_9_74\",[[1,\"tttx-tag-v2_1_9_74\",{\"text\":[1],\"color\":[1],\"textColor\":[1,\"text-color\"],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"iconSize\":[2,\"icon-size\"],\"state\":[1],\"size\":[1],\"variant\":[1],\"hasStartIcon\":[4,\"has-start-icon\"],\"hasEndIcon\":[4,\"has-end-icon\"]}]]],[\"tttx-checkbox-group-caption_1_9_74\",[[4,\"tttx-checkbox-group-caption_1_9_74\"]]],[\"tttx-checkbox-group-heading_1_9_74\",[[4,\"tttx-checkbox-group-heading_1_9_74\"]]],[\"tttx-checkbox-group_1_9_74\",[[1,\"tttx-checkbox-group_1_9_74\"]]],[\"tttx-keyvalue-block_1_9_74\",[[1,\"tttx-keyvalue-block_1_9_74\",{\"keyvalues\":[1],\"horizontal\":[4],\"spacedout\":[4],\"_elements\":[32]}]]],[\"tttx-percentage-bar_1_9_74\",[[2,\"tttx-percentage-bar_1_9_74\",{\"percentage\":[8],\"thresholds\":[1],\"color\":[1],\"min\":[1],\"labelid\":[1],\"_percentage\":[32],\"_ranges\":[32],\"_min\":[32]}]]],[\"tttx-qrcode_1_9_74\",[[1,\"tttx-qrcode_1_9_74\",{\"link\":[1025],\"size\":[1026]}]]],[\"tttx-range-slider_1_9_74\",[[1,\"tttx-range-slider_1_9_74\",{\"minimum\":[2],\"maximum\":[2],\"sliderMode\":[1,\"slider-mode\"],\"showFields\":[4,\"show-fields\"],\"lowerValue\":[32],\"upperValue\":[32]},[[0,\"setSliderValues\",\"onSetSliderValues\"]]]]],[\"tttx-skeleton_loader_1_9_74\",[[1,\"tttx-skeleton_loader_1_9_74\",{\"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_74\",[[1,\"tttx-table_1_9_74\",{\"headers\":[16],\"data\":[8],\"selectable\":[4],\"loading\":[4],\"selected\":[2],\"draggableHeaders\":[4,\"draggable-headers\"],\"draggedHeaderIndex\":[32]}]]],[\"tttx-textarea_1_9_74\",[[2,\"tttx-textarea_1_9_74\",{\"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_74\",[[1,\"tttx-toggle_1_9_74\",{\"initialstate\":[8],\"_state\":[32]}]]],[\"tttx-tooltip_1_9_74\",[[1,\"tttx-tooltip_1_9_74\",{\"text\":[1],\"placement\":[1],\"trigger\":[16],\"delay\":[2],\"disabled\":[4],\"ariaLabel\":[1,\"aria-label\"],\"visible\":[32]}]]],[\"tttx-select-box_1_9_74\",[[1,\"tttx-select-box_1_9_74\",{\"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_74\",[[1,\"tttx-graph_1_9_74\",{\"chartType\":[1,\"chart-type\"],\"chartData\":[1,\"chart-data\"],\"chartText\":[1,\"chart-text\"],\"chartConfig\":[32],\"formattedData\":[32]}]]],[\"tttx-icon_1_9_74\",[[1,\"tttx-icon_1_9_74\",{\"icon\":[1],\"color\":[1],\"size\":[1026]}]]],[\"tttx-filter_1_9_74_4\",[[1,\"tttx-filter_1_9_74\",{\"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_74\",{\"data\":[1025],\"name\":[1],\"_data\":[32]}],[1,\"tttx-sorter_1_9_74\",{\"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_74\",{\"border\":[4],\"viewSize\":[32]},[[9,\"resize\",\"handleResize\"]]]]],[\"tttx-button_1_9_74\",[[1,\"tttx-button_1_9_74\",{\"notext\":[4],\"icon\":[1],\"iconposition\":[1],\"iconcolor\":[1025],\"design\":[1]}]]],[\"tttx-loading-spinner_1_9_74_3\",[[1,\"tttx-tag_1_9_74\",{\"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_74\",{\"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_74\",{\"loadingMessage\":[4,\"loading-message\"],\"size\":[1],\"color\":[1],\"message\":[1],\"customMessageSchema\":[16],\"timeElapsed\":[32]}]]]]"), options);
18
18
  });
@@ -0,0 +1 @@
1
+ import{r as e,c as t,a as i,h as n,g as r}from"./p-5c9beaf9.js";import{p as o,d as l}from"./p-55799798.js";import"./p-112455b1.js";const s=class{constructor(n){e(this,n),this.clickEvent=t(this,"clickEvent",7),this.expandNode=t(this,"expandNode",7),this.checkboxChange=t(this,"checkboxChange",7),this.moveNode=t(this,"moveNode",7),this.dragIcon=i("assets/img/drag-icon.svg"),this.dragGhost={el:null},this.createGhostImage=e=>{const t=document.createElement("div");return t.textContent=e,Object.assign(t.style,{position:"absolute",top:"-9999px",left:"-9999px",padding:"6px 20px",background:"white",border:"1px solid #ccc",fontSize:"14px",pointerEvents:"none"}),document.body.appendChild(t),setTimeout((()=>document.body.removeChild(t)),0),t},this.handleDragStart=(e,t,i,n)=>{if(!e.dataTransfer)return;this.draggedNodeParentId=n;const r=JSON.stringify({parentId:n,index:i,node:t});e.dataTransfer.setData("text/plain",r);const o=this.createGhostImage(t.title);this.dragGhost.el=o,e.dataTransfer.setDragImage(o,0,0)},this.handleDragDrop=(e,t,i,n)=>{var r;e.preventDefault();const o=null===(r=e.dataTransfer)||void 0===r?void 0:r.getData("text/plain");if(!o)return;const{parentId:l,index:s,node:d}=JSON.parse(o);if(t.id===d.id||l!==n)return;const c=[...this.treeData],a=n?this.findNodeById(c,n):null,m=(null==a?void 0:a.child)?[...a.child]:[...c];if(!m||0===m.length)return;const[h]=m.splice(s,1);m.splice(i,0,h),a?a.child=m:this.treeData=m,this.draggedNodeParentId=void 0,this.dragGhost.el&&(this.dragGhost.el.remove(),this.dragGhost.el=null),this.moveNode.emit(this.treeData)},this.handleDragOver=(e,t)=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.draggedNodeParentId===t?"move":"none")},this.data=void 0,this.treeData=void 0}componentWillRender(){this.data&&(this.treeData="string"==typeof this.data?JSON.parse(this.data):this.data)}onClickHandler(e,t){e.stopPropagation(),t.selectable&&(t.selected?t.selected=!1:this.handleNodeSelection(t),this.treeData=[...this.treeData]),this.clickEvent.emit(t)}toggleNode(e,t){t.stopPropagation(),e.isOpen=!e.isOpen,this.treeData=[...this.treeData],this.expandNode.emit({node:e,treeViewData:this.treeData})}handleCheckboxChange(e,t){t.stopPropagation(),e.checked=!e.checked,this.updateChildrenCheckStatus(e),this.updateParentCheckStatus(),this.treeData=[...this.treeData],this.checkboxChange.emit(this.treeData)}updateChildrenCheckStatus(e){e.child&&e.child.forEach((t=>{t.hasCheckbox&&void 0!==t.checked&&(t.checked=e.checked),this.updateChildrenCheckStatus(t)}))}updateParentCheckStatus(e,t){if(void 0===e)return void this.treeData.forEach((e=>this.updateParentCheckStatus(e,e.child)));let i=[];return t&&t.length>0&&(i=t.map((e=>this.updateParentCheckStatus(e,e.child))).flat(1),i.some((e=>e))&&(e.checked=!0),i.every((e=>!e))&&(e.checked=!1)),[...i,e.checked]}treeConfigs(e){let t,i;return e.checked?(t="check_box",i="blue"):(t="check_box_outline_blank",i="grey"),{checkboxColor:i,checkboxIcon:t,rowHoverActive:e.hasHover?"rowHover":"",expanderIcon:e.isOpen?"arrow_drop_down":"arrow_right",selectedActive:e.selectable&&e.selected?"rowSelected":""}}findNodeById(e,t){for(const i of e){if(i.id===t)return i;if(i.child){const e=this.findNodeById(i.child,t);if(e)return e}}}deselectAllNodes(e){for(const t of e)t.selectable&&(t.selected=!1),t.child&&this.deselectAllNodes(t.child)}handleNodeSelection(e){this.deselectAllNodes(this.treeData),e.selectable&&(e.selected=!0),this.treeData=[...this.treeData]}renderNode(e,t,i,r=0){var o,l;const s=this.treeConfigs(e);return e.child?n("li",{class:e.selected?"selected-group":"",style:{"--level":String(r)}},n("li",Object.assign({"data-id":e.id,draggable:null!==(o=e.draggable)&&void 0!==o&&o},e.draggable?{onDragOver:e=>this.handleDragOver(e,i)}:{},e.draggable?{onDrop:n=>this.handleDragDrop(n,e,t,i)}:{},{class:`inline-tree-item element-row tree-node ${s.rowHoverActive} ${s.selectedActive}`,onClick:t=>{e.hasHover&&this.onClickHandler(t,e)}}),n("tttx-button_1_9_74",{class:"toggleNode",design:"borderless-circle",notext:!0,icon:s.expanderIcon,color:"black",onClick:t=>this.toggleNode(e,t)}),this.htmlcode("treeNode",e,s.checkboxIcon,s.checkboxColor,t,i)),e.isOpen?n("ul",null,e.child.map(((t,i)=>this.renderNode(t,i,e.id,r+1)))):null):n("li",Object.assign({"data-id":e.id,draggable:null!==(l=e.draggable)&&void 0!==l&&l},e.draggable?{onDragOver:e=>this.handleDragOver(e,i)}:{},e.draggable?{onDrop:n=>this.handleDragDrop(n,e,t,i)}:{},{class:`inline-tree-item element-row ${s.rowHoverActive} ${s.selectedActive}`,style:{"--level":String(r)},onClick:t=>{e.hasHover&&this.onClickHandler(t,e)}}),this.htmlcode("treeLeaf",e,s.checkboxIcon,s.checkboxColor,t,i))}htmlcode(e,t,i,r,s,d){return n("div",{class:"inline-tree-item element"},t.draggable&&n("img",{src:this.dragIcon,alt:"drag",class:"drag-handle",draggable:!0,onDragStart:e=>this.handleDragStart(e,t,s,d)}),t.hasCheckbox&&n("tttx-button_1_9_74",{design:"borderless-circle",notext:!0,icon:i,iconcolor:r,class:"padding-icon checkbox",onClick:e=>this.handleCheckboxChange(t,e)}),!t.html&&t.hasIcon&&n("tttx-icon_1_9_74",{icon:t.icon,color:t.iconColor,class:"padding-icon"}),!t.html&&n("div",{class:e},t.title),t.html&&n("div",{class:e,innerHTML:o.sanitize(t.html,l)}))}render(){if(this.data)return n("div",{class:"tree-view-element"},n("ul",null,this.treeData.map(((e,t)=>this.renderNode(e,t)))))}get el(){return r(this)}};s.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{--tree-accent:#2196F3;--tree-selected-bg:#E8E8E8;--indent:36px;--accent-gap:46px;--accent-width:4px;--tree-left-edge-shift:0px}.tree-view-element>ul{margin:0;padding:0}.tree-view-element ul{padding-left:var(--indent)}.tree-view-element ul li{list-style:none}.tree-view-element ul li.selected-group{position:relative;}.tree-view-element ul li.selected-group::before,.tree-view-element ul li.selected-group::after{display:none}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node{background-color:#E8E8E8 !important;position:relative}.tree-view-element ul li.selected-group>li.inline-tree-item.element-row.tree-node::after{content:"";position:absolute;top:0;bottom:0;width:var(--accent-width);left:calc(-1 * (var(--accent-gap) + var(--level, 0) * var(--indent)));background-color:var(--tree-accent);border-radius:0 2px 2px 0;z-index:5}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node{background-color:#F9F9F9 !important}.tree-view-element ul li.selected-group>ul li.inline-tree-item.element-row.tree-node::after{display:none !important}.tree-view-element ul li.selected-group li.inline-tree-item.element-row:not(.tree-node)::before{background-color:transparent !important}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;width:100%;padding-left:8px;align-items:center}.tree-view-element ul li.inline-tree-item .element .padding-icon{padding:6px;height:24px;width:24px;display:flex;align-items:center;justify-content:center}@media (hover: hover){.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected){cursor:pointer}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover:not(.rowSelected)::before{background-color:rgba(17, 17, 17, 0.05);z-index:3}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover.rowSelected::before{background-color:rgba(17, 17, 17, 0.15);z-index:3}}.tree-view-element ul li.inline-tree-item.element-row{min-height:36px;font-family:"Roboto", serif;font-size:16px;padding:8px 0px;position:relative;color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row::before{content:"";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #d5d5d5;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.tree-node::before{height:51px;z-index:2;background-color:#F9F9F9}.tree-view-element ul li.inline-tree-item.element-row.tree-node.rowSelected::before{background-color:#E8E8E8 !important}.tree-view-element ul li.inline-tree-item.element-row.tree-node *{z-index:3}.tree-view-element ul li.inline-tree-item.element-row .treeNode{width:100%;font-weight:500;color:#212121}.tree-view-element ul li.inline-tree-item.element-row .treeLeaf{width:100%;font-weight:400;color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeLeaf,.tree-view-element ul li.inline-tree-item.element-row.rowSelected .treeNode{color:#212121 !important}.tree-view-element ul li.inline-tree-item.element-row .drag-handle{margin-right:10px}.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed{border-color:red;border-style:dashed;cursor:not-allowed;opacity:0.7}@media (forced-colors: active){.tree-view-element ul li.selected-group li.inline-tree-item.element-row.tree-node::after{background:CanvasText}.tree-view-element ul li.selected-group::after{background:Highlight}}.inline-tree-item:focus-visible{outline:2px solid var(--tree-accent);outline-offset:2px;border-radius:6px}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected{background-color:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected::before{background-color:transparent !important}.tree-view-element ul li.inline-tree-item.element-row:not(.tree-node).rowSelected:hover::before{background-color:transparent !important}';export{s as tttx_tree_view_1_9_74}
@@ -1 +1 @@
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_72}
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_74}