@six-group/ui-library 0.0.0-insider.7c990f3 → 0.0.0-insider.7dadbda

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 (841) 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/error-messages-6e8049a4.js +119 -0
  4. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  5. package/dist/cjs/{form-control-f9bc25dd.js → form-control-73ff961d.js} +2 -2
  6. package/dist/cjs/{form-control-f9bc25dd.js.map → form-control-73ff961d.js.map} +1 -1
  7. package/dist/cjs/{index-3baddcdc.js → index-b288f7d9.js} +114 -509
  8. package/dist/cjs/index-b288f7d9.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +54 -101
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +5 -3
  12. package/dist/cjs/loader.cjs.js.map +1 -1
  13. package/dist/cjs/{modal-3ce015be.js → modal-bd7fc5bc.js} +1 -18
  14. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  15. package/dist/cjs/{popup-40a9adbb.js → popup-e854acda.js} +2 -2
  16. package/dist/cjs/popup-e854acda.js.map +1 -0
  17. package/dist/cjs/six-alert.cjs.entry.js +42 -9
  18. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  19. package/dist/cjs/six-avatar.cjs.entry.js +5 -4
  20. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  21. package/dist/cjs/six-badge.cjs.entry.js +6 -5
  22. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  23. package/dist/cjs/six-button.cjs.entry.js +7 -6
  24. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-card.cjs.entry.js +5 -4
  26. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-checkbox_2.cjs.entry.js +192 -0
  28. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
  29. package/dist/cjs/six-datepicker.cjs.entry.js +33 -6
  30. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-details.cjs.entry.js +7 -6
  32. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-dialog.cjs.entry.js +16 -32
  34. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-drawer.cjs.entry.js +15 -32
  36. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-dropdown_2.cjs.entry.js +204 -130
  38. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-error-page.cjs.entry.js +4 -3
  40. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-error.cjs.entry.js +4 -3
  42. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-file-list-item.cjs.entry.js +6 -5
  44. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-file-list.cjs.entry.js +4 -3
  46. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-file-upload.cjs.entry.js +11 -9
  48. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-footer.cjs.entry.js +5 -4
  50. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-group-label.cjs.entry.js +7 -6
  52. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  53. package/dist/cjs/six-header.cjs.entry.js +16 -13
  54. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-icon-button.cjs.entry.js +7 -6
  56. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-icon.cjs.entry.js +6 -5
  58. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-input.cjs.entry.js +11 -8
  60. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-item-picker.cjs.entry.js +7 -6
  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 +5 -4
  70. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-menu-label.cjs.entry.js +5 -4
  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 +5 -4
  78. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-radio.cjs.entry.js +6 -5
  80. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-range.cjs.entry.js +18 -7
  82. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-root.cjs.entry.js +4 -22
  84. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-search-field.cjs.entry.js +5 -4
  86. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-select.cjs.entry.js +302 -170
  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 +5 -4
  92. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-sidebar.cjs.entry.js +6 -5
  94. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-spinner.cjs.entry.js +5 -4
  96. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-stage-indicator.cjs.entry.js +23 -0
  98. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  99. package/dist/cjs/six-switch.cjs.entry.js +8 -7
  100. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-tab-group.cjs.entry.js +35 -9
  102. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-tab-panel.cjs.entry.js +5 -4
  104. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-tab.cjs.entry.js +6 -5
  106. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-tag.cjs.entry.js +7 -6
  108. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-textarea.cjs.entry.js +8 -7
  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 +8 -7
  114. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  115. package/dist/cjs/six-tooltip.cjs.entry.js +6 -5
  116. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  117. package/dist/cjs/{slot-9821749e.js → slot-1b1232a1.js} +1 -3
  118. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  119. package/dist/cjs/{types-0a6d66f6.js → types-d3da200b.js} +3 -1
  120. package/dist/cjs/types-d3da200b.js.map +1 -0
  121. package/dist/cjs/ui-library.cjs.js +6 -4
  122. package/dist/cjs/ui-library.cjs.js.map +1 -1
  123. package/dist/collection/collection-manifest.json +5 -6
  124. package/dist/collection/components/six-alert/six-alert.css +5 -1
  125. package/dist/collection/components/six-alert/six-alert.js +57 -12
  126. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  127. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  128. package/dist/collection/components/six-avatar/six-avatar.js +1 -1
  129. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  130. package/dist/collection/components/six-badge/six-badge.css +1 -1
  131. package/dist/collection/components/six-badge/six-badge.js +2 -2
  132. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  133. package/dist/collection/components/six-button/six-button.css +2 -1
  134. package/dist/collection/components/six-button/six-button.js +5 -4
  135. package/dist/collection/components/six-button/six-button.js.map +1 -1
  136. package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -1
  137. package/dist/collection/components/six-card/six-card.css +4 -5
  138. package/dist/collection/components/six-card/six-card.js +1 -1
  139. package/dist/collection/components/six-card/six-card.js.map +1 -1
  140. package/dist/collection/components/six-checkbox/six-checkbox.css +3 -1
  141. package/dist/collection/components/six-checkbox/six-checkbox.js +5 -4
  142. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  143. package/dist/collection/components/six-datepicker/six-date-formats.js +1 -0
  144. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  145. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  146. package/dist/collection/components/six-datepicker/six-datepicker.js +9 -7
  147. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  148. package/dist/collection/components/six-details/six-details.css +1 -5
  149. package/dist/collection/components/six-details/six-details.js +3 -3
  150. package/dist/collection/components/six-details/six-details.js.map +1 -1
  151. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  152. package/dist/collection/components/six-dialog/six-dialog.js +10 -28
  153. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  154. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  155. package/dist/collection/components/six-drawer/six-drawer.js +9 -28
  156. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  157. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -7
  158. package/dist/collection/components/six-dropdown/six-dropdown.js +216 -124
  159. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  160. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +54 -29
  161. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -1
  162. package/dist/collection/components/six-error/six-error.js +1 -1
  163. package/dist/collection/components/six-error/six-error.js.map +1 -1
  164. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  165. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  166. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  167. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  168. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  169. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  170. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  171. package/dist/collection/components/six-file-upload/six-file-upload.css +9 -4
  172. package/dist/collection/components/six-file-upload/six-file-upload.js +25 -6
  173. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  174. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +76 -21
  175. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -1
  176. package/dist/collection/components/six-footer/six-footer.css +2 -2
  177. package/dist/collection/components/six-footer/six-footer.js +1 -1
  178. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  179. package/dist/collection/components/six-group-label/six-group-label.css +1 -1
  180. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  181. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  182. package/dist/collection/components/six-header/six-header.css +6 -2
  183. package/dist/collection/components/six-header/six-header.js +32 -11
  184. package/dist/collection/components/six-header/six-header.js.map +1 -1
  185. package/dist/collection/components/six-header/test/six-header.spec.js +38 -2
  186. package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -1
  187. package/dist/collection/components/six-icon/six-icon.css +3 -7
  188. package/dist/collection/components/six-icon/six-icon.js +2 -2
  189. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  190. package/dist/collection/components/six-icon-button/six-icon-button.css +1 -1
  191. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  192. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  193. package/dist/collection/components/six-input/six-input.css +10 -1
  194. package/dist/collection/components/six-input/six-input.js +47 -19
  195. package/dist/collection/components/six-input/six-input.js.map +1 -1
  196. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  197. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  198. package/dist/collection/components/six-item-picker/types.js +2 -0
  199. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  200. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  201. package/dist/collection/components/six-language-switcher/six-language-switcher.js +7 -3
  202. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  203. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +20 -20
  204. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -1
  205. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  206. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  207. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  208. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  209. package/dist/collection/components/six-menu/six-menu.css +8 -7
  210. package/dist/collection/components/six-menu/six-menu.js +30 -8
  211. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  212. package/dist/collection/components/six-menu/test/six-menu.spec.js +6 -6
  213. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
  214. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  215. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  216. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  217. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  218. package/dist/collection/components/six-menu-item/six-menu-item.js +37 -8
  219. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  220. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  221. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  222. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  223. package/dist/collection/components/six-picto/six-picto.js +1 -1
  224. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  225. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  226. package/dist/collection/components/six-progress-bar/six-progress-bar.js +2 -2
  227. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  228. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  229. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  230. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  231. package/dist/collection/components/six-radio/six-radio.css +1 -1
  232. package/dist/collection/components/six-radio/six-radio.js +5 -4
  233. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  234. package/dist/collection/components/six-range/six-range.css +2 -2
  235. package/dist/collection/components/six-range/six-range.js +15 -4
  236. package/dist/collection/components/six-range/six-range.js.map +1 -1
  237. package/dist/collection/components/six-root/six-root.js +1 -69
  238. package/dist/collection/components/six-root/six-root.js.map +1 -1
  239. package/dist/collection/components/six-root/test/six-root.spec.js +0 -7
  240. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
  241. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  242. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  243. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  244. package/dist/collection/components/six-select/six-select.css +54 -66
  245. package/dist/collection/components/six-select/six-select.js +343 -168
  246. package/dist/collection/components/six-select/six-select.js.map +1 -1
  247. package/dist/collection/components/six-select/test/six-select.spec.js +31 -15
  248. package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -1
  249. package/dist/collection/components/six-select/util.js.map +1 -1
  250. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  251. package/dist/collection/components/six-sidebar/six-sidebar.js +8 -6
  252. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  253. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  254. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  255. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +2 -1
  256. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  257. package/dist/collection/components/six-spinner/six-spinner.css +1 -1
  258. package/dist/collection/components/six-spinner/six-spinner.js +2 -1
  259. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  260. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +1 -1
  261. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -1
  262. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  263. package/dist/collection/components/six-switch/six-switch.css +1 -1
  264. package/dist/collection/components/six-switch/six-switch.js +5 -4
  265. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  266. package/dist/collection/components/six-tab/six-tab.css +1 -1
  267. package/dist/collection/components/six-tab/six-tab.js +5 -4
  268. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  269. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -1
  270. package/dist/collection/components/six-tab-group/six-tab-group.js +36 -9
  271. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  272. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  273. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  274. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  275. package/dist/collection/components/six-tag/six-tag.css +1 -1
  276. package/dist/collection/components/six-tag/six-tag.js +2 -2
  277. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  278. package/dist/collection/components/six-textarea/six-textarea.css +1 -1
  279. package/dist/collection/components/six-textarea/six-textarea.js +26 -18
  280. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  281. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -1
  282. package/dist/collection/components/six-tile/six-tile.css +2 -2
  283. package/dist/collection/components/six-tile/six-tile.js +3 -3
  284. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  285. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  286. package/dist/collection/components/six-timepicker/six-timepicker.js +4 -3
  287. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  288. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -1
  289. package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
  290. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  291. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  292. package/dist/collection/index.js +1 -0
  293. package/dist/collection/index.js.map +1 -1
  294. package/dist/collection/utils/alert.js +54 -0
  295. package/dist/collection/utils/alert.js.map +1 -0
  296. package/dist/collection/utils/date-util.js +25 -0
  297. package/dist/collection/utils/date-util.js.map +1 -1
  298. package/dist/collection/utils/date-util.spec.js.map +1 -1
  299. package/dist/collection/utils/error-messages.js +7 -0
  300. package/dist/collection/utils/error-messages.js.map +1 -1
  301. package/dist/collection/utils/event-listeners.js.map +1 -1
  302. package/dist/collection/utils/focus-visible.js.map +1 -1
  303. package/dist/collection/utils/form.js.map +1 -1
  304. package/dist/collection/utils/modal.js.map +1 -1
  305. package/dist/collection/utils/popover.js.map +1 -1
  306. package/dist/collection/utils/popup.js +1 -1
  307. package/dist/collection/utils/popup.js.map +1 -1
  308. package/dist/collection/utils/scroll.js.map +1 -1
  309. package/dist/collection/utils/slot.js +0 -1
  310. package/dist/collection/utils/slot.js.map +1 -1
  311. package/dist/collection/utils/tabbable.js.map +1 -1
  312. package/dist/collection/utils/time.util.js.map +1 -1
  313. package/dist/collection/utils/time.util.spec.js.map +1 -1
  314. package/dist/components/index.js +50 -102
  315. package/dist/components/index.js.map +1 -1
  316. package/dist/components/modal.js +1 -17
  317. package/dist/components/modal.js.map +1 -1
  318. package/dist/components/six-alert.js +41 -8
  319. package/dist/components/six-alert.js.map +1 -1
  320. package/dist/components/six-avatar.js +4 -3
  321. package/dist/components/six-avatar.js.map +1 -1
  322. package/dist/components/six-badge.js +5 -4
  323. package/dist/components/six-badge.js.map +1 -1
  324. package/dist/components/six-button.js +1 -142
  325. package/dist/components/six-button.js.map +1 -1
  326. package/dist/components/six-button2.js +147 -0
  327. package/dist/components/six-button2.js.map +1 -0
  328. package/dist/components/six-card.js +4 -3
  329. package/dist/components/six-card.js.map +1 -1
  330. package/dist/components/six-checkbox.js +1 -161
  331. package/dist/components/six-checkbox.js.map +1 -1
  332. package/dist/components/six-checkbox2.js +166 -0
  333. package/dist/components/six-checkbox2.js.map +1 -0
  334. package/dist/components/six-datepicker.js +30 -3
  335. package/dist/components/six-datepicker.js.map +1 -1
  336. package/dist/components/six-details2.js +6 -5
  337. package/dist/components/six-details2.js.map +1 -1
  338. package/dist/components/six-dialog.js +14 -30
  339. package/dist/components/six-dialog.js.map +1 -1
  340. package/dist/components/six-drawer.js +13 -30
  341. package/dist/components/six-drawer.js.map +1 -1
  342. package/dist/components/six-dropdown2.js +204 -127
  343. package/dist/components/six-dropdown2.js.map +1 -1
  344. package/dist/components/six-error-page.js +3 -2
  345. package/dist/components/six-error-page.js.map +1 -1
  346. package/dist/components/six-error2.js +3 -2
  347. package/dist/components/six-error2.js.map +1 -1
  348. package/dist/components/six-file-list-item.js +5 -4
  349. package/dist/components/six-file-list-item.js.map +1 -1
  350. package/dist/components/six-file-list.js +3 -2
  351. package/dist/components/six-file-list.js.map +1 -1
  352. package/dist/components/six-file-upload.js +19 -10
  353. package/dist/components/six-file-upload.js.map +1 -1
  354. package/dist/components/six-footer.js +4 -3
  355. package/dist/components/six-footer.js.map +1 -1
  356. package/dist/components/six-group-label.js +4 -3
  357. package/dist/components/six-group-label.js.map +1 -1
  358. package/dist/components/six-header.js +22 -12
  359. package/dist/components/six-header.js.map +1 -1
  360. package/dist/components/six-icon-button2.js +6 -5
  361. package/dist/components/six-icon-button2.js.map +1 -1
  362. package/dist/components/six-icon2.js +5 -4
  363. package/dist/components/six-icon2.js.map +1 -1
  364. package/dist/components/six-input2.js +9 -5
  365. package/dist/components/six-input2.js.map +1 -1
  366. package/dist/components/six-item-picker2.js +7 -4
  367. package/dist/components/six-item-picker2.js.map +1 -1
  368. package/dist/components/six-language-switcher.js +10 -5
  369. package/dist/components/six-language-switcher.js.map +1 -1
  370. package/dist/components/six-layout-grid.js +3 -2
  371. package/dist/components/six-layout-grid.js.map +1 -1
  372. package/dist/components/six-main-container.js +3 -2
  373. package/dist/components/six-main-container.js.map +1 -1
  374. package/dist/components/six-menu-divider.js +4 -3
  375. package/dist/components/six-menu-divider.js.map +1 -1
  376. package/dist/components/six-menu-item2.js +31 -7
  377. package/dist/components/six-menu-item2.js.map +1 -1
  378. package/dist/components/six-menu-label.js +4 -3
  379. package/dist/components/six-menu-label.js.map +1 -1
  380. package/dist/components/six-menu2.js +26 -9
  381. package/dist/components/six-menu2.js.map +1 -1
  382. package/dist/components/six-picto2.js +3 -2
  383. package/dist/components/six-picto2.js.map +1 -1
  384. package/dist/components/six-progress-bar.js +5 -4
  385. package/dist/components/six-progress-bar.js.map +1 -1
  386. package/dist/components/six-progress-ring.js +4 -3
  387. package/dist/components/six-progress-ring.js.map +1 -1
  388. package/dist/components/six-radio.js +5 -4
  389. package/dist/components/six-radio.js.map +1 -1
  390. package/dist/components/six-range.js +15 -4
  391. package/dist/components/six-range.js.map +1 -1
  392. package/dist/components/six-root.js +6 -34
  393. package/dist/components/six-root.js.map +1 -1
  394. package/dist/components/six-search-field.js +4 -3
  395. package/dist/components/six-search-field.js.map +1 -1
  396. package/dist/components/six-select.js +437 -186
  397. package/dist/components/six-select.js.map +1 -1
  398. package/dist/components/six-sidebar-item-group.js +3 -2
  399. package/dist/components/six-sidebar-item-group.js.map +1 -1
  400. package/dist/components/six-sidebar-item.js +4 -3
  401. package/dist/components/six-sidebar-item.js.map +1 -1
  402. package/dist/components/six-sidebar.js +5 -4
  403. package/dist/components/six-sidebar.js.map +1 -1
  404. package/dist/components/six-spinner2.js +4 -3
  405. package/dist/components/six-spinner2.js.map +1 -1
  406. package/dist/components/six-stage-indicator2.js +3 -2
  407. package/dist/components/six-stage-indicator2.js.map +1 -1
  408. package/dist/components/six-switch.js +5 -4
  409. package/dist/components/six-switch.js.map +1 -1
  410. package/dist/components/six-tab-group.js +36 -9
  411. package/dist/components/six-tab-group.js.map +1 -1
  412. package/dist/components/six-tab-panel.js +4 -3
  413. package/dist/components/six-tab-panel.js.map +1 -1
  414. package/dist/components/six-tab.js +5 -4
  415. package/dist/components/six-tab.js.map +1 -1
  416. package/dist/components/six-tag.js +99 -1
  417. package/dist/components/six-tag.js.map +1 -1
  418. package/dist/components/six-textarea.js +5 -4
  419. package/dist/components/six-textarea.js.map +1 -1
  420. package/dist/components/six-tile.js +6 -5
  421. package/dist/components/six-tile.js.map +1 -1
  422. package/dist/components/six-timepicker2.js +5 -4
  423. package/dist/components/six-timepicker2.js.map +1 -1
  424. package/dist/components/six-tooltip2.js +5 -4
  425. package/dist/components/six-tooltip2.js.map +1 -1
  426. package/dist/components/slot.js +1 -2
  427. package/dist/components/slot.js.map +1 -1
  428. package/dist/components.d.ts +1 -21
  429. package/dist/components.json +636 -235
  430. package/dist/esm/app-globals-0f993ce5.js +5 -0
  431. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  432. package/dist/esm/error-messages-1eaaad23.js +115 -0
  433. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  434. package/dist/esm/{form-control-6b30894f.js → form-control-40c37714.js} +2 -2
  435. package/dist/esm/{form-control-6b30894f.js.map → form-control-40c37714.js.map} +1 -1
  436. package/dist/esm/{index-17d8173e.js → index-52a755dc.js} +114 -509
  437. package/dist/esm/index-52a755dc.js.map +1 -0
  438. package/dist/esm/index.js +51 -100
  439. package/dist/esm/index.js.map +1 -1
  440. package/dist/esm/loader.js +6 -4
  441. package/dist/esm/loader.js.map +1 -1
  442. package/dist/esm/{modal-96526245.js → modal-6c1288e3.js} +2 -18
  443. package/dist/esm/modal-6c1288e3.js.map +1 -0
  444. package/dist/esm/{popup-e8049817.js → popup-7209e9d5.js} +2 -2
  445. package/dist/esm/popup-7209e9d5.js.map +1 -0
  446. package/dist/esm/six-alert.entry.js +42 -9
  447. package/dist/esm/six-alert.entry.js.map +1 -1
  448. package/dist/esm/six-avatar.entry.js +5 -4
  449. package/dist/esm/six-avatar.entry.js.map +1 -1
  450. package/dist/esm/six-badge.entry.js +6 -5
  451. package/dist/esm/six-badge.entry.js.map +1 -1
  452. package/dist/esm/six-button.entry.js +7 -6
  453. package/dist/esm/six-button.entry.js.map +1 -1
  454. package/dist/esm/six-card.entry.js +5 -4
  455. package/dist/esm/six-card.entry.js.map +1 -1
  456. package/dist/esm/six-checkbox_2.entry.js +187 -0
  457. package/dist/esm/six-checkbox_2.entry.js.map +1 -0
  458. package/dist/esm/six-datepicker.entry.js +33 -6
  459. package/dist/esm/six-datepicker.entry.js.map +1 -1
  460. package/dist/esm/six-details.entry.js +7 -6
  461. package/dist/esm/six-details.entry.js.map +1 -1
  462. package/dist/esm/six-dialog.entry.js +16 -32
  463. package/dist/esm/six-dialog.entry.js.map +1 -1
  464. package/dist/esm/six-drawer.entry.js +15 -32
  465. package/dist/esm/six-drawer.entry.js.map +1 -1
  466. package/dist/esm/six-dropdown_2.entry.js +205 -131
  467. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  468. package/dist/esm/six-error-page.entry.js +4 -3
  469. package/dist/esm/six-error-page.entry.js.map +1 -1
  470. package/dist/esm/six-error.entry.js +4 -3
  471. package/dist/esm/six-error.entry.js.map +1 -1
  472. package/dist/esm/six-file-list-item.entry.js +6 -5
  473. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  474. package/dist/esm/six-file-list.entry.js +4 -3
  475. package/dist/esm/six-file-list.entry.js.map +1 -1
  476. package/dist/esm/six-file-upload.entry.js +11 -9
  477. package/dist/esm/six-file-upload.entry.js.map +1 -1
  478. package/dist/esm/six-footer.entry.js +5 -4
  479. package/dist/esm/six-footer.entry.js.map +1 -1
  480. package/dist/esm/six-group-label.entry.js +7 -6
  481. package/dist/esm/six-group-label.entry.js.map +1 -1
  482. package/dist/esm/six-header.entry.js +16 -13
  483. package/dist/esm/six-header.entry.js.map +1 -1
  484. package/dist/esm/six-icon-button.entry.js +7 -6
  485. package/dist/esm/six-icon-button.entry.js.map +1 -1
  486. package/dist/esm/six-icon.entry.js +6 -5
  487. package/dist/esm/six-icon.entry.js.map +1 -1
  488. package/dist/esm/six-input.entry.js +11 -8
  489. package/dist/esm/six-input.entry.js.map +1 -1
  490. package/dist/esm/six-item-picker.entry.js +7 -6
  491. package/dist/esm/six-item-picker.entry.js.map +1 -1
  492. package/dist/esm/six-language-switcher.entry.js +11 -6
  493. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  494. package/dist/esm/six-layout-grid.entry.js +4 -3
  495. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  496. package/dist/esm/six-main-container.entry.js +4 -3
  497. package/dist/esm/six-main-container.entry.js.map +1 -1
  498. package/dist/esm/six-menu-divider.entry.js +5 -4
  499. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  500. package/dist/esm/six-menu-label.entry.js +5 -4
  501. package/dist/esm/six-menu-label.entry.js.map +1 -1
  502. package/dist/esm/six-picto.entry.js +4 -3
  503. package/dist/esm/six-picto.entry.js.map +1 -1
  504. package/dist/esm/six-progress-bar.entry.js +6 -5
  505. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  506. package/dist/esm/six-progress-ring.entry.js +5 -4
  507. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  508. package/dist/esm/six-radio.entry.js +6 -5
  509. package/dist/esm/six-radio.entry.js.map +1 -1
  510. package/dist/esm/six-range.entry.js +18 -7
  511. package/dist/esm/six-range.entry.js.map +1 -1
  512. package/dist/esm/six-root.entry.js +4 -22
  513. package/dist/esm/six-root.entry.js.map +1 -1
  514. package/dist/esm/six-search-field.entry.js +5 -4
  515. package/dist/esm/six-search-field.entry.js.map +1 -1
  516. package/dist/esm/six-select.entry.js +302 -170
  517. package/dist/esm/six-select.entry.js.map +1 -1
  518. package/dist/esm/six-sidebar-item-group.entry.js +5 -4
  519. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  520. package/dist/esm/six-sidebar-item.entry.js +5 -4
  521. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  522. package/dist/esm/six-sidebar.entry.js +6 -5
  523. package/dist/esm/six-sidebar.entry.js.map +1 -1
  524. package/dist/esm/six-spinner.entry.js +5 -4
  525. package/dist/esm/six-spinner.entry.js.map +1 -1
  526. package/dist/esm/six-stage-indicator.entry.js +19 -0
  527. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  528. package/dist/esm/six-switch.entry.js +8 -7
  529. package/dist/esm/six-switch.entry.js.map +1 -1
  530. package/dist/esm/six-tab-group.entry.js +35 -9
  531. package/dist/esm/six-tab-group.entry.js.map +1 -1
  532. package/dist/esm/six-tab-panel.entry.js +5 -4
  533. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  534. package/dist/esm/six-tab.entry.js +6 -5
  535. package/dist/esm/six-tab.entry.js.map +1 -1
  536. package/dist/esm/six-tag.entry.js +7 -6
  537. package/dist/esm/six-tag.entry.js.map +1 -1
  538. package/dist/esm/six-textarea.entry.js +8 -7
  539. package/dist/esm/six-textarea.entry.js.map +1 -1
  540. package/dist/esm/six-tile.entry.js +8 -7
  541. package/dist/esm/six-tile.entry.js.map +1 -1
  542. package/dist/esm/six-timepicker.entry.js +8 -7
  543. package/dist/esm/six-timepicker.entry.js.map +1 -1
  544. package/dist/esm/six-tooltip.entry.js +6 -5
  545. package/dist/esm/six-tooltip.entry.js.map +1 -1
  546. package/dist/esm/{slot-41bc439a.js → slot-56531341.js} +2 -3
  547. package/dist/esm/slot-56531341.js.map +1 -0
  548. package/dist/esm/{types-07748c42.js → types-a07bb999.js} +3 -1
  549. package/dist/esm/types-a07bb999.js.map +1 -0
  550. package/dist/esm/ui-library.js +7 -5
  551. package/dist/esm/ui-library.js.map +1 -1
  552. package/dist/types/components/six-alert/six-alert.d.ts +13 -6
  553. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  554. package/dist/types/components/six-dialog/six-dialog.d.ts +1 -0
  555. package/dist/types/components/six-dropdown/six-dropdown.d.ts +28 -9
  556. package/dist/types/components/six-file-upload/six-file-upload.d.ts +2 -0
  557. package/dist/types/components/six-header/six-header.d.ts +2 -0
  558. package/dist/types/components/six-input/six-input.d.ts +4 -0
  559. package/dist/types/components/six-menu/six-menu.d.ts +4 -0
  560. package/dist/types/components/six-menu-item/six-menu-item.d.ts +7 -1
  561. package/dist/types/components/six-range/six-range.d.ts +2 -0
  562. package/dist/types/components/six-root/six-root.d.ts +0 -13
  563. package/dist/types/components/six-select/six-select.d.ts +27 -12
  564. package/dist/types/components/six-spinner/six-spinner.d.ts +1 -0
  565. package/dist/types/components/six-tab-group/six-tab-group.d.ts +4 -1
  566. package/dist/types/components.d.ts +80 -60
  567. package/dist/types/index.d.ts +1 -0
  568. package/dist/types/types.d.ts +1 -0
  569. package/dist/types/utils/alert.d.ts +10 -0
  570. package/dist/types/utils/date-util.d.ts +9 -1
  571. package/dist/types/utils/error-messages.d.ts +1 -0
  572. package/dist/types/utils/slot.d.ts +0 -1
  573. package/dist/ui-library/index.esm.js +1 -1
  574. package/dist/ui-library/index.esm.js.map +1 -1
  575. package/dist/ui-library/p-01853739.entry.js +2 -0
  576. package/dist/ui-library/p-01853739.entry.js.map +1 -0
  577. package/dist/ui-library/p-03900e17.entry.js +2 -0
  578. package/dist/ui-library/p-03900e17.entry.js.map +1 -0
  579. package/dist/ui-library/p-0a094514.entry.js +2 -0
  580. package/dist/ui-library/p-0a094514.entry.js.map +1 -0
  581. package/dist/ui-library/p-0cebf1d2.js +2 -0
  582. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  583. package/dist/ui-library/p-19a1d34c.entry.js +2 -0
  584. package/dist/ui-library/p-19a1d34c.entry.js.map +1 -0
  585. package/dist/ui-library/p-19ca3bd1.entry.js +2 -0
  586. package/dist/ui-library/p-19ca3bd1.entry.js.map +1 -0
  587. package/dist/ui-library/p-1d4cb6e9.entry.js +2 -0
  588. package/dist/ui-library/p-1d4cb6e9.entry.js.map +1 -0
  589. package/dist/ui-library/p-1f1224ae.entry.js +2 -0
  590. package/dist/ui-library/p-1f1224ae.entry.js.map +1 -0
  591. package/dist/ui-library/p-21002de1.entry.js +2 -0
  592. package/dist/ui-library/p-21002de1.entry.js.map +1 -0
  593. package/dist/ui-library/p-29b75db4.entry.js +2 -0
  594. package/dist/ui-library/p-29b75db4.entry.js.map +1 -0
  595. package/dist/ui-library/p-338205f4.entry.js +2 -0
  596. package/dist/ui-library/p-338205f4.entry.js.map +1 -0
  597. package/dist/ui-library/p-3827f9e0.entry.js +2 -0
  598. package/dist/ui-library/p-3827f9e0.entry.js.map +1 -0
  599. package/dist/ui-library/p-38a9a590.entry.js +2 -0
  600. package/dist/ui-library/p-38a9a590.entry.js.map +1 -0
  601. package/dist/ui-library/p-3e9324c8.entry.js +2 -0
  602. package/dist/ui-library/p-3e9324c8.entry.js.map +1 -0
  603. package/dist/ui-library/p-3eed2287.entry.js +2 -0
  604. package/dist/ui-library/p-3eed2287.entry.js.map +1 -0
  605. package/dist/ui-library/p-45960b56.entry.js +2 -0
  606. package/dist/ui-library/p-45960b56.entry.js.map +1 -0
  607. package/dist/ui-library/p-49e5d8bb.entry.js +2 -0
  608. package/dist/ui-library/p-49e5d8bb.entry.js.map +1 -0
  609. package/dist/ui-library/p-4af73ea9.entry.js +2 -0
  610. package/dist/ui-library/p-4af73ea9.entry.js.map +1 -0
  611. package/dist/ui-library/p-50dbe99f.entry.js +2 -0
  612. package/dist/ui-library/p-50dbe99f.entry.js.map +1 -0
  613. package/dist/ui-library/p-52c04973.entry.js +2 -0
  614. package/dist/ui-library/p-52c04973.entry.js.map +1 -0
  615. package/dist/ui-library/p-5f810571.entry.js +2 -0
  616. package/dist/ui-library/p-5f810571.entry.js.map +1 -0
  617. package/dist/ui-library/p-651293e7.js +2 -0
  618. package/dist/ui-library/p-651293e7.js.map +1 -0
  619. package/dist/ui-library/p-6c96b62e.entry.js +2 -0
  620. package/dist/ui-library/p-6c96b62e.entry.js.map +1 -0
  621. package/dist/ui-library/p-724d0458.entry.js +2 -0
  622. package/dist/ui-library/p-724d0458.entry.js.map +1 -0
  623. package/dist/ui-library/p-7562d5f5.entry.js +2 -0
  624. package/dist/ui-library/p-7562d5f5.entry.js.map +1 -0
  625. package/dist/ui-library/p-756f4acf.entry.js +2 -0
  626. package/dist/ui-library/p-756f4acf.entry.js.map +1 -0
  627. package/dist/ui-library/p-7a722a13.entry.js +2 -0
  628. package/dist/ui-library/p-7a722a13.entry.js.map +1 -0
  629. package/dist/ui-library/{p-d310a6dd.entry.js → p-7a9dcb16.entry.js} +2 -2
  630. package/dist/ui-library/p-7a9dcb16.entry.js.map +1 -0
  631. package/dist/ui-library/p-7c2255b5.entry.js +2 -0
  632. package/dist/ui-library/p-7c2255b5.entry.js.map +1 -0
  633. package/dist/ui-library/p-7fc0bf6b.entry.js +2 -0
  634. package/dist/ui-library/p-7fc0bf6b.entry.js.map +1 -0
  635. package/dist/ui-library/p-803915da.entry.js +2 -0
  636. package/dist/ui-library/p-803915da.entry.js.map +1 -0
  637. package/dist/ui-library/p-80476b0f.entry.js +2 -0
  638. package/dist/ui-library/p-80476b0f.entry.js.map +1 -0
  639. package/dist/ui-library/{p-0861899a.js → p-862d474e.js} +1 -1
  640. package/dist/ui-library/p-862d474e.js.map +1 -0
  641. package/dist/ui-library/p-8644f970.entry.js +2 -0
  642. package/dist/ui-library/p-8644f970.entry.js.map +1 -0
  643. package/dist/ui-library/p-8938e9bd.entry.js +2 -0
  644. package/dist/ui-library/p-8938e9bd.entry.js.map +1 -0
  645. package/dist/ui-library/p-8dff4dcb.entry.js +2 -0
  646. package/dist/ui-library/p-8dff4dcb.entry.js.map +1 -0
  647. package/dist/ui-library/p-8f307b55.entry.js +2 -0
  648. package/dist/ui-library/p-8f307b55.entry.js.map +1 -0
  649. package/dist/ui-library/p-93ab2efc.entry.js +2 -0
  650. package/dist/ui-library/p-93ab2efc.entry.js.map +1 -0
  651. package/dist/ui-library/p-9426a37b.entry.js +2 -0
  652. package/dist/ui-library/p-9426a37b.entry.js.map +1 -0
  653. package/dist/ui-library/p-a2a6aaea.entry.js +2 -0
  654. package/dist/ui-library/p-a2a6aaea.entry.js.map +1 -0
  655. package/dist/ui-library/p-a2b8aca7.entry.js +2 -0
  656. package/dist/ui-library/p-a2b8aca7.entry.js.map +1 -0
  657. package/dist/ui-library/{p-6907a7dc.js → p-aa99a393.js} +2 -2
  658. package/dist/ui-library/p-ab8f9503.entry.js +2 -0
  659. package/dist/ui-library/p-ab8f9503.entry.js.map +1 -0
  660. package/dist/ui-library/p-acc487ec.entry.js +2 -0
  661. package/dist/ui-library/p-acc487ec.entry.js.map +1 -0
  662. package/dist/ui-library/p-ba7424b3.entry.js +2 -0
  663. package/dist/ui-library/p-ba7424b3.entry.js.map +1 -0
  664. package/dist/ui-library/p-c948cf70.entry.js +2 -0
  665. package/dist/ui-library/p-c948cf70.entry.js.map +1 -0
  666. package/dist/ui-library/p-d55db23a.entry.js +2 -0
  667. package/dist/ui-library/p-d55db23a.entry.js.map +1 -0
  668. package/dist/ui-library/p-d717a2f2.entry.js +2 -0
  669. package/dist/ui-library/p-d717a2f2.entry.js.map +1 -0
  670. package/dist/ui-library/p-d7739200.entry.js +2 -0
  671. package/dist/ui-library/p-d7739200.entry.js.map +1 -0
  672. package/dist/ui-library/p-e080d5b6.js +2 -0
  673. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  674. package/dist/ui-library/p-e1255160.js +2 -0
  675. package/dist/ui-library/p-e1255160.js.map +1 -0
  676. package/dist/ui-library/p-e3766acb.entry.js +2 -0
  677. package/dist/ui-library/p-e3766acb.entry.js.map +1 -0
  678. package/dist/ui-library/p-e43e5e45.entry.js +2 -0
  679. package/dist/ui-library/p-e43e5e45.entry.js.map +1 -0
  680. package/dist/ui-library/p-e798314b.entry.js +2 -0
  681. package/dist/ui-library/p-e798314b.entry.js.map +1 -0
  682. package/dist/ui-library/p-f136a6b2.js +2 -0
  683. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  684. package/dist/ui-library/p-f1bb5648.entry.js +2 -0
  685. package/dist/ui-library/p-f1bb5648.entry.js.map +1 -0
  686. package/dist/ui-library/p-f8572492.entry.js +2 -0
  687. package/dist/ui-library/p-f8572492.entry.js.map +1 -0
  688. package/dist/ui-library/p-f93d8a4e.js +3 -0
  689. package/dist/ui-library/p-f93d8a4e.js.map +1 -0
  690. package/dist/ui-library/ui-library.css +1 -10
  691. package/dist/ui-library/ui-library.esm.js +1 -1
  692. package/dist/ui-library/ui-library.esm.js.map +1 -1
  693. package/package.json +10 -13
  694. package/dist/cjs/index-3baddcdc.js.map +0 -1
  695. package/dist/cjs/modal-3ce015be.js.map +0 -1
  696. package/dist/cjs/popup-40a9adbb.js.map +0 -1
  697. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  698. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  699. package/dist/cjs/six-checkbox.cjs.entry.js +0 -127
  700. package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
  701. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  702. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  703. package/dist/cjs/slot-9821749e.js.map +0 -1
  704. package/dist/cjs/types-0a6d66f6.js.map +0 -1
  705. package/dist/collection/utils/support.js +0 -16
  706. package/dist/collection/utils/support.js.map +0 -1
  707. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  708. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  709. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  710. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  711. package/dist/components/set-attributes.d.ts +0 -11
  712. package/dist/components/set-attributes.js +0 -8
  713. package/dist/components/set-attributes.js.map +0 -1
  714. package/dist/components/set-attributes2.js +0 -73
  715. package/dist/components/set-attributes2.js.map +0 -1
  716. package/dist/components/six-tag2.js +0 -102
  717. package/dist/components/six-tag2.js.map +0 -1
  718. package/dist/esm/index-17d8173e.js.map +0 -1
  719. package/dist/esm/modal-96526245.js.map +0 -1
  720. package/dist/esm/popup-e8049817.js.map +0 -1
  721. package/dist/esm/set-attributes_2.entry.js +0 -68
  722. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  723. package/dist/esm/six-checkbox.entry.js +0 -123
  724. package/dist/esm/six-checkbox.entry.js.map +0 -1
  725. package/dist/esm/six-menu-item.entry.js +0 -59
  726. package/dist/esm/six-menu-item.entry.js.map +0 -1
  727. package/dist/esm/slot-41bc439a.js.map +0 -1
  728. package/dist/esm/types-07748c42.js.map +0 -1
  729. package/dist/types/utils/support.d.ts +0 -1
  730. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  731. package/dist/ui-library/p-0861899a.js.map +0 -1
  732. package/dist/ui-library/p-0a81b42c.entry.js +0 -2
  733. package/dist/ui-library/p-0a81b42c.entry.js.map +0 -1
  734. package/dist/ui-library/p-0beec94f.js +0 -3
  735. package/dist/ui-library/p-0beec94f.js.map +0 -1
  736. package/dist/ui-library/p-0e7332db.entry.js +0 -2
  737. package/dist/ui-library/p-0e7332db.entry.js.map +0 -1
  738. package/dist/ui-library/p-178f5782.entry.js +0 -2
  739. package/dist/ui-library/p-178f5782.entry.js.map +0 -1
  740. package/dist/ui-library/p-19a61686.entry.js +0 -2
  741. package/dist/ui-library/p-19a61686.entry.js.map +0 -1
  742. package/dist/ui-library/p-1d0c5929.entry.js +0 -2
  743. package/dist/ui-library/p-1d0c5929.entry.js.map +0 -1
  744. package/dist/ui-library/p-23c02c98.entry.js +0 -2
  745. package/dist/ui-library/p-23c02c98.entry.js.map +0 -1
  746. package/dist/ui-library/p-2eed9d8d.entry.js +0 -2
  747. package/dist/ui-library/p-2eed9d8d.entry.js.map +0 -1
  748. package/dist/ui-library/p-3187bc23.entry.js +0 -2
  749. package/dist/ui-library/p-3187bc23.entry.js.map +0 -1
  750. package/dist/ui-library/p-32e1a5ab.entry.js +0 -2
  751. package/dist/ui-library/p-32e1a5ab.entry.js.map +0 -1
  752. package/dist/ui-library/p-32fed3c7.entry.js +0 -2
  753. package/dist/ui-library/p-32fed3c7.entry.js.map +0 -1
  754. package/dist/ui-library/p-3d54ecf2.entry.js +0 -2
  755. package/dist/ui-library/p-3d54ecf2.entry.js.map +0 -1
  756. package/dist/ui-library/p-4229f7e8.entry.js +0 -2
  757. package/dist/ui-library/p-4229f7e8.entry.js.map +0 -1
  758. package/dist/ui-library/p-479d8087.entry.js +0 -2
  759. package/dist/ui-library/p-479d8087.entry.js.map +0 -1
  760. package/dist/ui-library/p-49aa8d1e.entry.js +0 -2
  761. package/dist/ui-library/p-49aa8d1e.entry.js.map +0 -1
  762. package/dist/ui-library/p-58661675.entry.js +0 -2
  763. package/dist/ui-library/p-58661675.entry.js.map +0 -1
  764. package/dist/ui-library/p-5d43ea07.entry.js +0 -2
  765. package/dist/ui-library/p-5d43ea07.entry.js.map +0 -1
  766. package/dist/ui-library/p-6aa2929a.entry.js +0 -2
  767. package/dist/ui-library/p-6aa2929a.entry.js.map +0 -1
  768. package/dist/ui-library/p-7432d409.entry.js +0 -2
  769. package/dist/ui-library/p-7432d409.entry.js.map +0 -1
  770. package/dist/ui-library/p-74a714c0.entry.js +0 -2
  771. package/dist/ui-library/p-74a714c0.entry.js.map +0 -1
  772. package/dist/ui-library/p-76825395.entry.js +0 -2
  773. package/dist/ui-library/p-76825395.entry.js.map +0 -1
  774. package/dist/ui-library/p-816f857d.entry.js +0 -2
  775. package/dist/ui-library/p-816f857d.entry.js.map +0 -1
  776. package/dist/ui-library/p-882fbf6f.entry.js +0 -2
  777. package/dist/ui-library/p-882fbf6f.entry.js.map +0 -1
  778. package/dist/ui-library/p-88fd4973.entry.js +0 -2
  779. package/dist/ui-library/p-88fd4973.entry.js.map +0 -1
  780. package/dist/ui-library/p-8b750c9e.entry.js +0 -2
  781. package/dist/ui-library/p-8b750c9e.entry.js.map +0 -1
  782. package/dist/ui-library/p-911eb578.entry.js +0 -2
  783. package/dist/ui-library/p-911eb578.entry.js.map +0 -1
  784. package/dist/ui-library/p-93fcda4a.entry.js +0 -2
  785. package/dist/ui-library/p-93fcda4a.entry.js.map +0 -1
  786. package/dist/ui-library/p-981b3228.entry.js +0 -2
  787. package/dist/ui-library/p-981b3228.entry.js.map +0 -1
  788. package/dist/ui-library/p-998de05d.js +0 -2
  789. package/dist/ui-library/p-998de05d.js.map +0 -1
  790. package/dist/ui-library/p-9b1ff147.entry.js +0 -2
  791. package/dist/ui-library/p-9b1ff147.entry.js.map +0 -1
  792. package/dist/ui-library/p-a4e4620c.entry.js +0 -2
  793. package/dist/ui-library/p-a4e4620c.entry.js.map +0 -1
  794. package/dist/ui-library/p-ada23fe3.entry.js +0 -2
  795. package/dist/ui-library/p-ada23fe3.entry.js.map +0 -1
  796. package/dist/ui-library/p-b5ac1219.entry.js +0 -2
  797. package/dist/ui-library/p-b5ac1219.entry.js.map +0 -1
  798. package/dist/ui-library/p-ba247565.entry.js +0 -2
  799. package/dist/ui-library/p-ba247565.entry.js.map +0 -1
  800. package/dist/ui-library/p-bdb79948.entry.js +0 -2
  801. package/dist/ui-library/p-bdb79948.entry.js.map +0 -1
  802. package/dist/ui-library/p-bee65dd9.entry.js +0 -2
  803. package/dist/ui-library/p-bee65dd9.entry.js.map +0 -1
  804. package/dist/ui-library/p-c021a9c9.entry.js +0 -2
  805. package/dist/ui-library/p-c021a9c9.entry.js.map +0 -1
  806. package/dist/ui-library/p-c07b1240.entry.js +0 -2
  807. package/dist/ui-library/p-c07b1240.entry.js.map +0 -1
  808. package/dist/ui-library/p-c12a94ce.entry.js +0 -2
  809. package/dist/ui-library/p-c12a94ce.entry.js.map +0 -1
  810. package/dist/ui-library/p-c1675a45.entry.js +0 -2
  811. package/dist/ui-library/p-c1675a45.entry.js.map +0 -1
  812. package/dist/ui-library/p-c2df8c27.entry.js +0 -2
  813. package/dist/ui-library/p-c2df8c27.entry.js.map +0 -1
  814. package/dist/ui-library/p-c86aa5b3.entry.js +0 -2
  815. package/dist/ui-library/p-c86aa5b3.entry.js.map +0 -1
  816. package/dist/ui-library/p-cd35b3c6.entry.js +0 -2
  817. package/dist/ui-library/p-cd35b3c6.entry.js.map +0 -1
  818. package/dist/ui-library/p-d2cf4280.entry.js +0 -2
  819. package/dist/ui-library/p-d2cf4280.entry.js.map +0 -1
  820. package/dist/ui-library/p-d310a6dd.entry.js.map +0 -1
  821. package/dist/ui-library/p-d6838141.entry.js +0 -2
  822. package/dist/ui-library/p-d6838141.entry.js.map +0 -1
  823. package/dist/ui-library/p-dc908cbb.entry.js +0 -2
  824. package/dist/ui-library/p-dc908cbb.entry.js.map +0 -1
  825. package/dist/ui-library/p-dfb6bff6.entry.js +0 -2
  826. package/dist/ui-library/p-dfb6bff6.entry.js.map +0 -1
  827. package/dist/ui-library/p-ee71e3a3.entry.js +0 -2
  828. package/dist/ui-library/p-ee71e3a3.entry.js.map +0 -1
  829. package/dist/ui-library/p-ef317d69.entry.js +0 -2
  830. package/dist/ui-library/p-ef317d69.entry.js.map +0 -1
  831. package/dist/ui-library/p-f2ef23c4.js +0 -2
  832. package/dist/ui-library/p-f2ef23c4.js.map +0 -1
  833. package/dist/ui-library/p-f385f1c2.entry.js +0 -2
  834. package/dist/ui-library/p-f385f1c2.entry.js.map +0 -1
  835. package/dist/ui-library/p-f73a6bdc.entry.js +0 -2
  836. package/dist/ui-library/p-f73a6bdc.entry.js.map +0 -1
  837. package/dist/ui-library/p-faa04bb5.js +0 -2
  838. package/dist/ui-library/p-faa04bb5.js.map +0 -1
  839. package/dist/ui-library/p-fcd57e0a.entry.js +0 -2
  840. package/dist/ui-library/p-fcd57e0a.entry.js.map +0 -1
  841. /package/dist/ui-library/{p-6907a7dc.js.map → p-aa99a393.js.map} +0 -0
