@six-group/ui-library 0.0.0-insider.4b8cb1b → 0.0.0-insider.4d5cd0c

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 (1500) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/{form-control-8d64e974.js → form-control-b39f1df5.js} +2 -2
  4. package/dist/cjs/{form-control-8d64e974.js.map → form-control-b39f1df5.js.map} +1 -1
  5. package/dist/cjs/index-417a06c8.js +1948 -0
  6. package/dist/cjs/index-417a06c8.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +5 -3
  8. package/dist/cjs/loader.cjs.js.map +1 -1
  9. package/dist/cjs/{modal-3ce015be.js → modal-bd7fc5bc.js} +1 -18
  10. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  11. package/dist/cjs/six-alert.cjs.entry.js +17 -7
  12. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/six-avatar.cjs.entry.js +5 -4
  14. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/six-badge.cjs.entry.js +5 -4
  16. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/six-button.cjs.entry.js +7 -5
  18. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  19. package/dist/cjs/six-card.cjs.entry.js +4 -3
  20. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  21. package/dist/cjs/six-checkbox.cjs.entry.js +128 -0
  22. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
  23. package/dist/cjs/six-datepicker.cjs.entry.js +41 -13
  24. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-details.cjs.entry.js +6 -5
  26. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-dialog.cjs.entry.js +14 -30
  28. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  29. package/dist/cjs/six-drawer.cjs.entry.js +13 -30
  30. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  31. package/dist/cjs/{six-dropdown_2.cjs.entry.js → six-dropdown_3.cjs.entry.js} +88 -13
  32. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
  33. package/dist/cjs/six-error-page.cjs.entry.js +4 -3
  34. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-error.cjs.entry.js +5 -4
  36. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-file-list-item.cjs.entry.js +5 -4
  38. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-file-list.cjs.entry.js +4 -3
  40. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-file-upload.cjs.entry.js +33 -13
  42. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-footer.cjs.entry.js +4 -3
  44. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-group-label.cjs.entry.js +5 -4
  46. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
  48. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
  49. package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
  50. package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
  51. package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
  52. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
  53. package/dist/cjs/six-header.cjs.entry.js +45 -28
  54. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-icon-button.cjs.entry.js +13 -6
  56. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-icon.cjs.entry.js +5 -4
  58. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-input.cjs.entry.js +17 -7
  60. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-item-picker.cjs.entry.js +6 -5
  62. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-language-switcher.cjs.entry.js +11 -6
  64. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-layout-grid.cjs.entry.js +4 -3
  66. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-main-container.cjs.entry.js +4 -3
  68. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  69. package/dist/cjs/six-menu-divider.cjs.entry.js +4 -3
  70. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-menu-label.cjs.entry.js +4 -3
  72. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-picto.cjs.entry.js +4 -3
  74. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-progress-bar.cjs.entry.js +6 -5
  76. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-progress-ring.cjs.entry.js +4 -3
  78. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-radio.cjs.entry.js +5 -4
  80. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-range.cjs.entry.js +17 -6
  82. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-root.cjs.entry.js +4 -3
  84. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-search-field.cjs.entry.js +4 -3
  86. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-select.cjs.entry.js +93 -50
  88. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +5 -4
  90. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-sidebar-item.cjs.entry.js +6 -5
  92. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-sidebar.cjs.entry.js +5 -4
  94. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-spinner.cjs.entry.js +41 -7
  96. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-stage-indicator.cjs.entry.js +3 -2
  98. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-switch.cjs.entry.js +6 -5
  100. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-tab-group.cjs.entry.js +34 -8
  102. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-tab-panel.cjs.entry.js +4 -3
  104. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-tab.cjs.entry.js +5 -4
  106. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-tag.cjs.entry.js +5 -4
  108. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-textarea.cjs.entry.js +7 -6
  110. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  111. package/dist/cjs/six-tile.cjs.entry.js +8 -7
  112. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  113. package/dist/cjs/six-timepicker.cjs.entry.js +5 -4
  114. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  115. package/dist/cjs/six-tooltip.cjs.entry.js +5 -4
  116. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ui-library.cjs.js +13 -11
  118. package/dist/cjs/ui-library.cjs.js.map +1 -1
  119. package/dist/collection/assets/TRADEMARKS.md +3 -3
  120. package/dist/collection/collection-manifest.json +7 -3
  121. package/dist/collection/components/six-alert/six-alert.js +15 -6
  122. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  123. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  124. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  125. package/dist/collection/components/six-badge/six-badge.js +2 -2
  126. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  127. package/dist/collection/components/six-button/six-button.css +17 -4
  128. package/dist/collection/components/six-button/six-button.js +5 -4
  129. package/dist/collection/components/six-button/six-button.js.map +1 -1
  130. package/dist/collection/components/six-card/six-card.js +1 -1
  131. package/dist/collection/components/six-card/six-card.js.map +1 -1
  132. package/dist/collection/components/six-checkbox/six-checkbox.css +2 -0
  133. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  134. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  135. package/dist/collection/components/six-datepicker/six-datepicker.js +15 -13
  136. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  137. package/dist/collection/components/six-details/six-details.js +3 -3
  138. package/dist/collection/components/six-details/six-details.js.map +1 -1
  139. package/dist/collection/components/six-dialog/six-dialog.js +10 -28
  140. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  141. package/dist/collection/components/six-drawer/six-drawer.js +9 -28
  142. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  143. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  144. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  145. package/dist/collection/components/six-error/six-error.css +1 -0
  146. package/dist/collection/components/six-error/six-error.js +1 -1
  147. package/dist/collection/components/six-error/six-error.js.map +1 -1
  148. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  149. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  150. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  151. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  152. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  153. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  154. package/dist/collection/components/six-file-upload/six-file-upload.css +11 -0
  155. package/dist/collection/components/six-file-upload/six-file-upload.js +86 -11
  156. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  157. package/dist/collection/components/six-footer/six-footer.js +1 -1
  158. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  159. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  160. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  161. package/dist/collection/components/six-header/six-header.css +5 -20
  162. package/dist/collection/components/six-header/six-header.js +135 -42
  163. package/dist/collection/components/six-header/six-header.js.map +1 -1
  164. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
  165. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
  166. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
  167. package/dist/collection/components/six-header-item/six-header-item.css +15 -0
  168. package/dist/collection/components/six-header-item/six-header-item.js +51 -0
  169. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
  170. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
  171. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
  172. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
  173. package/dist/collection/components/six-icon/six-icon.js +2 -2
  174. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  175. package/dist/collection/components/six-icon-button/six-icon-button.css +2 -1
  176. package/dist/collection/components/six-icon-button/six-icon-button.js +60 -3
  177. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  178. package/dist/collection/components/six-input/six-input.css +1 -0
  179. package/dist/collection/components/six-input/six-input.js +41 -5
  180. package/dist/collection/components/six-input/six-input.js.map +1 -1
  181. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  182. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  183. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  184. package/dist/collection/components/six-language-switcher/six-language-switcher.js +7 -3
  185. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  186. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  187. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  188. package/dist/collection/components/six-logo/six-logo.css +18 -0
  189. package/dist/collection/components/six-logo/six-logo.js +54 -0
  190. package/dist/collection/components/six-logo/six-logo.js.map +1 -0
  191. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  192. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  193. package/dist/collection/components/six-menu/six-menu.js +13 -4
  194. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  195. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  196. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  197. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  198. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  199. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  200. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  201. package/dist/collection/components/six-picto/six-picto.js +1 -1
  202. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  203. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  204. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  205. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  206. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  207. package/dist/collection/components/six-radio/six-radio.js +2 -2
  208. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  209. package/dist/collection/components/six-range/six-range.css +1 -1
  210. package/dist/collection/components/six-range/six-range.js +12 -2
  211. package/dist/collection/components/six-range/six-range.js.map +1 -1
  212. package/dist/collection/components/six-root/six-root.js +1 -1
  213. package/dist/collection/components/six-root/six-root.js.map +1 -1
  214. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  215. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  216. package/dist/collection/components/six-select/six-select.js +56 -47
  217. package/dist/collection/components/six-select/six-select.js.map +1 -1
  218. package/dist/collection/components/six-select/util.js +24 -0
  219. package/dist/collection/components/six-select/util.js.map +1 -1
  220. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  221. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  222. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +7 -0
  223. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  224. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  225. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +8 -0
  226. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +1 -1
  227. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  228. package/dist/collection/components/six-spinner/six-spinner.css +45 -0
  229. package/dist/collection/components/six-spinner/six-spinner.js +59 -10
  230. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  231. package/dist/collection/components/six-switch/six-switch.js +2 -2
  232. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  233. package/dist/collection/components/six-tab/six-tab.js +2 -2
  234. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  235. package/dist/collection/components/six-tab-group/six-tab-group.js +33 -7
  236. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  237. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  238. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  239. package/dist/collection/components/six-tag/six-tag.js +2 -2
  240. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  241. package/dist/collection/components/six-textarea/six-textarea.css +5 -0
  242. package/dist/collection/components/six-textarea/six-textarea.js +4 -4
  243. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  244. package/dist/collection/components/six-tile/six-tile.js +5 -5
  245. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  246. package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
  247. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  248. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  249. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  250. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  251. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  252. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  253. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  254. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  255. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  256. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  257. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  258. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  259. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  260. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  261. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  262. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  263. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  264. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  265. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  266. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  267. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  268. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  269. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  270. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  271. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  272. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  273. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  274. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  275. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  276. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  277. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  278. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  279. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  280. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  281. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  282. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  283. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  284. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  285. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  286. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  287. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  288. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  289. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  290. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  291. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  292. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  293. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  294. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  295. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  296. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  297. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  298. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  299. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  300. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  301. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  302. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  303. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  304. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  305. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  306. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  307. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  308. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  309. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  310. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  311. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  312. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  313. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  314. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  315. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  316. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  317. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  318. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  319. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  320. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  321. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  322. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  323. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  324. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  325. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  326. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  327. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  328. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  329. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  330. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  331. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  332. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  333. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  334. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  335. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  336. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  337. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  338. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  339. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  340. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  341. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  342. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  343. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  344. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  345. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  346. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  347. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  348. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  349. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  350. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  351. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  352. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  353. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  354. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  355. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  356. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  357. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  358. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  359. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  360. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  361. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  362. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  363. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  364. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  365. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  366. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  367. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  368. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  369. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  370. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  371. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  372. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  373. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  374. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  375. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  376. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  377. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  378. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  379. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  380. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  381. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  382. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  383. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  384. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  385. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  386. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  387. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  388. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  389. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  390. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  391. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  392. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  393. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  394. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  395. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  396. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  397. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  398. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  399. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  400. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  401. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  402. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  403. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  404. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  405. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  406. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  407. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  408. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  409. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  410. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  411. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  412. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  413. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  414. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  415. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  416. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  417. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  418. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  419. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  420. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  421. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  422. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  423. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  424. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  425. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  426. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  427. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  428. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  429. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  430. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  431. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  432. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  433. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  434. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  435. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  436. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  437. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  438. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  439. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  440. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  441. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  442. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  443. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  444. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  445. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  446. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  447. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  448. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  449. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  450. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  451. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  452. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  453. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  454. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  455. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  456. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  457. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  458. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  459. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  460. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  461. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  462. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  463. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  464. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  465. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  466. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  467. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  468. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  469. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  470. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  471. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  472. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  473. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  474. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  475. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  476. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  477. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  478. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  479. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  480. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  481. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  482. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  483. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  484. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  485. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  486. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  487. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  488. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  489. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  490. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  491. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  492. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  493. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  494. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  495. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  496. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  497. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  498. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  499. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  500. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  501. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  502. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  503. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  504. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  505. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  506. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  507. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  508. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  509. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  510. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  511. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  512. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  513. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  514. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  515. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  516. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  517. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  518. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  519. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  520. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  521. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  522. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  523. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  524. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  525. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  526. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  527. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  528. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  529. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  530. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  531. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  532. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  533. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  534. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  535. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  536. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  537. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  538. package/dist/collection/utils/alert.js.map +1 -1
  539. package/dist/collection/utils/date-util.js +25 -0
  540. package/dist/collection/utils/date-util.js.map +1 -1
  541. package/dist/collection/utils/error-messages.js.map +1 -1
  542. package/dist/collection/utils/event-listeners.js.map +1 -1
  543. package/dist/collection/utils/focus-visible.js.map +1 -1
  544. package/dist/collection/utils/form.js.map +1 -1
  545. package/dist/collection/utils/modal.js.map +1 -1
  546. package/dist/collection/utils/popover.js.map +1 -1
  547. package/dist/collection/utils/popup.js.map +1 -1
  548. package/dist/collection/utils/scroll.js.map +1 -1
  549. package/dist/collection/utils/slot.js.map +1 -1
  550. package/dist/collection/utils/tabbable.js.map +1 -1
  551. package/dist/collection/utils/time.util.js.map +1 -1
  552. package/dist/components/index.js +8 -0
  553. package/dist/components/index.js.map +1 -1
  554. package/dist/components/modal.js +1 -17
  555. package/dist/components/modal.js.map +1 -1
  556. package/dist/components/six-alert.js +16 -6
  557. package/dist/components/six-alert.js.map +1 -1
  558. package/dist/components/six-avatar.js +4 -3
  559. package/dist/components/six-avatar.js.map +1 -1
  560. package/dist/components/six-badge.js +4 -3
  561. package/dist/components/six-badge.js.map +1 -1
  562. package/dist/components/six-button2.js +6 -4
  563. package/dist/components/six-button2.js.map +1 -1
  564. package/dist/components/six-card.js +3 -2
  565. package/dist/components/six-card.js.map +1 -1
  566. package/dist/components/six-checkbox2.js +5 -4
  567. package/dist/components/six-checkbox2.js.map +1 -1
  568. package/dist/components/six-datepicker.js +40 -12
  569. package/dist/components/six-datepicker.js.map +1 -1
  570. package/dist/components/six-details2.js +5 -4
  571. package/dist/components/six-details2.js.map +1 -1
  572. package/dist/components/six-dialog.js +13 -29
  573. package/dist/components/six-dialog.js.map +1 -1
  574. package/dist/components/six-drawer.js +12 -29
  575. package/dist/components/six-drawer.js.map +1 -1
  576. package/dist/components/six-dropdown2.js +7 -6
  577. package/dist/components/six-dropdown2.js.map +1 -1
  578. package/dist/components/six-error-page.js +3 -2
  579. package/dist/components/six-error-page.js.map +1 -1
  580. package/dist/components/six-error2.js +4 -3
  581. package/dist/components/six-error2.js.map +1 -1
  582. package/dist/components/six-file-list-item.js +4 -3
  583. package/dist/components/six-file-list-item.js.map +1 -1
  584. package/dist/components/six-file-list.js +3 -2
  585. package/dist/components/six-file-list.js.map +1 -1
  586. package/dist/components/six-file-upload.js +52 -16
  587. package/dist/components/six-file-upload.js.map +1 -1
  588. package/dist/components/six-footer.js +3 -2
  589. package/dist/components/six-footer.js.map +1 -1
  590. package/dist/components/six-group-label.js +3 -2
  591. package/dist/components/six-group-label.js.map +1 -1
  592. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  593. package/dist/components/six-header-dropdown-item.js +103 -0
  594. package/dist/components/six-header-dropdown-item.js.map +1 -0
  595. package/dist/components/six-header-item.d.ts +11 -0
  596. package/dist/components/six-header-item.js +8 -0
  597. package/dist/components/six-header-item.js.map +1 -0
  598. package/dist/components/six-header-item2.js +39 -0
  599. package/dist/components/six-header-item2.js.map +1 -0
  600. package/dist/components/six-header-menu-button.d.ts +11 -0
  601. package/dist/components/six-header-menu-button.js +57 -0
  602. package/dist/components/six-header-menu-button.js.map +1 -0
  603. package/dist/components/six-header.js +70 -39
  604. package/dist/components/six-header.js.map +1 -1
  605. package/dist/components/six-icon-button2.js +16 -6
  606. package/dist/components/six-icon-button2.js.map +1 -1
  607. package/dist/components/six-icon2.js +4 -3
  608. package/dist/components/six-icon2.js.map +1 -1
  609. package/dist/components/six-input2.js +16 -5
  610. package/dist/components/six-input2.js.map +1 -1
  611. package/dist/components/six-item-picker2.js +5 -4
  612. package/dist/components/six-item-picker2.js.map +1 -1
  613. package/dist/components/six-language-switcher.js +10 -5
  614. package/dist/components/six-language-switcher.js.map +1 -1
  615. package/dist/components/six-layout-grid.js +3 -2
  616. package/dist/components/six-layout-grid.js.map +1 -1
  617. package/dist/components/six-logo.d.ts +11 -0
  618. package/dist/components/six-logo.js +8 -0
  619. package/dist/components/six-logo.js.map +1 -0
  620. package/dist/components/six-logo2.js +42 -0
  621. package/dist/components/six-logo2.js.map +1 -0
  622. package/dist/components/six-main-container.js +3 -2
  623. package/dist/components/six-main-container.js.map +1 -1
  624. package/dist/components/six-menu-divider.js +3 -2
  625. package/dist/components/six-menu-divider.js.map +1 -1
  626. package/dist/components/six-menu-item2.js +4 -3
  627. package/dist/components/six-menu-item2.js.map +1 -1
  628. package/dist/components/six-menu-label.js +3 -2
  629. package/dist/components/six-menu-label.js.map +1 -1
  630. package/dist/components/six-menu2.js +15 -5
  631. package/dist/components/six-menu2.js.map +1 -1
  632. package/dist/components/six-picto2.js +3 -2
  633. package/dist/components/six-picto2.js.map +1 -1
  634. package/dist/components/six-progress-bar.js +5 -4
  635. package/dist/components/six-progress-bar.js.map +1 -1
  636. package/dist/components/six-progress-ring.js +3 -2
  637. package/dist/components/six-progress-ring.js.map +1 -1
  638. package/dist/components/six-radio.js +4 -3
  639. package/dist/components/six-radio.js.map +1 -1
  640. package/dist/components/six-range.js +15 -4
  641. package/dist/components/six-range.js.map +1 -1
  642. package/dist/components/six-root.js +3 -2
  643. package/dist/components/six-root.js.map +1 -1
  644. package/dist/components/six-search-field.js +3 -2
  645. package/dist/components/six-search-field.js.map +1 -1
  646. package/dist/components/six-select.js +91 -48
  647. package/dist/components/six-select.js.map +1 -1
  648. package/dist/components/six-sidebar-item-group.js +4 -3
  649. package/dist/components/six-sidebar-item-group.js.map +1 -1
  650. package/dist/components/six-sidebar-item.js +5 -4
  651. package/dist/components/six-sidebar-item.js.map +1 -1
  652. package/dist/components/six-sidebar.js +4 -3
  653. package/dist/components/six-sidebar.js.map +1 -1
  654. package/dist/components/six-spinner2.js +41 -6
  655. package/dist/components/six-spinner2.js.map +1 -1
  656. package/dist/components/six-stage-indicator2.js +2 -1
  657. package/dist/components/six-stage-indicator2.js.map +1 -1
  658. package/dist/components/six-switch.js +4 -3
  659. package/dist/components/six-switch.js.map +1 -1
  660. package/dist/components/six-tab-group.js +35 -8
  661. package/dist/components/six-tab-group.js.map +1 -1
  662. package/dist/components/six-tab-panel.js +3 -2
  663. package/dist/components/six-tab-panel.js.map +1 -1
  664. package/dist/components/six-tab.js +4 -3
  665. package/dist/components/six-tab.js.map +1 -1
  666. package/dist/components/six-tag.js +4 -3
  667. package/dist/components/six-tag.js.map +1 -1
  668. package/dist/components/six-textarea.js +5 -4
  669. package/dist/components/six-textarea.js.map +1 -1
  670. package/dist/components/six-tile.js +7 -6
  671. package/dist/components/six-tile.js.map +1 -1
  672. package/dist/components/six-timepicker2.js +4 -3
  673. package/dist/components/six-timepicker2.js.map +1 -1
  674. package/dist/components/six-tooltip2.js +4 -3
  675. package/dist/components/six-tooltip2.js.map +1 -1
  676. package/dist/components.d.ts +34 -0
  677. package/dist/components.json +732 -78
  678. package/dist/esm/app-globals-0f993ce5.js +5 -0
  679. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  680. package/dist/esm/{form-control-d403a9cf.js → form-control-ad1710bf.js} +2 -2
  681. package/dist/esm/{form-control-d403a9cf.js.map → form-control-ad1710bf.js.map} +1 -1
  682. package/dist/esm/index-a7bee415.js +1919 -0
  683. package/dist/esm/index-a7bee415.js.map +1 -0
  684. package/dist/esm/loader.js +6 -4
  685. package/dist/esm/loader.js.map +1 -1
  686. package/dist/esm/{modal-96526245.js → modal-6c1288e3.js} +2 -18
  687. package/dist/esm/modal-6c1288e3.js.map +1 -0
  688. package/dist/esm/six-alert.entry.js +17 -7
  689. package/dist/esm/six-alert.entry.js.map +1 -1
  690. package/dist/esm/six-avatar.entry.js +5 -4
  691. package/dist/esm/six-avatar.entry.js.map +1 -1
  692. package/dist/esm/six-badge.entry.js +5 -4
  693. package/dist/esm/six-badge.entry.js.map +1 -1
  694. package/dist/esm/six-button.entry.js +7 -5
  695. package/dist/esm/six-button.entry.js.map +1 -1
  696. package/dist/esm/six-card.entry.js +4 -3
  697. package/dist/esm/six-card.entry.js.map +1 -1
  698. package/dist/esm/six-checkbox.entry.js +124 -0
  699. package/dist/esm/six-checkbox.entry.js.map +1 -0
  700. package/dist/esm/six-datepicker.entry.js +41 -13
  701. package/dist/esm/six-datepicker.entry.js.map +1 -1
  702. package/dist/esm/six-details.entry.js +6 -5
  703. package/dist/esm/six-details.entry.js.map +1 -1
  704. package/dist/esm/six-dialog.entry.js +14 -30
  705. package/dist/esm/six-dialog.entry.js.map +1 -1
  706. package/dist/esm/six-drawer.entry.js +13 -30
  707. package/dist/esm/six-drawer.entry.js.map +1 -1
  708. package/dist/esm/{six-dropdown_2.entry.js → six-dropdown_3.entry.js} +88 -14
  709. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  710. package/dist/esm/six-error-page.entry.js +4 -3
  711. package/dist/esm/six-error-page.entry.js.map +1 -1
  712. package/dist/esm/six-error.entry.js +5 -4
  713. package/dist/esm/six-error.entry.js.map +1 -1
  714. package/dist/esm/six-file-list-item.entry.js +5 -4
  715. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  716. package/dist/esm/six-file-list.entry.js +4 -3
  717. package/dist/esm/six-file-list.entry.js.map +1 -1
  718. package/dist/esm/six-file-upload.entry.js +33 -13
  719. package/dist/esm/six-file-upload.entry.js.map +1 -1
  720. package/dist/esm/six-footer.entry.js +4 -3
  721. package/dist/esm/six-footer.entry.js.map +1 -1
  722. package/dist/esm/six-group-label.entry.js +5 -4
  723. package/dist/esm/six-group-label.entry.js.map +1 -1
  724. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  725. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  726. package/dist/esm/six-header-item_2.entry.js +42 -0
  727. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  728. package/dist/esm/six-header-menu-button.entry.js +19 -0
  729. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  730. package/dist/esm/six-header.entry.js +45 -28
  731. package/dist/esm/six-header.entry.js.map +1 -1
  732. package/dist/esm/six-icon-button.entry.js +13 -6
  733. package/dist/esm/six-icon-button.entry.js.map +1 -1
  734. package/dist/esm/six-icon.entry.js +5 -4
  735. package/dist/esm/six-icon.entry.js.map +1 -1
  736. package/dist/esm/six-input.entry.js +17 -7
  737. package/dist/esm/six-input.entry.js.map +1 -1
  738. package/dist/esm/six-item-picker.entry.js +6 -5
  739. package/dist/esm/six-item-picker.entry.js.map +1 -1
  740. package/dist/esm/six-language-switcher.entry.js +11 -6
  741. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  742. package/dist/esm/six-layout-grid.entry.js +4 -3
  743. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  744. package/dist/esm/six-main-container.entry.js +4 -3
  745. package/dist/esm/six-main-container.entry.js.map +1 -1
  746. package/dist/esm/six-menu-divider.entry.js +4 -3
  747. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  748. package/dist/esm/six-menu-label.entry.js +4 -3
  749. package/dist/esm/six-menu-label.entry.js.map +1 -1
  750. package/dist/esm/six-picto.entry.js +4 -3
  751. package/dist/esm/six-picto.entry.js.map +1 -1
  752. package/dist/esm/six-progress-bar.entry.js +6 -5
  753. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  754. package/dist/esm/six-progress-ring.entry.js +4 -3
  755. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  756. package/dist/esm/six-radio.entry.js +5 -4
  757. package/dist/esm/six-radio.entry.js.map +1 -1
  758. package/dist/esm/six-range.entry.js +17 -6
  759. package/dist/esm/six-range.entry.js.map +1 -1
  760. package/dist/esm/six-root.entry.js +4 -3
  761. package/dist/esm/six-root.entry.js.map +1 -1
  762. package/dist/esm/six-search-field.entry.js +4 -3
  763. package/dist/esm/six-search-field.entry.js.map +1 -1
  764. package/dist/esm/six-select.entry.js +93 -50
  765. package/dist/esm/six-select.entry.js.map +1 -1
  766. package/dist/esm/six-sidebar-item-group.entry.js +5 -4
  767. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  768. package/dist/esm/six-sidebar-item.entry.js +6 -5
  769. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  770. package/dist/esm/six-sidebar.entry.js +5 -4
  771. package/dist/esm/six-sidebar.entry.js.map +1 -1
  772. package/dist/esm/six-spinner.entry.js +41 -7
  773. package/dist/esm/six-spinner.entry.js.map +1 -1
  774. package/dist/esm/six-stage-indicator.entry.js +3 -2
  775. package/dist/esm/six-stage-indicator.entry.js.map +1 -1
  776. package/dist/esm/six-switch.entry.js +6 -5
  777. package/dist/esm/six-switch.entry.js.map +1 -1
  778. package/dist/esm/six-tab-group.entry.js +34 -8
  779. package/dist/esm/six-tab-group.entry.js.map +1 -1
  780. package/dist/esm/six-tab-panel.entry.js +4 -3
  781. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  782. package/dist/esm/six-tab.entry.js +5 -4
  783. package/dist/esm/six-tab.entry.js.map +1 -1
  784. package/dist/esm/six-tag.entry.js +5 -4
  785. package/dist/esm/six-tag.entry.js.map +1 -1
  786. package/dist/esm/six-textarea.entry.js +7 -6
  787. package/dist/esm/six-textarea.entry.js.map +1 -1
  788. package/dist/esm/six-tile.entry.js +8 -7
  789. package/dist/esm/six-tile.entry.js.map +1 -1
  790. package/dist/esm/six-timepicker.entry.js +5 -4
  791. package/dist/esm/six-timepicker.entry.js.map +1 -1
  792. package/dist/esm/six-tooltip.entry.js +5 -4
  793. package/dist/esm/six-tooltip.entry.js.map +1 -1
  794. package/dist/esm/ui-library.js +14 -12
  795. package/dist/esm/ui-library.js.map +1 -1
  796. package/dist/types/components/six-alert/six-alert.d.ts +8 -4
  797. package/dist/types/components/six-button/six-button.d.ts +1 -1
  798. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  799. package/dist/types/components/six-dialog/six-dialog.d.ts +1 -0
  800. package/dist/types/components/six-file-upload/six-file-upload.d.ts +11 -1
  801. package/dist/types/components/six-header/six-header.d.ts +81 -18
  802. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  803. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  804. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  805. package/dist/types/components/six-icon-button/six-icon-button.d.ts +6 -0
  806. package/dist/types/components/six-input/six-input.d.ts +9 -1
  807. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  808. package/dist/types/components/six-menu/six-menu.d.ts +1 -1
  809. package/dist/types/components/six-range/six-range.d.ts +2 -0
  810. package/dist/types/components/six-select/six-select.d.ts +0 -2
  811. package/dist/types/components/six-select/util.d.ts +2 -0
  812. package/dist/types/components/six-spinner/six-spinner.d.ts +24 -4
  813. package/dist/types/components/six-tab-group/six-tab-group.d.ts +4 -1
  814. package/dist/types/components.d.ts +267 -15
  815. package/dist/types/stencil-public-runtime.d.ts +3 -10
  816. package/dist/types/utils/date-util.d.ts +9 -1
  817. package/dist/types/utils/type-check.d.ts +1 -1
  818. package/dist/ui-library/assets/TRADEMARKS.md +3 -3
  819. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  820. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  821. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  822. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  823. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  824. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  825. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  826. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  827. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  828. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  829. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  830. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  831. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  832. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  833. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  834. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  835. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  836. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  837. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  838. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  839. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  840. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  841. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  842. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  843. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  844. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  845. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  846. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  847. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  848. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  849. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  850. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  851. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  852. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  853. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  854. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  855. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  856. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  857. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  858. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  859. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  860. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  861. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  862. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  863. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  864. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  865. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  866. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  867. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  868. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  869. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  870. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  871. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  872. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  873. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  874. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  875. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  876. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  877. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  878. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  879. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  880. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  881. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  882. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  883. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  884. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  885. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  886. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  887. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  888. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  889. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  890. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  891. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  892. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  893. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  894. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  895. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  896. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  897. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  898. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  899. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  900. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  901. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  902. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  903. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  904. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  905. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  906. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  907. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  908. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  909. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  910. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  911. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  912. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  913. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  914. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  915. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  916. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  917. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  918. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  919. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  920. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  921. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  922. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  923. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  924. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  925. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  926. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  927. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  928. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  929. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  930. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  931. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  932. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  933. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  934. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  935. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  936. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  937. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  938. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  939. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  940. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  941. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  942. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  943. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  944. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  945. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  946. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  947. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  948. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  949. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  950. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  951. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  952. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  953. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  954. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  955. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  956. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  957. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  958. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  959. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  960. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  961. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  962. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  963. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  964. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  965. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  966. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  967. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  968. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  969. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  970. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  971. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  972. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  973. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  974. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  975. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  976. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  977. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  978. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  979. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  980. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  981. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  982. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  983. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  984. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  985. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  986. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  987. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  988. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  989. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  990. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  991. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  992. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  993. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  994. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  995. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  996. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  997. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  998. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  999. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  1000. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  1001. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  1002. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  1003. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  1004. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  1005. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  1006. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  1007. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  1008. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  1009. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  1010. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  1011. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  1012. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  1013. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  1014. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  1015. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  1016. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  1017. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  1018. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  1019. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  1020. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  1021. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  1022. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  1023. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  1024. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  1025. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  1026. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  1027. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  1028. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  1029. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  1030. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  1031. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  1032. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  1033. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  1034. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  1035. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  1036. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  1037. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  1038. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  1039. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  1040. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  1041. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  1042. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  1043. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  1044. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  1045. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  1046. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  1047. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  1048. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  1049. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  1050. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  1051. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  1052. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  1053. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  1054. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  1055. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  1056. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  1057. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  1058. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  1059. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  1060. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  1061. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  1062. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  1063. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  1064. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  1065. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  1066. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  1067. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  1068. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  1069. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  1070. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  1071. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  1072. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  1073. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  1074. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  1075. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  1076. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  1077. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  1078. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  1079. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  1080. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  1081. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  1082. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  1083. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  1084. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  1085. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  1086. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  1087. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  1088. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  1089. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  1090. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  1091. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  1092. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  1093. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  1094. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  1095. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  1096. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  1097. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  1098. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  1099. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  1100. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  1101. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  1102. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  1103. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  1104. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  1105. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  1106. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  1107. package/dist/ui-library/index.esm.js.map +1 -1
  1108. package/dist/ui-library/{p-50dae789.entry.js → p-03acec96.entry.js} +2 -2
  1109. package/dist/ui-library/p-03acec96.entry.js.map +1 -0
  1110. package/dist/ui-library/p-06ba4450.js.map +1 -1
  1111. package/dist/ui-library/p-06d562b7.entry.js +2 -0
  1112. package/dist/ui-library/p-06d562b7.entry.js.map +1 -0
  1113. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  1114. package/dist/ui-library/p-07b6203f.entry.js.map +1 -0
  1115. package/dist/ui-library/{p-9c79341d.entry.js → p-0a6b6429.entry.js} +2 -2
  1116. package/dist/ui-library/p-0a6b6429.entry.js.map +1 -0
  1117. package/dist/ui-library/p-0cebf1d2.js.map +1 -1
  1118. package/dist/ui-library/p-14d09601.entry.js +2 -0
  1119. package/dist/ui-library/p-14d09601.entry.js.map +1 -0
  1120. package/dist/ui-library/p-171df3ad.entry.js +2 -0
  1121. package/dist/ui-library/p-171df3ad.entry.js.map +1 -0
  1122. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  1123. package/dist/ui-library/p-1cc3b56d.entry.js.map +1 -0
  1124. package/dist/ui-library/p-1cd09d9b.entry.js +2 -0
  1125. package/dist/ui-library/p-1cd09d9b.entry.js.map +1 -0
  1126. package/dist/ui-library/{p-04cc397c.entry.js → p-1f7a0cb5.entry.js} +2 -2
  1127. package/dist/ui-library/p-1f7a0cb5.entry.js.map +1 -0
  1128. package/dist/ui-library/p-2355c444.entry.js +2 -0
  1129. package/dist/ui-library/p-2355c444.entry.js.map +1 -0
  1130. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  1131. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  1132. package/dist/ui-library/p-2ad904a7.entry.js +2 -0
  1133. package/dist/ui-library/p-2ad904a7.entry.js.map +1 -0
  1134. package/dist/ui-library/p-30000e86.entry.js +2 -0
  1135. package/dist/ui-library/p-30000e86.entry.js.map +1 -0
  1136. package/dist/ui-library/{p-da7f3dbd.entry.js → p-42cd3588.entry.js} +2 -2
  1137. package/dist/ui-library/p-42cd3588.entry.js.map +1 -0
  1138. package/dist/ui-library/p-48118ce8.js +3 -0
  1139. package/dist/ui-library/p-48118ce8.js.map +1 -0
  1140. package/dist/ui-library/{p-d95e292e.entry.js → p-49019d6c.entry.js} +2 -2
  1141. package/dist/ui-library/p-49019d6c.entry.js.map +1 -0
  1142. package/dist/ui-library/p-4d72b179.entry.js +2 -0
  1143. package/dist/ui-library/p-4d72b179.entry.js.map +1 -0
  1144. package/dist/ui-library/p-4de4ee7a.entry.js +2 -0
  1145. package/dist/ui-library/p-4de4ee7a.entry.js.map +1 -0
  1146. package/dist/ui-library/p-4edde816.entry.js +2 -0
  1147. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  1148. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  1149. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  1150. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1151. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1152. package/dist/ui-library/p-5ece7986.entry.js +2 -0
  1153. package/dist/ui-library/p-5ece7986.entry.js.map +1 -0
  1154. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1155. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1156. package/dist/ui-library/p-5fc9cd7b.entry.js +2 -0
  1157. package/dist/ui-library/p-5fc9cd7b.entry.js.map +1 -0
  1158. package/dist/ui-library/p-618bf750.entry.js +2 -0
  1159. package/dist/ui-library/p-618bf750.entry.js.map +1 -0
  1160. package/dist/ui-library/p-62a1f514.entry.js +2 -0
  1161. package/dist/ui-library/p-62a1f514.entry.js.map +1 -0
  1162. package/dist/ui-library/p-651293e7.js +2 -0
  1163. package/dist/ui-library/p-651293e7.js.map +1 -0
  1164. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1165. package/dist/ui-library/p-6513b8ce.entry.js.map +1 -0
  1166. package/dist/ui-library/p-6795e0a9.entry.js +2 -0
  1167. package/dist/ui-library/p-6795e0a9.entry.js.map +1 -0
  1168. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1169. package/dist/ui-library/p-6ec126f7.entry.js.map +1 -0
  1170. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1171. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1172. package/dist/ui-library/p-70fac778.entry.js +2 -0
  1173. package/dist/ui-library/p-70fac778.entry.js.map +1 -0
  1174. package/dist/ui-library/p-7afdff5c.entry.js +2 -0
  1175. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1176. package/dist/ui-library/{p-ac57ba5c.entry.js → p-7eb9ae75.entry.js} +2 -2
  1177. package/dist/ui-library/p-7eb9ae75.entry.js.map +1 -0
  1178. package/dist/ui-library/p-7f856f00.js.map +1 -1
  1179. package/dist/ui-library/p-8227aaed.js.map +1 -1
  1180. package/dist/ui-library/p-842b492e.js.map +1 -1
  1181. package/dist/ui-library/p-862d474e.js.map +1 -1
  1182. package/dist/ui-library/{p-961bd001.entry.js → p-870139dc.entry.js} +2 -2
  1183. package/dist/ui-library/p-870139dc.entry.js.map +1 -0
  1184. package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
  1185. package/dist/ui-library/{p-61e66671.js → p-a04460e3.js} +2 -2
  1186. package/dist/ui-library/{p-61e66671.js.map → p-a04460e3.js.map} +1 -1
  1187. package/dist/ui-library/p-a1502802.js.map +1 -1
  1188. package/dist/ui-library/p-a20a702a.entry.js +2 -0
  1189. package/dist/ui-library/p-a20a702a.entry.js.map +1 -0
  1190. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1191. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1192. package/dist/ui-library/p-afb15ea4.entry.js +2 -0
  1193. package/dist/ui-library/p-afb15ea4.entry.js.map +1 -0
  1194. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1195. package/dist/ui-library/p-b361d5da.entry.js.map +1 -0
  1196. package/dist/ui-library/p-bfb398c6.entry.js +2 -0
  1197. package/dist/ui-library/p-bfb398c6.entry.js.map +1 -0
  1198. package/dist/ui-library/p-cd65e3b2.entry.js +2 -0
  1199. package/dist/ui-library/p-cd65e3b2.entry.js.map +1 -0
  1200. package/dist/ui-library/p-cd79700c.entry.js +2 -0
  1201. package/dist/ui-library/p-cd79700c.entry.js.map +1 -0
  1202. package/dist/ui-library/p-cdc9224d.entry.js +2 -0
  1203. package/dist/ui-library/p-cdc9224d.entry.js.map +1 -0
  1204. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1205. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1206. package/dist/ui-library/{p-884c5cf9.entry.js → p-d46acf21.entry.js} +2 -2
  1207. package/dist/ui-library/p-d46acf21.entry.js.map +1 -0
  1208. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1209. package/dist/ui-library/p-d67b8482.entry.js.map +1 -0
  1210. package/dist/ui-library/p-db193a32.entry.js +2 -0
  1211. package/dist/ui-library/p-db193a32.entry.js.map +1 -0
  1212. package/dist/ui-library/p-e080d5b6.js.map +1 -1
  1213. package/dist/ui-library/p-e1255160.js +2 -0
  1214. package/dist/ui-library/p-e1255160.js.map +1 -0
  1215. package/dist/ui-library/p-e1529ef6.entry.js +2 -0
  1216. package/dist/ui-library/p-e1529ef6.entry.js.map +1 -0
  1217. package/dist/ui-library/p-e181944f.entry.js +2 -0
  1218. package/dist/ui-library/p-e181944f.entry.js.map +1 -0
  1219. package/dist/ui-library/p-e6efc08a.entry.js +2 -0
  1220. package/dist/ui-library/p-e6efc08a.entry.js.map +1 -0
  1221. package/dist/ui-library/p-e9462085.entry.js +2 -0
  1222. package/dist/ui-library/p-e9462085.entry.js.map +1 -0
  1223. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1224. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1225. package/dist/ui-library/p-f12b22bc.entry.js +2 -0
  1226. package/dist/ui-library/p-f12b22bc.entry.js.map +1 -0
  1227. package/dist/ui-library/p-f136a6b2.js.map +1 -1
  1228. package/dist/ui-library/{p-1f5840b5.entry.js → p-f9a1f6ab.entry.js} +2 -2
  1229. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1230. package/dist/ui-library/{p-0440335d.entry.js → p-ffce31da.entry.js} +2 -2
  1231. package/dist/ui-library/p-ffce31da.entry.js.map +1 -0
  1232. package/dist/ui-library/ui-library.css +1 -1
  1233. package/dist/ui-library/ui-library.esm.js +1 -1
  1234. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1235. package/loader/cdn.js +1 -3
  1236. package/loader/index.cjs.js +1 -3
  1237. package/loader/index.d.ts +3 -0
  1238. package/loader/index.es2017.js +1 -3
  1239. package/loader/index.js +1 -3
  1240. package/package.json +8 -20
  1241. package/dist/cjs/index-d7748d51.js +0 -2230
  1242. package/dist/cjs/index-d7748d51.js.map +0 -1
  1243. package/dist/cjs/modal-3ce015be.js.map +0 -1
  1244. package/dist/cjs/six-checkbox_2.cjs.entry.js +0 -190
  1245. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +0 -1
  1246. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1247. package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
  1248. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
  1249. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
  1250. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
  1251. package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
  1252. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
  1253. package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
  1254. package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
  1255. package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
  1256. package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
  1257. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
  1258. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
  1259. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
  1260. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
  1261. package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
  1262. package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
  1263. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
  1264. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
  1265. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
  1266. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
  1267. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
  1268. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
  1269. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
  1270. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
  1271. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
  1272. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
  1273. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
  1274. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
  1275. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -103
  1276. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
  1277. package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
  1278. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
  1279. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
  1280. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
  1281. package/dist/collection/components/six-header/assets/six-logo.svg +0 -1
  1282. package/dist/collection/components/six-header/test/six-header.spec.js +0 -177
  1283. package/dist/collection/components/six-header/test/six-header.spec.js.map +0 -1
  1284. package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
  1285. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
  1286. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
  1287. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
  1288. package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
  1289. package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
  1290. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
  1291. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
  1292. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
  1293. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
  1294. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
  1295. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
  1296. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
  1297. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
  1298. package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
  1299. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
  1300. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
  1301. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
  1302. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
  1303. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
  1304. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
  1305. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
  1306. package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
  1307. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
  1308. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
  1309. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
  1310. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
  1311. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
  1312. package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
  1313. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
  1314. package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
  1315. package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
  1316. package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
  1317. package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
  1318. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
  1319. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
  1320. package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
  1321. package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
  1322. package/dist/collection/components/six-select/test/util.spec.js +0 -81
  1323. package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
  1324. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
  1325. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
  1326. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
  1327. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
  1328. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
  1329. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
  1330. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
  1331. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
  1332. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
  1333. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
  1334. package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
  1335. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
  1336. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
  1337. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
  1338. package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
  1339. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
  1340. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
  1341. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
  1342. package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
  1343. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
  1344. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
  1345. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
  1346. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
  1347. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
  1348. package/dist/collection/files/file-list.json +0 -308
  1349. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1350. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1351. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1352. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1353. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1354. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1355. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1356. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1357. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1358. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1359. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1360. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1361. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1362. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1363. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1364. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1365. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1366. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1367. package/dist/collection/utils/date-util.spec.js +0 -995
  1368. package/dist/collection/utils/date-util.spec.js.map +0 -1
  1369. package/dist/collection/utils/scroll.spec.js +0 -122
  1370. package/dist/collection/utils/scroll.spec.js.map +0 -1
  1371. package/dist/collection/utils/support.js +0 -16
  1372. package/dist/collection/utils/support.js.map +0 -1
  1373. package/dist/collection/utils/time.util.spec.js +0 -368
  1374. package/dist/collection/utils/time.util.spec.js.map +0 -1
  1375. package/dist/esm/index-79d4ef67.js +0 -2201
  1376. package/dist/esm/index-79d4ef67.js.map +0 -1
  1377. package/dist/esm/modal-96526245.js.map +0 -1
  1378. package/dist/esm/polyfills/core-js.js +0 -11
  1379. package/dist/esm/polyfills/dom.js +0 -79
  1380. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1381. package/dist/esm/polyfills/index.js +0 -34
  1382. package/dist/esm/polyfills/system.js +0 -6
  1383. package/dist/esm/six-checkbox_2.entry.js +0 -185
  1384. package/dist/esm/six-checkbox_2.entry.js.map +0 -1
  1385. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1386. package/dist/types/utils/support.d.ts +0 -1
  1387. package/dist/ui-library/assets/six-logo.svg +0 -1
  1388. package/dist/ui-library/files/file-list.json +0 -308
  1389. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1390. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1391. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1392. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1393. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1394. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1395. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1396. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1397. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1398. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1399. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1400. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1401. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1402. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1403. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1404. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1405. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1406. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1407. package/dist/ui-library/p-0440335d.entry.js.map +0 -1
  1408. package/dist/ui-library/p-04cc397c.entry.js.map +0 -1
  1409. package/dist/ui-library/p-0edd3091.entry.js +0 -2
  1410. package/dist/ui-library/p-0edd3091.entry.js.map +0 -1
  1411. package/dist/ui-library/p-150b7664.entry.js +0 -2
  1412. package/dist/ui-library/p-150b7664.entry.js.map +0 -1
  1413. package/dist/ui-library/p-1f5840b5.entry.js.map +0 -1
  1414. package/dist/ui-library/p-28cc013e.entry.js +0 -2
  1415. package/dist/ui-library/p-28cc013e.entry.js.map +0 -1
  1416. package/dist/ui-library/p-3424bbc0.entry.js +0 -2
  1417. package/dist/ui-library/p-3424bbc0.entry.js.map +0 -1
  1418. package/dist/ui-library/p-348c68a8.entry.js +0 -2
  1419. package/dist/ui-library/p-348c68a8.entry.js.map +0 -1
  1420. package/dist/ui-library/p-3723ca06.entry.js +0 -2
  1421. package/dist/ui-library/p-3723ca06.entry.js.map +0 -1
  1422. package/dist/ui-library/p-37aeac5e.entry.js +0 -2
  1423. package/dist/ui-library/p-37aeac5e.entry.js.map +0 -1
  1424. package/dist/ui-library/p-3d7fb086.entry.js +0 -2
  1425. package/dist/ui-library/p-3d7fb086.entry.js.map +0 -1
  1426. package/dist/ui-library/p-457f7373.entry.js +0 -2
  1427. package/dist/ui-library/p-457f7373.entry.js.map +0 -1
  1428. package/dist/ui-library/p-4a667f31.entry.js +0 -2
  1429. package/dist/ui-library/p-4a667f31.entry.js.map +0 -1
  1430. package/dist/ui-library/p-50dae789.entry.js.map +0 -1
  1431. package/dist/ui-library/p-546e33d9.entry.js +0 -2
  1432. package/dist/ui-library/p-546e33d9.entry.js.map +0 -1
  1433. package/dist/ui-library/p-5db3a705.entry.js +0 -2
  1434. package/dist/ui-library/p-5db3a705.entry.js.map +0 -1
  1435. package/dist/ui-library/p-6296779b.entry.js +0 -2
  1436. package/dist/ui-library/p-6296779b.entry.js.map +0 -1
  1437. package/dist/ui-library/p-64b4755d.entry.js +0 -2
  1438. package/dist/ui-library/p-64b4755d.entry.js.map +0 -1
  1439. package/dist/ui-library/p-6c1b046e.entry.js +0 -2
  1440. package/dist/ui-library/p-6c1b046e.entry.js.map +0 -1
  1441. package/dist/ui-library/p-7115316e.entry.js +0 -2
  1442. package/dist/ui-library/p-7115316e.entry.js.map +0 -1
  1443. package/dist/ui-library/p-870b988d.entry.js +0 -2
  1444. package/dist/ui-library/p-870b988d.entry.js.map +0 -1
  1445. package/dist/ui-library/p-884c5cf9.entry.js.map +0 -1
  1446. package/dist/ui-library/p-8888a367.entry.js +0 -2
  1447. package/dist/ui-library/p-8888a367.entry.js.map +0 -1
  1448. package/dist/ui-library/p-935c78a7.entry.js +0 -2
  1449. package/dist/ui-library/p-935c78a7.entry.js.map +0 -1
  1450. package/dist/ui-library/p-961bd001.entry.js.map +0 -1
  1451. package/dist/ui-library/p-998de05d.js +0 -2
  1452. package/dist/ui-library/p-998de05d.js.map +0 -1
  1453. package/dist/ui-library/p-9b08068d.entry.js +0 -2
  1454. package/dist/ui-library/p-9b08068d.entry.js.map +0 -1
  1455. package/dist/ui-library/p-9c79341d.entry.js.map +0 -1
  1456. package/dist/ui-library/p-a9c159f2.entry.js +0 -2
  1457. package/dist/ui-library/p-a9c159f2.entry.js.map +0 -1
  1458. package/dist/ui-library/p-ac57ba5c.entry.js.map +0 -1
  1459. package/dist/ui-library/p-ae45f6f4.entry.js +0 -2
  1460. package/dist/ui-library/p-ae45f6f4.entry.js.map +0 -1
  1461. package/dist/ui-library/p-af15381b.js +0 -3
  1462. package/dist/ui-library/p-af15381b.js.map +0 -1
  1463. package/dist/ui-library/p-b1a5f3cd.entry.js +0 -2
  1464. package/dist/ui-library/p-b1a5f3cd.entry.js.map +0 -1
  1465. package/dist/ui-library/p-b385a241.entry.js +0 -2
  1466. package/dist/ui-library/p-b385a241.entry.js.map +0 -1
  1467. package/dist/ui-library/p-bf2fb53f.entry.js +0 -2
  1468. package/dist/ui-library/p-bf2fb53f.entry.js.map +0 -1
  1469. package/dist/ui-library/p-c2c7370b.entry.js +0 -2
  1470. package/dist/ui-library/p-c2c7370b.entry.js.map +0 -1
  1471. package/dist/ui-library/p-caea1eb6.entry.js +0 -2
  1472. package/dist/ui-library/p-caea1eb6.entry.js.map +0 -1
  1473. package/dist/ui-library/p-d3f5b9a8.entry.js +0 -2
  1474. package/dist/ui-library/p-d3f5b9a8.entry.js.map +0 -1
  1475. package/dist/ui-library/p-d42b18eb.entry.js +0 -2
  1476. package/dist/ui-library/p-d42b18eb.entry.js.map +0 -1
  1477. package/dist/ui-library/p-d769cc36.entry.js +0 -2
  1478. package/dist/ui-library/p-d769cc36.entry.js.map +0 -1
  1479. package/dist/ui-library/p-d95e292e.entry.js.map +0 -1
  1480. package/dist/ui-library/p-da7f3dbd.entry.js.map +0 -1
  1481. package/dist/ui-library/p-dfb89b6a.entry.js +0 -2
  1482. package/dist/ui-library/p-dfb89b6a.entry.js.map +0 -1
  1483. package/dist/ui-library/p-e6032375.entry.js +0 -2
  1484. package/dist/ui-library/p-e6032375.entry.js.map +0 -1
  1485. package/dist/ui-library/p-e60d2324.entry.js +0 -2
  1486. package/dist/ui-library/p-e60d2324.entry.js.map +0 -1
  1487. package/dist/ui-library/p-e8298c6e.entry.js +0 -2
  1488. package/dist/ui-library/p-e8298c6e.entry.js.map +0 -1
  1489. package/dist/ui-library/p-ed279165.entry.js +0 -2
  1490. package/dist/ui-library/p-ed279165.entry.js.map +0 -1
  1491. package/dist/ui-library/p-ed61b75c.entry.js +0 -2
  1492. package/dist/ui-library/p-ed61b75c.entry.js.map +0 -1
  1493. package/dist/ui-library/p-ee872c04.entry.js +0 -2
  1494. package/dist/ui-library/p-ee872c04.entry.js.map +0 -1
  1495. package/dist/ui-library/p-f1ab3384.entry.js +0 -2
  1496. package/dist/ui-library/p-f1ab3384.entry.js.map +0 -1
  1497. package/dist/ui-library/p-f4ef481c.entry.js +0 -2
  1498. package/dist/ui-library/p-f4ef481c.entry.js.map +0 -1
  1499. package/dist/ui-library/p-f8cbb8da.entry.js +0 -2
  1500. package/dist/ui-library/p-f8cbb8da.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"error-messages.js","sourceRoot":"","sources":["../../src/utils/error-messages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAGjE,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAgBpD;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,QAAkB,EAAE,KAAsB;IACxE,IAAI;QACF,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjD,QAAQ,KAAK,CAAC,GAAG,EAAE;YACjB,KAAK,UAAU,CAAC;YAChB,KAAK,cAAc,CAAC;YACpB,KAAK,OAAO;gBACV,OAAO,OAAO,CAAC;YACjB,KAAK,WAAW,CAAC;YACjB,KAAK,WAAW;gBACd,OAAO,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;YAC3E,KAAK,SAAS;gBACZ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K,EAAE,mEAAmE;QAC1E,GAAG,EAAE,uDAAuD;QAC5D,GAAG,EAAE,uDAAuD;QAC5D,YAAY,EAAE,+BAA+B;QAC7C,OAAO,EAAE,gEAAgE;QACzE,OAAO,EAAE,+DAA+D;QACxE,WAAW,EAAE,yCAAyC;KACvD;CACF,CAAC","sourcesContent":["export const languages = ['de', 'fr', 'it', 'en', 'es'] as const;\nexport type Language = (typeof languages)[number];\n\nconst dateFormat = new Intl.DateTimeFormat('de-CH');\n\nexport type ValidationError =\n | { key: 'required' }\n | { key: 'requiredtrue' }\n | { key: 'email'; requiredPattern: string }\n | { key: 'minlength'; requiredLength: number }\n | { key: 'maxlength'; requiredLength: number }\n | { key: 'pattern'; requiredPattern: string }\n | { key: 'min'; min: number }\n | { key: 'max'; max: number }\n | { key: 'mindate'; mindate: Date; actual: Date }\n | { key: 'maxdate'; maxdate: Date; actual: Date }\n | { key: 'invaliddate'; actual: Date }\n | { key: 'custom'; text: string };\n\n/**\n * Returns an error message for the given language and error.\n */\nexport function getErrorMessage(language: Language, error: ValidationError): string | undefined {\n try {\n const message = translation[language][error.key];\n switch (error.key) {\n case 'required':\n case 'requiredtrue':\n case 'email':\n return message;\n case 'minlength':\n case 'maxlength':\n return message.replace('{requiredLength}', String(error.requiredLength));\n case 'pattern':\n return message.replace('{pattern}', String(error.requiredPattern));\n case 'min':\n return message.replace('{min}', String(error.min));\n case 'max':\n return message.replace('{max}', String(error.max));\n case 'mindate':\n return message.replace('{mindate}', dateFormat.format(error.mindate));\n case 'maxdate':\n return message.replace('{maxdate}', dateFormat.format(error.maxdate));\n case 'invaliddate':\n return message;\n case 'custom':\n return error.text;\n }\n } catch (e) {\n console.warn(`no error message in '${language}' for error:`, error);\n return undefined;\n }\n}\n\nexport function getLanguage(): Language {\n const documentLang = document.documentElement.lang as Language;\n if (languages.includes(documentLang)) {\n return documentLang;\n }\n return 'de';\n}\n\nconst translation: Record<Language, Record<string, string>> = {\n en: {\n required: 'Please fill out this field.',\n minlength: 'Please enter at least {requiredLength} characters.',\n maxlength: 'Please enter no more than {requiredLength} characters.',\n pattern: 'Please enter a value that matches the pattern: {pattern}.',\n email: 'Please enter a valid email address.',\n min: 'Please enter a value greater than or equal to {min}.',\n max: 'Please enter a value less than or equal to {max}.',\n requiredtrue: 'Please check this field.',\n mindate: 'Please enter a date on or after {mindate}.',\n maxdate: 'Please enter a date on or before {maxdate}.',\n invaliddate: 'Please enter a valid date.',\n },\n fr: {\n required: \"Veuillez remplir ce champ s'il vous plaît.\",\n minlength: 'Veuillez entrer au moins {requiredLength} caractères.',\n maxlength: 'Veuillez entrer au maximum {requiredLength} caractères.',\n pattern: 'Veuillez entrer une valeur qui correspond au format : {pattern}.',\n email: 'Veuillez entrer une adresse email valide.',\n min: 'Veuillez entrer une valeur supérieure ou égale à {min}.',\n max: 'Veuillez entrer une valeur inférieure ou égale à {max}.',\n requiredtrue: \"Veuillez cocher cette case s'il vous plaît.\",\n mindate: 'Veuillez entrer une date le {mindate} ou après.',\n maxdate: 'Veuillez entrer une date le {maxdate} ou avant.',\n invaliddate: 'Veuillez entrer une date valide.',\n },\n de: {\n required: 'Bitte füllen Sie dieses Feld aus.',\n minlength: 'Bitte geben Sie mindestens {requiredLength} Zeichen ein.',\n maxlength: 'Bitte geben Sie höchstens {requiredLength} Zeichen ein.',\n pattern: 'Bitte geben Sie einen Wert ein, der dem Muster entspricht: {pattern}.',\n email: 'Bitte geben Sie eine gültige E-Mail-Adresse ein.',\n min: 'Bitte geben Sie einen Wert größer oder gleich {min} ein.',\n max: 'Bitte geben Sie einen Wert kleiner oder gleich {max} ein.',\n requiredtrue: 'Bitte aktivieren Sie dieses Feld.',\n mindate: 'Bitte geben Sie ein Datum am oder nach dem {mindate} ein.',\n maxdate: 'Bitte geben Sie ein Datum am oder vor dem {maxdate} ein.',\n invaliddate: 'Bitte geben Sie ein gültiges Datum ein.',\n },\n it: {\n required: 'Si prega di compilare questo campo.',\n minlength: 'Si prega di inserire almeno {requiredLength} caratteri.',\n maxlength: 'Si prega di inserire al massimo {requiredLength} caratteri.',\n pattern: 'Si prega di inserire un valore che corrisponde al formato: {pattern}.',\n email: 'Si prega di inserire un indirizzo email valido.',\n min: 'Si prega di inserire un valore maggiore o uguale a {min}.',\n max: 'Si prega di inserire un valore minore o uguale a {max}.',\n requiredtrue: 'Si prega di spuntare questo campo.',\n mindate: 'Si prega di inserire una data il {mindate} o successiva.',\n maxdate: 'Si prega di inserire una data il {maxdate} o precedente.',\n invaliddate: 'Inserisci una data valida.',\n },\n\n es: {\n required: 'Por favor, rellene este campo.',\n minlength: 'Por favor, introduzca al menos {requiredLength} caracteres.',\n maxlength: 'Por favor, introduzca no más de {requiredLength} caracteres.',\n pattern: 'Por favor, introduzca un valor que coincida con el patrón: {pattern}.',\n email: 'Por favor, introduzca una dirección de correo electrónico válida.',\n min: 'Por favor, introduzca un valor mayor o igual a {min}.',\n max: 'Por favor, introduzca un valor menor o igual a {max}.',\n requiredtrue: 'Por favor, marque este campo.',\n mindate: 'Por favor, introduzca una fecha igual o posterior a {mindate}.',\n maxdate: 'Por favor, introduzca una fecha igual o anterior a {maxdate}.',\n invaliddate: 'Por favor, introduzca una fecha válida.',\n },\n};\n"]}
