@six-group/ui-library 0.0.0-insider.afba913 → 0.0.0-insider.b0fd8e9

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 (632) hide show
  1. package/dist/cjs/animation-ZgWV0fC6.js +54 -0
  2. package/dist/cjs/animation-ZgWV0fC6.js.map +1 -0
  3. package/dist/cjs/{form-control-Ditp8yHw.js → form-control-CX8QRq9v.js} +3 -3
  4. package/dist/cjs/{form-control-Ditp8yHw.js.map → form-control-CX8QRq9v.js.map} +1 -1
  5. package/dist/cjs/icon-4irykc7V.js +17 -0
  6. package/dist/cjs/icon-4irykc7V.js.map +1 -0
  7. package/dist/cjs/{index-BKTrCUjx.js → index-C8rK7OAe.js} +19 -11
  8. package/dist/{esm/index-D0Go1Zjj.js.map → cjs/index-C8rK7OAe.js.map} +1 -1
  9. package/dist/cjs/index.cjs.js +3 -0
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/six-alert.cjs.entry.js +1 -1
  13. package/dist/cjs/six-avatar.cjs.entry.js +3 -3
  14. package/dist/cjs/six-badge.cjs.entry.js +3 -3
  15. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js +25 -0
  16. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js.map +1 -0
  17. package/dist/cjs/six-breadcrumbs-item.entry.cjs.js.map +1 -0
  18. package/dist/cjs/six-breadcrumbs.cjs.entry.js +73 -0
  19. package/dist/cjs/six-breadcrumbs.cjs.entry.js.map +1 -0
  20. package/dist/cjs/six-breadcrumbs.entry.cjs.js.map +1 -0
  21. package/dist/cjs/six-button.six-spinner.entry.cjs.js.map +1 -0
  22. package/dist/cjs/{six-button.cjs.entry.js → six-button_2.cjs.entry.js} +56 -5
  23. package/dist/cjs/six-button_2.cjs.entry.js.map +1 -0
  24. package/dist/cjs/six-card.cjs.entry.js +2 -2
  25. package/dist/cjs/six-checkbox_2.cjs.entry.js +6 -6
  26. package/dist/cjs/six-date.cjs.entry.js +59 -52
  27. package/dist/cjs/six-date.cjs.entry.js.map +1 -1
  28. package/dist/cjs/six-date.entry.cjs.js.map +1 -1
  29. package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
  30. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-datepicker.entry.cjs.js.map +1 -1
  32. package/dist/cjs/six-details.cjs.entry.js +4 -4
  33. package/dist/cjs/six-dialog.cjs.entry.js +16 -10
  34. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-dialog.entry.cjs.js.map +1 -1
  36. package/dist/cjs/six-drawer.cjs.entry.js +16 -10
  37. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  38. package/dist/cjs/six-drawer.entry.cjs.js.map +1 -1
  39. package/dist/cjs/six-dropdown.six-menu.entry.cjs.js.map +1 -1
  40. package/dist/cjs/six-dropdown_2.cjs.entry.js +9 -9
  41. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/six-error-page.cjs.entry.js +2 -2
  43. package/dist/cjs/six-error.cjs.entry.js +2 -2
  44. package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
  45. package/dist/cjs/six-file-list.cjs.entry.js +2 -2
  46. package/dist/cjs/six-file-upload.cjs.entry.js +13 -8
  47. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-file-upload.entry.cjs.js.map +1 -1
  49. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  50. package/dist/cjs/six-group-label.cjs.entry.js +3 -3
  51. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +3 -3
  52. package/dist/cjs/six-header-item.cjs.entry.js +2 -2
  53. package/dist/cjs/six-header-menu-button.cjs.entry.js +2 -2
  54. package/dist/cjs/six-header.cjs.entry.js +3 -3
  55. package/dist/cjs/six-icon-button.cjs.entry.js +4 -4
  56. package/dist/cjs/six-icon.cjs.entry.js +16 -7
  57. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  58. package/dist/cjs/six-icon.entry.cjs.js.map +1 -1
  59. package/dist/cjs/six-input.cjs.entry.js +5 -5
  60. package/dist/cjs/six-item-picker.cjs.entry.js +1 -1
  61. package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
  62. package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
  63. package/dist/cjs/six-logo.cjs.entry.js +1 -1
  64. package/dist/cjs/six-main-container.cjs.entry.js +2 -2
  65. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  66. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  67. package/dist/cjs/six-picto.cjs.entry.js +2 -2
  68. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  69. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  70. package/dist/cjs/six-radio.cjs.entry.js +3 -3
  71. package/dist/cjs/six-range.cjs.entry.js +4 -4
  72. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-range.entry.cjs.js.map +1 -1
  74. package/dist/cjs/six-rating.cjs.entry.js +126 -0
  75. package/dist/cjs/six-rating.cjs.entry.js.map +1 -0
  76. package/dist/cjs/six-rating.entry.cjs.js.map +1 -0
  77. package/dist/cjs/six-root.cjs.entry.js +2 -2
  78. package/dist/cjs/six-search-field.cjs.entry.js +2 -2
  79. package/dist/cjs/six-select.cjs.entry.js +8 -8
  80. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +1 -1
  81. package/dist/cjs/six-sidebar-item.cjs.entry.js +3 -3
  82. package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
  83. package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
  84. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  85. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  86. package/dist/cjs/six-switch.entry.cjs.js.map +1 -1
  87. package/dist/cjs/six-tab-group.cjs.entry.js +5 -38
  88. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-tab-group.entry.cjs.js.map +1 -1
  90. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  91. package/dist/cjs/six-tab.cjs.entry.js +4 -4
  92. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-tab.entry.cjs.js.map +1 -1
  94. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  95. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  96. package/dist/cjs/six-tile.cjs.entry.js +6 -6
  97. package/dist/cjs/six-timepicker.cjs.entry.js +19 -11
  98. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-timepicker.entry.cjs.js.map +1 -1
  100. package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
  101. package/dist/cjs/ui-library.cjs.js +3 -3
  102. package/dist/cjs/ui-library.cjs.js.map +1 -1
  103. package/dist/collection/collection-manifest.json +6 -3
  104. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  105. package/dist/collection/components/six-badge/six-badge.js +2 -2
  106. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.css +27 -0
  107. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js +109 -0
  108. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js.map +1 -0
  109. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.css +61 -0
  110. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js +123 -0
  111. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js.map +1 -0
  112. package/dist/collection/components/six-button/six-button.js +2 -2
  113. package/dist/collection/components/six-card/six-card.js +1 -1
  114. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  115. package/dist/collection/components/six-date/iso-date.js +34 -2
  116. package/dist/collection/components/six-date/iso-date.js.map +1 -1
  117. package/dist/collection/components/six-date/six-date.js +28 -73
  118. package/dist/collection/components/six-date/six-date.js.map +1 -1
  119. package/dist/collection/components/six-datepicker/six-datepicker.js +4 -4
  120. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  121. package/dist/collection/components/six-details/six-details.js +3 -3
  122. package/dist/collection/components/six-dialog/six-dialog.js +23 -17
  123. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  124. package/dist/collection/components/six-drawer/six-drawer.js +23 -17
  125. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  126. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  127. package/dist/collection/components/six-error/six-error.js +1 -1
  128. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  129. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  130. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  131. package/dist/collection/components/six-file-upload/six-file-upload.js +12 -7
  132. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  133. package/dist/collection/components/six-footer/six-footer.js +1 -1
  134. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  135. package/dist/collection/components/six-header/six-header.js +2 -2
  136. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +2 -2
  137. package/dist/collection/components/six-header-item/six-header-item.js +1 -1
  138. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +1 -1
  139. package/dist/collection/components/six-icon/six-icon.css +46 -29
  140. package/dist/collection/components/six-icon/six-icon.js +39 -5
  141. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  142. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  143. package/dist/collection/components/six-input/six-input.js +3 -3
  144. package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
  145. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  146. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  147. package/dist/collection/components/six-menu/six-menu.js +3 -3
  148. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  149. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  150. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  151. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  152. package/dist/collection/components/six-picto/six-picto.js +1 -1
  153. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  154. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  155. package/dist/collection/components/six-radio/six-radio.js +2 -2
  156. package/dist/collection/components/six-range/six-range.js +2 -2
  157. package/dist/collection/components/six-rating/six-rating.css +125 -0
  158. package/dist/collection/components/six-rating/six-rating.js +432 -0
  159. package/dist/collection/components/six-rating/six-rating.js.map +1 -0
  160. package/dist/collection/components/six-root/six-root.js +1 -1
  161. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  162. package/dist/collection/components/six-select/six-select.js +6 -6
  163. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  164. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  165. package/dist/collection/components/six-switch/six-switch.js +2 -2
  166. package/dist/collection/components/six-tab/six-tab.css +12 -0
  167. package/dist/collection/components/six-tab/six-tab.js +2 -2
  168. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  169. package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
  170. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  171. package/dist/collection/components/six-tag/six-tag.js +2 -2
  172. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  173. package/dist/collection/components/six-tile/six-tile.js +5 -5
  174. package/dist/collection/components/six-timepicker/six-timepicker.js +18 -10
  175. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  176. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  177. package/dist/collection/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  178. package/dist/collection/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  179. package/dist/collection/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  180. package/dist/collection/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  181. package/dist/collection/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  182. package/dist/collection/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  183. package/dist/collection/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  184. package/dist/collection/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  185. package/dist/collection/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  186. package/dist/collection/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  187. package/dist/collection/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  188. package/dist/collection/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  189. package/dist/collection/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  190. package/dist/collection/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  191. package/dist/collection/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  192. package/dist/collection/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  193. package/dist/collection/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  194. package/dist/collection/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  195. package/dist/collection/index.js +1 -0
  196. package/dist/collection/index.js.map +1 -1
  197. package/dist/collection/utils/animation.js +13 -0
  198. package/dist/collection/utils/animation.js.map +1 -1
  199. package/dist/collection/utils/icon.js +10 -0
  200. package/dist/collection/utils/icon.js.map +1 -0
  201. package/dist/components/index.js +8 -1
  202. package/dist/components/index.js.map +1 -1
  203. package/dist/components/{p-DV46ui1Q.js → p-BB2rei7y.js} +3 -3
  204. package/dist/components/{p-DV46ui1Q.js.map → p-BB2rei7y.js.map} +1 -1
  205. package/dist/components/{p-Cemjz04k.js → p-BDCdPEjW.js} +6 -6
  206. package/dist/components/p-BDCdPEjW.js.map +1 -0
  207. package/dist/components/{p-eZGoeOrd.js → p-BFxDUwBI.js} +5 -5
  208. package/dist/components/{p-eZGoeOrd.js.map → p-BFxDUwBI.js.map} +1 -1
  209. package/dist/components/{p-D45ehsSM.js → p-BKl-wAjt.js} +7 -7
  210. package/dist/components/{p-D45ehsSM.js.map → p-BKl-wAjt.js.map} +1 -1
  211. package/dist/components/{p-Cr6sHYme.js → p-BLocui1Z.js} +4 -4
  212. package/dist/components/{p-Cr6sHYme.js.map → p-BLocui1Z.js.map} +1 -1
  213. package/dist/components/{p-Dl9jKaw7.js → p-C-TgkYhI.js} +9 -9
  214. package/dist/components/{p-Dl9jKaw7.js.map → p-C-TgkYhI.js.map} +1 -1
  215. package/dist/components/{p-CT9Wgs8K.js → p-C6ozoFuw.js} +15 -15
  216. package/dist/components/{p-CT9Wgs8K.js.map → p-C6ozoFuw.js.map} +1 -1
  217. package/dist/components/p-C84iXIFp.js +71 -0
  218. package/dist/components/p-C84iXIFp.js.map +1 -0
  219. package/dist/components/{p-DXhOme6Y.js → p-CH82uB3t.js} +4 -4
  220. package/dist/components/{p-DXhOme6Y.js.map → p-CH82uB3t.js.map} +1 -1
  221. package/dist/components/{p-ltzGzaAu.js → p-CKhg9ibv.js} +3 -3
  222. package/dist/components/{p-ltzGzaAu.js.map → p-CKhg9ibv.js.map} +1 -1
  223. package/dist/components/{p-eW-dQ-wI.js → p-CSfxA66i.js} +7 -7
  224. package/dist/components/{p-eW-dQ-wI.js.map → p-CSfxA66i.js.map} +1 -1
  225. package/dist/components/{p-DdgOKe4B.js → p-CXsF3egB.js} +11 -11
  226. package/dist/components/{p-DdgOKe4B.js.map → p-CXsF3egB.js.map} +1 -1
  227. package/dist/components/{p-B-jadcQD.js → p-C_slMKPO.js} +26 -18
  228. package/dist/components/p-C_slMKPO.js.map +1 -0
  229. package/dist/components/{p-BtF2Ym6T.js → p-D512q9rn.js} +17 -4
  230. package/dist/components/p-D512q9rn.js.map +1 -0
  231. package/dist/components/{p-BmW8cpEG.js → p-DIkvCBxr.js} +3 -3
  232. package/dist/components/{p-BmW8cpEG.js.map → p-DIkvCBxr.js.map} +1 -1
  233. package/dist/components/{p-CLtU4Br-.js → p-DQrAnsWb.js} +4 -4
  234. package/dist/components/{p-CLtU4Br-.js.map → p-DQrAnsWb.js.map} +1 -1
  235. package/dist/components/{p-DT1sZALq.js → p-DrZr0hMT.js} +7 -7
  236. package/dist/components/{p-DT1sZALq.js.map → p-DrZr0hMT.js.map} +1 -1
  237. package/dist/components/p-SLlDVtvF.js +51 -0
  238. package/dist/components/p-SLlDVtvF.js.map +1 -0
  239. package/dist/components/{p-6HRX2kde.js → p-SZP6K3B0.js} +8 -8
  240. package/dist/components/{p-6HRX2kde.js.map → p-SZP6K3B0.js.map} +1 -1
  241. package/dist/components/{p-CYrYPnLQ.js → p-jflTvJ8E.js} +5 -5
  242. package/dist/components/{p-CYrYPnLQ.js.map → p-jflTvJ8E.js.map} +1 -1
  243. package/dist/components/six-alert.js +3 -3
  244. package/dist/components/six-avatar.js +4 -4
  245. package/dist/components/six-badge.js +3 -3
  246. package/dist/components/six-breadcrumbs-item.d.ts +11 -0
  247. package/dist/components/six-breadcrumbs-item.js +58 -0
  248. package/dist/components/six-breadcrumbs-item.js.map +1 -0
  249. package/dist/components/six-breadcrumbs.d.ts +11 -0
  250. package/dist/components/six-breadcrumbs.js +97 -0
  251. package/dist/components/six-breadcrumbs.js.map +1 -0
  252. package/dist/components/six-button.js +1 -1
  253. package/dist/components/six-card.js +2 -2
  254. package/dist/components/six-checkbox.js +1 -1
  255. package/dist/components/six-date.js +63 -57
  256. package/dist/components/six-date.js.map +1 -1
  257. package/dist/components/six-datepicker.js +10 -10
  258. package/dist/components/six-datepicker.js.map +1 -1
  259. package/dist/components/six-details.js +1 -1
  260. package/dist/components/six-dialog.js +18 -12
  261. package/dist/components/six-dialog.js.map +1 -1
  262. package/dist/components/six-drawer.js +18 -12
  263. package/dist/components/six-drawer.js.map +1 -1
  264. package/dist/components/six-dropdown.js +1 -1
  265. package/dist/components/six-error-page.js +3 -3
  266. package/dist/components/six-error.js +1 -1
  267. package/dist/components/six-file-list-item.js +4 -4
  268. package/dist/components/six-file-list.js +2 -2
  269. package/dist/components/six-file-upload.js +16 -11
  270. package/dist/components/six-file-upload.js.map +1 -1
  271. package/dist/components/six-footer.js +2 -2
  272. package/dist/components/six-group-label.js +4 -4
  273. package/dist/components/six-header-dropdown-item.js +10 -10
  274. package/dist/components/six-header-item.js +2 -2
  275. package/dist/components/six-header-menu-button.js +4 -4
  276. package/dist/components/six-header.js +3 -3
  277. package/dist/components/six-icon-button.js +1 -1
  278. package/dist/components/six-icon.js +1 -1
  279. package/dist/components/six-input.js +1 -1
  280. package/dist/components/six-item-picker.js +1 -1
  281. package/dist/components/six-language-switcher.js +2 -2
  282. package/dist/components/six-layout-grid.js +2 -2
  283. package/dist/components/six-logo.js +1 -1
  284. package/dist/components/six-main-container.js +2 -2
  285. package/dist/components/six-menu-divider.js +2 -2
  286. package/dist/components/six-menu-item.js +1 -1
  287. package/dist/components/six-menu-label.js +2 -2
  288. package/dist/components/six-menu.js +1 -1
  289. package/dist/components/six-picto.js +1 -1
  290. package/dist/components/six-progress-bar.js +4 -4
  291. package/dist/components/six-progress-ring.js +2 -2
  292. package/dist/components/six-radio.js +3 -3
  293. package/dist/components/six-range.js +5 -5
  294. package/dist/components/six-range.js.map +1 -1
  295. package/dist/components/six-rating.d.ts +11 -0
  296. package/dist/components/six-rating.js +173 -0
  297. package/dist/components/six-rating.js.map +1 -0
  298. package/dist/components/six-root.js +4 -4
  299. package/dist/components/six-search-field.js +6 -6
  300. package/dist/components/six-select.js +19 -19
  301. package/dist/components/six-sidebar-item-group.js +3 -3
  302. package/dist/components/six-sidebar-item.js +4 -4
  303. package/dist/components/six-sidebar.js +3 -3
  304. package/dist/components/six-spinner.js +1 -1
  305. package/dist/components/six-stage-indicator.js +1 -1
  306. package/dist/components/six-switch.js +5 -5
  307. package/dist/components/six-switch.js.map +1 -1
  308. package/dist/components/six-tab-group.js +6 -39
  309. package/dist/components/six-tab-group.js.map +1 -1
  310. package/dist/components/six-tab-panel.js +2 -2
  311. package/dist/components/six-tab.js +6 -6
  312. package/dist/components/six-tab.js.map +1 -1
  313. package/dist/components/six-tag.js +7 -7
  314. package/dist/components/six-textarea.js +5 -5
  315. package/dist/components/six-tile.js +9 -9
  316. package/dist/components/six-timepicker.js +1 -1
  317. package/dist/components/six-tooltip.js +1 -1
  318. package/dist/components.json +3044 -687
  319. package/dist/esm/animation-SLlDVtvF.js +51 -0
  320. package/dist/esm/animation-SLlDVtvF.js.map +1 -0
  321. package/dist/esm/{execution-control-ltzGzaAu.js → execution-control-CKhg9ibv.js} +3 -3
  322. package/dist/esm/{execution-control-ltzGzaAu.js.map → execution-control-CKhg9ibv.js.map} +1 -1
  323. package/dist/esm/{form-control-D_uS8E6o.js → form-control-DI6V1ZhR.js} +3 -3
  324. package/dist/esm/{form-control-D_uS8E6o.js.map → form-control-DI6V1ZhR.js.map} +1 -1
  325. package/dist/esm/icon-DqHJRLQQ.js +14 -0
  326. package/dist/esm/icon-DqHJRLQQ.js.map +1 -0
  327. package/dist/esm/{index-D0Go1Zjj.js → index-JoG9I7EO.js} +19 -11
  328. package/dist/{cjs/index-BKTrCUjx.js.map → esm/index-JoG9I7EO.js.map} +1 -1
  329. package/dist/esm/index.js +1 -0
  330. package/dist/esm/index.js.map +1 -1
  331. package/dist/esm/loader.js +3 -3
  332. package/dist/esm/six-alert.entry.js +1 -1
  333. package/dist/esm/six-avatar.entry.js +3 -3
  334. package/dist/esm/six-badge.entry.js +3 -3
  335. package/dist/esm/six-breadcrumbs-item.entry.js +23 -0
  336. package/dist/esm/six-breadcrumbs-item.entry.js.map +1 -0
  337. package/dist/esm/six-breadcrumbs.entry.js +71 -0
  338. package/dist/esm/six-breadcrumbs.entry.js.map +1 -0
  339. package/dist/esm/six-button.six-spinner.entry.js.map +1 -0
  340. package/dist/esm/{six-button.entry.js → six-button_2.entry.js} +56 -6
  341. package/dist/esm/six-button_2.entry.js.map +1 -0
  342. package/dist/esm/six-card.entry.js +2 -2
  343. package/dist/esm/six-checkbox_2.entry.js +6 -6
  344. package/dist/esm/six-date.entry.js +59 -52
  345. package/dist/esm/six-date.entry.js.map +1 -1
  346. package/dist/esm/six-datepicker.entry.js +5 -5
  347. package/dist/esm/six-datepicker.entry.js.map +1 -1
  348. package/dist/esm/six-details.entry.js +4 -4
  349. package/dist/esm/six-dialog.entry.js +16 -10
  350. package/dist/esm/six-dialog.entry.js.map +1 -1
  351. package/dist/esm/six-drawer.entry.js +16 -10
  352. package/dist/esm/six-drawer.entry.js.map +1 -1
  353. package/dist/esm/six-dropdown.six-menu.entry.js.map +1 -1
  354. package/dist/esm/six-dropdown_2.entry.js +10 -10
  355. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  356. package/dist/esm/six-error-page.entry.js +2 -2
  357. package/dist/esm/six-error.entry.js +2 -2
  358. package/dist/esm/six-file-list-item.entry.js +3 -3
  359. package/dist/esm/six-file-list.entry.js +2 -2
  360. package/dist/esm/six-file-upload.entry.js +13 -8
  361. package/dist/esm/six-file-upload.entry.js.map +1 -1
  362. package/dist/esm/six-footer.entry.js +2 -2
  363. package/dist/esm/six-group-label.entry.js +3 -3
  364. package/dist/esm/six-header-dropdown-item.entry.js +3 -3
  365. package/dist/esm/six-header-item.entry.js +2 -2
  366. package/dist/esm/six-header-menu-button.entry.js +2 -2
  367. package/dist/esm/six-header.entry.js +3 -3
  368. package/dist/esm/six-icon-button.entry.js +4 -4
  369. package/dist/esm/six-icon.entry.js +16 -7
  370. package/dist/esm/six-icon.entry.js.map +1 -1
  371. package/dist/esm/six-input.entry.js +5 -5
  372. package/dist/esm/six-item-picker.entry.js +2 -2
  373. package/dist/esm/six-language-switcher.entry.js +2 -2
  374. package/dist/esm/six-layout-grid.entry.js +2 -2
  375. package/dist/esm/six-logo.entry.js +1 -1
  376. package/dist/esm/six-main-container.entry.js +2 -2
  377. package/dist/esm/six-menu-divider.entry.js +2 -2
  378. package/dist/esm/six-menu-label.entry.js +2 -2
  379. package/dist/esm/six-picto.entry.js +2 -2
  380. package/dist/esm/six-progress-bar.entry.js +4 -4
  381. package/dist/esm/six-progress-ring.entry.js +2 -2
  382. package/dist/esm/six-radio.entry.js +3 -3
  383. package/dist/esm/six-range.entry.js +4 -4
  384. package/dist/esm/six-range.entry.js.map +1 -1
  385. package/dist/esm/six-rating.entry.js +124 -0
  386. package/dist/esm/six-rating.entry.js.map +1 -0
  387. package/dist/esm/six-root.entry.js +2 -2
  388. package/dist/esm/six-search-field.entry.js +3 -3
  389. package/dist/esm/six-select.entry.js +9 -9
  390. package/dist/esm/six-sidebar-item-group.entry.js +1 -1
  391. package/dist/esm/six-sidebar-item.entry.js +3 -3
  392. package/dist/esm/six-sidebar.entry.js +3 -3
  393. package/dist/esm/six-stage-indicator.entry.js +1 -1
  394. package/dist/esm/six-switch.entry.js +4 -4
  395. package/dist/esm/six-switch.entry.js.map +1 -1
  396. package/dist/esm/six-tab-group.entry.js +4 -37
  397. package/dist/esm/six-tab-group.entry.js.map +1 -1
  398. package/dist/esm/six-tab-panel.entry.js +2 -2
  399. package/dist/esm/six-tab.entry.js +4 -4
  400. package/dist/esm/six-tab.entry.js.map +1 -1
  401. package/dist/esm/six-tag.entry.js +4 -4
  402. package/dist/esm/six-textarea.entry.js +4 -4
  403. package/dist/esm/six-tile.entry.js +6 -6
  404. package/dist/esm/six-timepicker.entry.js +20 -12
  405. package/dist/esm/six-timepicker.entry.js.map +1 -1
  406. package/dist/esm/six-tooltip.entry.js +3 -3
  407. package/dist/esm/ui-library.js +4 -4
  408. package/dist/esm/ui-library.js.map +1 -1
  409. package/dist/types/components/six-breadcrumbs/six-breadcrumbs.d.ts +20 -0
  410. package/dist/types/components/six-breadcrumbs-item/six-breadcrumbs-item.d.ts +27 -0
  411. package/dist/types/components/six-date/iso-date.d.ts +2 -0
  412. package/dist/types/components/six-date/six-date.d.ts +9 -7
  413. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  414. package/dist/types/components/six-dialog/six-dialog.d.ts +10 -2
  415. package/dist/types/components/six-drawer/six-drawer.d.ts +10 -2
  416. package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -0
  417. package/dist/types/components/six-icon/six-icon.d.ts +16 -0
  418. package/dist/types/components/six-rating/six-rating.d.ts +52 -0
  419. package/dist/types/components.d.ts +912 -24
  420. package/dist/types/index.d.ts +1 -0
  421. package/dist/types/stencil-public-runtime.d.ts +19 -0
  422. package/dist/types/types.d.ts +1 -0
  423. package/dist/types/utils/animation.d.ts +4 -0
  424. package/dist/types/utils/icon.d.ts +5 -0
  425. package/dist/ui-library/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  426. package/dist/ui-library/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  427. package/dist/ui-library/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  428. package/dist/ui-library/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  429. package/dist/ui-library/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  430. package/dist/ui-library/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  431. package/dist/ui-library/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  432. package/dist/ui-library/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  433. package/dist/ui-library/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  434. package/dist/ui-library/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  435. package/dist/ui-library/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  436. package/dist/ui-library/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  437. package/dist/ui-library/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  438. package/dist/ui-library/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  439. package/dist/ui-library/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  440. package/dist/ui-library/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  441. package/dist/ui-library/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  442. package/dist/ui-library/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  443. package/dist/ui-library/index.esm.js +1 -1
  444. package/dist/ui-library/index.esm.js.map +1 -1
  445. package/dist/ui-library/{p-1323f2cb.entry.js → p-014f44f4.entry.js} +2 -2
  446. package/dist/ui-library/p-014f44f4.entry.js.map +1 -0
  447. package/dist/ui-library/p-05ca516d.entry.js +2 -0
  448. package/dist/ui-library/{p-73b64625.entry.js → p-06c6b189.entry.js} +2 -2
  449. package/dist/ui-library/p-0eb90caf.entry.js +2 -0
  450. package/dist/ui-library/p-0eb90caf.entry.js.map +1 -0
  451. package/dist/ui-library/{p-4a4a0751.entry.js → p-12a2cc6b.entry.js} +2 -2
  452. package/dist/ui-library/{p-6990e5ed.entry.js → p-194037e9.entry.js} +2 -2
  453. package/dist/ui-library/{p-ad558904.entry.js → p-22ad3353.entry.js} +2 -2
  454. package/dist/ui-library/p-22f924a1.entry.js +2 -0
  455. package/dist/ui-library/{p-df05b23b.entry.js → p-26219330.entry.js} +2 -2
  456. package/dist/ui-library/{p-16028bce.entry.js → p-29994dc3.entry.js} +2 -2
  457. package/dist/ui-library/{p-cc44af70.entry.js → p-29aac7ea.entry.js} +2 -2
  458. package/dist/ui-library/p-29aac7ea.entry.js.map +1 -0
  459. package/dist/ui-library/{p-1e4d1252.entry.js → p-2a245a37.entry.js} +2 -2
  460. package/dist/ui-library/p-38c51fd1.entry.js +2 -0
  461. package/dist/ui-library/p-38c51fd1.entry.js.map +1 -0
  462. package/dist/ui-library/p-39109b96.entry.js +2 -0
  463. package/dist/ui-library/p-39109b96.entry.js.map +1 -0
  464. package/dist/ui-library/{p-84964501.entry.js → p-3c1285ad.entry.js} +2 -2
  465. package/dist/ui-library/{p-8fe7ecdd.entry.js → p-3d9e03b5.entry.js} +2 -2
  466. package/dist/ui-library/{p-55c15301.entry.js → p-4152b371.entry.js} +2 -2
  467. package/dist/ui-library/{p-81af96f2.entry.js → p-4d9785bd.entry.js} +2 -2
  468. package/dist/ui-library/p-4decf969.entry.js +2 -0
  469. package/dist/ui-library/p-4decf969.entry.js.map +1 -0
  470. package/dist/ui-library/{p-d7616f27.entry.js → p-54490d28.entry.js} +2 -2
  471. package/dist/ui-library/p-56e172e0.entry.js +2 -0
  472. package/dist/ui-library/p-56e172e0.entry.js.map +1 -0
  473. package/dist/ui-library/{p-9f55534a.entry.js → p-59568c0f.entry.js} +2 -2
  474. package/dist/ui-library/{p-9f55534a.entry.js.map → p-59568c0f.entry.js.map} +1 -1
  475. package/dist/ui-library/{p-1f86bd3e.entry.js → p-6607d03a.entry.js} +2 -2
  476. package/dist/ui-library/{p-baf698e1.entry.js → p-664ddbab.entry.js} +2 -2
  477. package/dist/ui-library/{p-830ed202.entry.js → p-66b94978.entry.js} +2 -2
  478. package/dist/ui-library/{p-36a316e0.entry.js → p-66d616e8.entry.js} +2 -2
  479. package/dist/ui-library/{p-5ed5842b.entry.js → p-6cd4fbd8.entry.js} +2 -2
  480. package/dist/ui-library/{p-85aacb7c.entry.js → p-6dd3f54c.entry.js} +2 -2
  481. package/dist/ui-library/{p-01306147.entry.js → p-70388108.entry.js} +2 -2
  482. package/dist/ui-library/p-72d3f332.entry.js +2 -0
  483. package/dist/ui-library/p-72d3f332.entry.js.map +1 -0
  484. package/dist/ui-library/p-7f7413db.entry.js +2 -0
  485. package/dist/ui-library/p-7f7413db.entry.js.map +1 -0
  486. package/dist/ui-library/p-83d5fa7c.entry.js +2 -0
  487. package/dist/ui-library/p-83d5fa7c.entry.js.map +1 -0
  488. package/dist/ui-library/{p-b8db5638.entry.js → p-8c2edb7f.entry.js} +2 -2
  489. package/dist/ui-library/{p-b09e3895.entry.js → p-91c195d3.entry.js} +2 -2
  490. package/dist/ui-library/{p-9f0ed997.entry.js → p-984a1f6d.entry.js} +2 -2
  491. package/dist/ui-library/p-9b75e009.entry.js +2 -0
  492. package/dist/ui-library/p-9b75e009.entry.js.map +1 -0
  493. package/dist/ui-library/{p-22ad5b1e.entry.js → p-9deca0d0.entry.js} +2 -2
  494. package/dist/ui-library/{p-ltzGzaAu.js → p-CKhg9ibv.js} +2 -2
  495. package/dist/ui-library/{p-ltzGzaAu.js.map → p-CKhg9ibv.js.map} +1 -1
  496. package/dist/ui-library/{p-IBmarOIS.js → p-Dg9366Gk.js} +2 -2
  497. package/dist/ui-library/{p-IBmarOIS.js.map → p-Dg9366Gk.js.map} +1 -1
  498. package/dist/ui-library/p-DqHJRLQQ.js +2 -0
  499. package/dist/ui-library/p-DqHJRLQQ.js.map +1 -0
  500. package/dist/ui-library/{p-D0Go1Zjj.js → p-JoG9I7EO.js} +1 -1
  501. package/dist/ui-library/{p-D0Go1Zjj.js.map → p-JoG9I7EO.js.map} +1 -1
  502. package/dist/ui-library/p-SLlDVtvF.js +2 -0
  503. package/dist/ui-library/p-SLlDVtvF.js.map +1 -0
  504. package/dist/ui-library/{p-97b78889.entry.js → p-a6d7d618.entry.js} +2 -2
  505. package/dist/ui-library/p-a7f9c92d.entry.js +2 -0
  506. package/dist/ui-library/{p-79a79513.entry.js.map → p-a7f9c92d.entry.js.map} +1 -1
  507. package/dist/ui-library/{p-071ed780.entry.js → p-aaea0f73.entry.js} +2 -2
  508. package/dist/ui-library/{p-c2ec443c.entry.js → p-ab043a8c.entry.js} +2 -2
  509. package/dist/ui-library/{p-1e67ac05.entry.js → p-b37d9771.entry.js} +2 -2
  510. package/dist/ui-library/{p-9713ecff.entry.js → p-bea434d1.entry.js} +2 -2
  511. package/dist/ui-library/p-bea434d1.entry.js.map +1 -0
  512. package/dist/ui-library/{p-ba68b30c.entry.js → p-ccc7e227.entry.js} +2 -2
  513. package/dist/ui-library/{p-f52715e8.entry.js → p-d81265f4.entry.js} +2 -2
  514. package/dist/ui-library/{p-537a8953.entry.js → p-da5f40ed.entry.js} +2 -2
  515. package/dist/ui-library/p-dc694314.entry.js +2 -0
  516. package/dist/ui-library/p-dc694314.entry.js.map +1 -0
  517. package/dist/ui-library/{p-c04affa2.entry.js → p-df2b8f01.entry.js} +2 -2
  518. package/dist/ui-library/p-e100aff2.entry.js +2 -0
  519. package/dist/ui-library/p-e56c5237.entry.js +2 -0
  520. package/dist/ui-library/p-e56c5237.entry.js.map +1 -0
  521. package/dist/ui-library/{p-679f1e08.entry.js → p-e8e5445e.entry.js} +2 -2
  522. package/dist/ui-library/{p-68c50fb7.entry.js → p-e92df84a.entry.js} +2 -2
  523. package/dist/ui-library/{p-8d60c1fd.entry.js → p-ed6625e6.entry.js} +2 -2
  524. package/dist/ui-library/p-fc2d893f.entry.js +2 -0
  525. package/dist/ui-library/p-fcd3305f.entry.js +2 -0
  526. package/dist/ui-library/{p-0d97e592.entry.js.map → p-fcd3305f.entry.js.map} +1 -1
  527. package/dist/ui-library/p-fd97bc8a.entry.js +2 -0
  528. package/dist/ui-library/p-fd97bc8a.entry.js.map +1 -0
  529. package/dist/ui-library/{p-5ad81261.entry.js → p-fe2ef0a4.entry.js} +2 -2
  530. package/dist/ui-library/six-breadcrumbs-item.entry.esm.js.map +1 -0
  531. package/dist/ui-library/six-breadcrumbs.entry.esm.js.map +1 -0
  532. package/dist/ui-library/six-button.six-spinner.entry.esm.js.map +1 -0
  533. package/dist/ui-library/six-date.entry.esm.js.map +1 -1
  534. package/dist/ui-library/six-datepicker.entry.esm.js.map +1 -1
  535. package/dist/ui-library/six-dialog.entry.esm.js.map +1 -1
  536. package/dist/ui-library/six-drawer.entry.esm.js.map +1 -1
  537. package/dist/ui-library/six-dropdown.six-menu.entry.esm.js.map +1 -1
  538. package/dist/ui-library/six-file-upload.entry.esm.js.map +1 -1
  539. package/dist/ui-library/six-icon.entry.esm.js.map +1 -1
  540. package/dist/ui-library/six-range.entry.esm.js.map +1 -1
  541. package/dist/ui-library/six-rating.entry.esm.js.map +1 -0
  542. package/dist/ui-library/six-switch.entry.esm.js.map +1 -1
  543. package/dist/ui-library/six-tab-group.entry.esm.js.map +1 -1
  544. package/dist/ui-library/six-tab.entry.esm.js.map +1 -1
  545. package/dist/ui-library/six-timepicker.entry.esm.js.map +1 -1
  546. package/dist/ui-library/ui-library.css +1 -1
  547. package/dist/ui-library/ui-library.esm.js +1 -1
  548. package/dist/ui-library/ui-library.esm.js.map +1 -1
  549. package/package.json +9 -6
  550. package/dist/cjs/six-button.cjs.entry.js.map +0 -1
  551. package/dist/cjs/six-button.entry.cjs.js.map +0 -1
  552. package/dist/cjs/six-spinner.cjs.entry.js +0 -58
  553. package/dist/cjs/six-spinner.cjs.entry.js.map +0 -1
  554. package/dist/cjs/six-spinner.entry.cjs.js.map +0 -1
  555. package/dist/components/p-B-jadcQD.js.map +0 -1
  556. package/dist/components/p-BtF2Ym6T.js.map +0 -1
  557. package/dist/components/p-Cemjz04k.js.map +0 -1
  558. package/dist/components/p-Mse5vRUS.js +0 -52
  559. package/dist/components/p-Mse5vRUS.js.map +0 -1
  560. package/dist/esm/six-button.entry.js.map +0 -1
  561. package/dist/esm/six-spinner.entry.js +0 -56
  562. package/dist/esm/six-spinner.entry.js.map +0 -1
  563. package/dist/ui-library/p-0b438d5a.entry.js +0 -2
  564. package/dist/ui-library/p-0b438d5a.entry.js.map +0 -1
  565. package/dist/ui-library/p-0d97e592.entry.js +0 -2
  566. package/dist/ui-library/p-1323f2cb.entry.js.map +0 -1
  567. package/dist/ui-library/p-27e8e8a6.entry.js +0 -2
  568. package/dist/ui-library/p-27e8e8a6.entry.js.map +0 -1
  569. package/dist/ui-library/p-5a579e9f.entry.js +0 -2
  570. package/dist/ui-library/p-5a579e9f.entry.js.map +0 -1
  571. package/dist/ui-library/p-5e70085d.entry.js +0 -2
  572. package/dist/ui-library/p-5e70085d.entry.js.map +0 -1
  573. package/dist/ui-library/p-666b3e45.entry.js +0 -2
  574. package/dist/ui-library/p-666b3e45.entry.js.map +0 -1
  575. package/dist/ui-library/p-695e450e.entry.js +0 -2
  576. package/dist/ui-library/p-6d212bc0.entry.js +0 -2
  577. package/dist/ui-library/p-798fb03a.entry.js +0 -2
  578. package/dist/ui-library/p-798fb03a.entry.js.map +0 -1
  579. package/dist/ui-library/p-79a79513.entry.js +0 -2
  580. package/dist/ui-library/p-868fab98.entry.js +0 -2
  581. package/dist/ui-library/p-9713ecff.entry.js.map +0 -1
  582. package/dist/ui-library/p-b2092cd0.entry.js +0 -2
  583. package/dist/ui-library/p-b2092cd0.entry.js.map +0 -1
  584. package/dist/ui-library/p-cc44af70.entry.js.map +0 -1
  585. package/dist/ui-library/p-d1bd67af.entry.js +0 -2
  586. package/dist/ui-library/p-d1bd67af.entry.js.map +0 -1
  587. package/dist/ui-library/p-f0c10d20.entry.js +0 -2
  588. package/dist/ui-library/p-f0c10d20.entry.js.map +0 -1
  589. package/dist/ui-library/p-f4e2ddfc.entry.js +0 -2
  590. package/dist/ui-library/p-f585a5ab.entry.js +0 -2
  591. package/dist/ui-library/p-f585a5ab.entry.js.map +0 -1
  592. package/dist/ui-library/six-button.entry.esm.js.map +0 -1
  593. package/dist/ui-library/six-spinner.entry.esm.js.map +0 -1
  594. /package/dist/ui-library/{p-695e450e.entry.js.map → p-05ca516d.entry.js.map} +0 -0
  595. /package/dist/ui-library/{p-73b64625.entry.js.map → p-06c6b189.entry.js.map} +0 -0
  596. /package/dist/ui-library/{p-4a4a0751.entry.js.map → p-12a2cc6b.entry.js.map} +0 -0
  597. /package/dist/ui-library/{p-6990e5ed.entry.js.map → p-194037e9.entry.js.map} +0 -0
  598. /package/dist/ui-library/{p-ad558904.entry.js.map → p-22ad3353.entry.js.map} +0 -0
  599. /package/dist/ui-library/{p-f4e2ddfc.entry.js.map → p-22f924a1.entry.js.map} +0 -0
  600. /package/dist/ui-library/{p-df05b23b.entry.js.map → p-26219330.entry.js.map} +0 -0
  601. /package/dist/ui-library/{p-16028bce.entry.js.map → p-29994dc3.entry.js.map} +0 -0
  602. /package/dist/ui-library/{p-1e4d1252.entry.js.map → p-2a245a37.entry.js.map} +0 -0
  603. /package/dist/ui-library/{p-84964501.entry.js.map → p-3c1285ad.entry.js.map} +0 -0
  604. /package/dist/ui-library/{p-8fe7ecdd.entry.js.map → p-3d9e03b5.entry.js.map} +0 -0
  605. /package/dist/ui-library/{p-55c15301.entry.js.map → p-4152b371.entry.js.map} +0 -0
  606. /package/dist/ui-library/{p-81af96f2.entry.js.map → p-4d9785bd.entry.js.map} +0 -0
  607. /package/dist/ui-library/{p-d7616f27.entry.js.map → p-54490d28.entry.js.map} +0 -0
  608. /package/dist/ui-library/{p-1f86bd3e.entry.js.map → p-6607d03a.entry.js.map} +0 -0
  609. /package/dist/ui-library/{p-baf698e1.entry.js.map → p-664ddbab.entry.js.map} +0 -0
  610. /package/dist/ui-library/{p-830ed202.entry.js.map → p-66b94978.entry.js.map} +0 -0
  611. /package/dist/ui-library/{p-36a316e0.entry.js.map → p-66d616e8.entry.js.map} +0 -0
  612. /package/dist/ui-library/{p-5ed5842b.entry.js.map → p-6cd4fbd8.entry.js.map} +0 -0
  613. /package/dist/ui-library/{p-85aacb7c.entry.js.map → p-6dd3f54c.entry.js.map} +0 -0
  614. /package/dist/ui-library/{p-01306147.entry.js.map → p-70388108.entry.js.map} +0 -0
  615. /package/dist/ui-library/{p-b8db5638.entry.js.map → p-8c2edb7f.entry.js.map} +0 -0
  616. /package/dist/ui-library/{p-b09e3895.entry.js.map → p-91c195d3.entry.js.map} +0 -0
  617. /package/dist/ui-library/{p-9f0ed997.entry.js.map → p-984a1f6d.entry.js.map} +0 -0
  618. /package/dist/ui-library/{p-22ad5b1e.entry.js.map → p-9deca0d0.entry.js.map} +0 -0
  619. /package/dist/ui-library/{p-97b78889.entry.js.map → p-a6d7d618.entry.js.map} +0 -0
  620. /package/dist/ui-library/{p-071ed780.entry.js.map → p-aaea0f73.entry.js.map} +0 -0
  621. /package/dist/ui-library/{p-c2ec443c.entry.js.map → p-ab043a8c.entry.js.map} +0 -0
  622. /package/dist/ui-library/{p-1e67ac05.entry.js.map → p-b37d9771.entry.js.map} +0 -0
  623. /package/dist/ui-library/{p-ba68b30c.entry.js.map → p-ccc7e227.entry.js.map} +0 -0
  624. /package/dist/ui-library/{p-f52715e8.entry.js.map → p-d81265f4.entry.js.map} +0 -0
  625. /package/dist/ui-library/{p-537a8953.entry.js.map → p-da5f40ed.entry.js.map} +0 -0
  626. /package/dist/ui-library/{p-c04affa2.entry.js.map → p-df2b8f01.entry.js.map} +0 -0
  627. /package/dist/ui-library/{p-6d212bc0.entry.js.map → p-e100aff2.entry.js.map} +0 -0
  628. /package/dist/ui-library/{p-679f1e08.entry.js.map → p-e8e5445e.entry.js.map} +0 -0
  629. /package/dist/ui-library/{p-68c50fb7.entry.js.map → p-e92df84a.entry.js.map} +0 -0
  630. /package/dist/ui-library/{p-8d60c1fd.entry.js.map → p-ed6625e6.entry.js.map} +0 -0
  631. /package/dist/ui-library/{p-868fab98.entry.js.map → p-fc2d893f.entry.js.map} +0 -0
  632. /package/dist/ui-library/{p-5ad81261.entry.js.map → p-fe2ef0a4.entry.js.map} +0 -0
