@3t-transform/threeteeui 1.9.43 → 1.9.45

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 (260) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tttx-action-dropdown_1_9_45.cjs.entry.js +61 -0
  3. package/dist/cjs/{tttx-button_1_9_43.cjs.entry.js → tttx-button_1_9_45.cjs.entry.js} +2 -2
  4. package/dist/cjs/{tttx-checkbox-group-caption_1_9_43.cjs.entry.js → tttx-checkbox-group-caption_1_9_45.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group-heading_1_9_43.cjs.entry.js → tttx-checkbox-group-heading_1_9_45.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox-group_1_9_43.cjs.entry.js → tttx-checkbox-group_1_9_45.cjs.entry.js} +1 -1
  7. package/dist/cjs/{tttx-checkbox_1_9_43.cjs.entry.js → tttx-checkbox_1_9_45.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-comments_1_9_43.cjs.entry.js → tttx-comments_1_9_45.cjs.entry.js} +14 -5
  9. package/dist/cjs/{tttx-data-pattern_1_9_43.cjs.entry.js → tttx-data-pattern_1_9_45.cjs.entry.js} +5 -5
  10. package/dist/cjs/{tttx-datacard_1_9_43.cjs.entry.js → tttx-datacard_1_9_45.cjs.entry.js} +4 -4
  11. package/dist/cjs/{tttx-dialog-box_1_9_43.cjs.entry.js → tttx-dialog-box_1_9_45.cjs.entry.js} +3 -3
  12. package/dist/cjs/{tttx-dialog_1_9_43.cjs.entry.js → tttx-dialog_1_9_45.cjs.entry.js} +2 -2
  13. package/dist/cjs/{tttx-expander_1_9_43.cjs.entry.js → tttx-expander_1_9_45.cjs.entry.js} +2 -2
  14. package/dist/cjs/{tttx-filter_1_9_43_4.cjs.entry.js → tttx-filter_1_9_45_4.cjs.entry.js} +9 -9
  15. package/dist/cjs/{tttx-form_1_9_43.cjs.entry.js → tttx-form_1_9_45.cjs.entry.js} +2 -2
  16. package/dist/cjs/{tttx-graph_1_9_43.cjs.entry.js → tttx-graph_1_9_45.cjs.entry.js} +1 -1
  17. package/dist/cjs/{tttx-icon_1_9_43.cjs.entry.js → tttx-icon_1_9_45.cjs.entry.js} +1 -1
  18. package/dist/cjs/{tttx-keyvalue-block_1_9_43.cjs.entry.js → tttx-keyvalue-block_1_9_45.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-loading-spinner_1_9_43_3.cjs.entry.js → tttx-loading-spinner_1_9_45_3.cjs.entry.js} +6 -6
  20. package/dist/cjs/{tttx-multiselect-box_1_9_43.cjs.entry.js → tttx-multiselect-box_1_9_45.cjs.entry.js} +7 -7
  21. package/dist/cjs/{tttx-percentage-bar_1_9_43.cjs.entry.js → tttx-percentage-bar_1_9_45.cjs.entry.js} +2 -2
  22. package/dist/cjs/{tttx-qrcode_1_9_43.cjs.entry.js → tttx-qrcode_1_9_45.cjs.entry.js} +1 -1
  23. package/dist/cjs/{tttx-select-box_1_9_43.cjs.entry.js → tttx-select-box_1_9_45.cjs.entry.js} +6 -6
  24. package/dist/cjs/{tttx-skeleton_loader_1_9_43.cjs.entry.js → tttx-skeleton_loader_1_9_45.cjs.entry.js} +1 -1
  25. package/dist/cjs/{tttx-table_1_9_43.cjs.entry.js → tttx-table_1_9_45.cjs.entry.js} +1 -1
  26. package/dist/cjs/{tttx-tabs_1_9_43.cjs.entry.js → tttx-tabs_1_9_45.cjs.entry.js} +4 -4
  27. package/dist/cjs/{tttx-textarea_1_9_43.cjs.entry.js → tttx-textarea_1_9_45.cjs.entry.js} +2 -2
  28. package/dist/cjs/{tttx-toggle_1_9_43.cjs.entry.js → tttx-toggle_1_9_45.cjs.entry.js} +1 -1
  29. package/dist/cjs/{tttx-tree-view_1_9_43.cjs.entry.js → tttx-tree-view_1_9_45.cjs.entry.js} +3 -3
  30. package/dist/cjs/tttx.cjs.js +1 -1
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  33. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  34. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  35. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  36. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  37. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  38. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  39. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  40. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  41. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  42. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  43. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +2 -2
  44. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  45. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  46. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  47. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  48. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +1 -1
  49. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
  50. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  51. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  52. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  53. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.css +109 -0
  54. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +213 -0
  55. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +62 -0
  56. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  57. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  58. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  59. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  60. package/dist/collection/components/molecules/tttx-comments/tttx-comments.css +13 -0
  61. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +116 -4
  62. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +1 -1
  63. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  64. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  65. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  66. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  67. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  68. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  69. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  70. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  71. package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -2
  72. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +8 -8
  73. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  74. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  75. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  76. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  77. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +7 -7
  78. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
  79. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
  80. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
  81. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  82. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  83. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  84. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  85. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  86. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  87. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  88. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  89. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  90. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  91. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  92. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  93. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  94. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  95. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  96. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  97. package/dist/components/index.d.ts +33 -32
  98. package/dist/components/index.js +33 -32
  99. package/dist/components/tttx-action-dropdown_1_9_45.d.ts +11 -0
  100. package/dist/components/tttx-action-dropdown_1_9_45.js +90 -0
  101. package/dist/components/tttx-button.js +5 -5
  102. package/dist/components/{tttx-button_1_9_43.d.ts → tttx-button_1_9_45.d.ts} +4 -4
  103. package/dist/components/{tttx-button_1_9_43.js → tttx-button_1_9_45.js} +2 -2
  104. package/dist/components/tttx-checkbox-group-caption_1_9_45.d.ts +11 -0
  105. package/dist/components/{tttx-checkbox-group-caption_1_9_43.js → tttx-checkbox-group-caption_1_9_45.js} +5 -5
  106. package/dist/components/tttx-checkbox-group-heading_1_9_45.d.ts +11 -0
  107. package/dist/components/{tttx-checkbox-group-heading_1_9_43.js → tttx-checkbox-group-heading_1_9_45.js} +5 -5
  108. package/dist/components/tttx-checkbox-group_1_9_45.d.ts +11 -0
  109. package/dist/components/{tttx-checkbox-group_1_9_43.js → tttx-checkbox-group_1_9_45.js} +5 -5
  110. package/dist/components/{tttx-datacard_1_9_43.d.ts → tttx-checkbox_1_9_45.d.ts} +4 -4
  111. package/dist/components/{tttx-checkbox_1_9_43.js → tttx-checkbox_1_9_45.js} +7 -7
  112. package/dist/components/{tttx-keyvalue-block_1_9_43.d.ts → tttx-comments_1_9_45.d.ts} +4 -4
  113. package/dist/components/{tttx-comments_1_9_43.js → tttx-comments_1_9_45.js} +24 -10
  114. package/dist/components/tttx-data-pattern_1_9_45.d.ts +11 -0
  115. package/dist/components/{tttx-data-pattern_1_9_43.js → tttx-data-pattern_1_9_45.js} +16 -16
  116. package/dist/components/{tttx-checkbox_1_9_43.d.ts → tttx-datacard_1_9_45.d.ts} +4 -4
  117. package/dist/components/{tttx-datacard_1_9_43.js → tttx-datacard_1_9_45.js} +10 -10
  118. package/dist/components/tttx-dialog-box_1_9_45.d.ts +11 -0
  119. package/dist/components/{tttx-dialog-box_1_9_43.js → tttx-dialog-box_1_9_45.js} +9 -9
  120. package/dist/components/{tttx-dialog_1_9_43.d.ts → tttx-dialog_1_9_45.d.ts} +4 -4
  121. package/dist/components/{tttx-dialog_1_9_43.js → tttx-dialog_1_9_45.js} +8 -8
  122. package/dist/components/{tttx-comments_1_9_43.d.ts → tttx-expander_1_9_45.d.ts} +4 -4
  123. package/dist/components/{tttx-expander_1_9_43.js → tttx-expander_1_9_45.js} +7 -7
  124. package/dist/components/tttx-filter.js +6 -6
  125. package/dist/components/{tttx-filter_1_9_43.d.ts → tttx-filter_1_9_45.d.ts} +4 -4
  126. package/dist/components/{tttx-filter_1_9_43.js → tttx-filter_1_9_45.js} +2 -2
  127. package/dist/components/{tttx-tabs_1_9_43.d.ts → tttx-form_1_9_45.d.ts} +4 -4
  128. package/dist/components/{tttx-form_1_9_43.js → tttx-form_1_9_45.js} +11 -11
  129. package/dist/components/tttx-graph.js +3 -3
  130. package/dist/components/{tttx-graph_1_9_43.d.ts → tttx-graph_1_9_45.d.ts} +4 -4
  131. package/dist/components/{tttx-graph_1_9_43.js → tttx-graph_1_9_45.js} +2 -2
  132. package/dist/components/tttx-icon.js +3 -3
  133. package/dist/components/{tttx-icon_1_9_43.d.ts → tttx-icon_1_9_45.d.ts} +4 -4
  134. package/dist/components/{tttx-icon_1_9_43.js → tttx-icon_1_9_45.js} +2 -2
  135. package/dist/components/tttx-keyvalue-block_1_9_45.d.ts +11 -0
  136. package/dist/components/{tttx-keyvalue-block_1_9_43.js → tttx-keyvalue-block_1_9_45.js} +5 -5
  137. package/dist/components/tttx-list.js +6 -6
  138. package/dist/components/{tttx-list_1_9_43.d.ts → tttx-list_1_9_45.d.ts} +4 -4
  139. package/dist/components/{tttx-list_1_9_43.js → tttx-list_1_9_45.js} +2 -2
  140. package/dist/components/tttx-loading-spinner.js +3 -3
  141. package/dist/components/tttx-loading-spinner_1_9_45.d.ts +11 -0
  142. package/dist/components/{tttx-loading-spinner_1_9_43.js → tttx-loading-spinner_1_9_45.js} +2 -2
  143. package/dist/components/tttx-multiselect-box_1_9_45.d.ts +11 -0
  144. package/dist/components/{tttx-multiselect-box_1_9_43.js → tttx-multiselect-box_1_9_45.js} +16 -16
  145. package/dist/components/tttx-percentage-bar_1_9_45.d.ts +11 -0
  146. package/dist/components/{tttx-percentage-bar_1_9_43.js → tttx-percentage-bar_1_9_45.js} +6 -6
  147. package/dist/components/{tttx-qrcode_1_9_43.d.ts → tttx-qrcode_1_9_45.d.ts} +4 -4
  148. package/dist/components/{tttx-qrcode_1_9_43.js → tttx-qrcode_1_9_45.js} +5 -5
  149. package/dist/components/tttx-select-box.js +12 -12
  150. package/dist/components/tttx-select-box_1_9_45.d.ts +11 -0
  151. package/dist/components/{tttx-select-box_1_9_43.js → tttx-select-box_1_9_45.js} +2 -2
  152. package/dist/components/tttx-skeleton_loader_1_9_45.d.ts +11 -0
  153. package/dist/components/{tttx-skeleton_loader_1_9_43.js → tttx-skeleton_loader_1_9_45.js} +5 -5
  154. package/dist/components/tttx-sorter.js +5 -5
  155. package/dist/components/tttx-sorter_1_9_45.d.ts +11 -0
  156. package/dist/components/{tttx-sorter_1_9_43.js → tttx-sorter_1_9_45.js} +2 -2
  157. package/dist/components/tttx-standalone-input.js +6 -6
  158. package/dist/components/tttx-standalone-input_1_9_45.d.ts +11 -0
  159. package/dist/components/{tttx-standalone-input_1_9_43.js → tttx-standalone-input_1_9_45.js} +2 -2
  160. package/dist/components/{tttx-table_1_9_43.d.ts → tttx-table_1_9_45.d.ts} +4 -4
  161. package/dist/components/{tttx-table_1_9_43.js → tttx-table_1_9_45.js} +5 -5
  162. package/dist/components/{tttx-form_1_9_43.d.ts → tttx-tabs_1_9_45.d.ts} +4 -4
  163. package/dist/components/{tttx-tabs_1_9_43.js → tttx-tabs_1_9_45.js} +9 -9
  164. package/dist/components/tttx-tag.js +5 -5
  165. package/dist/components/{tttx-tag_1_9_43.d.ts → tttx-tag_1_9_45.d.ts} +4 -4
  166. package/dist/components/{tttx-tag_1_9_43.js → tttx-tag_1_9_45.js} +2 -2
  167. package/dist/components/tttx-textarea_1_9_45.d.ts +11 -0
  168. package/dist/components/{tttx-textarea_1_9_43.js → tttx-textarea_1_9_45.js} +6 -6
  169. package/dist/components/tttx-toggle_1_9_45.d.ts +11 -0
  170. package/dist/components/{tttx-toggle_1_9_43.js → tttx-toggle_1_9_45.js} +5 -5
  171. package/dist/components/tttx-toolbar.js +3 -3
  172. package/dist/components/tttx-toolbar_1_9_45.d.ts +11 -0
  173. package/dist/components/{tttx-toolbar_1_9_43.js → tttx-toolbar_1_9_45.js} +2 -2
  174. package/dist/components/tttx-tree-view_1_9_45.d.ts +11 -0
  175. package/dist/components/{tttx-tree-view_1_9_43.js → tttx-tree-view_1_9_45.js} +9 -9
  176. package/dist/esm/loader.js +1 -1
  177. package/dist/esm/tttx-action-dropdown_1_9_45.entry.js +57 -0
  178. package/dist/esm/{tttx-button_1_9_43.entry.js → tttx-button_1_9_45.entry.js} +2 -2
  179. package/dist/esm/{tttx-checkbox-group-caption_1_9_43.entry.js → tttx-checkbox-group-caption_1_9_45.entry.js} +1 -1
  180. package/dist/esm/{tttx-checkbox-group-heading_1_9_43.entry.js → tttx-checkbox-group-heading_1_9_45.entry.js} +1 -1
  181. package/dist/esm/{tttx-checkbox-group_1_9_43.entry.js → tttx-checkbox-group_1_9_45.entry.js} +1 -1
  182. package/dist/esm/{tttx-checkbox_1_9_43.entry.js → tttx-checkbox_1_9_45.entry.js} +2 -2
  183. package/dist/esm/{tttx-comments_1_9_43.entry.js → tttx-comments_1_9_45.entry.js} +14 -5
  184. package/dist/esm/{tttx-data-pattern_1_9_43.entry.js → tttx-data-pattern_1_9_45.entry.js} +5 -5
  185. package/dist/esm/{tttx-datacard_1_9_43.entry.js → tttx-datacard_1_9_45.entry.js} +4 -4
  186. package/dist/esm/{tttx-dialog-box_1_9_43.entry.js → tttx-dialog-box_1_9_45.entry.js} +3 -3
  187. package/dist/esm/{tttx-dialog_1_9_43.entry.js → tttx-dialog_1_9_45.entry.js} +2 -2
  188. package/dist/esm/{tttx-expander_1_9_43.entry.js → tttx-expander_1_9_45.entry.js} +2 -2
  189. package/dist/esm/{tttx-filter_1_9_43_4.entry.js → tttx-filter_1_9_45_4.entry.js} +6 -6
  190. package/dist/esm/{tttx-form_1_9_43.entry.js → tttx-form_1_9_45.entry.js} +2 -2
  191. package/dist/esm/{tttx-graph_1_9_43.entry.js → tttx-graph_1_9_45.entry.js} +1 -1
  192. package/dist/esm/{tttx-icon_1_9_43.entry.js → tttx-icon_1_9_45.entry.js} +1 -1
  193. package/dist/esm/{tttx-keyvalue-block_1_9_43.entry.js → tttx-keyvalue-block_1_9_45.entry.js} +1 -1
  194. package/dist/esm/{tttx-loading-spinner_1_9_43_3.entry.js → tttx-loading-spinner_1_9_45_3.entry.js} +4 -4
  195. package/dist/esm/{tttx-multiselect-box_1_9_43.entry.js → tttx-multiselect-box_1_9_45.entry.js} +7 -7
  196. package/dist/esm/{tttx-percentage-bar_1_9_43.entry.js → tttx-percentage-bar_1_9_45.entry.js} +2 -2
  197. package/dist/esm/{tttx-qrcode_1_9_43.entry.js → tttx-qrcode_1_9_45.entry.js} +1 -1
  198. package/dist/esm/{tttx-select-box_1_9_43.entry.js → tttx-select-box_1_9_45.entry.js} +6 -6
  199. package/dist/esm/{tttx-skeleton_loader_1_9_43.entry.js → tttx-skeleton_loader_1_9_45.entry.js} +1 -1
  200. package/dist/esm/{tttx-table_1_9_43.entry.js → tttx-table_1_9_45.entry.js} +1 -1
  201. package/dist/esm/{tttx-tabs_1_9_43.entry.js → tttx-tabs_1_9_45.entry.js} +4 -4
  202. package/dist/esm/{tttx-textarea_1_9_43.entry.js → tttx-textarea_1_9_45.entry.js} +2 -2
  203. package/dist/esm/{tttx-toggle_1_9_43.entry.js → tttx-toggle_1_9_45.entry.js} +1 -1
  204. package/dist/esm/{tttx-tree-view_1_9_43.entry.js → tttx-tree-view_1_9_45.entry.js} +3 -3
  205. package/dist/esm/tttx.js +1 -1
  206. package/dist/tttx/p-1d8210d3.entry.js +1 -1
  207. package/dist/tttx/p-21bb99dd.entry.js +1 -1
  208. package/dist/tttx/p-22150380.entry.js +1 -1
  209. package/dist/tttx/p-222b7f89.entry.js +1 -1
  210. package/dist/tttx/p-295a5c16.entry.js +1 -1
  211. package/dist/tttx/p-354fc8d4.entry.js +1 -1
  212. package/dist/tttx/p-4560cb86.entry.js +1 -1
  213. package/dist/tttx/p-49bae603.entry.js +1 -1
  214. package/dist/tttx/p-555885cc.entry.js +1 -1
  215. package/dist/tttx/p-61df30c5.entry.js +1 -1
  216. package/dist/tttx/p-6343251b.entry.js +1 -1
  217. package/dist/tttx/p-652aaf6c.entry.js +1 -1
  218. package/dist/tttx/p-65da8c2a.entry.js +1 -1
  219. package/dist/tttx/p-71372d3a.entry.js +1 -1
  220. package/dist/tttx/p-7ff42357.entry.js +1 -1
  221. package/dist/tttx/p-80c3103a.entry.js +1 -1
  222. package/dist/tttx/p-8aeb43df.entry.js +1 -0
  223. package/dist/tttx/p-9262d276.entry.js +1 -1
  224. package/dist/tttx/p-9426547c.entry.js +1 -1
  225. package/dist/tttx/p-9896a083.entry.js +1 -1
  226. package/dist/tttx/p-98bee16c.entry.js +1 -1
  227. package/dist/tttx/p-b294f733.entry.js +1 -0
  228. package/dist/tttx/p-e23f0843.entry.js +1 -1
  229. package/dist/tttx/p-e28e5118.entry.js +1 -1
  230. package/dist/tttx/p-e4b36835.entry.js +1 -1
  231. package/dist/tttx/p-e5319b51.entry.js +1 -1
  232. package/dist/tttx/p-e5f97b02.entry.js +1 -1
  233. package/dist/tttx/p-e8b9acb8.entry.js +1 -1
  234. package/dist/tttx/tttx.esm.js +1 -1
  235. package/dist/types/components/molecules/tttx-action-dropdown/interfaces.d.ts +8 -0
  236. package/dist/types/components/molecules/tttx-action-dropdown/tttx-action-dropdown.d.ts +21 -0
  237. package/dist/types/components/molecules/tttx-comments/tttx-comments.d.ts +7 -1
  238. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  239. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  240. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  241. package/dist/types/components.d.ts +419 -378
  242. package/package.json +1 -1
  243. package/dist/components/tttx-checkbox-group-caption_1_9_43.d.ts +0 -11
  244. package/dist/components/tttx-checkbox-group-heading_1_9_43.d.ts +0 -11
  245. package/dist/components/tttx-checkbox-group_1_9_43.d.ts +0 -11
  246. package/dist/components/tttx-data-pattern_1_9_43.d.ts +0 -11
  247. package/dist/components/tttx-dialog-box_1_9_43.d.ts +0 -11
  248. package/dist/components/tttx-expander_1_9_43.d.ts +0 -11
  249. package/dist/components/tttx-loading-spinner_1_9_43.d.ts +0 -11
  250. package/dist/components/tttx-multiselect-box_1_9_43.d.ts +0 -11
  251. package/dist/components/tttx-percentage-bar_1_9_43.d.ts +0 -11
  252. package/dist/components/tttx-select-box_1_9_43.d.ts +0 -11
  253. package/dist/components/tttx-skeleton_loader_1_9_43.d.ts +0 -11
  254. package/dist/components/tttx-sorter_1_9_43.d.ts +0 -11
  255. package/dist/components/tttx-standalone-input_1_9_43.d.ts +0 -11
  256. package/dist/components/tttx-textarea_1_9_43.d.ts +0 -11
  257. package/dist/components/tttx-toggle_1_9_43.d.ts +0 -11
  258. package/dist/components/tttx-toolbar_1_9_43.d.ts +0 -11
  259. package/dist/components/tttx-tree-view_1_9_43.d.ts +0 -11
  260. package/dist/tttx/p-ff44e042.entry.js +0 -1