1
+ {"version":3,"file":"error-messages.js","sourceRoot":"","sources":["../../src/utils/error-messages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAGjE,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAgBpD;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,QAAkB,EAAE,KAAsB;IACxE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjD,QAAQ,KAAK,CAAC,GAAG,EAAE,CAAC;YAClB,KAAK,UAA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D;QAChE,GAAG,EAAE,yDAAyD;QAC9D,YAAY,EAAE,oCAAoC;QAClD,OAAO,EAAE,0DAA0D;QACnE,OAAO,EAAE,0DAA0D;QACnE,WAAW,EAAE,4BAA4B;KAC1C;IAED,EAAE,EAAE;QACF,QAAQ,EAAE,gCAAgC;QAC1C,SAAS,EAAE,6DAA6D;QACxE,SAAS,EAAE,8DAA8D;QACzE,OAAO,EAAE,uEAAuE;QAChF,KAAK,EAAE,mEAAmE;QAC1E,GAAG,EAAE,uDAAuD;QAC5D,GAAG,EAAE,uDAAuD;QAC5D,YAAY,EAAE,+BAA+B;QAC7C,OAAO,EAAE,gEAAgE;QACzE,OAAO,EAAE,+DAA+D;QACxE,WAAW,EAAE,yCAAyC;KACvD;CACF,CAAC","sourcesContent":["export const languages = ['de', 'fr', 'it', 'en', 'es'] as const;\nexport type Language = (typeof languages)[number];\n\nconst dateFormat = new Intl.DateTimeFormat('de-CH');\n\nexport type ValidationError =\n | { key: 'required' }\n | { key: 'requiredtrue' }\n | { key: 'email'; requiredPattern: string }\n | { key: 'minlength'; requiredLength: number }\n | { key: 'maxlength'; requiredLength: number }\n | { key: 'pattern'; requiredPattern: string }\n | { key: 'min'; min: number }\n | { key: 'max'; max: number }\n | { key: 'mindate'; mindate: Date; actual: Date }\n | { key: 'maxdate'; maxdate: Date; actual: Date }\n | { key: 'invaliddate'; actual: Date }\n | { key: 'custom'; text: string };\n\n/**\n * Returns an error message for the given language and error.\n */\nexport function getErrorMessage(language: Language, error: ValidationError): string | undefined {\n try {\n const message = translation[language][error.key];\n switch (error.key) {\n case 'required':\n case 'requiredtrue':\n case 'email':\n return message;\n case 'minlength':\n case 'maxlength':\n return message.replace('{requiredLength}', String(error.requiredLength));\n case 'pattern':\n return message.replace('{pattern}', String(error.requiredPattern));\n case 'min':\n return message.replace('{min}', String(error.min));\n case 'max':\n return message.replace('{max}', String(error.max));\n case 'mindate':\n return message.replace('{mindate}', dateFormat.format(error.mindate));\n case 'maxdate':\n return message.replace('{maxdate}', dateFormat.format(error.maxdate));\n case 'invaliddate':\n return message;\n case 'custom':\n return error.text;\n }\n } catch (e) {\n console.warn(`no error message in '${language}' for error:`, error);\n return undefined;\n }\n}\n\nexport function getLanguage(): Language {\n const documentLang = document.documentElement.lang as Language;\n if (languages.includes(documentLang)) {\n return documentLang;\n }\n return 'de';\n}\n\nconst translation: Record<Language, Record<string, string>> = {\n en: {\n required: 'Please fill out this field.',\n minlength: 'Please enter at least {requiredLength} characters.',\n maxlength: 'Please enter no more than {requiredLength} characters.',\n pattern: 'Please enter a value that matches the pattern: {pattern}.',\n email: 'Please enter a valid email address.',\n min: 'Please enter a value greater than or equal to {min}.',\n max: 'Please enter a value less than or equal to {max}.',\n requiredtrue: 'Please check this field.',\n mindate: 'Please enter a date on or after {mindate}.',\n maxdate: 'Please enter a date on or before {maxdate}.',\n invaliddate: 'Please enter a valid date.',\n },\n fr: {\n required: \"Veuillez remplir ce champ s'il vous plaît.\",\n minlength: 'Veuillez entrer au moins {requiredLength} caractères.',\n maxlength: 'Veuillez entrer au maximum {requiredLength} caractères.',\n pattern: 'Veuillez entrer une valeur qui correspond au format : {pattern}.',\n email: 'Veuillez entrer une adresse email valide.',\n min: 'Veuillez entrer une valeur supérieure ou égale à {min}.',\n max: 'Veuillez entrer une valeur inférieure ou égale à {max}.',\n requiredtrue: \"Veuillez cocher cette case s'il vous plaît.\",\n mindate: 'Veuillez entrer une date le {mindate} ou après.',\n maxdate: 'Veuillez entrer une date le {maxdate} ou avant.',\n invaliddate: 'Veuillez entrer une date valide.',\n },\n de: {\n required: 'Bitte füllen Sie dieses Feld aus.',\n minlength: 'Bitte geben Sie mindestens {requiredLength} Zeichen ein.',\n maxlength: 'Bitte geben Sie höchstens {requiredLength} Zeichen ein.',\n pattern: 'Bitte geben Sie einen Wert ein, der dem Muster entspricht: {pattern}.',\n email: 'Bitte geben Sie eine gültige E-Mail-Adresse ein.',\n min: 'Bitte geben Sie einen Wert größer oder gleich {min} ein.',\n max: 'Bitte geben Sie einen Wert kleiner oder gleich {max} ein.',\n requiredtrue: 'Bitte aktivieren Sie dieses Feld.',\n mindate: 'Bitte geben Sie ein Datum am oder nach dem {mindate} ein.',\n maxdate: 'Bitte geben Sie ein Datum am oder vor dem {maxdate} ein.',\n invaliddate: 'Bitte geben Sie ein gültiges Datum ein.',\n },\n it: {\n required: 'Si prega di compilare questo campo.',\n minlength: 'Si prega di inserire almeno {requiredLength} caratteri.',\n maxlength: 'Si prega di inserire al massimo {requiredLength} caratteri.',\n pattern: 'Si prega di inserire un valore che corrisponde al formato: {pattern}.',\n email: 'Si prega di inserire un indirizzo email valido.',\n min: 'Si prega di inserire un valore maggiore o uguale a {min}.',\n max: 'Si prega di inserire un valore minore o uguale a {max}.',\n requiredtrue: 'Si prega di spuntare questo campo.',\n mindate: 'Si prega di inserire una data il {mindate} o successiva.',\n maxdate: 'Si prega di inserire una data il {maxdate} o precedente.',\n invaliddate: 'Inserisci una data valida.',\n },\n\n es: {\n required: 'Por favor, rellene este campo.',\n minlength: 'Por favor, introduzca al menos {requiredLength} caracteres.',\n maxlength: 'Por favor, introduzca no más de {requiredLength} caracteres.',\n pattern: 'Por favor, introduzca un valor que coincida con el patrón: {pattern}.',\n email: 'Por favor, introduzca una dirección de correo electrónico válida.',\n min: 'Por favor, introduzca un valor mayor o igual a {min}.',\n max: 'Por favor, introduzca un valor menor o igual a {max}.',\n requiredtrue: 'Por favor, marque este campo.',\n mindate: 'Por favor, introduzca una fecha igual o posterior a {mindate}.',\n maxdate: 'Por favor, introduzca una fecha igual o anterior a {maxdate}.',\n invaliddate: 'Por favor, introduzca una fecha válida.',\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"event-listeners.js","sourceRoot":"","sources":["../../src/utils/event-listeners.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,cAAc;IAA3B;QACE,mBAAc,GAAoB,EAAE,CAAC;QAErC,QAAG,GAAG,CACJ,EAAK,EACL,IAAY,EACZ,QAA4C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,CAAC,IAAI,UAAU,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBACxG,MAAM;SACT;IACH,CAAC;CACF","sourcesContent":["interface EventListener {\n el: GlobalEventHandlers;\n name: string;\n listener: EventListenerOrEventListenerObject;\n identifier?: string | null;\n}\n\nexport class EventListeners {\n eventListeners: EventListener[] = [];\n\n add = <T extends GlobalEventHandlers>(\n el: T,\n name: string,\n listener: EventListenerOrEventListenerObject,\n identifier: string | null | undefined = null\n ) => {\n this.eventListeners.push({ el, name, listener, identifier });\n el.addEventListener(name, listener);\n };\n\n remove = <T extends GlobalEventHandlers>(el: T, name: string, listener: EventListenerOrEventListenerObject) => {\n this.eventListeners = this.getFilteredEventListeners(\n (eventListener: EventListener) =>\n eventListener.listener == listener && eventListener.el === el && eventListener.name === name\n );\n };\n\n removeByIdentifier = (identifier: string) => {\n const sameItem = (el: EventListener) => el.identifier === identifier;\n const foundListener = this.eventListeners.find(sameItem) !== undefined;\n if (!foundListener) {\n return;\n }\n this.eventListeners = this.getFilteredEventListeners(sameItem);\n };\n\n private getFilteredEventListeners(sameItem: (el: EventListener) => boolean) {\n return this.eventListeners.filter((item) => {\n if (sameItem(item)) {\n item.el.removeEventListener(item.name, item.listener);\n return false;\n } else {\n return true;\n }\n });\n }\n\n removeAll = () => {\n while (this.eventListeners.length > 0) {\n const eventListener: EventListener | undefined = this.eventListeners.pop();\n if (eventListener != null) {\n eventListener.el.removeEventListener(eventListener.name, eventListener.listener);\n }\n }\n };\n\n forward(from: string, to: 'input' | 'change' | 'blur' | 'focus', host: HTMLElement) {\n switch (to) {\n case 'input':\n this.add(host, from, () => host.dispatchEvent(new InputEvent(to, { bubbles: true, cancelable: true })));\n break;\n case 'change':\n this.add(host, from, () => host.dispatchEvent(new InputEvent(to, { bubbles: true, cancelable: true })));\n break;\n case 'blur':\n this.add(host, from, () => host.dispatchEvent(new FocusEvent(to, { bubbles: true, cancelable: true })));\n break;\n case 'focus':\n this.add(host, from, () => host.dispatchEvent(new FocusEvent(to, { bubbles: true, cancelable: true })));\n break;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"event-listeners.js","sourceRoot":"","sources":["../../src/utils/event-listeners.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,cAAc;IAA3B;QACE,mBAAc,GAAoB,EAAE,CAAC;QAErC,QAAG,GAAG,CACJ,EAAK,EACL,IAAY,EACZ,QAA4C,EAC5C,aAAwC,IAAI,EAC5C,EAAE;YACF,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;YAC7D,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACtC,CAAC,CAAC;QAEF,WAAM,GAAG,CAAgC,EAAK,EAAE,IAAY,EAAE,QAA4C,EAAE,EAAE;YAC5G,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,yBAAyB,CAClD,CAAC,aAA4B,EAAE,EAAE,CAC/B,aAAa,CAAC,QAAQ,IAAI,QAAQ,IAAI,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,aAAa,CAAC,IAAI,KAAK,IAAI,CAC/F,CAAC;QACJ,CAAC,CAAC;QAEF,uBAAkB,GAAG,CAAC,UAAkB,EAAE,EAAE;YAC1C,MAAM,QAAQ,GAAG,CAAC,EAAiB,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC;YACrE,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC;YACvE,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,OAAO;YACT,CAAC;YACD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QACjE,CAAC,CAAC;QAaF,cAAS,GAAG,GAAG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CAAC,CAAC,CAAC;gBACxG,MAAM;YACR,KAAK,MAAM;gBACT,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBACxG,MAAM;YACR,KAAK,OAAO;gBACV,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBACxG,MAAM;QACV,CAAC;IACH,CAAC;CACF","sourcesContent":["interface EventListener {\n el: GlobalEventHandlers;\n name: string;\n listener: EventListenerOrEventListenerObject;\n identifier?: string | null;\n}\n\nexport class EventListeners {\n eventListeners: EventListener[] = [];\n\n add = <T extends GlobalEventHandlers>(\n el: T,\n name: string,\n listener: EventListenerOrEventListenerObject,\n identifier: string | null | undefined = null\n ) => {\n this.eventListeners.push({ el, name, listener, identifier });\n el.addEventListener(name, listener);\n };\n\n remove = <T extends GlobalEventHandlers>(el: T, name: string, listener: EventListenerOrEventListenerObject) => {\n this.eventListeners = this.getFilteredEventListeners(\n (eventListener: EventListener) =>\n eventListener.listener == listener && eventListener.el === el && eventListener.name === name\n );\n };\n\n removeByIdentifier = (identifier: string) => {\n const sameItem = (el: EventListener) => el.identifier === identifier;\n const foundListener = this.eventListeners.find(sameItem) !== undefined;\n if (!foundListener) {\n return;\n }\n this.eventListeners = this.getFilteredEventListeners(sameItem);\n };\n\n private getFilteredEventListeners(sameItem: (el: EventListener) => boolean) {\n return this.eventListeners.filter((item) => {\n if (sameItem(item)) {\n item.el.removeEventListener(item.name, item.listener);\n return false;\n } else {\n return true;\n }\n });\n }\n\n removeAll = () => {\n while (this.eventListeners.length > 0) {\n const eventListener: EventListener | undefined = this.eventListeners.pop();\n if (eventListener != null) {\n eventListener.el.removeEventListener(eventListener.name, eventListener.listener);\n }\n }\n };\n\n forward(from: string, to: 'input' | 'change' | 'blur' | 'focus', host: HTMLElement) {\n switch (to) {\n case 'input':\n this.add(host, from, () => host.dispatchEvent(new InputEvent(to, { bubbles: true, cancelable: true })));\n break;\n case 'change':\n this.add(host, from, () => host.dispatchEvent(new InputEvent(to, { bubbles: true, cancelable: true })));\n break;\n case 'blur':\n this.add(host, from, () => host.dispatchEvent(new FocusEvent(to, { bubbles: true, cancelable: true })));\n break;\n case 'focus':\n this.add(host, from, () => host.dispatchEvent(new FocusEvent(to, { bubbles: true, cancelable: true })));\n break;\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"focus-visible.js","sourceRoot":"","sources":["../../src/utils/focus-visible.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,uHAAuH;AACvH,0FAA0F;AAC1F,EAAE;AACF,mHAAmH;AACnH,EAAE;AACF,MAAM,SAAS,GAAG,IAAI,OAAO,EAAE,CAAC;AAEhC,MAAM,UAAU,OAAO,CAAC,EAAe;IACrC,IAAI,EAAE,IAAI,IAAI;QAAE,OAAO;IAEvB,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC7G,MAAM,EAAE,GAAG,CAAC,KAAoB,EAAE,EAAE;QAClC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAC5B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;SACnC;IACH,CAAC,CAAC;IACF,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACzD,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAEjC,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACnC,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACjC,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACxC,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EAAe;IACvC,IAAI,EAAE,IAAI,IAAI;QAAE,OAAO;IAEvB,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEnC,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO;KACR;IAED,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAE/B,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACrC,EAAE,CAAC,mBAAmB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACtC,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACpC,EAAE,CAAC,mBAAmB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC3C,EAAE,CAAC,mBAAmB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO;IACP,SAAS;CACV,CAAC","sourcesContent":["//\n// Simulates :focus-visible behavior on an element by watching for certain keyboard and mouse heuristics and toggling a\n// `focus-visible` class. Works at the component level so no global polyfill is necessary.\n//\n// This will eventually be removed pending better :focus-visible support: https://caniuse.com/#search=focus-visible\n//\nconst listeners = new WeakMap();\n\nexport function observe(el: HTMLElement) {\n if (el == null) return;\n\n const keys = ['Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageDown', 'PageUp'];\n const is = (event: KeyboardEvent) => {\n if (keys.includes(event.key)) {\n el.classList.add('focus-visible');\n }\n };\n const isNot = () => el.classList.remove('focus-visible');\n listeners.set(el, { is, isNot });\n\n el.addEventListener('keydown', is);\n el.addEventListener('keyup', is);\n el.addEventListener('mousedown', isNot);\n el.addEventListener('mousedown', isNot);\n}\n\nexport function unobserve(el: HTMLElement) {\n if (el == null) return;\n\n const listener = listeners.get(el);\n\n if (!listener) {\n return;\n }\n\n const { is, isNot } = listener;\n\n el.classList.remove('focus-visible');\n el.removeEventListener('keydown', is);\n el.removeEventListener('keyup', is);\n el.removeEventListener('mousedown', isNot);\n el.removeEventListener('mousedown', isNot);\n}\n\nexport const focusVisible = {\n observe,\n unobserve,\n};\n"]}
1
+ {"version":3,"file":"focus-visible.js","sourceRoot":"","sources":["../../src/utils/focus-visible.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,uHAAuH;AACvH,0FAA0F;AAC1F,EAAE;AACF,mHAAmH;AACnH,EAAE;AACF,MAAM,SAAS,GAAG,IAAI,OAAO,EAAE,CAAC;AAEhC,MAAM,UAAU,OAAO,CAAC,EAAe;IACrC,IAAI,EAAE,IAAI,IAAI;QAAE,OAAO;IAEvB,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC7G,MAAM,EAAE,GAAG,CAAC,KAAoB,EAAE,EAAE;QAClC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QACpC,CAAC;IACH,CAAC,CAAC;IACF,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACzD,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAEjC,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACnC,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACjC,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACxC,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EAAe;IACvC,IAAI,EAAE,IAAI,IAAI;QAAE,OAAO;IAEvB,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEnC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO;IACT,CAAC;IAED,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAE/B,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACrC,EAAE,CAAC,mBAAmB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACtC,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACpC,EAAE,CAAC,mBAAmB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC3C,EAAE,CAAC,mBAAmB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO;IACP,SAAS;CACV,CAAC","sourcesContent":["//\n// Simulates :focus-visible behavior on an element by watching for certain keyboard and mouse heuristics and toggling a\n// `focus-visible` class. Works at the component level so no global polyfill is necessary.\n//\n// This will eventually be removed pending better :focus-visible support: https://caniuse.com/#search=focus-visible\n//\nconst listeners = new WeakMap();\n\nexport function observe(el: HTMLElement) {\n if (el == null) return;\n\n const keys = ['Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageDown', 'PageUp'];\n const is = (event: KeyboardEvent) => {\n if (keys.includes(event.key)) {\n el.classList.add('focus-visible');\n }\n };\n const isNot = () => el.classList.remove('focus-visible');\n listeners.set(el, { is, isNot });\n\n el.addEventListener('keydown', is);\n el.addEventListener('keyup', is);\n el.addEventListener('mousedown', isNot);\n el.addEventListener('mousedown', isNot);\n}\n\nexport function unobserve(el: HTMLElement) {\n if (el == null) return;\n\n const listener = listeners.get(el);\n\n if (!listener) {\n return;\n }\n\n const { is, isNot } = listener;\n\n el.classList.remove('focus-visible');\n el.removeEventListener('keydown', is);\n el.removeEventListener('keyup', is);\n el.removeEventListener('mousedown', isNot);\n el.removeEventListener('mousedown', isNot);\n}\n\nexport const focusVisible = {\n observe,\n unobserve,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,OAAoB;IAC7C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,iFAAiF;QACjF,+EAA+E;QAC/E,yDAAyD;QACzD,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpD,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC;QAC3B,UAAU,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC7B,UAAU,CAAC,KAAK,EAAE,CAAC;QACnB,UAAU,CAAC,MAAM,EAAE,CAAC;KACrB;AACH,CAAC","sourcesContent":["export function submitForm(element: HTMLElement) {\n const form = element.closest('form');\n if (form != null) {\n // Calling form.submit() would bypass the submit event and constraint validation.\n // To prevent this, we inject a native submit button into the form, \"click\" it,\n // then remove it to simulate a standard form submission.\n const fakeButton = document.createElement('button');\n fakeButton.type = 'submit';\n fakeButton.style.display = 'none';\n form.appendChild(fakeButton);\n fakeButton.click();\n fakeButton.remove();\n }\n}\n"]}
1
+ {"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,OAAoB;IAC7C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,iFAAiF;QACjF,+EAA+E;QAC/E,yDAAyD;QACzD,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpD,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC;QAC3B,UAAU,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC7B,UAAU,CAAC,KAAK,EAAE,CAAC;QACnB,UAAU,CAAC,MAAM,EAAE,CAAC;IACtB,CAAC;AACH,CAAC","sourcesContent":["export function submitForm(element: HTMLElement) {\n const form = element.closest('form');\n if (form != null) {\n // Calling form.submit() would bypass the submit event and constraint validation.\n // To prevent this, we inject a native submit button into the form, \"click\" it,\n // then remove it to simulate a standard form submission.\n const fakeButton = document.createElement('button');\n fakeButton.type = 'submit';\n fakeButton.style.display = 'none';\n form.appendChild(fakeButton);\n fakeButton.click();\n fakeButton.remove();\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/utils/modal.ts"],"names":[],"mappings":"AAIA,IAAI,YAAY,GAAkB,EAAE,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,KAAK;IAIxB,YAAY,OAAoB,EAAE,OAAsB;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ;QACN,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3D,CAAC;IAED,UAAU;QACR,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC;QACtE,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAED,QAAQ;QACN,yDAAyD;QACzD,OAAO,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC;IAChE,CAAC;IAED,aAAa,CAAC,KAAY;;QACxB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAEnD,0EAA0E;QAC1E,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,IAAI,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAA,KAAK,UAAU,EAAE;YACjH,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC,KAAK,CAAC,CAAC;SACjC;IACH,CAAC;CACF","sourcesContent":["interface ModalOptions {\n onFocusOut?: (event: Event) => void;\n}\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n options?: ModalOptions;\n\n constructor(element: HTMLElement, options?: ModalOptions) {\n this.element = element;\n this.options = options;\n this.handleFocusIn = this.handleFocusIn.bind(this);\n }\n\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n }\n\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n document.removeEventListener('focusin', this.handleFocusIn);\n }\n\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n handleFocusIn(event: Event) {\n const target = event.target as HTMLElement;\n const tagName = this.element.tagName.toLowerCase();\n\n // If focus is lost while the modal is active, run the onFocusOut callback\n if (this.isActive() && target.closest(tagName) !== this.element && typeof this.options?.onFocusOut === 'function') {\n this.options?.onFocusOut(event);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/utils/modal.ts"],"names":[],"mappings":"AAIA,IAAI,YAAY,GAAkB,EAAE,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,KAAK;IAIxB,YAAY,OAAoB,EAAE,OAAsB;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ;QACN,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3D,CAAC;IAED,UAAU;QACR,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC;QACtE,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAED,QAAQ;QACN,yDAAyD;QACzD,OAAO,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC;IAChE,CAAC;IAED,aAAa,CAAC,KAAY;;QACxB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAEnD,0EAA0E;QAC1E,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,IAAI,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAA,KAAK,UAAU,EAAE,CAAC;YAClH,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF","sourcesContent":["interface ModalOptions {\n onFocusOut?: (event: Event) => void;\n}\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n options?: ModalOptions;\n\n constructor(element: HTMLElement, options?: ModalOptions) {\n this.element = element;\n this.options = options;\n this.handleFocusIn = this.handleFocusIn.bind(this);\n }\n\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n }\n\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n document.removeEventListener('focusin', this.handleFocusIn);\n }\n\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n handleFocusIn(event: Event) {\n const target = event.target as HTMLElement;\n const tagName = this.element.tagName.toLowerCase();\n\n // If focus is lost while the modal is active, run the onFocusOut callback\n if (this.isActive() && target.closest(tagName) !== this.element && typeof this.options?.onFocusOut === 'function') {\n this.options?.onFocusOut(event);\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/utils/popover.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,wGAAwG;AACxG,EAAE;AACF,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AC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SAC1D;IACH,CAAC;IAED,UAAU,CAAC,OAAuB;QAChC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,IAAI,EAAE;YACrC,IAAI,CAAC,SAAS;gBACZ,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;gBACvD,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SAC9D;QAED,wBAAwB;QACxB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvB,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC1B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;gBACjC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;aAChC,CAAC,CAAC;YAEH,qBAAqB,CAAC,GAAG,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,EAAE,CAAA,EAAA,CAAC,CAAC;SACpD;IACH,CAAC;CACF","sourcesContent":["//\n// A positioning utility for popovers that handles show/hide/transitionEnd events with simple callbacks.\n//\n// Powered by Popper.js.\n//\n// NOTE:\n//\n// - The popover MUST have at least one property that transitions, otherwise transitionEnd won't fire and the popover\n// won't be hidden. If transitions are delegated to a child element, set the `transitionElement` property accordingly.\n//\n// - When the popover is shown, it's assigned `PopoverOptions.visibleClass`. You can use this class to provide different\n// transitions for show/hide.\n//\n// - Popper uses `translate3d` to position elements, so adding a transition to the `transform` property may have an\n// undesired effect when the element is shown and when its placement changes.\n//\nimport { createPopper, Instance } from '@popperjs/core';\n\nexport default class Popover {\n anchor: HTMLElement;\n isVisible: boolean;\n popover: HTMLElement;\n popper?: Instance;\n options: PopoverOptions;\n\n constructor(anchor: HTMLElement, popover: HTMLElement, options?: PopoverOptions) {\n this.handleTransitionEnd = this.handleTransitionEnd.bind(this);\n\n this.anchor = anchor;\n this.popover = popover;\n this.options = Object.assign(\n {\n skidding: 0,\n distance: 0,\n placement: 'bottom-start',\n strategy: 'absolute',\n transitionElement: this.popover,\n visibleClass: 'popover-visible',\n onAfterShow: () => Promise<void>,\n onAfterHide: () => Promise<void>,\n onTransitionEnd: () => Promise<void>,\n },\n options\n );\n\n this.isVisible = false;\n this.popover.hidden = true;\n if (this.options.visibleClass != null) {\n this.popover.classList.remove(this.options.visibleClass);\n }\n\n this.popover.addEventListener('transitionend', this.handleTransitionEnd);\n }\n\n private handleTransitionEnd(event: TransitionEvent) {\n const target = event.target as HTMLElement;\n\n // Make sure the transition event originates from from the correct element, and not one that has bubbled up\n if (target === this.options.transitionElement) {\n // This is called before the element is hidden so users can do things like reset scroll. It will fire once for\n // every transition property. Use `event.propertyName` to determine which property has finished transitioning.\n this.options.onTransitionEnd?.call(this, event);\n\n // Make sure we only do this once, since transitionend will fire for every transition\n if (!this.isVisible && !this.popover.hidden) {\n this.popover.hidden = true;\n if (this.options.visibleClass != null) {\n this.popover.classList.remove(this.options.visibleClass);\n }\n this.options.onAfterHide?.call(this);\n }\n }\n }\n\n destroy() {\n this.popover.removeEventListener('transitionend', this.handleTransitionEnd);\n\n if (this.popper) {\n this.popper.destroy();\n this.popper = undefined;\n }\n }\n\n show() {\n this.isVisible = true;\n this.popover.hidden = false;\n this.popover.clientWidth; // force reflow\n requestAnimationFrame(() => {\n if (this.options.visibleClass != null) {\n this.popover.classList.add(this.options.visibleClass);\n }\n });\n\n if (this.popper) {\n this.popper.destroy();\n }\n\n this.popper = createPopper(this.anchor, this.popover, {\n placement: this.options.placement,\n strategy: this.options.strategy,\n modifiers: [\n {\n name: 'flip',\n options: {\n boundary: 'viewport',\n },\n },\n {\n name: 'offset',\n options: {\n offset: [this.options.skidding, this.options.distance],\n },\n },\n ],\n });\n\n this.popover.addEventListener('transitionend', () => this.options.onAfterShow?.call(this), { once: true });\n\n // Reposition the menu after it appears in case a modifier kicked in\n requestAnimationFrame(() => this.popper?.update());\n }\n\n reposition() {\n this.popper?.update();\n }\n\n hide() {\n // Apply the hidden styles and wait for the transition before hiding completely\n this.isVisible = false;\n if (this.options.visibleClass != null) {\n this.popover.classList.remove(this.options.visibleClass);\n }\n }\n\n setOptions(options: PopoverOptions) {\n this.options = Object.assign(this.options, options);\n if (this.options.visibleClass != null) {\n this.isVisible\n ? this.popover.classList.add(this.options.visibleClass)\n : this.popover.classList.remove(this.options.visibleClass);\n }\n\n // Update popper options\n if (this.popper != null) {\n void this.popper.setOptions({\n placement: this.options.placement,\n strategy: this.options.strategy,\n });\n\n requestAnimationFrame(() => this.popper?.update());\n }\n }\n}\n\ninterface PopoverOptions {\n distance?: number;\n placement?:\n | 'auto'\n | 'auto-start'\n | 'auto-end'\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';\n skidding?: number;\n strategy?: 'absolute' | 'fixed';\n transitionElement?: HTMLElement;\n visibleClass?: string;\n onAfterShow?: () => void;\n onAfterHide?: () => void;\n onTransitionEnd?: (event: TransitionEvent) => void;\n}\n"]}
1
+ {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/utils/popover.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,wGAAwG;AACxG,EAAE;AACF,wBAAwB;AACxB,EAAE;AACF,QAAQ;AACR,EAAE;AACF,qHAAqH;AACrH,wHAAwH;AACxH,EAAE;AACF,wHAAwH;AACxH,+BAA+B;AAC/B,EAAE;AACF,mHAAmH;AACnH,+EAA+E;AAC/E,EAAE;AACF,OAAO,EAAE,YAAY,EAAY,MAAM,gBAAgB,CAAC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AAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,IAAI,EAAE,CAAC;YACtC,IAAI,CAAC,SAAS;gBACZ,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;gBACvD,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC/D,CAAC;QAED,wBAAwB;QACxB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;YACxB,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC1B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;gBACjC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;aAChC,CAAC,CAAC;YAEH,qBAAqB,CAAC,GAAG,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,EAAE,CAAA,EAAA,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF","sourcesContent":["//\n// A positioning utility for popovers that handles show/hide/transitionEnd events with simple callbacks.\n//\n// Powered by Popper.js.\n//\n// NOTE:\n//\n// - The popover MUST have at least one property that transitions, otherwise transitionEnd won't fire and the popover\n// won't be hidden. If transitions are delegated to a child element, set the `transitionElement` property accordingly.\n//\n// - When the popover is shown, it's assigned `PopoverOptions.visibleClass`. You can use this class to provide different\n// transitions for show/hide.\n//\n// - Popper uses `translate3d` to position elements, so adding a transition to the `transform` property may have an\n// undesired effect when the element is shown and when its placement changes.\n//\nimport { createPopper, Instance } from '@popperjs/core';\n\nexport default class Popover {\n anchor: HTMLElement;\n isVisible: boolean;\n popover: HTMLElement;\n popper?: Instance;\n options: PopoverOptions;\n\n constructor(anchor: HTMLElement, popover: HTMLElement, options?: PopoverOptions) {\n this.handleTransitionEnd = this.handleTransitionEnd.bind(this);\n\n this.anchor = anchor;\n this.popover = popover;\n this.options = Object.assign(\n {\n skidding: 0,\n distance: 0,\n placement: 'bottom-start',\n strategy: 'absolute',\n transitionElement: this.popover,\n visibleClass: 'popover-visible',\n onAfterShow: () => Promise<void>,\n onAfterHide: () => Promise<void>,\n onTransitionEnd: () => Promise<void>,\n },\n options\n );\n\n this.isVisible = false;\n this.popover.hidden = true;\n if (this.options.visibleClass != null) {\n this.popover.classList.remove(this.options.visibleClass);\n }\n\n this.popover.addEventListener('transitionend', this.handleTransitionEnd);\n }\n\n private handleTransitionEnd(event: TransitionEvent) {\n const target = event.target as HTMLElement;\n\n // Make sure the transition event originates from from the correct element, and not one that has bubbled up\n if (target === this.options.transitionElement) {\n // This is called before the element is hidden so users can do things like reset scroll. It will fire once for\n // every transition property. Use `event.propertyName` to determine which property has finished transitioning.\n this.options.onTransitionEnd?.call(this, event);\n\n // Make sure we only do this once, since transitionend will fire for every transition\n if (!this.isVisible && !this.popover.hidden) {\n this.popover.hidden = true;\n if (this.options.visibleClass != null) {\n this.popover.classList.remove(this.options.visibleClass);\n }\n this.options.onAfterHide?.call(this);\n }\n }\n }\n\n destroy() {\n this.popover.removeEventListener('transitionend', this.handleTransitionEnd);\n\n if (this.popper) {\n this.popper.destroy();\n this.popper = undefined;\n }\n }\n\n show() {\n this.isVisible = true;\n this.popover.hidden = false;\n this.popover.clientWidth; // force reflow\n requestAnimationFrame(() => {\n if (this.options.visibleClass != null) {\n this.popover.classList.add(this.options.visibleClass);\n }\n });\n\n if (this.popper) {\n this.popper.destroy();\n }\n\n this.popper = createPopper(this.anchor, this.popover, {\n placement: this.options.placement,\n strategy: this.options.strategy,\n modifiers: [\n {\n name: 'flip',\n options: {\n boundary: 'viewport',\n },\n },\n {\n name: 'offset',\n options: {\n offset: [this.options.skidding, this.options.distance],\n },\n },\n ],\n });\n\n this.popover.addEventListener('transitionend', () => this.options.onAfterShow?.call(this), { once: true });\n\n // Reposition the menu after it appears in case a modifier kicked in\n requestAnimationFrame(() => this.popper?.update());\n }\n\n reposition() {\n this.popper?.update();\n }\n\n hide() {\n // Apply the hidden styles and wait for the transition before hiding completely\n this.isVisible = false;\n if (this.options.visibleClass != null) {\n this.popover.classList.remove(this.options.visibleClass);\n }\n }\n\n setOptions(options: PopoverOptions) {\n this.options = Object.assign(this.options, options);\n if (this.options.visibleClass != null) {\n this.isVisible\n ? this.popover.classList.add(this.options.visibleClass)\n : this.popover.classList.remove(this.options.visibleClass);\n }\n\n // Update popper options\n if (this.popper != null) {\n void this.popper.setOptions({\n placement: this.options.placement,\n strategy: this.options.strategy,\n });\n\n requestAnimationFrame(() => this.popper?.update());\n }\n }\n}\n\ninterface PopoverOptions {\n distance?: number;\n placement?:\n | 'auto'\n | 'auto-start'\n | 'auto-end'\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';\n skidding?: number;\n strategy?: 'absolute' | 'fixed';\n transitionElement?: HTMLElement;\n visibleClass?: string;\n onAfterShow?: () => void;\n onAfterHide?: () => void;\n onTransitionEnd?: (event: TransitionEvent) => void;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"popup.js","sourceRoot":"","sources":["../../src/utils/popup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAc,EACd,KAA8B,EAC9B,YAAqC,EACrC,OAAgC,EAChC,cAAsB,EACtB,wBAAiD;IAEjD,IAAI,CAAC,KAAK,IAAI,KAAK,IAAI,IAAI,IAAI,YAAY,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,EAAE;QACtE,OAAO;KACR;IACD,6CAA6C;IAC7C,MAAM,eAAe,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACrD,MAAM,eAAe,GA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,KAAK,CAAC,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IAChD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,SAAS,GAAG,aAAa,CAAC;IACtC,OAAO,eAAe,CAAC;AACzB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,SAAS,CACvB,KAAc,EACd,IAAa,EACb,KAA8B,EAC9B,YAAqC,EACrC,OAAgC,EAChC,cAAsB;IAEtB,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,YAAY,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,EAAE;QAC/E,OAAO;KACR;IACD,MAAM,uBAAuB,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;IAC9D,MAAM,WAAW,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACnD,MAAM,uBAAuB,GAAG,YAAY,CAAC,qBAAqB,EAAE,CAAC;IACrE,MAAM,QAAQ,GAAG,uBAAuB,CAAC,GAAG,CAAC;IAC7C,MAAM,WAAW,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAEnD,MAAM,IAAI,GAAG,uBAAuB,CAAC,YAAY,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAE5E,IAAI,IAAI,EAAE;QACR,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,QAAQ,GAAG,WAAW,IAAI,CAAC;KACjD;SAAM;QACL,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,QAAQ,GAAG,WAAW,IAAI,CAAC;KACjD;AACH,CAAC","sourcesContent":["/**\n * If the popup is hoisted we popup is hoisted its position will change to fix to not be clipped of by a containing container.\n * To render the popup correctly we render it normally, and then assign this screenposition to the fixed popup\n */\nexport function adjustPopupForHoisting(\n hoist: boolean,\n popup: HTMLElement | undefined,\n inputElement: HTMLElement | undefined,\n wrapper: HTMLElement | undefined,\n minPopupHeight: number,\n dropdownDirectionChanged: (isUp: boolean) => void\n) {\n if (!hoist || popup == null || inputElement == null || wrapper == null) {\n return;\n }\n // take a snapshot of normally rendered popup\n const popupDimensions = setPopupAsFixPosition(popup);\n const inputDimensions = inputElement.getBoundingClientRect();\n const inputTop = inputDimensions.top;\n const popupTop = popupDimensions.top;\n\n const isUp = calcIsDropDownContentUp(inputElement, wrapper, minPopupHeight);\n // check screen position to check whether the popup should be moved above or below the trigger element\n if (isUp && inputTop < popupTop) {\n // move popup above input field if datepicker is at bottom of screen\n popup.style.top = `${popupTop - popupDimensions.height - inputDimensions.height}px`;\n }\n dropdownDirectionChanged(isUp);\n}\n\n/*\n * For small screens the datepicker popup could be cut-off even though there might still be space within the viewport.\n * This is because the popup is always aligned with the trigger input field. However in the scenario of small screens\n * we should reposition the popup to use the space available.\n */\nexport function adjustPopupForSmallScreens(popup?: HTMLElement) {\n // execute after dropdown has been rendered to make sure the popup reference is correctly set\n setTimeout(() => {\n if (popup == null) {\n return;\n }\n const popupDimensions = popup.getBoundingClientRect();\n if (\n popupDimensions.y < 0 &&\n window.innerHeight - popupDimensions.height > 0 &&\n Math.abs(popupDimensions.y) <= popupDimensions.height\n ) {\n // handle case where popup is cut-off on top but there is still space available\n setPopupAsFixPosition(popup);\n popup.style.top = '0px';\n } else if (\n window.innerHeight < popupDimensions.y + popupDimensions.height &&\n window.innerHeight > popupDimensions.height &&\n Math.abs(popupDimensions.y - window.innerHeight) <= popupDimensions.height\n ) {\n // handle case where popup is cut-off at the bottom but there is still space available above\n // apply screen position to fixed popup\n setPopupAsFixPosition(popup);\n popup.style.top = `${window.innerHeight - popupDimensions.height}px`;\n }\n\n if (\n window.innerWidth < popupDimensions.x + popupDimensions.width &&\n window.innerWidth > popupDimensions.width &&\n Math.abs(popupDimensions.x - window.innerWidth) <= popupDimensions.width\n ) {\n // handle case where popup is cut-off to the right\n setPopupAsFixPosition(popup);\n popup.style.left = `${window.innerWidth - popupDimensions.width}px`;\n }\n }, 0);\n}\n\nexport function calcIsDropDownContentUp(\n inputElement: HTMLElement,\n wrapper: HTMLElement,\n minPopupHeight: number\n): boolean {\n const inputBoundingRect = inputElement.getBoundingClientRect();\n const wrapperBoundingRect = wrapper.getBoundingClientRect();\n const popupHeight = Math.max(wrapperBoundingRect.height, minPopupHeight);\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n return moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + popupHeight;\n}\n\nexport function setPopupAsFixPosition(popup: HTMLElement): DOMRect {\n const popupDimensions = popup.getBoundingClientRect();\n popup.style.position = 'fixed';\n popup.style.top = popupDimensions['top'] + 'px';\n popup.style.left = popupDimensions['left'] + 'px';\n popup.style.width = popupDimensions['width'] + 'px';\n popup.style.minHeight = 'fit-content';\n return popupDimensions;\n}\n\n/*\n * The position of the hoisted datepicker needs to be correctly calculated since the position changes to fixed.\n * Thus if the user scrolls or adjusts the screen size we need to recalculate the datepicker position.\n */\nexport function movePopup(\n hoist: boolean,\n open: boolean,\n popup: HTMLElement | undefined,\n inputElement: HTMLElement | undefined,\n wrapper: HTMLElement | undefined,\n minPopupHeight: number\n) {\n if (!hoist || !open || popup == null || inputElement == null || wrapper == null) {\n return;\n }\n const popupBoundingClientRect = popup.getBoundingClientRect();\n const popupHeight = popupBoundingClientRect.height;\n const inputBoundingClientRect = inputElement.getBoundingClientRect();\n const inputTop = inputBoundingClientRect.top;\n const inputHeight = inputBoundingClientRect.height;\n\n const isUp = calcIsDropDownContentUp(inputElement, wrapper, minPopupHeight);\n\n if (isUp) {\n popup.style.top = `${inputTop - popupHeight}px`;\n } else {\n popup.style.top = `${inputTop + inputHeight}px`;\n }\n}\n"]}
1
+ {"version":3,"file":"popup.js","sourceRoot":"","sources":["../../src/utils/popup.ts"],"names":[],"mappings":"A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AG,uBAAuB,CAAC,MAAM,CAAC;IAEnD,MAAM,IAAI,GAAG,uBAAuB,CAAC,YAAY,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAE5E,IAAI,IAAI,EAAE,CAAC;QACT,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,QAAQ,GAAG,WAAW,IAAI,CAAC;IAClD,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,QAAQ,GAAG,WAAW,IAAI,CAAC;IAClD,CAAC;AACH,CAAC","sourcesContent":["/**\n * If the popup is hoisted we popup is hoisted its position will change to fix to not be clipped of by a containing container.\n * To render the popup correctly we render it normally, and then assign this screenposition to the fixed popup\n */\nexport function adjustPopupForHoisting(\n hoist: boolean,\n popup: HTMLElement | undefined,\n inputElement: HTMLElement | undefined,\n wrapper: HTMLElement | undefined,\n minPopupHeight: number,\n dropdownDirectionChanged: (isUp: boolean) => void\n) {\n if (!hoist || popup == null || inputElement == null || wrapper == null) {\n return;\n }\n // take a snapshot of normally rendered popup\n const popupDimensions = setPopupAsFixPosition(popup);\n const inputDimensions = inputElement.getBoundingClientRect();\n const inputTop = inputDimensions.top;\n const popupTop = popupDimensions.top;\n\n const isUp = calcIsDropDownContentUp(inputElement, wrapper, minPopupHeight);\n // check screen position to check whether the popup should be moved above or below the trigger element\n if (isUp && inputTop < popupTop) {\n // move popup above input field if datepicker is at bottom of screen\n popup.style.top = `${popupTop - popupDimensions.height - inputDimensions.height}px`;\n }\n dropdownDirectionChanged(isUp);\n}\n\n/*\n * For small screens the datepicker popup could be cut-off even though there might still be space within the viewport.\n * This is because the popup is always aligned with the trigger input field. However in the scenario of small screens\n * we should reposition the popup to use the space available.\n */\nexport function adjustPopupForSmallScreens(popup?: HTMLElement) {\n // execute after dropdown has been rendered to make sure the popup reference is correctly set\n setTimeout(() => {\n if (popup == null) {\n return;\n }\n const popupDimensions = popup.getBoundingClientRect();\n if (\n popupDimensions.y < 0 &&\n window.innerHeight - popupDimensions.height > 0 &&\n Math.abs(popupDimensions.y) <= popupDimensions.height\n ) {\n // handle case where popup is cut-off on top but there is still space available\n setPopupAsFixPosition(popup);\n popup.style.top = '0px';\n } else if (\n window.innerHeight < popupDimensions.y + popupDimensions.height &&\n window.innerHeight > popupDimensions.height &&\n Math.abs(popupDimensions.y - window.innerHeight) <= popupDimensions.height\n ) {\n // handle case where popup is cut-off at the bottom but there is still space available above\n // apply screen position to fixed popup\n setPopupAsFixPosition(popup);\n popup.style.top = `${window.innerHeight - popupDimensions.height}px`;\n }\n\n if (\n window.innerWidth < popupDimensions.x + popupDimensions.width &&\n window.innerWidth > popupDimensions.width &&\n Math.abs(popupDimensions.x - window.innerWidth) <= popupDimensions.width\n ) {\n // handle case where popup is cut-off to the right\n setPopupAsFixPosition(popup);\n popup.style.left = `${window.innerWidth - popupDimensions.width}px`;\n }\n }, 0);\n}\n\nexport function calcIsDropDownContentUp(\n inputElement: HTMLElement,\n wrapper: HTMLElement,\n minPopupHeight: number\n): boolean {\n const inputBoundingRect = inputElement.getBoundingClientRect();\n const wrapperBoundingRect = wrapper.getBoundingClientRect();\n const popupHeight = Math.max(wrapperBoundingRect.height, minPopupHeight);\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n return moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + popupHeight;\n}\n\nexport function setPopupAsFixPosition(popup: HTMLElement): DOMRect {\n const popupDimensions = popup.getBoundingClientRect();\n popup.style.position = 'fixed';\n popup.style.top = popupDimensions['top'] + 'px';\n popup.style.left = popupDimensions['left'] + 'px';\n popup.style.width = popupDimensions['width'] + 'px';\n popup.style.minHeight = 'fit-content';\n return popupDimensions;\n}\n\n/*\n * The position of the hoisted datepicker needs to be correctly calculated since the position changes to fixed.\n * Thus if the user scrolls or adjusts the screen size we need to recalculate the datepicker position.\n */\nexport function movePopup(\n hoist: boolean,\n open: boolean,\n popup: HTMLElement | undefined,\n inputElement: HTMLElement | undefined,\n wrapper: HTMLElement | undefined,\n minPopupHeight: number\n) {\n if (!hoist || !open || popup == null || inputElement == null || wrapper == null) {\n return;\n }\n const popupBoundingClientRect = popup.getBoundingClientRect();\n const popupHeight = popupBoundingClientRect.height;\n const inputBoundingClientRect = inputElement.getBoundingClientRect();\n const inputTop = inputBoundingClientRect.top;\n const inputHeight = inputBoundingClientRect.height;\n\n const isUp = calcIsDropDownContentUp(inputElement, wrapper, minPopupHeight);\n\n if (isUp) {\n popup.style.top = `${inputTop - popupHeight}px`;\n } else {\n popup.style.top = `${inputTop + inputHeight}px`;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.js","sourceRoot":"","sources":["../../src/utils/scroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;AAExB,EAAE;AACF,qHAAqH;AACrH,+BAA+B;AAC/B,EAAE;AACF,MAAM,UAAU,iBAAiB,CAAC,SAAsB;IACtD,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACjD,CAAC;AAED,EAAE;AACF,oHAAoH;AACpH,EAAE;AACF,MAAM,UAAU,mBAAmB,CAAC,SAAsB;IACxD,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAExB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,EAAE;QACpB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;KACnD;AACH,CAAC;AAED,EAAE;AACF,yGAAyG;AACzG,EAAE;AACF,MAAM,UAAU,cAAc,CAC5B,OAAoB,EACpB,SAAsB,EACtB,YAAgD,UAAU,EAC1D,WAA8B,QAAQ;IAEtC,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC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n//\n// Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible\n// without premature unlocking.\n//\nexport function lockBodyScrolling(lockingEl: HTMLElement) {\n locks.add(lockingEl);\n document.body.classList.add('six-scroll-lock');\n}\n\n//\n// Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.\n//\nexport function unlockBodyScrolling(lockingEl: HTMLElement) {\n locks.delete(lockingEl);\n\n if (locks.size === 0) {\n document.body.classList.remove('six-scroll-lock');\n }\n}\n\n//\n// Scrolls an element into view of its container. If the element is already in view, nothing will happen.\n//\nexport function scrollIntoView(\n element: HTMLElement,\n container: HTMLElement,\n direction: 'horizontal' | 'vertical' | 'both' = 'vertical',\n behavior: 'smooth' | 'auto' = 'smooth'\n) {\n const offset = getOffset(element, container);\n const offsetTop = offset.top + container.scrollTop;\n const offsetLeft = offset.left + container.scrollLeft;\n const minX = container.scrollLeft;\n const maxX = container.scrollLeft + container.offsetWidth;\n const minY = container.scrollTop;\n const maxY = container.scrollTop + container.offsetHeight;\n\n if (direction === 'horizontal' || direction === 'both') {\n if (offsetLeft < minX) {\n container.scrollTo({ left: offsetLeft, behavior });\n } else if (offsetLeft + element.clientWidth > maxX) {\n container.scrollTo({ left: offsetLeft - container.offsetWidth + element.clientWidth, behavior });\n }\n }\n\n if (direction === 'vertical' || direction === 'both') {\n if (offsetTop < minY) {\n container.scrollTo({ top: offsetTop, behavior });\n } else if (offsetTop + element.clientHeight > maxY) {\n container.scrollTo({ top: offsetTop - container.offsetHeight + element.clientHeight, behavior });\n }\n }\n}\n"]}
1
+ {"version":3,"file":"scroll.js","sourceRoot":"","sources":["../../src/utils/scroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;AAExB,EAAE;AACF,qHAAqH;AACrH,+BAA+B;AAC/B,EAAE;AACF,MAAM,UAAU,iBAAiB,CAAC,SAAsB;IACtD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,WAAW,GAAG,IAAI,EAAE,CAAC;YACnD,SAAS,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnG,CAAC;IACH,CAAC;IAED,IAAI,SAAS,KAAK,UAAU,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;QACrD,IAAI,SAAS,GAAG,IAAI,EAAE,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnD,CAAC;aAAM,IAAI,SAAS,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,EAAE,CAAC;YACnD,SAAS,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnG,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import { getOffset } from './offset';\n\nconst locks = new Set();\n\n//\n// Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible\n// without premature unlocking.\n//\nexport function lockBodyScrolling(lockingEl: HTMLElement) {\n locks.add(lockingEl);\n document.body.classList.add('six-scroll-lock');\n}\n\n//\n// Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.\n//\nexport function unlockBodyScrolling(lockingEl: HTMLElement) {\n locks.delete(lockingEl);\n\n if (locks.size === 0) {\n document.body.classList.remove('six-scroll-lock');\n }\n}\n\n//\n// Scrolls an element into view of its container. If the element is already in view, nothing will happen.\n//\nexport function scrollIntoView(\n element: HTMLElement,\n container: HTMLElement,\n direction: 'horizontal' | 'vertical' | 'both' = 'vertical',\n behavior: 'smooth' | 'auto' = 'smooth'\n) {\n const offset = getOffset(element, container);\n const offsetTop = offset.top + container.scrollTop;\n const offsetLeft = offset.left + container.scrollLeft;\n const minX = container.scrollLeft;\n const maxX = container.scrollLeft + container.offsetWidth;\n const minY = container.scrollTop;\n const maxY = container.scrollTop + container.offsetHeight;\n\n if (direction === 'horizontal' || direction === 'both') {\n if (offsetLeft < minX) {\n container.scrollTo({ left: offsetLeft, behavior });\n } else if (offsetLeft + element.clientWidth > maxX) {\n container.scrollTo({ left: offsetLeft - container.offsetWidth + element.clientWidth, behavior });\n }\n }\n\n if (direction === 'vertical' || direction === 'both') {\n if (offsetTop < minY) {\n container.scrollTo({ top: offsetTop, behavior });\n } else if (offsetTop + element.clientHeight > maxY) {\n container.scrollTo({ top: offsetTop - container.offsetHeight + element.clientHeight, behavior });\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"slot.js","sourceRoot":"","sources":["../../src/utils/slot.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,kHAAkH;AAClH,kFAAkF;AAClF,EAAE;AACF,MAAM,UAAU,cAAc,CAAC,IAAsB;IACnD,MAAM,KAAK,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACxE,IAAI,IAAI,GAAG,EAAE,CAAC;IAEd,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACtB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;YACpC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED,EAAE;AACF,mHAAmH;AACnH,uHAAuH;AACvH,EAAE;AACF,MAAM,UAAU,OAAO,CAAC,EAAe,EAAE,IAAa;IACpD,wBAAwB;IACxB,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QAC/B,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;KACtD;IAED,0BAA0B;IAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;;QAC7C,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,MAAK,EAAE,EAAE;YACvE,OAAO,IAAI,CAAC;SACb;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE;YACvC,MAAM,EAAE,GAAG,IAAmB,CAAC;YAC/B,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;gBAC5B,OAAO,IAAI,CAAC;aACb;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAsC,EAAE,QAAgB;IAC9E,IAAI,OAAO,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IACjC,OAAO,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;AACvD,CAAC","sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot?: HTMLSlotElement): string {\n const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name != null && name !== '') {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function getSlot(element: ParentNode | null | undefined, slotName: string): HTMLElement | null {\n if (element == null) return null;\n return element.querySelector(`[slot=\"${slotName}\"]`);\n}\n"]}
1
+ {"version":3,"file":"slot.js","sourceRoot":"","sources":["../../src/utils/slot.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,kHAAkH;AAClH,kFAAkF;AAClF,EAAE;AACF,MAAM,UAAU,cAAc,CAAC,IAAsB;IACnD,MAAM,KAAK,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACxE,IAAI,IAAI,GAAG,EAAE,CAAC;IAEd,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACtB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;YACrC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED,EAAE;AACF,mHAAmH;AACnH,uHAAuH;AACvH,EAAE;AACF,MAAM,UAAU,OAAO,CAAC,EAAe,EAAE,IAAa;IACpD,wBAAwB;IACxB,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;IACvD,CAAC;IAED,0BAA0B;IAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;;QAC7C,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,MAAK,EAAE,EAAE,CAAC;YACxE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE,CAAC;YACxC,MAAM,EAAE,GAAG,IAAmB,CAAC;YAC/B,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC7B,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAsC,EAAE,QAAgB;IAC9E,IAAI,OAAO,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IACjC,OAAO,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;AACvD,CAAC","sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot?: HTMLSlotElement): string {\n const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name != null && name !== '') {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function getSlot(element: ParentNode | null | undefined, slotName: string): HTMLElement | null {\n if (element == null) return null;\n return element.querySelector(`[slot=\"${slotName}\"]`);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"tabbable.js","sourceRoot":"","sources":["../../src/utils/tabbable.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,EAAe;IACxC,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;IAC7B,OAAO,QAAQ,GAAG,CAAC,CAAC,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,EAAe;IACvD,oBAAoB;IACpB,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE;QAClB,OAAO,EAAE,CAAC;KACX;IAED,kCAAkC;IAClC,IAAI,EAAE,CAAC,UAAU,IAAI,IAAI,EAAE;QACzB,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAgB,CAAC,CAAgB,CAAC;QACjH,IAAI,mBAAmB,IAAI,IAAI,EAAE;YAC/B,OAAO,mBAAmB,CAAC;SAC5B;KACF;IAED,+BAA+B;IAC/B,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,EAAE;QACvB,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,CAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KACvF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","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"]}
1
+ {"version":3,"file":"tabbable.js","sourceRoot":"","sources":["../../src/utils/tabbable.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,EAAe;IACxC,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;IAC7B,OAAO,QAAQ,GAAG,CAAC,CAAC,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,EAAe;IACvD,oBAAoB;IACpB,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,kCAAkC;IAClC,IAAI,EAAE,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;QAC1B,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAgB,CAAC,CAAgB,CAAC;QACjH,IAAI,mBAAmB,IAAI,IAAI,EAAE,CAAC;YAChC,OAAO,mBAAmB,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,+BAA+B;IAC/B,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,CAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"time.util.js","sourceRoot":"","sources":["../../src/utils/time.util.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAS,EAAE;IAChD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,OAAO;QACL,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE;QACrB,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE;QACzB,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE;QACzB,YAAY,EAAE,GAAG,CAAC,eAAe,EAAE;QACnC,UAAU,EAAE,IAAI;KACjB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,EAAE,CACtD,KAAK,GAAG,6BAA6B,CAAC,CAAC,CAAC,KAAK,GAAG,6BAA6B,CAAC,CAAC,CAAC,KAAK,CAAC;AAExF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAS,EAAE;IAChD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC7B,OAAO;QACL,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC;QACpC,OAAO,EAAE,GA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OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YAC/C,KAAK,IAAI;gBACP,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YAC/C,KAAK,IAAI;gBACP,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACpD,KAAK,IAAI;gBACP,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC9B;IACH,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC,CAAC","sourcesContent":["export type TimePeriod = 'AM' | 'PM';\n\nexport interface Time {\n hours?: number;\n minutes?: number;\n seconds?: number;\n milliseconds?: number;\n has24Hours?: boolean; // true => 24h, false => 12h\n period?: TimePeriod; // only needed for 12-hour clock\n}\n\nexport type TimeProperties = keyof Time;\n\nexport type TimeFormatChar =\n | 'HH' // 24h\n | 'hh' // 12h\n | 'mm' // minutes\n | 'ss' // seconds\n | 'ms' // milliseconds\n | 'aa'; // period (AM/PM)\n\n/*\n * Supported time formats\n */\nexport type TimeFormat =\n | 'HH:mm:ss'\n | 'hh:mm:ss:aa'\n | 'HH:mm:ss:ms'\n | 'hh:mm:ss:ms:aa'\n | 'HH:mm'\n | 'hh:mm:aa'\n | 'HH'\n | 'hh:aa'\n | 'mm'\n | 'ss'\n | 'ms';\n\nexport const getCurrentTimeIn24Hours = (): Time => {\n const now = new Date();\n return {\n hours: now.getHours(),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: true,\n };\n};\n\nconst HOURS_IN_12_HOUR_CLOCK_FORMAT = 12;\n\nexport const getHoursIn12HourFormat = (hours: number) =>\n hours > HOURS_IN_12_HOUR_CLOCK_FORMAT ? hours - HOURS_IN_12_HOUR_CLOCK_FORMAT : hours;\n\nexport const getCurrentTimeIn12Hours = (): Time => {\n const now = new Date();\n const hours = now.getHours();\n return {\n hours: getHoursIn12HourFormat(hours),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: false,\n period: hours >= HOURS_IN_12_HOUR_CLOCK_FORMAT ? 'PM' : 'AM',\n };\n};\n\nexport const getCurrentTime = (has24Hours = true): Time => {\n return has24Hours ? getCurrentTimeIn24Hours() : getCurrentTimeIn12Hours();\n};\n\nexport const isValidTimeString = (timeStr: string, format: TimeFormat) => {\n const timeStringParts = timeStr.split(':');\n const timeFormatParts = format.split(':');\n return timeStringParts.length === timeFormatParts.length;\n};\n\nexport const parseTimeString = (timeStr: string, format: TimeFormat): Time => {\n const timeParts = timeStr.split(':');\n const formatParts = format.split(':') as TimeFormatChar[];\n\n if (!isValidTimeString(timeStr, format)) {\n console.error(\n `Timestring did not match expected format.\\nExpected format: ${format}\\nReceived timestring: ${timeStr}`\n );\n }\n\n const time: Time = {};\n\n timeParts.forEach((timeStringPart, i) => {\n const formatStringPart: TimeFormatChar = formatParts[i];\n switch (formatStringPart) {\n case 'HH':\n time.hours = Number(timeStringPart);\n time.has24Hours = true;\n break;\n case 'hh':\n time.hours = Number(timeStringPart);\n time.has24Hours = false;\n break;\n case 'mm':\n time.minutes = Number(timeStringPart);\n break;\n case 'ss':\n time.seconds = Number(timeStringPart);\n break;\n case 'ms':\n time.milliseconds = Number(timeStringPart);\n break;\n case 'aa':\n time.period = timeStringPart.toUpperCase() === 'PM' ? 'PM' : 'AM';\n }\n });\n return time;\n};\n\nexport const createTimeString = (time: Time | undefined, format: TimeFormat): string => {\n if (time == null) {\n return '';\n }\n\n const formatParts = format.split(':') as TimeFormatChar[];\n\n return formatParts\n .map((timeFormatPart) => {\n switch (timeFormatPart) {\n case 'HH':\n case 'hh':\n return String(time.hours).padStart(2, '0');\n case 'mm':\n return String(time.minutes).padStart(2, '0');\n case 'ss':\n return String(time.seconds).padStart(2, '0');\n case 'ms':\n return String(time.milliseconds).padStart(3, '0');\n case 'aa':\n return String(time.period);\n }\n })\n .join(':');\n};\n"]}
1
+ {"version":3,"file":"time.util.js","sourceRoot":"","sources":["../../src/utils/time.util.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAS,EAAE;IAChD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,OAAO;QACL,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE;QACrB,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE;QACzB,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE;QACzB,YAAY,EAAE,GAAG,CAAC,eAAe,EAAE;QACnC,UAAU,EAAE,IAAI;KACjB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,EAAE,CACtD,KAAK,GAAG,6BAA6B,CAAC,CAAC,CAAC,KAAK,GAAG,6BAA6B,CAAC,CAAC,CAAC,KAAK,CAAC;AAExF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAS,EAAE;IAChD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC7B,OAAO;QACL,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC;QACpC,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE;QACzB,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE;QACzB,YAAY,EAAE,GAAG,CAAC,eAAe,EAAE;QACnC,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,KAAK,IAAI,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;KAC7D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,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OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACpD,KAAK,IAAI;gBACP,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC,CAAC","sourcesContent":["export type TimePeriod = 'AM' | 'PM';\n\nexport interface Time {\n hours?: number;\n minutes?: number;\n seconds?: number;\n milliseconds?: number;\n has24Hours?: boolean; // true => 24h, false => 12h\n period?: TimePeriod; // only needed for 12-hour clock\n}\n\nexport type TimeProperties = keyof Time;\n\nexport type TimeFormatChar =\n | 'HH' // 24h\n | 'hh' // 12h\n | 'mm' // minutes\n | 'ss' // seconds\n | 'ms' // milliseconds\n | 'aa'; // period (AM/PM)\n\n/*\n * Supported time formats\n */\nexport type TimeFormat =\n | 'HH:mm:ss'\n | 'hh:mm:ss:aa'\n | 'HH:mm:ss:ms'\n | 'hh:mm:ss:ms:aa'\n | 'HH:mm'\n | 'hh:mm:aa'\n | 'HH'\n | 'hh:aa'\n | 'mm'\n | 'ss'\n | 'ms';\n\nexport const getCurrentTimeIn24Hours = (): Time => {\n const now = new Date();\n return {\n hours: now.getHours(),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: true,\n };\n};\n\nconst HOURS_IN_12_HOUR_CLOCK_FORMAT = 12;\n\nexport const getHoursIn12HourFormat = (hours: number) =>\n hours > HOURS_IN_12_HOUR_CLOCK_FORMAT ? hours - HOURS_IN_12_HOUR_CLOCK_FORMAT : hours;\n\nexport const getCurrentTimeIn12Hours = (): Time => {\n const now = new Date();\n const hours = now.getHours();\n return {\n hours: getHoursIn12HourFormat(hours),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: false,\n period: hours >= HOURS_IN_12_HOUR_CLOCK_FORMAT ? 'PM' : 'AM',\n };\n};\n\nexport const getCurrentTime = (has24Hours = true): Time => {\n return has24Hours ? getCurrentTimeIn24Hours() : getCurrentTimeIn12Hours();\n};\n\nexport const isValidTimeString = (timeStr: string, format: TimeFormat) => {\n const timeStringParts = timeStr.split(':');\n const timeFormatParts = format.split(':');\n return timeStringParts.length === timeFormatParts.length;\n};\n\nexport const parseTimeString = (timeStr: string, format: TimeFormat): Time => {\n const timeParts = timeStr.split(':');\n const formatParts = format.split(':') as TimeFormatChar[];\n\n if (!isValidTimeString(timeStr, format)) {\n console.error(\n `Timestring did not match expected format.\\nExpected format: ${format}\\nReceived timestring: ${timeStr}`\n );\n }\n\n const time: Time = {};\n\n timeParts.forEach((timeStringPart, i) => {\n const formatStringPart: TimeFormatChar = formatParts[i];\n switch (formatStringPart) {\n case 'HH':\n time.hours = Number(timeStringPart);\n time.has24Hours = true;\n break;\n case 'hh':\n time.hours = Number(timeStringPart);\n time.has24Hours = false;\n break;\n case 'mm':\n time.minutes = Number(timeStringPart);\n break;\n case 'ss':\n time.seconds = Number(timeStringPart);\n break;\n case 'ms':\n time.milliseconds = Number(timeStringPart);\n break;\n case 'aa':\n time.period = timeStringPart.toUpperCase() === 'PM' ? 'PM' : 'AM';\n }\n });\n return time;\n};\n\nexport const createTimeString = (time: Time | undefined, format: TimeFormat): string => {\n if (time == null) {\n return '';\n }\n\n const formatParts = format.split(':') as TimeFormatChar[];\n\n return formatParts\n .map((timeFormatPart) => {\n switch (timeFormatPart) {\n case 'HH':\n case 'hh':\n return String(time.hours).padStart(2, '0');\n case 'mm':\n return String(time.minutes).padStart(2, '0');\n case 'ss':\n return String(time.seconds).padStart(2, '0');\n case 'ms':\n return String(time.milliseconds).padStart(3, '0');\n case 'aa':\n return String(time.period);\n }\n })\n .join(':');\n};\n"]}
@@ -17,12 +17,16 @@ import { SixFileUpload } from './six-file-upload.js';
17
17
  import { SixFooter } from './six-footer.js';
18
18
  import { SixGroupLabel } from './six-group-label.js';
19
19
  import { SixHeader } from './six-header.js';
20
+ import { SixHeaderDropdownItem } from './six-header-dropdown-item.js';
21
+ import { SixHeaderItem } from './six-header-item.js';
22
+ import { SixHeaderMenuButton } from './six-header-menu-button.js';
20
23
  import { SixIcon } from './six-icon.js';
21
24
  import { SixIconButton } from './six-icon-button.js';
22
25
  import { SixInput } from './six-input.js';
23
26
  import { SixItemPicker } from './six-item-picker.js';
24
27
  import { SixLanguageSwitcher } from './six-language-switcher.js';
25
28
  import { SixLayoutGrid } from './six-layout-grid.js';
29
+ import { SixLogo } from './six-logo.js';
26
30
  import { SixMainContainer } from './six-main-container.js';
27
31
  import { SixMenu } from './six-menu.js';
28
32
  import { SixMenuDivider } from './six-menu-divider.js';
@@ -129,12 +133,16 @@ const defineCustomElements = (opts) => {
129
133
  SixFooter,
130
134
  SixGroupLabel,
131
135
  SixHeader,
136
+ SixHeaderDropdownItem,
137
+ SixHeaderItem,
138
+ SixHeaderMenuButton,
132
139
  SixIcon,
133
140
  SixIconButton,
134
141
  SixInput,
135
142
  SixItemPicker,
136
143
  SixLanguageSwitcher,
137
144
  SixLayoutGrid,
145
+ SixLogo,
138
146
  SixMainContainer,
139
147
  SixMenu,
140
148
  SixMenuDivider,
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;SAQgB,SAAS,CAAC,OAAe,EAAE,SAAqB,EAAE,QAAiB,EAAE,QAAiB;IACpG,MAAM,IAAI,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,MAAM,CAAC;IACjC,MAAM,IAAI,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE;QAC/D,IAAI;QACJ,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,WAAW,CAAC,IAAI,CAAC;QACvC,SAAS,EAAE,yBAAyB,IAAI,cAAc,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3E,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACH,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AAED,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;IACvB,OAAO,GAAG,CAAC,SAAS,CAAC;AACvB,CAAC;AAED,SAAS,OAAO,CAAC,WAAsB;IACrC,QAAQ,WAAW;QACjB,KAAK,SAAS;YACZ,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,SAAS;YACZ,OAAO,cAAc,CAAC;QACxB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC;AAED,SAAS,WAAW,CAAC,WAAsB;IACzC,QAAQ,WAAW;QACjB,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,KAAK,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC;KAChB;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/utils/alert.ts"],"sourcesContent":["import { AlertType } from '../components/six-alert/six-alert';\n\n/**\n * Displays an alert on the toast stack with a specified message and optional configuration.\n *\n * @param message - The message to be displayed in the alert.\n * @param alertType - The type of the alert. Valid values are 'primary', 'info', 'success', 'warning', 'danger'. Default is 'info'.\n * @param duration - The duration in milliseconds for which the alert is displayed. If not provided, a default duration is set based on the alert type.\n * @param iconName - The name of the icon to be displayed in the alert. If not provided, a default icon is set based on the alert type.\n */\nexport function showAlert(message: string, alertType?: AlertType, duration?: number, iconName?: string): void {\n const type = alertType ?? 'info';\n const icon = iconName ?? getIcon(type);\n const alert = Object.assign(document.createElement('six-alert'), {\n type,\n duration: duration ?? getDuration(type),\n innerHTML: `<six-icon slot=\"icon\">${icon}</six-icon>${escapeHtml(message)}`,\n closable: true,\n });\n document.body.append(alert);\n alert.toast();\n}\n\nfunction escapeHtml(html: string): string {\n const div = document.createElement('div');\n div.textContent = html;\n return div.innerHTML;\n}\n\nfunction getIcon(messageType: AlertType): string {\n switch (messageType) {\n case 'primary':\n return 'info';\n case 'info':\n return 'info';\n case 'success':\n return 'check_circle';\n case 'warning':\n return 'warning';\n case 'danger':\n return 'report';\n }\n}\n\nfunction getDuration(messageType: AlertType): number {\n switch (messageType) {\n case 'primary':\n return 10000;\n case 'info':\n return 10000;\n case 'success':\n return 10000;\n case 'warning':\n return 20000;\n case 'danger':\n return 20000;\n }\n}\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;SAQgB,SAAS,CAAC,OAAe,EAAE,SAAqB,EAAE,QAAiB,EAAE,QAAiB;IACpG,MAAM,IAAI,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,MAAM,CAAC;IACjC,MAAM,IAAI,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE;QAC/D,IAAI;QACJ,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,WAAW,CAAC,IAAI,CAAC;QACvC,SAAS,EAAE,yBAAyB,IAAI,cAAc,UAAU,CAAC,OAAO,CAAC,EAAE;QAC3E,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACH,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AAED,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;IACvB,OAAO,GAAG,CAAC,SAAS,CAAC;AACvB,CAAC;AAED,SAAS,OAAO,CAAC,WAAsB;IACrC,QAAQ,WAAW;QACjB,KAAK,SAAS;YACZ,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,SAAS;YACZ,OAAO,cAAc,CAAC;QACxB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC;AAED,SAAS,WAAW,CAAC,WAAsB;IACzC,QAAQ,WAAW;QACjB,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,KAAK,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC;KAChB;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/utils/alert.ts"],"sourcesContent":["import { AlertType } from '../components/six-alert/six-alert';\n\n/**\n * Displays an alert on the toast stack with a specified message and optional configuration.\n *\n * @param message - The message to be displayed in the alert.\n * @param alertType - The type of the alert. Valid values are 'primary', 'info', 'success', 'warning', 'danger'. Default is 'info'.\n * @param duration - The duration in milliseconds for which the alert is displayed. If not provided, a default duration is set based on the alert type.\n * @param iconName - The name of the icon to be displayed in the alert. If not provided, a default icon is set based on the alert type.\n */\nexport function showAlert(message: string, alertType?: AlertType, duration?: number, iconName?: string): void {\n const type = alertType ?? 'info';\n const icon = iconName ?? getIcon(type);\n const alert = Object.assign(document.createElement('six-alert'), {\n type,\n duration: duration ?? getDuration(type),\n innerHTML: `<six-icon slot=\"icon\">${icon}</six-icon>${escapeHtml(message)}`,\n closable: true,\n });\n document.body.append(alert);\n alert.toast();\n}\n\nfunction escapeHtml(html: string): string {\n const div = document.createElement('div');\n div.textContent = html;\n return div.innerHTML;\n}\n\nfunction getIcon(messageType: AlertType): string {\n switch (messageType) {\n case 'primary':\n return 'info';\n case 'info':\n return 'info';\n case 'success':\n return 'check_circle';\n case 'warning':\n return 'warning';\n case 'danger':\n return 'report';\n }\n}\n\nfunction getDuration(messageType: AlertType): number {\n switch (messageType) {\n case 'primary':\n return 10000;\n case 'info':\n return 10000;\n case 'success':\n return 10000;\n case 'warning':\n return 20000;\n case 'danger':\n return 20000;\n }\n}\n"],"version":3}
@@ -1,19 +1,3 @@
1
- //
2
- // Determines if the browser supports focus({ preventScroll })
3
- //
4
- const isPreventScrollSupported = () => {
5
- let supported = false;
6
- const element = document.createElement('div');
7
- element.focus &&
8
- element.focus({
9
- get preventScroll() {
10
- supported = true;
11
- return false;
12
- },
13
- });
14
- return supported;
15
- };
16
-
17
1
  let activeModals = [];
18
2
  class Modal {
19
3
  constructor(element, options) {
@@ -44,6 +28,6 @@ class Modal {
44
28
  }
45
29
  }
46
30
 
47
- export { Modal as M, isPreventScrollSupported as i };
31
+ export { Modal as M };
48
32
 
49
33
  //# sourceMappingURL=modal.js.map
@@ -1 +1 @@
1
- {"file":"modal.js","mappings":"AAAA;AACA;AACA;MACa,wBAAwB,GAAG;IACtC,IAAI,SAAS,GAAG,KAAK,CAAC;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QAAO,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAA,KAAK,UAAU,EAAE;YACjH,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC,KAAK,CAAC,CAAC;SACjC;KACF;;;;;","names":[],"sources":["src/utils/support.ts","src/utils/modal.ts"],"sourcesContent":["//\n// Determines if the browser supports focus({ preventScroll })\n//\nexport const isPreventScrollSupported = () => {\n let supported = false;\n\n const element = document.createElement('div');\n element.focus &&\n element.focus({\n get preventScroll() {\n supported = true;\n return false;\n },\n });\n\n return supported;\n};\n","interface ModalOptions {\n onFocusOut?: (event: Event) => void;\n}\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n options?: ModalOptions;\n\n constructor(element: HTMLElement, options?: ModalOptions) {\n this.element = element;\n this.options = options;\n this.handleFocusIn = this.handleFocusIn.bind(this);\n }\n\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n }\n\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n document.removeEventListener('focusin', this.handleFocusIn);\n }\n\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n handleFocusIn(event: Event) {\n const target = event.target as HTMLElement;\n const tagName = this.element.tagName.toLowerCase();\n\n // If focus is lost while the modal is active, run the onFocusOut callback\n if (this.isActive() && target.closest(tagName) !== this.element && typeof this.options?.onFocusOut === 'function') {\n this.options?.onFocusOut(event);\n }\n }\n}\n"],"version":3}
1
+ {"file":"modal.js","mappings":"AAIA,IAAI,YAAY,GAAkB,EAAE,CAAC;MAEhB,KAAK;IAIxB,YAAY,OAAoB,EAAE,OAAsB;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpD;IAED,QAAQ;QACN,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;KAC1D;IAED,UAAU;QACR,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC;QACtE,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;KAC7D;IAED,QAAQ;;QAEN,OAAO,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC;KAC/D;IAED,aAAa,CAAC,KAAY;;QACxB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;;QAGnD,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,IAAI,QAAO,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAA,KAAK,UAAU,EAAE;YACjH,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC,KAAK,CAAC,CAAC;SACjC;KACF;;;;;","names":[],"sources":["src/utils/modal.ts"],"sourcesContent":["interface ModalOptions {\n onFocusOut?: (event: Event) => void;\n}\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n options?: ModalOptions;\n\n constructor(element: HTMLElement, options?: ModalOptions) {\n this.element = element;\n this.options = options;\n this.handleFocusIn = this.handleFocusIn.bind(this);\n }\n\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n }\n\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n document.removeEventListener('focusin', this.handleFocusIn);\n }\n\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n handleFocusIn(event: Event) {\n const target = event.target as HTMLElement;\n const tagName = this.element.tagName.toLowerCase();\n\n // If focus is lost while the modal is active, run the onFocusOut callback\n if (this.isActive() && target.closest(tagName) !== this.element && typeof this.options?.onFocusOut === 'function') {\n this.options?.onFocusOut(event);\n }\n }\n}\n"],"version":3}
@@ -4,6 +4,7 @@ import { d as defineCustomElement$3 } from './six-icon2.js';
4
4
  import { d as defineCustomElement$2 } from './six-icon-button2.js';
5
5
 
6
6
  const sixAlertCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:contents;margin:0}.alert{position:relative;display:flex;align-items:stretch;background-color:var(--six-color-white);border:solid 1px var(--six-color-web-rock-200);border-top-width:3px;border-radius:var(--six-border-radius-medium);box-shadow:var(--box-shadow);font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);line-height:1.6;color:var(--six-color-web-rock-700);opacity:0;transform:scale(0.9);transition:var(--six-transition-medium) opacity ease, var(--six-transition-medium) transform ease;margin:inherit}.alert:not(.alert--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.alert--shadow{box-shadow:var(--six-shadow-medium)}.alert--open{opacity:1;transform:none}.alert__icon{flex:0 0 auto;display:flex;align-items:center;font-size:var(--six-font-size-large)}.alert__icon ::slotted(*){margin-left:var(--six-spacing-large)}.alert--primary{border-top-color:var(--six-color-web-rock-900)}.alert--primary .alert__icon{color:var(--six-color-web-rock-900)}.alert--success{border-top-color:var(--six-color-success-600)}.alert--success .alert__icon{color:var(--six-color-success-600)}.alert--info{border-top-color:var(--six-color-action-500)}.alert--info .alert__icon{color:var(--six-color-action-500)}.alert--warning{border-top-color:var(--six-color-warning-800)}.alert--warning .alert__icon{color:var(--six-color-warning-800)}.alert--danger{border-top-color:var(--six-color-danger-900)}.alert--danger .alert__icon{color:var(--six-color-danger-900)}.alert__message{flex:1 1 auto;padding:var(--six-spacing-large);overflow:hidden}.alert__close{flex:0 0 auto;display:flex;align-items:center;font-size:var(--six-font-size-large);padding-right:var(--six-spacing-medium)}";
7
+ const SixAlertStyle0 = sixAlertCss;
7
8
 
8
9
  const toastStack = Object.assign(document.createElement('div'), { className: 'six-toast-stack' });
9
10
  const SixAlert$1 = /*@__PURE__*/ proxyCustomElement(class SixAlert extends HTMLElement {
@@ -18,8 +19,11 @@ const SixAlert$1 = /*@__PURE__*/ proxyCustomElement(class SixAlert extends HTMLE
18
19
  this.handleCloseClick = () => {
19
20
  this.hide();
20
21
  };
21
- this.handleMouseMove = () => {
22
- this.restartAutoHide();
22
+ this.handleMouseEnter = () => {
23
+ this.pauseAutoHide();
24
+ };
25
+ this.handleMouseLeave = () => {
26
+ this.resetAutoHide();
23
27
  };
24
28
  this.handleTransitionEnd = (event) => {
25
29
  const target = event.target;
@@ -121,15 +125,21 @@ const SixAlert$1 = /*@__PURE__*/ proxyCustomElement(class SixAlert extends HTMLE
121
125
  }, { once: true });
122
126
  });
123
127
  }
124
- restartAutoHide() {
128
+ pauseAutoHide() {
125
129
  clearTimeout(this.autoHideTimeout);
130
+ }
131
+ resetAutoHide() {
126
132
  if (this.open && this.duration < Infinity) {
127
133
  this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);
128
134
  }
129
135
  }
136
+ restartAutoHide() {
137
+ this.pauseAutoHide();
138
+ this.resetAutoHide();
139
+ }
130
140
  render() {
131
141
  const asToast = this.host.closest('.six-toast-stack') != null;
132
- return (h("div", { part: "base", class: {
142
+ return (h("div", { key: 'cd9d14bef5923cf2ec8add1f61e92733aa9dd59f', part: "base", class: {
133
143
  alert: true,
134
144
  'alert--open': this.open,
135
145
  'alert--visible': this.isVisible,
@@ -140,14 +150,14 @@ const SixAlert$1 = /*@__PURE__*/ proxyCustomElement(class SixAlert extends HTMLE
140
150
  'alert--warning': this.type === 'warning',
141
151
  'alert--danger': this.type === 'danger',
142
152
  'alert--shadow': asToast,
143
- }, role: "alert", "aria-live": "assertive", "aria-atomic": "true", "aria-hidden": this.open ? 'false' : 'true', onMouseMove: this.handleMouseMove, onTransitionEnd: this.handleTransitionEnd }, h("span", { part: "icon", class: "alert__icon" }, h("slot", { name: "icon" })), h("span", { part: "message", class: "alert__message" }, h("slot", null)), this.closable && (h("span", { class: "alert__close" }, h("six-icon-button", { name: "clear", exportparts: "base:close-button", onClick: this.handleCloseClick })))));
153
+ }, role: "alert", "aria-live": "assertive", "aria-atomic": "true", "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("span", { key: 'fb6e8cf52eb87ddb1a81a797482457b3afccaa98', part: "icon", class: "alert__icon" }, h("slot", { key: '3d97a399ac05620214ef8a4d6a19c37a103f76a2', name: "icon" })), h("span", { key: '3984ce04838d33a688b6cfafb7827646e0e9d582', part: "message", class: "alert__message" }, h("slot", { key: 'f84ff31b7b74571b2ff9f074b617cb344313939e' })), this.closable && (h("span", { key: '5291d4a747001042ad9882c32427094019e16dbb', class: "alert__close" }, h("six-icon-button", { key: '48a38b0a283400ae84ed95df38a43ee6a41e1fb0', name: "clear", exportparts: "base:close-button", onClick: this.handleCloseClick })))));
144
154
  }
145
155
  get host() { return this; }
146
156
  static get watchers() { return {
147
157
  "open": ["handleOpenChange"],
148
158
  "duration": ["handleDurationChange"]
149
159
  }; }
150
- static get style() { return sixAlertCss; }
160
+ static get style() { return SixAlertStyle0; }
151
161
  }, [1, "six-alert", {
152
162
  "open": [1540],
153
163
  "closable": [516],
@@ -1 +1 @@
1
- {"file":"six-alert.js","mappings":";;;;;AAAA,MAAM,WAAW,GAAG,64DAA64D;;ACIj6D,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE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EAAC,MAAM,EACX,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI;gBACX,aAAa,EAAE,IAAI,CAAC,IAAI;gBACxB,gBAAgB,EAAE,IAAI,CAAC,SAAS;gBAChC,iBAAiB,EAAE,IAAI,CAAC,QAAQ;gBAChC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM;gBACnC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,eAAe,EAAE,OAAO;aACzB,EACD,IAAI,EAAC,OAAO,eACF,WAAW,iBACT,MAAM,iBACL,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM,EACzC,WAAW,EAAE,IAAI,CAAC,eAAe,EACjC,eAAe,EAAE,IAAI,CAAC,mBAAmB,IAEzC,YAAM,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa,IACnC,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,EAEP,YAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,gBAAgB,IACzC,eAAQ,CACH,EAEN,IAAI,CAAC,QAAQ,KACZ,YAAM,KAAK,EAAC,cAAc,IACxB,uBACE,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,mBAAmB,EAC/B,OAAO,EAAE,IAAI,CAAC,gBAAgB,GACb,CACd,CACR,CACG,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SixAlert"],"sources":["src/components/six-alert/six-alert.scss?tag=six-alert&encapsulation=shadow","src/components/six-alert/six-alert.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --box-shadow: The alert's box shadow.\n */\n:host {\n display: contents;\n\n // For better DX, we'll reset the margin here so the base part can inherit it\n margin: 0;\n}\n\n.alert {\n position: relative;\n display: flex;\n align-items: stretch;\n background-color: var(--six-color-white);\n border: solid 1px var(--six-color-web-rock-200);\n border-top-width: 3px;\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--box-shadow);\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: 1.6;\n color: var(--six-color-web-rock-700);\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-medium) opacity ease, var(--six-transition-medium) transform ease;\n margin: inherit;\n\n &:not(.alert--visible) {\n @include hidden;\n }\n}\n\n.alert--shadow {\n box-shadow: var(--six-shadow-medium);\n}\n\n.alert--open {\n opacity: 1;\n transform: none;\n}\n\n.alert__icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-large);\n\n ::slotted(*) {\n margin-left: var(--six-spacing-large);\n }\n}\n\n.alert--primary {\n border-top-color: var(--six-color-web-rock-900);\n\n .alert__icon {\n color: var(--six-color-web-rock-900);\n }\n}\n\n.alert--success {\n border-top-color: var(--six-color-success-600);\n\n .alert__icon {\n color: var(--six-color-success-600);\n }\n}\n\n.alert--info {\n border-top-color: var(--six-color-action-500);\n\n .alert__icon {\n color: var(--six-color-action-500);\n }\n}\n\n.alert--warning {\n border-top-color: var(--six-color-warning-800);\n\n .alert__icon {\n color: var(--six-color-warning-800);\n }\n}\n\n.alert--danger {\n border-top-color: var(--six-color-danger-900);\n\n .alert__icon {\n color: var(--six-color-danger-900);\n }\n}\n\n.alert__message {\n flex: 1 1 auto;\n padding: var(--six-spacing-large);\n overflow: hidden;\n}\n\n.alert__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-large);\n padding-right: var(--six-spacing-medium);\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot } from '../../utils/slot';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'six-toast-stack' });\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 alert's content.\n * @slot icon - An icon to show in the alert.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the alert icon.\n * @part message - The alert message.\n * @part close-button - The close button.\n */\n\n@Component({\n tag: 'six-alert',\n styleUrl: 'six-alert.scss',\n shadow: true,\n})\nexport class SixAlert {\n private autoHideTimeout?: number;\n\n @Element() host!: HTMLSixAlertElement;\n\n @State() isVisible = false;\n\n /** Indicates whether or not the alert is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Set to true to make the alert closable. */\n @Prop({ reflect: true }) closable = false;\n\n /** The type of alert. */\n @Prop({ reflect: true }) type: AlertType = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with the\n * alert before it closes (e.g. moves the mouse over it), the timer will restart.\n */\n @Prop() duration = Infinity;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n @Watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Emitted when the alert opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-alert-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert opens and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the alert closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-alert-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert closes and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n /** Shows the alert. */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.isVisible = true;\n this.open = true;\n\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n /** Hides the alert */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n clearTimeout(this.autoHideTimeout);\n this.isVisible = false;\n this.open = false;\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n * @param adjustPosition If true, the top and right position of the toast stack is shifted according to the\n * six-root header's height and the presence of a vertical scrollbar.\n */\n @Method()\n async toast(adjustPosition = true) {\n return new Promise<void>((resolve) => {\n if (!toastStack.parentElement) {\n document.body.append(toastStack);\n }\n toastStack.append(this.host);\n\n if (adjustPosition) {\n const sixRoot = document.querySelector('six-root');\n const headerSlot = getSlot(sixRoot, 'header');\n const mainSlot = sixRoot?.shadowRoot?.querySelector('host main');\n if (mainSlot != null && mainSlot instanceof HTMLElement) {\n const scrollbarWidth = mainSlot.offsetWidth - mainSlot.clientWidth;\n toastStack.style.right = `${scrollbarWidth}px`;\n }\n if (headerSlot != null) {\n const rect = headerSlot?.getBoundingClientRect();\n toastStack.style.top = `${rect.top + rect.height}px`;\n }\n } else {\n toastStack.style.top = '0';\n toastStack.style.right = '0';\n }\n\n requestAnimationFrame(() => this.show());\n\n this.host.addEventListener(\n 'six-alert-after-hide',\n () => {\n this.host.remove();\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('six-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleMouseMove = () => {\n this.restartAutoHide();\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.propertyName === 'opacity' && target.classList.contains('alert')) {\n this.isVisible = this.open;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n private restartAutoHide() {\n clearTimeout(this.autoHideTimeout);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n render() {\n const asToast = this.host.closest('.six-toast-stack') != null;\n\n return (\n <div\n part=\"base\"\n class={{\n alert: true,\n 'alert--open': this.open,\n 'alert--visible': this.isVisible,\n 'alert--closable': this.closable,\n 'alert--primary': this.type === 'primary',\n 'alert--success': this.type === 'success',\n 'alert--info': this.type === 'info',\n 'alert--warning': this.type === 'warning',\n 'alert--danger': this.type === 'danger',\n 'alert--shadow': asToast,\n }}\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n onMouseMove={this.handleMouseMove}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <span part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\" />\n </span>\n\n <span part=\"message\" class=\"alert__message\">\n <slot />\n </span>\n\n {this.closable && (\n <span class=\"alert__close\">\n <six-icon-button\n name=\"clear\"\n exportparts=\"base:close-button\"\n onClick={this.handleCloseClick}\n ></six-icon-button>\n </span>\n )}\n </div>\n );\n }\n}\n\nexport type AlertType = 'primary' | 'success' | 'info' | 'warning' | 'danger';\n"],"version":3}
1
+ {"file":"six-alert.js","mappings":";;;;;AAAA,MAAM,WAAW,GAAG,64DAA64D,CAAC;AACl6D,uBAAe,WAAW;;ACG1B,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,SAA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;;;;;;;;;;;;;;;;;;;;","names":["SixAlert"],"sources":["src/components/six-alert/six-alert.scss?tag=six-alert&encapsulation=shadow","src/components/six-alert/six-alert.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --box-shadow: The alert's box shadow.\n */\n:host {\n display: contents;\n\n // For better DX, we'll reset the margin here so the base part can inherit it\n margin: 0;\n}\n\n.alert {\n position: relative;\n display: flex;\n align-items: stretch;\n background-color: var(--six-color-white);\n border: solid 1px var(--six-color-web-rock-200);\n border-top-width: 3px;\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--box-shadow);\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: 1.6;\n color: var(--six-color-web-rock-700);\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-medium) opacity ease, var(--six-transition-medium) transform ease;\n margin: inherit;\n\n &:not(.alert--visible) {\n @include hidden;\n }\n}\n\n.alert--shadow {\n box-shadow: var(--six-shadow-medium);\n}\n\n.alert--open {\n opacity: 1;\n transform: none;\n}\n\n.alert__icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-large);\n\n ::slotted(*) {\n margin-left: var(--six-spacing-large);\n }\n}\n\n.alert--primary {\n border-top-color: var(--six-color-web-rock-900);\n\n .alert__icon {\n color: var(--six-color-web-rock-900);\n }\n}\n\n.alert--success {\n border-top-color: var(--six-color-success-600);\n\n .alert__icon {\n color: var(--six-color-success-600);\n }\n}\n\n.alert--info {\n border-top-color: var(--six-color-action-500);\n\n .alert__icon {\n color: var(--six-color-action-500);\n }\n}\n\n.alert--warning {\n border-top-color: var(--six-color-warning-800);\n\n .alert__icon {\n color: var(--six-color-warning-800);\n }\n}\n\n.alert--danger {\n border-top-color: var(--six-color-danger-900);\n\n .alert__icon {\n color: var(--six-color-danger-900);\n }\n}\n\n.alert__message {\n flex: 1 1 auto;\n padding: var(--six-spacing-large);\n overflow: hidden;\n}\n\n.alert__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-large);\n padding-right: var(--six-spacing-medium);\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot } from '../../utils/slot';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'six-toast-stack' });\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 alert's content.\n * @slot icon - An icon to show in the alert.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the alert icon.\n * @part message - The alert message.\n * @part close-button - The close button.\n */\n\n@Component({\n tag: 'six-alert',\n styleUrl: 'six-alert.scss',\n shadow: true,\n})\nexport class SixAlert {\n private autoHideTimeout?: number;\n\n @Element() host!: HTMLSixAlertElement;\n\n @State() isVisible = false;\n\n /** Indicates whether or not the alert is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Set to true to make the alert closable. */\n @Prop({ reflect: true }) closable = false;\n\n /** The type of alert. */\n @Prop({ reflect: true }) type: AlertType = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself.\n * If the user hovers over the toast alert, the timer will pause.\n * On leaving the element with the mouse, the timer resets.\n */\n @Prop() duration = Infinity;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n @Watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Emitted when the alert opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-alert-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert opens and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the alert closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-alert-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert closes and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n /** Shows the alert. */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.isVisible = true;\n this.open = true;\n\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n /** Hides the alert */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n clearTimeout(this.autoHideTimeout);\n this.isVisible = false;\n this.open = false;\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n * @param adjustPosition If true, the top and right position of the toast stack is shifted according to the\n * six-root header's height and the presence of a vertical scrollbar.\n */\n @Method()\n async toast(adjustPosition = true) {\n return new Promise<void>((resolve) => {\n if (!toastStack.parentElement) {\n document.body.append(toastStack);\n }\n toastStack.append(this.host);\n\n if (adjustPosition) {\n const sixRoot = document.querySelector('six-root');\n const headerSlot = getSlot(sixRoot, 'header');\n const mainSlot = sixRoot?.shadowRoot?.querySelector('host main');\n if (mainSlot != null && mainSlot instanceof HTMLElement) {\n const scrollbarWidth = mainSlot.offsetWidth - mainSlot.clientWidth;\n toastStack.style.right = `${scrollbarWidth}px`;\n }\n if (headerSlot != null) {\n const rect = headerSlot?.getBoundingClientRect();\n toastStack.style.top = `${rect.top + rect.height}px`;\n }\n } else {\n toastStack.style.top = '0';\n toastStack.style.right = '0';\n }\n\n requestAnimationFrame(() => this.show());\n\n this.host.addEventListener(\n 'six-alert-after-hide',\n () => {\n this.host.remove();\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('six-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n private pauseAutoHide() {\n clearTimeout(this.autoHideTimeout);\n }\n\n private resetAutoHide() {\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n private restartAutoHide() {\n this.pauseAutoHide();\n this.resetAutoHide();\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleMouseEnter = () => {\n this.pauseAutoHide();\n };\n\n private handleMouseLeave = () => {\n this.resetAutoHide();\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.propertyName === 'opacity' && target.classList.contains('alert')) {\n this.isVisible = this.open;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n const asToast = this.host.closest('.six-toast-stack') != null;\n\n return (\n <div\n part=\"base\"\n class={{\n alert: true,\n 'alert--open': this.open,\n 'alert--visible': this.isVisible,\n 'alert--closable': this.closable,\n 'alert--primary': this.type === 'primary',\n 'alert--success': this.type === 'success',\n 'alert--info': this.type === 'info',\n 'alert--warning': this.type === 'warning',\n 'alert--danger': this.type === 'danger',\n 'alert--shadow': asToast,\n }}\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n onTransitionEnd={this.handleTransitionEnd}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <span part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\" />\n </span>\n\n <span part=\"message\" class=\"alert__message\">\n <slot />\n </span>\n\n {this.closable && (\n <span class=\"alert__close\">\n <six-icon-button\n name=\"clear\"\n exportparts=\"base:close-button\"\n onClick={this.handleCloseClick}\n ></six-icon-button>\n </span>\n )}\n </div>\n );\n }\n}\n\nexport type AlertType = 'primary' | 'success' | 'info' | 'warning' | 'danger';\n"],"version":3}
@@ -2,6 +2,7 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
2
2
  import { d as defineCustomElement$2 } from './six-icon2.js';
3
3
 
4
4
  const sixAvatarCss = ":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}";
5
+ const SixAvatarStyle0 = sixAvatarCss;
5
6
 
6
7
  const SixAvatar$1 = /*@__PURE__*/ proxyCustomElement(class SixAvatar extends HTMLElement {
7
8
  constructor() {
@@ -18,14 +19,14 @@ const SixAvatar$1 = /*@__PURE__*/ proxyCustomElement(class SixAvatar extends HTM
18
19
  this.shape = 'circle';
19
20
  }
20
21
  render() {
21
- return (h("div", { part: "base", class: {
22
+ return (h("div", { key: '0dbd57a48040d1a7c7c07fa838e8be3da457e2c1', part: "base", class: {
22
23
  avatar: true,
23
24
  'avatar--circle': this.shape === 'circle',
24
25
  'avatar--rounded': this.shape === 'rounded',
25
26
  'avatar--square': this.shape === 'square',
26
- }, role: "image", "aria-label": this.alt, tabIndex: 0 }, this.initials === '' && (h("div", { part: "icon", class: "avatar__icon" }, h("slot", { name: "icon" }, h("six-icon", null, "person")))), this.initials && (h("div", { part: "initials", class: "avatar__initials" }, this.initials)), this.image && !this.hasError && (h("img", { part: "image", class: "avatar__image", src: this.image, onError: this.handleImageError }))));
27
+ }, role: "image", "aria-label": this.alt, tabIndex: 0 }, this.initials === '' && (h("div", { key: '86e4e434e5da9fe126c6950b3716aa69e0738278', part: "icon", class: "avatar__icon" }, h("slot", { key: '376b3afc1ded98932f9f80c440f0f142e5bce33f', name: "icon" }, h("six-icon", { key: '0371ad768fc7440b24528bf2b1b331f466ab5574' }, "person")))), this.initials && (h("div", { key: 'd1a3412dc155ff96e7d3fddfac1d483561537e98', part: "initials", class: "avatar__initials" }, this.initials)), this.image && !this.hasError && (h("img", { key: 'e8a7e31f01329601ae9181c89b702f9469accc35', part: "image", class: "avatar__image", src: this.image, onError: this.handleImageError }))));
27
28
  }
28
- static get style() { return sixAvatarCss; }
29
+ static get style() { return SixAvatarStyle0; }
29
30
  }, [1, "six-avatar", {
30
31
  "image": [1],
31
32
  "alt": [1],