@six-group/ui-library 5.0.0 → 5.1.0-rc.1

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 (420) hide show
  1. package/dist/cjs/icon-4irykc7V.js +17 -0
  2. package/dist/cjs/icon-4irykc7V.js.map +1 -0
  3. package/dist/cjs/index-C8rK7OAe.js +12 -8
  4. package/dist/cjs/index.cjs.js +3 -0
  5. package/dist/cjs/index.cjs.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js +25 -0
  8. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js.map +1 -0
  9. package/dist/cjs/six-breadcrumbs-item.entry.cjs.js.map +1 -0
  10. package/dist/cjs/six-breadcrumbs.cjs.entry.js +73 -0
  11. package/dist/cjs/six-breadcrumbs.cjs.entry.js.map +1 -0
  12. package/dist/cjs/six-breadcrumbs.entry.cjs.js.map +1 -0
  13. package/dist/cjs/six-button.six-spinner.entry.cjs.js.map +1 -0
  14. package/dist/cjs/{six-button.cjs.entry.js → six-button_2.cjs.entry.js} +55 -4
  15. package/dist/cjs/six-button_2.cjs.entry.js.map +1 -0
  16. package/dist/cjs/six-card.cjs.entry.js +1 -1
  17. package/dist/cjs/six-checkbox_2.cjs.entry.js +4 -4
  18. package/dist/cjs/six-date.cjs.entry.js +2 -2
  19. package/dist/cjs/six-details.cjs.entry.js +3 -3
  20. package/dist/cjs/six-dropdown.six-menu.entry.cjs.js.map +1 -1
  21. package/dist/cjs/six-dropdown_2.cjs.entry.js +3 -3
  22. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  23. package/dist/cjs/six-error-page.cjs.entry.js +1 -1
  24. package/dist/cjs/six-error.cjs.entry.js +1 -1
  25. package/dist/cjs/six-file-list.cjs.entry.js +1 -1
  26. package/dist/cjs/six-footer.cjs.entry.js +1 -1
  27. package/dist/cjs/six-group-label.cjs.entry.js +1 -1
  28. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +2 -2
  29. package/dist/cjs/six-header-item.cjs.entry.js +1 -1
  30. package/dist/cjs/six-header-menu-button.cjs.entry.js +1 -1
  31. package/dist/cjs/six-header.cjs.entry.js +2 -2
  32. package/dist/cjs/six-icon-button.cjs.entry.js +3 -3
  33. package/dist/cjs/six-icon.cjs.entry.js +15 -6
  34. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-icon.entry.cjs.js.map +1 -1
  36. package/dist/cjs/six-layout-grid.cjs.entry.js +1 -1
  37. package/dist/cjs/six-main-container.cjs.entry.js +1 -1
  38. package/dist/cjs/six-menu-divider.cjs.entry.js +1 -1
  39. package/dist/cjs/six-menu-label.cjs.entry.js +1 -1
  40. package/dist/cjs/six-picto.cjs.entry.js +1 -1
  41. package/dist/cjs/six-progress-bar.cjs.entry.js +3 -3
  42. package/dist/cjs/six-progress-ring.cjs.entry.js +1 -1
  43. package/dist/cjs/six-radio.cjs.entry.js +2 -2
  44. package/dist/cjs/six-range.cjs.entry.js +2 -2
  45. package/dist/cjs/six-rating.cjs.entry.js +2 -2
  46. package/dist/cjs/six-root.cjs.entry.js +1 -1
  47. package/dist/cjs/six-sidebar-item.cjs.entry.js +2 -2
  48. package/dist/cjs/six-sidebar.cjs.entry.js +2 -2
  49. package/dist/cjs/six-switch.cjs.entry.js +2 -2
  50. package/dist/cjs/six-tab-panel.cjs.entry.js +1 -1
  51. package/dist/cjs/six-tab.cjs.entry.js +2 -2
  52. package/dist/cjs/six-tag.cjs.entry.js +2 -2
  53. package/dist/cjs/six-textarea.cjs.entry.js +2 -2
  54. package/dist/cjs/six-tile.cjs.entry.js +5 -5
  55. package/dist/cjs/six-timepicker.cjs.entry.js +1 -1
  56. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-timepicker.entry.cjs.js.map +1 -1
  58. package/dist/cjs/six-tooltip.cjs.entry.js +2 -2
  59. package/dist/cjs/ui-library.cjs.js +1 -1
  60. package/dist/collection/collection-manifest.json +2 -0
  61. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.css +27 -0
  62. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js +109 -0
  63. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js.map +1 -0
  64. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.css +61 -0
  65. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js +123 -0
  66. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js.map +1 -0
  67. package/dist/collection/components/six-button/six-button.js +2 -2
  68. package/dist/collection/components/six-card/six-card.js +1 -1
  69. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  70. package/dist/collection/components/six-date/six-date.js +2 -2
  71. package/dist/collection/components/six-details/six-details.js +3 -3
  72. package/dist/collection/components/six-error/six-error.js +1 -1
  73. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  74. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  75. package/dist/collection/components/six-footer/six-footer.js +1 -1
  76. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  77. package/dist/collection/components/six-header/six-header.js +2 -2
  78. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +2 -2
  79. package/dist/collection/components/six-header-item/six-header-item.js +1 -1
  80. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +1 -1
  81. package/dist/collection/components/six-icon/six-icon.css +48 -34
  82. package/dist/collection/components/six-icon/six-icon.js +39 -5
  83. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  84. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  85. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  86. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  87. package/dist/collection/components/six-menu/six-menu.js +3 -3
  88. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  89. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  90. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  91. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  92. package/dist/collection/components/six-picto/six-picto.js +1 -1
  93. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  94. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  95. package/dist/collection/components/six-radio/six-radio.js +2 -2
  96. package/dist/collection/components/six-range/six-range.js +2 -2
  97. package/dist/collection/components/six-rating/six-rating.js +2 -2
  98. package/dist/collection/components/six-root/six-root.js +1 -1
  99. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  100. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  101. package/dist/collection/components/six-switch/six-switch.js +2 -2
  102. package/dist/collection/components/six-tab/six-tab.js +2 -2
  103. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  104. package/dist/collection/components/six-tag/six-tag.js +2 -2
  105. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  106. package/dist/collection/components/six-tile/six-tile.js +5 -5
  107. package/dist/collection/components/six-timepicker/six-timepicker.js +1 -1
  108. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  109. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  110. package/dist/collection/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  111. package/dist/collection/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  112. package/dist/collection/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  113. package/dist/collection/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  114. package/dist/collection/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  115. package/dist/collection/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  116. package/dist/collection/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  117. package/dist/collection/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  118. package/dist/collection/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  119. package/dist/collection/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  120. package/dist/collection/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  121. package/dist/collection/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  122. package/dist/collection/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  123. package/dist/collection/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  124. package/dist/collection/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  125. package/dist/collection/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  126. package/dist/collection/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  127. package/dist/collection/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  128. package/dist/collection/index.js +1 -0
  129. package/dist/collection/index.js.map +1 -1
  130. package/dist/collection/utils/icon.js +10 -0
  131. package/dist/collection/utils/icon.js.map +1 -0
  132. package/dist/components/index.js +5 -0
  133. package/dist/components/index.js.map +1 -1
  134. package/dist/components/{p-Cs1jspzx.js → p-B5aFlIg7.js} +6 -6
  135. package/dist/components/{p-Cs1jspzx.js.map → p-B5aFlIg7.js.map} +1 -1
  136. package/dist/components/{p-BUN8hFmL.js → p-BDCdPEjW.js} +4 -4
  137. package/dist/components/p-BDCdPEjW.js.map +1 -0
  138. package/dist/components/{p-Cfyrva2T.js → p-BKl-wAjt.js} +5 -5
  139. package/dist/components/{p-Cfyrva2T.js.map → p-BKl-wAjt.js.map} +1 -1
  140. package/dist/components/{p-CWKq6Dyt.js → p-BLocui1Z.js} +3 -3
  141. package/dist/components/{p-CWKq6Dyt.js.map → p-BLocui1Z.js.map} +1 -1
  142. package/dist/components/{p-DYlDF9Rw.js → p-CH82uB3t.js} +3 -3
  143. package/dist/components/{p-DYlDF9Rw.js.map → p-CH82uB3t.js.map} +1 -1
  144. package/dist/components/{p-CAJFkiLw.js → p-CIsPrMgs.js} +7 -7
  145. package/dist/components/{p-CAJFkiLw.js.map → p-CIsPrMgs.js.map} +1 -1
  146. package/dist/components/p-CT4IVFqs.js +71 -0
  147. package/dist/components/p-CT4IVFqs.js.map +1 -0
  148. package/dist/components/{p-9aUb96SZ.js → p-CcWikBVi.js} +8 -8
  149. package/dist/components/{p-9aUb96SZ.js.map → p-CcWikBVi.js.map} +1 -1
  150. package/dist/components/{p-C28WDWgL.js → p-Cj4iCimX.js} +7 -7
  151. package/dist/components/{p-C28WDWgL.js.map → p-Cj4iCimX.js.map} +1 -1
  152. package/dist/components/{p-Cosz73fX.js → p-CoOyRFuR.js} +6 -6
  153. package/dist/components/{p-Cosz73fX.js.map → p-CoOyRFuR.js.map} +1 -1
  154. package/dist/components/{p-DsGIkEDB.js → p-CzGRjc9h.js} +4 -4
  155. package/dist/components/{p-DsGIkEDB.js.map → p-CzGRjc9h.js.map} +1 -1
  156. package/dist/components/{p-BR2t7cws.js → p-Dirhd_mz.js} +3 -3
  157. package/dist/components/{p-BR2t7cws.js.map → p-Dirhd_mz.js.map} +1 -1
  158. package/dist/components/{p-DyYwMIDQ.js → p-DkoOhgRO.js} +3 -3
  159. package/dist/components/{p-DyYwMIDQ.js.map → p-DkoOhgRO.js.map} +1 -1
  160. package/dist/components/{p-CSL17OWk.js → p-KU002yza.js} +9 -9
  161. package/dist/components/{p-CSL17OWk.js.map → p-KU002yza.js.map} +1 -1
  162. package/dist/components/{p-ClylOmYH.js → p-jflTvJ8E.js} +4 -4
  163. package/dist/components/{p-ClylOmYH.js.map → p-jflTvJ8E.js.map} +1 -1
  164. package/dist/components/six-alert.js +2 -2
  165. package/dist/components/six-avatar.js +1 -1
  166. package/dist/components/six-breadcrumbs-item.d.ts +11 -0
  167. package/dist/components/six-breadcrumbs-item.js +58 -0
  168. package/dist/components/six-breadcrumbs-item.js.map +1 -0
  169. package/dist/components/six-breadcrumbs.d.ts +11 -0
  170. package/dist/components/six-breadcrumbs.js +97 -0
  171. package/dist/components/six-breadcrumbs.js.map +1 -0
  172. package/dist/components/six-button.js +1 -1
  173. package/dist/components/six-card.js +1 -1
  174. package/dist/components/six-checkbox.js +1 -1
  175. package/dist/components/six-date.js +6 -6
  176. package/dist/components/six-datepicker.js +5 -5
  177. package/dist/components/six-details.js +1 -1
  178. package/dist/components/six-dialog.js +2 -2
  179. package/dist/components/six-drawer.js +2 -2
  180. package/dist/components/six-dropdown.js +1 -1
  181. package/dist/components/six-error-page.js +2 -2
  182. package/dist/components/six-error.js +1 -1
  183. package/dist/components/six-file-list-item.js +1 -1
  184. package/dist/components/six-file-list.js +1 -1
  185. package/dist/components/six-file-upload.js +2 -2
  186. package/dist/components/six-footer.js +1 -1
  187. package/dist/components/six-group-label.js +2 -2
  188. package/dist/components/six-header-dropdown-item.js +9 -9
  189. package/dist/components/six-header-item.js +1 -1
  190. package/dist/components/six-header-menu-button.js +2 -2
  191. package/dist/components/six-header.js +2 -2
  192. package/dist/components/six-icon-button.js +1 -1
  193. package/dist/components/six-icon.js +1 -1
  194. package/dist/components/six-input.js +1 -1
  195. package/dist/components/six-item-picker.js +1 -1
  196. package/dist/components/six-layout-grid.js +1 -1
  197. package/dist/components/six-main-container.js +1 -1
  198. package/dist/components/six-menu-divider.js +1 -1
  199. package/dist/components/six-menu-item.js +1 -1
  200. package/dist/components/six-menu-label.js +1 -1
  201. package/dist/components/six-menu.js +1 -1
  202. package/dist/components/six-picto.js +1 -1
  203. package/dist/components/six-progress-bar.js +3 -3
  204. package/dist/components/six-progress-ring.js +1 -1
  205. package/dist/components/six-radio.js +2 -2
  206. package/dist/components/six-range.js +3 -3
  207. package/dist/components/six-rating.js +4 -4
  208. package/dist/components/six-root.js +3 -3
  209. package/dist/components/six-search-field.js +3 -3
  210. package/dist/components/six-select.js +9 -9
  211. package/dist/components/six-sidebar-item-group.js +2 -2
  212. package/dist/components/six-sidebar-item.js +3 -3
  213. package/dist/components/six-sidebar.js +2 -2
  214. package/dist/components/six-stage-indicator.js +1 -1
  215. package/dist/components/six-switch.js +3 -3
  216. package/dist/components/six-tab-group.js +2 -2
  217. package/dist/components/six-tab-panel.js +1 -1
  218. package/dist/components/six-tab.js +4 -4
  219. package/dist/components/six-tag.js +5 -5
  220. package/dist/components/six-textarea.js +3 -3
  221. package/dist/components/six-tile.js +8 -8
  222. package/dist/components/six-timepicker.js +1 -1
  223. package/dist/components/six-tooltip.js +1 -1
  224. package/dist/components.json +380 -1
  225. package/dist/esm/icon-DqHJRLQQ.js +14 -0
  226. package/dist/esm/icon-DqHJRLQQ.js.map +1 -0
  227. package/dist/esm/index-JoG9I7EO.js +12 -8
  228. package/dist/esm/index.js +1 -0
  229. package/dist/esm/index.js.map +1 -1
  230. package/dist/esm/loader.js +1 -1
  231. package/dist/esm/six-breadcrumbs-item.entry.js +23 -0
  232. package/dist/esm/six-breadcrumbs-item.entry.js.map +1 -0
  233. package/dist/esm/six-breadcrumbs.entry.js +71 -0
  234. package/dist/esm/six-breadcrumbs.entry.js.map +1 -0
  235. package/dist/esm/six-button.six-spinner.entry.js.map +1 -0
  236. package/dist/esm/{six-button.entry.js → six-button_2.entry.js} +55 -5
  237. package/dist/esm/six-button_2.entry.js.map +1 -0
  238. package/dist/esm/six-card.entry.js +1 -1
  239. package/dist/esm/six-checkbox_2.entry.js +4 -4
  240. package/dist/esm/six-date.entry.js +2 -2
  241. package/dist/esm/six-details.entry.js +3 -3
  242. package/dist/esm/six-dropdown.six-menu.entry.js.map +1 -1
  243. package/dist/esm/six-dropdown_2.entry.js +3 -3
  244. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  245. package/dist/esm/six-error-page.entry.js +1 -1
  246. package/dist/esm/six-error.entry.js +1 -1
  247. package/dist/esm/six-file-list.entry.js +1 -1
  248. package/dist/esm/six-footer.entry.js +1 -1
  249. package/dist/esm/six-group-label.entry.js +1 -1
  250. package/dist/esm/six-header-dropdown-item.entry.js +2 -2
  251. package/dist/esm/six-header-item.entry.js +1 -1
  252. package/dist/esm/six-header-menu-button.entry.js +1 -1
  253. package/dist/esm/six-header.entry.js +2 -2
  254. package/dist/esm/six-icon-button.entry.js +3 -3
  255. package/dist/esm/six-icon.entry.js +15 -6
  256. package/dist/esm/six-icon.entry.js.map +1 -1
  257. package/dist/esm/six-layout-grid.entry.js +1 -1
  258. package/dist/esm/six-main-container.entry.js +1 -1
  259. package/dist/esm/six-menu-divider.entry.js +1 -1
  260. package/dist/esm/six-menu-label.entry.js +1 -1
  261. package/dist/esm/six-picto.entry.js +1 -1
  262. package/dist/esm/six-progress-bar.entry.js +3 -3
  263. package/dist/esm/six-progress-ring.entry.js +1 -1
  264. package/dist/esm/six-radio.entry.js +2 -2
  265. package/dist/esm/six-range.entry.js +2 -2
  266. package/dist/esm/six-rating.entry.js +2 -2
  267. package/dist/esm/six-root.entry.js +1 -1
  268. package/dist/esm/six-sidebar-item.entry.js +2 -2
  269. package/dist/esm/six-sidebar.entry.js +2 -2
  270. package/dist/esm/six-switch.entry.js +2 -2
  271. package/dist/esm/six-tab-panel.entry.js +1 -1
  272. package/dist/esm/six-tab.entry.js +2 -2
  273. package/dist/esm/six-tag.entry.js +2 -2
  274. package/dist/esm/six-textarea.entry.js +2 -2
  275. package/dist/esm/six-tile.entry.js +5 -5
  276. package/dist/esm/six-timepicker.entry.js +1 -1
  277. package/dist/esm/six-timepicker.entry.js.map +1 -1
  278. package/dist/esm/six-tooltip.entry.js +2 -2
  279. package/dist/esm/ui-library.js +1 -1
  280. package/dist/types/components/six-breadcrumbs/six-breadcrumbs.d.ts +20 -0
  281. package/dist/types/components/six-breadcrumbs-item/six-breadcrumbs-item.d.ts +27 -0
  282. package/dist/types/components/six-icon/six-icon.d.ts +17 -0
  283. package/dist/types/components.d.ts +122 -0
  284. package/dist/types/index.d.ts +1 -0
  285. package/dist/types/types.d.ts +1 -0
  286. package/dist/types/utils/icon.d.ts +5 -0
  287. package/dist/ui-library/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  288. package/dist/ui-library/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  289. package/dist/ui-library/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  290. package/dist/ui-library/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  291. package/dist/ui-library/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  292. package/dist/ui-library/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  293. package/dist/ui-library/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  294. package/dist/ui-library/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  295. package/dist/ui-library/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  296. package/dist/ui-library/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  297. package/dist/ui-library/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  298. package/dist/ui-library/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  299. package/dist/ui-library/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  300. package/dist/ui-library/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  301. package/dist/ui-library/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  302. package/dist/ui-library/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  303. package/dist/ui-library/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  304. package/dist/ui-library/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  305. package/dist/ui-library/index.esm.js +1 -1
  306. package/dist/ui-library/index.esm.js.map +1 -1
  307. package/dist/ui-library/{p-336610a9.entry.js → p-014f44f4.entry.js} +2 -2
  308. package/dist/ui-library/p-014f44f4.entry.js.map +1 -0
  309. package/dist/ui-library/p-05ca516d.entry.js +2 -0
  310. package/dist/ui-library/{p-a43843d6.entry.js → p-06c6b189.entry.js} +2 -2
  311. package/dist/ui-library/{p-850aff56.entry.js → p-12a2cc6b.entry.js} +2 -2
  312. package/dist/ui-library/p-22f924a1.entry.js +2 -0
  313. package/dist/ui-library/{p-f6a1c20b.entry.js → p-26219330.entry.js} +2 -2
  314. package/dist/ui-library/{p-fe7d3665.entry.js → p-29994dc3.entry.js} +2 -2
  315. package/dist/ui-library/{p-d9e770ab.entry.js → p-29aac7ea.entry.js} +2 -2
  316. package/dist/ui-library/{p-c8fbf085.entry.js → p-3c1285ad.entry.js} +2 -2
  317. package/dist/ui-library/{p-5b52d097.entry.js → p-3d9e03b5.entry.js} +2 -2
  318. package/dist/ui-library/{p-1cfa2df4.entry.js → p-4d9785bd.entry.js} +2 -2
  319. package/dist/ui-library/p-4decf969.entry.js +2 -0
  320. package/dist/ui-library/p-4decf969.entry.js.map +1 -0
  321. package/dist/ui-library/{p-c47f11e4.entry.js → p-59568c0f.entry.js} +2 -2
  322. package/dist/ui-library/{p-c47f11e4.entry.js.map → p-59568c0f.entry.js.map} +1 -1
  323. package/dist/ui-library/{p-174dd242.entry.js → p-664ddbab.entry.js} +2 -2
  324. package/dist/ui-library/{p-21cbccb1.entry.js → p-66b94978.entry.js} +2 -2
  325. package/dist/ui-library/{p-371ef302.entry.js → p-66d616e8.entry.js} +2 -2
  326. package/dist/ui-library/{p-811ce2a0.entry.js → p-6cd4fbd8.entry.js} +2 -2
  327. package/dist/ui-library/{p-8884a48b.entry.js → p-70388108.entry.js} +2 -2
  328. package/dist/ui-library/p-72d3f332.entry.js +2 -0
  329. package/dist/ui-library/p-72d3f332.entry.js.map +1 -0
  330. package/dist/ui-library/{p-c33533c4.entry.js → p-7f7413db.entry.js} +2 -2
  331. package/dist/ui-library/{p-3d49deae.entry.js → p-8c2edb7f.entry.js} +2 -2
  332. package/dist/ui-library/{p-65e53a1b.entry.js → p-984a1f6d.entry.js} +2 -2
  333. package/dist/ui-library/{p-03ca4af8.entry.js → p-9b75e009.entry.js} +2 -2
  334. package/dist/ui-library/{p-14f79bfc.entry.js → p-9deca0d0.entry.js} +2 -2
  335. package/dist/ui-library/p-DqHJRLQQ.js +2 -0
  336. package/dist/ui-library/p-DqHJRLQQ.js.map +1 -0
  337. package/dist/ui-library/{p-b6244904.entry.js → p-a6d7d618.entry.js} +2 -2
  338. package/dist/ui-library/p-a7f9c92d.entry.js +2 -0
  339. package/dist/ui-library/{p-09de2bda.entry.js.map → p-a7f9c92d.entry.js.map} +1 -1
  340. package/dist/ui-library/{p-a4b523ed.entry.js → p-aaea0f73.entry.js} +2 -2
  341. package/dist/ui-library/{p-ee980a0f.entry.js → p-bea434d1.entry.js} +2 -2
  342. package/dist/ui-library/{p-83b35622.entry.js → p-ccc7e227.entry.js} +2 -2
  343. package/dist/ui-library/p-cf2fc033.entry.js +2 -0
  344. package/dist/ui-library/p-cf2fc033.entry.js.map +1 -0
  345. package/dist/ui-library/{p-cea7f777.entry.js → p-d81265f4.entry.js} +2 -2
  346. package/dist/ui-library/{p-9ec79195.entry.js → p-da5f40ed.entry.js} +2 -2
  347. package/dist/ui-library/{p-f54d3616.entry.js → p-df2b8f01.entry.js} +2 -2
  348. package/dist/ui-library/p-e100aff2.entry.js +2 -0
  349. package/dist/ui-library/{p-12e7a9e1.entry.js → p-e56c5237.entry.js} +2 -2
  350. package/dist/ui-library/{p-12e7a9e1.entry.js.map → p-e56c5237.entry.js.map} +1 -1
  351. package/dist/ui-library/{p-6c8182fa.entry.js → p-e8e5445e.entry.js} +2 -2
  352. package/dist/ui-library/{p-d7c7398d.entry.js → p-fc2d893f.entry.js} +2 -2
  353. package/dist/ui-library/p-fcd3305f.entry.js +2 -0
  354. package/dist/ui-library/{p-e85be7d2.entry.js.map → p-fcd3305f.entry.js.map} +1 -1
  355. package/dist/ui-library/{p-39668d61.entry.js → p-fd97bc8a.entry.js} +2 -2
  356. package/dist/ui-library/{p-dc2109d2.entry.js → p-fe2ef0a4.entry.js} +2 -2
  357. package/dist/ui-library/six-breadcrumbs-item.entry.esm.js.map +1 -0
  358. package/dist/ui-library/six-breadcrumbs.entry.esm.js.map +1 -0
  359. package/dist/ui-library/six-button.six-spinner.entry.esm.js.map +1 -0
  360. package/dist/ui-library/six-dropdown.six-menu.entry.esm.js.map +1 -1
  361. package/dist/ui-library/six-icon.entry.esm.js.map +1 -1
  362. package/dist/ui-library/six-timepicker.entry.esm.js.map +1 -1
  363. package/dist/ui-library/ui-library.css +1 -1
  364. package/dist/ui-library/ui-library.esm.js +1 -1
  365. package/package.json +6 -3
  366. package/dist/cjs/six-button.cjs.entry.js.map +0 -1
  367. package/dist/cjs/six-button.entry.cjs.js.map +0 -1
  368. package/dist/cjs/six-spinner.cjs.entry.js +0 -58
  369. package/dist/cjs/six-spinner.cjs.entry.js.map +0 -1
  370. package/dist/cjs/six-spinner.entry.cjs.js.map +0 -1
  371. package/dist/components/p-BSHZAiyG.js +0 -52
  372. package/dist/components/p-BSHZAiyG.js.map +0 -1
  373. package/dist/components/p-BUN8hFmL.js.map +0 -1
  374. package/dist/esm/six-button.entry.js.map +0 -1
  375. package/dist/esm/six-spinner.entry.js +0 -56
  376. package/dist/esm/six-spinner.entry.js.map +0 -1
  377. package/dist/ui-library/p-09de2bda.entry.js +0 -2
  378. package/dist/ui-library/p-2a82de6c.entry.js +0 -2
  379. package/dist/ui-library/p-2a82de6c.entry.js.map +0 -1
  380. package/dist/ui-library/p-2fb16281.entry.js +0 -2
  381. package/dist/ui-library/p-2fb16281.entry.js.map +0 -1
  382. package/dist/ui-library/p-31c5f8fa.entry.js +0 -2
  383. package/dist/ui-library/p-336610a9.entry.js.map +0 -1
  384. package/dist/ui-library/p-c90a59fc.entry.js +0 -2
  385. package/dist/ui-library/p-e85be7d2.entry.js +0 -2
  386. package/dist/ui-library/p-ea3bf68d.entry.js +0 -2
  387. package/dist/ui-library/six-button.entry.esm.js.map +0 -1
  388. package/dist/ui-library/six-spinner.entry.esm.js.map +0 -1
  389. /package/dist/ui-library/{p-31c5f8fa.entry.js.map → p-05ca516d.entry.js.map} +0 -0
  390. /package/dist/ui-library/{p-a43843d6.entry.js.map → p-06c6b189.entry.js.map} +0 -0
  391. /package/dist/ui-library/{p-850aff56.entry.js.map → p-12a2cc6b.entry.js.map} +0 -0
  392. /package/dist/ui-library/{p-c90a59fc.entry.js.map → p-22f924a1.entry.js.map} +0 -0
  393. /package/dist/ui-library/{p-f6a1c20b.entry.js.map → p-26219330.entry.js.map} +0 -0
  394. /package/dist/ui-library/{p-fe7d3665.entry.js.map → p-29994dc3.entry.js.map} +0 -0
  395. /package/dist/ui-library/{p-d9e770ab.entry.js.map → p-29aac7ea.entry.js.map} +0 -0
  396. /package/dist/ui-library/{p-c8fbf085.entry.js.map → p-3c1285ad.entry.js.map} +0 -0
  397. /package/dist/ui-library/{p-5b52d097.entry.js.map → p-3d9e03b5.entry.js.map} +0 -0
  398. /package/dist/ui-library/{p-1cfa2df4.entry.js.map → p-4d9785bd.entry.js.map} +0 -0
  399. /package/dist/ui-library/{p-174dd242.entry.js.map → p-664ddbab.entry.js.map} +0 -0
  400. /package/dist/ui-library/{p-21cbccb1.entry.js.map → p-66b94978.entry.js.map} +0 -0
  401. /package/dist/ui-library/{p-371ef302.entry.js.map → p-66d616e8.entry.js.map} +0 -0
  402. /package/dist/ui-library/{p-811ce2a0.entry.js.map → p-6cd4fbd8.entry.js.map} +0 -0
  403. /package/dist/ui-library/{p-8884a48b.entry.js.map → p-70388108.entry.js.map} +0 -0
  404. /package/dist/ui-library/{p-c33533c4.entry.js.map → p-7f7413db.entry.js.map} +0 -0
  405. /package/dist/ui-library/{p-3d49deae.entry.js.map → p-8c2edb7f.entry.js.map} +0 -0
  406. /package/dist/ui-library/{p-65e53a1b.entry.js.map → p-984a1f6d.entry.js.map} +0 -0
  407. /package/dist/ui-library/{p-03ca4af8.entry.js.map → p-9b75e009.entry.js.map} +0 -0
  408. /package/dist/ui-library/{p-14f79bfc.entry.js.map → p-9deca0d0.entry.js.map} +0 -0
  409. /package/dist/ui-library/{p-b6244904.entry.js.map → p-a6d7d618.entry.js.map} +0 -0
  410. /package/dist/ui-library/{p-a4b523ed.entry.js.map → p-aaea0f73.entry.js.map} +0 -0
  411. /package/dist/ui-library/{p-ee980a0f.entry.js.map → p-bea434d1.entry.js.map} +0 -0
  412. /package/dist/ui-library/{p-83b35622.entry.js.map → p-ccc7e227.entry.js.map} +0 -0
  413. /package/dist/ui-library/{p-cea7f777.entry.js.map → p-d81265f4.entry.js.map} +0 -0
  414. /package/dist/ui-library/{p-9ec79195.entry.js.map → p-da5f40ed.entry.js.map} +0 -0
  415. /package/dist/ui-library/{p-f54d3616.entry.js.map → p-df2b8f01.entry.js.map} +0 -0
  416. /package/dist/ui-library/{p-ea3bf68d.entry.js.map → p-e100aff2.entry.js.map} +0 -0
  417. /package/dist/ui-library/{p-6c8182fa.entry.js.map → p-e8e5445e.entry.js.map} +0 -0
  418. /package/dist/ui-library/{p-d7c7398d.entry.js.map → p-fc2d893f.entry.js.map} +0 -0
  419. /package/dist/ui-library/{p-39668d61.entry.js.map → p-fd97bc8a.entry.js.map} +0 -0
  420. /package/dist/ui-library/{p-dc2109d2.entry.js.map → p-fe2ef0a4.entry.js.map} +0 -0
