@3t-transform/threeteeui 1.9.19 → 1.9.21

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 (249) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button_1_9_19.cjs.entry.js → tttx-button_1_9_21.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption_1_9_19.cjs.entry.js → tttx-checkbox-group-caption_1_9_21.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading_1_9_19.cjs.entry.js → tttx-checkbox-group-heading_1_9_21.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_9_19.cjs.entry.js → tttx-checkbox-group_1_9_21.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_9_19.cjs.entry.js → tttx-checkbox_1_9_21.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-comments_1_9_19.cjs.entry.js → tttx-comments_1_9_21.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-data-pattern_1_9_19.cjs.entry.js → tttx-data-pattern_1_9_21.cjs.entry.js} +5 -5
  9. package/dist/cjs/{tttx-datacard_1_9_19.cjs.entry.js → tttx-datacard_1_9_21.cjs.entry.js} +4 -4
  10. package/dist/cjs/{tttx-dialog-box_1_9_19.cjs.entry.js → tttx-dialog-box_1_9_21.cjs.entry.js} +3 -3
  11. package/dist/cjs/{tttx-dialog_1_9_19.cjs.entry.js → tttx-dialog_1_9_21.cjs.entry.js} +2 -2
  12. package/dist/cjs/{tttx-expander_1_9_19.cjs.entry.js → tttx-expander_1_9_21.cjs.entry.js} +2 -2
  13. package/dist/cjs/{tttx-filter_1_9_19_4.cjs.entry.js → tttx-filter_1_9_21_4.cjs.entry.js} +9 -9
  14. package/dist/cjs/{tttx-form_1_9_19.cjs.entry.js → tttx-form_1_9_21.cjs.entry.js} +19 -2
  15. package/dist/cjs/{tttx-graph_1_9_19.cjs.entry.js → tttx-graph_1_9_21.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-icon_1_9_19.cjs.entry.js → tttx-icon_1_9_21.cjs.entry.js} +1 -1
  17. package/dist/cjs/{tttx-keyvalue-block_1_9_19.cjs.entry.js → tttx-keyvalue-block_1_9_21.cjs.entry.js} +1 -1
  18. package/dist/cjs/tttx-loading-spinner_1_9_21_2.cjs.entry.js +114 -0
  19. package/dist/cjs/{tttx-multiselect-box_1_9_19.cjs.entry.js → tttx-multiselect-box_1_9_21.cjs.entry.js} +6 -6
  20. package/dist/cjs/{tttx-percentage-bar_1_9_19.cjs.entry.js → tttx-percentage-bar_1_9_21.cjs.entry.js} +2 -2
  21. package/dist/cjs/{tttx-qrcode_1_9_19.cjs.entry.js → tttx-qrcode_1_9_21.cjs.entry.js} +1 -1
  22. package/dist/cjs/{tttx-select-box_1_9_19.cjs.entry.js → tttx-select-box_1_9_21.cjs.entry.js} +4 -4
  23. package/dist/cjs/{tttx-table_1_9_19.cjs.entry.js → tttx-table_1_9_21.cjs.entry.js} +1 -1
  24. package/dist/cjs/{tttx-tabs_1_9_19.cjs.entry.js → tttx-tabs_1_9_21.cjs.entry.js} +4 -4
  25. package/dist/cjs/{tttx-tag_1_9_19.cjs.entry.js → tttx-tag_1_9_21.cjs.entry.js} +8 -3
  26. package/dist/cjs/{tttx-textarea_1_9_19.cjs.entry.js → tttx-textarea_1_9_21.cjs.entry.js} +2 -2
  27. package/dist/cjs/{tttx-toggle_1_9_19.cjs.entry.js → tttx-toggle_1_9_21.cjs.entry.js} +1 -1
  28. package/dist/cjs/{tttx-tree-view_1_9_19.cjs.entry.js → tttx-tree-view_1_9_21.cjs.entry.js} +3 -3
  29. package/dist/cjs/tttx.cjs.js +1 -1
  30. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  31. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  32. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  33. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  34. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  35. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  36. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  37. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  38. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  39. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  40. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  41. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
  42. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  43. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  44. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  45. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  46. package/dist/collection/components/atoms/tttx-tag/tttx-tag.css +6 -0
  47. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +79 -2
  48. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +28 -9
  49. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  50. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  51. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  52. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  53. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  54. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  55. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +2 -2
  56. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +1 -1
  57. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  58. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  59. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  60. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  61. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  62. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  63. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  64. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  65. package/dist/collection/components/molecules/tttx-form/tttx-form.js +19 -2
  66. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +7 -7
  67. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  68. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  69. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  70. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  71. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  72. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +35 -35
  73. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +4 -4
  74. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +20 -20
  75. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  76. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  77. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  78. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  79. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  80. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  81. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  82. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  83. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  84. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  85. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  86. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  87. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  88. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  89. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  90. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  91. package/dist/components/index.d.ts +31 -31
  92. package/dist/components/index.js +31 -31
  93. package/dist/components/tttx-button.js +5 -5
  94. package/dist/components/{tttx-button_1_9_19.d.ts → tttx-button_1_9_21.d.ts} +4 -4
  95. package/dist/components/{tttx-button_1_9_19.js → tttx-button_1_9_21.js} +2 -2
  96. package/dist/components/tttx-checkbox-group-caption_1_9_21.d.ts +11 -0
  97. package/dist/components/{tttx-checkbox-group-caption_1_9_19.js → tttx-checkbox-group-caption_1_9_21.js} +5 -5
  98. package/dist/components/tttx-checkbox-group-heading_1_9_21.d.ts +11 -0
  99. package/dist/components/{tttx-checkbox-group-heading_1_9_19.js → tttx-checkbox-group-heading_1_9_21.js} +5 -5
  100. package/dist/components/tttx-checkbox-group_1_9_21.d.ts +11 -0
  101. package/dist/components/{tttx-checkbox-group_1_9_19.js → tttx-checkbox-group_1_9_21.js} +5 -5
  102. package/dist/components/{tttx-datacard_1_9_19.d.ts → tttx-checkbox_1_9_21.d.ts} +4 -4
  103. package/dist/components/{tttx-checkbox_1_9_19.js → tttx-checkbox_1_9_21.js} +7 -7
  104. package/dist/components/{tttx-checkbox_1_9_19.d.ts → tttx-comments_1_9_21.d.ts} +4 -4
  105. package/dist/components/{tttx-comments_1_9_19.js → tttx-comments_1_9_21.js} +7 -7
  106. package/dist/components/tttx-data-pattern_1_9_21.d.ts +11 -0
  107. package/dist/components/{tttx-data-pattern_1_9_19.js → tttx-data-pattern_1_9_21.js} +16 -16
  108. package/dist/components/{tttx-comments_1_9_19.d.ts → tttx-datacard_1_9_21.d.ts} +4 -4
  109. package/dist/components/{tttx-datacard_1_9_19.js → tttx-datacard_1_9_21.js} +10 -10
  110. package/dist/components/tttx-dialog-box_1_9_21.d.ts +11 -0
  111. package/dist/components/{tttx-dialog-box_1_9_19.js → tttx-dialog-box_1_9_21.js} +9 -9
  112. package/dist/components/{tttx-dialog_1_9_19.d.ts → tttx-dialog_1_9_21.d.ts} +4 -4
  113. package/dist/components/{tttx-dialog_1_9_19.js → tttx-dialog_1_9_21.js} +8 -8
  114. package/dist/components/tttx-expander_1_9_21.d.ts +11 -0
  115. package/dist/components/{tttx-expander_1_9_19.js → tttx-expander_1_9_21.js} +7 -7
  116. package/dist/components/tttx-filter.js +6 -6
  117. package/dist/components/{tttx-filter_1_9_19.d.ts → tttx-filter_1_9_21.d.ts} +4 -4
  118. package/dist/components/{tttx-filter_1_9_19.js → tttx-filter_1_9_21.js} +2 -2
  119. package/dist/components/{tttx-tabs_1_9_19.d.ts → tttx-form_1_9_21.d.ts} +4 -4
  120. package/dist/components/{tttx-form_1_9_19.js → tttx-form_1_9_21.js} +27 -10
  121. package/dist/components/tttx-graph.js +3 -3
  122. package/dist/components/{tttx-graph_1_9_19.d.ts → tttx-graph_1_9_21.d.ts} +4 -4
  123. package/dist/components/{tttx-graph_1_9_19.js → tttx-graph_1_9_21.js} +2 -2
  124. package/dist/components/tttx-icon.js +3 -3
  125. package/dist/components/{tttx-icon_1_9_19.d.ts → tttx-icon_1_9_21.d.ts} +4 -4
  126. package/dist/components/{tttx-icon_1_9_19.js → tttx-icon_1_9_21.js} +2 -2
  127. package/dist/components/tttx-keyvalue-block_1_9_21.d.ts +11 -0
  128. package/dist/components/{tttx-keyvalue-block_1_9_19.js → tttx-keyvalue-block_1_9_21.js} +5 -5
  129. package/dist/components/tttx-list.js +6 -6
  130. package/dist/components/{tttx-list_1_9_19.d.ts → tttx-list_1_9_21.d.ts} +4 -4
  131. package/dist/components/{tttx-list_1_9_19.js → tttx-list_1_9_21.js} +2 -2
  132. package/dist/components/tttx-loading-spinner.js +3 -3
  133. package/dist/components/tttx-loading-spinner_1_9_21.d.ts +11 -0
  134. package/dist/components/{tttx-loading-spinner_1_9_19.js → tttx-loading-spinner_1_9_21.js} +2 -2
  135. package/dist/components/tttx-multiselect-box_1_9_21.d.ts +11 -0
  136. package/dist/components/{tttx-multiselect-box_1_9_19.js → tttx-multiselect-box_1_9_21.js} +14 -14
  137. package/dist/components/tttx-percentage-bar_1_9_21.d.ts +11 -0
  138. package/dist/components/{tttx-percentage-bar_1_9_19.js → tttx-percentage-bar_1_9_21.js} +6 -6
  139. package/dist/components/{tttx-qrcode_1_9_19.d.ts → tttx-qrcode_1_9_21.d.ts} +4 -4
  140. package/dist/components/{tttx-qrcode_1_9_19.js → tttx-qrcode_1_9_21.js} +5 -5
  141. package/dist/components/tttx-select-box.js +9 -9
  142. package/dist/components/tttx-select-box_1_9_21.d.ts +11 -0
  143. package/dist/components/{tttx-select-box_1_9_19.js → tttx-select-box_1_9_21.js} +2 -2
  144. package/dist/components/tttx-sorter.js +5 -5
  145. package/dist/components/tttx-sorter_1_9_21.d.ts +11 -0
  146. package/dist/components/{tttx-sorter_1_9_19.js → tttx-sorter_1_9_21.js} +2 -2
  147. package/dist/components/tttx-standalone-input.js +6 -6
  148. package/dist/components/tttx-standalone-input_1_9_21.d.ts +11 -0
  149. package/dist/components/{tttx-standalone-input_1_9_19.js → tttx-standalone-input_1_9_21.js} +2 -2
  150. package/dist/components/{tttx-table_1_9_19.d.ts → tttx-table_1_9_21.d.ts} +4 -4
  151. package/dist/components/{tttx-table_1_9_19.js → tttx-table_1_9_21.js} +5 -5
  152. package/dist/components/{tttx-form_1_9_19.d.ts → tttx-tabs_1_9_21.d.ts} +4 -4
  153. package/dist/components/{tttx-tabs_1_9_19.js → tttx-tabs_1_9_21.js} +9 -9
  154. package/dist/components/{tttx-tag_1_9_19.d.ts → tttx-tag_1_9_21.d.ts} +4 -4
  155. package/dist/components/{tttx-tag_1_9_19.js → tttx-tag_1_9_21.js} +23 -8
  156. package/dist/components/tttx-textarea_1_9_21.d.ts +11 -0
  157. package/dist/components/{tttx-textarea_1_9_19.js → tttx-textarea_1_9_21.js} +6 -6
  158. package/dist/components/tttx-toggle_1_9_21.d.ts +11 -0
  159. package/dist/components/{tttx-toggle_1_9_19.js → tttx-toggle_1_9_21.js} +5 -5
  160. package/dist/components/tttx-toolbar.js +3 -3
  161. package/dist/components/tttx-toolbar_1_9_21.d.ts +11 -0
  162. package/dist/components/{tttx-toolbar_1_9_19.js → tttx-toolbar_1_9_21.js} +2 -2
  163. package/dist/components/tttx-tree-view_1_9_21.d.ts +11 -0
  164. package/dist/components/{tttx-tree-view_1_9_19.js → tttx-tree-view_1_9_21.js} +9 -9
  165. package/dist/esm/loader.js +1 -1
  166. package/dist/esm/{tttx-button_1_9_19.entry.js → tttx-button_1_9_21.entry.js} +2 -2
  167. package/dist/esm/{tttx-checkbox-group-caption_1_9_19.entry.js → tttx-checkbox-group-caption_1_9_21.entry.js} +1 -1
  168. package/dist/esm/{tttx-checkbox-group-heading_1_9_19.entry.js → tttx-checkbox-group-heading_1_9_21.entry.js} +1 -1
  169. package/dist/esm/{tttx-checkbox-group_1_9_19.entry.js → tttx-checkbox-group_1_9_21.entry.js} +1 -1
  170. package/dist/esm/{tttx-checkbox_1_9_19.entry.js → tttx-checkbox_1_9_21.entry.js} +2 -2
  171. package/dist/esm/{tttx-comments_1_9_19.entry.js → tttx-comments_1_9_21.entry.js} +2 -2
  172. package/dist/esm/{tttx-data-pattern_1_9_19.entry.js → tttx-data-pattern_1_9_21.entry.js} +5 -5
  173. package/dist/esm/{tttx-datacard_1_9_19.entry.js → tttx-datacard_1_9_21.entry.js} +4 -4
  174. package/dist/esm/{tttx-dialog-box_1_9_19.entry.js → tttx-dialog-box_1_9_21.entry.js} +3 -3
  175. package/dist/esm/{tttx-dialog_1_9_19.entry.js → tttx-dialog_1_9_21.entry.js} +2 -2
  176. package/dist/esm/{tttx-expander_1_9_19.entry.js → tttx-expander_1_9_21.entry.js} +2 -2
  177. package/dist/esm/{tttx-filter_1_9_19_4.entry.js → tttx-filter_1_9_21_4.entry.js} +6 -6
  178. package/dist/esm/{tttx-form_1_9_19.entry.js → tttx-form_1_9_21.entry.js} +19 -2
  179. package/dist/esm/{tttx-graph_1_9_19.entry.js → tttx-graph_1_9_21.entry.js} +1 -1
  180. package/dist/esm/{tttx-icon_1_9_19.entry.js → tttx-icon_1_9_21.entry.js} +1 -1
  181. package/dist/esm/{tttx-keyvalue-block_1_9_19.entry.js → tttx-keyvalue-block_1_9_21.entry.js} +1 -1
  182. package/dist/esm/tttx-loading-spinner_1_9_21_2.entry.js +109 -0
  183. package/dist/esm/{tttx-multiselect-box_1_9_19.entry.js → tttx-multiselect-box_1_9_21.entry.js} +6 -6
  184. package/dist/esm/{tttx-percentage-bar_1_9_19.entry.js → tttx-percentage-bar_1_9_21.entry.js} +2 -2
  185. package/dist/esm/{tttx-qrcode_1_9_19.entry.js → tttx-qrcode_1_9_21.entry.js} +1 -1
  186. package/dist/esm/{tttx-select-box_1_9_19.entry.js → tttx-select-box_1_9_21.entry.js} +4 -4
  187. package/dist/esm/{tttx-table_1_9_19.entry.js → tttx-table_1_9_21.entry.js} +1 -1
  188. package/dist/esm/{tttx-tabs_1_9_19.entry.js → tttx-tabs_1_9_21.entry.js} +4 -4
  189. package/dist/esm/{tttx-tag_1_9_19.entry.js → tttx-tag_1_9_21.entry.js} +8 -3
  190. package/dist/esm/{tttx-textarea_1_9_19.entry.js → tttx-textarea_1_9_21.entry.js} +2 -2
  191. package/dist/esm/{tttx-toggle_1_9_19.entry.js → tttx-toggle_1_9_21.entry.js} +1 -1
  192. package/dist/esm/{tttx-tree-view_1_9_19.entry.js → tttx-tree-view_1_9_21.entry.js} +3 -3
  193. package/dist/esm/tttx.js +1 -1
  194. package/dist/tttx/p-0da9f04c.entry.js +1 -1
  195. package/dist/tttx/p-0e515960.entry.js +1 -1
  196. package/dist/tttx/p-0ffbf27e.entry.js +1 -1
  197. package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
  198. package/dist/tttx/p-23f45005.entry.js +1 -1
  199. package/dist/tttx/p-2d184378.entry.js +1 -1
  200. package/dist/tttx/p-2d4c1e8a.entry.js +1 -1
  201. package/dist/tttx/p-3df60a1b.entry.js +1 -0
  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-63ad6fb7.entry.js +1 -1
  206. package/dist/tttx/p-6b1c7a21.entry.js +1 -1
  207. package/dist/tttx/p-6bd36b5b.entry.js +1 -1
  208. package/dist/tttx/p-74148f2a.entry.js +1 -1
  209. package/dist/tttx/p-79e218d0.entry.js +1 -1
  210. package/dist/tttx/p-90d21e86.entry.js +1 -0
  211. package/dist/tttx/p-9434561e.entry.js +1 -1
  212. package/dist/tttx/p-996a6061.entry.js +1 -1
  213. package/dist/tttx/p-a01e679a.entry.js +1 -1
  214. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  215. package/dist/tttx/p-b7347352.entry.js +1 -1
  216. package/dist/tttx/p-bbad0784.entry.js +1 -1
  217. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  218. package/dist/tttx/p-cfe412d0.entry.js +1 -1
  219. package/dist/tttx/p-de6e8250.entry.js +1 -1
  220. package/dist/tttx/p-f374e293.entry.js +1 -1
  221. package/dist/tttx/tttx.esm.js +1 -1
  222. package/dist/types/components/atoms/tttx-tag/tttx-tag.d.ts +4 -0
  223. package/dist/types/components/atoms/tttx-tag/tttx-tag.stories.d.ts +24 -0
  224. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  225. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  226. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  227. package/dist/types/components.d.ts +376 -368
  228. package/package.json +1 -1
  229. package/dist/cjs/tttx-loading-spinner_1_9_19_2.cjs.entry.js +0 -114
  230. package/dist/components/tttx-checkbox-group-caption_1_9_19.d.ts +0 -11
  231. package/dist/components/tttx-checkbox-group-heading_1_9_19.d.ts +0 -11
  232. package/dist/components/tttx-checkbox-group_1_9_19.d.ts +0 -11
  233. package/dist/components/tttx-data-pattern_1_9_19.d.ts +0 -11
  234. package/dist/components/tttx-dialog-box_1_9_19.d.ts +0 -11
  235. package/dist/components/tttx-expander_1_9_19.d.ts +0 -11
  236. package/dist/components/tttx-keyvalue-block_1_9_19.d.ts +0 -11
  237. package/dist/components/tttx-loading-spinner_1_9_19.d.ts +0 -11
  238. package/dist/components/tttx-multiselect-box_1_9_19.d.ts +0 -11
  239. package/dist/components/tttx-percentage-bar_1_9_19.d.ts +0 -11
  240. package/dist/components/tttx-select-box_1_9_19.d.ts +0 -11
  241. package/dist/components/tttx-sorter_1_9_19.d.ts +0 -11
  242. package/dist/components/tttx-standalone-input_1_9_19.d.ts +0 -11
  243. package/dist/components/tttx-textarea_1_9_19.d.ts +0 -11
  244. package/dist/components/tttx-toggle_1_9_19.d.ts +0 -11
  245. package/dist/components/tttx-toolbar_1_9_19.d.ts +0 -11
  246. package/dist/components/tttx-tree-view_1_9_19.d.ts +0 -11
  247. package/dist/esm/tttx-loading-spinner_1_9_19_2.entry.js +0 -109
  248. package/dist/tttx/p-5adde0ce.entry.js +0 -1
  249. package/dist/tttx/p-884f37d3.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "1.9.19",
