@3t-transform/threeteeui 1.9.0 → 1.9.2

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 (252) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button_1_9_0.cjs.entry.js → tttx-button_1_9_2.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption_1_9_0.cjs.entry.js → tttx-checkbox-group-caption_1_9_2.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading_1_9_0.cjs.entry.js → tttx-checkbox-group-heading_1_9_2.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_9_0.cjs.entry.js → tttx-checkbox-group_1_9_2.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_9_0.cjs.entry.js → tttx-checkbox_1_9_2.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-comments_1_9_0.cjs.entry.js → tttx-comments_1_9_2.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-data-pattern_1_9_0.cjs.entry.js → tttx-data-pattern_1_9_2.cjs.entry.js} +5 -5
  9. package/dist/cjs/{tttx-datacard_1_9_0.cjs.entry.js → tttx-datacard_1_9_2.cjs.entry.js} +4 -4
  10. package/dist/cjs/{tttx-dialog-box_1_9_0.cjs.entry.js → tttx-dialog-box_1_9_2.cjs.entry.js} +3 -3
  11. package/dist/cjs/{tttx-dialog_1_9_0.cjs.entry.js → tttx-dialog_1_9_2.cjs.entry.js} +2 -2
  12. package/dist/cjs/{tttx-expander_1_9_0.cjs.entry.js → tttx-expander_1_9_2.cjs.entry.js} +2 -2
  13. package/dist/cjs/{tttx-filter_1_9_0_4.cjs.entry.js → tttx-filter_1_9_2_4.cjs.entry.js} +9 -9
  14. package/dist/cjs/{tttx-form_1_9_0.cjs.entry.js → tttx-form_1_9_2.cjs.entry.js} +41 -19
  15. package/dist/cjs/{tttx-graph_1_9_0.cjs.entry.js → tttx-graph_1_9_2.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-icon_1_9_0.cjs.entry.js → tttx-icon_1_9_2.cjs.entry.js} +1 -1
  17. package/dist/cjs/{tttx-keyvalue-block_1_9_0.cjs.entry.js → tttx-keyvalue-block_1_9_2.cjs.entry.js} +1 -1
  18. package/dist/cjs/{tttx-loading-spinner_1_9_0.cjs.entry.js → tttx-loading-spinner_1_9_2.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-multiselect-box_1_9_0.cjs.entry.js → tttx-multiselect-box_1_9_2.cjs.entry.js} +6 -6
  20. package/dist/cjs/{tttx-percentage-bar_1_9_0.cjs.entry.js → tttx-percentage-bar_1_9_2.cjs.entry.js} +2 -2
  21. package/dist/cjs/{tttx-qrcode_1_9_0.cjs.entry.js → tttx-qrcode_1_9_2.cjs.entry.js} +1 -1
  22. package/dist/cjs/{tttx-select-box_1_9_0.cjs.entry.js → tttx-select-box_1_9_2.cjs.entry.js} +4 -4
  23. package/dist/cjs/tttx-standalone-input_1_9_2.cjs.entry.js +94 -0
  24. package/dist/cjs/{tttx-table_1_9_0.cjs.entry.js → tttx-table_1_9_2.cjs.entry.js} +1 -1
  25. package/dist/cjs/{tttx-tabs_1_9_0.cjs.entry.js → tttx-tabs_1_9_2.cjs.entry.js} +4 -4
  26. package/dist/cjs/{tttx-tag_1_9_0.cjs.entry.js → tttx-tag_1_9_2.cjs.entry.js} +1 -1
  27. package/dist/cjs/{tttx-textarea_1_9_0.cjs.entry.js → tttx-textarea_1_9_2.cjs.entry.js} +2 -2
  28. package/dist/cjs/tttx-toggle_1_9_2.cjs.entry.js +40 -0
  29. package/dist/cjs/{tttx-tree-view_1_9_0.cjs.entry.js → tttx-tree-view_1_9_2.cjs.entry.js} +3 -3
  30. package/dist/cjs/tttx.cjs.js +1 -1
  31. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  32. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  33. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  34. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  35. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  36. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  37. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  38. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  39. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  40. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  41. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  42. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
  43. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  44. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  45. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  46. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  47. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
  48. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  49. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.css +10 -159
  50. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  51. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  52. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  53. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  54. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  55. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  56. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +2 -2
  57. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +1 -1
  58. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  59. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  60. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  61. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  62. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  63. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  64. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  65. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  66. package/dist/collection/components/molecules/tttx-form/tttx-form.js +42 -26
  67. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +6 -5
  68. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  69. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  70. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  71. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  72. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  73. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
  74. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +4 -4
  75. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +18 -18
  76. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  77. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  78. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  79. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  80. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  81. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  82. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  83. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  84. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  85. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  86. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  87. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  88. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  89. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  90. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  91. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  92. package/dist/components/index.d.ts +31 -31
  93. package/dist/components/index.js +31 -31
  94. package/dist/components/tttx-button.js +5 -5
  95. package/dist/components/{tttx-button_1_9_0.d.ts → tttx-button_1_9_2.d.ts} +4 -4
  96. package/dist/components/{tttx-button_1_9_0.js → tttx-button_1_9_2.js} +2 -2
  97. package/dist/components/tttx-checkbox-group-caption_1_9_2.d.ts +11 -0
  98. package/dist/components/{tttx-checkbox-group-caption_1_9_0.js → tttx-checkbox-group-caption_1_9_2.js} +5 -5
  99. package/dist/components/tttx-checkbox-group-heading_1_9_2.d.ts +11 -0
  100. package/dist/components/{tttx-checkbox-group-heading_1_9_0.js → tttx-checkbox-group-heading_1_9_2.js} +5 -5
  101. package/dist/components/tttx-checkbox-group_1_9_2.d.ts +11 -0
  102. package/dist/components/{tttx-checkbox-group_1_9_0.js → tttx-checkbox-group_1_9_2.js} +5 -5
  103. package/dist/components/{tttx-datacard_1_9_0.d.ts → tttx-checkbox_1_9_2.d.ts} +4 -4
  104. package/dist/components/{tttx-checkbox_1_9_0.js → tttx-checkbox_1_9_2.js} +7 -7
  105. package/dist/components/{tttx-checkbox_1_9_0.d.ts → tttx-comments_1_9_2.d.ts} +4 -4
  106. package/dist/components/{tttx-comments_1_9_0.js → tttx-comments_1_9_2.js} +7 -7
  107. package/dist/components/tttx-data-pattern_1_9_2.d.ts +11 -0
  108. package/dist/components/{tttx-data-pattern_1_9_0.js → tttx-data-pattern_1_9_2.js} +16 -16
  109. package/dist/components/{tttx-comments_1_9_0.d.ts → tttx-datacard_1_9_2.d.ts} +4 -4
  110. package/dist/components/{tttx-datacard_1_9_0.js → tttx-datacard_1_9_2.js} +10 -10
  111. package/dist/components/tttx-dialog-box_1_9_2.d.ts +11 -0
  112. package/dist/components/{tttx-dialog-box_1_9_0.js → tttx-dialog-box_1_9_2.js} +9 -9
  113. package/dist/components/{tttx-dialog_1_9_0.d.ts → tttx-dialog_1_9_2.d.ts} +4 -4
  114. package/dist/components/{tttx-dialog_1_9_0.js → tttx-dialog_1_9_2.js} +8 -8
  115. package/dist/components/tttx-expander_1_9_2.d.ts +11 -0
  116. package/dist/components/{tttx-expander_1_9_0.js → tttx-expander_1_9_2.js} +7 -7
  117. package/dist/components/tttx-filter.js +6 -6
  118. package/dist/components/{tttx-filter_1_9_0.d.ts → tttx-filter_1_9_2.d.ts} +4 -4
  119. package/dist/components/{tttx-filter_1_9_0.js → tttx-filter_1_9_2.js} +2 -2
  120. package/dist/components/{tttx-tabs_1_9_0.d.ts → tttx-form_1_9_2.d.ts} +4 -4
  121. package/dist/components/{tttx-form_1_9_0.js → tttx-form_1_9_2.js} +48 -26
  122. package/dist/components/tttx-graph.js +3 -3
  123. package/dist/components/{tttx-graph_1_9_0.d.ts → tttx-graph_1_9_2.d.ts} +4 -4
  124. package/dist/components/{tttx-graph_1_9_0.js → tttx-graph_1_9_2.js} +2 -2
  125. package/dist/components/tttx-icon.js +3 -3
  126. package/dist/components/{tttx-icon_1_9_0.d.ts → tttx-icon_1_9_2.d.ts} +4 -4
  127. package/dist/components/{tttx-icon_1_9_0.js → tttx-icon_1_9_2.js} +2 -2
  128. package/dist/components/tttx-keyvalue-block_1_9_2.d.ts +11 -0
  129. package/dist/components/{tttx-keyvalue-block_1_9_0.js → tttx-keyvalue-block_1_9_2.js} +5 -5
  130. package/dist/components/tttx-list.js +6 -6
  131. package/dist/components/{tttx-list_1_9_0.d.ts → tttx-list_1_9_2.d.ts} +4 -4
  132. package/dist/components/{tttx-list_1_9_0.js → tttx-list_1_9_2.js} +2 -2
  133. package/dist/components/tttx-loading-spinner_1_9_2.d.ts +11 -0
  134. package/dist/components/{tttx-loading-spinner_1_9_0.js → tttx-loading-spinner_1_9_2.js} +5 -5
  135. package/dist/components/tttx-multiselect-box_1_9_2.d.ts +11 -0
  136. package/dist/components/{tttx-multiselect-box_1_9_0.js → tttx-multiselect-box_1_9_2.js} +13 -13
  137. package/dist/components/tttx-percentage-bar_1_9_2.d.ts +11 -0
  138. package/dist/components/{tttx-percentage-bar_1_9_0.js → tttx-percentage-bar_1_9_2.js} +6 -6
  139. package/dist/components/{tttx-qrcode_1_9_0.d.ts → tttx-qrcode_1_9_2.d.ts} +4 -4
  140. package/dist/components/{tttx-qrcode_1_9_0.js → tttx-qrcode_1_9_2.js} +5 -5
  141. package/dist/components/tttx-select-box.js +8 -8
  142. package/dist/components/tttx-select-box_1_9_2.d.ts +11 -0
  143. package/dist/components/{tttx-select-box_1_9_0.js → tttx-select-box_1_9_2.js} +2 -2
  144. package/dist/components/tttx-sorter.js +5 -5
  145. package/dist/components/tttx-sorter_1_9_2.d.ts +11 -0
  146. package/dist/components/{tttx-sorter_1_9_0.js → tttx-sorter_1_9_2.js} +2 -2
  147. package/dist/components/tttx-standalone-input.js +6 -6
  148. package/dist/components/tttx-standalone-input_1_9_2.d.ts +11 -0
  149. package/dist/components/{tttx-standalone-input_1_9_0.js → tttx-standalone-input_1_9_2.js} +2 -2
  150. package/dist/components/{tttx-table_1_9_0.d.ts → tttx-table_1_9_2.d.ts} +4 -4
  151. package/dist/components/{tttx-table_1_9_0.js → tttx-table_1_9_2.js} +5 -5
  152. package/dist/components/{tttx-form_1_9_0.d.ts → tttx-tabs_1_9_2.d.ts} +4 -4
  153. package/dist/components/{tttx-tabs_1_9_0.js → tttx-tabs_1_9_2.js} +9 -9
  154. package/dist/components/{tttx-tag_1_9_0.d.ts → tttx-tag_1_9_2.d.ts} +4 -4
  155. package/dist/components/{tttx-tag_1_9_0.js → tttx-tag_1_9_2.js} +5 -5
  156. package/dist/components/tttx-textarea_1_9_2.d.ts +11 -0
  157. package/dist/components/{tttx-textarea_1_9_0.js → tttx-textarea_1_9_2.js} +6 -6
  158. package/dist/components/tttx-toggle_1_9_2.d.ts +11 -0
  159. package/dist/components/tttx-toggle_1_9_2.js +57 -0
  160. package/dist/components/tttx-toolbar.js +3 -3
  161. package/dist/components/{tttx-toolbar_1_9_0.d.ts → tttx-toolbar_1_9_2.d.ts} +4 -4
  162. package/dist/components/{tttx-toolbar_1_9_0.js → tttx-toolbar_1_9_2.js} +2 -2
  163. package/dist/components/tttx-tree-view_1_9_2.d.ts +11 -0
  164. package/dist/components/{tttx-tree-view_1_9_0.js → tttx-tree-view_1_9_2.js} +9 -9
  165. package/dist/esm/loader.js +1 -1
  166. package/dist/esm/{tttx-button_1_9_0.entry.js → tttx-button_1_9_2.entry.js} +2 -2
  167. package/dist/esm/{tttx-checkbox-group-caption_1_9_0.entry.js → tttx-checkbox-group-caption_1_9_2.entry.js} +1 -1
  168. package/dist/esm/{tttx-checkbox-group-heading_1_9_0.entry.js → tttx-checkbox-group-heading_1_9_2.entry.js} +1 -1
  169. package/dist/esm/{tttx-checkbox-group_1_9_0.entry.js → tttx-checkbox-group_1_9_2.entry.js} +1 -1
  170. package/dist/esm/{tttx-checkbox_1_9_0.entry.js → tttx-checkbox_1_9_2.entry.js} +2 -2
  171. package/dist/esm/{tttx-comments_1_9_0.entry.js → tttx-comments_1_9_2.entry.js} +2 -2
  172. package/dist/esm/{tttx-data-pattern_1_9_0.entry.js → tttx-data-pattern_1_9_2.entry.js} +5 -5
  173. package/dist/esm/{tttx-datacard_1_9_0.entry.js → tttx-datacard_1_9_2.entry.js} +4 -4
  174. package/dist/esm/{tttx-dialog-box_1_9_0.entry.js → tttx-dialog-box_1_9_2.entry.js} +3 -3
  175. package/dist/esm/{tttx-dialog_1_9_0.entry.js → tttx-dialog_1_9_2.entry.js} +2 -2
  176. package/dist/esm/{tttx-expander_1_9_0.entry.js → tttx-expander_1_9_2.entry.js} +2 -2
  177. package/dist/esm/{tttx-filter_1_9_0_4.entry.js → tttx-filter_1_9_2_4.entry.js} +6 -6
  178. package/dist/esm/{tttx-form_1_9_0.entry.js → tttx-form_1_9_2.entry.js} +41 -19
  179. package/dist/esm/{tttx-graph_1_9_0.entry.js → tttx-graph_1_9_2.entry.js} +1 -1
  180. package/dist/esm/{tttx-icon_1_9_0.entry.js → tttx-icon_1_9_2.entry.js} +1 -1
  181. package/dist/esm/{tttx-keyvalue-block_1_9_0.entry.js → tttx-keyvalue-block_1_9_2.entry.js} +1 -1
  182. package/dist/esm/{tttx-loading-spinner_1_9_0.entry.js → tttx-loading-spinner_1_9_2.entry.js} +1 -1
  183. package/dist/esm/{tttx-multiselect-box_1_9_0.entry.js → tttx-multiselect-box_1_9_2.entry.js} +6 -6
  184. package/dist/esm/{tttx-percentage-bar_1_9_0.entry.js → tttx-percentage-bar_1_9_2.entry.js} +2 -2
  185. package/dist/esm/{tttx-qrcode_1_9_0.entry.js → tttx-qrcode_1_9_2.entry.js} +1 -1
  186. package/dist/esm/{tttx-select-box_1_9_0.entry.js → tttx-select-box_1_9_2.entry.js} +4 -4
  187. package/dist/esm/tttx-standalone-input_1_9_2.entry.js +90 -0
  188. package/dist/esm/{tttx-table_1_9_0.entry.js → tttx-table_1_9_2.entry.js} +1 -1
  189. package/dist/esm/{tttx-tabs_1_9_0.entry.js → tttx-tabs_1_9_2.entry.js} +4 -4
  190. package/dist/esm/{tttx-tag_1_9_0.entry.js → tttx-tag_1_9_2.entry.js} +1 -1
  191. package/dist/esm/{tttx-textarea_1_9_0.entry.js → tttx-textarea_1_9_2.entry.js} +2 -2
  192. package/dist/esm/tttx-toggle_1_9_2.entry.js +36 -0
  193. package/dist/esm/{tttx-tree-view_1_9_0.entry.js → tttx-tree-view_1_9_2.entry.js} +3 -3
  194. package/dist/esm/tttx.js +1 -1
  195. package/dist/tttx/p-0354044f.entry.js +1 -1
  196. package/dist/tttx/p-0da9f04c.entry.js +1 -1
  197. package/dist/tttx/p-0e515960.entry.js +1 -1
  198. package/dist/tttx/p-0ffbf27e.entry.js +1 -1
  199. package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
  200. package/dist/tttx/p-23f45005.entry.js +1 -1
  201. package/dist/tttx/p-2d4c1e8a.entry.js +1 -1
  202. package/dist/tttx/p-49ef7451.entry.js +1 -1
  203. package/dist/tttx/p-56c8c353.entry.js +1 -1
  204. package/dist/tttx/p-59c7b049.entry.js +1 -1
  205. package/dist/tttx/p-5c0bc00f.entry.js +1 -0
  206. package/dist/tttx/p-63ad6fb7.entry.js +1 -1
  207. package/dist/tttx/p-6b1c7a21.entry.js +1 -1
  208. package/dist/tttx/p-74148f2a.entry.js +1 -0
  209. package/dist/tttx/p-796f699a.entry.js +1 -1
  210. package/dist/tttx/p-79e218d0.entry.js +1 -1
  211. package/dist/tttx/p-884f37d3.entry.js +1 -1
  212. package/dist/tttx/p-8b0b95b7.entry.js +1 -1
  213. package/dist/tttx/p-9434561e.entry.js +1 -1
  214. package/dist/tttx/p-983d63ff.entry.js +1 -1
  215. package/dist/tttx/p-996a6061.entry.js +1 -1
  216. package/dist/tttx/p-a01e679a.entry.js +1 -1
  217. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  218. package/dist/tttx/p-b7347352.entry.js +1 -1
  219. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  220. package/dist/tttx/p-cfe412d0.entry.js +1 -1
  221. package/dist/tttx/p-f374e293.entry.js +1 -1
  222. package/dist/tttx/p-f4db1cf2.entry.js +1 -1
  223. package/dist/tttx/tttx.esm.js +1 -1
  224. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +5 -0
  225. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  226. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  227. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  228. package/dist/types/components.d.ts +365 -365
  229. package/package.json +1 -1
  230. package/dist/cjs/tttx-standalone-input_1_9_0.cjs.entry.js +0 -94
  231. package/dist/cjs/tttx-toggle_1_9_0.cjs.entry.js +0 -40
  232. package/dist/components/tttx-checkbox-group-caption_1_9_0.d.ts +0 -11
  233. package/dist/components/tttx-checkbox-group-heading_1_9_0.d.ts +0 -11
  234. package/dist/components/tttx-checkbox-group_1_9_0.d.ts +0 -11
  235. package/dist/components/tttx-data-pattern_1_9_0.d.ts +0 -11
  236. package/dist/components/tttx-dialog-box_1_9_0.d.ts +0 -11
  237. package/dist/components/tttx-expander_1_9_0.d.ts +0 -11
  238. package/dist/components/tttx-keyvalue-block_1_9_0.d.ts +0 -11
  239. package/dist/components/tttx-loading-spinner_1_9_0.d.ts +0 -11
  240. package/dist/components/tttx-multiselect-box_1_9_0.d.ts +0 -11
  241. package/dist/components/tttx-percentage-bar_1_9_0.d.ts +0 -11
  242. package/dist/components/tttx-select-box_1_9_0.d.ts +0 -11
  243. package/dist/components/tttx-sorter_1_9_0.d.ts +0 -11
  244. package/dist/components/tttx-standalone-input_1_9_0.d.ts +0 -11
  245. package/dist/components/tttx-textarea_1_9_0.d.ts +0 -11
  246. package/dist/components/tttx-toggle_1_9_0.d.ts +0 -11
  247. package/dist/components/tttx-toggle_1_9_0.js +0 -57
  248. package/dist/components/tttx-tree-view_1_9_0.d.ts +0 -11
  249. package/dist/esm/tttx-standalone-input_1_9_0.entry.js +0 -90
  250. package/dist/esm/tttx-toggle_1_9_0.entry.js +0 -36
  251. package/dist/tttx/p-08b86b44.entry.js +0 -1
  252. package/dist/tttx/p-f365287c.entry.js +0 -1
