@3t-transform/threeteeui 1.3.0 → 1.4.0

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 (206) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button_1_3_0.cjs.entry.js → tttx-button_1_4_0.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption_1_3_0.cjs.entry.js → tttx-checkbox-group-caption_1_4_0.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading_1_3_0.cjs.entry.js → tttx-checkbox-group-heading_1_4_0.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_3_0.cjs.entry.js → tttx-checkbox-group_1_4_0.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_3_0.cjs.entry.js → tttx-checkbox_1_4_0.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-data-pattern_1_3_0.cjs.entry.js → tttx-data-pattern_1_4_0.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-dialog-box_1_3_0.cjs.entry.js → tttx-dialog-box_1_4_0.cjs.entry.js} +3 -3
  9. package/dist/cjs/{tttx-dialog_1_3_0.cjs.entry.js → tttx-dialog_1_4_0.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-expander_1_3_0.cjs.entry.js → tttx-expander_1_4_0.cjs.entry.js} +2 -2
  11. package/dist/cjs/{tttx-filter_1_3_0_4.cjs.entry.js → tttx-filter_1_4_0_4.cjs.entry.js} +9 -9
  12. package/dist/cjs/{tttx-form_1_3_0.cjs.entry.js → tttx-form_1_4_0.cjs.entry.js} +73 -10
  13. package/dist/cjs/{tttx-icon_1_3_0.cjs.entry.js → tttx-icon_1_4_0.cjs.entry.js} +1 -1
  14. package/dist/cjs/{tttx-keyvalue-block_1_3_0.cjs.entry.js → tttx-keyvalue-block_1_4_0.cjs.entry.js} +1 -1
  15. package/dist/cjs/{tttx-loading-spinner_1_3_0.cjs.entry.js → tttx-loading-spinner_1_4_0.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-multiselect-box_1_3_0.cjs.entry.js → tttx-multiselect-box_1_4_0.cjs.entry.js} +6 -6
  17. package/dist/cjs/{tttx-percentage-bar_1_3_0.cjs.entry.js → tttx-percentage-bar_1_4_0.cjs.entry.js} +2 -2
  18. package/dist/cjs/{tttx-qrcode_1_3_0.cjs.entry.js → tttx-qrcode_1_4_0.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-select-box_1_3_0.cjs.entry.js → tttx-select-box_1_4_0.cjs.entry.js} +3 -3
  20. package/dist/cjs/tttx-standalone-input_1_4_0.cjs.entry.js +94 -0
  21. package/dist/cjs/{tttx-tabs_1_3_0.cjs.entry.js → tttx-tabs_1_4_0.cjs.entry.js} +4 -4
  22. package/dist/cjs/{tttx-tag_1_3_0.cjs.entry.js → tttx-tag_1_4_0.cjs.entry.js} +1 -1
  23. package/dist/cjs/{tttx-textarea_1_3_0.cjs.entry.js → tttx-textarea_1_4_0.cjs.entry.js} +2 -2
  24. package/dist/cjs/{tttx-tree-view_1_3_0.cjs.entry.js → tttx-tree-view_1_4_0.cjs.entry.js} +3 -3
  25. package/dist/cjs/tttx.cjs.js +1 -1
  26. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  27. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  28. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  29. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  30. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  31. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  32. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  33. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  34. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  35. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
  36. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  37. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  38. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  39. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  40. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
  41. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  42. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  43. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  44. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  45. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  46. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  47. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  48. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  49. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  50. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  51. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  52. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  53. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  54. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +9 -8
  55. package/dist/collection/components/molecules/tttx-form/tttx-form.js +203 -2
  56. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
  57. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  58. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
  59. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  60. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
  61. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
  62. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
  63. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  64. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  65. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  66. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  67. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  68. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  69. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  70. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  71. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  72. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  73. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  74. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  75. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
  76. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  77. package/dist/components/index.d.ts +26 -26
  78. package/dist/components/index.js +26 -26
  79. package/dist/components/tttx-button.js +5 -5
  80. package/dist/components/{tttx-button_1_3_0.d.ts → tttx-button_1_4_0.d.ts} +4 -4
  81. package/dist/components/{tttx-button_1_3_0.js → tttx-button_1_4_0.js} +2 -2
  82. package/dist/components/tttx-checkbox-group-caption_1_4_0.d.ts +11 -0
  83. package/dist/components/{tttx-checkbox-group-caption_1_3_0.js → tttx-checkbox-group-caption_1_4_0.js} +5 -5
  84. package/dist/components/tttx-checkbox-group-heading_1_4_0.d.ts +11 -0
  85. package/dist/components/{tttx-checkbox-group-heading_1_3_0.js → tttx-checkbox-group-heading_1_4_0.js} +5 -5
  86. package/dist/components/tttx-checkbox-group_1_4_0.d.ts +11 -0
  87. package/dist/components/{tttx-checkbox-group_1_3_0.js → tttx-checkbox-group_1_4_0.js} +5 -5
  88. package/dist/components/{tttx-textarea_1_3_0.d.ts → tttx-checkbox_1_4_0.d.ts} +4 -4
  89. package/dist/components/{tttx-checkbox_1_3_0.js → tttx-checkbox_1_4_0.js} +7 -7
  90. package/dist/components/tttx-data-pattern_1_4_0.d.ts +11 -0
  91. package/dist/components/{tttx-data-pattern_1_3_0.js → tttx-data-pattern_1_4_0.js} +13 -13
  92. package/dist/components/{tttx-dialog-box_1_3_0.d.ts → tttx-dialog-box_1_4_0.d.ts} +4 -4
  93. package/dist/components/{tttx-dialog-box_1_3_0.js → tttx-dialog-box_1_4_0.js} +9 -9
  94. package/dist/components/{tttx-filter_1_3_0.d.ts → tttx-dialog_1_4_0.d.ts} +4 -4
  95. package/dist/components/{tttx-dialog_1_3_0.js → tttx-dialog_1_4_0.js} +8 -8
  96. package/dist/components/{tttx-expander_1_3_0.d.ts → tttx-expander_1_4_0.d.ts} +4 -4
  97. package/dist/components/{tttx-expander_1_3_0.js → tttx-expander_1_4_0.js} +7 -7
  98. package/dist/components/tttx-filter.js +6 -6
  99. package/dist/components/{tttx-qrcode_1_3_0.d.ts → tttx-filter_1_4_0.d.ts} +4 -4
  100. package/dist/components/{tttx-filter_1_3_0.js → tttx-filter_1_4_0.js} +2 -2
  101. package/dist/components/{tttx-icon_1_3_0.d.ts → tttx-form_1_4_0.d.ts} +4 -4
  102. package/dist/components/{tttx-form_1_3_0.js → tttx-form_1_4_0.js} +85 -18
  103. package/dist/components/tttx-icon.js +3 -3
  104. package/dist/components/{tttx-list_1_3_0.d.ts → tttx-icon_1_4_0.d.ts} +4 -4
  105. package/dist/components/{tttx-icon_1_3_0.js → tttx-icon_1_4_0.js} +2 -2
  106. package/dist/components/tttx-keyvalue-block_1_4_0.d.ts +11 -0
  107. package/dist/components/{tttx-keyvalue-block_1_3_0.js → tttx-keyvalue-block_1_4_0.js} +5 -5
  108. package/dist/components/tttx-list.js +6 -6
  109. package/dist/components/{tttx-form_1_3_0.d.ts → tttx-list_1_4_0.d.ts} +4 -4
  110. package/dist/components/{tttx-list_1_3_0.js → tttx-list_1_4_0.js} +2 -2
  111. package/dist/components/tttx-loading-spinner_1_4_0.d.ts +11 -0
  112. package/dist/components/{tttx-loading-spinner_1_3_0.js → tttx-loading-spinner_1_4_0.js} +5 -5
  113. package/dist/components/tttx-multiselect-box_1_4_0.d.ts +11 -0
  114. package/dist/components/{tttx-multiselect-box_1_3_0.js → tttx-multiselect-box_1_4_0.js} +13 -13
  115. package/dist/components/tttx-percentage-bar_1_4_0.d.ts +11 -0
  116. package/dist/components/{tttx-percentage-bar_1_3_0.js → tttx-percentage-bar_1_4_0.js} +6 -6
  117. package/dist/components/{tttx-dialog_1_3_0.d.ts → tttx-qrcode_1_4_0.d.ts} +4 -4
  118. package/dist/components/{tttx-qrcode_1_3_0.js → tttx-qrcode_1_4_0.js} +5 -5
  119. package/dist/components/tttx-select-box.js +7 -7
  120. package/dist/components/tttx-select-box_1_4_0.d.ts +11 -0
  121. package/dist/components/{tttx-select-box_1_3_0.js → tttx-select-box_1_4_0.js} +2 -2
  122. package/dist/components/tttx-sorter.js +5 -5
  123. package/dist/components/tttx-sorter_1_4_0.d.ts +11 -0
  124. package/dist/components/{tttx-sorter_1_3_0.js → tttx-sorter_1_4_0.js} +2 -2
  125. package/dist/components/tttx-standalone-input.js +6 -6
  126. package/dist/components/tttx-standalone-input_1_4_0.d.ts +11 -0
  127. package/dist/components/{tttx-standalone-input_1_3_0.js → tttx-standalone-input_1_4_0.js} +2 -2
  128. package/dist/components/{tttx-tabs_1_3_0.d.ts → tttx-tabs_1_4_0.d.ts} +4 -4
  129. package/dist/components/{tttx-tabs_1_3_0.js → tttx-tabs_1_4_0.js} +9 -9
  130. package/dist/components/{tttx-tag_1_3_0.d.ts → tttx-tag_1_4_0.d.ts} +4 -4
  131. package/dist/components/{tttx-tag_1_3_0.js → tttx-tag_1_4_0.js} +5 -5
  132. package/dist/components/{tttx-checkbox_1_3_0.d.ts → tttx-textarea_1_4_0.d.ts} +4 -4
  133. package/dist/components/{tttx-textarea_1_3_0.js → tttx-textarea_1_4_0.js} +6 -6
  134. package/dist/components/tttx-toolbar.js +3 -3
  135. package/dist/components/{tttx-toolbar_1_3_0.d.ts → tttx-toolbar_1_4_0.d.ts} +4 -4
  136. package/dist/components/{tttx-toolbar_1_3_0.js → tttx-toolbar_1_4_0.js} +2 -2
  137. package/dist/components/{tttx-tree-view_1_3_0.d.ts → tttx-tree-view_1_4_0.d.ts} +4 -4
  138. package/dist/components/{tttx-tree-view_1_3_0.js → tttx-tree-view_1_4_0.js} +9 -9
  139. package/dist/esm/loader.js +1 -1
  140. package/dist/esm/{tttx-button_1_3_0.entry.js → tttx-button_1_4_0.entry.js} +2 -2
  141. package/dist/esm/{tttx-checkbox-group-caption_1_3_0.entry.js → tttx-checkbox-group-caption_1_4_0.entry.js} +1 -1
  142. package/dist/esm/{tttx-checkbox-group-heading_1_3_0.entry.js → tttx-checkbox-group-heading_1_4_0.entry.js} +1 -1
  143. package/dist/esm/{tttx-checkbox-group_1_3_0.entry.js → tttx-checkbox-group_1_4_0.entry.js} +1 -1
  144. package/dist/esm/{tttx-checkbox_1_3_0.entry.js → tttx-checkbox_1_4_0.entry.js} +2 -2
  145. package/dist/esm/{tttx-data-pattern_1_3_0.entry.js → tttx-data-pattern_1_4_0.entry.js} +2 -2
  146. package/dist/esm/{tttx-dialog-box_1_3_0.entry.js → tttx-dialog-box_1_4_0.entry.js} +3 -3
  147. package/dist/esm/{tttx-dialog_1_3_0.entry.js → tttx-dialog_1_4_0.entry.js} +2 -2
  148. package/dist/esm/{tttx-expander_1_3_0.entry.js → tttx-expander_1_4_0.entry.js} +2 -2
  149. package/dist/esm/{tttx-filter_1_3_0_4.entry.js → tttx-filter_1_4_0_4.entry.js} +6 -6
  150. package/dist/esm/{tttx-form_1_3_0.entry.js → tttx-form_1_4_0.entry.js} +73 -10
  151. package/dist/esm/{tttx-icon_1_3_0.entry.js → tttx-icon_1_4_0.entry.js} +1 -1
  152. package/dist/esm/{tttx-keyvalue-block_1_3_0.entry.js → tttx-keyvalue-block_1_4_0.entry.js} +1 -1
  153. package/dist/esm/{tttx-loading-spinner_1_3_0.entry.js → tttx-loading-spinner_1_4_0.entry.js} +1 -1
  154. package/dist/esm/{tttx-multiselect-box_1_3_0.entry.js → tttx-multiselect-box_1_4_0.entry.js} +6 -6
  155. package/dist/esm/{tttx-percentage-bar_1_3_0.entry.js → tttx-percentage-bar_1_4_0.entry.js} +2 -2
  156. package/dist/esm/{tttx-qrcode_1_3_0.entry.js → tttx-qrcode_1_4_0.entry.js} +1 -1
  157. package/dist/esm/{tttx-select-box_1_3_0.entry.js → tttx-select-box_1_4_0.entry.js} +3 -3
  158. package/dist/esm/tttx-standalone-input_1_4_0.entry.js +90 -0
  159. package/dist/esm/{tttx-tabs_1_3_0.entry.js → tttx-tabs_1_4_0.entry.js} +4 -4
  160. package/dist/esm/{tttx-tag_1_3_0.entry.js → tttx-tag_1_4_0.entry.js} +1 -1
  161. package/dist/esm/{tttx-textarea_1_3_0.entry.js → tttx-textarea_1_4_0.entry.js} +2 -2
  162. package/dist/esm/{tttx-tree-view_1_3_0.entry.js → tttx-tree-view_1_4_0.entry.js} +3 -3
  163. package/dist/esm/tttx.js +1 -1
  164. package/dist/tttx/p-0e515960.entry.js +1 -1
  165. package/dist/tttx/p-0f439f10.entry.js +1 -0
  166. package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
  167. package/dist/tttx/p-23f45005.entry.js +1 -1
  168. package/dist/tttx/p-3676cddd.entry.js +1 -1
  169. package/dist/tttx/p-56c8c353.entry.js +1 -1
  170. package/dist/tttx/p-59c7b049.entry.js +1 -1
  171. package/dist/tttx/p-5d2706b1.entry.js +1 -1
  172. package/dist/tttx/p-63ad6fb7.entry.js +1 -1
  173. package/dist/tttx/p-6b1c7a21.entry.js +1 -1
  174. package/dist/tttx/p-6deb8699.entry.js +1 -1
  175. package/dist/tttx/p-796f699a.entry.js +1 -1
  176. package/dist/tttx/p-81aaafa0.entry.js +1 -1
  177. package/dist/tttx/p-884f37d3.entry.js +1 -1
  178. package/dist/tttx/p-9434561e.entry.js +1 -1
  179. package/dist/tttx/p-983d63ff.entry.js +1 -1
  180. package/dist/tttx/p-a01e679a.entry.js +1 -1
  181. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  182. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  183. package/dist/tttx/p-ee358ce4.entry.js +1 -1
  184. package/dist/tttx/p-f374e293.entry.js +1 -1
  185. package/dist/tttx/p-f4db1cf2.entry.js +1 -1
  186. package/dist/tttx/p-fe967031.entry.js +1 -1
  187. package/dist/tttx/tttx.esm.js +1 -1
  188. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +22 -0
  189. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  190. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  191. package/dist/types/components.d.ts +325 -304
  192. package/package.json +1 -1
  193. package/dist/cjs/tttx-standalone-input_1_3_0.cjs.entry.js +0 -94
  194. package/dist/components/tttx-checkbox-group-caption_1_3_0.d.ts +0 -11
  195. package/dist/components/tttx-checkbox-group-heading_1_3_0.d.ts +0 -11
  196. package/dist/components/tttx-checkbox-group_1_3_0.d.ts +0 -11
  197. package/dist/components/tttx-data-pattern_1_3_0.d.ts +0 -11
  198. package/dist/components/tttx-keyvalue-block_1_3_0.d.ts +0 -11
  199. package/dist/components/tttx-loading-spinner_1_3_0.d.ts +0 -11
  200. package/dist/components/tttx-multiselect-box_1_3_0.d.ts +0 -11
  201. package/dist/components/tttx-percentage-bar_1_3_0.d.ts +0 -11
  202. package/dist/components/tttx-select-box_1_3_0.d.ts +0 -11
  203. package/dist/components/tttx-sorter_1_3_0.d.ts +0 -11
  204. package/dist/components/tttx-standalone-input_1_3_0.d.ts +0 -11
  205. package/dist/esm/tttx-standalone-input_1_3_0.entry.js +0 -90
  206. package/dist/tttx/p-822ec9dc.entry.js +0 -1
