@3t-transform/threeteeui 1.9.32 → 1.9.34

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 (246) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button_1_9_32.cjs.entry.js → tttx-button_1_9_34.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption_1_9_32.cjs.entry.js → tttx-checkbox-group-caption_1_9_34.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading_1_9_32.cjs.entry.js → tttx-checkbox-group-heading_1_9_34.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_9_32.cjs.entry.js → tttx-checkbox-group_1_9_34.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_9_32.cjs.entry.js → tttx-checkbox_1_9_34.cjs.entry.js} +2 -2
  7. package/dist/cjs/tttx-comments_1_9_34.cjs.entry.js +124 -0
  8. package/dist/cjs/{tttx-data-pattern_1_9_32.cjs.entry.js → tttx-data-pattern_1_9_34.cjs.entry.js} +5 -5
  9. package/dist/cjs/{tttx-datacard_1_9_32.cjs.entry.js → tttx-datacard_1_9_34.cjs.entry.js} +4 -4
  10. package/dist/cjs/{tttx-dialog-box_1_9_32.cjs.entry.js → tttx-dialog-box_1_9_34.cjs.entry.js} +3 -3
  11. package/dist/cjs/{tttx-dialog_1_9_32.cjs.entry.js → tttx-dialog_1_9_34.cjs.entry.js} +2 -2
  12. package/dist/cjs/{tttx-expander_1_9_32.cjs.entry.js → tttx-expander_1_9_34.cjs.entry.js} +2 -2
  13. package/dist/cjs/{tttx-filter_1_9_32_4.cjs.entry.js → tttx-filter_1_9_34_4.cjs.entry.js} +9 -9
  14. package/dist/cjs/{tttx-form_1_9_32.cjs.entry.js → tttx-form_1_9_34.cjs.entry.js} +2 -2
  15. package/dist/cjs/{tttx-graph_1_9_32.cjs.entry.js → tttx-graph_1_9_34.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-icon_1_9_32.cjs.entry.js → tttx-icon_1_9_34.cjs.entry.js} +1 -1
  17. package/dist/cjs/{tttx-keyvalue-block_1_9_32.cjs.entry.js → tttx-keyvalue-block_1_9_34.cjs.entry.js} +1 -1
  18. package/dist/cjs/{tttx-loading-spinner_1_9_32_3.cjs.entry.js → tttx-loading-spinner_1_9_34_3.cjs.entry.js} +6 -6
  19. package/dist/cjs/{tttx-multiselect-box_1_9_32.cjs.entry.js → tttx-multiselect-box_1_9_34.cjs.entry.js} +7 -7
  20. package/dist/cjs/{tttx-percentage-bar_1_9_32.cjs.entry.js → tttx-percentage-bar_1_9_34.cjs.entry.js} +2 -2
  21. package/dist/cjs/{tttx-qrcode_1_9_32.cjs.entry.js → tttx-qrcode_1_9_34.cjs.entry.js} +1 -1
  22. package/dist/cjs/{tttx-select-box_1_9_32.cjs.entry.js → tttx-select-box_1_9_34.cjs.entry.js} +6 -6
  23. package/dist/cjs/{tttx-table_1_9_32.cjs.entry.js → tttx-table_1_9_34.cjs.entry.js} +1 -1
  24. package/dist/cjs/{tttx-tabs_1_9_32.cjs.entry.js → tttx-tabs_1_9_34.cjs.entry.js} +4 -4
  25. package/dist/cjs/{tttx-textarea_1_9_32.cjs.entry.js → tttx-textarea_1_9_34.cjs.entry.js} +2 -2
  26. package/dist/cjs/{tttx-toggle_1_9_32.cjs.entry.js → tttx-toggle_1_9_34.cjs.entry.js} +1 -1
  27. package/dist/cjs/{tttx-tree-view_1_9_32.cjs.entry.js → tttx-tree-view_1_9_34.cjs.entry.js} +3 -3
  28. package/dist/cjs/tttx.cjs.js +1 -1
  29. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  30. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  31. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  32. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  33. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.js +4 -4
  34. package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
  35. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  36. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  37. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  38. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  39. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  40. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
  41. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  42. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  43. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  44. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  45. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
  46. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  47. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
  48. package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
  49. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  50. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  51. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  52. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  53. package/dist/collection/components/molecules/tttx-comments/tttx-comments.css +211 -1
  54. package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +34 -3
  55. package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +1 -1
  56. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  57. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  58. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  59. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  60. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  61. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  62. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  63. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  64. package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -2
  65. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +7 -7
  66. package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
  67. package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
  68. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  69. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
  70. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +7 -7
  71. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
  72. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
  73. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
  74. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  75. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  76. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  77. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  78. package/dist/collection/components/molecules/tttx-table/tttx-table.js +1 -1
  79. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
  80. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  81. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  82. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  83. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  84. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  85. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  86. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  87. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  88. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
  89. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  90. package/dist/components/index.d.ts +31 -31
  91. package/dist/components/index.js +31 -31
  92. package/dist/components/tttx-button.js +5 -5
  93. package/dist/components/{tttx-button_1_9_32.d.ts → tttx-button_1_9_34.d.ts} +4 -4
  94. package/dist/components/{tttx-button_1_9_32.js → tttx-button_1_9_34.js} +2 -2
  95. package/dist/components/tttx-checkbox-group-caption_1_9_34.d.ts +11 -0
  96. package/dist/components/{tttx-checkbox-group-caption_1_9_32.js → tttx-checkbox-group-caption_1_9_34.js} +5 -5
  97. package/dist/components/tttx-checkbox-group-heading_1_9_34.d.ts +11 -0
  98. package/dist/components/{tttx-checkbox-group-heading_1_9_32.js → tttx-checkbox-group-heading_1_9_34.js} +5 -5
  99. package/dist/components/tttx-checkbox-group_1_9_34.d.ts +11 -0
  100. package/dist/components/{tttx-checkbox-group_1_9_32.js → tttx-checkbox-group_1_9_34.js} +5 -5
  101. package/dist/components/{tttx-datacard_1_9_32.d.ts → tttx-checkbox_1_9_34.d.ts} +4 -4
  102. package/dist/components/{tttx-checkbox_1_9_32.js → tttx-checkbox_1_9_34.js} +7 -7
  103. package/dist/components/{tttx-checkbox_1_9_32.d.ts → tttx-comments_1_9_34.d.ts} +4 -4
  104. package/dist/components/tttx-comments_1_9_34.js +151 -0
  105. package/dist/components/tttx-data-pattern_1_9_34.d.ts +11 -0
  106. package/dist/components/{tttx-data-pattern_1_9_32.js → tttx-data-pattern_1_9_34.js} +16 -16
  107. package/dist/components/{tttx-comments_1_9_32.d.ts → tttx-datacard_1_9_34.d.ts} +4 -4
  108. package/dist/components/{tttx-datacard_1_9_32.js → tttx-datacard_1_9_34.js} +10 -10
  109. package/dist/components/tttx-dialog-box_1_9_34.d.ts +11 -0
  110. package/dist/components/{tttx-dialog-box_1_9_32.js → tttx-dialog-box_1_9_34.js} +9 -9
  111. package/dist/components/{tttx-dialog_1_9_32.d.ts → tttx-dialog_1_9_34.d.ts} +4 -4
  112. package/dist/components/{tttx-dialog_1_9_32.js → tttx-dialog_1_9_34.js} +8 -8
  113. package/dist/components/tttx-expander_1_9_34.d.ts +11 -0
  114. package/dist/components/{tttx-expander_1_9_32.js → tttx-expander_1_9_34.js} +7 -7
  115. package/dist/components/tttx-filter.js +6 -6
  116. package/dist/components/{tttx-filter_1_9_32.d.ts → tttx-filter_1_9_34.d.ts} +4 -4
  117. package/dist/components/{tttx-filter_1_9_32.js → tttx-filter_1_9_34.js} +2 -2
  118. package/dist/components/{tttx-tabs_1_9_32.d.ts → tttx-form_1_9_34.d.ts} +4 -4
  119. package/dist/components/{tttx-form_1_9_32.js → tttx-form_1_9_34.js} +11 -11
  120. package/dist/components/tttx-graph.js +3 -3
  121. package/dist/components/{tttx-graph_1_9_32.d.ts → tttx-graph_1_9_34.d.ts} +4 -4
  122. package/dist/components/{tttx-graph_1_9_32.js → tttx-graph_1_9_34.js} +2 -2
  123. package/dist/components/tttx-icon.js +3 -3
  124. package/dist/components/{tttx-icon_1_9_32.d.ts → tttx-icon_1_9_34.d.ts} +4 -4
  125. package/dist/components/{tttx-icon_1_9_32.js → tttx-icon_1_9_34.js} +2 -2
  126. package/dist/components/tttx-keyvalue-block_1_9_34.d.ts +11 -0
  127. package/dist/components/{tttx-keyvalue-block_1_9_32.js → tttx-keyvalue-block_1_9_34.js} +5 -5
  128. package/dist/components/tttx-list.js +6 -6
  129. package/dist/components/{tttx-list_1_9_32.d.ts → tttx-list_1_9_34.d.ts} +4 -4
  130. package/dist/components/{tttx-list_1_9_32.js → tttx-list_1_9_34.js} +2 -2
  131. package/dist/components/tttx-loading-spinner.js +3 -3
  132. package/dist/components/tttx-loading-spinner_1_9_34.d.ts +11 -0
  133. package/dist/components/{tttx-loading-spinner_1_9_32.js → tttx-loading-spinner_1_9_34.js} +2 -2
  134. package/dist/components/tttx-multiselect-box_1_9_34.d.ts +11 -0
  135. package/dist/components/{tttx-multiselect-box_1_9_32.js → tttx-multiselect-box_1_9_34.js} +16 -16
  136. package/dist/components/tttx-percentage-bar_1_9_34.d.ts +11 -0
  137. package/dist/components/{tttx-percentage-bar_1_9_32.js → tttx-percentage-bar_1_9_34.js} +6 -6
  138. package/dist/components/{tttx-qrcode_1_9_32.d.ts → tttx-qrcode_1_9_34.d.ts} +4 -4
  139. package/dist/components/{tttx-qrcode_1_9_32.js → tttx-qrcode_1_9_34.js} +5 -5
  140. package/dist/components/tttx-select-box.js +12 -12
  141. package/dist/components/tttx-select-box_1_9_34.d.ts +11 -0
  142. package/dist/components/{tttx-select-box_1_9_32.js → tttx-select-box_1_9_34.js} +2 -2
  143. package/dist/components/tttx-sorter.js +5 -5
  144. package/dist/components/tttx-sorter_1_9_34.d.ts +11 -0
  145. package/dist/components/{tttx-sorter_1_9_32.js → tttx-sorter_1_9_34.js} +2 -2
  146. package/dist/components/tttx-standalone-input.js +6 -6
  147. package/dist/components/tttx-standalone-input_1_9_34.d.ts +11 -0
  148. package/dist/components/{tttx-standalone-input_1_9_32.js → tttx-standalone-input_1_9_34.js} +2 -2
  149. package/dist/components/{tttx-table_1_9_32.d.ts → tttx-table_1_9_34.d.ts} +4 -4
  150. package/dist/components/{tttx-table_1_9_32.js → tttx-table_1_9_34.js} +5 -5
  151. package/dist/components/{tttx-form_1_9_32.d.ts → tttx-tabs_1_9_34.d.ts} +4 -4
  152. package/dist/components/{tttx-tabs_1_9_32.js → tttx-tabs_1_9_34.js} +9 -9
  153. package/dist/components/tttx-tag.js +5 -5
  154. package/dist/components/{tttx-tag_1_9_32.d.ts → tttx-tag_1_9_34.d.ts} +4 -4
  155. package/dist/components/{tttx-tag_1_9_32.js → tttx-tag_1_9_34.js} +2 -2
  156. package/dist/components/tttx-textarea_1_9_34.d.ts +11 -0
  157. package/dist/components/{tttx-textarea_1_9_32.js → tttx-textarea_1_9_34.js} +6 -6
  158. package/dist/components/tttx-toggle_1_9_34.d.ts +11 -0
  159. package/dist/components/{tttx-toggle_1_9_32.js → tttx-toggle_1_9_34.js} +5 -5
  160. package/dist/components/tttx-toolbar.js +3 -3
  161. package/dist/components/tttx-toolbar_1_9_34.d.ts +11 -0
  162. package/dist/components/{tttx-toolbar_1_9_32.js → tttx-toolbar_1_9_34.js} +2 -2
  163. package/dist/components/tttx-tree-view_1_9_34.d.ts +11 -0
  164. package/dist/components/{tttx-tree-view_1_9_32.js → tttx-tree-view_1_9_34.js} +9 -9
  165. package/dist/esm/loader.js +1 -1
  166. package/dist/esm/{tttx-button_1_9_32.entry.js → tttx-button_1_9_34.entry.js} +2 -2
  167. package/dist/esm/{tttx-checkbox-group-caption_1_9_32.entry.js → tttx-checkbox-group-caption_1_9_34.entry.js} +1 -1
  168. package/dist/esm/{tttx-checkbox-group-heading_1_9_32.entry.js → tttx-checkbox-group-heading_1_9_34.entry.js} +1 -1
  169. package/dist/esm/{tttx-checkbox-group_1_9_32.entry.js → tttx-checkbox-group_1_9_34.entry.js} +1 -1
  170. package/dist/esm/{tttx-checkbox_1_9_32.entry.js → tttx-checkbox_1_9_34.entry.js} +2 -2
  171. package/dist/esm/tttx-comments_1_9_34.entry.js +120 -0
  172. package/dist/esm/{tttx-data-pattern_1_9_32.entry.js → tttx-data-pattern_1_9_34.entry.js} +5 -5
  173. package/dist/esm/{tttx-datacard_1_9_32.entry.js → tttx-datacard_1_9_34.entry.js} +4 -4
  174. package/dist/esm/{tttx-dialog-box_1_9_32.entry.js → tttx-dialog-box_1_9_34.entry.js} +3 -3
  175. package/dist/esm/{tttx-dialog_1_9_32.entry.js → tttx-dialog_1_9_34.entry.js} +2 -2
  176. package/dist/esm/{tttx-expander_1_9_32.entry.js → tttx-expander_1_9_34.entry.js} +2 -2
  177. package/dist/esm/{tttx-filter_1_9_32_4.entry.js → tttx-filter_1_9_34_4.entry.js} +6 -6
  178. package/dist/esm/{tttx-form_1_9_32.entry.js → tttx-form_1_9_34.entry.js} +2 -2
  179. package/dist/esm/{tttx-graph_1_9_32.entry.js → tttx-graph_1_9_34.entry.js} +1 -1
  180. package/dist/esm/{tttx-icon_1_9_32.entry.js → tttx-icon_1_9_34.entry.js} +1 -1
  181. package/dist/esm/{tttx-keyvalue-block_1_9_32.entry.js → tttx-keyvalue-block_1_9_34.entry.js} +1 -1
  182. package/dist/esm/{tttx-loading-spinner_1_9_32_3.entry.js → tttx-loading-spinner_1_9_34_3.entry.js} +4 -4
  183. package/dist/esm/{tttx-multiselect-box_1_9_32.entry.js → tttx-multiselect-box_1_9_34.entry.js} +7 -7
  184. package/dist/esm/{tttx-percentage-bar_1_9_32.entry.js → tttx-percentage-bar_1_9_34.entry.js} +2 -2
  185. package/dist/esm/{tttx-qrcode_1_9_32.entry.js → tttx-qrcode_1_9_34.entry.js} +1 -1
  186. package/dist/esm/{tttx-select-box_1_9_32.entry.js → tttx-select-box_1_9_34.entry.js} +6 -6
  187. package/dist/esm/{tttx-table_1_9_32.entry.js → tttx-table_1_9_34.entry.js} +1 -1
  188. package/dist/esm/{tttx-tabs_1_9_32.entry.js → tttx-tabs_1_9_34.entry.js} +4 -4
  189. package/dist/esm/{tttx-textarea_1_9_32.entry.js → tttx-textarea_1_9_34.entry.js} +2 -2
  190. package/dist/esm/{tttx-toggle_1_9_32.entry.js → tttx-toggle_1_9_34.entry.js} +1 -1
  191. package/dist/esm/{tttx-tree-view_1_9_32.entry.js → tttx-tree-view_1_9_34.entry.js} +3 -3
  192. package/dist/esm/tttx.js +1 -1
  193. package/dist/tttx/p-09682d72.entry.js +1 -0
  194. package/dist/tttx/p-0da9f04c.entry.js +1 -1
  195. package/dist/tttx/p-0dfda92a.entry.js +1 -1
  196. package/dist/tttx/p-0e515960.entry.js +1 -1
  197. package/dist/tttx/p-0ffbf27e.entry.js +1 -1
  198. package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
  199. package/dist/tttx/p-214b438d.entry.js +1 -1
  200. package/dist/tttx/p-23f45005.entry.js +1 -1
  201. package/dist/tttx/p-49ef7451.entry.js +1 -1
  202. package/dist/tttx/p-56c8c353.entry.js +1 -1
  203. package/dist/tttx/p-5722f326.entry.js +1 -1
  204. package/dist/tttx/p-59c7b049.entry.js +1 -1
  205. package/dist/tttx/p-63ad6fb7.entry.js +1 -1
  206. package/dist/tttx/p-6b1c7a21.entry.js +1 -1
  207. package/dist/tttx/p-74148f2a.entry.js +1 -1
  208. package/dist/tttx/p-79e218d0.entry.js +1 -1
  209. package/dist/tttx/p-9434561e.entry.js +1 -1
  210. package/dist/tttx/p-996a6061.entry.js +1 -1
  211. package/dist/tttx/p-a01e679a.entry.js +1 -1
  212. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  213. package/dist/tttx/p-b7347352.entry.js +1 -1
  214. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  215. package/dist/tttx/p-c34d99d1.entry.js +1 -1
  216. package/dist/tttx/p-cfe412d0.entry.js +1 -1
  217. package/dist/tttx/p-de6e8250.entry.js +1 -1
  218. package/dist/tttx/p-f374e293.entry.js +1 -1
  219. package/dist/tttx/tttx.esm.js +1 -1
  220. package/dist/types/components/molecules/tttx-comments/tttx-comments.d.ts +4 -0
  221. package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
  222. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  223. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  224. package/dist/types/components.d.ts +371 -369
  225. package/package.json +1 -1
  226. package/dist/cjs/tttx-comments_1_9_32.cjs.entry.js +0 -112
  227. package/dist/components/tttx-checkbox-group-caption_1_9_32.d.ts +0 -11
  228. package/dist/components/tttx-checkbox-group-heading_1_9_32.d.ts +0 -11
  229. package/dist/components/tttx-checkbox-group_1_9_32.d.ts +0 -11
  230. package/dist/components/tttx-comments_1_9_32.js +0 -137
  231. package/dist/components/tttx-data-pattern_1_9_32.d.ts +0 -11
  232. package/dist/components/tttx-dialog-box_1_9_32.d.ts +0 -11
  233. package/dist/components/tttx-expander_1_9_32.d.ts +0 -11
  234. package/dist/components/tttx-keyvalue-block_1_9_32.d.ts +0 -11
  235. package/dist/components/tttx-loading-spinner_1_9_32.d.ts +0 -11
  236. package/dist/components/tttx-multiselect-box_1_9_32.d.ts +0 -11
  237. package/dist/components/tttx-percentage-bar_1_9_32.d.ts +0 -11
  238. package/dist/components/tttx-select-box_1_9_32.d.ts +0 -11
  239. package/dist/components/tttx-sorter_1_9_32.d.ts +0 -11
  240. package/dist/components/tttx-standalone-input_1_9_32.d.ts +0 -11
  241. package/dist/components/tttx-textarea_1_9_32.d.ts +0 -11
  242. package/dist/components/tttx-toggle_1_9_32.d.ts +0 -11
  243. package/dist/components/tttx-toolbar_1_9_32.d.ts +0 -11
  244. package/dist/components/tttx-tree-view_1_9_32.d.ts +0 -11
  245. package/dist/esm/tttx-comments_1_9_32.entry.js +0 -108
  246. package/dist/tttx/p-767f68b1.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "1.9.32",
