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