@@ -39,14 +39,15 @@ function validityCheck(event) {
39
39
  // and cleared with
40
40
  // target.setCustomValidity('');
41
41
  //handle whitespace-only input
42
- if (target.value.length && !target.value.replace(/\s/g, '').length) {
43
- errorMessage = 'This field cannot be left blank';
44
- target.setCustomValidity(errorMessage);
45
- }
46
- else {
47
- errorMessage = '';
48
- if (target.setCustomValidity) // tests are dumb as a brick
49
- target.setCustomValidity('');
42
+ if (!target.hasAttribute('custom-validation-set')) {
43
+ if (target.value.length && !target.value.replace(/\s/g, '').length) {
44
+ errorMessage = 'This field cannot be left blank';
45
+ target.setCustomValidity(errorMessage);
46
+ }
47
+ else {
48
+ if (target.setCustomValidity) // tests are dumb as a brick
49
+ target.setCustomValidity('');
50
+ }
50
51
  }
51
52
  // Check the validity of the input field and set an error message if needed
52
53
  switch (true) {
@@ -277,6 +278,10 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
277
278
  doSubmit(event) {
278
279
  // prevent the form from submitting normally
279
280
  event.preventDefault();
281
+ const allElements = this.fieldset.querySelectorAll('[custom-validation-set=true]');
282
+ if (allElements.length) {
283
+ return;
284
+ }
280
285
  // create a new FormData object with the form data
281
286
  const formData = new FormData(event.target);
282
287
  // get a list of checkboxes, if any, so we can manually set unchecked box data
@@ -326,7 +331,7 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
326
331
  if ((_a = this._data) === null || _a === void 0 ? void 0 : _a[formKey]) {
327
332
  select.classList.remove('placeholder');
328
333
  }
329
- const tttxSelect = document.createElement('tttx-select-box_1_3_0');
334
+ const tttxSelect = document.createElement('tttx-select-box_1_4_0');
330
335
  tttxSelect.optionsData = (_b = formProperties.options) === null || _b === void 0 ? void 0 : _b.filter(o => !o.placeholder);
331
336
  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;
332
337
  tttxSelect.inline = false;
@@ -821,6 +826,64 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
821
826
  assignButtonReference(el) {
822
827
  this.submitButton = el;
823
828
  }
829
+ /**
830
+ * An external validation trigger to apply to a form field
831
+ * @param { string } fieldName The form field name to apply the validation too
832
+ * @param { string } message The validation message to display under the form field
833
+ */
834
+ async setValidationFor(fieldName, message) {
835
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
836
+ if (formField.disabled) {
837
+ return;
838
+ }
839
+ formField.setCustomValidity(message);
840
+ formField.setAttribute('custom-validation-set', 'true');
841
+ setErrorState(formField, true, message);
842
+ }
843
+ /**
844
+ * Clear the validation message on a given form field
845
+ * @param { string } fieldName The form field name to clear the validation of
846
+ */
847
+ async clearValidationFor(fieldName) {
848
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
849
+ formField.setCustomValidity('');
850
+ formField.removeAttribute('custom-validation-set');
851
+ setErrorState(formField, false, '');
852
+ }
853
+ /**
854
+ * Disable a form field and visually remove it from the form.
855
+ * If custom validation is set, this function will return without affecting the form field.
856
+ * @param { string } fieldName The form field name to disable
857
+ */
858
+ async disableFormField(fieldName) {
859
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
860
+ if (formField.hasAttribute('custom-validation-set')) {
861
+ return;
862
+ }
863
+ formField.disabled = true;
864
+ let parent = formField.parentElement;
865
+ do {
866
+ if (parent.nodeName !== 'LABEL') {
867
+ parent = parent.parentElement;
868
+ }
869
+ } while (parent.nodeName !== 'LABEL');
870
+ parent.style.display = 'none';
871
+ }
872
+ /**
873
+ * Enable a form field and visually add it back to the form.
874
+ * @param { string } fieldName The form field name to enable
875
+ */
876
+ async enableFormField(fieldName) {
877
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
878
+ formField.disabled = false;
879
+ let parent = formField.parentElement;
880
+ do {
881
+ if (parent.nodeName !== 'LABEL') {
882
+ parent = parent.parentElement;
883
+ }
884
+ } while (parent.nodeName !== 'LABEL');
885
+ parent.style.display = 'block';
886
+ }
824
887
  /**
825
888
  * Renders the component's template as a form element with a fieldset container. The form's
826
889
  * "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
@@ -836,34 +899,38 @@ const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
836
899
  "data": ["onDataChange"]
837
900
  }; }
838
901
  static get style() { return tttxFormCss; }
839
- }, [1, "tttx-form_1_3_0", {
902
+ }, [1, "tttx-form_1_4_0", {
840
903
  "formschema": [1025],
841
904
  "data": [1032],
842
905
  "submit": [64],
843
- "setSelectOptions": [64]
906
+ "setSelectOptions": [64],
907
+ "setValidationFor": [64],
908
+ "clearValidationFor": [64],
909
+ "disableFormField": [64],
910
+ "enableFormField": [64]
844
911
  }]);
845
912
  function defineCustomElement$1() {
846
913
  if (typeof customElements === "undefined") {
847
914
  return;
848
915
  }
849
- const components = ["tttx-form_1_3_0", "tttx-icon_1_3_0", "tttx-select-box_1_3_0", "tttx-standalone-input_1_3_0"];
916
+ const components = ["tttx-form_1_4_0", "tttx-icon_1_4_0", "tttx-select-box_1_4_0", "tttx-standalone-input_1_4_0"];
850
917
  components.forEach(tagName => { switch (tagName) {
851
- case "tttx-form_1_3_0":
918
+ case "tttx-form_1_4_0":
852
919
  if (!customElements.get(tagName)) {
853
920
  customElements.define(tagName, TttxForm);
854
921
  }
855
922
  break;
856
- case "tttx-icon_1_3_0":
923
+ case "tttx-icon_1_4_0":
857
924
  if (!customElements.get(tagName)) {
858
925
  defineCustomElement$4();
859
926
  }
860
927
  break;
861
- case "tttx-select-box_1_3_0":
928
+ case "tttx-select-box_1_4_0":
862
929
  if (!customElements.get(tagName)) {
863
930
  defineCustomElement$3();
864
931
  }
865
932
  break;
866
- case "tttx-standalone-input_1_3_0":
933
+ case "tttx-standalone-input_1_4_0":
867
934
  if (!customElements.get(tagName)) {
868
935
  defineCustomElement$2();
869
936
  }
@@ -871,7 +938,7 @@ function defineCustomElement$1() {
871
938
  } });
872
939
  }
873
940
 
874
- const TttxForm_1_3_0 = TttxForm;
941
+ const TttxForm_1_4_0 = TttxForm;
875
942
  const defineCustomElement = defineCustomElement$1;
876
943
 
877
- export { TttxForm_1_3_0, defineCustomElement };
944
+ export { TttxForm_1_4_0, defineCustomElement };
@@ -27,7 +27,7 @@ const TttxIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
27
27
  }
28
28
  get element() { return this; }
29
29
  static get style() { return tttxIconCss; }
30
- }, [1, "tttx-icon_1_3_0", {
30
+ }, [1, "tttx-icon_1_4_0", {
31
31
  "icon": [1],
32
32
  "color": [1],
33
33
  "size": [1026]
@@ -36,9 +36,9 @@ function defineCustomElement() {
36
36
  if (typeof customElements === "undefined") {
37
37
  return;
38
38
  }
39
- const components = ["tttx-icon_1_3_0"];
39
+ const components = ["tttx-icon_1_4_0"];
40
40
  components.forEach(tagName => { switch (tagName) {
41
- case "tttx-icon_1_3_0":
41
+ case "tttx-icon_1_4_0":
42
42
  if (!customElements.get(tagName)) {
43
43
  customElements.define(tagName, TttxIcon);
44
44
  }
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface TttxList_1_3_0 extends Components.TttxList_1_3_0, HTMLElement {}
4
- export const TttxList_1_3_0: {
5
- prototype: TttxList_1_3_0;
6
- new (): TttxList_1_3_0;
3
+ interface TttxIcon_1_4_0 extends Components.TttxIcon_1_4_0, HTMLElement {}
4
+ export const TttxIcon_1_4_0: {
5
+ prototype: TttxIcon_1_4_0;
6
+ new (): TttxIcon_1_4_0;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -1,6 +1,6 @@
1
1
  import { T as TttxIcon, d as defineCustomElement$1 } from './tttx-icon.js';
2
2
 
3
- const TttxIcon_1_3_0 = TttxIcon;
3
+ const TttxIcon_1_4_0 = TttxIcon;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
- export { TttxIcon_1_3_0, defineCustomElement };
6
+ export { TttxIcon_1_4_0, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxKeyvalueBlock_1_4_0 extends Components.TttxKeyvalueBlock_1_4_0, HTMLElement {}
4
+ export const TttxKeyvalueBlock_1_4_0: {
5
+ prototype: TttxKeyvalueBlock_1_4_0;
6
+ new (): TttxKeyvalueBlock_1_4_0;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -65,7 +65,7 @@ const TttxKeyvalueBlock = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
65
65
  return (h(Host, null, h("dl", { class: [this.horizontal ? 'horizontal' : undefined, this.spacedout ? ' spacedout' : undefined].join(' ').trim() }, this._elements)));
66
66
  }
67
67
  static get style() { return tttxKeyvalueBlockCss; }
68
- }, [1, "tttx-keyvalue-block_1_3_0", {
68
+ }, [1, "tttx-keyvalue-block_1_4_0", {
69
69
  "keyvalues": [1],
70
70
  "horizontal": [4],
71
71
  "spacedout": [4],
@@ -75,9 +75,9 @@ function defineCustomElement$1() {
75
75
  if (typeof customElements === "undefined") {
76
76
  return;
77
77
  }
78
- const components = ["tttx-keyvalue-block_1_3_0"];
78
+ const components = ["tttx-keyvalue-block_1_4_0"];
79
79
  components.forEach(tagName => { switch (tagName) {
80
- case "tttx-keyvalue-block_1_3_0":
80
+ case "tttx-keyvalue-block_1_4_0":
81
81
  if (!customElements.get(tagName)) {
82
82
  customElements.define(tagName, TttxKeyvalueBlock);
83
83
  }
@@ -85,7 +85,7 @@ function defineCustomElement$1() {
85
85
  } });
86
86
  }
87
87
 
88
- const TttxKeyvalueBlock_1_3_0 = TttxKeyvalueBlock;
88
+ const TttxKeyvalueBlock_1_4_0 = TttxKeyvalueBlock;
89
89
  const defineCustomElement = defineCustomElement$1;
90
90
 
91
- export { TttxKeyvalueBlock_1_3_0, defineCustomElement };
91
+ export { TttxKeyvalueBlock_1_4_0, defineCustomElement };
@@ -55,9 +55,9 @@ const TttxList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
55
55
  else {
56
56
  element = h("span", { class: "item-content" }, item.element);
57
57
  }
58
- return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_3_0", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
58
+ return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_4_0", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
59
59
  this.onRowCheckboxHandler(event, item);
60
- } }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_3_0", { class: "align-right", icon: item.icon, color: 'black' })))));
60
+ } }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_4_0", { class: "align-right", icon: item.icon, color: 'black' })))));
61
61
  }
62
62
  render() {
63
63
  if (!this._data)
@@ -74,7 +74,7 @@ const TttxList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
74
74
  "data": ["onDataChange"]
75
75
  }; }
76
76
  static get style() { return tttxListCss; }
77
- }, [1, "tttx-list_1_3_0", {
77
+ }, [1, "tttx-list_1_4_0", {
78
78
  "data": [1025],
79
79
  "name": [1],
80
80
  "_data": [32]
@@ -83,14 +83,14 @@ function defineCustomElement() {
83
83
  if (typeof customElements === "undefined") {
84
84
  return;
85
85
  }
86
- const components = ["tttx-list_1_3_0", "tttx-icon_1_3_0"];
86
+ const components = ["tttx-list_1_4_0", "tttx-icon_1_4_0"];
87
87
  components.forEach(tagName => { switch (tagName) {
88
- case "tttx-list_1_3_0":
88
+ case "tttx-list_1_4_0":
89
89
  if (!customElements.get(tagName)) {
90
90
  customElements.define(tagName, TttxList);
91
91
  }
92
92
  break;
93
- case "tttx-icon_1_3_0":
93
+ case "tttx-icon_1_4_0":
94
94
  if (!customElements.get(tagName)) {
95
95
  defineCustomElement$1();
96
96
  }
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface TttxForm_1_3_0 extends Components.TttxForm_1_3_0, HTMLElement {}
4
- export const TttxForm_1_3_0: {
5
- prototype: TttxForm_1_3_0;
6
- new (): TttxForm_1_3_0;
3
+ interface TttxList_1_4_0 extends Components.TttxList_1_4_0, HTMLElement {}
4
+ export const TttxList_1_4_0: {
5
+ prototype: TttxList_1_4_0;
6
+ new (): TttxList_1_4_0;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -1,6 +1,6 @@
1
1
  import { T as TttxList, d as defineCustomElement$1 } from './tttx-list.js';
2
2
 
3
- const TttxList_1_3_0 = TttxList;
3
+ const TttxList_1_4_0 = TttxList;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
- export { TttxList_1_3_0, defineCustomElement };
6
+ export { TttxList_1_4_0, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxLoadingSpinner_1_4_0 extends Components.TttxLoadingSpinner_1_4_0, HTMLElement {}
4
+ export const TttxLoadingSpinner_1_4_0: {
5
+ prototype: TttxLoadingSpinner_1_4_0;
6
+ new (): TttxLoadingSpinner_1_4_0;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -19,7 +19,7 @@ const TttxLoadingSpinner = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
19
19
  return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
20
20
  }
21
21
  static get style() { return tttxLoadingSpinnerCss; }
22
- }, [1, "tttx-loading-spinner_1_3_0", {
22
+ }, [1, "tttx-loading-spinner_1_4_0", {
23
23
  "loadingMessage": [1028, "loading-message"],
24
24
  "size": [1025]
25
25
  }]);
@@ -27,9 +27,9 @@ function defineCustomElement$1() {
27
27
  if (typeof customElements === "undefined") {
28
28
  return;
29
29
  }
30
- const components = ["tttx-loading-spinner_1_3_0"];
30
+ const components = ["tttx-loading-spinner_1_4_0"];
31
31
  components.forEach(tagName => { switch (tagName) {
32
- case "tttx-loading-spinner_1_3_0":
32
+ case "tttx-loading-spinner_1_4_0":
33
33
  if (!customElements.get(tagName)) {
34
34
  customElements.define(tagName, TttxLoadingSpinner);
35
35
  }
@@ -37,7 +37,7 @@ function defineCustomElement$1() {
37
37
  } });
38
38
  }
39
39
 
40
- const TttxLoadingSpinner_1_3_0 = TttxLoadingSpinner;
40
+ const TttxLoadingSpinner_1_4_0 = TttxLoadingSpinner;
41
41
  const defineCustomElement = defineCustomElement$1;
42
42
 
43
- export { TttxLoadingSpinner_1_3_0, defineCustomElement };
43
+ export { TttxLoadingSpinner_1_4_0, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxMultiselectBox_1_4_0 extends Components.TttxMultiselectBox_1_4_0, HTMLElement {}
4
+ export const TttxMultiselectBox_1_4_0: {
5
+ prototype: TttxMultiselectBox_1_4_0;
6
+ new (): TttxMultiselectBox_1_4_0;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -88,11 +88,11 @@ const TttxMultiselectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
88
88
  const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
89
89
  // This is tested in e2e tests
90
90
  /* istanbul ignore next */
91
- return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_3_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
91
+ return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_4_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
92
92
  }
93
93
  // This is tested in e2e tests
94
94
  /* istanbul ignore next */
95
- return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_3_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
95
+ return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_4_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
96
96
  }
97
97
  // This is tested in e2e tests
98
98
  /* istanbul ignore next */
@@ -124,18 +124,18 @@ const TttxMultiselectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
124
124
  if (!this.unsavedSelectedItems)
125
125
  this.unsavedSelectedItems = this.safelyCloneArray(this._optionsData);
126
126
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
127
- 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_3_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 &&
127
+ 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_4_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 &&
128
128
  /* istanbul ignore next */
129
- h("div", { class: "searchbox" }, h("tttx-standalone-input_1_3_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) => {
129
+ h("div", { class: "searchbox" }, h("tttx-standalone-input_1_4_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) => {
130
130
  return this.dropdownOption(option);
131
- })), h("div", { class: 'footer' }, h("tttx-button_1_3_0", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_3_0", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
131
+ })), h("div", { class: 'footer' }, h("tttx-button_1_4_0", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_4_0", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
132
132
  }
133
133
  get el() { return this; }
134
134
  static get watchers() { return {
135
135
  "optionsData": ["handleOptionsDataChange"]
136
136
  }; }
137
137
  static get style() { return tttxMultiselectBoxCss; }
138
- }, [1, "tttx-multiselect-box_1_3_0", {
138
+ }, [1, "tttx-multiselect-box_1_4_0", {
139
139
  "optionsData": [1, "options-data"],
140
140
  "label": [1],
141
141
  "inline": [4],
@@ -151,24 +151,24 @@ function defineCustomElement$1() {
151
151
  if (typeof customElements === "undefined") {
152
152
  return;
153
153
  }
154
- const components = ["tttx-multiselect-box_1_3_0", "tttx-button_1_3_0", "tttx-icon_1_3_0", "tttx-standalone-input_1_3_0"];
154
+ const components = ["tttx-multiselect-box_1_4_0", "tttx-button_1_4_0", "tttx-icon_1_4_0", "tttx-standalone-input_1_4_0"];
155
155
  components.forEach(tagName => { switch (tagName) {
156
- case "tttx-multiselect-box_1_3_0":
156
+ case "tttx-multiselect-box_1_4_0":
157
157
  if (!customElements.get(tagName)) {
158
158
  customElements.define(tagName, TttxMultiselectBox);
159
159
  }
160
160
  break;
161
- case "tttx-button_1_3_0":
161
+ case "tttx-button_1_4_0":
162
162
  if (!customElements.get(tagName)) {
163
163
  defineCustomElement$4();
164
164
  }
165
165
  break;
166
- case "tttx-icon_1_3_0":
166
+ case "tttx-icon_1_4_0":
167
167
  if (!customElements.get(tagName)) {
168
168
  defineCustomElement$3();
169
169
  }
170
170
  break;
171
- case "tttx-standalone-input_1_3_0":
171
+ case "tttx-standalone-input_1_4_0":
172
172
  if (!customElements.get(tagName)) {
173
173
  defineCustomElement$2();
174
174
  }
@@ -176,7 +176,7 @@ function defineCustomElement$1() {
176
176
  } });
177
177
  }
178
178
 
179
- const TttxMultiselectBox_1_3_0 = TttxMultiselectBox;
179
+ const TttxMultiselectBox_1_4_0 = TttxMultiselectBox;
180
180
  const defineCustomElement = defineCustomElement$1;
181
181
 
182
- export { TttxMultiselectBox_1_3_0, defineCustomElement };
182
+ export { TttxMultiselectBox_1_4_0, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxPercentageBar_1_4_0 extends Components.TttxPercentageBar_1_4_0, HTMLElement {}
4
+ export const TttxPercentageBar_1_4_0: {
5
+ prototype: TttxPercentageBar_1_4_0;
6
+ new (): TttxPercentageBar_1_4_0;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_3_0-h{display:block}.progress.sc-tttx-percentage-bar_1_3_0{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_3_0 .bar.sc-tttx-percentage-bar_1_3_0{height:20px}";
3
+ const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_4_0-h{display:block}.progress.sc-tttx-percentage-bar_1_4_0{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_4_0 .bar.sc-tttx-percentage-bar_1_4_0{height:20px}";
4
4
 
5
5
  const TttxPercentageBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
6
  constructor() {
@@ -57,7 +57,7 @@ const TttxPercentageBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
57
57
  return (h(Host, null, h("div", { class: "progress" }, h("div", { class: "bar", style: { 'background-color': this.getColour(), 'width': `${this.getWidth()}%` }, role: "progressbar", "aria-valuemin": this._min, "aria-valuemax": "100", "aria-valuenow": this._percentage, "aria-labelledby": this.labelid }))));
58
58
  }
59
59
  static get style() { return tttxPercentageBarCss; }
60
- }, [2, "tttx-percentage-bar_1_3_0", {
60
+ }, [2, "tttx-percentage-bar_1_4_0", {
61
61
  "percentage": [8],
62
62
  "thresholds": [1],
63
63
  "color": [1],
@@ -71,9 +71,9 @@ function defineCustomElement$1() {
71
71
  if (typeof customElements === "undefined") {
72
72
  return;
73
73
  }
74
- const components = ["tttx-percentage-bar_1_3_0"];
74
+ const components = ["tttx-percentage-bar_1_4_0"];
75
75
  components.forEach(tagName => { switch (tagName) {
76
- case "tttx-percentage-bar_1_3_0":
76
+ case "tttx-percentage-bar_1_4_0":
77
77
  if (!customElements.get(tagName)) {
78
78
  customElements.define(tagName, TttxPercentageBar);
79
79
  }
@@ -81,7 +81,7 @@ function defineCustomElement$1() {
81
81
  } });
82
82
  }
83
83
 
84
- const TttxPercentageBar_1_3_0 = TttxPercentageBar;
84
+ const TttxPercentageBar_1_4_0 = TttxPercentageBar;
85
85
  const defineCustomElement = defineCustomElement$1;
86
86
 
87
- export { TttxPercentageBar_1_3_0, defineCustomElement };
87
+ export { TttxPercentageBar_1_4_0, defineCustomElement };
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface TttxDialog_1_3_0 extends Components.TttxDialog_1_3_0, HTMLElement {}
4
- export const TttxDialog_1_3_0: {
5
- prototype: TttxDialog_1_3_0;
6
- new (): TttxDialog_1_3_0;
3
+ interface TttxQrcode_1_4_0 extends Components.TttxQrcode_1_4_0, HTMLElement {}
4
+ export const TttxQrcode_1_4_0: {
5
+ prototype: TttxQrcode_1_4_0;
6
+ new (): TttxQrcode_1_4_0;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -36,7 +36,7 @@ const TttxQrCode = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
36
36
  }
37
37
  get hostElement() { return this; }
38
38
  static get style() { return tttxQrcodeCss; }
39
- }, [1, "tttx-qrcode_1_3_0", {
39
+ }, [1, "tttx-qrcode_1_4_0", {
40
40
  "link": [1025],
41
41
  "size": [1026]
42
42
  }]);
@@ -44,9 +44,9 @@ function defineCustomElement$1() {
44
44
  if (typeof customElements === "undefined") {
45
45
  return;
46
46
  }
47
- const components = ["tttx-qrcode_1_3_0"];
47
+ const components = ["tttx-qrcode_1_4_0"];
48
48
  components.forEach(tagName => { switch (tagName) {
49
- case "tttx-qrcode_1_3_0":
49
+ case "tttx-qrcode_1_4_0":
50
50
  if (!customElements.get(tagName)) {
51
51
  customElements.define(tagName, TttxQrCode);
52
52
  }
@@ -54,7 +54,7 @@ function defineCustomElement$1() {
54
54
  } });
55
55
  }
56
56
 
57
- const TttxQrcode_1_3_0 = TttxQrCode;
57
+ const TttxQrcode_1_4_0 = TttxQrCode;
58
58
  const defineCustomElement = defineCustomElement$1;
59
59
 
60
- export { TttxQrcode_1_3_0, defineCustomElement };
60
+ export { TttxQrcode_1_4_0, defineCustomElement };
@@ -64,7 +64,7 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
64
64
  let title;
65
65
  let subtitle;
66
66
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
67
- const icon = h("tttx-icon_1_3_0", { icon: chevronIcon, color: "black" });
67
+ const icon = h("tttx-icon_1_4_0", { icon: chevronIcon, color: "black" });
68
68
  let chevron = h("div", { class: 'dropdown-selector-chevron' }, icon);
69
69
  if (!this.selectedItem) {
70
70
  title = h("div", { class: "placeholder" }, this.placeholder);
@@ -123,7 +123,7 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
123
123
  return;
124
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", 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 &&
125
125
  /* istanbul ignore next */
126
- h("div", { class: "searchbox" }, h("tttx-standalone-input_1_3_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) => {
126
+ h("div", { class: "searchbox" }, h("tttx-standalone-input_1_4_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) => {
127
127
  return this.dropdownOption(option);
128
128
  }))))))));
129
129
  }
@@ -132,7 +132,7 @@ const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
132
132
  "optionsData": ["setOptionsData"]
133
133
  }; }
134
134
  static get style() { return tttxSelectBoxCss; }
135
- }, [1, "tttx-select-box_1_3_0", {
135
+ }, [1, "tttx-select-box_1_4_0", {
136
136
  "optionsData": [1, "options-data"],
137
137
  "label": [1],
138
138
  "inline": [4],
@@ -148,19 +148,19 @@ function defineCustomElement() {
148
148
  if (typeof customElements === "undefined") {
149
149
  return;
150
150
  }
151
- const components = ["tttx-select-box_1_3_0", "tttx-icon_1_3_0", "tttx-standalone-input_1_3_0"];
151
+ const components = ["tttx-select-box_1_4_0", "tttx-icon_1_4_0", "tttx-standalone-input_1_4_0"];
152
152
  components.forEach(tagName => { switch (tagName) {
153
- case "tttx-select-box_1_3_0":
153
+ case "tttx-select-box_1_4_0":
154
154
  if (!customElements.get(tagName)) {
155
155
  customElements.define(tagName, TttxSelectBox);
156
156
  }
157
157
  break;
158
- case "tttx-icon_1_3_0":
158
+ case "tttx-icon_1_4_0":
159
159
  if (!customElements.get(tagName)) {
160
160
  defineCustomElement$2();
161
161
  }
162
162
  break;
163
- case "tttx-standalone-input_1_3_0":
163
+ case "tttx-standalone-input_1_4_0":
164
164
  if (!customElements.get(tagName)) {
165
165
  defineCustomElement$1();
166
166
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxSelectBox_1_4_0 extends Components.TttxSelectBox_1_4_0, HTMLElement {}
4
+ export const TttxSelectBox_1_4_0: {
5
+ prototype: TttxSelectBox_1_4_0;
6
+ new (): TttxSelectBox_1_4_0;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -1,6 +1,6 @@
1
1
  import { T as TttxSelectBox, d as defineCustomElement$1 } from './tttx-select-box.js';
2
2
 
3
- const TttxSelectBox_1_3_0 = TttxSelectBox;
3
+ const TttxSelectBox_1_4_0 = TttxSelectBox;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
- export { TttxSelectBox_1_3_0, defineCustomElement };
6
+ export { TttxSelectBox_1_4_0, defineCustomElement };