@3t-transform/threeteeui 0.2.121 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button.cjs.entry.js → tttx-button_localcomponent.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption.cjs.entry.js → tttx-checkbox-group-caption_localcomponent.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading.cjs.entry.js → tttx-checkbox-group-heading_localcomponent.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group.cjs.entry.js → tttx-checkbox-group_localcomponent.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox.cjs.entry.js → tttx-checkbox_localcomponent.cjs.entry.js} +2 -2
  7. package/dist/cjs/tttx-data-pattern_localcomponent.cjs.entry.js +23 -0
  8. package/dist/cjs/{tttx-dialog-box.cjs.entry.js → tttx-dialog-box_localcomponent.cjs.entry.js} +3 -3
  9. package/dist/cjs/{tttx-dialog.cjs.entry.js → tttx-dialog_localcomponent.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-expander.cjs.entry.js → tttx-expander_localcomponent.cjs.entry.js} +2 -2
  11. package/dist/cjs/{tttx-filter_4.cjs.entry.js → tttx-filter_localcomponent_4.cjs.entry.js} +9 -9
  12. package/dist/cjs/{tttx-form.cjs.entry.js → tttx-form_localcomponent.cjs.entry.js} +2 -8
  13. package/dist/cjs/{tttx-icon.cjs.entry.js → tttx-icon_localcomponent.cjs.entry.js} +1 -1
  14. package/dist/cjs/{tttx-keyvalue-block.cjs.entry.js → tttx-keyvalue-block_localcomponent.cjs.entry.js} +1 -1
  15. package/dist/cjs/{tttx-loading-spinner.cjs.entry.js → tttx-loading-spinner_localcomponent.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-multiselect-box.cjs.entry.js → tttx-multiselect-box_localcomponent.cjs.entry.js} +6 -6
  17. package/dist/cjs/{tttx-percentage-bar.cjs.entry.js → tttx-percentage-bar_localcomponent.cjs.entry.js} +2 -2
  18. package/dist/cjs/{tttx-qrcode.cjs.entry.js → tttx-qrcode_localcomponent.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-select-box.cjs.entry.js → tttx-select-box_localcomponent.cjs.entry.js} +3 -3
  20. package/dist/cjs/tttx-standalone-input_localcomponent.cjs.entry.js +94 -0
  21. package/dist/cjs/{tttx-tabs.cjs.entry.js → tttx-tabs_localcomponent.cjs.entry.js} +4 -4
  22. package/dist/cjs/{tttx-tag.cjs.entry.js → tttx-tag_localcomponent.cjs.entry.js} +1 -1
  23. package/dist/cjs/{tttx-textarea.cjs.entry.js → tttx-textarea_localcomponent.cjs.entry.js} +2 -2
  24. package/dist/cjs/{tttx-tree-view.cjs.entry.js → tttx-tree-view_localcomponent.cjs.entry.js} +3 -3
  25. package/dist/cjs/tttx.cjs.js +1 -1
  26. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  27. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  28. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  29. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  30. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  31. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  32. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  33. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  34. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  35. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
  36. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  37. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  38. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  39. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  40. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
  41. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  42. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  43. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  44. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  45. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  46. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  47. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  48. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  49. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  50. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  51. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  52. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  53. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  54. package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -14
  55. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
  56. package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
  57. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
  58. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  59. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
  60. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
  61. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
  62. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  63. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  64. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  65. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  66. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  67. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  68. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  69. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  70. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  71. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  72. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  73. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  74. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
  75. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  76. package/dist/components/index.d.ts +26 -26
  77. package/dist/components/index.js +26 -26
  78. package/dist/components/tttx-button.js +57 -4
  79. package/dist/components/{tttx-data-pattern.d.ts → tttx-button_localcomponent.d.ts} +4 -4
  80. package/dist/components/tttx-button_localcomponent.js +6 -0
  81. package/dist/components/tttx-checkbox-group-caption_localcomponent.d.ts +11 -0
  82. package/dist/components/{tttx-checkbox-group-caption.js → tttx-checkbox-group-caption_localcomponent.js} +7 -7
  83. package/dist/components/tttx-checkbox-group-heading_localcomponent.d.ts +11 -0
  84. package/dist/components/{tttx-checkbox-group-heading.js → tttx-checkbox-group-heading_localcomponent.js} +7 -7
  85. package/dist/components/tttx-checkbox-group_localcomponent.d.ts +11 -0
  86. package/dist/components/{tttx-checkbox-group.js → tttx-checkbox-group_localcomponent.js} +7 -7
  87. package/dist/components/{tttx-checkbox-group.d.ts → tttx-checkbox_localcomponent.d.ts} +4 -4
  88. package/dist/components/{tttx-checkbox.js → tttx-checkbox_localcomponent.js} +10 -10
  89. package/dist/components/tttx-data-pattern_localcomponent.d.ts +11 -0
  90. package/dist/components/tttx-data-pattern_localcomponent.js +84 -0
  91. package/dist/components/tttx-dialog-box_localcomponent.d.ts +11 -0
  92. package/dist/components/{tttx-dialog-box.js → tttx-dialog-box_localcomponent.js} +13 -13
  93. package/dist/components/tttx-dialog_localcomponent.d.ts +11 -0
  94. package/dist/components/{tttx-dialog.js → tttx-dialog_localcomponent.js} +12 -12
  95. package/dist/components/tttx-expander_localcomponent.d.ts +11 -0
  96. package/dist/components/{tttx-expander.js → tttx-expander_localcomponent.js} +10 -10
  97. package/dist/components/tttx-filter.js +223 -4
  98. package/dist/components/tttx-filter_localcomponent.d.ts +11 -0
  99. package/dist/components/tttx-filter_localcomponent.js +6 -0
  100. package/dist/components/{tttx-button.d.ts → tttx-form_localcomponent.d.ts} +4 -4
  101. package/dist/components/{tttx-form.js → tttx-form_localcomponent.js} +14 -20
  102. package/dist/components/tttx-icon.js +38 -4
  103. package/dist/components/{tttx-checkbox.d.ts → tttx-icon_localcomponent.d.ts} +4 -4
  104. package/dist/components/tttx-icon_localcomponent.js +6 -0
  105. package/dist/components/tttx-keyvalue-block_localcomponent.d.ts +11 -0
  106. package/dist/components/{tttx-keyvalue-block.js → tttx-keyvalue-block_localcomponent.js} +7 -7
  107. package/dist/components/tttx-list.js +92 -4
  108. package/dist/components/{tttx-dialog.d.ts → tttx-list_localcomponent.d.ts} +4 -4
  109. package/dist/components/tttx-list_localcomponent.js +6 -0
  110. package/dist/components/tttx-loading-spinner_localcomponent.d.ts +11 -0
  111. package/dist/components/{tttx-loading-spinner.js → tttx-loading-spinner_localcomponent.js} +7 -7
  112. package/dist/components/tttx-multiselect-box_localcomponent.d.ts +11 -0
  113. package/dist/components/{tttx-multiselect-box.js → tttx-multiselect-box_localcomponent.js} +18 -18
  114. package/dist/components/tttx-percentage-bar_localcomponent.d.ts +11 -0
  115. package/dist/components/{tttx-percentage-bar.js → tttx-percentage-bar_localcomponent.js} +8 -8
  116. package/dist/components/tttx-qrcode_localcomponent.d.ts +11 -0
  117. package/dist/components/{tttx-qrcode.js → tttx-qrcode_localcomponent.js} +5 -5
  118. package/dist/components/tttx-select-box.js +169 -4
  119. package/dist/components/tttx-select-box_localcomponent.d.ts +11 -0
  120. package/dist/components/tttx-select-box_localcomponent.js +6 -0
  121. package/dist/components/tttx-sorter.js +142 -4
  122. package/dist/components/tttx-sorter_localcomponent.d.ts +11 -0
  123. package/dist/components/tttx-sorter_localcomponent.js +6 -0
  124. package/dist/components/tttx-standalone-input.js +141 -4
  125. package/dist/components/tttx-standalone-input_localcomponent.d.ts +11 -0
  126. package/dist/components/tttx-standalone-input_localcomponent.js +6 -0
  127. package/dist/components/{tttx-dialog-box.d.ts → tttx-tabs_localcomponent.d.ts} +4 -4
  128. package/dist/components/{tttx-tabs.js → tttx-tabs_localcomponent.js} +12 -12
  129. package/dist/components/{tttx-select-box.d.ts → tttx-tag_localcomponent.d.ts} +4 -4
  130. package/dist/components/{tttx-tag.js → tttx-tag_localcomponent.js} +7 -7
  131. package/dist/components/tttx-textarea_localcomponent.d.ts +11 -0
  132. package/dist/components/{tttx-textarea.js → tttx-textarea_localcomponent.js} +8 -8
  133. package/dist/components/tttx-toolbar.js +47 -4
  134. package/dist/components/{tttx-keyvalue-block.d.ts → tttx-toolbar_localcomponent.d.ts} +4 -4
  135. package/dist/components/tttx-toolbar_localcomponent.js +6 -0
  136. package/dist/components/tttx-tree-view_localcomponent.d.ts +11 -0
  137. package/dist/components/{tttx-tree-view.js → tttx-tree-view_localcomponent.js} +13 -13
  138. package/dist/esm/loader.js +1 -1
  139. package/dist/esm/{tttx-button.entry.js → tttx-button_localcomponent.entry.js} +2 -2
  140. package/dist/esm/{tttx-checkbox-group-caption.entry.js → tttx-checkbox-group-caption_localcomponent.entry.js} +1 -1
  141. package/dist/esm/{tttx-checkbox-group-heading.entry.js → tttx-checkbox-group-heading_localcomponent.entry.js} +1 -1
  142. package/dist/esm/{tttx-checkbox-group.entry.js → tttx-checkbox-group_localcomponent.entry.js} +1 -1
  143. package/dist/esm/{tttx-checkbox.entry.js → tttx-checkbox_localcomponent.entry.js} +2 -2
  144. package/dist/esm/tttx-data-pattern_localcomponent.entry.js +19 -0
  145. package/dist/esm/{tttx-dialog-box.entry.js → tttx-dialog-box_localcomponent.entry.js} +3 -3
  146. package/dist/esm/{tttx-dialog.entry.js → tttx-dialog_localcomponent.entry.js} +2 -2
  147. package/dist/esm/{tttx-expander.entry.js → tttx-expander_localcomponent.entry.js} +2 -2
  148. package/dist/esm/{tttx-filter_4.entry.js → tttx-filter_localcomponent_4.entry.js} +6 -6
  149. package/dist/esm/{tttx-form.entry.js → tttx-form_localcomponent.entry.js} +2 -8
  150. package/dist/esm/{tttx-icon.entry.js → tttx-icon_localcomponent.entry.js} +1 -1
  151. package/dist/esm/{tttx-keyvalue-block.entry.js → tttx-keyvalue-block_localcomponent.entry.js} +1 -1
  152. package/dist/esm/{tttx-loading-spinner.entry.js → tttx-loading-spinner_localcomponent.entry.js} +1 -1
  153. package/dist/esm/{tttx-multiselect-box.entry.js → tttx-multiselect-box_localcomponent.entry.js} +6 -6
  154. package/dist/esm/{tttx-percentage-bar.entry.js → tttx-percentage-bar_localcomponent.entry.js} +2 -2
  155. package/dist/esm/{tttx-qrcode.entry.js → tttx-qrcode_localcomponent.entry.js} +1 -1
  156. package/dist/esm/{tttx-select-box.entry.js → tttx-select-box_localcomponent.entry.js} +3 -3
  157. package/dist/esm/tttx-standalone-input_localcomponent.entry.js +90 -0
  158. package/dist/esm/{tttx-tabs.entry.js → tttx-tabs_localcomponent.entry.js} +4 -4
  159. package/dist/esm/{tttx-tag.entry.js → tttx-tag_localcomponent.entry.js} +1 -1
  160. package/dist/esm/{tttx-textarea.entry.js → tttx-textarea_localcomponent.entry.js} +2 -2
  161. package/dist/esm/{tttx-tree-view.entry.js → tttx-tree-view_localcomponent.entry.js} +3 -3
  162. package/dist/esm/tttx.js +1 -1
  163. package/dist/tttx/{p-54cedeca.entry.js → p-05c242f0.entry.js} +1 -1
  164. package/dist/tttx/{p-bf48f423.entry.js → p-0e515960.entry.js} +1 -1
  165. package/dist/tttx/{p-02017641.entry.js → p-1e5ff5f8.entry.js} +1 -1
  166. package/dist/tttx/p-1f6cb3c3.entry.js +1 -0
  167. package/dist/tttx/p-23f45005.entry.js +1 -0
  168. package/dist/tttx/p-56c8c353.entry.js +1 -0
  169. package/dist/tttx/{p-065ad72e.entry.js → p-59c7b049.entry.js} +1 -1
  170. package/dist/tttx/p-5b3e1fae.entry.js +1 -0
  171. package/dist/tttx/p-63ad6fb7.entry.js +1 -0
  172. package/dist/tttx/p-6704ac94.entry.js +1 -0
  173. package/dist/tttx/p-6abfd043.entry.js +1 -0
  174. package/dist/tttx/p-72ede7d8.entry.js +1 -0
  175. package/dist/tttx/{p-06a0f85e.entry.js → p-796f699a.entry.js} +1 -1
  176. package/dist/tttx/p-7a7fb9b3.entry.js +1 -0
  177. package/dist/tttx/{p-30da2278.entry.js → p-87481935.entry.js} +1 -1
  178. package/dist/tttx/{p-d59980ee.entry.js → p-9434561e.entry.js} +1 -1
  179. package/dist/tttx/{p-866047c1.entry.js → p-a01e679a.entry.js} +1 -1
  180. package/dist/tttx/p-a8e76e78.entry.js +1 -0
  181. package/dist/tttx/{p-bdee8c29.entry.js → p-c170e3b8.entry.js} +1 -1
  182. package/dist/tttx/p-c3d6914a.entry.js +1 -0
  183. package/dist/tttx/p-ee358ce4.entry.js +1 -0
  184. package/dist/tttx/{p-e0ed9a93.entry.js → p-f374e293.entry.js} +1 -1
  185. package/dist/tttx/p-fe967031.entry.js +1 -0
  186. package/dist/tttx/tttx.esm.js +1 -1
  187. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -6
  188. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  189. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  190. package/dist/types/components.d.ts +318 -318
  191. package/package.json +3 -2
  192. package/dist/cjs/tttx-data-pattern.cjs.entry.js +0 -23
  193. package/dist/cjs/tttx-standalone-input.cjs.entry.js +0 -94
  194. package/dist/components/tttx-button2.js +0 -59
  195. package/dist/components/tttx-checkbox-group-caption.d.ts +0 -11
  196. package/dist/components/tttx-checkbox-group-heading.d.ts +0 -11
  197. package/dist/components/tttx-data-pattern.js +0 -84
  198. package/dist/components/tttx-expander.d.ts +0 -11
  199. package/dist/components/tttx-filter.d.ts +0 -11
  200. package/dist/components/tttx-filter2.js +0 -225
  201. package/dist/components/tttx-form.d.ts +0 -11
  202. package/dist/components/tttx-icon.d.ts +0 -11
  203. package/dist/components/tttx-icon2.js +0 -40
  204. package/dist/components/tttx-list.d.ts +0 -11
  205. package/dist/components/tttx-list2.js +0 -94
  206. package/dist/components/tttx-loading-spinner.d.ts +0 -11
  207. package/dist/components/tttx-multiselect-box.d.ts +0 -11
  208. package/dist/components/tttx-percentage-bar.d.ts +0 -11
  209. package/dist/components/tttx-qrcode.d.ts +0 -11
  210. package/dist/components/tttx-select-box2.js +0 -171
  211. package/dist/components/tttx-sorter.d.ts +0 -11
  212. package/dist/components/tttx-sorter2.js +0 -144
  213. package/dist/components/tttx-standalone-input.d.ts +0 -11
  214. package/dist/components/tttx-standalone-input2.js +0 -143
  215. package/dist/components/tttx-tabs.d.ts +0 -11
  216. package/dist/components/tttx-tag.d.ts +0 -11
  217. package/dist/components/tttx-textarea.d.ts +0 -11
  218. package/dist/components/tttx-toolbar.d.ts +0 -11
  219. package/dist/components/tttx-toolbar2.js +0 -49
  220. package/dist/components/tttx-tree-view.d.ts +0 -11
  221. package/dist/esm/tttx-data-pattern.entry.js +0 -19
  222. package/dist/esm/tttx-standalone-input.entry.js +0 -90
  223. package/dist/tttx/p-0a1a9da5.entry.js +0 -1
  224. package/dist/tttx/p-0bd3d6cd.entry.js +0 -1
  225. package/dist/tttx/p-0d962a44.entry.js +0 -1
  226. package/dist/tttx/p-1ecf24cc.entry.js +0 -1
  227. package/dist/tttx/p-2f46fcbc.entry.js +0 -1
  228. package/dist/tttx/p-36f0dc1d.entry.js +0 -1
  229. package/dist/tttx/p-4e2bc070.entry.js +0 -1
  230. package/dist/tttx/p-706901da.entry.js +0 -1
  231. package/dist/tttx/p-71a8ab3d.entry.js +0 -1
  232. package/dist/tttx/p-872cd825.entry.js +0 -1
  233. package/dist/tttx/p-8fd1d664.entry.js +0 -1
  234. package/dist/tttx/p-c45c095c.entry.js +0 -1
  235. package/dist/tttx/p-d21cec88.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.2.121",
