@six-group/ui-library 0.0.0-insider.11a6206 → 0.0.0-insider.16b5866

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 (834) hide show
  1. package/README.md +9 -0
  2. package/dist/cjs/{event-listeners-b835dfae.js → event-listeners-fdfe838c.js} +1 -1
  3. package/dist/cjs/event-listeners-fdfe838c.js.map +1 -0
  4. package/dist/cjs/{execution-control-45c84c46.js → execution-control-b4707294.js} +1 -1
  5. package/dist/cjs/execution-control-b4707294.js.map +1 -0
  6. package/dist/cjs/{focus-visible-e0d93a95.js → focus-visible-ae2470dd.js} +1 -1
  7. package/dist/cjs/focus-visible-ae2470dd.js.map +1 -0
  8. package/dist/cjs/{form-8cbd4e0e.js → form-2df8c5bb.js} +1 -1
  9. package/dist/{esm/form-0b9c11cd.js.map → cjs/form-2df8c5bb.js.map} +1 -1
  10. package/dist/cjs/{form-control-8df00a52.js → form-control-9769b310.js} +11 -8
  11. package/dist/cjs/form-control-9769b310.js.map +1 -0
  12. package/dist/cjs/{index-2f6daa5b.js → index-900437fc.js} +400 -54
  13. package/dist/cjs/index-900437fc.js.map +1 -0
  14. package/dist/cjs/index.cjs.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +3 -12
  16. package/dist/cjs/loader.cjs.js.map +1 -1
  17. package/dist/cjs/{modal-21350fb5.js → modal-d5f074c7.js} +1 -1
  18. package/dist/cjs/modal-d5f074c7.js.map +1 -0
  19. package/dist/cjs/{popover-8885d50f.js → popover-2df7e154.js} +1 -1
  20. package/dist/{esm/popover-2e72e7d8.js.map → cjs/popover-2df7e154.js.map} +1 -1
  21. package/dist/cjs/{popup-44836aaf.js → popup-f1d9910f.js} +1 -1
  22. package/dist/cjs/popup-f1d9910f.js.map +1 -0
  23. package/dist/cjs/{scroll-76e6f5d7.js → scroll-2c4200dc.js} +1 -2
  24. package/dist/{esm/scroll-180b53fd.js.map → cjs/scroll-2c4200dc.js.map} +1 -1
  25. package/dist/cjs/set-attributes_2.cjs.entry.js +1 -1
  26. package/dist/cjs/set-attributes_2.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-alert.cjs.entry.js +1 -1
  28. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  29. package/dist/cjs/six-avatar.cjs.entry.js +1 -1
  30. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-badge.cjs.entry.js +1 -1
  32. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-button.cjs.entry.js +5 -5
  34. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-card.cjs.entry.js +1 -1
  36. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-checkbox.cjs.entry.js +11 -16
  38. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-datepicker.cjs.entry.js +10 -13
  40. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-details.cjs.entry.js +3 -3
  42. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-dialog.cjs.entry.js +4 -4
  44. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-drawer.cjs.entry.js +4 -4
  46. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-dropdown_2.cjs.entry.js +6 -6
  48. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-error-page.cjs.entry.js +1 -1
  50. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-error.cjs.entry.js +21 -0
  52. package/dist/cjs/six-error.cjs.entry.js.map +1 -0
  53. package/dist/cjs/six-file-list-item.cjs.entry.js +1 -1
  54. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-file-list.cjs.entry.js +1 -1
  56. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-file-upload.cjs.entry.js +1 -1
  58. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-footer.cjs.entry.js +1 -1
  60. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-group-label.cjs.entry.js +4 -4
  62. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-header.cjs.entry.js +3 -3
  64. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-icon-button.cjs.entry.js +3 -3
  66. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-icon.cjs.entry.js +1 -1
  68. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  69. package/dist/cjs/six-input.cjs.entry.js +10 -7
  70. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-item-picker.cjs.entry.js +6 -6
  72. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-language-switcher.cjs.entry.js +1 -1
  74. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-layout-grid.cjs.entry.js +1 -1
  76. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-main-container.cjs.entry.js +1 -1
  78. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-menu-divider.cjs.entry.js +1 -1
  80. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-menu-item.cjs.entry.js +2 -2
  82. package/dist/cjs/six-menu-item.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-menu-label.cjs.entry.js +1 -1
  84. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-picto.cjs.entry.js +1 -1
  86. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-progress-bar.cjs.entry.js +1 -1
  88. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-progress-ring.cjs.entry.js +1 -1
  90. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-radio.cjs.entry.js +11 -19
  92. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-range.cjs.entry.js +9 -6
  94. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-root.cjs.entry.js +1 -1
  96. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-search-field.cjs.entry.js +3 -3
  98. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-select.cjs.entry.js +16 -12
  100. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +4 -3
  102. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-sidebar-item.cjs.entry.js +1 -1
  104. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-sidebar.cjs.entry.js +2 -2
  106. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-spinner.cjs.entry.js +1 -1
  108. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-switch.cjs.entry.js +27 -7
  110. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  111. package/dist/cjs/six-tab-group.cjs.entry.js +46 -51
  112. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  113. package/dist/cjs/six-tab-panel.cjs.entry.js +1 -1
  114. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  115. package/dist/cjs/six-tab.cjs.entry.js +20 -4
  116. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  117. package/dist/cjs/six-tag.cjs.entry.js +25 -3
  118. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  119. package/dist/cjs/six-textarea.cjs.entry.js +26 -27
  120. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  121. package/dist/cjs/six-tile.cjs.entry.js +2 -2
  122. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  123. package/dist/cjs/six-timepicker.cjs.entry.js +10 -15
  124. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  125. package/dist/cjs/six-tooltip.cjs.entry.js +4 -4
  126. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  127. package/dist/cjs/{slot-bccbdb59.js → slot-6e6a400f.js} +1 -1
  128. package/dist/cjs/slot-6e6a400f.js.map +1 -0
  129. package/dist/cjs/{types-64878648.js → types-47199040.js} +1 -1
  130. package/dist/cjs/types-47199040.js.map +1 -0
  131. package/dist/cjs/ui-library.cjs.js +3 -6
  132. package/dist/cjs/ui-library.cjs.js.map +1 -1
  133. package/dist/collection/collection-manifest.json +55 -54
  134. package/dist/collection/components/six-alert/six-alert.js +15 -8
  135. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  136. package/dist/collection/components/six-alert/test/six-alert.spec.js +25 -0
  137. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +1 -0
  138. package/dist/collection/components/six-avatar/six-avatar.js +1 -1
  139. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +26 -0
  140. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +1 -0
  141. package/dist/collection/components/six-badge/six-badge.js +1 -1
  142. package/dist/collection/components/six-badge/test/six-badge.spec.js +20 -0
  143. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +1 -0
  144. package/dist/collection/components/six-button/six-button.css +5 -30
  145. package/dist/collection/components/six-button/six-button.js +14 -9
  146. package/dist/collection/components/six-button/six-button.js.map +1 -1
  147. package/dist/collection/components/six-button/test/six-button.spec.js +69 -0
  148. package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -0
  149. package/dist/collection/components/six-card/six-card.js +1 -1
  150. package/dist/collection/components/six-card/test/six-card.spec.js +18 -0
  151. package/dist/collection/components/six-card/test/six-card.spec.js.map +1 -0
  152. package/dist/collection/components/six-checkbox/six-checkbox.css +1 -1
  153. package/dist/collection/components/six-checkbox/six-checkbox.js +43 -40
  154. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  155. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +83 -0
  156. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +1 -0
  157. package/dist/collection/components/six-datepicker/components/day-selection.js +1 -1
  158. package/dist/collection/components/six-datepicker/components/month-selection.js +2 -2
  159. package/dist/collection/components/six-datepicker/components/year-selection.js +2 -2
  160. package/dist/collection/components/six-datepicker/six-datepicker.js +59 -34
  161. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  162. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +26 -0
  163. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +1 -0
  164. package/dist/collection/components/six-details/six-details.css +3 -1
  165. package/dist/collection/components/six-details/six-details.js +14 -8
  166. package/dist/collection/components/six-details/six-details.js.map +1 -1
  167. package/dist/collection/components/six-details/test/six-details.spec.js +36 -0
  168. package/dist/collection/components/six-details/test/six-details.spec.js.map +1 -0
  169. package/dist/collection/components/six-dialog/six-dialog.js +21 -13
  170. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  171. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +34 -0
  172. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +1 -0
  173. package/dist/collection/components/six-drawer/six-drawer.js +21 -13
  174. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  175. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +34 -0
  176. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +1 -0
  177. package/dist/collection/components/six-dropdown/six-dropdown.css +2 -1
  178. package/dist/collection/components/six-dropdown/six-dropdown.js +30 -18
  179. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  180. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +122 -0
  181. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -0
  182. package/dist/collection/components/six-error/six-error.css +5 -0
  183. package/dist/collection/components/six-error/six-error.js +25 -0
  184. package/dist/collection/components/six-error/six-error.js.map +1 -0
  185. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  186. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +240 -0
  187. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +1 -0
  188. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  189. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +67 -0
  190. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +1 -0
  191. package/dist/collection/components/six-file-list-item/six-file-list-item.js +5 -3
  192. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  193. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +169 -0
  194. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +1 -0
  195. package/dist/collection/components/six-file-upload/six-file-upload.js +5 -3
  196. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  197. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +103 -0
  198. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -0
  199. package/dist/collection/components/six-footer/six-footer.js +1 -1
  200. package/dist/collection/components/six-footer/test/six-footer.spec.js +21 -0
  201. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +1 -0
  202. package/dist/collection/components/six-group-label/six-group-label.css +1 -1
  203. package/dist/collection/components/six-group-label/six-group-label.js +3 -3
  204. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +45 -0
  205. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +1 -0
  206. package/dist/collection/components/six-header/six-header.js +19 -11
  207. package/dist/collection/components/six-header/six-header.js.map +1 -1
  208. package/dist/collection/components/six-header/test/six-header.spec.js +133 -0
  209. package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -0
  210. package/dist/collection/components/six-icon/six-icon.js +1 -1
  211. package/dist/collection/components/six-icon/test/six-icon.spec.js +20 -0
  212. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +1 -0
  213. package/dist/collection/components/six-icon-button/six-icon-button.css +4 -4
  214. package/dist/collection/components/six-icon-button/six-icon-button.js +2 -2
  215. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +23 -0
  216. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +1 -0
  217. package/dist/collection/components/six-input/six-input.css +2 -2
  218. package/dist/collection/components/six-input/six-input.js +54 -20
  219. package/dist/collection/components/six-input/six-input.js.map +1 -1
  220. package/dist/collection/components/six-input/test/six-input.spec.js +39 -0
  221. package/dist/collection/components/six-input/test/six-input.spec.js.map +1 -0
  222. package/dist/collection/components/six-item-picker/six-item-picker.js +14 -10
  223. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  224. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +90 -0
  225. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +1 -0
  226. package/dist/collection/components/six-language-switcher/six-language-switcher.js +5 -3
  227. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  228. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +196 -0
  229. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -0
  230. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  231. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +18 -0
  232. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +1 -0
  233. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  234. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +22 -0
  235. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +1 -0
  236. package/dist/collection/components/six-menu/six-menu.js +12 -8
  237. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  238. package/dist/collection/components/six-menu/test/six-menu.spec.js +93 -0
  239. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -0
  240. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  241. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +18 -0
  242. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +1 -0
  243. package/dist/collection/components/six-menu-item/six-menu-item.js +10 -6
  244. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  245. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +33 -0
  246. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +1 -0
  247. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  248. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +20 -0
  249. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +1 -0
  250. package/dist/collection/components/six-picto/six-picto.js +1 -1
  251. package/dist/collection/components/six-picto/test/six-picto.spec.js +33 -0
  252. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +1 -0
  253. package/dist/collection/components/six-progress-bar/six-progress-bar.js +1 -1
  254. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +24 -0
  255. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +1 -0
  256. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  257. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +26 -0
  258. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +1 -0
  259. package/dist/collection/components/six-radio/six-radio.js +23 -41
  260. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  261. package/dist/collection/components/six-radio/test/six-radio.spec.js +63 -0
  262. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +1 -0
  263. package/dist/collection/components/six-range/six-range.css +1 -1
  264. package/dist/collection/components/six-range/six-range.js +40 -13
  265. package/dist/collection/components/six-range/six-range.js.map +1 -1
  266. package/dist/collection/components/six-range/test/six-range.spec.js +34 -0
  267. package/dist/collection/components/six-range/test/six-range.spec.js.map +1 -0
  268. package/dist/collection/components/six-root/six-root.js +5 -3
  269. package/dist/collection/components/six-root/six-root.js.map +1 -1
  270. package/dist/collection/components/six-root/test/six-root.spec.js +43 -0
  271. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -0
  272. package/dist/collection/components/six-search-field/six-search-field.js +5 -4
  273. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  274. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +22 -0
  275. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +1 -0
  276. package/dist/collection/components/six-select/six-select.css +7 -10
  277. package/dist/collection/components/six-select/six-select.js +48 -20
  278. package/dist/collection/components/six-select/six-select.js.map +1 -1
  279. package/dist/collection/components/six-select/test/six-select.spec.js +86 -0
  280. package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -0
  281. package/dist/collection/components/six-select/test/util.spec.js +81 -0
  282. package/dist/collection/components/six-select/test/util.spec.js.map +1 -0
  283. package/dist/collection/components/six-sidebar/six-sidebar.js +26 -14
  284. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  285. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +22 -0
  286. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +1 -0
  287. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +1 -1
  288. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +50 -0
  289. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +1 -0
  290. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +4 -0
  291. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +3 -2
  292. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  293. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +53 -0
  294. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +1 -0
  295. package/dist/collection/components/six-spinner/six-spinner.js +1 -1
  296. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +37 -0
  297. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -0
  298. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +3 -2
  299. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
  300. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +117 -0
  301. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +1 -0
  302. package/dist/collection/components/six-switch/six-switch.css +1 -1
  303. package/dist/collection/components/six-switch/six-switch.js +59 -12
  304. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  305. package/dist/collection/components/six-switch/test/six-switch.spec.js +73 -0
  306. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +1 -0
  307. package/dist/collection/components/six-tab/six-tab.css +54 -5
  308. package/dist/collection/components/six-tab/six-tab.js +27 -7
  309. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  310. package/dist/collection/components/six-tab-group/six-tab-group.css +0 -31
  311. package/dist/collection/components/six-tab-group/six-tab-group.js +18 -56
  312. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  313. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  314. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +20 -0
  315. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +1 -0
  316. package/dist/collection/components/six-tag/six-tag.css +6 -0
  317. package/dist/collection/components/six-tag/six-tag.js +26 -3
  318. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  319. package/dist/collection/components/six-tag/test/six-tag.spec.js +54 -0
  320. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +1 -0
  321. package/dist/collection/components/six-textarea/six-textarea.css +1 -1
  322. package/dist/collection/components/six-textarea/six-textarea.js +66 -39
  323. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  324. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +119 -0
  325. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -0
  326. package/dist/collection/components/six-tile/six-tile.js +10 -6
  327. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  328. package/dist/collection/components/six-tile/test/six-tile.spec.js +69 -0
  329. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +1 -0
  330. package/dist/collection/components/six-timepicker/six-timepicker.js +43 -25
  331. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  332. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +496 -0
  333. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -0
  334. package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
  335. package/dist/collection/components/six-tooltip/six-tooltip.js +15 -9
  336. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  337. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +28 -0
  338. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +1 -0
  339. package/dist/collection/functional-components/form-control/form-control.js +9 -7
  340. package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
  341. package/dist/collection/utils/animation.js +34 -0
  342. package/dist/collection/utils/animation.js.map +1 -0
  343. package/dist/collection/utils/date-util.js +1 -1
  344. package/dist/collection/utils/date-util.spec.js +995 -0
  345. package/dist/collection/utils/date-util.spec.js.map +1 -0
  346. package/dist/collection/utils/event-listeners.js.map +1 -1
  347. package/dist/collection/utils/popover.js +1 -1
  348. package/dist/collection/utils/scroll.js +1 -1
  349. package/dist/collection/utils/scroll.spec.js +122 -0
  350. package/dist/collection/utils/scroll.spec.js.map +1 -0
  351. package/dist/collection/utils/time.util.spec.js +368 -0
  352. package/dist/collection/utils/time.util.spec.js.map +1 -0
  353. package/dist/collection/wrappers/set-attributes/set-attributes.js +1 -1
  354. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +16 -0
  355. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +1 -0
  356. package/dist/components/event-listeners.js.map +1 -1
  357. package/dist/components/execution-control.js.map +1 -1
  358. package/dist/components/focus-visible.js.map +1 -1
  359. package/dist/components/form-control.js +9 -6
  360. package/dist/components/form-control.js.map +1 -1
  361. package/dist/components/form.js.map +1 -1
  362. package/dist/components/index.js +2 -0
  363. package/dist/components/index.js.map +1 -1
  364. package/dist/components/modal.js.map +1 -1
  365. package/dist/components/popover.js.map +1 -1
  366. package/dist/components/scroll.js +1 -1
  367. package/dist/components/scroll.js.map +1 -1
  368. package/dist/components/set-attributes2.js.map +1 -1
  369. package/dist/components/six-alert.js.map +1 -1
  370. package/dist/components/six-avatar.js.map +1 -1
  371. package/dist/components/six-badge.js.map +1 -1
  372. package/dist/components/six-button.js +2 -2
  373. package/dist/components/six-button.js.map +1 -1
  374. package/dist/components/six-card.js.map +1 -1
  375. package/dist/components/six-checkbox.js +17 -15
  376. package/dist/components/six-checkbox.js.map +1 -1
  377. package/dist/components/six-datepicker.js +13 -9
  378. package/dist/components/six-datepicker.js.map +1 -1
  379. package/dist/components/six-details2.js +1 -1
  380. package/dist/components/six-details2.js.map +1 -1
  381. package/dist/components/six-dialog.js.map +1 -1
  382. package/dist/components/six-drawer.js.map +1 -1
  383. package/dist/components/six-dropdown2.js +8 -2
  384. package/dist/components/six-dropdown2.js.map +1 -1
  385. package/dist/components/six-error-page.js.map +1 -1
  386. package/dist/components/six-error.d.ts +11 -0
  387. package/dist/components/six-error.js +8 -0
  388. package/dist/components/six-error.js.map +1 -0
  389. package/dist/components/six-error2.js +32 -0
  390. package/dist/components/six-error2.js.map +1 -0
  391. package/dist/components/six-file-list-item.js.map +1 -1
  392. package/dist/components/six-file-list.js.map +1 -1
  393. package/dist/components/six-file-upload.js.map +1 -1
  394. package/dist/components/six-footer.js.map +1 -1
  395. package/dist/components/six-group-label.js +8 -2
  396. package/dist/components/six-group-label.js.map +1 -1
  397. package/dist/components/six-header.js +8 -2
  398. package/dist/components/six-header.js.map +1 -1
  399. package/dist/components/six-icon-button2.js +1 -1
  400. package/dist/components/six-icon-button2.js.map +1 -1
  401. package/dist/components/six-icon2.js.map +1 -1
  402. package/dist/components/six-input2.js +14 -3
  403. package/dist/components/six-input2.js.map +1 -1
  404. package/dist/components/six-item-picker2.js +2 -2
  405. package/dist/components/six-item-picker2.js.map +1 -1
  406. package/dist/components/six-language-switcher.js.map +1 -1
  407. package/dist/components/six-layout-grid.js.map +1 -1
  408. package/dist/components/six-main-container.js.map +1 -1
  409. package/dist/components/six-menu-divider.js.map +1 -1
  410. package/dist/components/six-menu-item2.js.map +1 -1
  411. package/dist/components/six-menu-label.js.map +1 -1
  412. package/dist/components/six-menu2.js.map +1 -1
  413. package/dist/components/six-picto2.js.map +1 -1
  414. package/dist/components/six-progress-bar.js.map +1 -1
  415. package/dist/components/six-progress-ring.js.map +1 -1
  416. package/dist/components/six-radio.js +10 -19
  417. package/dist/components/six-radio.js.map +1 -1
  418. package/dist/components/six-range.js +14 -3
  419. package/dist/components/six-range.js.map +1 -1
  420. package/dist/components/six-root.js.map +1 -1
  421. package/dist/components/six-search-field.js +7 -1
  422. package/dist/components/six-search-field.js.map +1 -1
  423. package/dist/components/six-select.js +39 -21
  424. package/dist/components/six-select.js.map +1 -1
  425. package/dist/components/six-sidebar-item-group.js +2 -1
  426. package/dist/components/six-sidebar-item-group.js.map +1 -1
  427. package/dist/components/six-sidebar-item.js.map +1 -1
  428. package/dist/components/six-sidebar.js.map +1 -1
  429. package/dist/components/six-spinner2.js.map +1 -1
  430. package/dist/components/six-stage-indicator2.js.map +1 -1
  431. package/dist/components/six-switch.js +33 -5
  432. package/dist/components/six-switch.js.map +1 -1
  433. package/dist/components/six-tab-group.js +45 -50
  434. package/dist/components/six-tab-group.js.map +1 -1
  435. package/dist/components/six-tab-panel.js.map +1 -1
  436. package/dist/components/six-tab.js +19 -3
  437. package/dist/components/six-tab.js.map +1 -1
  438. package/dist/components/six-tag2.js +34 -6
  439. package/dist/components/six-tag2.js.map +1 -1
  440. package/dist/components/six-textarea.js +31 -24
  441. package/dist/components/six-textarea.js.map +1 -1
  442. package/dist/components/six-tile.js.map +1 -1
  443. package/dist/components/six-timepicker2.js +12 -10
  444. package/dist/components/six-timepicker2.js.map +1 -1
  445. package/dist/components/six-tooltip2.js +2 -2
  446. package/dist/components/six-tooltip2.js.map +1 -1
  447. package/dist/components/slot.js.map +1 -1
  448. package/dist/components.d.ts +361 -88
  449. package/dist/components.json +4122 -120
  450. package/dist/esm/{event-listeners-535f3ad1.js → event-listeners-f6e5b0ab.js} +1 -1
  451. package/dist/esm/event-listeners-f6e5b0ab.js.map +1 -0
  452. package/dist/esm/{execution-control-72cc50f4.js → execution-control-e0892a05.js} +1 -1
  453. package/dist/esm/execution-control-e0892a05.js.map +1 -0
  454. package/dist/esm/{focus-visible-fa7129a0.js → focus-visible-fc6ac671.js} +1 -1
  455. package/dist/esm/focus-visible-fc6ac671.js.map +1 -0
  456. package/dist/esm/{form-0b9c11cd.js → form-81252534.js} +1 -1
  457. package/dist/esm/form-81252534.js.map +1 -0
  458. package/dist/esm/{form-control-785c5f79.js → form-control-b0febe88.js} +11 -8
  459. package/dist/esm/form-control-b0febe88.js.map +1 -0
  460. package/dist/esm/{index-5c0f6628.js → index-8a74f992.js} +400 -54
  461. package/dist/esm/index-8a74f992.js.map +1 -0
  462. package/dist/esm/index.js.map +1 -1
  463. package/dist/esm/loader.js +4 -13
  464. package/dist/esm/loader.js.map +1 -1
  465. package/dist/esm/{modal-b1d96441.js → modal-7d32e141.js} +1 -1
  466. package/dist/esm/modal-7d32e141.js.map +1 -0
  467. package/dist/esm/{popover-2e72e7d8.js → popover-136d1f73.js} +1 -1
  468. package/dist/esm/popover-136d1f73.js.map +1 -0
  469. package/dist/esm/{popup-678b8592.js → popup-7f89a001.js} +1 -1
  470. package/dist/esm/popup-7f89a001.js.map +1 -0
  471. package/dist/esm/{scroll-180b53fd.js → scroll-774762d6.js} +2 -2
  472. package/dist/esm/scroll-774762d6.js.map +1 -0
  473. package/dist/esm/set-attributes_2.entry.js +1 -1
  474. package/dist/esm/set-attributes_2.entry.js.map +1 -1
  475. package/dist/esm/six-alert.entry.js +1 -1
  476. package/dist/esm/six-alert.entry.js.map +1 -1
  477. package/dist/esm/six-avatar.entry.js +1 -1
  478. package/dist/esm/six-avatar.entry.js.map +1 -1
  479. package/dist/esm/six-badge.entry.js +1 -1
  480. package/dist/esm/six-badge.entry.js.map +1 -1
  481. package/dist/esm/six-button.entry.js +5 -5
  482. package/dist/esm/six-button.entry.js.map +1 -1
  483. package/dist/esm/six-card.entry.js +1 -1
  484. package/dist/esm/six-card.entry.js.map +1 -1
  485. package/dist/esm/six-checkbox.entry.js +11 -16
  486. package/dist/esm/six-checkbox.entry.js.map +1 -1
  487. package/dist/esm/six-datepicker.entry.js +10 -13
  488. package/dist/esm/six-datepicker.entry.js.map +1 -1
  489. package/dist/esm/six-details.entry.js +3 -3
  490. package/dist/esm/six-details.entry.js.map +1 -1
  491. package/dist/esm/six-dialog.entry.js +4 -4
  492. package/dist/esm/six-dialog.entry.js.map +1 -1
  493. package/dist/esm/six-drawer.entry.js +4 -4
  494. package/dist/esm/six-drawer.entry.js.map +1 -1
  495. package/dist/esm/six-dropdown_2.entry.js +6 -6
  496. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  497. package/dist/esm/six-error-page.entry.js +1 -1
  498. package/dist/esm/six-error-page.entry.js.map +1 -1
  499. package/dist/esm/six-error.entry.js +17 -0
  500. package/dist/esm/six-error.entry.js.map +1 -0
  501. package/dist/esm/six-file-list-item.entry.js +1 -1
  502. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  503. package/dist/esm/six-file-list.entry.js +1 -1
  504. package/dist/esm/six-file-list.entry.js.map +1 -1
  505. package/dist/esm/six-file-upload.entry.js +1 -1
  506. package/dist/esm/six-file-upload.entry.js.map +1 -1
  507. package/dist/esm/six-footer.entry.js +1 -1
  508. package/dist/esm/six-footer.entry.js.map +1 -1
  509. package/dist/esm/six-group-label.entry.js +4 -4
  510. package/dist/esm/six-group-label.entry.js.map +1 -1
  511. package/dist/esm/six-header.entry.js +3 -3
  512. package/dist/esm/six-header.entry.js.map +1 -1
  513. package/dist/esm/six-icon-button.entry.js +3 -3
  514. package/dist/esm/six-icon-button.entry.js.map +1 -1
  515. package/dist/esm/six-icon.entry.js +1 -1
  516. package/dist/esm/six-icon.entry.js.map +1 -1
  517. package/dist/esm/six-input.entry.js +10 -7
  518. package/dist/esm/six-input.entry.js.map +1 -1
  519. package/dist/esm/six-item-picker.entry.js +6 -6
  520. package/dist/esm/six-item-picker.entry.js.map +1 -1
  521. package/dist/esm/six-language-switcher.entry.js +1 -1
  522. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  523. package/dist/esm/six-layout-grid.entry.js +1 -1
  524. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  525. package/dist/esm/six-main-container.entry.js +1 -1
  526. package/dist/esm/six-main-container.entry.js.map +1 -1
  527. package/dist/esm/six-menu-divider.entry.js +1 -1
  528. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  529. package/dist/esm/six-menu-item.entry.js +2 -2
  530. package/dist/esm/six-menu-item.entry.js.map +1 -1
  531. package/dist/esm/six-menu-label.entry.js +1 -1
  532. package/dist/esm/six-menu-label.entry.js.map +1 -1
  533. package/dist/esm/six-picto.entry.js +1 -1
  534. package/dist/esm/six-picto.entry.js.map +1 -1
  535. package/dist/esm/six-progress-bar.entry.js +1 -1
  536. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  537. package/dist/esm/six-progress-ring.entry.js +1 -1
  538. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  539. package/dist/esm/six-radio.entry.js +11 -19
  540. package/dist/esm/six-radio.entry.js.map +1 -1
  541. package/dist/esm/six-range.entry.js +9 -6
  542. package/dist/esm/six-range.entry.js.map +1 -1
  543. package/dist/esm/six-root.entry.js +1 -1
  544. package/dist/esm/six-root.entry.js.map +1 -1
  545. package/dist/esm/six-search-field.entry.js +3 -3
  546. package/dist/esm/six-search-field.entry.js.map +1 -1
  547. package/dist/esm/six-select.entry.js +16 -12
  548. package/dist/esm/six-select.entry.js.map +1 -1
  549. package/dist/esm/six-sidebar-item-group.entry.js +4 -3
  550. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  551. package/dist/esm/six-sidebar-item.entry.js +1 -1
  552. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  553. package/dist/esm/six-sidebar.entry.js +2 -2
  554. package/dist/esm/six-sidebar.entry.js.map +1 -1
  555. package/dist/esm/six-spinner.entry.js +1 -1
  556. package/dist/esm/six-spinner.entry.js.map +1 -1
  557. package/dist/esm/six-switch.entry.js +27 -7
  558. package/dist/esm/six-switch.entry.js.map +1 -1
  559. package/dist/esm/six-tab-group.entry.js +46 -51
  560. package/dist/esm/six-tab-group.entry.js.map +1 -1
  561. package/dist/esm/six-tab-panel.entry.js +1 -1
  562. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  563. package/dist/esm/six-tab.entry.js +20 -4
  564. package/dist/esm/six-tab.entry.js.map +1 -1
  565. package/dist/esm/six-tag.entry.js +25 -3
  566. package/dist/esm/six-tag.entry.js.map +1 -1
  567. package/dist/esm/six-textarea.entry.js +26 -27
  568. package/dist/esm/six-textarea.entry.js.map +1 -1
  569. package/dist/esm/six-tile.entry.js +2 -2
  570. package/dist/esm/six-tile.entry.js.map +1 -1
  571. package/dist/esm/six-timepicker.entry.js +10 -15
  572. package/dist/esm/six-timepicker.entry.js.map +1 -1
  573. package/dist/esm/six-tooltip.entry.js +4 -4
  574. package/dist/esm/six-tooltip.entry.js.map +1 -1
  575. package/dist/esm/{slot-2e64df19.js → slot-ad36df3a.js} +1 -1
  576. package/dist/esm/slot-ad36df3a.js.map +1 -0
  577. package/dist/esm/{types-4b10b413.js → types-59b455aa.js} +1 -1
  578. package/dist/esm/types-59b455aa.js.map +1 -0
  579. package/dist/esm/ui-library.js +4 -7
  580. package/dist/esm/ui-library.js.map +1 -1
  581. package/dist/types/components/six-checkbox/six-checkbox.d.ts +4 -5
  582. package/dist/types/components/six-datepicker/six-datepicker.d.ts +4 -2
  583. package/dist/types/components/six-error/six-error.d.ts +9 -0
  584. package/dist/types/components/six-input/six-input.d.ts +7 -2
  585. package/dist/types/components/six-radio/six-radio.d.ts +0 -5
  586. package/dist/types/components/six-range/six-range.d.ts +4 -1
  587. package/dist/types/components/six-select/six-select.d.ts +4 -1
  588. package/dist/types/components/six-switch/six-switch.d.ts +8 -1
  589. package/dist/types/components/six-tab-group/six-tab-group.d.ts +0 -3
  590. package/dist/types/components/six-tag/six-tag.d.ts +8 -0
  591. package/dist/types/components/six-textarea/six-textarea.d.ts +5 -2
  592. package/dist/types/components/six-timepicker/six-timepicker.d.ts +5 -2
  593. package/dist/types/components.d.ts +109 -24
  594. package/dist/types/functional-components/form-control/form-control.d.ts +6 -2
  595. package/dist/types/stencil-public-runtime.d.ts +15 -2
  596. package/dist/types/utils/animation.d.ts +12 -0
  597. package/dist/types/utils/event-listeners.d.ts +3 -3
  598. package/dist/ui-library/index.esm.js.map +1 -1
  599. package/dist/ui-library/{p-eb8f05a9.js → p-052aa8d3.js} +2 -2
  600. package/dist/ui-library/p-052aa8d3.js.map +1 -0
  601. package/dist/ui-library/{p-25a3bf57.js → p-0f510624.js} +1 -1
  602. package/dist/ui-library/p-0f510624.js.map +1 -0
  603. package/dist/ui-library/{p-0b2c6348.js → p-0fdb185d.js} +1 -1
  604. package/dist/ui-library/p-0fdb185d.js.map +1 -0
  605. package/dist/ui-library/{p-e8feb81f.entry.js → p-13b43e04.entry.js} +2 -2
  606. package/dist/ui-library/p-13b43e04.entry.js.map +1 -0
  607. package/dist/ui-library/{p-686b12ec.entry.js → p-14c1ec31.entry.js} +2 -2
  608. package/dist/ui-library/p-14c1ec31.entry.js.map +1 -0
  609. package/dist/ui-library/{p-d87a6f4d.js → p-15559d38.js} +1 -1
  610. package/dist/ui-library/p-15559d38.js.map +1 -0
  611. package/dist/ui-library/{p-97323ad7.entry.js → p-1d5ee1a0.entry.js} +2 -2
  612. package/dist/ui-library/p-1d5ee1a0.entry.js.map +1 -0
  613. package/dist/ui-library/p-22c9b8c3.entry.js +2 -0
  614. package/dist/ui-library/p-22c9b8c3.entry.js.map +1 -0
  615. package/dist/ui-library/p-25bb1752.entry.js +2 -0
  616. package/dist/ui-library/p-25bb1752.entry.js.map +1 -0
  617. package/dist/ui-library/p-264d4ea8.entry.js +2 -0
  618. package/dist/ui-library/p-264d4ea8.entry.js.map +1 -0
  619. package/dist/ui-library/{p-21859bca.entry.js → p-346f9557.entry.js} +2 -2
  620. package/dist/ui-library/p-346f9557.entry.js.map +1 -0
  621. package/dist/ui-library/{p-03a145f5.entry.js → p-37557787.entry.js} +2 -2
  622. package/dist/ui-library/p-37557787.entry.js.map +1 -0
  623. package/dist/ui-library/{p-baa03951.entry.js → p-3cc5addb.entry.js} +2 -2
  624. package/dist/ui-library/p-3cc5addb.entry.js.map +1 -0
  625. package/dist/ui-library/p-3f1a5ecb.entry.js +2 -0
  626. package/dist/ui-library/p-3f1a5ecb.entry.js.map +1 -0
  627. package/dist/ui-library/{p-ef3936e5.entry.js → p-411ed539.entry.js} +2 -2
  628. package/dist/ui-library/p-411ed539.entry.js.map +1 -0
  629. package/dist/ui-library/p-4435ff73.entry.js +2 -0
  630. package/dist/ui-library/p-4435ff73.entry.js.map +1 -0
  631. package/dist/ui-library/p-538f3c50.entry.js +2 -0
  632. package/dist/ui-library/p-538f3c50.entry.js.map +1 -0
  633. package/dist/ui-library/{p-0cc08e91.js → p-5654e4c7.js} +1 -1
  634. package/dist/ui-library/p-5654e4c7.js.map +1 -0
  635. package/dist/ui-library/{p-66180e89.entry.js → p-5800663b.entry.js} +2 -2
  636. package/dist/ui-library/p-5800663b.entry.js.map +1 -0
  637. package/dist/ui-library/{p-0fe78f9b.js → p-59210f0b.js} +1 -1
  638. package/dist/ui-library/p-59210f0b.js.map +1 -0
  639. package/dist/ui-library/{p-28be55f0.entry.js → p-5af44076.entry.js} +2 -2
  640. package/dist/ui-library/p-5af44076.entry.js.map +1 -0
  641. package/dist/ui-library/p-5ba3a0fe.entry.js +2 -0
  642. package/dist/ui-library/p-5ba3a0fe.entry.js.map +1 -0
  643. package/dist/ui-library/{p-097cced4.entry.js → p-613283a7.entry.js} +2 -2
  644. package/dist/ui-library/p-613283a7.entry.js.map +1 -0
  645. package/dist/ui-library/p-6153045b.js +3 -0
  646. package/dist/ui-library/p-6153045b.js.map +1 -0
  647. package/dist/ui-library/{p-e19a6c95.entry.js → p-6197fe2f.entry.js} +2 -2
  648. package/dist/ui-library/p-6197fe2f.entry.js.map +1 -0
  649. package/dist/ui-library/p-658d9f79.entry.js +2 -0
  650. package/dist/ui-library/p-658d9f79.entry.js.map +1 -0
  651. package/dist/ui-library/p-66fe54b3.entry.js +2 -0
  652. package/dist/ui-library/p-66fe54b3.entry.js.map +1 -0
  653. package/dist/ui-library/{p-8cf72af6.js → p-698bb2c8.js} +1 -1
  654. package/dist/ui-library/p-698bb2c8.js.map +1 -0
  655. package/dist/ui-library/{p-912092c0.entry.js → p-724875b0.entry.js} +2 -2
  656. package/dist/ui-library/p-724875b0.entry.js.map +1 -0
  657. package/dist/ui-library/{p-dd3c76f1.entry.js → p-7afafb9d.entry.js} +2 -2
  658. package/dist/ui-library/p-7afafb9d.entry.js.map +1 -0
  659. package/dist/ui-library/{p-60621dc6.js → p-7d95def3.js} +1 -1
  660. package/dist/ui-library/p-7d95def3.js.map +1 -0
  661. package/dist/ui-library/{p-63703ba3.entry.js → p-7e3ad38a.entry.js} +2 -2
  662. package/dist/ui-library/p-7e3ad38a.entry.js.map +1 -0
  663. package/dist/ui-library/{p-445ba5b8.entry.js → p-878226a0.entry.js} +2 -2
  664. package/dist/ui-library/p-878226a0.entry.js.map +1 -0
  665. package/dist/ui-library/{p-4d408fb4.js → p-8c0971e0.js} +1 -1
  666. package/dist/ui-library/p-8c0971e0.js.map +1 -0
  667. package/dist/ui-library/{p-afcbe9da.entry.js → p-91b51800.entry.js} +2 -2
  668. package/dist/ui-library/p-91b51800.entry.js.map +1 -0
  669. package/dist/ui-library/{p-f0dd77e1.entry.js → p-95fbdd0b.entry.js} +2 -2
  670. package/dist/ui-library/p-95fbdd0b.entry.js.map +1 -0
  671. package/dist/ui-library/{p-ba74863a.js → p-9ace84c7.js} +1 -1
  672. package/dist/ui-library/p-9ace84c7.js.map +1 -0
  673. package/dist/ui-library/{p-d6798d35.entry.js → p-9b354f5d.entry.js} +2 -2
  674. package/dist/ui-library/p-9b354f5d.entry.js.map +1 -0
  675. package/dist/ui-library/{p-3929b0af.entry.js → p-9c1be3fb.entry.js} +2 -2
  676. package/dist/ui-library/p-9c1be3fb.entry.js.map +1 -0
  677. package/dist/ui-library/{p-cdcde4cd.entry.js → p-a0f290d0.entry.js} +2 -2
  678. package/dist/ui-library/p-a0f290d0.entry.js.map +1 -0
  679. package/dist/ui-library/{p-9461417e.entry.js → p-a2035543.entry.js} +2 -2
  680. package/dist/ui-library/p-a2035543.entry.js.map +1 -0
  681. package/dist/ui-library/p-a457fee8.entry.js +2 -0
  682. package/dist/ui-library/p-a457fee8.entry.js.map +1 -0
  683. package/dist/ui-library/{p-09779e47.entry.js → p-a55c7258.entry.js} +2 -2
  684. package/dist/ui-library/p-a55c7258.entry.js.map +1 -0
  685. package/dist/ui-library/{p-6d75f216.entry.js → p-a6a9ee96.entry.js} +2 -2
  686. package/dist/ui-library/p-a6a9ee96.entry.js.map +1 -0
  687. package/dist/ui-library/p-ab91c2a9.entry.js +2 -0
  688. package/dist/ui-library/p-ab91c2a9.entry.js.map +1 -0
  689. package/dist/ui-library/{p-73597d13.entry.js → p-ac099e6b.entry.js} +2 -2
  690. package/dist/ui-library/p-ac099e6b.entry.js.map +1 -0
  691. package/dist/ui-library/{p-bd8f8eef.entry.js → p-ae601a0f.entry.js} +2 -2
  692. package/dist/ui-library/p-ae601a0f.entry.js.map +1 -0
  693. package/dist/ui-library/{p-dcd7c547.entry.js → p-b351f889.entry.js} +2 -2
  694. package/dist/ui-library/p-b351f889.entry.js.map +1 -0
  695. package/dist/ui-library/p-b57afbe4.entry.js +2 -0
  696. package/dist/ui-library/p-b57afbe4.entry.js.map +1 -0
  697. package/dist/ui-library/p-b6f47c9d.entry.js +2 -0
  698. package/dist/ui-library/p-b6f47c9d.entry.js.map +1 -0
  699. package/dist/ui-library/{p-72ca96e1.entry.js → p-c03ebf7d.entry.js} +2 -2
  700. package/dist/ui-library/p-c03ebf7d.entry.js.map +1 -0
  701. package/dist/ui-library/p-cba69e9d.entry.js +2 -0
  702. package/dist/ui-library/p-cba69e9d.entry.js.map +1 -0
  703. package/dist/ui-library/{p-a1d4f6cf.entry.js → p-cd67da3d.entry.js} +2 -2
  704. package/dist/ui-library/p-cd67da3d.entry.js.map +1 -0
  705. package/dist/ui-library/{p-5a34c93e.entry.js → p-cdaed936.entry.js} +2 -2
  706. package/dist/ui-library/p-cdaed936.entry.js.map +1 -0
  707. package/dist/ui-library/{p-502ff3d3.entry.js → p-d1bda563.entry.js} +2 -2
  708. package/dist/ui-library/p-d1bda563.entry.js.map +1 -0
  709. package/dist/ui-library/p-db34a6cc.entry.js +2 -0
  710. package/dist/ui-library/p-db34a6cc.entry.js.map +1 -0
  711. package/dist/ui-library/p-db936ad7.entry.js +2 -0
  712. package/dist/ui-library/p-db936ad7.entry.js.map +1 -0
  713. package/dist/ui-library/p-dc4f41d8.entry.js +2 -0
  714. package/dist/ui-library/p-dc4f41d8.entry.js.map +1 -0
  715. package/dist/ui-library/{p-820c23f0.entry.js → p-dfed33c5.entry.js} +2 -2
  716. package/dist/ui-library/p-dfed33c5.entry.js.map +1 -0
  717. package/dist/ui-library/p-e5020f0d.js +2 -0
  718. package/dist/ui-library/p-e5020f0d.js.map +1 -0
  719. package/dist/ui-library/p-e775dcb4.entry.js +2 -0
  720. package/dist/ui-library/p-e775dcb4.entry.js.map +1 -0
  721. package/dist/ui-library/{p-8e0b6b7e.entry.js → p-ee950ce2.entry.js} +2 -2
  722. package/dist/ui-library/p-ee950ce2.entry.js.map +1 -0
  723. package/dist/ui-library/p-f1dc3a88.entry.js +2 -0
  724. package/dist/ui-library/p-f1dc3a88.entry.js.map +1 -0
  725. package/dist/ui-library/ui-library.css +2 -2
  726. package/dist/ui-library/ui-library.esm.js +1 -1
  727. package/dist/ui-library/ui-library.esm.js.map +1 -1
  728. package/loader/index.d.ts +1 -1
  729. package/package.json +11 -8
  730. package/dist/cjs/event-listeners-b835dfae.js.map +0 -1
  731. package/dist/cjs/execution-control-45c84c46.js.map +0 -1
  732. package/dist/cjs/focus-visible-e0d93a95.js.map +0 -1
  733. package/dist/cjs/form-8cbd4e0e.js.map +0 -1
  734. package/dist/cjs/form-control-8df00a52.js.map +0 -1
  735. package/dist/cjs/index-2f6daa5b.js.map +0 -1
  736. package/dist/cjs/modal-21350fb5.js.map +0 -1
  737. package/dist/cjs/popover-8885d50f.js.map +0 -1
  738. package/dist/cjs/popup-44836aaf.js.map +0 -1
  739. package/dist/cjs/scroll-76e6f5d7.js.map +0 -1
  740. package/dist/cjs/slot-bccbdb59.js.map +0 -1
  741. package/dist/cjs/types-64878648.js.map +0 -1
  742. package/dist/esm/event-listeners-535f3ad1.js.map +0 -1
  743. package/dist/esm/execution-control-72cc50f4.js.map +0 -1
  744. package/dist/esm/focus-visible-fa7129a0.js.map +0 -1
  745. package/dist/esm/form-control-785c5f79.js.map +0 -1
  746. package/dist/esm/index-5c0f6628.js.map +0 -1
  747. package/dist/esm/modal-b1d96441.js.map +0 -1
  748. package/dist/esm/polyfills/css-shim.js +0 -1
  749. package/dist/esm/popup-678b8592.js.map +0 -1
  750. package/dist/esm/slot-2e64df19.js.map +0 -1
  751. package/dist/esm/types-4b10b413.js.map +0 -1
  752. package/dist/ui-library/p-0045a402.entry.js +0 -2
  753. package/dist/ui-library/p-0045a402.entry.js.map +0 -1
  754. package/dist/ui-library/p-0108fe92.entry.js +0 -2
  755. package/dist/ui-library/p-0108fe92.entry.js.map +0 -1
  756. package/dist/ui-library/p-03a145f5.entry.js.map +0 -1
  757. package/dist/ui-library/p-087fdd96.entry.js +0 -2
  758. package/dist/ui-library/p-087fdd96.entry.js.map +0 -1
  759. package/dist/ui-library/p-09779e47.entry.js.map +0 -1
  760. package/dist/ui-library/p-097cced4.entry.js.map +0 -1
  761. package/dist/ui-library/p-0b2c6348.js.map +0 -1
  762. package/dist/ui-library/p-0cc08e91.js.map +0 -1
  763. package/dist/ui-library/p-0fe78f9b.js.map +0 -1
  764. package/dist/ui-library/p-21859bca.entry.js.map +0 -1
  765. package/dist/ui-library/p-25a3bf57.js.map +0 -1
  766. package/dist/ui-library/p-2761f908.js +0 -2
  767. package/dist/ui-library/p-2761f908.js.map +0 -1
  768. package/dist/ui-library/p-28be55f0.entry.js.map +0 -1
  769. package/dist/ui-library/p-3929b0af.entry.js.map +0 -1
  770. package/dist/ui-library/p-445ba5b8.entry.js.map +0 -1
  771. package/dist/ui-library/p-4d408fb4.js.map +0 -1
  772. package/dist/ui-library/p-502ff3d3.entry.js.map +0 -1
  773. package/dist/ui-library/p-5a34c93e.entry.js.map +0 -1
  774. package/dist/ui-library/p-60621dc6.js.map +0 -1
  775. package/dist/ui-library/p-63703ba3.entry.js.map +0 -1
  776. package/dist/ui-library/p-66180e89.entry.js.map +0 -1
  777. package/dist/ui-library/p-686b12ec.entry.js.map +0 -1
  778. package/dist/ui-library/p-6d75f216.entry.js.map +0 -1
  779. package/dist/ui-library/p-71035abf.entry.js +0 -2
  780. package/dist/ui-library/p-71035abf.entry.js.map +0 -1
  781. package/dist/ui-library/p-724e154d.entry.js +0 -2
  782. package/dist/ui-library/p-724e154d.entry.js.map +0 -1
  783. package/dist/ui-library/p-72ca96e1.entry.js.map +0 -1
  784. package/dist/ui-library/p-73597d13.entry.js.map +0 -1
  785. package/dist/ui-library/p-778cf804.entry.js +0 -2
  786. package/dist/ui-library/p-778cf804.entry.js.map +0 -1
  787. package/dist/ui-library/p-820c23f0.entry.js.map +0 -1
  788. package/dist/ui-library/p-87032e26.entry.js +0 -2
  789. package/dist/ui-library/p-87032e26.entry.js.map +0 -1
  790. package/dist/ui-library/p-8cf72af6.js.map +0 -1
  791. package/dist/ui-library/p-8e0b6b7e.entry.js.map +0 -1
  792. package/dist/ui-library/p-912092c0.entry.js.map +0 -1
  793. package/dist/ui-library/p-92ca6a84.entry.js +0 -2
  794. package/dist/ui-library/p-92ca6a84.entry.js.map +0 -1
  795. package/dist/ui-library/p-9337cdd6.entry.js +0 -2
  796. package/dist/ui-library/p-9337cdd6.entry.js.map +0 -1
  797. package/dist/ui-library/p-9461417e.entry.js.map +0 -1
  798. package/dist/ui-library/p-97323ad7.entry.js.map +0 -1
  799. package/dist/ui-library/p-a1d4f6cf.entry.js.map +0 -1
  800. package/dist/ui-library/p-a844cb72.entry.js +0 -2
  801. package/dist/ui-library/p-a844cb72.entry.js.map +0 -1
  802. package/dist/ui-library/p-ac4f4d45.js +0 -3
  803. package/dist/ui-library/p-ac4f4d45.js.map +0 -1
  804. package/dist/ui-library/p-afcbe9da.entry.js.map +0 -1
  805. package/dist/ui-library/p-b2bf4ac8.entry.js +0 -2
  806. package/dist/ui-library/p-b2bf4ac8.entry.js.map +0 -1
  807. package/dist/ui-library/p-b3bff992.entry.js +0 -2
  808. package/dist/ui-library/p-b3bff992.entry.js.map +0 -1
  809. package/dist/ui-library/p-b4547fb5.entry.js +0 -2
  810. package/dist/ui-library/p-b4547fb5.entry.js.map +0 -1
  811. package/dist/ui-library/p-ba74863a.js.map +0 -1
  812. package/dist/ui-library/p-baa03951.entry.js.map +0 -1
  813. package/dist/ui-library/p-bd8f8eef.entry.js.map +0 -1
  814. package/dist/ui-library/p-c57f16af.entry.js +0 -2
  815. package/dist/ui-library/p-c57f16af.entry.js.map +0 -1
  816. package/dist/ui-library/p-c5cdba08.entry.js +0 -2
  817. package/dist/ui-library/p-c5cdba08.entry.js.map +0 -1
  818. package/dist/ui-library/p-c87810b0.entry.js +0 -2
  819. package/dist/ui-library/p-c87810b0.entry.js.map +0 -1
  820. package/dist/ui-library/p-cdcde4cd.entry.js.map +0 -1
  821. package/dist/ui-library/p-d6798d35.entry.js.map +0 -1
  822. package/dist/ui-library/p-d87a6f4d.js.map +0 -1
  823. package/dist/ui-library/p-dc3f5996.entry.js +0 -2
  824. package/dist/ui-library/p-dc3f5996.entry.js.map +0 -1
  825. package/dist/ui-library/p-dcd7c547.entry.js.map +0 -1
  826. package/dist/ui-library/p-dd3c76f1.entry.js.map +0 -1
  827. package/dist/ui-library/p-e07b3f0c.entry.js +0 -2
  828. package/dist/ui-library/p-e07b3f0c.entry.js.map +0 -1
  829. package/dist/ui-library/p-e19a6c95.entry.js.map +0 -1
  830. package/dist/ui-library/p-e8feb81f.entry.js.map +0 -1
  831. package/dist/ui-library/p-eb8f05a9.js.map +0 -1
  832. package/dist/ui-library/p-ef3936e5.entry.js.map +0 -1
  833. package/dist/ui-library/p-f0dd77e1.entry.js.map +0 -1
  834. package/readme.md +0 -156
