@3t-transform/threeteeui 1.9.61 → 1.9.63

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 (277) hide show
  1. package/dist/{esm/tttx-graph_1_9_61.entry.js → cjs/auto-1fd7408f.js} +4 -130
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{tttx-action-dropdown_1_9_61.cjs.entry.js → tttx-action-dropdown_1_9_63.cjs.entry.js} +2 -2
  4. package/dist/cjs/{tttx-button_1_9_61.cjs.entry.js → tttx-button_1_9_63.cjs.entry.js} +2 -2
  5. package/dist/cjs/tttx-chart_1_9_63.cjs.entry.js +203 -0
  6. package/dist/cjs/{tttx-checkbox-group-caption_1_9_61.cjs.entry.js → tttx-checkbox-group-caption_1_9_63.cjs.entry.js} +1 -1
  7. package/dist/cjs/{tttx-checkbox-group-heading_1_9_61.cjs.entry.js → tttx-checkbox-group-heading_1_9_63.cjs.entry.js} +1 -1
  8. package/dist/cjs/{tttx-checkbox-group_1_9_61.cjs.entry.js → tttx-checkbox-group_1_9_63.cjs.entry.js} +1 -1
  9. package/dist/cjs/{tttx-checkbox_1_9_61.cjs.entry.js → tttx-checkbox_1_9_63.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-comments_1_9_61.cjs.entry.js → tttx-comments_1_9_63.cjs.entry.js} +21 -7
  11. package/dist/cjs/{tttx-data-pattern_1_9_61.cjs.entry.js → tttx-data-pattern_1_9_63.cjs.entry.js} +5 -5
  12. package/dist/cjs/{tttx-datacard_1_9_61.cjs.entry.js → tttx-datacard_1_9_63.cjs.entry.js} +4 -4
  13. package/dist/cjs/tttx-date-range-picker.cjs.entry.js +1 -1
  14. package/dist/cjs/{tttx-dialog-box_1_9_61.cjs.entry.js → tttx-dialog-box_1_9_63.cjs.entry.js} +3 -3
  15. package/dist/cjs/{tttx-dialog_1_9_61.cjs.entry.js → tttx-dialog_1_9_63.cjs.entry.js} +2 -2
  16. package/dist/cjs/{tttx-expander_1_9_61.cjs.entry.js → tttx-expander_1_9_63.cjs.entry.js} +2 -2
  17. package/dist/cjs/{tttx-filter_1_9_61_4.cjs.entry.js → tttx-filter_1_9_63_4.cjs.entry.js} +9 -9
  18. package/dist/cjs/{tttx-form_1_9_61.cjs.entry.js → tttx-form_1_9_63.cjs.entry.js} +2 -2
  19. package/dist/cjs/tttx-graph_1_9_63.cjs.entry.js +136 -0
  20. package/dist/cjs/{tttx-icon_1_9_61.cjs.entry.js → tttx-icon_1_9_63.cjs.entry.js} +1 -1
  21. package/dist/cjs/{tttx-keyvalue-block_1_9_61.cjs.entry.js → tttx-keyvalue-block_1_9_63.cjs.entry.js} +1 -1
  22. package/dist/cjs/{tttx-loading-spinner_1_9_61_3.cjs.entry.js → tttx-loading-spinner_1_9_63_3.cjs.entry.js} +6 -6
  23. package/dist/cjs/{tttx-multiselect-box_1_9_61.cjs.entry.js → tttx-multiselect-box_1_9_63.cjs.entry.js} +7 -7
  24. package/dist/cjs/{tttx-percentage-bar_1_9_61.cjs.entry.js → tttx-percentage-bar_1_9_63.cjs.entry.js} +2 -2
  25. package/dist/cjs/{tttx-qrcode_1_9_61.cjs.entry.js → tttx-qrcode_1_9_63.cjs.entry.js} +1 -1
  26. package/dist/cjs/{tttx-select-box_1_9_61.cjs.entry.js → tttx-select-box_1_9_63.cjs.entry.js} +6 -6
  27. package/dist/cjs/{tttx-skeleton_loader_1_9_61.cjs.entry.js → tttx-skeleton_loader_1_9_63.cjs.entry.js} +1 -1
  28. package/dist/cjs/{tttx-table_1_9_61.cjs.entry.js → tttx-table_1_9_63.cjs.entry.js} +1 -1
  29. package/dist/cjs/{tttx-tabs_1_9_61.cjs.entry.js → tttx-tabs_1_9_63.cjs.entry.js} +4 -4
  30. package/dist/cjs/{tttx-textarea_1_9_61.cjs.entry.js → tttx-textarea_1_9_63.cjs.entry.js} +2 -2
  31. package/dist/cjs/{tttx-toggle_1_9_61.cjs.entry.js → tttx-toggle_1_9_63.cjs.entry.js} +1 -1
  32. package/dist/cjs/{tttx-tree-view_1_9_61.cjs.entry.js → tttx-tree-view_1_9_63.cjs.entry.js} +3 -3
  33. package/dist/cjs/tttx.cjs.js +1 -1
  34. package/dist/collection/collection-manifest.json +1 -0
  35. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  36. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +24 -24
  37. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  38. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  39. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  40. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  41. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  42. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  43. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  44. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  45. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  46. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +2 -2
  47. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  48. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  49. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  50. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  51. package/dist/collection/components/atoms/tttx-skeleton-loader/tttx-skeleton-loader.js +1 -1
  52. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
  53. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  54. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  55. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  56. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +2 -2
  57. package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +1 -1
  58. package/dist/collection/components/molecules/tttx-chart/tttx-chart.css +61 -0
  59. package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +383 -0
  60. package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +112 -0
  61. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  62. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  63. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  64. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  65. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +21 -7
  66. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +4 -4
  67. package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.js +1 -1
  68. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  69. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  70. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  71. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  72. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  73. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  74. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  75. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  76. package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -2
  77. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +8 -8
  78. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  79. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  80. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  81. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  82. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +7 -7
  83. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
  84. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
  85. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
  86. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  87. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  88. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  89. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  90. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  91. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  92. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  93. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  94. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  95. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  96. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  97. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  98. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  99. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +1 -1
  100. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  101. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  102. package/dist/{cjs/tttx-graph_1_9_61.cjs.entry.js → components/auto.js} +1 -135
  103. package/dist/components/index.d.ts +34 -33
  104. package/dist/components/index.js +34 -33
  105. package/dist/components/tttx-action-dropdown_1_9_63.d.ts +11 -0
  106. package/dist/components/{tttx-action-dropdown_1_9_61.js → tttx-action-dropdown_1_9_63.js} +7 -7
  107. package/dist/components/tttx-button.js +5 -5
  108. package/dist/components/{tttx-dialog_1_9_61.d.ts → tttx-button_1_9_63.d.ts} +4 -4
  109. package/dist/components/{tttx-button_1_9_61.js → tttx-button_1_9_63.js} +2 -2
  110. package/dist/components/{tttx-graph_1_9_61.d.ts → tttx-chart_1_9_63.d.ts} +4 -4
  111. package/dist/components/tttx-chart_1_9_63.js +247 -0
  112. package/dist/components/tttx-checkbox-group-caption_1_9_63.d.ts +11 -0
  113. package/dist/components/{tttx-checkbox-group-caption_1_9_61.js → tttx-checkbox-group-caption_1_9_63.js} +5 -5
  114. package/dist/components/tttx-checkbox-group-heading_1_9_63.d.ts +11 -0
  115. package/dist/components/{tttx-checkbox-group-heading_1_9_61.js → tttx-checkbox-group-heading_1_9_63.js} +5 -5
  116. package/dist/components/tttx-checkbox-group_1_9_63.d.ts +11 -0
  117. package/dist/components/{tttx-checkbox-group_1_9_61.js → tttx-checkbox-group_1_9_63.js} +5 -5
  118. package/dist/components/{tttx-comments_1_9_61.d.ts → tttx-checkbox_1_9_63.d.ts} +4 -4
  119. package/dist/components/{tttx-checkbox_1_9_61.js → tttx-checkbox_1_9_63.js} +7 -7
  120. package/dist/components/{tttx-datacard_1_9_61.d.ts → tttx-comments_1_9_63.d.ts} +4 -4
  121. package/dist/components/{tttx-comments_1_9_61.js → tttx-comments_1_9_63.js} +26 -12
  122. package/dist/components/tttx-data-pattern_1_9_63.d.ts +11 -0
  123. package/dist/components/{tttx-data-pattern_1_9_61.js → tttx-data-pattern_1_9_63.js} +16 -16
  124. package/dist/components/{tttx-checkbox_1_9_61.d.ts → tttx-datacard_1_9_63.d.ts} +4 -4
  125. package/dist/components/{tttx-datacard_1_9_61.js → tttx-datacard_1_9_63.js} +10 -10
  126. package/dist/components/tttx-date-range-picker.js +3 -3
  127. package/dist/components/tttx-dialog-box_1_9_63.d.ts +11 -0
  128. package/dist/components/{tttx-dialog-box_1_9_61.js → tttx-dialog-box_1_9_63.js} +9 -9
  129. package/dist/components/{tttx-button_1_9_61.d.ts → tttx-dialog_1_9_63.d.ts} +4 -4
  130. package/dist/components/{tttx-dialog_1_9_61.js → tttx-dialog_1_9_63.js} +8 -8
  131. package/dist/components/tttx-expander_1_9_63.d.ts +11 -0
  132. package/dist/components/{tttx-expander_1_9_61.js → tttx-expander_1_9_63.js} +7 -7
  133. package/dist/components/tttx-filter.js +6 -6
  134. package/dist/components/{tttx-filter_1_9_61.d.ts → tttx-filter_1_9_63.d.ts} +4 -4
  135. package/dist/components/{tttx-filter_1_9_61.js → tttx-filter_1_9_63.js} +2 -2
  136. package/dist/components/{tttx-tabs_1_9_61.d.ts → tttx-form_1_9_63.d.ts} +4 -4
  137. package/dist/components/{tttx-form_1_9_61.js → tttx-form_1_9_63.js} +11 -11
  138. package/dist/components/tttx-graph.js +4 -14783
  139. package/dist/components/{tttx-table_1_9_61.d.ts → tttx-graph_1_9_63.d.ts} +4 -4
  140. package/dist/components/{tttx-graph_1_9_61.js → tttx-graph_1_9_63.js} +2 -2
  141. package/dist/components/tttx-icon.js +3 -3
  142. package/dist/components/{tttx-icon_1_9_61.d.ts → tttx-icon_1_9_63.d.ts} +4 -4
  143. package/dist/components/{tttx-icon_1_9_61.js → tttx-icon_1_9_63.js} +2 -2
  144. package/dist/components/tttx-keyvalue-block_1_9_63.d.ts +11 -0
  145. package/dist/components/{tttx-keyvalue-block_1_9_61.js → tttx-keyvalue-block_1_9_63.js} +5 -5
  146. package/dist/components/tttx-list.js +6 -6
  147. package/dist/components/{tttx-list_1_9_61.d.ts → tttx-list_1_9_63.d.ts} +4 -4
  148. package/dist/components/{tttx-list_1_9_61.js → tttx-list_1_9_63.js} +2 -2
  149. package/dist/components/tttx-loading-spinner.js +3 -3
  150. package/dist/components/tttx-loading-spinner_1_9_63.d.ts +11 -0
  151. package/dist/components/{tttx-loading-spinner_1_9_61.js → tttx-loading-spinner_1_9_63.js} +2 -2
  152. package/dist/components/tttx-multiselect-box_1_9_63.d.ts +11 -0
  153. package/dist/components/{tttx-multiselect-box_1_9_61.js → tttx-multiselect-box_1_9_63.js} +16 -16
  154. package/dist/components/tttx-percentage-bar_1_9_63.d.ts +11 -0
  155. package/dist/components/{tttx-percentage-bar_1_9_61.js → tttx-percentage-bar_1_9_63.js} +6 -6
  156. package/dist/components/{tttx-qrcode_1_9_61.d.ts → tttx-qrcode_1_9_63.d.ts} +4 -4
  157. package/dist/components/{tttx-qrcode_1_9_61.js → tttx-qrcode_1_9_63.js} +5 -5
  158. package/dist/components/tttx-select-box.js +12 -12
  159. package/dist/components/tttx-select-box_1_9_63.d.ts +11 -0
  160. package/dist/components/{tttx-select-box_1_9_61.js → tttx-select-box_1_9_63.js} +2 -2
  161. package/dist/components/tttx-skeleton_loader_1_9_63.d.ts +11 -0
  162. package/dist/components/{tttx-skeleton_loader_1_9_61.js → tttx-skeleton_loader_1_9_63.js} +5 -5
  163. package/dist/components/tttx-sorter.js +5 -5
  164. package/dist/components/tttx-sorter_1_9_63.d.ts +11 -0
  165. package/dist/components/{tttx-sorter_1_9_61.js → tttx-sorter_1_9_63.js} +2 -2
  166. package/dist/components/tttx-standalone-input.js +6 -6
  167. package/dist/components/tttx-standalone-input_1_9_63.d.ts +11 -0
  168. package/dist/components/{tttx-standalone-input_1_9_61.js → tttx-standalone-input_1_9_63.js} +2 -2
  169. package/dist/components/tttx-table_1_9_63.d.ts +11 -0
  170. package/dist/components/{tttx-table_1_9_61.js → tttx-table_1_9_63.js} +5 -5
  171. package/dist/components/{tttx-form_1_9_61.d.ts → tttx-tabs_1_9_63.d.ts} +4 -4
  172. package/dist/components/{tttx-tabs_1_9_61.js → tttx-tabs_1_9_63.js} +9 -9
  173. package/dist/components/tttx-tag.js +5 -5
  174. package/dist/components/{tttx-tag_1_9_61.d.ts → tttx-tag_1_9_63.d.ts} +4 -4
  175. package/dist/components/{tttx-tag_1_9_61.js → tttx-tag_1_9_63.js} +2 -2
  176. package/dist/components/tttx-textarea_1_9_63.d.ts +11 -0
  177. package/dist/components/{tttx-textarea_1_9_61.js → tttx-textarea_1_9_63.js} +6 -6
  178. package/dist/components/tttx-toggle_1_9_63.d.ts +11 -0
  179. package/dist/components/{tttx-toggle_1_9_61.js → tttx-toggle_1_9_63.js} +5 -5
  180. package/dist/components/tttx-toolbar.js +3 -3
  181. package/dist/components/tttx-toolbar_1_9_63.d.ts +11 -0
  182. package/dist/components/{tttx-toolbar_1_9_61.js → tttx-toolbar_1_9_63.js} +2 -2
  183. package/dist/components/tttx-tree-view_1_9_63.d.ts +11 -0
  184. package/dist/components/{tttx-tree-view_1_9_61.js → tttx-tree-view_1_9_63.js} +9 -9
  185. package/dist/esm/auto-c6e6ac5c.js +14781 -0
  186. package/dist/esm/loader.js +1 -1
  187. package/dist/esm/{tttx-action-dropdown_1_9_61.entry.js → tttx-action-dropdown_1_9_63.entry.js} +2 -2
  188. package/dist/esm/{tttx-button_1_9_61.entry.js → tttx-button_1_9_63.entry.js} +2 -2
  189. package/dist/esm/tttx-chart_1_9_63.entry.js +199 -0
  190. package/dist/esm/{tttx-checkbox-group-caption_1_9_61.entry.js → tttx-checkbox-group-caption_1_9_63.entry.js} +1 -1
  191. package/dist/esm/{tttx-checkbox-group-heading_1_9_61.entry.js → tttx-checkbox-group-heading_1_9_63.entry.js} +1 -1
  192. package/dist/esm/{tttx-checkbox-group_1_9_61.entry.js → tttx-checkbox-group_1_9_63.entry.js} +1 -1
  193. package/dist/esm/{tttx-checkbox_1_9_61.entry.js → tttx-checkbox_1_9_63.entry.js} +2 -2
  194. package/dist/esm/{tttx-comments_1_9_61.entry.js → tttx-comments_1_9_63.entry.js} +21 -7
  195. package/dist/esm/{tttx-data-pattern_1_9_61.entry.js → tttx-data-pattern_1_9_63.entry.js} +5 -5
  196. package/dist/esm/{tttx-datacard_1_9_61.entry.js → tttx-datacard_1_9_63.entry.js} +4 -4
  197. package/dist/esm/tttx-date-range-picker.entry.js +1 -1
  198. package/dist/esm/{tttx-dialog-box_1_9_61.entry.js → tttx-dialog-box_1_9_63.entry.js} +3 -3
  199. package/dist/esm/{tttx-dialog_1_9_61.entry.js → tttx-dialog_1_9_63.entry.js} +2 -2
  200. package/dist/esm/{tttx-expander_1_9_61.entry.js → tttx-expander_1_9_63.entry.js} +2 -2
  201. package/dist/esm/{tttx-filter_1_9_61_4.entry.js → tttx-filter_1_9_63_4.entry.js} +6 -6
  202. package/dist/esm/{tttx-form_1_9_61.entry.js → tttx-form_1_9_63.entry.js} +2 -2
  203. package/dist/esm/tttx-graph_1_9_63.entry.js +132 -0
  204. package/dist/esm/{tttx-icon_1_9_61.entry.js → tttx-icon_1_9_63.entry.js} +1 -1
  205. package/dist/esm/{tttx-keyvalue-block_1_9_61.entry.js → tttx-keyvalue-block_1_9_63.entry.js} +1 -1
  206. package/dist/esm/{tttx-loading-spinner_1_9_61_3.entry.js → tttx-loading-spinner_1_9_63_3.entry.js} +4 -4
  207. package/dist/esm/{tttx-multiselect-box_1_9_61.entry.js → tttx-multiselect-box_1_9_63.entry.js} +7 -7
  208. package/dist/esm/{tttx-percentage-bar_1_9_61.entry.js → tttx-percentage-bar_1_9_63.entry.js} +2 -2
  209. package/dist/esm/{tttx-qrcode_1_9_61.entry.js → tttx-qrcode_1_9_63.entry.js} +1 -1
  210. package/dist/esm/{tttx-select-box_1_9_61.entry.js → tttx-select-box_1_9_63.entry.js} +6 -6
  211. package/dist/esm/{tttx-skeleton_loader_1_9_61.entry.js → tttx-skeleton_loader_1_9_63.entry.js} +1 -1
  212. package/dist/esm/{tttx-table_1_9_61.entry.js → tttx-table_1_9_63.entry.js} +1 -1
  213. package/dist/esm/{tttx-tabs_1_9_61.entry.js → tttx-tabs_1_9_63.entry.js} +4 -4
  214. package/dist/esm/{tttx-textarea_1_9_61.entry.js → tttx-textarea_1_9_63.entry.js} +2 -2
  215. package/dist/esm/{tttx-toggle_1_9_61.entry.js → tttx-toggle_1_9_63.entry.js} +1 -1
  216. package/dist/esm/{tttx-tree-view_1_9_61.entry.js → tttx-tree-view_1_9_63.entry.js} +3 -3
  217. package/dist/esm/tttx.js +1 -1
  218. package/dist/tttx/p-13d3d63c.entry.js +1 -1
  219. package/dist/tttx/p-1814eb61.entry.js +1 -1
  220. package/dist/tttx/p-19294325.entry.js +1 -1
  221. package/dist/tttx/p-218f3309.entry.js +1 -1
  222. package/dist/tttx/p-24eef142.entry.js +1 -1
  223. package/dist/tttx/p-2636cba4.entry.js +1 -1
  224. package/dist/tttx/p-39bb618e.js +19 -0
  225. package/dist/tttx/p-477b66de.entry.js +1 -1
  226. package/dist/tttx/p-54060e46.entry.js +1 -1
  227. package/dist/tttx/p-5f35edd8.entry.js +1 -1
  228. package/dist/tttx/p-61af5028.entry.js +1 -1
  229. package/dist/tttx/p-67f75171.entry.js +1 -1
  230. package/dist/tttx/p-7bfa4e1e.entry.js +1 -1
  231. package/dist/tttx/p-7c7e8951.entry.js +1 -1
  232. package/dist/tttx/p-8be90d8a.entry.js +1 -1
  233. package/dist/tttx/p-972b7449.entry.js +1 -1
  234. package/dist/tttx/p-a1ba99fb.entry.js +1 -1
  235. package/dist/tttx/p-a474dc05.entry.js +1 -1
  236. package/dist/tttx/p-a7527509.entry.js +1 -0
  237. package/dist/tttx/p-a800aa5d.entry.js +1 -1
  238. package/dist/tttx/p-acb9e007.entry.js +1 -1
  239. package/dist/tttx/p-b44ddcb7.entry.js +1 -1
  240. package/dist/tttx/p-b4b5e1e1.entry.js +1 -1
  241. package/dist/tttx/p-bc8c1d08.entry.js +1 -1
  242. package/dist/tttx/p-c9e7d9fa.entry.js +1 -0
  243. package/dist/tttx/p-cb3b393b.entry.js +1 -1
  244. package/dist/tttx/p-d62c8ed2.entry.js +1 -1
  245. package/dist/tttx/p-e84965f0.entry.js +1 -1
  246. package/dist/tttx/p-edf27c73.entry.js +1 -1
  247. package/dist/tttx/p-f1e945ba.entry.js +1 -1
  248. package/dist/tttx/p-fac3056d.entry.js +1 -0
  249. package/dist/tttx/tttx.esm.js +1 -1
  250. package/dist/types/components/molecules/tttx-chart/tttx-chart.d.ts +42 -0
  251. package/dist/types/components/molecules/tttx-chart/tttx-chart.stories.d.ts +11 -0
  252. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  253. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  254. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  255. package/dist/types/components.d.ts +430 -395
  256. package/package.json +1 -1
  257. package/dist/components/tttx-action-dropdown_1_9_61.d.ts +0 -11
  258. package/dist/components/tttx-checkbox-group-caption_1_9_61.d.ts +0 -11
  259. package/dist/components/tttx-checkbox-group-heading_1_9_61.d.ts +0 -11
  260. package/dist/components/tttx-checkbox-group_1_9_61.d.ts +0 -11
  261. package/dist/components/tttx-data-pattern_1_9_61.d.ts +0 -11
  262. package/dist/components/tttx-dialog-box_1_9_61.d.ts +0 -11
  263. package/dist/components/tttx-expander_1_9_61.d.ts +0 -11
  264. package/dist/components/tttx-keyvalue-block_1_9_61.d.ts +0 -11
  265. package/dist/components/tttx-loading-spinner_1_9_61.d.ts +0 -11
  266. package/dist/components/tttx-multiselect-box_1_9_61.d.ts +0 -11
  267. package/dist/components/tttx-percentage-bar_1_9_61.d.ts +0 -11
  268. package/dist/components/tttx-select-box_1_9_61.d.ts +0 -11
  269. package/dist/components/tttx-skeleton_loader_1_9_61.d.ts +0 -11
  270. package/dist/components/tttx-sorter_1_9_61.d.ts +0 -11
  271. package/dist/components/tttx-standalone-input_1_9_61.d.ts +0 -11
  272. package/dist/components/tttx-textarea_1_9_61.d.ts +0 -11
  273. package/dist/components/tttx-toggle_1_9_61.d.ts +0 -11
  274. package/dist/components/tttx-toolbar_1_9_61.d.ts +0 -11
  275. package/dist/components/tttx-tree-view_1_9_61.d.ts +0 -11
  276. package/dist/tttx/p-bbecd0d9.entry.js +0 -19
  277. package/dist/tttx/p-f57792f7.entry.js +0 -1
