@3t-transform/threeteeui 1.9.56 → 1.9.57

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 (273) hide show
  1. package/dist/cjs/{index-992a9fb3.js → index-ec367fa3.js} +28 -2
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/{tttx-action-dropdown_1_9_56.cjs.entry.js → tttx-action-dropdown_1_9_57.cjs.entry.js} +3 -3
  4. package/dist/cjs/{tttx-button_1_9_56.cjs.entry.js → tttx-button_1_9_57.cjs.entry.js} +3 -3
  5. package/dist/cjs/{tttx-checkbox-group-caption_1_9_56.cjs.entry.js → tttx-checkbox-group-caption_1_9_57.cjs.entry.js} +2 -2
  6. package/dist/cjs/{tttx-checkbox-group-heading_1_9_56.cjs.entry.js → tttx-checkbox-group-heading_1_9_57.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-checkbox-group_1_9_56.cjs.entry.js → tttx-checkbox-group_1_9_57.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-checkbox_1_9_56.cjs.entry.js → tttx-checkbox_1_9_57.cjs.entry.js} +3 -3
  9. package/dist/cjs/{tttx-comments_1_9_56.cjs.entry.js → tttx-comments_1_9_57.cjs.entry.js} +3 -3
  10. package/dist/cjs/{tttx-data-pattern_1_9_56.cjs.entry.js → tttx-data-pattern_1_9_57.cjs.entry.js} +6 -6
  11. package/dist/cjs/{tttx-datacard_1_9_56.cjs.entry.js → tttx-datacard_1_9_57.cjs.entry.js} +5 -5
  12. package/dist/cjs/tttx-date-range-picker.cjs.entry.js +2 -2
  13. package/dist/cjs/{tttx-dialog-box_1_9_56.cjs.entry.js → tttx-dialog-box_1_9_57.cjs.entry.js} +4 -4
  14. package/dist/cjs/{tttx-dialog_1_9_56.cjs.entry.js → tttx-dialog_1_9_57.cjs.entry.js} +3 -3
  15. package/dist/cjs/{tttx-expander_1_9_56.cjs.entry.js → tttx-expander_1_9_57.cjs.entry.js} +3 -3
  16. package/dist/cjs/{tttx-filter_1_9_56_4.cjs.entry.js → tttx-filter_1_9_57_4.cjs.entry.js} +10 -10
  17. package/dist/cjs/{tttx-form_1_9_56.cjs.entry.js → tttx-form_1_9_57.cjs.entry.js} +3 -3
  18. package/dist/cjs/{tttx-graph_1_9_56.cjs.entry.js → tttx-graph_1_9_57.cjs.entry.js} +2 -2
  19. package/dist/cjs/{tttx-icon_1_9_56.cjs.entry.js → tttx-icon_1_9_57.cjs.entry.js} +2 -2
  20. package/dist/cjs/{tttx-keyvalue-block_1_9_56.cjs.entry.js → tttx-keyvalue-block_1_9_57.cjs.entry.js} +2 -2
  21. package/dist/cjs/{tttx-loading-spinner_1_9_56_3.cjs.entry.js → tttx-loading-spinner_1_9_57_3.cjs.entry.js} +7 -7
  22. package/dist/cjs/{tttx-multiselect-box_1_9_56.cjs.entry.js → tttx-multiselect-box_1_9_57.cjs.entry.js} +8 -8
  23. package/dist/cjs/{tttx-percentage-bar_1_9_56.cjs.entry.js → tttx-percentage-bar_1_9_57.cjs.entry.js} +3 -3
  24. package/dist/cjs/{tttx-qrcode_1_9_56.cjs.entry.js → tttx-qrcode_1_9_57.cjs.entry.js} +2 -2
  25. package/dist/cjs/{tttx-select-box_1_9_56.cjs.entry.js → tttx-select-box_1_9_57.cjs.entry.js} +7 -7
  26. package/dist/cjs/{tttx-skeleton_loader_1_9_56.cjs.entry.js → tttx-skeleton_loader_1_9_57.cjs.entry.js} +2 -2
  27. package/dist/cjs/{tttx-table_1_9_56.cjs.entry.js → tttx-table_1_9_57.cjs.entry.js} +2 -2
  28. package/dist/cjs/{tttx-tabs_1_9_56.cjs.entry.js → tttx-tabs_1_9_57.cjs.entry.js} +5 -5
  29. package/dist/cjs/{tttx-textarea_1_9_56.cjs.entry.js → tttx-textarea_1_9_57.cjs.entry.js} +3 -3
  30. package/dist/cjs/{tttx-toggle_1_9_56.cjs.entry.js → tttx-toggle_1_9_57.cjs.entry.js} +2 -2
  31. package/dist/cjs/{tttx-tree-view_1_9_56.cjs.entry.js → tttx-tree-view_1_9_57.cjs.entry.js} +93 -19
  32. package/dist/cjs/tttx.cjs.js +2 -2
  33. package/dist/collection/assets/img/drag-icon.svg +3 -0
  34. package/dist/collection/components/assets/drag-icon.svg +3 -0
  35. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  36. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +24 -24
  37. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  38. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  39. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  40. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  41. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  42. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  43. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  44. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  45. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  46. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +2 -2
  47. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  48. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  49. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  50. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  51. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +1 -1
  52. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
  53. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  54. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  55. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  56. package/dist/collection/components/domsanitiser.options.js +14 -0
  57. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +2 -2
  58. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +1 -1
  59. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  60. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  61. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  62. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  63. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +2 -2
  64. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +2 -2
  65. package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.js +1 -1
  66. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  67. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  68. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  69. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  70. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  71. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  72. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  73. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  74. package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -2
  75. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +8 -8
  76. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  77. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  78. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  79. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  80. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +7 -7
  81. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
  82. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
  83. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
  84. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  85. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  86. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  87. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  88. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  89. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  90. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  91. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  92. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  93. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  94. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  95. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  96. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +9 -0
  97. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +111 -18
  98. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +35 -532
  99. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  100. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  101. package/dist/components/index.d.ts +33 -33
  102. package/dist/components/index.js +33 -33
  103. package/dist/components/tttx-action-dropdown_1_9_57.d.ts +11 -0
  104. package/dist/components/{tttx-action-dropdown_1_9_56.js → tttx-action-dropdown_1_9_57.js} +7 -7
  105. package/dist/components/tttx-button.js +5 -5
  106. package/dist/components/{tttx-dialog_1_9_56.d.ts → tttx-button_1_9_57.d.ts} +4 -4
  107. package/dist/components/{tttx-button_1_9_56.js → tttx-button_1_9_57.js} +2 -2
  108. package/dist/components/tttx-checkbox-group-caption_1_9_57.d.ts +11 -0
  109. package/dist/components/{tttx-checkbox-group-caption_1_9_56.js → tttx-checkbox-group-caption_1_9_57.js} +5 -5
  110. package/dist/components/tttx-checkbox-group-heading_1_9_57.d.ts +11 -0
  111. package/dist/components/{tttx-checkbox-group-heading_1_9_56.js → tttx-checkbox-group-heading_1_9_57.js} +5 -5
  112. package/dist/components/tttx-checkbox-group_1_9_57.d.ts +11 -0
  113. package/dist/components/{tttx-checkbox-group_1_9_56.js → tttx-checkbox-group_1_9_57.js} +5 -5
  114. package/dist/components/{tttx-comments_1_9_56.d.ts → tttx-checkbox_1_9_57.d.ts} +4 -4
  115. package/dist/components/{tttx-checkbox_1_9_56.js → tttx-checkbox_1_9_57.js} +7 -7
  116. package/dist/components/{tttx-datacard_1_9_56.d.ts → tttx-comments_1_9_57.d.ts} +4 -4
  117. package/dist/components/{tttx-comments_1_9_56.js → tttx-comments_1_9_57.js} +7 -7
  118. package/dist/components/tttx-data-pattern_1_9_57.d.ts +11 -0
  119. package/dist/components/{tttx-data-pattern_1_9_56.js → tttx-data-pattern_1_9_57.js} +16 -16
  120. package/dist/components/{tttx-checkbox_1_9_56.d.ts → tttx-datacard_1_9_57.d.ts} +4 -4
  121. package/dist/components/{tttx-datacard_1_9_56.js → tttx-datacard_1_9_57.js} +10 -10
  122. package/dist/components/tttx-date-range-picker.js +3 -3
  123. package/dist/components/tttx-dialog-box_1_9_57.d.ts +11 -0
  124. package/dist/components/{tttx-dialog-box_1_9_56.js → tttx-dialog-box_1_9_57.js} +9 -9
  125. package/dist/components/{tttx-button_1_9_56.d.ts → tttx-dialog_1_9_57.d.ts} +4 -4
  126. package/dist/components/{tttx-dialog_1_9_56.js → tttx-dialog_1_9_57.js} +8 -8
  127. package/dist/components/tttx-expander_1_9_57.d.ts +11 -0
  128. package/dist/components/{tttx-expander_1_9_56.js → tttx-expander_1_9_57.js} +7 -7
  129. package/dist/components/tttx-filter.js +6 -6
  130. package/dist/components/{tttx-filter_1_9_56.d.ts → tttx-filter_1_9_57.d.ts} +4 -4
  131. package/dist/components/{tttx-filter_1_9_56.js → tttx-filter_1_9_57.js} +2 -2
  132. package/dist/components/{tttx-tabs_1_9_56.d.ts → tttx-form_1_9_57.d.ts} +4 -4
  133. package/dist/components/{tttx-form_1_9_56.js → tttx-form_1_9_57.js} +11 -11
  134. package/dist/components/tttx-graph.js +3 -3
  135. package/dist/components/{tttx-graph_1_9_56.d.ts → tttx-graph_1_9_57.d.ts} +4 -4
  136. package/dist/components/{tttx-graph_1_9_56.js → tttx-graph_1_9_57.js} +2 -2
  137. package/dist/components/tttx-icon.js +3 -3
  138. package/dist/components/{tttx-icon_1_9_56.d.ts → tttx-icon_1_9_57.d.ts} +4 -4
  139. package/dist/components/{tttx-icon_1_9_56.js → tttx-icon_1_9_57.js} +2 -2
  140. package/dist/components/tttx-keyvalue-block_1_9_57.d.ts +11 -0
  141. package/dist/components/{tttx-keyvalue-block_1_9_56.js → tttx-keyvalue-block_1_9_57.js} +5 -5
  142. package/dist/components/tttx-list.js +6 -6
  143. package/dist/components/{tttx-list_1_9_56.d.ts → tttx-list_1_9_57.d.ts} +4 -4
  144. package/dist/components/{tttx-list_1_9_56.js → tttx-list_1_9_57.js} +2 -2
  145. package/dist/components/tttx-loading-spinner.js +3 -3
  146. package/dist/components/tttx-loading-spinner_1_9_57.d.ts +11 -0
  147. package/dist/components/{tttx-loading-spinner_1_9_56.js → tttx-loading-spinner_1_9_57.js} +2 -2
  148. package/dist/components/tttx-multiselect-box_1_9_57.d.ts +11 -0
  149. package/dist/components/{tttx-multiselect-box_1_9_56.js → tttx-multiselect-box_1_9_57.js} +16 -16
  150. package/dist/components/tttx-percentage-bar_1_9_57.d.ts +11 -0
  151. package/dist/components/{tttx-percentage-bar_1_9_56.js → tttx-percentage-bar_1_9_57.js} +6 -6
  152. package/dist/components/{tttx-qrcode_1_9_56.d.ts → tttx-qrcode_1_9_57.d.ts} +4 -4
  153. package/dist/components/{tttx-qrcode_1_9_56.js → tttx-qrcode_1_9_57.js} +5 -5
  154. package/dist/components/tttx-select-box.js +12 -12
  155. package/dist/components/tttx-select-box_1_9_57.d.ts +11 -0
  156. package/dist/components/{tttx-select-box_1_9_56.js → tttx-select-box_1_9_57.js} +2 -2
  157. package/dist/components/tttx-skeleton_loader_1_9_57.d.ts +11 -0
  158. package/dist/components/{tttx-skeleton_loader_1_9_56.js → tttx-skeleton_loader_1_9_57.js} +5 -5
  159. package/dist/components/tttx-sorter.js +5 -5
  160. package/dist/components/tttx-sorter_1_9_57.d.ts +11 -0
  161. package/dist/components/{tttx-sorter_1_9_56.js → tttx-sorter_1_9_57.js} +2 -2
  162. package/dist/components/tttx-standalone-input.js +6 -6
  163. package/dist/components/tttx-standalone-input_1_9_57.d.ts +11 -0
  164. package/dist/components/{tttx-standalone-input_1_9_56.js → tttx-standalone-input_1_9_57.js} +2 -2
  165. package/dist/components/{tttx-table_1_9_56.d.ts → tttx-table_1_9_57.d.ts} +4 -4
  166. package/dist/components/{tttx-table_1_9_56.js → tttx-table_1_9_57.js} +5 -5
  167. package/dist/components/{tttx-form_1_9_56.d.ts → tttx-tabs_1_9_57.d.ts} +4 -4
  168. package/dist/components/{tttx-tabs_1_9_56.js → tttx-tabs_1_9_57.js} +9 -9
  169. package/dist/components/tttx-tag.js +5 -5
  170. package/dist/components/{tttx-tag_1_9_56.d.ts → tttx-tag_1_9_57.d.ts} +4 -4
  171. package/dist/components/{tttx-tag_1_9_56.js → tttx-tag_1_9_57.js} +2 -2
  172. package/dist/components/tttx-textarea_1_9_57.d.ts +11 -0
  173. package/dist/components/{tttx-textarea_1_9_56.js → tttx-textarea_1_9_57.js} +6 -6
  174. package/dist/components/tttx-toggle_1_9_57.d.ts +11 -0
  175. package/dist/components/{tttx-toggle_1_9_56.js → tttx-toggle_1_9_57.js} +5 -5
  176. package/dist/components/tttx-toolbar.js +3 -3
  177. package/dist/components/tttx-toolbar_1_9_57.d.ts +11 -0
  178. package/dist/components/{tttx-toolbar_1_9_56.js → tttx-toolbar_1_9_57.js} +2 -2
  179. package/dist/components/tttx-tree-view_1_9_57.d.ts +11 -0
  180. package/dist/components/{tttx-tree-view_1_9_56.js → tttx-tree-view_1_9_57.js} +99 -25
  181. package/dist/esm/{index-b11965d8.js → index-3d473f8b.js} +28 -3
  182. package/dist/esm/loader.js +3 -3
  183. package/dist/esm/{tttx-action-dropdown_1_9_56.entry.js → tttx-action-dropdown_1_9_57.entry.js} +3 -3
  184. package/dist/esm/{tttx-button_1_9_56.entry.js → tttx-button_1_9_57.entry.js} +3 -3
  185. package/dist/esm/{tttx-checkbox-group-caption_1_9_56.entry.js → tttx-checkbox-group-caption_1_9_57.entry.js} +2 -2
  186. package/dist/esm/{tttx-checkbox-group-heading_1_9_56.entry.js → tttx-checkbox-group-heading_1_9_57.entry.js} +2 -2
  187. package/dist/esm/{tttx-checkbox-group_1_9_56.entry.js → tttx-checkbox-group_1_9_57.entry.js} +2 -2
  188. package/dist/esm/{tttx-checkbox_1_9_56.entry.js → tttx-checkbox_1_9_57.entry.js} +3 -3
  189. package/dist/esm/{tttx-comments_1_9_56.entry.js → tttx-comments_1_9_57.entry.js} +3 -3
  190. package/dist/esm/{tttx-data-pattern_1_9_56.entry.js → tttx-data-pattern_1_9_57.entry.js} +6 -6
  191. package/dist/esm/{tttx-datacard_1_9_56.entry.js → tttx-datacard_1_9_57.entry.js} +5 -5
  192. package/dist/esm/tttx-date-range-picker.entry.js +2 -2
  193. package/dist/esm/{tttx-dialog-box_1_9_56.entry.js → tttx-dialog-box_1_9_57.entry.js} +4 -4
  194. package/dist/esm/{tttx-dialog_1_9_56.entry.js → tttx-dialog_1_9_57.entry.js} +3 -3
  195. package/dist/esm/{tttx-expander_1_9_56.entry.js → tttx-expander_1_9_57.entry.js} +3 -3
  196. package/dist/esm/{tttx-filter_1_9_56_4.entry.js → tttx-filter_1_9_57_4.entry.js} +7 -7
  197. package/dist/esm/{tttx-form_1_9_56.entry.js → tttx-form_1_9_57.entry.js} +3 -3
  198. package/dist/esm/{tttx-graph_1_9_56.entry.js → tttx-graph_1_9_57.entry.js} +2 -2
  199. package/dist/esm/{tttx-icon_1_9_56.entry.js → tttx-icon_1_9_57.entry.js} +2 -2
  200. package/dist/esm/{tttx-keyvalue-block_1_9_56.entry.js → tttx-keyvalue-block_1_9_57.entry.js} +2 -2
  201. package/dist/esm/{tttx-loading-spinner_1_9_56_3.entry.js → tttx-loading-spinner_1_9_57_3.entry.js} +5 -5
  202. package/dist/esm/{tttx-multiselect-box_1_9_56.entry.js → tttx-multiselect-box_1_9_57.entry.js} +8 -8
  203. package/dist/esm/{tttx-percentage-bar_1_9_56.entry.js → tttx-percentage-bar_1_9_57.entry.js} +3 -3
  204. package/dist/esm/{tttx-qrcode_1_9_56.entry.js → tttx-qrcode_1_9_57.entry.js} +2 -2
  205. package/dist/esm/{tttx-select-box_1_9_56.entry.js → tttx-select-box_1_9_57.entry.js} +7 -7
  206. package/dist/esm/{tttx-skeleton_loader_1_9_56.entry.js → tttx-skeleton_loader_1_9_57.entry.js} +2 -2
  207. package/dist/esm/{tttx-table_1_9_56.entry.js → tttx-table_1_9_57.entry.js} +2 -2
  208. package/dist/esm/{tttx-tabs_1_9_56.entry.js → tttx-tabs_1_9_57.entry.js} +5 -5
  209. package/dist/esm/{tttx-textarea_1_9_56.entry.js → tttx-textarea_1_9_57.entry.js} +3 -3
  210. package/dist/esm/{tttx-toggle_1_9_56.entry.js → tttx-toggle_1_9_57.entry.js} +2 -2
  211. package/dist/esm/tttx-tree-view_1_9_57.entry.js +203 -0
  212. package/dist/esm/tttx.js +3 -3
  213. package/dist/tttx/{p-b077aa45.entry.js → p-079da884.entry.js} +1 -1
  214. package/dist/tttx/{p-e8b9acb8.entry.js → p-13d3d63c.entry.js} +1 -1
  215. package/dist/tttx/{p-e23f0843.entry.js → p-1814eb61.entry.js} +1 -1
  216. package/dist/tttx/{p-80c3103a.entry.js → p-19294325.entry.js} +1 -1
  217. package/dist/tttx/{p-22150380.entry.js → p-218f3309.entry.js} +1 -1
  218. package/dist/tttx/{p-652aaf6c.entry.js → p-24eef142.entry.js} +1 -1
  219. package/dist/tttx/{p-e5f97b02.entry.js → p-2636cba4.entry.js} +1 -1
  220. package/dist/tttx/p-2b0fc913.js +2 -0
  221. package/dist/tttx/{p-222b7f89.entry.js → p-477b66de.entry.js} +1 -1
  222. package/dist/tttx/{p-1d8210d3.entry.js → p-54060e46.entry.js} +1 -1
  223. package/dist/tttx/{p-7ff42357.entry.js → p-5f35edd8.entry.js} +1 -1
  224. package/dist/tttx/{p-49bae603.entry.js → p-61af5028.entry.js} +1 -1
  225. package/dist/tttx/{p-4560cb86.entry.js → p-67f75171.entry.js} +1 -1
  226. package/dist/tttx/{p-e4b36835.entry.js → p-7bfa4e1e.entry.js} +1 -1
  227. package/dist/tttx/p-7c7e8951.entry.js +1 -0
  228. package/dist/tttx/{p-3f2f039d.entry.js → p-972b7449.entry.js} +1 -1
  229. package/dist/tttx/{p-b2a7e078.entry.js → p-a12aff0f.entry.js} +1 -1
  230. package/dist/tttx/{p-21bb99dd.entry.js → p-a1ba99fb.entry.js} +1 -1
  231. package/dist/tttx/{p-61df30c5.entry.js → p-a474dc05.entry.js} +1 -1
  232. package/dist/tttx/{p-98bee16c.entry.js → p-a800aa5d.entry.js} +1 -1
  233. package/dist/tttx/{p-555885cc.entry.js → p-acb9e007.entry.js} +1 -1
  234. package/dist/tttx/{p-9262d276.entry.js → p-b44ddcb7.entry.js} +1 -1
  235. package/dist/tttx/{p-65da8c2a.entry.js → p-b4b5e1e1.entry.js} +1 -1
  236. package/dist/tttx/{p-354fc8d4.entry.js → p-bbecd0d9.entry.js} +2 -2
  237. package/dist/tttx/{p-6343251b.entry.js → p-bc8c1d08.entry.js} +1 -1
  238. package/dist/tttx/{p-9426547c.entry.js → p-cb3b393b.entry.js} +1 -1
  239. package/dist/tttx/{p-c7ff1887.entry.js → p-d62c8ed2.entry.js} +1 -1
  240. package/dist/tttx/{p-8aeb43df.entry.js → p-e84965f0.entry.js} +1 -1
  241. package/dist/tttx/{p-03c3c654.entry.js → p-edf27c73.entry.js} +1 -1
  242. package/dist/tttx/{p-71372d3a.entry.js → p-f1e945ba.entry.js} +1 -1
  243. package/dist/tttx/tttx.esm.js +1 -1
  244. package/dist/types/components/domsanitiser.options.d.ts +10 -0
  245. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  246. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  247. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  248. package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +1 -0
  249. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +14 -2
  250. package/dist/types/components.d.ts +395 -394
  251. package/package.json +2 -2
  252. package/dist/components/tttx-action-dropdown_1_9_56.d.ts +0 -11
  253. package/dist/components/tttx-checkbox-group-caption_1_9_56.d.ts +0 -11
  254. package/dist/components/tttx-checkbox-group-heading_1_9_56.d.ts +0 -11
  255. package/dist/components/tttx-checkbox-group_1_9_56.d.ts +0 -11
  256. package/dist/components/tttx-data-pattern_1_9_56.d.ts +0 -11
  257. package/dist/components/tttx-dialog-box_1_9_56.d.ts +0 -11
  258. package/dist/components/tttx-expander_1_9_56.d.ts +0 -11
  259. package/dist/components/tttx-keyvalue-block_1_9_56.d.ts +0 -11
  260. package/dist/components/tttx-loading-spinner_1_9_56.d.ts +0 -11
  261. package/dist/components/tttx-multiselect-box_1_9_56.d.ts +0 -11
  262. package/dist/components/tttx-percentage-bar_1_9_56.d.ts +0 -11
  263. package/dist/components/tttx-select-box_1_9_56.d.ts +0 -11
  264. package/dist/components/tttx-skeleton_loader_1_9_56.d.ts +0 -11
  265. package/dist/components/tttx-sorter_1_9_56.d.ts +0 -11
  266. package/dist/components/tttx-standalone-input_1_9_56.d.ts +0 -11
  267. package/dist/components/tttx-textarea_1_9_56.d.ts +0 -11
  268. package/dist/components/tttx-toggle_1_9_56.d.ts +0 -11
  269. package/dist/components/tttx-toolbar_1_9_56.d.ts +0 -11
  270. package/dist/components/tttx-tree-view_1_9_56.d.ts +0 -11
  271. package/dist/esm/tttx-tree-view_1_9_56.entry.js +0 -129
  272. package/dist/tttx/p-65bb4035.js +0 -2
  273. package/dist/tttx/p-9896a083.entry.js +0 -1