@@ -1 +1 @@
1
- {"version":3,"file":"six-tile.js","sourceRoot":"","sources":["../../../src/components/six-tile/six-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhG,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AAOH,MAAM,OAAO,OAAO;;IAoDV,qBAAgB,GAAG,GAAG,EAAE;MAC9B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;MAC9C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,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I,YAAM,IAAI,EAAC,OAAO,GAAQ,CAC5C,CACF,CACM,CACf,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUF;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE;EACrC,OAAO;IACL,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;GAChB,CAAC,IAAI,CAAwB,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;EAChC,OAAO;IACL,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,UAAU;GAClB,CAAC,IAAI,CAAsC,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot, hasSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n */\n\n@Component({\n tag: 'six-tile',\n styleUrl: 'six-tile.scss',\n shadow: true,\n})\nexport class SixTile {\n @Element() host!: HTMLSixTileElement;\n\n /** The tile's label. */\n @Prop() label = '';\n\n /** The icon's name. */\n @Prop() iconName?: string;\n\n /** Flag, whether the tile is closeable. */\n @Prop() closeable = true;\n\n /** Flag, whether the tile should cast a shadow. */\n @Prop() elevated = false;\n\n /** Enables tile tooltip for tiles */\n @Prop() disableTooltip = true;\n\n /** Set to true to disable the tile. */\n @Prop({ reflect: true }) disabled = false;\n\n /** The tile's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n @State() visible = true;\n\n /** Emitted when the tile was closed. */\n @Event({ eventName: 'six-tile-closed' }) sixTileClose!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the tile is selected. */\n @Event({ eventName: 'six-tile-selected' }) sixTileSelected!: EventEmitter<EmptyPayload>;\n\n /** Hides the tile */\n @Method()\n async hide() {\n this.visible = false;\n }\n\n /** Shows the tile */\n @Method()\n async show() {\n this.visible = true;\n }\n\n @State() hasIconSlot = false;\n\n @State() hasLabelSlot = false;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n private handleSlotChange = () => {\n this.hasIconSlot = hasSlot(this.host, 'icon');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n\n if (this.hasIconSlot) {\n const slot = getSlot(this.host, 'icon');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n\n if (this.hasLabelSlot) {\n const slot = getSlot(this.host, 'label');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n };\n\n render() {\n return (\n <six-tooltip disabled={this.disableTooltip || this.label === ''} content={this.label}>\n <div\n part=\"base\"\n class={{\n tile: true,\n 'tile--visible': this.visible,\n 'tile--small': this.size === 'small',\n 'tile--medium': this.size === 'medium',\n 'tile--large': this.size === 'large',\n 'tile--elevated': this.elevated,\n }}\n >\n <div part=\"header\" class=\"tile__header\">\n <six-icon-button\n class={{\n 'tile__header--hidden': !this.closeable,\n }}\n name=\"close\"\n size={closeIconSize(this.size)}\n onClick={this.handleCloseClickEvent}\n />\n </div>\n\n <div part=\"body\" class=\"tile__body\">\n {this.iconName && (\n <six-icon onClick={this.handleClickEvent} size={iconSize(this.size)}>\n {this.iconName}\n </six-icon>\n )}\n {this.hasIconSlot && <slot name=\"icon\"></slot>}\n </div>\n\n <div\n part=\"footer\"\n class={{\n 'tile__footer--small': this.size === 'small',\n 'tile__footer--medium': this.size === 'medium',\n 'tile__footer--large': this.size === 'large',\n }}\n >\n {this.label && (\n <div\n class={{\n '.label__footer': true,\n }}\n onClick={this.handleClickEvent}\n >\n {this.label}\n </div>\n )}\n {this.hasLabelSlot && <slot name=\"label\"></slot>}\n </div>\n </div>\n </six-tooltip>\n );\n }\n\n private handleCloseClickEvent = () => {\n this.visible = false;\n this.sixTileClose.emit();\n };\n\n private handleClickEvent = () => {\n this.sixTileSelected.emit();\n };\n}\n\nconst closeIconSize = (size: string) => {\n return {\n small: 'xxSmall',\n medium: 'medium',\n large: 'medium',\n }[size] as 'xSmall' | 'medium';\n};\n\nconst iconSize = (size: string) => {\n return {\n small: 'xLarge',\n medium: 'xxLarge',\n large: 'xxxLarge',\n }[size] as 'xLarge' | 'xxLarge' | 'xxxLarge';\n};\n"]}
1
+ {"version":3,"file":"six-tile.js","sourceRoot":"","sources":["../../../src/components/six-tile/six-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhG,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AAOH,MAAM,OAAO,OAAO;;IAoDV,qBAAgB,GAAG,GAAG,EAAE;MAC9B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;MAC9C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;MAEhD,IAAI,IAAI,CAAC,WAAW,EAAE;QACpB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACxC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;OACxD;MAED,IAAI,IAAI,CAAC,YAAY,EAAE;QACrB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,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;;;;;;;;;;;;;;CAUF;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE;EACrC,OAAO;IACL,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;GAChB,CAAC,IAAI,CAAwB,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;EAChC,OAAO;IACL,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,UAAU;GAClB,CAAC,IAAI,CAAsC,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot, hasSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n */\n\n@Component({\n tag: 'six-tile',\n styleUrl: 'six-tile.scss',\n shadow: true,\n})\nexport class SixTile {\n @Element() host!: HTMLSixTileElement;\n\n /** The tile's label. */\n @Prop() label = '';\n\n /** The icon's name. */\n @Prop() iconName?: string;\n\n /** Flag, whether the tile is closeable. */\n @Prop() closeable = true;\n\n /** Flag, whether the tile should cast a shadow. */\n @Prop() elevated = false;\n\n /** Enables tile tooltip for tiles */\n @Prop() disableTooltip = true;\n\n /** Set to true to disable the tile. */\n @Prop({ reflect: true }) disabled = false;\n\n /** The tile's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n @State() visible = true;\n\n /** Emitted when the tile was closed. */\n @Event({ eventName: 'six-tile-closed' }) sixTileClose!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the tile is selected. */\n @Event({ eventName: 'six-tile-selected' }) sixTileSelected!: EventEmitter<EmptyPayload>;\n\n /** Hides the tile */\n @Method()\n async hide() {\n this.visible = false;\n }\n\n /** Shows the tile */\n @Method()\n async show() {\n this.visible = true;\n }\n\n @State() hasIconSlot = false;\n\n @State() hasLabelSlot = false;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n private handleSlotChange = () => {\n this.hasIconSlot = hasSlot(this.host, 'icon');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n\n if (this.hasIconSlot) {\n const slot = getSlot(this.host, 'icon');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n\n if (this.hasLabelSlot) {\n const slot = getSlot(this.host, 'label');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n };\n\n render() {\n return (\n <six-tooltip disabled={this.disableTooltip || this.label === ''} content={this.label}>\n <div\n part=\"base\"\n class={{\n tile: true,\n 'tile--visible': this.visible,\n 'tile--small': this.size === 'small',\n 'tile--medium': this.size === 'medium',\n 'tile--large': this.size === 'large',\n 'tile--elevated': this.elevated,\n }}\n >\n <div part=\"header\" class=\"tile__header\">\n <six-icon-button\n class={{\n 'tile__header--hidden': !this.closeable,\n }}\n name=\"close\"\n size={closeIconSize(this.size)}\n onClick={this.handleCloseClickEvent}\n />\n </div>\n\n <div part=\"body\" class=\"tile__body\">\n {this.iconName && (\n <six-icon onClick={this.handleClickEvent} size={iconSize(this.size)}>\n {this.iconName}\n </six-icon>\n )}\n {this.hasIconSlot && <slot name=\"icon\"></slot>}\n </div>\n\n <div\n part=\"footer\"\n class={{\n 'tile__footer--small': this.size === 'small',\n 'tile__footer--medium': this.size === 'medium',\n 'tile__footer--large': this.size === 'large',\n }}\n >\n {this.label && (\n <div\n class={{\n '.label__footer': true,\n }}\n onClick={this.handleClickEvent}\n >\n {this.label}\n </div>\n )}\n {this.hasLabelSlot && <slot name=\"label\"></slot>}\n </div>\n </div>\n </six-tooltip>\n );\n }\n\n private handleCloseClickEvent = () => {\n this.visible = false;\n this.sixTileClose.emit();\n };\n\n private handleClickEvent = () => {\n this.sixTileSelected.emit();\n };\n}\n\nconst closeIconSize = (size: string) => {\n return {\n small: 'xxSmall',\n medium: 'medium',\n large: 'medium',\n }[size] as 'xSmall' | 'medium';\n};\n\nconst iconSize = (size: string) => {\n return {\n small: 'xLarge',\n medium: 'xxLarge',\n large: 'xxxLarge',\n }[size] as 'xLarge' | 'xxLarge' | 'xxxLarge';\n};\n"]}
@@ -0,0 +1,69 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { SixTile } from "../six-tile";
3
+ describe('six-tile', () => {
4
+ it('renders six-tile with props', async () => {
5
+ const page = await newSpecPage({
6
+ components: [SixTile],
7
+ html: `<six-tile label="Medium" icon-name="home"></six-tile>`,
8
+ });
9
+ expect(page.root).toEqualHtml(`
10
+ <six-tile label="Medium" icon-name="home" size="medium">
11
+ <mock:shadow-root>
12
+ <six-tooltip disabled="" content="Medium">
13
+ <div class="tile tile--medium tile--visible" part="base">
14
+ <div class="tile__header" part="header">
15
+ <six-icon-button name="close" size="medium"></six-icon-button>
16
+ </div>
17
+ <div class="tile__body" part="body">
18
+ <six-icon size="xxLarge">
19
+ home
20
+ </six-icon>
21
+ </div>
22
+ <div class="tile__footer--medium" part="footer">
23
+ <div class=".label__footer">
24
+ Medium
25
+ </div>
26
+ </div>
27
+ </div>
28
+ </six-tooltip>
29
+ </mock:shadow-root>
30
+ </six-tile>
31
+ `);
32
+ });
33
+ it('renders six-tile with slot', async () => {
34
+ const page = await newSpecPage({
35
+ components: [SixTile],
36
+ html: `
37
+ <six-tile>
38
+ <six-icon slot="icon">delete</six-icon>
39
+ <div slot="label">short label</div>
40
+ </six-tile>`,
41
+ });
42
+ expect(page.root).toEqualHtml(`
43
+ <six-tile size="medium">
44
+ <mock:shadow-root>
45
+ <six-tooltip content="" disabled="">
46
+ <div class="tile tile--medium tile--visible" part="base">
47
+ <div class="tile__header" part="header">
48
+ <six-icon-button name="close" size="medium"></six-icon-button>
49
+ </div>
50
+ <div class="tile__body" part="body">
51
+ <slot name="icon"></slot>
52
+ </div>
53
+ <div class="tile__footer--medium" part="footer">
54
+ <slot name="label"></slot>
55
+ </div>
56
+ </div>
57
+ </six-tooltip>
58
+ </mock:shadow-root>
59
+ <six-icon slot="icon">
60
+ delete
61
+ </six-icon>
62
+ <div slot="label">
63
+ short label
64
+ </div>
65
+ </six-tile>
66
+ `);
67
+ });
68
+ });
69
+ //# sourceMappingURL=six-tile.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"six-tile.spec.js","sourceRoot":"","sources":["../../../../src/components/six-tile/test/six-tile.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;IAC3C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,uDAAuD;KAC9D,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;KAsB7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;IAC1C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE;;;;kBAIM;KACb,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;KAwB7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { SixTile } from '../six-tile';\n\ndescribe('six-tile', () => {\n it('renders six-tile with props', async () => {\n const page = await newSpecPage({\n components: [SixTile],\n html: `<six-tile label=\"Medium\" icon-name=\"home\"></six-tile>`,\n });\n expect(page.root).toEqualHtml(`\n <six-tile label=\"Medium\" icon-name=\"home\" size=\"medium\">\n <mock:shadow-root>\n <six-tooltip disabled=\"\" content=\"Medium\">\n <div class=\"tile tile--medium tile--visible\" part=\"base\">\n <div class=\"tile__header\" part=\"header\">\n <six-icon-button name=\"close\" size=\"medium\"></six-icon-button>\n </div>\n <div class=\"tile__body\" part=\"body\">\n <six-icon size=\"xxLarge\">\n home\n </six-icon>\n </div>\n <div class=\"tile__footer--medium\" part=\"footer\">\n <div class=\".label__footer\">\n Medium\n </div>\n </div>\n </div>\n </six-tooltip>\n </mock:shadow-root>\n </six-tile>\n `);\n });\n\n it('renders six-tile with slot', async () => {\n const page = await newSpecPage({\n components: [SixTile],\n html: `\n <six-tile>\n <six-icon slot=\"icon\">delete</six-icon>\n <div slot=\"label\">short label</div>\n </six-tile>`,\n });\n expect(page.root).toEqualHtml(`\n <six-tile size=\"medium\">\n <mock:shadow-root>\n <six-tooltip content=\"\" disabled=\"\">\n <div class=\"tile tile--medium tile--visible\" part=\"base\">\n <div class=\"tile__header\" part=\"header\">\n <six-icon-button name=\"close\" size=\"medium\"></six-icon-button>\n </div>\n <div class=\"tile__body\" part=\"body\">\n <slot name=\"icon\"></slot>\n </div>\n <div class=\"tile__footer--medium\" part=\"footer\">\n <slot name=\"label\"></slot>\n </div>\n </div>\n </six-tooltip>\n </mock:shadow-root>\n <six-icon slot=\"icon\">\n delete\n </six-icon>\n <div slot=\"label\">\n short label\n </div>\n </six-tile>\n `);\n });\n});\n"]}
@@ -1,15 +1,17 @@
1
- import { h } from '@stencil/core';
2
- import { ItemPickerType } from '../six-item-picker/types';
3
- import { createTimeString, getCurrentTime, isValidTimeString, parseTimeString, } from '../../utils/time.util';
4
- import { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';
5
- import { EventListeners } from '../../utils/event-listeners';
6
- import { hasSlot } from '../../utils/slot';
7
- import { adjustPopupForHoisting, movePopup } from '../../utils/popup';
1
+ import { h } from "@stencil/core";
2
+ import { ItemPickerType } from "../six-item-picker/types";
3
+ import { createTimeString, getCurrentTime, isValidTimeString, parseTimeString, } from "../../utils/time.util";
4
+ import { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from "../../utils/execution-control";
5
+ import { EventListeners } from "../../utils/event-listeners";
6
+ import { hasSlot } from "../../utils/slot";
7
+ import { adjustPopupForHoisting, movePopup } from "../../utils/popup";
8
8
  const MIN_POPUP_HEIGHT = 145;
9
9
  /**
10
10
  * @since 2.0.0
11
11
  * @status experimental
12
12
  *
13
+ * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.
14
+ *
13
15
  * @part input - The input field
14
16
  * @part container - The container of whole component
15
17
  * @part popup - The popup of the timepicker component
@@ -67,6 +69,7 @@ export class SixTimepicker {
67
69
  this.required = false;
68
70
  this.placeholder = undefined;
69
71
  this.errorText = '';
72
+ this.errorTextCount = undefined;
70
73
  this.label = '';
71
74
  this.invalid = false;
72
75
  this.name = '';
@@ -95,11 +98,6 @@ export class SixTimepicker {
95
98
  valueChanged() {
96
99
  this.updateValue();
97
100
  }
98
- invalidChanged(invalid) {
99
- if (this.inputElement) {
100
- this.inputElement.invalid = invalid;
101
- }
102
- }
103
101
  /** Sets focus on the datepickers input. */
104
102
  async setFocus(options) {
105
103
  var _a;
@@ -287,10 +285,10 @@ export class SixTimepicker {
287
285
  } }, icon));