@@ -0,0 +1,61 @@
1
+ .chart-wrapper {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ }
6
+
7
+ canvas {
8
+ display: block;
9
+ width: 100% !important;
10
+ height: 100% !important;
11
+ }
12
+
13
+ .export-buttons {
14
+ display: flex;
15
+ gap: 0.5rem;
16
+ justify-content: flex-end;
17
+ padding-top: 0.5rem;
18
+ padding-bottom: 0.5rem;
19
+ }
20
+
21
+ .chart-loading {
22
+ width: 100%;
23
+ height: 100%;
24
+ align-items: center;
25
+ justify-content: center;
26
+ display: flex;
27
+ }
28
+
29
+ .error-content {
30
+ width: 100%;
31
+ height: 100%;
32
+ display: flex;
33
+ flex-direction: column;
34
+ align-items: center;
35
+ justify-content: center;
36
+ gap: 8px;
37
+ align-self: stretch;
38
+ }
39
+ .error-content .error-heading {
40
+ color: var(--Text-Default-Default, #111);
41
+ text-align: center;
42
+ font-family: Roboto;
43
+ font-size: 14px;
44
+ font-style: normal;
45
+ font-weight: 600;
46
+ line-height: 20px;
47
+ }
48
+ .error-content .error-message {
49
+ color: var(--Text-Neutral-Default, #737373);
50
+ text-align: center;
51
+ font-family: Roboto;
52
+ font-size: 14px;
53
+ font-style: normal;
54
+ font-weight: 400;
55
+ line-height: 20px;
56
+ }
57
+ .error-content .error-actions {
58
+ display: flex;
59
+ align-items: flex-start;
60
+ gap: 12px;
61
+ }
@@ -0,0 +1,383 @@
1
+ import { h } from '@stencil/core';
2
+ import Chart from 'chart.js/auto';
3
+ export class TttxChart {
4
+ constructor() {
5
+ this.chartType = undefined;
6
+ this.chartData = undefined;
7
+ this.chartOptions = undefined;
8
+ this.loading = false;
9
+ this.error = undefined;
10
+ this.fallbackText = 'No data available';
11
+ this.width = '100%';
12
+ this.height = 'auto';
13
+ this.exportable = false;
14
+ this.chartInstance = undefined;
15
+ this.showPngSvgExport = false;
16
+ }
17
+ handleUpdate() {
18
+ this.renderChart();
19
+ }
20
+ componentDidLoad() {
21
+ this.renderChart();
22
+ }
23
+ disconnectedCallback() {
24
+ this.destroyChart();
25
+ }
26
+ renderChart() {
27
+ var _a, _b;
28
+ if (!this.canvasEl || !this.chartData || !this.chartType)
29
+ return;
30
+ this.destroyChart();
31
+ const config = {
32
+ type: this.getChartJsType(),
33
+ data: this.chartData,
34
+ options: this.getChartOptions(),
35
+ plugins: []
36
+ };
37
+ if (this.chartType === 'doughnut' || this.chartType === 'semi-gauge') {
38
+ const total = ((_b = (_a = this.chartData.datasets[0]) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((d) => Number(d) || 0).reduce((a, b) => a + b, 0)) || 0;
39
+ config.plugins.push(this.getCenterTextPlugin(total.toLocaleString()));
40
+ }
41
+ this.chartInstance = new Chart(this.canvasEl, config);
42
+ }
43
+ destroyChart() {
44
+ if (this.chartInstance) {
45
+ this.chartInstance.destroy();
46
+ }
47
+ }
48
+ getChartJsType() {
49
+ if (this.chartType === 'semi-gauge')
50
+ return 'doughnut';
51
+ return this.chartType;
52
+ }
53
+ getBaseOptions() {
54
+ return {
55
+ responsive: true,
56
+ maintainAspectRatio: false,
57
+ plugins: {
58
+ legend: {
59
+ display: true,
60
+ position: 'bottom',
61
+ labels: {
62
+ usePointStyle: true,
63
+ pointStyle: 'circle',
64
+ },
65
+ },
66
+ tooltip: {
67
+ callbacks: {
68
+ label: (ctx) => `${ctx.label || ctx.dataset.label}: ${ctx.formattedValue}`,
69
+ },
70
+ },
71
+ },
72
+ };
73
+ }
74
+ getLineChartConfig() {
75
+ return {
76
+ plugins: {
77
+ legend: {
78
+ labels: { usePointStyle: true, pointStyle: 'line' },
79
+ },
80
+ tooltip: {
81
+ callbacks: {
82
+ label: (ctx) => `${ctx.dataset.label}: ${ctx.formattedValue}%`,
83
+ },
84
+ },
85
+ },
86
+ scales: {
87
+ x: { grid: { color: '#e5e5e5' } },
88
+ y: {
89
+ beginAtZero: true,
90
+ max: 100,
91
+ ticks: { callback: (val) => `${val}%` },
92
+ grid: { color: '#e5e5e5' },
93
+ },
94
+ },
95
+ };
96
+ }
97
+ getDoughnutChartConfig() {
98
+ return {
99
+ plugins: {
100
+ legend: { labels: { pointStyle: 'circle', padding: 16, } },
101
+ },
102
+ cutout: '60%'
103
+ };
104
+ }
105
+ getCenterTextPlugin(value) {
106
+ return {
107
+ id: 'centerText',
108
+ afterDatasetsDraw: (chart) => {
109
+ const { ctx } = chart;
110
+ ctx.save();
111
+ const x = chart.getDatasetMeta(0).data[0].x;
112
+ let y = chart.getDatasetMeta(0).data[0].y;
113
+ if (this.chartType === 'semi-gauge') {
114
+ y -= 20;
115
+ }
116
+ ctx.font = 'bold 20px Roboto';
117
+ ctx.fillStyle = '#111';
118
+ ctx.textAlign = 'center';
119
+ ctx.textBaseline = 'middle';
120
+ ctx.fillText(value, x, y);
121
+ },
122
+ };
123
+ }
124
+ getSemiGaugeChartConfig() {
125
+ return {
126
+ plugins: {
127
+ legend: { labels: { pointStyle: 'circle', padding: 16, } },
128
+ },
129
+ rotation: -90,
130
+ circumference: 180,
131
+ cutout: '70%',
132
+ };
133
+ }
134
+ merge(target, source) {
135
+ if (typeof target !== 'object' || typeof source !== 'object')
136
+ return source;
137
+ for (const key of Object.keys(source)) {
138
+ if (source[key] instanceof Object && key in target) {
139
+ target[key] = this.merge(Object.assign({}, target[key]), source[key]);
140
+ }
141
+ else {
142
+ target[key] = source[key];
143
+ }
144
+ }
145
+ return target;
146
+ }
147
+ getChartOptions() {
148
+ const base = this.getBaseOptions();
149
+ let specific = {};
150
+ if (this.chartType === 'line')
151
+ specific = this.getLineChartConfig();
152
+ else if (this.chartType === 'doughnut')
153
+ specific = this.getDoughnutChartConfig();
154
+ else if (this.chartType === 'semi-gauge')
155
+ specific = this.getSemiGaugeChartConfig();
156
+ return this.merge(this.merge(base, specific), this.chartOptions || {});
157
+ }
158
+ exportChart(format) {
159
+ if (!this.chartInstance)
160
+ return;
161
+ const link = document.createElement('a');
162
+ link.download = `chart-export.${format}`;
163
+ if (format === 'png') {
164
+ link.href = this.chartInstance.toBase64Image('image/png');
165
+ }
166
+ else {
167
+ const svgData = new XMLSerializer().serializeToString(this.canvasEl);
168
+ const blob = new Blob([svgData], { type: 'image/svg+xml' });
169
+ link.href = URL.createObjectURL(blob);
170
+ }
171
+ link.click();
172
+ }
173
+ getErrorContent() {
174
+ return this.commonContent('warning', 'Something went wrong', 'We ran into an issue while trying to load this widget.', '#DC0000', true);
175
+ }
176
+ getNoDataContent() {
177
+ return this.commonContent('ssid_chart', 'No data available', 'There is currently no data available to show performance trends.', '#111');
178
+ }
179
+ commonContent(iconName, heading, message, iconColor, showActions = false) {
180
+ return (h("div", { class: "error-content" }, h("tttx-icon_1_9_63", { icon: iconName, color: iconColor, size: 48 }), h("span", { class: 'error-heading' }, heading), h("span", { class: 'error-message' }, message), showActions && h("div", { class: "error-actions" }, h("tttx-button_1_9_63", { class: 'reload-btn', icon: "refresh", design: 'default', onClick: () => this.renderChart() }, "Reload data"), h("tttx-button_1_9_63", { class: 'support-btn', icon: "help", design: "primary", onClick: () => this.renderChart() }, "Contact support"))));
181
+ }
182
+ render() {
183
+ var _a, _b, _c;
184
+ return (h("div", { class: "chart-wrapper", style: { width: this.width, height: this.height } }, this.loading && h("div", { class: "chart-loading" }, h("tttx-loading-spinner_1_9_63", { size: 'large', color: '#2b9ab7' })), this.error && this.getErrorContent(), !this.loading && !this.error && (!this.chartData || !((_a = this.chartData.datasets) === null || _a === void 0 ? void 0 : _a.length)) && (this.getNoDataContent()), !this.loading && !this.error && ((_c = (_b = this.chartData) === null || _b === void 0 ? void 0 : _b.datasets) === null || _c === void 0 ? void 0 : _c.length) > 0 && (h("canvas", { ref: el => (this.canvasEl = el), "aria-label": "Chart canvas", role: "img" })), this.exportable && !this.loading && !this.error && (h("div", { class: "export-buttons" }, this.showPngSvgExport && h("tttx-button_1_9_63", { class: 'export-png', design: "primary", onClick: () => this.exportChart('png') }, "Export PNG"), this.showPngSvgExport && h("tttx-button_1_9_63", { class: 'export-svg', design: "primary", onClick: () => this.exportChart('svg') }, "Export SVG"), h("tttx-button_1_9_63", { class: 'export-csv', design: "primary", onClick: () => this.exportCSV.emit({ name: this.chartType }) }, "Export CSV")))));
185
+ }
186
+ static get is() { return "tttx-chart_1_9_63"; }
187
+ static get encapsulation() { return "shadow"; }
188
+ static get originalStyleUrls() {
189
+ return {
190
+ "$": ["tttx-chart.scss"]
191
+ };
192
+ }
193
+ static get styleUrls() {
194
+ return {
195
+ "$": ["tttx-chart.css"]
196
+ };
197
+ }
198
+ static get properties() {
199
+ return {
200
+ "chartType": {
201
+ "type": "string",
202
+ "mutable": false,
203
+ "complexType": {
204
+ "original": "'line' | 'doughnut' | 'semi-gauge'",
205
+ "resolved": "\"doughnut\" | \"line\" | \"semi-gauge\"",
206
+ "references": {}
207
+ },
208
+ "required": false,
209
+ "optional": false,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": ""
213
+ },
214
+ "attribute": "chart-type",
215
+ "reflect": false
216
+ },
217
+ "chartData": {
218
+ "type": "unknown",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "ChartData",
222
+ "resolved": "ChartData<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[], unknown>",
223
+ "references": {
224
+ "ChartData": {
225
+ "location": "import",
226
+ "path": "chart.js"
227
+ }
228
+ }
229
+ },
230
+ "required": false,
231
+ "optional": false,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": ""
235
+ }
236
+ },
237
+ "chartOptions": {
238
+ "type": "unknown",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "ChartOptions",
242
+ "resolved": "{ datasets?: _DeepPartialObject<{ line: LineControllerDatasetOptions & FillerControllerDatasetOptions; bar: BarControllerDatasetOptions; scatter: LineControllerDatasetOptions; bubble: BubbleControllerDatasetOptions; pie: DoughnutControllerDatasetOptions; doughnut: DoughnutControllerDatasetOptions; polarArea: PolarAreaControllerDatasetOptions; radar: RadarControllerDatasetOptions & FillerControllerDatasetOptions; }>; indexAxis?: \"x\" | \"y\"; clip?: number | false | _DeepPartialObject<ChartArea>; color?: string | _DeepPartialObject<CanvasGradient> | _DeepPartialObject<CanvasPattern> | ((ctx: ScriptableContext<keyof ChartTypeRegistry>, options: AnyObject) => Color); backgroundColor?: string | _DeepPartialObject<CanvasGradient> | _DeepPartialObject<CanvasPattern> | ((ctx: ScriptableContext<keyof ChartTypeRegistry>, options: AnyObject) => Color); borderColor?: string | _DeepPartialObject<CanvasGradient> | _DeepPartialObject<CanvasPattern> | ((ctx: ScriptableContext<keyof ChartTypeRegistry>, options: AnyObject) => Color); font?: _DeepPartialObject<Partial<FontSpec>>; responsive?: boolean; maintainAspectRatio?: boolean; resizeDelay?: number; aspectRatio?: number; locale?: string; onResize?: (chart: Chart<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[], unknown>, size: { width: number; height: number; }) => void; devicePixelRatio?: number; interaction?: _DeepPartialObject<CoreInteractionOptions>; hover?: _DeepPartialObject<CoreInteractionOptions>; events?: _DeepPartialArray<keyof HTMLElementEventMap>; onHover?: (event: ChartEvent, elements: ActiveElement[], chart: Chart<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[], unknown>) => void; onClick?: (event: ChartEvent, elements: ActiveElement[], chart: Chart<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[], unknown>) => void; layout?: _DeepPartialObject<Partial<{ autoPadding: boolean; padding: Scriptable<Padding, ScriptableContext<keyof ChartTypeRegistry>>; }>>; parsing?: false | _DeepPartialObject<{ [key: string]: string; }>; normalized?: boolean; animation?: false | _DeepPartialObject<AnimationSpec<keyof ChartTypeRegistry> & { onProgress?: (this: Chart<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[], unknown>, event: AnimationEvent) => void; onComplete?: (this: Chart<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[], unknown>, event: AnimationEvent) => void; }>; animations?: _DeepPartialObject<AnimationsSpec<keyof ChartTypeRegistry>>; transitions?: _DeepPartialObject<TransitionsSpec<keyof ChartTypeRegistry>>; elements?: _DeepPartialObject<ElementOptionsByType<keyof ChartTypeRegistry>>; plugins?: _DeepPartialObject<PluginOptionsByType<keyof ChartTypeRegistry>>; line?: _DeepPartialObject<{ datasets: LineControllerDatasetOptions & FillerControllerDatasetOptions; }>; bar?: _DeepPartialObject<{ datasets: BarControllerDatasetOptions; }>; scatter?: _DeepPartialObject<{ datasets: LineControllerDatasetOptions; }>; bubble?: _DeepPartialObject<{ datasets: BubbleControllerDatasetOptions; }>; pie?: _DeepPartialObject<{ datasets: DoughnutControllerDatasetOptions; }>; doughnut?: _DeepPartialObject<{ datasets: DoughnutControllerDatasetOptions; }>; polarArea?: _DeepPartialObject<{ datasets: PolarAreaControllerDatasetOptions; }>; radar?: _DeepPartialObject<{ datasets: RadarControllerDatasetOptions & FillerControllerDatasetOptions; }>; scales?: _DeepPartialObject<{ [key: string]: ScaleOptionsByType<\"radialLinear\" | keyof CartesianScaleTypeRegistry>; }>; }",
243
+ "references": {
244
+ "ChartOptions": {
245
+ "location": "import",
246
+ "path": "chart.js"
247
+ }
248
+ }
249
+ },
250
+ "required": false,
251
+ "optional": true,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": ""
255
+ }
256
+ },
257
+ "loading": {
258
+ "type": "boolean",
259
+ "mutable": false,
260
+ "complexType": {
261
+ "original": "boolean",
262
+ "resolved": "boolean",
263
+ "references": {}
264
+ },
265
+ "required": false,
266
+ "optional": true,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": ""
270
+ },
271
+ "attribute": "loading",
272
+ "reflect": false,
273
+ "defaultValue": "false"
274
+ },
275
+ "error": {
276
+ "type": "boolean",
277
+ "mutable": false,
278
+ "complexType": {
279
+ "original": "boolean",
280
+ "resolved": "boolean",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": true,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": ""
288
+ },
289
+ "attribute": "error",
290
+ "reflect": false
291
+ },
292
+ "fallbackText": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "string",
297
+ "resolved": "string",
298
+ "references": {}
299
+ },
300
+ "required": false,
301
+ "optional": true,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": ""
305
+ },
306
+ "attribute": "fallback-text",
307
+ "reflect": false,
308
+ "defaultValue": "'No data available'"
309
+ },
310
+ "width": {
311
+ "type": "string",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "string",
315
+ "resolved": "string",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": false,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": ""
323
+ },
324
+ "attribute": "width",
325
+ "reflect": false,
326
+ "defaultValue": "'100%'"
327
+ },
328
+ "height": {
329
+ "type": "string",
330
+ "mutable": false,
331
+ "complexType": {
332
+ "original": "string",
333
+ "resolved": "string",
334
+ "references": {}
335
+ },
336
+ "required": false,
337
+ "optional": false,
338
+ "docs": {
339
+ "tags": [],
340
+ "text": ""
341
+ },
342
+ "attribute": "height",
343
+ "reflect": false,
344
+ "defaultValue": "'auto'"
345
+ }
346
+ };
347
+ }
348
+ static get states() {
349
+ return {
350
+ "exportable": {},
351
+ "chartInstance": {},
352
+ "showPngSvgExport": {}
353
+ };
354
+ }
355
+ static get events() {
356
+ return [{
357
+ "method": "exportCSV",
358
+ "name": "exportCSV",
359
+ "bubbles": true,
360
+ "cancelable": true,
361
+ "composed": true,
362
+ "docs": {
363
+ "tags": [],
364
+ "text": ""
365
+ },
366
+ "complexType": {
367
+ "original": "{ name: string }",
368
+ "resolved": "{ name: string; }",
369
+ "references": {}
370
+ }
371
+ }];
372
+ }
373
+ static get elementRef() { return "el"; }
374
+ static get watchers() {
375
+ return [{
376
+ "propName": "chartData",
377
+ "methodName": "handleUpdate"
378
+ }, {
379
+ "propName": "chartOptions",
380
+ "methodName": "handleUpdate"
381
+ }];
382
+ }
383
+ }
@@ -0,0 +1,112 @@
1
+ import { action } from '@storybook/addon-actions';
2
+ export default {
3
+ title: 'molecules/Charts',
4
+ component: 'tttx-chart_1_9_63',
5
+ parameters: {
6
+ layout: 'centered',
7
+ },
8
+ };
9
+ const Template = ({ width, height, chartData, loading, error }) => {
10
+ const el = document.createElement('tttx-chart_1_9_63');
11
+ el.chartType = 'line';
12
+ el.width = width;
13
+ el.height = height;
14
+ el.chartData = chartData;
15
+ el.loading = loading;
16
+ el.error = error;
17
+ el.addEventListener('exportCSV', (e) => {
18
+ action('exportCSV event')(e);
19
+ });
20
+ return el;
21
+ };
22
+ export const LineChart = Template.bind({});
23
+ LineChart.args = {
24
+ width: '600px',
25
+ height: '300px',
26
+ loading: false,
27
+ chartData: {
28
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
29
+ datasets: [
30
+ {
31
+ label: 'Overall',
32
+ data: [35, 50, 70, 65, 60, 80, 85, 90, 95, 0, 0, 0],
33
+ borderColor: '#1579C6',
34
+ borderWidth: 2,
35
+ tension: 0.35,
36
+ },
37
+ {
38
+ label: 'Safety Critical',
39
+ data: [20, 30, 40, 30, 20, 35, 45, 65, 85, 0, 0, 0],
40
+ borderColor: '#146EB3',
41
+ borderWidth: 2,
42
+ borderDash: [6, 6],
43
+ tension: 0.35,
44
+ },
45
+ ],
46
+ },
47
+ error: false,
48
+ };
49
+ const DonutChartTemplate = ({ width, height, chartData, loading, error }) => {
50
+ const el = document.createElement('tttx-chart_1_9_63');
51
+ el.chartType = 'doughnut';
52
+ el.width = width;
53
+ el.height = height;
54
+ el.chartData = chartData;
55
+ el.loading = loading;
56
+ el.error = error;
57
+ el.addEventListener('exportCSV', (e) => {
58
+ action('exportCSV event')(e);
59
+ });
60
+ return el;
61
+ };
62
+ export const DonutChart = DonutChartTemplate.bind({});
63
+ DonutChart.args = {
64
+ width: '600px',
65
+ height: '400px',
66
+ loading: false,
67
+ chartData: {
68
+ labels: ['Worker', 'Assessor', 'Verifier', 'Admin'],
69
+ datasets: [
70
+ {
71
+ data: [4000, 2500, 2000, 1154],
72
+ backgroundColor: ['#1579C6', '#146EB3', '#1464A2', '#C2DAEE'],
73
+ borderWidth: 0,
74
+ borderRadius: 4,
75
+ offset: 16
76
+ },
77
+ ],
78
+ },
79
+ error: false
80
+ };
81
+ const semiGaugeChartTemplate = ({ width, height, chartData, loading, error }) => {
82
+ const el = document.createElement('tttx-chart_1_9_63');
83
+ el.chartType = 'semi-gauge';
84
+ el.width = width;
85
+ el.height = height;
86
+ el.chartData = chartData;
87
+ el.loading = loading;
88
+ el.error = error;
89
+ el.addEventListener('exportCSV', (e) => {
90
+ action('exportCSV event')(e);
91
+ });
92
+ return el;
93
+ };
94
+ export const SemiGaugeChart = semiGaugeChartTemplate.bind({});
95
+ SemiGaugeChart.args = {
96
+ width: '600px',
97
+ height: '400px',
98
+ loading: false,
99
+ chartData: {
100
+ labels: ['Worker', 'Assessor', 'Verifier', 'Admin'],
101
+ datasets: [
102
+ {
103
+ data: [4000, 2500, 2000, 1154],
104
+ backgroundColor: ['#1579C6', '#146EB3', '#1464A2', '#C2DAEE'],
105
+ borderWidth: 0,
106
+ borderRadius: 4,
107
+ offset: 16
108
+ },
109
+ ],
110
+ },
111
+ error: false
112
+ };
@@ -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_61"; }
6
+ static get is() { return "tttx-checkbox-group-caption_1_9_63"; }
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_61"; }
6
+ static get is() { return "tttx-checkbox-group-heading_1_9_63"; }
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_61"; }
6
+ static get is() { return "tttx-checkbox-group_1_9_63"; }
7
7
  static get encapsulation() { return "shadow"; }