3
+ "version": "1.9.21",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,114 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-fdc30724.js');
6
-
7
- const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
8
-
9
- const TttxLoadingSpinner = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.loadingMessage = undefined;
13
- this.size = 'large';
14
- }
15
- renderLoadingMessage() {
16
- if (!this.loadingMessage)
17
- return '';
18
- return index.h("div", { class: "loading-text" }, "Loading, please wait...");
19
- }
20
- render() {
21
- return (index.h("div", null, index.h("div", { class: "loading-box" }, index.h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
22
- }
23
- };
24
- TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
25
-
26
- const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_19{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_19{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_19{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_19 .optional.sc-tttx-standalone-input_1_9_19{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19{position:relative}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19 tttx-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19 tttx-icon.sc-tttx-standalone-input_1_9_19{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19{left:8px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19{right:8px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19{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_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-input-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-input-icon.sc-tttx-standalone-input_1_9_19{padding-left:40px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_19{padding-left:72px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-left-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-left-icon.sc-tttx-standalone-input_1_9_19{padding-left:40px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-right-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-right-icon.sc-tttx-standalone-input_1_9_19{padding-right:40px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.invalid.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.invalid.sc-tttx-standalone-input_1_9_19{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19:not([type=submit]),label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19: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_19 .outer-container.sc-tttx-standalone-input_1_9_19 input[type=radio].sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea[type=radio].sc-tttx-standalone-input_1_9_19{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input[type=date].sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea[type=date].sc-tttx-standalone-input_1_9_19{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input[readonly].sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea[readonly].sc-tttx-standalone-input_1_9_19{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19:focus,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19:focus-visible,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.resize-none.sc-tttx-standalone-input_1_9_19{resize:none}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_19{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19{margin-top:4px}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_19{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_19{display:block}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputInline.sc-tttx-standalone-input_1_9_19{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputInline.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19{margin-top:0}label.sc-tttx-standalone-input_1_9_19 .secondarylabel.sc-tttx-standalone-input_1_9_19{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_19 .errorBubble.sc-tttx-standalone-input_1_9_19{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_19 .errorBubble.sc-tttx-standalone-input_1_9_19:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_19 .errorBubble.sc-tttx-standalone-input_1_9_19 span.sc-tttx-standalone-input_1_9_19{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_19{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_19-h{display:block}";
27
-
28
- const TttxInput = class {
29
- constructor(hostRef) {
30
- index.registerInstance(this, hostRef);
31
- this.valueChanged = index.createEvent(this, "valueChanged", 7);
32
- this.focusChanged = index.createEvent(this, "focusChanged", 7);
33
- this.blurChanged = index.createEvent(this, "blurChanged", 7);
34
- this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
35
- this.inputIconClick = index.createEvent(this, "inputIconClick", 7);
36
- this.leftIconClick = index.createEvent(this, "leftIconClick", 7);
37
- this.rightIconClick = index.createEvent(this, "rightIconClick", 7);
38
- this.label = undefined;
39
- this.secondarylabel = undefined;
40
- this.showerrormsg = undefined;
41
- this.showerrorbubble = true;
42
- this.errormsg = undefined;
43
- this.iconleft = undefined;
44
- this.iconleftcolor = 'grey';
45
- this.iconright = undefined;
46
- this.iconrightcolor = 'grey';
47
- this.inputicon = undefined;
48
- this.inputiconcolor = 'grey';
49
- this.inline = undefined;
50
- this.inputautocapitalize = undefined;
51
- this.inputautofocus = undefined;
52
- this.inputkeyhint = undefined;
53
- this.inputindex = undefined;
54
- this.inputtitle = undefined;
55
- this.autocomplete = undefined;
56
- this.checked = undefined;
57
- this.disabled = undefined;
58
- this.max = undefined;
59
- this.maxlength = undefined;
60
- this.min = undefined;
61
- this.minlength = undefined;
62
- this.name = undefined;
63
- this.pattern = undefined;
64
- this.placeholder = undefined;
65
- this.readonly = undefined;
66
- this.required = undefined;
67
- this.step = undefined;
68
- this.type = 'text';
69
- this.value = undefined;
70
- }
71
- handleChange(event) {
72
- const target = event.target;
73
- this.value = target.value;
74
- this.valueChanged.emit(target.value);
75
- }
76
- handleFocus(event) {
77
- const target = event.target;
78
- this.focusChanged.emit(target.value);
79
- }
80
- handleBlur(event) {
81
- const target = event.target;
82
- this.blurChanged.emit(target.value);
83
- }
84
- handleInvalid(event) {
85
- event.preventDefault();
86
- const target = event.target;
87
- this.invalidChanged.emit(target.value);
88
- }
89
- handleInputIconClick(event) {
90
- event.preventDefault();
91
- this.inputIconClick.emit();
92
- }
93
- handleLeftIconClick(event) {
94
- event.preventDefault();
95
- this.leftIconClick.emit();
96
- }
97
- handleRightIconClick(event) {
98
- event.preventDefault();
99
- this.rightIconClick.emit();
100
- }
101
- render() {
102
- const classNames = [
103
- this.showerrormsg ? 'invalid' : '',
104
- this.inputicon ? 'has-input-icon' : '',
105
- this.iconleft ? 'has-left-icon' : '',
106
- this.iconright ? 'has-right-icon' : '',
107
- ].join(' ');
108
- return (index.h(index.Host, null, index.h("label", null, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', index.h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, index.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) && (index.h("span", { class: "left-icons" }, this.inputicon && (index.h("tttx-icon_1_9_19", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (index.h("tttx-icon_1_9_19", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (index.h("span", { class: "right-icons" }, index.h("tttx-icon_1_9_19", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && index.h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
109
- }
110
- };
111
- TttxInput.style = tttxStandaloneInputCss;
112
-
113
- exports.tttx_loading_spinner_1_9_19 = TttxLoadingSpinner;
114
- exports.tttx_standalone_input_1_9_19 = TttxInput;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroupCaption_1_9_19 extends Components.TttxCheckboxGroupCaption_1_9_19, HTMLElement {}
4
- export const TttxCheckboxGroupCaption_1_9_19: {
5
- prototype: TttxCheckboxGroupCaption_1_9_19;
6
- new (): TttxCheckboxGroupCaption_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroupHeading_1_9_19 extends Components.TttxCheckboxGroupHeading_1_9_19, HTMLElement {}
4
- export const TttxCheckboxGroupHeading_1_9_19: {
5
- prototype: TttxCheckboxGroupHeading_1_9_19;
6
- new (): TttxCheckboxGroupHeading_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroup_1_9_19 extends Components.TttxCheckboxGroup_1_9_19, HTMLElement {}
4
- export const TttxCheckboxGroup_1_9_19: {
5
- prototype: TttxCheckboxGroup_1_9_19;
6
- new (): TttxCheckboxGroup_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxDataPattern_1_9_19 extends Components.TttxDataPattern_1_9_19, HTMLElement {}
4
- export const TttxDataPattern_1_9_19: {
5
- prototype: TttxDataPattern_1_9_19;
6
- new (): TttxDataPattern_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxDialogBox_1_9_19 extends Components.TttxDialogBox_1_9_19, HTMLElement {}
4
- export const TttxDialogBox_1_9_19: {
5
- prototype: TttxDialogBox_1_9_19;
6
- new (): TttxDialogBox_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxExpander_1_9_19 extends Components.TttxExpander_1_9_19, HTMLElement {}
4
- export const TttxExpander_1_9_19: {
5
- prototype: TttxExpander_1_9_19;
6
- new (): TttxExpander_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxKeyvalueBlock_1_9_19 extends Components.TttxKeyvalueBlock_1_9_19, HTMLElement {}
4
- export const TttxKeyvalueBlock_1_9_19: {
5
- prototype: TttxKeyvalueBlock_1_9_19;
6
- new (): TttxKeyvalueBlock_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxLoadingSpinner_1_9_19 extends Components.TttxLoadingSpinner_1_9_19, HTMLElement {}
4
- export const TttxLoadingSpinner_1_9_19: {
5
- prototype: TttxLoadingSpinner_1_9_19;
6
- new (): TttxLoadingSpinner_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxMultiselectBox_1_9_19 extends Components.TttxMultiselectBox_1_9_19, HTMLElement {}
4
- export const TttxMultiselectBox_1_9_19: {
5
- prototype: TttxMultiselectBox_1_9_19;
6
- new (): TttxMultiselectBox_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxPercentageBar_1_9_19 extends Components.TttxPercentageBar_1_9_19, HTMLElement {}
4
- export const TttxPercentageBar_1_9_19: {
5
- prototype: TttxPercentageBar_1_9_19;
6
- new (): TttxPercentageBar_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxSelectBox_1_9_19 extends Components.TttxSelectBox_1_9_19, HTMLElement {}
4
- export const TttxSelectBox_1_9_19: {
5
- prototype: TttxSelectBox_1_9_19;
6
- new (): TttxSelectBox_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxSorter_1_9_19 extends Components.TttxSorter_1_9_19, HTMLElement {}
4
- export const TttxSorter_1_9_19: {
5
- prototype: TttxSorter_1_9_19;
6
- new (): TttxSorter_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxStandaloneInput_1_9_19 extends Components.TttxStandaloneInput_1_9_19, HTMLElement {}
4
- export const TttxStandaloneInput_1_9_19: {
5
- prototype: TttxStandaloneInput_1_9_19;
6
- new (): TttxStandaloneInput_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxTextarea_1_9_19 extends Components.TttxTextarea_1_9_19, HTMLElement {}
4
- export const TttxTextarea_1_9_19: {
5
- prototype: TttxTextarea_1_9_19;
6
- new (): TttxTextarea_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxToggle_1_9_19 extends Components.TttxToggle_1_9_19, HTMLElement {}
4
- export const TttxToggle_1_9_19: {
5
- prototype: TttxToggle_1_9_19;
6
- new (): TttxToggle_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxToolbar_1_9_19 extends Components.TttxToolbar_1_9_19, HTMLElement {}
4
- export const TttxToolbar_1_9_19: {
5
- prototype: TttxToolbar_1_9_19;
6
- new (): TttxToolbar_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxTreeView_1_9_19 extends Components.TttxTreeView_1_9_19, HTMLElement {}
4
- export const TttxTreeView_1_9_19: {
5
- prototype: TttxTreeView_1_9_19;
6
- new (): TttxTreeView_1_9_19;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,109 +0,0 @@
1
- import { r as registerInstance, h, c as createEvent, H as Host } from './index-88bd2f60.js';
2
-
3
- const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
4
-
5
- const TttxLoadingSpinner = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.loadingMessage = undefined;
9
- this.size = 'large';
10
- }
11
- renderLoadingMessage() {
12
- if (!this.loadingMessage)
13
- return '';
14
- return h("div", { class: "loading-text" }, "Loading, please wait...");
15
- }
16
- render() {
17
- return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
18
- }
19
- };
20
- TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
21
-
22
- const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_19{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_19{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_19{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_19 .optional.sc-tttx-standalone-input_1_9_19{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19{position:relative}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19 tttx-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19 tttx-icon.sc-tttx-standalone-input_1_9_19{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19{left:8px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19{right:8px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19{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_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-input-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-input-icon.sc-tttx-standalone-input_1_9_19{padding-left:40px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_19{padding-left:72px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-left-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-left-icon.sc-tttx-standalone-input_1_9_19{padding-left:40px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.has-right-icon.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.has-right-icon.sc-tttx-standalone-input_1_9_19{padding-right:40px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.invalid.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.invalid.sc-tttx-standalone-input_1_9_19{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19:not([type=submit]),label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19: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_19 .outer-container.sc-tttx-standalone-input_1_9_19 input[type=radio].sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea[type=radio].sc-tttx-standalone-input_1_9_19{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input[type=date].sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea[type=date].sc-tttx-standalone-input_1_9_19{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input[readonly].sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea[readonly].sc-tttx-standalone-input_1_9_19{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19:focus,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19:focus-visible,label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.sc-tttx-standalone-input_1_9_19{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_19 .outer-container.sc-tttx-standalone-input_1_9_19 textarea.resize-none.sc-tttx-standalone-input_1_9_19{resize:none}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_19{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_19 .left-icons.sc-tttx-standalone-input_1_9_19,label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_19 .right-icons.sc-tttx-standalone-input_1_9_19{margin-top:4px}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_19{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_19{display:block}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputInline.sc-tttx-standalone-input_1_9_19{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_19 .outer-container.inputInline.sc-tttx-standalone-input_1_9_19 input.sc-tttx-standalone-input_1_9_19{margin-top:0}label.sc-tttx-standalone-input_1_9_19 .secondarylabel.sc-tttx-standalone-input_1_9_19{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_19 .errorBubble.sc-tttx-standalone-input_1_9_19{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_19 .errorBubble.sc-tttx-standalone-input_1_9_19:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_19 .errorBubble.sc-tttx-standalone-input_1_9_19 span.sc-tttx-standalone-input_1_9_19{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_19{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_19-h{display:block}";
23
-
24
- const TttxInput = class {
25
- constructor(hostRef) {
26
- registerInstance(this, hostRef);
27
- this.valueChanged = createEvent(this, "valueChanged", 7);
28
- this.focusChanged = createEvent(this, "focusChanged", 7);
29
- this.blurChanged = createEvent(this, "blurChanged", 7);
30
- this.invalidChanged = createEvent(this, "invalidChanged", 7);
31
- this.inputIconClick = createEvent(this, "inputIconClick", 7);
32
- this.leftIconClick = createEvent(this, "leftIconClick", 7);
33
- this.rightIconClick = createEvent(this, "rightIconClick", 7);
34
- this.label = undefined;
35
- this.secondarylabel = undefined;
36
- this.showerrormsg = undefined;
37
- this.showerrorbubble = true;
38
- this.errormsg = undefined;
39
- this.iconleft = undefined;
40
- this.iconleftcolor = 'grey';
41
- this.iconright = undefined;
42
- this.iconrightcolor = 'grey';
43
- this.inputicon = undefined;
44
- this.inputiconcolor = 'grey';
45
- this.inline = undefined;
46
- this.inputautocapitalize = undefined;
47
- this.inputautofocus = undefined;
48
- this.inputkeyhint = undefined;
49
- this.inputindex = undefined;
50
- this.inputtitle = undefined;
51
- this.autocomplete = undefined;
52
- this.checked = undefined;
53
- this.disabled = undefined;
54
- this.max = undefined;
55
- this.maxlength = undefined;
56
- this.min = undefined;
57
- this.minlength = undefined;
58
- this.name = undefined;
59
- this.pattern = undefined;
60
- this.placeholder = undefined;
61
- this.readonly = undefined;
62
- this.required = undefined;
63
- this.step = undefined;
64
- this.type = 'text';
65
- this.value = undefined;
66
- }
67
- handleChange(event) {
68
- const target = event.target;
69
- this.value = target.value;
70
- this.valueChanged.emit(target.value);
71
- }
72
- handleFocus(event) {
73
- const target = event.target;
74
- this.focusChanged.emit(target.value);
75
- }
76
- handleBlur(event) {
77
- const target = event.target;
78
- this.blurChanged.emit(target.value);
79
- }
80
- handleInvalid(event) {
81
- event.preventDefault();
82
- const target = event.target;
83
- this.invalidChanged.emit(target.value);
84
- }
85
- handleInputIconClick(event) {
86
- event.preventDefault();
87
- this.inputIconClick.emit();
88
- }
89
- handleLeftIconClick(event) {
90
- event.preventDefault();
91
- this.leftIconClick.emit();
92
- }
93
- handleRightIconClick(event) {
94
- event.preventDefault();
95
- this.rightIconClick.emit();
96
- }
97
- render() {
98
- const classNames = [
99
- this.showerrormsg ? 'invalid' : '',
100
- this.inputicon ? 'has-input-icon' : '',
101
- this.iconleft ? 'has-left-icon' : '',
102
- this.iconright ? 'has-right-icon' : '',
103
- ].join(' ');
104
- 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_19", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_9_19", { 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_19", { 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)))));
105
- }
106
- };
107
- TttxInput.style = tttxStandaloneInputCss;
108
-
109
- export { TttxLoadingSpinner as tttx_loading_spinner_1_9_19, TttxInput as tttx_standalone_input_1_9_19 };
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as o,H as n}from"./p-d490353a.js";import{p as i,d as a}from"./p-55799798.js";import"./p-112455b1.js";function r(e,t,o,n){let i;if(i=void 0!==n?n.querySelector(".errorBubble"):"label"===e.parentElement.nodeName.toLowerCase()?e.parentElement.querySelector(".errorBubble"):e.parentElement.parentElement.querySelector(".errorBubble"),i)if(t){e.classList.add("invalid"),i.classList.add("visible");const t=document.createElement("span");t.className="material-symbols-rounded",t.textContent="warning",i.innerHTML="",i.append(t),i.append(o)}else i.classList.remove("visible"),e.classList.remove("invalid"),i.innerHTML=""}function l(e){var t,o;const n=e.target,i=n.getAttribute("data-formkey"),a=Array.from(n.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${i}]`));if(4===a.length){const i=a.find((e=>e.name.endsWith("starttime"))),l=a.find((e=>e.name.endsWith("endtime"))),s=a.find((e=>e.name.endsWith("startdate"))),c=a.find((e=>e.name.endsWith("enddate")));i.valueAsNumber>=l.valueAsNumber&&(null===(t=s.valueAsDate)||void 0===t?void 0:t.valueOf())===(null===(o=c.valueAsDate)||void 0===o?void 0:o.valueOf())?(r(l,!0,"End time cannot be the same or before the start time"),n.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),r(l,!1,null),this.validityCheckWrapper(e))}}function s(e){const t=e.target,o=t.getAttribute("data-formkey"),n=Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(`[type=time][data-formkey=${o}]`));if(n.length){const e=n.find((e=>e.name.endsWith("endtime")));e.setCustomValidity(""),r(e,!1,null)}}function c(e,t=!1){var o,n,i,a;const c=e.target;if(!c.value&&t)return;const d=c.getAttribute("data-compare-with"),p=c.parentElement.parentElement.parentElement.querySelector(`[name=${d}]`);(null===(o=c.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(n=p.valueAsDate)||void 0===n?void 0:n.valueOf())?(c.setCustomValidity(c.getAttribute("data-compare")),r(c,!0,c.getAttribute("data-compare"))):(null===(i=c.valueAsDate)||void 0===i?void 0:i.valueOf())===(null===(a=p.valueAsDate)||void 0===a?void 0:a.valueOf())?(c.setCustomValidity(""),this.validityCheckWrapper(e),l.bind(this)(e)):(s.bind(this)(e),this.validityCheckWrapper(e))}function d(e){const t=e.target,o=t.getAttribute("data-compare-to"),n=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);c.bind(this)({target:n},!0),this.validityCheckWrapper(e)}const p=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.searchTermChanged=t(this,"searchTermChanged",7),this.selectToggleOpen=t(this,"selectToggleOpen",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){return this._formSchema="string"==typeof e?JSON.parse(e):e,this._formSchema}onDataChange(e){return this._data="string"==typeof e?JSON.parse(e):e,this._data}fieldChanged(e){const t=e.target;let o=t.value;"checkbox"===t.type&&(o=t.checked?"on":"off"),this.dataChanged.emit({name:t.name,value:o})}async submit(){this.submitButton.click()}async showLoadingSpinner(e,t){this.fieldset.querySelector(`[name=overlay-${e}]`).isLoading=t}async setSelectedItem(e,t){const o=this.fieldset.querySelector(`[name=overlay-${e}]`);await o.setSelectedItem(t)}async setSelectOptions(e,t,o){const n=this.fieldset.querySelector(`[name=${e}]`),i=this.fieldset.querySelector(`[name=overlay-${e}]`),a=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,e.disabled&&(t.disabled=!0),a.appendChild(t)}n.replaceChildren(a),i.optionsData=t,o||await i.setSelectedItem(t.length>0?t[0].value:void 0)}doSubmit(e){if(e.preventDefault(),this.fieldset.querySelectorAll("[custom-validation-set=true]").length)return;const t=new FormData(e.target),o=this._formSchema.properties;for(const e of Object.keys(o))"checkbox"!==o[e].form.type||t.has(e)||t.append(e,"off");this.dataSubmitted.emit(t)}componentWillLoad(){this.onFormSchemaChange(this.formschema),this.data&&this.onDataChange(this.data)}componentWillRender(){this.template=document.createElement("template"),this.populateFormFromSchema()}createSelect(e,t){var o,n,i,a,r,l;const s=document.createElement("select");s.setAttribute("name",e),null===(o=t.options)||void 0===o||o.forEach((e=>{this.appendOption(s,e)})),(null===(n=this._data)||void 0===n?void 0:n[e])&&s.classList.remove("placeholder");const c=document.createElement("tttx-select-box_1_9_19");c.optionsData=null===(i=t.options)||void 0===i?void 0:i.filter((e=>!e.placeholder)),c.placeholder=null===(r=null===(a=t.options)||void 0===a?void 0:a.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,c.inline=!1,c.searchEnabled=!0,c.useExternalFiltering=t.useExternalFiltering||!1,c.style.width="100%",c.style.marginTop="6px",c.isLoading=t.isLoading||!1,c.readOnly=null!==(l=t.readOnly)&&void 0!==l&&l,c.setAttribute("name","overlay-"+e);const d=document.createDocumentFragment();return d.append(c),s.style.display="none",c.addEventListener("selectItemEvent",this.selectItemEventCallback.bind(s)),c.addEventListener("multiselectSearchUpdated",(t=>this.searchTermChanged.emit({name:e,value:t.detail,type:"SearchTermChanged"}))),c.addEventListener("toggleOpen",(t=>this.selectToggleOpen.emit({name:e,value:t.detail,type:"ToggleOpen"}))),{input:s,overlay:d}}selectItemEventCallback(e){const t=this;t.value=e.detail.value,t.onblur({target:t}),t.onchange({target:t})}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",t.disabled?"true":""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=i.sanitize(t.label,a)),e.appendChild(o)}createInput(e,t){var o;const n=document.createElement("input");return n.type=t.type,n.name=e,n.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",n.autocomplete="off",n.autocapitalize="off",t.readonly&&(n.readOnly=!0),n}createTextArea(e,t){var o;const n=document.createElement("textarea");return n.name=e,n.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",n.autocomplete="off",n.autocapitalize="off",t.readonly&&(n.readOnly=!0),"none"===t.resize&&n.classList.add("resize-none"),n}createStartEndDateComponent(e,t){const o=document.createElement("input"),n=document.createElement("input");let i,a;o.type=n.type="date",o.name=`${e}-startdate`,n.name=`${e}-enddate`,o.setAttribute("data-formkey",e),n.setAttribute("data-formkey",e),t.readonly&&(o.readOnly=!0,n.readOnly=!0),this.applyValidation(o,{required:{message:"Please enter a start date"},dateCompare:{to:n.name}}),this.applyValidation(n,{required:{message:"Please enter an end date"},dateCompare:{with:o.name,message:"End date cannot be before the start date"}}),t.includeTime&&(i=document.createElement("input"),a=document.createElement("input"),i.type=a.type="time",i.name=`${e}-starttime`,a.name=`${e}-endtime`,i.setAttribute("data-formkey",e),a.setAttribute("data-formkey",e),t.readonly&&(i.readOnly=!0,a.readOnly=!0),this.applyValidation(i,{required:{message:"Please enter a start time"}}),this.applyValidation(a,{required:{message:"Please enter an end time"}}));const r=document.createElement("label");r.innerText="Start date";const l=document.createElement("label");l.innerText="End date";const s=document.createElement("div"),c=document.createElement("div");return s.className=c.className="outer-container inputBlock",r.className=l.className="flex-label",s.append(o),i&&s.append(i),r.append(s),r.append(this.createErrorBubble()),c.append(n),a&&c.append(a),l.append(c),l.append(this.createErrorBubble()),{start:r,end:l}}applyValidation(e,t){var o,n;t.required&&(e.setAttribute("required",""),e.setAttribute("data-required",null!==(o=t.required.message)&&void 0!==o?o:"")),t.pattern&&(e.setAttribute("pattern",t.pattern.pattern),e.setAttribute("data-pattern",null!==(n=t.pattern.message)&&void 0!==n?n:"")),t.badInput&&e.setAttribute("data-badinput",t.badInput.message),t.minmax&&(e.setAttribute("min",t.minmax.min),e.setAttribute("max",t.minmax.max),e.setAttribute("data-range",t.minmax.message)),t.maxlength&&e.setAttribute("maxlength",t.maxlength),t.dateCompare&&(t.dateCompare.message&&t.dateCompare.with&&(e.setAttribute("data-compare",t.dateCompare.message),e.setAttribute("data-compare-with",t.dateCompare.with)),t.dateCompare.to&&e.setAttribute("data-compare-to",t.dateCompare.to))}createErrorBubble(){const e=document.createElement("div");return e.className="errorBubble",e}appendCheckboxInput(e,t,o){if(e.label){const e=document.createElement("br");o.appendChild(e)}if(o.appendChild(t),!e.inlineLabel)return;const n=document.createElement("span");n.className="inlineLabel",n.textContent=e.inlineLabel,o.appendChild(n)}createLabel(e,t,o=null,n){var i;const a=document.createElement("div");let r="outer-container inputBlock";const l=document.createElement("label");if(l.innerText=e.label,!(null===(i=e.validation)||void 0===i?void 0:i.required)&&e.label){const e=document.createElement("span");e.className="optional",e.innerHTML="&nbsp;(optional)",l.appendChild(e)}return"radio"===e.type&&(r+=" radioBlock"),a.className=r,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&a.appendChild(o),a.appendChild(t)),"checkbox"!==e.type&&l.appendChild(a),l.appendChild(n),l}createRadio(e,t){var o,n;const i=document.createDocumentFragment();for(const a of t.options){const r=document.createElement("input");r.type="radio",r.name=e,r.value=a.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(r.setAttribute("required","required"),r.setAttribute("data-required",null!==(n=t.validation.required.message)&&void 0!==n?n:""));const l=document.createElement("span");l.innerText=a.label,i.appendChild(r),i.appendChild(l),i.appendChild(document.createElement("br"))}return i}populateFormFromSchema(){var e;if(!this._formSchema)return;const t=this._formSchema.properties,o=Object.keys(t);for(const n of o){const o=t[n].form;if("startenddate"===o.type){const{start:e,end:t}=this.createStartEndDateComponent(n,o);this.template.content.append(e),this.template.content.append(t);continue}let i={};switch(o.type){case"select":i=this.createSelect(n,o);break;case"radio":i.input=this.createRadio(n,o);break;case"textarea":i.input=this.createTextArea(n,o);break;default:i.input=this.createInput(n,o)}o.validation&&"radio"!==o.type&&this.applyValidation(i.input,o.validation);const a=this.createErrorBubble(),l=this.createLabel(o,i.input,i.overlay,a);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;i.input.setCustomValidity(e),r(i.input,!0,e)}this.template.content.append(l),o.disabled&&this.toggleFormField(i.input,!0)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const n of o)this.applyValidationFunctionsToFormElement(e,n,t);this._data&&Object.keys(this._data).length>0&&this.populateFormWithExistingData(e),this.fieldset.replaceChildren(e)}applyValidationFunctionsToFormElement(e,t,o){const n=e.querySelectorAll(`[name^=${t}]`);for(const e of n)e.oninvalid=this.validityCheckWrapper.bind(this),e.onblur=this.validityCheckWrapper.bind(this),e.onkeyup=this.fieldChanged.bind(this),e.onchange=this.fieldChanged.bind(this),"select"===o[t].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",this.selectRemovePlaceholderCallback.bind(e)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=c.bind(this),e.onblur=c.bind(this)),"startenddate"===o[t].form.type&&"time"===e.type&&(e.oninvalid=l.bind(this),e.onblur=l.bind(this)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=d.bind(this),e.onblur=d.bind(this))}populateFormWithExistingData(e){var t;const o=Object.keys(this._data);for(const n of o){const o=e.querySelectorAll(`[name=${n}]`);for(const i of o)switch(i.type){case"checkbox":"on"===this._data[n]&&(i.checked=!0);break;case"radio":i.value===this._data[n]&&(i.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${n}]`).selectedValue=this._data[n],i.value=this._data[n];break;case"date":i.value=null===(t=this._data[n])||void 0===t?void 0:t.split("T")[0];break;default:i.value=this._data[n]}}}selectRemovePlaceholderCallback(){this.classList.remove("placeholder")}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:n}=function(e){var t,o,n,i;e.preventDefault&&e.preventDefault();const a=e.target;let r=!0,l="";switch(a.hasAttribute("custom-validation-set")||(a.value.length&&!a.value.replace(/\s/g,"").length?(l="This field cannot be left blank",a.setCustomValidity(l)):a.setCustomValidity&&a.setCustomValidity("")),!0){case a.validity.valueMissing:l=null!==(t=a.dataset.required)&&void 0!==t?t:"This field is required";break;case a.validity.patternMismatch:l=null!==(o=a.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case a.validity.badInput:l=null!==(n=a.dataset.badinput)&&void 0!==n?n:"Wrong input type";break;case a.validity.rangeOverflow||a.validity.rangeUnderflow:l=null!==(i=a.dataset.range)&&void 0!==i?i:"Invalid value";break;case a.validity.customError:l=a.validationMessage;break;default:r=!1}return{target:a,hasError:r,errorMessage:l}}(e);r(t,o,n)}assignFieldsetReference(e){this.fieldset=e}assignButtonReference(e){this.submitButton=e}async setValidationFor(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o.disabled||(o.setCustomValidity(t),o.setAttribute("custom-validation-set","true"),r(o,!0,t))}async clearValidationFor(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.setCustomValidity(""),t.removeAttribute("custom-validation-set"),r(t,!1,"")}toggleFormField(e,t){e.disabled=t;let o=e.parentElement;if(o){do{"LABEL"!==o.nodeName&&(o=o.parentElement)}while(o&&"LABEL"!==o.nodeName);o&&(o.style.display=t?"none":"block")}}async disableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.hasAttribute("custom-validation-set")||this.toggleFormField(t,!0)}async enableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);this.toggleFormField(t,!1)}async setInputFieldValue(e,t){this.fieldset.querySelector(`[name=${e}]`).value=t}async setFieldReadOnlyMode(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o&&"SELECT"===o.nodeName?(this.fieldset.querySelector(`[name=overlay-${e}]`).readOnly=t,o.disabled=t):o.readOnly=t,t&&await this.clearValidationFor(e)}render(){return o(n,null,o("form",{onSubmit:this.doSubmit.bind(this)},o("fieldset",{ref:this.assignFieldsetReference.bind(this)}),o("input",{type:"submit",ref:this.assignButtonReference.bind(this),style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};p.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.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}.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}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:block}fieldset{margin:0;padding:0;border:none}label{display:block;position:relative;margin-bottom:16px}.inlineLabel{font-weight:400;display:inline-block;vertical-align:top;padding-top:4px}input[type=checkbox]{width:18px;height:18px}input~label{font-weight:400}select{font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}.placeholder{color:#9e9e9e}.placeholder option{color:initial}select.invalid:invalid{border:1px solid #dc0000}select~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}select~.errorBubble:not(.visible){visibility:hidden}select~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}select.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}select:focus{border-color:#1479c6}select:focus-visible{outline:none}.button{padding:0 16px}.footer{display:flex;gap:16px;flex-direction:row-reverse}label.flex-label{display:flex;flex-direction:column;width:346px;box-sizing:border-box}label>.outer-container>input[type=date]{min-width:0;width:200px}label.flex-label input[type=time]{min-width:auto;text-align:center;width:130px;margin-left:16px}label>.outer-container>input[type=date],label.flex-label input[type=time]{line-height:36px}';export{p as tttx_form_1_9_19}
@@ -1 +0,0 @@
1
- import{r,h as o,H as e}from"./p-d490353a.js";const n=class{constructor(o){r(this,o),this.text=void 0,this.color="#d5d5d5",this.textColor="#212121"}render(){return o(e,null,o("div",{class:"tag",style:{"background-color":this.color,color:this.textColor}},o("span",null,this.text)))}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:inline-block}.tag{border-radius:20px;padding:4px;font-family:"Roboto", sans-serif;font-size:14px;font-weight:400;width:max-content}.tag span{margin-left:4px;margin-right:4px}.icon{height:18px;width:18px;font-weight:400}';export{n as tttx_tag_1_9_19}