@zanichelli/albe-web-components 19.2.12-rc3 → 19.2.12

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 (1449) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js +3 -0
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  4. package/dist/cjs/breakpoints-B7vFm-3T.js +3 -0
  5. package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
  6. package/dist/cjs/iconset-Cz-UsfoU.js +3 -0
  7. package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
  8. package/dist/cjs/index-D_S5lGcb.js +3 -0
  9. package/dist/cjs/index-D_S5lGcb.js.map +1 -0
  10. package/dist/cjs/index-wGaSHN1_.js +3 -0
  11. package/dist/cjs/index-wGaSHN1_.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +4 -1
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +4 -1
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-BmGKM-4y.js +1446 -0
  17. package/dist/cjs/reactive-controller-BmGKM-4y.js.map +1 -0
  18. package/dist/cjs/utils-C5_wGVkJ.js +3 -0
  19. package/dist/cjs/utils-C5_wGVkJ.js.map +1 -0
  20. package/dist/cjs/utils-DRCgbM7t.js +919 -0
  21. package/dist/cjs/utils-DRCgbM7t.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +4 -1
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +4 -1
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +3 -0
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +5 -2
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +4 -1
  31. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  32. package/dist/cjs/z-app-header_12.cjs.entry.js +57 -121
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +4 -1
  35. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  36. package/dist/cjs/z-avatar.cjs.entry.js +5 -2
  37. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-book-card-app.cjs.entry.js +4 -1
  39. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  40. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +5 -2
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +4 -1
  43. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-cover.cjs.entry.js +4 -1
  45. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  46. package/dist/cjs/z-breadcrumb.cjs.entry.js +6 -3
  47. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  48. package/dist/cjs/z-button-sort.cjs.entry.js +4 -1
  49. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-card.cjs.entry.js +3 -0
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +4 -1
  53. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-chip.cjs.entry.js +5 -2
  55. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-color-picker.cjs.entry.js +5 -2
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +5 -2
  59. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-cover-hero.cjs.entry.js +5 -2
  61. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-date-picker.cjs.entry.js +4 -1
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +23 -39
  65. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  66. package/dist/cjs/z-file-upload.cjs.entry.js +5 -2
  67. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-file.cjs.entry.js +4 -1
  69. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  70. package/dist/cjs/z-ghost-loading.cjs.entry.js +4 -1
  71. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  72. package/dist/cjs/z-info-box.cjs.entry.js +4 -1
  73. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-info-reveal.cjs.entry.js +4 -1
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-logo.cjs.entry.js +5 -2
  77. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-menu-deprecated.cjs.entry.js +5 -2
  79. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +4 -1
  81. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section.cjs.entry.js +4 -1
  83. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu.cjs.entry.js +4 -1
  85. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -0
  87. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -0
  89. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +3 -0
  91. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer.cjs.entry.js +3 -0
  93. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-icon.cjs.entry.js +3 -0
  95. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-info.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-list.cjs.entry.js +3 -0
  99. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -1
  101. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -1
  103. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list.cjs.entry.js +3 -0
  105. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-navigation-tabs.cjs.entry.js +5 -2
  107. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-notification.cjs.entry.js +4 -1
  109. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-otp.cjs.entry.js +3 -0
  111. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-pagination.cjs.entry.js +3 -0
  113. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-panel-elem.cjs.entry.js +5 -2
  115. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-popover.cjs.entry.js +5 -2
  117. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-range-picker.cjs.entry.js +6 -3
  119. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-result-card.cjs.entry.js +3 -0
  121. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-section-title.cjs.entry.js +4 -1
  123. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-select.cjs.entry.js +9 -6
  125. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-skip-to-content.cjs.entry.js +5 -2
  127. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-slideshow.cjs.entry.js +4 -1
  129. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-stepper-item.cjs.entry.js +4 -1
  131. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper.cjs.entry.js +4 -1
  133. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-table.cjs.entry.js +5 -2
  135. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-tbody.cjs.entry.js +4 -1
  137. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-td.cjs.entry.js +4 -1
  139. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-tfoot.cjs.entry.js +4 -1
  141. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-th.cjs.entry.js +4 -1
  143. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-thead.cjs.entry.js +4 -1
  145. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-toast-notification-list.cjs.entry.js +4 -1
  147. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toggle-button.cjs.entry.js +5 -2
  151. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-switch.cjs.entry.js +7 -4
  153. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-tool.cjs.entry.js +6 -3
  155. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-toolbar.cjs.entry.js +4 -1
  157. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-tooltip.cjs.entry.js +4 -1
  159. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tr.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tree-list.cjs.entry.js +4 -1
  163. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-visually-hidden.cjs.entry.js +4 -1
  165. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  166. package/dist/collection/beans/index.js +1 -0
  167. package/dist/collection/beans/index.js.map +1 -0
  168. package/dist/collection/collection-manifest.json +11 -11
  169. package/dist/collection/components/book-card/z-book-card/index.js +2 -8
  170. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  171. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  172. package/dist/collection/components/book-card/z-book-card-app/index.js +2 -3
  173. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  174. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  175. package/dist/collection/components/date-picker/utils.js +1 -0
  176. package/dist/collection/components/date-picker/utils.js.map +1 -0
  177. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -1
  178. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
  179. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -3
  180. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
  181. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +2 -54
  182. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  184. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +2 -5
  185. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  186. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  187. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +2 -2
  188. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  189. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  190. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +2 -1
  191. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  192. package/dist/collection/components/deprecated/z-section-title/index.js +2 -2
  193. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  194. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  195. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +3 -2
  196. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  197. package/dist/collection/components/file-upload/z-file/index.js +2 -1
  198. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  199. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -2
  200. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  201. package/dist/collection/components/index.js +1 -0
  202. package/dist/collection/components/index.js.map +1 -0
  203. package/dist/collection/components/list/z-list/index.js +2 -1
  204. package/dist/collection/components/list/z-list/index.js.map +1 -0
  205. package/dist/collection/components/list/z-list-element/index.js +2 -1
  206. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  207. package/dist/collection/components/list/z-list-group/index.js +3 -2
  208. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  209. package/dist/collection/components/list/z-tree-list/index.js +2 -1
  210. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  211. package/dist/collection/components/table/cells/z-td/index.js +2 -1
  212. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  213. package/dist/collection/components/table/cells/z-th/index.js +2 -1
  214. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  215. package/dist/collection/components/table/z-table/index.js +2 -2
  216. package/dist/collection/components/table/z-table/index.js.map +1 -0
  217. package/dist/collection/components/table/z-table/styles.css +3 -0
  218. package/dist/collection/components/table/z-tbody/index.js +2 -1
  219. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  220. package/dist/collection/components/table/z-tfoot/index.js +2 -1
  221. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  222. package/dist/collection/components/table/z-thead/index.js +2 -1
  223. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  224. package/dist/collection/components/table/z-tr/index.js +2 -1
  225. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/styles.css +2 -2
  227. package/dist/collection/components/z-accordion/index.js +4 -11
  228. package/dist/collection/components/z-accordion/index.js.map +1 -0
  229. package/dist/collection/components/z-accordion/styles.css +12 -0
  230. package/dist/collection/components/z-anchor-navigation/index.js +4 -3
  231. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  232. package/dist/collection/components/z-app-header/index.js +22 -8
  233. package/dist/collection/components/z-app-header/index.js.map +1 -0
  234. package/dist/collection/components/z-app-header/styles.css +12 -12
  235. package/dist/collection/components/z-aria-alert/index.js +2 -1
  236. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  237. package/dist/collection/components/z-avatar/index.js +3 -2
  238. package/dist/collection/components/z-avatar/index.js.map +1 -0
  239. package/dist/collection/components/z-book-cover/index.js +2 -5
  240. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  241. package/dist/collection/components/z-book-cover/styles.css +6 -0
  242. package/dist/collection/components/z-breadcrumb/index.js +3 -2
  243. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  244. package/dist/collection/components/z-button/index.js +3 -2
  245. package/dist/collection/components/z-button/index.js.map +1 -0
  246. package/dist/collection/components/z-button-sort/index.js +2 -1
  247. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  248. package/dist/collection/components/z-card/index.js +2 -8
  249. package/dist/collection/components/z-card/index.js.map +1 -0
  250. package/dist/collection/components/z-card/styles.css +9 -0
  251. package/dist/collection/components/z-carousel/index.js +1 -2
  252. package/dist/collection/components/z-carousel/index.js.map +1 -0
  253. package/dist/collection/components/z-carousel/styles.css +7 -3
  254. package/dist/collection/components/z-chip/index.js +3 -2
  255. package/dist/collection/components/z-chip/index.js.map +1 -0
  256. package/dist/collection/components/z-color-picker/index.js +2 -1
  257. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  258. package/dist/collection/components/z-combobox/index.js +2 -1
  259. package/dist/collection/components/z-combobox/index.js.map +1 -0
  260. package/dist/collection/components/z-cover-hero/index.js +3 -5
  261. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  262. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  263. package/dist/collection/components/z-divider/index.js +2 -1
  264. package/dist/collection/components/z-divider/index.js.map +1 -0
  265. package/dist/collection/components/z-ghost-loading/index.js +2 -1
  266. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  267. package/dist/collection/components/z-icon/index.js +4 -3
  268. package/dist/collection/components/z-icon/index.js.map +1 -0
  269. package/dist/collection/components/z-info-box/index.js +2 -1
  270. package/dist/collection/components/z-info-box/index.js.map +1 -0
  271. package/dist/collection/components/z-info-reveal/index.js +2 -5
  272. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  273. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  274. package/dist/collection/components/z-input/index.js +2 -1
  275. package/dist/collection/components/z-input/index.js.map +1 -0
  276. package/dist/collection/components/z-input-message/index.js +2 -1
  277. package/dist/collection/components/z-input-message/index.js.map +1 -0
  278. package/dist/collection/components/z-logo/index.js +2 -1
  279. package/dist/collection/components/z-logo/index.js.map +1 -0
  280. package/dist/collection/components/z-logo/styles.css +5 -0
  281. package/dist/collection/components/z-menu/index.js +1 -1
  282. package/dist/collection/components/z-menu/index.js.map +1 -0
  283. package/dist/collection/components/z-menu/styles.css +3 -0
  284. package/dist/collection/components/z-menu-section/index.js +2 -1
  285. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  286. package/dist/collection/components/z-modal/index.js +17 -37
  287. package/dist/collection/components/z-modal/index.js.map +1 -0
  288. package/dist/collection/components/z-modal/styles.css +5 -2
  289. package/dist/collection/components/z-navigation-tabs/index.js +3 -4
  290. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  291. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  292. package/dist/collection/components/z-notification/index.js +2 -4
  293. package/dist/collection/components/z-notification/index.js.map +1 -0
  294. package/dist/collection/components/z-notification/styles.css +5 -0
  295. package/dist/collection/components/z-offcanvas/index.js +43 -119
  296. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  297. package/dist/collection/components/z-offcanvas/styles.css +6 -0
  298. package/dist/collection/components/z-pagination/index.js +1 -2
  299. package/dist/collection/components/z-pagination/index.js.map +1 -0
  300. package/dist/collection/components/z-pagination/styles.css +6 -0
  301. package/dist/collection/components/z-panel-elem/index.js +3 -2
  302. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  303. package/dist/collection/components/z-popover/index.js +2 -6
  304. package/dist/collection/components/z-popover/index.js.map +1 -0
  305. package/dist/collection/components/z-popover/styles.css +6 -0
  306. package/dist/collection/components/z-result-card/index.js +1 -0
  307. package/dist/collection/components/z-result-card/index.js.map +1 -0
  308. package/dist/collection/components/z-searchbar/index.js +4 -8
  309. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  310. package/dist/collection/components/z-searchbar/styles.css +5 -0
  311. package/dist/collection/components/z-select/index.js +6 -5
  312. package/dist/collection/components/z-select/index.js.map +1 -0
  313. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  314. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  315. package/dist/collection/components/z-stepper/index.js +2 -1
  316. package/dist/collection/components/z-stepper/index.js.map +1 -0
  317. package/dist/collection/components/z-stepper-item/index.js +2 -1
  318. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  319. package/dist/collection/components/z-tag/index.js +3 -4
  320. package/dist/collection/components/z-tag/index.js.map +1 -0
  321. package/dist/collection/components/z-tag/styles.css +5 -0
  322. package/dist/collection/components/z-toast-notification/index.js +4 -3
  323. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  324. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  325. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  326. package/dist/collection/components/z-toggle-button/index.js +3 -2
  327. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  328. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  329. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  330. package/dist/collection/components/z-tool/index.js +3 -2
  331. package/dist/collection/components/z-tool/index.js.map +1 -0
  332. package/dist/collection/components/z-toolbar/index.js +2 -2
  333. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  334. package/dist/collection/components/z-toolbar/styles.css +4 -0
  335. package/dist/collection/components/z-tooltip/index.js +2 -5
  336. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  337. package/dist/collection/components/z-tooltip/styles.css +6 -0
  338. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  339. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  340. package/dist/collection/constants/breakpoints.js +1 -0
  341. package/dist/collection/constants/breakpoints.js.map +1 -0
  342. package/dist/collection/constants/icons.js +1 -0
  343. package/dist/collection/constants/icons.js.map +1 -0
  344. package/dist/collection/constants/iconset.js +1 -0
  345. package/dist/collection/constants/iconset.js.map +1 -0
  346. package/dist/collection/index.js +1 -0
  347. package/dist/collection/index.js.map +1 -0
  348. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -2
  349. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  350. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -0
  351. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  352. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -0
  353. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  354. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -0
  355. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  356. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -0
  357. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  358. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -0
  359. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  360. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -0
  361. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  362. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -0
  363. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  364. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -0
  365. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  366. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
  367. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  368. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -0
  369. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  370. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -0
  371. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  372. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -0
  373. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  374. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -0
  375. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  376. package/dist/collection/snowflakes/myz/z-otp/index.js +1 -0
  377. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  378. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  379. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  380. package/dist/collection/utils/focus-trap-controller.js +100 -0
  381. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  382. package/dist/collection/utils/reactive-controller.js +46 -0
  383. package/dist/collection/utils/reactive-controller.js.map +1 -0
  384. package/dist/collection/utils/storybook-utils.js +8 -0
  385. package/dist/collection/utils/storybook-utils.js.map +1 -0
  386. package/dist/collection/utils/utils.js +60 -1
  387. package/dist/collection/utils/utils.js.map +1 -0
  388. package/dist/components/_commonjsHelpers.js +2 -1
  389. package/dist/components/_commonjsHelpers.js.map +1 -0
  390. package/dist/components/breakpoints.js +2 -1
  391. package/dist/components/breakpoints.js.map +1 -0
  392. package/dist/components/iconset.js +2 -1
  393. package/dist/components/iconset.js.map +1 -0
  394. package/dist/components/index.js +2 -1
  395. package/dist/components/index.js.map +1 -0
  396. package/dist/components/index10.js +2 -1
  397. package/dist/components/index10.js.map +1 -0
  398. package/dist/components/index11.js +2 -1
  399. package/dist/components/index11.js.map +1 -0
  400. package/dist/components/index12.js +2 -1
  401. package/dist/components/index12.js.map +1 -0
  402. package/dist/components/index13.js +2 -1
  403. package/dist/components/index13.js.map +1 -0
  404. package/dist/components/index14.js +2 -1
  405. package/dist/components/index14.js.map +1 -0
  406. package/dist/components/index15.js +2 -1
  407. package/dist/components/index15.js.map +1 -0
  408. package/dist/components/index16.js +2 -1
  409. package/dist/components/index16.js.map +1 -0
  410. package/dist/components/index17.js +2 -1
  411. package/dist/components/index17.js.map +1 -0
  412. package/dist/components/index18.js +2 -1
  413. package/dist/components/index18.js.map +1 -0
  414. package/dist/components/index19.js +2 -1
  415. package/dist/components/index19.js.map +1 -0
  416. package/dist/components/index2.js +2 -1
  417. package/dist/components/index2.js.map +1 -0
  418. package/dist/components/index20.js +2 -1
  419. package/dist/components/index20.js.map +1 -0
  420. package/dist/components/index21.js +2 -1
  421. package/dist/components/index21.js.map +1 -0
  422. package/dist/components/index22.js +2 -1
  423. package/dist/components/index22.js.map +1 -0
  424. package/dist/components/index23.js +2 -1
  425. package/dist/components/index23.js.map +1 -0
  426. package/dist/components/index24.js +2 -1
  427. package/dist/components/index24.js.map +1 -0
  428. package/dist/components/index25.js +2 -1
  429. package/dist/components/index25.js.map +1 -0
  430. package/dist/components/index26.js +2 -1
  431. package/dist/components/index26.js.map +1 -0
  432. package/dist/components/index27.js +2 -1
  433. package/dist/components/index27.js.map +1 -0
  434. package/dist/components/index3.js +2 -1
  435. package/dist/components/index3.js.map +1 -0
  436. package/dist/components/index4.js +2 -1
  437. package/dist/components/index4.js.map +1 -0
  438. package/dist/components/index5.js +2 -1
  439. package/dist/components/index5.js.map +1 -0
  440. package/dist/components/index6.js +2 -1
  441. package/dist/components/index6.js.map +1 -0
  442. package/dist/components/index7.js +2 -1
  443. package/dist/components/index7.js.map +1 -0
  444. package/dist/components/index8.js +2 -1
  445. package/dist/components/index8.js.map +1 -0
  446. package/dist/components/index9.js +2 -1
  447. package/dist/components/index9.js.map +1 -0
  448. package/dist/components/reactive-controller.js +6 -0
  449. package/dist/components/reactive-controller.js.map +1 -0
  450. package/dist/components/utils.js +7 -1
  451. package/dist/components/utils.js.map +1 -0
  452. package/dist/components/utils2.js +2 -1
  453. package/dist/components/utils2.js.map +1 -0
  454. package/dist/components/z-accordion.js +2 -1
  455. package/dist/components/z-accordion.js.map +1 -0
  456. package/dist/components/z-alert.js +2 -1
  457. package/dist/components/z-alert.js.map +1 -0
  458. package/dist/components/z-anchor-navigation.js +2 -1
  459. package/dist/components/z-anchor-navigation.js.map +1 -0
  460. package/dist/components/z-app-header-deprecated.js +2 -1
  461. package/dist/components/z-app-header-deprecated.js.map +1 -0
  462. package/dist/components/z-app-header.js +2 -1
  463. package/dist/components/z-app-header.js.map +1 -0
  464. package/dist/components/z-aria-alert.js +2 -1
  465. package/dist/components/z-aria-alert.js.map +1 -0
  466. package/dist/components/z-avatar.js +2 -1
  467. package/dist/components/z-avatar.js.map +1 -0
  468. package/dist/components/z-book-card-app.js +2 -1
  469. package/dist/components/z-book-card-app.js.map +1 -0
  470. package/dist/components/z-book-card-deprecated.js +2 -1
  471. package/dist/components/z-book-card-deprecated.js.map +1 -0
  472. package/dist/components/z-book-card.js +2 -1
  473. package/dist/components/z-book-card.js.map +1 -0
  474. package/dist/components/z-book-cover.js +2 -1
  475. package/dist/components/z-book-cover.js.map +1 -0
  476. package/dist/components/z-breadcrumb.js +2 -1
  477. package/dist/components/z-breadcrumb.js.map +1 -0
  478. package/dist/components/z-button-sort.js +2 -1
  479. package/dist/components/z-button-sort.js.map +1 -0
  480. package/dist/components/z-button.js +2 -1
  481. package/dist/components/z-button.js.map +1 -0
  482. package/dist/components/z-card.js +2 -1
  483. package/dist/components/z-card.js.map +1 -0
  484. package/dist/components/z-carousel.js +2 -1
  485. package/dist/components/z-carousel.js.map +1 -0
  486. package/dist/components/z-chip.js +2 -1
  487. package/dist/components/z-chip.js.map +1 -0
  488. package/dist/components/z-color-picker.js +2 -1
  489. package/dist/components/z-color-picker.js.map +1 -0
  490. package/dist/components/z-combobox.js +2 -1
  491. package/dist/components/z-combobox.js.map +1 -0
  492. package/dist/components/z-cover-hero.js +2 -1
  493. package/dist/components/z-cover-hero.js.map +1 -0
  494. package/dist/components/z-date-picker.js +3 -2
  495. package/dist/components/z-date-picker.js.map +1 -0
  496. package/dist/components/z-divider.js +2 -1
  497. package/dist/components/z-divider.js.map +1 -0
  498. package/dist/components/z-dragdrop-area.js +2 -1
  499. package/dist/components/z-dragdrop-area.js.map +1 -0
  500. package/dist/components/z-file-upload.js +2 -1
  501. package/dist/components/z-file-upload.js.map +1 -0
  502. package/dist/components/z-file.js +2 -1
  503. package/dist/components/z-file.js.map +1 -0
  504. package/dist/components/z-ghost-loading.js +2 -1
  505. package/dist/components/z-ghost-loading.js.map +1 -0
  506. package/dist/components/z-icon.js +2 -1
  507. package/dist/components/z-icon.js.map +1 -0
  508. package/dist/components/z-info-box.js +2 -1
  509. package/dist/components/z-info-box.js.map +1 -0
  510. package/dist/components/z-info-reveal.js +2 -1
  511. package/dist/components/z-info-reveal.js.map +1 -0
  512. package/dist/components/z-input-message.js +2 -1
  513. package/dist/components/z-input-message.js.map +1 -0
  514. package/dist/components/z-input.js +2 -1
  515. package/dist/components/z-input.js.map +1 -0
  516. package/dist/components/z-list-element.js +2 -1
  517. package/dist/components/z-list-element.js.map +1 -0
  518. package/dist/components/z-list-group.js +2 -1
  519. package/dist/components/z-list-group.js.map +1 -0
  520. package/dist/components/z-list.js +2 -1
  521. package/dist/components/z-list.js.map +1 -0
  522. package/dist/components/z-logo.js +2 -1
  523. package/dist/components/z-logo.js.map +1 -0
  524. package/dist/components/z-menu-deprecated.js +2 -1
  525. package/dist/components/z-menu-deprecated.js.map +1 -0
  526. package/dist/components/z-menu-section-deprecated.js +2 -1
  527. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  528. package/dist/components/z-menu-section.js +2 -1
  529. package/dist/components/z-menu-section.js.map +1 -0
  530. package/dist/components/z-menu.js +2 -1
  531. package/dist/components/z-menu.js.map +1 -0
  532. package/dist/components/z-modal.js +2 -1
  533. package/dist/components/z-modal.js.map +1 -0
  534. package/dist/components/z-myz-card-alert.js +2 -1
  535. package/dist/components/z-myz-card-alert.js.map +1 -0
  536. package/dist/components/z-myz-card-body.js +2 -1
  537. package/dist/components/z-myz-card-body.js.map +1 -0
  538. package/dist/components/z-myz-card-cover.js +2 -1
  539. package/dist/components/z-myz-card-cover.js.map +1 -0
  540. package/dist/components/z-myz-card-dictionary.js +2 -1
  541. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  542. package/dist/components/z-myz-card-footer-sections.js +2 -1
  543. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  544. package/dist/components/z-myz-card-footer.js +2 -1
  545. package/dist/components/z-myz-card-footer.js.map +1 -0
  546. package/dist/components/z-myz-card-header.js +2 -1
  547. package/dist/components/z-myz-card-header.js.map +1 -0
  548. package/dist/components/z-myz-card-icon.js +2 -1
  549. package/dist/components/z-myz-card-icon.js.map +1 -0
  550. package/dist/components/z-myz-card-info.js +2 -1
  551. package/dist/components/z-myz-card-info.js.map +1 -0
  552. package/dist/components/z-myz-card-list.js +2 -1
  553. package/dist/components/z-myz-card-list.js.map +1 -0
  554. package/dist/components/z-myz-card.js +2 -1
  555. package/dist/components/z-myz-card.js.map +1 -0
  556. package/dist/components/z-myz-list-item.js +2 -1
  557. package/dist/components/z-myz-list-item.js.map +1 -0
  558. package/dist/components/z-myz-list.js +2 -1
  559. package/dist/components/z-myz-list.js.map +1 -0
  560. package/dist/components/z-navigation-tabs.js +2 -1
  561. package/dist/components/z-navigation-tabs.js.map +1 -0
  562. package/dist/components/z-notification.js +2 -1
  563. package/dist/components/z-notification.js.map +1 -0
  564. package/dist/components/z-offcanvas.js +2 -1
  565. package/dist/components/z-offcanvas.js.map +1 -0
  566. package/dist/components/z-otp.js +2 -1
  567. package/dist/components/z-otp.js.map +1 -0
  568. package/dist/components/z-pagination.js +2 -1
  569. package/dist/components/z-pagination.js.map +1 -0
  570. package/dist/components/z-panel-elem.js +2 -1
  571. package/dist/components/z-panel-elem.js.map +1 -0
  572. package/dist/components/z-popover.js +2 -1
  573. package/dist/components/z-popover.js.map +1 -0
  574. package/dist/components/z-range-picker.js +2 -1
  575. package/dist/components/z-range-picker.js.map +1 -0
  576. package/dist/components/z-result-card.js +2 -1
  577. package/dist/components/z-result-card.js.map +1 -0
  578. package/dist/components/z-searchbar.js +2 -1
  579. package/dist/components/z-searchbar.js.map +1 -0
  580. package/dist/components/z-section-title.js +2 -1
  581. package/dist/components/z-section-title.js.map +1 -0
  582. package/dist/components/z-select.js +2 -1
  583. package/dist/components/z-select.js.map +1 -0
  584. package/dist/components/z-skip-to-content.js +2 -1
  585. package/dist/components/z-skip-to-content.js.map +1 -0
  586. package/dist/components/z-slideshow.js +2 -1
  587. package/dist/components/z-slideshow.js.map +1 -0
  588. package/dist/components/z-stepper-item.js +2 -1
  589. package/dist/components/z-stepper-item.js.map +1 -0
  590. package/dist/components/z-stepper.js +2 -1
  591. package/dist/components/z-stepper.js.map +1 -0
  592. package/dist/components/z-table.js +2 -1
  593. package/dist/components/z-table.js.map +1 -0
  594. package/dist/components/z-tag.js +2 -1
  595. package/dist/components/z-tag.js.map +1 -0
  596. package/dist/components/z-tbody.js +2 -1
  597. package/dist/components/z-tbody.js.map +1 -0
  598. package/dist/components/z-td.js +2 -1
  599. package/dist/components/z-td.js.map +1 -0
  600. package/dist/components/z-tfoot.js +2 -1
  601. package/dist/components/z-tfoot.js.map +1 -0
  602. package/dist/components/z-th.js +2 -1
  603. package/dist/components/z-th.js.map +1 -0
  604. package/dist/components/z-thead.js +2 -1
  605. package/dist/components/z-thead.js.map +1 -0
  606. package/dist/components/z-toast-notification-list.js +2 -1
  607. package/dist/components/z-toast-notification-list.js.map +1 -0
  608. package/dist/components/z-toast-notification.js +8 -2
  609. package/dist/components/z-toast-notification.js.map +1 -0
  610. package/dist/components/z-toggle-button.js +2 -1
  611. package/dist/components/z-toggle-button.js.map +1 -0
  612. package/dist/components/z-toggle-switch.js +2 -1
  613. package/dist/components/z-toggle-switch.js.map +1 -0
  614. package/dist/components/z-tool.js +2 -1
  615. package/dist/components/z-tool.js.map +1 -0
  616. package/dist/components/z-toolbar.js +2 -1
  617. package/dist/components/z-toolbar.js.map +1 -0
  618. package/dist/components/z-tooltip.js +2 -1
  619. package/dist/components/z-tooltip.js.map +1 -0
  620. package/dist/components/z-tr.js +2 -1
  621. package/dist/components/z-tr.js.map +1 -0
  622. package/dist/components/z-tree-list.js +2 -1
  623. package/dist/components/z-tree-list.js.map +1 -0
  624. package/dist/components/z-visually-hidden.js +2 -1
  625. package/dist/components/z-visually-hidden.js.map +1 -0
  626. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  627. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  628. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  629. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  630. package/dist/esm/iconset-AwzX9V8L.js +3 -0
  631. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  632. package/dist/esm/index-BKCj6NR2.js +3 -0
  633. package/dist/esm/index-BKCj6NR2.js.map +1 -0
  634. package/dist/esm/index-DPdXlnVe.js +3 -0
  635. package/dist/esm/index-DPdXlnVe.js.map +1 -0
  636. package/dist/esm/index.js +4 -1
  637. package/dist/esm/index.js.map +1 -0
  638. package/dist/esm/loader.js +4 -1
  639. package/dist/esm/loader.js.map +1 -0
  640. package/dist/esm/reactive-controller-DZQWST94.js +1443 -0
  641. package/dist/esm/reactive-controller-DZQWST94.js.map +1 -0
  642. package/dist/esm/utils-D-T4RQuj.js +896 -0
  643. package/dist/esm/utils-D-T4RQuj.js.map +1 -0
  644. package/dist/esm/utils-DuuLzXZj.js +3 -0
  645. package/dist/esm/utils-DuuLzXZj.js.map +1 -0
  646. package/dist/esm/web-components-library.js +4 -1
  647. package/dist/esm/web-components-library.js.map +1 -0
  648. package/dist/esm/z-accordion.entry.js +4 -1
  649. package/dist/esm/z-accordion.entry.js.map +1 -0
  650. package/dist/esm/z-alert.entry.js +3 -0
  651. package/dist/esm/z-alert.entry.js.map +1 -0
  652. package/dist/esm/z-anchor-navigation.entry.js +5 -2
  653. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  654. package/dist/esm/z-app-header-deprecated.entry.js +4 -1
  655. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  656. package/dist/esm/z-app-header_12.entry.js +57 -121
  657. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  658. package/dist/esm/z-aria-alert.entry.js +4 -1
  659. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  660. package/dist/esm/z-avatar.entry.js +5 -2
  661. package/dist/esm/z-avatar.entry.js.map +1 -0
  662. package/dist/esm/z-book-card-app.entry.js +4 -1
  663. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  664. package/dist/esm/z-book-card-deprecated.entry.js +5 -2
  665. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  666. package/dist/esm/z-book-card.entry.js +4 -1
  667. package/dist/esm/z-book-card.entry.js.map +1 -0
  668. package/dist/esm/z-book-cover.entry.js +4 -1
  669. package/dist/esm/z-book-cover.entry.js.map +1 -0
  670. package/dist/esm/z-breadcrumb.entry.js +6 -3
  671. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  672. package/dist/esm/z-button-sort.entry.js +4 -1
  673. package/dist/esm/z-button-sort.entry.js.map +1 -0
  674. package/dist/esm/z-card.entry.js +3 -0
  675. package/dist/esm/z-card.entry.js.map +1 -0
  676. package/dist/esm/z-carousel.entry.js +4 -1
  677. package/dist/esm/z-carousel.entry.js.map +1 -0
  678. package/dist/esm/z-chip.entry.js +5 -2
  679. package/dist/esm/z-chip.entry.js.map +1 -0
  680. package/dist/esm/z-color-picker.entry.js +5 -2
  681. package/dist/esm/z-color-picker.entry.js.map +1 -0
  682. package/dist/esm/z-combobox.entry.js +5 -2
  683. package/dist/esm/z-combobox.entry.js.map +1 -0
  684. package/dist/esm/z-cover-hero.entry.js +5 -2
  685. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  686. package/dist/esm/z-date-picker.entry.js +4 -1
  687. package/dist/esm/z-date-picker.entry.js.map +1 -0
  688. package/dist/esm/z-dragdrop-area_2.entry.js +23 -39
  689. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  690. package/dist/esm/z-file-upload.entry.js +5 -2
  691. package/dist/esm/z-file-upload.entry.js.map +1 -0
  692. package/dist/esm/z-file.entry.js +4 -1
  693. package/dist/esm/z-file.entry.js.map +1 -0
  694. package/dist/esm/z-ghost-loading.entry.js +4 -1
  695. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  696. package/dist/esm/z-info-box.entry.js +4 -1
  697. package/dist/esm/z-info-box.entry.js.map +1 -0
  698. package/dist/esm/z-info-reveal.entry.js +4 -1
  699. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  700. package/dist/esm/z-logo.entry.js +5 -2
  701. package/dist/esm/z-logo.entry.js.map +1 -0
  702. package/dist/esm/z-menu-deprecated.entry.js +5 -2
  703. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  704. package/dist/esm/z-menu-section-deprecated.entry.js +4 -1
  705. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  706. package/dist/esm/z-menu-section.entry.js +4 -1
  707. package/dist/esm/z-menu-section.entry.js.map +1 -0
  708. package/dist/esm/z-menu.entry.js +4 -1
  709. package/dist/esm/z-menu.entry.js.map +1 -0
  710. package/dist/esm/z-myz-card-alert.entry.js +3 -0
  711. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  712. package/dist/esm/z-myz-card-dictionary.entry.js +3 -0
  713. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  714. package/dist/esm/z-myz-card-footer-sections.entry.js +3 -0
  715. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  716. package/dist/esm/z-myz-card-footer.entry.js +3 -0
  717. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  718. package/dist/esm/z-myz-card-icon.entry.js +3 -0
  719. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  720. package/dist/esm/z-myz-card-info.entry.js +5 -2
  721. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  722. package/dist/esm/z-myz-card-list.entry.js +3 -0
  723. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  724. package/dist/esm/z-myz-card_4.entry.js +4 -1
  725. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  726. package/dist/esm/z-myz-list-item.entry.js +4 -1
  727. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  728. package/dist/esm/z-myz-list.entry.js +3 -0
  729. package/dist/esm/z-myz-list.entry.js.map +1 -0
  730. package/dist/esm/z-navigation-tabs.entry.js +5 -2
  731. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  732. package/dist/esm/z-notification.entry.js +4 -1
  733. package/dist/esm/z-notification.entry.js.map +1 -0
  734. package/dist/esm/z-otp.entry.js +3 -0
  735. package/dist/esm/z-otp.entry.js.map +1 -0
  736. package/dist/esm/z-pagination.entry.js +3 -0
  737. package/dist/esm/z-pagination.entry.js.map +1 -0
  738. package/dist/esm/z-panel-elem.entry.js +5 -2
  739. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  740. package/dist/esm/z-popover.entry.js +5 -2
  741. package/dist/esm/z-popover.entry.js.map +1 -0
  742. package/dist/esm/z-range-picker.entry.js +6 -3
  743. package/dist/esm/z-range-picker.entry.js.map +1 -0
  744. package/dist/esm/z-result-card.entry.js +3 -0
  745. package/dist/esm/z-result-card.entry.js.map +1 -0
  746. package/dist/esm/z-section-title.entry.js +4 -1
  747. package/dist/esm/z-section-title.entry.js.map +1 -0
  748. package/dist/esm/z-select.entry.js +9 -6
  749. package/dist/esm/z-select.entry.js.map +1 -0
  750. package/dist/esm/z-skip-to-content.entry.js +5 -2
  751. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  752. package/dist/esm/z-slideshow.entry.js +4 -1
  753. package/dist/esm/z-slideshow.entry.js.map +1 -0
  754. package/dist/esm/z-stepper-item.entry.js +4 -1
  755. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  756. package/dist/esm/z-stepper.entry.js +4 -1
  757. package/dist/esm/z-stepper.entry.js.map +1 -0
  758. package/dist/esm/z-table.entry.js +5 -2
  759. package/dist/esm/z-table.entry.js.map +1 -0
  760. package/dist/esm/z-tbody.entry.js +4 -1
  761. package/dist/esm/z-tbody.entry.js.map +1 -0
  762. package/dist/esm/z-td.entry.js +4 -1
  763. package/dist/esm/z-td.entry.js.map +1 -0
  764. package/dist/esm/z-tfoot.entry.js +4 -1
  765. package/dist/esm/z-tfoot.entry.js.map +1 -0
  766. package/dist/esm/z-th.entry.js +4 -1
  767. package/dist/esm/z-th.entry.js.map +1 -0
  768. package/dist/esm/z-thead.entry.js +4 -1
  769. package/dist/esm/z-thead.entry.js.map +1 -0
  770. package/dist/esm/z-toast-notification-list.entry.js +4 -1
  771. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  772. package/dist/esm/z-toast-notification.entry.js +6 -3
  773. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  774. package/dist/esm/z-toggle-button.entry.js +5 -2
  775. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  776. package/dist/esm/z-toggle-switch.entry.js +7 -4
  777. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  778. package/dist/esm/z-tool.entry.js +6 -3
  779. package/dist/esm/z-tool.entry.js.map +1 -0
  780. package/dist/esm/z-toolbar.entry.js +4 -1
  781. package/dist/esm/z-toolbar.entry.js.map +1 -0
  782. package/dist/esm/z-tooltip.entry.js +4 -1
  783. package/dist/esm/z-tooltip.entry.js.map +1 -0
  784. package/dist/esm/z-tr.entry.js +6 -3
  785. package/dist/esm/z-tr.entry.js.map +1 -0
  786. package/dist/esm/z-tree-list.entry.js +4 -1
  787. package/dist/esm/z-tree-list.entry.js.map +1 -0
  788. package/dist/esm/z-visually-hidden.entry.js +4 -1
  789. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  790. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  791. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  792. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  793. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  794. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  795. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  796. package/dist/types/components/table/z-table/index.d.ts +0 -1
  797. package/dist/types/components/z-accordion/index.d.ts +2 -10
  798. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  799. package/dist/types/components/z-app-header/index.d.ts +4 -6
  800. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  801. package/dist/types/components/z-button/index.d.ts +1 -1
  802. package/dist/types/components/z-card/index.d.ts +1 -8
  803. package/dist/types/components/z-carousel/index.d.ts +0 -2
  804. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  805. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  806. package/dist/types/components/z-menu/index.d.ts +0 -1
  807. package/dist/types/components/z-modal/index.d.ts +4 -11
  808. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  809. package/dist/types/components/z-notification/index.d.ts +0 -3
  810. package/dist/types/components/z-offcanvas/index.d.ts +12 -37
  811. package/dist/types/components/z-pagination/index.d.ts +0 -2
  812. package/dist/types/components/z-popover/index.d.ts +0 -5
  813. package/dist/types/components/z-searchbar/index.d.ts +0 -5
  814. package/dist/types/components/z-tag/index.d.ts +0 -2
  815. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  816. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  817. package/dist/types/components.d.ts +18 -601
  818. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  819. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  820. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  821. package/dist/types/utils/reactive-controller.d.ts +39 -0
  822. package/dist/types/utils/storybook-utils.d.ts +7 -2
  823. package/dist/types/utils/utils.d.ts +10 -0
  824. package/dist/web-components-library/index.esm.js +2 -1
  825. package/dist/web-components-library/index.esm.js.map +1 -0
  826. package/dist/web-components-library/p-02741f3e.entry.js +2 -0
  827. package/dist/web-components-library/p-02741f3e.entry.js.map +1 -0
  828. package/dist/web-components-library/p-02b47708.entry.js +2 -0
  829. package/dist/web-components-library/p-02b47708.entry.js.map +1 -0
  830. package/dist/web-components-library/p-02e3f7db.entry.js +2 -0
  831. package/dist/web-components-library/p-02e3f7db.entry.js.map +1 -0
  832. package/dist/web-components-library/p-0b8313b7.entry.js +2 -0
  833. package/dist/web-components-library/p-0b8313b7.entry.js.map +1 -0
  834. package/dist/web-components-library/p-0f79c6e8.entry.js +2 -0
  835. package/dist/web-components-library/p-0f79c6e8.entry.js.map +1 -0
  836. package/dist/web-components-library/p-168426fe.entry.js +2 -0
  837. package/dist/web-components-library/p-168426fe.entry.js.map +1 -0
  838. package/dist/web-components-library/p-1f64ba04.entry.js +8 -0
  839. package/dist/web-components-library/p-1f64ba04.entry.js.map +1 -0
  840. package/dist/web-components-library/p-29816d9c.entry.js +2 -0
  841. package/dist/web-components-library/p-29816d9c.entry.js.map +1 -0
  842. package/dist/web-components-library/p-2a00eea3.entry.js +2 -0
  843. package/dist/web-components-library/p-2a00eea3.entry.js.map +1 -0
  844. package/dist/web-components-library/p-2ffbc315.entry.js +2 -0
  845. package/dist/web-components-library/p-2ffbc315.entry.js.map +1 -0
  846. package/dist/web-components-library/p-31635e9d.entry.js +2 -0
  847. package/dist/web-components-library/p-31635e9d.entry.js.map +1 -0
  848. package/dist/web-components-library/p-338fc882.entry.js +2 -0
  849. package/dist/web-components-library/p-338fc882.entry.js.map +1 -0
  850. package/dist/web-components-library/p-40079bb3.entry.js +2 -0
  851. package/dist/web-components-library/p-40079bb3.entry.js.map +1 -0
  852. package/dist/web-components-library/p-413c743d.entry.js +2 -0
  853. package/dist/web-components-library/p-413c743d.entry.js.map +1 -0
  854. package/dist/web-components-library/p-441cb2d9.entry.js +2 -0
  855. package/dist/web-components-library/p-441cb2d9.entry.js.map +1 -0
  856. package/dist/web-components-library/p-44b8aba8.entry.js +2 -0
  857. package/dist/web-components-library/p-44b8aba8.entry.js.map +1 -0
  858. package/dist/web-components-library/p-4767a2b3.entry.js +2 -0
  859. package/dist/web-components-library/p-4767a2b3.entry.js.map +1 -0
  860. package/dist/web-components-library/p-48b9411e.entry.js +2 -0
  861. package/dist/web-components-library/p-48b9411e.entry.js.map +1 -0
  862. package/dist/web-components-library/p-52e01182.entry.js +2 -0
  863. package/dist/web-components-library/p-52e01182.entry.js.map +1 -0
  864. package/dist/web-components-library/p-56f926d7.entry.js +2 -0
  865. package/dist/web-components-library/p-56f926d7.entry.js.map +1 -0
  866. package/dist/web-components-library/p-585b7068.entry.js +2 -0
  867. package/dist/web-components-library/p-585b7068.entry.js.map +1 -0
  868. package/dist/web-components-library/p-5928e726.entry.js +2 -0
  869. package/dist/web-components-library/p-5928e726.entry.js.map +1 -0
  870. package/dist/web-components-library/p-5b72a84e.entry.js +2 -0
  871. package/dist/web-components-library/p-5b72a84e.entry.js.map +1 -0
  872. package/dist/web-components-library/p-5fc0afef.entry.js +2 -0
  873. package/dist/web-components-library/p-5fc0afef.entry.js.map +1 -0
  874. package/dist/web-components-library/p-602aad3e.entry.js +2 -0
  875. package/dist/web-components-library/p-602aad3e.entry.js.map +1 -0
  876. package/dist/web-components-library/p-65013fbe.entry.js +2 -0
  877. package/dist/web-components-library/p-65013fbe.entry.js.map +1 -0
  878. package/dist/web-components-library/p-680e12d3.entry.js +2 -0
  879. package/dist/web-components-library/p-680e12d3.entry.js.map +1 -0
  880. package/dist/web-components-library/p-6a949aa2.entry.js +2 -0
  881. package/dist/web-components-library/p-6a949aa2.entry.js.map +1 -0
  882. package/dist/web-components-library/p-6d5dac88.entry.js +2 -0
  883. package/dist/web-components-library/p-6d5dac88.entry.js.map +1 -0
  884. package/dist/web-components-library/p-6df25588.entry.js +2 -0
  885. package/dist/web-components-library/p-6df25588.entry.js.map +1 -0
  886. package/dist/web-components-library/p-720d8465.entry.js +2 -0
  887. package/dist/web-components-library/p-720d8465.entry.js.map +1 -0
  888. package/dist/web-components-library/p-7825ea5e.entry.js +2 -0
  889. package/dist/web-components-library/p-7825ea5e.entry.js.map +1 -0
  890. package/dist/web-components-library/p-7a0eb225.entry.js +2 -0
  891. package/dist/web-components-library/p-7a0eb225.entry.js.map +1 -0
  892. package/dist/web-components-library/p-7c1da49a.entry.js +2 -0
  893. package/dist/web-components-library/p-7c1da49a.entry.js.map +1 -0
  894. package/dist/web-components-library/p-7c3e6b8d.entry.js +2 -0
  895. package/dist/web-components-library/p-7c3e6b8d.entry.js.map +1 -0
  896. package/dist/web-components-library/p-7d9d5708.entry.js +2 -0
  897. package/dist/web-components-library/p-7d9d5708.entry.js.map +1 -0
  898. package/dist/web-components-library/p-813716a7.entry.js +2 -0
  899. package/dist/web-components-library/p-813716a7.entry.js.map +1 -0
  900. package/dist/web-components-library/p-8282c9d3.entry.js +2 -0
  901. package/dist/web-components-library/p-8282c9d3.entry.js.map +1 -0
  902. package/dist/web-components-library/p-829ea489.entry.js +2 -0
  903. package/dist/web-components-library/p-829ea489.entry.js.map +1 -0
  904. package/dist/web-components-library/p-832c0410.entry.js +2 -0
  905. package/dist/web-components-library/p-832c0410.entry.js.map +1 -0
  906. package/dist/web-components-library/p-83d30a6b.entry.js +2 -0
  907. package/dist/web-components-library/p-83d30a6b.entry.js.map +1 -0
  908. package/dist/web-components-library/p-8437b51b.entry.js +17 -0
  909. package/dist/web-components-library/p-8437b51b.entry.js.map +1 -0
  910. package/dist/web-components-library/p-883a78e8.entry.js +2 -0
  911. package/dist/web-components-library/p-883a78e8.entry.js.map +1 -0
  912. package/dist/web-components-library/p-8b02ad8e.entry.js +2 -0
  913. package/dist/web-components-library/p-8b02ad8e.entry.js.map +1 -0
  914. package/dist/web-components-library/p-93762440.entry.js +2 -0
  915. package/dist/web-components-library/p-93762440.entry.js.map +1 -0
  916. package/dist/web-components-library/p-9640df86.entry.js +2 -0
  917. package/dist/web-components-library/p-9640df86.entry.js.map +1 -0
  918. package/dist/web-components-library/p-9738ace8.entry.js +2 -0
  919. package/dist/web-components-library/p-9738ace8.entry.js.map +1 -0
  920. package/dist/web-components-library/p-97f87456.entry.js +2 -0
  921. package/dist/web-components-library/p-97f87456.entry.js.map +1 -0
  922. package/dist/web-components-library/p-9b4f88c3.entry.js +2 -0
  923. package/dist/web-components-library/p-9b4f88c3.entry.js.map +1 -0
  924. package/dist/web-components-library/p-9d9a2685.entry.js +2 -0
  925. package/dist/web-components-library/p-9d9a2685.entry.js.map +1 -0
  926. package/dist/web-components-library/p-9db95f97.entry.js +2 -0
  927. package/dist/web-components-library/p-9db95f97.entry.js.map +1 -0
  928. package/dist/web-components-library/p-9f86e284.entry.js +2 -0
  929. package/dist/web-components-library/p-9f86e284.entry.js.map +1 -0
  930. package/dist/web-components-library/p-AwzX9V8L.js +2 -1
  931. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  932. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  933. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  934. package/dist/web-components-library/p-B8WJfd4z.js +2 -1
  935. package/dist/web-components-library/p-B8WJfd4z.js.map +1 -0
  936. package/dist/web-components-library/p-BKCj6NR2.js +2 -1
  937. package/dist/web-components-library/p-BKCj6NR2.js.map +1 -0
  938. package/dist/web-components-library/p-C-uijUlb.js +6 -0
  939. package/dist/web-components-library/p-C-uijUlb.js.map +1 -0
  940. package/dist/web-components-library/p-DALRZVXG.js +7 -0
  941. package/dist/web-components-library/p-DALRZVXG.js.map +1 -0
  942. package/dist/web-components-library/p-DPdXlnVe.js +3 -2
  943. package/dist/web-components-library/p-DPdXlnVe.js.map +1 -0
  944. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  945. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  946. package/dist/web-components-library/p-a1f1e2da.entry.js +2 -0
  947. package/dist/web-components-library/p-a1f1e2da.entry.js.map +1 -0
  948. package/dist/web-components-library/p-a3b628d2.entry.js +2 -0
  949. package/dist/web-components-library/p-a3b628d2.entry.js.map +1 -0
  950. package/dist/web-components-library/p-a5647972.entry.js +2 -0
  951. package/dist/web-components-library/p-a5647972.entry.js.map +1 -0
  952. package/dist/web-components-library/p-a97bfd11.entry.js +2 -0
  953. package/dist/web-components-library/p-a97bfd11.entry.js.map +1 -0
  954. package/dist/web-components-library/p-af91a46b.entry.js +2 -0
  955. package/dist/web-components-library/p-af91a46b.entry.js.map +1 -0
  956. package/dist/web-components-library/p-b02a920c.entry.js +2 -0
  957. package/dist/web-components-library/p-b02a920c.entry.js.map +1 -0
  958. package/dist/web-components-library/p-b3c84f65.entry.js +2 -0
  959. package/dist/web-components-library/p-b3c84f65.entry.js.map +1 -0
  960. package/dist/web-components-library/p-bba3b3ac.entry.js +2 -0
  961. package/dist/web-components-library/p-bba3b3ac.entry.js.map +1 -0
  962. package/dist/web-components-library/p-c700b3b6.entry.js +2 -0
  963. package/dist/web-components-library/p-c700b3b6.entry.js.map +1 -0
  964. package/dist/web-components-library/p-c9f7a6fd.entry.js +2 -0
  965. package/dist/web-components-library/p-c9f7a6fd.entry.js.map +1 -0
  966. package/dist/web-components-library/p-d13bba23.entry.js +2 -0
  967. package/dist/web-components-library/p-d13bba23.entry.js.map +1 -0
  968. package/dist/web-components-library/p-dcd96768.entry.js +2 -0
  969. package/dist/web-components-library/p-dcd96768.entry.js.map +1 -0
  970. package/dist/web-components-library/p-e44e5a9e.entry.js +2 -0
  971. package/dist/web-components-library/p-e44e5a9e.entry.js.map +1 -0
  972. package/dist/web-components-library/p-ec0ef7bb.entry.js +2 -0
  973. package/dist/web-components-library/p-ec0ef7bb.entry.js.map +1 -0
  974. package/dist/web-components-library/p-f1fa85fe.entry.js +2 -0
  975. package/dist/web-components-library/p-f1fa85fe.entry.js.map +1 -0
  976. package/dist/web-components-library/p-f70d4f1f.entry.js +2 -0
  977. package/dist/web-components-library/p-f70d4f1f.entry.js.map +1 -0
  978. package/dist/web-components-library/p-fb41e2bb.entry.js +2 -0
  979. package/dist/web-components-library/p-fb41e2bb.entry.js.map +1 -0
  980. package/dist/web-components-library/p-fb804d28.entry.js +2 -0
  981. package/dist/web-components-library/p-fb804d28.entry.js.map +1 -0
  982. package/dist/web-components-library/p-ffb1c8ae.entry.js +2 -0
  983. package/dist/web-components-library/p-ffb1c8ae.entry.js.map +1 -0
  984. package/dist/web-components-library/web-components-library.esm.js +2 -1
  985. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  986. package/package.json +16 -16
  987. package/readme.md +8 -19
  988. package/www/build/index.esm.js +2 -1
  989. package/www/build/index.esm.js.map +1 -0
  990. package/www/build/p-02741f3e.entry.js +2 -0
  991. package/www/build/p-02741f3e.entry.js.map +1 -0
  992. package/www/build/p-02b47708.entry.js +2 -0
  993. package/www/build/p-02b47708.entry.js.map +1 -0
  994. package/www/build/p-02e3f7db.entry.js +2 -0
  995. package/www/build/p-02e3f7db.entry.js.map +1 -0
  996. package/www/build/p-0b8313b7.entry.js +2 -0
  997. package/www/build/p-0b8313b7.entry.js.map +1 -0
  998. package/www/build/p-0f79c6e8.entry.js +2 -0
  999. package/www/build/p-0f79c6e8.entry.js.map +1 -0
  1000. package/www/build/p-168426fe.entry.js +2 -0
  1001. package/www/build/p-168426fe.entry.js.map +1 -0
  1002. package/www/build/p-1f64ba04.entry.js +8 -0
  1003. package/www/build/p-1f64ba04.entry.js.map +1 -0
  1004. package/www/build/p-29816d9c.entry.js +2 -0
  1005. package/www/build/p-29816d9c.entry.js.map +1 -0
  1006. package/www/build/p-2a00eea3.entry.js +2 -0
  1007. package/www/build/p-2a00eea3.entry.js.map +1 -0
  1008. package/www/build/p-2ffbc315.entry.js +2 -0
  1009. package/www/build/p-2ffbc315.entry.js.map +1 -0
  1010. package/www/build/p-31635e9d.entry.js +2 -0
  1011. package/www/build/p-31635e9d.entry.js.map +1 -0
  1012. package/www/build/p-338fc882.entry.js +2 -0
  1013. package/www/build/p-338fc882.entry.js.map +1 -0
  1014. package/www/build/p-40079bb3.entry.js +2 -0
  1015. package/www/build/p-40079bb3.entry.js.map +1 -0
  1016. package/www/build/p-413c743d.entry.js +2 -0
  1017. package/www/build/p-413c743d.entry.js.map +1 -0
  1018. package/www/build/p-441cb2d9.entry.js +2 -0
  1019. package/www/build/p-441cb2d9.entry.js.map +1 -0
  1020. package/www/build/p-44b8aba8.entry.js +2 -0
  1021. package/www/build/p-44b8aba8.entry.js.map +1 -0
  1022. package/www/build/p-4767a2b3.entry.js +2 -0
  1023. package/www/build/p-4767a2b3.entry.js.map +1 -0
  1024. package/www/build/p-48b9411e.entry.js +2 -0
  1025. package/www/build/p-48b9411e.entry.js.map +1 -0
  1026. package/www/build/p-52e01182.entry.js +2 -0
  1027. package/www/build/p-52e01182.entry.js.map +1 -0
  1028. package/www/build/p-56f926d7.entry.js +2 -0
  1029. package/www/build/p-56f926d7.entry.js.map +1 -0
  1030. package/www/build/p-585b7068.entry.js +2 -0
  1031. package/www/build/p-585b7068.entry.js.map +1 -0
  1032. package/www/build/p-5928e726.entry.js +2 -0
  1033. package/www/build/p-5928e726.entry.js.map +1 -0
  1034. package/www/build/p-5b72a84e.entry.js +2 -0
  1035. package/www/build/p-5b72a84e.entry.js.map +1 -0
  1036. package/www/build/p-5fc0afef.entry.js +2 -0
  1037. package/www/build/p-5fc0afef.entry.js.map +1 -0
  1038. package/www/build/p-602aad3e.entry.js +2 -0
  1039. package/www/build/p-602aad3e.entry.js.map +1 -0
  1040. package/www/build/p-65013fbe.entry.js +2 -0
  1041. package/www/build/p-65013fbe.entry.js.map +1 -0
  1042. package/www/build/p-680e12d3.entry.js +2 -0
  1043. package/www/build/p-680e12d3.entry.js.map +1 -0
  1044. package/www/build/p-6a949aa2.entry.js +2 -0
  1045. package/www/build/p-6a949aa2.entry.js.map +1 -0
  1046. package/www/build/p-6d5dac88.entry.js +2 -0
  1047. package/www/build/p-6d5dac88.entry.js.map +1 -0
  1048. package/www/build/p-6df25588.entry.js +2 -0
  1049. package/www/build/p-6df25588.entry.js.map +1 -0
  1050. package/www/build/p-720d8465.entry.js +2 -0
  1051. package/www/build/p-720d8465.entry.js.map +1 -0
  1052. package/www/build/p-7825ea5e.entry.js +2 -0
  1053. package/www/build/p-7825ea5e.entry.js.map +1 -0
  1054. package/www/build/p-7a0eb225.entry.js +2 -0
  1055. package/www/build/p-7a0eb225.entry.js.map +1 -0
  1056. package/www/build/p-7c1da49a.entry.js +2 -0
  1057. package/www/build/p-7c1da49a.entry.js.map +1 -0
  1058. package/www/build/p-7c3e6b8d.entry.js +2 -0
  1059. package/www/build/p-7c3e6b8d.entry.js.map +1 -0
  1060. package/www/build/p-7d9d5708.entry.js +2 -0
  1061. package/www/build/p-7d9d5708.entry.js.map +1 -0
  1062. package/www/build/p-813716a7.entry.js +2 -0
  1063. package/www/build/p-813716a7.entry.js.map +1 -0
  1064. package/www/build/p-8282c9d3.entry.js +2 -0
  1065. package/www/build/p-8282c9d3.entry.js.map +1 -0
  1066. package/www/build/p-829ea489.entry.js +2 -0
  1067. package/www/build/p-829ea489.entry.js.map +1 -0
  1068. package/www/build/p-832c0410.entry.js +2 -0
  1069. package/www/build/p-832c0410.entry.js.map +1 -0
  1070. package/www/build/p-83d30a6b.entry.js +2 -0
  1071. package/www/build/p-83d30a6b.entry.js.map +1 -0
  1072. package/www/build/p-8437b51b.entry.js +17 -0
  1073. package/www/build/p-8437b51b.entry.js.map +1 -0
  1074. package/www/build/p-883a78e8.entry.js +2 -0
  1075. package/www/build/p-883a78e8.entry.js.map +1 -0
  1076. package/www/build/p-8b02ad8e.entry.js +2 -0
  1077. package/www/build/p-8b02ad8e.entry.js.map +1 -0
  1078. package/www/build/p-93762440.entry.js +2 -0
  1079. package/www/build/p-93762440.entry.js.map +1 -0
  1080. package/www/build/p-9640df86.entry.js +2 -0
  1081. package/www/build/p-9640df86.entry.js.map +1 -0
  1082. package/www/build/p-9738ace8.entry.js +2 -0
  1083. package/www/build/p-9738ace8.entry.js.map +1 -0
  1084. package/www/build/p-97f87456.entry.js +2 -0
  1085. package/www/build/p-97f87456.entry.js.map +1 -0
  1086. package/www/build/p-9b4f88c3.entry.js +2 -0
  1087. package/www/build/p-9b4f88c3.entry.js.map +1 -0
  1088. package/www/build/p-9d9a2685.entry.js +2 -0
  1089. package/www/build/p-9d9a2685.entry.js.map +1 -0
  1090. package/www/build/p-9db95f97.entry.js +2 -0
  1091. package/www/build/p-9db95f97.entry.js.map +1 -0
  1092. package/www/build/p-9f86e284.entry.js +2 -0
  1093. package/www/build/p-9f86e284.entry.js.map +1 -0
  1094. package/www/build/p-AwzX9V8L.js +2 -1
  1095. package/www/build/p-AwzX9V8L.js.map +1 -0
  1096. package/www/build/p-B85MJLTf.js +2 -1
  1097. package/www/build/p-B85MJLTf.js.map +1 -0
  1098. package/www/build/p-B8WJfd4z.js +2 -1
  1099. package/www/build/p-B8WJfd4z.js.map +1 -0
  1100. package/www/build/p-BKCj6NR2.js +2 -1
  1101. package/www/build/p-BKCj6NR2.js.map +1 -0
  1102. package/www/build/p-C-uijUlb.js +6 -0
  1103. package/www/build/p-C-uijUlb.js.map +1 -0
  1104. package/www/build/p-DALRZVXG.js +7 -0
  1105. package/www/build/p-DALRZVXG.js.map +1 -0
  1106. package/www/build/p-DPdXlnVe.js +3 -2
  1107. package/www/build/p-DPdXlnVe.js.map +1 -0
  1108. package/www/build/p-Q-tWjk7P.js +2 -1
  1109. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1110. package/www/build/p-a1f1e2da.entry.js +2 -0
  1111. package/www/build/p-a1f1e2da.entry.js.map +1 -0
  1112. package/www/build/p-a3b628d2.entry.js +2 -0
  1113. package/www/build/p-a3b628d2.entry.js.map +1 -0
  1114. package/www/build/p-a5647972.entry.js +2 -0
  1115. package/www/build/p-a5647972.entry.js.map +1 -0
  1116. package/www/build/p-a97bfd11.entry.js +2 -0
  1117. package/www/build/p-a97bfd11.entry.js.map +1 -0
  1118. package/www/build/p-af91a46b.entry.js +2 -0
  1119. package/www/build/p-af91a46b.entry.js.map +1 -0
  1120. package/www/build/p-b02a920c.entry.js +2 -0
  1121. package/www/build/p-b02a920c.entry.js.map +1 -0
  1122. package/www/build/p-b3c84f65.entry.js +2 -0
  1123. package/www/build/p-b3c84f65.entry.js.map +1 -0
  1124. package/www/build/p-bba3b3ac.entry.js +2 -0
  1125. package/www/build/p-bba3b3ac.entry.js.map +1 -0
  1126. package/www/build/p-c700b3b6.entry.js +2 -0
  1127. package/www/build/p-c700b3b6.entry.js.map +1 -0
  1128. package/www/build/p-c9f7a6fd.entry.js +2 -0
  1129. package/www/build/p-c9f7a6fd.entry.js.map +1 -0
  1130. package/www/build/p-d13bba23.entry.js +2 -0
  1131. package/www/build/p-d13bba23.entry.js.map +1 -0
  1132. package/www/build/p-dcd96768.entry.js +2 -0
  1133. package/www/build/p-dcd96768.entry.js.map +1 -0
  1134. package/www/build/p-e44e5a9e.entry.js +2 -0
  1135. package/www/build/p-e44e5a9e.entry.js.map +1 -0
  1136. package/www/build/p-ec0ef7bb.entry.js +2 -0
  1137. package/www/build/p-ec0ef7bb.entry.js.map +1 -0
  1138. package/www/build/p-f1fa85fe.entry.js +2 -0
  1139. package/www/build/p-f1fa85fe.entry.js.map +1 -0
  1140. package/www/build/p-f70d4f1f.entry.js +2 -0
  1141. package/www/build/p-f70d4f1f.entry.js.map +1 -0
  1142. package/www/build/p-f78b0ee3.js +2 -0
  1143. package/www/build/p-fb41e2bb.entry.js +2 -0
  1144. package/www/build/p-fb41e2bb.entry.js.map +1 -0
  1145. package/www/build/p-fb804d28.entry.js +2 -0
  1146. package/www/build/p-fb804d28.entry.js.map +1 -0
  1147. package/www/build/p-ffb1c8ae.entry.js +2 -0
  1148. package/www/build/p-ffb1c8ae.entry.js.map +1 -0
  1149. package/www/build/web-components-library.esm.js +2 -1
  1150. package/www/build/web-components-library.esm.js.map +1 -0
  1151. package/www/index.html +1 -1
  1152. package/dist/cjs/utils-BY7xrW7W.js +0 -265
  1153. package/dist/collection/__mocks__/fileMock.js +0 -1
  1154. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  1155. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  1156. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  1157. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  1158. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  1159. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  1160. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  1161. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  1162. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  1163. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  1164. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  1165. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  1166. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  1167. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  1168. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  1169. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  1170. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  1171. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  1172. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  1173. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  1174. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  1175. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  1176. package/dist/collection/components/z-app-header/index.stories.js +0 -318
  1177. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  1178. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  1179. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  1180. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  1181. package/dist/collection/components/z-button/index.stories.js +0 -103
  1182. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  1183. package/dist/collection/components/z-card/index.stories.js +0 -302
  1184. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  1185. package/dist/collection/components/z-chip/index.stories.js +0 -69
  1186. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  1187. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  1188. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  1189. package/dist/collection/components/z-divider/index.stories.js +0 -44
  1190. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  1191. package/dist/collection/components/z-icon/index.stories.js +0 -70
  1192. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  1193. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  1194. package/dist/collection/components/z-input/index.stories.js +0 -293
  1195. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  1196. package/dist/collection/components/z-logo/index.stories.js +0 -25
  1197. package/dist/collection/components/z-menu/index.stories.js +0 -122
  1198. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  1199. package/dist/collection/components/z-modal/index.stories.js +0 -201
  1200. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  1201. package/dist/collection/components/z-notification/index.stories.js +0 -174
  1202. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  1203. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  1204. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  1205. package/dist/collection/components/z-popover/index.stories.js +0 -282
  1206. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  1207. package/dist/collection/components/z-searchbar/index.stories.js +0 -332
  1208. package/dist/collection/components/z-select/index.stories.js +0 -359
  1209. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  1210. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  1211. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  1212. package/dist/collection/components/z-tag/index.stories.js +0 -63
  1213. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  1214. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  1215. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  1216. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  1217. package/dist/collection/components/z-tool/index.stories.js +0 -146
  1218. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  1219. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  1220. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  1221. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  1222. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  1223. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  1224. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  1225. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  1226. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  1227. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  1228. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  1229. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  1230. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  1231. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  1232. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  1233. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  1234. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  1235. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  1236. package/dist/esm/utils-BEzZQwOB.js +0 -249
  1237. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  1238. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  1239. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  1240. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  1241. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  1242. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  1243. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  1244. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  1245. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  1246. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  1247. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  1248. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  1249. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  1250. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  1251. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  1252. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  1253. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  1254. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  1255. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  1256. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  1257. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  1258. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  1259. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  1260. package/dist/types/components/z-app-header/index.stories.d.ts +0 -128
  1261. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  1262. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  1263. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  1264. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  1265. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  1266. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  1267. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  1268. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  1269. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  1270. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  1271. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  1272. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  1273. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  1274. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  1275. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  1276. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  1277. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  1278. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  1279. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  1280. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  1281. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  1282. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  1283. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  1284. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  1285. package/dist/types/components/z-notification/index.stories.d.ts +0 -77
  1286. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  1287. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  1288. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  1289. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  1290. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  1291. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -163
  1292. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  1293. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  1294. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  1295. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  1296. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  1297. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  1298. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  1299. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  1300. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  1301. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  1302. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  1303. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  1304. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  1305. package/dist/web-components-library/p-0105149a.entry.js +0 -1
  1306. package/dist/web-components-library/p-087956fa.entry.js +0 -1
  1307. package/dist/web-components-library/p-10e5e16e.entry.js +0 -1
  1308. package/dist/web-components-library/p-13e7f751.entry.js +0 -1
  1309. package/dist/web-components-library/p-1580db58.entry.js +0 -1
  1310. package/dist/web-components-library/p-1993b0ad.entry.js +0 -1
  1311. package/dist/web-components-library/p-1a95491d.entry.js +0 -1
  1312. package/dist/web-components-library/p-20d94cce.entry.js +0 -1
  1313. package/dist/web-components-library/p-21c85e04.entry.js +0 -1
  1314. package/dist/web-components-library/p-23b46642.entry.js +0 -1
  1315. package/dist/web-components-library/p-271dfd9c.entry.js +0 -1
  1316. package/dist/web-components-library/p-29dde955.entry.js +0 -1
  1317. package/dist/web-components-library/p-2abf765d.entry.js +0 -1
  1318. package/dist/web-components-library/p-2d4c01c3.entry.js +0 -1
  1319. package/dist/web-components-library/p-2dabe353.entry.js +0 -1
  1320. package/dist/web-components-library/p-2df6d169.entry.js +0 -1
  1321. package/dist/web-components-library/p-2ef82e17.entry.js +0 -1
  1322. package/dist/web-components-library/p-313fc91d.entry.js +0 -1
  1323. package/dist/web-components-library/p-324933f6.entry.js +0 -1
  1324. package/dist/web-components-library/p-3c53e451.entry.js +0 -1
  1325. package/dist/web-components-library/p-41584e90.entry.js +0 -1
  1326. package/dist/web-components-library/p-4d1b3d16.entry.js +0 -1
  1327. package/dist/web-components-library/p-50e10a10.entry.js +0 -1
  1328. package/dist/web-components-library/p-52899754.entry.js +0 -1
  1329. package/dist/web-components-library/p-53670be4.entry.js +0 -1
  1330. package/dist/web-components-library/p-5a05dc1e.entry.js +0 -1
  1331. package/dist/web-components-library/p-5d20fc3d.entry.js +0 -1
  1332. package/dist/web-components-library/p-622466f9.entry.js +0 -1
  1333. package/dist/web-components-library/p-62d2247e.entry.js +0 -1
  1334. package/dist/web-components-library/p-64c025f6.entry.js +0 -1
  1335. package/dist/web-components-library/p-658f022d.entry.js +0 -1
  1336. package/dist/web-components-library/p-7226f07a.entry.js +0 -1
  1337. package/dist/web-components-library/p-7371a543.entry.js +0 -2
  1338. package/dist/web-components-library/p-77bf39a4.entry.js +0 -1
  1339. package/dist/web-components-library/p-788eaac7.entry.js +0 -1
  1340. package/dist/web-components-library/p-7bf7539a.entry.js +0 -1
  1341. package/dist/web-components-library/p-81eb43fd.entry.js +0 -1
  1342. package/dist/web-components-library/p-88a3ba7c.entry.js +0 -1
  1343. package/dist/web-components-library/p-89daaeb5.entry.js +0 -1
  1344. package/dist/web-components-library/p-8a33c769.entry.js +0 -1
  1345. package/dist/web-components-library/p-8d7e2e16.entry.js +0 -1
  1346. package/dist/web-components-library/p-8de064a4.entry.js +0 -1
  1347. package/dist/web-components-library/p-8eb8b5be.entry.js +0 -1
  1348. package/dist/web-components-library/p-8f4a04aa.entry.js +0 -1
  1349. package/dist/web-components-library/p-B0bOjMSb.js +0 -1
  1350. package/dist/web-components-library/p-a4f673f8.entry.js +0 -1
  1351. package/dist/web-components-library/p-aa4fc3d3.entry.js +0 -1
  1352. package/dist/web-components-library/p-aa72d766.entry.js +0 -1
  1353. package/dist/web-components-library/p-ad2cd7fc.entry.js +0 -1
  1354. package/dist/web-components-library/p-b01ff8e6.entry.js +0 -1
  1355. package/dist/web-components-library/p-b6223d7e.entry.js +0 -1
  1356. package/dist/web-components-library/p-b851f20b.entry.js +0 -1
  1357. package/dist/web-components-library/p-b9343431.entry.js +0 -1
  1358. package/dist/web-components-library/p-be354b22.entry.js +0 -1
  1359. package/dist/web-components-library/p-c42ddd93.entry.js +0 -1
  1360. package/dist/web-components-library/p-c4e7bd16.entry.js +0 -1
  1361. package/dist/web-components-library/p-c643f3ff.entry.js +0 -1
  1362. package/dist/web-components-library/p-c944a943.entry.js +0 -1
  1363. package/dist/web-components-library/p-cd33f4b1.entry.js +0 -1
  1364. package/dist/web-components-library/p-cdd88182.entry.js +0 -16
  1365. package/dist/web-components-library/p-ce3bbaf2.entry.js +0 -1
  1366. package/dist/web-components-library/p-cf403b75.entry.js +0 -1
  1367. package/dist/web-components-library/p-d121122f.entry.js +0 -1
  1368. package/dist/web-components-library/p-d3053434.entry.js +0 -1
  1369. package/dist/web-components-library/p-d63665c1.entry.js +0 -1
  1370. package/dist/web-components-library/p-da70be9b.entry.js +0 -1
  1371. package/dist/web-components-library/p-dabccb20.entry.js +0 -1
  1372. package/dist/web-components-library/p-dc5ab2cc.entry.js +0 -1
  1373. package/dist/web-components-library/p-dfd43710.entry.js +0 -1
  1374. package/dist/web-components-library/p-e1d0a6e3.entry.js +0 -1
  1375. package/dist/web-components-library/p-ec4940ce.entry.js +0 -1
  1376. package/dist/web-components-library/p-ef5018bb.entry.js +0 -1
  1377. package/www/build/p-0105149a.entry.js +0 -1
  1378. package/www/build/p-087956fa.entry.js +0 -1
  1379. package/www/build/p-10e5e16e.entry.js +0 -1
  1380. package/www/build/p-13e7f751.entry.js +0 -1
  1381. package/www/build/p-1580db58.entry.js +0 -1
  1382. package/www/build/p-1993b0ad.entry.js +0 -1
  1383. package/www/build/p-1a95491d.entry.js +0 -1
  1384. package/www/build/p-20d94cce.entry.js +0 -1
  1385. package/www/build/p-21c85e04.entry.js +0 -1
  1386. package/www/build/p-23b46642.entry.js +0 -1
  1387. package/www/build/p-271dfd9c.entry.js +0 -1
  1388. package/www/build/p-29dde955.entry.js +0 -1
  1389. package/www/build/p-2abf765d.entry.js +0 -1
  1390. package/www/build/p-2d4c01c3.entry.js +0 -1
  1391. package/www/build/p-2dabe353.entry.js +0 -1
  1392. package/www/build/p-2df6d169.entry.js +0 -1
  1393. package/www/build/p-2ef82e17.entry.js +0 -1
  1394. package/www/build/p-313fc91d.entry.js +0 -1
  1395. package/www/build/p-324933f6.entry.js +0 -1
  1396. package/www/build/p-3c53e451.entry.js +0 -1
  1397. package/www/build/p-41584e90.entry.js +0 -1
  1398. package/www/build/p-4d1b3d16.entry.js +0 -1
  1399. package/www/build/p-50e10a10.entry.js +0 -1
  1400. package/www/build/p-52899754.entry.js +0 -1
  1401. package/www/build/p-53670be4.entry.js +0 -1
  1402. package/www/build/p-5a05dc1e.entry.js +0 -1
  1403. package/www/build/p-5d20fc3d.entry.js +0 -1
  1404. package/www/build/p-622466f9.entry.js +0 -1
  1405. package/www/build/p-62d2247e.entry.js +0 -1
  1406. package/www/build/p-64c025f6.entry.js +0 -1
  1407. package/www/build/p-658f022d.entry.js +0 -1
  1408. package/www/build/p-7226f07a.entry.js +0 -1
  1409. package/www/build/p-7371a543.entry.js +0 -2
  1410. package/www/build/p-77bf39a4.entry.js +0 -1
  1411. package/www/build/p-788eaac7.entry.js +0 -1
  1412. package/www/build/p-7bf7539a.entry.js +0 -1
  1413. package/www/build/p-81eb43fd.entry.js +0 -1
  1414. package/www/build/p-88a3ba7c.entry.js +0 -1
  1415. package/www/build/p-89daaeb5.entry.js +0 -1
  1416. package/www/build/p-8a33c769.entry.js +0 -1
  1417. package/www/build/p-8d7e2e16.entry.js +0 -1
  1418. package/www/build/p-8de064a4.entry.js +0 -1
  1419. package/www/build/p-8eb8b5be.entry.js +0 -1
  1420. package/www/build/p-8f4a04aa.entry.js +0 -1
  1421. package/www/build/p-B0bOjMSb.js +0 -1
  1422. package/www/build/p-a4f673f8.entry.js +0 -1
  1423. package/www/build/p-aa4fc3d3.entry.js +0 -1
  1424. package/www/build/p-aa72d766.entry.js +0 -1
  1425. package/www/build/p-ad2cd7fc.entry.js +0 -1
  1426. package/www/build/p-b01ff8e6.entry.js +0 -1
  1427. package/www/build/p-b6223d7e.entry.js +0 -1
  1428. package/www/build/p-b851f20b.entry.js +0 -1
  1429. package/www/build/p-b9343431.entry.js +0 -1
  1430. package/www/build/p-be354b22.entry.js +0 -1
  1431. package/www/build/p-c42ddd93.entry.js +0 -1
  1432. package/www/build/p-c4e7bd16.entry.js +0 -1
  1433. package/www/build/p-c643f3ff.entry.js +0 -1
  1434. package/www/build/p-c944a943.entry.js +0 -1
  1435. package/www/build/p-cd33f4b1.entry.js +0 -1
  1436. package/www/build/p-cdd88182.entry.js +0 -16
  1437. package/www/build/p-ce3bbaf2.entry.js +0 -1
  1438. package/www/build/p-cf403b75.entry.js +0 -1
  1439. package/www/build/p-d121122f.entry.js +0 -1
  1440. package/www/build/p-d3053434.entry.js +0 -1
  1441. package/www/build/p-d63665c1.entry.js +0 -1
  1442. package/www/build/p-da70be9b.entry.js +0 -1
  1443. package/www/build/p-dabccb20.entry.js +0 -1
  1444. package/www/build/p-dc5ab2cc.entry.js +0 -1
  1445. package/www/build/p-dfd43710.entry.js +0 -1
  1446. package/www/build/p-e1d0a6e3.entry.js +0 -1
  1447. package/www/build/p-ec4940ce.entry.js +0 -1
  1448. package/www/build/p-ef5018bb.entry.js +0 -1
  1449. package/www/build/p-f6f0b188.js +0 -1