8
8
  static get originalStyleUrls() {
9
9
  return {
@@ -10,38 +10,38 @@ export default {
10
10
  };
11
11
  const CheckboxGroupTemplate = ({ heading, checkboxData, captionTop, captionBottom }) => {
12
12
  return `
13
- <tttx-checkbox-group_1_9_61 >
13
+ <tttx-checkbox-group_1_9_63 >
14
14
  ${heading ? `
15
- <tttx-checkbox-group-heading_1_9_61>
15
+ <tttx-checkbox-group-heading_1_9_63>
16
16
  ${heading}
17
- </tttx-checkbox-group-heading_1_9_61>
17
+ </tttx-checkbox-group-heading_1_9_63>
18
18
  ` : ''}
19
19
 
20
20
  ${captionTop ? `
21
- <tttx-checkbox-group-caption_1_9_61>
21
+ <tttx-checkbox-group-caption_1_9_63>
22
22
  ${captionTop}
23
- </tttx-checkbox-group-caption_1_9_61>
23
+ </tttx-checkbox-group-caption_1_9_63>
24
24
  ` : ''}
25
25
 
26
26
  ${checkboxData.map(checkboxInfo => {
27
27
  const { label, checked, inline, indeterminate } = checkboxInfo;
28
28
  return `
29
- <tttx-checkbox_1_9_61
29
+ <tttx-checkbox_1_9_63
30
30
  checkbox-id="checkbox"
31
31
  label="${label}"
32
32
  ${inline && 'inline'}
33
33
  ${indeterminate && 'indeterminate'}
34
34
  ${checked && 'checked'}
35
35
  >
36
- </tttx-checkbox_1_9_61> `;
36
+ </tttx-checkbox_1_9_63> `;
37
37
  }).join('')}
38
38
 
39
39
  ${captionBottom ? `
40
- <tttx-checkbox-group-caption_1_9_61>
40
+ <tttx-checkbox-group-caption_1_9_63>
41
41
  ${captionBottom}
42
- </tttx-checkbox-group-caption_1_9_61>
42
+ </tttx-checkbox-group-caption_1_9_63>
43
43
  ` : ''}
44
- </tttx-checkbox-group_1_9_61>
44
+ </tttx-checkbox-group_1_9_63>
45
45
  `;
46
46
  };
47
47
  export const singleCheckbox = CheckboxGroupTemplate.bind({});