@3t-transform/threeteeui 1.2.0 → 1.4.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 (211) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{tttx-button_1_2_0.cjs.entry.js → tttx-button_1_4_0.cjs.entry.js} +2 -2
  3. package/dist/cjs/{tttx-checkbox-group-caption_1_2_0.cjs.entry.js → tttx-checkbox-group-caption_1_4_0.cjs.entry.js} +1 -1
  4. package/dist/cjs/{tttx-checkbox-group-heading_1_2_0.cjs.entry.js → tttx-checkbox-group-heading_1_4_0.cjs.entry.js} +1 -1
  5. package/dist/cjs/{tttx-checkbox-group_1_2_0.cjs.entry.js → tttx-checkbox-group_1_4_0.cjs.entry.js} +1 -1
  6. package/dist/cjs/{tttx-checkbox_1_2_0.cjs.entry.js → tttx-checkbox_1_4_0.cjs.entry.js} +2 -2
  7. package/dist/cjs/{tttx-data-pattern_1_2_0.cjs.entry.js → tttx-data-pattern_1_4_0.cjs.entry.js} +2 -2
  8. package/dist/cjs/{tttx-dialog-box_1_2_0.cjs.entry.js → tttx-dialog-box_1_4_0.cjs.entry.js} +3 -3
  9. package/dist/cjs/{tttx-dialog_1_2_0.cjs.entry.js → tttx-dialog_1_4_0.cjs.entry.js} +2 -2
  10. package/dist/cjs/{tttx-expander_1_2_0.cjs.entry.js → tttx-expander_1_4_0.cjs.entry.js} +2 -2
  11. package/dist/cjs/{tttx-filter_1_2_0_4.cjs.entry.js → tttx-filter_1_4_0_4.cjs.entry.js} +17 -10
  12. package/dist/cjs/{tttx-form_1_2_0.cjs.entry.js → tttx-form_1_4_0.cjs.entry.js} +229 -134
  13. package/dist/cjs/{tttx-icon_1_2_0.cjs.entry.js → tttx-icon_1_4_0.cjs.entry.js} +1 -1
  14. package/dist/cjs/{tttx-keyvalue-block_1_2_0.cjs.entry.js → tttx-keyvalue-block_1_4_0.cjs.entry.js} +1 -1
  15. package/dist/cjs/{tttx-loading-spinner_1_2_0.cjs.entry.js → tttx-loading-spinner_1_4_0.cjs.entry.js} +1 -1
  16. package/dist/cjs/{tttx-multiselect-box_1_2_0.cjs.entry.js → tttx-multiselect-box_1_4_0.cjs.entry.js} +6 -6
  17. package/dist/cjs/{tttx-percentage-bar_1_2_0.cjs.entry.js → tttx-percentage-bar_1_4_0.cjs.entry.js} +2 -2
  18. package/dist/cjs/{tttx-qrcode_1_2_0.cjs.entry.js → tttx-qrcode_1_4_0.cjs.entry.js} +1 -1
  19. package/dist/cjs/{tttx-select-box_1_2_0.cjs.entry.js → tttx-select-box_1_4_0.cjs.entry.js} +3 -3
  20. package/dist/cjs/tttx-standalone-input_1_4_0.cjs.entry.js +94 -0
  21. package/dist/cjs/{tttx-tabs_1_2_0.cjs.entry.js → tttx-tabs_1_4_0.cjs.entry.js} +4 -4
  22. package/dist/cjs/{tttx-tag_1_2_0.cjs.entry.js → tttx-tag_1_4_0.cjs.entry.js} +1 -1
  23. package/dist/cjs/{tttx-textarea_1_2_0.cjs.entry.js → tttx-textarea_1_4_0.cjs.entry.js} +2 -2
  24. package/dist/cjs/{tttx-tree-view_1_2_0.cjs.entry.js → tttx-tree-view_1_4_0.cjs.entry.js} +3 -3
  25. package/dist/cjs/tttx.cjs.js +1 -1
  26. package/dist/collection/collection-manifest.json +1 -1
  27. package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
  28. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
  29. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
  30. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
  31. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
  32. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
  33. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
  34. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
  35. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
  36. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
  37. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
  38. package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
  39. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
  40. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
  41. package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
  42. package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
  43. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
  44. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
  45. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
  46. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
  47. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
  48. package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
  49. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
  50. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
  51. package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
  52. package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
  53. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
  54. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
  55. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +0 -1
  56. package/dist/collection/components/molecules/tttx-form/lib/timecomparatorChecks.js +64 -0
  57. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +9 -8
  58. package/dist/collection/components/molecules/tttx-form/tttx-form.js +304 -129
  59. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
  60. package/dist/collection/components/molecules/tttx-list/tttx-list.js +11 -4
  61. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
  62. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
  63. package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
  64. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
  65. package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
  66. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
  67. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
  68. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
  69. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
  70. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
  71. package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
  72. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
  73. package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
  74. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
  75. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
  76. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
  77. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
  78. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
  79. package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
  80. package/dist/components/index.d.ts +26 -26
  81. package/dist/components/index.js +26 -26
  82. package/dist/components/tttx-button.js +5 -5
  83. package/dist/components/{tttx-button_1_2_0.d.ts → tttx-button_1_4_0.d.ts} +4 -4
  84. package/dist/components/{tttx-button_1_2_0.js → tttx-button_1_4_0.js} +2 -2
  85. package/dist/components/tttx-checkbox-group-caption_1_4_0.d.ts +11 -0
  86. package/dist/components/{tttx-checkbox-group-caption_1_2_0.js → tttx-checkbox-group-caption_1_4_0.js} +5 -5
  87. package/dist/components/tttx-checkbox-group-heading_1_4_0.d.ts +11 -0
  88. package/dist/components/{tttx-checkbox-group-heading_1_2_0.js → tttx-checkbox-group-heading_1_4_0.js} +5 -5
  89. package/dist/components/tttx-checkbox-group_1_4_0.d.ts +11 -0
  90. package/dist/components/{tttx-checkbox-group_1_2_0.js → tttx-checkbox-group_1_4_0.js} +5 -5
  91. package/dist/components/{tttx-textarea_1_2_0.d.ts → tttx-checkbox_1_4_0.d.ts} +4 -4
  92. package/dist/components/{tttx-checkbox_1_2_0.js → tttx-checkbox_1_4_0.js} +7 -7
  93. package/dist/components/tttx-data-pattern_1_4_0.d.ts +11 -0
  94. package/dist/components/{tttx-data-pattern_1_2_0.js → tttx-data-pattern_1_4_0.js} +13 -13
  95. package/dist/components/{tttx-dialog-box_1_2_0.d.ts → tttx-dialog-box_1_4_0.d.ts} +4 -4
  96. package/dist/components/{tttx-dialog-box_1_2_0.js → tttx-dialog-box_1_4_0.js} +9 -9
  97. package/dist/components/{tttx-filter_1_2_0.d.ts → tttx-dialog_1_4_0.d.ts} +4 -4
  98. package/dist/components/{tttx-dialog_1_2_0.js → tttx-dialog_1_4_0.js} +8 -8
  99. package/dist/components/{tttx-expander_1_2_0.d.ts → tttx-expander_1_4_0.d.ts} +4 -4
  100. package/dist/components/{tttx-expander_1_2_0.js → tttx-expander_1_4_0.js} +7 -7
  101. package/dist/components/tttx-filter.js +6 -6
  102. package/dist/components/{tttx-qrcode_1_2_0.d.ts → tttx-filter_1_4_0.d.ts} +4 -4
  103. package/dist/components/{tttx-filter_1_2_0.js → tttx-filter_1_4_0.js} +2 -2
  104. package/dist/components/{tttx-icon_1_2_0.d.ts → tttx-form_1_4_0.d.ts} +4 -4
  105. package/dist/components/{tttx-form_1_2_0.js → tttx-form_1_4_0.js} +241 -142
  106. package/dist/components/tttx-icon.js +3 -3
  107. package/dist/components/{tttx-list_1_2_0.d.ts → tttx-icon_1_4_0.d.ts} +4 -4
  108. package/dist/components/{tttx-icon_1_2_0.js → tttx-icon_1_4_0.js} +2 -2
  109. package/dist/components/tttx-keyvalue-block_1_4_0.d.ts +11 -0
  110. package/dist/components/{tttx-keyvalue-block_1_2_0.js → tttx-keyvalue-block_1_4_0.js} +5 -5
  111. package/dist/components/tttx-list.js +14 -7
  112. package/dist/components/{tttx-form_1_2_0.d.ts → tttx-list_1_4_0.d.ts} +4 -4
  113. package/dist/components/{tttx-list_1_2_0.js → tttx-list_1_4_0.js} +2 -2
  114. package/dist/components/tttx-loading-spinner_1_4_0.d.ts +11 -0
  115. package/dist/components/{tttx-loading-spinner_1_2_0.js → tttx-loading-spinner_1_4_0.js} +5 -5
  116. package/dist/components/tttx-multiselect-box_1_4_0.d.ts +11 -0
  117. package/dist/components/{tttx-multiselect-box_1_2_0.js → tttx-multiselect-box_1_4_0.js} +13 -13
  118. package/dist/components/tttx-percentage-bar_1_4_0.d.ts +11 -0
  119. package/dist/components/{tttx-percentage-bar_1_2_0.js → tttx-percentage-bar_1_4_0.js} +6 -6
  120. package/dist/components/{tttx-dialog_1_2_0.d.ts → tttx-qrcode_1_4_0.d.ts} +4 -4
  121. package/dist/components/{tttx-qrcode_1_2_0.js → tttx-qrcode_1_4_0.js} +5 -5
  122. package/dist/components/tttx-select-box.js +7 -7
  123. package/dist/components/tttx-select-box_1_4_0.d.ts +11 -0
  124. package/dist/components/{tttx-select-box_1_2_0.js → tttx-select-box_1_4_0.js} +2 -2
  125. package/dist/components/tttx-sorter.js +5 -5
  126. package/dist/components/tttx-sorter_1_4_0.d.ts +11 -0
  127. package/dist/components/{tttx-sorter_1_2_0.js → tttx-sorter_1_4_0.js} +2 -2
  128. package/dist/components/tttx-standalone-input.js +6 -6
  129. package/dist/components/tttx-standalone-input_1_4_0.d.ts +11 -0
  130. package/dist/components/{tttx-standalone-input_1_2_0.js → tttx-standalone-input_1_4_0.js} +2 -2
  131. package/dist/components/{tttx-tabs_1_2_0.d.ts → tttx-tabs_1_4_0.d.ts} +4 -4
  132. package/dist/components/{tttx-tabs_1_2_0.js → tttx-tabs_1_4_0.js} +9 -9
  133. package/dist/components/{tttx-tag_1_2_0.d.ts → tttx-tag_1_4_0.d.ts} +4 -4
  134. package/dist/components/{tttx-tag_1_2_0.js → tttx-tag_1_4_0.js} +5 -5
  135. package/dist/components/{tttx-checkbox_1_2_0.d.ts → tttx-textarea_1_4_0.d.ts} +4 -4
  136. package/dist/components/{tttx-textarea_1_2_0.js → tttx-textarea_1_4_0.js} +6 -6
  137. package/dist/components/tttx-toolbar.js +3 -3
  138. package/dist/components/{tttx-toolbar_1_2_0.d.ts → tttx-toolbar_1_4_0.d.ts} +4 -4
  139. package/dist/components/{tttx-toolbar_1_2_0.js → tttx-toolbar_1_4_0.js} +2 -2
  140. package/dist/components/{tttx-tree-view_1_2_0.d.ts → tttx-tree-view_1_4_0.d.ts} +4 -4
  141. package/dist/components/{tttx-tree-view_1_2_0.js → tttx-tree-view_1_4_0.js} +9 -9
  142. package/dist/esm/loader.js +1 -1
  143. package/dist/esm/{tttx-button_1_2_0.entry.js → tttx-button_1_4_0.entry.js} +2 -2
  144. package/dist/esm/{tttx-checkbox-group-caption_1_2_0.entry.js → tttx-checkbox-group-caption_1_4_0.entry.js} +1 -1
  145. package/dist/esm/{tttx-checkbox-group-heading_1_2_0.entry.js → tttx-checkbox-group-heading_1_4_0.entry.js} +1 -1
  146. package/dist/esm/{tttx-checkbox-group_1_2_0.entry.js → tttx-checkbox-group_1_4_0.entry.js} +1 -1
  147. package/dist/esm/{tttx-checkbox_1_2_0.entry.js → tttx-checkbox_1_4_0.entry.js} +2 -2
  148. package/dist/esm/{tttx-data-pattern_1_2_0.entry.js → tttx-data-pattern_1_4_0.entry.js} +2 -2
  149. package/dist/esm/{tttx-dialog-box_1_2_0.entry.js → tttx-dialog-box_1_4_0.entry.js} +3 -3
  150. package/dist/esm/{tttx-dialog_1_2_0.entry.js → tttx-dialog_1_4_0.entry.js} +2 -2
  151. package/dist/esm/{tttx-expander_1_2_0.entry.js → tttx-expander_1_4_0.entry.js} +2 -2
  152. package/dist/esm/{tttx-filter_1_2_0_4.entry.js → tttx-filter_1_4_0_4.entry.js} +14 -7
  153. package/dist/esm/{tttx-form_1_2_0.entry.js → tttx-form_1_4_0.entry.js} +229 -134
  154. package/dist/esm/{tttx-icon_1_2_0.entry.js → tttx-icon_1_4_0.entry.js} +1 -1
  155. package/dist/esm/{tttx-keyvalue-block_1_2_0.entry.js → tttx-keyvalue-block_1_4_0.entry.js} +1 -1
  156. package/dist/esm/{tttx-loading-spinner_1_2_0.entry.js → tttx-loading-spinner_1_4_0.entry.js} +1 -1
  157. package/dist/esm/{tttx-multiselect-box_1_2_0.entry.js → tttx-multiselect-box_1_4_0.entry.js} +6 -6
  158. package/dist/esm/{tttx-percentage-bar_1_2_0.entry.js → tttx-percentage-bar_1_4_0.entry.js} +2 -2
  159. package/dist/esm/{tttx-qrcode_1_2_0.entry.js → tttx-qrcode_1_4_0.entry.js} +1 -1
  160. package/dist/esm/{tttx-select-box_1_2_0.entry.js → tttx-select-box_1_4_0.entry.js} +3 -3
  161. package/dist/esm/tttx-standalone-input_1_4_0.entry.js +90 -0
  162. package/dist/esm/{tttx-tabs_1_2_0.entry.js → tttx-tabs_1_4_0.entry.js} +4 -4
  163. package/dist/esm/{tttx-tag_1_2_0.entry.js → tttx-tag_1_4_0.entry.js} +1 -1
  164. package/dist/esm/{tttx-textarea_1_2_0.entry.js → tttx-textarea_1_4_0.entry.js} +2 -2
  165. package/dist/esm/{tttx-tree-view_1_2_0.entry.js → tttx-tree-view_1_4_0.entry.js} +3 -3
  166. package/dist/esm/tttx.js +1 -1
  167. package/dist/tttx/p-0e515960.entry.js +1 -1
  168. package/dist/tttx/p-0f439f10.entry.js +1 -0
  169. package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
  170. package/dist/tttx/p-23f45005.entry.js +1 -1
  171. package/dist/tttx/p-3676cddd.entry.js +1 -0
  172. package/dist/tttx/p-56c8c353.entry.js +1 -1
  173. package/dist/tttx/p-59c7b049.entry.js +1 -1
  174. package/dist/tttx/p-5d2706b1.entry.js +1 -1
  175. package/dist/tttx/p-63ad6fb7.entry.js +1 -1
  176. package/dist/tttx/p-6b1c7a21.entry.js +1 -1
  177. package/dist/tttx/p-6deb8699.entry.js +1 -1
  178. package/dist/tttx/p-796f699a.entry.js +1 -1
  179. package/dist/tttx/p-81aaafa0.entry.js +1 -1
  180. package/dist/tttx/p-884f37d3.entry.js +1 -1
  181. package/dist/tttx/p-9434561e.entry.js +1 -1
  182. package/dist/tttx/p-983d63ff.entry.js +1 -1
  183. package/dist/tttx/p-a01e679a.entry.js +1 -1
  184. package/dist/tttx/p-a8e76e78.entry.js +1 -1
  185. package/dist/tttx/p-c170e3b8.entry.js +1 -1
  186. package/dist/tttx/p-ee358ce4.entry.js +1 -1
  187. package/dist/tttx/p-f374e293.entry.js +1 -1
  188. package/dist/tttx/p-f4db1cf2.entry.js +1 -1
  189. package/dist/tttx/p-fe967031.entry.js +1 -1
  190. package/dist/tttx/tttx.esm.js +1 -1
  191. package/dist/types/components/molecules/tttx-form/lib/timecomparatorChecks.d.ts +4 -0
  192. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +57 -14
  193. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
  194. package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
  195. package/dist/types/components.d.ts +326 -304
  196. package/package.json +2 -1
  197. package/dist/cjs/tttx-standalone-input_1_2_0.cjs.entry.js +0 -94
  198. package/dist/components/tttx-checkbox-group-caption_1_2_0.d.ts +0 -11
  199. package/dist/components/tttx-checkbox-group-heading_1_2_0.d.ts +0 -11
  200. package/dist/components/tttx-checkbox-group_1_2_0.d.ts +0 -11
  201. package/dist/components/tttx-data-pattern_1_2_0.d.ts +0 -11
  202. package/dist/components/tttx-keyvalue-block_1_2_0.d.ts +0 -11
  203. package/dist/components/tttx-loading-spinner_1_2_0.d.ts +0 -11
  204. package/dist/components/tttx-multiselect-box_1_2_0.d.ts +0 -11
  205. package/dist/components/tttx-percentage-bar_1_2_0.d.ts +0 -11
  206. package/dist/components/tttx-select-box_1_2_0.d.ts +0 -11
  207. package/dist/components/tttx-sorter_1_2_0.d.ts +0 -11
  208. package/dist/components/tttx-standalone-input_1_2_0.d.ts +0 -11
  209. package/dist/esm/tttx-standalone-input_1_2_0.entry.js +0 -90
  210. package/dist/tttx/p-34be6c6d.entry.js +0 -1
  211. package/dist/tttx/p-c8589436.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -46,6 +46,7 @@
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.18.10",
48
48
  "@babel/preset-env": "^7.21.4",