@@ -245,10 +245,10 @@ export class SixMenu {
245
245
  .map(({ value, label }) => (h("six-menu-item", { checkType: "check", key: value, value: value }, label)));
246
246
  }
247
247
  render() {
248
- return (h("div", { key: '64f48c7033d88a86327d7c1134c0b07d7d86a7c9', ref: (el) => (this.menuWrapper = el), style: this.getMenuWrapperStyle(), part: "wrapper", class: {
248
+ return (h("div", { key: '5b49fa6852d9d86c36e77533e06950ca5c320675', ref: (el) => (this.menuWrapper = el), style: this.getMenuWrapperStyle(), part: "wrapper", class: {
249
249
  menu: true,
250
- '.no-shadow': this.removeBoxShadow,
251
- } }, h("div", { key: '8cfbdca4fce2dd79c5c44485c441415984c889f3', ref: (el) => (this.menu = el), part: "base", role: "menu", onClick: this.handleClick, onKeyDown: this.handleKeyDown, tabIndex: 0, style: this.getMenuContainerStyle() }, h("slot", { key: '02465176c43a16b3b4801cca8d0e2b1f928eda22' }), this.renderItems()), this.virtualScroll && h("div", { key: 'fdfb7c58a92cc3d922aba5e7f47a94a861e47c7b', style: this.getScrollbarGhostStyle() })));
250
+ 'no-shadow': this.removeBoxShadow,
251
+ } }, h("div", { key: 'b471da4ddcd06d56f21b020491c41c53766757a6', ref: (el) => (this.menu = el), part: "base", role: "menu", onClick: this.handleClick, onKeyDown: this.handleKeyDown, tabIndex: 0, style: this.getMenuContainerStyle() }, h("slot", { key: 'e04e2751c6afd78db344211ca1e6db55b6b6d829' }), this.renderItems()), this.virtualScroll && h("div", { key: '63dcb8d734ae480e7a4a8dcd50f0dc4131f8cb09', style: this.getScrollbarGhostStyle() })));
252
252
  }
