@six-group/ui-library 4.2.6 → 4.3.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 (1275) hide show
  1. package/dist/cjs/{form-control-de259450.js → form-control-b39f1df5.js} +2 -2
  2. package/dist/cjs/{form-control-de259450.js.map → form-control-b39f1df5.js.map} +1 -1
  3. package/dist/cjs/index-417a06c8.js +1948 -0
  4. package/dist/cjs/index-417a06c8.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/six-alert.cjs.entry.js +2 -2
  7. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/six-avatar.cjs.entry.js +3 -3
  9. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  10. package/dist/cjs/six-badge.cjs.entry.js +3 -3
  11. package/dist/cjs/six-button.cjs.entry.js +4 -4
  12. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  13. package/dist/cjs/six-card.cjs.entry.js +2 -2
  14. package/dist/cjs/{six-checkbox_2.cjs.entry.js → six-checkbox.cjs.entry.js} +5 -69
  15. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
  16. package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
  17. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  18. package/dist/cjs/six-details.cjs.entry.js +4 -4
  19. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  20. package/dist/cjs/six-dialog.cjs.entry.js +3 -3
  21. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  22. package/dist/cjs/six-drawer.cjs.entry.js +3 -3
  23. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  24. package/dist/cjs/{six-dropdown_2.cjs.entry.js → six-dropdown_3.cjs.entry.js} +73 -9
  25. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
  26. package/dist/cjs/six-error-page.cjs.entry.js +2 -2
  27. package/dist/cjs/six-error.cjs.entry.js +2 -2
  28. package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
  29. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  30. package/dist/cjs/six-file-list.cjs.entry.js +2 -2
  31. package/dist/cjs/six-file-upload.cjs.entry.js +6 -9
  32. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  34. package/dist/cjs/six-group-label.cjs.entry.js +3 -3
  35. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
  36. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
  37. package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
  38. package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
  39. package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
  40. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
  41. package/dist/cjs/six-header.cjs.entry.js +40 -31
  42. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-icon-button.cjs.entry.js +11 -5
  44. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-icon.cjs.entry.js +3 -3
  46. package/dist/cjs/six-input.cjs.entry.js +5 -5
  47. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-item-picker.cjs.entry.js +4 -4
  49. package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
  50. package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
  51. package/dist/cjs/six-main-container.cjs.entry.js +2 -2
  52. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  53. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  54. package/dist/cjs/six-picto.cjs.entry.js +2 -2
  55. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  56. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  58. package/dist/cjs/six-radio.cjs.entry.js +3 -3
  59. package/dist/cjs/six-range.cjs.entry.js +4 -4
  60. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-root.cjs.entry.js +2 -2
  62. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-search-field.cjs.entry.js +2 -2
  64. package/dist/cjs/six-select.cjs.entry.js +8 -8
  65. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  66. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +3 -3
  67. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/six-sidebar-item.cjs.entry.js +4 -4
  69. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  70. package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
  71. package/dist/cjs/six-spinner.cjs.entry.js +39 -6
  72. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
  74. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  75. package/dist/cjs/six-tab-group.cjs.entry.js +3 -3
  76. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  78. package/dist/cjs/six-tab.cjs.entry.js +3 -3
  79. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  80. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  81. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  82. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  83. package/dist/cjs/six-tile.cjs.entry.js +6 -6
  84. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-timepicker.cjs.entry.js +3 -3
  86. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
  88. package/dist/cjs/ui-library.cjs.js +10 -10
  89. package/dist/cjs/ui-library.cjs.js.map +1 -1
  90. package/dist/collection/collection-manifest.json +6 -2
  91. package/dist/collection/components/six-alert/six-alert.js +1 -1
  92. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  93. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  94. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  95. package/dist/collection/components/six-badge/six-badge.js +2 -2
  96. package/dist/collection/components/six-button/six-button.css +0 -4
  97. package/dist/collection/components/six-button/six-button.js +2 -2
  98. package/dist/collection/components/six-button/six-button.js.map +1 -1
  99. package/dist/collection/components/six-card/six-card.js +1 -1
  100. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  101. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  102. package/dist/collection/components/six-datepicker/six-datepicker.js +3 -3
  103. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  104. package/dist/collection/components/six-details/six-details.js +3 -3
  105. package/dist/collection/components/six-details/six-details.js.map +1 -1
  106. package/dist/collection/components/six-dialog/six-dialog.js +2 -2
  107. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  108. package/dist/collection/components/six-drawer/six-drawer.js +2 -2
  109. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  110. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  111. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  112. package/dist/collection/components/six-error/six-error.js +1 -1
  113. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  114. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  115. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  116. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  117. package/dist/collection/components/six-file-upload/six-file-upload.js +5 -8
  118. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  119. package/dist/collection/components/six-footer/six-footer.js +1 -1
  120. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  121. package/dist/collection/components/six-header/six-header.css +5 -29
  122. package/dist/collection/components/six-header/six-header.js +115 -47
  123. package/dist/collection/components/six-header/six-header.js.map +1 -1
  124. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
  125. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
  126. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
  127. package/dist/collection/components/six-header-item/six-header-item.css +15 -0
  128. package/dist/collection/components/six-header-item/six-header-item.js +51 -0
  129. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
  130. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
  131. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
  132. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
  133. package/dist/collection/components/six-icon/six-icon.js +2 -2
  134. package/dist/collection/components/six-icon-button/six-icon-button.css +2 -1
  135. package/dist/collection/components/six-icon-button/six-icon-button.js +60 -3
  136. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  137. package/dist/collection/components/six-input/six-input.js +4 -4
  138. package/dist/collection/components/six-input/six-input.js.map +1 -1
  139. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  140. package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
  141. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  142. package/dist/collection/components/six-logo/six-logo.css +18 -0
  143. package/dist/collection/components/six-logo/six-logo.js +54 -0
  144. package/dist/collection/components/six-logo/six-logo.js.map +1 -0
  145. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  146. package/dist/collection/components/six-menu/six-menu.js +2 -2
  147. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  148. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  149. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  150. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  151. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  152. package/dist/collection/components/six-picto/six-picto.js +1 -1
  153. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  154. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  155. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  156. package/dist/collection/components/six-radio/six-radio.js +2 -2
  157. package/dist/collection/components/six-range/six-range.js +2 -2
  158. package/dist/collection/components/six-range/six-range.js.map +1 -1
  159. package/dist/collection/components/six-root/six-root.js +1 -1
  160. package/dist/collection/components/six-root/six-root.js.map +1 -1
  161. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  162. package/dist/collection/components/six-select/six-select.js +6 -6
  163. package/dist/collection/components/six-select/six-select.js.map +1 -1
  164. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  165. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +7 -0
  166. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  167. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +7 -0
  168. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +1 -1
  169. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  170. package/dist/collection/components/six-spinner/six-spinner.css +45 -0
  171. package/dist/collection/components/six-spinner/six-spinner.js +59 -10
  172. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  173. package/dist/collection/components/six-switch/six-switch.js +2 -2
  174. package/dist/collection/components/six-tab/six-tab.js +2 -2
  175. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  176. package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
  177. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  178. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  179. package/dist/collection/components/six-tag/six-tag.js +2 -2
  180. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  181. package/dist/collection/components/six-textarea/six-textarea.js +4 -4
  182. package/dist/collection/components/six-tile/six-tile.js +5 -5
  183. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  184. package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
  185. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  186. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  187. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  188. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  189. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  190. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  191. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  192. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  193. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  194. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  195. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  196. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  197. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  198. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  199. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  200. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  201. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  202. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  203. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  204. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  205. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  206. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  207. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  208. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  209. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  210. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  211. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  212. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  213. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  214. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  215. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  216. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  217. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  218. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  219. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  220. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  221. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  222. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  223. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  224. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  225. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  226. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  227. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  228. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  229. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  230. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  231. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  232. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  233. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  234. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  235. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  236. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  237. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  238. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  239. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  240. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  241. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  242. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  243. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  244. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  245. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  246. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  247. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  248. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  249. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  250. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  251. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  252. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  253. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  254. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  255. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  256. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  257. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  258. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  259. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  260. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  261. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  262. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  263. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  264. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  265. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  266. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  267. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  268. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  269. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  270. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  271. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  272. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  273. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  274. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  275. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  276. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  277. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  278. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  279. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  280. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  281. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  282. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  283. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  284. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  285. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  286. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  287. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  288. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  289. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  290. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  291. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  292. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  293. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  294. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  295. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  296. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  297. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  298. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  299. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  300. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  301. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  302. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  303. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  304. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  305. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  306. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  307. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  308. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  309. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  310. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  311. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  312. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  313. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  314. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  315. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  316. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  317. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  318. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  319. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  320. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  321. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  322. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  323. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  324. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  325. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  326. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  327. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  328. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  329. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  330. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  331. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  332. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  333. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  334. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  335. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  336. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  337. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  338. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  339. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  340. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  341. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  342. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  343. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  344. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  345. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  346. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  347. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  348. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  349. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  350. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  351. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  352. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  353. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  354. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  355. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  356. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  357. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  358. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  359. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  360. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  361. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  362. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  363. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  364. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  365. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  366. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  367. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  368. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  369. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  370. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  371. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  372. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  373. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  374. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  375. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  376. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  377. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  378. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  379. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  380. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  381. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  382. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  383. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  384. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  385. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  386. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  387. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  388. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  389. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  390. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  391. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  392. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  393. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  394. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  395. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  396. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  397. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  398. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  399. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  400. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  401. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  402. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  403. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  404. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  405. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  406. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  407. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  408. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  409. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  410. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  411. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  412. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  413. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  414. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  415. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  416. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  417. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  418. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  419. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  420. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  421. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  422. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  423. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  424. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  425. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  426. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  427. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  428. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  429. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  430. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  431. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  432. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  433. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  434. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  435. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  436. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  437. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  438. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  439. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  440. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  441. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  442. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  443. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  444. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  445. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  446. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  447. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  448. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  449. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  450. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  451. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  452. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  453. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  454. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  455. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  456. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  457. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  458. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  459. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  460. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  461. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  462. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  463. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  464. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  465. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  466. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  467. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  468. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  469. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  470. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  471. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  472. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  473. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  474. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  475. package/dist/components/index.js +8 -0
  476. package/dist/components/index.js.map +1 -1
  477. package/dist/components/six-alert.js +1 -1
  478. package/dist/components/six-alert.js.map +1 -1
  479. package/dist/components/six-avatar.js +2 -2
  480. package/dist/components/six-avatar.js.map +1 -1
  481. package/dist/components/six-badge.js +2 -2
  482. package/dist/components/six-button2.js +3 -3
  483. package/dist/components/six-button2.js.map +1 -1
  484. package/dist/components/six-card.js +1 -1
  485. package/dist/components/six-checkbox2.js +2 -2
  486. package/dist/components/six-checkbox2.js.map +1 -1
  487. package/dist/components/six-datepicker.js +3 -3
  488. package/dist/components/six-datepicker.js.map +1 -1
  489. package/dist/components/six-details2.js +3 -3
  490. package/dist/components/six-details2.js.map +1 -1
  491. package/dist/components/six-dialog.js +2 -2
  492. package/dist/components/six-dialog.js.map +1 -1
  493. package/dist/components/six-drawer.js +2 -2
  494. package/dist/components/six-drawer.js.map +1 -1
  495. package/dist/components/six-dropdown2.js +5 -5
  496. package/dist/components/six-dropdown2.js.map +1 -1
  497. package/dist/components/six-error-page.js +1 -1
  498. package/dist/components/six-error2.js +1 -1
  499. package/dist/components/six-file-list-item.js +2 -2
  500. package/dist/components/six-file-list-item.js.map +1 -1
  501. package/dist/components/six-file-list.js +1 -1
  502. package/dist/components/six-file-upload.js +5 -8
  503. package/dist/components/six-file-upload.js.map +1 -1
  504. package/dist/components/six-footer.js +1 -1
  505. package/dist/components/six-group-label.js +1 -1
  506. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  507. package/dist/components/six-header-dropdown-item.js +103 -0
  508. package/dist/components/six-header-dropdown-item.js.map +1 -0
  509. package/dist/components/six-header-item.d.ts +11 -0
  510. package/dist/components/six-header-item.js +8 -0
  511. package/dist/components/six-header-item.js.map +1 -0
  512. package/dist/components/six-header-item2.js +39 -0
  513. package/dist/components/six-header-item2.js.map +1 -0
  514. package/dist/components/six-header-menu-button.d.ts +11 -0
  515. package/dist/components/six-header-menu-button.js +57 -0
  516. package/dist/components/six-header-menu-button.js.map +1 -0
  517. package/dist/components/six-header.js +64 -42
  518. package/dist/components/six-header.js.map +1 -1
  519. package/dist/components/six-icon-button2.js +14 -5
  520. package/dist/components/six-icon-button2.js.map +1 -1
  521. package/dist/components/six-icon2.js +2 -2
  522. package/dist/components/six-input2.js +3 -3
  523. package/dist/components/six-input2.js.map +1 -1
  524. package/dist/components/six-item-picker2.js +3 -3
  525. package/dist/components/six-language-switcher.js +1 -1
  526. package/dist/components/six-layout-grid.js +1 -1
  527. package/dist/components/six-logo.d.ts +11 -0
  528. package/dist/components/six-logo.js +8 -0
  529. package/dist/components/six-logo.js.map +1 -0
  530. package/dist/components/six-logo2.js +42 -0
  531. package/dist/components/six-logo2.js.map +1 -0
  532. package/dist/components/six-main-container.js +1 -1
  533. package/dist/components/six-menu-divider.js +1 -1
  534. package/dist/components/six-menu-item2.js +2 -2
  535. package/dist/components/six-menu-item2.js.map +1 -1
  536. package/dist/components/six-menu-label.js +1 -1
  537. package/dist/components/six-menu2.js +2 -2
  538. package/dist/components/six-menu2.js.map +1 -1
  539. package/dist/components/six-picto2.js +1 -1
  540. package/dist/components/six-progress-bar.js +3 -3
  541. package/dist/components/six-progress-bar.js.map +1 -1
  542. package/dist/components/six-progress-ring.js +1 -1
  543. package/dist/components/six-radio.js +2 -2
  544. package/dist/components/six-range.js +2 -2
  545. package/dist/components/six-range.js.map +1 -1
  546. package/dist/components/six-root.js +1 -1
  547. package/dist/components/six-root.js.map +1 -1
  548. package/dist/components/six-search-field.js +1 -1
  549. package/dist/components/six-select.js +6 -6
  550. package/dist/components/six-select.js.map +1 -1
  551. package/dist/components/six-sidebar-item-group.js +2 -2
  552. package/dist/components/six-sidebar-item-group.js.map +1 -1
  553. package/dist/components/six-sidebar-item.js +3 -3
  554. package/dist/components/six-sidebar-item.js.map +1 -1
  555. package/dist/components/six-sidebar.js +2 -2
  556. package/dist/components/six-spinner2.js +39 -5
  557. package/dist/components/six-spinner2.js.map +1 -1
  558. package/dist/components/six-switch.js +2 -2
  559. package/dist/components/six-tab-group.js +2 -2
  560. package/dist/components/six-tab-group.js.map +1 -1
  561. package/dist/components/six-tab-panel.js +1 -1
  562. package/dist/components/six-tab.js +2 -2
  563. package/dist/components/six-tab.js.map +1 -1
  564. package/dist/components/six-tag.js +2 -2
  565. package/dist/components/six-tag.js.map +1 -1
  566. package/dist/components/six-textarea.js +2 -2
  567. package/dist/components/six-tile.js +5 -5
  568. package/dist/components/six-tile.js.map +1 -1
  569. package/dist/components/six-timepicker2.js +2 -2
  570. package/dist/components/six-timepicker2.js.map +1 -1
  571. package/dist/components/six-tooltip2.js +2 -2
  572. package/dist/components.d.ts +34 -0
  573. package/dist/components.json +515 -39
  574. package/dist/esm/{form-control-30c5bd8b.js → form-control-ad1710bf.js} +2 -2
  575. package/dist/esm/{form-control-30c5bd8b.js.map → form-control-ad1710bf.js.map} +1 -1
  576. package/dist/esm/index-a7bee415.js +1919 -0
  577. package/dist/esm/index-a7bee415.js.map +1 -0
  578. package/dist/esm/loader.js +3 -3
  579. package/dist/esm/six-alert.entry.js +2 -2
  580. package/dist/esm/six-alert.entry.js.map +1 -1
  581. package/dist/esm/six-avatar.entry.js +3 -3
  582. package/dist/esm/six-avatar.entry.js.map +1 -1
  583. package/dist/esm/six-badge.entry.js +3 -3
  584. package/dist/esm/six-button.entry.js +4 -4
  585. package/dist/esm/six-button.entry.js.map +1 -1
  586. package/dist/esm/six-card.entry.js +2 -2
  587. package/dist/esm/{six-checkbox_2.entry.js → six-checkbox.entry.js} +7 -70
  588. package/dist/esm/six-checkbox.entry.js.map +1 -0
  589. package/dist/esm/six-datepicker.entry.js +4 -4
  590. package/dist/esm/six-datepicker.entry.js.map +1 -1
  591. package/dist/esm/six-details.entry.js +4 -4
  592. package/dist/esm/six-details.entry.js.map +1 -1
  593. package/dist/esm/six-dialog.entry.js +3 -3
  594. package/dist/esm/six-dialog.entry.js.map +1 -1
  595. package/dist/esm/six-drawer.entry.js +3 -3
  596. package/dist/esm/six-drawer.entry.js.map +1 -1
  597. package/dist/esm/{six-dropdown_2.entry.js → six-dropdown_3.entry.js} +73 -10
  598. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  599. package/dist/esm/six-error-page.entry.js +2 -2
  600. package/dist/esm/six-error.entry.js +2 -2
  601. package/dist/esm/six-file-list-item.entry.js +3 -3
  602. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  603. package/dist/esm/six-file-list.entry.js +2 -2
  604. package/dist/esm/six-file-upload.entry.js +6 -9
  605. package/dist/esm/six-file-upload.entry.js.map +1 -1
  606. package/dist/esm/six-footer.entry.js +2 -2
  607. package/dist/esm/six-group-label.entry.js +3 -3
  608. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  609. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  610. package/dist/esm/six-header-item_2.entry.js +42 -0
  611. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  612. package/dist/esm/six-header-menu-button.entry.js +19 -0
  613. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  614. package/dist/esm/six-header.entry.js +40 -31
  615. package/dist/esm/six-header.entry.js.map +1 -1
  616. package/dist/esm/six-icon-button.entry.js +11 -5
  617. package/dist/esm/six-icon-button.entry.js.map +1 -1
  618. package/dist/esm/six-icon.entry.js +3 -3
  619. package/dist/esm/six-input.entry.js +5 -5
  620. package/dist/esm/six-input.entry.js.map +1 -1
  621. package/dist/esm/six-item-picker.entry.js +4 -4
  622. package/dist/esm/six-language-switcher.entry.js +2 -2
  623. package/dist/esm/six-layout-grid.entry.js +2 -2
  624. package/dist/esm/six-main-container.entry.js +2 -2
  625. package/dist/esm/six-menu-divider.entry.js +2 -2
  626. package/dist/esm/six-menu-label.entry.js +2 -2
  627. package/dist/esm/six-picto.entry.js +2 -2
  628. package/dist/esm/six-progress-bar.entry.js +4 -4
  629. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  630. package/dist/esm/six-progress-ring.entry.js +2 -2
  631. package/dist/esm/six-radio.entry.js +3 -3
  632. package/dist/esm/six-range.entry.js +4 -4
  633. package/dist/esm/six-range.entry.js.map +1 -1
  634. package/dist/esm/six-root.entry.js +2 -2
  635. package/dist/esm/six-root.entry.js.map +1 -1
  636. package/dist/esm/six-search-field.entry.js +2 -2
  637. package/dist/esm/six-select.entry.js +8 -8
  638. package/dist/esm/six-select.entry.js.map +1 -1
  639. package/dist/esm/six-sidebar-item-group.entry.js +3 -3
  640. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  641. package/dist/esm/six-sidebar-item.entry.js +4 -4
  642. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  643. package/dist/esm/six-sidebar.entry.js +3 -3
  644. package/dist/esm/six-spinner.entry.js +39 -6
  645. package/dist/esm/six-spinner.entry.js.map +1 -1
  646. package/dist/esm/six-stage-indicator.entry.js +1 -1
  647. package/dist/esm/six-switch.entry.js +4 -4
  648. package/dist/esm/six-tab-group.entry.js +3 -3
  649. package/dist/esm/six-tab-group.entry.js.map +1 -1
  650. package/dist/esm/six-tab-panel.entry.js +2 -2
  651. package/dist/esm/six-tab.entry.js +3 -3
  652. package/dist/esm/six-tab.entry.js.map +1 -1
  653. package/dist/esm/six-tag.entry.js +3 -3
  654. package/dist/esm/six-tag.entry.js.map +1 -1
  655. package/dist/esm/six-textarea.entry.js +4 -4
  656. package/dist/esm/six-tile.entry.js +6 -6
  657. package/dist/esm/six-tile.entry.js.map +1 -1
  658. package/dist/esm/six-timepicker.entry.js +3 -3
  659. package/dist/esm/six-timepicker.entry.js.map +1 -1
  660. package/dist/esm/six-tooltip.entry.js +3 -3
  661. package/dist/esm/ui-library.js +11 -11
  662. package/dist/esm/ui-library.js.map +1 -1
  663. package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -1
  664. package/dist/types/components/six-header/six-header.d.ts +79 -18
  665. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  666. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  667. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  668. package/dist/types/components/six-icon-button/six-icon-button.d.ts +6 -0
  669. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  670. package/dist/types/components/six-spinner/six-spinner.d.ts +24 -4
  671. package/dist/types/components.d.ts +208 -8
  672. package/dist/types/stencil-public-runtime.d.ts +3 -10
  673. package/dist/types/utils/type-check.d.ts +1 -1
  674. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  675. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  676. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  677. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  678. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  679. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  680. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  681. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  682. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  683. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  684. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  685. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  686. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  687. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  688. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  689. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  690. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  691. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  692. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  693. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  694. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  695. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  696. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  697. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  698. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  699. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  700. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  701. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  702. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  703. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  704. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  705. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  706. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  707. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  708. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  709. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  710. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  711. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  712. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  713. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  714. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  715. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  716. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  717. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  718. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  719. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  720. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  721. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  722. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  723. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  724. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  725. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  726. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  727. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  728. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  729. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  730. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  731. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  732. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  733. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  734. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  735. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  736. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  737. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  738. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  739. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  740. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  741. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  742. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  743. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  744. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  745. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  746. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  747. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  748. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  749. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  750. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  751. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  752. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  753. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  754. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  755. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  756. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  757. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  758. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  759. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  760. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  761. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  762. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  763. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  764. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  765. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  766. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  767. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  768. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  769. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  770. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  771. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  772. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  773. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  774. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  775. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  776. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  777. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  778. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  779. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  780. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  781. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  782. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  783. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  784. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  785. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  786. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  787. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  788. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  789. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  790. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  791. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  792. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  793. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  794. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  795. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  796. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  797. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  798. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  799. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  800. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  801. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  802. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  803. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  804. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  805. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  806. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  807. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  808. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  809. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  810. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  811. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  812. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  813. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  814. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  815. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  816. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  817. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  818. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  819. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  820. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  821. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  822. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  823. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  824. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  825. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  826. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  827. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  828. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  829. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  830. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  831. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  832. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  833. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  834. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  835. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  836. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  837. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  838. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  839. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  840. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  841. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  842. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  843. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  844. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  845. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  846. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  847. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  848. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  849. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  850. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  851. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  852. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  853. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  854. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  855. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  856. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  857. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  858. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  859. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  860. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  861. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  862. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  863. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  864. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  865. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  866. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  867. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  868. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  869. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  870. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  871. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  872. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  873. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  874. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  875. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  876. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  877. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  878. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  879. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  880. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  881. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  882. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  883. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  884. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  885. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  886. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  887. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  888. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  889. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  890. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  891. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  892. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  893. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  894. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  895. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  896. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  897. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  898. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  899. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  900. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  901. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  902. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  903. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  904. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  905. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  906. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  907. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  908. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  909. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  910. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  911. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  912. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  913. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  914. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  915. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  916. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  917. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  918. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  919. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  920. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  921. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  922. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  923. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  924. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  925. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  926. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  927. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  928. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  929. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  930. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  931. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  932. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  933. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  934. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  935. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  936. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  937. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  938. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  939. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  940. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  941. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  942. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  943. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  944. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  945. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  946. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  947. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  948. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  949. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  950. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  951. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  952. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  953. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  954. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  955. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  956. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  957. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  958. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  959. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  960. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  961. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  962. package/dist/ui-library/index.esm.js.map +1 -1
  963. package/dist/ui-library/{p-d42f1ea9.entry.js → p-03acec96.entry.js} +2 -2
  964. package/dist/ui-library/{p-d42f1ea9.entry.js.map → p-03acec96.entry.js.map} +1 -1
  965. package/dist/ui-library/p-06ba4450.js.map +1 -1
  966. package/dist/ui-library/{p-b7c68f74.entry.js → p-06d562b7.entry.js} +2 -2
  967. package/dist/ui-library/{p-b7c68f74.entry.js.map → p-06d562b7.entry.js.map} +1 -1
  968. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  969. package/dist/ui-library/{p-7c18b8ca.entry.js.map → p-07b6203f.entry.js.map} +1 -1
  970. package/dist/ui-library/{p-2386627e.entry.js → p-0a6b6429.entry.js} +2 -2
  971. package/dist/ui-library/{p-2386627e.entry.js.map → p-0a6b6429.entry.js.map} +1 -1
  972. package/dist/ui-library/p-0cebf1d2.js.map +1 -1
  973. package/dist/ui-library/p-14d09601.entry.js +2 -0
  974. package/dist/ui-library/{p-11344bb8.entry.js.map → p-14d09601.entry.js.map} +1 -1
  975. package/dist/ui-library/{p-45b0748e.entry.js → p-171df3ad.entry.js} +2 -2
  976. package/dist/ui-library/{p-45b0748e.entry.js.map → p-171df3ad.entry.js.map} +1 -1
  977. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  978. package/dist/ui-library/{p-36d5f98a.entry.js.map → p-1cc3b56d.entry.js.map} +1 -1
  979. package/dist/ui-library/{p-7bdd1116.entry.js → p-1cd09d9b.entry.js} +2 -2
  980. package/dist/ui-library/{p-7bdd1116.entry.js.map → p-1cd09d9b.entry.js.map} +1 -1
  981. package/dist/ui-library/{p-416b0439.entry.js → p-1f7a0cb5.entry.js} +2 -2
  982. package/dist/ui-library/{p-416b0439.entry.js.map → p-1f7a0cb5.entry.js.map} +1 -1
  983. package/dist/ui-library/p-2355c444.entry.js +2 -0
  984. package/dist/ui-library/{p-347e568f.entry.js.map → p-2355c444.entry.js.map} +1 -1
  985. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  986. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  987. package/dist/ui-library/{p-c62893e5.entry.js → p-2ad904a7.entry.js} +2 -2
  988. package/dist/ui-library/{p-c62893e5.entry.js.map → p-2ad904a7.entry.js.map} +1 -1
  989. package/dist/ui-library/{p-b5acf54d.entry.js → p-30000e86.entry.js} +2 -2
  990. package/dist/ui-library/{p-b5acf54d.entry.js.map → p-30000e86.entry.js.map} +1 -1
  991. package/dist/ui-library/{p-4d89932f.entry.js → p-42cd3588.entry.js} +2 -2
  992. package/dist/ui-library/{p-4d89932f.entry.js.map → p-42cd3588.entry.js.map} +1 -1
  993. package/dist/ui-library/p-48118ce8.js +3 -0
  994. package/dist/ui-library/p-48118ce8.js.map +1 -0
  995. package/dist/ui-library/{p-b335ed9c.entry.js → p-49019d6c.entry.js} +2 -2
  996. package/dist/ui-library/{p-b335ed9c.entry.js.map → p-49019d6c.entry.js.map} +1 -1
  997. package/dist/ui-library/{p-c6464bfe.entry.js → p-4d72b179.entry.js} +2 -2
  998. package/dist/ui-library/{p-c6464bfe.entry.js.map → p-4d72b179.entry.js.map} +1 -1
  999. package/dist/ui-library/{p-d9586999.entry.js → p-4de4ee7a.entry.js} +2 -2
  1000. package/dist/ui-library/{p-d9586999.entry.js.map → p-4de4ee7a.entry.js.map} +1 -1
  1001. package/dist/ui-library/p-4edde816.entry.js +2 -0
  1002. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  1003. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  1004. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  1005. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1006. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1007. package/dist/ui-library/{p-a398e3eb.entry.js → p-5ece7986.entry.js} +2 -2
  1008. package/dist/ui-library/{p-a398e3eb.entry.js.map → p-5ece7986.entry.js.map} +1 -1
  1009. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1010. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1011. package/dist/ui-library/{p-b60c20aa.entry.js → p-5fc9cd7b.entry.js} +2 -2
  1012. package/dist/ui-library/{p-b60c20aa.entry.js.map → p-5fc9cd7b.entry.js.map} +1 -1
  1013. package/dist/ui-library/{p-4bc7bbdb.entry.js → p-618bf750.entry.js} +2 -2
  1014. package/dist/ui-library/{p-4bc7bbdb.entry.js.map → p-618bf750.entry.js.map} +1 -1
  1015. package/dist/ui-library/{p-63acceb6.entry.js → p-62a1f514.entry.js} +2 -2
  1016. package/dist/ui-library/{p-63acceb6.entry.js.map → p-62a1f514.entry.js.map} +1 -1
  1017. package/dist/ui-library/p-651293e7.js.map +1 -1
  1018. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1019. package/dist/ui-library/{p-189602e4.entry.js.map → p-6513b8ce.entry.js.map} +1 -1
  1020. package/dist/ui-library/{p-47c84904.entry.js → p-6795e0a9.entry.js} +2 -2
  1021. package/dist/ui-library/{p-47c84904.entry.js.map → p-6795e0a9.entry.js.map} +1 -1
  1022. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1023. package/dist/ui-library/{p-9cb83369.entry.js.map → p-6ec126f7.entry.js.map} +1 -1
  1024. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1025. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1026. package/dist/ui-library/{p-06ba653e.entry.js → p-70fac778.entry.js} +2 -2
  1027. package/dist/ui-library/{p-06ba653e.entry.js.map → p-70fac778.entry.js.map} +1 -1
  1028. package/dist/ui-library/{p-037afc74.entry.js → p-7afdff5c.entry.js} +2 -2
  1029. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1030. package/dist/ui-library/{p-4963f03c.entry.js → p-7eb9ae75.entry.js} +2 -2
  1031. package/dist/ui-library/{p-4963f03c.entry.js.map → p-7eb9ae75.entry.js.map} +1 -1
  1032. package/dist/ui-library/p-7f856f00.js.map +1 -1
  1033. package/dist/ui-library/p-8227aaed.js.map +1 -1
  1034. package/dist/ui-library/p-842b492e.js.map +1 -1
  1035. package/dist/ui-library/p-862d474e.js.map +1 -1
  1036. package/dist/ui-library/{p-6f9153be.entry.js → p-870139dc.entry.js} +2 -2
  1037. package/dist/ui-library/{p-6f9153be.entry.js.map → p-870139dc.entry.js.map} +1 -1
  1038. package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
  1039. package/dist/ui-library/{p-605bdd81.js → p-a04460e3.js} +2 -2
  1040. package/dist/ui-library/{p-605bdd81.js.map → p-a04460e3.js.map} +1 -1
  1041. package/dist/ui-library/p-a1502802.js.map +1 -1
  1042. package/dist/ui-library/{p-07c8de65.entry.js → p-a20a702a.entry.js} +2 -2
  1043. package/dist/ui-library/{p-07c8de65.entry.js.map → p-a20a702a.entry.js.map} +1 -1
  1044. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1045. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1046. package/dist/ui-library/{p-0c129b61.entry.js → p-afb15ea4.entry.js} +2 -2
  1047. package/dist/ui-library/{p-0c129b61.entry.js.map → p-afb15ea4.entry.js.map} +1 -1
  1048. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1049. package/dist/ui-library/{p-32e421a3.entry.js.map → p-b361d5da.entry.js.map} +1 -1
  1050. package/dist/ui-library/{p-99f6fe01.entry.js → p-bfb398c6.entry.js} +2 -2
  1051. package/dist/ui-library/{p-99f6fe01.entry.js.map → p-bfb398c6.entry.js.map} +1 -1
  1052. package/dist/ui-library/{p-d88b9c16.entry.js → p-cd65e3b2.entry.js} +2 -2
  1053. package/dist/ui-library/{p-d88b9c16.entry.js.map → p-cd65e3b2.entry.js.map} +1 -1
  1054. package/dist/ui-library/{p-a9e009af.entry.js → p-cd79700c.entry.js} +2 -2
  1055. package/dist/ui-library/{p-a9e009af.entry.js.map → p-cd79700c.entry.js.map} +1 -1
  1056. package/dist/ui-library/{p-419ed003.entry.js → p-cdc9224d.entry.js} +2 -2
  1057. package/dist/ui-library/{p-419ed003.entry.js.map → p-cdc9224d.entry.js.map} +1 -1
  1058. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1059. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1060. package/dist/ui-library/{p-8f1d3461.entry.js → p-d46acf21.entry.js} +2 -2
  1061. package/dist/ui-library/{p-8f1d3461.entry.js.map → p-d46acf21.entry.js.map} +1 -1
  1062. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1063. package/dist/ui-library/{p-030fa1fa.entry.js.map → p-d67b8482.entry.js.map} +1 -1
  1064. package/dist/ui-library/{p-1adc26f2.entry.js → p-db193a32.entry.js} +2 -2
  1065. package/dist/ui-library/{p-1adc26f2.entry.js.map → p-db193a32.entry.js.map} +1 -1
  1066. package/dist/ui-library/p-e080d5b6.js.map +1 -1
  1067. package/dist/ui-library/p-e1255160.js.map +1 -1
  1068. package/dist/ui-library/{p-fe89a7c4.entry.js → p-e1529ef6.entry.js} +2 -2
  1069. package/dist/ui-library/{p-fe89a7c4.entry.js.map → p-e1529ef6.entry.js.map} +1 -1
  1070. package/dist/ui-library/{p-e9b8ad98.entry.js → p-e181944f.entry.js} +2 -2
  1071. package/dist/ui-library/{p-e9b8ad98.entry.js.map → p-e181944f.entry.js.map} +1 -1
  1072. package/dist/ui-library/{p-d1a2f84b.entry.js → p-e6efc08a.entry.js} +2 -2
  1073. package/dist/ui-library/{p-d1a2f84b.entry.js.map → p-e6efc08a.entry.js.map} +1 -1
  1074. package/dist/ui-library/p-e9462085.entry.js +2 -0
  1075. package/dist/ui-library/p-e9462085.entry.js.map +1 -0
  1076. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1077. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1078. package/dist/ui-library/{p-63ee5e7e.entry.js → p-f12b22bc.entry.js} +2 -2
  1079. package/dist/ui-library/{p-63ee5e7e.entry.js.map → p-f12b22bc.entry.js.map} +1 -1
  1080. package/dist/ui-library/p-f136a6b2.js.map +1 -1
  1081. package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
  1082. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1083. package/dist/ui-library/{p-cf109cbf.entry.js → p-ffce31da.entry.js} +2 -2
  1084. package/dist/ui-library/{p-cf109cbf.entry.js.map → p-ffce31da.entry.js.map} +1 -1
  1085. package/dist/ui-library/ui-library.css +1 -1
  1086. package/dist/ui-library/ui-library.esm.js +1 -1
  1087. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1088. package/loader/cdn.js +1 -3
  1089. package/loader/index.cjs.js +1 -3
  1090. package/loader/index.d.ts +3 -0
  1091. package/loader/index.es2017.js +1 -3
  1092. package/loader/index.js +1 -3
  1093. package/package.json +6 -18
  1094. package/dist/cjs/index-1f707a55.js +0 -2718
  1095. package/dist/cjs/index-1f707a55.js.map +0 -1
  1096. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +0 -1
  1097. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1098. package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
  1099. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
  1100. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
  1101. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
  1102. package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
  1103. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
  1104. package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
  1105. package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
  1106. package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
  1107. package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
  1108. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
  1109. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
  1110. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
  1111. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
  1112. package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
  1113. package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
  1114. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
  1115. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
  1116. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
  1117. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
  1118. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
  1119. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
  1120. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
  1121. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
  1122. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
  1123. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
  1124. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
  1125. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
  1126. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -266
  1127. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
  1128. package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
  1129. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
  1130. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
  1131. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
  1132. package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
  1133. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
  1134. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
  1135. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
  1136. package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
  1137. package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
  1138. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
  1139. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
  1140. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
  1141. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
  1142. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
  1143. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
  1144. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
  1145. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
  1146. package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
  1147. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
  1148. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
  1149. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
  1150. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
  1151. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
  1152. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
  1153. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
  1154. package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
  1155. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
  1156. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
  1157. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
  1158. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
  1159. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
  1160. package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
  1161. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
  1162. package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
  1163. package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
  1164. package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
  1165. package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
  1166. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
  1167. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
  1168. package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
  1169. package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
  1170. package/dist/collection/components/six-select/test/util.spec.js +0 -103
  1171. package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
  1172. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
  1173. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
  1174. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
  1175. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
  1176. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
  1177. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
  1178. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
  1179. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
  1180. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
  1181. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
  1182. package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
  1183. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
  1184. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
  1185. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
  1186. package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
  1187. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
  1188. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
  1189. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
  1190. package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
  1191. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
  1192. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
  1193. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
  1194. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
  1195. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
  1196. package/dist/collection/files/file-list.json +0 -308
  1197. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1198. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1199. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1200. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1201. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1202. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1203. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1204. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1205. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1206. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1207. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1208. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1209. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1210. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1211. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1212. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1213. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1214. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1215. package/dist/collection/utils/date-util.spec.js +0 -995
  1216. package/dist/collection/utils/date-util.spec.js.map +0 -1
  1217. package/dist/collection/utils/scroll.spec.js +0 -122
  1218. package/dist/collection/utils/scroll.spec.js.map +0 -1
  1219. package/dist/collection/utils/time.util.spec.js +0 -368
  1220. package/dist/collection/utils/time.util.spec.js.map +0 -1
  1221. package/dist/esm/index-5390c1d6.js +0 -2689
  1222. package/dist/esm/index-5390c1d6.js.map +0 -1
  1223. package/dist/esm/polyfills/core-js.js +0 -11
  1224. package/dist/esm/polyfills/dom.js +0 -79
  1225. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1226. package/dist/esm/polyfills/index.js +0 -34
  1227. package/dist/esm/polyfills/system.js +0 -6
  1228. package/dist/esm/six-checkbox_2.entry.js.map +0 -1
  1229. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1230. package/dist/ui-library/files/file-list.json +0 -308
  1231. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1232. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1233. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1234. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1235. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1236. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1237. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1238. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1239. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1240. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1241. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1242. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1243. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1244. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1245. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1246. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1247. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1248. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1249. package/dist/ui-library/p-030fa1fa.entry.js +0 -2
  1250. package/dist/ui-library/p-037afc74.entry.js.map +0 -1
  1251. package/dist/ui-library/p-047d02ad.entry.js +0 -2
  1252. package/dist/ui-library/p-047d02ad.entry.js.map +0 -1
  1253. package/dist/ui-library/p-05eb1bab.js +0 -3
  1254. package/dist/ui-library/p-05eb1bab.js.map +0 -1
  1255. package/dist/ui-library/p-11344bb8.entry.js +0 -2
  1256. package/dist/ui-library/p-14e5fccc.entry.js +0 -2
  1257. package/dist/ui-library/p-14e5fccc.entry.js.map +0 -1
  1258. package/dist/ui-library/p-189602e4.entry.js +0 -2
  1259. package/dist/ui-library/p-32e421a3.entry.js +0 -2
  1260. package/dist/ui-library/p-347e568f.entry.js +0 -2
  1261. package/dist/ui-library/p-36d5f98a.entry.js +0 -2
  1262. package/dist/ui-library/p-37433242.entry.js +0 -2
  1263. package/dist/ui-library/p-37433242.entry.js.map +0 -1
  1264. package/dist/ui-library/p-3b5a76ea.entry.js +0 -2
  1265. package/dist/ui-library/p-3b5a76ea.entry.js.map +0 -1
  1266. package/dist/ui-library/p-6b40c40c.entry.js +0 -2
  1267. package/dist/ui-library/p-6b40c40c.entry.js.map +0 -1
  1268. package/dist/ui-library/p-7c18b8ca.entry.js +0 -2
  1269. package/dist/ui-library/p-96d441e9.entry.js +0 -2
  1270. package/dist/ui-library/p-96d441e9.entry.js.map +0 -1
  1271. package/dist/ui-library/p-9cb83369.entry.js +0 -2
  1272. package/dist/ui-library/p-e14d78e9.entry.js +0 -2
  1273. package/dist/ui-library/p-e14d78e9.entry.js.map +0 -1
  1274. package/dist/ui-library/p-ebbe9bdc.entry.js +0 -2
  1275. package/dist/ui-library/p-ebbe9bdc.entry.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import{r as i,c as t,h as e,g as s}from"./p-48118ce8.js";import{P as n}from"./p-7f856f00.js";import{E as o}from"./p-8bfb4bfc.js";import{a as r,D as l}from"./p-a1502802.js";import{a}from"./p-0cebf1d2.js";function h(i){const t=i.tabIndex;return t>-1}function d(i){if(h(i)){return i}if(i.shadowRoot!=null){const t=[...i.shadowRoot.children].find((i=>h(i)));if(t!=null){return t}}if(i.children!=null){return[...i.children].map((i=>d(i))).at(0)}return undefined}const u=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block}.dropdown{position:relative}.dropdown__trigger{display:block}.dropdown__positioner{position:absolute;z-index:var(--six-z-index-dropdown)}.dropdown__positioner__filtered{width:100%}.dropdown__panel{font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);color:var(--color);background-color:var(--six-panel-background-color);border-radius:var(--six-border-radius-medium);border:1px solid var(--six-color-web-rock-300);box-shadow:var(--six-shadow-small);opacity:0;pointer-events:none;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;max-width:90vw}.dropdown__panel__scroll{max-height:18.75rem;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none}.dropdown__panel__scroll--virtual{overflow-y:hidden;overflow-x:hidden}.filter-hidden{display:none}.dropdown__positioner[data-popper-placement^=top] .dropdown__panel{transform-origin:bottom}.dropdown__positioner[data-popper-placement^=bottom] .dropdown__panel{transform-origin:top}.dropdown__positioner[data-popper-placement^=left] .dropdown__panel{transform-origin:right}.dropdown__positioner[data-popper-placement^=right] .dropdown__panel{transform-origin:left}.dropdown__positioner.popover-visible .dropdown__panel{opacity:1;transform:none;pointer-events:all}.filter{border-bottom:1px solid var(--six-color-web-rock-300)}.filter__icon{color:var(--six-color-web-rock-600)}";const c=u;let f=0;const m=class{constructor(s){i(this,s);this.sixShow=t(this,"six-dropdown-show",7);this.sixAfterShow=t(this,"six-dropdown-after-show",7);this.sixHide=t(this,"six-dropdown-hide",7);this.sixAfterHide=t(this,"six-dropdown-after-hide",7);this.sixAutoFilter=t(this,"six-dropdown-auto-filter-fired",7);this.sixAsyncFilterFired=t(this,"six-async-filter-fired",7);this.sixScroll=t(this,"six-dropdown-scroll",7);this.componentId=`dropdown-${++f}`;this.isVisible=false;this.resizeObserver=new ResizeObserver(r((()=>this.updatePanelPosition()),100));this.eventListeners=new o;this.getMenuItems=()=>{var i,t,s,n;if(this.options.length>0){return{sixMenuItems:this.renderedOptions.map((i=>e("six-menu-item",{value:i.value},i.label))),selectionContainerItems:[]}}if(this.panel==null)return{sixMenuItems:[],selectionContainerItems:[]};const o=(i=this.panelSlot)===null||i===void 0?void 0:i.assignedElements({flatten:true}).filter(b).at(0);const r=(t=this.panelSlot)===null||t===void 0?void 0:t.assignedElements({flatten:true}).filter(p).at(0);const l=(o===null||o===void 0?void 0:o.querySelectorAll("six-menu-item"))||[];let a=((s=r===null||r===void 0?void 0:r.querySelector("slot"))===null||s===void 0?void 0:s.assignedElements().filter((i=>v(i))))||[];if(a.length===0){a=Array.from(((n=r===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll("six-menu-item"))||[])}if(l.length>0||a.length>0){return{sixMenuItems:a,selectionContainerItems:[...l]}}else{return{sixMenuItems:r?Array.from(r.querySelectorAll("six-menu-item")):[],selectionContainerItems:[]}}};this.handleDocumentKeyDown=i=>{var t;const e=i;if(e.key==="Escape"){void this.hide();this.focusOnTrigger();return}if(this.filterInputElement===((t=this.host.shadowRoot)===null||t===void 0?void 0:t.activeElement)){if(e.key==="ArrowDown"){const{sixMenuItems:i,selectionContainerItems:t}=this.getMenuItems();const e=[...t,...i].find((i=>i.style.display!=="none"));if(e!=null){e.setFocus()}}}if(e.key==="Tab"){if(this.open&&document.activeElement!=null&&v(document.activeElement)){e.preventDefault();void this.hide();this.focusOnTrigger();return}setTimeout((()=>{var i,t;const e=this.container.getRootNode()instanceof ShadowRoot?(t=(i=document.activeElement)===null||i===void 0?void 0:i.shadowRoot)===null||t===void 0?void 0:t.activeElement:document.activeElement;if((e===null||e===void 0?void 0:e.closest(this.container.tagName.toLowerCase()))!==this.container){void this.hide();return}}))}};this.handleDocumentMouseDown=i=>{const t=i.composedPath();if(!t.includes(this.container)){void this.hide();return}};this.handlePanelSelect=i=>{const t=i.target;if(this.closeOnSelect&&p(t)){void this.hide();this.focusOnTrigger()}};this.handleTriggerClick=()=>{this.open?this.hide():this.show()};this.handleTriggerKeyDown=i=>{if(i.key==="Escape"){this.focusOnTrigger();void this.hide();return}if(!this.disableHideOnEnterAndSpace&&[" ","Enter"].includes(i.key)){i.preventDefault();this.open?void this.hide():void this.show();return}const t=this.getMenu();if(["ArrowDown","ArrowUp"].includes(i.key)){i.preventDefault();if(!this.open){void this.show()}if(t==null){return}const e=[...t.querySelectorAll("six-menu-item")];const s=e.at(0);const n=e.at(e.length-1);if(i.key==="ArrowDown"&&s!=null){s.setFocus();return}if(i.key==="ArrowUp"&&n!=null){n.setFocus();return}}const e=["Tab","Shift","Meta","Ctrl","Alt"];if(this.open&&t!=null&&!e.includes(i.key)){void t.typeToSelect(i.key);return}};this.handleTriggerKeyUp=i=>{if(i.key===" "){i.preventDefault()}};this.handleTriggerSlotChange=()=>{this.updateAccessibleTrigger()};this.handleDropdownScroll=()=>{if(this.scrollPanel==null)return;this.sixScroll.emit({scrollHeight:this.scrollPanel.scrollHeight,scrollTop:this.scrollPanel.scrollTop,scrollbarHeight:this.scrollPanel.offsetHeight*(this.scrollPanel.offsetHeight/this.scrollPanel.scrollHeight),scrollRatio:this.scrollPanel.scrollTop/(this.scrollPanel.scrollHeight-this.scrollPanel.clientHeight)})};this.open=false;this.placement="bottom-start";this.closeOnSelect=true;this.distance=4;this.skidding=0;this.hoist=false;this.containingElement=undefined;this.filter=false;this.asyncFilter=false;this.filterPlaceholder="Filter...";this.autofocusFilter=true;this.filterDebounce=0;this.disableHideOnEnterAndSpace=false;this.options=[];this.virtualScroll=false;this.matchTriggerWidth=false;this.renderedOptions=[]}get filterEnabled(){return this.filter||this.asyncFilter}get container(){return this.containingElement||this.host}handleOpenChange(){this.open?this.show():this.hide();this.updateAccessibleTrigger()}handlePopoverOptionsChange(){if(this.popover==null)return;this.popover.setOptions({strategy:this.hoist?"fixed":"absolute",placement:this.placement,distance:this.distance,skidding:this.skidding})}handleOptionsChange(){this.validateOptions()}validateOptions(){if(!Array.isArray(this.options)){this.options=[]}if(this.virtualScroll&&this.options.length===0){console.error("Options must be defined when using virtual scrolling")}this.renderedOptions=[...this.options]}componentWillLoad(){this.validateOptions();if(this.asyncFilter){this.filterDebounce=l}}componentDidLoad(){this.init();if(this.open){void this.show()}}connectedCallback(){this.init()}init(){this.initPopover();const i=this.filterInputElement;if(i!=null){this.eventListeners.add(i,"six-input-input",r((()=>{var t;const e=(t=i.value)!==null&&t!==void 0?t:"";if(this.filter){this.applyFilter(e)}this.emitFilterEvents(e)}),this.filterDebounce))}}applyFilter(i){var t;const e=((t=i.toLowerCase())===null||t===void 0?void 0:t.trim())||"";if(this.options.length>0){this.renderedOptions=this.options.filter((i=>{var t,s,n,o;return i.label&&((s=(t=String(i.label))===null||t===void 0?void 0:t.toLowerCase())===null||s===void 0?void 0:s.includes(e))||i.value&&((o=(n=String(i.value))===null||n===void 0?void 0:n.toLowerCase())===null||o===void 0?void 0:o.includes(e))}))}else{const{selectionContainerItems:i,sixMenuItems:t}=this.getMenuItems();const s=i.map((i=>i.value));i.forEach((async i=>{i.style.display=await x(i,e)?"unset":"none"}));t.forEach((async i=>{i.style.display=await x(i,e)&&!s.includes(i.value)?"unset":"none"}))}}resetFilter(){if(this.filterInputElement!=null){this.filterInputElement.value="";this.emitFilterEvents("")}if(this.options.length>0){this.renderedOptions=[...this.options]}else{const{selectionContainerItems:i,sixMenuItems:t}=this.getMenuItems();[...i,...t].forEach((i=>i.style.display="unset"))}}emitFilterEvents(i){if(this.filter){this.sixAutoFilter.emit({filterValue:i})}else if(this.asyncFilter){this.sixAsyncFilterFired.emit({filterValue:i})}}initPopover(){if(this.trigger==null||this.positioner==null)return;this.popover=new n(this.trigger,this.positioner,{strategy:this.hoist?"fixed":"absolute",placement:this.placement,distance:this.distance,skidding:this.skidding,transitionElement:this.panel,onAfterHide:()=>{if(this.filterEnabled){this.resetFilter()}this.sixAfterHide.emit()},onAfterShow:async()=>{this.sixAfterShow.emit()},onTransitionEnd:()=>{if(!this.open&&this.scrollPanel!=null){this.scrollPanel.scrollTop=0}}})}disconnectedCallback(){var i;this.resizeObserver.disconnect();this.eventListeners.removeAll();void this.hide();(i=this.popover)===null||i===void 0?void 0:i.destroy();this.popover=undefined}async show(){if(this.isVisible||this.popover==null||this.panel==null){return}const i=this.sixShow.emit();if(i.defaultPrevented){this.open=false;return}this.eventListeners.add(this.panel,"six-menu-item-selected",this.handlePanelSelect);this.eventListeners.add(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.add(document,"mousedown",this.handleDocumentMouseDown);this.isVisible=true;this.open=true;if(this.trigger!=null){this.resizeObserver.observe(this.trigger)}this.updatePanelPosition();this.popover.show();if(this.filterEnabled&&this.autofocusFilter){requestAnimationFrame((()=>{var i;(i=this.filterInputElement)===null||i===void 0?void 0:i.setFocus()}))}}updatePanelPosition(){if(!this.open){return}if(this.matchTriggerWidth&&this.trigger!=null&&this.panel!=null){const i=this.trigger.getBoundingClientRect().width;this.panel.style.minWidth=`${i}px`}if(this.popover!=null){this.popover.reposition()}}async hide(){this.resizeObserver.disconnect();if(!this.isVisible||this.panel==null||this.popover==null){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.eventListeners.remove(this.panel,"six-menu-item-selected",this.handlePanelSelect);this.eventListeners.remove(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.remove(document,"mousedown",this.handleDocumentMouseDown);this.isVisible=false;this.open=false;this.popover.hide()}focusOnTrigger(){var i;if(this.trigger==null)return;const t=(i=this.triggerSlot)===null||i===void 0?void 0:i.assignedElements({flatten:true}).at(0);if(t!=null){if(typeof t.setFocus==="function"){t.setFocus()}else if(typeof t.focus==="function"){t.focus()}}}getMenu(){var i;return(i=this.panelSlot)===null||i===void 0?void 0:i.assignedElements({flatten:true}).filter(p).at(0)}async reposition(){if(this.open&&this.popover!=null){this.popover.reposition()}}updateAccessibleTrigger(){var i;if(this.trigger==null)return;const t=((i=this.triggerSlot)===null||i===void 0?void 0:i.assignedElements({flatten:true}))||[];const e=t.map(d).at(0);if(e!=null){e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded",this.open?"true":"false")}}render(){return e("div",{key:"26cba1568dfda35efa2791df5c2228aa51201fb9",part:"base",id:this.componentId,class:{dropdown:true,"dropdown--open":this.open}},e("span",{key:"5bd9acd7e1470a88158b233df327090cccaf6707",part:"trigger",class:"dropdown__trigger",ref:i=>this.trigger=i,onClick:this.handleTriggerClick,onKeyDown:this.handleTriggerKeyDown,onKeyUp:this.handleTriggerKeyUp},e("slot",{key:"ab3915fb99a943f5e1ab8b9ad6c0339e6312614f",name:"trigger",ref:i=>this.triggerSlot=i,onSlotchange:this.handleTriggerSlotChange})),e("div",{key:"f9615d2a48275ce167a683ffc5b6f1b4f3945732",ref:i=>this.positioner=i,class:{dropdown__positioner:true,dropdown__positioner__filtered:(this.filter||this.asyncFilter)&&!this.hoist}},e("div",{key:"121185720985a0650aa7a03d697fa66bb9752c35",ref:i=>this.panel=i,part:"panel",class:"dropdown__panel",role:"menu","aria-hidden":this.open?"false":"true","aria-labelledby":this.componentId},this.filterEnabled&&e("six-input",{key:"7422f2a0179806aa116c7ae42aa71bcb79167395",class:{filter:true,"filter-hidden":!this.open},"dropdown-search":true,"aria-hidden":this.open?"false":"true",ref:i=>this.filterInputElement=i,placeholder:this.filterPlaceholder},e("six-icon",{key:"5e22ddbdb949c2ec389bb238202e02e0b5905c66",class:"filter__icon",slot:"suffix",size:"small"},"search")),e("div",{key:"3212216bf8a156711ff7ea68ce916626146c1828",class:{dropdown__panel__scroll:true,"dropdown__panel__scroll--virtual":this.virtualScroll},onScroll:this.handleDropdownScroll,ref:i=>this.scrollPanel=i},e("slot",{key:"37626706d68beb0e3894e5db14af370a7433e5e0",ref:i=>this.panelSlot=i}),this.options.length>0&&e("six-menu",{key:"014217ffca577be6a6d46aa212df955eb93f3233",part:"menu",items:this.renderedOptions,virtualScroll:this.virtualScroll})),e("slot",{key:"a9fd4bc79298e9e720f9608717dec61c3bbc3100",name:"dropdown-footer"}))))}get host(){return s(this)}static get watchers(){return{open:["handleOpenChange"],distance:["handlePopoverOptionsChange"],hoist:["handlePopoverOptionsChange"],placement:["handlePopoverOptionsChange"],skidding:["handlePopoverOptionsChange"],options:["handleOptionsChange"],virtualScroll:["handleOptionsChange"]}}};function p(i){return(i===null||i===void 0?void 0:i.tagName.toLowerCase())==="six-menu"}function v(i){return(i===null||i===void 0?void 0:i.tagName.toLowerCase())==="six-menu-item"}function b(i){var t;return((t=i===null||i===void 0?void 0:i.getAttribute("class"))===null||t===void 0?void 0:t.includes("selection-container"))||false}async function x(i,t){return i.value.toLowerCase().includes(t)||(await i.getTextLabel()).toLowerCase().includes(t)}m.style=c;const w=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block}.menu{padding:var(--six-spacing-xx-small) 0;border:none;box-shadow:var(--six-shadow-small);overflow-y:auto;overflow-x:hidden}.menu:focus{outline:none}.no-shadow{box-shadow:none}";const g=w;const _=i=>{var t,e,s;return(s=(e=(t=i===null||i===void 0?void 0:i.shadowRoot)===null||t===void 0?void 0:t.querySelector(".menu-item"))===null||e===void 0?void 0:e.classList)===null||s===void 0?void 0:s.contains("menu-item--focused")};const y=i=>(i===null||i===void 0?void 0:i.tagName.toLowerCase())==="six-menu-item";const k=({value:i,label:t})=>e("six-menu-item",{key:i,value:i},t);const C=5;const I=48;const A=64;const M=class{constructor(e){i(this,e);this.sixMenuItemSelected=t(this,"six-menu-item-selected",7);this.eventListeners=new o;this.typeToSelectString="";this.handleScrolling=()=>{if(this.menuWrapper==null)return;this.scrollingIndex=Math.floor(this.menuWrapper.scrollTop/this.sixMenuItemHeight)};this.removeBoxShadow=false;this.items=null;this.itemsShown=undefined;this.virtualScroll=false;this.itemSize=10;this.scrollingDebounce=15;this.disableKeyboardHandling=false;this.scrollingIndex=0;this.sixMenuItemHeight=this.virtualScroll?I:A}connectedCallback(){this.handleClick=this.handleClick.bind(this);this.handleKeyDown=this.handleKeyDown.bind(this)}componentWillLoad(){if(this.items===null){return}}componentDidLoad(){this.setupForVirtualScrollingAfterRendering()}disconnectedCallback(){this.eventListeners.removeAll()}async typeToSelect(i){var t;clearTimeout(this.typeToSelectTimeout);this.typeToSelectTimeout=setTimeout((()=>this.typeToSelectString=""),750);this.typeToSelectString+=i.toLowerCase();const e=this.getItems();for(const i of e){const e=(t=i.shadowRoot)===null||t===void 0?void 0:t.querySelector("slot:not([name])");const s=a(e).toLowerCase().trim();if(s.substring(0,this.typeToSelectString.length)===this.typeToSelectString){i.setFocus();break}}}getItemsShown(){var i;const t=this.virtualScroll?C:0;if(this.items&&this.items.length===1){return 0}return(i=this.itemsShown)!==null&&i!==void 0?i:t}setupForVirtualScrollingAfterRendering(){var i,t;if(!this.virtualScroll||this.menuWrapper==null)return;this.eventListeners.add(this.menuWrapper,"scroll",r(this.handleScrolling,this.scrollingDebounce));const e=(t=(i=this.menu)===null||i===void 0?void 0:i.querySelector("six-menu-item"))===null||t===void 0?void 0:t.clientHeight;if(e!=null&&e>0){this.sixMenuItemHeight=e}}getItems(){if(this.menu==null)return[];if(this.items!=null){return this.items.map(k)}const i=this.menu.querySelector("slot");if(i==null)return[];return[...i.assignedElements({flatten:true})].filter((i=>y(i)&&!i.disabled))}getActiveItemIndex(){const i=this.getItems();const t=this.getActiveItem();if(t!=null){const e=i.indexOf(t);if(e>-1){return e}}const e=this.extractItemsFromDOM();return e.findIndex(_)}getActiveItem(){var i;const t=this.getItems().find((i=>i===document.activeElement));if(t!=null){return t}return(i=this.extractItemsFromDOM())===null||i===void 0?void 0:i.find(_)}extractItemsFromDOM(){var i,t;return Array.from((t=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("six-menu-item"))!==null&&t!==void 0?t:[])}setActiveItem(i){i===null||i===void 0?void 0:i.setFocus()}handleClick(i){const t=i.target;const e=t.closest("six-menu-item");if(e&&!e.disabled){this.sixMenuItemSelected.emit({name:e.value,item:e})}}handleKeyDown(i){if(this.disableKeyboardHandling){return}if(i.key==="Enter"){const t=this.getActiveItem();i.preventDefault();if(t!=null){this.sixMenuItemSelected.emit({name:t.value,item:t})}}if(i.key===" "){i.preventDefault()}if(["ArrowDown","ArrowUp","Home","End"].includes(i.key)){const t=this.items===null?this.getItems():this.extractItemsFromDOM();let e=this.getActiveItemIndex();if(t.length>0){i.preventDefault();if(i.key==="ArrowDown"){e++}else if(i.key==="ArrowUp"){e--}else if(i.key==="Home"){e=0}else if(i.key==="End"){e=t.length-1}if(e<0)e=0;if(e>t.length-1)e=t.length-1;this.setActiveItem(t[e]);return}}void this.typeToSelect(i.key)}getMenuWrapperStyle(){var i;const t={};if(this.getItemsShown()>0){t.height=`${((i=this.getItemsShown())!==null&&i!==void 0?i:0)*this.sixMenuItemHeight}px`}else if(this.items&&this.items.length===1){t.height="auto"}return Object.assign({},t)}getMenuContainerStyle(){const i={};if(this.virtualScroll){i.transform=`translateY(${this.sixMenuItemHeight*this.scrollingIndex}px)`}return Object.assign({},i)}getScrollbarGhostStyle(){const i={};if(this.virtualScroll&&this.items!==null&&this.items.length>1){i.height=`${this.items.length*this.sixMenuItemHeight-this.itemSize*this.sixMenuItemHeight}px`}return Object.assign({},i)}renderItems(){if(this.items===undefined||this.items===null){return}if(!this.virtualScroll){return this.items.map(k)}return this.items.slice(this.scrollingIndex,Math.min(this.items.length,this.itemSize+this.scrollingIndex)).map((({value:i,label:t})=>e("six-menu-item",{checkType:"check",key:i,value:i},t)))}render(){return e("div",{key:"a346d393b279517ec252289e173e1d2e1ac82147",ref:i=>this.menuWrapper=i,style:this.getMenuWrapperStyle(),part:"wrapper",class:{menu:true,".no-shadow":this.removeBoxShadow}},e("div",{key:"eeca9d33ecede486adc958510b2bc7028517a79a",ref:i=>this.menu=i,part:"base",role:"menu",onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:0,style:this.getMenuContainerStyle()},e("slot",{key:"c46d98b34ddaec7d041ee2ad4aa40a048a93cc80"}),this.renderItems()),this.virtualScroll&&e("div",{key:"535cf4f968da60291f420da2722fc1692c0c064a",style:this.getScrollbarGhostStyle()}))}get host(){return s(this)}};M.style=g;const O=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block}:focus{outline:none}.menu-item{position:relative;display:flex;align-items:stretch;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);line-height:var(--six-line-height-normal);letter-spacing:var(--six-letter-spacing-normal);text-align:left;color:var(--six-input-color);border-radius:var(--six-border-radius-medium);padding:var(--six-spacing-x-small) var(--six-spacing-medium);transition:var(--six-transition-fast) fill;user-select:none;white-space:nowrap;cursor:pointer}.menu-item.menu-item--focused:not(.menu-item--disabled){outline:none;background-color:var(--six-menu-item-background-color)}.menu-item.menu-item--active:not(.menu-item--disabled){outline:none;background-color:var(--six-menu-item-background-color)}.menu-item.menu-item--disabled{outline:none;color:var(--six-input-color-disabled);cursor:not-allowed}.menu-item .menu-item__label{flex:1 1 auto;align-self:center}.menu-item .menu-item__prefix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__prefix ::slotted(:last-child){margin-right:0.5em}.menu-item .menu-item__suffix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__suffix ::slotted(:first-child){margin-left:0.5em}.menu-item .menu-item__check{flex:0 0 auto;display:flex;align-items:center;margin-left:var(--six-spacing-small);visibility:hidden;font-size:inherit}.menu-item .menu-item__checkbox{margin-top:-1px}.menu-item--checked .menu-item__check{visibility:visible}";const S=O;const z=class{constructor(t){i(this,t);this.handleCheckboxChange=()=>{this.host.dispatchEvent(new Event("click",{bubbles:true,cancelable:true}))};this.hasFocus=false;this.active=false;this.checkType="check";this.checked=false;this.value="";this.disabled=false}connectedCallback(){this.handleBlur=this.handleBlur.bind(this);this.handleFocus=this.handleFocus.bind(this);this.handleMouseEnter=this.handleMouseEnter.bind(this);this.handleMouseLeave=this.handleMouseLeave.bind(this);this.handleCheckboxChange=this.handleCheckboxChange.bind(this)}async setFocus(i){var t;(t=this.menuItem)===null||t===void 0?void 0:t.focus(i)}async removeFocus(){var i;(i=this.menuItem)===null||i===void 0?void 0:i.blur()}getTextLabel(){return Promise.resolve(a(this.defaultSlot))}handleBlur(){this.hasFocus=false}handleFocus(){this.hasFocus=true}handleMouseEnter(){this.active=true}handleMouseLeave(){this.active=false;this.hasFocus=false}render(){return e("div",{key:"cb3d859ff52091f2148bfabdc34e5d2456a656d5",ref:i=>this.menuItem=i,part:"base",class:{"menu-item":true,"menu-item--checked":this.checked,"menu-item--disabled":this.disabled,"menu-item--focused":this.hasFocus,"menu-item--active":this.active},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"&&e("span",{key:"1d54b9860f2fd80c464aa5920683cf8f0d2a9ce8",class:"menu-item__checkbox"},e("six-checkbox",{key:"58ca9bbdee7355a1f40acf2c550bdb5e66e09c34","onSix-checkbox-change":this.handleCheckboxChange,disabled:this.disabled,checked:this.checked})),e("span",{key:"4b7653b1548c9ecf55f299a221eb335c30fe036c",part:"prefix",class:"menu-item__prefix"},e("slot",{key:"9ada6d5f309b9e045f69de99b4555b2948903e92",name:"prefix"})),e("span",{key:"27b2e4a49f446d60d3e9392157457b09097352bd",part:"label",class:"menu-item__label"},e("slot",{key:"07088d2469a477c651173a128baf2f2a05a37fcf",ref:i=>this.defaultSlot=i})),e("span",{key:"35361e8878b92886461a826e358726ca53e15685",part:"suffix",class:"menu-item__suffix"},e("slot",{key:"6ae0543c32bd4f399979f8838180fff2035486bc",name:"suffix"})),this.checkType==="check"&&e("span",{key:"7de4ac54bc20ada3c774bfd50af99d12a19f2af4",part:"checked-icon",class:"menu-item__check"},e("six-icon",{key:"9d1cf97d5e0b85e6e02affca5e4a8af8945fec98",size:"small","aria-hidden":"true"},"check")))}get host(){return s(this)}};z.style=S;export{m as six_dropdown,M as six_menu,z as six_menu_item};
2
+ //# sourceMappingURL=p-4f129bb3.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isTabbable","el","tabIndex","getNearestTabbableElement","shadowRoot","tabbableShadowChild","children","find","e","map","at","undefined","sixDropdownCss","SixDropdownStyle0","id","SixDropdown","this","componentId","isVisible","resizeObserver","ResizeObserver","debounce","updatePanelPosition","eventListeners","EventListeners","getMenuItems","options","length","sixMenuItems","renderedOptions","option","h","value","label","selectionContainerItems","panel","selectionContainer","_a","panelSlot","assignedElements","flatten","filter","isSelectionContainer","sixMenuElement","_b","isSixMenu","querySelectorAll","_c","querySelector","isSixMenuItem","Array","from","_d","handleDocumentKeyDown","event","keyboardEvent","key","hide","focusOnTrigger","filterInputElement","host","activeElement","item","style","display","setFocus","open","document","preventDefault","setTimeout","container","getRootNode","ShadowRoot","closest","tagName","toLowerCase","handleDocumentMouseDown","path","composedPath","includes","handlePanelSelect","target","closeOnSelect","handleTriggerClick","show","handleTriggerKeyDown","disableHideOnEnterAndSpace","menu","getMenu","menuItems","firstMenuItem","lastMenuItem","ignoredKeys","typeToSelect","handleTriggerKeyUp","handleTriggerSlotChange","updateAccessibleTrigger","handleDropdownScroll","scrollPanel","sixScroll","emit","scrollHeight","scrollTop","scrollbarHeight","offsetHeight","scrollRatio","clientHeight","filterEnabled","asyncFilter","containingElement","handleOpenChange","handlePopoverOptionsChange","popover","setOptions","strategy","hoist","placement","distance","skidding","handleOptionsChange","validateOptions","isArray","virtualScroll","console","error","componentWillLoad","filterDebounce","DEFAULT_DEBOUNCE_FAST","componentDidLoad","init","connectedCallback","initPopover","add","filterValue","applyFilter","emitFilterEvents","filterTerm","lowerCaseFilterTerm","trim","String","selectionContainerValues","s","forEach","async","menuItem","containsFilterTerm","resetFilter","sixAutoFilter","sixAsyncFilterFired","trigger","positioner","Popover","transitionElement","onAfterHide","sixAfterHide","onAfterShow","sixAfterShow","onTransitionEnd","disconnectedCallback","disconnect","removeAll","destroy","sixShow","defaultPrevented","observe","autofocusFilter","requestAnimationFrame","matchTriggerWidth","width","getBoundingClientRect","minWidth","reposition","sixHide","remove","triggerSlot","focus","accessibleTrigger","setAttribute","render","part","class","dropdown","ref","onClick","onKeyDown","onKeyUp","name","onSlotchange","dropdown__positioner","dropdown__positioner__filtered","role","placeholder","filterPlaceholder","slot","size","dropdown__panel__scroll","onScroll","items","getAttribute","getTextLabel","sixMenuCss","SixMenuStyle0","isFocusedMenuItem","classList","contains","isSIXMenuItemElement","mapToMenuItem","DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING","DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING","DEFAULT_SIX_MENU_ITEM_HEIGHT","SixMenu","typeToSelectString","handleScrolling","menuWrapper","scrollingIndex","Math","floor","sixMenuItemHeight","handleClick","bind","handleKeyDown","setupForVirtualScrollingAfterRendering","clearTimeout","typeToSelectTimeout","getItems","getTextContent","substring","getItemsShown","defaultItemsShown","itemsShown","scrollingDebounce","menuItemHeight","disabled","getActiveItemIndex","selectedItem","getActiveItem","itemIndex","indexOf","extractItemsFromDOM","findIndex","i","setActiveItem","clickedItem","sixMenuItemSelected","disableKeyboardHandling","activeItem","indexOfActiveItem","getMenuWrapperStyle","styles","height","Object","assign","getMenuContainerStyle","transform","getScrollbarGhostStyle","itemSize","renderItems","slice","min","checkType","removeBoxShadow","sixMenuItemCss","SixMenuItemStyle0","SixMenuItem","handleCheckboxChange","dispatchEvent","Event","bubbles","cancelable","handleBlur","handleFocus","handleMouseEnter","handleMouseLeave","removeFocus","blur","Promise","resolve","defaultSlot","hasFocus","active","checked","onFocus","onBlur","onMouseEnter","onMouseLeave"],"sources":["src/utils/tabbable.ts","src/components/six-dropdown/six-dropdown.scss?tag=six-dropdown&encapsulation=shadow","src/components/six-dropdown/six-dropdown.tsx","src/components/six-menu/six-menu.scss?tag=six-menu&encapsulation=shadow","src/components/six-menu/six-menu.tsx","src/components/six-menu-item/six-menu-item.scss?tag=six-menu-item&encapsulation=shadow","src/components/six-menu-item/six-menu-item.tsx"],"sourcesContent":["export function isTabbable(el: HTMLElement) {\n const tabIndex = el.tabIndex;\n return tabIndex > -1;\n}\n\nexport function getNearestTabbableElement(el: HTMLElement): HTMLElement | undefined {\n // Check the element\n if (isTabbable(el)) {\n return el;\n }\n\n // Check the element's shadow root\n if (el.shadowRoot != null) {\n const tabbableShadowChild = [...el.shadowRoot.children].find((e) => isTabbable(e as HTMLElement)) as HTMLElement;\n if (tabbableShadowChild != null) {\n return tabbableShadowChild;\n }\n }\n\n // Check the element's children\n if (el.children != null) {\n return [...el.children].map((e) => getNearestTabbableElement(e as HTMLElement)).at(0);\n }\n\n return undefined;\n}\n","@import 'src/global/component';\n@import 'src/global/mixins/scrollbar';\n\n:host {\n display: inline-block;\n}\n\n.dropdown {\n position: relative;\n}\n\n.dropdown__trigger {\n display: block;\n}\n\n.dropdown__positioner {\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n\n &__filtered {\n width: 100%;\n }\n}\n\n.dropdown__panel {\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n color: var(--color);\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n border: 1px solid var(--six-color-web-rock-300);\n box-shadow: var(--six-shadow-small);\n opacity: 0;\n pointer-events: none;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n max-width: 90vw;\n}\n\n.dropdown__panel__scroll {\n max-height: 18.75rem;\n overflow-y: auto;\n overflow-x: hidden;\n overscroll-behavior: none;\n\n &--virtual {\n overflow-y: hidden;\n overflow-x: hidden;\n }\n}\n\n.filter-hidden {\n display: none;\n}\n\n.dropdown__positioner {\n &[data-popper-placement^='top'] .dropdown__panel {\n transform-origin: bottom;\n }\n\n &[data-popper-placement^='bottom'] .dropdown__panel {\n transform-origin: top;\n }\n\n &[data-popper-placement^='left'] .dropdown__panel {\n transform-origin: right;\n }\n\n &[data-popper-placement^='right'] .dropdown__panel {\n transform-origin: left;\n }\n\n &.popover-visible .dropdown__panel {\n opacity: 1;\n transform: none;\n pointer-events: all;\n }\n}\n\n.filter {\n border-bottom: 1px solid var(--six-color-web-rock-300);\n\n &__icon {\n color: var(--six-color-web-rock-600);\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { getNearestTabbableElement } from '../../utils/tabbable';\nimport Popover from '../../utils/popover';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';\nimport { EmptyPayload } from '../../utils/types';\nimport { SixMenuItemData } from '../six-menu/six-menu';\n\nexport interface SixDropdownAutoFilterPayload {\n filterValue: string;\n}\n\nexport interface SixDropdownAsyncFilterPayload {\n filterValue: string;\n}\n\nexport interface SixDropdownScrollPayload {\n scrollHeight: number;\n scrollTop: number;\n scrollbarHeight: number;\n scrollRatio: number;\n}\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot trigger - The dropdown's trigger, usually a `<six-button>` element.\n * @slot dropdown-footer - The dropdown's footer area.\n * @slot - The dropdown's content.\n *\n * @part base - The component's base wrapper.\n * @part trigger - The container that wraps the trigger.\n * @part panel - The panel that gets shown when the dropdown is open.\n */\n\n@Component({\n tag: 'six-dropdown',\n styleUrl: 'six-dropdown.scss',\n shadow: true,\n})\nexport class SixDropdown {\n private componentId = `dropdown-${++id}`;\n private isVisible = false;\n private panel?: HTMLElement;\n private scrollPanel?: HTMLElement;\n private panelSlot?: HTMLSlotElement;\n private positioner?: HTMLElement;\n private popover?: Popover;\n private trigger?: HTMLElement;\n private triggerSlot?: HTMLSlotElement;\n private resizeObserver = new ResizeObserver(debounce(() => this.updatePanelPosition(), 100));\n\n // the input element shown in the dropdown when filter is set to true\n private filterInputElement?: HTMLSixInputElement;\n\n @Element() host!: HTMLSixDropdownElement;\n\n /** Indicates whether the dropdown is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\n * inside the viewport.\n */\n @Prop() placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'bottom-start';\n\n /** Determines whether the dropdown should hide when a menu item is selected. */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() closeOnSelect = true;\n\n /** The distance in pixels from which to offset the panel away from its trigger. */\n @Prop() distance = 4;\n\n /** The distance in pixels from which to offset the panel along its trigger. */\n @Prop() skidding = 0;\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /** The dropdown will close when the user interacts outside of this element (e.g. clicking). */\n @Prop() containingElement?: HTMLElement;\n\n /**\n * Set to true to allow auto filtering for entries in the dropdown.\n * With this flag the dropdown will automatically filter itsel.\n * If you need to coordinate the shown elements yourself,\n * e.g. because you need to call an endpoint use asyncFilter instead\n */\n @Prop() filter = false;\n\n /**\n * Set to true to allow async filtering.\n * When you enter something in the search field the component will only emit an event but not filter any elements itself.\n * You can then simply listen to the 'six-async-filter-fired' event to manage the shown menu-items yourself\n */\n @Prop() asyncFilter = false;\n\n /** The filter's placeholder text. */\n @Prop() filterPlaceholder = 'Filter...';\n\n /** By default the search field will be focused when opening a dropdown with filtering enabled. */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() autofocusFilter = true;\n\n get filterEnabled() {\n return this.filter || this.asyncFilter;\n }\n\n /** The debounce for the filter callbacks. */\n @Prop({ mutable: true }) filterDebounce = 0;\n\n /** The panel can be opend/closed by pressing the spacebar or the enter key. In some cases you might want to avoid this */\n @Prop() disableHideOnEnterAndSpace = false;\n\n /** Set the options to be shown in the dropdown (alternative to setting the elements via html)*/\n @Prop({ mutable: true }) options: SixMenuItemData[] = [];\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 * Determines if the dropdown panel's width should match the width of the trigger element.\n *\n * If set to `true`, the panel will resize its width to align with the trigger's width.\n * If `false` or omitted, the panel will maintain its default width.\n */\n @Prop() matchTriggerWidth = false;\n\n get container() {\n return this.containingElement || this.host;\n }\n\n /** Emitted when the dropdown opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dropdown-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dropdown opens and all transitions are complete. */\n @Event({ eventName: 'six-dropdown-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dropdown closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dropdown-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dropdown closes and all transitions are complete. */\n @Event({ eventName: 'six-dropdown-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the auto filter is triggered */\n @Event({ eventName: 'six-dropdown-auto-filter-fired' }) sixAutoFilter!: EventEmitter<SixDropdownAutoFilterPayload>;\n\n /** Emitted when the async filter is triggered */\n @Event({ eventName: 'six-async-filter-fired' }) sixAsyncFilterFired!: EventEmitter<SixDropdownAsyncFilterPayload>;\n\n /** Emitted when the user scrolls inside dropdown panel.*/\n @Event({ eventName: 'six-dropdown-scroll' }) sixScroll!: EventEmitter<SixDropdownScrollPayload>;\n\n private eventListeners = new EventListeners();\n\n // internal representation of options, so we don't have to make options mutable\n @State() renderedOptions: SixMenuItemData[] = [];\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n this.updateAccessibleTrigger();\n }\n\n @Watch('distance')\n @Watch('hoist')\n @Watch('placement')\n @Watch('skidding')\n handlePopoverOptionsChange() {\n if (this.popover == null) return;\n\n this.popover.setOptions({\n strategy: this.hoist ? 'fixed' : 'absolute',\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n });\n }\n\n @Watch('options')\n @Watch('virtualScroll')\n handleOptionsChange() {\n this.validateOptions();\n }\n\n private validateOptions() {\n if (!Array.isArray(this.options)) {\n this.options = [];\n }\n if (this.virtualScroll && this.options.length === 0) {\n console.error('Options must be defined when using virtual scrolling');\n }\n this.renderedOptions = [...this.options];\n }\n\n componentWillLoad() {\n this.validateOptions();\n if (this.asyncFilter) {\n this.filterDebounce = DEFAULT_DEBOUNCE_FAST;\n }\n }\n\n componentDidLoad() {\n this.init();\n if (this.open) {\n void this.show();\n }\n }\n\n connectedCallback() {\n this.init();\n }\n\n private init() {\n this.initPopover();\n\n // listen to filter\n const filterInputElement = this.filterInputElement;\n if (filterInputElement != null) {\n this.eventListeners.add(\n filterInputElement,\n 'six-input-input',\n debounce(() => {\n const filterValue = filterInputElement.value ?? '';\n if (this.filter) {\n this.applyFilter(filterValue);\n }\n this.emitFilterEvents(filterValue);\n }, this.filterDebounce)\n );\n }\n }\n\n private applyFilter(filterTerm: string) {\n const lowerCaseFilterTerm = filterTerm.toLowerCase()?.trim() || '';\n if (this.options.length > 0) {\n this.renderedOptions = this.options.filter(\n (option) =>\n (option.label && String(option.label)?.toLowerCase()?.includes(lowerCaseFilterTerm)) ||\n (option.value && String(option.value)?.toLowerCase()?.includes(lowerCaseFilterTerm))\n );\n } else {\n const { selectionContainerItems, sixMenuItems } = this.getMenuItems();\n const selectionContainerValues = selectionContainerItems.map((s) => s.value);\n\n // Filter items in selection container\n selectionContainerItems.forEach(async (menuItem) => {\n menuItem.style.display = (await containsFilterTerm(menuItem, lowerCaseFilterTerm)) ? 'unset' : 'none';\n });\n\n // Filter other items. Always hide items which contained in the selection container.\n sixMenuItems.forEach(async (menuItem) => {\n menuItem.style.display =\n (await containsFilterTerm(menuItem, lowerCaseFilterTerm)) &&\n !selectionContainerValues.includes(menuItem.value)\n ? 'unset'\n : 'none';\n });\n }\n }\n\n private resetFilter() {\n if (this.filterInputElement != null) {\n this.filterInputElement.value = '';\n this.emitFilterEvents('');\n }\n if (this.options.length > 0) {\n this.renderedOptions = [...this.options];\n } else {\n const { selectionContainerItems, sixMenuItems } = this.getMenuItems();\n [...selectionContainerItems, ...sixMenuItems].forEach((item) => (item.style.display = 'unset'));\n }\n }\n\n private emitFilterEvents(filterValue: string) {\n if (this.filter) {\n this.sixAutoFilter.emit({ filterValue });\n } else if (this.asyncFilter) {\n this.sixAsyncFilterFired.emit({ filterValue });\n }\n }\n\n private initPopover() {\n if (this.trigger == null || this.positioner == null) return;\n this.popover = new Popover(this.trigger, this.positioner, {\n strategy: this.hoist ? 'fixed' : 'absolute',\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n transitionElement: this.panel,\n onAfterHide: () => {\n if (this.filterEnabled) {\n this.resetFilter();\n }\n this.sixAfterHide.emit();\n },\n onAfterShow: async () => {\n this.sixAfterShow.emit();\n },\n onTransitionEnd: () => {\n if (!this.open && this.scrollPanel != null) {\n this.scrollPanel.scrollTop = 0;\n }\n },\n });\n }\n\n private getMenuItems = (): {\n selectionContainerItems: HTMLSixMenuItemElement[];\n sixMenuItems: HTMLSixMenuItemElement[];\n } => {\n if (this.options.length > 0) {\n return {\n sixMenuItems: this.renderedOptions.map((option) => (\n <six-menu-item value={option.value}>{option.label}</six-menu-item>\n )),\n selectionContainerItems: [],\n };\n }\n if (this.panel == null) return { sixMenuItems: [], selectionContainerItems: [] };\n\n // Relies on the implementation of six-select. Its dropdown slot contains two elements,\n // one for the selected menu items, and one for the other items.\n const selectionContainer = this.panelSlot?.assignedElements({ flatten: true }).filter(isSelectionContainer).at(0);\n const sixMenuElement = this.panelSlot?.assignedElements({ flatten: true }).filter(isSixMenu).at(0) as\n | HTMLSixMenuElement\n | undefined;\n const selectionContainerItems = selectionContainer?.querySelectorAll('six-menu-item') || [];\n let sixMenuItems: HTMLSixMenuItemElement[] =\n sixMenuElement\n ?.querySelector('slot')\n ?.assignedElements()\n .filter((el): el is HTMLSixMenuItemElement => isSixMenuItem(el)) || [];\n\n if (sixMenuItems.length === 0) {\n sixMenuItems = Array.from(sixMenuElement?.shadowRoot?.querySelectorAll('six-menu-item') || []);\n }\n\n if (selectionContainerItems.length > 0 || sixMenuItems.length > 0) {\n return { sixMenuItems, selectionContainerItems: [...selectionContainerItems] };\n } else {\n return {\n sixMenuItems: sixMenuElement ? Array.from(sixMenuElement.querySelectorAll('six-menu-item')) : [],\n selectionContainerItems: [],\n };\n }\n };\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n this.eventListeners.removeAll();\n void this.hide();\n this.popover?.destroy();\n this.popover = undefined;\n }\n\n /** Shows the dropdown panel */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible || this.popover == null || this.panel == null) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.eventListeners.add(this.panel, 'six-menu-item-selected', this.handlePanelSelect);\n this.eventListeners.add(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n\n this.isVisible = true;\n this.open = true;\n\n if (this.trigger != null) {\n this.resizeObserver.observe(this.trigger);\n }\n this.updatePanelPosition();\n this.popover.show();\n\n if (this.filterEnabled && this.autofocusFilter) {\n requestAnimationFrame(() => {\n this.filterInputElement?.setFocus();\n });\n }\n }\n\n /**\n * Set min width of dropdown panel to the width of the trigger element\n */\n private updatePanelPosition() {\n if (!this.open) {\n return;\n }\n\n if (this.matchTriggerWidth && this.trigger != null && this.panel != null) {\n const width = this.trigger.getBoundingClientRect().width;\n this.panel.style.minWidth = `${width}px`;\n }\n\n if (this.popover != null) {\n this.popover.reposition();\n }\n }\n\n /** Hides the dropdown panel */\n @Method()\n async hide() {\n this.resizeObserver.disconnect();\n\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible || this.panel == null || this.popover == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.eventListeners.remove(this.panel, 'six-menu-item-selected', this.handlePanelSelect);\n this.eventListeners.remove(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n\n this.isVisible = false;\n this.open = false;\n this.popover.hide();\n }\n\n private focusOnTrigger() {\n if (this.trigger == null) return;\n const trigger = this.triggerSlot?.assignedElements({ flatten: true }).at(0) as HTMLSixButtonElement | undefined;\n if (trigger != null) {\n if (typeof trigger.setFocus === 'function') {\n trigger.setFocus();\n } else if (typeof trigger.focus === 'function') {\n trigger.focus();\n }\n }\n }\n\n private getMenu(): HTMLSixMenuElement | undefined {\n return this.panelSlot?.assignedElements({ flatten: true }).filter(isSixMenu).at(0) as\n | HTMLSixMenuElement\n | undefined;\n }\n\n /**\n * Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\n * is activated.\n *\n * @deprecated: use the property `matchTriggerWidth` instead.\n */\n @Method()\n async reposition() {\n if (this.open && this.popover != null) {\n this.popover.reposition();\n }\n }\n\n private handleDocumentKeyDown = (event: Event) => {\n const keyboardEvent = event as KeyboardEvent;\n // Close when escape is pressed\n if (keyboardEvent.key === 'Escape') {\n void this.hide();\n this.focusOnTrigger();\n return;\n }\n\n if (this.filterInputElement === this.host.shadowRoot?.activeElement) {\n if (keyboardEvent.key === 'ArrowDown') {\n const { sixMenuItems, selectionContainerItems } = this.getMenuItems();\n const item = [...selectionContainerItems, ...sixMenuItems].find((item) => item.style.display !== 'none');\n if (item != null) {\n item.setFocus();\n }\n }\n }\n\n // Handle tabbing\n if (keyboardEvent.key === 'Tab') {\n // Tabbing within an open menu should close the dropdown and refocus the trigger\n if (this.open && document.activeElement != null && isSixMenuItem(document.activeElement)) {\n keyboardEvent.preventDefault();\n void this.hide();\n this.focusOnTrigger();\n return;\n }\n\n // Tabbing outside the containing element closes the panel\n //\n // If the dropdown is used within a shadow DOM, we need to obtain the activeElement within that shadowRoot,\n // otherwise `document.activeElement` will only return the name of the parent shadow DOM element.\n setTimeout(() => {\n const activeElement =\n this.container.getRootNode() instanceof ShadowRoot\n ? document.activeElement?.shadowRoot?.activeElement\n : document.activeElement;\n\n if (activeElement?.closest(this.container.tagName.toLowerCase()) !== this.container) {\n void this.hide();\n return;\n }\n });\n }\n };\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.container)) {\n void this.hide();\n return;\n }\n };\n\n private handlePanelSelect = (event: Event) => {\n const target = event.target as HTMLElement;\n\n // Hide the dropdown when a menu item is selected\n if (this.closeOnSelect && isSixMenu(target)) {\n void this.hide();\n this.focusOnTrigger();\n }\n };\n\n private handleTriggerClick = () => {\n this.open ? this.hide() : this.show();\n };\n\n private handleTriggerKeyDown = (event: KeyboardEvent) => {\n // Close when escape or tab is pressed\n if (event.key === 'Escape') {\n this.focusOnTrigger();\n void this.hide();\n return;\n }\n\n // When spacebar/enter is pressed, show the panel but don't focus on the menu. This let's the user press the same\n // key again to hide the menu in case they don't want to make a selection.\n if (!this.disableHideOnEnterAndSpace && [' ', 'Enter'].includes(event.key)) {\n event.preventDefault();\n this.open ? void this.hide() : void this.show();\n return;\n }\n\n const menu = this.getMenu();\n\n // When up/down is pressed, we make the assumption that the user is familiar with the menu and plans to make a\n // selection. Rather than toggle the panel, we focus on the menu (if one exists) and activate the first item for\n // faster navigation.\n if (['ArrowDown', 'ArrowUp'].includes(event.key)) {\n event.preventDefault();\n\n // Show the menu if it's not already open\n if (!this.open) {\n void this.show();\n }\n\n if (menu == null) {\n return;\n }\n const menuItems = [...menu.querySelectorAll('six-menu-item')];\n const firstMenuItem = menuItems.at(0);\n const lastMenuItem = menuItems.at(menuItems.length - 1);\n\n // Focus on a menu item\n if (event.key === 'ArrowDown' && firstMenuItem != null) {\n firstMenuItem.setFocus();\n return;\n }\n\n if (event.key === 'ArrowUp' && lastMenuItem != null) {\n lastMenuItem.setFocus();\n return;\n }\n }\n\n // Other keys bring focus to the menu and initiate type-to-select behavior\n const ignoredKeys = ['Tab', 'Shift', 'Meta', 'Ctrl', 'Alt'];\n if (this.open && menu != null && !ignoredKeys.includes(event.key)) {\n void menu.typeToSelect(event.key);\n return;\n }\n };\n\n private handleTriggerKeyUp = (event: KeyboardEvent) => {\n // Prevent space from triggering a click event in Firefox\n if (event.key === ' ') {\n event.preventDefault();\n }\n };\n\n private handleTriggerSlotChange = () => {\n this.updateAccessibleTrigger();\n };\n\n private handleDropdownScroll = () => {\n if (this.scrollPanel == null) return;\n\n this.sixScroll.emit({\n scrollHeight: this.scrollPanel.scrollHeight,\n scrollTop: this.scrollPanel.scrollTop,\n scrollbarHeight: this.scrollPanel.offsetHeight * (this.scrollPanel.offsetHeight / this.scrollPanel.scrollHeight),\n scrollRatio: this.scrollPanel.scrollTop / (this.scrollPanel.scrollHeight - this.scrollPanel.clientHeight),\n });\n };\n\n //\n // Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and\n // `aria-expanded`. These must be applied to the \"accessible trigger\" (the tabbable portion of the trigger element\n // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,\n // a child of the slotted element, or an element in the slotted element's shadow root.\n //\n // For example, the accessible trigger of an <sl-button> is a <button> located inside its shadow root.\n //\n // To determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n //\n private updateAccessibleTrigger() {\n if (this.trigger == null) return;\n const assignedElements = (this.triggerSlot?.assignedElements({ flatten: true }) || []) as HTMLElement[];\n const accessibleTrigger = assignedElements.map(getNearestTabbableElement).at(0);\n if (accessibleTrigger != null) {\n accessibleTrigger.setAttribute('aria-haspopup', 'true');\n accessibleTrigger.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n }\n\n render() {\n return (\n <div\n part=\"base\"\n id={this.componentId}\n class={{\n dropdown: true,\n 'dropdown--open': this.open,\n }}\n >\n <span\n part=\"trigger\"\n class=\"dropdown__trigger\"\n ref={(el) => (this.trigger = el)}\n onClick={this.handleTriggerClick}\n onKeyDown={this.handleTriggerKeyDown}\n onKeyUp={this.handleTriggerKeyUp}\n >\n <slot\n name=\"trigger\"\n ref={(el) => (this.triggerSlot = el as HTMLSlotElement)}\n onSlotchange={this.handleTriggerSlotChange}\n />\n </span>\n\n {/* Position the panel with a wrapper since the popover makes use of `translate`. This let's us add transitions\n on the panel without interfering with the position. */}\n <div\n ref={(el) => (this.positioner = el)}\n class={{\n dropdown__positioner: true,\n dropdown__positioner__filtered: (this.filter || this.asyncFilter) && !this.hoist,\n }}\n >\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dropdown__panel\"\n role=\"menu\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-labelledby={this.componentId}\n >\n {this.filterEnabled && (\n <six-input\n class={{\n filter: true,\n 'filter-hidden': !this.open,\n }}\n dropdown-search\n aria-hidden={this.open ? 'false' : 'true'}\n ref={(el) => (this.filterInputElement = el)}\n placeholder={this.filterPlaceholder}\n >\n <six-icon class=\"filter__icon\" slot=\"suffix\" size=\"small\">\n search\n </six-icon>\n </six-input>\n )}\n <div\n class={{\n dropdown__panel__scroll: true,\n 'dropdown__panel__scroll--virtual': this.virtualScroll,\n }}\n onScroll={this.handleDropdownScroll}\n ref={(el) => (this.scrollPanel = el)}\n >\n <slot ref={(el) => (this.panelSlot = el as HTMLSlotElement)} />\n {this.options.length > 0 && (\n <six-menu part=\"menu\" items={this.renderedOptions} virtualScroll={this.virtualScroll}></six-menu>\n )}\n </div>\n <slot name=\"dropdown-footer\"></slot>\n </div>\n </div>\n </div>\n );\n }\n}\n\nfunction isSixMenu(el?: Element): boolean {\n return el?.tagName.toLowerCase() === 'six-menu';\n}\nfunction isSixMenuItem(el?: Element): boolean {\n return el?.tagName.toLowerCase() === 'six-menu-item';\n}\nfunction isSelectionContainer(el?: Element): boolean {\n return el?.getAttribute('class')?.includes('selection-container') || false;\n}\nasync function containsFilterTerm(menuItem: HTMLSixMenuItemElement, lowerCaseFilterTerm: string): Promise<boolean> {\n return (\n menuItem.value.toLowerCase().includes(lowerCaseFilterTerm) ||\n (await menuItem.getTextLabel()).toLowerCase().includes(lowerCaseFilterTerm)\n );\n}\n","@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu {\n padding: var(--six-spacing-xx-small) 0;\n border: none;\n box-shadow: var(--six-shadow-small);\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n.menu:focus {\n outline: none;\n}\n\n.no-shadow {\n box-shadow: none;\n}\n","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","@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n:focus {\n outline: none;\n}\n\n.menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n line-height: var(--six-line-height-normal);\n letter-spacing: var(--six-letter-spacing-normal);\n text-align: left;\n color: var(--six-input-color);\n border-radius: var(--six-border-radius-medium);\n padding: var(--six-spacing-x-small) var(--six-spacing-medium);\n transition: var(--six-transition-fast) fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n\n &.menu-item--focused:not(.menu-item--disabled) {\n outline: none;\n background-color: var(--six-menu-item-background-color);\n }\n\n &.menu-item--active:not(.menu-item--disabled) {\n outline: none;\n background-color: var(--six-menu-item-background-color);\n }\n\n &.menu-item--disabled {\n outline: none;\n color: var(--six-input-color-disabled);\n cursor: not-allowed;\n }\n\n .menu-item__label {\n flex: 1 1 auto;\n align-self: center;\n }\n\n .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:last-child) {\n margin-right: 0.5em;\n }\n }\n\n .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:first-child) {\n margin-left: 0.5em;\n }\n }\n\n .menu-item__check {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n margin-left: var(--six-spacing-small);\n visibility: hidden;\n font-size: inherit;\n }\n\n .menu-item__checkbox {\n margin-top: -1px;\n }\n}\n\n.menu-item--checked .menu-item__check {\n visibility: visible;\n}\n","import { Component, Element, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\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 item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @part base - The component's base wrapper.\n * @part checked-icon - The container that wraps the checked icon.\n * @part prefix - The prefix container.\n * @part label - The menu item label.\n * @part suffix - The suffix container.\n */\n\n@Component({\n tag: 'six-menu-item',\n styleUrl: 'six-menu-item.scss',\n shadow: true,\n})\nexport class SixMenuItem {\n private menuItem?: HTMLElement;\n private defaultSlot?: HTMLSlotElement;\n\n @Element() host!: HTMLSixMenuItemElement;\n\n @State() hasFocus = false;\n\n @State() active = false;\n\n /** Defines if the checked state is displayed as a checkbox or a check-icon */\n @Prop() checkType: 'checkbox' | 'check' = 'check';\n\n /** Internal: Draws the item in a checked state. CheckType needs to be set to 'checkbox' or 'check' to show the\n * checked state */\n @Prop({ reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Set to true to draw the menu item in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n connectedCallback() {\n this.handleBlur = this.handleBlur.bind(this);\n this.handleFocus = this.handleFocus.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.handleCheckboxChange = this.handleCheckboxChange.bind(this);\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.menuItem?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.menuItem?.blur();\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n @Method()\n getTextLabel() {\n return Promise.resolve(getTextContent(this.defaultSlot));\n }\n\n private handleBlur() {\n this.hasFocus = false;\n }\n\n private handleFocus() {\n this.hasFocus = true;\n }\n\n private handleMouseEnter() {\n this.active = true;\n }\n\n private handleMouseLeave() {\n this.active = false;\n this.hasFocus = false;\n }\n\n private handleCheckboxChange = () => {\n this.host.dispatchEvent(new Event('click', { bubbles: true, cancelable: true }));\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.menuItem = el)}\n part=\"base\"\n class={{\n 'menu-item': true,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--focused': this.hasFocus,\n 'menu-item--active': this.active,\n }}\n role=\"menuitem\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-checked={this.checked ? 'true' : 'false'}\n tabIndex={!this.disabled ? 0 : undefined}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n {this.checkType === 'checkbox' && (\n <span class=\"menu-item__checkbox\">\n <six-checkbox\n onSix-checkbox-change={this.handleCheckboxChange}\n disabled={this.disabled}\n checked={this.checked}\n ></six-checkbox>\n </span>\n )}\n\n <span part=\"prefix\" class=\"menu-item__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <span part=\"label\" class=\"menu-item__label\">\n <slot ref={(el) => (this.defaultSlot = el as HTMLSlotElement)} />\n </span>\n\n <span part=\"suffix\" class=\"menu-item__suffix\">\n <slot name=\"suffix\" />\n </span>\n\n {this.checkType === 'check' && (\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <six-icon size=\"small\" aria-hidden=\"true\">\n check\n </six-icon>\n </span>\n )}\n </div>\n );\n }\n}\n"],"mappings":"oNAAgBA,EAAWC,GACzB,MAAMC,EAAWD,EAAGC,SACpB,OAAOA,GAAY,CACrB,C,SAEgBC,EAA0BF,GAExC,GAAID,EAAWC,GAAK,CAClB,OAAOA,C,CAIT,GAAIA,EAAGG,YAAc,KAAM,CACzB,MAAMC,EAAsB,IAAIJ,EAAGG,WAAWE,UAAUC,MAAMC,GAAMR,EAAWQ,KAC/E,GAAIH,GAAuB,KAAM,CAC/B,OAAOA,C,EAKX,GAAIJ,EAAGK,UAAY,KAAM,CACvB,MAAO,IAAIL,EAAGK,UAAUG,KAAKD,GAAML,EAA0BK,KAAmBE,GAAG,E,CAGrF,OAAOC,SACT,CCzBA,MAAMC,EAAiB,iiDACvB,MAAAC,EAAeD,ECsBf,IAAIE,EAAK,E,MAsBIC,EAAW,M,oYACdC,KAAAC,YAAc,cAAcH,IAC5BE,KAAAE,UAAY,MAQZF,KAAAG,eAAiB,IAAIC,eAAeC,GAAS,IAAML,KAAKM,uBAAuB,MAuH/EN,KAAAO,eAAiB,IAAIC,EA0JrBR,KAAAS,aAAe,K,YAIrB,GAAIT,KAAKU,Q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rJ,EAAA,gBAAAyB,IAAA,mEACyBxC,KAAKwP,qBAC5BhC,SAAUxN,KAAKwN,SACfgD,QAASxQ,KAAKwQ,WAKpBzP,EAAA,QAAAyB,IAAA,2CAAM2H,KAAK,SAASC,MAAM,qBACxBrJ,EAAA,QAAAyB,IAAA,2CAAMkI,KAAK,YAGb3J,EAAA,QAAAyB,IAAA,2CAAM2H,KAAK,QAAQC,MAAM,oBACvBrJ,EAAA,QAAAyB,IAAA,2CAAM8H,IAAMrL,GAAQe,KAAKqQ,YAAcpR,KAGzC8B,EAAA,QAAAyB,IAAA,2CAAM2H,KAAK,SAASC,MAAM,qBACxBrJ,EAAA,QAAAyB,IAAA,2CAAMkI,KAAK,YAGZ1K,KAAKmP,YAAc,SAClBpO,EAAA,QAAAyB,IAAA,2CAAM2H,KAAK,eAAeC,MAAM,oBAC9BrJ,EAAA,YAAAyB,IAAA,2CAAU0I,KAAK,QAAO,cAAa,QAAM,U","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as i,h as s,H as t,g as a}from"./p-48118ce8.js";import{E as d}from"./p-8bfb4bfc.js";import{g as h,h as r}from"./p-0cebf1d2.js";const c=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block;user-select:none;--search-border-width:1px}::slotted(six-search-field){position:absolute;margin-left:var(--search-border-width);width:calc(100% - 2 * var(--search-border-width))}.six-header{display:flex;width:100%;height:var(--six-header-height);background-color:var(--six-header-background-color);align-items:stretch;box-shadow:var(--six-shadow-medium);border-bottom:var(--six-header-border-with) solid var(--six-header-border-color)}.six-header__logo--clickable{cursor:pointer}.six-header__placeholder{flex:1}.six-header__app-switcher-dropdown{display:flex;align-items:center}.six-header__selected-app{cursor:pointer;font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-bold);padding-right:0;padding-left:var(--six-spacing-x-small)}.six-header__selected-app:hover{color:var(--six-header-selected-app-color-hover)}.six-header__search-field{opacity:0;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;display:none}.six-header__search-field--visible{opacity:1;transform:none;display:block}.six-header__search-field--shift-content.six-header__search-field--visible{height:2.65rem;transition:var(--six-transition-fast) height}.six-header__search-field--shift-content:not(.six-header__search-field--visible){height:0;transition:var(--six-transition-fast) height}";const o=c;var n;(function(e){e[e["None"]=0]="None";e[e["Search"]=1]="Search";e[e["AppSwitcher"]=2]="AppSwitcher";e[e["Profile"]=3]="Profile"})(n||(n={}));var l;(function(e){e["Search"]="search-field";e["Notifications"]="notifications";e["AppSwitcher"]="app-switcher-menu";e["Profile"]="profile-menu";e["Logo"]="logo"})(l||(l={}));const f=class{constructor(s){e(this,s);this.sixAppNameClicked=i(this,"six-header-app-name-clicked",7);this.sixAppSwitcherSelect=i(this,"six-header-app-switcher-select",7);this.sixProfileSelect=i(this,"six-header-profile-select",7);this.sixHamburgerClick=i(this,"six-header-hamburger-menu-clicked",7);this.logoClick=i(this,"six-header-logo-clicked",7);this.sixSearchFieldToggle=i(this,"six-header-search-field-toggle",7);this.eventListeners=new d;this.setupMenu=e=>{if(e==null)return;this.eventListeners.add(e,"click",(()=>this.sixHamburgerClick.emit()))};this.setupLogo=e=>{if(!this.clickableLogo||e==null)return;this.eventListeners.add(e,"click",(()=>this.logoClick.emit()))};this.setupProfile=e=>{if(e==null)return;this.eventListeners.add(e,"six-dropdown-show",this.selectSection(n.Profile));this.eventListeners.add(e,"six-dropdown-hide",this.selectSection(n.None));this.eventListeners.add(e,"six-menu-item-selected",(e=>{const{name:i,item:s}=e.detail;this.sixProfileSelect.emit({selectedLabel:s.innerText,name:i,item:s})}))};this.setupAppSwitcher=e=>{if(e==null)return;this.eventListeners.add(e,"six-dropdown-show",this.selectSection(n.AppSwitcher));this.eventListeners.add(e,"six-dropdown-hide",this.selectSection(n.None));this.eventListeners.add(e,"six-menu-item-selected",(e=>{const{name:i,item:s}=e.detail;this.selectedApp=s.innerText;this.sixAppSwitcherSelect.emit({selectedLabel:s.innerText,name:i,item:s})}))};this.appNameClicked=()=>this.sixAppNameClicked.emit();this.computeSearchOpenState=()=>{this.selectedSection=this.openSearch?n.Search:n.None};this.custom=false;this.shiftContent=false;this.hideHamburgerMenu=false;this.openHamburgerMenu=false;this.openSearch=false;this.clickableLogo=false;this.logo="six";this.selectedApp=undefined;this.selectedSection=undefined}handleOpenSearchChange(){if(this.custom){if(this.openSearch){setTimeout((async()=>{var e,i;const s=h(this.host,l.Search);(i=(e=s===null||s===void 0?void 0:s.shadowRoot)===null||e===void 0?void 0:e.querySelector("six-input"))===null||i===void 0?void 0:i.setFocus()}),50)}}else{this.computeSearchOpenState()}}async setSearchOpenState(e){if(this.selectedSection===n.Search&&!e){this.selectedSection=n.None}else if(e&&this.selectedSection!==n.Search){this.selectedSection=n.Search}}async getIsSearchOpen(){return this.selectedSection===n.Search}hasSlot(e){if(this.slots==null){return false}return this.slots[e]}isSectionSelected(e){return e===this.selectedSection}selectSection(e){return()=>this.selectedSection=e}toggleSearch(){const e=this.selectedSection!==n.Search;this.selectedSection=this.selectedSection===n.Search?n.None:n.Search;this.sixSearchFieldToggle.emit({visible:e});if(this.selectedSection===n.Search){setTimeout((async()=>{var e,i;const s=h(this.host,l.Search);(i=(e=s===null||s===void 0?void 0:s.shadowRoot)===null||e===void 0?void 0:e.querySelector("six-input"))===null||i===void 0?void 0:i.setFocus()}),50)}}componentWillLoad(){this.slots={[l.Search]:r(this.host,l.Search),[l.Notifications]:r(this.host,l.Notifications),[l.AppSwitcher]:r(this.host,l.AppSwitcher),[l.Profile]:r(this.host,l.Profile),[l.Logo]:r(this.host,l.Logo)};if(this.hasSlot(l.AppSwitcher)){this.updateSelectedApp()}if(this.hasSlot(l.Search)){this.computeSearchOpenState()}}connectedCallback(){const e=h(this.host,l.AppSwitcher);if(e){this.mutationObserver=new MutationObserver((e=>{if(e.some((e=>e.type==="childList"||e.type==="attributes"))){this.updateSelectedApp()}}));this.mutationObserver.observe(e,{attributes:true,childList:true,subtree:true})}}updateSelectedApp(){var e;const i=h(this.host,l.AppSwitcher);if(i==null){return undefined}const s=Array.from(i.querySelectorAll("six-menu-item"));const t=s.find((e=>e.hasAttribute("checked")&&e.getAttribute("checked")!=="false"));this.selectedApp=(e=t===null||t===void 0?void 0:t.textContent)!==null&&e!==void 0?e:undefined}disconnectedCallback(){var e;this.eventListeners.removeAll();(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect()}render(){const e=!this.hideHamburgerMenu&&s("six-header-item",{key:"f5e4bf7b91ab71b6fde280777ef56741c4e8593b"},s("six-icon-button",{key:"691a031db2a0f40177b54d689c2041647977a6f1",name:this.openHamburgerMenu?"menu_open":"menu",ref:this.setupMenu}));const i=this.hasSlot(l.Search)&&s("six-header-item",{key:"d25050b55ff11cd3888fd1cd7a922f850c43d513",active:this.isSectionSelected(n.Search)},s("six-icon-button",{key:"59cb3875f60c30c7829f57b39ad5a49dd58b3f6b",name:"search",onClick:()=>this.toggleSearch(),"data-testid":"search-trigger"}));const a=this.hasSlot(l.Notifications)&&s("six-header-item",{key:"2093e028f6b63d5a746121ce7f34a60ccd8b814c"},s("slot",{key:"14b764a489ccef0d535d990c5827c0bfdcdfadb3",name:l.Notifications}));const d=this.hasSlot(l.AppSwitcher)&&s("six-header-item",{key:"b0640d2560ff7cb738f48985aaf0471cb7b49972",active:this.isSectionSelected(n.AppSwitcher)},s("six-dropdown",{key:"8e25753fce395164ce9cfc5479a46a19975de4b0",distance:14,skidding:20,placement:"bottom-end",ref:this.setupAppSwitcher},s("div",{key:"fe5f0fdf9411f05221c914533732db7be3d3d033",slot:"trigger",class:"six-header__app-switcher-dropdown"},s("a",{key:"81a4d4647b1de8acaadc19d5e58d674c2b930ac4",onClick:this.appNameClicked,class:"six-header__selected-app"},this.selectedApp),s("six-icon-button",{key:"d903125dfa9ceadb186bc1eb56f15799c7705eb3",name:"apps"})),s("slot",{key:"57316a36e610fdedcd49a0eed7c81d3e26df3cca",name:l.AppSwitcher})));const h=this.hasSlot(l.Profile)&&s("six-header-item",{key:"a3133d7f1c50dda15b211fbf46f596e7934aa037",active:this.isSectionSelected(n.Profile)},s("six-dropdown",{key:"c06dc87cd548d08ad0821350a54364e03189ec31",distance:18,skidding:20,placement:"bottom-end",ref:this.setupProfile},s("slot",{key:"2f661377226178aee7fc5915939df0918991e4c6",name:"profile-avatar",slot:"trigger"}),s("slot",{key:"0c9ab4cf7a943e169515a2e73f5d154bf88e0300",name:"profile-menu"})));const r=this.hasSlot(l.Logo)?s("six-header-item",null,s("slot",{name:"logo"})):s("six-header-item",{class:{"six-header__logo--clickable":this.clickableLogo},ref:this.setupLogo},s("six-logo",{brand:this.logo}));const c=s(t,{key:"0b95cbc2c5e2e132f1c6c789c33941efcc4e5a22"},s("header",{key:"e8c71cb2c22f2cdc410d2e678f5e30528e50f074",part:"header",class:"six-header"},s("slot",{key:"c8d3c17a6c3435f9d7338bcdf4e0dee210b5527a"})),s("div",{key:"1cfe987e74fb40b1ee774a0d3e9718e50770ef0e",class:{"six-header__search-field":true,"six-header__search-field--visible":this.openSearch,"six-header__search-field--shift-content":this.shiftContent}},s("slot",{key:"c6f91d3251a01c33281a0437c1273c1851641251",name:l.Search})));const o=s(t,{key:"64fad48c1c9f738ec60d46eca751e0fbaa02121a"},s("header",{key:"96ebb16b846a8f6331fa882dd557fb57bbc19bc1",part:"header",class:"six-header"},e,r,s("six-header-item",{key:"dbf70c1f28a8ac8e5fce05cd5d7d46b219057f59",class:"six-header__placeholder"}),s("six-header-item",{key:"d3c30d7836f81bf58114f1ef9dffcd0ef51f078f"},s("slot",{key:"2a0901b0730ed12d5f8f56f1b1ab575fb4863c6f"})),i,a,d,h),s("div",{key:"aaf0973d3476a29d6ab3f117aa961e9dc6958bbe",class:{"six-header__search-field":true,"six-header__search-field--visible":this.isSectionSelected(n.Search),"six-header__search-field--shift-content":this.shiftContent}},s("slot",{key:"708bead402bdd620a21fa629b4ddf37772fc75e0",name:l.Search})));return this.custom?c:o}static get assetsDirs(){return["assets"]}get host(){return a(this)}static get watchers(){return{openSearch:["handleOpenSearchChange"]}}};f.style=o;export{f as six_header};
2
+ //# sourceMappingURL=p-57ea4cb7.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sixHeaderCss","SixHeaderStyle0","Section","Slot","SixHeader","this","eventListeners","EventListeners","setupMenu","el","add","sixHamburgerClick","emit","setupLogo","clickableLogo","logoClick","setupProfile","selectSection","Profile","None","event","name","item","detail","sixProfileSelect","selectedLabel","innerText","setupAppSwitcher","AppSwitcher","selectedApp","sixAppSwitcherSelect","appNameClicked","sixAppNameClicked","computeSearchOpenState","selectedSection","openSearch","Search","handleOpenSearchChange","custom","setTimeout","async","slot","getSlot","host","_b","_a","shadowRoot","querySelector","setFocus","setSearchOpenState","openState","getIsSearchOpen","hasSlot","slots","isSectionSelected","value","section","toggleSearch","visible","sixSearchFieldToggle","componentWillLoad","Notifications","Logo","updateSelectedApp","connectedCallback","appSwitcherSlot","mutationObserver","MutationObserver","mutations","some","mutation","type","observe","attributes","childList","subtree","element","undefined","items","Array","from","querySelectorAll","firstCheckedMenuItem","find","hasAttribute","getAttribute","textContent","disconnectedCallback","removeAll","disconnect","render","hamburgerMenu","hideHamburgerMenu","h","key","openHamburgerMenu","ref","search","active","onClick","notifications","appSwitcher","distance","skidding","placement","class","profile","logo","brand","customView","Host","part","shiftContent","defaultView"],"sources":["src/components/six-header/six-header.scss?tag=six-header&encapsulation=shadow","src/components/six-header/six-header.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n user-select: none;\n --search-border-width: 1px;\n}\n\n::slotted(six-search-field) {\n position: absolute;\n margin-left: var(--search-border-width);\n width: calc(100% - 2 * var(--search-border-width));\n}\n\n.six-header {\n display: flex;\n width: 100%;\n height: var(--six-header-height);\n background-color: var(--six-header-background-color);\n align-items: stretch;\n box-shadow: var(--six-shadow-medium);\n border-bottom: var(--six-header-border-with) solid var(--six-header-border-color);\n\n &__logo {\n &--clickable {\n cursor: pointer;\n }\n }\n\n &__placeholder {\n flex: 1;\n }\n\n &__app-switcher-dropdown {\n display: flex;\n align-items: center;\n }\n\n &__selected-app {\n cursor: pointer;\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-bold);\n padding-right: 0;\n padding-left: var(--six-spacing-x-small);\n &:hover {\n color: var(--six-header-selected-app-color-hover);\n }\n }\n\n &__search-field {\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n display: none;\n\n &--visible {\n opacity: 1;\n transform: none;\n display: block;\n }\n\n &--shift-content.six-header__search-field--visible {\n height: 2.65rem;\n transition: var(--six-transition-fast) height;\n }\n\n &--shift-content:not(.six-header__search-field--visible) {\n height: 0;\n transition: var(--six-transition-fast) height;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot, hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixHeaderAppSwitcherSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderProfileSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderSearchFieldToggle {\n visible: boolean;\n}\n\nenum Section {\n None,\n Search,\n AppSwitcher,\n Profile,\n}\n\nenum Slot {\n Search = 'search-field',\n Notifications = 'notifications',\n AppSwitcher = 'app-switcher-menu',\n Profile = 'profile-menu',\n Logo = 'logo',\n}\n\n/**\n * @since 1.0\n * @status stable\n * @slot - Used to define a custom component that is included in the header.\n * @slot search-field - Used to define the search field component in the header.\n * @slot notifications - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the notification component in the header.\n * @slot app-switcher-menu - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the application switcher menu in the header.\n * @slot profile-menu - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the profile menu in the header.\n * @slot profile-avatar - <span style=\"color:red\">[Deprecated]</span>, use six-header `custom` property instead. Used to define the avator in the header.\n */\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /**\n * Set `custom` to `true` for complete control over the header content. When enabled, all other properties and slots\n * are ignored.\n *\n * Use `six-header-item`, `six-header-dropdown-item` and `six-header-menu-button` to structure the content.\n *\n * @since 4.2.7\n * @status beta\n */\n @Prop() custom = false;\n\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /**\n * Set whether the hamburger menu should be visible or not\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Prop() hideHamburgerMenu = false;\n\n /**\n * Set the hamburger menu icon to open or closed state\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Prop() openHamburgerMenu = false;\n\n /**\n * Set the header search to be in an open or closed state.\n *\n * If `custom` is `true`, focuses the first `six-input` found in the search slot.\n */\n @Prop() openSearch = false;\n\n /**\n * Set whether the logo should be clickable\n *\n * @deprecated Use six-header `custom` property with `six-logo` instead\n */\n @Prop() clickableLogo = false;\n\n /**\n * The displayed logo. Either six or bme. Defaults to six.\n *\n * @deprecated Use six-header `custom` property with `six-logo` instead\n */\n @Prop() logo: 'six' | 'bme' = 'six';\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n if (this.custom) {\n if (this.openSearch) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n } else {\n this.computeSearchOpenState();\n }\n }\n\n /**\n * Sets open state for search\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Method()\n async setSearchOpenState(openState: boolean) {\n if (this.selectedSection === Section.Search && !openState) {\n this.selectedSection = Section.None;\n } else if (openState && this.selectedSection !== Section.Search) {\n this.selectedSection = Section.Search;\n }\n }\n\n /**\n * Get open state for search\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Method()\n async getIsSearchOpen() {\n return this.selectedSection === Section.Search;\n }\n\n /**\n * Emitted when the name of the selected app is clicked.\n *\n * @deprecated Use six-header `custom` property with `six-header-dropdown-item` and `six-header-menu-button` instead\n */\n @Event({ eventName: 'six-header-app-name-clicked' }) sixAppNameClicked!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when a menu item is in the app switcher menu is selected.\n *\n * @deprecated Use six-header `custom` property with `six-header-dropdown-item` and `six-header-menu-button` instead\n */\n @Event({ eventName: 'six-header-app-switcher-select' })\n sixAppSwitcherSelect!: EventEmitter<SixHeaderAppSwitcherSelectPayload>;\n\n /**\n * Emitted when a menu item is in the profile menu is selected.\n *\n * @deprecated Use six-header `custom` property with `six-header-dropdown-item` and `six-avatar` instead\n */\n @Event({ eventName: 'six-header-profile-select' }) sixProfileSelect!: EventEmitter<SixHeaderProfileSelectPayload>;\n\n /**\n * Emitted when the hamburger menu is clicked.\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Event({ eventName: 'six-header-hamburger-menu-clicked' }) sixHamburgerClick!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the header logo is clicked.\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Event({ eventName: 'six-header-logo-clicked' }) logoClick!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when search field is toggled.\n *\n * @deprecated Use six-header `custom` property instead\n */\n @Event({ eventName: 'six-header-search-field-toggle' })\n sixSearchFieldToggle!: EventEmitter<SixHeaderSearchFieldToggle>;\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n private slots?: Record<Slot, boolean>;\n\n private mutationObserver?: MutationObserver;\n\n @State() selectedApp?: string;\n @State() selectedSection?: Section;\n\n private hasSlot(slot: Slot): boolean {\n if (this.slots == null) {\n return false;\n }\n return this.slots[slot];\n }\n\n private isSectionSelected(value: Section) {\n return value === this.selectedSection;\n }\n\n private selectSection(section: Section) {\n return () => (this.selectedSection = section);\n }\n\n private toggleSearch() {\n const visible = this.selectedSection !== Section.Search;\n this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;\n this.sixSearchFieldToggle.emit({ visible });\n if (this.selectedSection === Section.Search) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n }\n\n private setupMenu = (el?: HTMLSixIconButtonElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());\n };\n\n private setupLogo = (el?: HTMLElement) => {\n if (!this.clickableLogo || el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.logoClick.emit());\n };\n\n private setupProfile = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private setupAppSwitcher = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.selectedApp = item.innerText;\n this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private appNameClicked = () => this.sixAppNameClicked.emit();\n\n private computeSearchOpenState = () => {\n this.selectedSection = this.openSearch ? Section.Search : Section.None;\n };\n\n componentWillLoad() {\n this.slots = {\n [Slot.Search]: hasSlot(this.host, Slot.Search),\n [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),\n [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),\n [Slot.Profile]: hasSlot(this.host, Slot.Profile),\n [Slot.Logo]: hasSlot(this.host, Slot.Logo),\n };\n\n if (this.hasSlot(Slot.AppSwitcher)) {\n this.updateSelectedApp();\n }\n\n if (this.hasSlot(Slot.Search)) {\n this.computeSearchOpenState();\n }\n }\n\n connectedCallback() {\n const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);\n if (appSwitcherSlot) {\n this.mutationObserver = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {\n this.updateSelectedApp();\n }\n });\n this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });\n }\n }\n\n private updateSelectedApp() {\n // there are more concise ways to select the first checked menu item, but this is one that works for jest\n const element = getSlot(this.host, Slot.AppSwitcher);\n if (element == null) {\n return undefined;\n }\n const items = Array.from(element.querySelectorAll('six-menu-item'));\n const firstCheckedMenuItem = items.find(\n (item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false'\n );\n this.selectedApp = firstCheckedMenuItem?.textContent ?? undefined;\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n this.mutationObserver?.disconnect();\n }\n\n render() {\n const hamburgerMenu = !this.hideHamburgerMenu && (\n <six-header-item>\n <six-icon-button name={this.openHamburgerMenu ? 'menu_open' : 'menu'} ref={this.setupMenu} />\n </six-header-item>\n );\n\n const search = this.hasSlot(Slot.Search) && (\n <six-header-item active={this.isSectionSelected(Section.Search)}>\n <six-icon-button name=\"search\" onClick={() => this.toggleSearch()} data-testid=\"search-trigger\" />\n </six-header-item>\n );\n\n const notifications = this.hasSlot(Slot.Notifications) && (\n <six-header-item>\n <slot name={Slot.Notifications} />\n </six-header-item>\n );\n\n const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (\n <six-header-item active={this.isSectionSelected(Section.AppSwitcher)}>\n <six-dropdown distance={14} skidding={20} placement=\"bottom-end\" ref={this.setupAppSwitcher}>\n <div slot=\"trigger\" class=\"six-header__app-switcher-dropdown\">\n <a onClick={this.appNameClicked} class=\"six-header__selected-app\">\n {this.selectedApp}\n </a>\n <six-icon-button name=\"apps\" />\n </div>\n <slot name={Slot.AppSwitcher} />\n </six-dropdown>\n </six-header-item>\n );\n\n const profile = this.hasSlot(Slot.Profile) && (\n <six-header-item active={this.isSectionSelected(Section.Profile)}>\n <six-dropdown distance={18} skidding={20} placement=\"bottom-end\" ref={this.setupProfile}>\n <slot name=\"profile-avatar\" slot=\"trigger\" />\n <slot name=\"profile-menu\" />\n </six-dropdown>\n </six-header-item>\n );\n\n const logo = this.hasSlot(Slot.Logo) ? (\n <six-header-item>\n <slot name=\"logo\" />\n </six-header-item>\n ) : (\n <six-header-item class={{ 'six-header__logo--clickable': this.clickableLogo }} ref={this.setupLogo}>\n <six-logo brand={this.logo} />\n </six-header-item>\n );\n\n const customView = (\n <Host>\n <header part=\"header\" class=\"six-header\">\n <slot />\n </header>\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.openSearch,\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n\n const defaultView = (\n <Host>\n <header part=\"header\" class=\"six-header\">\n {hamburgerMenu}\n {logo}\n <six-header-item class=\"six-header__placeholder\" />\n <six-header-item>\n <slot />\n </six-header-item>\n {search}\n {notifications}\n {appSwitcher}\n {profile}\n </header>\n\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.isSectionSelected(Section.Search),\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n\n return this.custom ? customView : defaultView;\n }\n}\n"],"mappings":"+IAAA,MAAMA,EAAe,m7CACrB,MAAAC,EAAeD,ECoBf,IAAKE,GAAL,SAAKA,GACHA,IAAA,kBACAA,IAAA,sBACAA,IAAA,gCACAA,IAAA,uBACD,EAL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A2C/B,KAAK2G,eAGlDnB,EAAA,QAAAC,IAAA,2CAAMzE,KAAMlB,EAAKiC,WAKvB,OAAO/B,KAAKiC,OAASuE,EAAaI,C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as a,c as r,h as i}from"./p-05eb1bab.js";import{a as s}from"./p-0cebf1d2.js";import{a as t}from"./p-a1502802.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block;overflow:hidden}.tag{display:flex;align-items:center;border:solid 1px;font-family:var(--six-font-family);line-height:1;white-space:nowrap;user-select:none;cursor:default}.tag__content{text-overflow:ellipsis;overflow:hidden}.tag__clear::part(base){color:inherit;padding:0}.tag--info{color:var(--six-color-white);background-color:var(--six-color-web-rock-900);border-color:var(--six-color-web-rock-900)}.tag--success{color:var(--six-color-web-rock-900);border-color:var(--six-color-success-500);background-color:var(--six-color-success-500)}.tag--primary{color:var(--six-color-web-rock-900);border-color:var(--six-color-clay-50);background-color:var(--six-color-clay-50)}.tag--warning{color:var(--six-color-web-rock-900);border-color:var(--six-color-warning-700);background-color:var(--six-color-warning-700)}.tag--danger{color:var(--six-color-white);border-color:var(--six-color-danger-800);background-color:var(--six-color-danger-800)}.tag--action{color:var(--six-color-white);border-color:var(--six-color-action-500);background-color:var(--six-color-action-500)}.tag--small{font-size:var(--six-button-font-size-small);height:calc(var(--six-height-small) * 0.8);line-height:calc(var(--six-height-small) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-small);padding:0 var(--six-spacing-x-small)}.tag--small .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-xxx-small))}.tag--medium{font-size:var(--six-button-font-size-medium);height:calc(var(--six-height-medium) * 0.8);line-height:calc(var(--six-height-medium) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-medium);padding:0 var(--six-spacing-small)}.tag--medium .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-xx-small))}.tag--large{font-size:var(--six-button-font-size-large);height:calc(var(--six-height-large) * 0.8);line-height:calc(var(--six-height-large) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-large);padding:0 var(--six-spacing-medium)}.tag--large .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-x-small))}.tag--pill{border-radius:var(--six-border-radius-pill)}";const e=o;const l=class{constructor(i){a(this,i);this.sixClear=r(this,"six-tag-clear",7);this.resizeObserver=new ResizeObserver(t((()=>this.updateTooltip())));this.updateTooltip=()=>{if(this.tooltipElement!=null&&this.contentSlotElement!=null&&this.contentElement!=null){this.tooltipElement.content=s(this.contentSlotElement);this.tooltipElement.disabled=!(this.contentElement.offsetWidth<this.contentElement.scrollWidth)}};this.handleClearClick=()=>{this.sixClear.emit()};this.type="primary";this.size="medium";this.pill=false;this.clearable=false}connectedCallback(){if(this.contentElement!=null){this.resizeObserver.observe(this.contentElement)}}componentDidLoad(){if(this.contentElement!=null){this.resizeObserver.observe(this.contentElement)}}disconnectedCallback(){this.resizeObserver.disconnect()}render(){return i("span",{key:"6a02aa0235a9b590604bc92647ac73e22e304136",part:"base",class:{tag:true,"tag--primary":this.type==="primary","tag--success":this.type==="success","tag--info":this.type==="info","tag--warning":this.type==="warning","tag--danger":this.type==="danger","tag--action":this.type==="action","tag--text":this.type==="text","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large","tag--pill":this.pill,"tag--clear":this.clearable}},i("six-tooltip",{key:"e42c81922948e9b944bb828479351e8e3ba87a3b",ref:a=>this.tooltipElement=a},i("span",{key:"84b8a6a071f9c45c5aaec65c0667df111a357562",ref:a=>this.contentElement=a,part:"content",class:"tag__content"},i("slot",{key:"757dcb510fef07b947876706c8a53e07d28bdc7f",ref:a=>this.contentSlotElement=a}))),this.clearable&&i("six-icon-button",{exportparts:"base:clear-button",size:"xSmall",name:"clear",class:"tag__clear",onClick:this.handleClearClick}))}};l.style=e;export{l as six_tag};
2
- //# sourceMappingURL=p-a398e3eb.entry.js.map
1
+ import{r as a,c as r,h as i}from"./p-48118ce8.js";import{a as s}from"./p-0cebf1d2.js";import{a as t}from"./p-a1502802.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block;overflow:hidden}.tag{display:flex;align-items:center;border:solid 1px;font-family:var(--six-font-family);line-height:1;white-space:nowrap;user-select:none;cursor:default}.tag__content{text-overflow:ellipsis;overflow:hidden}.tag__clear::part(base){color:inherit;padding:0}.tag--info{color:var(--six-color-white);background-color:var(--six-color-web-rock-900);border-color:var(--six-color-web-rock-900)}.tag--success{color:var(--six-color-web-rock-900);border-color:var(--six-color-success-500);background-color:var(--six-color-success-500)}.tag--primary{color:var(--six-color-web-rock-900);border-color:var(--six-color-clay-50);background-color:var(--six-color-clay-50)}.tag--warning{color:var(--six-color-web-rock-900);border-color:var(--six-color-warning-700);background-color:var(--six-color-warning-700)}.tag--danger{color:var(--six-color-white);border-color:var(--six-color-danger-800);background-color:var(--six-color-danger-800)}.tag--action{color:var(--six-color-white);border-color:var(--six-color-action-500);background-color:var(--six-color-action-500)}.tag--small{font-size:var(--six-button-font-size-small);height:calc(var(--six-height-small) * 0.8);line-height:calc(var(--six-height-small) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-small);padding:0 var(--six-spacing-x-small)}.tag--small .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-xxx-small))}.tag--medium{font-size:var(--six-button-font-size-medium);height:calc(var(--six-height-medium) * 0.8);line-height:calc(var(--six-height-medium) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-medium);padding:0 var(--six-spacing-small)}.tag--medium .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-xx-small))}.tag--large{font-size:var(--six-button-font-size-large);height:calc(var(--six-height-large) * 0.8);line-height:calc(var(--six-height-large) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-large);padding:0 var(--six-spacing-medium)}.tag--large .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-x-small))}.tag--pill{border-radius:var(--six-border-radius-pill)}";const e=o;const l=class{constructor(i){a(this,i);this.sixClear=r(this,"six-tag-clear",7);this.resizeObserver=new ResizeObserver(t((()=>this.updateTooltip())));this.updateTooltip=()=>{if(this.tooltipElement!=null&&this.contentSlotElement!=null&&this.contentElement!=null){this.tooltipElement.content=s(this.contentSlotElement);this.tooltipElement.disabled=!(this.contentElement.offsetWidth<this.contentElement.scrollWidth)}};this.handleClearClick=()=>{this.sixClear.emit()};this.type="primary";this.size="medium";this.pill=false;this.clearable=false}connectedCallback(){if(this.contentElement!=null){this.resizeObserver.observe(this.contentElement)}}componentDidLoad(){if(this.contentElement!=null){this.resizeObserver.observe(this.contentElement)}}disconnectedCallback(){this.resizeObserver.disconnect()}render(){return i("span",{key:"cf0f1b63dd4cf2887a1ce4640c9073e24c42e79c",part:"base",class:{tag:true,"tag--primary":this.type==="primary","tag--success":this.type==="success","tag--info":this.type==="info","tag--warning":this.type==="warning","tag--danger":this.type==="danger","tag--action":this.type==="action","tag--text":this.type==="text","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large","tag--pill":this.pill,"tag--clear":this.clearable}},i("six-tooltip",{key:"6b8d12fc884f2fd47caea9400e26c283e770dbad",ref:a=>this.tooltipElement=a},i("span",{key:"62a3b5dfa5550c432342bdd5767a39b5b83a3103",ref:a=>this.contentElement=a,part:"content",class:"tag__content"},i("slot",{key:"00a3ef70ceea21c8e807557576f2c4f252cee995",ref:a=>this.contentSlotElement=a}))),this.clearable&&i("six-icon-button",{key:"5eabbf01c5b9d4d2d594c7d3d600cc57b8bd4cec",exportparts:"base:clear-button",size:"xSmall",name:"clear",class:"tag__clear",onClick:this.handleClearClick}))}};l.style=e;export{l as six_tag};
2
+ //# sourceMappingURL=p-5ece7986.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["sixTagCss","SixTagStyle0","SixTag","this","resizeObserver","ResizeObserver","debounce","updateTooltip","tooltipElement","contentSlotElement","contentElement","content","getTextContent","disabled","offsetWidth","scrollWidth","handleClearClick","sixClear","emit","connectedCallback","observe","componentDidLoad","disconnectedCallback","disconnect","render","h","key","part","class","tag","type","size","pill","clearable","ref","el","exportparts","name","onClick"],"sources":["src/components/six-tag/six-tag.scss?tag=six-tag&encapsulation=shadow","src/components/six-tag/six-tag.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n overflow: hidden;\n}\n\n.tag {\n display: flex;\n align-items: center;\n border: solid 1px;\n font-family: var(--six-font-family);\n line-height: 1;\n white-space: nowrap;\n user-select: none;\n cursor: default;\n}\n\n.tag__content {\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.tag__clear::part(base) {\n color: inherit;\n padding: 0;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Type modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--info {\n color: var(--six-color-white);\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n}\n\n.tag--success {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-success-500);\n background-color: var(--six-color-success-500);\n}\n\n.tag--primary {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-clay-50);\n background-color: var(--six-color-clay-50);\n}\n\n.tag--warning {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-warning-700);\n background-color: var(--six-color-warning-700);\n}\n\n.tag--danger {\n color: var(--six-color-white);\n border-color: var(--six-color-danger-800);\n background-color: var(--six-color-danger-800);\n}\n\n.tag--action {\n color: var(--six-color-white);\n border-color: var(--six-color-action-500);\n background-color: var(--six-color-action-500);\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--small {\n font-size: var(--six-button-font-size-small);\n height: calc(var(--six-height-small) * 0.8);\n line-height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-small);\n padding: 0 var(--six-spacing-x-small);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-xxx-small));\n }\n}\n\n.tag--medium {\n font-size: var(--six-button-font-size-medium);\n height: calc(var(--six-height-medium) * 0.8);\n line-height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-medium);\n padding: 0 var(--six-spacing-small);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-xx-small));\n }\n}\n\n.tag--large {\n font-size: var(--six-button-font-size-large);\n height: calc(var(--six-height-large) * 0.8);\n line-height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-large);\n padding: 0 var(--six-spacing-medium);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-x-small));\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--pill {\n border-radius: var(--six-border-radius-pill);\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getTextContent } from '../../utils/slot';\nimport { debounce } from '../../utils/execution-control';\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 tag's content.\n *\n * @part base - The component's base wrapper.\n * @part content - The tag content.\n * @part clear-button - The clear button.\n */\n\n@Component({\n tag: 'six-tag',\n styleUrl: 'six-tag.scss',\n shadow: true,\n})\nexport class SixTag {\n /** The tag's type. */\n @Prop({ reflect: true }) type: 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'action' | 'text' = 'primary';\n\n /** The tag's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw a pill-style tag with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to make the tag clearable. */\n @Prop({ reflect: true }) clearable = false;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-tag-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n private contentSlotElement: HTMLSlotElement | undefined;\n private tooltipElement: HTMLSixTooltipElement | undefined;\n private contentElement: HTMLElement | undefined;\n private resizeObserver = new ResizeObserver(debounce(() => this.updateTooltip()));\n\n connectedCallback() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n componentDidLoad() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n private updateTooltip = () => {\n if (this.tooltipElement != null && this.contentSlotElement != null && this.contentElement != null) {\n this.tooltipElement.content = getTextContent(this.contentSlotElement);\n this.tooltipElement.disabled = !(this.contentElement.offsetWidth < this.contentElement.scrollWidth);\n }\n };\n\n private handleClearClick = () => {\n this.sixClear.emit();\n };\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n tag: true,\n\n // Types\n 'tag--primary': this.type === 'primary',\n 'tag--success': this.type === 'success',\n 'tag--info': this.type === 'info',\n 'tag--warning': this.type === 'warning',\n 'tag--danger': this.type === 'danger',\n 'tag--action': this.type === 'action',\n 'tag--text': this.type === 'text',\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifers\n 'tag--pill': this.pill,\n 'tag--clear': this.clearable,\n }}\n >\n <six-tooltip ref={(el) => (this.tooltipElement = el)}>\n <span ref={(el) => (this.contentElement = el)} part=\"content\" class=\"tag__content\">\n <slot ref={(el) => (this.contentSlotElement = el as HTMLSlotElement)} />\n </span>\n </six-tooltip>\n\n {this.clearable && (\n <six-icon-button\n exportparts=\"base:clear-button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AAQhC,KAAKK,eAAiB2B,GAC/CV,EAAA,QAAAC,IAAA,2CAAMQ,IAAMC,GAAQhC,KAAKO,eAAiByB,EAAKR,KAAK,UAAUC,MAAM,gBAClEH,EAAA,QAAAC,IAAA,2CAAMQ,IAAMC,GAAQhC,KAAKM,mBAAqB0B,MAIjDhC,KAAK8B,WACJR,EAAA,mBACEW,YAAY,oBACZL,KAAK,SACLM,KAAK,QACLT,MAAM,aACNU,QAASnC,KAAKa,mB"}
1
+ {"version":3,"names":["sixTagCss","SixTagStyle0","SixTag","this","resizeObserver","ResizeObserver","debounce","updateTooltip","tooltipElement","contentSlotElement","contentElement","content","getTextContent","disabled","offsetWidth","scrollWidth","handleClearClick","sixClear","emit","connectedCallback","observe","componentDidLoad","disconnectedCallback","disconnect","render","h","key","part","class","tag","type","size","pill","clearable","ref","el","exportparts","name","onClick"],"sources":["src/components/six-tag/six-tag.scss?tag=six-tag&encapsulation=shadow","src/components/six-tag/six-tag.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n overflow: hidden;\n}\n\n.tag {\n display: flex;\n align-items: center;\n border: solid 1px;\n font-family: var(--six-font-family);\n line-height: 1;\n white-space: nowrap;\n user-select: none;\n cursor: default;\n}\n\n.tag__content {\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.tag__clear::part(base) {\n color: inherit;\n padding: 0;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Type modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--info {\n color: var(--six-color-white);\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n}\n\n.tag--success {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-success-500);\n background-color: var(--six-color-success-500);\n}\n\n.tag--primary {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-clay-50);\n background-color: var(--six-color-clay-50);\n}\n\n.tag--warning {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-warning-700);\n background-color: var(--six-color-warning-700);\n}\n\n.tag--danger {\n color: var(--six-color-white);\n border-color: var(--six-color-danger-800);\n background-color: var(--six-color-danger-800);\n}\n\n.tag--action {\n color: var(--six-color-white);\n border-color: var(--six-color-action-500);\n background-color: var(--six-color-action-500);\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--small {\n font-size: var(--six-button-font-size-small);\n height: calc(var(--six-height-small) * 0.8);\n line-height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-small);\n padding: 0 var(--six-spacing-x-small);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-xxx-small));\n }\n}\n\n.tag--medium {\n font-size: var(--six-button-font-size-medium);\n height: calc(var(--six-height-medium) * 0.8);\n line-height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-medium);\n padding: 0 var(--six-spacing-small);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-xx-small));\n }\n}\n\n.tag--large {\n font-size: var(--six-button-font-size-large);\n height: calc(var(--six-height-large) * 0.8);\n line-height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-large);\n padding: 0 var(--six-spacing-medium);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-x-small));\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--pill {\n border-radius: var(--six-border-radius-pill);\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getTextContent } from '../../utils/slot';\nimport { debounce } from '../../utils/execution-control';\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 tag's content.\n *\n * @part base - The component's base wrapper.\n * @part content - The tag content.\n * @part clear-button - The clear button.\n */\n\n@Component({\n tag: 'six-tag',\n styleUrl: 'six-tag.scss',\n shadow: true,\n})\nexport class SixTag {\n /** The tag's type. */\n @Prop({ reflect: true }) type: 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'action' | 'text' = 'primary';\n\n /** The tag's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw a pill-style tag with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to make the tag clearable. */\n @Prop({ reflect: true }) clearable = false;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-tag-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n private contentSlotElement: HTMLSlotElement | undefined;\n private tooltipElement: HTMLSixTooltipElement | undefined;\n private contentElement: HTMLElement | undefined;\n private resizeObserver = new ResizeObserver(debounce(() => this.updateTooltip()));\n\n connectedCallback() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n componentDidLoad() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n private updateTooltip = () => {\n if (this.tooltipElement != null && this.contentSlotElement != null && this.contentElement != null) {\n this.tooltipElement.content = getTextContent(this.contentSlotElement);\n this.tooltipElement.disabled = !(this.contentElement.offsetWidth < this.contentElement.scrollWidth);\n }\n };\n\n private handleClearClick = () => {\n this.sixClear.emit();\n };\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n tag: true,\n\n // Types\n 'tag--primary': this.type === 'primary',\n 'tag--success': this.type === 'success',\n 'tag--info': this.type === 'info',\n 'tag--warning': this.type === 'warning',\n 'tag--danger': this.type === 'danger',\n 'tag--action': this.type === 'action',\n 'tag--text': this.type === 'text',\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifers\n 'tag--pill': this.pill,\n 'tag--clear': this.clearable,\n }}\n >\n <six-tooltip ref={(el) => (this.tooltipElement = el)}>\n <span ref={(el) => (this.contentElement = el)} part=\"content\" class=\"tag__content\">\n <slot ref={(el) => (this.contentSlotElement = el as HTMLSlotElement)} />\n </span>\n </six-tooltip>\n\n {this.clearable && (\n <six-icon-button\n exportparts=\"base:clear-button\"\n size=\"xSmall\"\n name=\"clear\"\n class=\"tag__clear\"\n onClick={this.handleClearClick}\n />\n )}\n </span>\n );\n }\n}\n"],"mappings":"0HAAA,MAAMA,EAAY,60EAClB,MAAAC,EAAeD,E,MCsBFE,EAAM,M,iEAmBTC,KAAAC,eAAiB,IAAIC,eAAeC,GAAS,IAAMH,KAAKI,mBAkBxDJ,KAAAI,cAAgB,KACtB,GAAIJ,KAAKK,gBAAkB,MAAQL,KAAKM,oBAAsB,MAAQN,KAAKO,gBAAkB,KAAM,CACjGP,KAAKK,eAAeG,QAAUC,EAAeT,KAAKM,oBAClDN,KAAKK,eAAeK,WAAaV,KAAKO,eAAeI,YAAcX,KAAKO,eAAeK,Y,GAInFZ,KAAAa,iBAAmB,KACzBb,KAAKc,SAASC,MAAM,E,UA3CqF,U,UAG7C,S,UAG9B,M,eAGK,K,CAUrC,iBAAAC,GACE,GAAIhB,KAAKO,gBAAkB,KAAM,CAC/BP,KAAKC,eAAegB,QAAQjB,KAAKO,e,EAIrC,gBAAAW,GACE,GAAIlB,KAAKO,gBAAkB,KAAM,CAC/BP,KAAKC,eAAegB,QAAQjB,KAAKO,e,EAIrC,oBAAAY,GACEnB,KAAKC,eAAemB,Y,CActB,MAAAC,GACE,OACEC,EAAA,QAAAC,IAAA,2CACEC,KAAK,OACLC,MAAO,CACLC,IAAK,KAGL,eAAgB1B,KAAK2B,OAAS,UAC9B,eAAgB3B,KAAK2B,OAAS,UAC9B,YAAa3B,KAAK2B,OAAS,OAC3B,eAAgB3B,KAAK2B,OAAS,UAC9B,cAAe3B,KAAK2B,OAAS,SAC7B,cAAe3B,KAAK2B,OAAS,SAC7B,YAAa3B,KAAK2B,OAAS,OAG3B,aAAc3B,KAAK4B,OAAS,QAC5B,cAAe5B,KAAK4B,OAAS,SAC7B,aAAc5B,KAAK4B,OAAS,QAG5B,YAAa5B,KAAK6B,KAClB,aAAc7B,KAAK8B,YAGrBR,EAAA,eAAAC,IAAA,2CAAaQ,IAAMC,GAAQhC,KAAKK,eAAiB2B,GAC/CV,EAAA,QAAAC,IAAA,2CAAMQ,IAAMC,GAAQhC,KAAKO,eAAiByB,EAAKR,KAAK,UAAUC,MAAM,gBAClEH,EAAA,QAAAC,IAAA,2CAAMQ,IAAMC,GAAQhC,KAAKM,mBAAqB0B,MAIjDhC,KAAK8B,WACJR,EAAA,mBAAAC,IAAA,2CACEU,YAAY,oBACZL,KAAK,SACLM,KAAK,QACLT,MAAM,aACNU,QAASnC,KAAKa,mB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e}from"./p-48118ce8.js";const a=":host{display:block}six-button::part(base){border:none;padding-right:0}six-button::part(label){border:none;font-weight:var(--six-font-weight-bold);font-size:var(--six-font-size-small);padding-left:0}six-button:focus::part(base),six-button:hover::part(base),six-button:active::part(base){background-color:initial;border-color:initial}six-button:hover::part(base),six-button:active::part(base){color:var(--six-header-selected-app-color-hover)}";const o=a;const s=class{constructor(e){t(this,e);this.icon=""}render(){return e("six-button",{key:"a90b8172714045d7d6a4dfac4d1c2755d6ec5090",type:"secondary"},e("span",{key:"4aa77d118aa8d2b634327e9b62d8e17ee3742e87",slot:"suffix"},e("six-icon",{key:"dc64461f222af85ed126c307a94cd2f4f3020eac"},this.icon)),e("slot",{key:"a611c0d9090a039f682350240c07aa77fb76ebad"}))}};s.style=o;export{s as six_header_menu_button};
2
+ //# sourceMappingURL=p-5f491974.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sixHeaderMenuButtonCss","SixHeaderMenuButtonStyle0","SixHeaderMenuButton","render","h","key","type","slot","this","icon"],"sources":["src/components/six-header-menu-button/six-header-menu-button.scss?tag=six-header-menu-button&encapsulation=shadow","src/components/six-header-menu-button/six-header-menu-button.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\nsix-button::part(base) {\n border: none;\n padding-right: 0;\n}\n\nsix-button::part(label) {\n border: none;\n font-weight: var(--six-font-weight-bold);\n font-size: var(--six-font-size-small);\n padding-left: 0;\n}\n\nsix-button:focus::part(base),\nsix-button:hover::part(base),\nsix-button:active::part(base) {\n background-color: initial;\n border-color: initial;\n}\n\nsix-button:hover::part(base),\nsix-button:active::part(base) {\n color: var(--six-header-selected-app-color-hover);\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @since 4.2.7\n * @status beta\n */\n\n@Component({\n tag: 'six-header-menu-button',\n styleUrl: 'six-header-menu-button.scss',\n shadow: true,\n})\nexport class SixHeaderMenuButton {\n /**\n * The icon of the menu button.\n */\n @Prop({ reflect: true }) icon = '';\n\n render() {\n return (\n <six-button type=\"secondary\">\n <span slot=\"suffix\">\n <six-icon>{this.icon}</six-icon>\n </span>\n <slot />\n </six-button>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAyB,4bAC/B,MAAAC,EAAeD,E,MCWFE,EAAmB,M,mCAIE,E,CAEhC,MAAAC,GACE,OACEC,EAAA,cAAAC,IAAA,2CAAYC,KAAK,aACfF,EAAA,QAAAC,IAAA,2CAAME,KAAK,UACTH,EAAA,YAAAC,IAAA,4CAAWG,KAAKC,OAElBL,EAAA,QAAAC,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as i,c as s,h as t}from"./p-05eb1bab.js";import{s as e}from"./p-8227aaed.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block;height:100%}.sidebar__container{height:100%;overflow:auto}.sidebar__container.sidebar--open{border-right:1px solid var(--six-color-web-rock-300)}.sidebar__container:not(.sidebar--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.sidebar--left{color:var(--six-sidebar-color);background-color:var(--six-sidebar-background-color);transition:var(--six-transition-medium) margin-left;background-size:300vw 70%;background-position:bottom;background-repeat:no-repeat}.sidebar--right{transition:var(--six-transition-medium) margin-right}.sidebar--open.sidebar--left{margin-right:2px}.sidebar--open.sidebar--right{margin-left:2px}";const r=o;const n=i=>{var s;return((s=i===null||i===void 0?void 0:i.tagName)===null||s===void 0?void 0:s.toLowerCase())==="six-sidebar-item-group"};const a=class{constructor(t){i(this,t);this.sixShow=s(this,"six-sidebar-show",7);this.sixAfterShow=s(this,"six-sidebar-after-show",7);this.sixHide=s(this,"six-sidebar-hide",7);this.sixAfterHide=s(this,"six-sidebar-after-hide",7);this.sixInitialFocus=s(this,"six-sidebar-initial-focus",7);this.willShow=false;this.willHide=false;this.handleTransitionEnd=i=>{const s=i.target;if(i.type==="transitionend"&&s.classList.contains("sidebar__container")){this.resetTransitionVariables()}};this.closeSiblingDetailsOnShow=i=>{const s=i.target;if(this.sidebar!=null){e(s,this.sidebar)}const t=i=>{var t;let e=s;while(i(e)!=null){e=i(e);if(n(e)){const i=(t=e===null||e===void 0?void 0:e.shadowRoot)===null||t===void 0?void 0:t.querySelector("six-details");if(i!=null){i.open=false}}}};t((i=>i===null||i===void 0?void 0:i.previousElementSibling));t((i=>i===null||i===void 0?void 0:i.nextElementSibling))};this.isVisible=false;this.position="left";this.open=false;this.width="16rem";this.toggled=false}handleOpenChange(){this.open?this.show():this.hide()}componentWillLoad(){if(this.open){void this.show();this.resetTransitionVariables()}}componentDidRender(){this.setupTogglableMenuItems()}disconnectedCallback(){var i;(i=this.sidebar)===null||i===void 0?void 0:i.removeEventListener("six-details-show",this.closeSiblingDetailsOnShow)}setupTogglableMenuItems(){if(!this.toggled||this.sidebar==null)return;this.markAllMenuItemsAsSelectableEmpty();this.sidebar.addEventListener("six-details-show",this.closeSiblingDetailsOnShow)}markAllMenuItemsAsSelectableEmpty(){var i;const s=(i=this.sidebar)===null||i===void 0?void 0:i.querySelector("slot");const t=(s===null||s===void 0?void 0:s.assignedElements())||[];const e=[];while(t.length>0){const i=t.pop();if((i===null||i===void 0?void 0:i.shadowRoot)==null){continue}const s=i.shadowRoot.querySelectorAll("six-details");e.push(...s);const o=Array.from(i.children).filter(n);t.push(...o)}e.forEach((i=>i.selectableEmpty=true))}async toggle(){if(this.willShow||this.willHide){return}if(this.open){await this.hide()}else{await this.show()}}async show(){if(this.willShow){return}const i=this.sixShow.emit();if(i.defaultPrevented){this.open=false;return}this.willShow=true;this.isVisible=true;this.open=true}async hide(){if(this.willHide){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.willHide=true;this.open=false}async selectItemByIndex(i){if(this.sidebar==null)return;const s=this.sidebar.querySelector("slot");const t=((s===null||s===void 0?void 0:s.assignedElements())||[]).flatMap((i=>{var s;const t=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelector("six-details");if(t==null){return[]}return[t]}));if(i<0||i>t.length-1){console.error(`Tried to access sidebar menu item by index, but provided index out of range. Provided index: ${i}`);return}await t[i].show()}async selectItemByName(i){var s,t,e;const o=(s=this.sidebar)===null||s===void 0?void 0:s.querySelector("slot");const r=o===null||o===void 0?void 0:o.assignedElements();if(r==null){return}const n=r.findIndex((s=>(s===null||s===void 0?void 0:s.name)===i));const a=(e=(t=r.at(n))===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.querySelector("six-details");await(a===null||a===void 0?void 0:a.show())}resetTransitionVariables(){this.isVisible=this.open;this.willShow=false;this.willHide=false;this.open?this.sixAfterShow.emit():this.sixAfterHide.emit()}render(){return t("host",{key:"9d2b3038cf6af596590bbe0392c5197d49ae9ba1",class:"six-sidebar"},t("div",{key:"81390d2ad8a8fc2d9e344a62197983d11b27d389",class:{sidebar__container:true,"sidebar--visible":this.isVisible,"sidebar--open":this.open,"sidebar--left":this.position==="left","sidebar--right":this.position==="right"},style:{width:this.width,[`margin-${this.position}`]:this.open?"0":`calc(1rem - ${this.width})`},ref:i=>this.sidebar=i,"aria-hidden":this.open?"false":"true",onTransitionEnd:this.handleTransitionEnd},t("slot",{key:"e48036d762b116330fa687a71bb50ca87a8bed74"})))}static get watchers(){return{open:["handleOpenChange"]}}};a.style=r;export{a as six_sidebar};
2
- //# sourceMappingURL=p-b60c20aa.entry.js.map
1
+ import{r as i,c as s,h as t}from"./p-48118ce8.js";import{s as e}from"./p-8227aaed.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block;height:100%}.sidebar__container{height:100%;overflow:auto}.sidebar__container.sidebar--open{border-right:1px solid var(--six-color-web-rock-300)}.sidebar__container:not(.sidebar--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.sidebar--left{color:var(--six-sidebar-color);background-color:var(--six-sidebar-background-color);transition:var(--six-transition-medium) margin-left;background-size:300vw 70%;background-position:bottom;background-repeat:no-repeat}.sidebar--right{transition:var(--six-transition-medium) margin-right}.sidebar--open.sidebar--left{margin-right:2px}.sidebar--open.sidebar--right{margin-left:2px}";const r=o;const n=i=>{var s;return((s=i===null||i===void 0?void 0:i.tagName)===null||s===void 0?void 0:s.toLowerCase())==="six-sidebar-item-group"};const a=class{constructor(t){i(this,t);this.sixShow=s(this,"six-sidebar-show",7);this.sixAfterShow=s(this,"six-sidebar-after-show",7);this.sixHide=s(this,"six-sidebar-hide",7);this.sixAfterHide=s(this,"six-sidebar-after-hide",7);this.sixInitialFocus=s(this,"six-sidebar-initial-focus",7);this.willShow=false;this.willHide=false;this.handleTransitionEnd=i=>{const s=i.target;if(i.type==="transitionend"&&s.classList.contains("sidebar__container")){this.resetTransitionVariables()}};this.closeSiblingDetailsOnShow=i=>{const s=i.target;if(this.sidebar!=null){e(s,this.sidebar)}const t=i=>{var t;let e=s;while(i(e)!=null){e=i(e);if(n(e)){const i=(t=e===null||e===void 0?void 0:e.shadowRoot)===null||t===void 0?void 0:t.querySelector("six-details");if(i!=null){i.open=false}}}};t((i=>i===null||i===void 0?void 0:i.previousElementSibling));t((i=>i===null||i===void 0?void 0:i.nextElementSibling))};this.isVisible=false;this.position="left";this.open=false;this.width="16rem";this.toggled=false}handleOpenChange(){this.open?this.show():this.hide()}componentWillLoad(){if(this.open){void this.show();this.resetTransitionVariables()}}componentDidRender(){this.setupTogglableMenuItems()}disconnectedCallback(){var i;(i=this.sidebar)===null||i===void 0?void 0:i.removeEventListener("six-details-show",this.closeSiblingDetailsOnShow)}setupTogglableMenuItems(){if(!this.toggled||this.sidebar==null)return;this.markAllMenuItemsAsSelectableEmpty();this.sidebar.addEventListener("six-details-show",this.closeSiblingDetailsOnShow)}markAllMenuItemsAsSelectableEmpty(){var i;const s=(i=this.sidebar)===null||i===void 0?void 0:i.querySelector("slot");const t=(s===null||s===void 0?void 0:s.assignedElements())||[];const e=[];while(t.length>0){const i=t.pop();if((i===null||i===void 0?void 0:i.shadowRoot)==null){continue}const s=i.shadowRoot.querySelectorAll("six-details");e.push(...s);const o=Array.from(i.children).filter(n);t.push(...o)}e.forEach((i=>i.selectableEmpty=true))}async toggle(){if(this.willShow||this.willHide){return}if(this.open){await this.hide()}else{await this.show()}}async show(){if(this.willShow){return}const i=this.sixShow.emit();if(i.defaultPrevented){this.open=false;return}this.willShow=true;this.isVisible=true;this.open=true}async hide(){if(this.willHide){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.willHide=true;this.open=false}async selectItemByIndex(i){if(this.sidebar==null)return;const s=this.sidebar.querySelector("slot");const t=((s===null||s===void 0?void 0:s.assignedElements())||[]).flatMap((i=>{var s;const t=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelector("six-details");if(t==null){return[]}return[t]}));if(i<0||i>t.length-1){console.error(`Tried to access sidebar menu item by index, but provided index out of range. Provided index: ${i}`);return}await t[i].show()}async selectItemByName(i){var s,t,e;const o=(s=this.sidebar)===null||s===void 0?void 0:s.querySelector("slot");const r=o===null||o===void 0?void 0:o.assignedElements();if(r==null){return}const n=r.findIndex((s=>(s===null||s===void 0?void 0:s.name)===i));const a=(e=(t=r.at(n))===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.querySelector("six-details");await(a===null||a===void 0?void 0:a.show())}resetTransitionVariables(){this.isVisible=this.open;this.willShow=false;this.willHide=false;this.open?this.sixAfterShow.emit():this.sixAfterHide.emit()}render(){return t("host",{key:"056450e289f2d1edff97ee37efbab15b85a76527",class:"six-sidebar"},t("div",{key:"c36b3f22dbc31e448373a0bb61886bb2acf383ed",class:{sidebar__container:true,"sidebar--visible":this.isVisible,"sidebar--open":this.open,"sidebar--left":this.position==="left","sidebar--right":this.position==="right"},style:{width:this.width,[`margin-${this.position}`]:this.open?"0":`calc(1rem - ${this.width})`},ref:i=>this.sidebar=i,"aria-hidden":this.open?"false":"true",onTransitionEnd:this.handleTransitionEnd},t("slot",{key:"59362071f0a76df0714699478e8fcea6a34c83b3"})))}static get watchers(){return{open:["handleOpenChange"]}}};a.style=r;export{a as six_sidebar};
2
+ //# sourceMappingURL=p-5fc9cd7b.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["sixSidebarCss","SixSidebarStyle0","isSidebarItemGroup","node","_a","tagName","toLowerCase","SixSidebar","this","willShow","willHide","handleTransitionEnd","event","target","type","classList","contains","resetTransitionVariables","closeSiblingDetailsOnShow","clickedMenuItem","sidebar","scrollIntoView","closeAllSiblingsBySiblingProperty","getSibling","detailsElement","shadowRoot","querySelector","open","previousElementSibling","nextElementSibling","handleOpenChange","show","hide","componentWillLoad","componentDidRender","setupTogglableMenuItems","disconnectedCallback","removeEventListener","toggled","markAllMenuItemsAsSelectableEmpty","addEventListener","slot","nodes","assignedElements","menuItems","length","pop","menuItemsForCurrentNode","querySelectorAll","push","newItemGroups","Array","from","children","filter","forEach","details","selectableEmpty","toggle","sixShow","emit","defaultPrevented","isVisible","sixHide","selectItemByIndex","index","menuItemsOnRootLevel","flatMap","el","console","error","selectItemByName","value","sidebarItemGroups","indexOfSelectedElement","findIndex","name","selectedItem","_c","_b","at","sixAfterShow","sixAfterHide","render","h","key","class","sidebar__container","position","style","width","ref","onTransitionEnd"],"sources":["src/components/six-sidebar/six-sidebar.scss?tag=six-sidebar&encapsulation=shadow","src/components/six-sidebar/six-sidebar.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n@import 'src/global/mixins/scrollbar';\n\n:host {\n display: block;\n height: 100%;\n}\n\n.sidebar {\n &__container {\n // scroll\n height: 100%;\n overflow: auto;\n\n &.sidebar--open {\n border-right: 1px solid var(--six-color-web-rock-300);\n }\n\n &:not(.sidebar--visible) {\n @include hidden;\n }\n }\n\n &--left {\n color: var(--six-sidebar-color);\n background-color: var(--six-sidebar-background-color);\n // collapse\n transition: var(--six-transition-medium) margin-left;\n // six background\n background-size: 300vw 70%;\n background-position: bottom;\n background-repeat: no-repeat;\n }\n\n &--right {\n // collapse\n transition: var(--six-transition-medium) margin-right;\n }\n\n // if the sidebar is embedded within six-root it cuts-off the border styling, for thus we need to guarante a margin\n &--open {\n &.sidebar--left {\n margin-right: 2px;\n }\n\n &.sidebar--right {\n margin-left: 2px;\n }\n }\n}\n","import { Component, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { scrollIntoView } from '../../utils/scroll';\n\nconst isSidebarItemGroup = (node?: Element | null): boolean =>\n node?.tagName?.toLowerCase() === 'six-sidebar-item-group';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the nested side bar [group] items.\n */\n\n@Component({\n tag: 'six-sidebar',\n styleUrl: 'six-sidebar.scss',\n shadow: true,\n})\nexport class SixSidebar {\n private willShow = false;\n private willHide = false;\n\n private sidebar?: HTMLElement;\n\n @State() isVisible = false;\n\n /** Sidebar position */\n @Prop() position: 'left' | 'right' = 'left';\n\n /** Indicates whether the sidebar is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Sidebar width */\n @Prop() width = '16rem';\n\n /** Define whether sidebar is toggled meaning only one menu can be open at the same time*/\n @Prop() toggled = false;\n\n /** Emitted when the sidebar opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-sidebar-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the sidebar opens and all transitions are complete. */\n @Event({ eventName: 'six-sidebar-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the sidebar closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-sidebar-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the sidebar closes and all transitions are complete. */\n @Event({ eventName: 'six-sidebar-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the sidebar opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the sidebar, such as an input or button.\n */\n @Event({ eventName: 'six-sidebar-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.type === 'transitionend' && target.classList.contains('sidebar__container')) {\n this.resetTransitionVariables();\n }\n };\n\n componentWillLoad() {\n // Show on init if open\n if (this.open) {\n void this.show();\n // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n componentDidRender() {\n this.setupTogglableMenuItems();\n }\n\n disconnectedCallback() {\n this.sidebar?.removeEventListener('six-details-show', this.closeSiblingDetailsOnShow);\n }\n\n private closeSiblingDetailsOnShow = (event: Event) => {\n const clickedMenuItem = event.target as HTMLElement;\n if (this.sidebar != null) {\n scrollIntoView(clickedMenuItem, this.sidebar);\n }\n\n const closeAllSiblingsBySiblingProperty = (\n getSibling: (node: Element | null | undefined) => Element | null | undefined\n ) => {\n let node: Element | null | undefined = clickedMenuItem;\n while (getSibling(node) != null) {\n node = getSibling(node);\n if (isSidebarItemGroup(node)) {\n const detailsElement = node?.shadowRoot?.querySelector('six-details');\n if (detailsElement != null) {\n detailsElement.open = false;\n }\n }\n }\n };\n\n // close all previous siblings\n closeAllSiblingsBySiblingProperty((node) => node?.previousElementSibling);\n // close all further siblings\n closeAllSiblingsBySiblingProperty((node) => node?.nextElementSibling);\n };\n\n private setupTogglableMenuItems() {\n if (!this.toggled || this.sidebar == null) return;\n this.markAllMenuItemsAsSelectableEmpty();\n this.sidebar.addEventListener('six-details-show', this.closeSiblingDetailsOnShow);\n }\n\n private markAllMenuItemsAsSelectableEmpty() {\n // when you have a toggled menu you also want to close other menu items when you click on an item without children\n // nice benefit this item will then also be highlighted\n const slot = this.sidebar?.querySelector('slot');\n const nodes = slot?.assignedElements() || [];\n\n // since we don't just want to make the top level empty menuItems selectable in toggled mode,\n // but also nested items we need to traverse the whole menu item tree\n const menuItems = [];\n while (nodes.length > 0) {\n const node = nodes.pop();\n if (node?.shadowRoot == null) {\n continue;\n }\n\n // collect six-details in the current shadowDOM\n const menuItemsForCurrentNode = node.shadowRoot.querySelectorAll('six-details');\n menuItems.push(...menuItemsForCurrentNode);\n\n // collect all six-sidebar-item-group children of the current node to afterwards check their shadowDOM too\n const newItemGroups = Array.from(node.children).filter(isSidebarItemGroup);\n nodes.push(...newItemGroups);\n }\n\n menuItems.forEach((details) => (details.selectableEmpty = true));\n }\n\n /** Toggles whether the sidebar should be shown or hidden */\n @Method()\n async toggle() {\n if (this.willShow || this.willHide) {\n return;\n }\n\n if (this.open) {\n await this.hide();\n } else {\n await this.show();\n }\n }\n\n /** Shows the sidebar */\n @Method()\n async show() {\n if (this.willShow) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n }\n\n /** Hides the sidebar */\n @Method()\n async hide() {\n if (this.willHide) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n }\n\n /** Allows to select a menu item programmatically by index */\n @Method()\n async selectItemByIndex(index: number) {\n if (this.sidebar == null) return;\n\n const slot = this.sidebar.querySelector('slot');\n const menuItemsOnRootLevel: HTMLSixDetailsElement[] = (slot?.assignedElements() || []).flatMap((el) => {\n const detailsElement = el.shadowRoot?.querySelector('six-details');\n if (detailsElement == null) {\n return [];\n }\n return [detailsElement];\n });\n if (index < 0 || index > menuItemsOnRootLevel.length - 1) {\n console.error(\n `Tried to access sidebar menu item by index, but provided index out of range. Provided index: ${index}`\n );\n return;\n }\n await menuItemsOnRootLevel[index].show();\n }\n\n /** Allows to select a menu item programmatically by name */\n @Method()\n async selectItemByName(value: string) {\n const slot = this.sidebar?.querySelector('slot');\n const sidebarItemGroups = slot?.assignedElements() as HTMLSixSidebarItemGroupElement[];\n if (sidebarItemGroups == null) {\n return;\n }\n\n const indexOfSelectedElement = sidebarItemGroups.findIndex((el) => el?.name === value);\n const selectedItem = sidebarItemGroups.at(indexOfSelectedElement)?.shadowRoot?.querySelector('six-details');\n await selectedItem?.show();\n }\n\n private resetTransitionVariables() {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n\n render() {\n return (\n <host class=\"six-sidebar\">\n <div\n class={{\n sidebar__container: true,\n 'sidebar--visible': this.isVisible,\n 'sidebar--open': this.open,\n 'sidebar--left': this.position === 'left',\n 'sidebar--right': this.position === 'right',\n }}\n style={{\n width: this.width,\n [`margin-${this.position}`]: this.open ? '0' : `calc(1rem - ${this.width})`,\n }}\n ref={(el) => (this.sidebar = el)}\n aria-hidden={this.open ? 'false' : 'true'}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <slot />\n </div>\n </host>\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAgB,00BACtB,MAAAC,EAAeD,ECGf,MAAME,EAAsBC,IAAqB,IAAAC,EAC/C,QAAAA,EAAAD,IAAI,MAAJA,SAAI,SAAJA,EAAME,WAAO,MAAAD,SAAA,SAAAA,EAAEE,iBAAkB,wBAAwB,E,MAc9CC,EAAU,M,kRACbC,KAAAC,SAAW,MACXD,KAAAE,SAAW,MAyCXF,KAAAG,oBAAuBC,IAC7B,MAAMC,EAASD,EAAMC,OAGrB,GAAID,EAAME,OAAS,iBAAmBD,EAAOE,UAAUC,SAAS,sBAAuB,CACrFR,KAAKS,0B,GAsBDT,KAAAU,0BAA6BN,IACnC,MAAMO,EAAkBP,EAAMC,OAC9B,GAAIL,KAAKY,SAAW,KAAM,CACxBC,EAAeF,EAAiBX,KAAKY,Q,CAGvC,MAAME,EACJC,I,MAEA,IAAIpB,EAAmCgB,EACvC,MAAOI,EAAWpB,IAAS,KAAM,CAC/BA,EAAOoB,EAAWpB,GAClB,GAAID,EAAmBC,GAAO,CAC5B,MAAMqB,GAAiBpB,EAAAD,IAAI,MAAJA,SAAI,SAAJA,EAAMsB,cAAU,MAAArB,SAAA,SAAAA,EAAEsB,cAAc,eACvD,GAAIF,GAAkB,KAAM,CAC1BA,EAAeG,KAAO,K,KAO9BL,GAAmCnB,GAASA,IAAI,MAAJA,SAAI,SAAJA,EAAMyB,yBAElDN,GAAmCnB,GAASA,IAAI,MAAJA,SAAI,SAAJA,EAAM0B,oBAAmB,E,eAxFlD,M,cAGgB,O,UAGU,M,WAG/B,Q,aAGE,K,CAqBlB,gBAAAC,GACEtB,KAAKmB,KAAOnB,KAAKuB,OAASvB,KAAKwB,M,CAYjC,iBAAAC,GAEE,GAAIzB,KAAKmB,KAAM,MACRnB,KAAKuB,OAGVvB,KAAKS,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IAAA,2CAAMC,MAAM,eACVF,EAAA,OAAAC,IAAA,2CACEC,MAAO,CACLC,mBAAoB,KACpB,mBAAoB/E,KAAKsD,UACzB,gBAAiBtD,KAAKmB,KACtB,gBAAiBnB,KAAKgF,WAAa,OACnC,iBAAkBhF,KAAKgF,WAAa,SAEtCC,MAAO,CACLC,MAAOlF,KAAKkF,MACZ,CAAC,UAAUlF,KAAKgF,YAAahF,KAAKmB,KAAO,IAAM,eAAenB,KAAKkF,UAErEC,IAAMvB,GAAQ5D,KAAKY,QAAUgD,EAAG,cACnB5D,KAAKmB,KAAO,QAAU,OACnCiE,gBAAiBpF,KAAKG,qBAEtByE,EAAA,QAAAC,IAAA,8C"}
1
+ {"version":3,"names":["sixSidebarCss","SixSidebarStyle0","isSidebarItemGroup","node","_a","tagName","toLowerCase","SixSidebar","this","willShow","willHide","handleTransitionEnd","event","target","type","classList","contains","resetTransitionVariables","closeSiblingDetailsOnShow","clickedMenuItem","sidebar","scrollIntoView","closeAllSiblingsBySiblingProperty","getSibling","detailsElement","shadowRoot","querySelector","open","previousElementSibling","nextElementSibling","handleOpenChange","show","hide","componentWillLoad","componentDidRender","setupTogglableMenuItems","disconnectedCallback","removeEventListener","toggled","markAllMenuItemsAsSelectableEmpty","addEventListener","slot","nodes","assignedElements","menuItems","length","pop","menuItemsForCurrentNode","querySelectorAll","push","newItemGroups","Array","from","children","filter","forEach","details","selectableEmpty","toggle","sixShow","emit","defaultPrevented","isVisible","sixHide","selectItemByIndex","index","menuItemsOnRootLevel","flatMap","el","console","error","selectItemByName","value","sidebarItemGroups","indexOfSelectedElement","findIndex","name","selectedItem","_c","_b","at","sixAfterShow","sixAfterHide","render","h","key","class","sidebar__container","position","style","width","ref","onTransitionEnd"],"sources":["src/components/six-sidebar/six-sidebar.scss?tag=six-sidebar&encapsulation=shadow","src/components/six-sidebar/six-sidebar.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n@import 'src/global/mixins/scrollbar';\n\n:host {\n display: block;\n height: 100%;\n}\n\n.sidebar {\n &__container {\n // scroll\n height: 100%;\n overflow: auto;\n\n &.sidebar--open {\n border-right: 1px solid var(--six-color-web-rock-300);\n }\n\n &:not(.sidebar--visible) {\n @include hidden;\n }\n }\n\n &--left {\n color: var(--six-sidebar-color);\n background-color: var(--six-sidebar-background-color);\n // collapse\n transition: var(--six-transition-medium) margin-left;\n // six background\n background-size: 300vw 70%;\n background-position: bottom;\n background-repeat: no-repeat;\n }\n\n &--right {\n // collapse\n transition: var(--six-transition-medium) margin-right;\n }\n\n // if the sidebar is embedded within six-root it cuts-off the border styling, for thus we need to guarante a margin\n &--open {\n &.sidebar--left {\n margin-right: 2px;\n }\n\n &.sidebar--right {\n margin-left: 2px;\n }\n }\n}\n","import { Component, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { scrollIntoView } from '../../utils/scroll';\n\nconst isSidebarItemGroup = (node?: Element | null): boolean =>\n node?.tagName?.toLowerCase() === 'six-sidebar-item-group';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the nested side bar [group] items.\n */\n\n@Component({\n tag: 'six-sidebar',\n styleUrl: 'six-sidebar.scss',\n shadow: true,\n})\nexport class SixSidebar {\n private willShow = false;\n private willHide = false;\n\n private sidebar?: HTMLElement;\n\n @State() isVisible = false;\n\n /** Sidebar position */\n @Prop() position: 'left' | 'right' = 'left';\n\n /** Indicates whether the sidebar is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Sidebar width */\n @Prop() width = '16rem';\n\n /** Define whether sidebar is toggled meaning only one menu can be open at the same time*/\n @Prop() toggled = false;\n\n /** Emitted when the sidebar opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-sidebar-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the sidebar opens and all transitions are complete. */\n @Event({ eventName: 'six-sidebar-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the sidebar closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-sidebar-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the sidebar closes and all transitions are complete. */\n @Event({ eventName: 'six-sidebar-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the sidebar opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the sidebar, such as an input or button.\n */\n @Event({ eventName: 'six-sidebar-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.type === 'transitionend' && target.classList.contains('sidebar__container')) {\n this.resetTransitionVariables();\n }\n };\n\n componentWillLoad() {\n // Show on init if open\n if (this.open) {\n void this.show();\n // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n componentDidRender() {\n this.setupTogglableMenuItems();\n }\n\n disconnectedCallback() {\n this.sidebar?.removeEventListener('six-details-show', this.closeSiblingDetailsOnShow);\n }\n\n private closeSiblingDetailsOnShow = (event: Event) => {\n const clickedMenuItem = event.target as HTMLElement;\n if (this.sidebar != null) {\n scrollIntoView(clickedMenuItem, this.sidebar);\n }\n\n const closeAllSiblingsBySiblingProperty = (\n getSibling: (node: Element | null | undefined) => Element | null | undefined\n ) => {\n let node: Element | null | undefined = clickedMenuItem;\n while (getSibling(node) != null) {\n node = getSibling(node);\n if (isSidebarItemGroup(node)) {\n const detailsElement = node?.shadowRoot?.querySelector('six-details');\n if (detailsElement != null) {\n detailsElement.open = false;\n }\n }\n }\n };\n\n // close all previous siblings\n closeAllSiblingsBySiblingProperty((node) => node?.previousElementSibling);\n // close all further siblings\n closeAllSiblingsBySiblingProperty((node) => node?.nextElementSibling);\n };\n\n private setupTogglableMenuItems() {\n if (!this.toggled || this.sidebar == null) return;\n this.markAllMenuItemsAsSelectableEmpty();\n this.sidebar.addEventListener('six-details-show', this.closeSiblingDetailsOnShow);\n }\n\n private markAllMenuItemsAsSelectableEmpty() {\n // when you have a toggled menu you also want to close other menu items when you click on an item without children\n // nice benefit this item will then also be highlighted\n const slot = this.sidebar?.querySelector('slot');\n const nodes = slot?.assignedElements() || [];\n\n // since we don't just want to make the top level empty menuItems selectable in toggled mode,\n // but also nested items we need to traverse the whole menu item tree\n const menuItems = [];\n while (nodes.length > 0) {\n const node = nodes.pop();\n if (node?.shadowRoot == null) {\n continue;\n }\n\n // collect six-details in the current shadowDOM\n const menuItemsForCurrentNode = node.shadowRoot.querySelectorAll('six-details');\n menuItems.push(...menuItemsForCurrentNode);\n\n // collect all six-sidebar-item-group children of the current node to afterwards check their shadowDOM too\n const newItemGroups = Array.from(node.children).filter(isSidebarItemGroup);\n nodes.push(...newItemGroups);\n }\n\n menuItems.forEach((details) => (details.selectableEmpty = true));\n }\n\n /** Toggles whether the sidebar should be shown or hidden */\n @Method()\n async toggle() {\n if (this.willShow || this.willHide) {\n return;\n }\n\n if (this.open) {\n await this.hide();\n } else {\n await this.show();\n }\n }\n\n /** Shows the sidebar */\n @Method()\n async show() {\n if (this.willShow) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n }\n\n /** Hides the sidebar */\n @Method()\n async hide() {\n if (this.willHide) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n }\n\n /** Allows to select a menu item programmatically by index */\n @Method()\n async selectItemByIndex(index: number) {\n if (this.sidebar == null) return;\n\n const slot = this.sidebar.querySelector('slot');\n const menuItemsOnRootLevel: HTMLSixDetailsElement[] = (slot?.assignedElements() || []).flatMap((el) => {\n const detailsElement = el.shadowRoot?.querySelector('six-details');\n if (detailsElement == null) {\n return [];\n }\n return [detailsElement];\n });\n if (index < 0 || index > menuItemsOnRootLevel.length - 1) {\n console.error(\n `Tried to access sidebar menu item by index, but provided index out of range. Provided index: ${index}`\n );\n return;\n }\n await menuItemsOnRootLevel[index].show();\n }\n\n /** Allows to select a menu item programmatically by name */\n @Method()\n async selectItemByName(value: string) {\n const slot = this.sidebar?.querySelector('slot');\n const sidebarItemGroups = slot?.assignedElements() as HTMLSixSidebarItemGroupElement[];\n if (sidebarItemGroups == null) {\n return;\n }\n\n const indexOfSelectedElement = sidebarItemGroups.findIndex((el) => el?.name === value);\n const selectedItem = sidebarItemGroups.at(indexOfSelectedElement)?.shadowRoot?.querySelector('six-details');\n await selectedItem?.show();\n }\n\n private resetTransitionVariables() {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n\n render() {\n return (\n <host class=\"six-sidebar\">\n <div\n class={{\n sidebar__container: true,\n 'sidebar--visible': this.isVisible,\n 'sidebar--open': this.open,\n 'sidebar--left': this.position === 'left',\n 'sidebar--right': this.position === 'right',\n }}\n style={{\n width: this.width,\n [`margin-${this.position}`]: this.open ? '0' : `calc(1rem - ${this.width})`,\n }}\n ref={(el) => (this.sidebar = el)}\n aria-hidden={this.open ? 'false' : 'true'}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <slot />\n </div>\n </host>\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAgB,00BACtB,MAAAC,EAAeD,ECGf,MAAME,EAAsBC,IAAqB,IAAAC,EAC/C,QAAAA,EAAAD,IAAI,MAAJA,SAAI,SAAJA,EAAME,WAAO,MAAAD,SAAA,SAAAA,EAAEE,iBAAkB,wBAAwB,E,MAc9CC,EAAU,M,kRACbC,KAAAC,SAAW,MACXD,KAAAE,SAAW,MAyCXF,KAAAG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gBAAiBpF,KAAKG,qBAEtByE,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as a,h as i}from"./p-05eb1bab.js";const t=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block;--size:2rem}.avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;width:var(--size);height:var(--size);background-color:var(--six-avatar-background-color);font-family:var(--six-font-sans);font-size:calc(var(--size) * 0.5);font-weight:var(--six-font-weight-normal);color:var(--six-avatar-color);overflow:hidden;user-select:none;vertical-align:middle;cursor:pointer;outline:none}.avatar:hover{box-shadow:var(--six-shadow-medium)}.avatar--circle{border-radius:var(--six-border-radius-circle)}.avatar--rounded{border-radius:var(--six-border-radius-medium)}.avatar--square{border-radius:0}.avatar__icon{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%}.avatar__initials{line-height:1;text-transform:uppercase}.avatar__image{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}";const r=t;const e=class{constructor(i){a(this,i);this.handleImageError=()=>{this.hasError=true};this.hasError=false;this.image="";this.alt="";this.initials="";this.shape="circle"}render(){return i("div",{key:"d2a98a9d561a826a49fff6f7b9e40faa9a970d49",part:"base",class:{avatar:true,"avatar--circle":this.shape==="circle","avatar--rounded":this.shape==="rounded","avatar--square":this.shape==="square"},role:"image","aria-label":this.alt,tabIndex:0},this.initials===""&&i("div",{part:"icon",class:"avatar__icon"},i("slot",{name:"icon"},i("six-icon",null,"person"))),this.initials&&i("div",{part:"initials",class:"avatar__initials"},this.initials),this.image&&!this.hasError&&i("img",{part:"image",class:"avatar__image",src:this.image,onError:this.handleImageError}))}};e.style=r;export{e as six_avatar};
2
- //# sourceMappingURL=p-4bc7bbdb.entry.js.map
1
+ import{r as a,h as e}from"./p-48118ce8.js";const i=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block;--size:2rem}.avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;width:var(--size);height:var(--size);background-color:var(--six-avatar-background-color);font-family:var(--six-font-sans);font-size:calc(var(--size) * 0.5);font-weight:var(--six-font-weight-normal);color:var(--six-avatar-color);overflow:hidden;user-select:none;vertical-align:middle;cursor:pointer;outline:none}.avatar:hover{box-shadow:var(--six-shadow-medium)}.avatar--circle{border-radius:var(--six-border-radius-circle)}.avatar--rounded{border-radius:var(--six-border-radius-medium)}.avatar--square{border-radius:0}.avatar__icon{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%}.avatar__initials{line-height:1;text-transform:uppercase}.avatar__image{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}";const t=i;const r=class{constructor(e){a(this,e);this.handleImageError=()=>{this.hasError=true};this.hasError=false;this.image="";this.alt="";this.initials="";this.shape="circle"}render(){return e("div",{key:"0dbd57a48040d1a7c7c07fa838e8be3da457e2c1",part:"base",class:{avatar:true,"avatar--circle":this.shape==="circle","avatar--rounded":this.shape==="rounded","avatar--square":this.shape==="square"},role:"image","aria-label":this.alt,tabIndex:0},this.initials===""&&e("div",{key:"86e4e434e5da9fe126c6950b3716aa69e0738278",part:"icon",class:"avatar__icon"},e("slot",{key:"376b3afc1ded98932f9f80c440f0f142e5bce33f",name:"icon"},e("six-icon",{key:"0371ad768fc7440b24528bf2b1b331f466ab5574"},"person"))),this.initials&&e("div",{key:"d1a3412dc155ff96e7d3fddfac1d483561537e98",part:"initials",class:"avatar__initials"},this.initials),this.image&&!this.hasError&&e("img",{key:"e8a7e31f01329601ae9181c89b702f9469accc35",part:"image",class:"avatar__image",src:this.image,onError:this.handleImageError}))}};r.style=t;export{r as six_avatar};
2
+ //# sourceMappingURL=p-618bf750.entry.js.map