49
+ "@babel/preset-react": "^7.23.3",
49
50
  "@rollup/plugin-commonjs": "^23.0.3",
50
51
  "@stencil/core": "^2.20.0",
51
52
  "@stencil/sass": "^1.5.2",
@@ -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_1_2_0{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_2_0{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_2_0{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_2_0 .optional.sc-tttx-standalone-input_1_2_0{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0{position:relative}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0 tttx-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0 tttx-icon.sc-tttx-standalone-input_1_2_0{height:24px;width:24px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0{left:8px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0{right:8px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0{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_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-input-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-input-icon.sc-tttx-standalone-input_1_2_0{padding-left:40px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_2_0{padding-left:72px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-left-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-left-icon.sc-tttx-standalone-input_1_2_0{padding-left:40px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-right-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-right-icon.sc-tttx-standalone-input_1_2_0{padding-right:40px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.invalid.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.invalid.sc-tttx-standalone-input_1_2_0{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0:not([type=submit]),label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input[type=radio].sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea[type=radio].sc-tttx-standalone-input_1_2_0{width:20px;height:20px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input[type=date].sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea[type=date].sc-tttx-standalone-input_1_2_0{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input[readonly].sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea[readonly].sc-tttx-standalone-input_1_2_0{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0:focus,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0:focus-visible,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0:focus-visible{outline:none}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_2_0{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0{margin-top:4px}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_2_0{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_2_0{display:block}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputInline.sc-tttx-standalone-input_1_2_0{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputInline.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0{margin-top:0}label.sc-tttx-standalone-input_1_2_0 .secondarylabel.sc-tttx-standalone-input_1_2_0{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_2_0 .errorBubble.sc-tttx-standalone-input_1_2_0{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_1_2_0 .errorBubble.sc-tttx-standalone-input_1_2_0:not(.visible){display:none}label.sc-tttx-standalone-input_1_2_0 .errorBubble.sc-tttx-standalone-input_1_2_0 span.sc-tttx-standalone-input_1_2_0{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_2_0{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_1_2_0-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_1_2_0", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (index.h("tttx-icon_1_2_0", { 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_1_2_0", { 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_1_2_0 = TttxInput;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckboxGroupCaption_1_2_0 extends Components.TttxCheckboxGroupCaption_1_2_0, HTMLElement {}
4
- export const TttxCheckboxGroupCaption_1_2_0: {
5
- prototype: TttxCheckboxGroupCaption_1_2_0;
6
- new (): TttxCheckboxGroupCaption_1_2_0;
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_2_0 extends Components.TttxCheckboxGroupHeading_1_2_0, HTMLElement {}
4
- export const TttxCheckboxGroupHeading_1_2_0: {
5
- prototype: TttxCheckboxGroupHeading_1_2_0;
6
- new (): TttxCheckboxGroupHeading_1_2_0;
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_2_0 extends Components.TttxCheckboxGroup_1_2_0, HTMLElement {}
4
- export const TttxCheckboxGroup_1_2_0: {
5
- prototype: TttxCheckboxGroup_1_2_0;
6
- new (): TttxCheckboxGroup_1_2_0;
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 TttxDataPattern_1_2_0 extends Components.TttxDataPattern_1_2_0, HTMLElement {}
4
- export const TttxDataPattern_1_2_0: {
5
- prototype: TttxDataPattern_1_2_0;
6
- new (): TttxDataPattern_1_2_0;
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_2_0 extends Components.TttxKeyvalueBlock_1_2_0, HTMLElement {}
4
- export const TttxKeyvalueBlock_1_2_0: {
5
- prototype: TttxKeyvalueBlock_1_2_0;
6
- new (): TttxKeyvalueBlock_1_2_0;
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_2_0 extends Components.TttxLoadingSpinner_1_2_0, HTMLElement {}
4
- export const TttxLoadingSpinner_1_2_0: {
5
- prototype: TttxLoadingSpinner_1_2_0;
6
- new (): TttxLoadingSpinner_1_2_0;
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_2_0 extends Components.TttxMultiselectBox_1_2_0, HTMLElement {}
4
- export const TttxMultiselectBox_1_2_0: {
5
- prototype: TttxMultiselectBox_1_2_0;
6
- new (): TttxMultiselectBox_1_2_0;
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_2_0 extends Components.TttxPercentageBar_1_2_0, HTMLElement {}
4
- export const TttxPercentageBar_1_2_0: {
5
- prototype: TttxPercentageBar_1_2_0;
6
- new (): TttxPercentageBar_1_2_0;
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_2_0 extends Components.TttxSelectBox_1_2_0, HTMLElement {}
4
- export const TttxSelectBox_1_2_0: {
5
- prototype: TttxSelectBox_1_2_0;
6
- new (): TttxSelectBox_1_2_0;
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_2_0 extends Components.TttxSorter_1_2_0, HTMLElement {}
4
- export const TttxSorter_1_2_0: {
5
- prototype: TttxSorter_1_2_0;
6
- new (): TttxSorter_1_2_0;
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_2_0 extends Components.TttxStandaloneInput_1_2_0, HTMLElement {}
4
- export const TttxStandaloneInput_1_2_0: {
5
- prototype: TttxStandaloneInput_1_2_0;
6
- new (): TttxStandaloneInput_1_2_0;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,90 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-88bd2f60.js';
2
-
3
- const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_2_0{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_2_0{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_2_0{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_2_0 .optional.sc-tttx-standalone-input_1_2_0{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0{position:relative}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0 tttx-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0 tttx-icon.sc-tttx-standalone-input_1_2_0{height:24px;width:24px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0{left:8px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0{right:8px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0{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_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-input-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-input-icon.sc-tttx-standalone-input_1_2_0{padding-left:40px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_2_0{padding-left:72px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-left-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-left-icon.sc-tttx-standalone-input_1_2_0{padding-left:40px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.has-right-icon.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.has-right-icon.sc-tttx-standalone-input_1_2_0{padding-right:40px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.invalid.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.invalid.sc-tttx-standalone-input_1_2_0{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0:not([type=submit]),label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input[type=radio].sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea[type=radio].sc-tttx-standalone-input_1_2_0{width:20px;height:20px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input[type=date].sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea[type=date].sc-tttx-standalone-input_1_2_0{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input[readonly].sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea[readonly].sc-tttx-standalone-input_1_2_0{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0:focus,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0:focus-visible,label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0:focus-visible{outline:none}label.sc-tttx-standalone-input_1_2_0 .outer-container.sc-tttx-standalone-input_1_2_0 textarea.sc-tttx-standalone-input_1_2_0{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_2_0{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_2_0 .left-icons.sc-tttx-standalone-input_1_2_0,label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_2_0 .right-icons.sc-tttx-standalone-input_1_2_0{margin-top:4px}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_2_0{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_2_0{display:block}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputInline.sc-tttx-standalone-input_1_2_0{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_2_0 .outer-container.inputInline.sc-tttx-standalone-input_1_2_0 input.sc-tttx-standalone-input_1_2_0{margin-top:0}label.sc-tttx-standalone-input_1_2_0 .secondarylabel.sc-tttx-standalone-input_1_2_0{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_2_0 .errorBubble.sc-tttx-standalone-input_1_2_0{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_1_2_0 .errorBubble.sc-tttx-standalone-input_1_2_0:not(.visible){display:none}label.sc-tttx-standalone-input_1_2_0 .errorBubble.sc-tttx-standalone-input_1_2_0 span.sc-tttx-standalone-input_1_2_0{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_2_0{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_1_2_0-h{display:block}";
4
-
5
- const TttxInput = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.valueChanged = createEvent(this, "valueChanged", 7);
9
- this.focusChanged = createEvent(this, "focusChanged", 7);
10
- this.blurChanged = createEvent(this, "blurChanged", 7);
11
- this.invalidChanged = createEvent(this, "invalidChanged", 7);
12
- this.inputIconClick = createEvent(this, "inputIconClick", 7);
13
- this.leftIconClick = createEvent(this, "leftIconClick", 7);
14
- this.rightIconClick = createEvent(this, "rightIconClick", 7);
15
- this.label = undefined;
16
- this.secondarylabel = undefined;
17
- this.showerrormsg = undefined;
18
- this.showerrorbubble = true;
19
- this.errormsg = undefined;
20
- this.iconleft = undefined;
21
- this.iconleftcolor = 'grey';
22
- this.iconright = undefined;
23
- this.iconrightcolor = 'grey';
24
- this.inputicon = undefined;
25
- this.inputiconcolor = 'grey';
26
- this.inline = undefined;
27
- this.inputautocapitalize = undefined;
28
- this.inputautofocus = undefined;
29
- this.inputkeyhint = undefined;
30
- this.inputindex = undefined;
31
- this.inputtitle = undefined;
32
- this.autocomplete = undefined;
33
- this.checked = undefined;
34
- this.disabled = undefined;
35
- this.max = undefined;
36
- this.maxlength = undefined;
37
- this.min = undefined;
38
- this.minlength = undefined;
39
- this.name = undefined;
40
- this.pattern = undefined;
41
- this.placeholder = undefined;
42
- this.readonly = undefined;
43
- this.required = undefined;
44
- this.step = undefined;
45
- this.type = 'text';
46
- this.value = undefined;
47
- }
48
- handleChange(event) {
49
- const target = event.target;
50
- this.value = target.value;
51
- this.valueChanged.emit(target.value);
52
- }
53
- handleFocus(event) {
54
- const target = event.target;
55
- this.focusChanged.emit(target.value);
56
- }
57
- handleBlur(event) {
58
- const target = event.target;
59
- this.blurChanged.emit(target.value);
60
- }
61
- handleInvalid(event) {
62
- event.preventDefault();
63
- const target = event.target;
64
- this.invalidChanged.emit(target.value);
65
- }
66
- handleInputIconClick(event) {
67
- event.preventDefault();
68
- this.inputIconClick.emit();
69
- }
70
- handleLeftIconClick(event) {
71
- event.preventDefault();
72
- this.leftIconClick.emit();
73
- }
74
- handleRightIconClick(event) {
75
- event.preventDefault();
76
- this.rightIconClick.emit();
77
- }
78
- render() {
79
- const classNames = [
80
- this.showerrormsg ? 'invalid' : '',
81
- this.inputicon ? 'has-input-icon' : '',
82
- this.iconleft ? 'has-left-icon' : '',
83
- this.iconright ? 'has-right-icon' : '',
84
- ].join(' ');
85
- return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_2_0", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_2_0", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_2_0", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
86
- }
87
- };
88
- TttxInput.style = tttxStandaloneInputCss;
89
-
90
- export { TttxInput as tttx_standalone_input_1_2_0 };
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as o,H as i}from"./p-d490353a.js";import{p as n,d as r}from"./p-55799798.js";import"./p-112455b1.js";function a(e,t,o,i){let n;if(n=void 0!==i?i.querySelector(".errorBubble"):"label"===e.parentElement.nodeName.toLowerCase()?e.parentElement.querySelector(".errorBubble"):e.parentElement.parentElement.querySelector(".errorBubble"),n)if(t){e.classList.add("invalid"),n.classList.add("visible");const t=document.createElement("span");t.className="material-symbols-rounded",t.textContent="warning",n.innerHTML="",n.append(t),n.append(o)}else n.classList.remove("visible"),e.classList.remove("invalid"),n.innerHTML=""}const l=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){if(!this.data&&this.form&&this._formSchema){const e=new FormData(this.form);this._data=Object.fromEntries(Object.keys(this._formSchema.properties).map((t=>[t,e.get(t)])))}this._formSchema="string"==typeof e?JSON.parse(e):e}onDataChange(e){this._data="string"==typeof e?JSON.parse(e):e}fieldChanged(e){const t=e.target;let o=t.value;"checkbox"===t.type&&(o=t.checked?"on":"off"),this.dataChanged.emit({name:t.name,value:o})}async submit(){this.submitButton.click()}async setSelectOptions(e,t){const o=this.fieldset.querySelector(`[name=${e}]`),i=this.fieldset.querySelector(`[name=overlay-${e}]`),n=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,n.appendChild(t)}o.replaceChildren(n),i.optionsData=t,await i.setSelectedItem(t[0].value)}doSubmit(e){e.preventDefault();const t=new FormData(e.target),o=this._formSchema.properties;for(const e of Object.keys(o))"checkbox"!==o[e].form.type||t.has(e)||t.append(e,"off");this.dataSubmitted.emit(t)}componentWillLoad(){this.onFormSchemaChange(this.formschema),this.data&&this.onDataChange(this.data)}componentWillRender(){this.template=document.createElement("template"),this.populateFormFromSchema()}createSelect(e,t){var o,i,n,r;const a=document.createElement("select");a.setAttribute("name",e),t.options.forEach((e=>{this.appendOption(a,e)})),(null===(o=this._data)||void 0===o?void 0:o[e])&&a.classList.remove("placeholder");const l=document.createElement("tttx-select-box_1_2_0");l.optionsData=null===(i=t.options)||void 0===i?void 0:i.filter((e=>!e.placeholder)),l.placeholder=null===(r=null===(n=t.options)||void 0===n?void 0:n.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,l.inline=!1,l.searchEnabled=!0,l.style.width="100%",l.style.marginTop="6px",l.setAttribute("name","overlay-"+e);const s=document.createDocumentFragment();return s.append(l),a.style.display="none",l.addEventListener("selectItemEvent",(function(e){a.value=e.detail.value,a.onblur({target:a}),a.onchange({target:a})})),{input:a,overlay:s}}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=n.sanitize(t.label,r)),e.appendChild(o)}createInput(e,t){var o;const i=document.createElement("input");return i.type=t.type,i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),i}createTextArea(e,t){var o;const i=document.createElement("textarea");return i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),i}createStartEndDateComponent(e,t){const o=document.createElement("input"),i=document.createElement("input");let n,r;o.type=i.type="date",o.name=`${e}-startdate`,i.name=`${e}-enddate`,o.setAttribute("data-formkey",e),i.setAttribute("data-formkey",e),t.readonly&&(o.readOnly=!0,i.readOnly=!0),this.applyValidation(o,{required:{message:"Please enter a start date"},dateCompare:{to:i.name}}),this.applyValidation(i,{required:{message:"Please enter an end date"},dateCompare:{with:o.name,message:"End date cannot be before the start date"}}),t.includeTime&&(n=document.createElement("input"),r=document.createElement("input"),n.type=r.type="time",n.name=`${e}-starttime`,r.name=`${e}-endtime`,n.setAttribute("data-formkey",e),r.setAttribute("data-formkey",e),t.readonly&&(n.readOnly=!0,r.readOnly=!0),this.applyValidation(n,{required:{message:"Please enter a start time"}}),this.applyValidation(r,{required:{message:"Please enter an end time"}}));const a=document.createElement("label");a.innerText="Start date";const l=document.createElement("label");l.innerText="End date";const s=document.createElement("div"),d=document.createElement("div");return s.className=d.className="outer-container inputBlock",a.className=l.className="flex-label",s.append(o),n&&s.append(n),a.append(s),a.append(this.createErrorBubble()),d.append(i),r&&d.append(r),l.append(d),l.append(this.createErrorBubble()),{start:a,end:l}}applyValidation(e,t){var o,i;t.required&&(e.setAttribute("required",""),e.setAttribute("data-required",null!==(o=t.required.message)&&void 0!==o?o:"")),t.pattern&&(e.setAttribute("pattern",t.pattern.pattern),e.setAttribute("data-pattern",null!==(i=t.pattern.message)&&void 0!==i?i:"")),t.badInput&&e.setAttribute("data-badinput",t.badInput.message),t.minmax&&(e.setAttribute("min",t.minmax.min),e.setAttribute("max",t.minmax.max),e.setAttribute("data-range",t.minmax.message)),t.maxlength&&e.setAttribute("maxlength",t.maxlength),t.dateCompare&&(t.dateCompare.message&&t.dateCompare.with&&(e.setAttribute("data-compare",t.dateCompare.message),e.setAttribute("data-compare-with",t.dateCompare.with)),t.dateCompare.to&&e.setAttribute("data-compare-to",t.dateCompare.to))}createErrorBubble(){const e=document.createElement("div");return e.className="errorBubble",e}appendCheckboxInput(e,t,o){if(e.label){const e=document.createElement("br");o.appendChild(e)}if(o.appendChild(t),!e.inlineLabel)return;const i=document.createElement("span");i.className="inlineLabel",i.textContent=e.inlineLabel,o.appendChild(i)}createLabel(e,t,o,i){var n;const r=document.createElement("div");let a="outer-container inputBlock";const l=document.createElement("label");if(l.innerText=e.label,!(null===(n=e.validation)||void 0===n?void 0:n.required)&&e.label){const e=document.createElement("span");e.className="optional",e.innerHTML="&nbsp;(optional)",l.appendChild(e)}return"radio"===e.type&&(a+=" radioBlock"),r.className=a,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&r.appendChild(o),r.appendChild(t)),"checkbox"!==e.type&&l.appendChild(r),l.appendChild(i),l}createRadio(e,t){var o,i;const n=new DocumentFragment;for(const r of t.options){const a=document.createElement("input");a.type="radio",a.name=e,a.value=r.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(a.setAttribute("required","required"),a.setAttribute("data-required",null!==(i=t.validation.required.message)&&void 0!==i?i:""));const l=document.createElement("span");l.innerText=r.label,n.appendChild(a),n.appendChild(l),n.appendChild(document.createElement("br"))}return n}populateFormFromSchema(){var e;if(!this._formSchema)return;const t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=t[i].form;if("startenddate"===o.type){const{start:e,end:t}=this.createStartEndDateComponent(i,o);this.template.content.append(e),this.template.content.append(t);continue}let n={};switch(o.type){case"select":n=this.createSelect(i,o);break;case"radio":n.input=this.createRadio(i,o);break;case"textarea":n.input=this.createTextArea(i,o);break;default:n.input=this.createInput(i,o)}o.validation&&"radio"!==o.type&&this.applyValidation(n.input,o.validation);const r=this.createErrorBubble(),l=this.createLabel(o,n.input,n.overlay,r);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;n.input.setCustomValidity(e),a(n.input,!0,e)}this.template.content.append(l)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=e.querySelectorAll(`[name^=${i}]`);for(const e of o)e.oninvalid=this.validityCheckWrapper.bind(this),e.onblur=this.validityCheckWrapper.bind(this),e.onkeyup=this.fieldChanged.bind(this),e.onchange=this.fieldChanged.bind(this),"select"===t[i].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",(()=>{e.classList.remove("placeholder")})),"startenddate"===t[i].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=this.endDateComparisonValidator.bind(this),e.onblur=this.endDateComparisonValidator.bind(this)),"startenddate"===t[i].form.type&&"time"===e.type&&(e.oninvalid=this.startEndTimeComparitor.bind(this),e.onblur=this.startEndTimeComparitor.bind(this)),"startenddate"===t[i].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=this.startDateComparisonValidator.bind(this),e.onblur=this.startDateComparisonValidator.bind(this))}if(this._data&&Object.keys(this._data).length>0){const t=Object.keys(this._data);for(const o of t){const t=e.querySelectorAll(`[name=${o}]`);for(const i of t)switch(i.type){case"checkbox":"on"===this._data[o]&&(i.checked=!0);break;case"radio":i.value===this._data[o]&&(i.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${o}]`).selectedValue=this._data[o],i.value=this._data[o];break;default:i.value=this._data[o]}}}this.fieldset.replaceChildren(e)}startEndTimeComparitor(e){var t,o;const i=e.target,n=i.getAttribute("data-formkey"),r=Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${n}]`));if(4===r.length){const n=r.find((e=>e.name.endsWith("starttime"))),l=r.find((e=>e.name.endsWith("endtime"))),s=r.find((e=>e.name.endsWith("startdate"))),d=r.find((e=>e.name.endsWith("enddate")));n.valueAsNumber>=l.valueAsNumber&&(null===(t=s.valueAsDate)||void 0===t?void 0:t.valueOf())===(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())?(a(l,!0,"End time cannot be the same or before the start time"),i.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),a(l,!1,null),this.validityCheckWrapper(e))}}clearTimeComparitor(e){const t=e.target,o=t.getAttribute("data-formkey"),i=Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(`[type=time][data-formkey=${o}]`));if(i.length){const e=i.find((e=>e.name.endsWith("endtime")));e.setCustomValidity(""),a(e,!1,null)}}startDateComparisonValidator(e){const t=e.target,o=t.getAttribute("data-compare-to"),i=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);this.endDateComparisonValidator({target:i},!0),this.validityCheckWrapper(e)}endDateComparisonValidator(e,t=!1){var o,i,n,r;const l=e.target;if(!l.value&&t)return;const s=l.getAttribute("data-compare-with"),d=l.parentElement.parentElement.parentElement.querySelector(`[name=${s}]`);(null===(o=l.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(i=d.valueAsDate)||void 0===i?void 0:i.valueOf())?(l.setCustomValidity(l.getAttribute("data-compare")),a(l,!0,l.getAttribute("data-compare"))):(null===(n=l.valueAsDate)||void 0===n?void 0:n.valueOf())===(null===(r=d.valueAsDate)||void 0===r?void 0:r.valueOf())?(l.setCustomValidity(""),this.validityCheckWrapper(e),this.startEndTimeComparitor(e)):(this.clearTimeComparitor(e),this.validityCheckWrapper(e))}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:i}=function(e){var t,o,i,n;e.preventDefault&&e.preventDefault();const r=e.target;let a=!0,l="";switch(r.value.length&&!r.value.replace(/\s/g,"").length?(l="This field cannot be left blank",r.setCustomValidity(l)):(l="",r.setCustomValidity&&r.setCustomValidity("")),!0){case r.validity.valueMissing:l=null!==(t=r.dataset.required)&&void 0!==t?t:"This field is required";break;case r.validity.patternMismatch:l=null!==(o=r.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case r.validity.badInput:l=null!==(i=r.dataset.badinput)&&void 0!==i?i:"Wrong input type";break;case r.validity.rangeOverflow||r.validity.rangeUnderflow:l=null!==(n=r.dataset.range)&&void 0!==n?n:"Invalid value";break;case r.validity.customError:l=r.validationMessage;break;default:a=!1}return{target:r,hasError:a,errorMessage:l}}(e);a(t,o,i)}render(){return o(i,null,o("form",{ref:e=>this.form=e,onSubmit:this.doSubmit.bind(this)},o("fieldset",{ref:e=>this.fieldset=e}),o("input",{type:"submit",ref:e=>this.submitButton=e,style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};l.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{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 .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:"Roboto", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .errorBubble{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 .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.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}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:block}fieldset{margin:0;padding:0;border:none}label{display:block;position:relative;margin-bottom:16px}.inlineLabel{font-weight:400;display:inline-block;vertical-align:top;padding-top:4px}input[type=checkbox]{width:18px;height:18px}input~label{font-weight:400}select{font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}.placeholder{color:#9e9e9e}.placeholder option{color:initial}select.invalid:invalid{border:1px solid #dc0000}select~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}select~.errorBubble:not(.visible){visibility:hidden}select~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}select.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}select:focus{border-color:#1479c6}select:focus-visible{outline:none}.button{padding:0 16px}.footer{display:flex;gap:16px;flex-direction:row-reverse}label.flex-label{display:flex;flex-direction:column;width:346px;box-sizing:border-box}label>.outer-container>input[type=date]{min-width:0;width:200px}label.flex-label input[type=time]{min-width:auto;text-align:center;width:130px;margin-left:16px}label>.outer-container>input[type=date],label.flex-label input[type=time]{line-height:36px}';export{l as tttx_form_1_2_0}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as o,g as n,F as r}from"./p-d490353a.js";import{p as s,d as l}from"./p-55799798.js";import"./p-112455b1.js";const a=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.toggleFilter=i(this,"toggleFilter",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover,this.toggleFilter.emit(this.showPopover)}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon_1_2_0",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon_1_2_0",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon_1_2_0",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon_1_2_0",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon_1_2_0",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};a.style='.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}';const c=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.rowCheckboxClick=i(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const t of this._data)t.hasCheckbox&&void 0===t.checked&&(t.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(t,i){t.stopPropagation(),i.rowData&&this.rowCheckboxClick.emit({key:i.key,name:this.name,data:i.rowData})}onRowClickHandler(t){(t.clickable||t.toggleable)&&t.rowData&&this.rowClick.emit({key:t.key,name:this.name,data:t.rowData})}renderListItem(t){const i=s.sanitize(t.element,l);return e(r,null,t.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon_1_2_0",{icon:t.checked?"check_box":"check_box_outline_blank",color:t.checked?"blue":"grey",onClick:i=>{this.onRowCheckboxHandler(i,t)}})),t.element&&e("span",{class:"item-content",innerHTML:i}),t.icon&&e("span",{class:"icons"},e("tttx-icon_1_2_0",{class:"align-right",icon:t.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((t=>e("li",{key:t.key,class:"item"+(t.clickable?" clickable":"")+(t.toggleable?" toggleable":"")+(t.checked?" selected":"")+(t.active?" active":""),onClick:()=>{this.onRowClickHandler(t)}},this.renderListItem(t)))))}static get watchers(){return{data:["onDataChange"]}}};c.style='.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:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;flex-grow:1;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;flex-grow:2;min-height:36px}.checkbox{padding:6px;margin-left:-8px}';const d=class{constructor(e){t(this,e),this.sorterChangeEvent=i(this,"sorterChangeEvent",7),this.toggleSorter=i(this,"toggleSorter",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(t){t.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand,this.toggleSorter.emit(this.dropdownExpand)}onDropdownSelected(t){this.dropdownExpand=!1,this.selectedField=t.target.innerHTML,this.emitSortEvent(),this.toggleSorter.emit(this.dropdownExpand)}render(){const t="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const i="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",n=this.dropdownExpand?"expand_less":"expand_more",r=this.selectedField;return e(o,{id:`sorter__${this.sorterKey}`},e("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},e("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},e("tttx-icon_1_2_0",{icon:i,color:"black"})),e("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},e("div",{class:"dropdown-selector-button"},e("div",{class:"dropdown-selector-text"},r),e("div",{class:"dropdown-selector-chevron"},e("tttx-icon_1_2_0",{icon:n,color:"black"})))),this.dropdownExpand&&e("div",{class:"dropdown-options-list"},t.sorterOptions.map((t=>e("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:t.optionLabel},t.optionLabel))))))}get el(){return n(this)}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';const p=class{constructor(i){t(this,i),this.border=!0,this.viewSize=void 0}handleResize(){this.setViewSize()}async componentWillLoad(){this.setViewSize()}setViewSize(){this.viewSize=window.innerWidth<698?"mobile":"desktop"}render(){return e(o,null,e("div",{class:`container ${this.border?"bordered":""} ${this.viewSize}`},e("slot",{name:"before"}),e("slot",{name:"center"}),e("slot",{name:"after"})))}};p.style=".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";export{a as tttx_filter_1_2_0,c as tttx_list_1_2_0,d as tttx_sorter_1_2_0,p as tttx_toolbar_1_2_0}