@3t-transform/threeteeui 1.4.1 → 1.5.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 (212) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button_1_4_1.cjs.entry.js → tttx-button_1_5_0.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption_1_4_1.cjs.entry.js → tttx-checkbox-group-caption_1_5_0.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading_1_4_1.cjs.entry.js → tttx-checkbox-group-heading_1_5_0.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_4_1.cjs.entry.js → tttx-checkbox-group_1_5_0.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_4_1.cjs.entry.js → tttx-checkbox_1_5_0.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-data-pattern_1_4_1.cjs.entry.js → tttx-data-pattern_1_5_0.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-dialog-box_1_4_1.cjs.entry.js → tttx-dialog-box_1_5_0.cjs.entry.js} +3 -3
  9. package/dist/cjs/{tttx-dialog_1_4_1.cjs.entry.js → tttx-dialog_1_5_0.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-expander_1_4_1.cjs.entry.js → tttx-expander_1_5_0.cjs.entry.js} +2 -2
  11. package/dist/cjs/{tttx-filter_1_4_1_4.cjs.entry.js → tttx-filter_1_5_0_4.cjs.entry.js} +9 -9
  12. package/dist/cjs/{tttx-form_1_4_1.cjs.entry.js → tttx-form_1_5_0.cjs.entry.js} +2 -2
  13. package/dist/cjs/{tttx-icon_1_4_1.cjs.entry.js → tttx-icon_1_5_0.cjs.entry.js} +1 -1
  14. package/dist/cjs/{tttx-keyvalue-block_1_4_1.cjs.entry.js → tttx-keyvalue-block_1_5_0.cjs.entry.js} +1 -1
  15. package/dist/cjs/{tttx-loading-spinner_1_4_1.cjs.entry.js → tttx-loading-spinner_1_5_0.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-multiselect-box_1_4_1.cjs.entry.js → tttx-multiselect-box_1_5_0.cjs.entry.js} +6 -6
  17. package/dist/cjs/{tttx-percentage-bar_1_4_1.cjs.entry.js → tttx-percentage-bar_1_5_0.cjs.entry.js} +2 -2
  18. package/dist/cjs/{tttx-qrcode_1_4_1.cjs.entry.js → tttx-qrcode_1_5_0.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-select-box_1_4_1.cjs.entry.js → tttx-select-box_1_5_0.cjs.entry.js} +34 -23
  20. package/dist/cjs/tttx-standalone-input_1_5_0.cjs.entry.js +94 -0
  21. package/dist/cjs/{tttx-tabs_1_4_1.cjs.entry.js → tttx-tabs_1_5_0.cjs.entry.js} +4 -4
  22. package/dist/cjs/{tttx-tag_1_4_1.cjs.entry.js → tttx-tag_1_5_0.cjs.entry.js} +1 -1
  23. package/dist/cjs/{tttx-textarea_1_4_1.cjs.entry.js → tttx-textarea_1_5_0.cjs.entry.js} +2 -2
  24. package/dist/cjs/{tttx-tree-view_1_4_1.cjs.entry.js → tttx-tree-view_1_5_0.cjs.entry.js} +12 -10
  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/tttx-form.js +2 -2
  55. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
  56. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  57. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
  58. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  59. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
  60. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.css +28 -1
  61. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +85 -22
  62. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +33 -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.css +52 -53
  74. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +12 -10
  75. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -38
  76. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
  77. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  78. package/dist/components/index.d.ts +26 -26
  79. package/dist/components/index.js +26 -26
  80. package/dist/components/tttx-button.js +5 -5
  81. package/dist/components/{tttx-button_1_4_1.d.ts → tttx-button_1_5_0.d.ts} +4 -4
  82. package/dist/components/{tttx-button_1_4_1.js → tttx-button_1_5_0.js} +2 -2
  83. package/dist/components/tttx-checkbox-group-caption_1_5_0.d.ts +11 -0
  84. package/dist/components/{tttx-checkbox-group-caption_1_4_1.js → tttx-checkbox-group-caption_1_5_0.js} +5 -5
  85. package/dist/components/tttx-checkbox-group-heading_1_5_0.d.ts +11 -0
  86. package/dist/components/{tttx-checkbox-group-heading_1_4_1.js → tttx-checkbox-group-heading_1_5_0.js} +5 -5
  87. package/dist/components/tttx-checkbox-group_1_5_0.d.ts +11 -0
  88. package/dist/components/{tttx-checkbox-group_1_4_1.js → tttx-checkbox-group_1_5_0.js} +5 -5
  89. package/dist/components/{tttx-expander_1_4_1.d.ts → tttx-checkbox_1_5_0.d.ts} +4 -4
  90. package/dist/components/{tttx-checkbox_1_4_1.js → tttx-checkbox_1_5_0.js} +7 -7
  91. package/dist/components/tttx-data-pattern_1_5_0.d.ts +11 -0
  92. package/dist/components/{tttx-data-pattern_1_4_1.js → tttx-data-pattern_1_5_0.js} +13 -13
  93. package/dist/components/{tttx-dialog-box_1_4_1.d.ts → tttx-dialog-box_1_5_0.d.ts} +4 -4
  94. package/dist/components/{tttx-dialog-box_1_4_1.js → tttx-dialog-box_1_5_0.js} +9 -9
  95. package/dist/components/{tttx-filter_1_4_1.d.ts → tttx-dialog_1_5_0.d.ts} +4 -4
  96. package/dist/components/{tttx-dialog_1_4_1.js → tttx-dialog_1_5_0.js} +8 -8
  97. package/dist/components/{tttx-checkbox_1_4_1.d.ts → tttx-expander_1_5_0.d.ts} +4 -4
  98. package/dist/components/{tttx-expander_1_4_1.js → tttx-expander_1_5_0.js} +7 -7
  99. package/dist/components/tttx-filter.js +6 -6
  100. package/dist/components/{tttx-qrcode_1_4_1.d.ts → tttx-filter_1_5_0.d.ts} +4 -4
  101. package/dist/components/{tttx-filter_1_4_1.js → tttx-filter_1_5_0.js} +2 -2
  102. package/dist/components/{tttx-icon_1_4_1.d.ts → tttx-form_1_5_0.d.ts} +4 -4
  103. package/dist/components/{tttx-form_1_4_1.js → tttx-form_1_5_0.js} +9 -9
  104. package/dist/components/tttx-icon.js +3 -3
  105. package/dist/components/{tttx-list_1_4_1.d.ts → tttx-icon_1_5_0.d.ts} +4 -4
  106. package/dist/components/{tttx-icon_1_4_1.js → tttx-icon_1_5_0.js} +2 -2
  107. package/dist/components/tttx-keyvalue-block_1_5_0.d.ts +11 -0
  108. package/dist/components/{tttx-keyvalue-block_1_4_1.js → tttx-keyvalue-block_1_5_0.js} +5 -5
  109. package/dist/components/tttx-list.js +6 -6
  110. package/dist/components/{tttx-form_1_4_1.d.ts → tttx-list_1_5_0.d.ts} +4 -4
  111. package/dist/components/{tttx-list_1_4_1.js → tttx-list_1_5_0.js} +2 -2
  112. package/dist/components/tttx-loading-spinner_1_5_0.d.ts +11 -0
  113. package/dist/components/{tttx-loading-spinner_1_4_1.js → tttx-loading-spinner_1_5_0.js} +5 -5
  114. package/dist/components/tttx-multiselect-box_1_5_0.d.ts +11 -0
  115. package/dist/components/{tttx-multiselect-box_1_4_1.js → tttx-multiselect-box_1_5_0.js} +13 -13
  116. package/dist/components/tttx-percentage-bar_1_5_0.d.ts +11 -0
  117. package/dist/components/{tttx-percentage-bar_1_4_1.js → tttx-percentage-bar_1_5_0.js} +6 -6
  118. package/dist/components/{tttx-dialog_1_4_1.d.ts → tttx-qrcode_1_5_0.d.ts} +4 -4
  119. package/dist/components/{tttx-qrcode_1_4_1.js → tttx-qrcode_1_5_0.js} +5 -5
  120. package/dist/components/tttx-select-box.js +41 -27
  121. package/dist/components/tttx-select-box_1_5_0.d.ts +11 -0
  122. package/dist/components/{tttx-select-box_1_4_1.js → tttx-select-box_1_5_0.js} +2 -2
  123. package/dist/components/tttx-sorter.js +5 -5
  124. package/dist/components/tttx-sorter_1_5_0.d.ts +11 -0
  125. package/dist/components/{tttx-sorter_1_4_1.js → tttx-sorter_1_5_0.js} +2 -2
  126. package/dist/components/tttx-standalone-input.js +6 -6
  127. package/dist/components/tttx-standalone-input_1_5_0.d.ts +11 -0
  128. package/dist/components/{tttx-standalone-input_1_4_1.js → tttx-standalone-input_1_5_0.js} +2 -2
  129. package/dist/components/{tttx-tabs_1_4_1.d.ts → tttx-tabs_1_5_0.d.ts} +4 -4
  130. package/dist/components/{tttx-tabs_1_4_1.js → tttx-tabs_1_5_0.js} +9 -9
  131. package/dist/components/{tttx-tag_1_4_1.d.ts → tttx-tag_1_5_0.d.ts} +4 -4
  132. package/dist/components/{tttx-tag_1_4_1.js → tttx-tag_1_5_0.js} +5 -5
  133. package/dist/components/tttx-textarea_1_5_0.d.ts +11 -0
  134. package/dist/components/{tttx-textarea_1_4_1.js → tttx-textarea_1_5_0.js} +6 -6
  135. package/dist/components/tttx-toolbar.js +3 -3
  136. package/dist/components/{tttx-toolbar_1_4_1.d.ts → tttx-toolbar_1_5_0.d.ts} +4 -4
  137. package/dist/components/{tttx-toolbar_1_4_1.js → tttx-toolbar_1_5_0.js} +2 -2
  138. package/dist/components/tttx-tree-view_1_5_0.d.ts +11 -0
  139. package/dist/components/{tttx-tree-view_1_4_1.js → tttx-tree-view_1_5_0.js} +19 -17
  140. package/dist/esm/loader.js +1 -1
  141. package/dist/esm/{tttx-button_1_4_1.entry.js → tttx-button_1_5_0.entry.js} +2 -2
  142. package/dist/esm/{tttx-checkbox-group-caption_1_4_1.entry.js → tttx-checkbox-group-caption_1_5_0.entry.js} +1 -1
  143. package/dist/esm/{tttx-checkbox-group-heading_1_4_1.entry.js → tttx-checkbox-group-heading_1_5_0.entry.js} +1 -1
  144. package/dist/esm/{tttx-checkbox-group_1_4_1.entry.js → tttx-checkbox-group_1_5_0.entry.js} +1 -1
  145. package/dist/esm/{tttx-checkbox_1_4_1.entry.js → tttx-checkbox_1_5_0.entry.js} +2 -2
  146. package/dist/esm/{tttx-data-pattern_1_4_1.entry.js → tttx-data-pattern_1_5_0.entry.js} +2 -2
  147. package/dist/esm/{tttx-dialog-box_1_4_1.entry.js → tttx-dialog-box_1_5_0.entry.js} +3 -3
  148. package/dist/esm/{tttx-dialog_1_4_1.entry.js → tttx-dialog_1_5_0.entry.js} +2 -2
  149. package/dist/esm/{tttx-expander_1_4_1.entry.js → tttx-expander_1_5_0.entry.js} +2 -2
  150. package/dist/esm/{tttx-filter_1_4_1_4.entry.js → tttx-filter_1_5_0_4.entry.js} +6 -6
  151. package/dist/esm/{tttx-form_1_4_1.entry.js → tttx-form_1_5_0.entry.js} +2 -2
  152. package/dist/esm/{tttx-icon_1_4_1.entry.js → tttx-icon_1_5_0.entry.js} +1 -1
  153. package/dist/esm/{tttx-keyvalue-block_1_4_1.entry.js → tttx-keyvalue-block_1_5_0.entry.js} +1 -1
  154. package/dist/esm/{tttx-loading-spinner_1_4_1.entry.js → tttx-loading-spinner_1_5_0.entry.js} +1 -1
  155. package/dist/esm/{tttx-multiselect-box_1_4_1.entry.js → tttx-multiselect-box_1_5_0.entry.js} +6 -6
  156. package/dist/esm/{tttx-percentage-bar_1_4_1.entry.js → tttx-percentage-bar_1_5_0.entry.js} +2 -2
  157. package/dist/esm/{tttx-qrcode_1_4_1.entry.js → tttx-qrcode_1_5_0.entry.js} +1 -1
  158. package/dist/esm/{tttx-select-box_1_4_1.entry.js → tttx-select-box_1_5_0.entry.js} +34 -23
  159. package/dist/esm/tttx-standalone-input_1_5_0.entry.js +90 -0
  160. package/dist/esm/{tttx-tabs_1_4_1.entry.js → tttx-tabs_1_5_0.entry.js} +4 -4
  161. package/dist/esm/{tttx-tag_1_4_1.entry.js → tttx-tag_1_5_0.entry.js} +1 -1
  162. package/dist/esm/{tttx-textarea_1_4_1.entry.js → tttx-textarea_1_5_0.entry.js} +2 -2
  163. package/dist/esm/{tttx-tree-view_1_4_1.entry.js → tttx-tree-view_1_5_0.entry.js} +13 -11
  164. package/dist/esm/tttx.js +1 -1
  165. package/dist/tttx/p-0e515960.entry.js +1 -1
  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-5fa512cb.entry.js +1 -0
  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-7077c8ed.entry.js +1 -0
  176. package/dist/tttx/p-796f699a.entry.js +1 -1
  177. package/dist/tttx/p-884f37d3.entry.js +1 -1
  178. package/dist/tttx/p-8b0b95b7.entry.js +1 -1
  179. package/dist/tttx/p-9434561e.entry.js +1 -1
  180. package/dist/tttx/p-983d63ff.entry.js +1 -1
  181. package/dist/tttx/p-a01e679a.entry.js +1 -1
  182. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  183. package/dist/tttx/p-c08a54f9.entry.js +1 -1
  184. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  185. package/dist/tttx/p-ee358ce4.entry.js +1 -1
  186. package/dist/tttx/p-f374e293.entry.js +1 -1
  187. package/dist/tttx/p-f4db1cf2.entry.js +1 -1
  188. package/dist/tttx/tttx.esm.js +1 -1
  189. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +6 -3
  190. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.stories.d.ts +17 -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/molecules/tttx-tree-view/tttx-tree-view.d.ts +4 -3
  194. package/dist/types/components.d.ts +310 -304
  195. package/package.json +1 -1
  196. package/dist/cjs/tttx-standalone-input_1_4_1.cjs.entry.js +0 -94
  197. package/dist/components/tttx-checkbox-group-caption_1_4_1.d.ts +0 -11
  198. package/dist/components/tttx-checkbox-group-heading_1_4_1.d.ts +0 -11
  199. package/dist/components/tttx-checkbox-group_1_4_1.d.ts +0 -11
  200. package/dist/components/tttx-data-pattern_1_4_1.d.ts +0 -11
  201. package/dist/components/tttx-keyvalue-block_1_4_1.d.ts +0 -11
  202. package/dist/components/tttx-loading-spinner_1_4_1.d.ts +0 -11
  203. package/dist/components/tttx-multiselect-box_1_4_1.d.ts +0 -11
  204. package/dist/components/tttx-percentage-bar_1_4_1.d.ts +0 -11
  205. package/dist/components/tttx-select-box_1_4_1.d.ts +0 -11
  206. package/dist/components/tttx-sorter_1_4_1.d.ts +0 -11
  207. package/dist/components/tttx-standalone-input_1_4_1.d.ts +0 -11
  208. package/dist/components/tttx-textarea_1_4_1.d.ts +0 -11
  209. package/dist/components/tttx-tree-view_1_4_1.d.ts +0 -11
  210. package/dist/esm/tttx-standalone-input_1_4_1.entry.js +0 -90
  211. package/dist/tttx/p-6deb8699.entry.js +0 -1
  212. package/dist/tttx/p-81aaafa0.entry.js +0 -1