288
286
  }
289
287
  render() {
290
- return (h("div", { part: "container", ref: (el) => (this.wrapper = el), class: "timepicker__container" }, h("six-input", { ref: (el) => (this.inputElement = el), part: "input", onClick: () => this.openPopup(), value: this.value, placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, size: this.size, name: this.name, label: this.label, required: this.required, "error-text": this.errorText, class: {
288
+ return (h("div", { part: "container", ref: (el) => (this.wrapper = el), class: "timepicker__container" }, h("six-input", { ref: (el) => (this.inputElement = el), part: "input", onClick: () => this.openPopup(), value: this.value, placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, errorTextCount: this.errorTextCount, errorText: this.errorText, invalid: this.invalid, size: this.size, name: this.name, label: this.label, required: this.required, class: {
291
289
  'input--empty': this.value === '',
292
290
  'input--hide': this.inline,
293
- } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null), this.open && (h("div", { ref: (el) => (this.popup = el), part: "popup", class: {
291
+ } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null, hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null), this.open && (h("div", { ref: (el) => (this.popup = el), part: "popup", class: {
294
292
  timepicker__popup: true,
295
293
  'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,
296
294
  'timepicker__popup--is-inline': this.inline,
@@ -319,7 +317,8 @@ export class SixTimepicker {
319
317
  "references": {
320
318
  "TimeFormat": {
321
319
  "location": "import",
322
- "path": "../../utils/time.util"
320
+ "path": "../../utils/time.util",
321
+ "id": "src/utils/time.util.ts::TimeFormat"
323
322
  }
324
323
  }
325
324
  },
@@ -515,8 +514,8 @@ export class SixTimepicker {
515
514
  "type": "string",
516
515
  "mutable": false,
517
516
  "complexType": {
518
- "original": "string",
519
- "resolved": "string",
517
+ "original": "string | string[]",
518
+ "resolved": "string | string[]",
520
519
  "references": {}
521
520
  },
522
521
  "required": false,
@@ -529,6 +528,23 @@ export class SixTimepicker {
529
528
  "reflect": false,
530
529
  "defaultValue": "''"
531
530
  },
531
+ "errorTextCount": {
532
+ "type": "number",
533
+ "mutable": false,
534
+ "complexType": {
535
+ "original": "number",
536
+ "resolved": "number | undefined",
537
+ "references": {}
538
+ },
539
+ "required": false,
540
+ "optional": true,
541
+ "docs": {
542
+ "tags": [],
543
+ "text": "The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1"
544
+ },
545
+ "attribute": "error-text-count",
546
+ "reflect": false
547
+ },
532
548
  "label": {
533
549
  "type": "string",
534
550
  "mutable": false,
@@ -734,7 +750,8 @@ export class SixTimepicker {
734
750
  "references": {
735
751
  "SixTimepickerChange": {
736
752
  "location": "local",
737
- "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-timepicker/six-timepicker.tsx"
753
+ "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-timepicker/six-timepicker.tsx",
754
+ "id": "src/components/six-timepicker/six-timepicker.tsx::SixTimepickerChange"
738
755
  }
739
756
  }
740
757
  }
@@ -754,7 +771,8 @@ export class SixTimepicker {
754
771
  "references": {
755
772
  "SixTimepickerChange": {
756
773
  "location": "local",
757
- "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-timepicker/six-timepicker.tsx"
774
+ "path": "/home/runner/work/six-webcomponents/six-webcomponents/libraries/ui-library/src/components/six-timepicker/six-timepicker.tsx",
775
+ "id": "src/components/six-timepicker/six-timepicker.tsx::SixTimepickerChange"
758
776
  }
759
777
  }
760
778
  }
@@ -774,7 +792,8 @@ export class SixTimepicker {
774
792
  "references": {
775
793
  "EmptyPayload": {
776
794
  "location": "import",
777
- "path": "../../utils/types"
795
+ "path": "../../utils/types",
796
+ "id": "src/utils/types.ts::EmptyPayload"
778
797
  }
779
798
  }
780
799
  }
@@ -791,10 +810,12 @@ export class SixTimepicker {
791
810
  }],
792
811
  "references": {
793
812
  "Promise": {
794
- "location": "global"
813
+ "location": "global",
814
+ "id": "global::Promise"
795
815
  },
796
816
  "FocusOptions": {
797
- "location": "global"
817
+ "location": "global",
818
+ "id": "global::FocusOptions"
798
819
  }
799
820
  },
800
821
  "return": "Promise<void>"
@@ -811,9 +832,6 @@ export class SixTimepicker {
811
832
  return [{
812
833
  "propName": "value",
813
834
  "methodName": "valueChanged"
814
- }, {
815
- "propName": "invalid",
816
- "methodName": "invalidChanged"
817
835
  }];
818
836
  }
819
837
  static get listeners() {
@@ -1 +1 @@
1
- {"version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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerType } from '../six-item-picker/types';\nimport {\n createTimeString,\n getCurrentTime,\n isValidTimeString,\n parseTimeString,\n Time,\n TimeFormat,\n TimeProperties,\n} from '../../utils/time.util';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { SixItemPickerChangePayload } from '../six-item-picker/six-item-picker';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { adjustPopupForHoisting, movePopup } from '../../utils/popup';\n\nexport interface SixTimepickerChange {\n value?: Time;\n valueAsString: string;\n changedProperty?: string;\n}\n\ninterface SixTimeUnitPickerParams {\n min?: number;\n max?: number;\n items?: string[];\n type?: ItemPickerType;\n class?: string;\n paddingLength?: number;\n propertyName: TimeProperties;\n}\n\nconst MIN_POPUP_HEIGHT = 145;\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n * @part input - The input field\n * @part container - The container of whole component\n * @part popup - The popup of the timepicker component\n *\n */\n@Component({\n tag: 'six-timepicker',\n styleUrl: 'six-timepicker.scss',\n shadow: true,\n})\nexport class SixTimepicker {\n private eventListeners = new EventListeners();\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private inputElement?: HTMLSixInputElement;\n @Element() host!: HTMLSixTimepickerElement;\n\n /**\n * Define the time format. Valid formats are:\n *\n * HH:mm:ss\n * hh:mm:ss:aa\n * HH:mm:ss:ms\n * hh:mm:ss:ms:aa\n * HH:mm\n * hh:mm:aa\n * HH\n * hh:aa\n * mm\n * ss\n * ms\n *\n * where HH is the 24 hour format\n * and hh is the 12 hour format\n *\n * Please notice that when using the 12-hour-clock (hh)\n * you always need a period indicator (aa). So the time can be parsed as either am or pm\n * */\n @Prop() format: TimeFormat = 'HH:mm:ss';\n\n /**\n * Define the separator to be shown between the time unit pickers.\n * Please be aware that this property will modify the displayed separator only.\n * The separator for a timestring is always expected to be a colon (eg. '13:52:20')\n * */\n @Prop() separator = ':';\n\n /**\n * The value of the timepicker provided as a string. The string mast match the provided format (or default format)\n */\n @Prop({ mutable: true }) value = '';\n\n /** Indicates whether the timepicker dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether the timepicker should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a time via the timepicker but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Timepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /** The input's error text. Alternatively, you can use the error-text slot. */\n @Prop() errorText = '';\n\n /** The input's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between timeunits (e.g. hours).\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next timeunit (e.g. next hour) when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * The defaultTime defines the default setting for the timepicker when you open the popup. Default time must match the provided format.\n */\n @Prop() defaultTime?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-timepicker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Emitted when the timepicker's value changes\n */\n @Event({ eventName: 'six-timepicker-change' }) sixChange!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the timepicker's value changes, but debounced\n */\n @Event({ eventName: 'six-timepicker-change-debounced' }) sixChangeDebounced!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-timepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n @State() isPopupContentUp = false;\n\n @State() isDropDownContentUp = false;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n this.updateValue();\n }\n\n @Watch('invalid')\n protected invalidChanged(invalid: boolean) {\n if (this.inputElement) {\n this.inputElement.invalid = invalid;\n }\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n /*\n * Internally the six-timepicker uses a standardized representation of time, so we don't have a mess,\n * when switching between formats\n */\n @State() private popupValue: Time = {};\n\n connectedCallback() {\n this.eventListeners.forward('six-timepicker-change', 'change', this.host);\n }\n\n componentWillLoad() {\n this.updateValue();\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n componentDidLoad() {\n if (this.inputElement == null) return;\n const inputElement = this.inputElement;\n\n // emit debounced change event\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce((event: Event) => this.sixChangeDebounced.emit((event as CustomEvent).detail), this.debounce)\n );\n\n // update value and popup value based on input-element value\n this.eventListeners.add(\n inputElement,\n 'six-input-input',\n debounce((event: Event) => {\n event.stopPropagation();\n\n // emit empty event if time string is invalid\n if (!isValidTimeString(inputElement.value, this.format)) {\n this.value = inputElement.value;\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n return;\n }\n\n // update value and popup value, and emit the new value\n this.value = inputElement.value;\n this.popupValue = parseTimeString(inputElement.value, this.format);\n this.sixChange.emit({\n value: this.popupValue,\n valueAsString: createTimeString(this.popupValue, this.format),\n });\n }, this.debounce)\n );\n }\n\n componentDidRender() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n private updateValue() {\n // normalize value\n if (typeof this.value !== 'string' || !isValidTimeString(this.value, this.format)) {\n this.value = '';\n }\n\n // update popup value\n if (this.value === '') {\n if (this.defaultTime == null) {\n this.popupValue = getCurrentTime(this.is24HourClock());\n } else {\n this.popupValue = parseTimeString(this.defaultTime, this.format);\n }\n } else {\n this.popupValue = parseTimeString(this.value, this.format);\n }\n }\n\n private calcIsPopupContentUp() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isPopupContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private handlePickerChange = (event: CustomEvent<SixItemPickerChangePayload>, property: TimeProperties) => {\n // stop propagation, since the timepicker should not expose the events of the underlying item-picker\n event.stopPropagation();\n if (this.popupValue == null) {\n return;\n }\n\n // update the internal state\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.popupValue[property] = event.detail;\n\n const timeString = createTimeString(this.popupValue, this.format);\n\n // update the input value\n this.value = timeString;\n\n // emit change event\n this.sixChange.emit({\n changedProperty: property,\n value: this.popupValue,\n valueAsString: timeString,\n });\n };\n\n private getSixTimeUnitPicker(params: SixTimeUnitPickerParams) {\n return (\n <six-item-picker\n class={params.class}\n timeout={this.timeout}\n interval={this.interval}\n padded\n min={params.min}\n max={params.max}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n value={this.popupValue[params.propertyName]}\n items={params.items}\n type={params.type || ItemPickerType.NUMBER}\n padding-length={params.paddingLength}\n onSix-item-picker-change={(event) => this.handlePickerChange(event, params.propertyName)}\n ></six-item-picker>\n );\n }\n\n private getHour24Picker() {\n if (!this.is24HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 23, propertyName: 'hours' });\n }\n\n private is24HourClock() {\n return this.format.includes('HH');\n }\n\n private getHour12Picker() {\n if (!this.is12HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 11, propertyName: 'hours' });\n }\n\n private is12HourClock() {\n return this.format.includes('hh');\n }\n\n private getAmPmPicker() {\n if (!this.is12HourClock()) {\n return;\n }\n const items = ['AM', 'PM'];\n return this.getSixTimeUnitPicker({\n items,\n type: ItemPickerType.CUSTOM,\n propertyName: 'period',\n });\n }\n\n private getMinutePicker() {\n if (!this.format.includes('mm')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'minutes' });\n }\n\n private getSecondsPicker() {\n if (!this.format.includes('ss')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'seconds' });\n }\n\n private getMillisecondsPicker() {\n if (!this.format.includes('ms')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({\n min: 0,\n max: 999,\n class: 'timepicker__item--wide',\n paddingLength: 3,\n propertyName: 'milliseconds',\n });\n }\n\n private getSeparator() {\n return (\n <div class=\"timepicker__separator\">\n <span>{this.separator}</span>\n </div>\n );\n }\n\n private getContent() {\n const elementsInOrder = [\n this.getHour24Picker(),\n this.getHour12Picker(),\n this.getMinutePicker(),\n this.getSecondsPicker(),\n this.getMillisecondsPicker(),\n ];\n\n const visibleElements = elementsInOrder.filter((el) => el !== undefined);\n\n return visibleElements.map((el, idx) => {\n if (idx === visibleElements.length - 1) {\n return [el];\n }\n\n return [el, this.getSeparator()];\n });\n }\n\n private openPopup() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.host)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.value = '';\n this.sixClear.emit();\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n };\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n timepicker_clear: true,\n 'timepicker_clear--right': this.iconPosition === 'left',\n 'timepicker_clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>watch_later</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n render() {\n return (\n <div part=\"container\" ref={(el) => (this.wrapper = el)} class=\"timepicker__container\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n part=\"input\"\n onClick={() => this.openPopup()}\n value={this.value}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n size={this.size}\n name={this.name}\n label={this.label}\n required={this.required}\n error-text={this.errorText}\n class={{\n 'input--empty': this.value === '',\n 'input--hide': this.inline,\n }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n ref={(el) => (this.popup = el)}\n part=\"popup\"\n class={{\n timepicker__popup: true,\n 'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-timepicker.js","sourceRoot":"","sources":["../../../src/components/six-timepicker/six-timepicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerType } from '../six-item-picker/types';\nimport {\n createTimeString,\n getCurrentTime,\n isValidTimeString,\n parseTimeString,\n Time,\n TimeFormat,\n TimeProperties,\n} from '../../utils/time.util';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { SixItemPickerChangePayload } from '../six-item-picker/six-item-picker';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { adjustPopupForHoisting, movePopup } from '../../utils/popup';\n\nexport interface SixTimepickerChange {\n value?: Time;\n valueAsString: string;\n changedProperty?: string;\n}\n\ninterface SixTimeUnitPickerParams {\n min?: number;\n max?: number;\n items?: string[];\n type?: ItemPickerType;\n class?: string;\n paddingLength?: number;\n propertyName: TimeProperties;\n}\n\nconst MIN_POPUP_HEIGHT = 145;\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part input - The input field\n * @part container - The container of whole component\n * @part popup - The popup of the timepicker component\n *\n */\n@Component({\n tag: 'six-timepicker',\n styleUrl: 'six-timepicker.scss',\n shadow: true,\n})\nexport class SixTimepicker {\n private eventListeners = new EventListeners();\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private inputElement?: HTMLSixInputElement;\n\n @Element() host!: HTMLSixTimepickerElement;\n\n /**\n * Define the time format. Valid formats are:\n *\n * HH:mm:ss\n * hh:mm:ss:aa\n * HH:mm:ss:ms\n * hh:mm:ss:ms:aa\n * HH:mm\n * hh:mm:aa\n * HH\n * hh:aa\n * mm\n * ss\n * ms\n *\n * where HH is the 24 hour format\n * and hh is the 12 hour format\n *\n * Please notice that when using the 12-hour-clock (hh)\n * you always need a period indicator (aa). So the time can be parsed as either am or pm\n * */\n @Prop() format: TimeFormat = 'HH:mm:ss';\n\n /**\n * Define the separator to be shown between the time unit pickers.\n * Please be aware that this property will modify the displayed separator only.\n * The separator for a timestring is always expected to be a colon (eg. '13:52:20')\n * */\n @Prop() separator = ':';\n\n /**\n * The value of the timepicker provided as a string. The string mast match the provided format (or default format)\n */\n @Prop({ mutable: true }) value = '';\n\n /** Indicates whether the timepicker dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether the timepicker should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a time via the timepicker but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Timepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /** The input's error text. Alternatively, you can use the error-text slot. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** The input's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between timeunits (e.g. hours).\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next timeunit (e.g. next hour) when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * The defaultTime defines the default setting for the timepicker when you open the popup. Default time must match the provided format.\n */\n @Prop() defaultTime?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-timepicker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Emitted when the timepicker's value changes\n */\n @Event({ eventName: 'six-timepicker-change' }) sixChange!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the timepicker's value changes, but debounced\n */\n @Event({ eventName: 'six-timepicker-change-debounced' }) sixChangeDebounced!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-timepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n @State() isPopupContentUp = false;\n\n @State() isDropDownContentUp = false;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n this.updateValue();\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n /*\n * Internally the six-timepicker uses a standardized representation of time, so we don't have a mess,\n * when switching between formats\n */\n @State() private popupValue: Time = {};\n\n connectedCallback() {\n this.eventListeners.forward('six-timepicker-change', 'change', this.host);\n }\n\n componentWillLoad() {\n this.updateValue();\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n componentDidLoad() {\n if (this.inputElement == null) return;\n const inputElement = this.inputElement;\n\n // emit debounced change event\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce((event: Event) => this.sixChangeDebounced.emit((event as CustomEvent).detail), this.debounce)\n );\n\n // update value and popup value based on input-element value\n this.eventListeners.add(\n inputElement,\n 'six-input-input',\n debounce((event: Event) => {\n event.stopPropagation();\n\n // emit empty event if time string is invalid\n if (!isValidTimeString(inputElement.value, this.format)) {\n this.value = inputElement.value;\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n return;\n }\n\n // update value and popup value, and emit the new value\n this.value = inputElement.value;\n this.popupValue = parseTimeString(inputElement.value, this.format);\n this.sixChange.emit({\n value: this.popupValue,\n valueAsString: createTimeString(this.popupValue, this.format),\n });\n }, this.debounce)\n );\n }\n\n componentDidRender() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n private updateValue() {\n // normalize value\n if (typeof this.value !== 'string' || !isValidTimeString(this.value, this.format)) {\n this.value = '';\n }\n\n // update popup value\n if (this.value === '') {\n if (this.defaultTime == null) {\n this.popupValue = getCurrentTime(this.is24HourClock());\n } else {\n this.popupValue = parseTimeString(this.defaultTime, this.format);\n }\n } else {\n this.popupValue = parseTimeString(this.value, this.format);\n }\n }\n\n private calcIsPopupContentUp() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isPopupContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private handlePickerChange = (event: CustomEvent<SixItemPickerChangePayload>, property: TimeProperties) => {\n // stop propagation, since the timepicker should not expose the events of the underlying item-picker\n event.stopPropagation();\n if (this.popupValue == null) {\n return;\n }\n\n // update the internal state\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.popupValue[property] = event.detail;\n\n const timeString = createTimeString(this.popupValue, this.format);\n\n // update the input value\n this.value = timeString;\n\n // emit change event\n this.sixChange.emit({\n changedProperty: property,\n value: this.popupValue,\n valueAsString: timeString,\n });\n };\n\n private getSixTimeUnitPicker(params: SixTimeUnitPickerParams) {\n return (\n <six-item-picker\n class={params.class}\n timeout={this.timeout}\n interval={this.interval}\n padded\n min={params.min}\n max={params.max}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n value={this.popupValue[params.propertyName]}\n items={params.items}\n type={params.type || ItemPickerType.NUMBER}\n padding-length={params.paddingLength}\n onSix-item-picker-change={(event) => this.handlePickerChange(event, params.propertyName)}\n ></six-item-picker>\n );\n }\n\n private getHour24Picker() {\n if (!this.is24HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 23, propertyName: 'hours' });\n }\n\n private is24HourClock() {\n return this.format.includes('HH');\n }\n\n private getHour12Picker() {\n if (!this.is12HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 11, propertyName: 'hours' });\n }\n\n private is12HourClock() {\n return this.format.includes('hh');\n }\n\n private getAmPmPicker() {\n if (!this.is12HourClock()) {\n return;\n }\n const items = ['AM', 'PM'];\n return this.getSixTimeUnitPicker({\n items,\n type: ItemPickerType.CUSTOM,\n propertyName: 'period',\n });\n }\n\n private getMinutePicker() {\n if (!this.format.includes('mm')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'minutes' });\n }\n\n private getSecondsPicker() {\n if (!this.format.includes('ss')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'seconds' });\n }\n\n private getMillisecondsPicker() {\n if (!this.format.includes('ms')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({\n min: 0,\n max: 999,\n class: 'timepicker__item--wide',\n paddingLength: 3,\n propertyName: 'milliseconds',\n });\n }\n\n private getSeparator() {\n return (\n <div class=\"timepicker__separator\">\n <span>{this.separator}</span>\n </div>\n );\n }\n\n private getContent() {\n const elementsInOrder = [\n this.getHour24Picker(),\n this.getHour12Picker(),\n this.getMinutePicker(),\n this.getSecondsPicker(),\n this.getMillisecondsPicker(),\n ];\n\n const visibleElements = elementsInOrder.filter((el) => el !== undefined);\n\n return visibleElements.map((el, idx) => {\n if (idx === visibleElements.length - 1) {\n return [el];\n }\n\n return [el, this.getSeparator()];\n });\n }\n\n private openPopup() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.host)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.value = '';\n this.sixClear.emit();\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n };\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n timepicker_clear: true,\n 'timepicker_clear--right': this.iconPosition === 'left',\n 'timepicker_clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>watch_later</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n render() {\n return (\n <div part=\"container\" ref={(el) => (this.wrapper = el)} class=\"timepicker__container\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n part=\"input\"\n onClick={() => this.openPopup()}\n value={this.value}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n errorTextCount={this.errorTextCount}\n errorText={this.errorText}\n invalid={this.invalid}\n size={this.size}\n name={this.name}\n label={this.label}\n required={this.required}\n class={{\n 'input--empty': this.value === '',\n 'input--hide': this.inline,\n }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\" />\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n ref={(el) => (this.popup = el)}\n part=\"popup\"\n class={{\n timepicker__popup: true,\n 'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"]}