253
253
  static get is() { return "six-menu"; }
254
254
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-menu.js","sourceRoot":"","sources":["../../../src/components/six-menu/six-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAYzD,MAAM,iBAAiB,GAAG,CAAC,QAAgC,EAAE,EAAE,mBAC7D,OAAA,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,0CAAE,aAAa,CAAC,YAAY,CAAC,0CAAE,SAAS,0CAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAA,EAAA,CAAC;AAE/F,MAAM,oBAAoB,GAAG,CAAC,EAAY,EAAgC,EAAE,CAC1E,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,CAAC,WAAW,EAAE,MAAK,eAAe,CAAC;AAEhD,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAmB,EAAE,EAAE,CAAC,CAC3D,qBAAe,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IACpC,KAAK,CACQ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GAAG,EAAE,CAAC,EACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,EACjC,IAAI,EAAC,SAAS,EACd,KAAK,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,YAAY,EAAE,IAAI,CAAC,eAAe;aACnC;YAED,4DACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAC7B,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE;gBAEnC,8DAAQ;gBACP,IAAI,CAAC,WAAW,EAAE,CACf;YACL,IAAI,CAAC,aAAa,IAAI,4DAAK,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,GAAI,CAChE,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\nimport { StyleDeclaration } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce } from '../../utils/execution-control';\n\nexport interface SixMenuItemData {\n label: string;\n value: string;\n}\n\nexport interface SixMenuItemSelectedPayload {\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nconst isFocusedMenuItem = (menuItem: HTMLSixMenuItemElement) =>\n menuItem?.shadowRoot?.querySelector('.menu-item')?.classList?.contains('menu-item--focused');\n\nconst isSIXMenuItemElement = (el?: Element): el is HTMLSixMenuItemElement =>\n el?.tagName.toLowerCase() === 'six-menu-item';\n\nconst mapToMenuItem = ({ value, label }: SixMenuItemData) => (\n <six-menu-item key={value} value={value}>\n {label}\n </six-menu-item>\n);\n\nconst DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING = 5;\nconst DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING = 48;\nconst DEFAULT_SIX_MENU_ITEM_HEIGHT = 64;\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 menu's content, including menu items, menu dividers, and menu labels.\n *\n * @part base - The component's base wrapper.\n */\n@Component({\n tag: 'six-menu',\n styleUrl: 'six-menu.scss',\n shadow: true,\n})\nexport class SixMenu {\n private readonly eventListeners = new EventListeners();\n\n private menu?: HTMLElement;\n private menuWrapper?: HTMLElement;\n private typeToSelectString = '';\n private typeToSelectTimeout?: number;\n\n @Element() host!: HTMLSixMenuElement;\n\n /** Emitted when a menu item is selected. */\n @Event({ eventName: 'six-menu-item-selected' }) sixMenuItemSelected!: EventEmitter<SixMenuItemSelectedPayload>;\n\n /** Set to true to remove the box-shadow */\n @Prop() removeBoxShadow = false;\n\n /** Set the options to be shown in the dropdown */\n @Prop() items: SixMenuItemData[] | null = null;\n\n /** Defines how many items should be shown. If the number of items is larger than this property a scrollbar will be shown */\n @Prop() itemsShown?: number;\n\n /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)\n * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */\n @Prop() virtualScroll = false;\n\n /**\n * Used for virtual scrolling\n * Define how many items should be rendered in the DOM when using virtual scrolling\n */\n @Prop() itemSize = 10;\n\n /**\n * Used for virtual scrolling\n * Define the debounce for listening on scrolling changes in milliseconds.\n * The lower the number the more sensitive the component reacts to scrolling changes.\n */\n @Prop() scrollingDebounce = 15;\n\n /**\n * Internal: Disables handling of key presses.\n */\n @Prop() disableKeyboardHandling = false;\n\n /**\n * Used to calculate which items should be rendered in the DOM\n */\n @State()\n private scrollingIndex = 0;\n\n // set a default item height, this variable will be updated with the real value after the first render.\n // However, it's necessary to have a default value because we can only fetch the proper height after the first render\n @State()\n private sixMenuItemHeight = this.virtualScroll\n ? DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING\n : DEFAULT_SIX_MENU_ITEM_HEIGHT;\n\n connectedCallback() {\n this.handleClick = this.handleClick.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n componentWillLoad() {\n if (this.items === null) {\n return;\n }\n }\n\n private handleScrolling = () => {\n if (this.menuWrapper == null) return;\n // for performance improvements we only update the DOM if the scrollRatio change \"enough\"\n this.scrollingIndex = Math.floor(this.menuWrapper.scrollTop / this.sixMenuItemHeight);\n };\n\n componentDidLoad() {\n this.setupForVirtualScrollingAfterRendering();\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n /**\n * Initiates type-to-select logic, which automatically selects an option based on what the user is currently typing.\n * The key passed will be appended to the internal query and the selection will be updated. After a brief period, the\n * internal query is cleared automatically. This method is intended to be used with the keydown event. Useful for\n * enabling type-to-select when the menu doesn't have focus.\n */\n @Method()\n async typeToSelect(key: string) {\n clearTimeout(this.typeToSelectTimeout);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.typeToSelectTimeout = setTimeout(() => (this.typeToSelectString = ''), 750);\n this.typeToSelectString += key.toLowerCase();\n const items = this.getItems();\n for (const item of items) {\n const slot = item.shadowRoot?.querySelector('slot:not([name])') as HTMLSlotElement;\n const label = getTextContent(slot).toLowerCase().trim();\n if (label.substring(0, this.typeToSelectString.length) === this.typeToSelectString) {\n item.setFocus();\n break;\n }\n }\n }\n\n private getItemsShown(): number {\n const defaultItemsShown = this.virtualScroll ? DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING : 0;\n if (this.items && this.items.length === 1) {\n return 0;\n }\n return this.itemsShown ?? defaultItemsShown;\n }\n\n private setupForVirtualScrollingAfterRendering() {\n if (!this.virtualScroll || this.menuWrapper == null) return;\n\n this.eventListeners.add(this.menuWrapper, 'scroll', debounce(this.handleScrolling, this.scrollingDebounce));\n\n // set menu height to proper height once the item is rendered.\n const menuItemHeight = this.menu?.querySelector('six-menu-item')?.clientHeight;\n if (menuItemHeight != null && menuItemHeight > 0) {\n this.sixMenuItemHeight = menuItemHeight;\n }\n }\n\n private getItems(): HTMLSixMenuItemElement[] {\n if (this.menu == null) return [];\n\n if (this.items != null) {\n return this.items.map(mapToMenuItem);\n }\n\n const slot = this.menu.querySelector('slot');\n if (slot == null) return [];\n return [...slot.assignedElements({ flatten: true })].filter(\n (el): el is HTMLSixMenuItemElement => isSIXMenuItemElement(el) && !el.disabled\n );\n }\n\n private getActiveItemIndex() {\n const items = this.getItems();\n const selectedItem = this.getActiveItem();\n if (selectedItem != null) {\n const itemIndex = items.indexOf(selectedItem);\n if (itemIndex > -1) {\n return itemIndex;\n }\n }\n const sixMenuItems = this.extractItemsFromDOM();\n return sixMenuItems.findIndex(isFocusedMenuItem);\n }\n\n private getActiveItem(): HTMLSixMenuItemElement | undefined {\n const activeElement = this.getItems().find((i) => i === document.activeElement);\n if (activeElement != null) {\n return activeElement;\n }\n return this.extractItemsFromDOM()?.find(isFocusedMenuItem);\n }\n\n private extractItemsFromDOM() {\n return Array.from(this.host.shadowRoot?.querySelectorAll('six-menu-item') ?? []);\n }\n\n private setActiveItem(item: HTMLSixMenuItemElement) {\n item?.setFocus();\n }\n\n private handleClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const clickedItem = target.closest('six-menu-item');\n if (clickedItem && !clickedItem.disabled) {\n this.sixMenuItemSelected.emit({ name: clickedItem.value, item: clickedItem });\n }\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.disableKeyboardHandling) {\n return;\n }\n\n // Make a selection when pressing enter\n if (event.key === 'Enter') {\n const activeItem = this.getActiveItem();\n event.preventDefault();\n\n if (activeItem != null) {\n this.sixMenuItemSelected.emit({ name: activeItem.value, item: activeItem });\n }\n }\n\n // Prevent scrolling when space is pressed\n if (event.key === ' ') {\n event.preventDefault();\n }\n\n // Move the selection when pressing down or up\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n const items = this.items === null ? this.getItems() : this.extractItemsFromDOM();\n\n let indexOfActiveItem = this.getActiveItemIndex();\n\n if (items.length > 0) {\n event.preventDefault();\n\n if (event.key === 'ArrowDown') {\n indexOfActiveItem++;\n } else if (event.key === 'ArrowUp') {\n indexOfActiveItem--;\n } else if (event.key === 'Home') {\n indexOfActiveItem = 0;\n } else if (event.key === 'End') {\n indexOfActiveItem = items.length - 1;\n }\n\n if (indexOfActiveItem < 0) indexOfActiveItem = 0;\n if (indexOfActiveItem > items.length - 1) indexOfActiveItem = items.length - 1;\n\n this.setActiveItem(items[indexOfActiveItem]);\n\n return;\n }\n }\n\n void this.typeToSelect(event.key);\n }\n\n private getMenuWrapperStyle() {\n const styles: Partial<StyleDeclaration> = {};\n if (this.getItemsShown() > 0) {\n // calculate the proper height to show the correct number of items\n styles.height = `${(this.getItemsShown() ?? 0) * this.sixMenuItemHeight}px`;\n } else if (this.items && this.items.length === 1) {\n styles.height = 'auto';\n }\n return {\n ...styles,\n };\n }\n\n private getMenuContainerStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.virtualScroll) {\n // calculate height of content are if all items would be rendered so the scrollbar has the proper size\n styles.transform = `translateY(${this.sixMenuItemHeight * this.scrollingIndex}px)`;\n }\n\n return {\n ...styles,\n };\n }\n\n private getScrollbarGhostStyle() {\n const styles: Partial<StyleDeclaration> = {};\n if (this.virtualScroll && this.items !== null && this.items.length > 1) {\n styles.height = `${this.items.length * this.sixMenuItemHeight - this.itemSize * this.sixMenuItemHeight}px`;\n }\n return {\n ...styles,\n };\n }\n\n private renderItems() {\n if (this.items === undefined || this.items === null) {\n return;\n }\n\n if (!this.virtualScroll) {\n return this.items.map(mapToMenuItem);\n }\n\n return this.items\n .slice(this.scrollingIndex, Math.min(this.items.length, this.itemSize + this.scrollingIndex))\n .map(({ value, label }: SixMenuItemData) => (\n <six-menu-item checkType=\"check\" key={value} value={value}>\n {label}\n </six-menu-item>\n ));\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuWrapper = el)}\n style={this.getMenuWrapperStyle()}\n part=\"wrapper\"\n class={{\n menu: true,\n '.no-shadow': this.removeBoxShadow,\n }}\n >\n <div\n ref={(el) => (this.menu = el)}\n part=\"base\"\n role=\"menu\"\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n tabIndex={0}\n style={this.getMenuContainerStyle()}\n >\n <slot />\n {this.renderItems()}\n </div>\n {this.virtualScroll && <div style={this.getScrollbarGhostStyle()} />}\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-menu.js","sourceRoot":"","sources":["../../../src/components/six-menu/six-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAYzD,MAAM,iBAAiB,GAAG,CAAC,QAAgC,EAAE,EAAE,mBAC7D,OAAA,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,0CAAE,aAAa,CAAC,YAAY,CAAC,0CAAE,SAAS,0CAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAA,EAAA,CAAC;AAE/F,MAAM,oBAAoB,GAAG,CAAC,EAAY,EAAgC,EAAE,CAC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E,EAAE,CAAC,CAC1C,qBAAe,SAAS,EAAC,OAAO,EAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IACtD,KAAK,CACQ,CACjB,CAAC,CAAC;IACP,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,EACjC,IAAI,EAAC,SAAS,EACd,KAAK,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,WAAW,EAAE,IAAI,CAAC,eAAe;aAClC;YAED,4DACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAC7B,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE;gBAEnC,8DAAQ;gBACP,IAAI,CAAC,WAAW,EAAE,CACf;YACL,IAAI,CAAC,aAAa,IAAI,4DAAK,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,GAAI,CAChE,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\nimport { StyleDeclaration } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce } from '../../utils/execution-control';\n\nexport interface SixMenuItemData {\n label: string;\n value: string;\n}\n\nexport interface SixMenuItemSelectedPayload {\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nconst isFocusedMenuItem = (menuItem: HTMLSixMenuItemElement) =>\n menuItem?.shadowRoot?.querySelector('.menu-item')?.classList?.contains('menu-item--focused');\n\nconst isSIXMenuItemElement = (el?: Element): el is HTMLSixMenuItemElement =>\n el?.tagName.toLowerCase() === 'six-menu-item';\n\nconst mapToMenuItem = ({ value, label }: SixMenuItemData) => (\n <six-menu-item key={value} value={value}>\n {label}\n </six-menu-item>\n);\n\nconst DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING = 5;\nconst DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING = 48;\nconst DEFAULT_SIX_MENU_ITEM_HEIGHT = 64;\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 menu's content, including menu items, menu dividers, and menu labels.\n *\n * @part base - The component's base wrapper.\n */\n@Component({\n tag: 'six-menu',\n styleUrl: 'six-menu.scss',\n shadow: true,\n})\nexport class SixMenu {\n private readonly eventListeners = new EventListeners();\n\n private menu?: HTMLElement;\n private menuWrapper?: HTMLElement;\n private typeToSelectString = '';\n private typeToSelectTimeout?: number;\n\n @Element() host!: HTMLSixMenuElement;\n\n /** Emitted when a menu item is selected. */\n @Event({ eventName: 'six-menu-item-selected' }) sixMenuItemSelected!: EventEmitter<SixMenuItemSelectedPayload>;\n\n /** Set to true to remove the box-shadow */\n @Prop() removeBoxShadow = false;\n\n /** Set the options to be shown in the dropdown */\n @Prop() items: SixMenuItemData[] | null = null;\n\n /** Defines how many items should be shown. If the number of items is larger than this property a scrollbar will be shown */\n @Prop() itemsShown?: number;\n\n /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)\n * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */\n @Prop() virtualScroll = false;\n\n /**\n * Used for virtual scrolling\n * Define how many items should be rendered in the DOM when using virtual scrolling\n */\n @Prop() itemSize = 10;\n\n /**\n * Used for virtual scrolling\n * Define the debounce for listening on scrolling changes in milliseconds.\n * The lower the number the more sensitive the component reacts to scrolling changes.\n */\n @Prop() scrollingDebounce = 15;\n\n /**\n * Internal: Disables handling of key presses.\n */\n @Prop() disableKeyboardHandling = false;\n\n /**\n * Used to calculate which items should be rendered in the DOM\n */\n @State()\n private scrollingIndex = 0;\n\n // set a default item height, this variable will be updated with the real value after the first render.\n // However, it's necessary to have a default value because we can only fetch the proper height after the first render\n @State()\n private sixMenuItemHeight = this.virtualScroll\n ? DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING\n : DEFAULT_SIX_MENU_ITEM_HEIGHT;\n\n connectedCallback() {\n this.handleClick = this.handleClick.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n componentWillLoad() {\n if (this.items === null) {\n return;\n }\n }\n\n private handleScrolling = () => {\n if (this.menuWrapper == null) return;\n // for performance improvements we only update the DOM if the scrollRatio change \"enough\"\n this.scrollingIndex = Math.floor(this.menuWrapper.scrollTop / this.sixMenuItemHeight);\n };\n\n componentDidLoad() {\n this.setupForVirtualScrollingAfterRendering();\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n /**\n * Initiates type-to-select logic, which automatically selects an option based on what the user is currently typing.\n * The key passed will be appended to the internal query and the selection will be updated. After a brief period, the\n * internal query is cleared automatically. This method is intended to be used with the keydown event. Useful for\n * enabling type-to-select when the menu doesn't have focus.\n */\n @Method()\n async typeToSelect(key: string) {\n clearTimeout(this.typeToSelectTimeout);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.typeToSelectTimeout = setTimeout(() => (this.typeToSelectString = ''), 750);\n this.typeToSelectString += key.toLowerCase();\n const items = this.getItems();\n for (const item of items) {\n const slot = item.shadowRoot?.querySelector('slot:not([name])') as HTMLSlotElement;\n const label = getTextContent(slot).toLowerCase().trim();\n if (label.substring(0, this.typeToSelectString.length) === this.typeToSelectString) {\n item.setFocus();\n break;\n }\n }\n }\n\n private getItemsShown(): number {\n const defaultItemsShown = this.virtualScroll ? DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING : 0;\n if (this.items && this.items.length === 1) {\n return 0;\n }\n return this.itemsShown ?? defaultItemsShown;\n }\n\n private setupForVirtualScrollingAfterRendering() {\n if (!this.virtualScroll || this.menuWrapper == null) return;\n\n this.eventListeners.add(this.menuWrapper, 'scroll', debounce(this.handleScrolling, this.scrollingDebounce));\n\n // set menu height to proper height once the item is rendered.\n const menuItemHeight = this.menu?.querySelector('six-menu-item')?.clientHeight;\n if (menuItemHeight != null && menuItemHeight > 0) {\n this.sixMenuItemHeight = menuItemHeight;\n }\n }\n\n private getItems(): HTMLSixMenuItemElement[] {\n if (this.menu == null) return [];\n\n if (this.items != null) {\n return this.items.map(mapToMenuItem);\n }\n\n const slot = this.menu.querySelector('slot');\n if (slot == null) return [];\n return [...slot.assignedElements({ flatten: true })].filter(\n (el): el is HTMLSixMenuItemElement => isSIXMenuItemElement(el) && !el.disabled\n );\n }\n\n private getActiveItemIndex() {\n const items = this.getItems();\n const selectedItem = this.getActiveItem();\n if (selectedItem != null) {\n const itemIndex = items.indexOf(selectedItem);\n if (itemIndex > -1) {\n return itemIndex;\n }\n }\n const sixMenuItems = this.extractItemsFromDOM();\n return sixMenuItems.findIndex(isFocusedMenuItem);\n }\n\n private getActiveItem(): HTMLSixMenuItemElement | undefined {\n const activeElement = this.getItems().find((i) => i === document.activeElement);\n if (activeElement != null) {\n return activeElement;\n }\n return this.extractItemsFromDOM()?.find(isFocusedMenuItem);\n }\n\n private extractItemsFromDOM() {\n return Array.from(this.host.shadowRoot?.querySelectorAll('six-menu-item') ?? []);\n }\n\n private setActiveItem(item: HTMLSixMenuItemElement) {\n item?.setFocus();\n }\n\n private handleClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const clickedItem = target.closest('six-menu-item');\n if (clickedItem && !clickedItem.disabled) {\n this.sixMenuItemSelected.emit({ name: clickedItem.value, item: clickedItem });\n }\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.disableKeyboardHandling) {\n return;\n }\n\n // Make a selection when pressing enter\n if (event.key === 'Enter') {\n const activeItem = this.getActiveItem();\n event.preventDefault();\n\n if (activeItem != null) {\n this.sixMenuItemSelected.emit({ name: activeItem.value, item: activeItem });\n }\n }\n\n // Prevent scrolling when space is pressed\n if (event.key === ' ') {\n event.preventDefault();\n }\n\n // Move the selection when pressing down or up\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n const items = this.items === null ? this.getItems() : this.extractItemsFromDOM();\n\n let indexOfActiveItem = this.getActiveItemIndex();\n\n if (items.length > 0) {\n event.preventDefault();\n\n if (event.key === 'ArrowDown') {\n indexOfActiveItem++;\n } else if (event.key === 'ArrowUp') {\n indexOfActiveItem--;\n } else if (event.key === 'Home') {\n indexOfActiveItem = 0;\n } else if (event.key === 'End') {\n indexOfActiveItem = items.length - 1;\n }\n\n if (indexOfActiveItem < 0) indexOfActiveItem = 0;\n if (indexOfActiveItem > items.length - 1) indexOfActiveItem = items.length - 1;\n\n this.setActiveItem(items[indexOfActiveItem]);\n\n return;\n }\n }\n\n void this.typeToSelect(event.key);\n }\n\n private getMenuWrapperStyle() {\n const styles: Partial<StyleDeclaration> = {};\n if (this.getItemsShown() > 0) {\n // calculate the proper height to show the correct number of items\n styles.height = `${(this.getItemsShown() ?? 0) * this.sixMenuItemHeight}px`;\n } else if (this.items && this.items.length === 1) {\n styles.height = 'auto';\n }\n return {\n ...styles,\n };\n }\n\n private getMenuContainerStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.virtualScroll) {\n // calculate height of content are if all items would be rendered so the scrollbar has the proper size\n styles.transform = `translateY(${this.sixMenuItemHeight * this.scrollingIndex}px)`;\n }\n\n return {\n ...styles,\n };\n }\n\n private getScrollbarGhostStyle() {\n const styles: Partial<StyleDeclaration> = {};\n if (this.virtualScroll && this.items !== null && this.items.length > 1) {\n styles.height = `${this.items.length * this.sixMenuItemHeight - this.itemSize * this.sixMenuItemHeight}px`;\n }\n return {\n ...styles,\n };\n }\n\n private renderItems() {\n if (this.items === undefined || this.items === null) {\n return;\n }\n\n if (!this.virtualScroll) {\n return this.items.map(mapToMenuItem);\n }\n\n return this.items\n .slice(this.scrollingIndex, Math.min(this.items.length, this.itemSize + this.scrollingIndex))\n .map(({ value, label }: SixMenuItemData) => (\n <six-menu-item checkType=\"check\" key={value} value={value}>\n {label}\n </six-menu-item>\n ));\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuWrapper = el)}\n style={this.getMenuWrapperStyle()}\n part=\"wrapper\"\n class={{\n menu: true,\n 'no-shadow': this.removeBoxShadow,\n }}\n >\n <div\n ref={(el) => (this.menu = el)}\n part=\"base\"\n role=\"menu\"\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n tabIndex={0}\n style={this.getMenuContainerStyle()}\n >\n <slot />\n {this.renderItems()}\n </div>\n {this.virtualScroll && <div style={this.getScrollbarGhostStyle()} />}\n </div>\n );\n }\n}\n"]}
@@ -9,7 +9,7 @@ import { h } from "@stencil/core";
9
9
  */
10
10
  export class SixMenuDivider {
11
11
  render() {
12
- return h("div", { key: '186bd0295f652e28206b3e01a092c0cc67128874', part: "base", class: "menu-divider", role: "separator", "aria-hidden": "true" });
12
+ return h("div", { key: 'e5cfe610c3578305a43cac1d94aabd9d4f3483f8', part: "base", class: "menu-divider", role: "separator", "aria-hidden": "true" });
13
13
  }
14
14
  static get is() { return "six-menu-divider"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -68,13 +68,13 @@ export class SixMenuItem {
68
68
  this.hasFocus = false;
69
69
  }
70
70
  render() {
71
- return (h("div", { key: '1272ddcb536f11b8362d2d6050e7e022f2c57601', ref: (el) => (this.menuItem = el), part: "base", class: {
71
+ return (h("div", { key: '068b0e516f28354bf1e0e6171fd5a57c42e6805d', ref: (el) => (this.menuItem = el), part: "base", class: {
72
72
  'menu-item': true,
73
73
  'menu-item--checked': this.checked,
74
74
  'menu-item--disabled': this.disabled,
75
75
  'menu-item--focused': this.hasFocus,
76
76
  'menu-item--active': this.active,
77
- }, role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false', "aria-checked": this.checked ? 'true' : 'false', tabIndex: !this.disabled ? 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, this.checkType === 'checkbox' && (h("span", { key: '433f8c7ea79197d6881f02d5daad580cdc45ad75', class: "menu-item__checkbox" }, h("six-checkbox", { key: 'a2bb3ef76de46374e058f814723ae2e601d9d12e', "onSix-checkbox-change": this.handleCheckboxChange, disabled: this.disabled, checked: this.checked }))), h("span", { key: '7e068c6cca0e53ecac63a461945d13b3a157e9e6', part: "prefix", class: "menu-item__prefix" }, h("slot", { key: '4a8b59e044ec0d20fa96a4f2c8dabcc697e24641', name: "prefix" })), h("span", { key: '9d33d8597e12e94d6b4da75480bf034053124e34', part: "label", class: "menu-item__label" }, h("slot", { key: 'eb1f6a5ac3dd253c3844b7b2f1abd8eab5d8e2f7', ref: (el) => (this.defaultSlot = el) })), h("span", { key: 'dafb3d36a73291eb05e3bb53744204400f0cde66', part: "suffix", class: "menu-item__suffix" }, h("slot", { key: 'b544b01d90f3a5ab49a99ca39b4abc622fed87c1', name: "suffix" })), this.checkType === 'check' && (h("span", { key: 'f7dc2836cbd13a851db43967f9e1f4334937f19e', part: "checked-icon", class: "menu-item__check" }, h("six-icon", { key: 'db186867ab833a1064f091d592f4c39675a9aeeb', size: "small", "aria-hidden": "true" }, "check")))));
77
+ }, role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false', "aria-checked": this.checked ? 'true' : 'false', tabIndex: !this.disabled ? 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, this.checkType === 'checkbox' && (h("span", { key: '2a4a44cc50eab0f85553779829f194ce2940a8b4', class: "menu-item__checkbox" }, h("six-checkbox", { key: '60db41a831898917a66c5b36a66569ca511d4087', "onSix-checkbox-change": this.handleCheckboxChange, disabled: this.disabled, checked: this.checked }))), h("span", { key: '11ef1aedb06a67538e1a8ffa7ced64f27f554725', part: "prefix", class: "menu-item__prefix" }, h("slot", { key: '698842d190731f589a9d031893c13bb8ee2dc8f4', name: "prefix" })), h("span", { key: '20fda9cdc6b3aef51b7231edda1d6fb48f03dbeb', part: "label", class: "menu-item__label" }, h("slot", { key: 'b564482ff277a47e5f50554755649a7d8e7ebe47', ref: (el) => (this.defaultSlot = el) })), h("span", { key: '437c77e718827d816786159675dec3439ac1c1e4', part: "suffix", class: "menu-item__suffix" }, h("slot", { key: '533be0933a9d597641bc1496c7375b9b36db98bb', name: "suffix" })), this.checkType === 'check' && (h("span", { key: '43b77ffd3510aa1603bc9278c31684c1ecfc711f', part: "checked-icon", class: "menu-item__check" }, h("six-icon", { key: 'a7569cb3d856bac8767c634cb5862c900ce69e45', size: "small", "aria-hidden": "true" }, "check")))));
78
78
  }
79
79
  static get is() { return "six-menu-item"; }
80
80
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ import { h } from "@stencil/core";
11
11
  */
12
12
  export class SixMenuLabel {
13
13
  render() {
14
- return (h("div", { key: 'ac09a02af0b1d088f83877d5065b9b747032be77', part: "base", class: "menu-label" }, h("slot", { key: 'a4f45f90b223d3951bdb5a36b8667d67bcbf1fc7' })));
14
+ return (h("div", { key: '8d796cb82a38cccc46f32ff8ce33d453e7bb7166', part: "base", class: "menu-label" }, h("slot", { key: '551f3905fa1d78d307912f1ba366b3718ae8facf' })));
15
15
  }
16
16
  static get is() { return "six-menu-label"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class SixPicto {
15
15
  render() {
16
16
  var _a;
17
17
  const iconName = (_a = this.host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim();
18
- return (h(Host, { key: 'ed06500ac52374ead53dbb7012ee1b4b07d21b25' }, h("div", { key: '1f134c2254d4c3659e66b1a0c79556fb8131220d', part: "icon", class: {
18
+ return (h(Host, { key: 'bc4d73489e8e09be226f51682e282b1c4c5a2175' }, h("div", { key: 'ee1ff26b654c5ffd678f6928edd3bd44ab4acd15', part: "icon", class: {
19
19
  [`is-size-${this.size}`]: typeof this.size != null || this.size.trim() !== '',
20
20
  [`${iconName}`]: true,
21
21
  } })));
@@ -19,12 +19,12 @@ export class SixProgressBar {
19
19
  this.indeterminate = false;
20
20
  }
21
21
  render() {
22
- return (h("div", { key: 'e11c3e9f83321a55170e04e84ab63c2e8b9f12a7', part: "base", class: {
22
+ return (h("div", { key: 'd89c7c456819839b638cadc372bf2ab071e73918', part: "base", class: {
23
23
  'progress-bar': true,
24
24
  'progress-bar--indeterminate': this.indeterminate,
25
- }, role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.indeterminate ? null : this.percentage }, h("div", { key: '9c8b4a3f5ada54163272cbd7e8cf9e7cb90dc39b', part: "indicator", class: "progress-bar__indicator", style: {
25
+ }, role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.indeterminate ? null : this.percentage }, h("div", { key: 'ce4d45162f0aeb2c5affd3a6aef552c2f4078a1b', part: "indicator", class: "progress-bar__indicator", style: {
26
26
  width: `${this.percentage}%`,
27
- } }, !this.indeterminate && (h("span", { key: '16be9dda6192ecf33efb192b23694cc006ceb4fd', part: "label", class: "progress-bar__label" }, h("slot", { key: '1e102597d1ec71a54fecb87f336aa711fddd8558' }))))));
27
+ } }, !this.indeterminate && (h("span", { key: '911269a53f42a7e94fc1be782f9e903e32650c75', part: "label", class: "progress-bar__label" }, h("slot", { key: '59daab81dd0812c99c32b304479b794d94c6e82e' }))))));
28
28
  }
29
29
  static get is() { return "six-progress-bar"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class SixProgressRing {
36
36
  this.indicator.style.strokeDashoffset = `${offset}`;
37
37
  }
38
38
  render() {
39
- return (h("div", { key: '6f48ef171c32eef14162bb15d53befc7bf30f923', part: "base", class: "progress-ring" }, h("svg", { key: 'b1479eec3a5dbabdb39716484c58396a09db1272', class: "progress-ring__image", width: this.size, height: this.size }, h("circle", { key: 'abb6fd5f35d514fe1580e02fd251774e107da5ce', class: "progress-ring__track", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 }), h("circle", { key: 'ca3fb1650516df81c8757594a0ce0d62d82febd3', ref: (el) => (this.indicator = el), class: "progress-ring__indicator", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 })), h("span", { key: 'c9b746f63f7c8bb0b325397d0344f6d82b8e3c0d', part: "label", class: "progress-ring__label" }, h("slot", { key: '905b3a001f4d95c31e80e5d74ecd29d0ec59992a' }))));
39
+ return (h("div", { key: '4b619cac39642c43455886ab94067bfd1a96183c', part: "base", class: "progress-ring" }, h("svg", { key: 'eb438641c5bcc7de1ab356881b8480bc65115f62', class: "progress-ring__image", width: this.size, height: this.size }, h("circle", { key: '63a5359a0f22e0c657a629f50ec9addefd409113', class: "progress-ring__track", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 }), h("circle", { key: 'ccf1f8120f745cbc060f0a5fb9fed00ef52fa4db', ref: (el) => (this.indicator = el), class: "progress-ring__indicator", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 })), h("span", { key: '775c0d0707e480496807e2cadb47be1a551cc128', part: "label", class: "progress-ring__label" }, h("slot", { key: '6849d9832eb3845066bb7008a19604668d548ce8' }))));
40
40
  }
41
41
  static get is() { return "six-progress-ring"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -108,12 +108,12 @@ export class SixRadio {
108
108
  return this.getAllRadios().filter((radio) => radio !== this.host);
109
109
  }
110
110
  render() {
111
- return (h("label", { key: 'cdb722e8b78cf02f527d97b3dab6f0679b333c21', part: "base", class: {
111
+ return (h("label", { key: '879cb08317d04deeca8282c8b69e6eb20a9adf07', part: "base", class: {
112
112
  radio: true,
113
113
  'radio--checked': this.checked,
114
114
  'radio--disabled': this.disabled,
115
115
  'radio--focused': this.hasFocus,
116
- }, htmlFor: this.inputId, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown }, h("span", { key: '9c627a113fe27c340b7f6162d9bde328220c8960', part: "control", class: "radio__control" }, h("span", { key: '2ce65408f6c88cb7396c480eba0cc2dd663a3c85', part: "checked-icon", class: "radio__icon" }, h("svg", { key: 'f4aac67ee8b4a5fb2af26305799b6648e496941e', viewBox: "0 0 16 16" }, h("g", { key: 'f1bc8651eae70a2ede2dcbf5f48f8237d9f883e6', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { key: '7ffa14023971330ae34e041871c0db912789999a', fill: "currentColor" }, h("circle", { key: '10d6f37d1227677ba8044a8bffd89f8828e54e0d', cx: "8", cy: "8", r: "5" }))))), h("input", { key: '55ae32be4a36646c17d1238e486df0a483db2650', ref: (el) => (this.nativeInput = el), id: this.inputId, type: "radio", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, role: "radio", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { key: '08128b78c44c561e9dc97f840bacf46059c2483b', part: "label", id: this.labelId, class: "radio__label" }, h("slot", { key: '9dd8bcf11566bd74d7b8e91a71cd276947562426' }))));
116
+ }, htmlFor: this.inputId, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown }, h("span", { key: '6c2acde83c5a7d3ec9de36b6e73776f7c614b8f4', part: "control", class: "radio__control" }, h("span", { key: 'f741f110abf476e80c54d5ba7e55f9ce7babb68b', part: "checked-icon", class: "radio__icon" }, h("svg", { key: '9635c588916db7dc635a4581e50416d16114ee58', viewBox: "0 0 16 16" }, h("g", { key: '5d33f15ab6063156808d054bd6f736303e8afecc', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { key: '25aead7a47efab4b1b86aa50070ba656855bfdf0', fill: "currentColor" }, h("circle", { key: '33364d9740a62291991de71288535fe685593fa1', cx: "8", cy: "8", r: "5" }))))), h("input", { key: '2ba91f62d15618ea3292902137649fdc579e05fa', ref: (el) => (this.nativeInput = el), id: this.inputId, type: "radio", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, role: "radio", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { key: 'e8d5db9e8b63c6f5c25ef1239291c175257edf90', part: "label", id: this.labelId, class: "radio__label" }, h("slot", { key: '1aed8a157b967b10acbfb960cd725b88fdf83cf3' }))));
117
117
  }
118
118
  static get is() { return "six-radio"; }
119
119
  static get encapsulation() { return "shadow"; }
@@ -200,7 +200,7 @@ export class SixRange {
200
200
  }
201
201
  }
202
202
  render() {
203
- return (h(FormControl, { key: '0f53d7ccd1af680cc40ec8de87960b243c33a3be', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, size: "medium", errorTextId: this.errorTextId, errorText: this.errorText, hasErrorTextSlot: this.hasErrorTextSlot, errorTextCount: this.errorTextCount, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'd51cc4d2afde55aed2941878912eb3f741c89cf1', part: "base", class: {
203
+ return (h(FormControl, { key: '9b01de18ce3b59ec8fe5c60edbf94ca2d7911d9d', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, size: "medium", errorTextId: this.errorTextId, errorText: this.errorText, hasErrorTextSlot: this.hasErrorTextSlot, errorTextCount: this.errorTextCount, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: '66581ce24488802b0b81030aa916dfc6880e4498', part: "base", class: {
204
204
  range: true,
205
205
  // States
206
206
  'range--disabled': this.disabled,
@@ -208,7 +208,7 @@ export class SixRange {
208
208
  'range--tooltip-visible': this.hasTooltip,
209
209
  'range--tooltip-top': this.tooltip === 'top',
210
210
  'range--tooltip-bottom': this.tooltip === 'bottom',
211
- }, onTouchStart: this.handleTouchStart }, h("input", { key: 'bfa94717d2ad6e8b5e7b513aa49697b1232e0502', part: "input", ref: (el) => (this.nativeInput = el), type: "range", class: "range__control", name: this.name, disabled: this.disabled, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.tooltip !== 'none' && (h("output", { key: '4db780c67679a9e6d36ead8ae23e5ba6ead2a5ec', part: "tooltip", ref: (el) => (this.output = el), class: "range__tooltip" }, this.tooltipFormatter(this.value))))));
211
+ }, onTouchStart: this.handleTouchStart }, h("input", { key: '9e6a87ae4004e65bc9861064654bcc1a5babcd07', part: "input", ref: (el) => (this.nativeInput = el), type: "range", class: "range__control", name: this.name, disabled: this.disabled, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.tooltip !== 'none' && (h("output", { key: '701b765cf0c2e3e3ed3a8ebcb3853a53f389ff3b', part: "tooltip", ref: (el) => (this.output = el), class: "range__tooltip" }, this.tooltipFormatter(this.value))))));
212
212
  }
213
213
  static get is() { return "six-range"; }
214
214
  static get encapsulation() { return "shadow"; }
@@ -97,11 +97,11 @@ export class SixRating {
97
97
  });
98
98
  }
99
99
  render() {
100
- return (h(FormControl, { key: 'ca3de959a1ffb915f0102ca6baa4a43c799d67ec', inputId: this.ratingId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, helpText: this.helpText, hasErrorTextSlot: this.hasErrorSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'ef452485f9c3615f4caeaefce7f7034d7f64119f', part: "base", class: {
100
+ return (h(FormControl, { key: '9ba64e8020d50b0685551b163bbdc9fe5ffcc473', inputId: this.ratingId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, helpText: this.helpText, hasErrorTextSlot: this.hasErrorSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'c7e8bd81467b9dc1eef04266502e43ca91192732', part: "base", class: {
101
101
  'six-rating': true,
102
102
  'six-rating--readonly': this.readonly,
103
103
  'six-rating--disabled': this.disabled,
104
- }, role: "slider", "aria-label": this.label, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabindex: this.disabled ? '-1' : '0', onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown }, this.renderStars(), h("input", { key: '187ec03d83c3b29fc5917a9abab324d40930b8f4', part: "input", id: this.ratingId, type: "hidden", max: this.max, min: 0, name: this.name, value: this.value, disabled: this.disabled, required: this.required, role: "slider", "aria-labelledby": this.labelId }))));
104
+ }, role: "slider", "aria-label": this.label, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabindex: this.disabled ? '-1' : '0', onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown }, this.renderStars(), h("input", { key: 'c7f6e028073845efed162b0c13942375941f5549', part: "input", id: this.ratingId, type: "hidden", max: this.max, min: 0, name: this.name, value: this.value, disabled: this.disabled, required: this.required, role: "slider", "aria-labelledby": this.labelId }))));
105
105
  }
106
106
  static get is() { return "six-rating"; }
107
107
  static get encapsulation() { return "shadow"; }
@@ -20,7 +20,7 @@ export class SixRoot {
20
20
  this.version = '';
21
21
  }
22
22
  render() {
23
- return (h("host", { key: '574331a30ddbdff3fb37129ec8e46c873bc1832e', class: "six-root" }, h("header", { key: 'f70f24b925ba9a88156d46a6481f6ab3f415bdad', part: "header" }, this.stage && h("six-stage-indicator", { key: '4fe5f33c59e77fcd1cae71afa5ccdd227fbd3d74', stage: this.stage }, this.version), h("slot", { key: '92fcdbb991e5593d0f5e602a3dc72b3bc95ce415', name: "header" })), h("nav", { key: 'd26e8e840ae344dcda1e81879e50f45981ad0035', class: "six-root__left-sidebar", part: "left-sidebar" }, h("slot", { key: 'da2e4b7ea1338e68970364d279753b7dd9ce4716', name: "left-sidebar" })), h("main", { key: '13c283e1e1150c3a6f0cc76feed50889023c8bfc', part: "main" }, h("div", { key: '0fd0a46e4d68dc7af4f4444de6cbd0cb68e3098a', class: { 'six-root__container': true, 'six-root__container--padded': this.padded }, part: "container" }, h("slot", { key: '5591878851514068d3ce5751af12fa86aa6449ca', name: "main" })), h("div", { key: 'fe14e87f84217215d03545b5094f462981124093', class: "six-root__footer" }, h("slot", { key: '44cd8020e7ba2ee5a4bfb50a8e9f46cac4c6010f', name: "footer" }))), h("nav", { key: 'a26ca2c92e7e0ef955bea7796270a5d64e9c1aec', class: "six-root__right-sidebar", part: "right-sidebar" }, h("slot", { key: '8d72471d1f4e06722eed5042dd8e4a5f9141b403', name: "right-sidebar" }))));
23
+ return (h("host", { key: '045dca1aa5b75c3b3c600bd569d73747ebd21c38', class: "six-root" }, h("header", { key: '19430d1e5f9060152c795ed4548b4774a43f34e8', part: "header" }, this.stage && h("six-stage-indicator", { key: '7d79552068cca2510da31c67134160da554d94c4', stage: this.stage }, this.version), h("slot", { key: '661db283a073f9772eb4bb6a9ea0fb9c3492193c', name: "header" })), h("nav", { key: 'ac94418c7b7fca25aa4b99725bab442dbd3b1536', class: "six-root__left-sidebar", part: "left-sidebar" }, h("slot", { key: '98995975b462b8954fb40da95602cd6198c7ca18', name: "left-sidebar" })), h("main", { key: 'bf5be0209eea18096e1e6f18dcb0e5ad9fef73c0', part: "main" }, h("div", { key: '25b4d0cbc135d54ff2576f853f3ff3dd8fec0d3b', class: { 'six-root__container': true, 'six-root__container--padded': this.padded }, part: "container" }, h("slot", { key: '497b196c44123903a2024931f6ac860d728e4880', name: "main" })), h("div", { key: '6807b1db1e0da24e73a239ee9ef51ad3115eee52', class: "six-root__footer" }, h("slot", { key: 'af2cef1fbbcdfa6fbf267a2bc88b25e3fe7ddb42', name: "footer" }))), h("nav", { key: 'ab71c8248a17f4fe4db6667ea1fb401528372ac1', class: "six-root__right-sidebar", part: "right-sidebar" }, h("slot", { key: 'ed718d2e22f2607f6c6b7a1b689b5b3a55fa2e79', name: "right-sidebar" }))));
24
24
  }
25
25
  static get is() { return "six-root"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -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: '11810533a79d5685e6ab768f0fbc8d9594d44de4', class: "six-sidebar" }, h("div", { key: '6908b34bd6df174046145e9c4813278703e0d7cf', 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: '31557fda47113669da4d999a54f0074b37daffc8' }))));
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: '968d681e125a0c399973cfa9d37ac5f9c269042f', 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: 'cd6ecec3465b0aeb625d3f0d0e7f8f6a8e76a25f', class: "six-sidebar-item__icon" }, this.icon), h("slot", { key: 'a54998cb6bc27463ab2f9402736008a8767b8358' })));
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: 'fd6c9c888316e46623e92b779c2215888783413b', 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: 'd7d5f569d8aea4f7203f7c0973cf212bd6bcfc60', 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: '4043bb4abed6a44a360b5409b0e4ebd5929a719f', part: "control", class: "switch__control" }, h("span", { key: 'd93e868866ea81ae2c2832ddc6fdcb11c0b23679', part: "thumb", class: "switch__thumb" }), h("input", { key: '7e5cff86449295f36e85b221f8795f3df18808ae', 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: 'c0823f84eb3a30c2e0fdfe5acb6f1390e2b389aa', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: 'aeb69e52fd37efab7ee8061d3c69bfab1c174933' })))));
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"; }
@@ -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: '40b4042f28816b55ef585cf24570b64a44031863', id: this.host.id || this.componentId }, h("div", { key: 'e4e8ba43cf2e1384a421835fe1131ea411ac7a18', 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', title: this.host.innerHTML }, h("slot", { key: '39b1a75c51726543e0371e2607c6aa9197483b34' }), this.closable && (h("six-icon-button", { key: 'b9b2468f19b875ea58292f9ed330b49cff084d7c', name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: 'da5cf7175879826bfb96f52cd8aca427372e32e6', 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
@@ -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: 'b4c54fb42d68a3462abbd78dda16b1738e81dc57', id: this.host.id || this.componentId, style: { display: this.active ? 'block' : 'none' } }, h("div", { key: '734645855fb3a875a6a43e46383122ddad15bbb3', part: "base", class: "tab-panel", role: "tabpanel", "aria-selected": this.active ? 'true' : 'false', "aria-hidden": this.active ? 'false' : 'true' }, h("slot", { key: '1a789d112f5a048ac36f9a7e70208c99fb66c6c9' }))));
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: 'e8a2448511ebcfa91f9714c1e575679fca929310', 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: 'a8bffabc14f61bff5f499cd9324cb17497a6082b', ref: (el) => (this.tooltipElement = el) }, h("span", { key: '28a60248833682018fa9f11be5d02372893645e5', ref: (el) => (this.contentElement = el), part: "content", class: "tag__content" }, h("slot", { key: 'd47d95687a69a4822575ac3219872a51f445441d', ref: (el) => (this.contentSlotElement = el) }))), this.clearable && (h("six-icon-button", { key: '477d12d125ff90d1cc0adb2bb62bf11bc6510927', 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: '82dacccbeabf732b3d49738f0b5b9d725938014d', 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: '88ddaeed09431fd06608350652de1280e729d44d', 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: '59838f0a6a739c7f6ed950f7ec73c228571e201a', 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: '165474a4301eff8d60788826d0378f33640476f4', disabled: this.disableTooltip || this.label === '', content: this.label }, h("div", { key: 'ae643873a589d648887ab54c614be1cae1e01a95', 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: 'b1fc1fabbf6f853611c7e7401bc007ba23a80985', part: "header", class: "tile__header" }, h("six-icon-button", { key: '3c8241f94b14ddbc2aeded4a7471e003112850bf', 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: '334757a44525044c0d7f78fccf55c9076267c4ff', part: "body", class: "tile__body" }, this.iconName && (h("six-icon", { key: 'ec0904b8125e608d4d1f5ebeeb1b1fd8f8202a18', onClick: this.handleClickEvent, size: iconSize(this.size) }, this.iconName)), this.hasIconSlot && h("slot", { key: '5c4d950efc7de4268da7285024c0900066020c19', name: "icon" })), h("div", { key: '145edac16dcbf511d60d4f044bae7bdd397d939e', 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: 'e11277aca9e4b1d30050f582fef25f4b77815bfd', 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: '39e4128ecdb2166b5fba7955a5370e59beae9801', 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"; }
@@ -359,7 +359,7 @@ export class SixTimepicker {
359
359
  'input--hide': this.inline,
360
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: {
361
361
  timepicker__popup: true,
362
- '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',
363
363
  'timepicker__popup--is-inline': this.inline,
364
364
  } }, ...this.getContent(), this.getAmPmPicker()))));
365
365
  }