@@ -1,12 +1,23 @@
1
1
  export default {
2
2
  title: 'molecules/Select Box',
3
3
  component: 'tttx-select-box',
4
+ argTypes: {
5
+ errorMsg: {
6
+ control: { type: 'text' },
7
+ },
8
+ showErrorBubble: {
9
+ control: { type: 'boolean' },
10
+ },
11
+ showErrorMsg: {
12
+ control: { type: 'boolean' },
13
+ },
14
+ },
4
15
  };
5
16
  const options = [
6
17
  { value: 'Bonnie', label: 'Steuber', description: 'Practical Course' },
7
18
  { value: 'Priscilla', label: 'Lowe', description: 'E-learn course' },
8
19
  { value: 'Andy', label: 'Thompson-Keebler', html: '<span style="color: red">Thompson-Keebler</span>' },
9
- { value: 'egg', label: 'egg', html: '<tttx-icon_1_4_1 icon="egg" />', description: 'Practical Course' },
20
+ { value: 'egg', label: 'egg', html: '<tttx-icon_1_5_0 icon="egg" />', description: 'Practical Course' },
10
21
  { value: 'Terence', label: 'Hyatt' },
11
22
  { value: 'Ruben', label: 'Toy', description: 'E-learn course' },
12
23
  { value: 'Rhiannon', label: 'Hills' },
@@ -21,14 +32,17 @@ const options = [
21
32
  { value: 'Ronaldo', label: 'Mann' },
22
33
  ];
23
34
  const TemplateHTMLSelectBox = args => `
24
- <tttx-select-box_1_4_1
35
+ <tttx-select-box_1_5_0
25
36
  id="htmlSelectBox"
26
37
  options-data='${JSON.stringify(args.optionsData)}'
27
38
  label='${args.label}'
28
39
  placeholder='${args.placeholder}'
29
40
  search-enabled='${args.searchEnabled}'
30
41
  inline='${args.inline}'
31
- ></tttx-select-box_1_4_1>
42
+ error-msg="${args.errorMsg}"
43
+ show-error-bubble="${args.showErrorBubble === false ? 'false' : 'true'}"
44
+ ${args.showErrorMsg ? 'show-error-msg' : ''}
45
+ ></tttx-select-box_1_5_0>
32
46
  <script>
33
47
  // Handle case where storybook renders this story twice
34
48
  if (!htmlSelectBox.length) {
@@ -46,13 +60,16 @@ BasicHTMLSelectBox.args = {
46
60
  inline: false,
47
61
  };
48
62
  const TemplateJSXSelectBox = args => `
49
- <tttx-select-box_1_4_1
63
+ <tttx-select-box_1_5_0
50
64
  id='objectSelectBox'
51
65
  label='${args.label}'
52
66
  placeholder='${args.placeholder}'
53
67
  search-enabled='${args.searchEnabled}'
54
68
  inline='${args.inline}'
55
- ></tttx-select-box_1_4_1>
69
+ error-msg="${args.errorMsg}"
70
+ show-error-bubble="${args.showErrorBubble === false ? 'false' : 'true'}"
71
+ ${args.showErrorMsg ? 'show-error-msg' : ''}
72
+ ></tttx-select-box_1_5_0>
56
73
  <script>
57
74
  objectSelectBox.optionsData = ${JSON.stringify(args.optionsData)}
58
75
  objectSelectBox.addEventListener('toggleOpen', (ev) => { console.log(ev) })
@@ -68,16 +85,16 @@ BasicJSXSelectBox.args = {
68
85
  inline: false,
69
86
  };
70
87
  const tagOptions = [
71
- { value: '1', label: 'Client', html: '<tttx-tag_1_4_1 text="Client" color="#f2bebe"></tttx-tag_1_4_1>' },
72
- { value: '2', label: 'Job Role', html: '<tttx-tag_1_4_1 text="Job Role" color="#f9e1be"></tttx-tag_1_4_1>' },
73
- { value: '3', label: 'Project', html: '<tttx-tag_1_4_1 text="Project" color="#e4ebc9"></tttx-tag_1_4_1>' },
88
+ { value: '1', label: 'Client', html: '<tttx-tag_1_5_0 text="Client" color="#f2bebe"></tttx-tag_1_5_0>' },
89
+ { value: '2', label: 'Job Role', html: '<tttx-tag_1_5_0 text="Job Role" color="#f9e1be"></tttx-tag_1_5_0>' },
90
+ { value: '3', label: 'Project', html: '<tttx-tag_1_5_0 text="Project" color="#e4ebc9"></tttx-tag_1_5_0>' },
74
91
  ];
75
92
  const TttxDialogBoxStory = ({ data }) => `
76
93
  <button onclick="openDialog()">Open</button>
77
- <tttx-dialog-box_1_4_1
94
+ <tttx-dialog-box_1_5_0
78
95
  id='dialogBox'
79
96
  allow-overflow='true'
80
- ></tttx-dialog-box_1_4_1>
97
+ ></tttx-dialog-box_1_5_0>
81
98
  <script>
82
99
  if(!dialogBox) {
83
100
  const dialogBox = document.getElementById('dialogBox');
@@ -103,7 +120,7 @@ DialogBoxWithDropdown.args = {
103
120
  isCustomHtml: true,
104
121
  customHtml: `
105
122
  <div style="padding: 5px; display: flex; gap: 16px; flex-direction: column">
106
- <tttx-select-box_1_4_1
123
+ <tttx-select-box_1_5_0
107
124
  id="htmlSelectBox"
108
125
  options-data='${JSON.stringify(tagOptions)}'
109
126
  label='Label'
@@ -111,17 +128,17 @@ DialogBoxWithDropdown.args = {
111
128
  search-enabled='${true}'
112
129
  inline='${false}'
113
130
  selected-value='${tagOptions[1].value}'
114
- ></tttx-select-box_1_4_1>
115
- <tttx-standalone-input_1_4_1
131
+ ></tttx-select-box_1_5_0>
132
+ <tttx-standalone-input_1_5_0
116
133
  label='Name'
117
134
  placeholder='Enter name'
118
- ></tttx-standalone-input_1_4_1>
119
- <tttx-select-box_1_4_1
135
+ ></tttx-standalone-input_1_5_0>
136
+ <tttx-select-box_1_5_0
120
137
  id="htmlSelectBox2"
121
138
  options-data='${JSON.stringify(options)}'
122
139
  label='Label 2'
123
140
  placeholder='Placeholder 2'
124
- ></tttx-select-box_1_4_1>
141
+ ></tttx-select-box_1_5_0>
125
142
  </div>
126
143
  `,
127
144
  },
@@ -98,11 +98,11 @@ export class TttxSorter {
98
98
  const selectedOption = this.selectedField;
99
99
  const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
100
100
  const sorterKey = `sorter__${this.sorterKey}`;
101
- return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon_1_4_1", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_4_1", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
101
+ return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon_1_5_0", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_5_0", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
102
102
  return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
103
103
  }))))));
104
104
  }
105
- static get is() { return "tttx-sorter_1_4_1"; }
105
+ static get is() { return "tttx-sorter_1_5_0"; }
106
106
  static get encapsulation() { return "shadow"; }
107
107
  static get originalStyleUrls() {
108
108
  return {
@@ -23,7 +23,7 @@ export default {
23
23
  const TemplateSorter = ({ fieldOptionsData, sorterKey, defaultOption }) => {
24
24
  return `
25
25
  <div style='width: 250px;'>
26
- <tttx-sorter_1_4_1
26
+ <tttx-sorter_1_5_0
27
27
  field-options-data='${JSON.stringify(fieldOptionsData)}'
28
28
  default-option='${defaultOption}'
29
29
  sorter-key='${sorterKey}'/>
@@ -72,9 +72,9 @@ export class TttxInput {
72
72
  this.iconleft ? 'has-left-icon' : '',
73
73
  this.iconright ? 'has-right-icon' : '',
74
74
  ].join(' ');
75
- return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_4_1", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_4_1", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_4_1", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
75
+ return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_5_0", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_5_0", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_5_0", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
76
76
  }
77
- static get is() { return "tttx-standalone-input_1_4_1"; }
77
+ static get is() { return "tttx-standalone-input_1_5_0"; }
78
78
  static get encapsulation() { return "scoped"; }
79
79
  static get originalStyleUrls() {
80
80
  return {
@@ -360,10 +360,10 @@ export class TttxInput {
360
360
  "docs": {
361
361
  "tags": [{
362
362
  "name": "example",
363
- "text": "<caption>In HTML (like `index.html`)</caption>\n<tttx-standalone-input_1_4_1 input-index=\"1\" />"
363
+ "text": "<caption>In HTML (like `index.html`)</caption>\n<tttx-standalone-input_1_5_0 input-index=\"1\" />"
364
364
  }, {
365
365
  "name": "example",
366
- "text": "<caption>In TSX files</caption>\n<tttx-standalone-input_1_4_1 inputindex={1} />"
366
+ "text": "<caption>In TSX files</caption>\n<tttx-standalone-input_1_5_0 inputindex={1} />"
367
367
  }],
368
368
  "text": "tabindex - Allows the HTML elements to be focusable"
369
369
  },
@@ -95,7 +95,7 @@ export default {
95
95
  },
96
96
  };
97
97
  const TemplateTextInput = ({ iconleft, iconleftcolor, iconright, iconrightcolor, inputicon, inputiconcolor, label, secondarylabel, errormsg, showerrorbubble, showerrormsg, inline, checked, disabled, max, maxlength, min, minlength, name, pattern, placeholder, readonly, required, step, type, value, }) => `
98
- <tttx-standalone-input_1_4_1
98
+ <tttx-standalone-input_1_5_0
99
99
  iconleft="${iconleft || ''}"
100
100
  iconleftcolor="${iconleftcolor || ''}"
101
101
  iconright="${iconright || ''}"
@@ -70,13 +70,13 @@ export class TttxTabs {
70
70
  return;
71
71
  }
72
72
  const selectedTab = this._tabs.find(tab => tab.selected);
73
- return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_4_1", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(tab => {
73
+ return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_5_0", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(tab => {
74
74
  return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
75
75
  this.handleTabClick(tab);
76
76
  } }, tab.tabName));
77
- })), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_4_1", { icon: "navigate_next", color: "black" })))), selectedTab && (h("article", { key: selectedTab.id, id: selectedTab.controls, role: "tabpanel", tabindex: "0", "aria-labelledby": selectedTab.id, "aria-expanded": selectedTab.selected, innerHTML: DOMPurify.sanitize(selectedTab.pageContent, domSanitiserOptions), hidden: !selectedTab.selected })))));
77
+ })), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_5_0", { icon: "navigate_next", color: "black" })))), selectedTab && (h("article", { key: selectedTab.id, id: selectedTab.controls, role: "tabpanel", tabindex: "0", "aria-labelledby": selectedTab.id, "aria-expanded": selectedTab.selected, innerHTML: DOMPurify.sanitize(selectedTab.pageContent, domSanitiserOptions), hidden: !selectedTab.selected })))));
78
78
  }
79
- static get is() { return "tttx-tabs_1_4_1"; }
79
+ static get is() { return "tttx-tabs_1_5_0"; }
80
80
  static get encapsulation() { return "scoped"; }
81
81
  static get originalStyleUrls() {
82
82
  return {
@@ -10,12 +10,12 @@ export default {
10
10
  decorators: [withActions],
11
11
  };
12
12
  const Default = ({ tabsName, navigation, wide, tabs }) => `
13
- <tttx-tabs_1_4_1
13
+ <tttx-tabs_1_5_0
14
14
  tabsName='${tabsName}'
15
15
  navigation='${navigation}'
16
16
  wide='${wide}'
17
17
  tabs='${JSON.stringify(tabs)}'
18
- ></tttx-tabs_1_4_1>
18
+ ></tttx-tabs_1_5_0>
19
19
  `;
20
20
  export const DefaultTabs = Default.bind({});
21
21
  DefaultTabs.args = {
@@ -50,12 +50,12 @@ DefaultTabs.args = {
50
50
  ],
51
51
  };
52
52
  const TabsWithNavigation = ({ tabsName, navigation, wide, tabs }) => `
53
- <tttx-tabs_1_4_1
53
+ <tttx-tabs_1_5_0
54
54
  tabsName='${tabsName}'
55
55
  navigation='${navigation}'
56
56
  wide='${wide}'
57
57
  tabs='${JSON.stringify(tabs)}'
58
- ></tttx-tabs_1_4_1>
58
+ ></tttx-tabs_1_5_0>
59
59
  `;
60
60
  export const NavigationTabs = TabsWithNavigation.bind({});
61
61
  NavigationTabs.args = {
@@ -42,7 +42,7 @@ export class TttxTextarea {
42
42
  const classNames = [this.showerrormsg ? 'invalid' : '', !this.label && this.required ? 'no-label' : ''].join(' ');
43
43
  return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: "textarea-container" }, h("textarea", { rows: this.rows, class: classNames, autofocus: this.textareaautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, disabled: this.disabled, maxlength: this.maxlength, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
44
44
  }
45
- static get is() { return "tttx-textarea_1_4_1"; }
45
+ static get is() { return "tttx-textarea_1_5_0"; }
46
46
  static get encapsulation() { return "scoped"; }
47
47
  static get originalStyleUrls() {
48
48
  return {
@@ -206,10 +206,10 @@ export class TttxTextarea {
206
206
  "docs": {
207
207
  "tags": [{
208
208
  "name": "example",
209
- "text": "<caption>In HTML (like `index.html`)</caption>\n<tttx-textarea_1_4_1 input-index=\"1\" />"
209
+ "text": "<caption>In HTML (like `index.html`)</caption>\n<tttx-textarea_1_5_0 input-index=\"1\" />"
210
210
  }, {
211
211
  "name": "example",
212
- "text": "<caption>In TSX files</caption>\n<tttx-textarea_1_4_1 inputindex={1} />"
212
+ "text": "<caption>In TSX files</caption>\n<tttx-textarea_1_5_0 inputindex={1} />"
213
213
  }],
214
214
  "text": "tabindex - Allows the HTML elements to be focusable"
215
215
  },
@@ -53,7 +53,7 @@ export default {
53
53
  },
54
54
  };
55
55
  const TemplateTextarea = ({ iconleft, iconleftcolor, iconright, iconrightcolor, inputicon, inputiconcolor, label, secondarylabel, errormsg, showerrorbubble, showerrormsg, disabled, maxlength, minlength, name, pattern, placeholder, readonly, required, resize = false, rows, type, value, }) => `
56
- <tttx-textarea_1_4_1
56
+ <tttx-textarea_1_5_0
57
57
  iconleft="${iconleft || ''}"
58
58
  iconleftcolor="${iconleftcolor || ''}"
59
59
  iconright="${iconright || ''}"
@@ -22,7 +22,7 @@ export class TttxToolbar {
22
22
  render() {
23
23
  return (h(Host, null, h("div", { class: `container ${this.border ? 'bordered' : ''} ${this.viewSize}` }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' }))));
24
24
  }
25
- static get is() { return "tttx-toolbar_1_4_1"; }
25
+ static get is() { return "tttx-toolbar_1_5_0"; }
26
26
  static get encapsulation() { return "shadow"; }
27
27
  static get originalStyleUrls() {
28
28
  return {
@@ -8,63 +8,63 @@ export default {
8
8
  },
9
9
  };
10
10
  const Default = ({ border }) => `
11
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
12
- <span slot="before"><tttx-button_1_4_1 design="primary">Before</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1></span>
13
- <span slot="center"><tttx-button_1_4_1 design="primary">Center</tttx-button_1_4_1></span>
14
- <span slot="after"><tttx-button_1_4_1 design="primary">After</tttx-button_1_4_1></span>
15
- </tttx-toolbar_1_4_1>
11
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
12
+ <span slot="before"><tttx-button_1_5_0 design="primary">Before</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0></span>
13
+ <span slot="center"><tttx-button_1_5_0 design="primary">Center</tttx-button_1_5_0></span>
14
+ <span slot="after"><tttx-button_1_5_0 design="primary">After</tttx-button_1_5_0></span>
15
+ </tttx-toolbar_1_5_0>
16
16
  `;
17
17
  export const DefaultToolbar = Default.bind({});
18
18
  DefaultToolbar.args = {
19
19
  border: true
20
20
  };
21
21
  const TallElements = ({ border }) => `
22
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
23
- <span slot="before"><tttx-button_1_4_1 design="primary">Before</tttx-button_1_4_1><div style="position: relative; top: 18px;"><tttx-standalone-input_1_4_1 placeholder="before" label="search" required showerrorbubble="false" inputicon="search" /></div></span>
24
- <span slot="center"><div style="position: relative; top: 17px;"><tttx-standalone-input_1_4_1 placeholder="center" inline required showerrorbubble="false" inputicon="search" /></div></span>
25
- <span slot="after"><div style="position: relative; top: 22px;"><tttx-keyvalue-block_1_4_1 horizontal keyvalues='{"Position":"after"}' /></div></span>
26
- </tttx-toolbar_1_4_1>
22
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
23
+ <span slot="before"><tttx-button_1_5_0 design="primary">Before</tttx-button_1_5_0><div style="position: relative; top: 18px;"><tttx-standalone-input_1_5_0 placeholder="before" label="search" required showerrorbubble="false" inputicon="search" /></div></span>
24
+ <span slot="center"><div style="position: relative; top: 17px;"><tttx-standalone-input_1_5_0 placeholder="center" inline required showerrorbubble="false" inputicon="search" /></div></span>
25
+ <span slot="after"><div style="position: relative; top: 22px;"><tttx-keyvalue-block_1_5_0 horizontal keyvalues='{"Position":"after"}' /></div></span>
26
+ </tttx-toolbar_1_5_0>
27
27
  `;
28
28
  export const TallElementsToolbar = TallElements.bind({});
29
29
  TallElementsToolbar.args = {
30
30
  border: true
31
31
  };
32
32
  const WrapElements = ({ border }) => `
33
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
34
- <span slot="before"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_4_1 design="primary">Button One</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Three</tttx-button_1_4_1></div></span>
35
- <span slot="center"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_4_1 design="primary">Button One</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Three</tttx-button_1_4_1></div></span>
36
- <span slot="after"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_4_1 design="primary">Button One</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Three</tttx-button_1_4_1></div></span>
37
- </tttx-toolbar_1_4_1>
33
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
34
+ <span slot="before"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_5_0 design="primary">Button One</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Three</tttx-button_1_5_0></div></span>
35
+ <span slot="center"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_5_0 design="primary">Button One</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Three</tttx-button_1_5_0></div></span>
36
+ <span slot="after"><div style="width: 125px;display: flex;gap: 8px;flex-wrap: wrap;"><tttx-button_1_5_0 design="primary">Button One</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Three</tttx-button_1_5_0></div></span>
37
+ </tttx-toolbar_1_5_0>
38
38
  `;
39
39
  export const WrapElementsToolbar = WrapElements.bind({});
40
40
  WrapElementsToolbar.args = {
41
41
  border: true
42
42
  };
43
43
  const LeftToolbar = ({ border }) => `
44
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
45
- <span slot="before"><tttx-button_1_4_1 design="primary">Before</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1></span>
46
- </tttx-toolbar_1_4_1>
44
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
45
+ <span slot="before"><tttx-button_1_5_0 design="primary">Before</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0></span>
46
+ </tttx-toolbar_1_5_0>
47
47
  `;
48
48
  export const LeftToolbarOnly = LeftToolbar.bind({});
49
49
  LeftToolbarOnly.args = {
50
50
  border: true
51
51
  };
52
52
  const CenterToolbar = ({ border }) => `
53
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
53
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
54
54
  <span slot='before'></span>
55
- <span slot="center"><tttx-button_1_4_1 design="primary">Before</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1></span>
55
+ <span slot="center"><tttx-button_1_5_0 design="primary">Before</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0></span>
56
56
  <span slot='after'></span>
57
- </tttx-toolbar_1_4_1>
57
+ </tttx-toolbar_1_5_0>
58
58
  `;
59
59
  export const CenterToolbarOnly = CenterToolbar.bind({});
60
60
  CenterToolbarOnly.args = {
61
61
  border: true
62
62
  };
63
63
  const TwoColumn = ({ border }) => `
64
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
65
- <span slot="before"><tttx-button_1_4_1 design="primary">Before</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1></span>
66
- <span slot='after'><tttx-button_1_4_1 design="primary">After</tttx-button_1_4_1><tttx-button_1_4_1 design="primary">Button Two</tttx-button_1_4_1></span>
67
- </tttx-toolbar_1_4_1>
64
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
65
+ <span slot="before"><tttx-button_1_5_0 design="primary">Before</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0></span>
66
+ <span slot='after'><tttx-button_1_5_0 design="primary">After</tttx-button_1_5_0><tttx-button_1_5_0 design="primary">Button Two</tttx-button_1_5_0></span>
67
+ </tttx-toolbar_1_5_0>
68
68
  `;
69
69
  export const TwoColumnToolbar = TwoColumn.bind({});
70
70
  TwoColumnToolbar.args = {
@@ -87,34 +87,34 @@ const selectOptions = JSON.stringify([
87
87
  { value: 'Ronaldo', label: 'Mann' },
88
88
  ]);
89
89
  const LongItems = ({ border }) => `
90
- <tttx-toolbar_1_4_1 border="${border ? 'true' : 'false'}">
90
+ <tttx-toolbar_1_5_0 border="${border ? 'true' : 'false'}">
91
91
  <span slot="before">
92
92
  <div style="width: 350px">
93
- <tttx-select-box_1_4_1
93
+ <tttx-select-box_1_5_0
94
94
  id="htmlSelectBox"
95
95
  options-data='${selectOptions}'
96
96
  placeholder='Select a name'
97
97
  label=''
98
98
  inline='true'
99
- ></tttx-select-box_1_4_1>
99
+ ></tttx-select-box_1_5_0>
100
100
  </div>
101
- <tttx-button_1_4_1>
101
+ <tttx-button_1_5_0>
102
102
  This is a very long button
103
- </tttx-button_1_4_1>
104
- <tttx-button_1_4_1>
103
+ </tttx-button_1_5_0>
104
+ <tttx-button_1_5_0>
105
105
  This is a very long button
106
- </tttx-button_1_4_1>
107
- <tttx-button_1_4_1>
106
+ </tttx-button_1_5_0>
107
+ <tttx-button_1_5_0>
108
108
  This is a very long button
109
- </tttx-button_1_4_1>
109
+ </tttx-button_1_5_0>
110
110
  </span>
111
111
  <span slot="center">
112
- <tttx-button_1_4_1>
112
+ <tttx-button_1_5_0>
113
113
  This is a very long button in the middle
114
- </tttx-button_1_4_1>
114
+ </tttx-button_1_5_0>
115
115
  </span>
116
116
  <span slot="after"></span>
117
- </tttx-toolbar_1_4_1>
117
+ </tttx-toolbar_1_5_0>
118
118
  `;
119
119
  export const LongItemsToolbar = LongItems.bind({});
120
120
  LongItemsToolbar.args = {
@@ -2,32 +2,64 @@
2
2
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
3
  }
4
4
 
5
- .tree-view-element {
6
- margin-left: -50px;
5
+ .tree-view-element > ul {
6
+ margin: 0;
7
+ padding: 0;
7
8
  }
8
-
9
- .inline-tree-item {
9
+ .tree-view-element > * ul {
10
+ padding: 0 0 0 36px;
11
+ }
12
+ .tree-view-element ul li {
13
+ list-style-type: none;
14
+ }
15
+ .tree-view-element ul li.inline-tree-item {
10
16
  display: flex;
11
17
  align-items: center;
12
18
  }
13
-
14
- .element {
19
+ .tree-view-element ul li.inline-tree-item .element {
15
20
  display: flex;
16
21
  flex-flow: row nowrap;
17
22
  justify-content: flex-start;
18
23
  align-items: center;
19
24
  width: 100%;
25
+ padding-left: 8px;
20
26
  }
21
-
22
- .element-row {
27
+ .tree-view-element ul li.inline-tree-item .element .padding-icon {
28
+ padding: 6px;
29
+ height: 24px;
30
+ width: 24px;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ }
35
+ @media (hover: hover) {
36
+ .tree-view-element ul li.inline-tree-item.element-row.rowHover:hover {
37
+ cursor: pointer;
38
+ }
39
+ .tree-view-element ul li.inline-tree-item.element-row.rowHover:hover::before {
40
+ content: "";
41
+ position: absolute;
42
+ left: -50%;
43
+ top: 0;
44
+ bottom: 0;
45
+ right: 0;
46
+ pointer-events: none;
47
+ }
48
+ .tree-view-element ul li.inline-tree-item.element-row.rowHover:not(.rowSelected):hover::before {
49
+ background-color: rgba(17, 17, 17, 0.05);
50
+ }
51
+ .tree-view-element ul li.inline-tree-item.element-row.rowHover.rowSelected:hover::before {
52
+ background-color: rgba(17, 17, 17, 0.15);
53
+ }
54
+ }
55
+ .tree-view-element ul li.inline-tree-item.element-row {
23
56
  min-height: 36px;
24
57
  font-family: "Roboto", serif;
25
58
  font-size: 16px;
26
59
  padding: 8px 0px;
27
60
  position: relative;
28
61
  }
29
-
30
- .element-row::before {
62
+ .tree-view-element ul li.inline-tree-item.element-row::before {
31
63
  content: "";
32
64
  position: absolute;
33
65
  left: -50%;
@@ -36,8 +68,7 @@
36
68
  border-bottom: 1px solid #d5d5d5;
37
69
  pointer-events: none;
38
70
  }
39
-
40
- .element-row.rowSelected::before {
71
+ .tree-view-element ul li.inline-tree-item.element-row.rowSelected::before {
41
72
  content: "";
42
73
  position: absolute;
43
74
  left: -50%;
@@ -47,52 +78,20 @@
47
78
  background-color: rgba(17, 17, 17, 0.1);
48
79
  pointer-events: none;
49
80
  }
50
-
51
- li {
52
- list-style-type: none;
81
+ .tree-view-element ul li.inline-tree-item.element-row.tree-node::before {
82
+ background-color: #fafafa;
83
+ height: 51px;
84
+ z-index: 1;
53
85
  }
54
-
55
- .toggleNode {
56
- padding-right: 3px;
86
+ .tree-view-element ul li.inline-tree-item.element-row.tree-node * {
87
+ z-index: 2;
57
88
  }
58
-
59
- .padding-icon {
60
- padding: 6px 6px;
61
- height: 24px;
62
- width: 24px;
63
- display: flex;
64
- align-items: center;
65
- justify-content: center;
66
- }
67
-
68
- .treeNode {
89
+ .tree-view-element ul li.inline-tree-item.element-row .treeNode {
69
90
  width: 100%;
70
91
  font-weight: 500;
92
+ color: #212121;
71
93
  }
72
-
73
- .treeLeaf {
94
+ .tree-view-element ul li.inline-tree-item.element-row .treeLeaf {
74
95
  width: 100%;
75
96
  font-weight: 400;
76
- }
77
-
78
- .borderless:active {
79
- outline-style: none;
80
- }
81
-
82
- @media (hover: hover) {
83
- .element-row.rowHover:hover {
84
- cursor: pointer;
85
- }
86
-
87
- .element-row.rowHover:hover::before {
88
- content: "";
89
- position: absolute;
90
- left: -50%;
91
- top: 0;
92
- bottom: 0;
93
- background-color: rgba(17, 17, 17, 0.05);
94
- opacity: 0.5;
95
- right: 0;
96
- pointer-events: none;
97
- }
98
97
  }
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { h } from '@stencil/core';
2
+ import { h, Fragment } from '@stencil/core';
3
3
  import * as DOMPurify from 'dompurify';
4
4
  import domSanitiserOptions from '../../../shared/domsanitiser.options';
5
5
  export class TttxTreeView {
@@ -7,6 +7,11 @@ export class TttxTreeView {
7
7
  this.data = undefined;
8
8
  this.treeData = undefined;
9
9
  }
10
+ componentWillRender() {
11
+ if (!this.data)
12
+ return;
13
+ this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
14
+ }
10
15
  onClickHandler(event, node) {
11
16
  event.stopPropagation();
12
17
  this.clickEvent.emit(node);
@@ -49,35 +54,32 @@ export class TttxTreeView {
49
54
  renderNode(node) {
50
55
  const options = this.treeConfigs(node);
51
56
  if (node.child) {
52
- return (h("li", null, h("div", { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, onClick: (event) => {
57
+ return (h(Fragment, null, h("li", { class: `inline-tree-item element-row tree-node ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
53
58
  if (node.hasHover) {
54
- event.stopPropagation();
55
59
  this.onClickHandler(event, node);
56
60
  }
57
- } }, h("tttx-button_1_4_1", { class: "toggleNode", design: "borderless-circle", notext: true, icon: options.expanderIcon, color: "black", onClick: event => this.toggleNode(node, event) }), this.htmlcode('treeNode', node, options.checkboxIcon, options.checkboxColor)), node.isOpen ? (h("ul", null, h("div", { class: "child-node" }, node.child.map(childNode => {
61
+ } }, h("tttx-button_1_5_0", { class: "toggleNode", design: "borderless-circle", notext: true, icon: options.expanderIcon, color: "black", onClick: event => this.toggleNode(node, event) }), this.htmlcode('treeNode', node, options.checkboxIcon, options.checkboxColor)), node.isOpen ? (h("li", null, h("ul", null, node.child.map(childNode => {
58
62
  return this.renderNode(childNode);
59
63
  })))) : null));
60
64
  }
61
65
  else {
62
- return (h("li", null, h("div", { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, onClick: (event) => {
66
+ return (h("li", { class: `inline-tree-item element-row ${options.rowHoverActive} ${options.selectedActive}`, onClick: event => {
63
67
  if (node.hasHover) {
64
- event.stopPropagation();
65
68
  this.onClickHandler(event, node);
66
69
  }
67
- } }, this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor))));
70
+ } }, this.htmlcode('treeLeaf', node, options.checkboxIcon, options.checkboxColor)));
68
71
  }
69
72
  }
70
73
  htmlcode(type, node, check_box, check_boxColor) {
71
- const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button_1_4_1", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && h("tttx-icon_1_4_1", { icon: node.icon, color: node.iconColor, class: "padding-icon" }), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: DOMPurify.sanitize(node.html, domSanitiserOptions) })));
74
+ const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button_1_5_0", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && (h("tttx-icon_1_5_0", { icon: node.icon, color: node.iconColor, class: "padding-icon" })), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: DOMPurify.sanitize(node.html, domSanitiserOptions) })));
72
75
  return htmlcode;
73
76
  }
74
77
  render() {
75
78
  if (!this.data)
76
79
  return;
77
- this.treeData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data;
78
80
  return (h("div", { class: "tree-view-element" }, h("ul", null, this.treeData.map((node) => this.renderNode(node)))));
79
81
  }
80
- static get is() { return "tttx-tree-view_1_4_1"; }
82
+ static get is() { return "tttx-tree-view_1_5_0"; }
81
83
  static get encapsulation() { return "shadow"; }
82
84
  static get originalStyleUrls() {
83
85
  return {