@@ -259,6 +259,9 @@ const TttxForm = class {
259
259
  const o = document.createElement('option');
260
260
  o.innerText = option.label;
261
261
  o.value = option.value;
262
+ if (option.disabled) {
263
+ o.disabled = true;
264
+ }
262
265
  fragment.appendChild(o);
263
266
  }
264
267
  select.replaceChildren(fragment);
@@ -327,13 +330,16 @@ const TttxForm = class {
327
330
  if ((_a = this._data) === null || _a === void 0 ? void 0 : _a[formKey]) {
328
331
  select.classList.remove('placeholder');
329
332
  }
330
- const tttxSelect = document.createElement('tttx-select-box_1_9_0');
333
+ const tttxSelect = document.createElement('tttx-select-box_1_9_2');
331
334
  tttxSelect.optionsData = (_b = formProperties.options) === null || _b === void 0 ? void 0 : _b.filter(o => !o.placeholder);
332
335
  tttxSelect.placeholder = (_d = (_c = formProperties.options) === null || _c === void 0 ? void 0 : _c.filter(o => o.placeholder)[0]) === null || _d === void 0 ? void 0 : _d.label;
333
336
  tttxSelect.inline = false;
334
337
  tttxSelect.searchEnabled = true;
335
338
  tttxSelect.style.width = '100%';
336
339
  tttxSelect.style.marginTop = '6px';
340
+ if (formProperties.disabled) {
341
+ this.toggleFormField(select, true);
342
+ }
337
343
  tttxSelect.setAttribute('name', 'overlay-' + formKey);
338
344
  const fragment = document.createDocumentFragment();
339
345
  fragment.append(tttxSelect);
@@ -363,7 +369,7 @@ const TttxForm = class {
363
369
  const option = document.createElement('option');
364
370
  option.setAttribute('value', optionProperties.value);
365
371
  if (optionProperties.placeholder) {
366
- option.setAttribute('disabled', '');
372
+ option.setAttribute('disabled', (optionProperties.disabled) ? 'true' : '');
367
373
  option.setAttribute('selected', '');
368
374
  option.setAttribute('hidden', '');
369
375
  select.classList.add('placeholder');
@@ -396,6 +402,9 @@ const TttxForm = class {
396
402
  if (formProperties.readonly) {
397
403
  input.readOnly = true;
398
404
  }
405
+ if (formProperties.disabled) {
406
+ this.toggleFormField(input, true);
407
+ }
399
408
  // Return the input element
400
409
  return input;
401
410
  }
@@ -420,6 +429,9 @@ const TttxForm = class {
420
429
  if (formProperties.readonly) {
421
430
  input.readOnly = true;
422
431
  }
432
+ if (formProperties.disabled) {
433
+ this.toggleFormField(input, true);
434
+ }
423
435
  if (formProperties.resize === 'none') {
424
436
  input.classList.add('resize-none');
425
437
  }
@@ -438,6 +450,10 @@ const TttxForm = class {
438
450
  startDate.readOnly = true;
439
451
  endDate.readOnly = true;
440
452
  }
453
+ if (formProperties.disabled) {
454
+ this.toggleFormField(startDate, true);
455
+ this.toggleFormField(endDate, true);
456
+ }
441
457
  this.applyValidation(startDate, { required: { message: 'Please enter a start date' }, dateCompare: { to: endDate.name } });
442
458
  this.applyValidation(endDate, { required: { message: 'Please enter an end date' }, dateCompare: { with: startDate.name, message: 'End date cannot be before the start date' } });
443
459
  let startTime;
@@ -454,6 +470,10 @@ const TttxForm = class {
454
470
  startTime.readOnly = true;
455
471
  endTime.readOnly = true;
456
472
  }
473
+ if (formProperties.disabled) {
474
+ this.toggleFormField(startTime, true);
475
+ this.toggleFormField(endTime, true);
476
+ }
457
477
  this.applyValidation(startTime, { required: { message: 'Please enter a start time' } });
458
478
  this.applyValidation(endTime, { required: { message: 'Please enter an end time' } });
459
479
  }
@@ -641,6 +661,10 @@ const TttxForm = class {
641
661
  input.type = 'radio';
642
662
  input.name = formKey;
643
663
  input.value = optionProperties.value;
664
+ // Can be disabled from the option properties, or globally in the form properties
665
+ if (optionProperties.disabled || formProperties.disabled) {
666
+ this.toggleFormField(input, true);
667
+ }
644
668
  if ((_a = formProperties === null || formProperties === void 0 ? void 0 : formProperties.validation) === null || _a === void 0 ? void 0 : _a.required) {
645
669
  input.setAttribute('required', 'required');
646
670
  input.setAttribute('data-required', (_b = formProperties.validation.required.message) !== null && _b !== void 0 ? _b : '');
@@ -849,6 +873,18 @@ const TttxForm = class {
849
873
  formField.removeAttribute('custom-validation-set');
850
874
  setErrorState(formField, false, '');
851
875
  }
876
+ toggleFormField(formField, disabled) {
877
+ formField.disabled = disabled;
878
+ let parent = formField.parentElement;
879
+ if (parent) {
880
+ do {
881
+ if (parent.nodeName !== 'LABEL') {
882
+ parent = parent.parentElement;
883
+ }
884
+ } while (parent.nodeName !== 'LABEL');
885
+ parent.style.display = (disabled) ? 'none' : 'block';
886
+ }
887
+ }
852
888
  /**
853
889
  * Disable a form field and visually remove it from the form.
854
890
  * If custom validation is set, this function will return without affecting the form field.
@@ -859,14 +895,7 @@ const TttxForm = class {
859
895
  if (formField.hasAttribute('custom-validation-set')) {
860
896
  return;
861
897
  }
862
- formField.disabled = true;
863
- let parent = formField.parentElement;
864
- do {
865
- if (parent.nodeName !== 'LABEL') {
866
- parent = parent.parentElement;
867
- }
868
- } while (parent.nodeName !== 'LABEL');
869
- parent.style.display = 'none';
898
+ this.toggleFormField(formField, true);
870
899
  }
871
900
  /**
872
901
  * Enable a form field and visually add it back to the form.
@@ -874,14 +903,7 @@ const TttxForm = class {
874
903
  */
875
904
  async enableFormField(fieldName) {
876
905
  const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
877
- formField.disabled = false;
878
- let parent = formField.parentElement;
879
- do {
880
- if (parent.nodeName !== 'LABEL') {
881
- parent = parent.parentElement;
882
- }
883
- } while (parent.nodeName !== 'LABEL');
884
- parent.style.display = 'block';
906
+ this.toggleFormField(formField, false);
885
907
  }
886
908
  /**
887
909
  * Set the value of a form field progromatically
@@ -921,4 +943,4 @@ const TttxForm = class {
921
943
  };
922
944
  TttxForm.style = tttxFormCss;
923
945
 
924
- export { TttxForm as tttx_form_1_9_0 };
946
+ export { TttxForm as tttx_form_1_9_2 };
@@ -14908,4 +14908,4 @@ const TttxGraph = class {
14908
14908
  };
14909
14909
  TttxGraph.style = tttxGraphCss;
14910
14910
 
14911
- export { TttxGraph as tttx_graph_1_9_0 };
14911
+ export { TttxGraph as tttx_graph_1_9_2 };
@@ -27,4 +27,4 @@ const TttxIcon = class {
27
27
  };
28
28
  TttxIcon.style = tttxIconCss;
29
29
 
30
- export { TttxIcon as tttx_icon_1_9_0 };
30
+ export { TttxIcon as tttx_icon_1_9_2 };
@@ -65,4 +65,4 @@ const TttxKeyvalueBlock = class {
65
65
  };
66
66
  TttxKeyvalueBlock.style = tttxKeyvalueBlockCss;
67
67
 
68
- export { TttxKeyvalueBlock as tttx_keyvalue_block_1_9_0 };
68
+ export { TttxKeyvalueBlock as tttx_keyvalue_block_1_9_2 };
@@ -19,4 +19,4 @@ const TttxLoadingSpinner = class {
19
19
  };
20
20
  TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
21
21
 
22
- export { TttxLoadingSpinner as tttx_loading_spinner_1_9_0 };
22
+ export { TttxLoadingSpinner as tttx_loading_spinner_1_9_2 };
@@ -85,11 +85,11 @@ const TttxMultiselectBox = class {
85
85
  const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
86
86
  // This is tested in e2e tests
87
87
  /* istanbul ignore next */
88
- return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
88
+ return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_2", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
89
89
  }
90
90
  // This is tested in e2e tests
91
91
  /* istanbul ignore next */
92
- return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
92
+ return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_2", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
93
93
  }
94
94
  // This is tested in e2e tests
95
95
  /* istanbul ignore next */
@@ -121,11 +121,11 @@ const TttxMultiselectBox = class {
121
121
  if (!this.unsavedSelectedItems)
122
122
  this.unsavedSelectedItems = this.safelyCloneArray(this._optionsData);
123
123
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
124
- return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_0", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
124
+ return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_2", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
125
125
  /* istanbul ignore next */
126
- h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_0", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.unsavedSelectedItems.map((option) => {
126
+ h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_2", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.unsavedSelectedItems.map((option) => {
127
127
  return this.dropdownOption(option);
128
- })), h("div", { class: 'footer' }, h("tttx-button_1_9_0", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_9_0", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
128
+ })), h("div", { class: 'footer' }, h("tttx-button_1_9_2", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_9_2", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
129
129
  }
130
130
  get el() { return getElement(this); }
131
131
  static get watchers() { return {
@@ -134,4 +134,4 @@ const TttxMultiselectBox = class {
134
134
  };
135
135
  TttxMultiselectBox.style = tttxMultiselectBoxCss;
136
136
 
137
- export { TttxMultiselectBox as tttx_multiselect_box_1_9_0 };
137
+ export { TttxMultiselectBox as tttx_multiselect_box_1_9_2 };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-88bd2f60.js';
2
2
 
3
- const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_9_0-h{display:block}.progress.sc-tttx-percentage-bar_1_9_0{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_0 .bar.sc-tttx-percentage-bar_1_9_0{height:20px}";
3
+ const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_9_2-h{display:block}.progress.sc-tttx-percentage-bar_1_9_2{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_2 .bar.sc-tttx-percentage-bar_1_9_2{height:20px}";
4
4
 
5
5
  const TttxPercentageBar = class {
6
6
  constructor(hostRef) {
@@ -58,4 +58,4 @@ const TttxPercentageBar = class {
58
58
  };
59
59
  TttxPercentageBar.style = tttxPercentageBarCss;
60
60
 
61
- export { TttxPercentageBar as tttx_percentage_bar_1_9_0 };
61
+ export { TttxPercentageBar as tttx_percentage_bar_1_9_2 };
@@ -36,4 +36,4 @@ const TttxQrCode = class {
36
36
  };
37
37
  TttxQrCode.style = tttxQrcodeCss;
38
38
 
39
- export { TttxQrCode as tttx_qrcode_1_9_0 };
39
+ export { TttxQrCode as tttx_qrcode_1_9_2 };
@@ -72,7 +72,7 @@ const TttxSelectBox = class {
72
72
  let title;
73
73
  let subtitle;
74
74
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
75
- const icon = h("tttx-icon_1_9_0", { icon: chevronIcon, color: "black" });
75
+ const icon = h("tttx-icon_1_9_2", { icon: chevronIcon, color: "black" });
76
76
  let chevron = h("div", { class: "dropdown-selector-chevron" }, icon);
77
77
  if (!this.selectedItem) {
78
78
  title = h("div", { class: "placeholder" }, this.placeholder);
@@ -145,9 +145,9 @@ const TttxSelectBox = class {
145
145
  if (!this.optionsData)
146
146
  return;
147
147
  const invalidClass = this.showErrorMsg ? 'invalid' : '';
148
- return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_0", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list" }, this._optionsData.map((option) => {
148
+ return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_2", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list" }, this._optionsData.map((option) => {
149
149
  return this.dropdownOption(option);
150
- }))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_0", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
150
+ }))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_2", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
151
151
  }
152
152
  get el() { return getElement(this); }
153
153
  static get watchers() { return {
@@ -156,4 +156,4 @@ const TttxSelectBox = class {
156
156
  };
157
157
  TttxSelectBox.style = tttxSelectBoxCss;
158
158
 
159
- export { TttxSelectBox as tttx_select_box_1_9_0 };
159
+ export { TttxSelectBox as tttx_select_box_1_9_2 };
@@ -0,0 +1,90 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-88bd2f60.js';
2
+
3
+ const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_2{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_2{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_2{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_2 .optional.sc-tttx-standalone-input_1_9_2{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2{position:relative}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 .left-icons.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 .right-icons.sc-tttx-standalone-input_1_9_2{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 .left-icons.sc-tttx-standalone-input_1_9_2 tttx-icon.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 .right-icons.sc-tttx-standalone-input_1_9_2 tttx-icon.sc-tttx-standalone-input_1_9_2{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 .left-icons.sc-tttx-standalone-input_1_9_2{left:8px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 .right-icons.sc-tttx-standalone-input_1_9_2{right:8px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.sc-tttx-standalone-input_1_9_2{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.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.has-input-icon.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.has-input-icon.sc-tttx-standalone-input_1_9_2{padding-left:40px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_2{padding-left:72px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.has-left-icon.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.has-left-icon.sc-tttx-standalone-input_1_9_2{padding-left:40px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.has-right-icon.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.has-right-icon.sc-tttx-standalone-input_1_9_2{padding-right:40px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.invalid.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.invalid.sc-tttx-standalone-input_1_9_2{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.sc-tttx-standalone-input_1_9_2:not([type=submit]),label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.sc-tttx-standalone-input_1_9_2:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input[type=radio].sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea[type=radio].sc-tttx-standalone-input_1_9_2{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input[type=date].sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea[type=date].sc-tttx-standalone-input_1_9_2{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input[readonly].sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea[readonly].sc-tttx-standalone-input_1_9_2{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.sc-tttx-standalone-input_1_9_2:focus,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.sc-tttx-standalone-input_1_9_2:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 input.sc-tttx-standalone-input_1_9_2:focus-visible,label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.sc-tttx-standalone-input_1_9_2:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.sc-tttx-standalone-input_1_9_2{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_2 .outer-container.sc-tttx-standalone-input_1_9_2 textarea.resize-none.sc-tttx-standalone-input_1_9_2{resize:none}label.sc-tttx-standalone-input_1_9_2 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_2{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_2 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_2 .left-icons.sc-tttx-standalone-input_1_9_2,label.sc-tttx-standalone-input_1_9_2 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_2 .right-icons.sc-tttx-standalone-input_1_9_2{margin-top:4px}label.sc-tttx-standalone-input_1_9_2 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_2{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_2 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_2{display:block}label.sc-tttx-standalone-input_1_9_2 .outer-container.inputInline.sc-tttx-standalone-input_1_9_2{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_2 .outer-container.inputInline.sc-tttx-standalone-input_1_9_2 input.sc-tttx-standalone-input_1_9_2{margin-top:0}label.sc-tttx-standalone-input_1_9_2 .secondarylabel.sc-tttx-standalone-input_1_9_2{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_2 .errorBubble.sc-tttx-standalone-input_1_9_2{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.sc-tttx-standalone-input_1_9_2 .errorBubble.sc-tttx-standalone-input_1_9_2:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_2 .errorBubble.sc-tttx-standalone-input_1_9_2 span.sc-tttx-standalone-input_1_9_2{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_2{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}.sc-tttx-standalone-input_1_9_2-h{display:block}";
4
+
5
+ const TttxInput = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.valueChanged = createEvent(this, "valueChanged", 7);
9
+ this.focusChanged = createEvent(this, "focusChanged", 7);
10
+ this.blurChanged = createEvent(this, "blurChanged", 7);
11
+ this.invalidChanged = createEvent(this, "invalidChanged", 7);
12
+ this.inputIconClick = createEvent(this, "inputIconClick", 7);
13
+ this.leftIconClick = createEvent(this, "leftIconClick", 7);
14
+ this.rightIconClick = createEvent(this, "rightIconClick", 7);
15
+ this.label = undefined;
16
+ this.secondarylabel = undefined;
17
+ this.showerrormsg = undefined;
18
+ this.showerrorbubble = true;
19
+ this.errormsg = undefined;
20
+ this.iconleft = undefined;
21
+ this.iconleftcolor = 'grey';
22
+ this.iconright = undefined;
23
+ this.iconrightcolor = 'grey';
24
+ this.inputicon = undefined;
25
+ this.inputiconcolor = 'grey';
26
+ this.inline = undefined;
27
+ this.inputautocapitalize = undefined;
28
+ this.inputautofocus = undefined;
29
+ this.inputkeyhint = undefined;
30
+ this.inputindex = undefined;
31
+ this.inputtitle = undefined;
32
+ this.autocomplete = undefined;
33
+ this.checked = undefined;
34
+ this.disabled = undefined;
35
+ this.max = undefined;
36
+ this.maxlength = undefined;
37
+ this.min = undefined;
38
+ this.minlength = undefined;
39
+ this.name = undefined;
40
+ this.pattern = undefined;
41
+ this.placeholder = undefined;
42
+ this.readonly = undefined;
43
+ this.required = undefined;
44
+ this.step = undefined;
45
+ this.type = 'text';
46
+ this.value = undefined;
47
+ }
48
+ handleChange(event) {
49
+ const target = event.target;
50
+ this.value = target.value;
51
+ this.valueChanged.emit(target.value);
52
+ }
53
+ handleFocus(event) {
54
+ const target = event.target;
55
+ this.focusChanged.emit(target.value);
56
+ }
57
+ handleBlur(event) {
58
+ const target = event.target;
59
+ this.blurChanged.emit(target.value);
60
+ }
61
+ handleInvalid(event) {
62
+ event.preventDefault();
63
+ const target = event.target;
64
+ this.invalidChanged.emit(target.value);
65
+ }
66
+ handleInputIconClick(event) {
67
+ event.preventDefault();
68
+ this.inputIconClick.emit();
69
+ }
70
+ handleLeftIconClick(event) {
71
+ event.preventDefault();
72
+ this.leftIconClick.emit();
73
+ }
74
+ handleRightIconClick(event) {
75
+ event.preventDefault();
76
+ this.rightIconClick.emit();
77
+ }
78
+ render() {
79
+ const classNames = [
80
+ this.showerrormsg ? 'invalid' : '',
81
+ this.inputicon ? 'has-input-icon' : '',
82
+ this.iconleft ? 'has-left-icon' : '',
83
+ this.iconright ? 'has-right-icon' : '',
84
+ ].join(' ');
85
+ return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_9_2", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_9_2", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_9_2", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
86
+ }
87
+ };
88
+ TttxInput.style = tttxStandaloneInputCss;
89
+
90
+ export { TttxInput as tttx_standalone_input_1_9_2 };
@@ -54,4 +54,4 @@ const TttxTable = class {
54
54
  };
55
55
  TttxTable.style = tttxTableCss;
56
56
 
57
- export { TttxTable as tttx_table_1_9_0 };
57
+ export { TttxTable as tttx_table_1_9_2 };
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-8
2
2
  import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-38a67458.js';
3
3
  import './_commonjsHelpers-9943807e.js';
4
4
 
5
- const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_0{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_0-h{display:block}.tab-bar.sc-tttx-tabs_1_9_0{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_0>.left-navigation.sc-tttx-tabs_1_9_0,.tab-bar.sc-tttx-tabs_1_9_0>.right-navigation.sc-tttx-tabs_1_9_0{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_0>.left-navigation.sc-tttx-tabs_1_9_0>*.sc-tttx-tabs_1_9_0,.tab-bar.sc-tttx-tabs_1_9_0>.right-navigation.sc-tttx-tabs_1_9_0>*.sc-tttx-tabs_1_9_0{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_0>.tabs-container.sc-tttx-tabs_1_9_0{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_0>.tabs-container.wide.sc-tttx-tabs_1_9_0{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_0>.tabs-container.sc-tttx-tabs_1_9_0>*[role=tab].sc-tttx-tabs_1_9_0{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_0>.tabs-container.sc-tttx-tabs_1_9_0>*[role=tab].sc-tttx-tabs_1_9_0:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_0>.tabs-container.sc-tttx-tabs_1_9_0>*[role=tab][aria-selected].sc-tttx-tabs_1_9_0{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
5
+ const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_2{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_2-h{display:block}.tab-bar.sc-tttx-tabs_1_9_2{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_2>.left-navigation.sc-tttx-tabs_1_9_2,.tab-bar.sc-tttx-tabs_1_9_2>.right-navigation.sc-tttx-tabs_1_9_2{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_2>.left-navigation.sc-tttx-tabs_1_9_2>*.sc-tttx-tabs_1_9_2,.tab-bar.sc-tttx-tabs_1_9_2>.right-navigation.sc-tttx-tabs_1_9_2>*.sc-tttx-tabs_1_9_2{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_2>.tabs-container.sc-tttx-tabs_1_9_2{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_2>.tabs-container.wide.sc-tttx-tabs_1_9_2{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_2>.tabs-container.sc-tttx-tabs_1_9_2>*[role=tab].sc-tttx-tabs_1_9_2{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_2>.tabs-container.sc-tttx-tabs_1_9_2>*[role=tab].sc-tttx-tabs_1_9_2:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_2>.tabs-container.sc-tttx-tabs_1_9_2>*[role=tab][aria-selected].sc-tttx-tabs_1_9_2{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
6
6
 
7
7
  const TttxTabs = class {
8
8
  constructor(hostRef) {
@@ -74,7 +74,7 @@ const TttxTabs = class {
74
74
  }
75
75
  generateTab(tab) {
76
76
  var _a, _b;
77
- const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_0", { style: { pointerEvents: 'none', marginTop: '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_b = tab.tabIconSize) !== null && _b !== void 0 ? _b : 24 }));
77
+ const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_2", { style: { pointerEvents: 'none', marginTop: '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_b = tab.tabIconSize) !== null && _b !== void 0 ? _b : 24 }));
78
78
  return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
79
79
  this.handleTabClick(tab);
80
80
  } }, tabTitle));
@@ -93,7 +93,7 @@ const TttxTabs = class {
93
93
  return;
94
94
  }
95
95
  const selectedTab = this._tabs.find(tab => tab.selected);
96
- return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_0", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_0", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
96
+ return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_2", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_2", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
97
97
  }
98
98
  static get watchers() { return {
99
99
  "tabs": ["onDataChange"]
@@ -101,4 +101,4 @@ const TttxTabs = class {
101
101
  };
102
102
  TttxTabs.style = tttxTabsCss;
103
103
 
104
- export { TttxTabs as tttx_tabs_1_9_0 };
104
+ export { TttxTabs as tttx_tabs_1_9_2 };
@@ -15,4 +15,4 @@ const TttxTag = class {
15
15
  };
16
16
  TttxTag.style = tttxTagCss;
17
17
 
18
- export { TttxTag as tttx_tag_1_9_0 };
18
+ export { TttxTag as tttx_tag_1_9_2 };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-88bd2f60.js';
2
2
 
3
- const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_0{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_0-h{display:block}label.sc-tttx-textarea_1_9_0{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_0 .textarea-container.sc-tttx-textarea_1_9_0{position:relative}label.sc-tttx-textarea_1_9_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.sc-tttx-textarea_1_9_0{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_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.no-label.sc-tttx-textarea_1_9_0{margin-top:0}label.sc-tttx-textarea_1_9_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.sc-tttx-textarea_1_9_0~.errorBubble.sc-tttx-textarea_1_9_0{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_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.sc-tttx-textarea_1_9_0~.errorBubble.sc-tttx-textarea_1_9_0:not(.visible){display:none}label.sc-tttx-textarea_1_9_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.sc-tttx-textarea_1_9_0~.errorBubble.sc-tttx-textarea_1_9_0 span.sc-tttx-textarea_1_9_0{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.sc-tttx-textarea_1_9_0:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_0 .textarea-container.sc-tttx-textarea_1_9_0 textarea.sc-tttx-textarea_1_9_0:focus-visible{outline:none}label.sc-tttx-textarea_1_9_0 .secondarylabel.sc-tttx-textarea_1_9_0{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_0 .optional.sc-tttx-textarea_1_9_0{color:#757575;font-weight:normal}";
3
+ const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_2{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_2-h{display:block}label.sc-tttx-textarea_1_9_2{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_2 .textarea-container.sc-tttx-textarea_1_9_2{position:relative}label.sc-tttx-textarea_1_9_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.sc-tttx-textarea_1_9_2{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_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.no-label.sc-tttx-textarea_1_9_2{margin-top:0}label.sc-tttx-textarea_1_9_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.sc-tttx-textarea_1_9_2~.errorBubble.sc-tttx-textarea_1_9_2{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_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.sc-tttx-textarea_1_9_2~.errorBubble.sc-tttx-textarea_1_9_2:not(.visible){display:none}label.sc-tttx-textarea_1_9_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.sc-tttx-textarea_1_9_2~.errorBubble.sc-tttx-textarea_1_9_2 span.sc-tttx-textarea_1_9_2{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.sc-tttx-textarea_1_9_2:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_2 .textarea-container.sc-tttx-textarea_1_9_2 textarea.sc-tttx-textarea_1_9_2:focus-visible{outline:none}label.sc-tttx-textarea_1_9_2 .secondarylabel.sc-tttx-textarea_1_9_2{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_2 .optional.sc-tttx-textarea_1_9_2{color:#757575;font-weight:normal}";
4
4
 
5
5
  const TttxTextarea = class {
6
6
  constructor(hostRef) {
@@ -52,4 +52,4 @@ const TttxTextarea = class {
52
52
  };
53
53
  TttxTextarea.style = tttxTextareaCss;
54
54
 
55
- export { TttxTextarea as tttx_textarea_1_9_0 };
55
+ export { TttxTextarea as tttx_textarea_1_9_2 };
@@ -0,0 +1,36 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-88bd2f60.js';
2
+
3
+ const tttxToggleCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:inline-block}#toggle-switch{width:50px;height:30px;border-radius:30px;position:relative;box-sizing:border-box}#toggle-switch input{cursor:pointer;width:50px;height:30px;padding:0;margin:0;top:0;left:0;border:none;outline:none;opacity:0;position:absolute}#toggle-switch #toggle-body{width:50px;height:30px;border-radius:28px;position:relative;top:0;left:0;pointer-events:none;background:#9e9e9e}#toggle-switch #toggle-body::after{font-family:\"Material Symbols Rounded\", sans-serif;content:\"\\e5ca\";position:absolute;width:26px;height:26px;left:2px;top:2px;border-radius:26px;background:white;transition:all 0.1s;font-size:22px;color:#FFFFFF;justify-content:center;display:inline-flex}#toggle-switch input:checked~#toggle-body::after{color:#a2bb31;left:22px}#toggle-switch input:checked~#toggle-body{background:#a2bb31}";
4
+
5
+ const TttxToggle = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.toggleSwitchEvent = createEvent(this, "toggleSwitchEvent", 3);
9
+ this.initialstate = undefined;
10
+ this._state = undefined;
11
+ }
12
+ componentWillLoad() {
13
+ if (this.initialstate === true || this.initialstate === 'true') {
14
+ this._state = true;
15
+ }
16
+ else {
17
+ this._state = false;
18
+ }
19
+ }
20
+ onChange(e) {
21
+ this.toggleSwitchEvent.emit({ checked: e.target.checked });
22
+ }
23
+ render() {
24
+ let checkbox;
25
+ if (this._state) {
26
+ checkbox = h("input", { type: 'checkbox', checked: true, onChange: this.onChange.bind(this) });
27
+ }
28
+ else {
29
+ checkbox = h("input", { type: 'checkbox', onChange: this.onChange.bind(this) });
30
+ }
31
+ return (h("div", { id: 'toggle-switch' }, checkbox, h("div", { id: 'toggle-body' })));
32
+ }
33
+ };
34
+ TttxToggle.style = tttxToggleCss;
35
+
36
+ export { TttxToggle as tttx_toggle_1_9_2 };
@@ -102,7 +102,7 @@ const TttxTreeView = class {
102
102
  if (node.hasHover) {
103
103
  this.onClickHandler(event, node);
104
104
  }
105
- } }, h("tttx-button_1_9_0", { 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)), node.isOpen ? (h("li", null, h("ul", null, node.child.map(childNode => {
105
+ } }, h("tttx-button_1_9_2", { 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)), node.isOpen ? (h("li", null, h("ul", null, node.child.map(childNode => {
106
106
  return this.renderNode(childNode);
107
107
  })))) : null));
108
108
  }
@@ -115,7 +115,7 @@ const TttxTreeView = class {
115
115
  }
116
116
  }
117
117
  htmlcode(type, node, check_box, check_boxColor) {
118
- const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button_1_9_0", { 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_0", { 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) })));
118
+ const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button_1_9_2", { 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_2", { 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) })));
119
119
  return htmlcode;
120
120
  }
121
121
  render() {
@@ -126,4 +126,4 @@ const TttxTreeView = class {
126
126
  };
127
127
  TttxTreeView.style = tttxTreeViewCss;
128
128
 
129
- export { TttxTreeView as tttx_tree_view_1_9_0 };
129
+ export { TttxTreeView as tttx_tree_view_1_9_2 };
package/dist/esm/tttx.js CHANGED
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["tttx-data-pattern_1_9_0",[[1,"tttx-data-pattern_1_9_0",{"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_0",[[1,"tttx-form_1_9_0",{"formschema":[1025],"data":[1032],"submit":[64],"setSelectOptions":[64],"setValidationFor":[64],"clearValidationFor":[64],"disableFormField":[64],"enableFormField":[64],"setInputFieldValue":[64],"setFieldReadOnlyMode":[64]}]]],["tttx-multiselect-box_1_9_0",[[1,"tttx-multiselect-box_1_9_0",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"htmlVisibleValue":[4,"html-visible-value"],"visibleValue":[1,"visible-value"],"open":[32],"unsavedSelectedItems":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-datacard_1_9_0",[[1,"tttx-datacard_1_9_0",{"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_0",[[1,"tttx-dialog-box_1_9_0",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_0",[[1,"tttx-dialog_1_9_0",{"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_0",[[1,"tttx-tree-view_1_9_0",{"data":[1040],"treeData":[32]}]]],["tttx-checkbox_1_9_0",[[0,"tttx-checkbox_1_9_0",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_0",[[1,"tttx-comments_1_9_0",{"currentuser":[1],"comments":[1],"_comments":[32],"addDummyComment":[64]}]]],["tttx-expander_1_9_0",[[1,"tttx-expander_1_9_0",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_0",[[2,"tttx-tabs_1_9_0",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_0",[[4,"tttx-checkbox-group-caption_1_9_0"]]],["tttx-checkbox-group-heading_1_9_0",[[4,"tttx-checkbox-group-heading_1_9_0"]]],["tttx-checkbox-group_1_9_0",[[1,"tttx-checkbox-group_1_9_0"]]],["tttx-keyvalue-block_1_9_0",[[1,"tttx-keyvalue-block_1_9_0",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-loading-spinner_1_9_0",[[1,"tttx-loading-spinner_1_9_0",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-percentage-bar_1_9_0",[[2,"tttx-percentage-bar_1_9_0",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_0",[[1,"tttx-qrcode_1_9_0",{"link":[1025],"size":[1026]}]]],["tttx-table_1_9_0",[[1,"tttx-table_1_9_0",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-tag_1_9_0",[[1,"tttx-tag_1_9_0",{"text":[1],"color":[1],"textColor":[1,"text-color"]}]]],["tttx-textarea_1_9_0",[[2,"tttx-textarea_1_9_0",{"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_0",[[1,"tttx-toggle_1_9_0",{"initialstate":[8],"_state":[32]}]]],["tttx-standalone-input_1_9_0",[[2,"tttx-standalone-input_1_9_0",{"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_0",[[1,"tttx-select-box_1_9_0",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"selectedValue":[1,"selected-value"],"useExternalFiltering":[4,"use-external-filtering"],"showErrorMsg":[4,"show-error-msg"],"showErrorBubble":[4,"show-error-bubble"],"errorMsg":[1,"error-msg"],"open":[32],"selectedItem":[32],"searchTerm":[32],"setSelectedItem":[64]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-graph_1_9_0",[[1,"tttx-graph_1_9_0",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-icon_1_9_0",[[1,"tttx-icon_1_9_0",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-filter_1_9_0_4",[[1,"tttx-filter_1_9_0",{"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_0",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_0",{"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_0",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_0",[[1,"tttx-button_1_9_0",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
17
+ return bootstrapLazy([["tttx-data-pattern_1_9_2",[[1,"tttx-data-pattern_1_9_2",{"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_2",[[1,"tttx-form_1_9_2",{"formschema":[1025],"data":[1032],"submit":[64],"setSelectOptions":[64],"setValidationFor":[64],"clearValidationFor":[64],"disableFormField":[64],"enableFormField":[64],"setInputFieldValue":[64],"setFieldReadOnlyMode":[64]}]]],["tttx-multiselect-box_1_9_2",[[1,"tttx-multiselect-box_1_9_2",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"htmlVisibleValue":[4,"html-visible-value"],"visibleValue":[1,"visible-value"],"open":[32],"unsavedSelectedItems":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-datacard_1_9_2",[[1,"tttx-datacard_1_9_2",{"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_2",[[1,"tttx-dialog-box_1_9_2",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_2",[[1,"tttx-dialog_1_9_2",{"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_2",[[1,"tttx-tree-view_1_9_2",{"data":[1040],"treeData":[32]}]]],["tttx-checkbox_1_9_2",[[0,"tttx-checkbox_1_9_2",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_2",[[1,"tttx-comments_1_9_2",{"currentuser":[1],"comments":[1],"_comments":[32],"addDummyComment":[64]}]]],["tttx-expander_1_9_2",[[1,"tttx-expander_1_9_2",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_2",[[2,"tttx-tabs_1_9_2",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_2",[[4,"tttx-checkbox-group-caption_1_9_2"]]],["tttx-checkbox-group-heading_1_9_2",[[4,"tttx-checkbox-group-heading_1_9_2"]]],["tttx-checkbox-group_1_9_2",[[1,"tttx-checkbox-group_1_9_2"]]],["tttx-keyvalue-block_1_9_2",[[1,"tttx-keyvalue-block_1_9_2",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-loading-spinner_1_9_2",[[1,"tttx-loading-spinner_1_9_2",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-percentage-bar_1_9_2",[[2,"tttx-percentage-bar_1_9_2",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_2",[[1,"tttx-qrcode_1_9_2",{"link":[1025],"size":[1026]}]]],["tttx-table_1_9_2",[[1,"tttx-table_1_9_2",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-tag_1_9_2",[[1,"tttx-tag_1_9_2",{"text":[1],"color":[1],"textColor":[1,"text-color"]}]]],["tttx-textarea_1_9_2",[[2,"tttx-textarea_1_9_2",{"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_2",[[1,"tttx-toggle_1_9_2",{"initialstate":[8],"_state":[32]}]]],["tttx-standalone-input_1_9_2",[[2,"tttx-standalone-input_1_9_2",{"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_2",[[1,"tttx-select-box_1_9_2",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"selectedValue":[1,"selected-value"],"useExternalFiltering":[4,"use-external-filtering"],"showErrorMsg":[4,"show-error-msg"],"showErrorBubble":[4,"show-error-bubble"],"errorMsg":[1,"error-msg"],"open":[32],"selectedItem":[32],"searchTerm":[32],"setSelectedItem":[64]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-graph_1_9_2",[[1,"tttx-graph_1_9_2",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-icon_1_9_2",[[1,"tttx-icon_1_9_2",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-filter_1_9_2_4",[[1,"tttx-filter_1_9_2",{"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_2",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_2",{"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_2",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_2",[[1,"tttx-button_1_9_2",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
18
18
  });
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,F as e,H as s,g as n}from"./p-d490353a.js";import{p as d,d as r}from"./p-55799798.js";import"./p-112455b1.js";const l=class{constructor(o){t(this,o),this.selectItemEvent=i(this,"selectItemEvent",3),this.toggleOpen=i(this,"toggleOpen",3),this.searchUpdated=i(this,"multiselectSearchUpdated",7),this.bodyOffset={},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.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm=""}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}}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const i=this._optionsData.find((i=>i.value.toLowerCase()===t.toLowerCase()));if(!i)return this.cleanSelectedItem();this.selectedValue=i.value,this.selectedItem=i}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open)}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,i;const s=o("tttx-icon_1_9_0",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=o("div",{class:"dropdown-selector-chevron"},s);return this.selectedItem?this.selectedItem.html?(t=o("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),o(e,null,t,n)):(t=o("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(i=o("div",{class:"description"},o("p",null,this.selectedItem.description)),n=o("div",{class:"dropdown-selector-chevron-offset"},s)),o(e,null,o("div",{class:"left-wrapper"},t,i),n)):(t=o("div",{class:"placeholder"},this.placeholder),o(e,null,t,n))}dropdownOption(t){const i=this.searchEnabled&&-1===t.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()),e=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=d.sanitize(t.html,r);return o("div",{class:`dropdown-option ${i?"hidden":""} ${e?"selected":""}`,onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?o("div",{class:`dropdown-option ${i?"hidden":""} ${e?"selected":""}`,onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,o("div",{class:"description-dd"},o("p",null,t.description))):o("div",{class:`dropdown-option ${i?"hidden":""} ${e?"selected":""}`,onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const i=t.target.value;if(this.useExternalFiltering)return clearTimeout(this.searchFilterTimeout),void(this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,i));this.searchTerm=i}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),i=this.dropdownSelector.getBoundingClientRect().bottom;let o=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(o+=52);const e=t.getBoundingClientRect();this.bodyOffset=i+o>window.innerHeight?{top:window.innerHeight-(o+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:e.left,top:e.top,width:e.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"";return o(s,{class:this.inline?"inline":"block"},this.label&&o("div",{class:"label"},this.label),o("div",{tabindex:"0",class:"dropdown-container"},o("div",{class:["dropdown-selector",t].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&o("div",{class:"dropdown-body-container"},o("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&o("div",{class:"searchbox"},o("tttx-standalone-input_1_9_0",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),o("div",{class:"dropdown-options-list"},this._optionsData.map((t=>this.dropdownOption(t)))))),this.showErrorBubble&&o("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},o("tttx-icon_1_9_0",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"]}}};l.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}.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:relative;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{l as tttx_select_box_1_9_0}
1
+ import{r as t,c as i,h as o,F as e,H as s,g as n}from"./p-d490353a.js";import{p as d,d as r}from"./p-55799798.js";import"./p-112455b1.js";const l=class{constructor(o){t(this,o),this.selectItemEvent=i(this,"selectItemEvent",3),this.toggleOpen=i(this,"toggleOpen",3),this.searchUpdated=i(this,"multiselectSearchUpdated",7),this.bodyOffset={},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.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm=""}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}}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const i=this._optionsData.find((i=>i.value.toLowerCase()===t.toLowerCase()));if(!i)return this.cleanSelectedItem();this.selectedValue=i.value,this.selectedItem=i}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open)}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,i;const s=o("tttx-icon_1_9_2",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=o("div",{class:"dropdown-selector-chevron"},s);return this.selectedItem?this.selectedItem.html?(t=o("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),o(e,null,t,n)):(t=o("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(i=o("div",{class:"description"},o("p",null,this.selectedItem.description)),n=o("div",{class:"dropdown-selector-chevron-offset"},s)),o(e,null,o("div",{class:"left-wrapper"},t,i),n)):(t=o("div",{class:"placeholder"},this.placeholder),o(e,null,t,n))}dropdownOption(t){const i=this.searchEnabled&&-1===t.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()),e=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=d.sanitize(t.html,r);return o("div",{class:`dropdown-option ${i?"hidden":""} ${e?"selected":""}`,onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?o("div",{class:`dropdown-option ${i?"hidden":""} ${e?"selected":""}`,onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,o("div",{class:"description-dd"},o("p",null,t.description))):o("div",{class:`dropdown-option ${i?"hidden":""} ${e?"selected":""}`,onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const i=t.target.value;if(this.useExternalFiltering)return clearTimeout(this.searchFilterTimeout),void(this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,i));this.searchTerm=i}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),i=this.dropdownSelector.getBoundingClientRect().bottom;let o=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(o+=52);const e=t.getBoundingClientRect();this.bodyOffset=i+o>window.innerHeight?{top:window.innerHeight-(o+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:e.left,top:e.top,width:e.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"";return o(s,{class:this.inline?"inline":"block"},this.label&&o("div",{class:"label"},this.label),o("div",{tabindex:"0",class:"dropdown-container"},o("div",{class:["dropdown-selector",t].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&o("div",{class:"dropdown-body-container"},o("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&o("div",{class:"searchbox"},o("tttx-standalone-input_1_9_2",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),o("div",{class:"dropdown-options-list"},this._optionsData.map((t=>this.dropdownOption(t)))))),this.showErrorBubble&&o("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},o("tttx-icon_1_9_2",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"]}}};l.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}.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:relative;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{l as tttx_select_box_1_9_2}