package/dist/esm/index.js CHANGED
@@ -1,108 +1,59 @@
1
- const languages = ['de', 'fr', 'it', 'en', 'es'];
2
- const dateFormat = new Intl.DateTimeFormat('de-CH');
1
+ export { g as getErrorMessage, a as getLanguage, l as languages } from './error-messages-1eaaad23.js';
2
+
3
3
  /**
4
- * Returns an error message for the given language and error.
4
+ * Displays an alert on the toast stack with a specified message and optional configuration.
5
+ *
6
+ * @param message - The message to be displayed in the alert.
7
+ * @param alertType - The type of the alert. Valid values are 'primary', 'info', 'success', 'warning', 'danger'. Default is 'info'.
8
+ * @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.
9
+ * @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.
5
10
  */
6
- function getErrorMessage(language, error) {
7
- try {
8
- const message = translation[language][error.key];
9
- switch (error.key) {
10
- case 'required':
11
- case 'requiredtrue':
12
- case 'email':
13
- return message;
14
- case 'minlength':
15
- case 'maxlength':
16
- return message.replace('{requiredLength}', String(error.requiredLength));
17
- case 'pattern':
18
- return message.replace('{pattern}', String(error.requiredPattern));
19
- case 'min':
20
- return message.replace('{min}', String(error.min));
21
- case 'max':
22
- return message.replace('{max}', String(error.max));
23
- case 'mindate':
24
- return message.replace('{mindate}', dateFormat.format(error.mindate));
25
- case 'maxdate':
26
- return message.replace('{maxdate}', dateFormat.format(error.maxdate));
27
- case 'invaliddate':
28
- return message;
29
- case 'custom':
30
- return error.text;
31
- }
11
+ function showAlert(message, alertType, duration, iconName) {
12
+ const type = alertType !== null && alertType !== void 0 ? alertType : 'info';
13
+ const icon = iconName !== null && iconName !== void 0 ? iconName : getIcon(type);
14
+ const alert = Object.assign(document.createElement('six-alert'), {
15
+ type,
16
+ duration: duration !== null && duration !== void 0 ? duration : getDuration(type),
17
+ innerHTML: `<six-icon slot="icon">${icon}</six-icon>${escapeHtml(message)}`,
18
+ closable: true,
19
+ });
20
+ document.body.append(alert);
21
+ alert.toast();
22
+ }
23
+ function escapeHtml(html) {
24
+ const div = document.createElement('div');
25
+ div.textContent = html;
26
+ return div.innerHTML;
27
+ }
28
+ function getIcon(messageType) {
29
+ switch (messageType) {
30
+ case 'primary':
31
+ return 'info';
32
+ case 'info':
33
+ return 'info';
34
+ case 'success':
35
+ return 'check_circle';
36
+ case 'warning':
37
+ return 'warning';
38
+ case 'danger':
39
+ return 'report';
32
40
  }
33
- catch (e) {
34
- console.warn(`no error message in '${language}' for error:`, error);
35
- return undefined;
41
+ }
42
+ function getDuration(messageType) {
43
+ switch (messageType) {
44
+ case 'primary':
45
+ return 10000;
46
+ case 'info':
47
+ return 10000;
48
+ case 'success':
49
+ return 10000;
50
+ case 'warning':
51
+ return 20000;
52
+ case 'danger':
53
+ return 20000;
36
54
  }
37
55
  }
38
- const translation = {
39
- en: {
40
- required: 'Please fill out this field.',
41
- minlength: 'Please enter at least {requiredLength} characters.',
42
- maxlength: 'Please enter no more than {requiredLength} characters.',
43
- pattern: 'Please enter a value that matches the pattern: {pattern}.',
44
- email: 'Please enter a valid email address.',
45
- min: 'Please enter a value greater than or equal to {min}.',
46
- max: 'Please enter a value less than or equal to {max}.',
47
- requiredtrue: 'Please check this field.',
48
- mindate: 'Please enter a date on or after {mindate}.',
49
- maxdate: 'Please enter a date on or before {maxdate}.',
50
- invaliddate: 'Please enter a valid date.',
51
- },
52
- fr: {
53
- required: "Veuillez remplir ce champ s'il vous plaît.",
54
- minlength: 'Veuillez entrer au moins {requiredLength} caractères.',
55
- maxlength: 'Veuillez entrer au maximum {requiredLength} caractères.',
56
- pattern: 'Veuillez entrer une valeur qui correspond au format : {pattern}.',
57
- email: 'Veuillez entrer une adresse email valide.',
58
- min: 'Veuillez entrer une valeur supérieure ou égale à {min}.',
59
- max: 'Veuillez entrer une valeur inférieure ou égale à {max}.',
60
- requiredtrue: "Veuillez cocher cette case s'il vous plaît.",
61
- mindate: 'Veuillez entrer une date le {mindate} ou après.',
62
- maxdate: 'Veuillez entrer une date le {maxdate} ou avant.',
63
- invaliddate: 'Veuillez entrer une date valide.',
64
- },
65
- de: {
66
- required: 'Bitte füllen Sie dieses Feld aus.',
67
- minlength: 'Bitte geben Sie mindestens {requiredLength} Zeichen ein.',
68
- maxlength: 'Bitte geben Sie höchstens {requiredLength} Zeichen ein.',
69
- pattern: 'Bitte geben Sie einen Wert ein, der dem Muster entspricht: {pattern}.',
70
- email: 'Bitte geben Sie eine gültige E-Mail-Adresse ein.',
71
- min: 'Bitte geben Sie einen Wert größer oder gleich {min} ein.',
72
- max: 'Bitte geben Sie einen Wert kleiner oder gleich {max} ein.',
73
- requiredtrue: 'Bitte aktivieren Sie dieses Feld.',
74
- mindate: 'Bitte geben Sie ein Datum am oder nach dem {mindate} ein.',
75
- maxdate: 'Bitte geben Sie ein Datum am oder vor dem {maxdate} ein.',
76
- invaliddate: 'Bitte geben Sie ein gültiges Datum ein.',
77
- },
78
- it: {
79
- required: 'Si prega di compilare questo campo.',
80
- minlength: 'Si prega di inserire almeno {requiredLength} caratteri.',
81
- maxlength: 'Si prega di inserire al massimo {requiredLength} caratteri.',
82
- pattern: 'Si prega di inserire un valore che corrisponde al formato: {pattern}.',
83
- email: 'Si prega di inserire un indirizzo email valido.',
84
- min: 'Si prega di inserire un valore maggiore o uguale a {min}.',
85
- max: 'Si prega di inserire un valore minore o uguale a {max}.',
86
- requiredtrue: 'Si prega di spuntare questo campo.',
87
- mindate: 'Si prega di inserire una data il {mindate} o successiva.',
88
- maxdate: 'Si prega di inserire una data il {maxdate} o precedente.',
89
- invaliddate: 'Inserisci una data valida.',
90
- },
91
- es: {
92
- required: 'Por favor, rellene este campo.',
93
- minlength: 'Por favor, introduzca al menos {requiredLength} caracteres.',
94
- maxlength: 'Por favor, introduzca no más de {requiredLength} caracteres.',
95
- pattern: 'Por favor, introduzca un valor que coincida con el patrón: {pattern}.',
96
- email: 'Por favor, introduzca una dirección de correo electrónico válida.',
97
- min: 'Por favor, introduzca un valor mayor o igual a {min}.',
98
- max: 'Por favor, introduzca un valor menor o igual a {max}.',
99
- requiredtrue: 'Por favor, marque este campo.',
100
- mindate: 'Por favor, introduzca una fecha igual o posterior a {mindate}.',
101
- maxdate: 'Por favor, introduzca una fecha igual o anterior a {maxdate}.',
102
- invaliddate: 'Por favor, introduzca una fecha válida.',
103
- },
104
- };
105
56
 
106
- export { getErrorMessage, languages };
57
+ export { showAlert };
107
58
 
108
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"file":"index.js","mappings":"MAAa,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAW;AAGjE,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAgBpD;;;SAGgB,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;YACf,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,S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","names":[],"sources":["src/utils/error-messages.ts"],"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\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"],"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,9 +1,11 @@
1
- import { b as bootstrapLazy } from './index-17d8173e.js';
2
- export { s as setNonce } from './index-17d8173e.js';
1
+ import { b as bootstrapLazy } from './index-52a755dc.js';
2
+ export { s as setNonce } from './index-52a755dc.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
3
4
 
4
- const defineCustomElements = (win, options) => {
5
+ const defineCustomElements = async (win, options) => {
5
6
  if (typeof window === 'undefined') return undefined;
6
- return bootstrapLazy(JSON.parse("[[\"six-select\",[[1,\"six-select\",{\"multiple\":[4],\"maxTagsVisible\":[2,\"max-tags-visible\"],\"disabled\":[4],\"name\":[1],\"placeholder\":[1],\"filterPlaceholder\":[1,\"filter-placeholder\"],\"filterDebounce\":[2,\"filter-debounce\"],\"size\":[1],\"hoist\":[4],\"value\":[1025],\"pill\":[4],\"helpText\":[1,\"help-text\"],\"required\":[4],\"clearable\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"line\":[4],\"filter\":[4],\"asyncFilter\":[4,\"async-filter\"],\"autocomplete\":[4],\"inputDebounce\":[2,\"input-debounce\"],\"options\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32],\"hasErrorTextSlot\":[32],\"isOpen\":[32],\"displayLabel\":[32],\"displayTags\":[32],\"setFocus\":[64]},null,{\"disabled\":[\"handleDisabledChange\"],\"helpText\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"],\"multiple\":[\"handleMultipleChange\"],\"value\":[\"handleValueChange\"]}]]],[\"six-header\",[[1,\"six-header\",{\"shiftContent\":[4,\"shift-content\"],\"openHamburgerMenu\":[4,\"open-hamburger-menu\"],\"openSearch\":[4,\"open-search\"],\"clickableLogo\":[4,\"clickable-logo\"],\"selectedApp\":[32],\"selectedSection\":[32],\"setSearchOpenState\":[64],\"getIsSearchOpen\":[64]},null,{\"openSearch\":[\"handleOpenSearchChange\"]}]]],[\"six-datepicker\",[[1,\"six-datepicker\",{\"type\":[1],\"locale\":[1],\"open\":[1540],\"inline\":[516],\"readonly\":[4],\"disabled\":[4],\"allowedDates\":[16],\"min\":[16],\"max\":[16],\"closeOnSelect\":[4,\"close-on-select\"],\"placement\":[1],\"size\":[1],\"required\":[4],\"defaultDate\":[1,\"default-date\"],\"placeholder\":[1],\"value\":[1040],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"containingElement\":[16],\"dateFormat\":[1,\"date-format\"],\"debounce\":[2],\"name\":[513],\"clearable\":[4],\"iconPosition\":[1,\"icon-position\"],\"hoist\":[4],\"pointerDate\":[32],\"selectionMode\":[32],\"isDropDownContentUp\":[32],\"setFocus\":[64],\"select\":[64]},[[9,\"resize\",\"resizeHandler\"],[9,\"scroll\",\"scrollHandler\"]],{\"debounce\":[\"debounceChanged\"],\"value\":[\"valueChanged\"]}]]],[\"six-root\",[[1,\"six-root\",{\"breakpoint\":[2],\"padded\":[4],\"stage\":[1],\"version\":[1],\"collapse\":[32]},null,{\"collapse\":[\"handleCollapsed\"]}]]],[\"six-search-field\",[[1,\"six-search-field\",{\"placeholder\":[1],\"debounce\":[514],\"disabled\":[516],\"value\":[513],\"clearable\":[4]},null,{\"value\":[\"handleValueChange\"]}]]],[\"six-tile\",[[1,\"six-tile\",{\"label\":[1],\"iconName\":[1,\"icon-name\"],\"closeable\":[4],\"elevated\":[4],\"disableTooltip\":[4,\"disable-tooltip\"],\"disabled\":[516],\"size\":[513],\"visible\":[32],\"hasIconSlot\":[32],\"hasLabelSlot\":[32],\"hide\":[64],\"show\":[64]}]]],[\"six-alert\",[[1,\"six-alert\",{\"open\":[1540],\"closable\":[516],\"type\":[513],\"duration\":[2],\"isVisible\":[32],\"show\":[64],\"hide\":[64],\"toast\":[64]},null,{\"open\":[\"handleOpenChange\"],\"duration\":[\"handleDurationChange\"]}]]],[\"six-dialog\",[[1,\"six-dialog\",{\"open\":[1540],\"label\":[1],\"noHeader\":[4,\"no-header\"],\"hasFooter\":[32],\"isVisible\":[32],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-drawer\",[[1,\"six-drawer\",{\"open\":[1540],\"label\":[1],\"placement\":[1],\"contained\":[4],\"noHeader\":[4,\"no-header\"],\"hasFooter\":[32],\"isVisible\":[32],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-sidebar-item-group\",[[1,\"six-sidebar-item-group\",{\"name\":[1],\"icon\":[1],\"value\":[513],\"open\":[516],\"summaryIcon\":[1,\"summary-icon\"],\"href\":[513],\"hasItems\":[32],\"summaryIconHasContent\":[32]}]]],[\"six-tab\",[[1,\"six-tab\",{\"panel\":[513],\"active\":[516],\"closable\":[4],\"disabled\":[516],\"setFocus\":[64],\"removeFocus\":[64]}]]],[\"six-tab-group\",[[1,\"six-tab-group\",{\"placement\":[1],\"noScrollControls\":[4,\"no-scroll-controls\"],\"hasScrollControls\":[32],\"show\":[64]},null,{\"noScrollControls\":[\"handleNoScrollControlsChange\"]}]]],[\"six-avatar\",[[1,\"six-avatar\",{\"image\":[1],\"alt\":[1],\"initials\":[1],\"shape\":[1],\"hasError\":[32]}]]],[\"six-button\",[[1,\"six-button\",{\"type\":[513],\"size\":[513],\"caret\":[4],\"disabled\":[516],\"loading\":[516],\"pill\":[516],\"circle\":[516],\"submit\":[516],\"reset\":[516],\"name\":[1],\"value\":[1],\"href\":[1],\"target\":[1],\"download\":[1],\"hasFocus\":[32],\"hasLabel\":[32],\"hasPrefix\":[32],\"hasSuffix\":[32],\"setFocus\":[64],\"removeFocus\":[64]}]]],[\"six-checkbox\",[[1,\"six-checkbox\",{\"name\":[1],\"value\":[1],\"disabled\":[4],\"required\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"checked\":[1540],\"indeterminate\":[1540],\"hasFocus\":[32],\"hasLabelSlot\":[32],\"hasErrorSlot\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"checked\":[\"handleCheckedChange\"],\"indeterminate\":[\"handleCheckedChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"]}]]],[\"six-error-page\",[[1,\"six-error-page\",{\"errorCode\":[2,\"error-code\"],\"language\":[1],\"customTitle\":[1,\"custom-title\"],\"customDescription\":[16],\"customIcon\":[1,\"custom-icon\"]}]]],[\"six-file-list-item\",[[1,\"six-file-list-item\",{\"identifier\":[513],\"name\":[513],\"date\":[513],\"size\":[514],\"nodownload\":[516],\"nodelete\":[516]}]]],[\"six-file-upload\",[[2,\"six-file-upload\",{\"compact\":[4],\"label\":[1],\"disabled\":[4],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"isOver\":[32]},[[1,\"dragenter\",\"dragenterHandler\"],[1,\"dragover\",\"dragoverHandler\"],[1,\"dragleave\",\"dragleaveHandler\"],[1,\"drop\",\"dropHandler\"]]]]],[\"six-group-label\",[[1,\"six-group-label\",{\"size\":[513],\"label\":[1],\"helpText\":[1,\"help-text\"],\"disabled\":[516],\"required\":[4],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32]},null,{\"helpText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"]}]]],[\"six-range\",[[1,\"six-range\",{\"name\":[1],\"value\":[1026],\"required\":[4],\"helpText\":[1,\"help-text\"],\"disabled\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"min\":[2],\"max\":[2],\"step\":[2],\"tooltip\":[1],\"tooltipFormatter\":[16],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasErrorTextSlot\":[32],\"hasLabelSlot\":[32],\"hasTooltip\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"label\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"helpText\":[\"handleLabelChange\"],\"value\":[\"handleValueChange\"],\"min\":[\"handleValueChange\"],\"max\":[\"handleValueChange\"]}]]],[\"six-switch\",[[1,\"six-switch\",{\"name\":[1],\"value\":[1],\"disabled\":[4],\"required\":[4],\"checked\":[1540],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"hasFocus\":[32],\"hasErrorTextSlot\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"checked\":[\"handleCheckedChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"]}]]],[\"six-textarea\",[[1,\"six-textarea\",{\"size\":[513],\"name\":[513],\"value\":[1537],\"helpText\":[1,\"help-text\"],\"placeholder\":[1],\"rows\":[2],\"resize\":[1],\"disabled\":[516],\"readonly\":[516],\"minlength\":[514],\"maxlength\":[514],\"required\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"autofocus\":[4],\"spellcheck\":[4],\"inputmode\":[1],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32],\"hasErrorTextSlot\":[32],\"setFocus\":[64],\"removeFocus\":[64],\"select\":[64],\"setSelectionRange\":[64],\"setRangeText\":[64]},null,{\"helpText\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"],\"rows\":[\"handleRowsChange\"],\"value\":[\"handleValueChange\"]}]]],[\"six-badge\",[[1,\"six-badge\",{\"type\":[1],\"pill\":[4],\"pulse\":[4]}]]],[\"six-card\",[[1,\"six-card\"]]],[\"six-file-list\",[[1,\"six-file-list\"]]],[\"six-footer\",[[1,\"six-footer\"]]],[\"six-language-switcher\",[[1,\"six-language-switcher\",{\"selected\":[1537],\"languages\":[16]},null,{\"languages\":[\"handleChangesLanguages\"]}]]],[\"six-layout-grid\",[[1,\"six-layout-grid\",{\"columns\":[1026]},null,{\"columns\":[\"handleColumnsChange\"]}]]],[\"six-main-container\",[[1,\"six-main-container\",{\"padded\":[4]}]]],[\"six-menu-divider\",[[1,\"six-menu-divider\"]]],[\"six-menu-label\",[[1,\"six-menu-label\"]]],[\"six-progress-bar\",[[1,\"six-progress-bar\",{\"percentage\":[2],\"indeterminate\":[4]}]]],[\"six-progress-ring\",[[1,\"six-progress-ring\",{\"size\":[2],\"strokeWidth\":[2,\"stroke-width\"],\"percentage\":[2]},null,{\"percentage\":[\"handlePercentageChange\"]}]]],[\"six-radio\",[[1,\"six-radio\",{\"name\":[1],\"value\":[513],\"disabled\":[4],\"checked\":[1540],\"invalid\":[516],\"hasFocus\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"checked\":[\"handleCheckedChange\"],\"name\":[\"handleNameChange\"]}]]],[\"six-sidebar\",[[1,\"six-sidebar\",{\"position\":[1],\"open\":[1540],\"width\":[1],\"toggled\":[4],\"isVisible\":[32],\"toggle\":[64],\"show\":[64],\"hide\":[64],\"selectItemByIndex\":[64],\"selectItemByName\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-sidebar-item\",[[1,\"six-sidebar-item\",{\"value\":[513],\"selected\":[516],\"disabled\":[516],\"href\":[513]}]]],[\"six-tab-panel\",[[1,\"six-tab-panel\",{\"name\":[1],\"active\":[516]}]]],[\"six-error\",[[1,\"six-error\"]]],[\"six-icon\",[[1,\"six-icon\",{\"size\":[513],\"filled\":[4]}]]],[\"six-timepicker\",[[1,\"six-timepicker\",{\"format\":[1],\"separator\":[1],\"value\":[1025],\"open\":[1540],\"inline\":[516],\"readonly\":[4],\"disabled\":[4],\"placement\":[1],\"size\":[1],\"required\":[4],\"placeholder\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"label\":[1],\"invalid\":[516],\"name\":[513],\"clearable\":[4],\"iconPosition\":[1,\"icon-position\"],\"hoist\":[4],\"timeout\":[2],\"interval\":[2],\"defaultTime\":[1,\"default-time\"],\"debounce\":[2],\"isPopupContentUp\":[32],\"isDropDownContentUp\":[32],\"popupValue\":[32],\"setFocus\":[64]},[[9,\"resize\",\"resizeHandler\"],[9,\"scroll\",\"scrollHandler\"]],{\"value\":[\"valueChanged\"]}]]],[\"six-tag\",[[1,\"six-tag\",{\"type\":[513],\"size\":[513],\"pill\":[516],\"clearable\":[516]}]]],[\"six-details\",[[1,\"six-details\",{\"open\":[1540],\"summary\":[1],\"summaryIcon\":[1,\"summary-icon\"],\"summaryIconSize\":[513,\"summary-icon-size\"],\"disabled\":[4],\"inline\":[4],\"selectableEmpty\":[4,\"selectable-empty\"],\"hasContent\":[4,\"has-content\"],\"animateSummaryIcon\":[32],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-picto\",[[1,\"six-picto\",{\"size\":[1]}]]],[\"six-spinner\",[[1,\"six-spinner\",{\"six\":[4]}]]],[\"set-attributes_2\",[[1,\"six-stage-indicator\",{\"stage\":[1]}],[4,\"set-attributes\",{\"value\":[16]},null,{\"value\":[\"attrsUpdated\"]}]]],[\"six-item-picker\",[[1,\"six-item-picker\",{\"value\":[1544],\"type\":[1],\"min\":[1544],\"max\":[1544],\"roundtrip\":[516],\"step\":[514],\"items\":[16],\"padded\":[4],\"paddingLength\":[2,\"padding-length\"],\"paddingChar\":[1,\"padding-char\"],\"paddingDirection\":[1,\"padding-direction\"],\"timeout\":[2],\"interval\":[2],\"debounce\":[2],\"_items\":[32],\"_itemIndexes\":[32]},null,{\"value\":[\"handleValueChange\"],\"debounce\":[\"debounceChanged\"],\"items\":[\"handleSetChange\"]}]]],[\"six-tooltip\",[[1,\"six-tooltip\",{\"content\":[1],\"placement\":[1],\"disabled\":[4],\"distance\":[2],\"open\":[1540],\"skidding\":[2],\"trigger\":[1],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-menu-item\",[[1,\"six-menu-item\",{\"checked\":[516],\"value\":[513],\"disabled\":[516],\"hasFocus\":[32],\"setFocus\":[64],\"removeFocus\":[64],\"getTextLabel\":[64]}]]],[\"six-input\",[[1,\"six-input\",{\"type\":[513],\"size\":[513],\"name\":[513],\"value\":[1537],\"pill\":[516],\"helpText\":[1,\"help-text\"],\"placeholder\":[1],\"disabled\":[516],\"readonly\":[516],\"minlength\":[514],\"maxlength\":[514],\"min\":[514],\"max\":[514],\"step\":[514],\"pattern\":[513],\"required\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"autofocus\":[4],\"spellcheck\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"clearable\":[4],\"togglePassword\":[4,\"toggle-password\"],\"inputmode\":[1],\"line\":[4],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32],\"hasErrorSlot\":[32],\"isPasswordVisible\":[32],\"setFocus\":[64],\"removeFocus\":[64],\"select\":[64],\"setSelectionRange\":[64],\"setRangeText\":[64]},null,{\"helpText\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"],\"value\":[\"handleValueChange\"]}]]],[\"six-dropdown_2\",[[1,\"six-dropdown\",{\"open\":[1540],\"placement\":[1],\"closeOnSelect\":[4,\"close-on-select\"],\"distance\":[2],\"skidding\":[2],\"hoist\":[4],\"containingElement\":[16],\"filter\":[4],\"asyncFilter\":[4,\"async-filter\"],\"filterPlaceholder\":[1,\"filter-placeholder\"],\"autofocusFilter\":[4,\"autofocus-filter\"],\"filterDebounce\":[2,\"filter-debounce\"],\"disableHideOnEnterAndSpace\":[4,\"disable-hide-on-enter-and-space\"],\"options\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"filteredOptions\":[32],\"show\":[64],\"hide\":[64],\"reposition\":[64]},null,{\"open\":[\"handleOpenChange\"],\"distance\":[\"handlePopoverOptionsChange\"],\"hoist\":[\"handlePopoverOptionsChange\"],\"placement\":[\"handlePopoverOptionsChange\"],\"skidding\":[\"handlePopoverOptionsChange\"],\"options\":[\"handleOptionsChange\"]}],[1,\"six-menu\",{\"removeBoxShadow\":[4,\"remove-box-shadow\"],\"items\":[16],\"itemsShown\":[2,\"items-shown\"],\"virtualScroll\":[4,\"virtual-scroll\"],\"itemSize\":[2,\"item-size\"],\"scrollingDebounce\":[2,\"scrolling-debounce\"],\"scrollingIndex\":[32],\"sixMenuItemHeight\":[32],\"typeToSelect\":[64]}]]],[\"six-icon-button\",[[1,\"six-icon-button\",{\"name\":[513],\"size\":[513],\"label\":[513],\"disabled\":[516],\"html\":[513]}]]]]"), options);
7
+ await globalScripts();
8
+ return bootstrapLazy(JSON.parse("[[\"six-select\",[[1,\"six-select\",{\"multiple\":[4],\"selectAllButton\":[4,\"select-all-button\"],\"selectAllText\":[1,\"select-all-text\"],\"maxTagsVisible\":[2,\"max-tags-visible\"],\"disabled\":[4],\"name\":[1],\"placeholder\":[1],\"filterPlaceholder\":[1,\"filter-placeholder\"],\"filterDebounce\":[2,\"filter-debounce\"],\"size\":[1],\"hoist\":[4],\"value\":[1025],\"pill\":[4],\"helpText\":[1,\"help-text\"],\"required\":[4],\"clearable\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"line\":[4],\"filter\":[4],\"asyncFilter\":[4,\"async-filter\"],\"autocomplete\":[4],\"inputDebounce\":[2,\"input-debounce\"],\"options\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32],\"hasErrorTextSlot\":[32],\"isOpen\":[32],\"displayedValues\":[32],\"selectionContainerItems\":[32],\"setFocus\":[64]},null,{\"disabled\":[\"handleDisabledChange\"],\"helpText\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"],\"multiple\":[\"handleMultipleChange\"],\"value\":[\"handleValueChange\"]}]]],[\"six-header\",[[1,\"six-header\",{\"shiftContent\":[4,\"shift-content\"],\"hideHamburgerMenu\":[4,\"hide-hamburger-menu\"],\"openHamburgerMenu\":[4,\"open-hamburger-menu\"],\"openSearch\":[4,\"open-search\"],\"clickableLogo\":[4,\"clickable-logo\"],\"selectedApp\":[32],\"selectedSection\":[32],\"setSearchOpenState\":[64],\"getIsSearchOpen\":[64]},null,{\"openSearch\":[\"handleOpenSearchChange\"]}]]],[\"six-datepicker\",[[1,\"six-datepicker\",{\"type\":[1],\"locale\":[1],\"open\":[1540],\"inline\":[516],\"readonly\":[4],\"disabled\":[4],\"allowedDates\":[16],\"min\":[16],\"max\":[16],\"closeOnSelect\":[4,\"close-on-select\"],\"placement\":[1],\"size\":[1],\"required\":[4],\"defaultDate\":[1,\"default-date\"],\"placeholder\":[1],\"value\":[1040],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"containingElement\":[16],\"dateFormat\":[1,\"date-format\"],\"debounce\":[2],\"name\":[513],\"clearable\":[4],\"iconPosition\":[1,\"icon-position\"],\"hoist\":[4],\"pointerDate\":[32],\"selectionMode\":[32],\"isDropDownContentUp\":[32],\"setFocus\":[64],\"select\":[64]},[[9,\"resize\",\"resizeHandler\"],[9,\"scroll\",\"scrollHandler\"]],{\"debounce\":[\"debounceChanged\"],\"value\":[\"valueChanged\"]}]]],[\"six-search-field\",[[1,\"six-search-field\",{\"placeholder\":[1],\"debounce\":[514],\"disabled\":[516],\"value\":[513],\"clearable\":[4]},null,{\"value\":[\"handleValueChange\"]}]]],[\"six-tag\",[[1,\"six-tag\",{\"type\":[513],\"size\":[513],\"pill\":[516],\"clearable\":[516]}]]],[\"six-tile\",[[1,\"six-tile\",{\"label\":[1],\"iconName\":[1,\"icon-name\"],\"closeable\":[4],\"elevated\":[4],\"disableTooltip\":[4,\"disable-tooltip\"],\"disabled\":[516],\"size\":[513],\"visible\":[32],\"hasIconSlot\":[32],\"hasLabelSlot\":[32],\"hide\":[64],\"show\":[64]}]]],[\"six-alert\",[[1,\"six-alert\",{\"open\":[1540],\"closable\":[516],\"type\":[513],\"duration\":[2],\"isVisible\":[32],\"show\":[64],\"hide\":[64],\"toast\":[64]},null,{\"open\":[\"handleOpenChange\"],\"duration\":[\"handleDurationChange\"]}]]],[\"six-dialog\",[[1,\"six-dialog\",{\"open\":[1540],\"label\":[1],\"noHeader\":[4,\"no-header\"],\"hasFooter\":[32],\"isVisible\":[32],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-drawer\",[[1,\"six-drawer\",{\"open\":[1540],\"label\":[1],\"placement\":[1],\"contained\":[4],\"noHeader\":[4,\"no-header\"],\"hasFooter\":[32],\"isVisible\":[32],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-file-upload\",[[2,\"six-file-upload\",{\"compact\":[4],\"label\":[1],\"disabled\":[4],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"uploading\":[516],\"isOver\":[32]},[[1,\"dragenter\",\"dragenterHandler\"],[1,\"dragover\",\"dragoverHandler\"],[1,\"dragleave\",\"dragleaveHandler\"],[1,\"drop\",\"dropHandler\"]]]]],[\"six-root\",[[1,\"six-root\",{\"padded\":[4],\"stage\":[1],\"version\":[1]}]]],[\"six-sidebar-item-group\",[[1,\"six-sidebar-item-group\",{\"name\":[1],\"icon\":[1],\"value\":[513],\"open\":[516],\"summaryIcon\":[1,\"summary-icon\"],\"href\":[513],\"hasItems\":[32],\"summaryIconHasContent\":[32]}]]],[\"six-tab\",[[1,\"six-tab\",{\"panel\":[513],\"active\":[516],\"closable\":[4],\"disabled\":[516],\"setFocus\":[64],\"removeFocus\":[64]}]]],[\"six-tab-group\",[[1,\"six-tab-group\",{\"placement\":[1],\"noScrollControls\":[4,\"no-scroll-controls\"],\"hasLeftControl\":[32],\"hasRightControl\":[32],\"show\":[64]},null,{\"noScrollControls\":[\"handleNoScrollControlsChange\"]}]]],[\"six-avatar\",[[1,\"six-avatar\",{\"image\":[1],\"alt\":[1],\"initials\":[1],\"shape\":[1],\"hasError\":[32]}]]],[\"six-error-page\",[[1,\"six-error-page\",{\"errorCode\":[2,\"error-code\"],\"language\":[1],\"customTitle\":[1,\"custom-title\"],\"customDescription\":[16],\"customIcon\":[1,\"custom-icon\"]}]]],[\"six-file-list-item\",[[1,\"six-file-list-item\",{\"identifier\":[513],\"name\":[513],\"date\":[513],\"size\":[514],\"nodownload\":[516],\"nodelete\":[516]}]]],[\"six-group-label\",[[1,\"six-group-label\",{\"size\":[513],\"label\":[1],\"helpText\":[1,\"help-text\"],\"disabled\":[516],\"required\":[4],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32]},null,{\"helpText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"]}]]],[\"six-range\",[[1,\"six-range\",{\"name\":[1],\"value\":[1026],\"required\":[4],\"helpText\":[1,\"help-text\"],\"disabled\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"min\":[2],\"max\":[2],\"step\":[2],\"tooltip\":[1],\"tooltipFormatter\":[16],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasErrorTextSlot\":[32],\"hasLabelSlot\":[32],\"hasTooltip\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"label\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"helpText\":[\"handleLabelChange\"],\"value\":[\"handleValueChange\"],\"min\":[\"handleValueChange\"],\"max\":[\"handleValueChange\"]}]]],[\"six-switch\",[[1,\"six-switch\",{\"name\":[1],\"value\":[1],\"disabled\":[4],\"required\":[4],\"checked\":[1540],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"hasFocus\":[32],\"hasErrorTextSlot\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"checked\":[\"handleCheckedChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"]}]]],[\"six-textarea\",[[1,\"six-textarea\",{\"size\":[513],\"name\":[513],\"value\":[1537],\"helpText\":[1,\"help-text\"],\"placeholder\":[1],\"rows\":[2],\"resize\":[1],\"disabled\":[516],\"readonly\":[516],\"minlength\":[514],\"maxlength\":[514],\"required\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"autofocus\":[4],\"spellcheck\":[4],\"inputmode\":[1],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32],\"hasErrorTextSlot\":[32],\"setFocus\":[64],\"removeFocus\":[64],\"select\":[64],\"setSelectionRange\":[64],\"setRangeText\":[64]},null,{\"helpText\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"],\"rows\":[\"handleRowsChange\"],\"value\":[\"handleValueChange\"]}]]],[\"six-badge\",[[1,\"six-badge\",{\"type\":[1],\"pill\":[4],\"pulse\":[4]}]]],[\"six-card\",[[1,\"six-card\"]]],[\"six-file-list\",[[1,\"six-file-list\"]]],[\"six-footer\",[[1,\"six-footer\"]]],[\"six-language-switcher\",[[1,\"six-language-switcher\",{\"selected\":[1537],\"languages\":[16]},null,{\"languages\":[\"handleChangesLanguages\"]}]]],[\"six-layout-grid\",[[1,\"six-layout-grid\",{\"columns\":[1026]},null,{\"columns\":[\"handleColumnsChange\"]}]]],[\"six-main-container\",[[1,\"six-main-container\",{\"padded\":[4]}]]],[\"six-menu-divider\",[[1,\"six-menu-divider\"]]],[\"six-menu-label\",[[1,\"six-menu-label\"]]],[\"six-progress-bar\",[[1,\"six-progress-bar\",{\"percentage\":[2],\"indeterminate\":[4]}]]],[\"six-progress-ring\",[[1,\"six-progress-ring\",{\"size\":[2],\"strokeWidth\":[2,\"stroke-width\"],\"percentage\":[2]},null,{\"percentage\":[\"handlePercentageChange\"]}]]],[\"six-radio\",[[1,\"six-radio\",{\"name\":[1],\"value\":[513],\"disabled\":[4],\"checked\":[1540],\"invalid\":[516],\"hasFocus\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"checked\":[\"handleCheckedChange\"],\"name\":[\"handleNameChange\"]}]]],[\"six-sidebar\",[[1,\"six-sidebar\",{\"position\":[1],\"open\":[1540],\"width\":[1],\"toggled\":[4],\"isVisible\":[32],\"toggle\":[64],\"show\":[64],\"hide\":[64],\"selectItemByIndex\":[64],\"selectItemByName\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-sidebar-item\",[[1,\"six-sidebar-item\",{\"value\":[513],\"selected\":[516],\"disabled\":[516],\"href\":[513]}]]],[\"six-tab-panel\",[[1,\"six-tab-panel\",{\"name\":[1],\"active\":[516]}]]],[\"six-error\",[[1,\"six-error\"]]],[\"six-icon\",[[1,\"six-icon\",{\"size\":[513],\"filled\":[4]}]]],[\"six-timepicker\",[[1,\"six-timepicker\",{\"format\":[1],\"separator\":[1],\"value\":[1025],\"open\":[1540],\"inline\":[516],\"readonly\":[4],\"disabled\":[4],\"placement\":[1],\"size\":[1],\"required\":[4],\"placeholder\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"label\":[1],\"invalid\":[516],\"name\":[513],\"clearable\":[4],\"iconPosition\":[1,\"icon-position\"],\"hoist\":[4],\"timeout\":[2],\"interval\":[2],\"defaultTime\":[1,\"default-time\"],\"debounce\":[2],\"isPopupContentUp\":[32],\"isDropDownContentUp\":[32],\"popupValue\":[32],\"setFocus\":[64]},[[9,\"resize\",\"resizeHandler\"],[9,\"scroll\",\"scrollHandler\"]],{\"value\":[\"valueChanged\"]}]]],[\"six-button\",[[1,\"six-button\",{\"type\":[513],\"size\":[513],\"caret\":[4],\"disabled\":[516],\"loading\":[516],\"pill\":[516],\"circle\":[516],\"submit\":[516],\"reset\":[516],\"name\":[1],\"value\":[1],\"href\":[1],\"target\":[1],\"download\":[1],\"hasFocus\":[32],\"hasLabel\":[32],\"hasPrefix\":[32],\"hasSuffix\":[32],\"setFocus\":[64],\"removeFocus\":[64]}]]],[\"six-details\",[[1,\"six-details\",{\"open\":[1540],\"summary\":[1],\"summaryIcon\":[1,\"summary-icon\"],\"summaryIconSize\":[513,\"summary-icon-size\"],\"disabled\":[4],\"inline\":[4],\"selectableEmpty\":[4,\"selectable-empty\"],\"hasContent\":[4,\"has-content\"],\"animateSummaryIcon\":[32],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-stage-indicator\",[[1,\"six-stage-indicator\",{\"stage\":[1]}]]],[\"six-picto\",[[1,\"six-picto\",{\"size\":[1]}]]],[\"six-item-picker\",[[1,\"six-item-picker\",{\"value\":[1544],\"type\":[1],\"min\":[1544],\"max\":[1544],\"roundtrip\":[516],\"step\":[514],\"items\":[16],\"padded\":[4],\"paddingLength\":[2,\"padding-length\"],\"paddingChar\":[1,\"padding-char\"],\"paddingDirection\":[1,\"padding-direction\"],\"timeout\":[2],\"interval\":[2],\"debounce\":[2],\"_items\":[32],\"_itemIndexes\":[32]},null,{\"value\":[\"handleValueChange\"],\"debounce\":[\"debounceChanged\"],\"items\":[\"handleSetChange\"]}]]],[\"six-tooltip\",[[1,\"six-tooltip\",{\"content\":[1],\"placement\":[1],\"disabled\":[4],\"distance\":[2],\"open\":[1540],\"skidding\":[2],\"trigger\":[1],\"show\":[64],\"hide\":[64]},null,{\"open\":[\"handleOpenChange\"]}]]],[\"six-spinner\",[[1,\"six-spinner\",{\"six\":[4]}]]],[\"six-input\",[[1,\"six-input\",{\"type\":[513],\"size\":[513],\"name\":[513],\"value\":[1537],\"pill\":[516],\"helpText\":[1,\"help-text\"],\"placeholder\":[1],\"disabled\":[516],\"readonly\":[516],\"minlength\":[514],\"maxlength\":[514],\"min\":[514],\"max\":[514],\"step\":[514],\"pattern\":[513],\"dropdownSearch\":[4,\"dropdown-search\"],\"required\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"autofocus\":[4],\"spellcheck\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"clearable\":[4],\"togglePassword\":[4,\"toggle-password\"],\"inputmode\":[1],\"line\":[4],\"hasFocus\":[32],\"hasHelpTextSlot\":[32],\"hasLabelSlot\":[32],\"hasErrorSlot\":[32],\"isPasswordVisible\":[32],\"setFocus\":[64],\"removeFocus\":[64],\"select\":[64],\"setSelectionRange\":[64],\"setRangeText\":[64]},null,{\"helpText\":[\"handleLabelChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"],\"value\":[\"handleValueChange\"]}]]],[\"six-checkbox_2\",[[1,\"six-menu-item\",{\"checkType\":[1,\"check-type\"],\"checked\":[516],\"value\":[513],\"disabled\":[516],\"hasFocus\":[32],\"active\":[32],\"setFocus\":[64],\"removeFocus\":[64],\"getTextLabel\":[64]}],[1,\"six-checkbox\",{\"name\":[1],\"value\":[1],\"disabled\":[4],\"required\":[4],\"label\":[1],\"errorText\":[1,\"error-text\"],\"errorTextCount\":[2,\"error-text-count\"],\"invalid\":[516],\"checked\":[1540],\"indeterminate\":[1540],\"hasFocus\":[32],\"hasLabelSlot\":[32],\"hasErrorSlot\":[32],\"setFocus\":[64],\"removeFocus\":[64]},null,{\"checked\":[\"handleCheckedChange\"],\"indeterminate\":[\"handleCheckedChange\"],\"errorText\":[\"handleLabelChange\"],\"label\":[\"handleLabelChange\"]}]]],[\"six-dropdown_2\",[[1,\"six-dropdown\",{\"open\":[1540],\"placement\":[1],\"closeOnSelect\":[4,\"close-on-select\"],\"distance\":[2],\"skidding\":[2],\"hoist\":[4],\"containingElement\":[16],\"filter\":[4],\"asyncFilter\":[4,\"async-filter\"],\"filterPlaceholder\":[1,\"filter-placeholder\"],\"autofocusFilter\":[4,\"autofocus-filter\"],\"filterDebounce\":[1026,\"filter-debounce\"],\"disableHideOnEnterAndSpace\":[4,\"disable-hide-on-enter-and-space\"],\"options\":[1040],\"virtualScroll\":[4,\"virtual-scroll\"],\"matchTriggerWidth\":[4,\"match-trigger-width\"],\"renderedOptions\":[32],\"show\":[64],\"hide\":[64],\"reposition\":[64]},null,{\"open\":[\"handleOpenChange\"],\"distance\":[\"handlePopoverOptionsChange\"],\"hoist\":[\"handlePopoverOptionsChange\"],\"placement\":[\"handlePopoverOptionsChange\"],\"skidding\":[\"handlePopoverOptionsChange\"],\"options\":[\"handleOptionsChange\"],\"virtualScroll\":[\"handleOptionsChange\"]}],[1,\"six-menu\",{\"removeBoxShadow\":[4,\"remove-box-shadow\"],\"items\":[16],\"itemsShown\":[2,\"items-shown\"],\"virtualScroll\":[4,\"virtual-scroll\"],\"itemSize\":[2,\"item-size\"],\"scrollingDebounce\":[2,\"scrolling-debounce\"],\"disableKeyboardHandling\":[4,\"disable-keyboard-handling\"],\"scrollingIndex\":[32],\"sixMenuItemHeight\":[32],\"typeToSelect\":[64]}]]],[\"six-icon-button\",[[1,\"six-icon-button\",{\"name\":[513],\"size\":[513],\"label\":[513],\"disabled\":[516],\"html\":[513]}]]]]"), options);
7
9
  };