@@ -0,0 +1,203 @@
1
+ import { r as registerInstance, c as createEvent, a as getAssetPath, h, F as Fragment, g as getElement } from './index-3d473f8b.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}.tree-view-element>ul{margin:0;padding:0}.tree-view-element>* ul{padding:0 0 0 36px}.tree-view-element ul li{list-style-type:none}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;width:100%;padding-left:8px}.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{cursor:pointer}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover::before{content:\"\";position:absolute;left:-50%;top:0;bottom:0;right:0;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.rowHover:not(.rowSelected):hover::before{background-color:rgba(17, 17, 17, 0.05)}.tree-view-element ul li.inline-tree-item.element-row.rowHover.rowSelected:hover::before{background-color:rgba(17, 17, 17, 0.15)}}.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}.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.rowSelected::before{content:\"\";position:absolute;left:-50%;top:0;bottom:0;right:0;background-color:rgba(17, 17, 17, 0.1);pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.tree-node::before{background-color:#fafafa;height:51px;z-index:1}.tree-view-element ul li.inline-tree-item.element-row.tree-node *{z-index:2}.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}.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}";
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
+ if (node.id === sourceNode.id || sourceParentId !== parentId)
53
+ return;
54
+ const updatedTree = [...this.treeData];
55
+ const parent = this.findNodeById(updatedTree, parentId);
56
+ const children = [...parent.child];
57
+ const [moved] = children.splice(sourceParentIndex, 1);
58
+ children.splice(targetIndex, 0, moved);
59
+ parent.child = children;
60
+ this.treeData = updatedTree;
61
+ this.draggedNodeParentId = undefined;
62
+ if (this.dragGhost.el) {
63
+ this.dragGhost.el.remove();
64
+ this.dragGhost.el = null;
65
+ }
66
+ this.moveNode.emit(this.treeData);
67
+ };
68
+ this.handleDragOver = (event, parentId) => {
69
+ event.preventDefault();
70
+ if (!event.dataTransfer)
71
+ return;
72
+ const validDrag = this.draggedNodeParentId === parentId;
73
+ event.dataTransfer.dropEffect = validDrag ? 'move' : 'none';
74
+ };
75
+ this.data = undefined;
76
+ this.treeData = undefined;
77
+ }
78
+ componentWillRender() {
79
+ if (!this.data)
80
+ return;
81
+ this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
82
+ }
83
+ onClickHandler(event, node) {
84
+ event.stopPropagation();
85
+ this.clickEvent.emit(node);
86
+ }
87
+ toggleNode(node, event) {
88
+ event.stopPropagation();
89
+ node.isOpen = !node.isOpen;
90
+ this.treeData = [...this.treeData];
91
+ this.expandNode.emit({ node: node, treeViewData: this.treeData });
92
+ }
93
+ handleCheckboxChange(node, event) {
94
+ event.stopPropagation();
95
+ node.checked = !node.checked;
96
+ this.updateChildrenCheckStatus(node);
97
+ this.updateParentCheckStatus();
98
+ this.treeData = [...this.treeData];
99
+ this.checkboxChange.emit(this.treeData);
100
+ }
101
+ updateChildrenCheckStatus(node) {
102
+ if (node.child) {
103
+ node.child.forEach(childNode => {
104
+ if (childNode.hasCheckbox && childNode.checked !== undefined) {
105
+ // don't set checked on a child that doesn't have a checkbox
106
+ // makes it impossible to unselect a parent as child can never be unchecked in frontend
107
+ childNode.checked = node.checked;
108
+ }
109
+ this.updateChildrenCheckStatus(childNode);
110
+ });
111
+ }
112
+ }
113
+ /**
114
+ * Update the checkbox status of parent nodes when children have been updated.
115
+ * Called recursively to traverse the tree for parents.
116
+ * First call with no params to automatically start at the top of the tree.
117
+ *
118
+ * Any children checked -> parent is checked.
119
+ *
120
+ * All children unchecked -> parent is unchecked.
121
+ */
122
+ updateParentCheckStatus(parent = undefined, children = undefined) {
123
+ if (parent === undefined) {
124
+ this.treeData.forEach(node => this.updateParentCheckStatus(node, node.child));
125
+ return;
126
+ }
127
+ let childrenCheckedStatuses = [];
128
+ // set status relative to children if we have some
129
+ if (children && children.length > 0) {
130
+ childrenCheckedStatuses = children.map(node => this.updateParentCheckStatus(node, node.child)).flat(1);
131
+ // parent checked if any children are checked
132
+ if (childrenCheckedStatuses.some(checked => checked)) {
133
+ parent.checked = true;
134
+ }
135
+ // parent unchecked if all children are unchecked
136
+ if (childrenCheckedStatuses.every(checked => !checked)) {
137
+ parent.checked = false;
138
+ }
139
+ }
140
+ // return the gathered checked statuses so nodes above can make check choices
141
+ return [...childrenCheckedStatuses, parent.checked];
142
+ }
143
+ treeConfigs(node) {
144
+ let checkboxIcon, checkboxColor;
145
+ if (node.checked) {
146
+ checkboxIcon = 'check_box';
147
+ checkboxColor = 'blue';
148
+ }
149
+ else {
150
+ checkboxIcon = 'check_box_outline_blank';
151
+ checkboxColor = 'grey';
152
+ }
153
+ const rowHoverActive = node.hasHover ? 'rowHover' : '';
154
+ const expanderIcon = node.isOpen ? 'arrow_drop_down' : 'arrow_right';
155
+ const selectedActive = node.selectable && node.selected ? 'rowSelected' : '';
156
+ return { checkboxColor, checkboxIcon, rowHoverActive, expanderIcon, selectedActive };
157
+ }
158
+ findNodeById(nodes, id) {
159
+ for (const node of nodes) {
160
+ if (node.id === id)
161
+ return node;
162
+ if (node.child) {
163
+ const found = this.findNodeById(node.child, id);
164
+ if (found)
165
+ return found;
166
+ }
167
+ }
168
+ return undefined;
169
+ }
170
+ renderNode(node, index, parentId = undefined) {
171
+ var _a, _b;
172
+ const options = this.treeConfigs(node);
173
+ if (node.child) {
174
+ return (h(Fragment, null, 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 => {
175
+ if (node.hasHover) {
176
+ this.onClickHandler(event, node);
177
+ }
178
+ } }), h("tttx-button_1_9_57", { 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("li", null, h("ul", null, node.child.map((childNode, index) => {
179
+ return this.renderNode(childNode, index, node.id);
180
+ })))) : null));
181
+ }
182
+ else {
183
+ 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}`, onClick: event => {
184
+ if (node.hasHover) {
185
+ this.onClickHandler(event, node);
186
+ }
187
+ } }), this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor, index, parentId)));
188
+ }
189
+ }
190
+ htmlcode(type, node, check_box, check_boxColor, index, parentId = undefined) {
191
+ 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_57", { 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_57", { 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) })));
192
+ return htmlcode;
193
+ }
194
+ render() {
195
+ if (!this.data)
196
+ return;
197
+ return (h("div", { class: "tree-view-element" }, h("ul", null, this.treeData.map((node, index) => this.renderNode(node, index)))));
198
+ }
199
+ get el() { return getElement(this); }
200
+ };
201
+ TttxTreeView.style = tttxTreeViewCss;
202
+
203
+ export { TttxTreeView as tttx_tree_view_1_9_57 };
package/dist/esm/tttx.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-b11965d8.js';
2
- export { s as setNonce } from './index-b11965d8.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-3d473f8b.js';
2
+ export { s as setNonce } from './index-3d473f8b.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["tttx-data-pattern_1_9_56",[[1,"tttx-data-pattern_1_9_56",{"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_56",[[1,"tttx-form_1_9_56",{"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_56",[[1,"tttx-multiselect-box_1_9_56",{"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-datacard_1_9_56",[[1,"tttx-datacard_1_9_56",{"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_56",[[1,"tttx-dialog-box_1_9_56",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_56",[[1,"tttx-dialog_1_9_56",{"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_56",[[1,"tttx-tree-view_1_9_56",{"data":[1040],"treeData":[32]}]]],["tttx-action-dropdown_1_9_56",[[1,"tttx-action-dropdown_1_9_56",{"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-checkbox_1_9_56",[[0,"tttx-checkbox_1_9_56",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_56",[[1,"tttx-comments_1_9_56",{"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],"leftMonth":[32],"leftYear":[32],"rightMonth":[32],"rightYear":[32],"isSelecting":[32]}]]],["tttx-expander_1_9_56",[[1,"tttx-expander_1_9_56",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_56",[[2,"tttx-tabs_1_9_56",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_56",[[4,"tttx-checkbox-group-caption_1_9_56"]]],["tttx-checkbox-group-heading_1_9_56",[[4,"tttx-checkbox-group-heading_1_9_56"]]],["tttx-checkbox-group_1_9_56",[[1,"tttx-checkbox-group_1_9_56"]]],["tttx-keyvalue-block_1_9_56",[[1,"tttx-keyvalue-block_1_9_56",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-percentage-bar_1_9_56",[[2,"tttx-percentage-bar_1_9_56",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_56",[[1,"tttx-qrcode_1_9_56",{"link":[1025],"size":[1026]}]]],["tttx-skeleton_loader_1_9_56",[[1,"tttx-skeleton_loader_1_9_56",{"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_56",[[1,"tttx-table_1_9_56",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-textarea_1_9_56",[[2,"tttx-textarea_1_9_56",{"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_56",[[1,"tttx-toggle_1_9_56",{"initialstate":[8],"_state":[32]}]]],["tttx-loading-spinner_1_9_56_3",[[1,"tttx-tag_1_9_56",{"text":[1],"color":[1],"textColor":[1,"text-color"],"hasIcon":[4,"has-icon"],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"]}],[1,"tttx-loading-spinner_1_9_56",{"loadingMessage":[4,"loading-message"],"size":[1],"color":[1],"message":[1],"customMessageSchema":[16],"timeElapsed":[32]}],[2,"tttx-standalone-input_1_9_56",{"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]}]]],["tttx-select-box_1_9_56",[[1,"tttx-select-box_1_9_56",{"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_56",[[1,"tttx-graph_1_9_56",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-icon_1_9_56",[[1,"tttx-icon_1_9_56",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-filter_1_9_56_4",[[1,"tttx-filter_1_9_56",{"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_56",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_56",{"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_56",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_56",[[1,"tttx-button_1_9_56",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
17
+ return bootstrapLazy([["tttx-data-pattern_1_9_57",[[1,"tttx-data-pattern_1_9_57",{"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_57",[[1,"tttx-form_1_9_57",{"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_57",[[1,"tttx-multiselect-box_1_9_57",{"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-datacard_1_9_57",[[1,"tttx-datacard_1_9_57",{"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_57",[[1,"tttx-dialog-box_1_9_57",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_57",[[1,"tttx-dialog_1_9_57",{"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_57",[[1,"tttx-tree-view_1_9_57",{"data":[1040],"treeData":[32]}]]],["tttx-action-dropdown_1_9_57",[[1,"tttx-action-dropdown_1_9_57",{"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-checkbox_1_9_57",[[0,"tttx-checkbox_1_9_57",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_57",[[1,"tttx-comments_1_9_57",{"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],"leftMonth":[32],"leftYear":[32],"rightMonth":[32],"rightYear":[32],"isSelecting":[32]}]]],["tttx-expander_1_9_57",[[1,"tttx-expander_1_9_57",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_57",[[2,"tttx-tabs_1_9_57",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_57",[[4,"tttx-checkbox-group-caption_1_9_57"]]],["tttx-checkbox-group-heading_1_9_57",[[4,"tttx-checkbox-group-heading_1_9_57"]]],["tttx-checkbox-group_1_9_57",[[1,"tttx-checkbox-group_1_9_57"]]],["tttx-keyvalue-block_1_9_57",[[1,"tttx-keyvalue-block_1_9_57",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-percentage-bar_1_9_57",[[2,"tttx-percentage-bar_1_9_57",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_57",[[1,"tttx-qrcode_1_9_57",{"link":[1025],"size":[1026]}]]],["tttx-skeleton_loader_1_9_57",[[1,"tttx-skeleton_loader_1_9_57",{"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_57",[[1,"tttx-table_1_9_57",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-textarea_1_9_57",[[2,"tttx-textarea_1_9_57",{"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_57",[[1,"tttx-toggle_1_9_57",{"initialstate":[8],"_state":[32]}]]],["tttx-loading-spinner_1_9_57_3",[[1,"tttx-tag_1_9_57",{"text":[1],"color":[1],"textColor":[1,"text-color"],"hasIcon":[4,"has-icon"],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"]}],[1,"tttx-loading-spinner_1_9_57",{"loadingMessage":[4,"loading-message"],"size":[1],"color":[1],"message":[1],"customMessageSchema":[16],"timeElapsed":[32]}],[2,"tttx-standalone-input_1_9_57",{"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]}]]],["tttx-select-box_1_9_57",[[1,"tttx-select-box_1_9_57",{"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_57",[[1,"tttx-graph_1_9_57",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-icon_1_9_57",[[1,"tttx-icon_1_9_57",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-filter_1_9_57_4",[[1,"tttx-filter_1_9_57",{"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_57",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_57",{"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_57",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_57",[[1,"tttx-button_1_9_57",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
18
18
  });
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,F as n,H as o}from"./p-65bb4035.js";const a=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.commentEdited=e(this,"commentEdited",6),this.requestCommentRemoval=e(this,"requestCommentRemoval",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.blurChanged=e(this,"commentFocusOut",7),this.isFileComment=t=>{var e;return(null===(e=t.metadata)||void 0===e?void 0:e.type)===l.FILE},this.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this.messageLimit=1e3,this.inputBoxHeight=90,this.placeholder="Enter Comment",this.saveButtonText="Add Comment",this.value=void 0,this.allowEditing=!1,this.readonly=!1,this._comments=void 0,this.showError=void 0,this._saveButtonText=void 0,this.editingComment=void 0}componentWillLoad(){this.onCommentsChange(),this._saveButtonText=this.saveButtonText}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.editingComment&&this._comments.find((t=>t.id===this.editingComment.id)).isDeleted&&this.onFinishEdit(),this.scrollToBottom())}renderCommentBubble(){var t;return i(n,null,null===(t=this._comments)||void 0===t?void 0:t.map(((t,e)=>{var o;const a=t.createdByFullName===this.currentuser,l=e===this._comments.length-1;return i("div",{class:"commentBubble "+(a?"right":"left"),key:t.id,style:0===e?{marginTop:"10px"}:{}},i("div",{class:"bubbleHeader"},i("span",{class:"commentName"},t.createdByFullName),(null===(o=t.metadata)||void 0===o?void 0:o.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText "+(t.isDeleted?"deleted-comment":"")},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},!this.readonly&&this.allowEditing&&a&&!t.isDeleted&&!!t.id&&i("div",null,!this.isFileComment(t)&&i(n,null,i("span",{class:"clickable",onClick:this.onEdit.bind(this,t)},"Edit")," | "),i("span",{class:"clickable",onClick:this.onRemove.bind(this,t)},"Remove")),i("span",{class:"comment-date"},!!t.lastUpdatedAt&&!t.isDeleted&&`Edited ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!!t.lastUpdatedAt&&t.isDeleted&&`Removed ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!t.lastUpdatedAt&&`${new Date(t.createdAt).toLocaleString(void 0,r)}`)),!l&&i("hr",{class:"commentDivider"}))})))}renderCommentInner(t){return t.isDeleted?this.isFileComment(t)?"File removed.":"Comment removed.":this.isFileComment(t)?this.renderFileLink(t.metadata):t.text}renderFileLink(t){return i("button",{class:"linkButton",type:"button",value:t.key,onClick:this.onFileDownloadRequest.bind(this)},t.filename)}onFormSubmit(t){t.preventDefault();const e=new FormData(t.currentTarget);let i;for(const t of e.entries())i=t[1];t.currentTarget.reset(),this.editingComment?this.editComment(i):this.createComment(i),this.scrollToBottom()}createComment(t){const e={id:void 0,text:t,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,e],this.commentAdded.emit(e)}editComment(t){const e=this._comments.findIndex((t=>t.id===this.editingComment.id));this._comments[e]=Object.assign(Object.assign({},this._comments[e]),{text:t,lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this._comments=[...this._comments],this.commentEdited.emit(this._comments[e]),this.onFinishEdit()}scrollToBottom(){setTimeout((()=>this._scrollContainer.scrollTo({top:this._scrollContainer.scrollHeight})))}onFileUploadRequest(){this.requestFileUpload.emit()}onFileDownloadRequest(t){this.requestFileDownload.emit(t.currentTarget.value)}async addDummyComment(t,e){const i={id:void 0,text:t,createdAt:+new Date,createdByFullName:null!=e?e:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,i],this.scrollToBottom()}onCommentFieldChange(t){this.showError=t.target.value.length>=this.messageLimit}handleBlur(t){this.editingComment||this.blurChanged.emit(t.target.value)}onEdit(t){this.editingComment=t,this.textInput.value=this.editingComment.text,this._saveButtonText="Update comment",this.scrollToBottom()}onFinishEdit(){this.editingComment=void 0,this.textInput.value="",this._saveButtonText=this.saveButtonText}onRemove(t){t=Object.assign(Object.assign({},t),{lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this.requestCommentRemoval.emit(t)}render(){return i(o,null,i("article",{id:"comment-container"},(!Array.isArray(this._comments)||0===this._comments.length)&&i("div",{class:"no-comments"},i("tttx-icon_1_9_56",{class:"mt-s",icon:"chat_bubble_outline",color:"grey"}),i("span",null,"No comments have been added")),i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},!this.readonly&&i("form",{onSubmit:this.onFormSubmit.bind(this)},this.editingComment&&i("div",{class:"cancel-edit-container"},i("span",{class:"cancel-edit-button clickable",onClick:this.onFinishEdit.bind(this)},"x")),i("fieldset",null,i("textarea",{ref:t=>this.textInput=t,name:"commentText",required:!0,maxlength:`${this.messageLimit}`,placeholder:this.placeholder,onInput:t=>this.onCommentFieldChange(t),style:{"--textarea-max-height":`${this.inputBoxHeight}px`},class:"comment-textarea",value:this.value,onBlur:this.handleBlur.bind(this)})),this.showError&&i("span",{class:"errorBubble visible"},i("span",{class:"material-symbols-rounded"},"warning")," ",`${this.messageLimit} character limit is reached.`),i("fieldset",null,this.editingComment&&i("span",{class:"editing-sub-text"},"Editing comment"),!this.disableFile&&i("button",{id:"attach-file",class:"flex-right-align clickable",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_56",{color:"black",icon:"attach_file"})),i("input",{class:(this.disableFile?"flex-right-align ":"")+"clickable",style:{width:"fit-content"},type:"submit",value:this._saveButtonText}))))))}static get watchers(){return{comments:["onCommentsChange"]}}};var l;!function(t){t[t.FILE=0]="FILE"}(l||(l={}));const r={hour12:!1,year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"};a.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px;padding:0;padding-left:16px;padding-right:16px;}label .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:"Roboto", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container textarea.resize-none{resize:none}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}*{font-family:"Roboto", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column;padding:0px 1px}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;padding:0 10px;font-size:9pt;color:#757575}.comment-date{margin-left:auto}.editing-sub-text{margin-top:5px;font-size:9pt;color:#757575}.flex-right-align{margin-left:auto}.cancel-edit-container{position:relative;width:100%;display:flex;justify-content:end}.cancel-edit-button{color:whitesmoke;background-color:#aaaaaa;border-radius:10px;height:20px;width:20px;text-align:center;position:absolute;margin-top:11px;margin-right:18px}.clickable,.clickable>*{cursor:pointer}.deleted-comment{background:white !important;color:gray;border:1px solid lightgray}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.comment-textarea{resize:vertical;height:var(--textarea-max-height, 90px);width:100%;padding:10px 35px 10px 12px;box-sizing:border-box;border:1px solid #ccc;border-radius:6px;font-size:14px;line-height:1.4;font-family:"Roboto", sans-serif}.no-comments{display:flex;flex-direction:row;align-items:center;justify-content:start;color:#757575;font-size:14px;gap:4px;font-family:"Roboto", sans-serif;margin-top:20px}.mt-s{margin-top:4px}';export{a as tttx_comments_1_9_56}
1
+ import{r as t,c as e,h as i,F as n,H as o}from"./p-2b0fc913.js";const a=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.commentEdited=e(this,"commentEdited",6),this.requestCommentRemoval=e(this,"requestCommentRemoval",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.blurChanged=e(this,"commentFocusOut",7),this.isFileComment=t=>{var e;return(null===(e=t.metadata)||void 0===e?void 0:e.type)===l.FILE},this.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this.messageLimit=1e3,this.inputBoxHeight=90,this.placeholder="Enter Comment",this.saveButtonText="Add Comment",this.value=void 0,this.allowEditing=!1,this.readonly=!1,this._comments=void 0,this.showError=void 0,this._saveButtonText=void 0,this.editingComment=void 0}componentWillLoad(){this.onCommentsChange(),this._saveButtonText=this.saveButtonText}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.editingComment&&this._comments.find((t=>t.id===this.editingComment.id)).isDeleted&&this.onFinishEdit(),this.scrollToBottom())}renderCommentBubble(){var t;return i(n,null,null===(t=this._comments)||void 0===t?void 0:t.map(((t,e)=>{var o;const a=t.createdByFullName===this.currentuser,l=e===this._comments.length-1;return i("div",{class:"commentBubble "+(a?"right":"left"),key:t.id,style:0===e?{marginTop:"10px"}:{}},i("div",{class:"bubbleHeader"},i("span",{class:"commentName"},t.createdByFullName),(null===(o=t.metadata)||void 0===o?void 0:o.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText "+(t.isDeleted?"deleted-comment":"")},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},!this.readonly&&this.allowEditing&&a&&!t.isDeleted&&!!t.id&&i("div",null,!this.isFileComment(t)&&i(n,null,i("span",{class:"clickable",onClick:this.onEdit.bind(this,t)},"Edit")," | "),i("span",{class:"clickable",onClick:this.onRemove.bind(this,t)},"Remove")),i("span",{class:"comment-date"},!!t.lastUpdatedAt&&!t.isDeleted&&`Edited ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!!t.lastUpdatedAt&&t.isDeleted&&`Removed ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!t.lastUpdatedAt&&`${new Date(t.createdAt).toLocaleString(void 0,r)}`)),!l&&i("hr",{class:"commentDivider"}))})))}renderCommentInner(t){return t.isDeleted?this.isFileComment(t)?"File removed.":"Comment removed.":this.isFileComment(t)?this.renderFileLink(t.metadata):t.text}renderFileLink(t){return i("button",{class:"linkButton",type:"button",value:t.key,onClick:this.onFileDownloadRequest.bind(this)},t.filename)}onFormSubmit(t){t.preventDefault();const e=new FormData(t.currentTarget);let i;for(const t of e.entries())i=t[1];t.currentTarget.reset(),this.editingComment?this.editComment(i):this.createComment(i),this.scrollToBottom()}createComment(t){const e={id:void 0,text:t,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,e],this.commentAdded.emit(e)}editComment(t){const e=this._comments.findIndex((t=>t.id===this.editingComment.id));this._comments[e]=Object.assign(Object.assign({},this._comments[e]),{text:t,lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this._comments=[...this._comments],this.commentEdited.emit(this._comments[e]),this.onFinishEdit()}scrollToBottom(){setTimeout((()=>this._scrollContainer.scrollTo({top:this._scrollContainer.scrollHeight})))}onFileUploadRequest(){this.requestFileUpload.emit()}onFileDownloadRequest(t){this.requestFileDownload.emit(t.currentTarget.value)}async addDummyComment(t,e){const i={id:void 0,text:t,createdAt:+new Date,createdByFullName:null!=e?e:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,i],this.scrollToBottom()}onCommentFieldChange(t){this.showError=t.target.value.length>=this.messageLimit}handleBlur(t){this.editingComment||this.blurChanged.emit(t.target.value)}onEdit(t){this.editingComment=t,this.textInput.value=this.editingComment.text,this._saveButtonText="Update comment",this.scrollToBottom()}onFinishEdit(){this.editingComment=void 0,this.textInput.value="",this._saveButtonText=this.saveButtonText}onRemove(t){t=Object.assign(Object.assign({},t),{lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this.requestCommentRemoval.emit(t)}render(){return i(o,null,i("article",{id:"comment-container"},(!Array.isArray(this._comments)||0===this._comments.length)&&i("div",{class:"no-comments"},i("tttx-icon_1_9_57",{class:"mt-s",icon:"chat_bubble_outline",color:"grey"}),i("span",null,"No comments have been added")),i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},!this.readonly&&i("form",{onSubmit:this.onFormSubmit.bind(this)},this.editingComment&&i("div",{class:"cancel-edit-container"},i("span",{class:"cancel-edit-button clickable",onClick:this.onFinishEdit.bind(this)},"x")),i("fieldset",null,i("textarea",{ref:t=>this.textInput=t,name:"commentText",required:!0,maxlength:`${this.messageLimit}`,placeholder:this.placeholder,onInput:t=>this.onCommentFieldChange(t),style:{"--textarea-max-height":`${this.inputBoxHeight}px`},class:"comment-textarea",value:this.value,onBlur:this.handleBlur.bind(this)})),this.showError&&i("span",{class:"errorBubble visible"},i("span",{class:"material-symbols-rounded"},"warning")," ",`${this.messageLimit} character limit is reached.`),i("fieldset",null,this.editingComment&&i("span",{class:"editing-sub-text"},"Editing comment"),!this.disableFile&&i("button",{id:"attach-file",class:"flex-right-align clickable",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_57",{color:"black",icon:"attach_file"})),i("input",{class:(this.disableFile?"flex-right-align ":"")+"clickable",style:{width:"fit-content"},type:"submit",value:this._saveButtonText}))))))}static get watchers(){return{comments:["onCommentsChange"]}}};var l;!function(t){t[t.FILE=0]="FILE"}(l||(l={}));const r={hour12:!1,year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"};a.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px;padding:0;padding-left:16px;padding-right:16px;}label .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:"Roboto", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container textarea.resize-none{resize:none}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}*{font-family:"Roboto", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column;padding:0px 1px}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;padding:0 10px;font-size:9pt;color:#757575}.comment-date{margin-left:auto}.editing-sub-text{margin-top:5px;font-size:9pt;color:#757575}.flex-right-align{margin-left:auto}.cancel-edit-container{position:relative;width:100%;display:flex;justify-content:end}.cancel-edit-button{color:whitesmoke;background-color:#aaaaaa;border-radius:10px;height:20px;width:20px;text-align:center;position:absolute;margin-top:11px;margin-right:18px}.clickable,.clickable>*{cursor:pointer}.deleted-comment{background:white !important;color:gray;border:1px solid lightgray}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.comment-textarea{resize:vertical;height:var(--textarea-max-height, 90px);width:100%;padding:10px 35px 10px 12px;box-sizing:border-box;border:1px solid #ccc;border-radius:6px;font-size:14px;line-height:1.4;font-family:"Roboto", sans-serif}.no-comments{display:flex;flex-direction:row;align-items:center;justify-content:start;color:#757575;font-size:14px;gap:4px;font-family:"Roboto", sans-serif;margin-top:20px}.mt-s{margin-top:4px}';export{a as tttx_comments_1_9_57}
@@ -1 +1 @@
1
- import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-65bb4035.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-icon_1_9_56",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=i("div",{class:"dropdown-selector-chevron"},e);return this.selectedItem?this.selectedItem.html?(t=i("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),i(s,null,t,n)):(t=i("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(o=i("div",{class:"description"},i("p",null,this.selectedItem.description)),n=i("div",{class:"dropdown-selector-chevron-offset"},e)),i(s,null,i("div",{class:"left-wrapper"},t,o),this.clearable&&!this.readOnly&&i("tttx-icon_1_9_56",{class:"input-icon",style:{paddingTop:"5px",cursor:"pointer"},icon:"close_small",onClick:this.cleanSelectedItem.bind(this)}),n)):(t=i("div",{class:"placeholder"},this.placeholder),i(s,null,t,n))}renderDropdownOptions(t){let o=!1;const e=[],n=[];for(const i of t)o=o||!0===i.prioritise,(!this.searchEnabled||this.useExternalFiltering||this.useExternalPaginatedFiltering||-1!==i.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()))&&(!0!==i.prioritise?n.push(i):e.push(i));return i(s,null,o&&e.length>0&&i(s,null,i("tttx-tag_1_9_56",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),e.map((t=>this.dropdownOption(t)))),n.length>0&&i(s,null,o&&i("tttx-tag_1_9_56",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=l.sanitize(t.html,d);return i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,i("div",{class:"description-dd"},i("p",null,t.description))):i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const o=t.target.value;(this.useExternalFiltering||this.useExternalPaginatedFiltering)&&(clearTimeout(this.searchFilterTimeout),this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,o)),this.searchTerm=o}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector").getBoundingClientRect(),o=window.innerHeight,i=window.innerWidth;let s=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(s+=52);const e=o-t.bottom,n=t.top;let l,d,r;this._optionsData.length||(s=200),e>=s?(l=t.bottom+"px",d="",r=s+"px"):n>=s?(l="",d=o-t.top+"px",r=s+"px"):(l=s-n+"px",d=s-e+"px",r=s+"px"),this.bodyOffset={position:"fixed",left:Math.max(t.left,0)+"px",width:Math.min(t.width,i-t.left-16)+"px",top:l,bottom:d,maxHeight:r,zIndex:"10",overflowY:"auto"}}onSelectScroll(t){const o=t.target;this.useExternalPaginatedFiltering&&o.scrollHeight-o.scrollTop-o.offsetHeight<=5&&!this.loadingNextExternalPage&&!this._isAllExternalDataLoaded&&(this.loadingNextExternalPage=!0,clearTimeout(this.selectEndReached),this.selectEndReached=setTimeout((t=>{this.selectEndReachedEvent.emit(t)}),500,this.searchTerm))}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"",o=this.readOnly?"dropdown-read-only":"";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",t,o].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_56",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),i("div",{class:"dropdown-options-list",onScroll:this.onSelectScroll.bind(this)},!this.isLoading&&this.renderDropdownOptions(this._optionsData),(this.isLoading||this.loadingNextExternalPage)&&i("tttx-loading-spinner_1_9_56",{class:"loading-style"})))),this.showErrorBubble&&i("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},i("tttx-icon_1_9_56",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"],isAllExternalDataLoaded:["updateAllLoadedBool"]}}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:fixed;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}';export{r as tttx_select_box_1_9_56}
1
+ import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-2b0fc913.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-icon_1_9_57",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=i("div",{class:"dropdown-selector-chevron"},e);return this.selectedItem?this.selectedItem.html?(t=i("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),i(s,null,t,n)):(t=i("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(o=i("div",{class:"description"},i("p",null,this.selectedItem.description)),n=i("div",{class:"dropdown-selector-chevron-offset"},e)),i(s,null,i("div",{class:"left-wrapper"},t,o),this.clearable&&!this.readOnly&&i("tttx-icon_1_9_57",{class:"input-icon",style:{paddingTop:"5px",cursor:"pointer"},icon:"close_small",onClick:this.cleanSelectedItem.bind(this)}),n)):(t=i("div",{class:"placeholder"},this.placeholder),i(s,null,t,n))}renderDropdownOptions(t){let o=!1;const e=[],n=[];for(const i of t)o=o||!0===i.prioritise,(!this.searchEnabled||this.useExternalFiltering||this.useExternalPaginatedFiltering||-1!==i.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()))&&(!0!==i.prioritise?n.push(i):e.push(i));return i(s,null,o&&e.length>0&&i(s,null,i("tttx-tag_1_9_57",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),e.map((t=>this.dropdownOption(t)))),n.length>0&&i(s,null,o&&i("tttx-tag_1_9_57",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=l.sanitize(t.html,d);return i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,i("div",{class:"description-dd"},i("p",null,t.description))):i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const o=t.target.value;(this.useExternalFiltering||this.useExternalPaginatedFiltering)&&(clearTimeout(this.searchFilterTimeout),this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,o)),this.searchTerm=o}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector").getBoundingClientRect(),o=window.innerHeight,i=window.innerWidth;let s=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(s+=52);const e=o-t.bottom,n=t.top;let l,d,r;this._optionsData.length||(s=200),e>=s?(l=t.bottom+"px",d="",r=s+"px"):n>=s?(l="",d=o-t.top+"px",r=s+"px"):(l=s-n+"px",d=s-e+"px",r=s+"px"),this.bodyOffset={position:"fixed",left:Math.max(t.left,0)+"px",width:Math.min(t.width,i-t.left-16)+"px",top:l,bottom:d,maxHeight:r,zIndex:"10",overflowY:"auto"}}onSelectScroll(t){const o=t.target;this.useExternalPaginatedFiltering&&o.scrollHeight-o.scrollTop-o.offsetHeight<=5&&!this.loadingNextExternalPage&&!this._isAllExternalDataLoaded&&(this.loadingNextExternalPage=!0,clearTimeout(this.selectEndReached),this.selectEndReached=setTimeout((t=>{this.selectEndReachedEvent.emit(t)}),500,this.searchTerm))}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"",o=this.readOnly?"dropdown-read-only":"";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",t,o].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_57",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),i("div",{class:"dropdown-options-list",onScroll:this.onSelectScroll.bind(this)},!this.isLoading&&this.renderDropdownOptions(this._optionsData),(this.isLoading||this.loadingNextExternalPage)&&i("tttx-loading-spinner_1_9_57",{class:"loading-style"})))),this.showErrorBubble&&i("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},i("tttx-icon_1_9_57",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"],isAllExternalDataLoaded:["updateAllLoadedBool"]}}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:fixed;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}';export{r as tttx_select_box_1_9_57}
@@ -1 +1 @@
1
- import{r as t,h as o,H as s}from"./p-65bb4035.js";const e=class{constructor(o){t(this,o),this.data=void 0,this.sorterOptions=void 0,this.filterOptions=void 0,this.filterHeader="Filter",this.defaultSortOption="Sort by",this.searchplaceholder="Search",this.addbuttonlabel="Add",this.addbutton=!1}render(){return o(s,null,o("div",{class:"container"},o("tttx-toolbar_1_9_56",{border:!0},o("span",{slot:"before"},this.sorterOptions&&o("tttx-sorter_1_9_56",{sorterKey:"data-pattern-list",fieldOptionsData:this.sorterOptions,defaultOption:this.defaultSortOption}),this.filterOptions&&o("tttx-filter_1_9_56",{"filter-options":JSON.stringify(this.filterOptions),showSelectAll:!1,"show-option-icons":!0,"filter-header":this.filterHeader,"filter-key":"data-pattern-list"})),o("span",{slot:"after"},o("tttx-standalone-input_1_9_56",{class:"qualifications-filter",showerrorbubble:!1,inputicon:"search",inline:!0,required:!0,placeholder:this.searchplaceholder,type:"text",maxlength:30}))),o("tttx-toolbar_1_9_56",{border:!1},o("span",{slot:"before"},this.addbutton&&o("tttx-button_1_9_56",{design:"primary",icon:"add"},this.addbuttonlabel))),o("tttx-list_1_9_56",{data:this.data})))}};e.style=":host{display:block}";export{e as tttx_data_pattern_1_9_56}
1
+ import{r as t,h as o,H as s}from"./p-2b0fc913.js";const e=class{constructor(o){t(this,o),this.data=void 0,this.sorterOptions=void 0,this.filterOptions=void 0,this.filterHeader="Filter",this.defaultSortOption="Sort by",this.searchplaceholder="Search",this.addbuttonlabel="Add",this.addbutton=!1}render(){return o(s,null,o("div",{class:"container"},o("tttx-toolbar_1_9_57",{border:!0},o("span",{slot:"before"},this.sorterOptions&&o("tttx-sorter_1_9_57",{sorterKey:"data-pattern-list",fieldOptionsData:this.sorterOptions,defaultOption:this.defaultSortOption}),this.filterOptions&&o("tttx-filter_1_9_57",{"filter-options":JSON.stringify(this.filterOptions),showSelectAll:!1,"show-option-icons":!0,"filter-header":this.filterHeader,"filter-key":"data-pattern-list"})),o("span",{slot:"after"},o("tttx-standalone-input_1_9_57",{class:"qualifications-filter",showerrorbubble:!1,inputicon:"search",inline:!0,required:!0,placeholder:this.searchplaceholder,type:"text",maxlength:30}))),o("tttx-toolbar_1_9_57",{border:!1},o("span",{slot:"before"},this.addbutton&&o("tttx-button_1_9_57",{design:"primary",icon:"add"},this.addbuttonlabel))),o("tttx-list_1_9_57",{data:this.data})))}};e.style=":host{display:block}";export{e as tttx_data_pattern_1_9_57}
@@ -1 +1 @@
1
- import{r as e,c as n,h as t,H as a}from"./p-65bb4035.js";const o=class{constructor(t){e(this,t),this.toggleExpander=n(this,"toggleExpander",7),this.name=void 0,this.open=!1,this.lefticon=void 0,this.lefticoncolor=void 0,this.isExpanded=!1}componentWillRender(){this.isExpanded=this.open}handleExpand(){this.isExpanded=null===this.expander.getAttribute("open"),this.toggleExpander.emit({open:this.isExpanded,name:this.name})}render(){return t(a,null,t("details",{class:"expander",open:this.open,"aria-owns":"expanderContent","aria-expanded":`${this.isExpanded}`,onClick:this.handleExpand.bind(this),ref:e=>this.expander=e},t("summary",{class:"panel"},t("span",{class:"panel-frame"},this.lefticon&&t("span",{class:"left-icons"},t("tttx-icon_1_9_56",{icon:this.lefticon,color:this.lefticoncolor})),t("span",{class:"name"},this.name)),t("span",{class:"expand-button"},t("tttx-icon_1_9_56",{class:"open",icon:"expand_more",color:"black"}),t("tttx-icon_1_9_56",{class:"closed",icon:"chevron_right",color:"black"}))),t("div",{id:"expanderContent",class:"content",tabindex:"0"},t("slot",null))))}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block}.expander{border-bottom:1px solid #d5d5d5}.expander[open] .panel .open{display:initial}.expander[open] .panel .closed{display:none}.expander:not([open]) .panel .open{display:none}.expander:not([open]) .panel .closed{display:initial}.expander .panel{display:flex;gap:4px;height:36px;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}.expander .panel .panel-frame{display:flex;gap:4px;height:36px;align-items:center}.expander .panel .panel-frame .name{font-size:16px;font-weight:500;color:#212121}.expander .panel .left-icons,.expander .panel .expand-button{display:flex;height:36px;width:36px;align-items:center;justify-content:center}.expander .panel .left-icons>tttx-icon,.expander .panel .expand-button>tttx-icon{height:24px;cursor:inherit}.expander .content{margin-top:8px;margin-bottom:8px}';export{o as tttx_expander_1_9_56}
1
+ import{r as e,c as n,h as t,H as a}from"./p-2b0fc913.js";const o=class{constructor(t){e(this,t),this.toggleExpander=n(this,"toggleExpander",7),this.name=void 0,this.open=!1,this.lefticon=void 0,this.lefticoncolor=void 0,this.isExpanded=!1}componentWillRender(){this.isExpanded=this.open}handleExpand(){this.isExpanded=null===this.expander.getAttribute("open"),this.toggleExpander.emit({open:this.isExpanded,name:this.name})}render(){return t(a,null,t("details",{class:"expander",open:this.open,"aria-owns":"expanderContent","aria-expanded":`${this.isExpanded}`,onClick:this.handleExpand.bind(this),ref:e=>this.expander=e},t("summary",{class:"panel"},t("span",{class:"panel-frame"},this.lefticon&&t("span",{class:"left-icons"},t("tttx-icon_1_9_57",{icon:this.lefticon,color:this.lefticoncolor})),t("span",{class:"name"},this.name)),t("span",{class:"expand-button"},t("tttx-icon_1_9_57",{class:"open",icon:"expand_more",color:"black"}),t("tttx-icon_1_9_57",{class:"closed",icon:"chevron_right",color:"black"}))),t("div",{id:"expanderContent",class:"content",tabindex:"0"},t("slot",null))))}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block}.expander{border-bottom:1px solid #d5d5d5}.expander[open] .panel .open{display:initial}.expander[open] .panel .closed{display:none}.expander:not([open]) .panel .open{display:none}.expander:not([open]) .panel .closed{display:initial}.expander .panel{display:flex;gap:4px;height:36px;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}.expander .panel .panel-frame{display:flex;gap:4px;height:36px;align-items:center}.expander .panel .panel-frame .name{font-size:16px;font-weight:500;color:#212121}.expander .panel .left-icons,.expander .panel .expand-button{display:flex;height:36px;width:36px;align-items:center;justify-content:center}.expander .panel .left-icons>tttx-icon,.expander .panel .expand-button>tttx-icon{height:24px;cursor:inherit}.expander .content{margin-top:8px;margin-bottom:8px}';export{o as tttx_expander_1_9_57}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as n}from"./p-65bb4035.js";const c=class{constructor(i){t(this,i),this.checkboxChangeEvent=e(this,"checkboxChangeEvent",3),this.checkboxId=void 0,this.label=void 0,this.inline=!1,this.indeterminate=!1,this.checked=void 0}watchIndeterminateChange(t){this.checkbox.indeterminate=t}onClick(){const{checked:t,indeterminate:e}=this;this.checkboxChangeEvent.emit({indeterminate:e,checked:t})}componentDidLoad(){this.checkbox.indeterminate=this.indeterminate}render(){const t=this.indeterminate?"indeterminate_check_box":this.checked?"check_box":"check_box_outline_blank";return i(n,null,i("label",{class:"tttx-checkbox "+(this.inline?"--inline":"")},i("input",{class:"tttx-checkbox__input",type:"checkbox",id:this.checkboxId,checked:this.checked,ref:t=>this.checkbox=t}),i("tttx-icon_1_9_56",{color:this.checked?"blue":"grey",icon:t,onClick:this.onClick.bind(this)}),i("span",{class:"tttx-checkbox__label"},this.label)))}static get watchers(){return{indeterminate:["watchIndeterminateChange"]}}};c.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox{padding:8px;display:flex;justify-content:flex-start;font-size:16px;align-items:center;font-weight:normal;line-height:18.752px}.tttx-checkbox tttx-icon{height:24px}.tttx-checkbox.--inline{display:inline-flex}.tttx-checkbox__input{display:none}.tttx-checkbox__label{margin-left:8px;padding-right:0;color:#212121;font-weight:normal}';export{c as tttx_checkbox_1_9_56}
1
+ import{r as t,c as e,h as i,H as n}from"./p-2b0fc913.js";const c=class{constructor(i){t(this,i),this.checkboxChangeEvent=e(this,"checkboxChangeEvent",3),this.checkboxId=void 0,this.label=void 0,this.inline=!1,this.indeterminate=!1,this.checked=void 0}watchIndeterminateChange(t){this.checkbox.indeterminate=t}onClick(){const{checked:t,indeterminate:e}=this;this.checkboxChangeEvent.emit({indeterminate:e,checked:t})}componentDidLoad(){this.checkbox.indeterminate=this.indeterminate}render(){const t=this.indeterminate?"indeterminate_check_box":this.checked?"check_box":"check_box_outline_blank";return i(n,null,i("label",{class:"tttx-checkbox "+(this.inline?"--inline":"")},i("input",{class:"tttx-checkbox__input",type:"checkbox",id:this.checkboxId,checked:this.checked,ref:t=>this.checkbox=t}),i("tttx-icon_1_9_57",{color:this.checked?"blue":"grey",icon:t,onClick:this.onClick.bind(this)}),i("span",{class:"tttx-checkbox__label"},this.label)))}static get watchers(){return{indeterminate:["watchIndeterminateChange"]}}};c.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox{padding:8px;display:flex;justify-content:flex-start;font-size:16px;align-items:center;font-weight:normal;line-height:18.752px}.tttx-checkbox tttx-icon{height:24px}.tttx-checkbox.--inline{display:inline-flex}.tttx-checkbox__input{display:none}.tttx-checkbox__label{margin-left:8px;padding-right:0;color:#212121;font-weight:normal}';export{c as tttx_checkbox_1_9_57}
@@ -1 +1 @@
1
- import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-65bb4035.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-tag_1_9_56",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),s.map((t=>this.dropdownOption(t)))),n.length>0&&i(e,null,o&&i("tttx-tag_1_9_56",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=t.selected?"check_box":"check_box_outline_blank",e=t.selected?"blue":"grey";if(t.html){const s=l.sanitize(t.html,r);return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_56",{icon:o,color:e,class:"checkbox-icon"}),i("div",{innerHTML:s}))}return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_56",{icon:o,color:e,class:"checkbox-icon"}),i("div",{class:"plaintext-option"},t.label))}handleSearchInput(t){const o=t.target;this.searchTerm=o.value,this.searchDataChanged.emit({searchTerm:o.value}),this.calculateDropdownMenuOffset()}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),o=t.getBoundingClientRect().bottom,i=t.getBoundingClientRect();let e=Math.min(288,36*this.unsavedSelectedItems.length)+45+8;this.searchEnabled&&(e+=52),this.bodyOffset=o+e>window.innerHeight?{top:window.innerHeight-(e+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:i.left,top:`${i.top}px`,width:i.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.open?"expand_less":"expand_more",o=this.readOnly?"dropdown-read-only":"";return i(s,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",o].join(" "),onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent(),i("div",{class:"dropdown-selector-chevron"},i("tttx-icon_1_9_56",{icon:t,color:"black"}))),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_56",{type:"text",placeholder:"Search",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this),inline:!0})),i("div",{class:"dropdown-options-list"},this.isLoading?i("tttx-loading-spinner_1_9_56",{class:"loading-style"}):this.renderDropdownOptions(this.unsavedSelectedItems)),i("div",{class:"footer"},i("tttx-button_1_9_56",{design:"primary",onClick:this.applyChanges.bind(this)},"Apply"),i("tttx-button_1_9_56",{onClick:this.onCancel.bind(this)},"Cancel"))))))}get el(){return n(this)}static get watchers(){return{optionsData:["handleOptionsDataChange"]}}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-style:normal;font-weight:500;line-height:normal}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{align-items:center;gap:8px;padding:6px 8px 6px 16px;cursor:pointer;border:1px solid #d5d5d5}.dropdown-selector *{font-weight:400}.dropdown-selector-chevron{margin-left:auto;height:24px;align-self:flex-start}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-selector-html-content{display:flex;gap:8px;flex-wrap:wrap}.dropdown-read-only{background-color:#BDBDBD !important}.dropdown-body-container{position:relative}.dropdown-body{position:absolute;display:flex;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5;width:100%}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable;max-height:288px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer;display:flex;gap:8px}.dropdown-option .checkbox-icon{height:24px}.dropdown-option .plaintext-option{line-height:24px}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.priority-pill{padding:6px 8px 6px 16px;display:flex;gap:8px}.placeholder{color:#9e9e9e}.searchbox{padding:8px 16px 8px 16px;height:52px;box-sizing:border-box}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}.footer{display:flex;gap:8px;flex-direction:row-reverse;padding:8px 16px 0 16px;border-top:1px solid #d5d5d5}';export{d as tttx_multiselect_box_1_9_56}
1
+ import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-2b0fc913.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-tag_1_9_57",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),s.map((t=>this.dropdownOption(t)))),n.length>0&&i(e,null,o&&i("tttx-tag_1_9_57",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=t.selected?"check_box":"check_box_outline_blank",e=t.selected?"blue":"grey";if(t.html){const s=l.sanitize(t.html,r);return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_57",{icon:o,color:e,class:"checkbox-icon"}),i("div",{innerHTML:s}))}return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_57",{icon:o,color:e,class:"checkbox-icon"}),i("div",{class:"plaintext-option"},t.label))}handleSearchInput(t){const o=t.target;this.searchTerm=o.value,this.searchDataChanged.emit({searchTerm:o.value}),this.calculateDropdownMenuOffset()}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),o=t.getBoundingClientRect().bottom,i=t.getBoundingClientRect();let e=Math.min(288,36*this.unsavedSelectedItems.length)+45+8;this.searchEnabled&&(e+=52),this.bodyOffset=o+e>window.innerHeight?{top:window.innerHeight-(e+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:i.left,top:`${i.top}px`,width:i.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.open?"expand_less":"expand_more",o=this.readOnly?"dropdown-read-only":"";return i(s,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",o].join(" "),onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent(),i("div",{class:"dropdown-selector-chevron"},i("tttx-icon_1_9_57",{icon:t,color:"black"}))),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_57",{type:"text",placeholder:"Search",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this),inline:!0})),i("div",{class:"dropdown-options-list"},this.isLoading?i("tttx-loading-spinner_1_9_57",{class:"loading-style"}):this.renderDropdownOptions(this.unsavedSelectedItems)),i("div",{class:"footer"},i("tttx-button_1_9_57",{design:"primary",onClick:this.applyChanges.bind(this)},"Apply"),i("tttx-button_1_9_57",{onClick:this.onCancel.bind(this)},"Cancel"))))))}get el(){return n(this)}static get watchers(){return{optionsData:["handleOptionsDataChange"]}}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-style:normal;font-weight:500;line-height:normal}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{align-items:center;gap:8px;padding:6px 8px 6px 16px;cursor:pointer;border:1px solid #d5d5d5}.dropdown-selector *{font-weight:400}.dropdown-selector-chevron{margin-left:auto;height:24px;align-self:flex-start}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-selector-html-content{display:flex;gap:8px;flex-wrap:wrap}.dropdown-read-only{background-color:#BDBDBD !important}.dropdown-body-container{position:relative}.dropdown-body{position:absolute;display:flex;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5;width:100%}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable;max-height:288px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer;display:flex;gap:8px}.dropdown-option .checkbox-icon{height:24px}.dropdown-option .plaintext-option{line-height:24px}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.priority-pill{padding:6px 8px 6px 16px;display:flex;gap:8px}.placeholder{color:#9e9e9e}.searchbox{padding:8px 16px 8px 16px;height:52px;box-sizing:border-box}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}.footer{display:flex;gap:8px;flex-direction:row-reverse;padding:8px 16px 0 16px;border-top:1px solid #d5d5d5}';export{d as tttx_multiselect_box_1_9_57}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,H as o}from"./p-65bb4035.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-textarea_1_9_56{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-textarea_1_9_56-h{display:block}label.sc-tttx-textarea_1_9_56{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_56 .textarea-container.sc-tttx-textarea_1_9_56{position:relative}label.sc-tttx-textarea_1_9_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.sc-tttx-textarea_1_9_56{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_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.no-label.sc-tttx-textarea_1_9_56{margin-top:0}label.sc-tttx-textarea_1_9_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.sc-tttx-textarea_1_9_56~.errorBubble.sc-tttx-textarea_1_9_56{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_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.sc-tttx-textarea_1_9_56~.errorBubble.sc-tttx-textarea_1_9_56:not(.visible){display:none}label.sc-tttx-textarea_1_9_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.sc-tttx-textarea_1_9_56~.errorBubble.sc-tttx-textarea_1_9_56 span.sc-tttx-textarea_1_9_56{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.sc-tttx-textarea_1_9_56:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_56 .textarea-container.sc-tttx-textarea_1_9_56 textarea.sc-tttx-textarea_1_9_56:focus-visible{outline:none}label.sc-tttx-textarea_1_9_56 .secondarylabel.sc-tttx-textarea_1_9_56{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_56 .optional.sc-tttx-textarea_1_9_56{color:#757575;font-weight:normal}';export{n as tttx_textarea_1_9_56}
1
+ import{r as t,c as e,h as a,H as o}from"./p-2b0fc913.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-textarea_1_9_57{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-textarea_1_9_57-h{display:block}label.sc-tttx-textarea_1_9_57{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_57 .textarea-container.sc-tttx-textarea_1_9_57{position:relative}label.sc-tttx-textarea_1_9_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.sc-tttx-textarea_1_9_57{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_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.no-label.sc-tttx-textarea_1_9_57{margin-top:0}label.sc-tttx-textarea_1_9_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.sc-tttx-textarea_1_9_57~.errorBubble.sc-tttx-textarea_1_9_57{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_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.sc-tttx-textarea_1_9_57~.errorBubble.sc-tttx-textarea_1_9_57:not(.visible){display:none}label.sc-tttx-textarea_1_9_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.sc-tttx-textarea_1_9_57~.errorBubble.sc-tttx-textarea_1_9_57 span.sc-tttx-textarea_1_9_57{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.sc-tttx-textarea_1_9_57:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_57 .textarea-container.sc-tttx-textarea_1_9_57 textarea.sc-tttx-textarea_1_9_57:focus-visible{outline:none}label.sc-tttx-textarea_1_9_57 .secondarylabel.sc-tttx-textarea_1_9_57{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_57 .optional.sc-tttx-textarea_1_9_57{color:#757575;font-weight:normal}';export{n as tttx_textarea_1_9_57}
@@ -0,0 +1,2 @@
1
+ let e,t,n,l=!1,o=!1,s=!1,i=!1;const r=e=>{const t=new URL(e,pe.t);return t.origin!==$e.location.origin?t.href:t.pathname},c="http://www.w3.org/1999/xlink",f={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const d=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!u(l))&&(l+=""),i&&r?c[c.length-1].l+=l:c.push(i?$(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,p);const a=$(e,null);return a.o=t,c.length>0&&(a.i=c),a.u=o,a.$=s,a},$=(e,t)=>({m:0,p:e,l:t,h:null,i:null,o:null,u:null,$:null}),m={},p={forEach:(e,t)=>e.map(y).forEach(t),map:(e,t)=>e.map(y).map(t).map(h)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.$,vtag:e.p,vtext:e.l}),h=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=$(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.$=e.vname,t},b=e=>se(e).v,v=(e,t,n)=>{const l=b(e);return{emit:e=>w(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const l=pe.ce(t,n);return e.dispatchEvent(l),l},k=new WeakMap,g=e=>"sc-"+e.k,S=(e,t,n,l,o,s)=>{if(n!==l){let i=ce(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=M(n),s=M(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const f=u(l);if((i||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(c,t):e.removeAttribute(t)):(!i||4&s||o)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(c,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ce($e,r)?r.slice(2):r[2]+t.slice(3),n&&pe.rel(e,t,n,!1),l&&pe.ael(e,t,l,!1)}},j=/\s/,M=e=>e?e.split(j):[],O=(e,t,n,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,s=e&&e.o||f,i=t.o||f;for(l in s)l in i||S(o,l,s[l],void 0,n,t.m);for(l in i)S(o,l,s[l],i[l],n,t.m)},R=(o,i,r,c)=>{const f=i.i[r];let u,a,d,$=0;if(l||(s=!0,"slot"===f.p&&(e&&c.classList.add(e+"-s"),f.m|=f.i?2:1)),null!==f.l)u=f.h=me.createTextNode(f.l);else if(1&f.m)u=f.h=me.createTextNode("");else if(u=f.h=me.createElement(2&f.m?"slot-fb":f.p),O(null,f,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),f.i)for($=0;$<f.i.length;++$)a=R(o,f,$,u),a&&u.appendChild(a);return u["s-hn"]=n,3&f.m&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=f.$||"",d=o&&o.i&&o.i[r],d&&d.p===f.p&&o.h&&x(o.h,!1)),u},x=(e,t)=>{pe.m|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(E(o).insertBefore(o,T(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&x(o,t)}pe.m&=-2},C=(e,t,l,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=R(null,l,s,e),r&&(o[s].h=r,c.insertBefore(r,T(t))))},L=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.h,D(l),o=!0,s["s-ol"]?s["s-ol"].remove():x(s,!0),s.remove())},P=(e,t)=>e.p===t.p&&("slot"===e.p?e.$===t.$:e.u===t.u),T=e=>e&&e["s-ol"]||e,E=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const n=t.h=e.h,l=e.i,o=t.i,s=t.l;let i;null===s?("slot"===t.p||O(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,r=0,c=0,f=0,u=t.length-1,a=t[0],d=t[u],$=l.length-1,m=l[0],p=l[$];for(;i<=u&&r<=$;)if(null==a)a=t[++i];else if(null==d)d=t[--u];else if(null==m)m=l[++r];else if(null==p)p=l[--$];else if(P(a,m))N(a,m),a=t[++i],m=l[++r];else if(P(d,p))N(d,p),d=t[--u],p=l[--$];else if(P(a,p))"slot"!==a.p&&"slot"!==p.p||x(a.h.parentNode,!1),N(a,p),e.insertBefore(a.h,d.h.nextSibling),a=t[++i],p=l[--$];else if(P(d,m))"slot"!==a.p&&"slot"!==p.p||x(d.h.parentNode,!1),N(d,m),e.insertBefore(d.h,a.h),d=t[--u],m=l[++r];else{for(c=-1,f=i;f<=u;++f)if(t[f]&&null!==t[f].u&&t[f].u===m.u){c=f;break}c>=0?(s=t[c],s.p!==m.p?o=R(t&&t[r],n,c,e):(N(s,m),t[c]=void 0,o=s.h),m=l[++r]):(o=R(t&&t[r],n,r,e),m=l[++r]),o&&E(a.h).insertBefore(o,T(a.h))}i>u?C(e,null==l[$+1]?null:l[$+1].h,n,l,r,$):r>$&&L(t,i,u)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),C(n,null,t,o,0,o.length-1)):null!==l&&L(l,0,l.length-1)):(i=n["s-cr"])?i.parentNode.textContent=s:e.l!==s&&(n.data=s)},W=e=>{const t=e.childNodes;let n,l,o,s,i,r;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){n.hidden=!0;break}W(n)}},F=[],U=e=>{let t,n,l,s,i,r,c=0;const f=e.childNodes,u=f.length;for(;c<u;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(A(n,s)?(i=F.find((e=>e.g===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.S=t:F.push({S:t,g:n}),n["s-sr"]&&F.map((e=>{A(e.g,n["s-sn"])&&(i=F.find((e=>e.g===n)),i&&!e.S&&(e.S=i.S))}))):F.some((e=>e.g===n))||F.push({g:n}));1===t.nodeType&&U(t)}},A=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,D=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(D)},H=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},q=(e,t)=>{if(e.m|=16,!(4&e.m))return H(e,e.M),je((()=>V(e,t)));e.m|=512},V=(e,t)=>{const n=e.O;let l;return t&&(e.m|=256,e.R&&(e.R.map((([e,t])=>I(n,e,t))),e.R=null),l=I(n,"componentWillLoad")),l=J(l,(()=>I(n,"componentWillRender"))),J(l,(()=>_(e,n,t)))},_=async(e,t,n)=>{const l=e.v,o=l["s-rc"];n&&(e=>{const t=e.C,n=e.v,l=t.m,o=((e,t)=>{var n;let l=g(t);const o=de.get(l);if(e=11===e.nodeType?e:me,o)if("string"==typeof o){let t,s=k.get(e=e.head||e);if(s||k.set(e,s=new Set),!s.has(l)){{t=me.createElement("style"),t.innerHTML=o;const l=null!==(n=pe.L)&&void 0!==n?n:a(me);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);z(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>B(e);0===t.length?n():(Promise.all(t).then(n),e.m|=4,t.length=0)}},z=(i,r)=>{try{r=r.render(),i.m&=-17,i.m|=2,((i,r)=>{const c=i.v,f=i.C,u=i.P||$(null,null),a=(e=>e&&e.p===m)(r)?r:d(null,null,r);if(n=c.tagName,a.p=null,a.m|=4,i.P=a,a.h=u.h=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&f.m),o=!1,N(u,a),pe.m|=1,s){let e,t,n,l,o,s;U(a.h);let i=0;for(;i<F.length;i++)e=F[i],t=e.g,t["s-ol"]||(n=me.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<F.length;i++)if(e=F[i],t=e.g,e.S){for(l=e.S.parentNode,o=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&W(a.h),pe.m&=-2,F.length=0})(i,r)}catch(e){fe(e,i.v)}return null},B=e=>{const t=e.v,n=e.O,l=e.M;I(n,"componentDidRender"),64&e.m||(e.m|=64,K(t),I(n,"componentDidLoad"),e.T(t),l||G()),e.N(t),e.j&&(e.j(),e.j=void 0),512&e.m&&Se((()=>q(e,!1))),e.m&=-517},G=()=>{K(me.documentElement),Se((()=>w($e,"appload",{detail:{namespace:"tttx"}})))},I=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},J=(e,t)=>e&&e.then?e.then(t):t(),K=e=>e.classList.add("hydrated"),Q=(e,t,n)=>{if(t.W){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>se(this).U.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.v,i=o.U.get(t),r=o.m,c=o.O;if(n=((e,t)=>null==e||u(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.U.set(t,n),c)){if(l.F&&128&r){const e=l.F[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){fe(e,s)}}))}2==(18&r)&&q(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=se(this);return n.A.then((()=>n.O[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){pe.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},X=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=$e.customElements,i=me.head,r=i.querySelector("meta[charset]"),c=me.createElement("style"),f=[];let u,d=!0;Object.assign(pe,t),pe.t=new URL(t.resourcesUrl||"./",me.baseURI).href,e.map((e=>{e[1].map((n=>{const i={m:n[0],k:n[1],W:n[2],D:n[3]};i.W=n[2],i.D=n[3],i.F={};const r=t.transformTagName?t.transformTagName(i.k):i.k,c=class extends HTMLElement{constructor(e){super(e),re(e=this,i),1&i.m&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),d?f.push(this):pe.jmp((()=>(e=>{if(0==(1&pe.m)){const t=se(e),n=t.C,l=()=>{};if(1&t.m)Z(e,t,n.D);else{t.m|=1,12&n.m&&(e=>{const t=e["s-cr"]=me.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.M=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.m)){{if(t.m|=32,(o=ae(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.F=o.watchers,Q(o,n,2),o.isProxied=!0);const e=()=>{};t.m|=8;try{new o(t)}catch(e){fe(e)}t.m&=-9,t.m|=128,e()}if(o.style){let e=o.style;const t=g(n);if(!de.has(t)){const l=()=>{};((e,t,n)=>{let l=de.get(e);he&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,de.set(e,l)})(t,e,!!(1&n.m)),l()}}}const s=t.M,i=()=>q(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(()=>{if(0==(1&pe.m)){const e=se(this),t=e.O;e.H&&(e.H.map((e=>e())),e.H=void 0),I(t,"disconnectedCallback")}})()))}componentOnReady(){return se(this).q}};i.V=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,Q(c,i,1)))}))}));{c.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles","");const e=null!==(n=pe.L)&&void 0!==n?n:a(me);null!=e&&c.setAttribute("nonce",e),i.insertBefore(c,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):pe.jmp((()=>u=setTimeout(G,30)))},Y=(e,t)=>t,Z=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=te(e,n),i=ee(t,o),r=ne(n);pe.ael(s,l,i,r),(t.H=t.H||[]).push((()=>pe.rel(s,l,i,r)))}))},ee=(e,t)=>n=>{try{256&e.m?e.O[t](n):(e.R=e.R||[]).push([t,n])}catch(e){fe(e)}},te=(e,t)=>8&t?$e:e,ne=e=>0!=(2&e),le=e=>pe.L=e,oe=new WeakMap,se=e=>oe.get(e),ie=(e,t)=>oe.set(t.O=e,t),re=(e,t)=>{const n={m:0,v:e,C:t,U:new Map};return n.A=new Promise((e=>n.N=e)),n.q=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],Z(e,n,t.D),oe.set(e,n)},ce=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ue=new Map,ae=e=>{const t=e.k.replace(/-/g,"_"),n=e.V,l=ue.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ue.set(n,e),e[t])),fe)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,$e="undefined"!=typeof window?window:{},me=$e.document||{head:{}},pe={m:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ye=e=>Promise.resolve(e),he=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),be=[],ve=[],we=(e,t)=>n=>{e.push(n),i||(i=!0,t&&4&pe.m?Se(ge):pe.raf(ge))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},ge=()=>{ke(be),ke(ve),(i=be.length>0)&&pe.raf(ge)},Se=e=>ye().then(e),je=we(ve,!0);export{Y as F,m as H,r as a,X as b,v as c,b as g,d as h,ye as p,ie as r,le as s}
@@ -1 +1 @@
1
- import{r as o,h as t,H as n}from"./p-65bb4035.js";const i=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group__caption"},t("slot",null)))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:"Roboto", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:"Roboto", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}';export{i as tttx_checkbox_group_caption_1_9_56}
1
+ import{r as o,h as t,H as n}from"./p-2b0fc913.js";const i=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group__caption"},t("slot",null)))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:"Roboto", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:"Roboto", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}';export{i as tttx_checkbox_group_caption_1_9_57}
@@ -1 +1 @@
1
- import{r as t,c as a,h as o,H as i}from"./p-65bb4035.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i;const s=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-icon_1_9_56",{style:{pointerEvents:"none",marginTop:"-2px"},icon:t.tabIcon,color:"gray",size:null!==(i=t.tabIconSize)&&void 0!==i?i:24});return o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},s)}renderSelectedTab(t){return"string"==typeof t.pageContent?o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:s.sanitize(t.pageContent,n),hidden:!t.selected}):o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,hidden:!t.selected},t.pageContent)}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(i,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_1_9_56",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map(this.generateTab.bind(this))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_1_9_56",{icon:"navigate_next",color:"black"}))),t&&this.renderSelectedTab(t)))}static get watchers(){return{tabs:["onDataChange"]}}};e.style='.material-symbols-rounded.sc-tttx-tabs_1_9_56{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_1_9_56-h{display:block}.tab-bar.sc-tttx-tabs_1_9_56{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_56>.left-navigation.sc-tttx-tabs_1_9_56,.tab-bar.sc-tttx-tabs_1_9_56>.right-navigation.sc-tttx-tabs_1_9_56{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_56>.left-navigation.sc-tttx-tabs_1_9_56>*.sc-tttx-tabs_1_9_56,.tab-bar.sc-tttx-tabs_1_9_56>.right-navigation.sc-tttx-tabs_1_9_56>*.sc-tttx-tabs_1_9_56{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_56>.tabs-container.sc-tttx-tabs_1_9_56{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_56>.tabs-container.wide.sc-tttx-tabs_1_9_56{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_56>.tabs-container.sc-tttx-tabs_1_9_56>*[role=tab].sc-tttx-tabs_1_9_56{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_56>.tabs-container.sc-tttx-tabs_1_9_56>*[role=tab].sc-tttx-tabs_1_9_56:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_56>.tabs-container.sc-tttx-tabs_1_9_56>*[role=tab][aria-selected].sc-tttx-tabs_1_9_56{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{e as tttx_tabs_1_9_56}
1
+ import{r as t,c as a,h as o,H as i}from"./p-2b0fc913.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i;const s=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-icon_1_9_57",{style:{pointerEvents:"none",marginTop:"-2px"},icon:t.tabIcon,color:"gray",size:null!==(i=t.tabIconSize)&&void 0!==i?i:24});return o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},s)}renderSelectedTab(t){return"string"==typeof t.pageContent?o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:s.sanitize(t.pageContent,n),hidden:!t.selected}):o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,hidden:!t.selected},t.pageContent)}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(i,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_1_9_57",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map(this.generateTab.bind(this))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_1_9_57",{icon:"navigate_next",color:"black"}))),t&&this.renderSelectedTab(t)))}static get watchers(){return{tabs:["onDataChange"]}}};e.style='.material-symbols-rounded.sc-tttx-tabs_1_9_57{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_1_9_57-h{display:block}.tab-bar.sc-tttx-tabs_1_9_57{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_57>.left-navigation.sc-tttx-tabs_1_9_57,.tab-bar.sc-tttx-tabs_1_9_57>.right-navigation.sc-tttx-tabs_1_9_57{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_57>.left-navigation.sc-tttx-tabs_1_9_57>*.sc-tttx-tabs_1_9_57,.tab-bar.sc-tttx-tabs_1_9_57>.right-navigation.sc-tttx-tabs_1_9_57>*.sc-tttx-tabs_1_9_57{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_57>.tabs-container.sc-tttx-tabs_1_9_57{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_57>.tabs-container.wide.sc-tttx-tabs_1_9_57{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_57>.tabs-container.sc-tttx-tabs_1_9_57>*[role=tab].sc-tttx-tabs_1_9_57{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_57>.tabs-container.sc-tttx-tabs_1_9_57>*[role=tab].sc-tttx-tabs_1_9_57:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_57>.tabs-container.sc-tttx-tabs_1_9_57>*[role=tab][aria-selected].sc-tttx-tabs_1_9_57{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{e as tttx_tabs_1_9_57}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as l}from"./p-65bb4035.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_56}
1
+ import{r as t,c as e,h as i,H as l}from"./p-2b0fc913.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_57}