@oiz/stzh-components 0.0.1-pretest → 1.5.0-alpha

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 (959) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -56
  3. package/dist/cjs/{animation-utils-c816beac.js → animation-utils-cfa35ce7.js} +37 -37
  4. package/dist/cjs/{app-globals-83a6c2d3.js → app-globals-3b6f75bd.js} +44 -42
  5. package/dist/cjs/{arrow-70a32014.js → arrow-3c3b0ae5.js} +3 -3
  6. package/dist/cjs/{date-adapter-2ffd8eaf.js → date-adapter-2a78f6f8.js} +85 -85
  7. package/dist/cjs/{date-utils-898a50be.js → date-utils-bb50c91f.js} +156 -156
  8. package/dist/cjs/{event-utils-4d7d610a.js → event-utils-9b64c792.js} +13 -13
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{media-utils-f1720906.js → media-utils-8cfc8591.js} +19 -19
  11. package/dist/cjs/{string-utils-223b03e2.js → string-utils-a867b99d.js} +12 -12
  12. package/dist/cjs/stzh-accordion-item.cjs.entry.js +170 -170
  13. package/dist/cjs/stzh-accordion.cjs.entry.js +63 -63
  14. package/dist/cjs/stzh-actions.cjs.entry.js +42 -42
  15. package/dist/cjs/stzh-appnav.cjs.entry.js +39 -39
  16. package/dist/cjs/stzh-appointments.cjs.entry.js +260 -260
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +146 -146
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +291 -291
  19. package/dist/cjs/stzh-cell.cjs.entry.js +24 -24
  20. package/dist/cjs/stzh-checkbox.cjs.entry.js +123 -123
  21. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +155 -157
  22. package/dist/cjs/stzh-chip-select.cjs.entry.js +55 -55
  23. package/dist/cjs/stzh-chip.cjs.entry.js +90 -90
  24. package/dist/cjs/stzh-components.cjs.js +2 -2
  25. package/dist/cjs/stzh-container.cjs.entry.js +8 -8
  26. package/dist/cjs/stzh-cspace.cjs.entry.js +12 -12
  27. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +92 -92
  28. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +12 -12
  29. package/dist/cjs/stzh-datatable.cjs.entry.js +201 -201
  30. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +456 -458
  31. package/dist/cjs/stzh-dialog.cjs.entry.js +180 -180
  32. package/dist/cjs/stzh-dropdown.cjs.entry.js +479 -452
  33. package/dist/cjs/stzh-fieldset.cjs.entry.js +24 -24
  34. package/dist/cjs/stzh-figure.cjs.entry.js +19 -19
  35. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +167 -167
  36. package/dist/cjs/stzh-footer.cjs.entry.js +56 -56
  37. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +132 -132
  38. package/dist/cjs/stzh-header.cjs.entry.js +151 -151
  39. package/dist/cjs/stzh-heading.cjs.entry.js +21 -21
  40. package/dist/cjs/stzh-hr.cjs.entry.js +12 -12
  41. package/dist/cjs/stzh-hspace.cjs.entry.js +30 -30
  42. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +9 -9
  43. package/dist/cjs/{stzh-input-description-9ed61d1d.js → stzh-input-description-9802abc2.js} +15 -15
  44. package/dist/cjs/stzh-input.cjs.entry.js +187 -182
  45. package/dist/cjs/stzh-link.cjs.entry.js +95 -95
  46. package/dist/cjs/stzh-list-item.cjs.entry.js +15 -15
  47. package/dist/cjs/stzh-list.cjs.entry.js +15 -15
  48. package/dist/cjs/stzh-loader.cjs.entry.js +20 -20
  49. package/dist/cjs/stzh-loadingbar.cjs.entry.js +22 -22
  50. package/dist/cjs/stzh-menu_2.cjs.entry.js +81 -81
  51. package/dist/cjs/stzh-message.cjs.entry.js +72 -72
  52. package/dist/cjs/stzh-metanav.cjs.entry.js +26 -26
  53. package/dist/cjs/stzh-overlay.cjs.entry.js +88 -88
  54. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +26 -26
  55. package/dist/cjs/stzh-pagetitle.cjs.entry.js +61 -61
  56. package/dist/cjs/stzh-popover.cjs.entry.js +349 -349
  57. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +13 -13
  58. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +46 -46
  59. package/dist/cjs/stzh-progressbar.cjs.entry.js +114 -114
  60. package/dist/cjs/stzh-readspeaker.cjs.entry.js +47 -47
  61. package/dist/cjs/stzh-row.cjs.entry.js +29 -29
  62. package/dist/cjs/stzh-saptcha.cjs.entry.js +70 -70
  63. package/dist/cjs/stzh-section.cjs.entry.js +13 -13
  64. package/dist/cjs/stzh-servicecard-list.cjs.entry.js +62 -45
  65. package/dist/cjs/stzh-servicecard.cjs.entry.js +224 -202
  66. package/dist/cjs/stzh-skiplink.cjs.entry.js +16 -16
  67. package/dist/cjs/stzh-sortable.cjs.entry.js +3485 -2712
  68. package/dist/cjs/stzh-status.cjs.entry.js +25 -25
  69. package/dist/cjs/stzh-table.cjs.entry.js +132 -132
  70. package/dist/cjs/stzh-toggle.cjs.entry.js +123 -123
  71. package/dist/cjs/stzh-tooltip.cjs.entry.js +310 -310
  72. package/dist/cjs/stzh-upload.cjs.entry.js +475 -442
  73. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +71 -71
  74. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +95 -95
  75. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +171 -171
  76. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +10 -10
  77. package/dist/cjs/stzh-vspace.cjs.entry.js +30 -30
  78. package/dist/cjs/{translation-utils-2dbbce94.js → translation-utils-73073e44.js} +54 -54
  79. package/dist/cjs/utils-8dc66449.js +76 -0
  80. package/dist/collection/assets/favicons/browserconfig.xml +9 -9
  81. package/dist/collection/assets/favicons/site.webmanifest +19 -19
  82. package/dist/collection/assets/fonts.css +39 -39
  83. package/dist/collection/assets/i18n/de.json +154 -154
  84. package/dist/collection/assets/i18n/en.json +154 -154
  85. package/dist/collection/assets/icons/mono/alarm-bell.svg +3 -3
  86. package/dist/collection/assets/icons/mono/angle-down.svg +3 -3
  87. package/dist/collection/assets/icons/mono/angle-left.svg +3 -3
  88. package/dist/collection/assets/icons/mono/angle-right.svg +3 -3
  89. package/dist/collection/assets/icons/mono/angle-up.svg +3 -3
  90. package/dist/collection/assets/icons/mono/archive-box.svg +3 -3
  91. package/dist/collection/assets/icons/mono/arrow-down.svg +3 -3
  92. package/dist/collection/assets/icons/mono/arrow-left-circle.svg +4 -4
  93. package/dist/collection/assets/icons/mono/arrow-left.svg +3 -3
  94. package/dist/collection/assets/icons/mono/arrow-right-long.svg +3 -3
  95. package/dist/collection/assets/icons/mono/arrow-right.svg +3 -3
  96. package/dist/collection/assets/icons/mono/arrow-up.svg +3 -3
  97. package/dist/collection/assets/icons/mono/bulleted-list.svg +3 -3
  98. package/dist/collection/assets/icons/mono/calendar.svg +3 -3
  99. package/dist/collection/assets/icons/mono/cart.svg +3 -3
  100. package/dist/collection/assets/icons/mono/checkmark-circle.svg +3 -3
  101. package/dist/collection/assets/icons/mono/checkmark.svg +3 -3
  102. package/dist/collection/assets/icons/mono/clock.svg +3 -3
  103. package/dist/collection/assets/icons/mono/close-circle.svg +3 -3
  104. package/dist/collection/assets/icons/mono/close.svg +3 -3
  105. package/dist/collection/assets/icons/mono/compass-direction.svg +3 -3
  106. package/dist/collection/assets/icons/mono/compass-north.svg +4 -4
  107. package/dist/collection/assets/icons/mono/construction.svg +3 -3
  108. package/dist/collection/assets/icons/mono/copy.svg +3 -3
  109. package/dist/collection/assets/icons/mono/delete.svg +3 -3
  110. package/dist/collection/assets/icons/mono/download.svg +3 -3
  111. package/dist/collection/assets/icons/mono/drag.svg +10 -10
  112. package/dist/collection/assets/icons/mono/edit.svg +3 -3
  113. package/dist/collection/assets/icons/mono/email-check.svg +10 -10
  114. package/dist/collection/assets/icons/mono/expand.svg +3 -3
  115. package/dist/collection/assets/icons/mono/external-link.svg +4 -4
  116. package/dist/collection/assets/icons/mono/facebook-comment.svg +3 -3
  117. package/dist/collection/assets/icons/mono/facebook.svg +10 -10
  118. package/dist/collection/assets/icons/mono/file.svg +3 -3
  119. package/dist/collection/assets/icons/mono/filtering.svg +3 -3
  120. package/dist/collection/assets/icons/mono/flag.svg +10 -10
  121. package/dist/collection/assets/icons/mono/focus.svg +3 -3
  122. package/dist/collection/assets/icons/mono/gear.svg +3 -3
  123. package/dist/collection/assets/icons/mono/heart.svg +10 -10
  124. package/dist/collection/assets/icons/mono/home.svg +10 -10
  125. package/dist/collection/assets/icons/mono/important-warning.svg +3 -3
  126. package/dist/collection/assets/icons/mono/info-help.svg +3 -3
  127. package/dist/collection/assets/icons/mono/instagram.svg +3 -3
  128. package/dist/collection/assets/icons/mono/like-hand.svg +10 -10
  129. package/dist/collection/assets/icons/mono/linkedin.svg +5 -5
  130. package/dist/collection/assets/icons/mono/list-expanded.svg +4 -4
  131. package/dist/collection/assets/icons/mono/list-shrinked.svg +3 -3
  132. package/dist/collection/assets/icons/mono/lock.svg +10 -10
  133. package/dist/collection/assets/icons/mono/mail.svg +10 -10
  134. package/dist/collection/assets/icons/mono/map.svg +3 -3
  135. package/dist/collection/assets/icons/mono/menu.svg +3 -3
  136. package/dist/collection/assets/icons/mono/minus.svg +3 -3
  137. package/dist/collection/assets/icons/mono/more-horizontal.svg +5 -5
  138. package/dist/collection/assets/icons/mono/more-vertical.svg +5 -5
  139. package/dist/collection/assets/icons/mono/paper-clip.svg +10 -10
  140. package/dist/collection/assets/icons/mono/phone.svg +10 -10
  141. package/dist/collection/assets/icons/mono/pin-location.svg +10 -10
  142. package/dist/collection/assets/icons/mono/pin.svg +11 -11
  143. package/dist/collection/assets/icons/mono/play-1.svg +4 -4
  144. package/dist/collection/assets/icons/mono/play-button.svg +11 -11
  145. package/dist/collection/assets/icons/mono/play.svg +10 -10
  146. package/dist/collection/assets/icons/mono/plus.svg +3 -3
  147. package/dist/collection/assets/icons/mono/portfolio-grid.svg +11 -11
  148. package/dist/collection/assets/icons/mono/print.svg +10 -10
  149. package/dist/collection/assets/icons/mono/question-help.svg +3 -3
  150. package/dist/collection/assets/icons/mono/read-mail.svg +10 -10
  151. package/dist/collection/assets/icons/mono/reload.svg +10 -10
  152. package/dist/collection/assets/icons/mono/reset-time.svg +10 -10
  153. package/dist/collection/assets/icons/mono/reset.svg +10 -10
  154. package/dist/collection/assets/icons/mono/resize.svg +8 -8
  155. package/dist/collection/assets/icons/mono/rss.svg +12 -12
  156. package/dist/collection/assets/icons/mono/search.svg +3 -3
  157. package/dist/collection/assets/icons/mono/services.svg +6 -6
  158. package/dist/collection/assets/icons/mono/share.svg +3 -3
  159. package/dist/collection/assets/icons/mono/shrink.svg +3 -3
  160. package/dist/collection/assets/icons/mono/silent-mode.svg +3 -3
  161. package/dist/collection/assets/icons/mono/social-media.svg +23 -23
  162. package/dist/collection/assets/icons/mono/star-filled.svg +3 -3
  163. package/dist/collection/assets/icons/mono/star.svg +3 -3
  164. package/dist/collection/assets/icons/mono/subtitle.svg +3 -3
  165. package/dist/collection/assets/icons/mono/team.svg +10 -10
  166. package/dist/collection/assets/icons/mono/text-message.svg +6 -6
  167. package/dist/collection/assets/icons/mono/thermometer.svg +10 -10
  168. package/dist/collection/assets/icons/mono/transcript.svg +3 -3
  169. package/dist/collection/assets/icons/mono/twitter-reply.svg +3 -3
  170. package/dist/collection/assets/icons/mono/twitter-retweet.svg +3 -3
  171. package/dist/collection/assets/icons/mono/twitter.svg +10 -10
  172. package/dist/collection/assets/icons/mono/unlock.svg +10 -10
  173. package/dist/collection/assets/icons/mono/user.svg +3 -3
  174. package/dist/collection/assets/icons/mono/view-hidden.svg +3 -3
  175. package/dist/collection/assets/icons/mono/view.svg +4 -4
  176. package/dist/collection/assets/icons/mono/volume-medium.svg +3 -3
  177. package/dist/collection/assets/icons/mono/warning-big.svg +4 -4
  178. package/dist/collection/assets/icons/mono/warning.svg +3 -3
  179. package/dist/collection/assets/icons/mono/web-Link.svg +3 -3
  180. package/dist/collection/assets/icons/mono/wifi-signal.svg +3 -3
  181. package/dist/collection/assets/icons/mono/world-globe.svg +10 -10
  182. package/dist/collection/assets/icons/mono/xing.svg +11 -11
  183. package/dist/collection/assets/polyfills/ie11CustomProperties.min.js +8 -8
  184. package/dist/collection/assets/polyfills/intersection-observer.min.js +7 -7
  185. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
  186. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
  187. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
  188. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
  189. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
  190. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
  191. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
  192. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
  193. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
  194. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
  195. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
  196. package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
  197. package/dist/collection/components/stzh-accordion/stzh-accordion.js +156 -156
  198. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +52 -52
  199. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +429 -429
  200. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +45 -45
  201. package/dist/collection/components/stzh-actions/stzh-actions.js +98 -98
  202. package/dist/collection/components/stzh-actions/stzh-actions.stories.js +66 -66
  203. package/dist/collection/components/stzh-appnav/stzh-appnav.js +112 -112
  204. package/dist/collection/components/stzh-appnav/stzh-appnav.stories.js +53 -53
  205. package/dist/collection/components/stzh-appointments/stzh-appointments.js +515 -515
  206. package/dist/collection/components/stzh-appointments/stzh-appointments.localization.js +1 -1
  207. package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +186 -186
  208. package/dist/collection/components/stzh-badge/stzh-badge.js +47 -47
  209. package/dist/collection/components/stzh-badge/stzh-badge.stories.js +36 -36
  210. package/dist/collection/components/stzh-button/stzh-button.js +516 -516
  211. package/dist/collection/components/stzh-button/stzh-button.stories.js +66 -66
  212. package/dist/collection/components/stzh-calendar/stzh-calendar-day.js +22 -22
  213. package/dist/collection/components/stzh-calendar/stzh-calendar-month.js +21 -21
  214. package/dist/collection/components/stzh-calendar/stzh-calendar.js +463 -463
  215. package/dist/collection/components/stzh-calendar/stzh-calendar.localization.js +1 -1
  216. package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +37 -37
  217. package/dist/collection/components/stzh-cell/stzh-cell.js +179 -179
  218. package/dist/collection/components/stzh-cell/stzh-cell.stories.js +39 -39
  219. package/dist/collection/components/stzh-checkbox/assets/check.svg +3 -3
  220. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +459 -459
  221. package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +38 -38
  222. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +448 -450
  223. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +39 -39
  224. package/dist/collection/components/stzh-chip/stzh-chip.js +407 -407
  225. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +64 -64
  226. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +158 -158
  227. package/dist/collection/components/stzh-chip-select/stzh-chip-select.stories.js +69 -69
  228. package/dist/collection/components/stzh-container/stzh-container.js +21 -21
  229. package/dist/collection/components/stzh-container/stzh-container.stories.js +35 -35
  230. package/dist/collection/components/stzh-cspace/stzh-cspace.css +6 -0
  231. package/dist/collection/components/stzh-cspace/stzh-cspace.js +24 -24
  232. package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +34 -34
  233. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +24 -24
  234. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +149 -149
  235. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +358 -358
  236. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.js +1 -1
  237. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +63 -63
  238. package/dist/collection/components/stzh-datatable/stzh-datatable.js +413 -413
  239. package/dist/collection/components/stzh-datatable/stzh-datatable.localization.js +1 -1
  240. package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +63 -63
  241. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +586 -586
  242. package/dist/collection/components/stzh-datepicker/stzh-datepicker.localization.js +1 -1
  243. package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +39 -39
  244. package/dist/collection/components/stzh-dialog/stzh-dialog.css +9 -1
  245. package/dist/collection/components/stzh-dialog/stzh-dialog.js +480 -480
  246. package/dist/collection/components/stzh-dialog/stzh-dialog.localization.js +1 -1
  247. package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +85 -75
  248. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +2 -4
  249. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1514 -1436
  250. package/dist/collection/components/stzh-dropdown/stzh-dropdown.localization.js +1 -1
  251. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +3437 -109
  252. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +120 -120
  253. package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +55 -55
  254. package/dist/collection/components/stzh-figure/stzh-figure.js +76 -76
  255. package/dist/collection/components/stzh-figure/stzh-figure.stories.js +36 -36
  256. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +253 -253
  257. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +27 -27
  258. package/dist/collection/components/stzh-footer/stzh-footer.js +147 -147
  259. package/dist/collection/components/stzh-footer/stzh-footer.localization.js +1 -1
  260. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +49 -49
  261. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +319 -319
  262. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.localization.js +1 -1
  263. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +49 -49
  264. package/dist/collection/components/stzh-header/stzh-header.js +267 -267
  265. package/dist/collection/components/stzh-header/stzh-header.stories.js +178 -178
  266. package/dist/collection/components/stzh-heading/stzh-heading.js +99 -99
  267. package/dist/collection/components/stzh-heading/stzh-heading.stories.js +37 -37
  268. package/dist/collection/components/stzh-hr/stzh-hr.js +25 -25
  269. package/dist/collection/components/stzh-hr/stzh-hr.stories.js +23 -23
  270. package/dist/collection/components/stzh-hspace/stzh-hspace.js +246 -246
  271. package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +73 -73
  272. package/dist/collection/components/stzh-icon/stzh-icon.js +76 -76
  273. package/dist/collection/components/stzh-icon/stzh-icon.stories.js +37 -37
  274. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
  275. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.js +19 -19
  276. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.stories.js +46 -46
  277. package/dist/collection/components/stzh-input/stzh-input-description.js +8 -8
  278. package/dist/collection/components/stzh-input/stzh-input.css +13 -4
  279. package/dist/collection/components/stzh-input/stzh-input.js +799 -724
  280. package/dist/collection/components/stzh-input/stzh-input.stories.js +116 -116
  281. package/dist/collection/components/stzh-link/stzh-link.js +427 -427
  282. package/dist/collection/components/stzh-link/stzh-link.stories.js +67 -67
  283. package/dist/collection/components/stzh-list/stzh-list.js +52 -52
  284. package/dist/collection/components/stzh-list/stzh-list.stories.js +42 -42
  285. package/dist/collection/components/stzh-list-item/assets/checkmark.svg +3 -3
  286. package/dist/collection/components/stzh-list-item/stzh-list-item.js +26 -26
  287. package/dist/collection/components/stzh-loader/stzh-loader.js +93 -93
  288. package/dist/collection/components/stzh-loader/stzh-loader.stories.js +36 -36
  289. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +94 -94
  290. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +34 -34
  291. package/dist/collection/components/stzh-menu/stzh-menu.js +21 -21
  292. package/dist/collection/components/stzh-menu/stzh-menu.stories.js +69 -69
  293. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +296 -296
  294. package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +52 -52
  295. package/dist/collection/components/stzh-message/stzh-message.js +287 -287
  296. package/dist/collection/components/stzh-message/stzh-message.localization.js +1 -1
  297. package/dist/collection/components/stzh-message/stzh-message.stories.js +40 -40
  298. package/dist/collection/components/stzh-metanav/stzh-metanav.js +41 -41
  299. package/dist/collection/components/stzh-metanav/stzh-metanav.stories.js +39 -39
  300. package/dist/collection/components/stzh-overlay/stzh-overlay.js +239 -239
  301. package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +50 -50
  302. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +41 -41
  303. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +43 -43
  304. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +76 -76
  305. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +107 -107
  306. package/dist/collection/components/stzh-popover/stzh-popover.js +673 -673
  307. package/dist/collection/components/stzh-popover/stzh-popover.localization.js +1 -1
  308. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +67 -67
  309. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +569 -578
  310. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +25 -25
  311. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +28 -28
  312. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +272 -272
  313. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +164 -164
  314. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +250 -250
  315. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +36 -36
  316. package/dist/collection/components/stzh-radio/stzh-radio.js +458 -458
  317. package/dist/collection/components/stzh-radio/stzh-radio.stories.js +38 -38
  318. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +477 -477
  319. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +39 -39
  320. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +114 -114
  321. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +50 -50
  322. package/dist/collection/components/stzh-richtext/stzh-richtext.js +90 -90
  323. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +79 -79
  324. package/dist/collection/components/stzh-row/stzh-row.js +207 -207
  325. package/dist/collection/components/stzh-row/stzh-row.stories.js +90 -90
  326. package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +221 -221
  327. package/dist/collection/components/stzh-saptcha/stzh-saptcha.localization.js +1 -1
  328. package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +34 -34
  329. package/dist/collection/components/stzh-section/stzh-section.js +50 -50
  330. package/dist/collection/components/stzh-section/stzh-section.stories.js +100 -100
  331. package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +4 -4
  332. package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +614 -592
  333. package/dist/collection/components/stzh-servicecard/stzh-servicecard.localization.js +1 -1
  334. package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +73 -73
  335. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +196 -153
  336. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.localization.js +1 -1
  337. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +116 -115
  338. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +106 -106
  339. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +53 -53
  340. package/dist/collection/components/stzh-sortable/stzh-sortable.js +530 -501
  341. package/dist/collection/components/stzh-sortable/stzh-sortable.localization.js +1 -1
  342. package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +34 -34
  343. package/dist/collection/components/stzh-status/stzh-status.js +115 -115
  344. package/dist/collection/components/stzh-status/stzh-status.stories.js +34 -34
  345. package/dist/collection/components/stzh-table/stzh-table.js +215 -215
  346. package/dist/collection/components/stzh-table/stzh-table.stories.js +89 -89
  347. package/dist/collection/components/stzh-text/stzh-text.js +232 -232
  348. package/dist/collection/components/stzh-text/stzh-text.stories.js +43 -43
  349. package/dist/collection/components/stzh-toggle/stzh-toggle.js +479 -479
  350. package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +38 -38
  351. package/dist/collection/components/stzh-tooltip/assets/arrow.svg +3 -3
  352. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +667 -667
  353. package/dist/collection/components/stzh-tooltip/stzh-tooltip.localization.js +1 -1
  354. package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +63 -63
  355. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  356. package/dist/collection/components/stzh-upload/stzh-upload.js +1391 -1358
  357. package/dist/collection/components/stzh-upload/stzh-upload.localization.js +1 -1
  358. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +71 -69
  359. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +229 -229
  360. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +36 -36
  361. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +236 -236
  362. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.js +1 -1
  363. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +52 -52
  364. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +292 -292
  365. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js +1 -1
  366. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +53 -53
  367. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +23 -23
  368. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +45 -45
  369. package/dist/collection/components/stzh-vspace/stzh-vspace.js +246 -246
  370. package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +73 -73
  371. package/dist/collection/global/js/helpers/autofocus.js +22 -20
  372. package/dist/collection/global/js/helpers/scrollbar-width.js +20 -20
  373. package/dist/collection/global/js/script.js +17 -17
  374. package/dist/collection/index.js +7 -7
  375. package/dist/collection/libraries/sortable.js +3791 -0
  376. package/dist/collection/pages/egov.stories.js +262 -262
  377. package/dist/collection/pages/example.stories.js +170 -170
  378. package/dist/collection/pages/meinkonto.stories.js +660 -660
  379. package/dist/collection/patterns/appointments.stories.js +43 -43
  380. package/dist/collection/patterns/processingscreen.stories.js +43 -43
  381. package/dist/collection/utils/animation-utils.js +51 -51
  382. package/dist/collection/utils/date-adapter.js +86 -86
  383. package/dist/collection/utils/date-utils.js +196 -196
  384. package/dist/collection/utils/decorators.js +15 -15
  385. package/dist/collection/utils/event-utils.js +14 -14
  386. package/dist/collection/utils/h.js +109 -109
  387. package/dist/collection/utils/media-utils.js +20 -20
  388. package/dist/collection/utils/string-utils.js +13 -13
  389. package/dist/collection/utils/test-utils.js +27 -27
  390. package/dist/collection/utils/translation-utils.js +55 -55
  391. package/dist/collection/utils/utils.js +80 -41
  392. package/dist/components/animation-utils.js +37 -37
  393. package/dist/components/arrow.js +3 -3
  394. package/dist/components/date-adapter.js +85 -85
  395. package/dist/components/event-utils.js +13 -13
  396. package/dist/components/index.js +43 -41
  397. package/dist/components/media-utils.js +19 -19
  398. package/dist/components/string-utils.js +12 -12
  399. package/dist/components/stzh-accordion-item.js +192 -192
  400. package/dist/components/stzh-accordion.js +81 -81
  401. package/dist/components/stzh-actions.js +58 -58
  402. package/dist/components/stzh-appnav.js +56 -56
  403. package/dist/components/stzh-appointments.js +343 -343
  404. package/dist/components/stzh-badge2.js +26 -26
  405. package/dist/components/stzh-button2.js +155 -155
  406. package/dist/components/stzh-calendar2.js +475 -475
  407. package/dist/components/stzh-cell.js +47 -47
  408. package/dist/components/stzh-checkbox.js +159 -159
  409. package/dist/components/stzh-checkboxgroup.js +190 -192
  410. package/dist/components/stzh-chip-select.js +93 -93
  411. package/dist/components/stzh-chip2.js +122 -122
  412. package/dist/components/stzh-container.js +22 -22
  413. package/dist/components/stzh-cspace.js +26 -26
  414. package/dist/components/stzh-datamessagelist-item.js +156 -156
  415. package/dist/components/stzh-datamessagelist.js +26 -26
  416. package/dist/components/stzh-datatable.js +255 -255
  417. package/dist/components/stzh-datepicker2.js +206 -206
  418. package/dist/components/stzh-dialog.js +215 -215
  419. package/dist/components/stzh-dropdown2.js +546 -516
  420. package/dist/components/stzh-fieldset.js +48 -48
  421. package/dist/components/stzh-figure.js +35 -35
  422. package/dist/components/stzh-flyingfocus.js +188 -188
  423. package/dist/components/stzh-footer.js +88 -88
  424. package/dist/components/stzh-ghettobox2.js +124 -124
  425. package/dist/components/stzh-header.js +174 -174
  426. package/dist/components/stzh-heading2.js +39 -39
  427. package/dist/components/stzh-hr.js +26 -26
  428. package/dist/components/stzh-hspace.js +54 -54
  429. package/dist/components/stzh-icon-sprite.js +23 -23
  430. package/dist/components/stzh-icon2.js +41 -41
  431. package/dist/components/stzh-input-description.js +15 -15
  432. package/dist/components/stzh-input2.js +249 -240
  433. package/dist/components/stzh-link2.js +134 -134
  434. package/dist/components/stzh-list-item.js +30 -30
  435. package/dist/components/stzh-list.js +32 -32
  436. package/dist/components/stzh-loader.js +38 -38
  437. package/dist/components/stzh-loadingbar.js +40 -40
  438. package/dist/components/stzh-menu-item2.js +106 -106
  439. package/dist/components/stzh-menu2.js +22 -22
  440. package/dist/components/stzh-message.js +100 -100
  441. package/dist/components/stzh-metanav.js +40 -40
  442. package/dist/components/stzh-overlay.js +108 -108
  443. package/dist/components/stzh-page-skiplinks.js +40 -40
  444. package/dist/components/stzh-pagetitle.js +74 -74
  445. package/dist/components/stzh-popover2.js +376 -376
  446. package/dist/components/stzh-portal-mitwirken.js +27 -27
  447. package/dist/components/stzh-progressbar-item2.js +74 -74
  448. package/dist/components/stzh-progressbar.js +146 -146
  449. package/dist/components/stzh-radio2.js +156 -156
  450. package/dist/components/stzh-radiogroup2.js +200 -202
  451. package/dist/components/stzh-readspeaker.js +63 -63
  452. package/dist/components/stzh-richtext2.js +57 -57
  453. package/dist/components/stzh-row.js +53 -53
  454. package/dist/components/stzh-saptcha.js +116 -116
  455. package/dist/components/stzh-section.js +29 -29
  456. package/dist/components/stzh-servicecard-list.js +102 -84
  457. package/dist/components/stzh-servicecard.js +286 -264
  458. package/dist/components/stzh-skiplink.js +35 -35
  459. package/dist/components/stzh-sortable2.js +3510 -2736
  460. package/dist/components/stzh-status2.js +44 -44
  461. package/dist/components/stzh-table.js +153 -153
  462. package/dist/components/stzh-text2.js +57 -57
  463. package/dist/components/stzh-toggle.js +160 -160
  464. package/dist/components/stzh-tooltip2.js +340 -340
  465. package/dist/components/stzh-upload.js +537 -504
  466. package/dist/components/stzh-vbz-linechip2.js +96 -96
  467. package/dist/components/stzh-vbz-majorticker.js +139 -139
  468. package/dist/components/stzh-vbz-ticker.js +214 -214
  469. package/dist/components/stzh-visuallyhidden.js +24 -24
  470. package/dist/components/stzh-vspace.js +54 -54
  471. package/dist/components/translation-utils.js +54 -54
  472. package/dist/components/utils.js +70 -31
  473. package/dist/esm/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +37 -37
  474. package/dist/esm/{app-globals-137e106c.js → app-globals-c42494e9.js} +44 -42
  475. package/dist/esm/{arrow-18769ca6.js → arrow-86a679c7.js} +3 -3
  476. package/dist/esm/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +85 -85
  477. package/dist/esm/{date-utils-282e96fe.js → date-utils-be83fff1.js} +156 -156
  478. package/dist/esm/{event-utils-68b64805.js → event-utils-7a709e21.js} +13 -13
  479. package/dist/esm/loader.js +2 -2
  480. package/dist/esm/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +19 -19
  481. package/dist/esm/polyfills/core-js.js +0 -0
  482. package/dist/esm/polyfills/dom.js +0 -0
  483. package/dist/esm/polyfills/es5-html-element.js +0 -0
  484. package/dist/esm/polyfills/index.js +0 -0
  485. package/dist/esm/polyfills/system.js +0 -0
  486. package/dist/esm/{string-utils-33181845.js → string-utils-f98ee4e8.js} +12 -12
  487. package/dist/esm/stzh-accordion-item.entry.js +170 -170
  488. package/dist/esm/stzh-accordion.entry.js +63 -63
  489. package/dist/esm/stzh-actions.entry.js +42 -42
  490. package/dist/esm/stzh-appnav.entry.js +39 -39
  491. package/dist/esm/stzh-appointments.entry.js +260 -260
  492. package/dist/esm/stzh-badge_3.entry.js +146 -146
  493. package/dist/esm/stzh-calendar.entry.js +291 -291
  494. package/dist/esm/stzh-cell.entry.js +24 -24
  495. package/dist/esm/stzh-checkbox.entry.js +123 -123
  496. package/dist/esm/stzh-checkboxgroup.entry.js +155 -157
  497. package/dist/esm/stzh-chip-select.entry.js +55 -55
  498. package/dist/esm/stzh-chip.entry.js +90 -90
  499. package/dist/esm/stzh-components.js +2 -2
  500. package/dist/esm/stzh-container.entry.js +8 -8
  501. package/dist/esm/stzh-cspace.entry.js +12 -12
  502. package/dist/esm/stzh-datamessagelist-item.entry.js +92 -92
  503. package/dist/esm/stzh-datamessagelist.entry.js +12 -12
  504. package/dist/esm/stzh-datatable.entry.js +201 -201
  505. package/dist/esm/stzh-datepicker_4.entry.js +456 -458
  506. package/dist/esm/stzh-dialog.entry.js +180 -180
  507. package/dist/esm/stzh-dropdown.entry.js +479 -452
  508. package/dist/esm/stzh-fieldset.entry.js +24 -24
  509. package/dist/esm/stzh-figure.entry.js +19 -19
  510. package/dist/esm/stzh-flyingfocus.entry.js +167 -167
  511. package/dist/esm/stzh-footer.entry.js +56 -56
  512. package/dist/esm/stzh-ghettobox_2.entry.js +132 -132
  513. package/dist/esm/stzh-header.entry.js +151 -151
  514. package/dist/esm/stzh-heading.entry.js +21 -21
  515. package/dist/esm/stzh-hr.entry.js +12 -12
  516. package/dist/esm/stzh-hspace.entry.js +30 -30
  517. package/dist/esm/stzh-icon-sprite.entry.js +9 -9
  518. package/dist/esm/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +15 -15
  519. package/dist/esm/stzh-input.entry.js +187 -182
  520. package/dist/esm/stzh-link.entry.js +95 -95
  521. package/dist/esm/stzh-list-item.entry.js +15 -15
  522. package/dist/esm/stzh-list.entry.js +15 -15
  523. package/dist/esm/stzh-loader.entry.js +20 -20
  524. package/dist/esm/stzh-loadingbar.entry.js +22 -22
  525. package/dist/esm/stzh-menu_2.entry.js +81 -81
  526. package/dist/esm/stzh-message.entry.js +72 -72
  527. package/dist/esm/stzh-metanav.entry.js +26 -26
  528. package/dist/esm/stzh-overlay.entry.js +88 -88
  529. package/dist/esm/stzh-page-skiplinks.entry.js +26 -26
  530. package/dist/esm/stzh-pagetitle.entry.js +61 -61
  531. package/dist/esm/stzh-popover.entry.js +349 -349
  532. package/dist/esm/stzh-portal-mitwirken.entry.js +13 -13
  533. package/dist/esm/stzh-progressbar-item.entry.js +46 -46
  534. package/dist/esm/stzh-progressbar.entry.js +114 -114
  535. package/dist/esm/stzh-readspeaker.entry.js +47 -47
  536. package/dist/esm/stzh-row.entry.js +29 -29
  537. package/dist/esm/stzh-saptcha.entry.js +70 -70
  538. package/dist/esm/stzh-section.entry.js +13 -13
  539. package/dist/esm/stzh-servicecard-list.entry.js +62 -45
  540. package/dist/esm/stzh-servicecard.entry.js +224 -202
  541. package/dist/esm/stzh-skiplink.entry.js +16 -16
  542. package/dist/esm/stzh-sortable.entry.js +3485 -2712
  543. package/dist/esm/stzh-status.entry.js +25 -25
  544. package/dist/esm/stzh-table.entry.js +132 -132
  545. package/dist/esm/stzh-toggle.entry.js +123 -123
  546. package/dist/esm/stzh-tooltip.entry.js +310 -310
  547. package/dist/esm/stzh-upload.entry.js +475 -442
  548. package/dist/esm/stzh-vbz-linechip.entry.js +71 -71
  549. package/dist/esm/stzh-vbz-majorticker.entry.js +95 -95
  550. package/dist/esm/stzh-vbz-ticker.entry.js +171 -171
  551. package/dist/esm/stzh-visuallyhidden.entry.js +10 -10
  552. package/dist/esm/stzh-vspace.entry.js +30 -30
  553. package/dist/esm/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +54 -54
  554. package/dist/esm/utils-68a28fce.js +72 -0
  555. package/dist/esm-es5/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +0 -0
  556. package/dist/esm-es5/app-globals-c42494e9.js +1 -0
  557. package/dist/esm-es5/{arrow-18769ca6.js → arrow-86a679c7.js} +0 -0
  558. package/dist/esm-es5/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +0 -0
  559. package/dist/esm-es5/{date-utils-282e96fe.js → date-utils-be83fff1.js} +0 -0
  560. package/dist/esm-es5/{event-utils-68b64805.js → event-utils-7a709e21.js} +0 -0
  561. package/dist/esm-es5/loader.js +1 -1
  562. package/dist/esm-es5/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +0 -0
  563. package/dist/esm-es5/{string-utils-33181845.js → string-utils-f98ee4e8.js} +0 -0
  564. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  565. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  566. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  567. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  568. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  569. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  570. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  571. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  572. package/dist/esm-es5/stzh-components.js +1 -1
  573. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  574. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  575. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  576. package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
  577. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  578. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  579. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  580. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  581. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  582. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  583. package/dist/esm-es5/stzh-header.entry.js +1 -1
  584. package/dist/esm-es5/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +0 -0
  585. package/dist/esm-es5/stzh-input.entry.js +1 -1
  586. package/dist/esm-es5/stzh-link.entry.js +1 -1
  587. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  588. package/dist/esm-es5/stzh-message.entry.js +1 -1
  589. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  590. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  591. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  592. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  593. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  594. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  595. package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -1
  596. package/dist/esm-es5/stzh-servicecard.entry.js +1 -1
  597. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  598. package/dist/esm-es5/stzh-table.entry.js +1 -1
  599. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  600. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  601. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  602. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  603. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  604. package/dist/esm-es5/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +0 -0
  605. package/dist/esm-es5/utils-68a28fce.js +1 -0
  606. package/dist/stzh-components/assets/favicons/browserconfig.xml +9 -9
  607. package/dist/stzh-components/assets/favicons/site.webmanifest +19 -19
  608. package/dist/stzh-components/assets/fonts.css +39 -39
  609. package/dist/stzh-components/assets/i18n/de.json +154 -154
  610. package/dist/stzh-components/assets/i18n/en.json +154 -154
  611. package/dist/stzh-components/assets/icons/mono/alarm-bell.svg +3 -3
  612. package/dist/stzh-components/assets/icons/mono/angle-down.svg +3 -3
  613. package/dist/stzh-components/assets/icons/mono/angle-left.svg +3 -3
  614. package/dist/stzh-components/assets/icons/mono/angle-right.svg +3 -3
  615. package/dist/stzh-components/assets/icons/mono/angle-up.svg +3 -3
  616. package/dist/stzh-components/assets/icons/mono/archive-box.svg +3 -3
  617. package/dist/stzh-components/assets/icons/mono/arrow-down.svg +3 -3
  618. package/dist/stzh-components/assets/icons/mono/arrow-left-circle.svg +4 -4
  619. package/dist/stzh-components/assets/icons/mono/arrow-left.svg +3 -3
  620. package/dist/stzh-components/assets/icons/mono/arrow-right-long.svg +3 -3
  621. package/dist/stzh-components/assets/icons/mono/arrow-right.svg +3 -3
  622. package/dist/stzh-components/assets/icons/mono/arrow-up.svg +3 -3
  623. package/dist/stzh-components/assets/icons/mono/bulleted-list.svg +3 -3
  624. package/dist/stzh-components/assets/icons/mono/calendar.svg +3 -3
  625. package/dist/stzh-components/assets/icons/mono/cart.svg +3 -3
  626. package/dist/stzh-components/assets/icons/mono/checkmark-circle.svg +3 -3
  627. package/dist/stzh-components/assets/icons/mono/checkmark.svg +3 -3
  628. package/dist/stzh-components/assets/icons/mono/clock.svg +3 -3
  629. package/dist/stzh-components/assets/icons/mono/close-circle.svg +3 -3
  630. package/dist/stzh-components/assets/icons/mono/close.svg +3 -3
  631. package/dist/stzh-components/assets/icons/mono/compass-direction.svg +3 -3
  632. package/dist/stzh-components/assets/icons/mono/compass-north.svg +4 -4
  633. package/dist/stzh-components/assets/icons/mono/construction.svg +3 -3
  634. package/dist/stzh-components/assets/icons/mono/copy.svg +3 -3
  635. package/dist/stzh-components/assets/icons/mono/delete.svg +3 -3
  636. package/dist/stzh-components/assets/icons/mono/download.svg +3 -3
  637. package/dist/stzh-components/assets/icons/mono/drag.svg +10 -10
  638. package/dist/stzh-components/assets/icons/mono/edit.svg +3 -3
  639. package/dist/stzh-components/assets/icons/mono/email-check.svg +10 -10
  640. package/dist/stzh-components/assets/icons/mono/expand.svg +3 -3
  641. package/dist/stzh-components/assets/icons/mono/external-link.svg +4 -4
  642. package/dist/stzh-components/assets/icons/mono/facebook-comment.svg +3 -3
  643. package/dist/stzh-components/assets/icons/mono/facebook.svg +10 -10
  644. package/dist/stzh-components/assets/icons/mono/file.svg +3 -3
  645. package/dist/stzh-components/assets/icons/mono/filtering.svg +3 -3
  646. package/dist/stzh-components/assets/icons/mono/flag.svg +10 -10
  647. package/dist/stzh-components/assets/icons/mono/focus.svg +3 -3
  648. package/dist/stzh-components/assets/icons/mono/gear.svg +3 -3
  649. package/dist/stzh-components/assets/icons/mono/heart.svg +10 -10
  650. package/dist/stzh-components/assets/icons/mono/home.svg +10 -10
  651. package/dist/stzh-components/assets/icons/mono/important-warning.svg +3 -3
  652. package/dist/stzh-components/assets/icons/mono/info-help.svg +3 -3
  653. package/dist/stzh-components/assets/icons/mono/instagram.svg +3 -3
  654. package/dist/stzh-components/assets/icons/mono/like-hand.svg +10 -10
  655. package/dist/stzh-components/assets/icons/mono/linkedin.svg +5 -5
  656. package/dist/stzh-components/assets/icons/mono/list-expanded.svg +4 -4
  657. package/dist/stzh-components/assets/icons/mono/list-shrinked.svg +3 -3
  658. package/dist/stzh-components/assets/icons/mono/lock.svg +10 -10
  659. package/dist/stzh-components/assets/icons/mono/mail.svg +10 -10
  660. package/dist/stzh-components/assets/icons/mono/map.svg +3 -3
  661. package/dist/stzh-components/assets/icons/mono/menu.svg +3 -3
  662. package/dist/stzh-components/assets/icons/mono/minus.svg +3 -3
  663. package/dist/stzh-components/assets/icons/mono/more-horizontal.svg +5 -5
  664. package/dist/stzh-components/assets/icons/mono/more-vertical.svg +5 -5
  665. package/dist/stzh-components/assets/icons/mono/paper-clip.svg +10 -10
  666. package/dist/stzh-components/assets/icons/mono/phone.svg +10 -10
  667. package/dist/stzh-components/assets/icons/mono/pin-location.svg +10 -10
  668. package/dist/stzh-components/assets/icons/mono/pin.svg +11 -11
  669. package/dist/stzh-components/assets/icons/mono/play-1.svg +4 -4
  670. package/dist/stzh-components/assets/icons/mono/play-button.svg +11 -11
  671. package/dist/stzh-components/assets/icons/mono/play.svg +10 -10
  672. package/dist/stzh-components/assets/icons/mono/plus.svg +3 -3
  673. package/dist/stzh-components/assets/icons/mono/portfolio-grid.svg +11 -11
  674. package/dist/stzh-components/assets/icons/mono/print.svg +10 -10
  675. package/dist/stzh-components/assets/icons/mono/question-help.svg +3 -3
  676. package/dist/stzh-components/assets/icons/mono/read-mail.svg +10 -10
  677. package/dist/stzh-components/assets/icons/mono/reload.svg +10 -10
  678. package/dist/stzh-components/assets/icons/mono/reset-time.svg +10 -10
  679. package/dist/stzh-components/assets/icons/mono/reset.svg +10 -10
  680. package/dist/stzh-components/assets/icons/mono/resize.svg +8 -8
  681. package/dist/stzh-components/assets/icons/mono/rss.svg +12 -12
  682. package/dist/stzh-components/assets/icons/mono/search.svg +3 -3
  683. package/dist/stzh-components/assets/icons/mono/services.svg +6 -6
  684. package/dist/stzh-components/assets/icons/mono/share.svg +3 -3
  685. package/dist/stzh-components/assets/icons/mono/shrink.svg +3 -3
  686. package/dist/stzh-components/assets/icons/mono/silent-mode.svg +3 -3
  687. package/dist/stzh-components/assets/icons/mono/social-media.svg +23 -23
  688. package/dist/stzh-components/assets/icons/mono/star-filled.svg +3 -3
  689. package/dist/stzh-components/assets/icons/mono/star.svg +3 -3
  690. package/dist/stzh-components/assets/icons/mono/subtitle.svg +3 -3
  691. package/dist/stzh-components/assets/icons/mono/team.svg +10 -10
  692. package/dist/stzh-components/assets/icons/mono/text-message.svg +6 -6
  693. package/dist/stzh-components/assets/icons/mono/thermometer.svg +10 -10
  694. package/dist/stzh-components/assets/icons/mono/transcript.svg +3 -3
  695. package/dist/stzh-components/assets/icons/mono/twitter-reply.svg +3 -3
  696. package/dist/stzh-components/assets/icons/mono/twitter-retweet.svg +3 -3
  697. package/dist/stzh-components/assets/icons/mono/twitter.svg +10 -10
  698. package/dist/stzh-components/assets/icons/mono/unlock.svg +10 -10
  699. package/dist/stzh-components/assets/icons/mono/user.svg +3 -3
  700. package/dist/stzh-components/assets/icons/mono/view-hidden.svg +3 -3
  701. package/dist/stzh-components/assets/icons/mono/view.svg +4 -4
  702. package/dist/stzh-components/assets/icons/mono/volume-medium.svg +3 -3
  703. package/dist/stzh-components/assets/icons/mono/warning-big.svg +4 -4
  704. package/dist/stzh-components/assets/icons/mono/warning.svg +3 -3
  705. package/dist/stzh-components/assets/icons/mono/web-Link.svg +3 -3
  706. package/dist/stzh-components/assets/icons/mono/wifi-signal.svg +3 -3
  707. package/dist/stzh-components/assets/icons/mono/world-globe.svg +10 -10
  708. package/dist/stzh-components/assets/icons/mono/xing.svg +11 -11
  709. package/dist/stzh-components/assets/polyfills/ie11CustomProperties.min.js +8 -8
  710. package/dist/stzh-components/assets/polyfills/intersection-observer.min.js +7 -7
  711. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
  712. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
  713. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
  714. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
  715. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
  716. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
  717. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
  718. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
  719. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
  720. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
  721. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
  722. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
  723. package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
  724. package/dist/stzh-components/{p-59bdb14a.system.entry.js → p-006135ed.system.entry.js} +1 -1
  725. package/dist/stzh-components/p-0230004d.system.js +1 -0
  726. package/dist/stzh-components/{p-f0422b6c.entry.js → p-03e2634c.entry.js} +1 -1
  727. package/dist/stzh-components/{p-25afa99e.entry.js → p-04d7b18f.entry.js} +1 -1
  728. package/dist/stzh-components/{p-73d51acc.system.entry.js → p-07772cd7.system.entry.js} +1 -1
  729. package/dist/stzh-components/p-08d4ed80.entry.js +1 -0
  730. package/dist/stzh-components/{p-3e3e4bfd.system.js → p-11816251.system.js} +0 -0
  731. package/dist/stzh-components/{p-d790a367.entry.js → p-11d0c8f3.entry.js} +1 -1
  732. package/dist/stzh-components/{p-bb900d9f.entry.js → p-14d728f0.entry.js} +1 -1
  733. package/dist/stzh-components/{p-f481f21d.system.js → p-176db2fe.system.js} +0 -0
  734. package/dist/stzh-components/{p-c2218965.system.entry.js → p-1c88ceff.system.entry.js} +1 -1
  735. package/dist/stzh-components/{p-9fe34fe8.system.js → p-1e4b4d71.system.js} +0 -0
  736. package/dist/stzh-components/{p-160c6e5f.system.entry.js → p-1f15a4e0.system.entry.js} +1 -1
  737. package/dist/stzh-components/p-1f57d28e.js +1 -0
  738. package/dist/stzh-components/{p-1a40a6e4.js → p-25a09313.js} +0 -0
  739. package/dist/stzh-components/{p-320aedf7.js → p-2a5855f8.js} +0 -0
  740. package/dist/stzh-components/p-2b11d549.system.entry.js +1 -0
  741. package/dist/stzh-components/{p-99195f5a.system.js → p-309d2b66.system.js} +0 -0
  742. package/dist/stzh-components/{p-bf5b6523.entry.js → p-32988d74.entry.js} +1 -1
  743. package/dist/stzh-components/{p-8ba6ca80.js → p-32b78d65.js} +0 -0
  744. package/dist/stzh-components/{p-1e2ee622.system.entry.js → p-33946fed.system.entry.js} +1 -1
  745. package/dist/stzh-components/{p-b06cc533.entry.js → p-33d75303.entry.js} +1 -1
  746. package/dist/stzh-components/{p-22f948e2.entry.js → p-34190502.entry.js} +1 -1
  747. package/dist/stzh-components/{p-45d4e9b4.system.entry.js → p-346e26f2.system.entry.js} +1 -1
  748. package/dist/stzh-components/{p-b24040ff.system.entry.js → p-370b82e7.system.entry.js} +1 -1
  749. package/dist/stzh-components/{p-740dd50f.entry.js → p-3c799247.entry.js} +1 -1
  750. package/dist/stzh-components/p-3ebd2c03.js +1 -0
  751. package/dist/stzh-components/{p-b3b05b6c.entry.js → p-3ed69b16.entry.js} +1 -1
  752. package/dist/stzh-components/{p-22fba26d.entry.js → p-409c0d50.entry.js} +1 -1
  753. package/dist/stzh-components/{p-3410ef5a.system.entry.js → p-48bbcc26.system.entry.js} +1 -1
  754. package/dist/stzh-components/{p-af47430b.system.entry.js → p-4a398453.system.entry.js} +1 -1
  755. package/dist/stzh-components/p-4c61dcad.js +4 -4
  756. package/dist/stzh-components/{p-a499fa98.system.entry.js → p-4e9bfeb8.system.entry.js} +1 -1
  757. package/dist/stzh-components/{p-4c68fa45.system.js → p-5318ba20.system.js} +0 -0
  758. package/dist/stzh-components/{p-3eb7b6b4.entry.js → p-586cae98.entry.js} +1 -1
  759. package/dist/stzh-components/{p-3afe13ac.system.entry.js → p-58ffc722.system.entry.js} +1 -1
  760. package/dist/stzh-components/p-5e0cccc9.system.entry.js +1 -0
  761. package/dist/stzh-components/{p-3ca5c2e6.system.entry.js → p-5ea652ae.system.entry.js} +1 -1
  762. package/dist/stzh-components/{p-5f20178b.system.js → p-6267a327.system.js} +0 -0
  763. package/dist/stzh-components/{p-ac9e6d17.system.entry.js → p-68a8b7b7.system.entry.js} +1 -1
  764. package/dist/stzh-components/{p-1aaa5112.system.entry.js → p-6c3b2508.system.entry.js} +1 -1
  765. package/dist/stzh-components/{p-4b69a3e8.system.entry.js → p-6edd58a4.system.entry.js} +1 -1
  766. package/dist/stzh-components/{p-c3ac1bdc.system.entry.js → p-6fc271d0.system.entry.js} +1 -1
  767. package/dist/stzh-components/{p-7c6f9cb3.entry.js → p-73194e28.entry.js} +1 -1
  768. package/dist/stzh-components/{p-81d9f3e0.js → p-77a00e55.js} +0 -0
  769. package/dist/stzh-components/p-7921db30.system.entry.js +1 -0
  770. package/dist/stzh-components/p-79bfc485.entry.js +1 -0
  771. package/dist/stzh-components/{p-79770abe.system.entry.js → p-7a6e347d.system.entry.js} +2 -2
  772. package/dist/stzh-components/{p-cd29b7ca.entry.js → p-7bb1bd3b.entry.js} +1 -1
  773. package/dist/stzh-components/{p-649164c7.entry.js → p-7d098987.entry.js} +1 -1
  774. package/dist/stzh-components/{p-b9e4095d.entry.js → p-7d2237ca.entry.js} +1 -1
  775. package/dist/stzh-components/{p-927901f5.system.entry.js → p-7d62dfeb.system.entry.js} +1 -1
  776. package/dist/stzh-components/{p-efb9fa47.system.entry.js → p-87ab53c4.system.entry.js} +1 -1
  777. package/dist/stzh-components/{p-1f3e6fad.system.entry.js → p-88a4f756.system.entry.js} +1 -1
  778. package/dist/stzh-components/{p-b1976630.entry.js → p-8a60addb.entry.js} +1 -1
  779. package/dist/stzh-components/{p-ab2727e6.entry.js → p-8bd3ba06.entry.js} +1 -1
  780. package/dist/stzh-components/{p-a8c3af68.system.entry.js → p-8db4279d.system.entry.js} +1 -1
  781. package/dist/stzh-components/{p-e1b64b8a.system.entry.js → p-90a10825.system.entry.js} +1 -1
  782. package/dist/stzh-components/{p-0c2b5907.js → p-9111e257.js} +0 -0
  783. package/dist/stzh-components/{p-67eac0a0.entry.js → p-95a297aa.entry.js} +1 -1
  784. package/dist/stzh-components/{p-a42a7524.entry.js → p-95eb03b2.entry.js} +1 -1
  785. package/dist/stzh-components/p-983f6070.entry.js +1 -0
  786. package/dist/stzh-components/{p-d2f660e1.system.js → p-9c0494a6.system.js} +0 -0
  787. package/dist/stzh-components/{p-582cf0f1.system.js → p-a408bfba.system.js} +0 -0
  788. package/dist/stzh-components/p-a7253852.entry.js +1 -0
  789. package/dist/stzh-components/{p-c51a61cb.system.entry.js → p-a760352a.system.entry.js} +1 -1
  790. package/dist/stzh-components/{p-e00139a1.entry.js → p-a86c6487.entry.js} +1 -1
  791. package/dist/stzh-components/p-aaa2e48f.system.js +1 -0
  792. package/dist/stzh-components/p-b281b653.entry.js +8 -0
  793. package/dist/stzh-components/p-b35b0270.entry.js +1 -0
  794. package/dist/stzh-components/{p-17258518.entry.js → p-b3b5ee7e.entry.js} +1 -1
  795. package/dist/stzh-components/p-b4fc71ff.system.entry.js +1 -0
  796. package/dist/stzh-components/{p-bb91feeb.entry.js → p-bb2e1dda.entry.js} +1 -1
  797. package/dist/stzh-components/{p-301841e3.entry.js → p-bdba7714.entry.js} +1 -1
  798. package/dist/stzh-components/p-c581e798.system.entry.js +1 -0
  799. package/dist/stzh-components/p-c7c17bb7.system.entry.js +7 -0
  800. package/dist/stzh-components/{p-da8218fa.system.entry.js → p-c863ffd0.system.entry.js} +1 -1
  801. package/dist/stzh-components/{p-649621fc.js → p-c8bcceac.js} +0 -0
  802. package/dist/stzh-components/{p-ffa293cf.entry.js → p-cf162e67.entry.js} +1 -1
  803. package/dist/stzh-components/{p-a7454367.js → p-cf6003d6.js} +0 -0
  804. package/dist/stzh-components/{p-4b8893d1.entry.js → p-d8471675.entry.js} +1 -1
  805. package/dist/stzh-components/{p-0433fff9.system.entry.js → p-da063c7e.system.entry.js} +1 -1
  806. package/dist/stzh-components/{p-0e9e4c68.entry.js → p-debb00e6.entry.js} +1 -1
  807. package/dist/stzh-components/{p-e69a66bb.js → p-df2bb358.js} +0 -0
  808. package/dist/stzh-components/p-e12db90a.entry.js +1 -0
  809. package/dist/stzh-components/{p-a5b616bb.system.entry.js → p-e2ce48f1.system.entry.js} +1 -1
  810. package/dist/stzh-components/{p-08cc711a.system.entry.js → p-e972a44f.system.entry.js} +1 -1
  811. package/dist/stzh-components/{p-6113bb25.entry.js → p-ec3d4dd4.entry.js} +1 -1
  812. package/dist/stzh-components/p-ee5ceac4.entry.js +1 -0
  813. package/dist/stzh-components/{p-648695c2.js → p-ee7a68db.js} +0 -0
  814. package/dist/stzh-components/p-ef5d4167.js +1 -1
  815. package/dist/stzh-components/p-f0ca6848.system.entry.js +1 -0
  816. package/dist/stzh-components/{p-63bf05f1.system.entry.js → p-f1a58a7c.system.entry.js} +1 -1
  817. package/dist/stzh-components/{p-afa7061e.entry.js → p-f2050d1e.entry.js} +1 -1
  818. package/dist/stzh-components/{p-a7785d9b.system.js → p-f58c28ad.system.js} +0 -0
  819. package/dist/stzh-components/{p-75f1b800.entry.js → p-f610f725.entry.js} +1 -1
  820. package/dist/stzh-components/p-faf20030.system.js +1 -0
  821. package/dist/stzh-components/{p-4e9e606f.entry.js → p-fba76dba.entry.js} +1 -1
  822. package/dist/stzh-components/{p-ab864a8a.system.entry.js → p-fc9c4fc3.system.entry.js} +1 -1
  823. package/dist/stzh-components/{p-6d23fb4d.system.entry.js → p-fce0e218.system.entry.js} +1 -1
  824. package/dist/stzh-components/{p-efd78d08.system.entry.js → p-fd16e20e.system.entry.js} +1 -1
  825. package/dist/stzh-components/stzh-components.css +1 -1
  826. package/dist/stzh-components/stzh-components.esm.js +1 -1
  827. package/dist/stzh-components/stzh-components.js +1 -1
  828. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +11 -11
  829. package/dist/types/components/stzh-badge/stzh-badge.d.ts +8 -8
  830. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +14 -14
  831. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +21 -21
  832. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +7 -7
  833. package/dist/types/components/stzh-cell/stzh-cell.d.ts +21 -21
  834. package/dist/types/components/stzh-container/stzh-container.d.ts +6 -6
  835. package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +6 -6
  836. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +4 -4
  837. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +4 -4
  838. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +5 -5
  839. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +4 -4
  840. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +7 -7
  841. package/dist/types/components/stzh-fieldset/stzh-fieldset.d.ts +15 -15
  842. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +9 -9
  843. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +5 -5
  844. package/dist/types/components/stzh-heading/stzh-heading.d.ts +13 -13
  845. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +25 -25
  846. package/dist/types/components/stzh-icon/stzh-icon.d.ts +15 -15
  847. package/dist/types/components/stzh-icon-sprite/stzh-icon-sprite.d.ts +3 -3
  848. package/dist/types/components/stzh-input/stzh-input-description.d.ts +11 -11
  849. package/dist/types/components/stzh-menu/stzh-menu.d.ts +6 -6
  850. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +4 -4
  851. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +4 -4
  852. package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +8 -8
  853. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +22 -22
  854. package/dist/types/components/stzh-row/stzh-row.d.ts +23 -23
  855. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +7 -7
  856. package/dist/types/components/stzh-section/stzh-section.d.ts +8 -8
  857. package/dist/types/components/stzh-servicecard/stzh-servicecard.localization.d.ts +8 -8
  858. package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.localization.d.ts +5 -5
  859. package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +16 -16
  860. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +8 -8
  861. package/dist/types/components/stzh-text/stzh-text.d.ts +23 -23
  862. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +4 -4
  863. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +16 -16
  864. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +4 -4
  865. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +15 -15
  866. package/dist/types/components/stzh-visuallyhidden/stzh-visuallyhidden.d.ts +6 -6
  867. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +25 -25
  868. package/dist/types/components.d.ts +68 -2
  869. package/dist/types/index.d.ts +428 -427
  870. package/dist/types/utils/animation-utils.d.ts +10 -10
  871. package/dist/types/utils/date-adapter.d.ts +8 -8
  872. package/dist/types/utils/date-utils.d.ts +61 -61
  873. package/dist/types/utils/event-utils.d.ts +1 -1
  874. package/dist/types/utils/h.d.ts +18 -18
  875. package/dist/types/utils/media-utils.d.ts +3 -3
  876. package/dist/types/utils/string-utils.d.ts +2 -2
  877. package/dist/types/utils/test-utils.d.ts +9 -9
  878. package/dist/types/utils/translation-utils.d.ts +40 -40
  879. package/dist/types/utils/utils.d.ts +5 -3
  880. package/dist/vscode-data.json +84 -61
  881. package/package.json +1 -1
  882. package/dist/cjs/utils-e84f4a8d.js +0 -36
  883. package/dist/esm/utils-c5d68020.js +0 -33
  884. package/dist/esm-es5/app-globals-137e106c.js +0 -1
  885. package/dist/esm-es5/utils-c5d68020.js +0 -1
  886. package/dist/stzh-components/p-323fdc2f.entry.js +0 -1
  887. package/dist/stzh-components/p-3da37219.entry.js +0 -8
  888. package/dist/stzh-components/p-42430cdf.js +0 -1
  889. package/dist/stzh-components/p-4476344d.js +0 -1
  890. package/dist/stzh-components/p-58b8d309.system.entry.js +0 -1
  891. package/dist/stzh-components/p-5977373f.system.js +0 -1
  892. package/dist/stzh-components/p-87140179.system.entry.js +0 -1
  893. package/dist/stzh-components/p-91e9ccfa.entry.js +0 -1
  894. package/dist/stzh-components/p-95a3c962.system.entry.js +0 -1
  895. package/dist/stzh-components/p-9be4e960.entry.js +0 -1
  896. package/dist/stzh-components/p-adaf8b15.entry.js +0 -1
  897. package/dist/stzh-components/p-af819e4e.system.js +0 -1
  898. package/dist/stzh-components/p-b56c83a4.entry.js +0 -1
  899. package/dist/stzh-components/p-d1821750.system.entry.js +0 -1
  900. package/dist/stzh-components/p-d7b5770c.entry.js +0 -1
  901. package/dist/stzh-components/p-d8819b74.system.entry.js +0 -1
  902. package/dist/stzh-components/p-e029f6c5.system.entry.js +0 -1
  903. package/dist/stzh-components/p-e3769e97.system.js +0 -1
  904. package/dist/stzh-components/p-ebf73698.entry.js +0 -1
  905. package/dist/stzh-components/p-f8bb1bed.system.entry.js +0 -7
  906. package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +0 -15
  907. package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -44
  908. package/dist/types/components/stzh-actions/stzh-actions.d.ts +0 -16
  909. package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +0 -17
  910. package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +0 -73
  911. package/dist/types/components/stzh-button/stzh-button.d.ts +0 -59
  912. package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +0 -76
  913. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +0 -55
  914. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +0 -62
  915. package/dist/types/components/stzh-chip/stzh-chip.d.ts +0 -47
  916. package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +0 -23
  917. package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +0 -6
  918. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +0 -44
  919. package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +0 -49
  920. package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +0 -93
  921. package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +0 -59
  922. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +0 -150
  923. package/dist/types/components/stzh-figure/stzh-figure.d.ts +0 -13
  924. package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +0 -39
  925. package/dist/types/components/stzh-footer/stzh-footer.d.ts +0 -21
  926. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +0 -49
  927. package/dist/types/components/stzh-header/stzh-header.d.ts +0 -57
  928. package/dist/types/components/stzh-hr/stzh-hr.d.ts +0 -7
  929. package/dist/types/components/stzh-input/stzh-input.d.ts +0 -95
  930. package/dist/types/components/stzh-link/stzh-link.d.ts +0 -50
  931. package/dist/types/components/stzh-list/stzh-list.d.ts +0 -9
  932. package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +0 -7
  933. package/dist/types/components/stzh-loader/stzh-loader.d.ts +0 -13
  934. package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +0 -12
  935. package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +0 -35
  936. package/dist/types/components/stzh-message/stzh-message.d.ts +0 -36
  937. package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +0 -11
  938. package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +0 -34
  939. package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +0 -11
  940. package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +0 -11
  941. package/dist/types/components/stzh-popover/stzh-popover.d.ts +0 -73
  942. package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +0 -42
  943. package/dist/types/components/stzh-radio/stzh-radio.d.ts +0 -55
  944. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +0 -64
  945. package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +0 -18
  946. package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +0 -14
  947. package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +0 -28
  948. package/dist/types/components/stzh-servicecard/stzh-servicecard.d.ts +0 -72
  949. package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.d.ts +0 -23
  950. package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +0 -52
  951. package/dist/types/components/stzh-status/stzh-status.d.ts +0 -14
  952. package/dist/types/components/stzh-table/stzh-table.d.ts +0 -33
  953. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +0 -57
  954. package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +0 -78
  955. package/dist/types/components/stzh-upload/stzh-upload.d.ts +0 -207
  956. package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +0 -27
  957. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +0 -34
  958. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +0 -54
  959. package/dist/types/types/svg.d.ts +0 -4
