@oiz/stzh-components 2.4.0-beta → 2.5.0-alpha-carousel

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 (427) hide show
  1. package/dist/cjs/{_commonjsHelpers-dcc4cf71.js → _commonjsHelpers-bcc1208a.js} +0 -16
  2. package/dist/cjs/app-globals-d7bd37fe.js +889 -0
  3. package/dist/cjs/{js.cookie-226c94ed.js → js.cookie-9c263d23.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +3 -1
  6. package/dist/cjs/stzh-actionset.cjs.entry.js +11 -6
  7. package/dist/cjs/stzh-appnav.cjs.entry.js +3 -1
  8. package/dist/cjs/stzh-badge_3.cjs.entry.js +20 -8
  9. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-card_3.cjs.entry.js +36 -29
  11. package/dist/cjs/stzh-carousel.cjs.entry.js +522 -0
  12. package/dist/cjs/stzh-chart.cjs.entry.js +5998 -5171
  13. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -1
  14. package/dist/cjs/stzh-chip_2.cjs.entry.js +82 -5
  15. package/dist/cjs/stzh-components.cjs.js +2 -2
  16. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-datalist_2.cjs.entry.js +10 -3
  18. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-datatable.cjs.entry.js +16 -4
  20. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +3 -1
  21. package/dist/cjs/stzh-dialog.cjs.entry.js +16 -13
  22. package/dist/cjs/stzh-dropdown.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-footer.cjs.entry.js +3 -1
  24. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +17 -4
  25. package/dist/cjs/stzh-header.cjs.entry.js +32 -27
  26. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-link.cjs.entry.js +15 -4
  30. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
  32. package/dist/cjs/stzh-message.cjs.entry.js +2 -2
  33. package/dist/cjs/stzh-metanav.cjs.entry.js +3 -1
  34. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +3 -1
  37. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +4 -2
  38. package/dist/cjs/stzh-pagetitle.cjs.entry.js +3 -1
  39. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -1
  42. package/dist/cjs/stzh-sortable.cjs.entry.js +4 -2
  43. package/dist/cjs/stzh-space.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-sticky.cjs.entry.js +3 -1
  45. package/dist/cjs/stzh-table.cjs.entry.js +14 -4
  46. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +16 -11
  49. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  50. package/dist/collection/assets/i18n/de.json +10 -0
  51. package/dist/collection/assets/i18n/en.json +11 -1
  52. package/dist/collection/collection-manifest.json +1 -0
  53. package/dist/collection/components/stzh-actions/stzh-actions.js +3 -1
  54. package/dist/collection/components/stzh-actionset/stzh-actionset.js +11 -33
  55. package/dist/collection/components/stzh-appnav/stzh-appnav.js +3 -1
  56. package/dist/collection/components/stzh-button/stzh-button.css +16 -1
  57. package/dist/collection/components/stzh-button/stzh-button.js +73 -7
  58. package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -1
  59. package/dist/collection/components/stzh-card/stzh-card.css +34 -9
  60. package/dist/collection/components/stzh-card/stzh-card.js +52 -54
  61. package/dist/collection/components/stzh-carousel/stzh-carousel.css +253 -0
  62. package/dist/collection/components/stzh-carousel/stzh-carousel.js +966 -0
  63. package/dist/collection/components/stzh-carousel/stzh-carousel.localization.js +1 -0
  64. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +138 -0
  65. package/dist/collection/components/stzh-chart/stzh-chart.css +101 -54
  66. package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -0
  67. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +3 -1
  68. package/dist/collection/components/stzh-chip/stzh-chip.css +19 -17
  69. package/dist/collection/components/stzh-chip/stzh-chip.js +2 -1
  70. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +1 -1
  71. package/dist/collection/components/stzh-clamp/stzh-clamp.css +46 -160
  72. package/dist/collection/components/stzh-clamp/stzh-clamp.js +218 -8
  73. package/dist/collection/components/stzh-clamp/stzh-clamp.localization.js +1 -0
  74. package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +1 -1
  75. package/dist/collection/components/stzh-cspace/stzh-cspace.css +36 -0
  76. package/dist/collection/components/stzh-datalist/stzh-datalist.js +18 -18
  77. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +11 -0
  78. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +28 -1
  79. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +10 -0
  80. package/dist/collection/components/stzh-datatable/stzh-datatable.js +15 -12
  81. package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -2
  82. package/dist/collection/components/stzh-dialog/stzh-dialog.js +15 -12
  83. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +1 -1
  84. package/dist/collection/components/stzh-footer/stzh-footer.js +3 -1
  85. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +3 -1
  86. package/dist/collection/components/stzh-header/stzh-header.js +32 -45
  87. package/dist/collection/components/stzh-hspace/stzh-hspace.css +4 -0
  88. package/dist/collection/components/stzh-input/stzh-input.css +1 -1
  89. package/dist/collection/components/stzh-input/stzh-input.stories.js +12 -12
  90. package/dist/collection/components/stzh-invert/stzh-invert.css +4 -4
  91. package/dist/collection/components/stzh-link/stzh-link.css +11 -0
  92. package/dist/collection/components/stzh-link/stzh-link.js +68 -3
  93. package/dist/collection/components/stzh-loader/stzh-loader.css +4 -4
  94. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +27 -27
  95. package/dist/collection/components/stzh-metanav/stzh-metanav.js +3 -1
  96. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
  97. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +3 -1
  98. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +3 -1
  99. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +4 -4
  100. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.js +3 -1
  101. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -3
  102. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +118 -12
  103. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +3 -1
  104. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +3 -1
  105. package/dist/collection/components/stzh-richtext/stzh-richtext.css +14 -3
  106. package/dist/collection/components/stzh-richtext/stzh-richtext.js +32 -0
  107. package/dist/collection/components/stzh-sortable/stzh-sortable.css +1 -1
  108. package/dist/collection/components/stzh-sortable/stzh-sortable.js +3 -1
  109. package/dist/collection/components/stzh-space/stzh-space.css +4 -0
  110. package/dist/collection/components/stzh-sticky/stzh-sticky.js +3 -1
  111. package/dist/collection/components/stzh-table/stzh-table.js +14 -13
  112. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +16 -11
  113. package/dist/collection/components/stzh-vspace/stzh-vspace.css +4 -0
  114. package/dist/collection/global/js/script.js +2 -0
  115. package/dist/components/_commonjsHelpers.js +1 -16
  116. package/dist/components/index.d.ts +1 -0
  117. package/dist/components/index.js +835 -1
  118. package/dist/components/stzh-actions.js +3 -1
  119. package/dist/components/stzh-actionset2.js +12 -7
  120. package/dist/components/stzh-appnav.js +3 -1
  121. package/dist/components/stzh-button2.js +23 -8
  122. package/dist/components/stzh-calendar2.js +1 -1
  123. package/dist/components/stzh-card2.js +37 -29
  124. package/dist/components/stzh-carousel.d.ts +11 -0
  125. package/dist/components/stzh-carousel.js +568 -0
  126. package/dist/components/stzh-chart.js +5995 -5168
  127. package/dist/components/stzh-checkboxgroup.js +3 -1
  128. package/dist/components/stzh-chip-select2.js +21 -9
  129. package/dist/components/stzh-chip2.js +19 -6
  130. package/dist/components/stzh-clamp2.js +110 -11
  131. package/dist/components/stzh-cspace.js +1 -1
  132. package/dist/components/stzh-datalist-item2.js +10 -2
  133. package/dist/components/stzh-datalist2.js +3 -3
  134. package/dist/components/stzh-datamessagelist-item.js +17 -11
  135. package/dist/components/stzh-datatable.js +16 -4
  136. package/dist/components/stzh-dialog.js +16 -13
  137. package/dist/components/stzh-dropdown2.js +1 -1
  138. package/dist/components/stzh-footer.js +3 -1
  139. package/dist/components/stzh-ghettobox2.js +3 -1
  140. package/dist/components/stzh-header.js +33 -28
  141. package/dist/components/stzh-hspace.js +1 -1
  142. package/dist/components/stzh-input2.js +1 -1
  143. package/dist/components/stzh-invert.js +1 -1
  144. package/dist/components/stzh-link2.js +18 -4
  145. package/dist/components/stzh-loader2.js +1 -1
  146. package/dist/components/stzh-menu-item2.js +4 -4
  147. package/dist/components/stzh-metanav.js +3 -1
  148. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  149. package/dist/components/stzh-page-skiplinks.js +3 -1
  150. package/dist/components/stzh-pagetitle-hero.js +4 -2
  151. package/dist/components/stzh-pagetitle.js +3 -1
  152. package/dist/components/stzh-popover2.js +1 -1
  153. package/dist/components/stzh-portal-mitwirken.js +1 -1
  154. package/dist/components/stzh-radiogroup2.js +3 -1
  155. package/dist/components/stzh-readspeaker.js +3 -1
  156. package/dist/components/stzh-richtext2.js +14 -1
  157. package/dist/components/stzh-sortable2.js +4 -2
  158. package/dist/components/stzh-space.js +1 -1
  159. package/dist/components/stzh-sticky.js +3 -1
  160. package/dist/components/stzh-table.js +15 -5
  161. package/dist/components/stzh-upload.js +1 -1
  162. package/dist/components/stzh-vbz-ticker.js +16 -11
  163. package/dist/components/stzh-vspace.js +1 -1
  164. package/dist/esm/{_commonjsHelpers-f9dc4873.js → _commonjsHelpers-ba3f0406.js} +1 -16
  165. package/dist/esm/app-globals-62e1178d.js +887 -0
  166. package/dist/esm/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
  167. package/dist/esm/loader.js +2 -2
  168. package/dist/esm/stzh-actions.entry.js +3 -1
  169. package/dist/esm/stzh-actionset.entry.js +11 -6
  170. package/dist/esm/stzh-appnav.entry.js +3 -1
  171. package/dist/esm/stzh-badge_3.entry.js +20 -8
  172. package/dist/esm/stzh-calendar.entry.js +1 -1
  173. package/dist/esm/stzh-card_3.entry.js +36 -29
  174. package/dist/esm/stzh-carousel.entry.js +518 -0
  175. package/dist/esm/stzh-chart.entry.js +5995 -5168
  176. package/dist/esm/stzh-checkboxgroup.entry.js +3 -1
  177. package/dist/esm/stzh-chip_2.entry.js +82 -5
  178. package/dist/esm/stzh-components.js +2 -2
  179. package/dist/esm/stzh-cspace.entry.js +1 -1
  180. package/dist/esm/stzh-datalist_2.entry.js +10 -3
  181. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  182. package/dist/esm/stzh-datatable.entry.js +16 -4
  183. package/dist/esm/stzh-datepicker_3.entry.js +3 -1
  184. package/dist/esm/stzh-dialog.entry.js +16 -13
  185. package/dist/esm/stzh-dropdown.entry.js +2 -2
  186. package/dist/esm/stzh-footer.entry.js +3 -1
  187. package/dist/esm/stzh-ghettobox_2.entry.js +17 -4
  188. package/dist/esm/stzh-header.entry.js +32 -27
  189. package/dist/esm/stzh-hspace.entry.js +1 -1
  190. package/dist/esm/stzh-input.entry.js +1 -1
  191. package/dist/esm/stzh-invert.entry.js +1 -1
  192. package/dist/esm/stzh-link.entry.js +15 -4
  193. package/dist/esm/stzh-loader.entry.js +1 -1
  194. package/dist/esm/stzh-menu_2.entry.js +2 -2
  195. package/dist/esm/stzh-message.entry.js +2 -2
  196. package/dist/esm/stzh-metanav.entry.js +3 -1
  197. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  198. package/dist/esm/stzh-olmap.entry.js +1 -1
  199. package/dist/esm/stzh-page-skiplinks.entry.js +3 -1
  200. package/dist/esm/stzh-pagetitle-hero.entry.js +4 -2
  201. package/dist/esm/stzh-pagetitle.entry.js +3 -1
  202. package/dist/esm/stzh-popover.entry.js +1 -1
  203. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  204. package/dist/esm/stzh-readspeaker.entry.js +3 -1
  205. package/dist/esm/stzh-sortable.entry.js +4 -2
  206. package/dist/esm/stzh-space.entry.js +1 -1
  207. package/dist/esm/stzh-sticky.entry.js +3 -1
  208. package/dist/esm/stzh-table.entry.js +14 -4
  209. package/dist/esm/stzh-upload.entry.js +1 -1
  210. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  211. package/dist/esm/stzh-vbz-ticker.entry.js +16 -11
  212. package/dist/esm/stzh-vspace.entry.js +1 -1
  213. package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +1 -0
  214. package/dist/esm-es5/app-globals-62e1178d.js +1 -0
  215. package/dist/esm-es5/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
  216. package/dist/esm-es5/loader.js +1 -1
  217. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  218. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  219. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  220. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  221. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  222. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  223. package/dist/esm-es5/stzh-carousel.entry.js +1 -0
  224. package/dist/esm-es5/stzh-chart.entry.js +3 -3
  225. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  226. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  227. package/dist/esm-es5/stzh-components.js +1 -1
  228. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  229. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  230. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  231. package/dist/esm-es5/stzh-datatable.entry.js +2 -2
  232. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  233. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  234. package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
  235. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  236. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  237. package/dist/esm-es5/stzh-header.entry.js +1 -1
  238. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  239. package/dist/esm-es5/stzh-input.entry.js +1 -1
  240. package/dist/esm-es5/stzh-invert.entry.js +1 -1
  241. package/dist/esm-es5/stzh-link.entry.js +1 -1
  242. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  243. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  244. package/dist/esm-es5/stzh-message.entry.js +1 -1
  245. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  246. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  247. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  248. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  249. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  250. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  251. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  252. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  253. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  254. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  255. package/dist/esm-es5/stzh-space.entry.js +1 -1
  256. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  257. package/dist/esm-es5/stzh-table.entry.js +1 -1
  258. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  259. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  260. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  261. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  262. package/dist/stzh-components/assets/i18n/de.json +10 -0
  263. package/dist/stzh-components/assets/i18n/en.json +11 -1
  264. package/dist/stzh-components/p-0a408348.entry.js +1 -0
  265. package/dist/stzh-components/{p-ff328114.system.entry.js → p-0c779613.system.entry.js} +1 -1
  266. package/dist/stzh-components/{p-55752bd5.system.entry.js → p-0e690e3e.system.entry.js} +1 -1
  267. package/dist/stzh-components/p-10b4fedd.system.entry.js +1 -0
  268. package/dist/stzh-components/p-14729939.entry.js +1 -0
  269. package/dist/stzh-components/p-1494b502.entry.js +1 -0
  270. package/dist/stzh-components/p-14d5a56d.entry.js +1 -0
  271. package/dist/stzh-components/p-205f5111.system.entry.js +1 -0
  272. package/dist/stzh-components/{p-c8cc2563.system.entry.js → p-263fd0bb.system.entry.js} +1 -1
  273. package/dist/stzh-components/p-2ed20db5.entry.js +1 -0
  274. package/dist/stzh-components/p-322e74e9.system.entry.js +1 -0
  275. package/dist/stzh-components/p-353294ce.entry.js +1 -0
  276. package/dist/stzh-components/p-396697db.system.entry.js +1 -0
  277. package/dist/stzh-components/p-3a73b8b5.system.js +1 -0
  278. package/dist/stzh-components/p-3af95b5d.entry.js +1 -0
  279. package/dist/stzh-components/p-3e8ff66b.js +1 -0
  280. package/dist/stzh-components/p-3f80ce87.entry.js +1 -0
  281. package/dist/stzh-components/{p-c2f909c1.system.entry.js → p-3fc51ad1.system.entry.js} +1 -1
  282. package/dist/stzh-components/p-4453449f.entry.js +1 -0
  283. package/dist/stzh-components/{p-6a94e520.system.entry.js → p-454e50f8.system.entry.js} +1 -1
  284. package/dist/stzh-components/{p-d54ff4d4.system.entry.js → p-47175c6f.system.entry.js} +1 -1
  285. package/dist/stzh-components/p-48d40c7c.system.entry.js +1 -0
  286. package/dist/stzh-components/{p-5c72664e.system.entry.js → p-4acb6752.system.entry.js} +1 -1
  287. package/dist/stzh-components/{p-b1ffc2a9.system.entry.js → p-4b995fe4.system.entry.js} +1 -1
  288. package/dist/stzh-components/{p-be97cb22.entry.js → p-4da7ebff.entry.js} +1 -1
  289. package/dist/stzh-components/p-4f8085e5.entry.js +1 -0
  290. package/dist/stzh-components/{p-2f4448c9.system.entry.js → p-558f336d.system.entry.js} +1 -1
  291. package/dist/stzh-components/p-5a4aef52.entry.js +1 -0
  292. package/dist/stzh-components/{p-484a366f.system.js → p-5db542ae.system.js} +1 -1
  293. package/dist/stzh-components/{p-72a62d0d.system.entry.js → p-6659b6f6.system.entry.js} +1 -1
  294. package/dist/stzh-components/{p-f3276ca5.system.entry.js → p-6a109ce9.system.entry.js} +1 -1
  295. package/dist/stzh-components/{p-1a98470f.system.entry.js → p-6a26c9eb.system.entry.js} +1 -1
  296. package/dist/stzh-components/p-6bc7f44a.entry.js +1 -0
  297. package/dist/stzh-components/{p-02d51685.entry.js → p-6ee87986.entry.js} +1 -1
  298. package/dist/stzh-components/p-7ff1640c.entry.js +1 -0
  299. package/dist/stzh-components/{p-26889a91.entry.js → p-814e5ae7.entry.js} +2 -2
  300. package/dist/stzh-components/p-821ca4af.system.entry.js +1 -0
  301. package/dist/stzh-components/{p-2b67b0b3.system.entry.js → p-884793dd.system.entry.js} +2 -2
  302. package/dist/stzh-components/{p-a32ae73a.system.entry.js → p-88fbb2fc.system.entry.js} +2 -2
  303. package/dist/stzh-components/p-8b16550d.entry.js +1 -0
  304. package/dist/stzh-components/{p-963a7526.system.entry.js → p-8c371d1d.system.entry.js} +1 -1
  305. package/dist/stzh-components/p-8eda017e.entry.js +1 -0
  306. package/dist/stzh-components/p-949f7885.system.js +1 -0
  307. package/dist/stzh-components/{p-6adc5f0c.system.entry.js → p-95bfbf67.system.entry.js} +1 -1
  308. package/dist/stzh-components/p-99d85a97.entry.js +1 -0
  309. package/dist/stzh-components/p-9a94b249.system.entry.js +1 -0
  310. package/dist/stzh-components/{p-32a03d1c.entry.js → p-9ed30a9f.entry.js} +1 -1
  311. package/dist/stzh-components/{p-febba79b.entry.js → p-9f29e6c3.entry.js} +1 -1
  312. package/dist/stzh-components/{p-67816aa4.entry.js → p-a0b2739a.entry.js} +1 -1
  313. package/dist/stzh-components/p-a2121744.system.entry.js +1 -0
  314. package/dist/stzh-components/p-a22ac109.entry.js +1 -0
  315. package/dist/stzh-components/p-a3bf419d.entry.js +1 -0
  316. package/dist/stzh-components/{p-c9c7d88a.entry.js → p-a47e205f.entry.js} +1 -1
  317. package/dist/stzh-components/p-aa2c81e6.system.entry.js +3 -0
  318. package/dist/stzh-components/{p-088b16c6.system.entry.js → p-abf13db9.system.entry.js} +1 -1
  319. package/dist/stzh-components/p-ad96eb50.entry.js +1 -0
  320. package/dist/stzh-components/p-ae7255f6.entry.js +1 -0
  321. package/dist/stzh-components/p-af05718d.system.entry.js +1 -0
  322. package/dist/stzh-components/p-af9aac53.entry.js +3 -0
  323. package/dist/stzh-components/{p-24b8df26.js → p-b10682ee.js} +1 -1
  324. package/dist/stzh-components/p-b4c28bf5.entry.js +1 -0
  325. package/dist/stzh-components/p-b4db3558.js +1 -0
  326. package/dist/stzh-components/p-b61f7404.entry.js +1 -0
  327. package/dist/stzh-components/p-b9adebdc.entry.js +1 -0
  328. package/dist/stzh-components/{p-c4c620fa.system.entry.js → p-b9bd42e6.system.entry.js} +1 -1
  329. package/dist/stzh-components/p-b9f784e4.system.entry.js +1 -0
  330. package/dist/stzh-components/{p-b92734db.entry.js → p-bcfba21f.entry.js} +1 -1
  331. package/dist/stzh-components/p-bd1a5d6d.system.entry.js +1 -0
  332. package/dist/stzh-components/p-c457dad2.system.entry.js +1 -0
  333. package/dist/stzh-components/{p-f8feb07b.entry.js → p-c80a9d50.entry.js} +1 -1
  334. package/dist/stzh-components/p-c9940c35.entry.js +1 -0
  335. package/dist/stzh-components/p-cab1a192.entry.js +1 -0
  336. package/dist/stzh-components/p-cd59cead.system.js +1 -0
  337. package/dist/stzh-components/{p-102e2bcd.system.entry.js → p-cd979ce9.system.entry.js} +1 -1
  338. package/dist/stzh-components/{p-512c38b3.system.entry.js → p-ce5db779.system.entry.js} +1 -1
  339. package/dist/stzh-components/p-d29fd401.entry.js +1 -0
  340. package/dist/stzh-components/{p-7e4261ce.system.entry.js → p-d5514e5b.system.entry.js} +1 -1
  341. package/dist/stzh-components/{p-51b3a560.system.entry.js → p-d585e8fd.system.entry.js} +1 -1
  342. package/dist/stzh-components/p-d5994419.system.entry.js +1 -0
  343. package/dist/stzh-components/p-d6e5f396.system.entry.js +1 -0
  344. package/dist/stzh-components/{p-444b2baf.entry.js → p-e085a0a0.entry.js} +1 -1
  345. package/dist/stzh-components/p-e1501622.system.entry.js +1 -0
  346. package/dist/stzh-components/p-e2d80ee3.entry.js +1 -0
  347. package/dist/stzh-components/p-e4aa12ba.system.entry.js +1 -0
  348. package/dist/stzh-components/p-e54f66ea.system.entry.js +1 -0
  349. package/dist/stzh-components/{p-d9ae09b5.entry.js → p-eb16ad0d.entry.js} +2 -2
  350. package/dist/stzh-components/p-eb1ea7f0.entry.js +1 -0
  351. package/dist/stzh-components/{p-e1b2785b.entry.js → p-ec87506f.entry.js} +1 -1
  352. package/dist/stzh-components/{p-309fc559.system.entry.js → p-ee20b95b.system.entry.js} +1 -1
  353. package/dist/stzh-components/p-f122e15d.system.entry.js +1 -0
  354. package/dist/stzh-components/{p-809ed955.system.entry.js → p-f27d1a06.system.entry.js} +1 -1
  355. package/dist/stzh-components/p-f449f909.entry.js +1 -0
  356. package/dist/stzh-components/{p-af67ea5e.entry.js → p-f4c0d928.entry.js} +1 -1
  357. package/dist/stzh-components/p-f725921a.entry.js +1 -0
  358. package/dist/stzh-components/p-fe1c8047.system.entry.js +1 -0
  359. package/dist/stzh-components/stzh-components.css +1 -1
  360. package/dist/stzh-components/stzh-components.esm.js +1 -1
  361. package/dist/stzh-components/stzh-components.js +1 -1
  362. package/dist/types/components/stzh-carousel/stzh-carousel.localization.d.ts +5 -0
  363. package/dist/types/components/stzh-clamp/stzh-clamp.localization.d.ts +5 -0
  364. package/dist/types/components.d.ts +250 -2
  365. package/dist/types/index.d.ts +20 -0
  366. package/dist/types/utils/translation-utils.d.ts +2 -0
  367. package/dist/vscode-data.json +106 -17
  368. package/package.json +6 -4
  369. package/dist/cjs/app-globals-57922fc2.js +0 -56
  370. package/dist/esm/app-globals-b848652e.js +0 -54
  371. package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +0 -1
  372. package/dist/esm-es5/app-globals-b848652e.js +0 -1
  373. package/dist/stzh-components/p-07dc23a3.system.entry.js +0 -1
  374. package/dist/stzh-components/p-0ba944ab.entry.js +0 -1
  375. package/dist/stzh-components/p-12856e02.system.entry.js +0 -1
  376. package/dist/stzh-components/p-16c0b9ae.entry.js +0 -3
  377. package/dist/stzh-components/p-18e20038.entry.js +0 -1
  378. package/dist/stzh-components/p-1bcda13d.system.entry.js +0 -1
  379. package/dist/stzh-components/p-1d435dd8.system.entry.js +0 -1
  380. package/dist/stzh-components/p-1f74846f.entry.js +0 -1
  381. package/dist/stzh-components/p-29e9ad9f.system.entry.js +0 -1
  382. package/dist/stzh-components/p-30a9de85.system.entry.js +0 -1
  383. package/dist/stzh-components/p-37920e74.system.entry.js +0 -1
  384. package/dist/stzh-components/p-4633b93d.entry.js +0 -1
  385. package/dist/stzh-components/p-4c60da30.entry.js +0 -1
  386. package/dist/stzh-components/p-4eee30ea.system.entry.js +0 -1
  387. package/dist/stzh-components/p-532b4218.entry.js +0 -1
  388. package/dist/stzh-components/p-5d55a672.system.entry.js +0 -1
  389. package/dist/stzh-components/p-64cdef2f.entry.js +0 -1
  390. package/dist/stzh-components/p-65918f6f.system.js +0 -1
  391. package/dist/stzh-components/p-761ee059.entry.js +0 -1
  392. package/dist/stzh-components/p-798ac79c.entry.js +0 -1
  393. package/dist/stzh-components/p-7f857e56.entry.js +0 -1
  394. package/dist/stzh-components/p-84a6e023.system.entry.js +0 -1
  395. package/dist/stzh-components/p-89bd0d46.entry.js +0 -1
  396. package/dist/stzh-components/p-8caafed2.system.entry.js +0 -1
  397. package/dist/stzh-components/p-923dffc7.entry.js +0 -1
  398. package/dist/stzh-components/p-94662bed.system.js +0 -1
  399. package/dist/stzh-components/p-951b04ab.entry.js +0 -1
  400. package/dist/stzh-components/p-990f395b.entry.js +0 -1
  401. package/dist/stzh-components/p-99b82949.entry.js +0 -1
  402. package/dist/stzh-components/p-9be21c72.entry.js +0 -1
  403. package/dist/stzh-components/p-9c35c9cd.entry.js +0 -1
  404. package/dist/stzh-components/p-9c90535a.system.js +0 -1
  405. package/dist/stzh-components/p-9de8b25b.entry.js +0 -1
  406. package/dist/stzh-components/p-a11ef2d6.system.entry.js +0 -1
  407. package/dist/stzh-components/p-a691fe87.js +0 -1
  408. package/dist/stzh-components/p-a6be6aca.system.entry.js +0 -1
  409. package/dist/stzh-components/p-a6d4a8b1.js +0 -1
  410. package/dist/stzh-components/p-a7eb3e02.system.entry.js +0 -1
  411. package/dist/stzh-components/p-ae38f1d2.entry.js +0 -1
  412. package/dist/stzh-components/p-b04a9d0f.system.entry.js +0 -1
  413. package/dist/stzh-components/p-b422041d.entry.js +0 -1
  414. package/dist/stzh-components/p-b9372a2a.entry.js +0 -1
  415. package/dist/stzh-components/p-bb698e26.entry.js +0 -1
  416. package/dist/stzh-components/p-bc545121.entry.js +0 -1
  417. package/dist/stzh-components/p-c2a22eb8.entry.js +0 -1
  418. package/dist/stzh-components/p-cc722b35.system.entry.js +0 -3
  419. package/dist/stzh-components/p-d1cfe06b.entry.js +0 -1
  420. package/dist/stzh-components/p-d943e02c.system.entry.js +0 -1
  421. package/dist/stzh-components/p-db306e24.entry.js +0 -1
  422. package/dist/stzh-components/p-e4a8f1bc.system.entry.js +0 -1
  423. package/dist/stzh-components/p-ed783154.system.entry.js +0 -1
  424. package/dist/stzh-components/p-ee4b939a.entry.js +0 -1
  425. package/dist/stzh-components/p-f0e2a32d.entry.js +0 -1
  426. package/dist/stzh-components/p-fd15cc86.entry.js +0 -1
  427. package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +0 -16
@@ -13,6 +13,7 @@ export { StzhButton, defineCustomElement as defineCustomElementStzhButton } from
13
13
  export { StzhCalendar, defineCustomElement as defineCustomElementStzhCalendar } from './stzh-calendar.js';
14
14
  export { StzhCard, defineCustomElement as defineCustomElementStzhCard } from './stzh-card.js';
15
15
  export { StzhCardList, defineCustomElement as defineCustomElementStzhCardList } from './stzh-card-list.js';
16
+ export { StzhCarousel, defineCustomElement as defineCustomElementStzhCarousel } from './stzh-carousel.js';
16
17
  export { StzhCell, defineCustomElement as defineCustomElementStzhCell } from './stzh-cell.js';
17
18
  export { StzhChart, defineCustomElement as defineCustomElementStzhChart } from './stzh-chart.js';
18
19
  export { StzhCheckbox, defineCustomElement as defineCustomElementStzhCheckbox } from './stzh-checkbox.js';
@@ -94,8 +95,841 @@ export { StzhVbzTicker, defineCustomElement as defineCustomElementStzhVbzTicker
94
95
  export { StzhVisuallyhidden, defineCustomElement as defineCustomElementStzhVisuallyhidden } from './stzh-visuallyhidden.js';
95
96
  export { StzhVspace, defineCustomElement as defineCustomElementStzhVspace } from './stzh-vspace.js';
96
97
 
98
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
99
+
100
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
101
+
102
+ /**
103
+ * This work is licensed under the W3C Software and Document License
104
+ * (http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document).
105
+ */
106
+
107
+ (function () {
108
+ // Return early if we're not running inside of the browser.
109
+ if (typeof window === 'undefined') {
110
+ return;
111
+ }
112
+
113
+ // Convenience function for converting NodeLists.
114
+ /** @type {typeof Array.prototype.slice} */
115
+ var slice = Array.prototype.slice;
116
+
117
+ /**
118
+ * IE has a non-standard name for "matches".
119
+ * @type {typeof Element.prototype.matches}
120
+ */
121
+ var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;
122
+
123
+ /** @type {string} */
124
+ var _focusableElementsString = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'details', 'summary', 'iframe', 'object', 'embed', '[contenteditable]'].join(',');
125
+
126
+ /**
127
+ * `InertRoot` manages a single inert subtree, i.e. a DOM subtree whose root element has an `inert`
128
+ * attribute.
129
+ *
130
+ * Its main functions are:
131
+ *
132
+ * - to create and maintain a set of managed `InertNode`s, including when mutations occur in the
133
+ * subtree. The `makeSubtreeUnfocusable()` method handles collecting `InertNode`s via registering
134
+ * each focusable node in the subtree with the singleton `InertManager` which manages all known
135
+ * focusable nodes within inert subtrees. `InertManager` ensures that a single `InertNode`
136
+ * instance exists for each focusable node which has at least one inert root as an ancestor.
137
+ *
138
+ * - to notify all managed `InertNode`s when this subtree stops being inert (i.e. when the `inert`
139
+ * attribute is removed from the root node). This is handled in the destructor, which calls the
140
+ * `deregister` method on `InertManager` for each managed inert node.
141
+ */
142
+
143
+ var InertRoot = function () {
144
+ /**
145
+ * @param {!HTMLElement} rootElement The HTMLElement at the root of the inert subtree.
146
+ * @param {!InertManager} inertManager The global singleton InertManager object.
147
+ */
148
+ function InertRoot(rootElement, inertManager) {
149
+ _classCallCheck(this, InertRoot);
150
+
151
+ /** @type {!InertManager} */
152
+ this._inertManager = inertManager;
153
+
154
+ /** @type {!HTMLElement} */
155
+ this._rootElement = rootElement;
156
+
157
+ /**
158
+ * @type {!Set<!InertNode>}
159
+ * All managed focusable nodes in this InertRoot's subtree.
160
+ */
161
+ this._managedNodes = new Set();
162
+
163
+ // Make the subtree hidden from assistive technology
164
+ if (this._rootElement.hasAttribute('aria-hidden')) {
165
+ /** @type {?string} */
166
+ this._savedAriaHidden = this._rootElement.getAttribute('aria-hidden');
167
+ } else {
168
+ this._savedAriaHidden = null;
169
+ }
170
+ this._rootElement.setAttribute('aria-hidden', 'true');
171
+
172
+ // Make all focusable elements in the subtree unfocusable and add them to _managedNodes
173
+ this._makeSubtreeUnfocusable(this._rootElement);
174
+
175
+ // Watch for:
176
+ // - any additions in the subtree: make them unfocusable too
177
+ // - any removals from the subtree: remove them from this inert root's managed nodes
178
+ // - attribute changes: if `tabindex` is added, or removed from an intrinsically focusable
179
+ // element, make that node a managed node.
180
+ this._observer = new MutationObserver(this._onMutation.bind(this));
181
+ this._observer.observe(this._rootElement, { attributes: true, childList: true, subtree: true });
182
+ }
183
+
184
+ /**
185
+ * Call this whenever this object is about to become obsolete. This unwinds all of the state
186
+ * stored in this object and updates the state of all of the managed nodes.
187
+ */
188
+
189
+
190
+ _createClass(InertRoot, [{
191
+ key: 'destructor',
192
+ value: function destructor() {
193
+ this._observer.disconnect();
194
+
195
+ if (this._rootElement) {
196
+ if (this._savedAriaHidden !== null) {
197
+ this._rootElement.setAttribute('aria-hidden', this._savedAriaHidden);
198
+ } else {
199
+ this._rootElement.removeAttribute('aria-hidden');
200
+ }
201
+ }
202
+
203
+ this._managedNodes.forEach(function (inertNode) {
204
+ this._unmanageNode(inertNode.node);
205
+ }, this);
206
+
207
+ // Note we cast the nulls to the ANY type here because:
208
+ // 1) We want the class properties to be declared as non-null, or else we
209
+ // need even more casts throughout this code. All bets are off if an
210
+ // instance has been destroyed and a method is called.
211
+ // 2) We don't want to cast "this", because we want type-aware optimizations
212
+ // to know which properties we're setting.
213
+ this._observer = /** @type {?} */null;
214
+ this._rootElement = /** @type {?} */null;
215
+ this._managedNodes = /** @type {?} */null;
216
+ this._inertManager = /** @type {?} */null;
217
+ }
218
+
219
+ /**
220
+ * @return {!Set<!InertNode>} A copy of this InertRoot's managed nodes set.
221
+ */
222
+
223
+ }, {
224
+ key: '_makeSubtreeUnfocusable',
225
+
226
+
227
+ /**
228
+ * @param {!Node} startNode
229
+ */
230
+ value: function _makeSubtreeUnfocusable(startNode) {
231
+ var _this2 = this;
232
+
233
+ composedTreeWalk(startNode, function (node) {
234
+ return _this2._visitNode(node);
235
+ });
236
+
237
+ var activeElement = document.activeElement;
238
+
239
+ if (!document.body.contains(startNode)) {
240
+ // startNode may be in shadow DOM, so find its nearest shadowRoot to get the activeElement.
241
+ var node = startNode;
242
+ /** @type {!ShadowRoot|undefined} */
243
+ var root = undefined;
244
+ while (node) {
245
+ if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
246
+ root = /** @type {!ShadowRoot} */node;
247
+ break;
248
+ }
249
+ node = node.parentNode;
250
+ }
251
+ if (root) {
252
+ activeElement = root.activeElement;
253
+ }
254
+ }
255
+ if (startNode.contains(activeElement)) {
256
+ activeElement.blur();
257
+ // In IE11, if an element is already focused, and then set to tabindex=-1
258
+ // calling blur() will not actually move the focus.
259
+ // To work around this we call focus() on the body instead.
260
+ if (activeElement === document.activeElement) {
261
+ document.body.focus();
262
+ }
263
+ }
264
+ }
265
+
266
+ /**
267
+ * @param {!Node} node
268
+ */
269
+
270
+ }, {
271
+ key: '_visitNode',
272
+ value: function _visitNode(node) {
273
+ if (node.nodeType !== Node.ELEMENT_NODE) {
274
+ return;
275
+ }
276
+ var element = /** @type {!HTMLElement} */node;
277
+
278
+ // If a descendant inert root becomes un-inert, its descendants will still be inert because of
279
+ // this inert root, so all of its managed nodes need to be adopted by this InertRoot.
280
+ if (element !== this._rootElement && element.hasAttribute('inert')) {
281
+ this._adoptInertRoot(element);
282
+ }
283
+
284
+ if (matches.call(element, _focusableElementsString) || element.hasAttribute('tabindex')) {
285
+ this._manageNode(element);
286
+ }
287
+ }
288
+
289
+ /**
290
+ * Register the given node with this InertRoot and with InertManager.
291
+ * @param {!Node} node
292
+ */
293
+
294
+ }, {
295
+ key: '_manageNode',
296
+ value: function _manageNode(node) {
297
+ var inertNode = this._inertManager.register(node, this);
298
+ this._managedNodes.add(inertNode);
299
+ }
300
+
301
+ /**
302
+ * Unregister the given node with this InertRoot and with InertManager.
303
+ * @param {!Node} node
304
+ */
305
+
306
+ }, {
307
+ key: '_unmanageNode',
308
+ value: function _unmanageNode(node) {
309
+ var inertNode = this._inertManager.deregister(node, this);
310
+ if (inertNode) {
311
+ this._managedNodes['delete'](inertNode);
312
+ }
313
+ }
314
+
315
+ /**
316
+ * Unregister the entire subtree starting at `startNode`.
317
+ * @param {!Node} startNode
318
+ */
319
+
320
+ }, {
321
+ key: '_unmanageSubtree',
322
+ value: function _unmanageSubtree(startNode) {
323
+ var _this3 = this;
324
+
325
+ composedTreeWalk(startNode, function (node) {
326
+ return _this3._unmanageNode(node);
327
+ });
328
+ }
329
+
330
+ /**
331
+ * If a descendant node is found with an `inert` attribute, adopt its managed nodes.
332
+ * @param {!HTMLElement} node
333
+ */
334
+
335
+ }, {
336
+ key: '_adoptInertRoot',
337
+ value: function _adoptInertRoot(node) {
338
+ var inertSubroot = this._inertManager.getInertRoot(node);
339
+
340
+ // During initialisation this inert root may not have been registered yet,
341
+ // so register it now if need be.
342
+ if (!inertSubroot) {
343
+ this._inertManager.setInert(node, true);
344
+ inertSubroot = this._inertManager.getInertRoot(node);
345
+ }
346
+
347
+ inertSubroot.managedNodes.forEach(function (savedInertNode) {
348
+ this._manageNode(savedInertNode.node);
349
+ }, this);
350
+ }
351
+
352
+ /**
353
+ * Callback used when mutation observer detects subtree additions, removals, or attribute changes.
354
+ * @param {!Array<!MutationRecord>} records
355
+ * @param {!MutationObserver} self
356
+ */
357
+
358
+ }, {
359
+ key: '_onMutation',
360
+ value: function _onMutation(records, self) {
361
+ records.forEach(function (record) {
362
+ var target = /** @type {!HTMLElement} */record.target;
363
+ if (record.type === 'childList') {
364
+ // Manage added nodes
365
+ slice.call(record.addedNodes).forEach(function (node) {
366
+ this._makeSubtreeUnfocusable(node);
367
+ }, this);
368
+
369
+ // Un-manage removed nodes
370
+ slice.call(record.removedNodes).forEach(function (node) {
371
+ this._unmanageSubtree(node);
372
+ }, this);
373
+ } else if (record.type === 'attributes') {
374
+ if (record.attributeName === 'tabindex') {
375
+ // Re-initialise inert node if tabindex changes
376
+ this._manageNode(target);
377
+ } else if (target !== this._rootElement && record.attributeName === 'inert' && target.hasAttribute('inert')) {
378
+ // If a new inert root is added, adopt its managed nodes and make sure it knows about the
379
+ // already managed nodes from this inert subroot.
380
+ this._adoptInertRoot(target);
381
+ var inertSubroot = this._inertManager.getInertRoot(target);
382
+ this._managedNodes.forEach(function (managedNode) {
383
+ if (target.contains(managedNode.node)) {
384
+ inertSubroot._manageNode(managedNode.node);
385
+ }
386
+ });
387
+ }
388
+ }
389
+ }, this);
390
+ }
391
+ }, {
392
+ key: 'managedNodes',
393
+ get: function get() {
394
+ return new Set(this._managedNodes);
395
+ }
396
+
397
+ /** @return {boolean} */
398
+
399
+ }, {
400
+ key: 'hasSavedAriaHidden',
401
+ get: function get() {
402
+ return this._savedAriaHidden !== null;
403
+ }
404
+
405
+ /** @param {?string} ariaHidden */
406
+
407
+ }, {
408
+ key: 'savedAriaHidden',
409
+ set: function set(ariaHidden) {
410
+ this._savedAriaHidden = ariaHidden;
411
+ }
412
+
413
+ /** @return {?string} */
414
+ ,
415
+ get: function get() {
416
+ return this._savedAriaHidden;
417
+ }
418
+ }]);
419
+
420
+ return InertRoot;
421
+ }();
422
+
423
+ /**
424
+ * `InertNode` initialises and manages a single inert node.
425
+ * A node is inert if it is a descendant of one or more inert root elements.
426
+ *
427
+ * On construction, `InertNode` saves the existing `tabindex` value for the node, if any, and
428
+ * either removes the `tabindex` attribute or sets it to `-1`, depending on whether the element
429
+ * is intrinsically focusable or not.
430
+ *
431
+ * `InertNode` maintains a set of `InertRoot`s which are descendants of this `InertNode`. When an
432
+ * `InertRoot` is destroyed, and calls `InertManager.deregister()`, the `InertManager` notifies the
433
+ * `InertNode` via `removeInertRoot()`, which in turn destroys the `InertNode` if no `InertRoot`s
434
+ * remain in the set. On destruction, `InertNode` reinstates the stored `tabindex` if one exists,
435
+ * or removes the `tabindex` attribute if the element is intrinsically focusable.
436
+ */
437
+
438
+
439
+ var InertNode = function () {
440
+ /**
441
+ * @param {!Node} node A focusable element to be made inert.
442
+ * @param {!InertRoot} inertRoot The inert root element associated with this inert node.
443
+ */
444
+ function InertNode(node, inertRoot) {
445
+ _classCallCheck(this, InertNode);
446
+
447
+ /** @type {!Node} */
448
+ this._node = node;
449
+
450
+ /** @type {boolean} */
451
+ this._overrodeFocusMethod = false;
452
+
453
+ /**
454
+ * @type {!Set<!InertRoot>} The set of descendant inert roots.
455
+ * If and only if this set becomes empty, this node is no longer inert.
456
+ */
457
+ this._inertRoots = new Set([inertRoot]);
458
+
459
+ /** @type {?number} */
460
+ this._savedTabIndex = null;
461
+
462
+ /** @type {boolean} */
463
+ this._destroyed = false;
464
+
465
+ // Save any prior tabindex info and make this node untabbable
466
+ this.ensureUntabbable();
467
+ }
468
+
469
+ /**
470
+ * Call this whenever this object is about to become obsolete.
471
+ * This makes the managed node focusable again and deletes all of the previously stored state.
472
+ */
473
+
474
+
475
+ _createClass(InertNode, [{
476
+ key: 'destructor',
477
+ value: function destructor() {
478
+ this._throwIfDestroyed();
479
+
480
+ if (this._node && this._node.nodeType === Node.ELEMENT_NODE) {
481
+ var element = /** @type {!HTMLElement} */this._node;
482
+ if (this._savedTabIndex !== null) {
483
+ element.setAttribute('tabindex', this._savedTabIndex);
484
+ } else {
485
+ element.removeAttribute('tabindex');
486
+ }
487
+
488
+ // Use `delete` to restore native focus method.
489
+ if (this._overrodeFocusMethod) {
490
+ delete element.focus;
491
+ }
492
+ }
493
+
494
+ // See note in InertRoot.destructor for why we cast these nulls to ANY.
495
+ this._node = /** @type {?} */null;
496
+ this._inertRoots = /** @type {?} */null;
497
+ this._destroyed = true;
498
+ }
499
+
500
+ /**
501
+ * @type {boolean} Whether this object is obsolete because the managed node is no longer inert.
502
+ * If the object has been destroyed, any attempt to access it will cause an exception.
503
+ */
504
+
505
+ }, {
506
+ key: '_throwIfDestroyed',
507
+
508
+
509
+ /**
510
+ * Throw if user tries to access destroyed InertNode.
511
+ */
512
+ value: function _throwIfDestroyed() {
513
+ if (this.destroyed) {
514
+ throw new Error('Trying to access destroyed InertNode');
515
+ }
516
+ }
517
+
518
+ /** @return {boolean} */
519
+
520
+ }, {
521
+ key: 'ensureUntabbable',
522
+
523
+
524
+ /** Save the existing tabindex value and make the node untabbable and unfocusable */
525
+ value: function ensureUntabbable() {
526
+ if (this.node.nodeType !== Node.ELEMENT_NODE) {
527
+ return;
528
+ }
529
+ var element = /** @type {!HTMLElement} */this.node;
530
+ if (matches.call(element, _focusableElementsString)) {
531
+ if ( /** @type {!HTMLElement} */element.tabIndex === -1 && this.hasSavedTabIndex) {
532
+ return;
533
+ }
534
+
535
+ if (element.hasAttribute('tabindex')) {
536
+ this._savedTabIndex = /** @type {!HTMLElement} */element.tabIndex;
537
+ }
538
+ element.setAttribute('tabindex', '-1');
539
+ if (element.nodeType === Node.ELEMENT_NODE) {
540
+ element.focus = function () {};
541
+ this._overrodeFocusMethod = true;
542
+ }
543
+ } else if (element.hasAttribute('tabindex')) {
544
+ this._savedTabIndex = /** @type {!HTMLElement} */element.tabIndex;
545
+ element.removeAttribute('tabindex');
546
+ }
547
+ }
548
+
549
+ /**
550
+ * Add another inert root to this inert node's set of managing inert roots.
551
+ * @param {!InertRoot} inertRoot
552
+ */
553
+
554
+ }, {
555
+ key: 'addInertRoot',
556
+ value: function addInertRoot(inertRoot) {
557
+ this._throwIfDestroyed();
558
+ this._inertRoots.add(inertRoot);
559
+ }
560
+
561
+ /**
562
+ * Remove the given inert root from this inert node's set of managing inert roots.
563
+ * If the set of managing inert roots becomes empty, this node is no longer inert,
564
+ * so the object should be destroyed.
565
+ * @param {!InertRoot} inertRoot
566
+ */
567
+
568
+ }, {
569
+ key: 'removeInertRoot',
570
+ value: function removeInertRoot(inertRoot) {
571
+ this._throwIfDestroyed();
572
+ this._inertRoots['delete'](inertRoot);
573
+ if (this._inertRoots.size === 0) {
574
+ this.destructor();
575
+ }
576
+ }
577
+ }, {
578
+ key: 'destroyed',
579
+ get: function get() {
580
+ return (/** @type {!InertNode} */this._destroyed
581
+ );
582
+ }
583
+ }, {
584
+ key: 'hasSavedTabIndex',
585
+ get: function get() {
586
+ return this._savedTabIndex !== null;
587
+ }
588
+
589
+ /** @return {!Node} */
590
+
591
+ }, {
592
+ key: 'node',
593
+ get: function get() {
594
+ this._throwIfDestroyed();
595
+ return this._node;
596
+ }
597
+
598
+ /** @param {?number} tabIndex */
599
+
600
+ }, {
601
+ key: 'savedTabIndex',
602
+ set: function set(tabIndex) {
603
+ this._throwIfDestroyed();
604
+ this._savedTabIndex = tabIndex;
605
+ }
606
+
607
+ /** @return {?number} */
608
+ ,
609
+ get: function get() {
610
+ this._throwIfDestroyed();
611
+ return this._savedTabIndex;
612
+ }
613
+ }]);
614
+
615
+ return InertNode;
616
+ }();
617
+
618
+ /**
619
+ * InertManager is a per-document singleton object which manages all inert roots and nodes.
620
+ *
621
+ * When an element becomes an inert root by having an `inert` attribute set and/or its `inert`
622
+ * property set to `true`, the `setInert` method creates an `InertRoot` object for the element.
623
+ * The `InertRoot` in turn registers itself as managing all of the element's focusable descendant
624
+ * nodes via the `register()` method. The `InertManager` ensures that a single `InertNode` instance
625
+ * is created for each such node, via the `_managedNodes` map.
626
+ */
627
+
628
+
629
+ var InertManager = function () {
630
+ /**
631
+ * @param {!Document} document
632
+ */
633
+ function InertManager(document) {
634
+ _classCallCheck(this, InertManager);
635
+
636
+ if (!document) {
637
+ throw new Error('Missing required argument; InertManager needs to wrap a document.');
638
+ }
639
+
640
+ /** @type {!Document} */
641
+ this._document = document;
642
+
643
+ /**
644
+ * All managed nodes known to this InertManager. In a map to allow looking up by Node.
645
+ * @type {!Map<!Node, !InertNode>}
646
+ */
647
+ this._managedNodes = new Map();
648
+
649
+ /**
650
+ * All inert roots known to this InertManager. In a map to allow looking up by Node.
651
+ * @type {!Map<!Node, !InertRoot>}
652
+ */
653
+ this._inertRoots = new Map();
654
+
655
+ /**
656
+ * Observer for mutations on `document.body`.
657
+ * @type {!MutationObserver}
658
+ */
659
+ this._observer = new MutationObserver(this._watchForInert.bind(this));
660
+
661
+ // Add inert style.
662
+ addInertStyle(document.head || document.body || document.documentElement);
663
+
664
+ // Wait for document to be loaded.
665
+ if (document.readyState === 'loading') {
666
+ document.addEventListener('DOMContentLoaded', this._onDocumentLoaded.bind(this));
667
+ } else {
668
+ this._onDocumentLoaded();
669
+ }
670
+ }
671
+
672
+ /**
673
+ * Set whether the given element should be an inert root or not.
674
+ * @param {!HTMLElement} root
675
+ * @param {boolean} inert
676
+ */
677
+
678
+
679
+ _createClass(InertManager, [{
680
+ key: 'setInert',
681
+ value: function setInert(root, inert) {
682
+ if (inert) {
683
+ if (this._inertRoots.has(root)) {
684
+ // element is already inert
685
+ return;
686
+ }
687
+
688
+ var inertRoot = new InertRoot(root, this);
689
+ root.setAttribute('inert', '');
690
+ this._inertRoots.set(root, inertRoot);
691
+ // If not contained in the document, it must be in a shadowRoot.
692
+ // Ensure inert styles are added there.
693
+ if (!this._document.body.contains(root)) {
694
+ var parent = root.parentNode;
695
+ while (parent) {
696
+ if (parent.nodeType === 11) {
697
+ addInertStyle(parent);
698
+ }
699
+ parent = parent.parentNode;
700
+ }
701
+ }
702
+ } else {
703
+ if (!this._inertRoots.has(root)) {
704
+ // element is already non-inert
705
+ return;
706
+ }
707
+
708
+ var _inertRoot = this._inertRoots.get(root);
709
+ _inertRoot.destructor();
710
+ this._inertRoots['delete'](root);
711
+ root.removeAttribute('inert');
712
+ }
713
+ }
714
+
715
+ /**
716
+ * Get the InertRoot object corresponding to the given inert root element, if any.
717
+ * @param {!Node} element
718
+ * @return {!InertRoot|undefined}
719
+ */
720
+
721
+ }, {
722
+ key: 'getInertRoot',
723
+ value: function getInertRoot(element) {
724
+ return this._inertRoots.get(element);
725
+ }
726
+
727
+ /**
728
+ * Register the given InertRoot as managing the given node.
729
+ * In the case where the node has a previously existing inert root, this inert root will
730
+ * be added to its set of inert roots.
731
+ * @param {!Node} node
732
+ * @param {!InertRoot} inertRoot
733
+ * @return {!InertNode} inertNode
734
+ */
735
+
736
+ }, {
737
+ key: 'register',
738
+ value: function register(node, inertRoot) {
739
+ var inertNode = this._managedNodes.get(node);
740
+ if (inertNode !== undefined) {
741
+ // node was already in an inert subtree
742
+ inertNode.addInertRoot(inertRoot);
743
+ } else {
744
+ inertNode = new InertNode(node, inertRoot);
745
+ }
746
+
747
+ this._managedNodes.set(node, inertNode);
748
+
749
+ return inertNode;
750
+ }
751
+
752
+ /**
753
+ * De-register the given InertRoot as managing the given inert node.
754
+ * Removes the inert root from the InertNode's set of managing inert roots, and remove the inert
755
+ * node from the InertManager's set of managed nodes if it is destroyed.
756
+ * If the node is not currently managed, this is essentially a no-op.
757
+ * @param {!Node} node
758
+ * @param {!InertRoot} inertRoot
759
+ * @return {?InertNode} The potentially destroyed InertNode associated with this node, if any.
760
+ */
761
+
762
+ }, {
763
+ key: 'deregister',
764
+ value: function deregister(node, inertRoot) {
765
+ var inertNode = this._managedNodes.get(node);
766
+ if (!inertNode) {
767
+ return null;
768
+ }
769
+
770
+ inertNode.removeInertRoot(inertRoot);
771
+ if (inertNode.destroyed) {
772
+ this._managedNodes['delete'](node);
773
+ }
774
+
775
+ return inertNode;
776
+ }
777
+
778
+ /**
779
+ * Callback used when document has finished loading.
780
+ */
781
+
782
+ }, {
783
+ key: '_onDocumentLoaded',
784
+ value: function _onDocumentLoaded() {
785
+ // Find all inert roots in document and make them actually inert.
786
+ var inertElements = slice.call(this._document.querySelectorAll('[inert]'));
787
+ inertElements.forEach(function (inertElement) {
788
+ this.setInert(inertElement, true);
789
+ }, this);
790
+
791
+ // Comment this out to use programmatic API only.
792
+ this._observer.observe(this._document.body || this._document.documentElement, { attributes: true, subtree: true, childList: true });
793
+ }
794
+
795
+ /**
796
+ * Callback used when mutation observer detects attribute changes.
797
+ * @param {!Array<!MutationRecord>} records
798
+ * @param {!MutationObserver} self
799
+ */
800
+
801
+ }, {
802
+ key: '_watchForInert',
803
+ value: function _watchForInert(records, self) {
804
+ var _this = this;
805
+ records.forEach(function (record) {
806
+ switch (record.type) {
807
+ case 'childList':
808
+ slice.call(record.addedNodes).forEach(function (node) {
809
+ if (node.nodeType !== Node.ELEMENT_NODE) {
810
+ return;
811
+ }
812
+ var inertElements = slice.call(node.querySelectorAll('[inert]'));
813
+ if (matches.call(node, '[inert]')) {
814
+ inertElements.unshift(node);
815
+ }
816
+ inertElements.forEach(function (inertElement) {
817
+ this.setInert(inertElement, true);
818
+ }, _this);
819
+ }, _this);
820
+ break;
821
+ case 'attributes':
822
+ if (record.attributeName !== 'inert') {
823
+ return;
824
+ }
825
+ var target = /** @type {!HTMLElement} */record.target;
826
+ var inert = target.hasAttribute('inert');
827
+ _this.setInert(target, inert);
828
+ break;
829
+ }
830
+ }, this);
831
+ }
832
+ }]);
833
+
834
+ return InertManager;
835
+ }();
836
+
837
+ /**
838
+ * Recursively walk the composed tree from |node|.
839
+ * @param {!Node} node
840
+ * @param {(function (!HTMLElement))=} callback Callback to be called for each element traversed,
841
+ * before descending into child nodes.
842
+ * @param {?ShadowRoot=} shadowRootAncestor The nearest ShadowRoot ancestor, if any.
843
+ */
844
+
845
+
846
+ function composedTreeWalk(node, callback, shadowRootAncestor) {
847
+ if (node.nodeType == Node.ELEMENT_NODE) {
848
+ var element = /** @type {!HTMLElement} */node;
849
+ if (callback) {
850
+ callback(element);
851
+ }
852
+
853
+ // Descend into node:
854
+ // If it has a ShadowRoot, ignore all child elements - these will be picked
855
+ // up by the <content> or <shadow> elements. Descend straight into the
856
+ // ShadowRoot.
857
+ var shadowRoot = /** @type {!HTMLElement} */element.shadowRoot;
858
+ if (shadowRoot) {
859
+ composedTreeWalk(shadowRoot, callback);
860
+ return;
861
+ }
862
+
863
+ // If it is a <content> element, descend into distributed elements - these
864
+ // are elements from outside the shadow root which are rendered inside the
865
+ // shadow DOM.
866
+ if (element.localName == 'content') {
867
+ var content = /** @type {!HTMLContentElement} */element;
868
+ // Verifies if ShadowDom v0 is supported.
869
+ var distributedNodes = content.getDistributedNodes ? content.getDistributedNodes() : [];
870
+ for (var i = 0; i < distributedNodes.length; i++) {
871
+ composedTreeWalk(distributedNodes[i], callback);
872
+ }
873
+ return;
874
+ }
875
+
876
+ // If it is a <slot> element, descend into assigned nodes - these
877
+ // are elements from outside the shadow root which are rendered inside the
878
+ // shadow DOM.
879
+ if (element.localName == 'slot') {
880
+ var slot = /** @type {!HTMLSlotElement} */element;
881
+ // Verify if ShadowDom v1 is supported.
882
+ var _distributedNodes = slot.assignedNodes ? slot.assignedNodes({ flatten: true }) : [];
883
+ for (var _i = 0; _i < _distributedNodes.length; _i++) {
884
+ composedTreeWalk(_distributedNodes[_i], callback);
885
+ }
886
+ return;
887
+ }
888
+ }
889
+
890
+ // If it is neither the parent of a ShadowRoot, a <content> element, a <slot>
891
+ // element, nor a <shadow> element recurse normally.
892
+ var child = node.firstChild;
893
+ while (child != null) {
894
+ composedTreeWalk(child, callback);
895
+ child = child.nextSibling;
896
+ }
897
+ }
898
+
899
+ /**
900
+ * Adds a style element to the node containing the inert specific styles
901
+ * @param {!Node} node
902
+ */
903
+ function addInertStyle(node) {
904
+ if (node.querySelector('style#inert-style, link#inert-style')) {
905
+ return;
906
+ }
907
+ var style = document.createElement('style');
908
+ style.setAttribute('id', 'inert-style');
909
+ style.textContent = '\n' + '[inert] {\n' + ' pointer-events: none;\n' + ' cursor: default;\n' + '}\n' + '\n' + '[inert], [inert] * {\n' + ' -webkit-user-select: none;\n' + ' -moz-user-select: none;\n' + ' -ms-user-select: none;\n' + ' user-select: none;\n' + '}\n';
910
+ node.appendChild(style);
911
+ }
912
+
913
+ if (!HTMLElement.prototype.hasOwnProperty('inert')) {
914
+ /** @type {!InertManager} */
915
+ var inertManager = new InertManager(document);
916
+
917
+ Object.defineProperty(HTMLElement.prototype, 'inert', {
918
+ enumerable: true,
919
+ /** @this {!HTMLElement} */
920
+ get: function get() {
921
+ return this.hasAttribute('inert');
922
+ },
923
+ /** @this {!HTMLElement} */
924
+ set: function set(inert) {
925
+ inertManager.setInert(this, inert);
926
+ }
927
+ });
928
+ }
929
+ })();
930
+
97
931
  const name = "@oiz/stzh-components";
98
- const version = "2.4.0-beta";
932
+ const version = "2.5.0-alpha-carousel";
99
933
 
100
934
  const packageName = name.substring(name.indexOf('/')+1);
101
935