8
10
 
9
11
  export { defineCustomElements };
@@ -1 +1 @@
1
- {"file":"loader.js","mappings":";;;AAGY,MAAC,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACtD,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS,CAAC;AAEtD,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D;;;;","names":[],"sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return undefined;\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"version":3}
1
+ {"file":"loader.js","mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS,CAAC;AACtD,EAAE,MAAM,aAAa,EAAE,CAAC;AACxB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D;;;;","names":[],"sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\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
- //# sourceMappingURL=modal-96526245.js.map
33
+ //# sourceMappingURL=modal-6c1288e3.js.map
@@ -0,0 +1 @@
1
+ {"file":"modal-6c1288e3.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}
@@ -68,7 +68,7 @@ function setPopupAsFixPosition(popup) {
68
68
  popup.style.top = popupDimensions['top'] + 'px';
69
69
  popup.style.left = popupDimensions['left'] + 'px';
70
70
  popup.style.width = popupDimensions['width'] + 'px';
71
- popup.style.height = popupDimensions['height'] + 'px';
71
+ popup.style.minHeight = 'fit-content';
72
72
  return popupDimensions;
73
73
  }
74
74
  /*
@@ -95,4 +95,4 @@ function movePopup(hoist, open, popup, inputElement, wrapper, minPopupHeight) {
95
95
 
96
96
  export { adjustPopupForHoisting as a, adjustPopupForSmallScreens as b, calcIsDropDownContentUp as c, movePopup as m };
97
97
 
98
- //# sourceMappingURL=popup-e8049817.js.map
98
+ //# sourceMappingURL=popup-7209e9d5.js.map
@@ -0,0 +1 @@
1
+ {"file":"popup-7209e9d5.js","mappings":"AAAA;;;;SAIgB,sBAAsB,CACpC,KAAc,EACd,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H;;;;","names":[],"sources":["src/utils/popup.ts"],"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"],"version":3}
@@ -1,6 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-17d8173e.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-52a755dc.js';
2
+ import { g as getSlot } from './slot-56531341.js';
2
3
 
3
- const sixAlertCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}: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--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)}";
4
+ 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)}";
5
+ const SixAlertStyle0 = sixAlertCss;
4
6
 
5
7
  const toastStack = Object.assign(document.createElement('div'), { className: 'six-toast-stack' });
6
8
  const SixAlert = class {
@@ -13,8 +15,11 @@ const SixAlert = class {
13
15
  this.handleCloseClick = () => {
14
16
  this.hide();
15
17
  };
16
- this.handleMouseMove = () => {
17
- this.restartAutoHide();
18
+ this.handleMouseEnter = () => {
19
+ this.pauseAutoHide();
20
+ };
21
+ this.handleMouseLeave = () => {
22
+ this.resetAutoHide();
18
23
  };
19
24
  this.handleTransitionEnd = (event) => {
20
25
  const target = event.target;
@@ -78,13 +83,33 @@ const SixAlert = class {
78
83
  * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when
79
84
  * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by
80
85
  * calling this method again. The returned promise will resolve after the alert is hidden.
86
+ * @param adjustPosition If true, the top and right position of the toast stack is shifted according to the
87
+ * six-root header's height and the presence of a vertical scrollbar.
81
88
  */
82
- async toast() {
89
+ async toast(adjustPosition = true) {
83
90
  return new Promise((resolve) => {
91
+ var _a;
84
92
  if (!toastStack.parentElement) {
85
93
  document.body.append(toastStack);
86
94
  }
87
95
  toastStack.append(this.host);
96
+ if (adjustPosition) {
97
+ const sixRoot = document.querySelector('six-root');
98
+ const headerSlot = getSlot(sixRoot, 'header');
99
+ const mainSlot = (_a = sixRoot === null || sixRoot === void 0 ? void 0 : sixRoot.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('host main');
100
+ if (mainSlot != null && mainSlot instanceof HTMLElement) {
101
+ const scrollbarWidth = mainSlot.offsetWidth - mainSlot.clientWidth;
102
+ toastStack.style.right = `${scrollbarWidth}px`;
103
+ }
104
+ if (headerSlot != null) {
105
+ const rect = headerSlot === null || headerSlot === void 0 ? void 0 : headerSlot.getBoundingClientRect();
106
+ toastStack.style.top = `${rect.top + rect.height}px`;
107
+ }
108
+ }
109
+ else {
110
+ toastStack.style.top = '0';
111
+ toastStack.style.right = '0';
112
+ }
88
113
  requestAnimationFrame(() => this.show());
89
114
  this.host.addEventListener('six-alert-after-hide', () => {
90
115
  this.host.remove();
@@ -96,14 +121,21 @@ const SixAlert = class {
96
121
  }, { once: true });
97
122
  });
98
123
  }
99
- restartAutoHide() {
124
+ pauseAutoHide() {
100
125
  clearTimeout(this.autoHideTimeout);
126
+ }
127
+ resetAutoHide() {
101
128
  if (this.open && this.duration < Infinity) {
102
129
  this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);
103
130
  }
104
131
  }
132
+ restartAutoHide() {
133
+ this.pauseAutoHide();
134
+ this.resetAutoHide();
135
+ }
105
136
  render() {
106
- return (h("div", { part: "base", class: {
137
+ const asToast = this.host.closest('.six-toast-stack') != null;
138
+ return (h("div", { key: 'cd9d14bef5923cf2ec8add1f61e92733aa9dd59f', part: "base", class: {
107
139
  alert: true,
108
140
  'alert--open': this.open,
109
141
  'alert--visible': this.isVisible,
@@ -113,7 +145,8 @@ const SixAlert = class {
113
145
  'alert--info': this.type === 'info',
114
146
  'alert--warning': this.type === 'warning',
115
147
  'alert--danger': this.type === 'danger',
116
- }, 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 })))));
148
+ 'alert--shadow': asToast,
149
+ }, 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", { class: "alert__close" }, h("six-icon-button", { name: "clear", exportparts: "base:close-button", onClick: this.handleCloseClick })))));
117
150
  }
118
151
  get host() { return getElement(this); }
119
152
  static get watchers() { return {
@@ -121,7 +154,7 @@ const SixAlert = class {
121
154
  "duration": ["handleDurationChange"]
122
155
  }; }
123
156
  };
124
- SixAlert.style = sixAlertCss;
157
+ SixAlert.style = SixAlertStyle0;
125
158
 
126
159
  export { SixAlert as six_alert };
127
160
 
@@ -1 +1 @@
1
- {"file":"six-alert.entry.js","mappings":";;AAAA,MAAM,WAAW,GAAG,u1DAAu1D;;ACG32D,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC;MAsBrF,QAAQ;;;;;;;QA2HX,qBAAgB,GAAG;YACzB,IAAI,CAAC,IAAI,EAAE,CAAC;SACb,CAAC;QAEM,oBAAe,GAAG;YACxB,IAAI,CAAC,eAAe,EAAE,CAAC;SACxB,CAAC;QAEM,wBAAmB,GAAG,CAAC,KAAsB;YACnD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;;YAG3C,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAC1E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC;gBAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;aACjE;SACF,CAAC;yBAtImB,KAAK;oBAGqB,KAAK;wBAGhB,KAAK;oBAG8C,SAAS;wBAM7E,QAAQ;;IAG3B,gBAAgB;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;KACvC;IAGD,oBAAoB;QAClB,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAcD,iBAAiB;;QAEf,IAAI,IAAI,CAAC,IAAI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AAM,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":[],"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--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, Method, Prop, State, Watch, h } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\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: 'primary' | 'success' | 'info' | 'warning' | 'danger' = '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 */\n @Method()\n async toast() {\n return new Promise<void>((resolve) => {\n if (!toastStack.parentElement) {\n document.body.append(toastStack);\n }\n\n toastStack.append(this.host);\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 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 }}\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"],"version":3}
1
+ {"file":"six-alert.entry.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,SAAS,EAAE,iB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-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}