@@ -1,1358 +1,1391 @@
1
- import { Host, h } from "@stencil/core";
2
- import { hasSlot } from "../../utils/utils";
3
- import { fetchTranslations } from "../../utils/translation-utils";
4
- import { StzhInputDescription } from "../stzh-input/stzh-input-description";
5
- import Dropzone from "dropzone";
6
- Dropzone.autoDiscover = false;
7
- const ATTR_NAME = "data-dz-name";
8
- const ATTR_TYPE = "data-dz-type";
9
- const ATTR_EXTENSION = "data-dz-extension";
10
- const ATTR_PROGRESS_TEXT = "data-dz-progress-text";
11
- let uploadCounter = 0;
12
- // Most properties taken over from:
13
- // https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js
14
- // Possible events to listen to:
15
- // https://github.com/dropzone/dropzone/blob/v5.9.3/src/dropzone.js#L17
16
- /**
17
- * @slot error - Slot for error
18
- */
19
- export class StzhUpload {
20
- constructor() {
21
- /* Initially pre existing files (e.g. already uploaded by the user) */
22
- this.existingFiles = [];
23
- this._existingFiles = [];
24
- /** Label */
25
- this.label = "";
26
- /** Description */
27
- this.description = "";
28
- /** Button text */
29
- this.button = "";
30
- /**
31
- * URL the files are processed to.
32
- *
33
- * You can also provide a function that will be called with `files` and
34
- * `dataBlocks` and must return the url as string.
35
- */
36
- this.url = "";
37
- /**
38
- * Can be changed to `"put"` if necessary. You can also provide a function
39
- * that will be called with `files` and must return the method.
40
- */
41
- this.method = "post";
42
- /**
43
- * Will be set on the XHRequest.
44
- */
45
- this.withCredentials = false;
46
- /**
47
- * Whether the upload is disabled or not.
48
- */
49
- this.disabled = false;
50
- /**
51
- * Whether the upload is marked as invalid.
52
- */
53
- this.invalid = false;
54
- /**
55
- * The default implementation of `accept` checks the file's mime type or
56
- * extension against this list. This is a comma separated list of mime
57
- * types or file extensions.
58
- *
59
- * Eg.: `image/*,application/pdf,.psd`
60
- *
61
- * This option will also be used as
62
- * [`accept`](https://developer.mozilla.org/en-US/docs/HTML/Element/input#attr-accept)
63
- * parameter on the hidden file input as well.
64
- */
65
- this.acceptedFiles = null;
66
- /**
67
- * If false, files will be added to the queue but the queue will not be
68
- * processed automatically.
69
- * This can be useful if you need some additional user input before sending
70
- * files (or if you want want all files sent at once).
71
- * If you're ready to send the file simply call `element.processQueue()`.
72
- */
73
- this.autoProcessQueue = true;
74
- /**
75
- * If not `null` defines how many files this dropzone handles. If it exceeds,
76
- * the event `stzhMaxfilesexceeded` will be called.
77
- */
78
- this.maxFiles = null;
79
- /**
80
- * The maximum filesize (in MiB) that is allowed to be uploaded.
81
- */
82
- this.maxFilesize = 25;
83
- /**
84
- * How many file uploads to process in parallel.
85
- */
86
- this.parallelUploads = 2;
87
- /**
88
- * Whether to send multiple files in one request. If
89
- * this it set to true, then the fallback file input element will
90
- * have the `multiple` attribute as well. This option will
91
- * also trigger additional events (like `stzhSuccessMultiple`). See the events
92
- * documentation section for more information.
93
- */
94
- this.uploadMultiple = false;
95
- /**
96
- * Whether you want files to be uploaded in chunks to your server. This can't be
97
- * used in combination with `uploadMultiple`.
98
- *
99
- * See `chunksUploaded` prop for the callback to finalise an upload.
100
- */
101
- this.chunking = false;
102
- /**
103
- * If `chunking` is enabled, this defines whether **every** file should be chunked,
104
- * even if the file size is below chunkSize. This means, that the additional chunk
105
- * form data will be submitted and the `chunksUploaded` callback will be invoked.
106
- */
107
- this.forceChunking = false;
108
- /**
109
- * If `chunking` is `true`, then this defines the chunk size in bytes.
110
- */
111
- this.chunkSize = 2 * 1024 * 1024;
112
- /**
113
- * If `true`, the individual chunks of a file are being uploaded simultaneously.
114
- */
115
- this.parallelChunkUploads = false;
116
- /**
117
- * Whether a chunk should be retried if it fails.
118
- */
119
- this.retryChunks = false;
120
- /**
121
- * If `retryChunks` is true, how many times should it be retried.
122
- */
123
- this.retryChunksLimit = 3;
124
- /**
125
- * The base that is used to calculate the **displayed** filesize. You can
126
- * change this to 1024 if you would rather display kibibytes, mebibytes,
127
- * etc... 1024 is technically incorrect, because `1024 bytes` are `1 kibibyte`
128
- * not `1 kilobyte`. You can change this to `1024` if you don't care about
129
- * validity.
130
- */
131
- this.filesizeBase = 1000;
132
- /**
133
- * An optional object to send additional headers to the server. Eg:
134
- * `{ "My-Awesome-Header": "header value" }`
135
- */
136
- this.headers = null;
137
- /**
138
- * Should the default headers be set or not?
139
- * Accept: application/json <- for requesting json response
140
- * Cache-Control: no-cache <- Request shouldnt be cached
141
- * X-Requested-With: XMLHttpRequest <- We sent the request via XMLHttpRequest
142
- */
143
- this.defaultHeaders = true;
144
- /**
145
- * A function that gets a [file](https://developer.mozilla.org/en-US/docs/DOM/File)
146
- * and a `done` function as parameters.
147
- *
148
- * If the done function is invoked without arguments, the file is "accepted" and will
149
- * be processed. If you pass an error message, the file is rejected, and the error
150
- * message will be displayed.
151
- * This function will not be called if the file is too big or doesn't match the mime types.
152
- */
153
- this.accept = function (_file, done) {
154
- return done();
155
- };
156
- /**
157
- * The callback that will be invoked when all chunks have been uploaded for a file.
158
- * It gets the file for which the chunks have been uploaded as the first parameter,
159
- * and the `done` function as second. `done()` needs to be invoked when everything
160
- * needed to finish the upload process is done.
161
- */
162
- this.chunksUploaded = function (_file, done) {
163
- done();
164
- };
165
- /**
166
- * This is the element the hidden input field (which is used when clicking on the
167
- * dropzone to trigger file selection) will be appended to. This might
168
- * be important in case you use frameworks to switch the content of your page.
169
- *
170
- * Can be a selector string, or an element directly.
171
- */
172
- this.hiddenInputContainer = "body";
173
- }
174
- existingFilesWatcher(newValue) {
175
- if (typeof newValue === "string") {
176
- this._existingFiles = JSON.parse(newValue);
177
- }
178
- else {
179
- this._existingFiles = newValue;
180
- }
181
- }
182
- disabledWatcher() {
183
- if (this.disabled) {
184
- this.dropzone.disable();
185
- }
186
- else {
187
- this.dropzone.enable();
188
- }
189
- }
190
- errorWatcher(newValue) {
191
- if (typeof newValue === "string") {
192
- try {
193
- this._error = JSON.parse(newValue);
194
- }
195
- catch (e) {
196
- if (newValue) {
197
- this._error = [newValue];
198
- }
199
- else {
200
- this._error = [];
201
- }
202
- }
203
- }
204
- else if (newValue) {
205
- this._error = newValue;
206
- }
207
- else {
208
- this._error = [];
209
- }
210
- this.invalid = this._error.length > 0;
211
- }
212
- async processQueue() {
213
- return this.dropzone.processQueue();
214
- }
215
- async componentWillLoad() {
216
- this.uploadId = `stzh-upload-${uploadCounter++}`;
217
- this.existingFilesWatcher(this.existingFiles);
218
- this.errorWatcher(this.error);
219
- if (!this.localization) {
220
- this.localization = await fetchTranslations(this.element, 'upload');
221
- }
222
- }
223
- componentDidRender() {
224
- if (this.dropzone) {
225
- return;
226
- }
227
- this.dropzone = new Dropzone(this.dropzoneElement, {
228
- url: this.url,
229
- method: this.method,
230
- withCredentials: this.withCredentials,
231
- clickable: [this.clickareaElement],
232
- acceptedFiles: this.acceptedFiles,
233
- accept: this.accept,
234
- maxFiles: this.maxFiles,
235
- maxFilesize: this.maxFilesize,
236
- filesizeBase: this.filesizeBase,
237
- parallelUploads: this.parallelUploads,
238
- uploadMultiple: this.uploadMultiple,
239
- autoProcessQueue: this.autoProcessQueue,
240
- headers: this.headers,
241
- defaultHeaders: this.defaultHeaders,
242
- chunking: this.chunking,
243
- chunkSize: this.chunkSize,
244
- chunksUploaded: this.chunksUploaded,
245
- forceChunking: this.forceChunking,
246
- parallelChunkUploads: this.parallelChunkUploads,
247
- retryChunks: this.retryChunks,
248
- retryChunksLimit: this.retryChunksLimit,
249
- createImageThumbnails: false,
250
- hiddenInputContainer: this.hiddenInputContainer,
251
- dictFileSizeUnits: { tb: "TB", gb: "GB", mb: "MB", kb: "KB", b: "b" },
252
- dictRemoveFileConfirmation: null,
253
- dictMaxFilesExceeded: this.localization.maxFilesExceeded,
254
- dictRemoveFile: this.localization.removeFile,
255
- dictCancelUploadConfirmation: this.localization.cancelUploadConfirmation,
256
- dictUploadCanceled: this.localization.uploadCanceled,
257
- dictCancelUpload: this.localization.cancelUpload,
258
- dictResponseError: this.localization.responseError,
259
- dictInvalidFileType: this.localization.invalidFileType,
260
- dictFileTooBig: this.localization.fileTooBig,
261
- error: (file, message, xhr) => {
262
- if (file.previewElement) {
263
- file.previewElement.classList.add("dz-error");
264
- if (typeof message !== "string" && message.error) {
265
- message = message.error;
266
- }
267
- else if (xhr) {
268
- if (xhr.status === 401 || xhr.status === 403) {
269
- message = this.localization.accessError;
270
- }
271
- else if (xhr.status === 413) {
272
- message = this.localization.fileTooBigServer;
273
- }
274
- else if (xhr.status === 415) {
275
- message = this.localization.invalidFileType;
276
- }
277
- else if (xhr.status >= 500) {
278
- message = this.localization.serverError;
279
- }
280
- else {
281
- const defaultError = this.localization.responseError
282
- .replace("{{statusCode}}", xhr.status);
283
- message = defaultError;
284
- }
285
- }
286
- for (let node of file.previewElement.querySelectorAll("[data-dz-errormessage]")) {
287
- node.textContent = message;
288
- }
289
- }
290
- },
291
- previewTemplate: `
292
- <div class="stzh-upload__preview">
293
- <div class="stzh-upload__inner">
294
- <div class="stzh-upload__image">
295
- <img data-dz-thumbnail />
296
- </div>
297
-
298
- <div class="stzh-upload__details">
299
- <div class="stzh-upload__info-wrapper-processing">
300
- <div class="stzh-upload__infos">
301
- <div class="stzh-upload__subtitle">
302
- <span data-dz-name></span>
303
- </div>
304
- <div class="stzh-upload__progress-text">
305
- <span data-dz-progress-text></span>
306
- </div>
307
- </div>
308
- <div class="stzh-upload__progress">
309
- <span class="stzh-upload__progress-bar" data-dz-uploadprogress></span>
310
- </div>
311
- </div>
312
- <div class="stzh-upload__info-wrapper-complete">
313
- <div class="stzh-upload__title">
314
- <span data-dz-name></span>
315
- </div>
316
- <div class="stzh-upload__meta">
317
- <span class="stzh-upload__extension" data-dz-extension></span>
318
- |
319
- <span class="stzh-upload__size" data-dz-size></span>
320
- </div>
321
- <div class="stzh-upload__error-message">
322
- <span data-dz-errormessage></span>
323
- </div>
324
- </div>
325
- <div class="stzh-upload__actions">
326
- <button class="stzh-upload__delete" data-dz-remove title="${this.localization.cancelUpload}">
327
- <stzh-icon class="stzh-upload__delete-icon" name="delete"></stzh-icon>
328
- <stzh-icon class="stzh-upload__delete-icon-error" name="close"></stzh-icon>
329
- </button>
330
- </div>
331
- </div>
332
- </div>
333
- </div>
334
- `
335
- });
336
- this.disabledWatcher();
337
- this.dropzone.on("addedfile", (file) => this.stzhFileAdded.emit({
338
- component: "stzh-upload", file
339
- }));
340
- this.dropzone.on("addedfiles", (files) => this.stzhFilesAdded.emit({
341
- component: "stzh-upload", files
342
- }));
343
- this.dropzone.on("removedfile", (file) => this.stzhFileRemoved.emit({
344
- component: "stzh-upload", file
345
- }));
346
- this.dropzone.on("sending", (file, xhr, formData) => this.stzhSending.emit({
347
- component: "stzh-upload", file, xhr, formData
348
- }));
349
- this.dropzone.on("sendingmultiple", (files, xhr, formData) => this.stzhSendingMultiple.emit({
350
- component: "stzh-upload", files, xhr, formData
351
- }));
352
- this.dropzone.on("processing", (file) => this.stzhProcessing.emit({
353
- component: "stzh-upload", file
354
- }));
355
- this.dropzone.on("processingmultiple", (files) => this.stzhProcessingMultiple.emit({
356
- component: "stzh-upload", files
357
- }));
358
- this.dropzone.on("uploadprogress", (file, progress, bytesSent) => this.stzhProgress.emit({
359
- component: "stzh-upload", file, progress, bytesSent
360
- }));
361
- this.dropzone.on("totaluploadprogress", (totalUploadProgress, totalBytes, totalBytesSent) => this.stzhProgressTotal.emit({
362
- component: "stzh-upload", totalUploadProgress, totalBytes, totalBytesSent
363
- }));
364
- this.dropzone.on("error", (file, message, xhr) => this.stzhError.emit({
365
- component: "stzh-upload", file, message, xhr
366
- }));
367
- this.dropzone.on("errormultiple", (files, message, xhr) => this.stzhErrorMultiple.emit({
368
- component: "stzh-upload", files, message, xhr
369
- }));
370
- this.dropzone.on("success", (file, responseText, event) => this.stzhSuccess.emit({
371
- component: "stzh-upload", file, responseText, event
372
- }));
373
- this.dropzone.on("successmultiple", (files, responseText, event) => this.stzhSuccessMultiple.emit({
374
- component: "stzh-upload", files, responseText, event
375
- }));
376
- this.dropzone.on("canceled", (file) => this.stzhCanceled.emit({
377
- component: "stzh-upload", file
378
- }));
379
- this.dropzone.on("canceledmultiple", (files) => this.stzhCanceledMultiple.emit({
380
- component: "stzh-upload", files
381
- }));
382
- this.dropzone.on("complete", (file) => this.stzhComplete.emit({
383
- component: "stzh-upload", file
384
- }));
385
- this.dropzone.on("completemultiple", (files) => this.stzhCompleteMultiple.emit({
386
- component: "stzh-upload", files
387
- }));
388
- this.dropzone.on("addedfile", (file) => {
389
- file.previewElement.querySelectorAll(`[${ATTR_NAME}]`).forEach((name) => {
390
- name.setAttribute("title", file.name);
391
- });
392
- file.previewElement.querySelectorAll(`[${ATTR_TYPE}]`).forEach((type) => {
393
- type.innerText = file.type;
394
- });
395
- file.previewElement.querySelectorAll(`[${ATTR_EXTENSION}]`).forEach((extension) => {
396
- extension.innerText = file.name.split(".").pop();
397
- });
398
- });
399
- this.dropzone.on("uploadprogress", (file, progress) => {
400
- file.previewElement.querySelectorAll(`[${ATTR_PROGRESS_TEXT}]`).forEach((progressText) => {
401
- progressText.innerText = `${progress.toString()}%`;
402
- });
403
- });
404
- this._existingFiles.forEach((file) => {
405
- this.dropzone.displayExistingFile(file, null, null, null, null);
406
- });
407
- }
408
- disconnectedCallback() {
409
- if (this.dropzone) {
410
- this.dropzone.destroy();
411
- this.dropzone = null;
412
- }
413
- }
414
- render() {
415
- const errorUsed = hasSlot(this.element, 'error') || !!this.error;
416
- const classes = {
417
- "stzh-upload": true,
418
- "stzh-upload--is-invalid": this.invalid,
419
- "stzh-upload--is-disabled": this.disabled,
420
- "stzh-upload--has-error": errorUsed,
421
- "stzh-upload--has-instructions": !!this.description || !!this.localization.description
422
- };
423
- return (h(Host, null, h("div", { class: classes, ref: (el) => (this.dropzoneElement = el) }, this.label && h("div", { class: "stzh-upload__label" }, this.label), h("div", { class: "stzh-upload__clickarea", ref: (el) => (this.clickareaElement = el) }, h("div", { class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, this.description ? this.description : this.localization.description), h("stzh-button", { size: "small", class: "stzh-upload__button", "aria-describedby": `${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled }, this.button ? this.button : this.localization.button)), h(StzhInputDescription, { classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }))));
424
- }
425
- static get is() { return "stzh-upload"; }
426
- static get originalStyleUrls() {
427
- return {
428
- "$": ["stzh-upload.scss"]
429
- };
430
- }
431
- static get styleUrls() {
432
- return {
433
- "$": ["stzh-upload.css"]
434
- };
435
- }
436
- static get properties() {
437
- return {
438
- "existingFiles": {
439
- "type": "string",
440
- "mutable": false,
441
- "complexType": {
442
- "original": "StzhUploadFilesItem[] | string",
443
- "resolved": "StzhUploadFilesItem[] | string",
444
- "references": {
445
- "StzhUploadFilesItem": {
446
- "location": "import",
447
- "path": "../../index"
448
- }
449
- }
450
- },
451
- "required": false,
452
- "optional": false,
453
- "docs": {
454
- "tags": [],
455
- "text": ""
456
- },
457
- "attribute": "existing-files",
458
- "reflect": false,
459
- "defaultValue": "[]"
460
- },
461
- "label": {
462
- "type": "string",
463
- "mutable": false,
464
- "complexType": {
465
- "original": "string",
466
- "resolved": "string",
467
- "references": {}
468
- },
469
- "required": false,
470
- "optional": false,
471
- "docs": {
472
- "tags": [],
473
- "text": "Label"
474
- },
475
- "attribute": "label",
476
- "reflect": false,
477
- "defaultValue": "\"\""
478
- },
479
- "description": {
480
- "type": "string",
481
- "mutable": false,
482
- "complexType": {
483
- "original": "string",
484
- "resolved": "string",
485
- "references": {}
486
- },
487
- "required": false,
488
- "optional": false,
489
- "docs": {
490
- "tags": [],
491
- "text": "Description"
492
- },
493
- "attribute": "description",
494
- "reflect": false,
495
- "defaultValue": "\"\""
496
- },
497
- "button": {
498
- "type": "string",
499
- "mutable": false,
500
- "complexType": {
501
- "original": "string",
502
- "resolved": "string",
503
- "references": {}
504
- },
505
- "required": false,
506
- "optional": false,
507
- "docs": {
508
- "tags": [],
509
- "text": "Button text"
510
- },
511
- "attribute": "button",
512
- "reflect": false,
513
- "defaultValue": "\"\""
514
- },
515
- "url": {
516
- "type": "string",
517
- "mutable": false,
518
- "complexType": {
519
- "original": "string | Function",
520
- "resolved": "Function | string",
521
- "references": {
522
- "Function": {
523
- "location": "global"
524
- }
525
- }
526
- },
527
- "required": false,
528
- "optional": false,
529
- "docs": {
530
- "tags": [],
531
- "text": "URL the files are processed to.\r\n\r\nYou can also provide a function that will be called with `files` and\r\n`dataBlocks` and must return the url as string."
532
- },
533
- "attribute": "url",
534
- "reflect": false,
535
- "defaultValue": "\"\""
536
- },
537
- "method": {
538
- "type": "string",
539
- "mutable": false,
540
- "complexType": {
541
- "original": "\"post\" | \"put\" | Function",
542
- "resolved": "\"post\" | \"put\" | Function",
543
- "references": {
544
- "Function": {
545
- "location": "global"
546
- }
547
- }
548
- },
549
- "required": false,
550
- "optional": false,
551
- "docs": {
552
- "tags": [],
553
- "text": "Can be changed to `\"put\"` if necessary. You can also provide a function\r\nthat will be called with `files` and must return the method."
554
- },
555
- "attribute": "method",
556
- "reflect": false,
557
- "defaultValue": "\"post\""
558
- },
559
- "withCredentials": {
560
- "type": "boolean",
561
- "mutable": false,
562
- "complexType": {
563
- "original": "boolean",
564
- "resolved": "boolean",
565
- "references": {}
566
- },
567
- "required": false,
568
- "optional": false,
569
- "docs": {
570
- "tags": [],
571
- "text": "Will be set on the XHRequest."
572
- },
573
- "attribute": "with-credentials",
574
- "reflect": false,
575
- "defaultValue": "false"
576
- },
577
- "disabled": {
578
- "type": "boolean",
579
- "mutable": false,
580
- "complexType": {
581
- "original": "boolean",
582
- "resolved": "boolean",
583
- "references": {}
584
- },
585
- "required": false,
586
- "optional": false,
587
- "docs": {
588
- "tags": [],
589
- "text": "Whether the upload is disabled or not."
590
- },
591
- "attribute": "disabled",
592
- "reflect": true,
593
- "defaultValue": "false"
594
- },
595
- "invalid": {
596
- "type": "boolean",
597
- "mutable": false,
598
- "complexType": {
599
- "original": "boolean",
600
- "resolved": "boolean",
601
- "references": {}
602
- },
603
- "required": false,
604
- "optional": false,
605
- "docs": {
606
- "tags": [],
607
- "text": "Whether the upload is marked as invalid."
608
- },
609
- "attribute": "invalid",
610
- "reflect": true,
611
- "defaultValue": "false"
612
- },
613
- "error": {
614
- "type": "string",
615
- "mutable": false,
616
- "complexType": {
617
- "original": "string | string[]",
618
- "resolved": "string | string[]",
619
- "references": {}
620
- },
621
- "required": false,
622
- "optional": false,
623
- "docs": {
624
- "tags": [],
625
- "text": "One or multiple error message (use error slot as alternative)"
626
- },
627
- "attribute": "error",
628
- "reflect": false
629
- },
630
- "acceptedFiles": {
631
- "type": "string",
632
- "mutable": false,
633
- "complexType": {
634
- "original": "string | null",
635
- "resolved": "string",
636
- "references": {}
637
- },
638
- "required": false,
639
- "optional": false,
640
- "docs": {
641
- "tags": [],
642
- "text": "The default implementation of `accept` checks the file's mime type or\r\nextension against this list. This is a comma separated list of mime\r\ntypes or file extensions.\r\n\r\nEg.: `image/*,application/pdf,.psd`\r\n\r\nThis option will also be used as\r\n[`accept`](https://developer.mozilla.org/en-US/docs/HTML/Element/input#attr-accept)\r\nparameter on the hidden file input as well."
643
- },
644
- "attribute": "accepted-files",
645
- "reflect": false,
646
- "defaultValue": "null"
647
- },
648
- "autoProcessQueue": {
649
- "type": "boolean",
650
- "mutable": false,
651
- "complexType": {
652
- "original": "boolean",
653
- "resolved": "boolean",
654
- "references": {}
655
- },
656
- "required": false,
657
- "optional": false,
658
- "docs": {
659
- "tags": [],
660
- "text": "If false, files will be added to the queue but the queue will not be\r\nprocessed automatically.\r\nThis can be useful if you need some additional user input before sending\r\nfiles (or if you want want all files sent at once).\r\nIf you're ready to send the file simply call `element.processQueue()`."
661
- },
662
- "attribute": "auto-process-queue",
663
- "reflect": false,
664
- "defaultValue": "true"
665
- },
666
- "maxFiles": {
667
- "type": "number",
668
- "mutable": false,
669
- "complexType": {
670
- "original": "number | null",
671
- "resolved": "number",
672
- "references": {}
673
- },
674
- "required": false,
675
- "optional": false,
676
- "docs": {
677
- "tags": [],
678
- "text": "If not `null` defines how many files this dropzone handles. If it exceeds,\r\nthe event `stzhMaxfilesexceeded` will be called."
679
- },
680
- "attribute": "max-files",
681
- "reflect": false,
682
- "defaultValue": "null"
683
- },
684
- "maxFilesize": {
685
- "type": "number",
686
- "mutable": false,
687
- "complexType": {
688
- "original": "number",
689
- "resolved": "number",
690
- "references": {}
691
- },
692
- "required": false,
693
- "optional": false,
694
- "docs": {
695
- "tags": [],
696
- "text": "The maximum filesize (in MiB) that is allowed to be uploaded."
697
- },
698
- "attribute": "max-filesize",
699
- "reflect": false,
700
- "defaultValue": "25"
701
- },
702
- "parallelUploads": {
703
- "type": "number",
704
- "mutable": false,
705
- "complexType": {
706
- "original": "number",
707
- "resolved": "number",
708
- "references": {}
709
- },
710
- "required": false,
711
- "optional": false,
712
- "docs": {
713
- "tags": [],
714
- "text": "How many file uploads to process in parallel."
715
- },
716
- "attribute": "parallel-uploads",
717
- "reflect": false,
718
- "defaultValue": "2"
719
- },
720
- "uploadMultiple": {
721
- "type": "boolean",
722
- "mutable": false,
723
- "complexType": {
724
- "original": "boolean",
725
- "resolved": "boolean",
726
- "references": {}
727
- },
728
- "required": false,
729
- "optional": false,
730
- "docs": {
731
- "tags": [],
732
- "text": "Whether to send multiple files in one request. If\r\nthis it set to true, then the fallback file input element will\r\nhave the `multiple` attribute as well. This option will\r\nalso trigger additional events (like `stzhSuccessMultiple`). See the events\r\ndocumentation section for more information."
733
- },
734
- "attribute": "upload-multiple",
735
- "reflect": false,
736
- "defaultValue": "false"
737
- },
738
- "chunking": {
739
- "type": "boolean",
740
- "mutable": false,
741
- "complexType": {
742
- "original": "boolean",
743
- "resolved": "boolean",
744
- "references": {}
745
- },
746
- "required": false,
747
- "optional": false,
748
- "docs": {
749
- "tags": [],
750
- "text": "Whether you want files to be uploaded in chunks to your server. This can't be\r\nused in combination with `uploadMultiple`.\r\n\r\nSee `chunksUploaded` prop for the callback to finalise an upload."
751
- },
752
- "attribute": "chunking",
753
- "reflect": false,
754
- "defaultValue": "false"
755
- },
756
- "forceChunking": {
757
- "type": "boolean",
758
- "mutable": false,
759
- "complexType": {
760
- "original": "boolean",
761
- "resolved": "boolean",
762
- "references": {}
763
- },
764
- "required": false,
765
- "optional": false,
766
- "docs": {
767
- "tags": [],
768
- "text": "If `chunking` is enabled, this defines whether **every** file should be chunked,\r\neven if the file size is below chunkSize. This means, that the additional chunk\r\nform data will be submitted and the `chunksUploaded` callback will be invoked."
769
- },
770
- "attribute": "force-chunking",
771
- "reflect": false,
772
- "defaultValue": "false"
773
- },
774
- "chunkSize": {
775
- "type": "number",
776
- "mutable": false,
777
- "complexType": {
778
- "original": "number",
779
- "resolved": "number",
780
- "references": {}
781
- },
782
- "required": false,
783
- "optional": false,
784
- "docs": {
785
- "tags": [],
786
- "text": "If `chunking` is `true`, then this defines the chunk size in bytes."
787
- },
788
- "attribute": "chunk-size",
789
- "reflect": false,
790
- "defaultValue": "2 * 1024 * 1024"
791
- },
792
- "parallelChunkUploads": {
793
- "type": "boolean",
794
- "mutable": false,
795
- "complexType": {
796
- "original": "boolean",
797
- "resolved": "boolean",
798
- "references": {}
799
- },
800
- "required": false,
801
- "optional": false,
802
- "docs": {
803
- "tags": [],
804
- "text": "If `true`, the individual chunks of a file are being uploaded simultaneously."
805
- },
806
- "attribute": "parallel-chunk-uploads",
807
- "reflect": false,
808
- "defaultValue": "false"
809
- },
810
- "retryChunks": {
811
- "type": "boolean",
812
- "mutable": false,
813
- "complexType": {
814
- "original": "boolean",
815
- "resolved": "boolean",
816
- "references": {}
817
- },
818
- "required": false,
819
- "optional": false,
820
- "docs": {
821
- "tags": [],
822
- "text": "Whether a chunk should be retried if it fails."
823
- },
824
- "attribute": "retry-chunks",
825
- "reflect": false,
826
- "defaultValue": "false"
827
- },
828
- "retryChunksLimit": {
829
- "type": "number",
830
- "mutable": false,
831
- "complexType": {
832
- "original": "number",
833
- "resolved": "number",
834
- "references": {}
835
- },
836
- "required": false,
837
- "optional": false,
838
- "docs": {
839
- "tags": [],
840
- "text": "If `retryChunks` is true, how many times should it be retried."
841
- },
842
- "attribute": "retry-chunks-limit",
843
- "reflect": false,
844
- "defaultValue": "3"
845
- },
846
- "filesizeBase": {
847
- "type": "number",
848
- "mutable": false,
849
- "complexType": {
850
- "original": "number",
851
- "resolved": "number",
852
- "references": {}
853
- },
854
- "required": false,
855
- "optional": false,
856
- "docs": {
857
- "tags": [],
858
- "text": "The base that is used to calculate the **displayed** filesize. You can\r\nchange this to 1024 if you would rather display kibibytes, mebibytes,\r\netc... 1024 is technically incorrect, because `1024 bytes` are `1 kibibyte`\r\nnot `1 kilobyte`. You can change this to `1024` if you don't care about\r\nvalidity."
859
- },
860
- "attribute": "filesize-base",
861
- "reflect": false,
862
- "defaultValue": "1000"
863
- },
864
- "headers": {
865
- "type": "unknown",
866
- "mutable": false,
867
- "complexType": {
868
- "original": "object | null",
869
- "resolved": "object",
870
- "references": {}
871
- },
872
- "required": false,
873
- "optional": false,
874
- "docs": {
875
- "tags": [],
876
- "text": "An optional object to send additional headers to the server. Eg:\r\n`{ \"My-Awesome-Header\": \"header value\" }`"
877
- },
878
- "defaultValue": "null"
879
- },
880
- "defaultHeaders": {
881
- "type": "boolean",
882
- "mutable": false,
883
- "complexType": {
884
- "original": "boolean",
885
- "resolved": "boolean",
886
- "references": {}
887
- },
888
- "required": false,
889
- "optional": false,
890
- "docs": {
891
- "tags": [],
892
- "text": "Should the default headers be set or not?\r\nAccept: application/json <- for requesting json response\r\nCache-Control: no-cache <- Request shouldnt be cached\r\nX-Requested-With: XMLHttpRequest <- We sent the request via XMLHttpRequest"
893
- },
894
- "attribute": "default-headers",
895
- "reflect": false,
896
- "defaultValue": "true"
897
- },
898
- "accept": {
899
- "type": "unknown",
900
- "mutable": false,
901
- "complexType": {
902
- "original": "Function",
903
- "resolved": "Function",
904
- "references": {
905
- "Function": {
906
- "location": "global"
907
- }
908
- }
909
- },
910
- "required": false,
911
- "optional": false,
912
- "docs": {
913
- "tags": [],
914
- "text": "A function that gets a [file](https://developer.mozilla.org/en-US/docs/DOM/File)\r\nand a `done` function as parameters.\r\n\r\nIf the done function is invoked without arguments, the file is \"accepted\" and will\r\nbe processed. If you pass an error message, the file is rejected, and the error\r\nmessage will be displayed.\r\nThis function will not be called if the file is too big or doesn't match the mime types."
915
- },
916
- "defaultValue": "function(_file, done) {\r\n return done();\r\n }"
917
- },
918
- "chunksUploaded": {
919
- "type": "unknown",
920
- "mutable": false,
921
- "complexType": {
922
- "original": "Function",
923
- "resolved": "Function",
924
- "references": {
925
- "Function": {
926
- "location": "global"
927
- }
928
- }
929
- },
930
- "required": false,
931
- "optional": false,
932
- "docs": {
933
- "tags": [],
934
- "text": "The callback that will be invoked when all chunks have been uploaded for a file.\r\nIt gets the file for which the chunks have been uploaded as the first parameter,\r\nand the `done` function as second. `done()` needs to be invoked when everything\r\nneeded to finish the upload process is done."
935
- },
936
- "defaultValue": "function(_file, done) {\r\n done();\r\n }"
937
- },
938
- "hiddenInputContainer": {
939
- "type": "string",
940
- "mutable": false,
941
- "complexType": {
942
- "original": "string | HTMLElement",
943
- "resolved": "HTMLElement | string",
944
- "references": {
945
- "HTMLElement": {
946
- "location": "global"
947
- }
948
- }
949
- },
950
- "required": false,
951
- "optional": false,
952
- "docs": {
953
- "tags": [],
954
- "text": "This is the element the hidden input field (which is used when clicking on the\r\ndropzone to trigger file selection) will be appended to. This might\r\nbe important in case you use frameworks to switch the content of your page.\r\n\r\nCan be a selector string, or an element directly."
955
- },
956
- "attribute": "hidden-input-container",
957
- "reflect": false,
958
- "defaultValue": "\"body\""
959
- },
960
- "localization": {
961
- "type": "unknown",
962
- "mutable": false,
963
- "complexType": {
964
- "original": "StzhUploadLocalizedText",
965
- "resolved": "StzhLocaleComponent & { description: string; button: string; cancelUpload: string; uploadCanceled: string; cancelUploadConfirmation: string; removeFile: string; maxFilesExceeded: string; serverError: string; accessError: string; responseError: string; invalidFileType: string; fileTooBig: string; fileTooBigServer: string; }",
966
- "references": {
967
- "StzhUploadLocalizedText": {
968
- "location": "import",
969
- "path": "./stzh-upload.localization"
970
- }
971
- }
972
- },
973
- "required": false,
974
- "optional": false,
975
- "docs": {
976
- "tags": [],
977
- "text": "Translation strings."
978
- }
979
- }
980
- };
981
- }
982
- static get events() {
983
- return [{
984
- "method": "stzhFileAdded",
985
- "name": "stzhFileAdded",
986
- "bubbles": true,
987
- "cancelable": true,
988
- "composed": true,
989
- "docs": {
990
- "tags": [],
991
- "text": "File added"
992
- },
993
- "complexType": {
994
- "original": "StzhUploadFileAddedEvent",
995
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
996
- "references": {
997
- "StzhUploadFileAddedEvent": {
998
- "location": "import",
999
- "path": "../../index"
1000
- }
1001
- }
1002
- }
1003
- }, {
1004
- "method": "stzhFilesAdded",
1005
- "name": "stzhFilesAdded",
1006
- "bubbles": true,
1007
- "cancelable": true,
1008
- "composed": true,
1009
- "docs": {
1010
- "tags": [],
1011
- "text": "Files added (multiple)"
1012
- },
1013
- "complexType": {
1014
- "original": "StzhUploadFilesAddedEvent",
1015
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1016
- "references": {
1017
- "StzhUploadFilesAddedEvent": {
1018
- "location": "import",
1019
- "path": "../../index"
1020
- }
1021
- }
1022
- }
1023
- }, {
1024
- "method": "stzhFileRemoved",
1025
- "name": "stzhFileRemoved",
1026
- "bubbles": true,
1027
- "cancelable": true,
1028
- "composed": true,
1029
- "docs": {
1030
- "tags": [],
1031
- "text": "File removed"
1032
- },
1033
- "complexType": {
1034
- "original": "StzhUploadFileRemovedEvent",
1035
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1036
- "references": {
1037
- "StzhUploadFileRemovedEvent": {
1038
- "location": "import",
1039
- "path": "../../index"
1040
- }
1041
- }
1042
- }
1043
- }, {
1044
- "method": "stzhSending",
1045
- "name": "stzhSending",
1046
- "bubbles": true,
1047
- "cancelable": true,
1048
- "composed": true,
1049
- "docs": {
1050
- "tags": [],
1051
- "text": "Before sending file (add additional data before request if necessary)"
1052
- },
1053
- "complexType": {
1054
- "original": "StzhUploadSendingEvent",
1055
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; xhr: XMLHttpRequest; formData: FormData; }",
1056
- "references": {
1057
- "StzhUploadSendingEvent": {
1058
- "location": "import",
1059
- "path": "../../index"
1060
- }
1061
- }
1062
- }
1063
- }, {
1064
- "method": "stzhSendingMultiple",
1065
- "name": "stzhSendingMultiple",
1066
- "bubbles": true,
1067
- "cancelable": true,
1068
- "composed": true,
1069
- "docs": {
1070
- "tags": [],
1071
- "text": "Before sending multiple files (add additional data before request if necessary)"
1072
- },
1073
- "complexType": {
1074
- "original": "StzhUploadSendingMultipleEvent",
1075
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; xhr: XMLHttpRequest; formData: FormData; }",
1076
- "references": {
1077
- "StzhUploadSendingMultipleEvent": {
1078
- "location": "import",
1079
- "path": "../../index"
1080
- }
1081
- }
1082
- }
1083
- }, {
1084
- "method": "stzhProcessing",
1085
- "name": "stzhProcessing",
1086
- "bubbles": true,
1087
- "cancelable": true,
1088
- "composed": true,
1089
- "docs": {
1090
- "tags": [],
1091
- "text": "Files starting to get processed"
1092
- },
1093
- "complexType": {
1094
- "original": "StzhUploadProcessingEvent",
1095
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1096
- "references": {
1097
- "StzhUploadProcessingEvent": {
1098
- "location": "import",
1099
- "path": "../../index"
1100
- }
1101
- }
1102
- }
1103
- }, {
1104
- "method": "stzhProcessingMultiple",
1105
- "name": "stzhProcessingMultiple",
1106
- "bubbles": true,
1107
- "cancelable": true,
1108
- "composed": true,
1109
- "docs": {
1110
- "tags": [],
1111
- "text": "Files starting to get processed (multiple)"
1112
- },
1113
- "complexType": {
1114
- "original": "StzhUploadProcessingMultipleEvent",
1115
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1116
- "references": {
1117
- "StzhUploadProcessingMultipleEvent": {
1118
- "location": "import",
1119
- "path": "../../index"
1120
- }
1121
- }
1122
- }
1123
- }, {
1124
- "method": "stzhProgress",
1125
- "name": "stzhProgress",
1126
- "bubbles": true,
1127
- "cancelable": true,
1128
- "composed": true,
1129
- "docs": {
1130
- "tags": [],
1131
- "text": "Upload file progress during upload"
1132
- },
1133
- "complexType": {
1134
- "original": "StzhUploadProgressEvent",
1135
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; progress: number; bytesSent: number; }",
1136
- "references": {
1137
- "StzhUploadProgressEvent": {
1138
- "location": "import",
1139
- "path": "../../index"
1140
- }
1141
- }
1142
- }
1143
- }, {
1144
- "method": "stzhProgressTotal",
1145
- "name": "stzhProgressTotal",
1146
- "bubbles": true,
1147
- "cancelable": true,
1148
- "composed": true,
1149
- "docs": {
1150
- "tags": [],
1151
- "text": "Upload total file progress during upload"
1152
- },
1153
- "complexType": {
1154
- "original": "StzhUploadProgressTotalEvent",
1155
- "resolved": "{ component: \"stzh-upload\"; totalUploadProgress: number; totalBytes: number; totalBytesSent: number; }",
1156
- "references": {
1157
- "StzhUploadProgressTotalEvent": {
1158
- "location": "import",
1159
- "path": "../../index"
1160
- }
1161
- }
1162
- }
1163
- }, {
1164
- "method": "stzhError",
1165
- "name": "stzhError",
1166
- "bubbles": true,
1167
- "cancelable": true,
1168
- "composed": true,
1169
- "docs": {
1170
- "tags": [],
1171
- "text": "File error"
1172
- },
1173
- "complexType": {
1174
- "original": "StzhUploadErrorEvent",
1175
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; message: string; xhr: XMLHttpRequest; }",
1176
- "references": {
1177
- "StzhUploadErrorEvent": {
1178
- "location": "import",
1179
- "path": "../../index"
1180
- }
1181
- }
1182
- }
1183
- }, {
1184
- "method": "stzhErrorMultiple",
1185
- "name": "stzhErrorMultiple",
1186
- "bubbles": true,
1187
- "cancelable": true,
1188
- "composed": true,
1189
- "docs": {
1190
- "tags": [],
1191
- "text": "Files error (multiple files)"
1192
- },
1193
- "complexType": {
1194
- "original": "StzhUploadErrorMultipleEvent",
1195
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; message: string; xhr: XMLHttpRequest; }",
1196
- "references": {
1197
- "StzhUploadErrorMultipleEvent": {
1198
- "location": "import",
1199
- "path": "../../index"
1200
- }
1201
- }
1202
- }
1203
- }, {
1204
- "method": "stzhSuccess",
1205
- "name": "stzhSuccess",
1206
- "bubbles": true,
1207
- "cancelable": true,
1208
- "composed": true,
1209
- "docs": {
1210
- "tags": [],
1211
- "text": "File successfully uploaded"
1212
- },
1213
- "complexType": {
1214
- "original": "StzhUploadSuccessEvent",
1215
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; responseText: string; event: ProgressEvent<EventTarget>; }",
1216
- "references": {
1217
- "StzhUploadSuccessEvent": {
1218
- "location": "import",
1219
- "path": "../../index"
1220
- }
1221
- }
1222
- }
1223
- }, {
1224
- "method": "stzhSuccessMultiple",
1225
- "name": "stzhSuccessMultiple",
1226
- "bubbles": true,
1227
- "cancelable": true,
1228
- "composed": true,
1229
- "docs": {
1230
- "tags": [],
1231
- "text": "Files successfully uploaded (multiple files)"
1232
- },
1233
- "complexType": {
1234
- "original": "StzhUploadSuccessMultipleEvent",
1235
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; responseText: string; event: ProgressEvent<EventTarget>; }",
1236
- "references": {
1237
- "StzhUploadSuccessMultipleEvent": {
1238
- "location": "import",
1239
- "path": "../../index"
1240
- }
1241
- }
1242
- }
1243
- }, {
1244
- "method": "stzhCanceled",
1245
- "name": "stzhCanceled",
1246
- "bubbles": true,
1247
- "cancelable": true,
1248
- "composed": true,
1249
- "docs": {
1250
- "tags": [],
1251
- "text": "Canceled file upload"
1252
- },
1253
- "complexType": {
1254
- "original": "StzhUploadCanceledEvent",
1255
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1256
- "references": {
1257
- "StzhUploadCanceledEvent": {
1258
- "location": "import",
1259
- "path": "../../index"
1260
- }
1261
- }
1262
- }
1263
- }, {
1264
- "method": "stzhCanceledMultiple",
1265
- "name": "stzhCanceledMultiple",
1266
- "bubbles": true,
1267
- "cancelable": true,
1268
- "composed": true,
1269
- "docs": {
1270
- "tags": [],
1271
- "text": "Canceled file upload (multiple files)"
1272
- },
1273
- "complexType": {
1274
- "original": "StzhUploadCanceledMultipleEvent",
1275
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1276
- "references": {
1277
- "StzhUploadCanceledMultipleEvent": {
1278
- "location": "import",
1279
- "path": "../../index"
1280
- }
1281
- }
1282
- }
1283
- }, {
1284
- "method": "stzhComplete",
1285
- "name": "stzhComplete",
1286
- "bubbles": true,
1287
- "cancelable": true,
1288
- "composed": true,
1289
- "docs": {
1290
- "tags": [],
1291
- "text": "Completed upload (successfully or with error)"
1292
- },
1293
- "complexType": {
1294
- "original": "StzhUploadCompleteEvent",
1295
- "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1296
- "references": {
1297
- "StzhUploadCompleteEvent": {
1298
- "location": "import",
1299
- "path": "../../index"
1300
- }
1301
- }
1302
- }
1303
- }, {
1304
- "method": "stzhCompleteMultiple",
1305
- "name": "stzhCompleteMultiple",
1306
- "bubbles": true,
1307
- "cancelable": true,
1308
- "composed": true,
1309
- "docs": {
1310
- "tags": [],
1311
- "text": "Completed upload (successfully or with error, multiple files)"
1312
- },
1313
- "complexType": {
1314
- "original": "StzhUploadCompleteMultipleEvent",
1315
- "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1316
- "references": {
1317
- "StzhUploadCompleteMultipleEvent": {
1318
- "location": "import",
1319
- "path": "../../index"
1320
- }
1321
- }
1322
- }
1323
- }];
1324
- }
1325
- static get methods() {
1326
- return {
1327
- "processQueue": {
1328
- "complexType": {
1329
- "signature": "() => Promise<any>",
1330
- "parameters": [],
1331
- "references": {
1332
- "Promise": {
1333
- "location": "global"
1334
- }
1335
- },
1336
- "return": "Promise<any>"
1337
- },
1338
- "docs": {
1339
- "text": "",
1340
- "tags": []
1341
- }
1342
- }
1343
- };
1344
- }
1345
- static get elementRef() { return "element"; }
1346
- static get watchers() {
1347
- return [{
1348
- "propName": "existingFiles",
1349
- "methodName": "existingFilesWatcher"
1350
- }, {
1351
- "propName": "disabled",
1352
- "methodName": "disabledWatcher"
1353
- }, {
1354
- "propName": "error",
1355
- "methodName": "errorWatcher"
1356
- }];
1357
- }
1358
- }
1
+ import { Host, h } from "@stencil/core";
2
+ import { hasSlot } from "../../utils/utils";
3
+ import { fetchTranslations } from "../../utils/translation-utils";
4
+ import { StzhInputDescription } from "../stzh-input/stzh-input-description";
5
+ import Dropzone from "dropzone";
6
+ Dropzone.autoDiscover = false;
7
+ const ATTR_NAME = "data-dz-name";
8
+ const ATTR_TYPE = "data-dz-type";
9
+ const ATTR_EXTENSION = "data-dz-extension";
10
+ const ATTR_PROGRESS_TEXT = "data-dz-progress-text";
11
+ let uploadCounter = 0;
12
+ // Most properties taken over from:
13
+ // https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js
14
+ // Possible events to listen to:
15
+ // https://github.com/dropzone/dropzone/blob/v5.9.3/src/dropzone.js#L17
16
+ /**
17
+ * @slot error - Slot for error
18
+ */
19
+ export class StzhUpload {
20
+ constructor() {
21
+ /**
22
+ * Initially pre existing files (e.g. already uploaded by the user).
23
+ * Array of objects that must at least include `name` and `size` attribute:
24
+ * `[{"name":"file1.txt", "size": 12345}, {"name":"file2.txt", "size": 12345}]`
25
+ */
26
+ this.existingFiles = [];
27
+ this._existingFiles = [];
28
+ /** Label */
29
+ this.label = "";
30
+ /** Description */
31
+ this.description = "";
32
+ /** Button text */
33
+ this.button = "";
34
+ /**
35
+ * URL the files are processed to.
36
+ *
37
+ * You can also provide a function that will be called with `files` and
38
+ * `dataBlocks` and must return the url as string.
39
+ */
40
+ this.url = "";
41
+ /**
42
+ * Can be changed to `"put"` if necessary. You can also provide a function
43
+ * that will be called with `files` and must return the method.
44
+ */
45
+ this.method = "post";
46
+ /**
47
+ * Will be set on the XHRequest.
48
+ */
49
+ this.withCredentials = false;
50
+ /**
51
+ * Whether the upload is disabled or not.
52
+ */
53
+ this.disabled = false;
54
+ /**
55
+ * Whether the upload is marked as invalid.
56
+ */
57
+ this.invalid = false;
58
+ /**
59
+ * The default implementation of `accept` checks the file's mime type or
60
+ * extension against this list. This is a comma separated list of mime
61
+ * types or file extensions.
62
+ *
63
+ * Eg.: `image/*,application/pdf,.psd`
64
+ *
65
+ * This option will also be used as
66
+ * [`accept`](https://developer.mozilla.org/en-US/docs/HTML/Element/input#attr-accept)
67
+ * parameter on the hidden file input as well.
68
+ */
69
+ this.acceptedFiles = null;
70
+ /**
71
+ * If false, files will be added to the queue but the queue will not be
72
+ * processed automatically.
73
+ * This can be useful if you need some additional user input before sending
74
+ * files (or if you want want all files sent at once).
75
+ * If you're ready to send the file simply call `element.processQueue()`.
76
+ */
77
+ this.autoProcessQueue = true;
78
+ /**
79
+ * If not `null` defines how many files this dropzone handles. If it exceeds,
80
+ * the event `stzhMaxfilesexceeded` will be called.
81
+ */
82
+ this.maxFiles = null;
83
+ /**
84
+ * The maximum filesize (in MiB) that is allowed to be uploaded.
85
+ */
86
+ this.maxFilesize = 25;
87
+ /**
88
+ * How many file uploads to process in parallel.
89
+ */
90
+ this.parallelUploads = 2;
91
+ /**
92
+ * Whether to send multiple files in one request. If
93
+ * this it set to true, then the fallback file input element will
94
+ * have the `multiple` attribute as well. This option will
95
+ * also trigger additional events (like `stzhSuccessMultiple`). See the events
96
+ * documentation section for more information.
97
+ */
98
+ this.uploadMultiple = false;
99
+ /**
100
+ * Whether you want files to be uploaded in chunks to your server. This can't be
101
+ * used in combination with `uploadMultiple`.
102
+ *
103
+ * See `chunksUploaded` prop for the callback to finalise an upload.
104
+ */
105
+ this.chunking = false;
106
+ /**
107
+ * If `chunking` is enabled, this defines whether **every** file should be chunked,
108
+ * even if the file size is below chunkSize. This means, that the additional chunk
109
+ * form data will be submitted and the `chunksUploaded` callback will be invoked.
110
+ */
111
+ this.forceChunking = false;
112
+ /**
113
+ * If `chunking` is `true`, then this defines the chunk size in bytes.
114
+ */
115
+ this.chunkSize = 2 * 1024 * 1024;
116
+ /**
117
+ * If `true`, the individual chunks of a file are being uploaded simultaneously.
118
+ */
119
+ this.parallelChunkUploads = false;
120
+ /**
121
+ * Whether a chunk should be retried if it fails.
122
+ */
123
+ this.retryChunks = false;
124
+ /**
125
+ * If `retryChunks` is true, how many times should it be retried.
126
+ */
127
+ this.retryChunksLimit = 3;
128
+ /**
129
+ * The base that is used to calculate the **displayed** filesize. You can
130
+ * change this to 1024 if you would rather display kibibytes, mebibytes,
131
+ * etc... 1024 is technically incorrect, because `1024 bytes` are `1 kibibyte`
132
+ * not `1 kilobyte`. You can change this to `1024` if you don't care about
133
+ * validity.
134
+ */
135
+ this.filesizeBase = 1000;
136
+ /**
137
+ * An optional object to send additional headers to the server. Eg:
138
+ * `{ "My-Awesome-Header": "header value" }`
139
+ */
140
+ this.headers = null;
141
+ /**
142
+ * Should the default headers be set or not?
143
+ * Accept: application/json <- for requesting json response
144
+ * Cache-Control: no-cache <- Request shouldnt be cached
145
+ * X-Requested-With: XMLHttpRequest <- We sent the request via XMLHttpRequest
146
+ */
147
+ this.defaultHeaders = true;
148
+ /**
149
+ * A function that gets a [file](https://developer.mozilla.org/en-US/docs/DOM/File)
150
+ * and a `done` function as parameters.
151
+ *
152
+ * If the done function is invoked without arguments, the file is "accepted" and will
153
+ * be processed. If you pass an error message, the file is rejected, and the error
154
+ * message will be displayed.
155
+ * This function will not be called if the file is too big or doesn't match the mime types.
156
+ */
157
+ this.accept = function (_file, done) {
158
+ return done();
159
+ };
160
+ /**
161
+ * The callback that will be invoked when all chunks have been uploaded for a file.
162
+ * It gets the file for which the chunks have been uploaded as the first parameter,
163
+ * and the `done` function as second. `done()` needs to be invoked when everything
164
+ * needed to finish the upload process is done.
165
+ */
166
+ this.chunksUploaded = function (_file, done) {
167
+ done();
168
+ };
169
+ /**
170
+ * This is the element the hidden input field (which is used when clicking on the
171
+ * dropzone to trigger file selection) will be appended to. This might
172
+ * be important in case you use frameworks to switch the content of your page.
173
+ *
174
+ * Can be a selector string, or an element directly.
175
+ */
176
+ this.hiddenInputContainer = "body";
177
+ }
178
+ existingFilesWatcher(newValue) {
179
+ if (typeof newValue === "string") {
180
+ this._existingFiles = JSON.parse(newValue);
181
+ }
182
+ else {
183
+ this._existingFiles = newValue;
184
+ }
185
+ }
186
+ disabledWatcher() {
187
+ if (this.disabled) {
188
+ this.dropzone.disable();
189
+ }
190
+ else {
191
+ this.dropzone.enable();
192
+ }
193
+ }
194
+ errorWatcher(newValue) {
195
+ if (typeof newValue === "string") {
196
+ try {
197
+ this._error = JSON.parse(newValue);
198
+ }
199
+ catch (e) {
200
+ if (newValue) {
201
+ this._error = [newValue];
202
+ }
203
+ else {
204
+ this._error = [];
205
+ }
206
+ }
207
+ }
208
+ else if (newValue) {
209
+ this._error = newValue;
210
+ }
211
+ else {
212
+ this._error = [];
213
+ }
214
+ this.invalid = this._error.length > 0;
215
+ }
216
+ async processQueue() {
217
+ return this.dropzone.processQueue();
218
+ }
219
+ async componentWillLoad() {
220
+ this.uploadId = `stzh-upload-${uploadCounter++}`;
221
+ this.existingFilesWatcher(this.existingFiles);
222
+ this.errorWatcher(this.error);
223
+ if (!this.localization) {
224
+ this.localization = await fetchTranslations(this.element, 'upload');
225
+ }
226
+ }
227
+ componentDidRender() {
228
+ if (this.dropzone) {
229
+ return;
230
+ }
231
+ const self = this;
232
+ this.dropzone = new Dropzone(this.dropzoneElement, {
233
+ url: this.url,
234
+ method: this.method,
235
+ withCredentials: this.withCredentials,
236
+ clickable: [this.clickareaElement],
237
+ acceptedFiles: this.acceptedFiles,
238
+ accept: this.accept,
239
+ maxFiles: this.maxFiles,
240
+ maxFilesize: this.maxFilesize,
241
+ filesizeBase: this.filesizeBase,
242
+ parallelUploads: this.parallelUploads,
243
+ uploadMultiple: this.uploadMultiple,
244
+ autoProcessQueue: this.autoProcessQueue,
245
+ headers: this.headers,
246
+ defaultHeaders: this.defaultHeaders,
247
+ chunking: this.chunking,
248
+ chunkSize: this.chunkSize,
249
+ chunksUploaded: this.chunksUploaded,
250
+ forceChunking: this.forceChunking,
251
+ parallelChunkUploads: this.parallelChunkUploads,
252
+ retryChunks: this.retryChunks,
253
+ retryChunksLimit: this.retryChunksLimit,
254
+ createImageThumbnails: false,
255
+ hiddenInputContainer: this.hiddenInputContainer,
256
+ dictFileSizeUnits: { tb: "TB", gb: "GB", mb: "MB", kb: "KB", b: "b" },
257
+ dictRemoveFileConfirmation: null,
258
+ dictMaxFilesExceeded: this.localization.maxFilesExceeded,
259
+ dictRemoveFile: this.localization.removeFile,
260
+ dictCancelUploadConfirmation: this.localization.cancelUploadConfirmation,
261
+ dictUploadCanceled: this.localization.uploadCanceled,
262
+ dictCancelUpload: this.localization.cancelUpload,
263
+ dictResponseError: this.localization.responseError,
264
+ dictInvalidFileType: this.localization.invalidFileType,
265
+ dictFileTooBig: this.localization.fileTooBig,
266
+ // When the upload is finished, either with success or an error.
267
+ // Taken from https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js#L752
268
+ complete(file) {
269
+ for (let node of file.previewElement.querySelectorAll("[data-dz-remove]")) {
270
+ node.setAttribute('title', this.options.dictRemoveFile);
271
+ node.setAttribute('aria-label', this.options.dictRemoveFile);
272
+ }
273
+ // move file uploads with errors to another element, so they are grouped together
274
+ if (file.status === "error") {
275
+ self.errorsElement.appendChild(file.previewElement);
276
+ }
277
+ if (file._removeLink) {
278
+ file._removeLink.innerHTML = this.options.dictRemoveFile;
279
+ }
280
+ if (file.previewElement) {
281
+ return file.previewElement.classList.add("dz-complete");
282
+ }
283
+ },
284
+ // Called whenever a file is removed.
285
+ // Taken fom https://github.com/dropzone/dropzone/blob/v5.9.3/src/options.js#L649
286
+ removedfile(file) {
287
+ if (file.previewElement != null && file.previewElement.parentNode != null) {
288
+ file.previewElement.parentNode.removeChild(file.previewElement);
289
+ }
290
+ // set focus to upload
291
+ self.buttonElement.setFocus();
292
+ return this._updateMaxFilesReachedClass();
293
+ },
294
+ error(file, message, xhr) {
295
+ if (file.previewElement) {
296
+ file.previewElement.classList.add("dz-error");
297
+ if (typeof message !== "string" && message.error) {
298
+ message = message.error;
299
+ }
300
+ else if (xhr) {
301
+ if (xhr.status === 401 || xhr.status === 403) {
302
+ message = self.localization.accessError;
303
+ }
304
+ else if (xhr.status === 413) {
305
+ message = self.localization.fileTooBigServer;
306
+ }
307
+ else if (xhr.status === 415) {
308
+ message = self.localization.invalidFileType;
309
+ }
310
+ else if (xhr.status >= 500) {
311
+ message = self.localization.serverError;
312
+ }
313
+ else {
314
+ const defaultError = self.localization.responseError
315
+ .replace("{{statusCode}}", xhr.status);
316
+ message = defaultError;
317
+ }
318
+ }
319
+ for (let node of file.previewElement.querySelectorAll("[data-dz-errormessage]")) {
320
+ node.textContent = message;
321
+ }
322
+ }
323
+ },
324
+ previewTemplate: `
325
+ <div class="stzh-upload__preview">
326
+ <div class="stzh-upload__inner">
327
+ <div class="stzh-upload__image">
328
+ <img data-dz-thumbnail />
329
+ </div>
330
+
331
+ <div class="stzh-upload__details">
332
+ <div class="stzh-upload__info-wrapper-processing">
333
+ <div class="stzh-upload__infos">
334
+ <div class="stzh-upload__subtitle">
335
+ <span data-dz-name></span>
336
+ </div>
337
+ <div class="stzh-upload__progress-text">
338
+ <span data-dz-progress-text></span>
339
+ </div>
340
+ </div>
341
+ <div class="stzh-upload__progress">
342
+ <span class="stzh-upload__progress-bar" data-dz-uploadprogress></span>
343
+ </div>
344
+ </div>
345
+ <div class="stzh-upload__info-wrapper-complete">
346
+ <div class="stzh-upload__title">
347
+ <span data-dz-name></span>
348
+ </div>
349
+ <div class="stzh-upload__meta">
350
+ <span class="stzh-upload__extension" data-dz-extension></span>
351
+ |
352
+ <span class="stzh-upload__size" data-dz-size></span>
353
+ </div>
354
+ <div class="stzh-upload__error-message">
355
+ <span data-dz-errormessage></span>
356
+ </div>
357
+ </div>
358
+ <div class="stzh-upload__actions">
359
+ <button class="stzh-upload__delete" data-dz-remove aria-label="${this.localization.cancelUpload}" title="${this.localization.cancelUpload}">
360
+ <stzh-icon class="stzh-upload__delete-icon" name="delete"></stzh-icon>
361
+ <stzh-icon class="stzh-upload__delete-icon-error" name="close"></stzh-icon>
362
+ </button>
363
+ </div>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ `
368
+ });
369
+ this.disabledWatcher();
370
+ this.dropzone.on("addedfile", (file) => this.stzhFileAdded.emit({
371
+ component: "stzh-upload", file
372
+ }));
373
+ this.dropzone.on("addedfiles", (files) => this.stzhFilesAdded.emit({
374
+ component: "stzh-upload", files
375
+ }));
376
+ this.dropzone.on("removedfile", (file) => this.stzhFileRemoved.emit({
377
+ component: "stzh-upload", file
378
+ }));
379
+ this.dropzone.on("sending", (file, xhr, formData) => this.stzhSending.emit({
380
+ component: "stzh-upload", file, xhr, formData
381
+ }));
382
+ this.dropzone.on("sendingmultiple", (files, xhr, formData) => this.stzhSendingMultiple.emit({
383
+ component: "stzh-upload", files, xhr, formData
384
+ }));
385
+ this.dropzone.on("processing", (file) => this.stzhProcessing.emit({
386
+ component: "stzh-upload", file
387
+ }));
388
+ this.dropzone.on("processingmultiple", (files) => this.stzhProcessingMultiple.emit({
389
+ component: "stzh-upload", files
390
+ }));
391
+ this.dropzone.on("uploadprogress", (file, progress, bytesSent) => this.stzhProgress.emit({
392
+ component: "stzh-upload", file, progress, bytesSent
393
+ }));
394
+ this.dropzone.on("totaluploadprogress", (totalUploadProgress, totalBytes, totalBytesSent) => this.stzhProgressTotal.emit({
395
+ component: "stzh-upload", totalUploadProgress, totalBytes, totalBytesSent
396
+ }));
397
+ this.dropzone.on("error", (file, message, xhr) => this.stzhError.emit({
398
+ component: "stzh-upload", file, message, xhr
399
+ }));
400
+ this.dropzone.on("errormultiple", (files, message, xhr) => this.stzhErrorMultiple.emit({
401
+ component: "stzh-upload", files, message, xhr
402
+ }));
403
+ this.dropzone.on("success", (file, responseText, event) => this.stzhSuccess.emit({
404
+ component: "stzh-upload", file, responseText, event
405
+ }));
406
+ this.dropzone.on("successmultiple", (files, responseText, event) => this.stzhSuccessMultiple.emit({
407
+ component: "stzh-upload", files, responseText, event
408
+ }));
409
+ this.dropzone.on("canceled", (file) => this.stzhCanceled.emit({
410
+ component: "stzh-upload", file
411
+ }));
412
+ this.dropzone.on("canceledmultiple", (files) => this.stzhCanceledMultiple.emit({
413
+ component: "stzh-upload", files
414
+ }));
415
+ this.dropzone.on("complete", (file) => this.stzhComplete.emit({
416
+ component: "stzh-upload", file
417
+ }));
418
+ this.dropzone.on("completemultiple", (files) => this.stzhCompleteMultiple.emit({
419
+ component: "stzh-upload", files
420
+ }));
421
+ this.dropzone.on("addedfile", (file) => {
422
+ file.previewElement.querySelectorAll(`[${ATTR_NAME}]`).forEach((name) => {
423
+ name.setAttribute("title", file.name);
424
+ });
425
+ file.previewElement.querySelectorAll(`[${ATTR_TYPE}]`).forEach((type) => {
426
+ type.innerText = file.type;
427
+ });
428
+ file.previewElement.querySelectorAll(`[${ATTR_EXTENSION}]`).forEach((extension) => {
429
+ extension.innerText = file.name.split(".").pop();
430
+ });
431
+ });
432
+ this.dropzone.on("uploadprogress", (file, progress) => {
433
+ file.previewElement.querySelectorAll(`[${ATTR_PROGRESS_TEXT}]`).forEach((progressText) => {
434
+ progressText.innerText = `${progress.toString()}%`;
435
+ });
436
+ });
437
+ this._existingFiles.forEach((file) => {
438
+ this.dropzone.displayExistingFile(file, null, null, null, null);
439
+ });
440
+ }
441
+ disconnectedCallback() {
442
+ if (this.dropzone) {
443
+ this.dropzone.destroy();
444
+ this.dropzone = null;
445
+ }
446
+ }
447
+ render() {
448
+ const errorUsed = hasSlot(this.element, 'error') || !!this.error;
449
+ const classes = {
450
+ "stzh-upload": true,
451
+ "stzh-upload--is-invalid": this.invalid,
452
+ "stzh-upload--is-disabled": this.disabled,
453
+ "stzh-upload--has-error": errorUsed,
454
+ "stzh-upload--has-instructions": !!this.description || !!this.localization.description
455
+ };
456
+ return (h(Host, null, h("div", { class: classes, ref: (el) => (this.dropzoneElement = el) }, this.label && h("div", { class: "stzh-upload__label" }, this.label), h("div", { class: "stzh-upload__clickarea", ref: (el) => (this.clickareaElement = el) }, h("div", { class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, this.description ? this.description : this.localization.description), h("stzh-button", { size: "small", class: "stzh-upload__button", ref: (el) => (this.buttonElement = el), "aria-describedby": `${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled }, this.button ? this.button : this.localization.button)), h(StzhInputDescription, { classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }), h("div", { class: "stzh-upload__errors", ref: (el) => (this.errorsElement = el) }))));
457
+ }
458
+ static get is() { return "stzh-upload"; }
459
+ static get originalStyleUrls() {
460
+ return {
461
+ "$": ["stzh-upload.scss"]
462
+ };
463
+ }
464
+ static get styleUrls() {
465
+ return {
466
+ "$": ["stzh-upload.css"]
467
+ };
468
+ }
469
+ static get properties() {
470
+ return {
471
+ "existingFiles": {
472
+ "type": "string",
473
+ "mutable": false,
474
+ "complexType": {
475
+ "original": "StzhUploadFilesItem[] | string",
476
+ "resolved": "StzhUploadFilesItem[] | string",
477
+ "references": {
478
+ "StzhUploadFilesItem": {
479
+ "location": "import",
480
+ "path": "../../index"
481
+ }
482
+ }
483
+ },
484
+ "required": false,
485
+ "optional": false,
486
+ "docs": {
487
+ "tags": [],
488
+ "text": "Initially pre existing files (e.g. already uploaded by the user).\nArray of objects that must at least include `name` and `size` attribute:\n`[{\"name\":\"file1.txt\", \"size\": 12345}, {\"name\":\"file2.txt\", \"size\": 12345}]`"
489
+ },
490
+ "attribute": "existing-files",
491
+ "reflect": false,
492
+ "defaultValue": "[]"
493
+ },
494
+ "label": {
495
+ "type": "string",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "string",
499
+ "resolved": "string",
500
+ "references": {}
501
+ },
502
+ "required": false,
503
+ "optional": false,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": "Label"
507
+ },
508
+ "attribute": "label",
509
+ "reflect": false,
510
+ "defaultValue": "\"\""
511
+ },
512
+ "description": {
513
+ "type": "string",
514
+ "mutable": false,
515
+ "complexType": {
516
+ "original": "string",
517
+ "resolved": "string",
518
+ "references": {}
519
+ },
520
+ "required": false,
521
+ "optional": false,
522
+ "docs": {
523
+ "tags": [],
524
+ "text": "Description"
525
+ },
526
+ "attribute": "description",
527
+ "reflect": false,
528
+ "defaultValue": "\"\""
529
+ },
530
+ "button": {
531
+ "type": "string",
532
+ "mutable": false,
533
+ "complexType": {
534
+ "original": "string",
535
+ "resolved": "string",
536
+ "references": {}
537
+ },
538
+ "required": false,
539
+ "optional": false,
540
+ "docs": {
541
+ "tags": [],
542
+ "text": "Button text"
543
+ },
544
+ "attribute": "button",
545
+ "reflect": false,
546
+ "defaultValue": "\"\""
547
+ },
548
+ "url": {
549
+ "type": "string",
550
+ "mutable": false,
551
+ "complexType": {
552
+ "original": "string | Function",
553
+ "resolved": "Function | string",
554
+ "references": {
555
+ "Function": {
556
+ "location": "global"
557
+ }
558
+ }
559
+ },
560
+ "required": false,
561
+ "optional": false,
562
+ "docs": {
563
+ "tags": [],
564
+ "text": "URL the files are processed to.\n\nYou can also provide a function that will be called with `files` and\n`dataBlocks` and must return the url as string."
565
+ },
566
+ "attribute": "url",
567
+ "reflect": false,
568
+ "defaultValue": "\"\""
569
+ },
570
+ "method": {
571
+ "type": "string",
572
+ "mutable": false,
573
+ "complexType": {
574
+ "original": "\"post\" | \"put\" | Function",
575
+ "resolved": "\"post\" | \"put\" | Function",
576
+ "references": {
577
+ "Function": {
578
+ "location": "global"
579
+ }
580
+ }
581
+ },
582
+ "required": false,
583
+ "optional": false,
584
+ "docs": {
585
+ "tags": [],
586
+ "text": "Can be changed to `\"put\"` if necessary. You can also provide a function\nthat will be called with `files` and must return the method."
587
+ },
588
+ "attribute": "method",
589
+ "reflect": false,
590
+ "defaultValue": "\"post\""
591
+ },
592
+ "withCredentials": {
593
+ "type": "boolean",
594
+ "mutable": false,
595
+ "complexType": {
596
+ "original": "boolean",
597
+ "resolved": "boolean",
598
+ "references": {}
599
+ },
600
+ "required": false,
601
+ "optional": false,
602
+ "docs": {
603
+ "tags": [],
604
+ "text": "Will be set on the XHRequest."
605
+ },
606
+ "attribute": "with-credentials",
607
+ "reflect": false,
608
+ "defaultValue": "false"
609
+ },
610
+ "disabled": {
611
+ "type": "boolean",
612
+ "mutable": false,
613
+ "complexType": {
614
+ "original": "boolean",
615
+ "resolved": "boolean",
616
+ "references": {}
617
+ },
618
+ "required": false,
619
+ "optional": false,
620
+ "docs": {
621
+ "tags": [],
622
+ "text": "Whether the upload is disabled or not."
623
+ },
624
+ "attribute": "disabled",
625
+ "reflect": true,
626
+ "defaultValue": "false"
627
+ },
628
+ "invalid": {
629
+ "type": "boolean",
630
+ "mutable": false,
631
+ "complexType": {
632
+ "original": "boolean",
633
+ "resolved": "boolean",
634
+ "references": {}
635
+ },
636
+ "required": false,
637
+ "optional": false,
638
+ "docs": {
639
+ "tags": [],
640
+ "text": "Whether the upload is marked as invalid."
641
+ },
642
+ "attribute": "invalid",
643
+ "reflect": true,
644
+ "defaultValue": "false"
645
+ },
646
+ "error": {
647
+ "type": "string",
648
+ "mutable": false,
649
+ "complexType": {
650
+ "original": "string | string[]",
651
+ "resolved": "string | string[]",
652
+ "references": {}
653
+ },
654
+ "required": false,
655
+ "optional": false,
656
+ "docs": {
657
+ "tags": [],
658
+ "text": "One or multiple error message (use error slot as alternative)"
659
+ },
660
+ "attribute": "error",
661
+ "reflect": false
662
+ },
663
+ "acceptedFiles": {
664
+ "type": "string",
665
+ "mutable": false,
666
+ "complexType": {
667
+ "original": "string | null",
668
+ "resolved": "string",
669
+ "references": {}
670
+ },
671
+ "required": false,
672
+ "optional": false,
673
+ "docs": {
674
+ "tags": [],
675
+ "text": "The default implementation of `accept` checks the file's mime type or\nextension against this list. This is a comma separated list of mime\ntypes or file extensions.\n\nEg.: `image/*,application/pdf,.psd`\n\nThis option will also be used as\n[`accept`](https://developer.mozilla.org/en-US/docs/HTML/Element/input#attr-accept)\nparameter on the hidden file input as well."
676
+ },
677
+ "attribute": "accepted-files",
678
+ "reflect": false,
679
+ "defaultValue": "null"
680
+ },
681
+ "autoProcessQueue": {
682
+ "type": "boolean",
683
+ "mutable": false,
684
+ "complexType": {
685
+ "original": "boolean",
686
+ "resolved": "boolean",
687
+ "references": {}
688
+ },
689
+ "required": false,
690
+ "optional": false,
691
+ "docs": {
692
+ "tags": [],
693
+ "text": "If false, files will be added to the queue but the queue will not be\nprocessed automatically.\nThis can be useful if you need some additional user input before sending\nfiles (or if you want want all files sent at once).\nIf you're ready to send the file simply call `element.processQueue()`."
694
+ },
695
+ "attribute": "auto-process-queue",
696
+ "reflect": false,
697
+ "defaultValue": "true"
698
+ },
699
+ "maxFiles": {
700
+ "type": "number",
701
+ "mutable": false,
702
+ "complexType": {
703
+ "original": "number | null",
704
+ "resolved": "number",
705
+ "references": {}
706
+ },
707
+ "required": false,
708
+ "optional": false,
709
+ "docs": {
710
+ "tags": [],
711
+ "text": "If not `null` defines how many files this dropzone handles. If it exceeds,\nthe event `stzhMaxfilesexceeded` will be called."
712
+ },
713
+ "attribute": "max-files",
714
+ "reflect": false,
715
+ "defaultValue": "null"
716
+ },
717
+ "maxFilesize": {
718
+ "type": "number",
719
+ "mutable": false,
720
+ "complexType": {
721
+ "original": "number",
722
+ "resolved": "number",
723
+ "references": {}
724
+ },
725
+ "required": false,
726
+ "optional": false,
727
+ "docs": {
728
+ "tags": [],
729
+ "text": "The maximum filesize (in MiB) that is allowed to be uploaded."
730
+ },
731
+ "attribute": "max-filesize",
732
+ "reflect": false,
733
+ "defaultValue": "25"
734
+ },
735
+ "parallelUploads": {
736
+ "type": "number",
737
+ "mutable": false,
738
+ "complexType": {
739
+ "original": "number",
740
+ "resolved": "number",
741
+ "references": {}
742
+ },
743
+ "required": false,
744
+ "optional": false,
745
+ "docs": {
746
+ "tags": [],
747
+ "text": "How many file uploads to process in parallel."
748
+ },
749
+ "attribute": "parallel-uploads",
750
+ "reflect": false,
751
+ "defaultValue": "2"
752
+ },
753
+ "uploadMultiple": {
754
+ "type": "boolean",
755
+ "mutable": false,
756
+ "complexType": {
757
+ "original": "boolean",
758
+ "resolved": "boolean",
759
+ "references": {}
760
+ },
761
+ "required": false,
762
+ "optional": false,
763
+ "docs": {
764
+ "tags": [],
765
+ "text": "Whether to send multiple files in one request. If\nthis it set to true, then the fallback file input element will\nhave the `multiple` attribute as well. This option will\nalso trigger additional events (like `stzhSuccessMultiple`). See the events\ndocumentation section for more information."
766
+ },
767
+ "attribute": "upload-multiple",
768
+ "reflect": false,
769
+ "defaultValue": "false"
770
+ },
771
+ "chunking": {
772
+ "type": "boolean",
773
+ "mutable": false,
774
+ "complexType": {
775
+ "original": "boolean",
776
+ "resolved": "boolean",
777
+ "references": {}
778
+ },
779
+ "required": false,
780
+ "optional": false,
781
+ "docs": {
782
+ "tags": [],
783
+ "text": "Whether you want files to be uploaded in chunks to your server. This can't be\nused in combination with `uploadMultiple`.\n\nSee `chunksUploaded` prop for the callback to finalise an upload."
784
+ },
785
+ "attribute": "chunking",
786
+ "reflect": false,
787
+ "defaultValue": "false"
788
+ },
789
+ "forceChunking": {
790
+ "type": "boolean",
791
+ "mutable": false,
792
+ "complexType": {
793
+ "original": "boolean",
794
+ "resolved": "boolean",
795
+ "references": {}
796
+ },
797
+ "required": false,
798
+ "optional": false,
799
+ "docs": {
800
+ "tags": [],
801
+ "text": "If `chunking` is enabled, this defines whether **every** file should be chunked,\neven if the file size is below chunkSize. This means, that the additional chunk\nform data will be submitted and the `chunksUploaded` callback will be invoked."
802
+ },
803
+ "attribute": "force-chunking",
804
+ "reflect": false,
805
+ "defaultValue": "false"
806
+ },
807
+ "chunkSize": {
808
+ "type": "number",
809
+ "mutable": false,
810
+ "complexType": {
811
+ "original": "number",
812
+ "resolved": "number",
813
+ "references": {}
814
+ },
815
+ "required": false,
816
+ "optional": false,
817
+ "docs": {
818
+ "tags": [],
819
+ "text": "If `chunking` is `true`, then this defines the chunk size in bytes."
820
+ },
821
+ "attribute": "chunk-size",
822
+ "reflect": false,
823
+ "defaultValue": "2 * 1024 * 1024"
824
+ },
825
+ "parallelChunkUploads": {
826
+ "type": "boolean",
827
+ "mutable": false,
828
+ "complexType": {
829
+ "original": "boolean",
830
+ "resolved": "boolean",
831
+ "references": {}
832
+ },
833
+ "required": false,
834
+ "optional": false,
835
+ "docs": {
836
+ "tags": [],
837
+ "text": "If `true`, the individual chunks of a file are being uploaded simultaneously."
838
+ },
839
+ "attribute": "parallel-chunk-uploads",
840
+ "reflect": false,
841
+ "defaultValue": "false"
842
+ },
843
+ "retryChunks": {
844
+ "type": "boolean",
845
+ "mutable": false,
846
+ "complexType": {
847
+ "original": "boolean",
848
+ "resolved": "boolean",
849
+ "references": {}
850
+ },
851
+ "required": false,
852
+ "optional": false,
853
+ "docs": {
854
+ "tags": [],
855
+ "text": "Whether a chunk should be retried if it fails."
856
+ },
857
+ "attribute": "retry-chunks",
858
+ "reflect": false,
859
+ "defaultValue": "false"
860
+ },
861
+ "retryChunksLimit": {
862
+ "type": "number",
863
+ "mutable": false,
864
+ "complexType": {
865
+ "original": "number",
866
+ "resolved": "number",
867
+ "references": {}
868
+ },
869
+ "required": false,
870
+ "optional": false,
871
+ "docs": {
872
+ "tags": [],
873
+ "text": "If `retryChunks` is true, how many times should it be retried."
874
+ },
875
+ "attribute": "retry-chunks-limit",
876
+ "reflect": false,
877
+ "defaultValue": "3"
878
+ },
879
+ "filesizeBase": {
880
+ "type": "number",
881
+ "mutable": false,
882
+ "complexType": {
883
+ "original": "number",
884
+ "resolved": "number",
885
+ "references": {}
886
+ },
887
+ "required": false,
888
+ "optional": false,
889
+ "docs": {
890
+ "tags": [],
891
+ "text": "The base that is used to calculate the **displayed** filesize. You can\nchange this to 1024 if you would rather display kibibytes, mebibytes,\netc... 1024 is technically incorrect, because `1024 bytes` are `1 kibibyte`\nnot `1 kilobyte`. You can change this to `1024` if you don't care about\nvalidity."
892
+ },
893
+ "attribute": "filesize-base",
894
+ "reflect": false,
895
+ "defaultValue": "1000"
896
+ },
897
+ "headers": {
898
+ "type": "unknown",
899
+ "mutable": false,
900
+ "complexType": {
901
+ "original": "object | null",
902
+ "resolved": "object",
903
+ "references": {}
904
+ },
905
+ "required": false,
906
+ "optional": false,
907
+ "docs": {
908
+ "tags": [],
909
+ "text": "An optional object to send additional headers to the server. Eg:\n`{ \"My-Awesome-Header\": \"header value\" }`"
910
+ },
911
+ "defaultValue": "null"
912
+ },
913
+ "defaultHeaders": {
914
+ "type": "boolean",
915
+ "mutable": false,
916
+ "complexType": {
917
+ "original": "boolean",
918
+ "resolved": "boolean",
919
+ "references": {}
920
+ },
921
+ "required": false,
922
+ "optional": false,
923
+ "docs": {
924
+ "tags": [],
925
+ "text": "Should the default headers be set or not?\nAccept: application/json <- for requesting json response\nCache-Control: no-cache <- Request shouldnt be cached\nX-Requested-With: XMLHttpRequest <- We sent the request via XMLHttpRequest"
926
+ },
927
+ "attribute": "default-headers",
928
+ "reflect": false,
929
+ "defaultValue": "true"
930
+ },
931
+ "accept": {
932
+ "type": "unknown",
933
+ "mutable": false,
934
+ "complexType": {
935
+ "original": "Function",
936
+ "resolved": "Function",
937
+ "references": {
938
+ "Function": {
939
+ "location": "global"
940
+ }
941
+ }
942
+ },
943
+ "required": false,
944
+ "optional": false,
945
+ "docs": {
946
+ "tags": [],
947
+ "text": "A function that gets a [file](https://developer.mozilla.org/en-US/docs/DOM/File)\nand a `done` function as parameters.\n\nIf the done function is invoked without arguments, the file is \"accepted\" and will\nbe processed. If you pass an error message, the file is rejected, and the error\nmessage will be displayed.\nThis function will not be called if the file is too big or doesn't match the mime types."
948
+ },
949
+ "defaultValue": "function(_file, done) {\n return done();\n }"
950
+ },
951
+ "chunksUploaded": {
952
+ "type": "unknown",
953
+ "mutable": false,
954
+ "complexType": {
955
+ "original": "Function",
956
+ "resolved": "Function",
957
+ "references": {
958
+ "Function": {
959
+ "location": "global"
960
+ }
961
+ }
962
+ },
963
+ "required": false,
964
+ "optional": false,
965
+ "docs": {
966
+ "tags": [],
967
+ "text": "The callback that will be invoked when all chunks have been uploaded for a file.\nIt gets the file for which the chunks have been uploaded as the first parameter,\nand the `done` function as second. `done()` needs to be invoked when everything\nneeded to finish the upload process is done."
968
+ },
969
+ "defaultValue": "function(_file, done) {\n done();\n }"
970
+ },
971
+ "hiddenInputContainer": {
972
+ "type": "string",
973
+ "mutable": false,
974
+ "complexType": {
975
+ "original": "string | HTMLElement",
976
+ "resolved": "HTMLElement | string",
977
+ "references": {
978
+ "HTMLElement": {
979
+ "location": "global"
980
+ }
981
+ }
982
+ },
983
+ "required": false,
984
+ "optional": false,
985
+ "docs": {
986
+ "tags": [],
987
+ "text": "This is the element the hidden input field (which is used when clicking on the\ndropzone to trigger file selection) will be appended to. This might\nbe important in case you use frameworks to switch the content of your page.\n\nCan be a selector string, or an element directly."
988
+ },
989
+ "attribute": "hidden-input-container",
990
+ "reflect": false,
991
+ "defaultValue": "\"body\""
992
+ },
993
+ "localization": {
994
+ "type": "unknown",
995
+ "mutable": false,
996
+ "complexType": {
997
+ "original": "StzhUploadLocalizedText",
998
+ "resolved": "StzhLocaleComponent & { description: string; button: string; cancelUpload: string; uploadCanceled: string; cancelUploadConfirmation: string; removeFile: string; maxFilesExceeded: string; serverError: string; accessError: string; responseError: string; invalidFileType: string; fileTooBig: string; fileTooBigServer: string; }",
999
+ "references": {
1000
+ "StzhUploadLocalizedText": {
1001
+ "location": "import",
1002
+ "path": "./stzh-upload.localization"
1003
+ }
1004
+ }
1005
+ },
1006
+ "required": false,
1007
+ "optional": false,
1008
+ "docs": {
1009
+ "tags": [],
1010
+ "text": "Translation strings."
1011
+ }
1012
+ }
1013
+ };
1014
+ }
1015
+ static get events() {
1016
+ return [{
1017
+ "method": "stzhFileAdded",
1018
+ "name": "stzhFileAdded",
1019
+ "bubbles": true,
1020
+ "cancelable": true,
1021
+ "composed": true,
1022
+ "docs": {
1023
+ "tags": [],
1024
+ "text": "File added"
1025
+ },
1026
+ "complexType": {
1027
+ "original": "StzhUploadFileAddedEvent",
1028
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1029
+ "references": {
1030
+ "StzhUploadFileAddedEvent": {
1031
+ "location": "import",
1032
+ "path": "../../index"
1033
+ }
1034
+ }
1035
+ }
1036
+ }, {
1037
+ "method": "stzhFilesAdded",
1038
+ "name": "stzhFilesAdded",
1039
+ "bubbles": true,
1040
+ "cancelable": true,
1041
+ "composed": true,
1042
+ "docs": {
1043
+ "tags": [],
1044
+ "text": "Files added (multiple)"
1045
+ },
1046
+ "complexType": {
1047
+ "original": "StzhUploadFilesAddedEvent",
1048
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1049
+ "references": {
1050
+ "StzhUploadFilesAddedEvent": {
1051
+ "location": "import",
1052
+ "path": "../../index"
1053
+ }
1054
+ }
1055
+ }
1056
+ }, {
1057
+ "method": "stzhFileRemoved",
1058
+ "name": "stzhFileRemoved",
1059
+ "bubbles": true,
1060
+ "cancelable": true,
1061
+ "composed": true,
1062
+ "docs": {
1063
+ "tags": [],
1064
+ "text": "File removed"
1065
+ },
1066
+ "complexType": {
1067
+ "original": "StzhUploadFileRemovedEvent",
1068
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1069
+ "references": {
1070
+ "StzhUploadFileRemovedEvent": {
1071
+ "location": "import",
1072
+ "path": "../../index"
1073
+ }
1074
+ }
1075
+ }
1076
+ }, {
1077
+ "method": "stzhSending",
1078
+ "name": "stzhSending",
1079
+ "bubbles": true,
1080
+ "cancelable": true,
1081
+ "composed": true,
1082
+ "docs": {
1083
+ "tags": [],
1084
+ "text": "Before sending file (add additional data before request if necessary)"
1085
+ },
1086
+ "complexType": {
1087
+ "original": "StzhUploadSendingEvent",
1088
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; xhr: XMLHttpRequest; formData: FormData; }",
1089
+ "references": {
1090
+ "StzhUploadSendingEvent": {
1091
+ "location": "import",
1092
+ "path": "../../index"
1093
+ }
1094
+ }
1095
+ }
1096
+ }, {
1097
+ "method": "stzhSendingMultiple",
1098
+ "name": "stzhSendingMultiple",
1099
+ "bubbles": true,
1100
+ "cancelable": true,
1101
+ "composed": true,
1102
+ "docs": {
1103
+ "tags": [],
1104
+ "text": "Before sending multiple files (add additional data before request if necessary)"
1105
+ },
1106
+ "complexType": {
1107
+ "original": "StzhUploadSendingMultipleEvent",
1108
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; xhr: XMLHttpRequest; formData: FormData; }",
1109
+ "references": {
1110
+ "StzhUploadSendingMultipleEvent": {
1111
+ "location": "import",
1112
+ "path": "../../index"
1113
+ }
1114
+ }
1115
+ }
1116
+ }, {
1117
+ "method": "stzhProcessing",
1118
+ "name": "stzhProcessing",
1119
+ "bubbles": true,
1120
+ "cancelable": true,
1121
+ "composed": true,
1122
+ "docs": {
1123
+ "tags": [],
1124
+ "text": "Files starting to get processed"
1125
+ },
1126
+ "complexType": {
1127
+ "original": "StzhUploadProcessingEvent",
1128
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1129
+ "references": {
1130
+ "StzhUploadProcessingEvent": {
1131
+ "location": "import",
1132
+ "path": "../../index"
1133
+ }
1134
+ }
1135
+ }
1136
+ }, {
1137
+ "method": "stzhProcessingMultiple",
1138
+ "name": "stzhProcessingMultiple",
1139
+ "bubbles": true,
1140
+ "cancelable": true,
1141
+ "composed": true,
1142
+ "docs": {
1143
+ "tags": [],
1144
+ "text": "Files starting to get processed (multiple)"
1145
+ },
1146
+ "complexType": {
1147
+ "original": "StzhUploadProcessingMultipleEvent",
1148
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1149
+ "references": {
1150
+ "StzhUploadProcessingMultipleEvent": {
1151
+ "location": "import",
1152
+ "path": "../../index"
1153
+ }
1154
+ }
1155
+ }
1156
+ }, {
1157
+ "method": "stzhProgress",
1158
+ "name": "stzhProgress",
1159
+ "bubbles": true,
1160
+ "cancelable": true,
1161
+ "composed": true,
1162
+ "docs": {
1163
+ "tags": [],
1164
+ "text": "Upload file progress during upload"
1165
+ },
1166
+ "complexType": {
1167
+ "original": "StzhUploadProgressEvent",
1168
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; progress: number; bytesSent: number; }",
1169
+ "references": {
1170
+ "StzhUploadProgressEvent": {
1171
+ "location": "import",
1172
+ "path": "../../index"
1173
+ }
1174
+ }
1175
+ }
1176
+ }, {
1177
+ "method": "stzhProgressTotal",
1178
+ "name": "stzhProgressTotal",
1179
+ "bubbles": true,
1180
+ "cancelable": true,
1181
+ "composed": true,
1182
+ "docs": {
1183
+ "tags": [],
1184
+ "text": "Upload total file progress during upload"
1185
+ },
1186
+ "complexType": {
1187
+ "original": "StzhUploadProgressTotalEvent",
1188
+ "resolved": "{ component: \"stzh-upload\"; totalUploadProgress: number; totalBytes: number; totalBytesSent: number; }",
1189
+ "references": {
1190
+ "StzhUploadProgressTotalEvent": {
1191
+ "location": "import",
1192
+ "path": "../../index"
1193
+ }
1194
+ }
1195
+ }
1196
+ }, {
1197
+ "method": "stzhError",
1198
+ "name": "stzhError",
1199
+ "bubbles": true,
1200
+ "cancelable": true,
1201
+ "composed": true,
1202
+ "docs": {
1203
+ "tags": [],
1204
+ "text": "File error"
1205
+ },
1206
+ "complexType": {
1207
+ "original": "StzhUploadErrorEvent",
1208
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; message: string; xhr: XMLHttpRequest; }",
1209
+ "references": {
1210
+ "StzhUploadErrorEvent": {
1211
+ "location": "import",
1212
+ "path": "../../index"
1213
+ }
1214
+ }
1215
+ }
1216
+ }, {
1217
+ "method": "stzhErrorMultiple",
1218
+ "name": "stzhErrorMultiple",
1219
+ "bubbles": true,
1220
+ "cancelable": true,
1221
+ "composed": true,
1222
+ "docs": {
1223
+ "tags": [],
1224
+ "text": "Files error (multiple files)"
1225
+ },
1226
+ "complexType": {
1227
+ "original": "StzhUploadErrorMultipleEvent",
1228
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; message: string; xhr: XMLHttpRequest; }",
1229
+ "references": {
1230
+ "StzhUploadErrorMultipleEvent": {
1231
+ "location": "import",
1232
+ "path": "../../index"
1233
+ }
1234
+ }
1235
+ }
1236
+ }, {
1237
+ "method": "stzhSuccess",
1238
+ "name": "stzhSuccess",
1239
+ "bubbles": true,
1240
+ "cancelable": true,
1241
+ "composed": true,
1242
+ "docs": {
1243
+ "tags": [],
1244
+ "text": "File successfully uploaded"
1245
+ },
1246
+ "complexType": {
1247
+ "original": "StzhUploadSuccessEvent",
1248
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; responseText: string; event: ProgressEvent<EventTarget>; }",
1249
+ "references": {
1250
+ "StzhUploadSuccessEvent": {
1251
+ "location": "import",
1252
+ "path": "../../index"
1253
+ }
1254
+ }
1255
+ }
1256
+ }, {
1257
+ "method": "stzhSuccessMultiple",
1258
+ "name": "stzhSuccessMultiple",
1259
+ "bubbles": true,
1260
+ "cancelable": true,
1261
+ "composed": true,
1262
+ "docs": {
1263
+ "tags": [],
1264
+ "text": "Files successfully uploaded (multiple files)"
1265
+ },
1266
+ "complexType": {
1267
+ "original": "StzhUploadSuccessMultipleEvent",
1268
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; responseText: string; event: ProgressEvent<EventTarget>; }",
1269
+ "references": {
1270
+ "StzhUploadSuccessMultipleEvent": {
1271
+ "location": "import",
1272
+ "path": "../../index"
1273
+ }
1274
+ }
1275
+ }
1276
+ }, {
1277
+ "method": "stzhCanceled",
1278
+ "name": "stzhCanceled",
1279
+ "bubbles": true,
1280
+ "cancelable": true,
1281
+ "composed": true,
1282
+ "docs": {
1283
+ "tags": [],
1284
+ "text": "Canceled file upload"
1285
+ },
1286
+ "complexType": {
1287
+ "original": "StzhUploadCanceledEvent",
1288
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1289
+ "references": {
1290
+ "StzhUploadCanceledEvent": {
1291
+ "location": "import",
1292
+ "path": "../../index"
1293
+ }
1294
+ }
1295
+ }
1296
+ }, {
1297
+ "method": "stzhCanceledMultiple",
1298
+ "name": "stzhCanceledMultiple",
1299
+ "bubbles": true,
1300
+ "cancelable": true,
1301
+ "composed": true,
1302
+ "docs": {
1303
+ "tags": [],
1304
+ "text": "Canceled file upload (multiple files)"
1305
+ },
1306
+ "complexType": {
1307
+ "original": "StzhUploadCanceledMultipleEvent",
1308
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1309
+ "references": {
1310
+ "StzhUploadCanceledMultipleEvent": {
1311
+ "location": "import",
1312
+ "path": "../../index"
1313
+ }
1314
+ }
1315
+ }
1316
+ }, {
1317
+ "method": "stzhComplete",
1318
+ "name": "stzhComplete",
1319
+ "bubbles": true,
1320
+ "cancelable": true,
1321
+ "composed": true,
1322
+ "docs": {
1323
+ "tags": [],
1324
+ "text": "Completed upload (successfully or with error)"
1325
+ },
1326
+ "complexType": {
1327
+ "original": "StzhUploadCompleteEvent",
1328
+ "resolved": "{ component: \"stzh-upload\"; file: StzhUploadFile; }",
1329
+ "references": {
1330
+ "StzhUploadCompleteEvent": {
1331
+ "location": "import",
1332
+ "path": "../../index"
1333
+ }
1334
+ }
1335
+ }
1336
+ }, {
1337
+ "method": "stzhCompleteMultiple",
1338
+ "name": "stzhCompleteMultiple",
1339
+ "bubbles": true,
1340
+ "cancelable": true,
1341
+ "composed": true,
1342
+ "docs": {
1343
+ "tags": [],
1344
+ "text": "Completed upload (successfully or with error, multiple files)"
1345
+ },
1346
+ "complexType": {
1347
+ "original": "StzhUploadCompleteMultipleEvent",
1348
+ "resolved": "{ component: \"stzh-upload\"; files: StzhUploadFile[]; }",
1349
+ "references": {
1350
+ "StzhUploadCompleteMultipleEvent": {
1351
+ "location": "import",
1352
+ "path": "../../index"
1353
+ }
1354
+ }
1355
+ }
1356
+ }];
1357
+ }
1358
+ static get methods() {
1359
+ return {
1360
+ "processQueue": {
1361
+ "complexType": {
1362
+ "signature": "() => Promise<any>",
1363
+ "parameters": [],
1364
+ "references": {
1365
+ "Promise": {
1366
+ "location": "global"
1367
+ }
1368
+ },
1369
+ "return": "Promise<any>"
1370
+ },
1371
+ "docs": {
1372
+ "text": "",
1373
+ "tags": []
1374
+ }
1375
+ }
1376
+ };
1377
+ }
1378
+ static get elementRef() { return "element"; }
1379
+ static get watchers() {
1380
+ return [{
1381
+ "propName": "existingFiles",
1382
+ "methodName": "existingFilesWatcher"
1383
+ }, {
1384
+ "propName": "disabled",
1385
+ "methodName": "disabledWatcher"
1386
+ }, {
1387
+ "propName": "error",
1388
+ "methodName": "errorWatcher"
1389
+ }];
1390
+ }
1391
+ }