@@ -0,0 +1,1446 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D_S5lGcb.js');
4
+ var utils = require('./utils-DRCgbM7t.js');
5
+ var index$1 = require('./index-wGaSHN1_.js');
6
+
7
+ /*!
8
+ * focus-trap 8.2.1
9
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
10
+ */
11
+
12
+ function _arrayLikeToArray(r, a) {
13
+ (null == a || a > r.length) && (a = r.length);
14
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
15
+ return n;
16
+ }
17
+ function _arrayWithoutHoles(r) {
18
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
19
+ }
20
+ function _createForOfIteratorHelper(r, e) {
21
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
22
+ if (!t) {
23
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
24
+ t && (r = t);
25
+ var n = 0,
26
+ F = function () {};
27
+ return {
28
+ s: F,
29
+ n: function () {
30
+ return n >= r.length ? {
31
+ done: true
32
+ } : {
33
+ done: false,
34
+ value: r[n++]
35
+ };
36
+ },
37
+ e: function (r) {
38
+ throw r;
39
+ },
40
+ f: F
41
+ };
42
+ }
43
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
44
+ }
45
+ var o,
46
+ a = true,
47
+ u = false;
48
+ return {
49
+ s: function () {
50
+ t = t.call(r);
51
+ },
52
+ n: function () {
53
+ var r = t.next();
54
+ return a = r.done, r;
55
+ },
56
+ e: function (r) {
57
+ u = true, o = r;
58
+ },
59
+ f: function () {
60
+ try {
61
+ a || null == t.return || t.return();
62
+ } finally {
63
+ if (u) throw o;
64
+ }
65
+ }
66
+ };
67
+ }
68
+ function _defineProperty(e, r, t) {
69
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
70
+ value: t,
71
+ enumerable: true,
72
+ configurable: true,
73
+ writable: true
74
+ }) : e[r] = t, e;
75
+ }
76
+ function _iterableToArray(r) {
77
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
78
+ }
79
+ function _nonIterableSpread() {
80
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
81
+ }
82
+ function ownKeys(e, r) {
83
+ var t = Object.keys(e);
84
+ if (Object.getOwnPropertySymbols) {
85
+ var o = Object.getOwnPropertySymbols(e);
86
+ r && (o = o.filter(function (r) {
87
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
88
+ })), t.push.apply(t, o);
89
+ }
90
+ return t;
91
+ }
92
+ function _objectSpread2(e) {
93
+ for (var r = 1; r < arguments.length; r++) {
94
+ var t = null != arguments[r] ? arguments[r] : {};
95
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
96
+ _defineProperty(e, r, t[r]);
97
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
98
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
99
+ });
100
+ }
101
+ return e;
102
+ }
103
+ function _toConsumableArray(r) {
104
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
105
+ }
106
+ function _toPrimitive(t, r) {
107
+ if ("object" != typeof t || !t) return t;
108
+ var e = t[Symbol.toPrimitive];
109
+ if (void 0 !== e) {
110
+ var i = e.call(t, r);
111
+ if ("object" != typeof i) return i;
112
+ throw new TypeError("@@toPrimitive must return a primitive value.");
113
+ }
114
+ return ("string" === r ? String : Number)(t);
115
+ }
116
+ function _toPropertyKey(t) {
117
+ var i = _toPrimitive(t, "string");
118
+ return "symbol" == typeof i ? i : i + "";
119
+ }
120
+ function _unsupportedIterableToArray(r, a) {
121
+ if (r) {
122
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
123
+ var t = {}.toString.call(r).slice(8, -1);
124
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
125
+ }
126
+ }
127
+
128
+ var activeFocusTraps = {
129
+ // Returns the trap from the top of the stack.
130
+ getActiveTrap: function getActiveTrap(trapStack) {
131
+ if ((trapStack === null || trapStack === void 0 ? void 0 : trapStack.length) > 0) {
132
+ return trapStack[trapStack.length - 1];
133
+ }
134
+ return null;
135
+ },
136
+ // Pauses the currently active trap, then adds a new trap to the stack.
137
+ activateTrap: function activateTrap(trapStack, trap) {
138
+ var activeTrap = activeFocusTraps.getActiveTrap(trapStack);
139
+ if (trap !== activeTrap) {
140
+ activeFocusTraps.pauseTrap(trapStack);
141
+ }
142
+ var trapIndex = trapStack.indexOf(trap);
143
+ if (trapIndex === -1) {
144
+ trapStack.push(trap);
145
+ } else {
146
+ // move this existing trap to the front of the queue
147
+ trapStack.splice(trapIndex, 1);
148
+ trapStack.push(trap);
149
+ }
150
+ },
151
+ // Removes the trap from the top of the stack, then unpauses the next trap down.
152
+ deactivateTrap: function deactivateTrap(trapStack, trap) {
153
+ var trapIndex = trapStack.indexOf(trap);
154
+ if (trapIndex !== -1) {
155
+ trapStack.splice(trapIndex, 1);
156
+ }
157
+ activeFocusTraps.unpauseTrap(trapStack);
158
+ },
159
+ // Pauses the trap at the top of the stack.
160
+ pauseTrap: function pauseTrap(trapStack) {
161
+ var activeTrap = activeFocusTraps.getActiveTrap(trapStack);
162
+ activeTrap === null || activeTrap === void 0 || activeTrap._setPausedState(true);
163
+ },
164
+ // Unpauses the trap at the top of the stack.
165
+ unpauseTrap: function unpauseTrap(trapStack) {
166
+ var activeTrap = activeFocusTraps.getActiveTrap(trapStack);
167
+ if (activeTrap && !activeTrap._isManuallyPaused()) {
168
+ activeTrap._setPausedState(false);
169
+ }
170
+ }
171
+ };
172
+ var isSelectableInput = function isSelectableInput(node) {
173
+ return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
174
+ };
175
+ var isEscapeEvent = function isEscapeEvent(e) {
176
+ return (e === null || e === void 0 ? void 0 : e.key) === 'Escape' || (e === null || e === void 0 ? void 0 : e.key) === 'Esc' || (e === null || e === void 0 ? void 0 : e.keyCode) === 27;
177
+ };
178
+ var isTabEvent = function isTabEvent(e) {
179
+ return (e === null || e === void 0 ? void 0 : e.key) === 'Tab' || (e === null || e === void 0 ? void 0 : e.keyCode) === 9;
180
+ };
181
+
182
+ // checks for TAB by default
183
+ var isKeyForward = function isKeyForward(e) {
184
+ return isTabEvent(e) && !e.shiftKey;
185
+ };
186
+
187
+ // checks for SHIFT+TAB by default
188
+ var isKeyBackward = function isKeyBackward(e) {
189
+ return isTabEvent(e) && e.shiftKey;
190
+ };
191
+ var delay = function delay(fn) {
192
+ return setTimeout(fn, 0);
193
+ };
194
+
195
+ /**
196
+ * Get an option's value when it could be a plain value, or a handler that provides
197
+ * the value.
198
+ * @param {*} value Option's value to check.
199
+ * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
200
+ * @returns {*} The `value`, or the handler's returned value.
201
+ */
202
+ var valueOrHandler = function valueOrHandler(value) {
203
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
204
+ params[_key - 1] = arguments[_key];
205
+ }
206
+ return typeof value === 'function' ? value.apply(void 0, params) : value;
207
+ };
208
+ var getActualTarget = function getActualTarget(event) {
209
+ // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
210
+ // shadow host. However, event.target.composedPath() will be an array of
211
+ // nodes "clicked" from inner-most (the actual element inside the shadow) to
212
+ // outer-most (the host HTML document). If we have access to composedPath(),
213
+ // then use its first element; otherwise, fall back to event.target (and
214
+ // this only works for an _open_ shadow DOM; otherwise,
215
+ // composedPath()[0] === event.target always).
216
+ return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
217
+ };
218
+
219
+ // NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
220
+ // current instance use the same stack if `userOptions.trapStack` isn't specified
221
+ var internalTrapStack = [];
222
+ var createFocusTrap = function createFocusTrap(elements, userOptions) {
223
+ // SSR: a live trap shouldn't be created in this type of environment so this
224
+ // should be safe code to execute if the `document` option isn't specified
225
+ var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
226
+ var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
227
+ var config = _objectSpread2({
228
+ returnFocusOnDeactivate: true,
229
+ escapeDeactivates: true,
230
+ delayInitialFocus: true,
231
+ delayReturnFocus: true,
232
+ isolateSubtrees: false,
233
+ isKeyForward: isKeyForward,
234
+ isKeyBackward: isKeyBackward
235
+ }, userOptions);
236
+ var state = {
237
+ // containers given to createFocusTrap()
238
+ /** @type {Array<HTMLElement>} */
239
+ containers: [],
240
+ // list of objects identifying tabbable nodes in `containers` in the trap
241
+ // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
242
+ // is active, but the trap should never get to a state where there isn't at least one group
243
+ // with at least one tabbable node in it (that would lead to an error condition that would
244
+ // result in an error being thrown)
245
+ /** @type {Array<{
246
+ * container: HTMLElement,
247
+ * tabbableNodes: Array<HTMLElement>, // empty if none
248
+ * focusableNodes: Array<HTMLElement>, // empty if none
249
+ * posTabIndexesFound: boolean,
250
+ * firstTabbableNode: HTMLElement|undefined,
251
+ * lastTabbableNode: HTMLElement|undefined,
252
+ * firstDomTabbableNode: HTMLElement|undefined,
253
+ * lastDomTabbableNode: HTMLElement|undefined,
254
+ * nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
255
+ * }>}
256
+ */
257
+ containerGroups: [],
258
+ // same order/length as `containers` list
259
+
260
+ // references to objects in `containerGroups`, but only those that actually have
261
+ // tabbable nodes in them
262
+ // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
263
+ // the same length
264
+ tabbableGroups: [],
265
+ // references to nodes that are siblings to the ancestors of this trap's containers.
266
+ /** @type {Set<HTMLElement>} */
267
+ adjacentElements: new Set(),
268
+ // references to nodes that were inert or aria-hidden before the trap was activated.
269
+ /** @type {Set<HTMLElement>} */
270
+ alreadySilent: new Set(),
271
+ nodeFocusedBeforeActivation: null,
272
+ mostRecentlyFocusedNode: null,
273
+ active: false,
274
+ paused: false,
275
+ manuallyPaused: false,
276
+ // timer ID for when delayInitialFocus is true and initial focus in this trap
277
+ // has been delayed during activation
278
+ delayInitialFocusTimer: undefined,
279
+ // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
280
+ recentNavEvent: undefined
281
+ };
282
+ var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
283
+
284
+ /**
285
+ * Gets a configuration option value.
286
+ * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
287
+ * value will be taken from this object. Otherwise, value will be taken from base configuration.
288
+ * @param {string} optionName Name of the option whose value is sought.
289
+ * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
290
+ * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
291
+ */
292
+ var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
293
+ return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
294
+ };
295
+
296
+ /**
297
+ * Finds the index of the container that contains the element.
298
+ * @param {HTMLElement} element
299
+ * @param {Event} [event] If available, and `element` isn't directly found in any container,
300
+ * the event's composed path is used to see if includes any known trap containers in the
301
+ * case where the element is inside a Shadow DOM.
302
+ * @returns {number} Index of the container in either `state.containers` or
303
+ * `state.containerGroups` (the order/length of these lists are the same); -1
304
+ * if the element isn't found.
305
+ */
306
+ var findContainerIndex = function findContainerIndex(element, event) {
307
+ var composedPath = typeof (event === null || event === void 0 ? void 0 : event.composedPath) === 'function' ? event.composedPath() : undefined;
308
+ // NOTE: search `containerGroups` because it's possible a group contains no tabbable
309
+ // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
310
+ // and we still need to find the element in there
311
+ return state.containerGroups.findIndex(function (_ref) {
312
+ var container = _ref.container,
313
+ tabbableNodes = _ref.tabbableNodes;
314
+ return container.contains(element) || (// fall back to explicit tabbable search which will take into consideration any
315
+ // web components if the `tabbableOptions.getShadowRoot` option was used for
316
+ // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
317
+ // look inside web components even if open)
318
+ composedPath === null || composedPath === void 0 ? void 0 : composedPath.includes(container)) || tabbableNodes.find(function (node) {
319
+ return node === element;
320
+ });
321
+ });
322
+ };
323
+
324
+ /**
325
+ * Gets the node for the given option, which is expected to be an option that
326
+ * can be either a DOM node, a string that is a selector to get a node, `false`
327
+ * (if a node is explicitly NOT given), or a function that returns any of these
328
+ * values.
329
+ * @param {string} optionName
330
+ * @param {Object} options
331
+ * @param {boolean} [options.hasFallback] True if the option could be a selector string
332
+ * and the option allows for a fallback scenario in the case where the selector is
333
+ * valid but does not match a node (i.e. the queried node doesn't exist in the DOM).
334
+ * @param {Array} [options.params] Params to pass to the option if it's a function.
335
+ * @returns {undefined | null | false | HTMLElement | SVGElement} Returns
336
+ * `undefined` if the option is not specified; `null` if the option didn't resolve
337
+ * to a node but `options.hasFallback=true`, `false` if the option resolved to `false`
338
+ * (node explicitly not given); otherwise, the resolved DOM node.
339
+ * @throws {Error} If the option is set, not `false`, and is not, or does not
340
+ * resolve to a node, unless the option is a selector string and `options.hasFallback=true`.
341
+ */
342
+ var getNodeForOption = function getNodeForOption(optionName) {
343
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
344
+ _ref2$hasFallback = _ref2.hasFallback,
345
+ hasFallback = _ref2$hasFallback === void 0 ? false : _ref2$hasFallback,
346
+ _ref2$params = _ref2.params,
347
+ params = _ref2$params === void 0 ? [] : _ref2$params;
348
+ var optionValue = config[optionName];
349
+ if (typeof optionValue === 'function') {
350
+ optionValue = optionValue.apply(void 0, _toConsumableArray(params));
351
+ }
352
+ if (optionValue === true) {
353
+ optionValue = undefined; // use default value
354
+ }
355
+ if (!optionValue) {
356
+ if (optionValue === undefined || optionValue === false) {
357
+ return optionValue;
358
+ }
359
+ // else, empty string (invalid), null (invalid), 0 (invalid)
360
+
361
+ throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
362
+ }
363
+ var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
364
+
365
+ if (typeof optionValue === 'string') {
366
+ try {
367
+ node = doc.querySelector(optionValue); // resolve to node, or null if fails
368
+ } catch (err) {
369
+ throw new Error("`".concat(optionName, "` appears to be an invalid selector; error=\"").concat(err.message, "\""));
370
+ }
371
+ if (!node) {
372
+ if (!hasFallback) {
373
+ throw new Error("`".concat(optionName, "` as selector refers to no known node"));
374
+ }
375
+ // else, `node` MUST be `null` because that's what `Document.querySelector()` returns
376
+ // if the selector is valid but doesn't match anything
377
+ }
378
+ }
379
+ return node;
380
+ };
381
+
382
+ /**
383
+ * Gets the current activeElement. If it's a web-component and has open shadow-root
384
+ * it will recursively search inside shadow roots for the "true" activeElement.
385
+ *
386
+ * @param {Document | ShadowRoot} el
387
+ *
388
+ * @returns {HTMLElement|null} The element that currently has the focus. `null` if a focused element isn't found.
389
+ **/
390
+ var _getActiveElement = function getActiveElement(el) {
391
+ var activeElement = el.activeElement;
392
+ if (!activeElement) {
393
+ return null;
394
+ }
395
+ if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
396
+ return _getActiveElement(activeElement.shadowRoot);
397
+ }
398
+ return activeElement;
399
+ };
400
+ var getInitialFocusNode = function getInitialFocusNode() {
401
+ var node = getNodeForOption('initialFocus', {
402
+ hasFallback: true
403
+ });
404
+
405
+ // false explicitly indicates we want no initialFocus at all
406
+ if (node === false) {
407
+ return false;
408
+ }
409
+ if (node === undefined || node && !utils.isFocusable(node, config.tabbableOptions)) {
410
+ var activeElement = _getActiveElement(doc);
411
+
412
+ // option not specified nor focusable: use fallback options
413
+ if (findContainerIndex(activeElement) >= 0) {
414
+ node = activeElement;
415
+ } else {
416
+ var firstTabbableGroup = state.tabbableGroups[0];
417
+ var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
418
+
419
+ // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
420
+ node = firstTabbableNode || getNodeForOption('fallbackFocus');
421
+ }
422
+ } else if (node === null) {
423
+ // option is a VALID selector string that doesn't yield a node: use the `fallbackFocus`
424
+ // option instead of the default behavior when the option isn't specified at all
425
+ node = getNodeForOption('fallbackFocus');
426
+ }
427
+ if (!node) {
428
+ throw new Error('Your focus-trap needs to have at least one focusable element');
429
+ }
430
+ return node;
431
+ };
432
+ var updateTabbableNodes = function updateTabbableNodes() {
433
+ state.containerGroups = state.containers.map(function (container) {
434
+ var tabbableNodes = utils.tabbable(container, config.tabbableOptions);
435
+
436
+ // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
437
+ // are a superset of tabbable nodes since nodes with negative `tabindex` attributes
438
+ // are focusable but not tabbable
439
+ var focusableNodes = utils.focusable(container, config.tabbableOptions);
440
+ var firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : undefined;
441
+ var lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : undefined;
442
+ var firstDomTabbableNode = focusableNodes.find(function (node) {
443
+ return utils.isTabbable(node);
444
+ });
445
+ var lastDomTabbableNode = focusableNodes.slice().reverse().find(function (node) {
446
+ return utils.isTabbable(node);
447
+ });
448
+ var posTabIndexesFound = !!tabbableNodes.find(function (node) {
449
+ return utils.getTabIndex(node) > 0;
450
+ });
451
+ return {
452
+ container: container,
453
+ tabbableNodes: tabbableNodes,
454
+ focusableNodes: focusableNodes,
455
+ /** True if at least one node with positive `tabindex` was found in this container. */
456
+ posTabIndexesFound: posTabIndexesFound,
457
+ /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
458
+ firstTabbableNode: firstTabbableNode,
459
+ /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
460
+ lastTabbableNode: lastTabbableNode,
461
+ // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
462
+ // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
463
+ // because that API doesn't work with Shadow DOM as well as it should (@see
464
+ // https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
465
+ // to address an edge case related to positive tabindex support, this seems like a much easier,
466
+ // "close enough most of the time" alternative for positive tabindexes which should generally
467
+ // be avoided anyway...
468
+ /** First tabbable node in container, __DOM__ order; `undefined` if none. */
469
+ firstDomTabbableNode: firstDomTabbableNode,
470
+ /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
471
+ lastDomTabbableNode: lastDomTabbableNode,
472
+ /**
473
+ * Finds the __tabbable__ node that follows the given node in the specified direction,
474
+ * in this container, if any.
475
+ * @param {HTMLElement} node
476
+ * @param {boolean} [forward] True if going in forward tab order; false if going
477
+ * in reverse.
478
+ * @returns {HTMLElement|undefined} The next tabbable node, if any.
479
+ */
480
+ nextTabbableNode: function nextTabbableNode(node) {
481
+ var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
482
+ var nodeIdx = tabbableNodes.indexOf(node);
483
+ if (nodeIdx < 0) {
484
+ // either not tabbable nor focusable, or was focused but not tabbable (negative tabindex):
485
+ // since `node` should at least have been focusable, we assume that's the case and mimic
486
+ // what browsers do, which is set focus to the next node in __document position order__,
487
+ // regardless of positive tabindexes, if any -- and for reasons explained in the NOTE
488
+ // above related to `firstDomTabbable` and `lastDomTabbable` properties, we fall back to
489
+ // basic DOM order
490
+ if (forward) {
491
+ return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find(function (el) {
492
+ return utils.isTabbable(el);
493
+ });
494
+ }
495
+ return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find(function (el) {
496
+ return utils.isTabbable(el);
497
+ });
498
+ }
499
+ return tabbableNodes[nodeIdx + (forward ? 1 : -1)];
500
+ }
501
+ };
502
+ });
503
+ state.tabbableGroups = state.containerGroups.filter(function (group) {
504
+ return group.tabbableNodes.length > 0;
505
+ });
506
+
507
+ // throw if no groups have tabbable nodes and we don't have a fallback focus node either
508
+ if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
509
+ ) {
510
+ throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
511
+ }
512
+
513
+ // NOTE: Positive tabindexes are only properly supported in single-container traps because
514
+ // doing it across multiple containers where tabindexes could be all over the place
515
+ // would require Tabbable to support multiple containers, would require additional
516
+ // specialized Shadow DOM support, and would require Tabbable's multi-container support
517
+ // to look at those containers in document position order rather than user-provided
518
+ // order (as they are treated in Focus-trap, for legacy reasons). See discussion on
519
+ // https://github.com/focus-trap/focus-trap/issues/375 for more details.
520
+ if (state.containerGroups.find(function (g) {
521
+ return g.posTabIndexesFound;
522
+ }) && state.containerGroups.length > 1) {
523
+ throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
524
+ }
525
+ };
526
+ var _tryFocus = function tryFocus(node) {
527
+ if (node === false) {
528
+ return;
529
+ }
530
+ if (node === _getActiveElement(document)) {
531
+ return;
532
+ }
533
+ if (!node || !node.focus) {
534
+ _tryFocus(getInitialFocusNode());
535
+ return;
536
+ }
537
+ node.focus({
538
+ preventScroll: !!config.preventScroll
539
+ });
540
+ // NOTE: focus() API does not trigger focusIn event so set MRU node manually
541
+ state.mostRecentlyFocusedNode = node;
542
+ if (isSelectableInput(node)) {
543
+ node.select();
544
+ }
545
+ };
546
+ var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
547
+ var node = getNodeForOption('setReturnFocus', {
548
+ params: [previousActiveElement]
549
+ });
550
+ return node ? node : node === false ? false : previousActiveElement;
551
+ };
552
+
553
+ /**
554
+ * Finds the next node (in either direction) where focus should move according to a
555
+ * keyboard focus-in event.
556
+ * @param {Object} params
557
+ * @param {Node} [params.target] Known target __from which__ to navigate, if any.
558
+ * @param {KeyboardEvent|FocusEvent} [params.event] Event to use if `target` isn't known (event
559
+ * will be used to determine the `target`). Ignored if `target` is specified.
560
+ * @param {boolean} [params.isBackward] True if focus should move backward.
561
+ * @returns {Node|undefined} The next node, or `undefined` if a next node couldn't be
562
+ * determined given the current state of the trap.
563
+ */
564
+ var findNextNavNode = function findNextNavNode(_ref3) {
565
+ var target = _ref3.target,
566
+ event = _ref3.event,
567
+ _ref3$isBackward = _ref3.isBackward,
568
+ isBackward = _ref3$isBackward === void 0 ? false : _ref3$isBackward;
569
+ target = target || getActualTarget(event);
570
+ updateTabbableNodes();
571
+ var destinationNode = null;
572
+ if (state.tabbableGroups.length > 0) {
573
+ // make sure the target is actually contained in a group
574
+ // NOTE: the target may also be the container itself if it's focusable
575
+ // with tabIndex='-1' and was given initial focus
576
+ var containerIndex = findContainerIndex(target, event);
577
+ var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
578
+ if (containerIndex < 0) {
579
+ // target not found in any group: quite possible focus has escaped the trap,
580
+ // so bring it back into...
581
+ if (isBackward) {
582
+ // ...the last node in the last group
583
+ destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
584
+ } else {
585
+ // ...the first node in the first group
586
+ destinationNode = state.tabbableGroups[0].firstTabbableNode;
587
+ }
588
+ } else if (isBackward) {
589
+ // REVERSE
590
+
591
+ // is the target the first tabbable node in a group?
592
+ var startOfGroupIndex = state.tabbableGroups.findIndex(function (_ref4) {
593
+ var firstTabbableNode = _ref4.firstTabbableNode;
594
+ return target === firstTabbableNode;
595
+ });
596
+ if (startOfGroupIndex < 0 && (containerGroup.container === target || utils.isFocusable(target, config.tabbableOptions) && !utils.isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
597
+ // an exception case where the target is either the container itself, or
598
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
599
+ // and user clicked on it or node was programmatically given focus)
600
+ // and is not followed by any other tabbable node, in which
601
+ // case, we should handle shift+tab as if focus were on the container's
602
+ // first tabbable node, and go to the last tabbable node of the LAST group
603
+ startOfGroupIndex = containerIndex;
604
+ }
605
+ if (startOfGroupIndex >= 0) {
606
+ // YES: then shift+tab should go to the last tabbable node in the
607
+ // previous group (and wrap around to the last tabbable node of
608
+ // the LAST group if it's the first tabbable node of the FIRST group)
609
+ var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
610
+ var destinationGroup = state.tabbableGroups[destinationGroupIndex];
611
+ destinationNode = utils.getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;
612
+ } else if (!isTabEvent(event)) {
613
+ // user must have customized the nav keys so we have to move focus manually _within_
614
+ // the active group: do this based on the order determined by tabbable()
615
+ destinationNode = containerGroup.nextTabbableNode(target, false);
616
+ }
617
+ } else {
618
+ // FORWARD
619
+
620
+ // is the target the last tabbable node in a group?
621
+ var lastOfGroupIndex = state.tabbableGroups.findIndex(function (_ref5) {
622
+ var lastTabbableNode = _ref5.lastTabbableNode;
623
+ return target === lastTabbableNode;
624
+ });
625
+ if (lastOfGroupIndex < 0 && (containerGroup.container === target || utils.isFocusable(target, config.tabbableOptions) && !utils.isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
626
+ // an exception case where the target is the container itself, or
627
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
628
+ // and user clicked on it or node was programmatically given focus)
629
+ // and is not followed by any other tabbable node, in which
630
+ // case, we should handle tab as if focus were on the container's
631
+ // last tabbable node, and go to the first tabbable node of the FIRST group
632
+ lastOfGroupIndex = containerIndex;
633
+ }
634
+ if (lastOfGroupIndex >= 0) {
635
+ // YES: then tab should go to the first tabbable node in the next
636
+ // group (and wrap around to the first tabbable node of the FIRST
637
+ // group if it's the last tabbable node of the LAST group)
638
+ var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
639
+ var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
640
+ destinationNode = utils.getTabIndex(target) >= 0 ? _destinationGroup.firstTabbableNode : _destinationGroup.firstDomTabbableNode;
641
+ } else if (!isTabEvent(event)) {
642
+ // user must have customized the nav keys so we have to move focus manually _within_
643
+ // the active group: do this based on the order determined by tabbable()
644
+ destinationNode = containerGroup.nextTabbableNode(target);
645
+ }
646
+ }
647
+ } else {
648
+ // no groups available
649
+ // NOTE: the fallbackFocus option does not support returning false to opt-out
650
+ destinationNode = getNodeForOption('fallbackFocus');
651
+ }
652
+ return destinationNode;
653
+ };
654
+
655
+ // This needs to be done on mousedown and touchstart instead of click
656
+ // so that it precedes the focus event.
657
+ var checkPointerDown = function checkPointerDown(e) {
658
+ var target = getActualTarget(e);
659
+ if (findContainerIndex(target, e) >= 0) {
660
+ // allow the click since it occurred inside the trap
661
+ return;
662
+ }
663
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
664
+ // immediately deactivate the trap
665
+ trap.deactivate({
666
+ // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
667
+ // which will result in the outside click setting focus to the node
668
+ // that was clicked (and if not focusable, to "nothing"); by setting
669
+ // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
670
+ // on activation (or the configured `setReturnFocus` node), whether the
671
+ // outside click was on a focusable node or not
672
+ returnFocus: config.returnFocusOnDeactivate
673
+ });
674
+ return;
675
+ }
676
+
677
+ // This is needed for mobile devices.
678
+ // (If we'll only let `click` events through,
679
+ // then on mobile they will be blocked anyways if `touchstart` is blocked.)
680
+ if (valueOrHandler(config.allowOutsideClick, e)) {
681
+ // allow the click outside the trap to take place
682
+ return;
683
+ }
684
+
685
+ // otherwise, prevent the click
686
+ e.preventDefault();
687
+ };
688
+
689
+ // In case focus escapes the trap for some strange reason, pull it back in.
690
+ // NOTE: the focusIn event is NOT cancelable, so if focus escapes, it may cause unexpected
691
+ // scrolling if the node that got focused was out of view; there's nothing we can do to
692
+ // prevent that from happening by the time we discover that focus escaped
693
+ var checkFocusIn = function checkFocusIn(event) {
694
+ var target = getActualTarget(event);
695
+ var targetContained = findContainerIndex(target, event) >= 0;
696
+
697
+ // In Firefox when you Tab out of an iframe the Document is briefly focused.
698
+ if (targetContained || target instanceof Document) {
699
+ if (targetContained) {
700
+ state.mostRecentlyFocusedNode = target;
701
+ }
702
+ } else {
703
+ // escaped! pull it back in to where it just left
704
+ event.stopImmediatePropagation();
705
+
706
+ // focus will escape if the MRU node had a positive tab index and user tried to nav forward;
707
+ // it will also escape if the MRU node had a 0 tab index and user tried to nav backward
708
+ // toward a node with a positive tab index
709
+ var nextNode; // next node to focus, if we find one
710
+ var navAcrossContainers = true;
711
+ if (state.mostRecentlyFocusedNode) {
712
+ if (utils.getTabIndex(state.mostRecentlyFocusedNode) > 0) {
713
+ // MRU container index must be >=0 otherwise we wouldn't have it as an MRU node...
714
+ var mruContainerIdx = findContainerIndex(state.mostRecentlyFocusedNode);
715
+ // there MAY not be any tabbable nodes in the container if there are at least 2 containers
716
+ // and the MRU node is focusable but not tabbable (focus-trap requires at least 1 container
717
+ // with at least one tabbable node in order to function, so this could be the other container
718
+ // with nothing tabbable in it)
719
+ var tabbableNodes = state.containerGroups[mruContainerIdx].tabbableNodes;
720
+ if (tabbableNodes.length > 0) {
721
+ // MRU tab index MAY not be found if the MRU node is focusable but not tabbable
722
+ var mruTabIdx = tabbableNodes.findIndex(function (node) {
723
+ return node === state.mostRecentlyFocusedNode;
724
+ });
725
+ if (mruTabIdx >= 0) {
726
+ if (config.isKeyForward(state.recentNavEvent)) {
727
+ if (mruTabIdx + 1 < tabbableNodes.length) {
728
+ nextNode = tabbableNodes[mruTabIdx + 1];
729
+ navAcrossContainers = false;
730
+ }
731
+ // else, don't wrap within the container as focus should move to next/previous
732
+ // container
733
+ } else {
734
+ if (mruTabIdx - 1 >= 0) {
735
+ nextNode = tabbableNodes[mruTabIdx - 1];
736
+ navAcrossContainers = false;
737
+ }
738
+ // else, don't wrap within the container as focus should move to next/previous
739
+ // container
740
+ }
741
+ // else, don't find in container order without considering direction too
742
+ }
743
+ }
744
+ // else, no tabbable nodes in that container (which means we must have at least one other
745
+ // container with at least one tabbable node in it, otherwise focus-trap would've thrown
746
+ // an error the last time updateTabbableNodes() was run): find next node among all known
747
+ // containers
748
+ } else {
749
+ // check to see if there's at least one tabbable node with a positive tab index inside
750
+ // the trap because focus seems to escape when navigating backward from a tabbable node
751
+ // with tabindex=0 when this is the case (instead of wrapping to the tabbable node with
752
+ // the greatest positive tab index like it should)
753
+ if (!state.containerGroups.some(function (g) {
754
+ return g.tabbableNodes.some(function (n) {
755
+ return utils.getTabIndex(n) > 0;
756
+ });
757
+ })) {
758
+ // no containers with tabbable nodes with positive tab indexes which means the focus
759
+ // escaped for some other reason and we should just execute the fallback to the
760
+ // MRU node or initial focus node, if any
761
+ navAcrossContainers = false;
762
+ }
763
+ }
764
+ } else {
765
+ // no MRU node means we're likely in some initial condition when the trap has just
766
+ // been activated and initial focus hasn't been given yet, in which case we should
767
+ // fall through to trying to focus the initial focus node, which is what should
768
+ // happen below at this point in the logic
769
+ navAcrossContainers = false;
770
+ }
771
+ if (navAcrossContainers) {
772
+ nextNode = findNextNavNode({
773
+ // move FROM the MRU node, not event-related node (which will be the node that is
774
+ // outside the trap causing the focus escape we're trying to fix)
775
+ target: state.mostRecentlyFocusedNode,
776
+ isBackward: config.isKeyBackward(state.recentNavEvent)
777
+ });
778
+ }
779
+ if (nextNode) {
780
+ _tryFocus(nextNode);
781
+ } else {
782
+ _tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
783
+ }
784
+ }
785
+ state.recentNavEvent = undefined; // clear
786
+ };
787
+
788
+ // Hijack key nav events on the first and last focusable nodes of the trap,
789
+ // in order to prevent focus from escaping. If it escapes for even a
790
+ // moment it can end up scrolling the page and causing confusion so we
791
+ // kind of need to capture the action at the keydown phase.
792
+ var checkKeyNav = function checkKeyNav(event) {
793
+ var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
794
+ state.recentNavEvent = event;
795
+ var destinationNode = findNextNavNode({
796
+ event: event,
797
+ isBackward: isBackward
798
+ });
799
+ if (destinationNode) {
800
+ if (isTabEvent(event)) {
801
+ // since tab natively moves focus, we wouldn't have a destination node unless we
802
+ // were on the edge of a container and had to move to the next/previous edge, in
803
+ // which case we want to prevent default to keep the browser from moving focus
804
+ // to where it normally would
805
+ event.preventDefault();
806
+ }
807
+ _tryFocus(destinationNode);
808
+ }
809
+ // else, let the browser take care of [shift+]tab and move the focus
810
+ };
811
+ var checkTabKey = function checkTabKey(event) {
812
+ if (config.isKeyForward(event) || config.isKeyBackward(event)) {
813
+ checkKeyNav(event, config.isKeyBackward(event));
814
+ }
815
+ };
816
+
817
+ // we use a different event phase for the Escape key to allow canceling the event and checking for this in escapeDeactivates
818
+ var checkEscapeKey = function checkEscapeKey(event) {
819
+ if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
820
+ event.preventDefault();
821
+ trap.deactivate();
822
+ }
823
+ };
824
+ var checkClick = function checkClick(e) {
825
+ var target = getActualTarget(e);
826
+ if (findContainerIndex(target, e) >= 0) {
827
+ return;
828
+ }
829
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
830
+ return;
831
+ }
832
+ if (valueOrHandler(config.allowOutsideClick, e)) {
833
+ return;
834
+ }
835
+ e.preventDefault();
836
+ e.stopImmediatePropagation();
837
+ };
838
+
839
+ //
840
+ // EVENT LISTENERS
841
+ //
842
+
843
+ /**
844
+ * Adds listeners to the document necessary for trapping focus and attempts to set focus
845
+ * to the configured initial focus node. Does nothing if the trap isn't active.
846
+ * @returns {Promise<void> | undefined} A promise resolved once the initial focus node has
847
+ * been focused when `delayInitialFocus=true`; `undefined` when focus is set synchronously
848
+ * or the trap isn't active.
849
+ */
850
+ var addListeners = function addListeners() {
851
+ if (!state.active) {
852
+ return;
853
+ }
854
+
855
+ // There can be only one listening focus trap at a time
856
+ activeFocusTraps.activateTrap(trapStack, trap);
857
+
858
+ // Delay ensures that the focused element doesn't capture the event
859
+ // that caused the focus trap activation.
860
+ /** @type {Promise<void> | undefined} */
861
+ var promise;
862
+ if (config.delayInitialFocus) {
863
+ // NOTE: Promise constructor callback is called synchronously, which is what we want
864
+ // since we need to capture the timer ID immediately
865
+ promise = new Promise(function (resolve) {
866
+ state.delayInitialFocusTimer = delay(function () {
867
+ _tryFocus(getInitialFocusNode());
868
+ resolve();
869
+ });
870
+ });
871
+ } else {
872
+ _tryFocus(getInitialFocusNode());
873
+ }
874
+ doc.addEventListener('focusin', checkFocusIn, true);
875
+ doc.addEventListener('mousedown', checkPointerDown, {
876
+ capture: true,
877
+ passive: false
878
+ });
879
+ doc.addEventListener('touchstart', checkPointerDown, {
880
+ capture: true,
881
+ passive: false
882
+ });
883
+ doc.addEventListener('click', checkClick, {
884
+ capture: true,
885
+ passive: false
886
+ });
887
+ doc.addEventListener('keydown', checkTabKey, {
888
+ capture: true,
889
+ passive: false
890
+ });
891
+ doc.addEventListener('keydown', checkEscapeKey);
892
+ return promise;
893
+ };
894
+
895
+ /**
896
+ * Traverses up the DOM from each of `containers`, collecting references to
897
+ * the elements that are siblings to `container` or an ancestor of `container`.
898
+ * @param {Array<HTMLElement>} containers
899
+ */
900
+ var collectAdjacentElements = function collectAdjacentElements(containers) {
901
+ // Re-activate all adjacent elements & clear previous collection.
902
+ if (state.active && !state.paused) {
903
+ trap._setSubtreeIsolation(false);
904
+ }
905
+ state.adjacentElements.clear();
906
+ state.alreadySilent.clear();
907
+
908
+ // Collect all ancestors of all containers to avoid redundant processing.
909
+ var containerAncestors = new Set();
910
+ var adjacentElements = new Set();
911
+
912
+ // Compile all elements adjacent to the focus trap containers & lineage.
913
+ var _iterator = _createForOfIteratorHelper(containers),
914
+ _step;
915
+ try {
916
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
917
+ var container = _step.value;
918
+ containerAncestors.add(container);
919
+ var insideShadowRoot = typeof ShadowRoot !== 'undefined' && container.getRootNode() instanceof ShadowRoot;
920
+ var current = container;
921
+ while (current) {
922
+ containerAncestors.add(current);
923
+ var parent = current.parentElement;
924
+ var siblings = [];
925
+ if (parent) {
926
+ siblings = parent.children;
927
+ } else if (!parent && insideShadowRoot) {
928
+ siblings = current.getRootNode().children;
929
+ parent = current.getRootNode().host;
930
+ insideShadowRoot = typeof ShadowRoot !== 'undefined' && parent.getRootNode() instanceof ShadowRoot;
931
+ }
932
+
933
+ // Add all the children, we'll remove container lineage later.
934
+ var _iterator2 = _createForOfIteratorHelper(siblings),
935
+ _step2;
936
+ try {
937
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
938
+ var child = _step2.value;
939
+ adjacentElements.add(child);
940
+ }
941
+ } catch (err) {
942
+ _iterator2.e(err);
943
+ } finally {
944
+ _iterator2.f();
945
+ }
946
+ current = parent;
947
+ }
948
+ }
949
+
950
+ // Multi-container traps may overlap.
951
+ // Remove elements within container lineages.
952
+ } catch (err) {
953
+ _iterator.e(err);
954
+ } finally {
955
+ _iterator.f();
956
+ }
957
+ containerAncestors.forEach(function (el) {
958
+ adjacentElements["delete"](el);
959
+ });
960
+ state.adjacentElements = adjacentElements;
961
+ };
962
+ var removeListeners = function removeListeners() {
963
+ if (!state.active) {
964
+ return;
965
+ }
966
+ doc.removeEventListener('focusin', checkFocusIn, true);
967
+ doc.removeEventListener('mousedown', checkPointerDown, true);
968
+ doc.removeEventListener('touchstart', checkPointerDown, true);
969
+ doc.removeEventListener('click', checkClick, true);
970
+ doc.removeEventListener('keydown', checkTabKey, true);
971
+ doc.removeEventListener('keydown', checkEscapeKey);
972
+ return trap;
973
+ };
974
+
975
+ //
976
+ // MUTATION OBSERVER
977
+ //
978
+
979
+ var checkDomRemoval = function checkDomRemoval(mutations) {
980
+ var focusedNode = state.mostRecentlyFocusedNode;
981
+ if (!focusedNode) {
982
+ return;
983
+ }
984
+ var isFocusedNodeRemoved = mutations.some(function (mutation) {
985
+ var removedNodes = Array.from(mutation.removedNodes);
986
+ return removedNodes.some(function (node) {
987
+ return node === focusedNode || typeof node.contains === 'function' && node.contains(focusedNode);
988
+ });
989
+ });
990
+
991
+ // If the currently focused node is removed then browsers will move focus to the
992
+ // <body> element. If this happens, try to move focus back into the trap.
993
+ if (isFocusedNodeRemoved && state.containers.some(function (container) {
994
+ return container === null || container === void 0 ? void 0 : container.isConnected;
995
+ })) {
996
+ // Refresh tabbable state before resolving initial focus because
997
+ // getInitialFocusNode() may fall back to the first tabbable node in the trap.
998
+ updateTabbableNodes();
999
+ var initialFocusNode = getInitialFocusNode();
1000
+ _tryFocus(initialFocusNode);
1001
+ }
1002
+ };
1003
+
1004
+ // Use MutationObserver - if supported - to detect if focused node is removed
1005
+ // from the DOM.
1006
+ var mutationObserver = typeof window !== 'undefined' && 'MutationObserver' in window ? new MutationObserver(checkDomRemoval) : undefined;
1007
+ var updateObservedNodes = function updateObservedNodes() {
1008
+ if (!mutationObserver) {
1009
+ return;
1010
+ }
1011
+ mutationObserver.disconnect();
1012
+ if (state.active && !state.paused) {
1013
+ state.containers.map(function (container) {
1014
+ mutationObserver.observe(container, {
1015
+ subtree: true,
1016
+ childList: true
1017
+ });
1018
+ });
1019
+ }
1020
+ };
1021
+
1022
+ //
1023
+ // TRAP DEFINITION
1024
+ //
1025
+
1026
+ trap = {
1027
+ get active() {
1028
+ return state.active;
1029
+ },
1030
+ get paused() {
1031
+ return state.paused;
1032
+ },
1033
+ activate: function activate(activateOptions) {
1034
+ if (state.active) {
1035
+ return this;
1036
+ }
1037
+ var onActivate = getOption(activateOptions, 'onActivate');
1038
+ var onPostActivate = getOption(activateOptions, 'onPostActivate');
1039
+ var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
1040
+
1041
+ // If a currently-active trap is isolating its subtree, we need to remove
1042
+ // that isolation to allow the new trap to find tabbable nodes.
1043
+ var preexistingTrap = activeFocusTraps.getActiveTrap(trapStack);
1044
+ var revertState = false;
1045
+ if (preexistingTrap && !preexistingTrap.paused) {
1046
+ var _preexistingTrap$_set;
1047
+ // [#1729] method MAY not exist if using `trapStack` option to share stack with older
1048
+ // versions of Focus-trap in the same DOM so use optional chaining here just in case
1049
+ // since this is a trap we may not have created from this instance of the library
1050
+ (_preexistingTrap$_set = preexistingTrap._setSubtreeIsolation) === null || _preexistingTrap$_set === void 0 || _preexistingTrap$_set.call(preexistingTrap, false);
1051
+ revertState = true;
1052
+ }
1053
+ try {
1054
+ if (!checkCanFocusTrap) {
1055
+ updateTabbableNodes();
1056
+ }
1057
+ state.active = true;
1058
+ state.paused = false;
1059
+ state.nodeFocusedBeforeActivation = _getActiveElement(doc);
1060
+ onActivate === null || onActivate === void 0 || onActivate({
1061
+ trap: trap
1062
+ });
1063
+ var finishActivation = function finishActivation() {
1064
+ if (checkCanFocusTrap) {
1065
+ updateTabbableNodes();
1066
+ }
1067
+ var afterListeners = function afterListeners() {
1068
+ trap._setSubtreeIsolation(true);
1069
+ updateObservedNodes();
1070
+ onPostActivate === null || onPostActivate === void 0 || onPostActivate({
1071
+ trap: trap
1072
+ });
1073
+ };
1074
+
1075
+ // NOTE: wait for initial focus node to get focused (whether activation is fully,
1076
+ // partially, or not asynchronous) before we potentially isolate the subtrees
1077
+ // with aria-hidden while focus is still in some other subtree and not yet in
1078
+ // the trap, resulting in some browsers (e.g. Chrome) logging to the console that
1079
+ // they, "Blocked aria-hidden on an element because its descendant retained focus..."
1080
+ var listenersPromise = addListeners();
1081
+ if (listenersPromise) {
1082
+ listenersPromise.then(afterListeners);
1083
+ } else {
1084
+ afterListeners();
1085
+ }
1086
+ };
1087
+ if (checkCanFocusTrap) {
1088
+ checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
1089
+ return this;
1090
+ }
1091
+ finishActivation();
1092
+ } catch (error) {
1093
+ // If our activation throws an exception and the stack hasn't changed,
1094
+ // we need to re-enable the prior trap's subtree isolation.
1095
+ if (preexistingTrap === activeFocusTraps.getActiveTrap(trapStack) && revertState) {
1096
+ var _preexistingTrap$_set2;
1097
+ // [#1729] method MAY not exist if using `trapStack` option to share stack with older
1098
+ // versions of Focus-trap in the same DOM so use optional chaining here just in case
1099
+ // since this is a trap we may not have created from this instance of the library
1100
+ (_preexistingTrap$_set2 = preexistingTrap._setSubtreeIsolation) === null || _preexistingTrap$_set2 === void 0 || _preexistingTrap$_set2.call(preexistingTrap, true);
1101
+ }
1102
+ throw error;
1103
+ }
1104
+ return this;
1105
+ },
1106
+ deactivate: function deactivate(deactivateOptions) {
1107
+ if (!state.active) {
1108
+ return this;
1109
+ }
1110
+ var options = _objectSpread2({
1111
+ onDeactivate: config.onDeactivate,
1112
+ onPostDeactivate: config.onPostDeactivate,
1113
+ checkCanReturnFocus: config.checkCanReturnFocus
1114
+ }, deactivateOptions);
1115
+ clearTimeout(state.delayInitialFocusTimer); // noop if undefined
1116
+ state.delayInitialFocusTimer = undefined;
1117
+
1118
+ // Prior to removing this trap from the trapStack, we need to remove any applications of `inert`.
1119
+ // This allows the next trap down to update its tabbable nodes properly.
1120
+ //
1121
+ // If this trap is not top of the stack, don't change any current isolation.
1122
+ if (!state.paused) {
1123
+ trap._setSubtreeIsolation(false);
1124
+ }
1125
+ state.alreadySilent.clear();
1126
+ removeListeners();
1127
+ state.active = false;
1128
+ state.paused = false;
1129
+ updateObservedNodes();
1130
+ activeFocusTraps.deactivateTrap(trapStack, trap);
1131
+ var onDeactivate = getOption(options, 'onDeactivate');
1132
+ var onPostDeactivate = getOption(options, 'onPostDeactivate');
1133
+ var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
1134
+ var delayReturnFocus = getOption(options, 'delayReturnFocus');
1135
+ var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
1136
+ onDeactivate === null || onDeactivate === void 0 || onDeactivate({
1137
+ trap: trap
1138
+ });
1139
+ var completeDeactivation = function completeDeactivation() {
1140
+ if (returnFocus) {
1141
+ _tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
1142
+ }
1143
+ onPostDeactivate === null || onPostDeactivate === void 0 || onPostDeactivate({
1144
+ trap: trap
1145
+ });
1146
+ };
1147
+ var finishDeactivation = function finishDeactivation() {
1148
+ if (delayReturnFocus && returnFocus) {
1149
+ delay(completeDeactivation);
1150
+ } else {
1151
+ completeDeactivation();
1152
+ }
1153
+ };
1154
+ if (returnFocus && checkCanReturnFocus) {
1155
+ checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
1156
+ return this;
1157
+ }
1158
+ finishDeactivation();
1159
+ return this;
1160
+ },
1161
+ pause: function pause(pauseOptions) {
1162
+ if (!state.active) {
1163
+ return this;
1164
+ }
1165
+ state.manuallyPaused = true;
1166
+ return this._setPausedState(true, pauseOptions);
1167
+ },
1168
+ unpause: function unpause(unpauseOptions) {
1169
+ if (!state.active) {
1170
+ return this;
1171
+ }
1172
+ state.manuallyPaused = false;
1173
+ if (trapStack[trapStack.length - 1] !== this) {
1174
+ return this;
1175
+ }
1176
+ return this._setPausedState(false, unpauseOptions);
1177
+ },
1178
+ updateContainerElements: function updateContainerElements(containerElements) {
1179
+ var elementsAsArray = [].concat(containerElements).filter(Boolean);
1180
+ state.containers = elementsAsArray.map(function (element) {
1181
+ return typeof element === 'string' ? doc.querySelector(element) : element;
1182
+ });
1183
+ if (config.isolateSubtrees) {
1184
+ collectAdjacentElements(state.containers);
1185
+ }
1186
+ if (state.active) {
1187
+ updateTabbableNodes();
1188
+ if (!state.paused) {
1189
+ trap._setSubtreeIsolation(true);
1190
+ }
1191
+ }
1192
+ updateObservedNodes();
1193
+ return this;
1194
+ }
1195
+ };
1196
+ Object.defineProperties(trap, {
1197
+ _isManuallyPaused: {
1198
+ value: function value() {
1199
+ return state.manuallyPaused;
1200
+ }
1201
+ },
1202
+ _setPausedState: {
1203
+ value: function value(paused, options) {
1204
+ if (state.paused === paused) {
1205
+ return this;
1206
+ }
1207
+ state.paused = paused;
1208
+ if (paused) {
1209
+ var onPause = getOption(options, 'onPause');
1210
+ var onPostPause = getOption(options, 'onPostPause');
1211
+ onPause === null || onPause === void 0 || onPause({
1212
+ trap: trap
1213
+ });
1214
+ removeListeners();
1215
+ trap._setSubtreeIsolation(false);
1216
+ updateObservedNodes();
1217
+ onPostPause === null || onPostPause === void 0 || onPostPause({
1218
+ trap: trap
1219
+ });
1220
+ } else {
1221
+ var onUnpause = getOption(options, 'onUnpause');
1222
+ var onPostUnpause = getOption(options, 'onPostUnpause');
1223
+ onUnpause === null || onUnpause === void 0 || onUnpause({
1224
+ trap: trap
1225
+ });
1226
+ var finishUnpause = function finishUnpause() {
1227
+ updateTabbableNodes();
1228
+ var afterListeners = function afterListeners() {
1229
+ trap._setSubtreeIsolation(true);
1230
+ updateObservedNodes();
1231
+ onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause({
1232
+ trap: trap
1233
+ });
1234
+ };
1235
+
1236
+ // NOTE: wait for initial focus node to get focused (whether activation is fully,
1237
+ // partially, or not asynchronous) before we potentially isolate the subtrees
1238
+ // with aria-hidden while focus is still in some other subtree and not yet in
1239
+ // the trap, resulting in some browsers (e.g. Chrome) logging to the console that
1240
+ // they, "Blocked aria-hidden on an element because its descendant retained focus..."
1241
+ var listenersPromise = addListeners();
1242
+ if (listenersPromise) {
1243
+ listenersPromise.then(afterListeners);
1244
+ } else {
1245
+ afterListeners();
1246
+ }
1247
+ };
1248
+ finishUnpause();
1249
+ }
1250
+ return this;
1251
+ }
1252
+ },
1253
+ _setSubtreeIsolation: {
1254
+ value: function value(isEnabled) {
1255
+ if (config.isolateSubtrees) {
1256
+ state.adjacentElements.forEach(function (el) {
1257
+ var _el$getAttribute;
1258
+ if (isEnabled) {
1259
+ switch (config.isolateSubtrees) {
1260
+ case 'aria-hidden':
1261
+ // check both attribute and property to ensure initial state is captured
1262
+ // correctly across different browsers and test environments (like JSDOM)
1263
+ if (el.ariaHidden === 'true' || ((_el$getAttribute = el.getAttribute('aria-hidden')) === null || _el$getAttribute === void 0 ? void 0 : _el$getAttribute.toLowerCase()) === 'true') {
1264
+ state.alreadySilent.add(el);
1265
+ }
1266
+ el.setAttribute('aria-hidden', 'true');
1267
+ break;
1268
+ default:
1269
+ // check both attribute and property to ensure initial state is captured
1270
+ // correctly across different browsers and test environments (like JSDOM)
1271
+ if (el.inert || el.hasAttribute('inert')) {
1272
+ state.alreadySilent.add(el);
1273
+ }
1274
+ el.setAttribute('inert', true);
1275
+ break;
1276
+ }
1277
+ } else {
1278
+ if (state.alreadySilent.has(el)) ; else {
1279
+ switch (config.isolateSubtrees) {
1280
+ case 'aria-hidden':
1281
+ el.removeAttribute('aria-hidden');
1282
+ break;
1283
+ default:
1284
+ el.removeAttribute('inert');
1285
+ break;
1286
+ }
1287
+ }
1288
+ }
1289
+ });
1290
+ }
1291
+ }
1292
+ }
1293
+ });
1294
+
1295
+ // initialize container elements
1296
+ trap.updateContainerElements(elements);
1297
+ return trap;
1298
+ };
1299
+
1300
+ /**
1301
+ * Reactive controller for focus trapping.
1302
+ *
1303
+ * It creates and syncs a `focus-trap` instance based on host state,
1304
+ * manages wrap-around Tab navigation, and cleans up on disconnect.
1305
+ */
1306
+ class FocusTrapController {
1307
+ constructor(host, config) {
1308
+ this.config = config;
1309
+ this.host = host;
1310
+ this.host.addController(this);
1311
+ this.hostElement = index.getElement(this.host);
1312
+ }
1313
+ get trapRoot() {
1314
+ var _a, _b, _c;
1315
+ return (_c = (_b = (_a = this.config).getTrapRoot) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : this.hostElement;
1316
+ }
1317
+ getTabbableElements() {
1318
+ if (!this.trapRoot) {
1319
+ return [];
1320
+ }
1321
+ if (this.config.tabbableElements) {
1322
+ return typeof this.config.tabbableElements === "function"
1323
+ ? this.config.tabbableElements()
1324
+ : this.config.tabbableElements;
1325
+ }
1326
+ return utils.getTabbableElements(this.trapRoot);
1327
+ }
1328
+ focusFirstTrapElement() {
1329
+ var _a;
1330
+ (_a = this.getTabbableElements()[0]) === null || _a === void 0 ? void 0 : _a.focus();
1331
+ }
1332
+ focusLastTrapElement() {
1333
+ var _a;
1334
+ const tabbableElements = this.getTabbableElements();
1335
+ (_a = tabbableElements[tabbableElements.length - 1]) === null || _a === void 0 ? void 0 : _a.focus();
1336
+ }
1337
+ /** Create focus trap and activate/deactivate it according to `isActive()`. */
1338
+ sync() {
1339
+ if (!this.trapRoot) {
1340
+ return;
1341
+ }
1342
+ if (!this.focusTrap) {
1343
+ this.focusTrap = createFocusTrap(this.trapRoot, Object.assign({ allowOutsideClick: true, clickOutsideDeactivates: false, escapeDeactivates: false, returnFocusOnDeactivate: true, initialFocus: () => { var _a; return (_a = this.getTabbableElements()[0]) !== null && _a !== void 0 ? _a : this.config.fallbackFocus; }, onPostActivate: () => this.focusFirstTrapElement(), isKeyForward: () => false, isKeyBackward: () => false, document: this.hostElement.ownerDocument }, this.config));
1344
+ }
1345
+ if (this.config.isActive()) {
1346
+ this.focusTrap.activate();
1347
+ return;
1348
+ }
1349
+ this.focusTrap.deactivate();
1350
+ }
1351
+ /**
1352
+ * Handle manual wrap-around on TAB key when focus is on the first/last tabbable element.
1353
+ * This complements the trap to support nested shadow DOM tabbables reliably.
1354
+ *
1355
+ * @example Manual wrap-around handling in a component:
1356
+ * ```ts
1357
+ * @Listen("keydown", {target: "document"})
1358
+ * handleKeyDown(event: KeyboardEvent): void {
1359
+ * this.focusTrapController.handleWrapTab(event);
1360
+ * }
1361
+ * ```
1362
+ */
1363
+ handleWrapTab(event) {
1364
+ if (event.key !== index$1.KeyboardCode.TAB || event.altKey || event.ctrlKey || event.metaKey || event.defaultPrevented) {
1365
+ return;
1366
+ }
1367
+ const tabbableElements = this.getTabbableElements();
1368
+ if (!tabbableElements.length) {
1369
+ return;
1370
+ }
1371
+ const activeElement = utils.getDeepActiveElement(this.hostElement.ownerDocument);
1372
+ const firstElement = tabbableElements[0];
1373
+ const lastElement = tabbableElements[tabbableElements.length - 1];
1374
+ const isOnFirstElement = activeElement ? utils.containsElement(firstElement, activeElement) : false;
1375
+ const isOnLastElement = activeElement ? utils.containsElement(lastElement, activeElement) : false;
1376
+ if (event.shiftKey && isOnFirstElement) {
1377
+ event.preventDefault();
1378
+ this.focusLastTrapElement();
1379
+ return;
1380
+ }
1381
+ if (!event.shiftKey && isOnLastElement) {
1382
+ event.preventDefault();
1383
+ this.focusFirstTrapElement();
1384
+ }
1385
+ }
1386
+ /** Deactivate trap and restore focus management state. */
1387
+ deactivate() {
1388
+ var _a;
1389
+ (_a = this.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
1390
+ }
1391
+ hostDisconnected() {
1392
+ this.deactivate();
1393
+ }
1394
+ }
1395
+
1396
+ /**
1397
+ * Minimal host implementation to register and invoke controllers across Stencil lifecycle hooks.
1398
+ *
1399
+ * Usage:
1400
+ * - extend this class in a component
1401
+ * - register controllers in the constructor via `addController(...)`
1402
+ * - call `super.*` when overriding lifecycle hooks used by controllers
1403
+ */
1404
+ class ReactiveControllerHost {
1405
+ constructor() {
1406
+ this.controllers = new Set();
1407
+ }
1408
+ /** Register a controller instance for lifecycle delegation. */
1409
+ addController(controller) {
1410
+ this.controllers.add(controller);
1411
+ }
1412
+ /** Unregister a controller instance from lifecycle delegation. */
1413
+ removeController(controller) {
1414
+ this.controllers.delete(controller);
1415
+ }
1416
+ connectedCallback() {
1417
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostConnected) === null || _a === void 0 ? void 0 : _a.call(controller); });
1418
+ }
1419
+ disconnectedCallback() {
1420
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostDisconnected) === null || _a === void 0 ? void 0 : _a.call(controller); });
1421
+ }
1422
+ componentWillLoad() {
1423
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostWillLoad) === null || _a === void 0 ? void 0 : _a.call(controller); });
1424
+ }
1425
+ componentDidLoad() {
1426
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostDidLoad) === null || _a === void 0 ? void 0 : _a.call(controller); });
1427
+ }
1428
+ componentWillRender() {
1429
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostWillRender) === null || _a === void 0 ? void 0 : _a.call(controller); });
1430
+ }
1431
+ componentDidRender() {
1432
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostDidRender) === null || _a === void 0 ? void 0 : _a.call(controller); });
1433
+ }
1434
+ componentWillUpdate() {
1435
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostWillUpdate) === null || _a === void 0 ? void 0 : _a.call(controller); });
1436
+ }
1437
+ componentDidUpdate() {
1438
+ this.controllers.forEach((controller) => { var _a; return (_a = controller.hostDidUpdate) === null || _a === void 0 ? void 0 : _a.call(controller); });
1439
+ }
1440
+ }
1441
+
1442
+ exports.FocusTrapController = FocusTrapController;
1443
+ exports.ReactiveControllerHost = ReactiveControllerHost;
1444
+ //# sourceMappingURL=reactive-controller-BmGKM-4y.js.map
1445
+
1446
+ //# sourceMappingURL=reactive-controller-BmGKM-4y.js.map