3
+ "version": "1.0.0",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -30,7 +30,8 @@
30
30
  "lint:fix": "eslint \"src/**/*.{tsx,jsx}\" --fix",
31
31
  "prep-for-cypress": "yarn && yarn build && yarn build-storybook",
32
32
  "serve-storybook": "serve storybook-static -l 6006",
33
- "cypress:open": "cypress open"
33
+ "cypress:open": "cypress open",
34
+ "crowbar": "yarn build && node ./crowbar.mjs"
34
35
  },
35
36
  "resolutions": {
36
37
  "@types/babel__traverse": "7.0.6",
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-fdc30724.js');
6
-
7
- const tttxDataPatternCss = ":host{display:block}";
8
-
9
- const TttxDataPattern = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.data = undefined;
13
- this.sorteroptions = undefined;
14
- this.filteroptions = undefined;
15
- this.filterheader = 'Filter';
16
- }
17
- render() {
18
- return (index.h(index.Host, null, index.h("div", { class: "container" }, index.h("tttx-toolbar", { border: true }, index.h("span", { slot: "before" }, index.h("tttx-sorter", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorteroptions, defaultOption: "Sort by" }), index.h("tttx-filter", { "filter-options": JSON.stringify(this.filteroptions), showSelectAll: false, "show-option-icons": true, "filter-header": this.filterheader, "filter-key": "data-pattern-list" })), index.h("span", { slot: "after" }, index.h("tttx-standalone-input", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: "Search", type: "text", maxlength: 30 }))), index.h("tttx-toolbar", { border: false }, index.h("span", { slot: "before" }, index.h("tttx-button", { design: "primary", icon: "add" }, "Add"))), index.h("tttx-list", { data: this.data }))));
19
- }
20
- };
21
- TttxDataPattern.style = tttxDataPatternCss;
22
-
23
- exports.tttx_data_pattern = TttxDataPattern;
@@ -1,94 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-fdc30724.js');
6
-
7
- const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input .optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input{position:relative}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input tttx-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input tttx-icon.sc-tttx-standalone-input{height:24px;width:24px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input{left:8px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input{right:8px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;padding:0;padding-left:16px;padding-right:16px;margin-top:4px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-input-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-input-icon.sc-tttx-standalone-input{padding-left:40px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-input-icon.has-left-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input{padding-left:72px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-left-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-left-icon.sc-tttx-standalone-input{padding-left:40px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-right-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-right-icon.sc-tttx-standalone-input{padding-right:40px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.invalid.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input:not([type=submit]),label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input[type=radio].sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea[type=radio].sc-tttx-standalone-input{width:20px;height:20px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input[type=date].sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input[readonly].sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea[readonly].sc-tttx-standalone-input{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input:focus,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input:focus{border-color:#1479c6}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input:focus-visible,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input:focus-visible{outline:none}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input .outer-container.inputBlock.sc-tttx-standalone-input{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input .outer-container.inputBlock.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.inputBlock.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input{margin-top:4px}label.sc-tttx-standalone-input .outer-container.inputBlock.readonly.sc-tttx-standalone-input{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input{display:block}label.sc-tttx-standalone-input .outer-container.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input .outer-container.inputInline.sc-tttx-standalone-input input.sc-tttx-standalone-input{margin-top:0}label.sc-tttx-standalone-input .secondarylabel.sc-tttx-standalone-input{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input .errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-standalone-input .errorBubble.sc-tttx-standalone-input:not(.visible){display:none}label.sc-tttx-standalone-input .errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.sc-tttx-standalone-input-h{display:block}";
8
-
9
- const TttxInput = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
- this.focusChanged = index.createEvent(this, "focusChanged", 7);
14
- this.blurChanged = index.createEvent(this, "blurChanged", 7);
15
- this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
16
- this.inputIconClick = index.createEvent(this, "inputIconClick", 7);
17
- this.leftIconClick = index.createEvent(this, "leftIconClick", 7);
18
- this.rightIconClick = index.createEvent(this, "rightIconClick", 7);
19
- this.label = undefined;
20
- this.secondarylabel = undefined;
21
- this.showerrormsg = undefined;
22
- this.showerrorbubble = true;
23
- this.errormsg = undefined;
24
- this.iconleft = undefined;
25
- this.iconleftcolor = 'grey';
26
- this.iconright = undefined;
27
- this.iconrightcolor = 'grey';
28
- this.inputicon = undefined;
29
- this.inputiconcolor = 'grey';
30
- this.inline = undefined;
31
- this.inputautocapitalize = undefined;
32
- this.inputautofocus = undefined;
33
- this.inputkeyhint = undefined;
34
- this.inputindex = undefined;
35
- this.inputtitle = undefined;
36
- this.autocomplete = undefined;
37
- this.checked = undefined;
38
- this.disabled = undefined;
39
- this.max = undefined;
40
- this.maxlength = undefined;
41
- this.min = undefined;
42
- this.minlength = undefined;
43
- this.name = undefined;
44
- this.pattern = undefined;
45
- this.placeholder = undefined;
46
- this.readonly = undefined;
47
- this.required = undefined;
48
- this.step = undefined;
49
- this.type = 'text';
50
- this.value = undefined;
51
- }
52
- handleChange(event) {
53
- const target = event.target;
54
- this.value = target.value;
55
- this.valueChanged.emit(target.value);
56
- }
57
- handleFocus(event) {
58
- const target = event.target;
59
- this.focusChanged.emit(target.value);
60
- }
61
- handleBlur(event) {
62
- const target = event.target;
63
- this.blurChanged.emit(target.value);
64
- }
65
- handleInvalid(event) {
66
- event.preventDefault();
67
- const target = event.target;
68
- this.invalidChanged.emit(target.value);
69
- }
70
- handleInputIconClick(event) {
71
- event.preventDefault();
72
- this.inputIconClick.emit();
73
- }
74
- handleLeftIconClick(event) {
75
- event.preventDefault();
76
- this.leftIconClick.emit();
77
- }
78
- handleRightIconClick(event) {
79
- event.preventDefault();
80
- this.rightIconClick.emit();
81
- }
82
- render() {
83
- const classNames = [
84
- this.showerrormsg ? 'invalid' : '',
85
- this.inputicon ? 'has-input-icon' : '',
86
- this.iconleft ? 'has-left-icon' : '',
87
- this.iconright ? 'has-right-icon' : '',
88
- ].join(' ');
89
- return (index.h(index.Host, null, index.h("label", null, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', index.h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, index.h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (index.h("span", { class: "left-icons" }, this.inputicon && (index.h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (index.h("tttx-icon", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (index.h("span", { class: "right-icons" }, index.h("tttx-icon", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && index.h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
90
- }
91
- };
92
- TttxInput.style = tttxStandaloneInputCss;
93
-
94
- exports.tttx_standalone_input = TttxInput;
@@ -1,59 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$1 } from './tttx-icon2.js';
3
-
4
- const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}";
5
-
6
- const TttxButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this._iconcolor = 'black';
12
- this.notext = undefined;
13
- this.icon = undefined;
14
- this.iconposition = 'left';
15
- this.iconcolor = 'black';
16
- this.design = 'default';
17
- }
18
- componentWillLoad() {
19
- this._design = this.design;
20
- const designs = ['primary', 'default', 'disabled', 'danger', 'borderless', 'borderless-circle'];
21
- if (!designs.includes(this.design)) {
22
- this._design = 'default';
23
- }
24
- if (this._design === 'primary' || this._design === 'danger') {
25
- this.iconcolor = 'white';
26
- }
27
- }
28
- render() {
29
- this._iconcolor = this.iconcolor;
30
- return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && (h("div", { class: "button-content" }, h("slot", null))), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
31
- }
32
- static get style() { return tttxButtonCss; }
33
- }, [1, "tttx-button", {
34
- "notext": [4],
35
- "icon": [1],
36
- "iconposition": [1],
37
- "iconcolor": [1025],
38
- "design": [1]
39
- }]);
40
- function defineCustomElement() {
41
- if (typeof customElements === "undefined") {
42
- return;
43
- }
44
- const components = ["tttx-button", "tttx-icon"];
45
- components.forEach(tagName => { switch (tagName) {
46
- case "tttx-button":
47
- if (!customElements.get(tagName)) {
48
- customElements.define(tagName, TttxButton);
49
- }
50
- break;
51
- case "tttx-icon":
52
- if (!customElements.get(tagName)) {
53
- defineCustomElement$1();
54
- }
55
- break;
56
- } });
57
- }
58
-
59
- export { TttxButton as T, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroupCaption extends Components.TttxCheckboxGroupCaption, HTMLElement {}
4
- export const TttxCheckboxGroupCaption: {
5
- prototype: TttxCheckboxGroupCaption;
6
- new (): TttxCheckboxGroupCaption;
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 extends Components.TttxCheckboxGroupHeading, HTMLElement {}
4
- export const TttxCheckboxGroupHeading: {
5
- prototype: TttxCheckboxGroupHeading;
6
- new (): TttxCheckboxGroupHeading;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,84 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$8 } from './tttx-button2.js';
3
- import { d as defineCustomElement$7 } from './tttx-filter2.js';
4
- import { d as defineCustomElement$6 } from './tttx-icon2.js';
5
- import { d as defineCustomElement$5 } from './tttx-list2.js';
6
- import { d as defineCustomElement$4 } from './tttx-sorter2.js';
7
- import { d as defineCustomElement$3 } from './tttx-standalone-input2.js';
8
- import { d as defineCustomElement$2 } from './tttx-toolbar2.js';
9
-
10
- const tttxDataPatternCss = ":host{display:block}";
11
-
12
- const TttxDataPattern$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
13
- constructor() {
14
- super();
15
- this.__registerHost();
16
- this.__attachShadow();
17
- this.data = undefined;
18
- this.sorteroptions = undefined;
19
- this.filteroptions = undefined;
20
- this.filterheader = 'Filter';
21
- }
22
- render() {
23
- return (h(Host, null, h("div", { class: "container" }, h("tttx-toolbar", { border: true }, h("span", { slot: "before" }, h("tttx-sorter", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorteroptions, defaultOption: "Sort by" }), h("tttx-filter", { "filter-options": JSON.stringify(this.filteroptions), showSelectAll: false, "show-option-icons": true, "filter-header": this.filterheader, "filter-key": "data-pattern-list" })), h("span", { slot: "after" }, h("tttx-standalone-input", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: "Search", type: "text", maxlength: 30 }))), h("tttx-toolbar", { border: false }, h("span", { slot: "before" }, h("tttx-button", { design: "primary", icon: "add" }, "Add"))), h("tttx-list", { data: this.data }))));
24
- }
25
- static get style() { return tttxDataPatternCss; }
26
- }, [1, "tttx-data-pattern", {
27
- "data": [1],
28
- "sorteroptions": [1],
29
- "filteroptions": [1],
30
- "filterheader": [1]
31
- }]);
32
- function defineCustomElement$1() {
33
- if (typeof customElements === "undefined") {
34
- return;
35
- }
36
- const components = ["tttx-data-pattern", "tttx-button", "tttx-filter", "tttx-icon", "tttx-list", "tttx-sorter", "tttx-standalone-input", "tttx-toolbar"];
37
- components.forEach(tagName => { switch (tagName) {
38
- case "tttx-data-pattern":
39
- if (!customElements.get(tagName)) {
40
- customElements.define(tagName, TttxDataPattern$1);
41
- }
42
- break;
43
- case "tttx-button":
44
- if (!customElements.get(tagName)) {
45
- defineCustomElement$8();
46
- }
47
- break;
48
- case "tttx-filter":
49
- if (!customElements.get(tagName)) {
50
- defineCustomElement$7();
51
- }
52
- break;
53
- case "tttx-icon":
54
- if (!customElements.get(tagName)) {
55
- defineCustomElement$6();
56
- }
57
- break;
58
- case "tttx-list":
59
- if (!customElements.get(tagName)) {
60
- defineCustomElement$5();
61
- }
62
- break;
63
- case "tttx-sorter":
64
- if (!customElements.get(tagName)) {
65
- defineCustomElement$4();
66
- }
67
- break;
68
- case "tttx-standalone-input":
69
- if (!customElements.get(tagName)) {
70
- defineCustomElement$3();
71
- }
72
- break;
73
- case "tttx-toolbar":
74
- if (!customElements.get(tagName)) {
75
- defineCustomElement$2();
76
- }
77
- break;
78
- } });
79
- }
80
-
81
- const TttxDataPattern = TttxDataPattern$1;
82
- const defineCustomElement = defineCustomElement$1;
83
-
84
- export { TttxDataPattern, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxExpander extends Components.TttxExpander, HTMLElement {}
4
- export const TttxExpander: {
5
- prototype: TttxExpander;
6
- new (): TttxExpander;
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 TttxFilter extends Components.TttxFilter, HTMLElement {}
4
- export const TttxFilter: {
5
- prototype: TttxFilter;
6
- new (): TttxFilter;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,225 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$1 } from './tttx-icon2.js';
3
-
4
- const tttxFilterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:\"Roboto\", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:\"Roboto\", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:\"Roboto\", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:\"Roboto\", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:\"Roboto\", serif;font-weight:500}";
5
-
6
- const TttxFilter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.filterChangeEvent = createEvent(this, "filterChangeEvent", 7);
12
- this.toggleFilter = createEvent(this, "toggleFilter", 7);
13
- this.filterKey = undefined;
14
- this.filterOptions = [
15
- { optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
16
- { optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
17
- { optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
18
- ];
19
- this.showSelectAll = true;
20
- this.showSearchField = false;
21
- this.showOptionIcons = true;
22
- this.filterButtonStyle = 'list filter';
23
- this.filterHeader = 'Qualification status';
24
- this.defaultFilterOptions = undefined;
25
- this.popoverWidth = '193px';
26
- this.showPopover = false;
27
- this.displayedFilterSettings = undefined;
28
- this.selectedFilters = undefined;
29
- this.filterSearchTerm = '';
30
- this.allSelected = undefined;
31
- }
32
- handleCloseFilter() {
33
- this.showPopover = false;
34
- }
35
- emitFilterEvent() {
36
- this.filterChangeEvent.emit({
37
- selectedFilters: this.selectedFilters,
38
- filterKey: this.filterKey,
39
- allSelected: this.allSelected,
40
- });
41
- }
42
- onFilterButtonClick() {
43
- this.togglePopover();
44
- }
45
- onCloseButtonClick() {
46
- this.togglePopover();
47
- }
48
- onApplyFilterButtonClick() {
49
- this.emitFilterEvent();
50
- this.togglePopover();
51
- }
52
- onFilterOptionSelected(selectedOption) {
53
- this.allSelected = false;
54
- if (this.selectedFilters.includes(selectedOption)) {
55
- this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
56
- }
57
- else {
58
- this.selectedFilters = [...this.selectedFilters, selectedOption];
59
- }
60
- }
61
- componentWillLoad() {
62
- this.displayedFilterSettings = this.parseFilterOptions();
63
- if (this.defaultFilterOptions !== undefined) {
64
- const parsedDefaultFilterOptions = this.parseDefaultFilterOptions();
65
- this.selectedFilters = parsedDefaultFilterOptions;
66
- let allSelected = true;
67
- this.parseFilterOptions().map(filterOption => {
68
- if (!this.selectedFilters.includes(filterOption.optionText)) {
69
- allSelected = false;
70
- }
71
- });
72
- this.allSelected = allSelected;
73
- }
74
- else {
75
- this.allSelected = true;
76
- this.selectedFilters = this.displayedFilterSettings.map((filterOption) => filterOption.optionText);
77
- }
78
- }
79
- togglePopover() {
80
- this.showPopover = !this.showPopover;
81
- this.toggleFilter.emit(this.showPopover);
82
- // if(!this.showPopover) {
83
- // // this._focussedElementIndex = -1;
84
- // }
85
- }
86
- // Commented out keyboard interaction for now
87
- // @Listen('keyup')
88
- // handleKeyUp(event: KeyboardEvent) {
89
- // const keyboardEventValue = event.key;
90
- // if (document.activeElement.id != `filter__${this.filterKey}`) return;
91
- // if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
92
- // if (this._focussedElementIndex == 0) {
93
- // this.onSelectAllClick()
94
- // } else {
95
- // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
96
- // this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
97
- // }
98
- // return;
99
- // }
100
- // switch (keyboardEventValue) {
101
- // case 'Enter':
102
- // if(!this.showPopover) {
103
- // this.showPopover=true
104
- // } else {
105
- // this.emitFilterEvent()
106
- // }
107
- // break;
108
- // case 'Escape':
109
- // this.showPopover = false;
110
- // this._focussedElementIndex = -1;
111
- // break;
112
- // case 'ArrowDown':
113
- // this.showPopover = true;
114
- // if (this._focussedElementIndex == -1) {
115
- // this._focussedElementIndex = 0;
116
- // } else {
117
- // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
118
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
119
- // currentOption.blur();
120
- // // options[this._focussedElementIndex].focus();
121
- // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
122
- // }
123
- // break;
124
- // case 'ArrowUp':
125
- // if (this._focussedElementIndex == -1) {
126
- // this.showPopover = true;
127
- // this._focussedElementIndex = 0;
128
- // } else {
129
- // const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
130
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
131
- // currentOption.blur();
132
- // // options[this._focussedElementIndex].focus();
133
- // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
134
- // }
135
- // break;
136
- // }
137
- // }
138
- handleFilterChange(event) {
139
- const target = event.target;
140
- this.filterSearchTerm = target.value;
141
- const filteredResults = this.parseFilterOptions().filter((filterOption) => {
142
- const lowercaseOption = filterOption.optionText.toLowerCase();
143
- const filterTerm = this.filterSearchTerm.toLowerCase();
144
- return lowercaseOption.includes(filterTerm);
145
- });
146
- this.displayedFilterSettings = filteredResults;
147
- }
148
- onSelectAllClick() {
149
- this.allSelected = !this.allSelected;
150
- if (this.allSelected) {
151
- this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
152
- }
153
- else {
154
- this.selectedFilters = [];
155
- }
156
- }
157
- getFilterButtonClassName(buttonStyle) {
158
- switch (buttonStyle) {
159
- case 'table icon': {
160
- return '--table-icon';
161
- }
162
- case 'list icon': {
163
- return '--list-icon';
164
- }
165
- default: {
166
- return '';
167
- }
168
- }
169
- }
170
- parseFilterOptions() {
171
- return typeof this.filterOptions === 'string' ? JSON.parse(this.filterOptions) : this.filterOptions;
172
- }
173
- parseDefaultFilterOptions() {
174
- return typeof this.defaultFilterOptions === 'string' ? JSON.parse(this.defaultFilterOptions) : this.defaultFilterOptions;
175
- }
176
- render() {
177
- const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
178
- const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
179
- const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
180
- const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
181
- const filterKey = `filter__${this.filterKey}`;
182
- return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-icon", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}`, style: { width: this.popoverWidth } }, h("div", { class: 'filter-header' }, this.filterHeader), this.showSearchField ? (h("div", { class: 'search-field-container' }, h("tttx-icon", { icon: 'search', class: 'search-icon' }), h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }))) : (''), h("div", { class: 'filter-options-container' }, this.showSelectAll ? (h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, h("tttx-icon", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
183
- const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
184
- const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
185
- return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
186
- })), h("div", { class: 'filter-popover-button-container' }, h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
187
- }
188
- get el() { return this; }
189
- static get style() { return tttxFilterCss; }
190
- }, [1, "tttx-filter", {
191
- "filterKey": [1, "filter-key"],
192
- "filterOptions": [1, "filter-options"],
193
- "showSelectAll": [4, "show-select-all"],
194
- "showSearchField": [4, "show-search-field"],
195
- "showOptionIcons": [4, "show-option-icons"],
196
- "filterButtonStyle": [1, "filter-button-style"],
197
- "filterHeader": [1, "filter-header"],
198
- "defaultFilterOptions": [1, "default-filter-options"],
199
- "popoverWidth": [1, "popover-width"],
200
- "showPopover": [32],
201
- "displayedFilterSettings": [32],
202
- "selectedFilters": [32],
203
- "filterSearchTerm": [32],
204
- "allSelected": [32]
205
- }, [[0, "closeFilter", "handleCloseFilter"]]]);
206
- function defineCustomElement() {
207
- if (typeof customElements === "undefined") {
208
- return;
209
- }
210
- const components = ["tttx-filter", "tttx-icon"];
211
- components.forEach(tagName => { switch (tagName) {
212
- case "tttx-filter":
213
- if (!customElements.get(tagName)) {
214
- customElements.define(tagName, TttxFilter);
215
- }
216
- break;
217
- case "tttx-icon":
218
- if (!customElements.get(tagName)) {
219
- defineCustomElement$1();
220
- }
221
- break;
222
- } });
223
- }
224
-
225
- export { TttxFilter as T, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxForm extends Components.TttxForm, HTMLElement {}
4
- export const TttxForm: {
5
- prototype: TttxForm;
6
- new (): TttxForm;
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 TttxIcon extends Components.TttxIcon, HTMLElement {}
4
- export const TttxIcon: {
5
- prototype: TttxIcon;
6
- new (): TttxIcon;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,40 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
4
-
5
- const TttxIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.icon = undefined;
11
- this.color = 'grey';
12
- }
13
- render() {
14
- if (this.color.startsWith('#')) {
15
- return (h(Host, null, h("span", { class: 'material-symbols-rounded', style: { color: this.color } }, this.icon)));
16
- }
17
- else {
18
- return (h(Host, null, h("span", { class: `material-symbols-rounded ${this.color}` }, this.icon)));
19
- }
20
- }
21
- static get style() { return tttxIconCss; }
22
- }, [1, "tttx-icon", {
23
- "icon": [1],
24
- "color": [1]
25
- }]);
26
- function defineCustomElement() {
27
- if (typeof customElements === "undefined") {
28
- return;
29
- }
30
- const components = ["tttx-icon"];
31
- components.forEach(tagName => { switch (tagName) {
32
- case "tttx-icon":
33
- if (!customElements.get(tagName)) {
34
- customElements.define(tagName, TttxIcon);
35
- }
36
- break;
37
- } });
38
- }
39
-
40
- export { TttxIcon as T, defineCustomElement as d };