3
+ "version": "1.9.34",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,112 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-fdc30724.js');
6
-
7
- const tttxCommentsCss = "*{font-family:\"Roboto\", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;justify-content:flex-end;padding:0 16px;font-size:9pt;color:#757575}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}";
8
-
9
- const TttxComments = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.commentAdded = index.createEvent(this, "commentAdded", 6);
13
- this.requestFileUpload = index.createEvent(this, "requestFileUpload", 6);
14
- this.requestFileDownload = index.createEvent(this, "requestFileDownload", 6);
15
- this.currentuser = undefined;
16
- this.comments = undefined;
17
- this._comments = undefined;
18
- }
19
- componentWillLoad() {
20
- // dynamic constructor: any props can be added later
21
- this.onCommentsChange();
22
- }
23
- onCommentsChange() {
24
- if (!this.comments) {
25
- return;
26
- }
27
- if (typeof this.comments === 'string') {
28
- this._comments = JSON.parse(this.comments);
29
- }
30
- else {
31
- this._comments = this.comments;
32
- }
33
- this.scrollToBottom();
34
- }
35
- renderCommentBubble() {
36
- var _a;
37
- return (index.h(index.Fragment, null, (_a = this._comments) === null || _a === void 0 ? void 0 : _a.map((comment, index$1) => {
38
- var _a;
39
- const isCurrentUser = comment.createdByFullName === this.currentuser;
40
- const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
41
- const isLastComment = index$1 === this._comments.length - 1;
42
- const topComment = index$1 === 0 ? { marginTop: '10px' } : {};
43
- return (index.h("div", { class: bubbleClass, key: comment.id, style: topComment }, index.h("div", { class: "bubbleHeader" }, index.h("span", { class: "commentName" }, comment.createdByFullName), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (index.h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), index.h("div", { class: "bubbleText" }, this.renderCommentInner(comment)), index.h("div", { class: "bubbleFooter" }, index.h("span", { class: "commentDate" }, new Date(comment.createdAt).toLocaleString())), !isLastComment && index.h("hr", { class: "commentDivider" })));
44
- })));
45
- }
46
- renderCommentInner(comment) {
47
- if (comment.metadata && comment.metadata.type === 0) {
48
- switch (comment.metadata.type) {
49
- case ECommentType.FILE:
50
- return this.renderFileLink(comment.metadata);
51
- }
52
- }
53
- else {
54
- return comment.text;
55
- }
56
- }
57
- renderFileLink(metadata) {
58
- return index.h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename);
59
- }
60
- onFormSubmit(event) {
61
- event.preventDefault();
62
- const fd = new FormData(event.currentTarget);
63
- let text;
64
- for (const data of fd.entries()) {
65
- text = data[1];
66
- }
67
- event.currentTarget.reset();
68
- const newComment = {
69
- id: undefined,
70
- text: text,
71
- createdAt: +(new Date()),
72
- createdByFullName: this.currentuser,
73
- createdById: undefined
74
- };
75
- this._comments = [...this._comments, newComment];
76
- this.commentAdded.emit(newComment);
77
- this.scrollToBottom();
78
- }
79
- scrollToBottom() {
80
- setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
81
- }
82
- onFileUploadRequest() {
83
- this.requestFileUpload.emit();
84
- }
85
- onFileDownloadRequest(event) {
86
- this.requestFileDownload.emit(event.currentTarget.value);
87
- }
88
- async addDummyComment(text, createdByFullName) {
89
- const newComment = {
90
- id: undefined,
91
- text: text,
92
- createdAt: +(new Date()),
93
- createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
94
- createdById: undefined
95
- };
96
- this._comments = [...this._comments, newComment];
97
- this.scrollToBottom();
98
- }
99
- render() {
100
- return (index.h(index.Host, null, index.h("article", { id: "comment-container" }, index.h("section", { id: "comment-bubbles-section" }, index.h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), index.h("section", { id: "input-section" }, index.h("form", { onSubmit: this.onFormSubmit.bind(this) }, index.h("fieldset", null, index.h("input", { type: "text", name: "commentText", required: true, maxlength: "5000", placeholder: "Enter comment" })), index.h("fieldset", null, index.h("button", { id: "attach-file", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, index.h("tttx-icon_1_9_32", { color: "black", icon: "attach_file" })), index.h("input", { type: "submit", value: "Add Comment" })))))));
101
- }
102
- static get watchers() { return {
103
- "comments": ["onCommentsChange"]
104
- }; }
105
- };
106
- var ECommentType;
107
- (function (ECommentType) {
108
- ECommentType[ECommentType["FILE"] = 0] = "FILE";
109
- })(ECommentType || (ECommentType = {}));
110
- TttxComments.style = tttxCommentsCss;
111
-
112
- exports.tttx_comments_1_9_32 = TttxComments;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroupCaption_1_9_32 extends Components.TttxCheckboxGroupCaption_1_9_32, HTMLElement {}
4
- export const TttxCheckboxGroupCaption_1_9_32: {
5
- prototype: TttxCheckboxGroupCaption_1_9_32;
6
- new (): TttxCheckboxGroupCaption_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroupHeading_1_9_32 extends Components.TttxCheckboxGroupHeading_1_9_32, HTMLElement {}
4
- export const TttxCheckboxGroupHeading_1_9_32: {
5
- prototype: TttxCheckboxGroupHeading_1_9_32;
6
- new (): TttxCheckboxGroupHeading_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroup_1_9_32 extends Components.TttxCheckboxGroup_1_9_32, HTMLElement {}
4
- export const TttxCheckboxGroup_1_9_32: {
5
- prototype: TttxCheckboxGroup_1_9_32;
6
- new (): TttxCheckboxGroup_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,137 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './tttx-icon.js';
3
-
4
- const tttxCommentsCss = "*{font-family:\"Roboto\", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;justify-content:flex-end;padding:0 16px;font-size:9pt;color:#757575}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}";
5
-
6
- const TttxComments = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.commentAdded = createEvent(this, "commentAdded", 6);
12
- this.requestFileUpload = createEvent(this, "requestFileUpload", 6);
13
- this.requestFileDownload = createEvent(this, "requestFileDownload", 6);
14
- this.currentuser = undefined;
15
- this.comments = undefined;
16
- this._comments = undefined;
17
- }
18
- componentWillLoad() {
19
- // dynamic constructor: any props can be added later
20
- this.onCommentsChange();
21
- }
22
- onCommentsChange() {
23
- if (!this.comments) {
24
- return;
25
- }
26
- if (typeof this.comments === 'string') {
27
- this._comments = JSON.parse(this.comments);
28
- }
29
- else {
30
- this._comments = this.comments;
31
- }
32
- this.scrollToBottom();
33
- }
34
- renderCommentBubble() {
35
- var _a;
36
- return (h(Fragment, null, (_a = this._comments) === null || _a === void 0 ? void 0 : _a.map((comment, index) => {
37
- var _a;
38
- const isCurrentUser = comment.createdByFullName === this.currentuser;
39
- const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
40
- const isLastComment = index === this._comments.length - 1;
41
- const topComment = index === 0 ? { marginTop: '10px' } : {};
42
- return (h("div", { class: bubbleClass, key: comment.id, style: topComment }, h("div", { class: "bubbleHeader" }, h("span", { class: "commentName" }, comment.createdByFullName), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), h("div", { class: "bubbleText" }, this.renderCommentInner(comment)), h("div", { class: "bubbleFooter" }, h("span", { class: "commentDate" }, new Date(comment.createdAt).toLocaleString())), !isLastComment && h("hr", { class: "commentDivider" })));
43
- })));
44
- }
45
- renderCommentInner(comment) {
46
- if (comment.metadata && comment.metadata.type === 0) {
47
- switch (comment.metadata.type) {
48
- case ECommentType.FILE:
49
- return this.renderFileLink(comment.metadata);
50
- }
51
- }
52
- else {
53
- return comment.text;
54
- }
55
- }
56
- renderFileLink(metadata) {
57
- return h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename);
58
- }
59
- onFormSubmit(event) {
60
- event.preventDefault();
61
- const fd = new FormData(event.currentTarget);
62
- let text;
63
- for (const data of fd.entries()) {
64
- text = data[1];
65
- }
66
- event.currentTarget.reset();
67
- const newComment = {
68
- id: undefined,
69
- text: text,
70
- createdAt: +(new Date()),
71
- createdByFullName: this.currentuser,
72
- createdById: undefined
73
- };
74
- this._comments = [...this._comments, newComment];
75
- this.commentAdded.emit(newComment);
76
- this.scrollToBottom();
77
- }
78
- scrollToBottom() {
79
- setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
80
- }
81
- onFileUploadRequest() {
82
- this.requestFileUpload.emit();
83
- }
84
- onFileDownloadRequest(event) {
85
- this.requestFileDownload.emit(event.currentTarget.value);
86
- }
87
- async addDummyComment(text, createdByFullName) {
88
- const newComment = {
89
- id: undefined,
90
- text: text,
91
- createdAt: +(new Date()),
92
- createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
93
- createdById: undefined
94
- };
95
- this._comments = [...this._comments, newComment];
96
- this.scrollToBottom();
97
- }
98
- render() {
99
- return (h(Host, null, h("article", { id: "comment-container" }, h("section", { id: "comment-bubbles-section" }, h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), h("section", { id: "input-section" }, h("form", { onSubmit: this.onFormSubmit.bind(this) }, h("fieldset", null, h("input", { type: "text", name: "commentText", required: true, maxlength: "5000", placeholder: "Enter comment" })), h("fieldset", null, h("button", { id: "attach-file", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, h("tttx-icon_1_9_32", { color: "black", icon: "attach_file" })), h("input", { type: "submit", value: "Add Comment" })))))));
100
- }
101
- static get watchers() { return {
102
- "comments": ["onCommentsChange"]
103
- }; }
104
- static get style() { return tttxCommentsCss; }
105
- }, [1, "tttx-comments_1_9_32", {
106
- "currentuser": [1],
107
- "comments": [1],
108
- "_comments": [32],
109
- "addDummyComment": [64]
110
- }]);
111
- var ECommentType;
112
- (function (ECommentType) {
113
- ECommentType[ECommentType["FILE"] = 0] = "FILE";
114
- })(ECommentType || (ECommentType = {}));
115
- function defineCustomElement$1() {
116
- if (typeof customElements === "undefined") {
117
- return;
118
- }
119
- const components = ["tttx-comments_1_9_32", "tttx-icon_1_9_32"];
120
- components.forEach(tagName => { switch (tagName) {
121
- case "tttx-comments_1_9_32":
122
- if (!customElements.get(tagName)) {
123
- customElements.define(tagName, TttxComments);
124
- }
125
- break;
126
- case "tttx-icon_1_9_32":
127
- if (!customElements.get(tagName)) {
128
- defineCustomElement$2();
129
- }
130
- break;
131
- } });
132
- }
133
-
134
- const TttxComments_1_9_32 = TttxComments;
135
- const defineCustomElement = defineCustomElement$1;
136
-
137
- export { TttxComments_1_9_32, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxDataPattern_1_9_32 extends Components.TttxDataPattern_1_9_32, HTMLElement {}
4
- export const TttxDataPattern_1_9_32: {
5
- prototype: TttxDataPattern_1_9_32;
6
- new (): TttxDataPattern_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxDialogBox_1_9_32 extends Components.TttxDialogBox_1_9_32, HTMLElement {}
4
- export const TttxDialogBox_1_9_32: {
5
- prototype: TttxDialogBox_1_9_32;
6
- new (): TttxDialogBox_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxExpander_1_9_32 extends Components.TttxExpander_1_9_32, HTMLElement {}
4
- export const TttxExpander_1_9_32: {
5
- prototype: TttxExpander_1_9_32;
6
- new (): TttxExpander_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxKeyvalueBlock_1_9_32 extends Components.TttxKeyvalueBlock_1_9_32, HTMLElement {}
4
- export const TttxKeyvalueBlock_1_9_32: {
5
- prototype: TttxKeyvalueBlock_1_9_32;
6
- new (): TttxKeyvalueBlock_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxLoadingSpinner_1_9_32 extends Components.TttxLoadingSpinner_1_9_32, HTMLElement {}
4
- export const TttxLoadingSpinner_1_9_32: {
5
- prototype: TttxLoadingSpinner_1_9_32;
6
- new (): TttxLoadingSpinner_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxMultiselectBox_1_9_32 extends Components.TttxMultiselectBox_1_9_32, HTMLElement {}
4
- export const TttxMultiselectBox_1_9_32: {
5
- prototype: TttxMultiselectBox_1_9_32;
6
- new (): TttxMultiselectBox_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxPercentageBar_1_9_32 extends Components.TttxPercentageBar_1_9_32, HTMLElement {}
4
- export const TttxPercentageBar_1_9_32: {
5
- prototype: TttxPercentageBar_1_9_32;
6
- new (): TttxPercentageBar_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxSelectBox_1_9_32 extends Components.TttxSelectBox_1_9_32, HTMLElement {}
4
- export const TttxSelectBox_1_9_32: {
5
- prototype: TttxSelectBox_1_9_32;
6
- new (): TttxSelectBox_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxSorter_1_9_32 extends Components.TttxSorter_1_9_32, HTMLElement {}
4
- export const TttxSorter_1_9_32: {
5
- prototype: TttxSorter_1_9_32;
6
- new (): TttxSorter_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxStandaloneInput_1_9_32 extends Components.TttxStandaloneInput_1_9_32, HTMLElement {}
4
- export const TttxStandaloneInput_1_9_32: {
5
- prototype: TttxStandaloneInput_1_9_32;
6
- new (): TttxStandaloneInput_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxTextarea_1_9_32 extends Components.TttxTextarea_1_9_32, HTMLElement {}
4
- export const TttxTextarea_1_9_32: {
5
- prototype: TttxTextarea_1_9_32;
6
- new (): TttxTextarea_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxToggle_1_9_32 extends Components.TttxToggle_1_9_32, HTMLElement {}
4
- export const TttxToggle_1_9_32: {
5
- prototype: TttxToggle_1_9_32;
6
- new (): TttxToggle_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxToolbar_1_9_32 extends Components.TttxToolbar_1_9_32, HTMLElement {}
4
- export const TttxToolbar_1_9_32: {
5
- prototype: TttxToolbar_1_9_32;
6
- new (): TttxToolbar_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxTreeView_1_9_32 extends Components.TttxTreeView_1_9_32, HTMLElement {}
4
- export const TttxTreeView_1_9_32: {
5
- prototype: TttxTreeView_1_9_32;
6
- new (): TttxTreeView_1_9_32;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,108 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-88bd2f60.js';
2
-
3
- const tttxCommentsCss = "*{font-family:\"Roboto\", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;justify-content:flex-end;padding:0 16px;font-size:9pt;color:#757575}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}";
4
-
5
- const TttxComments = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.commentAdded = createEvent(this, "commentAdded", 6);
9
- this.requestFileUpload = createEvent(this, "requestFileUpload", 6);
10
- this.requestFileDownload = createEvent(this, "requestFileDownload", 6);
11
- this.currentuser = undefined;
12
- this.comments = undefined;
13
- this._comments = undefined;
14
- }
15
- componentWillLoad() {
16
- // dynamic constructor: any props can be added later
17
- this.onCommentsChange();
18
- }
19
- onCommentsChange() {
20
- if (!this.comments) {
21
- return;
22
- }
23
- if (typeof this.comments === 'string') {
24
- this._comments = JSON.parse(this.comments);
25
- }
26
- else {
27
- this._comments = this.comments;
28
- }
29
- this.scrollToBottom();
30
- }
31
- renderCommentBubble() {
32
- var _a;
33
- return (h(Fragment, null, (_a = this._comments) === null || _a === void 0 ? void 0 : _a.map((comment, index) => {
34
- var _a;
35
- const isCurrentUser = comment.createdByFullName === this.currentuser;
36
- const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
37
- const isLastComment = index === this._comments.length - 1;
38
- const topComment = index === 0 ? { marginTop: '10px' } : {};
39
- return (h("div", { class: bubbleClass, key: comment.id, style: topComment }, h("div", { class: "bubbleHeader" }, h("span", { class: "commentName" }, comment.createdByFullName), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), h("div", { class: "bubbleText" }, this.renderCommentInner(comment)), h("div", { class: "bubbleFooter" }, h("span", { class: "commentDate" }, new Date(comment.createdAt).toLocaleString())), !isLastComment && h("hr", { class: "commentDivider" })));
40
- })));
41
- }
42
- renderCommentInner(comment) {
43
- if (comment.metadata && comment.metadata.type === 0) {
44
- switch (comment.metadata.type) {
45
- case ECommentType.FILE:
46
- return this.renderFileLink(comment.metadata);
47
- }
48
- }
49
- else {
50
- return comment.text;
51
- }
52
- }
53
- renderFileLink(metadata) {
54
- return h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename);
55
- }
56
- onFormSubmit(event) {
57
- event.preventDefault();
58
- const fd = new FormData(event.currentTarget);
59
- let text;
60
- for (const data of fd.entries()) {
61
- text = data[1];
62
- }
63
- event.currentTarget.reset();
64
- const newComment = {
65
- id: undefined,
66
- text: text,
67
- createdAt: +(new Date()),
68
- createdByFullName: this.currentuser,
69
- createdById: undefined
70
- };
71
- this._comments = [...this._comments, newComment];
72
- this.commentAdded.emit(newComment);
73
- this.scrollToBottom();
74
- }
75
- scrollToBottom() {
76
- setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
77
- }
78
- onFileUploadRequest() {
79
- this.requestFileUpload.emit();
80
- }
81
- onFileDownloadRequest(event) {
82
- this.requestFileDownload.emit(event.currentTarget.value);
83
- }
84
- async addDummyComment(text, createdByFullName) {
85
- const newComment = {
86
- id: undefined,
87
- text: text,
88
- createdAt: +(new Date()),
89
- createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
90
- createdById: undefined
91
- };
92
- this._comments = [...this._comments, newComment];
93
- this.scrollToBottom();
94
- }
95
- render() {
96
- return (h(Host, null, h("article", { id: "comment-container" }, h("section", { id: "comment-bubbles-section" }, h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), h("section", { id: "input-section" }, h("form", { onSubmit: this.onFormSubmit.bind(this) }, h("fieldset", null, h("input", { type: "text", name: "commentText", required: true, maxlength: "5000", placeholder: "Enter comment" })), h("fieldset", null, h("button", { id: "attach-file", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, h("tttx-icon_1_9_32", { color: "black", icon: "attach_file" })), h("input", { type: "submit", value: "Add Comment" })))))));
97
- }
98
- static get watchers() { return {
99
- "comments": ["onCommentsChange"]
100
- }; }
101
- };
102
- var ECommentType;
103
- (function (ECommentType) {
104
- ECommentType[ECommentType["FILE"] = 0] = "FILE";
105
- })(ECommentType || (ECommentType = {}));
106
- TttxComments.style = tttxCommentsCss;
107
-
108
- export { TttxComments as tttx_comments_1_9_32 };
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,F as n,H as o}from"./p-d490353a.js";const s=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.currentuser=void 0,this.comments=void 0,this._comments=void 0}componentWillLoad(){this.onCommentsChange()}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.scrollToBottom())}renderCommentBubble(){var t;return i(n,null,null===(t=this._comments)||void 0===t?void 0:t.map(((t,e)=>{var n;const o=e===this._comments.length-1;return i("div",{class:"commentBubble "+(t.createdByFullName===this.currentuser?"right":"left"),key:t.id,style:0===e?{marginTop:"10px"}:{}},i("div",{class:"bubbleHeader"},i("span",{class:"commentName"},t.createdByFullName),(null===(n=t.metadata)||void 0===n?void 0:n.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText"},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},i("span",{class:"commentDate"},new Date(t.createdAt).toLocaleString())),!o&&i("hr",{class:"commentDivider"}))})))}renderCommentInner(t){return t.metadata&&0===t.metadata.type?t.metadata.type===l.FILE?this.renderFileLink(t.metadata):void 0:t.text}renderFileLink(t){return i("button",{class:"linkButton",type:"button",value:t.key,onClick:this.onFileDownloadRequest.bind(this)},t.filename)}onFormSubmit(t){t.preventDefault();const e=new FormData(t.currentTarget);let i;for(const t of e.entries())i=t[1];t.currentTarget.reset();const n={id:void 0,text:i,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0};this._comments=[...this._comments,n],this.commentAdded.emit(n),this.scrollToBottom()}scrollToBottom(){setTimeout((()=>this._scrollContainer.scrollTo({top:this._scrollContainer.scrollHeight})))}onFileUploadRequest(){this.requestFileUpload.emit()}onFileDownloadRequest(t){this.requestFileDownload.emit(t.currentTarget.value)}async addDummyComment(t,e){const i={id:void 0,text:t,createdAt:+new Date,createdByFullName:null!=e?e:this.currentuser,createdById:void 0};this._comments=[...this._comments,i],this.scrollToBottom()}render(){return i(o,null,i("article",{id:"comment-container"},i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},i("form",{onSubmit:this.onFormSubmit.bind(this)},i("fieldset",null,i("input",{type:"text",name:"commentText",required:!0,maxlength:"5000",placeholder:"Enter comment"})),i("fieldset",null,i("button",{id:"attach-file",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_32",{color:"black",icon:"attach_file"})),i("input",{type:"submit",value:"Add Comment"}))))))}static get watchers(){return{comments:["onCommentsChange"]}}};var l;!function(t){t[t.FILE=0]="FILE"}(l||(l={})),s.style='*{font-family:"Roboto", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;justify-content:flex-end;padding:0 16px;font-size:9pt;color:#757575}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}';export{s as tttx_comments_1_9_32}