@3t-transform/threeteeui 1.3.0 → 1.4.1

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 (211) 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_1.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_1.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_1.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_3_0.cjs.entry.js → tttx-checkbox-group_1_4_1.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_3_0.cjs.entry.js → tttx-checkbox_1_4_1.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-data-pattern_1_3_0.cjs.entry.js → tttx-data-pattern_1_4_1.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-dialog-box_1_3_0.cjs.entry.js → tttx-dialog-box_1_4_1.cjs.entry.js} +3 -3
  9. package/dist/cjs/{tttx-dialog_1_3_0.cjs.entry.js → tttx-dialog_1_4_1.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-expander_1_3_0.cjs.entry.js → tttx-expander_1_4_1.cjs.entry.js} +2 -2
  11. package/dist/cjs/{tttx-filter_1_3_0_4.cjs.entry.js → tttx-filter_1_4_1_4.cjs.entry.js} +9 -9
  12. package/dist/cjs/{tttx-form_1_3_0.cjs.entry.js → tttx-form_1_4_1.cjs.entry.js} +77 -11
  13. package/dist/cjs/{tttx-icon_1_3_0.cjs.entry.js → tttx-icon_1_4_1.cjs.entry.js} +1 -1
  14. package/dist/cjs/{tttx-keyvalue-block_1_3_0.cjs.entry.js → tttx-keyvalue-block_1_4_1.cjs.entry.js} +1 -1
  15. package/dist/cjs/{tttx-loading-spinner_1_3_0.cjs.entry.js → tttx-loading-spinner_1_4_1.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-multiselect-box_1_3_0.cjs.entry.js → tttx-multiselect-box_1_4_1.cjs.entry.js} +6 -6
  17. package/dist/cjs/{tttx-percentage-bar_1_3_0.cjs.entry.js → tttx-percentage-bar_1_4_1.cjs.entry.js} +2 -2
  18. package/dist/cjs/{tttx-qrcode_1_3_0.cjs.entry.js → tttx-qrcode_1_4_1.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-select-box_1_3_0.cjs.entry.js → tttx-select-box_1_4_1.cjs.entry.js} +3 -3
  20. package/dist/cjs/tttx-standalone-input_1_4_1.cjs.entry.js +94 -0
  21. package/dist/cjs/{tttx-tabs_1_3_0.cjs.entry.js → tttx-tabs_1_4_1.cjs.entry.js} +4 -4
  22. package/dist/cjs/{tttx-tag_1_3_0.cjs.entry.js → tttx-tag_1_4_1.cjs.entry.js} +1 -1
  23. package/dist/cjs/{tttx-textarea_1_3_0.cjs.entry.js → tttx-textarea_1_4_1.cjs.entry.js} +2 -2
  24. package/dist/cjs/{tttx-tree-view_1_3_0.cjs.entry.js → tttx-tree-view_1_4_1.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.css +28 -13
  56. package/dist/collection/components/molecules/tttx-form/tttx-form.js +206 -2
  57. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
  58. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  59. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
  60. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  61. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
  62. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
  63. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
  64. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  65. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  66. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +28 -13
  67. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  68. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  69. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  70. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  71. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  72. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  73. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  74. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  75. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  76. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  77. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
  78. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  79. package/dist/components/index.d.ts +26 -26
  80. package/dist/components/index.js +26 -26
  81. package/dist/components/tttx-button.js +5 -5
  82. package/dist/components/{tttx-button_1_3_0.d.ts → tttx-button_1_4_1.d.ts} +4 -4
  83. package/dist/components/{tttx-button_1_3_0.js → tttx-button_1_4_1.js} +2 -2
  84. package/dist/components/tttx-checkbox-group-caption_1_4_1.d.ts +11 -0
  85. package/dist/components/{tttx-checkbox-group-caption_1_3_0.js → tttx-checkbox-group-caption_1_4_1.js} +5 -5
  86. package/dist/components/tttx-checkbox-group-heading_1_4_1.d.ts +11 -0
  87. package/dist/components/{tttx-checkbox-group-heading_1_3_0.js → tttx-checkbox-group-heading_1_4_1.js} +5 -5
  88. package/dist/components/tttx-checkbox-group_1_4_1.d.ts +11 -0
  89. package/dist/components/{tttx-checkbox-group_1_3_0.js → tttx-checkbox-group_1_4_1.js} +5 -5
  90. package/dist/components/{tttx-expander_1_3_0.d.ts → tttx-checkbox_1_4_1.d.ts} +4 -4
  91. package/dist/components/{tttx-checkbox_1_3_0.js → tttx-checkbox_1_4_1.js} +7 -7
  92. package/dist/components/tttx-data-pattern_1_4_1.d.ts +11 -0
  93. package/dist/components/{tttx-data-pattern_1_3_0.js → tttx-data-pattern_1_4_1.js} +13 -13
  94. package/dist/components/{tttx-dialog-box_1_3_0.d.ts → tttx-dialog-box_1_4_1.d.ts} +4 -4
  95. package/dist/components/{tttx-dialog-box_1_3_0.js → tttx-dialog-box_1_4_1.js} +9 -9
  96. package/dist/components/{tttx-filter_1_3_0.d.ts → tttx-dialog_1_4_1.d.ts} +4 -4
  97. package/dist/components/{tttx-dialog_1_3_0.js → tttx-dialog_1_4_1.js} +8 -8
  98. package/dist/components/{tttx-checkbox_1_3_0.d.ts → tttx-expander_1_4_1.d.ts} +4 -4
  99. package/dist/components/{tttx-expander_1_3_0.js → tttx-expander_1_4_1.js} +7 -7
  100. package/dist/components/tttx-filter.js +6 -6
  101. package/dist/components/{tttx-qrcode_1_3_0.d.ts → tttx-filter_1_4_1.d.ts} +4 -4
  102. package/dist/components/{tttx-filter_1_3_0.js → tttx-filter_1_4_1.js} +2 -2
  103. package/dist/components/{tttx-icon_1_3_0.d.ts → tttx-form_1_4_1.d.ts} +4 -4
  104. package/dist/components/{tttx-form_1_3_0.js → tttx-form_1_4_1.js} +89 -19
  105. package/dist/components/tttx-icon.js +3 -3
  106. package/dist/components/{tttx-list_1_3_0.d.ts → tttx-icon_1_4_1.d.ts} +4 -4
  107. package/dist/components/{tttx-icon_1_3_0.js → tttx-icon_1_4_1.js} +2 -2
  108. package/dist/components/tttx-keyvalue-block_1_4_1.d.ts +11 -0
  109. package/dist/components/{tttx-keyvalue-block_1_3_0.js → tttx-keyvalue-block_1_4_1.js} +5 -5
  110. package/dist/components/tttx-list.js +6 -6
  111. package/dist/components/{tttx-form_1_3_0.d.ts → tttx-list_1_4_1.d.ts} +4 -4
  112. package/dist/components/{tttx-list_1_3_0.js → tttx-list_1_4_1.js} +2 -2
  113. package/dist/components/tttx-loading-spinner_1_4_1.d.ts +11 -0
  114. package/dist/components/{tttx-loading-spinner_1_3_0.js → tttx-loading-spinner_1_4_1.js} +5 -5
  115. package/dist/components/tttx-multiselect-box_1_4_1.d.ts +11 -0
  116. package/dist/components/{tttx-multiselect-box_1_3_0.js → tttx-multiselect-box_1_4_1.js} +13 -13
  117. package/dist/components/tttx-percentage-bar_1_4_1.d.ts +11 -0
  118. package/dist/components/{tttx-percentage-bar_1_3_0.js → tttx-percentage-bar_1_4_1.js} +6 -6
  119. package/dist/components/{tttx-dialog_1_3_0.d.ts → tttx-qrcode_1_4_1.d.ts} +4 -4
  120. package/dist/components/{tttx-qrcode_1_3_0.js → tttx-qrcode_1_4_1.js} +5 -5
  121. package/dist/components/tttx-select-box.js +7 -7
  122. package/dist/components/tttx-select-box_1_4_1.d.ts +11 -0
  123. package/dist/components/{tttx-select-box_1_3_0.js → tttx-select-box_1_4_1.js} +2 -2
  124. package/dist/components/tttx-sorter.js +5 -5
  125. package/dist/components/tttx-sorter_1_4_1.d.ts +11 -0
  126. package/dist/components/{tttx-sorter_1_3_0.js → tttx-sorter_1_4_1.js} +2 -2
  127. package/dist/components/tttx-standalone-input.js +6 -6
  128. package/dist/components/tttx-standalone-input_1_4_1.d.ts +11 -0
  129. package/dist/components/{tttx-standalone-input_1_3_0.js → tttx-standalone-input_1_4_1.js} +2 -2
  130. package/dist/components/{tttx-tabs_1_3_0.d.ts → tttx-tabs_1_4_1.d.ts} +4 -4
  131. package/dist/components/{tttx-tabs_1_3_0.js → tttx-tabs_1_4_1.js} +9 -9
  132. package/dist/components/{tttx-tag_1_3_0.d.ts → tttx-tag_1_4_1.d.ts} +4 -4
  133. package/dist/components/{tttx-tag_1_3_0.js → tttx-tag_1_4_1.js} +5 -5
  134. package/dist/components/tttx-textarea_1_4_1.d.ts +11 -0
  135. package/dist/components/{tttx-textarea_1_3_0.js → tttx-textarea_1_4_1.js} +6 -6
  136. package/dist/components/tttx-toolbar.js +3 -3
  137. package/dist/components/{tttx-toolbar_1_3_0.d.ts → tttx-toolbar_1_4_1.d.ts} +4 -4
  138. package/dist/components/{tttx-toolbar_1_3_0.js → tttx-toolbar_1_4_1.js} +2 -2
  139. package/dist/components/tttx-tree-view_1_4_1.d.ts +11 -0
  140. package/dist/components/{tttx-tree-view_1_3_0.js → tttx-tree-view_1_4_1.js} +9 -9
  141. package/dist/esm/loader.js +1 -1
  142. package/dist/esm/{tttx-button_1_3_0.entry.js → tttx-button_1_4_1.entry.js} +2 -2
  143. package/dist/esm/{tttx-checkbox-group-caption_1_3_0.entry.js → tttx-checkbox-group-caption_1_4_1.entry.js} +1 -1
  144. package/dist/esm/{tttx-checkbox-group-heading_1_3_0.entry.js → tttx-checkbox-group-heading_1_4_1.entry.js} +1 -1
  145. package/dist/esm/{tttx-checkbox-group_1_3_0.entry.js → tttx-checkbox-group_1_4_1.entry.js} +1 -1
  146. package/dist/esm/{tttx-checkbox_1_3_0.entry.js → tttx-checkbox_1_4_1.entry.js} +2 -2
  147. package/dist/esm/{tttx-data-pattern_1_3_0.entry.js → tttx-data-pattern_1_4_1.entry.js} +2 -2
  148. package/dist/esm/{tttx-dialog-box_1_3_0.entry.js → tttx-dialog-box_1_4_1.entry.js} +3 -3
  149. package/dist/esm/{tttx-dialog_1_3_0.entry.js → tttx-dialog_1_4_1.entry.js} +2 -2
  150. package/dist/esm/{tttx-expander_1_3_0.entry.js → tttx-expander_1_4_1.entry.js} +2 -2
  151. package/dist/esm/{tttx-filter_1_3_0_4.entry.js → tttx-filter_1_4_1_4.entry.js} +6 -6
  152. package/dist/esm/{tttx-form_1_3_0.entry.js → tttx-form_1_4_1.entry.js} +77 -11
  153. package/dist/esm/{tttx-icon_1_3_0.entry.js → tttx-icon_1_4_1.entry.js} +1 -1
  154. package/dist/esm/{tttx-keyvalue-block_1_3_0.entry.js → tttx-keyvalue-block_1_4_1.entry.js} +1 -1
  155. package/dist/esm/{tttx-loading-spinner_1_3_0.entry.js → tttx-loading-spinner_1_4_1.entry.js} +1 -1
  156. package/dist/esm/{tttx-multiselect-box_1_3_0.entry.js → tttx-multiselect-box_1_4_1.entry.js} +6 -6
  157. package/dist/esm/{tttx-percentage-bar_1_3_0.entry.js → tttx-percentage-bar_1_4_1.entry.js} +2 -2
  158. package/dist/esm/{tttx-qrcode_1_3_0.entry.js → tttx-qrcode_1_4_1.entry.js} +1 -1
  159. package/dist/esm/{tttx-select-box_1_3_0.entry.js → tttx-select-box_1_4_1.entry.js} +3 -3
  160. package/dist/esm/tttx-standalone-input_1_4_1.entry.js +90 -0
  161. package/dist/esm/{tttx-tabs_1_3_0.entry.js → tttx-tabs_1_4_1.entry.js} +4 -4
  162. package/dist/esm/{tttx-tag_1_3_0.entry.js → tttx-tag_1_4_1.entry.js} +1 -1
  163. package/dist/esm/{tttx-textarea_1_3_0.entry.js → tttx-textarea_1_4_1.entry.js} +2 -2
  164. package/dist/esm/{tttx-tree-view_1_3_0.entry.js → tttx-tree-view_1_4_1.entry.js} +3 -3
  165. package/dist/esm/tttx.js +1 -1
  166. package/dist/tttx/p-0e515960.entry.js +1 -1
  167. package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
  168. package/dist/tttx/p-23f45005.entry.js +1 -1
  169. package/dist/tttx/p-3676cddd.entry.js +1 -1
  170. package/dist/tttx/p-56c8c353.entry.js +1 -1
  171. package/dist/tttx/p-59c7b049.entry.js +1 -1
  172. package/dist/tttx/p-5d2706b1.entry.js +1 -1
  173. package/dist/tttx/p-63ad6fb7.entry.js +1 -1
  174. package/dist/tttx/p-6b1c7a21.entry.js +1 -1
  175. package/dist/tttx/p-6deb8699.entry.js +1 -1
  176. package/dist/tttx/p-796f699a.entry.js +1 -1
  177. package/dist/tttx/p-81aaafa0.entry.js +1 -1
  178. package/dist/tttx/p-884f37d3.entry.js +1 -1
  179. package/dist/tttx/p-8b0b95b7.entry.js +1 -0
  180. package/dist/tttx/p-9434561e.entry.js +1 -1
  181. package/dist/tttx/p-983d63ff.entry.js +1 -1
  182. package/dist/tttx/p-a01e679a.entry.js +1 -1
  183. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  184. package/dist/tttx/p-c08a54f9.entry.js +1 -0
  185. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  186. package/dist/tttx/p-ee358ce4.entry.js +1 -1
  187. package/dist/tttx/p-f374e293.entry.js +1 -1
  188. package/dist/tttx/p-f4db1cf2.entry.js +1 -1
  189. package/dist/tttx/tttx.esm.js +1 -1
  190. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +22 -0
  191. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  192. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  193. package/dist/types/components.d.ts +325 -304
  194. package/package.json +1 -1
  195. package/dist/cjs/tttx-standalone-input_1_3_0.cjs.entry.js +0 -94
  196. package/dist/components/tttx-checkbox-group-caption_1_3_0.d.ts +0 -11
  197. package/dist/components/tttx-checkbox-group-heading_1_3_0.d.ts +0 -11
  198. package/dist/components/tttx-checkbox-group_1_3_0.d.ts +0 -11
  199. package/dist/components/tttx-data-pattern_1_3_0.d.ts +0 -11
  200. package/dist/components/tttx-keyvalue-block_1_3_0.d.ts +0 -11
  201. package/dist/components/tttx-loading-spinner_1_3_0.d.ts +0 -11
  202. package/dist/components/tttx-multiselect-box_1_3_0.d.ts +0 -11
  203. package/dist/components/tttx-percentage-bar_1_3_0.d.ts +0 -11
  204. package/dist/components/tttx-select-box_1_3_0.d.ts +0 -11
  205. package/dist/components/tttx-sorter_1_3_0.d.ts +0 -11
  206. package/dist/components/tttx-standalone-input_1_3_0.d.ts +0 -11
  207. package/dist/components/tttx-textarea_1_3_0.d.ts +0 -11
  208. package/dist/components/tttx-tree-view_1_3_0.d.ts +0 -11
  209. package/dist/esm/tttx-standalone-input_1_3_0.entry.js +0 -90
  210. package/dist/tttx/p-822ec9dc.entry.js +0 -1
  211. package/dist/tttx/p-fe967031.entry.js +0 -1
@@ -82,6 +82,10 @@ export class TttxForm {
82
82
  doSubmit(event) {
83
83
  // prevent the form from submitting normally
84
84
  event.preventDefault();
85
+ const allElements = this.fieldset.querySelectorAll('[custom-validation-set=true]');
86
+ if (allElements.length) {
87
+ return;
88
+ }
85
89
  // create a new FormData object with the form data
86
90
  const formData = new FormData(event.target);
87
91
  // get a list of checkboxes, if any, so we can manually set unchecked box data
@@ -131,7 +135,7 @@ export class TttxForm {
131
135
  if ((_a = this._data) === null || _a === void 0 ? void 0 : _a[formKey]) {
132
136
  select.classList.remove('placeholder');
133
137
  }
134
- const tttxSelect = document.createElement('tttx-select-box_1_3_0');
138
+ const tttxSelect = document.createElement('tttx-select-box_1_4_1');
135
139
  tttxSelect.optionsData = (_b = formProperties.options) === null || _b === void 0 ? void 0 : _b.filter(o => !o.placeholder);
136
140
  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;
137
141
  tttxSelect.inline = false;
@@ -224,6 +228,9 @@ export class TttxForm {
224
228
  if (formProperties.readonly) {
225
229
  input.readOnly = true;
226
230
  }
231
+ if (formProperties.resize === 'none') {
232
+ input.classList.add('resize-none');
233
+ }
227
234
  // Return the input element
228
235
  return input;
229
236
  }
@@ -626,6 +633,64 @@ export class TttxForm {
626
633
  assignButtonReference(el) {
627
634
  this.submitButton = el;
628
635
  }
636
+ /**
637
+ * An external validation trigger to apply to a form field
638
+ * @param { string } fieldName The form field name to apply the validation too
639
+ * @param { string } message The validation message to display under the form field
640
+ */
641
+ async setValidationFor(fieldName, message) {
642
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
643
+ if (formField.disabled) {
644
+ return;
645
+ }
646
+ formField.setCustomValidity(message);
647
+ formField.setAttribute('custom-validation-set', 'true');
648
+ setErrorState(formField, true, message);
649
+ }
650
+ /**
651
+ * Clear the validation message on a given form field
652
+ * @param { string } fieldName The form field name to clear the validation of
653
+ */
654
+ async clearValidationFor(fieldName) {
655
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
656
+ formField.setCustomValidity('');
657
+ formField.removeAttribute('custom-validation-set');
658
+ setErrorState(formField, false, '');
659
+ }
660
+ /**
661
+ * Disable a form field and visually remove it from the form.
662
+ * If custom validation is set, this function will return without affecting the form field.
663
+ * @param { string } fieldName The form field name to disable
664
+ */
665
+ async disableFormField(fieldName) {
666
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
667
+ if (formField.hasAttribute('custom-validation-set')) {
668
+ return;
669
+ }
670
+ formField.disabled = true;
671
+ let parent = formField.parentElement;
672
+ do {
673
+ if (parent.nodeName !== 'LABEL') {
674
+ parent = parent.parentElement;
675
+ }
676
+ } while (parent.nodeName !== 'LABEL');
677
+ parent.style.display = 'none';
678
+ }
679
+ /**
680
+ * Enable a form field and visually add it back to the form.
681
+ * @param { string } fieldName The form field name to enable
682
+ */
683
+ async enableFormField(fieldName) {
684
+ const formField = this.fieldset.querySelector(`[name=${fieldName}]`);
685
+ formField.disabled = false;
686
+ let parent = formField.parentElement;
687
+ do {
688
+ if (parent.nodeName !== 'LABEL') {
689
+ parent = parent.parentElement;
690
+ }
691
+ } while (parent.nodeName !== 'LABEL');
692
+ parent.style.display = 'block';
693
+ }
629
694
  /**
630
695
  * Renders the component's template as a form element with a fieldset container. The form's
631
696
  * "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
@@ -636,7 +701,7 @@ export class TttxForm {
636
701
  render() {
637
702
  return (h(Host, null, h("form", { onSubmit: this.doSubmit.bind(this) }, h("fieldset", { ref: this.assignFieldsetReference.bind(this) }), h("input", { type: "submit", ref: this.assignButtonReference.bind(this), style: { display: 'none' } }))));
638
703
  }
639
- static get is() { return "tttx-form_1_3_0"; }
704
+ static get is() { return "tttx-form_1_4_1"; }
640
705
  static get encapsulation() { return "shadow"; }
641
706
  static get originalStyleUrls() {
642
707
  return {
@@ -782,6 +847,145 @@ export class TttxForm {
782
847
  "text": "options a list of option values and labels"
783
848
  }]
784
849
  }
850
+ },
851
+ "setValidationFor": {
852
+ "complexType": {
853
+ "signature": "(fieldName: string, message: string) => Promise<void>",
854
+ "parameters": [{
855
+ "tags": [{
856
+ "name": "param",
857
+ "text": "fieldName The form field name to apply the validation too"
858
+ }],
859
+ "text": "The form field name to apply the validation too"
860
+ }, {
861
+ "tags": [{
862
+ "name": "param",
863
+ "text": "message The validation message to display under the form field"
864
+ }],
865
+ "text": "The validation message to display under the form field"
866
+ }],
867
+ "references": {
868
+ "Promise": {
869
+ "location": "global"
870
+ },
871
+ "HTMLInputElement": {
872
+ "location": "global"
873
+ },
874
+ "HTMLSelectElement": {
875
+ "location": "global"
876
+ }
877
+ },
878
+ "return": "Promise<void>"
879
+ },
880
+ "docs": {
881
+ "text": "An external validation trigger to apply to a form field",
882
+ "tags": [{
883
+ "name": "param",
884
+ "text": "fieldName The form field name to apply the validation too"
885
+ }, {
886
+ "name": "param",
887
+ "text": "message The validation message to display under the form field"
888
+ }]
889
+ }
890
+ },
891
+ "clearValidationFor": {
892
+ "complexType": {
893
+ "signature": "(fieldName: string) => Promise<void>",
894
+ "parameters": [{
895
+ "tags": [{
896
+ "name": "param",
897
+ "text": "fieldName The form field name to clear the validation of"
898
+ }],
899
+ "text": "The form field name to clear the validation of"
900
+ }],
901
+ "references": {
902
+ "Promise": {
903
+ "location": "global"
904
+ },
905
+ "HTMLInputElement": {
906
+ "location": "global"
907
+ },
908
+ "HTMLSelectElement": {
909
+ "location": "global"
910
+ }
911
+ },
912
+ "return": "Promise<void>"
913
+ },
914
+ "docs": {
915
+ "text": "Clear the validation message on a given form field",
916
+ "tags": [{
917
+ "name": "param",
918
+ "text": "fieldName The form field name to clear the validation of"
919
+ }]
920
+ }
921
+ },
922
+ "disableFormField": {
923
+ "complexType": {
924
+ "signature": "(fieldName: string) => Promise<void>",
925
+ "parameters": [{
926
+ "tags": [{
927
+ "name": "param",
928
+ "text": "fieldName The form field name to disable"
929
+ }],
930
+ "text": "The form field name to disable"
931
+ }],
932
+ "references": {
933
+ "Promise": {
934
+ "location": "global"
935
+ },
936
+ "HTMLInputElement": {
937
+ "location": "global"
938
+ },
939
+ "HTMLSelectElement": {
940
+ "location": "global"
941
+ },
942
+ "HTMLElement": {
943
+ "location": "global"
944
+ }
945
+ },
946
+ "return": "Promise<void>"
947
+ },
948
+ "docs": {
949
+ "text": "Disable a form field and visually remove it from the form.\nIf custom validation is set, this function will return without affecting the form field.",
950
+ "tags": [{
951
+ "name": "param",
952
+ "text": "fieldName The form field name to disable"
953
+ }]
954
+ }
955
+ },
956
+ "enableFormField": {
957
+ "complexType": {
958
+ "signature": "(fieldName: string) => Promise<void>",
959
+ "parameters": [{
960
+ "tags": [{
961
+ "name": "param",
962
+ "text": "fieldName The form field name to enable"
963
+ }],
964
+ "text": "The form field name to enable"
965
+ }],
966
+ "references": {
967
+ "Promise": {
968
+ "location": "global"
969
+ },
970
+ "HTMLInputElement": {
971
+ "location": "global"
972
+ },
973
+ "HTMLSelectElement": {
974
+ "location": "global"
975
+ },
976
+ "HTMLElement": {
977
+ "location": "global"
978
+ }
979
+ },
980
+ "return": "Promise<void>"
981
+ },
982
+ "docs": {
983
+ "text": "Enable a form field and visually add it back to the form.",
984
+ "tags": [{
985
+ "name": "param",
986
+ "text": "fieldName The form field name to enable"
987
+ }]
988
+ }
785
989
  }
786
990
  };
787
991
  }
@@ -169,7 +169,7 @@ const formSchema = {
169
169
  }
170
170
  },
171
171
  };
172
- export const SingleFormItem = args => `<tttx-form_1_3_0 formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_3_0>`;
172
+ export const SingleFormItem = args => `<tttx-form_1_4_1 formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_4_1>`;
173
173
  SingleFormItem.args = {
174
174
  formSchema: {
175
175
  properties: {
@@ -192,7 +192,7 @@ SingleFormItem.args = {
192
192
  },
193
193
  },
194
194
  };
195
- export const StartAndEndDateWithoutTime = args => `<tttx-form_1_3_0 formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_3_0>`;
195
+ export const StartAndEndDateWithoutTime = args => `<tttx-form_1_4_1 formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_4_1>`;
196
196
  StartAndEndDateWithoutTime.args = {
197
197
  formSchema: {
198
198
  properties: {
@@ -207,7 +207,7 @@ StartAndEndDateWithoutTime.args = {
207
207
  },
208
208
  },
209
209
  };
210
- export const ExampleFormFromJSON = args => `<tttx-form_1_3_0 id='form' formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_3_0>
210
+ export const ExampleFormFromJSON = args => `<tttx-form_1_4_1 id='form' formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_4_1>
211
211
  <hr/>
212
212
  <button type='button' id='button'>Submit Form</button>
213
213
  <script>
@@ -408,7 +408,7 @@ const data = {
408
408
  'startend-endtime': '17:00',
409
409
  notes: 'Some notes that were entered into this box.'
410
410
  };
411
- export const PrePopulateForm = args => `<tttx-form_1_3_0 id='form' formSchema='${JSON.stringify(args.formSchema)}' data='${JSON.stringify(args.data)}'></tttx-form_1_3_0>
411
+ export const PrePopulateForm = args => `<tttx-form_1_4_1 id='form' formSchema='${JSON.stringify(args.formSchema)}' data='${JSON.stringify(args.data)}'></tttx-form_1_4_1>
412
412
  <hr/>
413
413
  <button type='button' id='button'>Submit Form</button>
414
414
  <script>
@@ -483,7 +483,7 @@ const radioFormSchema = {
483
483
  },
484
484
  },
485
485
  };
486
- export const FormWithRadio = args => `<tttx-form_1_3_0 id='form' formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_3_0>
486
+ export const FormWithRadio = args => `<tttx-form_1_4_1 id='form' formSchema='${JSON.stringify(args.formSchema)}'></tttx-form_1_4_1>
487
487
  <hr/>
488
488
  <button type='button' id='button'>Submit Form</button>
489
489
  <script>
@@ -48,9 +48,9 @@ export class TttxList {
48
48
  else {
49
49
  element = h("span", { class: "item-content" }, item.element);
50
50
  }
51
- 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 => {
51
+ return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_4_1", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
52
52
  this.onRowCheckboxHandler(event, item);
53
- } }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_3_0", { class: "align-right", icon: item.icon, color: 'black' })))));
53
+ } }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_4_1", { class: "align-right", icon: item.icon, color: 'black' })))));
54
54
  }
55
55
  render() {
56
56
  if (!this._data)
@@ -63,7 +63,7 @@ export class TttxList {
63
63
  this.onRowClickHandler(item);
64
64
  } }, this.renderListItem(item))))));
65
65
  }
66
- static get is() { return "tttx-list_1_3_0"; }
66
+ static get is() { return "tttx-list_1_4_1"; }
67
67
  static get encapsulation() { return "shadow"; }
68
68
  static get originalStyleUrls() {
69
69
  return {
@@ -10,26 +10,26 @@ export default {
10
10
  decorators: [withActions],
11
11
  };
12
12
  const TemplateStringList = ({ data }) => `
13
- <tttx-list_1_3_0
13
+ <tttx-list_1_4_1
14
14
  data='${JSON.stringify(data)}'
15
15
  id='list'
16
16
  name='stringList'
17
- ></tttx-list_1_3_0>
17
+ ></tttx-list_1_4_1>
18
18
  `;
19
19
  export const BasicStringList = TemplateStringList.bind({});
20
20
  BasicStringList.args = {
21
21
  data: [
22
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="green" /></span> Demulon 1,000,000' },
23
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="green" /></span> Patrick' },
24
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="orange" /></span> Lee', clickable: true },
25
- { element: '<span><tttx-icon_1_3_0 icon="egg" color="red" /></span> Ben' },
22
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="green" /></span> Demulon 1,000,000' },
23
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="green" /></span> Patrick' },
24
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="orange" /></span> Lee', clickable: true },
25
+ { element: '<span><tttx-icon_1_4_1 icon="egg" color="red" /></span> Ben' },
26
26
  ],
27
27
  };
28
28
  const TemplateObjectList = ({ data }) => `
29
- <tttx-list_1_3_0
29
+ <tttx-list_1_4_1
30
30
  id='objectList'
31
31
  name='objectList'
32
- ></tttx-list_1_3_0>
32
+ ></tttx-list_1_4_1>
33
33
  <script>
34
34
  if(!objectList) {
35
35
  const objectList = document.getElementId('objectList');
@@ -40,17 +40,17 @@ const TemplateObjectList = ({ data }) => `
40
40
  export const BasicObjectList = TemplateObjectList.bind({});
41
41
  BasicObjectList.args = {
42
42
  data: [
43
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" /></span> Demulon 1,000,000' },
44
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="red" /></span> Patrick' },
45
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="add" /></span> Lee' },
46
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" /></span> Ben' },
43
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" /></span> Demulon 1,000,000' },
44
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="red" /></span> Patrick' },
45
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="add" /></span> Lee' },
46
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" /></span> Ben' },
47
47
  ],
48
48
  };
49
49
  const TemplateClickableList = ({ data }) => `
50
- <tttx-list_1_3_0
50
+ <tttx-list_1_4_1
51
51
  id='clickableList'
52
52
  name='clickableList'
53
- ></tttx-list_1_3_0>
53
+ ></tttx-list_1_4_1>
54
54
  <script>
55
55
  if(!clickableList) {
56
56
  const clickableList = document.getElementId('clickableList');
@@ -64,21 +64,21 @@ BasicClickableList.args = {
64
64
  {
65
65
  clickable: true,
66
66
  icon: 'chevron_right',
67
- element: '<span><tttx-icon_1_3_0 icon="egg" /></span> Demulon 1,000,000',
67
+ element: '<span><tttx-icon_1_4_1 icon="egg" /></span> Demulon 1,000,000',
68
68
  rowData: '[{ "name": "Demulon 1,000,000" }]',
69
69
  },
70
- { clickable: true, icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="red" /></span> Emma', rowData: [{ name: 'Emma' }] },
71
- { clickable: true, icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="green" /></span> Eulogio', rowData: 'Eulogio' },
72
- { clickable: true, icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" color="red" /></span> Patrick' },
73
- { clickable: false, icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="add" /></span> Lee ' },
74
- { icon: 'chevron_right', element: '<span><tttx-icon_1_3_0 icon="egg" /></span> Ben' },
70
+ { clickable: true, icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="red" /></span> Emma', rowData: [{ name: 'Emma' }] },
71
+ { clickable: true, icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="green" /></span> Eulogio', rowData: 'Eulogio' },
72
+ { clickable: true, icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" color="red" /></span> Patrick' },
73
+ { clickable: false, icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="add" /></span> Lee ' },
74
+ { icon: 'chevron_right', element: '<span><tttx-icon_1_4_1 icon="egg" /></span> Ben' },
75
75
  ],
76
76
  };
77
77
  const TemplateWorkerList = ({ data }) => `
78
- <tttx-list_1_3_0
78
+ <tttx-list_1_4_1
79
79
  id='workersList'
80
80
  name='workersList'
81
- ></tttx-list_1_3_0>
81
+ ></tttx-list_1_4_1>
82
82
  <script>
83
83
  if(!workersList) {
84
84
  const workersList = document.getElementId('workersList');
@@ -107,17 +107,17 @@ WorkerList.args = {
107
107
  </li>
108
108
  <li>
109
109
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
110
- <tttx-tag_1_3_0 text="Driller" color="#F4DFFF"></tttx-tag_1_3_0>
111
- <tttx-tag_1_3_0 text="Offshore" color="#CEF4EB"></tttx-tag_1_3_0>
112
- <tttx-tag_1_3_0 text="3t Transform" color="#DDE6FA"></tttx-tag_1_3_0>
110
+ <tttx-tag_1_4_1 text="Driller" color="#F4DFFF"></tttx-tag_1_4_1>
111
+ <tttx-tag_1_4_1 text="Offshore" color="#CEF4EB"></tttx-tag_1_4_1>
112
+ <tttx-tag_1_4_1 text="3t Transform" color="#DDE6FA"></tttx-tag_1_4_1>
113
113
  </span>
114
114
  </li>
115
115
  <li>
116
116
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
117
- <span><tttx-icon_1_3_0 icon="school" color="gray" /></span><span><tttx-icon_1_3_0 icon="check_circle" color="green" /></span> 80%
117
+ <span><tttx-icon_1_4_1 icon="school" color="gray" /></span><span><tttx-icon_1_4_1 icon="check_circle" color="green" /></span> 80%
118
118
  </span>
119
119
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
120
- <span><tttx-icon_1_3_0 icon="verified_user" color="gray" /></span><span><tttx-icon_1_3_0 icon="warning" color="orange" /></span> 60%
120
+ <span><tttx-icon_1_4_1 icon="verified_user" color="gray" /></span><span><tttx-icon_1_4_1 icon="warning" color="orange" /></span> 60%
121
121
  </span>
122
122
  </li>
123
123
  </ul>
@@ -145,17 +145,17 @@ WorkerList.args = {
145
145
  </li>
146
146
  <li>
147
147
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
148
- <tttx-tag_1_3_0 text="Driller" color="#F4DFFF"></tttx-tag_1_3_0>
149
- <tttx-tag_1_3_0 text="Offshore" color="#CEF4EB"></tttx-tag_1_3_0>
150
- <tttx-tag_1_3_0 text="3t Transform" color="#DDE6FA"></tttx-tag_1_3_0>
148
+ <tttx-tag_1_4_1 text="Driller" color="#F4DFFF"></tttx-tag_1_4_1>
149
+ <tttx-tag_1_4_1 text="Offshore" color="#CEF4EB"></tttx-tag_1_4_1>
150
+ <tttx-tag_1_4_1 text="3t Transform" color="#DDE6FA"></tttx-tag_1_4_1>
151
151
  </span>
152
152
  </li>
153
153
  <li>
154
154
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
155
- <span><tttx-icon_1_3_0 icon="school" color="gray" /></span><span><tttx-icon_1_3_0 icon="check_circle" color="green" /></span> 80%
155
+ <span><tttx-icon_1_4_1 icon="school" color="gray" /></span><span><tttx-icon_1_4_1 icon="check_circle" color="green" /></span> 80%
156
156
  </span>
157
157
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
158
- <span><tttx-icon_1_3_0 icon="verified_user" color="gray" /></span><span><tttx-icon_1_3_0 icon="warning" color="orange" /></span> 60%
158
+ <span><tttx-icon_1_4_1 icon="verified_user" color="gray" /></span><span><tttx-icon_1_4_1 icon="warning" color="orange" /></span> 60%
159
159
  </span>
160
160
  </li>
161
161
  </ul>
@@ -184,17 +184,17 @@ WorkerList.args = {
184
184
  </li>
185
185
  <li>
186
186
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
187
- <tttx-tag_1_3_0 text="Driller" color="#F4DFFF"></tttx-tag_1_3_0>
188
- <tttx-tag_1_3_0 text="Offshore" color="#CEF4EB"></tttx-tag_1_3_0>
189
- <tttx-tag_1_3_0 text="3t Transform" color="#DDE6FA"></tttx-tag_1_3_0>
187
+ <tttx-tag_1_4_1 text="Driller" color="#F4DFFF"></tttx-tag_1_4_1>
188
+ <tttx-tag_1_4_1 text="Offshore" color="#CEF4EB"></tttx-tag_1_4_1>
189
+ <tttx-tag_1_4_1 text="3t Transform" color="#DDE6FA"></tttx-tag_1_4_1>
190
190
  </span>
191
191
  </li>
192
192
  <li>
193
193
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
194
- <span><tttx-icon_1_3_0 icon="school" color="gray" /></span><span><tttx-icon_1_3_0 icon="check_circle" color="green" /></span> 80%
194
+ <span><tttx-icon_1_4_1 icon="school" color="gray" /></span><span><tttx-icon_1_4_1 icon="check_circle" color="green" /></span> 80%
195
195
  </span>
196
196
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
197
- <span><tttx-icon_1_3_0 icon="verified_user" color="gray" /></span><span><tttx-icon_1_3_0 icon="warning" color="orange" /></span> 60%
197
+ <span><tttx-icon_1_4_1 icon="verified_user" color="gray" /></span><span><tttx-icon_1_4_1 icon="warning" color="orange" /></span> 60%
198
198
  </span>
199
199
  </li>
200
200
  </ul>
@@ -224,17 +224,17 @@ WorkerList.args = {
224
224
  </li>
225
225
  <li>
226
226
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
227
- <tttx-tag_1_3_0 text="Driller" color="#F4DFFF"></tttx-tag_1_3_0>
228
- <tttx-tag_1_3_0 text="Offshore" color="#CEF4EB"></tttx-tag_1_3_0>
229
- <tttx-tag_1_3_0 text="3t Transform" color="#DDE6FA"></tttx-tag_1_3_0>
227
+ <tttx-tag_1_4_1 text="Driller" color="#F4DFFF"></tttx-tag_1_4_1>
228
+ <tttx-tag_1_4_1 text="Offshore" color="#CEF4EB"></tttx-tag_1_4_1>
229
+ <tttx-tag_1_4_1 text="3t Transform" color="#DDE6FA"></tttx-tag_1_4_1>
230
230
  </span>
231
231
  </li>
232
232
  <li>
233
233
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
234
- <span><tttx-icon_1_3_0 icon="school" color="gray" /></span><span><tttx-icon_1_3_0 icon="check_circle" color="green" /></span> 80%
234
+ <span><tttx-icon_1_4_1 icon="school" color="gray" /></span><span><tttx-icon_1_4_1 icon="check_circle" color="green" /></span> 80%
235
235
  </span>
236
236
  <span style="padding: 8px; display: inline-flex; align-items: center; gap: 8px;">
237
- <span><tttx-icon_1_3_0 icon="verified_user" color="gray" /></span><span><tttx-icon_1_3_0 icon="warning" color="orange" /></span> 60%
237
+ <span><tttx-icon_1_4_1 icon="verified_user" color="gray" /></span><span><tttx-icon_1_4_1 icon="warning" color="orange" /></span> 60%
238
238
  </span>
239
239
  </li>
240
240
  </ul>
@@ -249,9 +249,9 @@ WorkerList.args = {
249
249
  icon: 'chevron_right',
250
250
  element: `
251
251
  <div style="display: flex; flex-direction: row; align-items: center; gap: 8px;">
252
- <span><tttx-icon_1_3_0 icon="check_circle" color="green" /></span>
252
+ <span><tttx-icon_1_4_1 icon="check_circle" color="green" /></span>
253
253
  Qualification row
254
- <tttx-tag_1_3_0 text="Vantage" color="#D5D5D5"></tttx-tag_1_3_0>
254
+ <tttx-tag_1_4_1 text="Vantage" color="#D5D5D5"></tttx-tag_1_4_1>
255
255
  <span style="color: #757575;">Awarded:</span> <span style="color: #212121;">10 Jan 2022</span>
256
256
  <span style="color: #757575;">Expiry:</span> <span style="color: #212121;">10 Jan 2023</span>
257
257
  </div>
@@ -263,9 +263,9 @@ WorkerList.args = {
263
263
  icon: 'chevron_right',
264
264
  element: `
265
265
  <div style="display: flex; flex-direction: row; align-items: center; gap: 8px;">
266
- <span><tttx-icon_1_3_0 icon="check_circle" color="green" /></span>
266
+ <span><tttx-icon_1_4_1 icon="check_circle" color="green" /></span>
267
267
  Qualification row
268
- <tttx-tag_1_3_0 text="Vantage" color="#D5D5D5"></tttx-tag_1_3_0>
268
+ <tttx-tag_1_4_1 text="Vantage" color="#D5D5D5"></tttx-tag_1_4_1>
269
269
  <span style="color: #757575;">Awarded:</span> <span style="color: #212121;">10 Jan 2022</span>
270
270
  <span style="color: #757575;">Expiry:</span> <span style="color: #212121;">10 Jan 2023</span>
271
271
  </div>
@@ -78,11 +78,11 @@ export class TttxMultiselectBox {
78
78
  const sanitisedHTML = DOMPurify.sanitize(option.html, domSanitiserOptions);
79
79
  // This is tested in e2e tests
80
80
  /* istanbul ignore next */
81
- 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 })));
81
+ 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_1", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
82
82
  }
83
83
  // This is tested in e2e tests
84
84
  /* istanbul ignore next */
85
- 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)));
85
+ 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_1", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
86
86
  }
87
87
  // This is tested in e2e tests
88
88
  /* istanbul ignore next */
@@ -114,13 +114,13 @@ export class TttxMultiselectBox {
114
114
  if (!this.unsavedSelectedItems)
115
115
  this.unsavedSelectedItems = this.safelyCloneArray(this._optionsData);
116
116
  const chevronIcon = this.open ? 'expand_less' : 'expand_more';
117
- 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 &&
117
+ 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_1", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
118
118
  /* istanbul ignore next */
119
- 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) => {
119
+ h("div", { class: "searchbox" }, h("tttx-standalone-input_1_4_1", { 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) => {
120
120
  return this.dropdownOption(option);
121
- })), 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"))))))));
121
+ })), h("div", { class: 'footer' }, h("tttx-button_1_4_1", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_4_1", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
122
122
  }
123
- static get is() { return "tttx-multiselect-box_1_3_0"; }
123
+ static get is() { return "tttx-multiselect-box_1_4_1"; }
124
124
  static get encapsulation() { return "shadow"; }
125
125
  static get originalStyleUrls() {
126
126
  return {