@@ -176,7 +176,7 @@ export class SixSidebar {
176
176
  this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();
177
177
  }
178
178
  render() {
179
- return (h("host", { key: '38d2d55b73e862c71ef3912fac01f6abd43a3b7c', class: "six-sidebar" }, h("div", { key: 'b8a7a32d48016310f943b42d03f1c4a44ff5bca4', class: {
179
+ return (h("host", { key: '1aae217047bea8e29e86256812a8a67a6eff4ce9', class: "six-sidebar" }, h("div", { key: 'd9d70f022ffaeae09003dfc130b40707ad9e3512', class: {
180
180
  sidebar__container: true,
181
181
  'sidebar--visible': this.isVisible,
182
182
  'sidebar--open': this.open,
@@ -185,7 +185,7 @@ export class SixSidebar {
185
185
  }, style: {
186
186
  width: this.width,
187
187
  [`margin-${this.position}`]: this.open ? '0' : `calc(1rem - ${this.width})`,
188
- }, ref: (el) => (this.sidebar = el), "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: 'a13e1cd44a68fa3ad15a94ccc56ec7c09f689e4c' }))));
188
+ }, ref: (el) => (this.sidebar = el), "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: 'd88754017cf07b12181cce2e10788291ad487257' }))));
189
189
  }
190
190
  static get is() { return "six-sidebar"; }
191
191
  static get encapsulation() { return "shadow"; }
@@ -18,11 +18,11 @@ export class SixSidebarItem {
18
18
  }
19
19
  render() {
20
20
  const Tag = this.href != null ? 'a' : 'div';
21
- return (h(Tag, { key: 'd36654ad6af78000c79191da18b9af02d582dde1', class: {
21
+ return (h(Tag, { key: '09bcf26c2b9c30bb05820fdba6300ac0d3863df7', class: {
22
22
  'sidebar-item': true,
23
23
  'sidebar-item--selected': this.selected,
24
24
  'sidebar-item--disabled': this.disabled,
25
- }, role: "menuitem", href: this.href, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon && h("six-icon", { key: '8664269ee064fa6abd7529ddf92bfcd62e1fe83d', class: "six-sidebar-item__icon" }, this.icon), h("slot", { key: '528d1bd9d6b2e329292a90b7f21412f441dce27b' })));
25
+ }, role: "menuitem", href: this.href, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon && h("six-icon", { key: '6aa594d78879a9ed4ba9a885b2ed66ec43009831', class: "six-sidebar-item__icon" }, this.icon), h("slot", { key: 'df8b8f32bbb75ba84d7b3c8b476ad62b32f749c5' })));
26
26
  }
27
27
  static get is() { return "six-sidebar-item"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -112,12 +112,12 @@ export class SixSwitch {
112
112
  (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.blur();
113
113
  }
114
114
  render() {
115
- return (h(FormControl, { key: 'a358f086b57322b8e3225f4775b09506e766c968', inputId: this.switchId, label: this.label, labelId: this.labelId, hasLabelSlot: false, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '7b87b1d45026bb79c0c1ce5c0cf2e969ee0d0ca7', part: "base", htmlFor: this.switchId, class: {
115
+ return (h(FormControl, { key: '71e5bbeaf0a8aaa048395e5141d5a5e0f280fd05', inputId: this.switchId, label: this.label, labelId: this.labelId, hasLabelSlot: false, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '0cbcf106597f7be0403b34f0e3d471f1f41796a7', part: "base", htmlFor: this.switchId, class: {
116
116
  switch: true,
117
117
  'switch--checked': this.checked,
118
118
  'switch--disabled': this.disabled,
119
119
  'switch--focused': this.hasFocus,
120
- }, onMouseDown: this.handleMouseDown }, h("span", { key: '35bd92fabfb1b177a048789e9f0f9d68499b7bd0', part: "control", class: "switch__control" }, h("span", { key: '0c85de3b5d75b3d083554931a5648be5ba26f7fc', part: "thumb", class: "switch__thumb" }), h("input", { key: '5c807156b356962f347820301050cd096ba67330', ref: (el) => (this.inputElement = el), id: this.switchId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown })), h("span", { key: '923235545aec3ccb5c04aec3316fd8e5a2d027e2', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: '53e2689b7efaac1a93954d02eb7d6b1cdadc8c73' })))));
120
+ }, onMouseDown: this.handleMouseDown }, h("span", { key: 'b4540e2a6458235cf02412951aa1810bc53300e6', part: "control", class: "switch__control" }, h("span", { key: 'b2e8dc036a5b16fd58120f3afe48e58249cd4469', part: "thumb", class: "switch__thumb" }), h("input", { key: 'b0a4aba9eff684d6f2f4f523a4ca17c2d03e50bc', ref: (el) => (this.inputElement = el), id: this.switchId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown })), h("span", { key: 'bd308defa59c8c4a144a67bb461309af8627a4bf', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: 'a63507b9c7b7faeceb2babb993966840747d62ae' })))));
121
121
  }
122
122
  static get is() { return "six-switch"; }
123
123
  static get encapsulation() { return "shadow"; }
@@ -55,6 +55,18 @@
55
55
  .tab:hover:not(.tab--disabled) {
56
56
  color: var(--six-tab-color-hover);
57
57
  }
58
+ .tab.tab--left, .tab.tab--right {
59
+ display: inline-block;
60
+ text-align: left;
61
+ }
62
+ .tab.tab--left::before, .tab.tab--right::before {
63
+ display: block;
64
+ font-weight: var(--six-font-weight-bold);
65
+ content: attr(title);
66
+ height: 0;
67
+ overflow: hidden;
68
+ visibility: hidden;
69
+ }
58
70
 
59
71
  .tab__close-button {
60
72
  font-size: var(--six-font-size-large);
@@ -45,7 +45,7 @@ export class SixTab {
45
45
  const placement = (_a = tabGroup === null || tabGroup === void 0 ? void 0 : tabGroup.placement) !== null && _a !== void 0 ? _a : 'top';
46
46
  return (
47
47
  // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels
48
- h(Host, { key: '6b59af3a0794c9ea26b362fa1ea1c0d7513babea', id: this.host.id || this.componentId }, h("div", { key: 'fdb3e8ffb5523a1e6c0f07287925169a0f5fd07f', part: "base", ref: (el) => (this.tab = el), class: {
48
+ h(Host, { key: '15b2a74f3b77603857f6e2ff65b2ba60ff66b610', id: this.host.id || this.componentId }, h("div", { key: '6898094f10f1df9d600ed3250c1c264f4b9b1bfb', part: "base", ref: (el) => (this.tab = el), class: {
49
49
  tab: true,
50
50
  // Placements
51
51
  'tab--top': placement === 'top',
@@ -56,7 +56,7 @@ export class SixTab {
56
56
  'tab--active': this.active,
57
57
  'tab--closable': this.closable,
58
58
  'tab--disabled': this.disabled,
59
- }, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', tabindex: this.disabled || !this.active ? '-1' : '0' }, h("slot", { key: '907db4032971efbd5a4cfe145db3347404dba051' }), this.closable && (h("six-icon-button", { key: '117fbf10c199b315c8df0f4469b45b63956e156b', name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: '0227ba2ba257cd478488d2b2d6f580bc5e95340b', part: this.active ? 'active-tab-indicator' : '', class: {
59
+ }, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', tabindex: this.disabled || !this.active ? '-1' : '0', title: this.host.innerHTML }, h("slot", { key: 'e2dd12b15187571813d183a159096341cf4c3c0f' }), this.closable && (h("six-icon-button", { key: '6403e9ac9b8574870dc97f96313b50ed133f952f', name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: '293c3734b3223eb57051bbd85003645ff1653e35', part: this.active ? 'active-tab-indicator' : '', class: {
60
60
  tab__indicator: true,
61
61
  'tab__indicator--active': this.active,
62
62
  // Placements
@@ -1 +1 @@
1
- {"version":3,"file":"six-tab.js","sourceRoot":"","sources":["../../../src/components/six-tab/six-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG/F,IAAI,EAAE,GAAG,CAAC,CAAC;AAEX;;;;;;;;;;GAUG;AAOH,MAAM,OAAO,MAAM;IALnB;QAMU,gBAAW,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC;QAKpC,uGAAuG;QAC9E,UAAK,GAAG,EAAE,CAAC;QAEpC,sDAAsD;QAC7B,WAAM,GAAG,KAAK,CAAC;QAExC,6DAA6D;QACrD,aAAQ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import { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab's label.\n *\n * @part base - The component's base wrapper.\n * @part close-button - The close button, which is the icon button's base wrapper.\n */\n\n@Component({\n tag: 'six-tab',\n styleUrl: 'six-tab.scss',\n shadow: true,\n})\nexport class SixTab {\n private componentId = `tab-${++id}`;\n private tab?: HTMLElement;\n\n @Element() host!: HTMLSixTabElement;\n\n /** The name of the tab panel the tab will control. The panel must be located in the same tab group. */\n @Prop({ reflect: true }) panel = '';\n\n /** Set to true to draw the tab in an active state. */\n @Prop({ reflect: true }) active = false;\n\n /** When true, the tab will be rendered with a close icon. */\n @Prop() closable = false;\n\n /** Set to true to draw the tab in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Emitted when the tab is closable and the close button is activated. */\n @Event({ eventName: 'six-tab-close' }) sixClose!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n }\n\n /** Sets focus to the tab. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.tab?.focus(options);\n }\n\n /** Removes focus from the tab. */\n @Method()\n async removeFocus() {\n this.tab?.blur();\n }\n\n private handleCloseClick() {\n this.sixClose.emit();\n }\n\n render() {\n const tabGroup: HTMLSixTabGroupElement | null = this.host.closest('six-tab-group');\n const placement = tabGroup?.placement ?? 'top';\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId}>\n <div\n part=\"base\"\n ref={(el) => (this.tab = el)}\n class={{\n tab: true,\n\n // Placements\n 'tab--top': placement === 'top',\n 'tab--bottom': placement === 'bottom',\n 'tab--left': placement === 'left',\n 'tab--right': placement === 'right',\n\n // States\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled,\n }}\n role=\"tab\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.disabled || !this.active ? '-1' : '0'}\n >\n <slot />\n {this.closable && (\n <six-icon-button\n name=\"close\"\n size=\"xSmall\"\n exportparts=\"base:close-button\"\n class=\"tab__close-button\"\n onClick={this.handleCloseClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n />\n )}\n </div>\n <div\n part={this.active ? 'active-tab-indicator' : ''}\n class={{\n tab__indicator: true,\n 'tab__indicator--active': this.active,\n\n // Placements\n 'tab__indicator--top': placement === 'top',\n 'tab__indicator--bottom': placement === 'bottom',\n 'tab__indicator--left': placement === 'left',\n 'tab__indicator--right': placement === 'right',\n }}\n ></div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-tab.js","sourceRoot":"","sources":["../../../src/components/six-tab/six-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG/F,IAAI,EAAE,GAAG,CAAC,CAAC;AAEX;;;;;;;;;;GAUG;AAOH,MAAM,OAAO,MAAM;IALnB;QAMU,gBAAW,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC;QAKpC,uGAAuG;QAC9E,UAAK,GAAG,EAAE,CAAC;QAEpC,sDAAsD;QAC7B,WAAM,GAAG,KAAK,CAAC;QAExC,6DAA6D;QACrD,aAAQ,GAAG,KAAK,CAAC;QAEzB,uDAAuD;QAC9B,aAAQ,GAAG,KAAK,CAAC;KAmF3C;IA9EC,iBAAiB;QACf,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED,6BAA6B;IAE7B,KAAK,CAAC,QAAQ,CAAC,OAAsB;;QACnC,MAAA,IAAI,CAAC,GAAG,0CAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,C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AAC,GAAG,EACpD,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS;gBAE1B,8DAAQ;gBACP,IAAI,CAAC,QAAQ,IAAI,CAChB,wEACE,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,mBAAmB,EAC/B,KAAK,EAAC,mBAAmB,EACzB,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,QAAQ,EAAE,CAAC,CAAC,iBACA,MAAM,GAClB,CACH,CACG;YACN,4DACE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAC/C,KAAK,EAAE;oBACL,cAAc,EAAE,IAAI;oBACpB,wBAAwB,EAAE,IAAI,CAAC,MAAM;oBAErC,aAAa;oBACb,qBAAqB,EAAE,SAAS,KAAK,KAAK;oBAC1C,wBAAwB,EAAE,SAAS,KAAK,QAAQ;oBAChD,sBAAsB,EAAE,SAAS,KAAK,MAAM;oBAC5C,uBAAuB,EAAE,SAAS,KAAK,OAAO;iBAC/C,GACI,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab's label.\n *\n * @part base - The component's base wrapper.\n * @part close-button - The close button, which is the icon button's base wrapper.\n */\n\n@Component({\n tag: 'six-tab',\n styleUrl: 'six-tab.scss',\n shadow: true,\n})\nexport class SixTab {\n private componentId = `tab-${++id}`;\n private tab?: HTMLElement;\n\n @Element() host!: HTMLSixTabElement;\n\n /** The name of the tab panel the tab will control. The panel must be located in the same tab group. */\n @Prop({ reflect: true }) panel = '';\n\n /** Set to true to draw the tab in an active state. */\n @Prop({ reflect: true }) active = false;\n\n /** When true, the tab will be rendered with a close icon. */\n @Prop() closable = false;\n\n /** Set to true to draw the tab in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Emitted when the tab is closable and the close button is activated. */\n @Event({ eventName: 'six-tab-close' }) sixClose!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n }\n\n /** Sets focus to the tab. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.tab?.focus(options);\n }\n\n /** Removes focus from the tab. */\n @Method()\n async removeFocus() {\n this.tab?.blur();\n }\n\n private handleCloseClick() {\n this.sixClose.emit();\n }\n\n render() {\n const tabGroup: HTMLSixTabGroupElement | null = this.host.closest('six-tab-group');\n const placement = tabGroup?.placement ?? 'top';\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId}>\n <div\n part=\"base\"\n ref={(el) => (this.tab = el)}\n class={{\n tab: true,\n\n // Placements\n 'tab--top': placement === 'top',\n 'tab--bottom': placement === 'bottom',\n 'tab--left': placement === 'left',\n 'tab--right': placement === 'right',\n\n // States\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled,\n }}\n role=\"tab\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.disabled || !this.active ? '-1' : '0'}\n title={this.host.innerHTML}\n >\n <slot />\n {this.closable && (\n <six-icon-button\n name=\"close\"\n size=\"xSmall\"\n exportparts=\"base:close-button\"\n class=\"tab__close-button\"\n onClick={this.handleCloseClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n />\n )}\n </div>\n <div\n part={this.active ? 'active-tab-indicator' : ''}\n class={{\n tab__indicator: true,\n 'tab__indicator--active': this.active,\n\n // Placements\n 'tab__indicator--top': placement === 'top',\n 'tab__indicator--bottom': placement === 'bottom',\n 'tab__indicator--left': placement === 'left',\n 'tab__indicator--right': placement === 'right',\n }}\n ></div>\n </Host>\n );\n }\n}\n"]}
@@ -228,7 +228,7 @@ export class SixTabGroup {
228
228
  });
229
229
  }
230
230
  render() {
231
- return (h("div", { key: '8e1680692b65ef2cf91d3dc3ab9dd76cb8359823', part: "base", ref: (el) => (this.tabGroup = el), class: {
231
+ return (h("div", { key: '56aaa11f3101ba44544017ee7f881ec20d779b40', part: "base", ref: (el) => (this.tabGroup = el), class: {
232
232
  'tab-group': true,
233
233
  // Placements
234
234
  'tab-group--top': this.placement === 'top',
@@ -236,7 +236,7 @@ export class SixTabGroup {
236
236
  'tab-group--left': this.placement === 'left',
237
237
  'tab-group--right': this.placement === 'right',
238
238
  'tab-group--has-scroll-controls': this.hasRightControl || this.hasLeftControl,
239
- }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'bedb1b223b85cd4cf918a3b396fa7e1867016ca6', class: "tab-group__nav-container" }, this.hasLeftControl && (h("six-icon-button", { key: '04a855b42c6258daa8c8759191530be013e6d894', class: "tab-group__scroll-button tab-group__scroll-button--left", exportparts: "base:scroll-button", name: "chevron_left", onClick: this.handleScrollLeft })), h("div", { ref: (el) => (this.nav = el), key: "nav", part: "nav", class: "tab-group__nav" }, h("div", { key: 'a7d11be622d317e5d1145f196228f6113c0b50ed', ref: (el) => (this.tabs = el), part: "tabs", class: "tab-group__tabs", role: "tablist" }, h("slot", { key: '5a669e6d813efc6c5416ebf5f281539842d63e02', name: "nav" }))), this.hasRightControl && (h("six-icon-button", { key: '31d61731441ecef93f315153de71d2ea10f5e58b', class: "tab-group__scroll-button tab-group__scroll-button--right", exportparts: "base:scroll-button", name: "chevron_right", onClick: this.handleScrollRight }))), h("div", { key: '68bbdc3b94ee2119fa58d3c6a13a9b135bc941ed', ref: (el) => (this.body = el), part: "body", class: "tab-group__body" }, h("slot", { key: '17de99799e669ae5c18afb6da7e2a23c5c3064e5' }))));
239
+ }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '439df915243867dc2b8b6fa6b508d99f5dbed623', class: "tab-group__nav-container" }, this.hasLeftControl && (h("six-icon-button", { key: '4921d96aea14fc6ee904b5f56c115fc9dd00c6fa', class: "tab-group__scroll-button tab-group__scroll-button--left", exportparts: "base:scroll-button", name: "chevron_left", onClick: this.handleScrollLeft })), h("div", { ref: (el) => (this.nav = el), key: "nav", part: "nav", class: "tab-group__nav" }, h("div", { key: '078cf88dd7be97d186f70f16055b22d5a2a2047b', ref: (el) => (this.tabs = el), part: "tabs", class: "tab-group__tabs", role: "tablist" }, h("slot", { key: 'b65782fdf2f18b7a59912227293e49c2d3cba83d', name: "nav" }))), this.hasRightControl && (h("six-icon-button", { key: '8273dadfbfb6de487b10b0b7a8e5d6eb3dfa1b81', class: "tab-group__scroll-button tab-group__scroll-button--right", exportparts: "base:scroll-button", name: "chevron_right", onClick: this.handleScrollRight }))), h("div", { key: '014ba8c47b65d967dc3eb547f9b282fab8270a58', ref: (el) => (this.body = el), part: "body", class: "tab-group__body" }, h("slot", { key: '488a5b56b66451f1f17802bd0421d4c2d70a773c' }))));
240
240
  }
241
241
  static get is() { return "six-tab-group"; }
242
242
  static get encapsulation() { return "shadow"; }
@@ -21,7 +21,7 @@ export class SixTabPanel {
21
21
  render() {
22
22
  return (
23
23
  // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels
24
- h(Host, { key: '2a0ab4d655a8de97585c947099381c1fab61e858', id: this.host.id || this.componentId, style: { display: this.active ? 'block' : 'none' } }, h("div", { key: '7ee7661cd01b4390bea7981c4f3fad3e8bb0e6c0', part: "base", class: "tab-panel", role: "tabpanel", "aria-selected": this.active ? 'true' : 'false', "aria-hidden": this.active ? 'false' : 'true' }, h("slot", { key: '21c8561d0a126ef557c1fa9660209f10b6cd7936' }))));
24
+ h(Host, { key: 'b1d310127f59020a935af04a8bf3df75e6416488', id: this.host.id || this.componentId, style: { display: this.active ? 'block' : 'none' } }, h("div", { key: 'cb6e790d83b3ad4d843fce91dde842af9bb4588c', part: "base", class: "tab-panel", role: "tabpanel", "aria-selected": this.active ? 'true' : 'false', "aria-hidden": this.active ? 'false' : 'true' }, h("slot", { key: '6e5588f2370b04b078c6567bd1dd0008203e6f43' }))));
25
25
  }
26
26
  static get is() { return "six-tab-panel"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class SixTag {
48
48
  this.resizeObserver.disconnect();
49
49
  }
50
50
  render() {
51
- return (h("span", { key: '6d436b39d9a220ad7e764afb2a61db3c15052bd8', part: "base", class: {
51
+ return (h("span", { key: 'fa118fba6c2beb1cec064e1dd3a8cc09937358c3', part: "base", class: {
52
52
  tag: true,
53
53
  // Types
54
54
  'tag--primary': this.type === 'primary',
@@ -65,7 +65,7 @@ export class SixTag {
65
65
  // Modifers
66
66
  'tag--pill': this.pill,
67
67
  'tag--clear': this.clearable,
68
- } }, h("six-tooltip", { key: '12faec51f7e0ac427c47037b815564ff6509fa5b', ref: (el) => (this.tooltipElement = el) }, h("span", { key: '38d9b9a805f423491334d8c91463ec7f5c4a5460', ref: (el) => (this.contentElement = el), part: "content", class: "tag__content" }, h("slot", { key: '1dce2aee10cb11b41ea4ff2a3691a7ed6050e3b9', ref: (el) => (this.contentSlotElement = el) }))), this.clearable && (h("six-icon-button", { key: 'd31750ec14c421b44ddc7a2f62db6dfd4ac19dd1', exportparts: "base:clear-button", size: "xSmall", name: "clear", class: "tag__clear", onClick: this.handleClearClick }))));
68
+ } }, h("six-tooltip", { key: '306fac1cde857f9d06c7a646d1f53f4d99ac1464', ref: (el) => (this.tooltipElement = el) }, h("span", { key: 'd44fd48467dc7c31dc7afb213c079d6884183eb6', ref: (el) => (this.contentElement = el), part: "content", class: "tag__content" }, h("slot", { key: '3674beda2a1107fc6509123c655f598019008abf', ref: (el) => (this.contentSlotElement = el) }))), this.clearable && (h("six-icon-button", { key: '337b2bd5915e7d8581c1306f96e58a0f3759f9a5', exportparts: "base:clear-button", size: "xSmall", name: "clear", class: "tag__clear", onClick: this.handleClearClick }))));
69
69
  }
70
70
  static get is() { return "six-tag"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -179,7 +179,7 @@ export class SixTextarea {
179
179
  return ((_a = this.value) !== null && _a !== void 0 ? _a : '').toString();
180
180
  }
181
181
  render() {
182
- return (h(FormControl, { key: 'e535cb9819c9f78361b451b106349d44aa13bc25', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: this.size, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: '5cf703bd10753ce53474c724839745a24769f843', part: "base", class: {
182
+ return (h(FormControl, { key: '2cb6f77780f4c2c6ffc04ec457b813be55b0a6ee', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: this.size, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: '8e00496d1e0053f422375bcd2493cd84626aaf64', part: "base", class: {
183
183
  textarea: true,
184
184
  // Sizes
185
185
  'textarea--small': this.size === 'small',
@@ -194,7 +194,7 @@ export class SixTextarea {
194
194
  'textarea--resize-none': this.resize === 'none',
195
195
  'textarea--resize-vertical': this.resize === 'vertical',
196
196
  'textarea--resize-auto': this.resize === 'auto',
197
- } }, h("textarea", { key: '1a1fc11b8ae91f3c404670a05ea0cc9e0598fa80', part: "textarea", ref: (el) => (this.nativeTextarea = el), id: this.inputId, class: "textarea__control", name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, rows: this.rows, minLength: this.minlength, maxLength: this.maxlength, value: this.getValue(), autoCapitalize: this.autocapitalize, autoCorrect: this.autocorrect, autoFocus: this.autofocus, spellcheck: this.spellcheck, required: this.required, inputMode: this.inputmode, "aria-labelledby": this.labelId, onChange: this.handleChange, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }))));
197
+ } }, h("textarea", { key: 'e79fefc554fc6d8d4b26b561a40eae2cc7433b11', part: "textarea", ref: (el) => (this.nativeTextarea = el), id: this.inputId, class: "textarea__control", name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, rows: this.rows, minLength: this.minlength, maxLength: this.maxlength, value: this.getValue(), autoCapitalize: this.autocapitalize, autoCorrect: this.autocorrect, autoFocus: this.autofocus, spellcheck: this.spellcheck, required: this.required, inputMode: this.inputmode, "aria-labelledby": this.labelId, onChange: this.handleChange, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }))));
198
198
  }
199
199
  static get is() { return "six-textarea"; }
200
200
  static get encapsulation() { return "shadow"; }
@@ -55,22 +55,22 @@ export class SixTile {
55
55
  this.handleSlotChange();
56
56
  }
57
57
  render() {
58
- return (h("six-tooltip", { key: '8bab8c04079d331d563099673f512ae71d6f1286', disabled: this.disableTooltip || this.label === '', content: this.label }, h("div", { key: '449bfabf58a6aeba71a1e0b755cf05c5e25b34fe', part: "base", class: {
58
+ return (h("six-tooltip", { key: '2b2b13f07d07c1f0c90cdfe50f274a98118550a1', disabled: this.disableTooltip || this.label === '', content: this.label }, h("div", { key: 'f3ed6365066484ec1b4699c9e5311348747cd8d8', part: "base", class: {
59
59
  tile: true,
60
60
  'tile--visible': this.visible,
61
61
  'tile--small': this.size === 'small',
62
62
  'tile--medium': this.size === 'medium',
63
63
  'tile--large': this.size === 'large',
64
64
  'tile--elevated': this.elevated,
65
- } }, h("div", { key: '56d729edf7027563b7172f3f9b18345906e50dff', part: "header", class: "tile__header" }, h("six-icon-button", { key: '7cd9016baa63f562c3b1d0972b3b222c55f9f555', class: {
65
+ } }, h("div", { key: 'c27ba89ba037b289754169db65bfab716792b551', part: "header", class: "tile__header" }, h("six-icon-button", { key: '9eb0eea2c2ec217cdda335b5d5412ac0e5944297', class: {
66
66
  'tile__header--hidden': !this.closeable,
67
- }, name: "close", size: closeIconSize(this.size), onClick: this.handleCloseClickEvent })), h("div", { key: '2e6d7d3e708360a4018db6dab1daee7a13cd671b', part: "body", class: "tile__body" }, this.iconName && (h("six-icon", { key: '2e0d64a50d9064909c3a0f41a8d8052df6ce1941', onClick: this.handleClickEvent, size: iconSize(this.size) }, this.iconName)), this.hasIconSlot && h("slot", { key: '84c53bc538cfedda0b1365cafb64c86feaf1d5f3', name: "icon" })), h("div", { key: '46e70b405a6d28c09bd6d3a2a9530fcb0415595c', part: "footer", class: {
67
+ }, name: "close", size: closeIconSize(this.size), onClick: this.handleCloseClickEvent })), h("div", { key: 'f146d52f032ecf33b3c0cd06471f17c419fd47c0', part: "body", class: "tile__body" }, this.iconName && (h("six-icon", { key: '716cb94b53b0b2272fb70450d0fd77f5a3480d18', onClick: this.handleClickEvent, size: iconSize(this.size) }, this.iconName)), this.hasIconSlot && h("slot", { key: '791d752d7a3360fdf7424cbafa375ee22d0063b1', name: "icon" })), h("div", { key: 'e03ab0f392a7defc5107f2ec73b0b60b6d3387ca', part: "footer", class: {
68
68
  'tile__footer--small': this.size === 'small',
69
69
  'tile__footer--medium': this.size === 'medium',
70
70
  'tile__footer--large': this.size === 'large',
71
- } }, this.label && (h("div", { key: '35774ca3faf7192113f5550375ff895a2873bc1f', class: {
71
+ } }, this.label && (h("div", { key: '869d56ac50b7c27c1c42ce0ba1368d6bb52d5344', class: {
72
72
  '.label__footer': true,
73
- }, onClick: this.handleClickEvent }, this.label)), this.hasLabelSlot && h("slot", { key: '8c1ce8e5e504e6d33f41c0a9f38862fdddd619b1', name: "label" })))));
73
+ }, onClick: this.handleClickEvent }, this.label)), this.hasLabelSlot && h("slot", { key: '8d5cad1b2b36a42e4f34d78201d03f7160b7ddbd', name: "label" })))));
74
74
  }
75
75
  static get is() { return "six-tile"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -137,6 +137,9 @@ export class SixTimepicker {
137
137
  };
138
138
  this.handleClearClick = (event) => {
139
139
  event.stopPropagation();
140
+ if (this.inputElement != null) {
141
+ this.inputElement.value = '';
142
+ }
140
143
  this.value = '';
141
144
  this.sixClear.emit();
142
145
  this.sixChange.emit({
@@ -194,13 +197,15 @@ export class SixTimepicker {
194
197
  });
195
198
  return;
196
199
  }
197
- // update value and popup value, and emit the new value
198
- this.value = inputElement.value;
199
- this.popupValue = parseTimeString(inputElement.value, this.format);
200
- this.sixChange.emit({
201
- value: this.popupValue,
202
- valueAsString: createTimeString(this.popupValue, this.format),
203
- });
200
+ else {
201
+ // update value and popup value and emit the new value
202
+ this.value = inputElement.value;
203
+ this.popupValue = parseTimeString(inputElement.value, this.format);
204
+ this.sixChange.emit({
205
+ value: this.popupValue,
206
+ valueAsString: createTimeString(this.popupValue, this.format),
207
+ });
208
+ }
204
209
  }, this.debounce));
205
210
  }
206
211
  componentDidRender() {
@@ -214,6 +219,9 @@ export class SixTimepicker {
214
219
  if (typeof this.value !== 'string' || !isValidTimeString(this.value, this.format)) {
215
220
  this.value = '';
216
221
  }
222
+ else if (this.inputElement != null) {
223
+ this.inputElement.value = this.value;
224
+ }
217
225
  // update popup value
218
226
  if (this.value === '') {
219
227
  if (this.defaultTime == null) {
@@ -346,12 +354,12 @@ export class SixTimepicker {
346
354
  } }, icon));
347
355
  }
348
356
  render() {
349
- return (h("div", { key: '58240c7c32227225d1811fa59e9cf336aad03a4d', part: "container", ref: (el) => (this.wrapper = el), class: "timepicker__container" }, h("six-input", { key: '1b6e9b28d997b67a933d055fa3e73e3c0751aa53', 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: {
357
+ return (h("div", { key: 'a3496612a52df399ccd8cb88e2f3564432758b74', part: "container", ref: (el) => (this.wrapper = el), class: "timepicker__container" }, h("six-input", { key: 'ca426a5b063102ea92550ed6779a46c56a663a22', ref: (el) => (this.inputElement = el), part: "input", onClick: () => this.openPopup(), 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: {
350
358
  'input--empty': this.value === '',
351
359
  'input--hide': this.inline,
352
- } }, 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", { key: 'b762116d0af1bc11d7f2cbb255b071e8fe3b52cf', ref: (el) => (this.popup = el), part: "popup", class: {
360
+ } }, 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", { key: '8c03ea793c9452af88fe41699ec58b526057d834', ref: (el) => (this.popup = el), part: "popup", class: {
353
361
  timepicker__popup: true,
354
- 'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,
362
+ 'timepicker__popup--is-up': this.placement == null ? this.isPopupContentUp : this.placement === 'top',
355
363
  'timepicker__popup--is-inline': this.inline,
356
364
  } }, ...this.getContent(), this.getAmPmPicker()))));
357
365
  }
@@ -1 +1 @@
1
- {"version":3,"file":"six-timepicker.js","sourceRoot":"","sources":["../../../src/components/six-timepicker/six-timepicker.tsx"],"names":[],"mappings":"AAAA,OAA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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"]}
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,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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 } else {\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 }\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 } else if (this.inputElement != null) {\n this.inputElement.value = 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 if (this.inputElement != null) {\n this.inputElement.value = '';\n }\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 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.isPopupContentUp : this.placement === 'top',\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"]}
@@ -166,10 +166,10 @@ export class SixTooltip {
166
166
  });
167
167
  }
168
168
  render() {
169
- return (h(Host, { key: '661956cabaa2503c122217dd7d3fd925b7973fdd', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut }, h("slot", { key: '69ace026483240a339a411be70eadc8aaf2accc8', onSlotchange: this.handleSlotChange }), h("div", { key: '3250d4c0549864f154c83b9c5d1592f764344957', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner" }, h("div", { key: '857856f4c51a1dec2d82486f7df856dce73c2444', part: "base", ref: (el) => (this.tooltip = el), id: this.componentId, class: {
169
+ return (h(Host, { key: 'b0af2fbdb52310c71513aa84d92d3a280e41aaf9', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut }, h("slot", { key: '819d560b1d211a091a625cd031d3b24b8c48746c', onSlotchange: this.handleSlotChange }), h("div", { key: 'fdae79b137b1e736a178b53b4f4ba10259104315', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner" }, h("div", { key: '7b5c975bfd60386d4223487658958f64c63eb11c', part: "base", ref: (el) => (this.tooltip = el), id: this.componentId, class: {
170
170
  tooltip: true,
171
171
  'tooltip--open': this.open,
172
- }, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: 'e97daa734056c11813bdadc58a374c2978f660c5', name: "content" }, this.content)))));
172
+ }, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: 'ebe137a1e3306b9e66ff522fd6a4b1927340f399', name: "content" }, this.content)))));
173
173
  }
174
174
  static get is() { return "six-tooltip"; }
175
175
  static get encapsulation() { return "shadow"; }
@@ -1,3 +1,4 @@
1
1
  export * from './utils/error-messages';
2
2
  export * from './utils/alert';
3
+ export * from './utils/icon';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC","sourcesContent":["export { Components, JSX } from './components';\nexport * from './utils/error-messages';\nexport * from './utils/alert';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAE9B,cAAc,cAAc,CAAC","sourcesContent":["export { Components, JSX } from './components';\nexport * from './utils/error-messages';\nexport * from './utils/alert';\n\nexport * from './utils/icon';\n"]}
@@ -31,4 +31,17 @@ export function flipAnimate(element, fromElement, options = {
31
31
  },
32
32
  ], options);
33
33
  }
34
+ /**
35
+ * Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.
36
+ */
37
+ export function animateTo(el, keyframes, options) {
38
+ return new Promise((resolve) => {
39
+ if ((options === null || options === void 0 ? void 0 : options.duration) === Infinity) {
40
+ throw new Error('Promise-based animations must be finite.');
41
+ }
42
+ const animation = el.animate(keyframes, Object.assign(Object.assign({}, options), { duration: options.duration }));
43
+ animation.addEventListener('cancel', resolve, { once: true });
44
+ animation.addEventListener('finish', resolve, { once: true });
45
+ });
46
+ }
34
47
  //# sourceMappingURL=animation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation.js","sourceRoot":"","sources":["../../src/utils/animation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CACzB,OAAgB,EAChB,WAAoB,EACpB,UAAoC;IAClC,QAAQ,EAAE,GAAG;IACb,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;CACb;IAED,MAAM,YAAY,GAAG,WAAW,CAAC,qBAAqB,EAAE,CAAC;IACzD,MAAM,cAAc,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAEvD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;IACvD,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,GAAG,cAAc,CAAC,GAAG,CAAC;IACrD,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC;IACzD,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;IAE3D,OAAO,CAAC,OAAO,CACb;QACE;YACE,eAAe,EAAE,UAAU;YAC3B,SAAS,EAAE,aAAa,MAAM,OAAO,MAAM,aAAa,MAAM,KAAK,MAAM,GAAG;SAC7E;QACD;YACE,eAAe,EAAE,UAAU;YAC3B,SAAS,EAAE,MAAM;SAClB;KACF,EACD,OAAO,CACR,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Animates a given `element` from the position and dimension of `fromElement` to\n * its current position and dimension. Can be useful to implement the FLIP animation technique.\n *\n * @see {@link https://css-tricks.com/animating-layouts-with-the-flip-technique/} for details on the FLIP technique.\n *\n * @param {Element} element - The element to animate.\n * @param {Element} fromElement - The element representing the initial position and dimensions.\n * @param {KeyframeAnimationOptions} [options={ duration: 150, easing: 'ease', fill: 'both' }] - Optional animation parameters.\n *\n */\nexport function flipAnimate(\n element: Element,\n fromElement: Element,\n options: KeyframeAnimationOptions = {\n duration: 150,\n easing: 'ease',\n fill: 'both',\n }\n) {\n const dimensionsTo = fromElement.getBoundingClientRect();\n const dimensionsFrom = element.getBoundingClientRect();\n\n const deltaX = dimensionsTo.left - dimensionsFrom.left;\n const deltaY = dimensionsTo.top - dimensionsFrom.top;\n const deltaW = dimensionsTo.width / dimensionsFrom.width;\n const deltaH = dimensionsTo.height / dimensionsFrom.height;\n\n element.animate(\n [\n {\n transformOrigin: 'top left',\n transform: `translate(${deltaX}px, ${deltaY}px) scale(${deltaW}, ${deltaH})`,\n },\n {\n transformOrigin: 'top left',\n transform: 'none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jC,OAAO,KACV,QAAQ,EAAE,OAAQ,CAAC,QAAQ,IAC3B,CAAC;QAEH,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9D,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * Animates a given `element` from the position and dimension of `fromElement` to\n * its current position and dimension. Can be useful to implement the FLIP animation technique.\n *\n * @see {@link https://css-tricks.com/animating-layouts-with-the-flip-technique/} for details on the FLIP technique.\n *\n * @param {Element} element - The element to animate.\n * @param {Element} fromElement - The element representing the initial position and dimensions.\n * @param {KeyframeAnimationOptions} [options={ duration: 150, easing: 'ease', fill: 'both' }] - Optional animation parameters.\n *\n */\nexport function flipAnimate(\n element: Element,\n fromElement: Element,\n options: KeyframeAnimationOptions = {\n duration: 150,\n easing: 'ease',\n fill: 'both',\n }\n) {\n const dimensionsTo = fromElement.getBoundingClientRect();\n const dimensionsFrom = element.getBoundingClientRect();\n\n const deltaX = dimensionsTo.left - dimensionsFrom.left;\n const deltaY = dimensionsTo.top - dimensionsFrom.top;\n const deltaW = dimensionsTo.width / dimensionsFrom.width;\n const deltaH = dimensionsTo.height / dimensionsFrom.height;\n\n element.animate(\n [\n {\n transformOrigin: 'top left',\n transform: `translate(${deltaX}px, ${deltaY}px) scale(${deltaW}, ${deltaH})`,\n },\n {\n transformOrigin: 'top left',\n transform: 'none',\n },\n ],\n options\n );\n}\n\n/**\n * Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.\n */\nexport function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: KeyframeAnimationOptions) {\n return new Promise((resolve) => {\n if (options?.duration === Infinity) {\n throw new Error('Promise-based animations must be finite.');\n }\n\n const animation = el.animate(keyframes, {\n ...options,\n duration: options!.duration,\n });\n\n animation.addEventListener('cancel', resolve, { once: true });\n animation.addEventListener('finish', resolve, { once: true });\n });\n}\n"]}
@@ -0,0 +1,10 @@
1
+ let defaultLibrary = 'material-icons';
2
+ /** Sets the global default for all <six-icon> instances that don't specify `library`. */
3
+ export function setDefaultIconLibrary(lib) {
4
+ defaultLibrary = lib;
5
+ }
6
+ /** Returns the global default (fallback is 'material-icons'). */
7
+ export function getDefaultIconLibrary() {
8
+ return defaultLibrary;
9
+ }
10
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/utils/icon.ts"],"names":[],"mappings":"AAEA,IAAI,cAAc,GAAgB,gBAAgB,CAAC;AAEnD,yFAAyF;AACzF,MAAM,UAAU,qBAAqB,CAAC,GAAgB;IACpD,cAAc,GAAG,GAAG,CAAC;AACvB,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,qBAAqB;IACnC,OAAO,cAAc,CAAC;AACxB,CAAC","sourcesContent":["export type IconLibrary = 'material-icons' | 'material-symbols';\n\nlet defaultLibrary: IconLibrary = 'material-icons';\n\n/** Sets the global default for all <six-icon> instances that don't specify `library`. */\nexport function setDefaultIconLibrary(lib: IconLibrary) {\n defaultLibrary = lib;\n}\n\n/** Returns the global default (fallback is 'material-icons'). */\nexport function getDefaultIconLibrary(): IconLibrary {\n return defaultLibrary;\n}\n"]}