@@ -2,7 +2,7 @@ export default {
2
2
  title: 'atoms/Key Value Block',
3
3
  component: 'tttx-keyvalue-block',
4
4
  };
5
- const TemplateKeyValueBlock = ({ keyValues }) => `<tttx-keyvalue-block_1_9_43 keyvalues='${JSON.stringify(keyValues)}' />`;
5
+ const TemplateKeyValueBlock = ({ keyValues }) => `<tttx-keyvalue-block_1_9_45 keyvalues='${JSON.stringify(keyValues)}' />`;
6
6
  export const BasicKeyValueBlock = TemplateKeyValueBlock.bind({});
7
7
  BasicKeyValueBlock.args = {
8
8
  keyValues: {
@@ -11,7 +11,7 @@ BasicKeyValueBlock.args = {
11
11
  'Start of postcode': 'AB10',
12
12
  },
13
13
  };
14
- const TemplateHorizontalKeyValueBlock = ({ keyValues }) => `<tttx-keyvalue-block_1_9_43 horizontal='true' keyvalues='${JSON.stringify(keyValues)}' />`;
14
+ const TemplateHorizontalKeyValueBlock = ({ keyValues }) => `<tttx-keyvalue-block_1_9_45 horizontal='true' keyvalues='${JSON.stringify(keyValues)}' />`;
15
15
  export const HorizontalKeyValueBlock = TemplateHorizontalKeyValueBlock.bind({});
16
16
  HorizontalKeyValueBlock.args = {
17
17
  keyValues: {
@@ -20,7 +20,7 @@ HorizontalKeyValueBlock.args = {
20
20
  'Start of postcode': 'AB10',
21
21
  },
22
22
  };
23
- const TemplateSpacedoutKeyValueBlock = ({ keyValues }) => `<tttx-keyvalue-block_1_9_43 spacedout='true' keyvalues='${JSON.stringify(keyValues)}' />`;
23
+ const TemplateSpacedoutKeyValueBlock = ({ keyValues }) => `<tttx-keyvalue-block_1_9_45 spacedout='true' keyvalues='${JSON.stringify(keyValues)}' />`;
24
24
  export const SpacedoutKeyValueBlock = TemplateSpacedoutKeyValueBlock.bind({});
25
25
  SpacedoutKeyValueBlock.args = {
26
26
  keyValues: {
@@ -29,7 +29,7 @@ SpacedoutKeyValueBlock.args = {
29
29
  'Start of postcode': 'AB10',
30
30
  },
31
31
  };
32
- const TemplateKeyValueBlockArray = ({ keyValueArray }) => `<tttx-keyvalue-block_1_9_43 keyvalues='${JSON.stringify(keyValueArray)}' />`;
32
+ const TemplateKeyValueBlockArray = ({ keyValueArray }) => `<tttx-keyvalue-block_1_9_45 keyvalues='${JSON.stringify(keyValueArray)}' />`;
33
33
  export const BasicKeyValueBlockArray = TemplateKeyValueBlockArray.bind({});
34
34
  BasicKeyValueBlockArray.args = {
35
35
  keyValueArray: [
@@ -50,7 +50,7 @@ BasicKeyValueBlockArray.args = {
50
50
  },
51
51
  ],
52
52
  };
53
- const TemplateHorizontalKeyValueBlockArray = ({ keyValueArray }) => `<tttx-keyvalue-block_1_9_43 horizontal='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
53
+ const TemplateHorizontalKeyValueBlockArray = ({ keyValueArray }) => `<tttx-keyvalue-block_1_9_45 horizontal='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
54
54
  export const HorizontalKeyValueBlockArray = TemplateHorizontalKeyValueBlockArray.bind({});
55
55
  HorizontalKeyValueBlockArray.args = {
56
56
  keyValueArray: [
@@ -71,7 +71,7 @@ HorizontalKeyValueBlockArray.args = {
71
71
  },
72
72
  ],
73
73
  };
74
- const TemplateSpacedoutKeyValueBlockArray = ({ keyValueArray }) => `<tttx-keyvalue-block_1_9_43 spacedout='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
74
+ const TemplateSpacedoutKeyValueBlockArray = ({ keyValueArray }) => `<tttx-keyvalue-block_1_9_45 spacedout='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
75
75
  export const SpacedoutKeyValueBlockArray = TemplateSpacedoutKeyValueBlockArray.bind({});
76
76
  SpacedoutKeyValueBlockArray.args = {
77
77
  keyValueArray: [
@@ -61,7 +61,7 @@ export class TttxLoadingSpinner {
61
61
  render() {
62
62
  return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}`, style: { '--spinner-color': this.color } })), this.renderMessage()));
63
63
  }
64
- static get is() { return "tttx-loading-spinner_1_9_43"; }
64
+ static get is() { return "tttx-loading-spinner_1_9_45"; }
65
65
  static get encapsulation() { return "shadow"; }
66
66
  static get originalStyleUrls() {
67
67
  return {
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  title: 'atoms/Loading Spinner',
3
- component: 'tttx-loading-spinner_1_9_43',
3
+ component: 'tttx-loading-spinner_1_9_45',
4
4
  argTypes: {
5
5
  loadingMessage: {
6
6
  control: 'boolean',
@@ -38,7 +38,7 @@ export const Example = (args) => {
38
38
  args.message ? `message="${args.message}"` : '',
39
39
  args.customMessageSchema ? `customMessageSchema='${JSON.stringify(args.customMessageSchema)}'` : '',
40
40
  ].filter(Boolean).join(' ');
41
- return `<tttx-loading-spinner_1_9_43 ${attrs}></tttx-loading-spinner_1_9_43>`;
41
+ return `<tttx-loading-spinner_1_9_45 ${attrs}></tttx-loading-spinner_1_9_45>`;
42
42
  };
43
43
  Example.parameters = {
44
44
  chromatic: {
@@ -51,7 +51,7 @@ export class TttxPercentageBar {
51
51
  render() {
52
52
  return (h(Host, null, h("div", { class: "progress" }, h("div", { class: "bar", style: { 'background-color': this.getColour(), 'width': `${this.getWidth()}%` }, role: "progressbar", "aria-valuemin": this._min, "aria-valuemax": "100", "aria-valuenow": this._percentage, "aria-labelledby": this.labelid }))));
53
53
  }
54
- static get is() { return "tttx-percentage-bar_1_9_43"; }
54
+ static get is() { return "tttx-percentage-bar_1_9_45"; }
55
55
  static get encapsulation() { return "scoped"; }
56
56
  static get originalStyleUrls() {
57
57
  return {
@@ -2,7 +2,7 @@ export default {
2
2
  title: 'atoms/Percentage Bar',
3
3
  component: 'tttx-percentage-bar',
4
4
  };
5
- const TemplatePercentageBar = ({ percentage, thresholds }) => `<tttx-percentage-bar_1_9_43 percentage='${percentage}' thresholds='${JSON.stringify(thresholds)}'></tttx-percentage-bar_1_9_43>`;
5
+ const TemplatePercentageBar = ({ percentage, thresholds }) => `<tttx-percentage-bar_1_9_45 percentage='${percentage}' thresholds='${JSON.stringify(thresholds)}'></tttx-percentage-bar_1_9_45>`;
6
6
  export const PercentageBar = TemplatePercentageBar.bind({});
7
7
  PercentageBar.args = {
8
8
  percentage: 20,
@@ -21,13 +21,13 @@ PercentageBar.args = {
21
21
  },
22
22
  ],
23
23
  };
24
- const TemplatePercentageBarWithoutThresholds = ({ percentage, color }) => `<tttx-percentage-bar_1_9_43 percentage='${percentage}' color='${color}'></tttx-percentage-bar_1_9_43>`;
24
+ const TemplatePercentageBarWithoutThresholds = ({ percentage, color }) => `<tttx-percentage-bar_1_9_45 percentage='${percentage}' color='${color}'></tttx-percentage-bar_1_9_45>`;
25
25
  export const PercentageBarWithoutThresholds = TemplatePercentageBarWithoutThresholds.bind({});
26
26
  PercentageBarWithoutThresholds.args = {
27
27
  percentage: 20,
28
28
  color: '#397a4c',
29
29
  };
30
- const TemplatePercentageBarWithoutMinimum = ({ percentage, color, min }) => `<tttx-percentage-bar_1_9_43 percentage='${percentage}' color='${color}' min='${min}'></tttx-percentage-bar_1_9_43>`;
30
+ const TemplatePercentageBarWithoutMinimum = ({ percentage, color, min }) => `<tttx-percentage-bar_1_9_45 percentage='${percentage}' color='${color}' min='${min}'></tttx-percentage-bar_1_9_45>`;
31
31
  export const PercentageBarWithoutMinimum = TemplatePercentageBarWithoutMinimum.bind({});
32
32
  PercentageBarWithoutMinimum.args = {
33
33
  percentage: 0,
@@ -37,7 +37,7 @@ PercentageBarWithoutMinimum.args = {
37
37
  const TemplatePercentageBarLabeled = ({ percentage, color, labelid }) => `
38
38
  <label id="someLabel">
39
39
  ${percentage}%
40
- <tttx-percentage-bar_1_9_43 style='width: 100px;' percentage='${percentage}' color='${color}' labelid='${labelid}'></tttx-percentage-bar_1_9_43>
40
+ <tttx-percentage-bar_1_9_45 style='width: 100px;' percentage='${percentage}' color='${color}' labelid='${labelid}'></tttx-percentage-bar_1_9_45>
41
41
  </label>
42
42
  `;
43
43
  export const PercentageBarLabeled = TemplatePercentageBarLabeled.bind({});
@@ -47,7 +47,7 @@ PercentageBarLabeled.args = {
47
47
  labelid: 'someLabel',
48
48
  };
49
49
  const TemplatePercentageBarLabeledInline = ({ percentage, color, labelid }) => `
50
- <label id="someLabel" style='display: flex;'>${percentage}%&emsp;<tttx-percentage-bar_1_9_43 style='width: 100px;' percentage='${percentage}' color='${color}' labelid='${labelid}'></tttx-percentage-bar_1_9_43>
50
+ <label id="someLabel" style='display: flex;'>${percentage}%&emsp;<tttx-percentage-bar_1_9_45 style='width: 100px;' percentage='${percentage}' color='${color}' labelid='${labelid}'></tttx-percentage-bar_1_9_45>
51
51
  </label>
52
52
  `;
53
53
  export const PercentageBarLabeledInline = TemplatePercentageBarLabeledInline.bind({});
@@ -25,7 +25,7 @@ export class TttxQrCode {
25
25
  render() {
26
26
  return h("div", { id: "qrcode" });
27
27
  }
28
- static get is() { return "tttx-qrcode_1_9_43"; }
28
+ static get is() { return "tttx-qrcode_1_9_45"; }
29
29
  static get encapsulation() { return "shadow"; }
30
30
  static get originalStyleUrls() {
31
31
  return {
@@ -14,7 +14,7 @@ export default {
14
14
  export const basicQRCode = args => {
15
15
  const url = args.url;
16
16
  const size = args.size;
17
- return `<tttx-qrcode_1_9_43 link='${url}' size='${size}'></tttx-qrcode_1_9_43>`;
17
+ return `<tttx-qrcode_1_9_45 link='${url}' size='${size}'></tttx-qrcode_1_9_45>`;
18
18
  };
19
19
  basicQRCode.args = {
20
20
  url: 'https://example.com',
@@ -26,7 +26,7 @@ export class TttxSkeletonLoader {
26
26
  const skeletons = Array.from({ length: this.count });
27
27
  return (h(Host, null, h("div", { class: `skeleton-wrapper ${this.direction} ${this.customClass}`, style: { gap: this.gap, width: '100%' } }, skeletons.map((_, index) => (h("div", { key: index, class: `skeleton ${this.animation} ${this.variant}`, style: skeletonStyle }))))));
28
28
  }
29
- static get is() { return "tttx-skeleton_loader_1_9_43"; }
29
+ static get is() { return "tttx-skeleton_loader_1_9_45"; }
30
30
  static get encapsulation() { return "shadow"; }
31
31
  static get originalStyleUrls() {
32
32
  return {
@@ -11,9 +11,9 @@ export class TttxTag {
11
11
  }
12
12
  render() {
13
13
  return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
14
- h("tttx-icon_1_9_43", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
14
+ h("tttx-icon_1_9_45", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
15
15
  }
16
- static get is() { return "tttx-tag_1_9_43"; }
16
+ static get is() { return "tttx-tag_1_9_45"; }
17
17
  static get encapsulation() { return "shadow"; }
18
18
  static get originalStyleUrls() {
19
19
  return {
@@ -33,7 +33,7 @@ export default {
33
33
  },
34
34
  };
35
35
  const Template = ({ text, color, textColor, hasIcon, icon, iconColor, iconSize }) => {
36
- return `<tttx-tag_1_9_43 text="${text}" color="${color}" text-color="${textColor}" has-icon=${hasIcon} icon="${icon}" icon-color="${iconColor}" icon-size="${iconSize}"></tttx-tag_1_9_43>`;
36
+ return `<tttx-tag_1_9_45 text="${text}" color="${color}" text-color="${textColor}" has-icon=${hasIcon} icon="${icon}" icon-color="${iconColor}" icon-size="${iconSize}"></tttx-tag_1_9_45>`;
37
37
  };
38
38
  export const tag = Template.bind({});
39
39
  tag.args = {
@@ -46,18 +46,18 @@ tag.args = {
46
46
  };
47
47
  const tagTemplates = () => `
48
48
  <h2>Default</h2>
49
- <tttx-tag_1_9_43 text="Default" color="#d5d5d5" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_43>
49
+ <tttx-tag_1_9_45 text="Default" color="#d5d5d5" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_45>
50
50
  <hr />
51
51
  <h2>Critical</h2>
52
- <tttx-tag_1_9_43 text="Critical" color="#f2bebe" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_43>
52
+ <tttx-tag_1_9_45 text="Critical" color="#f2bebe" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_45>
53
53
  <hr />
54
54
  <h2>Warning</h2>
55
- <tttx-tag_1_9_43 text="Warning" color="#f9e1be" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_43>
55
+ <tttx-tag_1_9_45 text="Warning" color="#f9e1be" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_45>
56
56
  <hr />
57
57
  <h2>Success</h2>
58
- <tttx-tag_1_9_43 text="Success" color="#e4ebc9" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_43>
58
+ <tttx-tag_1_9_45 text="Success" color="#e4ebc9" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_45>
59
59
  <hr />
60
60
  <h2>Info</h2>
61
- <tttx-tag_1_9_43 text="Info" color="#c2daee" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_43>
61
+ <tttx-tag_1_9_45 text="Info" color="#c2daee" has-icon=true icon="check_circle" icon-color="#397A4C"></tttx-tag_1_9_45>
62
62
  `;
63
63
  export const tags = tagTemplates.bind({});
@@ -25,7 +25,7 @@ export class TttxToggle {
25
25
  }
26
26
  return (h("div", { id: 'toggle-switch' }, checkbox, h("div", { id: 'toggle-body' })));
27
27
  }
28
- static get is() { return "tttx-toggle_1_9_43"; }
28
+ static get is() { return "tttx-toggle_1_9_45"; }
29
29
  static get encapsulation() { return "shadow"; }
30
30
  static get originalStyleUrls() {
31
31
  return {
@@ -3,8 +3,8 @@ export default {
3
3
  component: 'tttx-toggle',
4
4
  };
5
5
  const DefaultStory = () => `
6
- <div><div>Off by default</div><tttx-toggle_1_9_43 id="off" title="Off by default"></tttx-toggle_1_9_43></div>
7
- <div><div>On by default</div><tttx-toggle_1_9_43 id="on" initialstate="true" title="True by default"></tttx-toggle_1_9_43></div>
6
+ <div><div>Off by default</div><tttx-toggle_1_9_45 id="off" title="Off by default"></tttx-toggle_1_9_45></div>
7
+ <div><div>On by default</div><tttx-toggle_1_9_45 id="on" initialstate="true" title="True by default"></tttx-toggle_1_9_45></div>
8
8
  <script>
9
9
  off.addEventListener('toggleSwitchEvent', (ev) => { console.log(ev) });
10
10
  on.addEventListener('toggleSwitchEvent', (ev) => { console.log(ev) });
@@ -0,0 +1,109 @@
1
+ .material-symbols-rounded {
2
+ font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
+ }
4
+
5
+ .action-dropdown-container {
6
+ display: flex;
7
+ flex-direction: column;
8
+ position: relative;
9
+ border: 1px solid #d5d5d5;
10
+ border-radius: 4px;
11
+ font-weight: 400;
12
+ box-sizing: border-box;
13
+ cursor: pointer;
14
+ width: 220px;
15
+ }
16
+ @media (max-width: 475px) {
17
+ .action-dropdown-container {
18
+ width: 120px;
19
+ }
20
+ }
21
+ .action-dropdown-container .action-button {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ align-items: center;
25
+ background-color: white;
26
+ border: none;
27
+ border-radius: 4px;
28
+ height: 36px;
29
+ padding: 0 8px 0 12px;
30
+ width: 100%;
31
+ }
32
+ @media (max-width: 475px) {
33
+ .action-dropdown-container .action-button {
34
+ padding: 0 6px 0 8px;
35
+ }
36
+ }
37
+ .action-dropdown-container .action-button .button-content {
38
+ display: flex;
39
+ align-items: center;
40
+ gap: 8px;
41
+ }
42
+ .action-dropdown-container .action-button .button-content .action-text {
43
+ font-size: 16px;
44
+ color: #212121;
45
+ font-weight: 500;
46
+ }
47
+ .action-dropdown-container .action-button .dropdown-arrow {
48
+ display: flex;
49
+ align-items: center;
50
+ margin-left: auto;
51
+ }
52
+ .action-dropdown-container .action-button .dropdown-arrow .hydrated {
53
+ display: flex;
54
+ align-items: center;
55
+ }
56
+ .action-dropdown-container .action-button .hydrated {
57
+ display: flex;
58
+ justify-content: center;
59
+ align-items: center;
60
+ cursor: pointer;
61
+ }
62
+ .action-dropdown-container .action-button .material-symbols-rounded {
63
+ color: #212121;
64
+ }
65
+ .action-dropdown-container .action-button:hover {
66
+ background-color: #f0f0f0;
67
+ }
68
+ .action-dropdown-container .action-button:active {
69
+ background-color: #e3e3e3;
70
+ }
71
+ .action-dropdown-container .dropdown-options-list {
72
+ position: absolute;
73
+ top: 36px;
74
+ left: 0;
75
+ z-index: 1;
76
+ width: 220px;
77
+ line-height: 21px;
78
+ font-size: 16px;
79
+ border-radius: 4px;
80
+ padding-top: 8px;
81
+ padding-bottom: 7px;
82
+ box-shadow: 0px 1px 5px #1111114D;
83
+ box-sizing: border-box;
84
+ background-color: white;
85
+ border: 1px solid #d5d5d5;
86
+ }
87
+ @media (max-width: 475px) {
88
+ .action-dropdown-container .dropdown-options-list {
89
+ width: 220px;
90
+ padding-top: 8px;
91
+ }
92
+ }
93
+ .action-dropdown-container .dropdown-options-list .dropdown-option {
94
+ padding: 8px 16px;
95
+ font-size: 16px;
96
+ line-height: 21px;
97
+ cursor: pointer;
98
+ }
99
+ .action-dropdown-container .dropdown-options-list .dropdown-option:hover, .action-dropdown-container .dropdown-options-list .dropdown-option:focus {
100
+ background-color: #ebfbfc;
101
+ }
102
+ .action-dropdown-container.--expanded {
103
+ border-color: #1579c6;
104
+ }
105
+ @media (max-width: 475px) {
106
+ .action-dropdown-container.--expanded {
107
+ border-color: #1579c6;
108
+ }
109
+ }
@@ -0,0 +1,213 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { h, Host } from '@stencil/core';
3
+ export class TttxActionDropdown {
4
+ constructor() {
5
+ this.actionKey = undefined;
6
+ this.icon = 'download';
7
+ this.fieldOptionsData = null;
8
+ this.defaultOption = 'ACTION';
9
+ this.isIconVisible = true;
10
+ this.selectedField = 'ACTION';
11
+ this.dropdownExpand = false;
12
+ this.dropdownOptions = undefined;
13
+ }
14
+ componentWillLoad() {
15
+ this.selectedField = this.defaultOption || 'ACTION';
16
+ }
17
+ handleCloseActionDropdown() {
18
+ this.dropdownExpand = false;
19
+ }
20
+ emitActionEvent(actionField) {
21
+ this.actionDropdownChangeEvent.emit({
22
+ actionKey: this.actionKey,
23
+ actionField: actionField,
24
+ });
25
+ }
26
+ onActionClick(event) {
27
+ event.preventDefault();
28
+ this.dropdownExpand = !this.dropdownExpand;
29
+ this.toggleActionDropdown.emit(this.dropdownExpand);
30
+ }
31
+ onDropdownSelected(event) {
32
+ this.dropdownExpand = false;
33
+ const target = event.target;
34
+ const selectedActionType = target.innerHTML;
35
+ this.emitActionEvent(selectedActionType);
36
+ this.toggleActionDropdown.emit(this.dropdownExpand);
37
+ }
38
+ render() {
39
+ const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
40
+ if (!this.fieldOptionsData)
41
+ return;
42
+ const actionKey = `action-dropdown__${this.actionKey}`;
43
+ const chevronIcon = this.dropdownExpand ? 'keyboard_arrow_up' : 'keyboard_arrow_down';
44
+ return (h(Host, { id: actionKey }, h("div", { tabindex: 0, class: `action-dropdown-container ${this.dropdownExpand ? '--expanded' : ''}` }, h("button", { class: "action-button", type: "button", onClick: this.onActionClick.bind(this) }, h("div", { class: "button-content" }, this.isIconVisible && (h("tttx-icon_1_9_45", { icon: this.icon, color: "black" })), h("span", { class: "action-text" }, this.selectedField)), h("div", { class: "dropdown-arrow" }, h("tttx-icon_1_9_45", { icon: chevronIcon, color: "black" }))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.actionOptions.map(option => {
45
+ return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
46
+ }))))));
47
+ }
48
+ static get is() { return "tttx-action-dropdown_1_9_45"; }
49
+ static get encapsulation() { return "shadow"; }
50
+ static get originalStyleUrls() {
51
+ return {
52
+ "$": ["tttx-action-dropdown.scss"]
53
+ };
54
+ }
55
+ static get styleUrls() {
56
+ return {
57
+ "$": ["tttx-action-dropdown.css"]
58
+ };
59
+ }
60
+ static get properties() {
61
+ return {
62
+ "actionKey": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": ""
75
+ },
76
+ "attribute": "action-key",
77
+ "reflect": false
78
+ },
79
+ "icon": {
80
+ "type": "string",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "string",
84
+ "resolved": "string",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": ""
92
+ },
93
+ "attribute": "icon",
94
+ "reflect": false,
95
+ "defaultValue": "'download'"
96
+ },
97
+ "fieldOptionsData": {
98
+ "type": "string",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "string | ActionDropdownData",
102
+ "resolved": "ActionDropdownData | string",
103
+ "references": {
104
+ "ActionDropdownData": {
105
+ "location": "import",
106
+ "path": "./interfaces"
107
+ }
108
+ }
109
+ },
110
+ "required": false,
111
+ "optional": false,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": ""
115
+ },
116
+ "attribute": "field-options-data",
117
+ "reflect": false,
118
+ "defaultValue": "null"
119
+ },
120
+ "defaultOption": {
121
+ "type": "string",
122
+ "mutable": false,
123
+ "complexType": {
124
+ "original": "string",
125
+ "resolved": "string",
126
+ "references": {}
127
+ },
128
+ "required": false,
129
+ "optional": false,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": ""
133
+ },
134
+ "attribute": "default-option",
135
+ "reflect": false,
136
+ "defaultValue": "'ACTION'"
137
+ },
138
+ "isIconVisible": {
139
+ "type": "boolean",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "boolean",
143
+ "resolved": "boolean",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": false,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": ""
151
+ },
152
+ "attribute": "is-icon-visible",
153
+ "reflect": false,
154
+ "defaultValue": "true"
155
+ }
156
+ };
157
+ }
158
+ static get states() {
159
+ return {
160
+ "selectedField": {},
161
+ "dropdownExpand": {},
162
+ "dropdownOptions": {}
163
+ };
164
+ }
165
+ static get events() {
166
+ return [{
167
+ "method": "actionDropdownChangeEvent",
168
+ "name": "actionDropdownChangeEvent",
169
+ "bubbles": true,
170
+ "cancelable": true,
171
+ "composed": true,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": ""
175
+ },
176
+ "complexType": {
177
+ "original": "ActionDropdownChangeEvent",
178
+ "resolved": "ActionDropdownChangeEvent",
179
+ "references": {
180
+ "ActionDropdownChangeEvent": {
181
+ "location": "import",
182
+ "path": "./interfaces"
183
+ }
184
+ }
185
+ }
186
+ }, {
187
+ "method": "toggleActionDropdown",
188
+ "name": "toggleActionDropdown",
189
+ "bubbles": true,
190
+ "cancelable": true,
191
+ "composed": true,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": ""
195
+ },
196
+ "complexType": {
197
+ "original": "boolean",
198
+ "resolved": "boolean",
199
+ "references": {}
200
+ }
201
+ }];
202
+ }
203
+ static get elementRef() { return "el"; }
204
+ static get listeners() {
205
+ return [{
206
+ "name": "closeActionDropdown",
207
+ "method": "handleCloseActionDropdown",
208
+ "target": undefined,
209
+ "capture": false,
210
+ "passive": false
211
+ }];
212
+ }
213
+ }
@@ -0,0 +1,62 @@
1
+ import { withActions } from '@storybook/addon-actions/decorator';
2
+ export default {
3
+ title: 'molecules/Action Dropdown',
4
+ component: 'tttx-action-dropdown',
5
+ argTypes: {
6
+ fieldOptionsData: {
7
+ control: { type: 'object' },
8
+ },
9
+ actionKey: {
10
+ control: { type: 'text' },
11
+ },
12
+ icon: {
13
+ control: { type: 'text' },
14
+ },
15
+ isIconVisible: {
16
+ control: { type: 'boolean' },
17
+ },
18
+ },
19
+ parameters: {
20
+ actions: {
21
+ handles: ['actionDropdownChangeEvent'],
22
+ },
23
+ },
24
+ decorators: [withActions],
25
+ };
26
+ const TemplateActionDropdown = ({ fieldOptionsData, actionKey, icon, isIconVisible }) => {
27
+ return `
28
+ <div style='width: 250px;'>
29
+ <tttx-action-dropdown_1_9_45
30
+ field-options-data='${JSON.stringify(fieldOptionsData)}'
31
+ action-key='${actionKey}'
32
+ icon='${icon}'
33
+ is-icon-visible='${isIconVisible}'/>
34
+ </div>
35
+ `;
36
+ };
37
+ const fieldOptionsData = {
38
+ actionOptions: [{ optionLabel: 'Export as PDF' }, { optionLabel: 'Export as Excel' }, { optionLabel: 'Export as CSV' },],
39
+ };
40
+ export const BasicActionDropdown = TemplateActionDropdown.bind({});
41
+ BasicActionDropdown.args = {
42
+ fieldOptionsData: fieldOptionsData,
43
+ actionKey: 'BasicAction',
44
+ icon: 'download',
45
+ isIconVisible: true,
46
+ };
47
+ export const ActionDropdownWithoutIcon = TemplateActionDropdown.bind({});
48
+ ActionDropdownWithoutIcon.args = {
49
+ fieldOptionsData: fieldOptionsData,
50
+ actionKey: 'NoArrowAction',
51
+ icon: 'download',
52
+ isIconVisible: false,
53
+ };
54
+ export const DocumentActionDropdown = TemplateActionDropdown.bind({});
55
+ DocumentActionDropdown.args = {
56
+ fieldOptionsData: {
57
+ actionOptions: [{ optionLabel: 'Word Document' }, { optionLabel: 'PowerPoint' }, { optionLabel: 'Text File' }],
58
+ },
59
+ actionKey: 'DocumentAction',
60
+ icon: 'description',
61
+ isIconVisible: true,
62
+ };
@@ -3,7 +3,7 @@ export class TttxCheckboxGroupCaption {
3
3
  render() {
4
4
  return (h(Host, null, h("div", { class: 'tttx-checkbox-group__caption' }, h("slot", null))));
5
5
  }
6
- static get is() { return "tttx-checkbox-group-caption_1_9_43"; }
6
+ static get is() { return "tttx-checkbox-group-caption_1_9_45"; }
7
7
  static get originalStyleUrls() {
8
8
  return {
9
9
  "$": ["../tttx-checkbox-group.scss"]
@@ -3,7 +3,7 @@ export class TttxCheckboxGroupHeading {
3
3
  render() {
4
4
  return (h(Host, null, h("div", { class: 'tttx-checkbox-group__heading' }, h("slot", null))));
5
5
  }
6
- static get is() { return "tttx-checkbox-group-heading_1_9_43"; }
6
+ static get is() { return "tttx-checkbox-group-heading_1_9_45"; }
7
7
  static get originalStyleUrls() {
8
8
  return {
9
9
  "$": ["../tttx-checkbox-group.scss"]
@@ -3,7 +3,7 @@ export class TttxCheckboxGroup {
3
3
  render() {
4
4
  return (h(Host, null, h("div", { class: 'tttx-checkbox-group' }, h("slot", null))));
5
5
  }
6
- static get is() { return "tttx-checkbox-group_1_9_43"; }
6
+ static get is() { return "tttx-checkbox-group_1_9_45"; }
7
7
  static get encapsulation() { return "shadow"; }
8
8
  static get originalStyleUrls() {
9
9
  return {