@zanichelli/albe-web-components 7.3.2 → 7.3.4

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 (618) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{breakpoints-88c4fd6c.js → breakpoints-776c8868.js} +1 -1
  3. package/dist/cjs/{icons-a9849a41.js → icons-dea2e345.js} +763 -763
  4. package/dist/cjs/{index-7a9a8430.js → index-677bbad4.js} +317 -317
  5. package/dist/cjs/index-e3299e0a.js +6 -30
  6. package/dist/cjs/index.cjs.js +5 -5
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{utils-305151da.js → utils-3b7e4fdf.js} +94 -94
  9. package/dist/cjs/{utils-f460d1c0.js → utils-49853b30.js} +75 -75
  10. package/dist/cjs/web-components-library.cjs.js +1 -1
  11. package/dist/cjs/z-alert.cjs.entry.js +8 -8
  12. package/dist/cjs/z-anchor-navigation.cjs.entry.js +42 -42
  13. package/dist/cjs/z-app-header_11.cjs.entry.js +1050 -0
  14. package/dist/cjs/z-aria-alert.cjs.entry.js +10 -10
  15. package/dist/cjs/z-avatar.cjs.entry.js +33 -33
  16. package/dist/cjs/z-body.cjs.entry.js +9 -9
  17. package/dist/cjs/z-button-sort.cjs.entry.js +42 -42
  18. package/dist/cjs/z-card.cjs.entry.js +55 -55
  19. package/dist/cjs/z-carousel.cjs.entry.js +135 -135
  20. package/dist/cjs/z-chip.cjs.entry.js +29 -29
  21. package/dist/cjs/z-combobox.cjs.entry.js +190 -190
  22. package/dist/cjs/z-contextual-menu.cjs.entry.js +35 -35
  23. package/dist/cjs/z-cover-hero.cjs.entry.js +46 -46
  24. package/dist/cjs/z-date-picker.cjs.entry.js +164 -164
  25. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +973 -110
  26. package/dist/cjs/z-file-upload.cjs.entry.js +174 -174
  27. package/dist/cjs/z-file.cjs.entry.js +37 -37
  28. package/dist/cjs/z-ghost-loading.cjs.entry.js +9 -9
  29. package/dist/cjs/z-heading.cjs.entry.js +9 -9
  30. package/dist/cjs/z-info-box.cjs.entry.js +14 -14
  31. package/dist/cjs/z-info-reveal.cjs.entry.js +54 -54
  32. package/dist/cjs/z-link.cjs.entry.js +63 -63
  33. package/dist/cjs/z-logo.cjs.entry.js +15 -15
  34. package/dist/cjs/z-menu-section.cjs.entry.js +44 -44
  35. package/dist/cjs/z-menu.cjs.entry.js +109 -109
  36. package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
  37. package/dist/cjs/z-myz-card-alert.cjs.entry.js +52 -52
  38. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +25 -25
  39. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +8 -8
  40. package/dist/cjs/z-myz-card-footer.cjs.entry.js +58 -58
  41. package/dist/cjs/z-myz-card-icon.cjs.entry.js +12 -12
  42. package/dist/cjs/z-myz-card-info.cjs.entry.js +118 -118
  43. package/dist/cjs/z-myz-card-list.cjs.entry.js +27 -27
  44. package/dist/cjs/z-myz-card_4.cjs.entry.js +82 -82
  45. package/dist/cjs/z-myz-list-item.cjs.entry.js +26 -26
  46. package/dist/cjs/z-myz-list.cjs.entry.js +24 -24
  47. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +60 -60
  48. package/dist/cjs/z-navigation-tab.cjs.entry.js +62 -62
  49. package/dist/cjs/z-navigation-tabs.cjs.entry.js +115 -115
  50. package/dist/cjs/z-notification.cjs.entry.js +30 -30
  51. package/dist/cjs/z-otp.cjs.entry.js +30 -30
  52. package/dist/cjs/z-pagination.cjs.entry.js +219 -219
  53. package/dist/cjs/z-panel-elem.cjs.entry.js +19 -19
  54. package/dist/cjs/z-pocket-message.cjs.entry.js +8 -8
  55. package/dist/cjs/z-pocket_3.cjs.entry.js +102 -102
  56. package/dist/cjs/z-popover.cjs.entry.js +317 -317
  57. package/dist/cjs/z-range-picker.cjs.entry.js +331 -331
  58. package/dist/cjs/z-section-title.cjs.entry.js +22 -22
  59. package/dist/cjs/z-select.cjs.entry.js +322 -322
  60. package/dist/cjs/z-skip-to-content.cjs.entry.js +55 -55
  61. package/dist/cjs/z-slideshow.cjs.entry.js +118 -118
  62. package/dist/cjs/z-stepper-item.cjs.entry.js +11 -11
  63. package/dist/cjs/z-stepper.cjs.entry.js +8 -8
  64. package/dist/cjs/z-table-body.cjs.entry.js +13 -13
  65. package/dist/cjs/z-table-cell.cjs.entry.js +25 -25
  66. package/dist/cjs/z-table-empty-box.cjs.entry.js +21 -21
  67. package/dist/cjs/z-table-expanded-row.cjs.entry.js +8 -8
  68. package/dist/cjs/z-table-footer.cjs.entry.js +12 -12
  69. package/dist/cjs/z-table-head.cjs.entry.js +12 -12
  70. package/dist/cjs/z-table-header-row.cjs.entry.js +11 -11
  71. package/dist/cjs/z-table-header.cjs.entry.js +71 -71
  72. package/dist/cjs/z-table-row.cjs.entry.js +32 -32
  73. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +8 -8
  74. package/dist/cjs/z-table.cjs.entry.js +69 -69
  75. package/dist/cjs/z-tag.cjs.entry.js +11 -11
  76. package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
  77. package/dist/cjs/z-toast-notification.cjs.entry.js +187 -187
  78. package/dist/cjs/z-toggle-button.cjs.entry.js +25 -25
  79. package/dist/cjs/z-toggle-switch.cjs.entry.js +40 -40
  80. package/dist/cjs/z-tooltip.cjs.entry.js +26 -26
  81. package/dist/cjs/z-typography.cjs.entry.js +19 -19
  82. package/dist/cjs/z-visually-hidden.cjs.entry.js +8 -8
  83. package/dist/collection/beans/index.js +318 -318
  84. package/dist/collection/components/buttons/z-button/index.js +245 -245
  85. package/dist/collection/components/buttons/z-button/styles.css +149 -149
  86. package/dist/collection/components/buttons/z-button-sort/index.js +220 -220
  87. package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
  88. package/dist/collection/components/buttons/z-chip/index.js +155 -155
  89. package/dist/collection/components/buttons/z-chip/styles.css +138 -138
  90. package/dist/collection/components/buttons/z-toggle-button/index.js +146 -146
  91. package/dist/collection/components/buttons/z-toggle-button/styles.css +60 -60
  92. package/dist/collection/components/buttons/z-toggle-switch/index.js +144 -144
  93. package/dist/collection/components/buttons/z-toggle-switch/styles.css +104 -104
  94. package/dist/collection/components/date-picker/styles.css +436 -436
  95. package/dist/collection/components/date-picker/utils.js +76 -76
  96. package/dist/collection/components/date-picker/z-date-picker/index.js +295 -295
  97. package/dist/collection/components/date-picker/z-range-picker/index.js +499 -499
  98. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +53 -53
  99. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +51 -51
  100. package/dist/collection/components/file-upload/z-file/index.js +131 -131
  101. package/dist/collection/components/file-upload/z-file/styles.css +23 -23
  102. package/dist/collection/components/file-upload/z-file-upload/index.js +363 -363
  103. package/dist/collection/components/file-upload/z-file-upload/styles.css +84 -84
  104. package/dist/collection/components/icons/icons.js +764 -764
  105. package/dist/collection/components/icons/z-icon/index.js +114 -114
  106. package/dist/collection/components/icons/z-icon/styles.css +14 -14
  107. package/dist/collection/components/index.js +8 -8
  108. package/dist/collection/components/indicators/z-stepper/index.js +21 -21
  109. package/dist/collection/components/indicators/z-stepper/styles.css +19 -19
  110. package/dist/collection/components/indicators/z-stepper-item/index.js +93 -93
  111. package/dist/collection/components/indicators/z-stepper-item/styles.css +114 -114
  112. package/dist/collection/components/inputs/z-combobox/index.js +570 -570
  113. package/dist/collection/components/inputs/z-combobox/styles.css +197 -197
  114. package/dist/collection/components/inputs/z-input/index.js +764 -764
  115. package/dist/collection/components/inputs/z-input/styles.css +398 -398
  116. package/dist/collection/components/inputs/z-input-message/index.js +89 -89
  117. package/dist/collection/components/inputs/z-input-message/styles.css +48 -48
  118. package/dist/collection/components/inputs/z-searchbar/index.js +599 -611
  119. package/dist/collection/components/inputs/z-searchbar/styles.css +185 -234
  120. package/dist/collection/components/inputs/z-select/index.js +754 -754
  121. package/dist/collection/components/inputs/z-select/styles.css +123 -123
  122. package/dist/collection/components/list/z-list/index.js +91 -91
  123. package/dist/collection/components/list/z-list/styles.css +6 -6
  124. package/dist/collection/components/list/z-list-element/index.js +508 -508
  125. package/dist/collection/components/list/z-list-element/styles.css +121 -121
  126. package/dist/collection/components/list/z-list-group/index.js +175 -175
  127. package/dist/collection/components/list/z-list-group/styles.css +21 -21
  128. package/dist/collection/components/list/z-toast-notification-list/index.js +105 -105
  129. package/dist/collection/components/list/z-toast-notification-list/styles.css +100 -100
  130. package/dist/collection/components/logo/z-logo/index.js +131 -131
  131. package/dist/collection/components/logo/z-logo/styles.css +29 -29
  132. package/dist/collection/components/modal/z-modal/index.js +319 -312
  133. package/dist/collection/components/modal/z-modal/styles.css +198 -185
  134. package/dist/collection/components/navigation/tabs/navigation-tab.css +136 -136
  135. package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +242 -242
  136. package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +264 -264
  137. package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +200 -200
  138. package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +104 -104
  139. package/dist/collection/components/navigation/z-app-header/index.js +428 -305
  140. package/dist/collection/components/navigation/z-app-header/index.stories.js +393 -0
  141. package/dist/collection/components/navigation/z-app-header/styles.css +420 -419
  142. package/dist/collection/components/navigation/z-link/index.js +317 -317
  143. package/dist/collection/components/navigation/z-link/styles.css +167 -167
  144. package/dist/collection/components/navigation/z-menu/index.js +250 -249
  145. package/dist/collection/components/navigation/z-menu/styles.css +213 -213
  146. package/dist/collection/components/navigation/z-menu-section/index.js +125 -125
  147. package/dist/collection/components/navigation/z-menu-section/styles.css +123 -124
  148. package/dist/collection/components/notification/z-info-box/index.js +85 -85
  149. package/dist/collection/components/notification/z-info-box/styles.css +23 -23
  150. package/dist/collection/components/notification/z-notification/index.js +195 -195
  151. package/dist/collection/components/notification/z-notification/styles.css +114 -114
  152. package/dist/collection/components/notification/z-toast-notification/index.js +399 -399
  153. package/dist/collection/components/notification/z-toast-notification/styles.css +254 -254
  154. package/dist/collection/components/notification/z-tooltip/index.js +157 -157
  155. package/dist/collection/components/notification/z-tooltip/styles.css +17 -17
  156. package/dist/collection/components/panel/z-panel-elem/index.js +193 -193
  157. package/dist/collection/components/panel/z-panel-elem/styles.css +39 -39
  158. package/dist/collection/components/z-anchor-navigation/index.js +95 -95
  159. package/dist/collection/components/z-anchor-navigation/styles.css +129 -129
  160. package/dist/collection/components/z-aria-alert/index.js +39 -39
  161. package/dist/collection/components/z-avatar/index.js +142 -142
  162. package/dist/collection/components/z-avatar/styles.css +32 -32
  163. package/dist/collection/components/z-card/index.js +186 -186
  164. package/dist/collection/components/z-card/styles.css +206 -206
  165. package/dist/collection/components/z-carousel/index.js +300 -300
  166. package/dist/collection/components/z-carousel/styles.css +129 -129
  167. package/dist/collection/components/z-contextual-menu/index.js +126 -126
  168. package/dist/collection/components/z-contextual-menu/styles.css +60 -60
  169. package/dist/collection/components/z-cover-hero/index.js +146 -146
  170. package/dist/collection/components/z-cover-hero/styles.css +93 -93
  171. package/dist/collection/components/z-divider/index.js +95 -95
  172. package/dist/collection/components/z-divider/styles.css +37 -37
  173. package/dist/collection/components/z-ghost-loading/index.js +18 -18
  174. package/dist/collection/components/z-ghost-loading/styles.css +34 -34
  175. package/dist/collection/components/z-info-reveal/index.js +147 -147
  176. package/dist/collection/components/z-info-reveal/styles.css +103 -103
  177. package/dist/collection/components/z-offcanvas/index.js +162 -178
  178. package/dist/collection/components/z-offcanvas/styles.css +182 -182
  179. package/dist/collection/components/z-pagination/index.js +435 -435
  180. package/dist/collection/components/z-pagination/styles.css +199 -199
  181. package/dist/collection/components/z-popover/index.js +513 -513
  182. package/dist/collection/components/z-popover/styles.css +147 -147
  183. package/dist/collection/components/z-section-title/index.js +88 -88
  184. package/dist/collection/components/z-section-title/styles.css +44 -44
  185. package/dist/collection/components/z-skip-to-content/index.js +139 -139
  186. package/dist/collection/components/z-skip-to-content/styles.css +80 -80
  187. package/dist/collection/components/z-table/z-table/index.js +352 -352
  188. package/dist/collection/components/z-table/z-table/styles.css +115 -115
  189. package/dist/collection/components/z-table/z-table-body/index.js +23 -23
  190. package/dist/collection/components/z-table/z-table-body/styles.css +9 -9
  191. package/dist/collection/components/z-table/z-table-cell/index.js +86 -86
  192. package/dist/collection/components/z-table/z-table-cell/styles.css +58 -58
  193. package/dist/collection/components/z-table/z-table-empty-box/index.js +72 -72
  194. package/dist/collection/components/z-table/z-table-empty-box/styles.css +38 -38
  195. package/dist/collection/components/z-table/z-table-expanded-row/index.js +39 -39
  196. package/dist/collection/components/z-table/z-table-expanded-row/styles.css +9 -9
  197. package/dist/collection/components/z-table/z-table-footer/index.js +22 -22
  198. package/dist/collection/components/z-table/z-table-footer/styles.css +5 -5
  199. package/dist/collection/components/z-table/z-table-head/index.js +22 -22
  200. package/dist/collection/components/z-table/z-table-head/styles.css +5 -5
  201. package/dist/collection/components/z-table/z-table-header/index.js +238 -238
  202. package/dist/collection/components/z-table/z-table-header/styles.css +71 -71
  203. package/dist/collection/components/z-table/z-table-header-row/index.js +41 -41
  204. package/dist/collection/components/z-table/z-table-header-row/styles.css +13 -13
  205. package/dist/collection/components/z-table/z-table-row/index.js +92 -92
  206. package/dist/collection/components/z-table/z-table-row/styles.css +45 -45
  207. package/dist/collection/components/z-table/z-table-sticky-footer/index.js +21 -21
  208. package/dist/collection/components/z-table/z-table-sticky-footer/styles.css +11 -11
  209. package/dist/collection/components/z-tag/index.js +65 -65
  210. package/dist/collection/components/z-tag/styles.css +46 -46
  211. package/dist/collection/components/z-visually-hidden/index.js +18 -18
  212. package/dist/collection/components/z-visually-hidden/styles.css +12 -12
  213. package/dist/collection/constants/breakpoints.js +3 -3
  214. package/dist/collection/constants/icons.js +6 -6
  215. package/dist/collection/deprecated/typography/z-body/index.js +68 -68
  216. package/dist/collection/deprecated/typography/z-heading/index.js +68 -68
  217. package/dist/collection/deprecated/typography/z-typography/index.js +91 -91
  218. package/dist/collection/deprecated/typography/z-typography/styles.css +65 -65
  219. package/dist/collection/index.js +7 -7
  220. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +129 -129
  221. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -44
  222. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +151 -151
  223. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -62
  224. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +22 -22
  225. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -13
  226. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +93 -93
  227. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -11
  228. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -177
  229. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +72 -72
  230. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +219 -219
  231. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +182 -182
  232. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +22 -22
  233. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -20
  234. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +109 -109
  235. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +59 -59
  236. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +81 -81
  237. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -69
  238. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +199 -199
  239. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -93
  240. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +60 -60
  241. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -41
  242. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +78 -78
  243. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -4
  244. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +192 -192
  245. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +66 -66
  246. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +120 -120
  247. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +102 -102
  248. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +191 -191
  249. package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +44 -44
  250. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +84 -84
  251. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +41 -41
  252. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +93 -93
  253. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +27 -27
  254. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +22 -22
  255. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +44 -44
  256. package/dist/collection/snowflakes/myz/z-alert/index.js +47 -47
  257. package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
  258. package/dist/collection/snowflakes/myz/z-otp/index.js +120 -120
  259. package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
  260. package/dist/collection/snowflakes/myz/z-slideshow/index.js +180 -180
  261. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +127 -127
  262. package/dist/collection/utils/storybook-utils.js +51 -51
  263. package/dist/collection/utils/utils.js +113 -113
  264. package/dist/esm/{breakpoints-c386984e.js → breakpoints-14432d05.js} +1 -1
  265. package/dist/esm/{icons-6cd265c6.js → icons-55b0b113.js} +763 -763
  266. package/dist/esm/{index-e36ec4a4.js → index-03c01696.js} +317 -317
  267. package/dist/esm/index-a2ca4b97.js +6 -30
  268. package/dist/esm/index.js +5 -5
  269. package/dist/esm/loader.js +1 -1
  270. package/dist/esm/polyfills/core-js.js +0 -0
  271. package/dist/esm/polyfills/dom.js +0 -0
  272. package/dist/esm/polyfills/es5-html-element.js +0 -0
  273. package/dist/esm/polyfills/index.js +0 -0
  274. package/dist/esm/polyfills/system.js +0 -0
  275. package/dist/esm/{utils-9641b4ed.js → utils-a7846d0f.js} +75 -75
  276. package/dist/esm/{utils-970ac457.js → utils-f8eb3944.js} +95 -95
  277. package/dist/esm/web-components-library.js +1 -1
  278. package/dist/esm/z-alert.entry.js +8 -8
  279. package/dist/esm/z-anchor-navigation.entry.js +42 -42
  280. package/dist/esm/z-app-header_11.entry.js +1036 -0
  281. package/dist/esm/z-aria-alert.entry.js +10 -10
  282. package/dist/esm/z-avatar.entry.js +33 -33
  283. package/dist/esm/z-body.entry.js +9 -9
  284. package/dist/esm/z-button-sort.entry.js +42 -42
  285. package/dist/esm/z-card.entry.js +55 -55
  286. package/dist/esm/z-carousel.entry.js +135 -135
  287. package/dist/esm/z-chip.entry.js +29 -29
  288. package/dist/esm/z-combobox.entry.js +190 -190
  289. package/dist/esm/z-contextual-menu.entry.js +35 -35
  290. package/dist/esm/z-cover-hero.entry.js +46 -46
  291. package/dist/esm/z-date-picker.entry.js +164 -164
  292. package/dist/esm/z-dragdrop-area_2.entry.js +973 -110
  293. package/dist/esm/z-file-upload.entry.js +174 -174
  294. package/dist/esm/z-file.entry.js +37 -37
  295. package/dist/esm/z-ghost-loading.entry.js +9 -9
  296. package/dist/esm/z-heading.entry.js +9 -9
  297. package/dist/esm/z-info-box.entry.js +14 -14
  298. package/dist/esm/z-info-reveal.entry.js +54 -54
  299. package/dist/esm/z-link.entry.js +63 -63
  300. package/dist/esm/z-logo.entry.js +15 -15
  301. package/dist/esm/z-menu-section.entry.js +44 -44
  302. package/dist/esm/z-menu.entry.js +109 -109
  303. package/dist/esm/z-messages-pocket.entry.js +36 -36
  304. package/dist/esm/z-myz-card-alert.entry.js +52 -52
  305. package/dist/esm/z-myz-card-dictionary.entry.js +25 -25
  306. package/dist/esm/z-myz-card-footer-sections.entry.js +8 -8
  307. package/dist/esm/z-myz-card-footer.entry.js +58 -58
  308. package/dist/esm/z-myz-card-icon.entry.js +12 -12
  309. package/dist/esm/z-myz-card-info.entry.js +118 -118
  310. package/dist/esm/z-myz-card-list.entry.js +27 -27
  311. package/dist/esm/z-myz-card_4.entry.js +82 -82
  312. package/dist/esm/z-myz-list-item.entry.js +26 -26
  313. package/dist/esm/z-myz-list.entry.js +24 -24
  314. package/dist/esm/z-navigation-tab-link.entry.js +60 -60
  315. package/dist/esm/z-navigation-tab.entry.js +62 -62
  316. package/dist/esm/z-navigation-tabs.entry.js +115 -115
  317. package/dist/esm/z-notification.entry.js +30 -30
  318. package/dist/esm/z-otp.entry.js +30 -30
  319. package/dist/esm/z-pagination.entry.js +219 -219
  320. package/dist/esm/z-panel-elem.entry.js +19 -19
  321. package/dist/esm/z-pocket-message.entry.js +8 -8
  322. package/dist/esm/z-pocket_3.entry.js +102 -102
  323. package/dist/esm/z-popover.entry.js +317 -317
  324. package/dist/esm/z-range-picker.entry.js +331 -331
  325. package/dist/esm/z-section-title.entry.js +22 -22
  326. package/dist/esm/z-select.entry.js +322 -322
  327. package/dist/esm/z-skip-to-content.entry.js +55 -55
  328. package/dist/esm/z-slideshow.entry.js +118 -118
  329. package/dist/esm/z-stepper-item.entry.js +11 -11
  330. package/dist/esm/z-stepper.entry.js +8 -8
  331. package/dist/esm/z-table-body.entry.js +13 -13
  332. package/dist/esm/z-table-cell.entry.js +25 -25
  333. package/dist/esm/z-table-empty-box.entry.js +21 -21
  334. package/dist/esm/z-table-expanded-row.entry.js +8 -8
  335. package/dist/esm/z-table-footer.entry.js +12 -12
  336. package/dist/esm/z-table-head.entry.js +12 -12
  337. package/dist/esm/z-table-header-row.entry.js +11 -11
  338. package/dist/esm/z-table-header.entry.js +71 -71
  339. package/dist/esm/z-table-row.entry.js +32 -32
  340. package/dist/esm/z-table-sticky-footer.entry.js +8 -8
  341. package/dist/esm/z-table.entry.js +69 -69
  342. package/dist/esm/z-tag.entry.js +11 -11
  343. package/dist/esm/z-toast-notification-list.entry.js +45 -45
  344. package/dist/esm/z-toast-notification.entry.js +187 -187
  345. package/dist/esm/z-toggle-button.entry.js +25 -25
  346. package/dist/esm/z-toggle-switch.entry.js +40 -40
  347. package/dist/esm/z-tooltip.entry.js +26 -26
  348. package/dist/esm/z-typography.entry.js +19 -19
  349. package/dist/esm/z-visually-hidden.entry.js +8 -8
  350. package/dist/types/beans/index.d.ts +374 -374
  351. package/dist/types/components/buttons/z-button/index.d.ts +29 -29
  352. package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
  353. package/dist/types/components/buttons/z-chip/index.d.ts +20 -20
  354. package/dist/types/components/buttons/z-toggle-button/index.d.ts +17 -17
  355. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +17 -17
  356. package/dist/types/components/date-picker/utils.d.ts +4 -4
  357. package/dist/types/components/date-picker/z-date-picker/index.d.ts +29 -29
  358. package/dist/types/components/date-picker/z-range-picker/index.d.ts +42 -42
  359. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -9
  360. package/dist/types/components/file-upload/z-file/index.d.ts +22 -22
  361. package/dist/types/components/file-upload/z-file-upload/index.d.ts +52 -52
  362. package/dist/types/components/icons/icons.d.ts +1362 -1362
  363. package/dist/types/components/icons/z-icon/index.d.ts +14 -14
  364. package/dist/types/components/indicators/z-stepper/index.d.ts +6 -6
  365. package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -19
  366. package/dist/types/components/inputs/z-combobox/index.d.ts +71 -71
  367. package/dist/types/components/inputs/z-input/index.d.ts +86 -86
  368. package/dist/types/components/inputs/z-input-message/index.d.ts +12 -12
  369. package/dist/types/components/inputs/z-searchbar/index.d.ts +73 -75
  370. package/dist/types/components/inputs/z-select/index.d.ts +82 -82
  371. package/dist/types/components/list/z-list/index.d.ts +15 -15
  372. package/dist/types/components/list/z-list-element/index.d.ts +95 -95
  373. package/dist/types/components/list/z-list-group/index.d.ts +28 -28
  374. package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
  375. package/dist/types/components/logo/z-logo/index.d.ts +15 -15
  376. package/dist/types/components/modal/z-modal/index.d.ts +47 -47
  377. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +52 -52
  378. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +60 -60
  379. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +70 -70
  380. package/dist/types/components/navigation/z-app-header/index.d.ts +143 -111
  381. package/dist/types/components/navigation/z-link/index.d.ts +40 -40
  382. package/dist/types/components/navigation/z-menu/index.d.ts +61 -60
  383. package/dist/types/components/navigation/z-menu-section/index.d.ts +31 -31
  384. package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
  385. package/dist/types/components/notification/z-notification/index.d.ts +32 -32
  386. package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
  387. package/dist/types/components/notification/z-tooltip/index.d.ts +32 -32
  388. package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
  389. package/dist/types/components/z-anchor-navigation/index.d.ts +39 -39
  390. package/dist/types/components/z-aria-alert/index.d.ts +6 -6
  391. package/dist/types/components/z-avatar/index.d.ts +16 -16
  392. package/dist/types/components/z-card/index.d.ts +44 -44
  393. package/dist/types/components/z-carousel/index.d.ts +63 -63
  394. package/dist/types/components/z-contextual-menu/index.d.ts +26 -26
  395. package/dist/types/components/z-cover-hero/index.d.ts +41 -41
  396. package/dist/types/components/z-divider/index.d.ts +10 -10
  397. package/dist/types/components/z-ghost-loading/index.d.ts +3 -3
  398. package/dist/types/components/z-info-reveal/index.d.ts +29 -29
  399. package/dist/types/components/z-offcanvas/index.d.ts +27 -29
  400. package/dist/types/components/z-pagination/index.d.ts +109 -109
  401. package/dist/types/components/z-popover/index.d.ts +69 -69
  402. package/dist/types/components/z-section-title/index.d.ts +25 -25
  403. package/dist/types/components/z-skip-to-content/index.d.ts +21 -21
  404. package/dist/types/components/z-table/z-table/index.d.ts +48 -48
  405. package/dist/types/components/z-table/z-table-body/index.d.ts +5 -5
  406. package/dist/types/components/z-table/z-table-cell/index.d.ts +12 -12
  407. package/dist/types/components/z-table/z-table-empty-box/index.d.ts +12 -12
  408. package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +5 -5
  409. package/dist/types/components/z-table/z-table-footer/index.d.ts +5 -5
  410. package/dist/types/components/z-table/z-table-head/index.d.ts +5 -5
  411. package/dist/types/components/z-table/z-table-header/index.d.ts +29 -29
  412. package/dist/types/components/z-table/z-table-header-row/index.d.ts +6 -6
  413. package/dist/types/components/z-table/z-table-row/index.d.ts +13 -13
  414. package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +6 -6
  415. package/dist/types/components/z-tag/index.d.ts +13 -13
  416. package/dist/types/components/z-visually-hidden/index.d.ts +3 -3
  417. package/dist/types/components.d.ts +41 -13
  418. package/dist/types/constants/breakpoints.d.ts +3 -3
  419. package/dist/types/constants/icons.d.ts +6 -6
  420. package/dist/types/deprecated/typography/z-body/index.d.ts +9 -9
  421. package/dist/types/deprecated/typography/z-heading/index.d.ts +9 -9
  422. package/dist/types/deprecated/typography/z-typography/index.d.ts +11 -11
  423. package/dist/types/index.d.ts +7 -7
  424. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -16
  425. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +19 -19
  426. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -7
  427. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -12
  428. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -24
  429. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -34
  430. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -7
  431. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +19 -19
  432. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -9
  433. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -36
  434. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +9 -9
  435. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -11
  436. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -25
  437. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -16
  438. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -25
  439. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -12
  440. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -18
  441. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -7
  442. package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
  443. package/dist/types/snowflakes/myz/z-otp/index.d.ts +17 -17
  444. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
  445. package/dist/types/utils/utils.d.ts +24 -24
  446. package/dist/web-components-library/index.esm.js +1 -1
  447. package/dist/web-components-library/{p-06b7dad4.entry.js → p-0164ca54.entry.js} +1 -1
  448. package/{www/build/p-047439a1.entry.js → dist/web-components-library/p-04631bc5.entry.js} +1 -1
  449. package/dist/web-components-library/{p-4367f978.entry.js → p-0afb1436.entry.js} +1 -1
  450. package/dist/web-components-library/{p-6f5cab30.entry.js → p-0b1de3ce.entry.js} +1 -1
  451. package/dist/web-components-library/{p-01ba4a7c.entry.js → p-0c3f4eed.entry.js} +1 -1
  452. package/dist/web-components-library/{p-bca446ef.entry.js → p-15bb0526.entry.js} +1 -1
  453. package/{www/build/p-779c8d20.entry.js → dist/web-components-library/p-1d19e382.entry.js} +1 -1
  454. package/dist/web-components-library/{p-75da9f5d.entry.js → p-2415d4d8.entry.js} +1 -1
  455. package/dist/web-components-library/{p-9d57a84c.entry.js → p-25678da1.entry.js} +1 -1
  456. package/dist/web-components-library/{p-c88ff94b.entry.js → p-32eec10f.entry.js} +1 -1
  457. package/dist/web-components-library/{p-d9c98cfd.entry.js → p-356b2fc1.entry.js} +1 -1
  458. package/dist/web-components-library/{p-0c62a60a.entry.js → p-3d4b8a34.entry.js} +1 -1
  459. package/dist/web-components-library/{p-10adc1fa.entry.js → p-50bc8152.entry.js} +1 -1
  460. package/dist/web-components-library/{p-4d4eb6ed.entry.js → p-50d1f5a4.entry.js} +1 -1
  461. package/dist/web-components-library/{p-10625725.entry.js → p-560116ec.entry.js} +1 -1
  462. package/dist/web-components-library/{p-ecf4117e.entry.js → p-6c9421c6.entry.js} +1 -1
  463. package/dist/web-components-library/p-70e71580.entry.js +1 -0
  464. package/dist/web-components-library/p-72c76071.entry.js +1 -0
  465. package/dist/web-components-library/{p-98d3c4d6.entry.js → p-75883172.entry.js} +1 -1
  466. package/dist/web-components-library/{p-59b1f1e9.entry.js → p-79919c84.entry.js} +1 -1
  467. package/dist/web-components-library/{p-ff18ab96.entry.js → p-802723a9.entry.js} +1 -1
  468. package/dist/web-components-library/{p-068951a7.entry.js → p-8153e216.entry.js} +1 -1
  469. package/dist/web-components-library/{p-31cb64b3.entry.js → p-825b4767.entry.js} +1 -1
  470. package/dist/web-components-library/{p-d74090ce.entry.js → p-8272a099.entry.js} +1 -1
  471. package/dist/web-components-library/p-8ff45f5f.entry.js +1 -0
  472. package/{www/build/p-3f0cdaa1.entry.js → dist/web-components-library/p-9665df65.entry.js} +1 -1
  473. package/dist/web-components-library/{p-6736e894.entry.js → p-968d9b80.entry.js} +1 -1
  474. package/{www/build/p-d982fc4c.entry.js → dist/web-components-library/p-9c3e91fd.entry.js} +1 -1
  475. package/dist/web-components-library/{p-1f259ec0.entry.js → p-a8df4340.entry.js} +1 -1
  476. package/dist/web-components-library/{p-a481bb97.js → p-ad48bdb5.js} +1 -1
  477. package/dist/web-components-library/{p-a7249453.entry.js → p-ad664ac3.entry.js} +1 -1
  478. package/dist/web-components-library/{p-5f5f2463.entry.js → p-b10a244b.entry.js} +1 -1
  479. package/dist/web-components-library/{p-dfc69cc3.js → p-b301e6e1.js} +1 -1
  480. package/dist/web-components-library/{p-1b07b435.entry.js → p-b6b122a3.entry.js} +1 -1
  481. package/dist/web-components-library/{p-1ff146fb.entry.js → p-baabfd0d.entry.js} +1 -1
  482. package/dist/web-components-library/{p-e2758870.entry.js → p-bfd78f08.entry.js} +1 -1
  483. package/dist/web-components-library/{p-f9f42d17.entry.js → p-c47ec900.entry.js} +1 -1
  484. package/dist/web-components-library/p-c655b1c8.entry.js +1 -0
  485. package/dist/web-components-library/{p-2c8f6f12.entry.js → p-cf34dfa1.entry.js} +1 -1
  486. package/dist/web-components-library/{p-dae1376f.entry.js → p-d152fcef.entry.js} +1 -1
  487. package/dist/web-components-library/{p-c948b900.entry.js → p-d1c86e77.entry.js} +1 -1
  488. package/{www/build/p-191c9901.entry.js → dist/web-components-library/p-d2fb8d30.entry.js} +1 -1
  489. package/dist/web-components-library/{p-81cad61c.entry.js → p-da923c76.entry.js} +1 -1
  490. package/dist/web-components-library/{p-fc579135.entry.js → p-e02ecf4c.entry.js} +1 -1
  491. package/dist/web-components-library/{p-5fa58b99.entry.js → p-e09f95c9.entry.js} +1 -1
  492. package/dist/web-components-library/{p-1b0f4e52.entry.js → p-e5410351.entry.js} +1 -1
  493. package/dist/web-components-library/p-eefde77a.entry.js +1 -0
  494. package/dist/web-components-library/{p-f52100f3.entry.js → p-f0eb6020.entry.js} +1 -1
  495. package/dist/web-components-library/p-f9d29371.entry.js +1 -0
  496. package/dist/web-components-library/web-components-library.esm.js +1 -1
  497. package/package.json +106 -105
  498. package/react/components.d.ts +90 -90
  499. package/react/components.js +96 -96
  500. package/react/index.d.ts +1 -1
  501. package/react/index.js +13 -13
  502. package/react/react-component-lib/createComponent.d.ts +10 -10
  503. package/react/react-component-lib/createComponent.js +97 -97
  504. package/react/react-component-lib/createOverlayComponent.d.ts +21 -21
  505. package/react/react-component-lib/createOverlayComponent.js +115 -115
  506. package/react/react-component-lib/index.d.ts +2 -2
  507. package/react/react-component-lib/index.js +7 -7
  508. package/react/react-component-lib/interfaces.d.ts +29 -29
  509. package/react/react-component-lib/interfaces.js +2 -2
  510. package/react/react-component-lib/utils/attachProps.d.ts +12 -12
  511. package/react/react-component-lib/utils/attachProps.js +104 -104
  512. package/react/react-component-lib/utils/case.d.ts +2 -2
  513. package/react/react-component-lib/utils/case.js +11 -11
  514. package/react/react-component-lib/utils/dev.d.ts +2 -2
  515. package/react/react-component-lib/utils/dev.js +17 -17
  516. package/react/react-component-lib/utils/index.d.ts +10 -10
  517. package/react/react-component-lib/utils/index.js +53 -53
  518. package/readme.md +280 -280
  519. package/www/build/index.esm.js +1 -1
  520. package/www/build/{p-06b7dad4.entry.js → p-0164ca54.entry.js} +1 -1
  521. package/{dist/web-components-library/p-047439a1.entry.js → www/build/p-04631bc5.entry.js} +1 -1
  522. package/www/build/{p-4367f978.entry.js → p-0afb1436.entry.js} +1 -1
  523. package/www/build/{p-6f5cab30.entry.js → p-0b1de3ce.entry.js} +1 -1
  524. package/www/build/{p-01ba4a7c.entry.js → p-0c3f4eed.entry.js} +1 -1
  525. package/www/build/{p-bca446ef.entry.js → p-15bb0526.entry.js} +1 -1
  526. package/{dist/web-components-library/p-779c8d20.entry.js → www/build/p-1d19e382.entry.js} +1 -1
  527. package/www/build/{p-75da9f5d.entry.js → p-2415d4d8.entry.js} +1 -1
  528. package/www/build/{p-9d57a84c.entry.js → p-25678da1.entry.js} +1 -1
  529. package/www/build/{p-c88ff94b.entry.js → p-32eec10f.entry.js} +1 -1
  530. package/www/build/{p-d9c98cfd.entry.js → p-356b2fc1.entry.js} +1 -1
  531. package/www/build/{p-0c62a60a.entry.js → p-3d4b8a34.entry.js} +1 -1
  532. package/www/build/{p-10adc1fa.entry.js → p-50bc8152.entry.js} +1 -1
  533. package/www/build/{p-4d4eb6ed.entry.js → p-50d1f5a4.entry.js} +1 -1
  534. package/www/build/{p-10625725.entry.js → p-560116ec.entry.js} +1 -1
  535. package/www/build/{p-ecf4117e.entry.js → p-6c9421c6.entry.js} +1 -1
  536. package/www/build/p-70e71580.entry.js +1 -0
  537. package/www/build/p-72c76071.entry.js +1 -0
  538. package/www/build/{p-98d3c4d6.entry.js → p-75883172.entry.js} +1 -1
  539. package/www/build/{p-59b1f1e9.entry.js → p-79919c84.entry.js} +1 -1
  540. package/www/build/{p-ff18ab96.entry.js → p-802723a9.entry.js} +1 -1
  541. package/www/build/{p-068951a7.entry.js → p-8153e216.entry.js} +1 -1
  542. package/www/build/{p-31cb64b3.entry.js → p-825b4767.entry.js} +1 -1
  543. package/www/build/{p-d74090ce.entry.js → p-8272a099.entry.js} +1 -1
  544. package/www/build/p-8ff45f5f.entry.js +1 -0
  545. package/{dist/web-components-library/p-3f0cdaa1.entry.js → www/build/p-9665df65.entry.js} +1 -1
  546. package/www/build/{p-6736e894.entry.js → p-968d9b80.entry.js} +1 -1
  547. package/{dist/web-components-library/p-d982fc4c.entry.js → www/build/p-9c3e91fd.entry.js} +1 -1
  548. package/www/build/{p-1f259ec0.entry.js → p-a8df4340.entry.js} +1 -1
  549. package/www/build/{p-a481bb97.js → p-ad48bdb5.js} +1 -1
  550. package/www/build/{p-a7249453.entry.js → p-ad664ac3.entry.js} +1 -1
  551. package/www/build/{p-5f5f2463.entry.js → p-b10a244b.entry.js} +1 -1
  552. package/www/build/{p-dfc69cc3.js → p-b301e6e1.js} +1 -1
  553. package/www/build/{p-1b07b435.entry.js → p-b6b122a3.entry.js} +1 -1
  554. package/www/build/{p-1ff146fb.entry.js → p-baabfd0d.entry.js} +1 -1
  555. package/www/build/{p-e2758870.entry.js → p-bfd78f08.entry.js} +1 -1
  556. package/www/build/{p-f9f42d17.entry.js → p-c47ec900.entry.js} +1 -1
  557. package/www/build/p-c655b1c8.entry.js +1 -0
  558. package/www/build/{p-2c8f6f12.entry.js → p-cf34dfa1.entry.js} +1 -1
  559. package/www/build/{p-dae1376f.entry.js → p-d152fcef.entry.js} +1 -1
  560. package/www/build/{p-c948b900.entry.js → p-d1c86e77.entry.js} +1 -1
  561. package/www/build/p-d20434c3.js +1 -0
  562. package/{dist/web-components-library/p-191c9901.entry.js → www/build/p-d2fb8d30.entry.js} +1 -1
  563. package/www/build/{p-81cad61c.entry.js → p-da923c76.entry.js} +1 -1
  564. package/www/build/{p-fc579135.entry.js → p-e02ecf4c.entry.js} +1 -1
  565. package/www/build/{p-5fa58b99.entry.js → p-e09f95c9.entry.js} +1 -1
  566. package/www/build/{p-1b0f4e52.entry.js → p-e5410351.entry.js} +1 -1
  567. package/www/build/p-eefde77a.entry.js +1 -0
  568. package/www/build/{p-f52100f3.entry.js → p-f0eb6020.entry.js} +1 -1
  569. package/www/build/p-f9d29371.entry.js +1 -0
  570. package/www/build/web-components-library.esm.js +1 -1
  571. package/www/index.html +1 -1
  572. package/www/pages/file-upload.html +258 -258
  573. package/www/pages/notification.html +299 -299
  574. package/dist/cjs/z-app-header_2.cjs.entry.js +0 -152
  575. package/dist/cjs/z-button.cjs.entry.js +0 -43
  576. package/dist/cjs/z-divider.cjs.entry.js +0 -26
  577. package/dist/cjs/z-input_2.cjs.entry.js +0 -273
  578. package/dist/cjs/z-list_3.cjs.entry.js +0 -261
  579. package/dist/cjs/z-offcanvas.cjs.entry.js +0 -57
  580. package/dist/cjs/z-searchbar.cjs.entry.js +0 -248
  581. package/dist/esm/z-app-header_2.entry.js +0 -147
  582. package/dist/esm/z-button.entry.js +0 -39
  583. package/dist/esm/z-divider.entry.js +0 -22
  584. package/dist/esm/z-input_2.entry.js +0 -268
  585. package/dist/esm/z-list_3.entry.js +0 -255
  586. package/dist/esm/z-offcanvas.entry.js +0 -53
  587. package/dist/esm/z-searchbar.entry.js +0 -244
  588. package/dist/web-components-library/p-1570917d.entry.js +0 -1
  589. package/dist/web-components-library/p-157aea3b.entry.js +0 -1
  590. package/dist/web-components-library/p-1c8e7c24.entry.js +0 -1
  591. package/dist/web-components-library/p-20682781.entry.js +0 -1
  592. package/dist/web-components-library/p-3d0f5e36.entry.js +0 -1
  593. package/dist/web-components-library/p-4f266607.entry.js +0 -1
  594. package/dist/web-components-library/p-51c946a5.entry.js +0 -1
  595. package/dist/web-components-library/p-af283478.entry.js +0 -1
  596. package/dist/web-components-library/p-bae1911e.entry.js +0 -1
  597. package/dist/web-components-library/p-d0760bb1.entry.js +0 -1
  598. package/dist/web-components-library/p-deda8776.entry.js +0 -1
  599. package/dist/web-components-library/p-f3a8cc14.entry.js +0 -1
  600. package/www/build/p-1570917d.entry.js +0 -1
  601. package/www/build/p-157aea3b.entry.js +0 -1
  602. package/www/build/p-1c8e7c24.entry.js +0 -1
  603. package/www/build/p-20682781.entry.js +0 -1
  604. package/www/build/p-3d0f5e36.entry.js +0 -1
  605. package/www/build/p-4b0934c2.js +0 -1
  606. package/www/build/p-4f266607.entry.js +0 -1
  607. package/www/build/p-51c946a5.entry.js +0 -1
  608. package/www/build/p-af283478.entry.js +0 -1
  609. package/www/build/p-bae1911e.entry.js +0 -1
  610. package/www/build/p-d0760bb1.entry.js +0 -1
  611. package/www/build/p-deda8776.entry.js +0 -1
  612. package/www/build/p-f3a8cc14.entry.js +0 -1
  613. /package/dist/web-components-library/{p-bb85c467.js → p-21c3aea0.js} +0 -0
  614. /package/dist/web-components-library/{p-e1ac5c4e.js → p-dfed050d.js} +0 -0
  615. /package/dist/web-components-library/{p-d69e14fb.js → p-e35d3552.js} +0 -0
  616. /package/www/build/{p-bb85c467.js → p-21c3aea0.js} +0 -0
  617. /package/www/build/{p-e1ac5c4e.js → p-dfed050d.js} +0 -0
  618. /package/www/build/{p-d69e14fb.js → p-e35d3552.js} +0 -0
@@ -1,134 +1,997 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a2ca4b97.js';
2
- import { f as KeyboardCode } from './index-e36ec4a4.js';
2
+ import { f as KeyboardCode } from './index-03c01696.js';
3
3
 
4
4
  const stylesCss$1 = ":host{margin-top:calc(var(--space-unit) * 3);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.dragdrop{position:relative;display:flex;height:228px;flex-direction:column;border-color:var(--color-surface04);background-color:var(--color-surface02);background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;color:var(--color-text01)}:host>.dragdrop.dragover *{pointer-events:none}:host>.dragdrop .dragover-container{position:absolute;z-index:10;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}:host>.dragdrop .dragover-container .dragover-message{padding:10px 28px;background-color:var(--color-link-primary);color:var(--color-text04)}:host>.dragdrop.dragover .dragover-container{display:flex;align-items:center;justify-content:center}";
5
5
 
6
- const ZDragdropArea = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.fileDropped = createEvent(this, "fileDropped", 7);
10
- }
11
- fileDroppedHandler(files) {
12
- this.fileDropped.emit(files);
13
- }
14
- renderOnDragOverMessage() {
15
- return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
16
- }
17
- render() {
18
- return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
19
- e.preventDefault();
20
- this.dragDropContainer.classList.add("dragover");
21
- }, onDragLeave: () => {
22
- this.dragDropContainer.classList.remove("dragover");
23
- }, onDrop: (e) => {
24
- e.preventDefault();
25
- if (e.dataTransfer.files.length) {
26
- this.dragDropContainer.classList.remove("dragover");
27
- this.fileDroppedHandler(e.dataTransfer.files);
6
+ const ZDragdropArea = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.fileDropped = createEvent(this, "fileDropped", 7);
10
+ }
11
+ fileDroppedHandler(files) {
12
+ this.fileDropped.emit(files);
13
+ }
14
+ renderOnDragOverMessage() {
15
+ return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
16
+ }
17
+ render() {
18
+ return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
19
+ e.preventDefault();
20
+ this.dragDropContainer.classList.add("dragover");
21
+ }, onDragLeave: () => {
22
+ this.dragDropContainer.classList.remove("dragover");
23
+ }, onDrop: (e) => {
24
+ e.preventDefault();
25
+ if (e.dataTransfer.files.length) {
26
+ this.dragDropContainer.classList.remove("dragover");
27
+ this.fileDroppedHandler(e.dataTransfer.files);
28
+ }
29
+ } }, this.renderOnDragOverMessage(), h("slot", null)));
30
+ }
31
+ };
32
+ ZDragdropArea.style = stylesCss$1;
33
+
34
+ // nb. This is for IE10 and lower _only_.
35
+ var supportCustomEvent = window.CustomEvent;
36
+ if (!supportCustomEvent || typeof supportCustomEvent === 'object') {
37
+ supportCustomEvent = function CustomEvent(event, x) {
38
+ x = x || {};
39
+ var ev = document.createEvent('CustomEvent');
40
+ ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);
41
+ return ev;
42
+ };
43
+ supportCustomEvent.prototype = window.Event.prototype;
44
+ }
45
+
46
+ /**
47
+ * Dispatches the passed event to both an "on<type>" handler as well as via the
48
+ * normal dispatch operation. Does not bubble.
49
+ *
50
+ * @param {!EventTarget} target
51
+ * @param {!Event} event
52
+ * @return {boolean}
53
+ */
54
+ function safeDispatchEvent(target, event) {
55
+ var check = 'on' + event.type.toLowerCase();
56
+ if (typeof target[check] === 'function') {
57
+ target[check](event);
58
+ }
59
+ return target.dispatchEvent(event);
60
+ }
61
+
62
+ /**
63
+ * @param {Element} el to check for stacking context
64
+ * @return {boolean} whether this el or its parents creates a stacking context
65
+ */
66
+ function createsStackingContext(el) {
67
+ while (el && el !== document.body) {
68
+ var s = window.getComputedStyle(el);
69
+ var invalid = function(k, ok) {
70
+ return !(s[k] === undefined || s[k] === ok);
71
+ };
72
+
73
+ if (s.opacity < 1 ||
74
+ invalid('zIndex', 'auto') ||
75
+ invalid('transform', 'none') ||
76
+ invalid('mixBlendMode', 'normal') ||
77
+ invalid('filter', 'none') ||
78
+ invalid('perspective', 'none') ||
79
+ s['isolation'] === 'isolate' ||
80
+ s.position === 'fixed' ||
81
+ s.webkitOverflowScrolling === 'touch') {
82
+ return true;
83
+ }
84
+ el = el.parentElement;
85
+ }
86
+ return false;
87
+ }
88
+
89
+ /**
90
+ * Finds the nearest <dialog> from the passed element.
91
+ *
92
+ * @param {Element} el to search from
93
+ * @return {HTMLDialogElement} dialog found
94
+ */
95
+ function findNearestDialog(el) {
96
+ while (el) {
97
+ if (el.localName === 'dialog') {
98
+ return /** @type {HTMLDialogElement} */ (el);
99
+ }
100
+ if (el.parentElement) {
101
+ el = el.parentElement;
102
+ } else if (el.parentNode) {
103
+ el = el.parentNode.host;
104
+ } else {
105
+ el = null;
106
+ }
107
+ }
108
+ return null;
109
+ }
110
+
111
+ /**
112
+ * Blur the specified element, as long as it's not the HTML body element.
113
+ * This works around an IE9/10 bug - blurring the body causes Windows to
114
+ * blur the whole application.
115
+ *
116
+ * @param {Element} el to blur
117
+ */
118
+ function safeBlur(el) {
119
+ // Find the actual focused element when the active element is inside a shadow root
120
+ while (el && el.shadowRoot && el.shadowRoot.activeElement) {
121
+ el = el.shadowRoot.activeElement;
122
+ }
123
+
124
+ if (el && el.blur && el !== document.body) {
125
+ el.blur();
126
+ }
127
+ }
128
+
129
+ /**
130
+ * @param {!NodeList} nodeList to search
131
+ * @param {Node} node to find
132
+ * @return {boolean} whether node is inside nodeList
133
+ */
134
+ function inNodeList(nodeList, node) {
135
+ for (var i = 0; i < nodeList.length; ++i) {
136
+ if (nodeList[i] === node) {
137
+ return true;
138
+ }
139
+ }
140
+ return false;
141
+ }
142
+
143
+ /**
144
+ * @param {HTMLFormElement} el to check
145
+ * @return {boolean} whether this form has method="dialog"
146
+ */
147
+ function isFormMethodDialog(el) {
148
+ if (!el || !el.hasAttribute('method')) {
149
+ return false;
150
+ }
151
+ return el.getAttribute('method').toLowerCase() === 'dialog';
152
+ }
153
+
154
+ /**
155
+ * @param {!DocumentFragment|!Element} hostElement
156
+ * @return {?Element}
157
+ */
158
+ function findFocusableElementWithin(hostElement) {
159
+ // Note that this is 'any focusable area'. This list is probably not exhaustive, but the
160
+ // alternative involves stepping through and trying to focus everything.
161
+ var opts = ['button', 'input', 'keygen', 'select', 'textarea'];
162
+ var query = opts.map(function(el) {
163
+ return el + ':not([disabled])';
164
+ });
165
+ // TODO(samthor): tabindex values that are not numeric are not focusable.
166
+ query.push('[tabindex]:not([disabled]):not([tabindex=""])'); // tabindex != "", not disabled
167
+ var target = hostElement.querySelector(query.join(', '));
168
+
169
+ if (!target && 'attachShadow' in Element.prototype) {
170
+ // If we haven't found a focusable target, see if the host element contains an element
171
+ // which has a shadowRoot.
172
+ // Recursively search for the first focusable item in shadow roots.
173
+ var elems = hostElement.querySelectorAll('*');
174
+ for (var i = 0; i < elems.length; i++) {
175
+ if (elems[i].tagName && elems[i].shadowRoot) {
176
+ target = findFocusableElementWithin(elems[i].shadowRoot);
177
+ if (target) {
178
+ break;
179
+ }
180
+ }
181
+ }
182
+ }
183
+ return target;
184
+ }
185
+
186
+ /**
187
+ * Determines if an element is attached to the DOM.
188
+ * @param {Element} element to check
189
+ * @return {boolean} whether the element is in DOM
190
+ */
191
+ function isConnected(element) {
192
+ return element.isConnected || document.body.contains(element);
193
+ }
194
+
195
+ /**
196
+ * @param {!Event} event
197
+ * @return {?Element}
198
+ */
199
+ function findFormSubmitter(event) {
200
+ if (event.submitter) {
201
+ return event.submitter;
202
+ }
203
+
204
+ var form = event.target;
205
+ if (!(form instanceof HTMLFormElement)) {
206
+ return null;
207
+ }
208
+
209
+ var submitter = dialogPolyfill.formSubmitter;
210
+ if (!submitter) {
211
+ var target = event.target;
212
+ var root = ('getRootNode' in target && target.getRootNode() || document);
213
+ submitter = root.activeElement;
214
+ }
215
+
216
+ if (!submitter || submitter.form !== form) {
217
+ return null;
218
+ }
219
+ return submitter;
220
+ }
221
+
222
+ /**
223
+ * @param {!Event} event
224
+ */
225
+ function maybeHandleSubmit(event) {
226
+ if (event.defaultPrevented) {
227
+ return;
228
+ }
229
+ var form = /** @type {!HTMLFormElement} */ (event.target);
230
+
231
+ // We'd have a value if we clicked on an imagemap.
232
+ var value = dialogPolyfill.imagemapUseValue;
233
+ var submitter = findFormSubmitter(event);
234
+ if (value === null && submitter) {
235
+ value = submitter.value;
236
+ }
237
+
238
+ // There should always be a dialog as this handler is added specifically on them, but check just
239
+ // in case.
240
+ var dialog = findNearestDialog(form);
241
+ if (!dialog) {
242
+ return;
243
+ }
244
+
245
+ // Prefer formmethod on the button.
246
+ var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');
247
+ if (formmethod !== 'dialog') {
248
+ return;
249
+ }
250
+ event.preventDefault();
251
+
252
+ if (value != null) {
253
+ // nb. we explicitly check against null/undefined
254
+ dialog.close(value);
255
+ } else {
256
+ dialog.close();
257
+ }
258
+ }
259
+
260
+ /**
261
+ * @param {!HTMLDialogElement} dialog to upgrade
262
+ * @constructor
263
+ */
264
+ function dialogPolyfillInfo(dialog) {
265
+ this.dialog_ = dialog;
266
+ this.replacedStyleTop_ = false;
267
+ this.openAsModal_ = false;
268
+
269
+ // Set a11y role. Browsers that support dialog implicitly know this already.
270
+ if (!dialog.hasAttribute('role')) {
271
+ dialog.setAttribute('role', 'dialog');
272
+ }
273
+
274
+ dialog.show = this.show.bind(this);
275
+ dialog.showModal = this.showModal.bind(this);
276
+ dialog.close = this.close.bind(this);
277
+
278
+ dialog.addEventListener('submit', maybeHandleSubmit, false);
279
+
280
+ if (!('returnValue' in dialog)) {
281
+ dialog.returnValue = '';
282
+ }
283
+
284
+ if ('MutationObserver' in window) {
285
+ var mo = new MutationObserver(this.maybeHideModal.bind(this));
286
+ mo.observe(dialog, {attributes: true, attributeFilter: ['open']});
287
+ } else {
288
+ // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also
289
+ // seem to fire even if the element was removed as part of a parent removal. Use the removed
290
+ // events to force downgrade (useful if removed/immediately added).
291
+ var removed = false;
292
+ var cb = function() {
293
+ removed ? this.downgradeModal() : this.maybeHideModal();
294
+ removed = false;
295
+ }.bind(this);
296
+ var timeout;
297
+ var delayModel = function(ev) {
298
+ if (ev.target !== dialog) { return; } // not for a child element
299
+ var cand = 'DOMNodeRemoved';
300
+ removed |= (ev.type.substr(0, cand.length) === cand);
301
+ window.clearTimeout(timeout);
302
+ timeout = window.setTimeout(cb, 0);
303
+ };
304
+ ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {
305
+ dialog.addEventListener(name, delayModel);
306
+ });
307
+ }
308
+ // Note that the DOM is observed inside DialogManager while any dialog
309
+ // is being displayed as a modal, to catch modal removal from the DOM.
310
+
311
+ Object.defineProperty(dialog, 'open', {
312
+ set: this.setOpen.bind(this),
313
+ get: dialog.hasAttribute.bind(dialog, 'open')
314
+ });
315
+
316
+ this.backdrop_ = document.createElement('div');
317
+ this.backdrop_.className = 'backdrop';
318
+ this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));
319
+ this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));
320
+ this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));
321
+ }
322
+
323
+ dialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({
324
+
325
+ get dialog() {
326
+ return this.dialog_;
327
+ },
328
+
329
+ /**
330
+ * Maybe remove this dialog from the modal top layer. This is called when
331
+ * a modal dialog may no longer be tenable, e.g., when the dialog is no
332
+ * longer open or is no longer part of the DOM.
333
+ */
334
+ maybeHideModal: function() {
335
+ if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }
336
+ this.downgradeModal();
337
+ },
338
+
339
+ /**
340
+ * Remove this dialog from the modal top layer, leaving it as a non-modal.
341
+ */
342
+ downgradeModal: function() {
343
+ if (!this.openAsModal_) { return; }
344
+ this.openAsModal_ = false;
345
+ this.dialog_.style.zIndex = '';
346
+
347
+ // This won't match the native <dialog> exactly because if the user set top on a centered
348
+ // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's
349
+ // possible to polyfill this perfectly.
350
+ if (this.replacedStyleTop_) {
351
+ this.dialog_.style.top = '';
352
+ this.replacedStyleTop_ = false;
353
+ }
354
+
355
+ // Clear the backdrop and remove from the manager.
356
+ this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);
357
+ dialogPolyfill.dm.removeDialog(this);
358
+ },
359
+
360
+ /**
361
+ * @param {boolean} value whether to open or close this dialog
362
+ */
363
+ setOpen: function(value) {
364
+ if (value) {
365
+ this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');
366
+ } else {
367
+ this.dialog_.removeAttribute('open');
368
+ this.maybeHideModal(); // nb. redundant with MutationObserver
369
+ }
370
+ },
371
+
372
+ /**
373
+ * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if
374
+ * they were on the dialog itself.
375
+ *
376
+ * @param {!Event} e to redirect
377
+ */
378
+ backdropMouseEvent_: function(e) {
379
+ if (!this.dialog_.hasAttribute('tabindex')) {
380
+ // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be
381
+ // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this
382
+ // would not be needed - clicks would move the implicit cursor there.
383
+ var fake = document.createElement('div');
384
+ this.dialog_.insertBefore(fake, this.dialog_.firstChild);
385
+ fake.tabIndex = -1;
386
+ fake.focus();
387
+ this.dialog_.removeChild(fake);
388
+ } else {
389
+ this.dialog_.focus();
390
+ }
391
+
392
+ var redirectedEvent = document.createEvent('MouseEvents');
393
+ redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,
394
+ e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,
395
+ e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);
396
+ this.dialog_.dispatchEvent(redirectedEvent);
397
+ e.stopPropagation();
398
+ },
399
+
400
+ /**
401
+ * Focuses on the first focusable element within the dialog. This will always blur the current
402
+ * focus, even if nothing within the dialog is found.
403
+ */
404
+ focus_: function() {
405
+ // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.
406
+ var target = this.dialog_.querySelector('[autofocus]:not([disabled])');
407
+ if (!target && this.dialog_.tabIndex >= 0) {
408
+ target = this.dialog_;
409
+ }
410
+ if (!target) {
411
+ target = findFocusableElementWithin(this.dialog_);
412
+ }
413
+ safeBlur(document.activeElement);
414
+ target && target.focus();
415
+ },
416
+
417
+ /**
418
+ * Sets the zIndex for the backdrop and dialog.
419
+ *
420
+ * @param {number} dialogZ
421
+ * @param {number} backdropZ
422
+ */
423
+ updateZIndex: function(dialogZ, backdropZ) {
424
+ if (dialogZ < backdropZ) {
425
+ throw new Error('dialogZ should never be < backdropZ');
426
+ }
427
+ this.dialog_.style.zIndex = dialogZ;
428
+ this.backdrop_.style.zIndex = backdropZ;
429
+ },
430
+
431
+ /**
432
+ * Shows the dialog. If the dialog is already open, this does nothing.
433
+ */
434
+ show: function() {
435
+ if (!this.dialog_.open) {
436
+ this.setOpen(true);
437
+ this.focus_();
438
+ }
439
+ },
440
+
441
+ /**
442
+ * Show this dialog modally.
443
+ */
444
+ showModal: function() {
445
+ if (this.dialog_.hasAttribute('open')) {
446
+ throw new Error('Failed to execute \'showModal\' on dialog: The element is already open, and therefore cannot be opened modally.');
447
+ }
448
+ if (!isConnected(this.dialog_)) {
449
+ throw new Error('Failed to execute \'showModal\' on dialog: The element is not in a Document.');
450
+ }
451
+ if (!dialogPolyfill.dm.pushDialog(this)) {
452
+ throw new Error('Failed to execute \'showModal\' on dialog: There are too many open modal dialogs.');
453
+ }
454
+
455
+ if (createsStackingContext(this.dialog_.parentElement)) {
456
+ console.warn('A dialog is being shown inside a stacking context. ' +
457
+ 'This may cause it to be unusable. For more information, see this link: ' +
458
+ 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');
459
+ }
460
+
461
+ this.setOpen(true);
462
+ this.openAsModal_ = true;
463
+
464
+ // Optionally center vertically, relative to the current viewport.
465
+ if (dialogPolyfill.needsCentering(this.dialog_)) {
466
+ dialogPolyfill.reposition(this.dialog_);
467
+ this.replacedStyleTop_ = true;
468
+ } else {
469
+ this.replacedStyleTop_ = false;
470
+ }
471
+
472
+ // Insert backdrop.
473
+ this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);
474
+
475
+ // Focus on whatever inside the dialog.
476
+ this.focus_();
477
+ },
478
+
479
+ /**
480
+ * Closes this HTMLDialogElement. This is optional vs clearing the open
481
+ * attribute, however this fires a 'close' event.
482
+ *
483
+ * @param {string=} opt_returnValue to use as the returnValue
484
+ */
485
+ close: function(opt_returnValue) {
486
+ if (!this.dialog_.hasAttribute('open')) {
487
+ throw new Error('Failed to execute \'close\' on dialog: The element does not have an \'open\' attribute, and therefore cannot be closed.');
488
+ }
489
+ this.setOpen(false);
490
+
491
+ // Leave returnValue untouched in case it was set directly on the element
492
+ if (opt_returnValue !== undefined) {
493
+ this.dialog_.returnValue = opt_returnValue;
494
+ }
495
+
496
+ // Triggering "close" event for any attached listeners on the <dialog>.
497
+ var closeEvent = new supportCustomEvent('close', {
498
+ bubbles: false,
499
+ cancelable: false
500
+ });
501
+ safeDispatchEvent(this.dialog_, closeEvent);
502
+ }
503
+
504
+ });
505
+
506
+ var dialogPolyfill = {};
507
+
508
+ dialogPolyfill.reposition = function(element) {
509
+ var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
510
+ var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;
511
+ element.style.top = Math.max(scrollTop, topValue) + 'px';
512
+ };
513
+
514
+ dialogPolyfill.isInlinePositionSetByStylesheet = function(element) {
515
+ for (var i = 0; i < document.styleSheets.length; ++i) {
516
+ var styleSheet = document.styleSheets[i];
517
+ var cssRules = null;
518
+ // Some browsers throw on cssRules.
519
+ try {
520
+ cssRules = styleSheet.cssRules;
521
+ } catch (e) {}
522
+ if (!cssRules) { continue; }
523
+ for (var j = 0; j < cssRules.length; ++j) {
524
+ var rule = cssRules[j];
525
+ var selectedNodes = null;
526
+ // Ignore errors on invalid selector texts.
527
+ try {
528
+ selectedNodes = document.querySelectorAll(rule.selectorText);
529
+ } catch(e) {}
530
+ if (!selectedNodes || !inNodeList(selectedNodes, element)) {
531
+ continue;
532
+ }
533
+ var cssTop = rule.style.getPropertyValue('top');
534
+ var cssBottom = rule.style.getPropertyValue('bottom');
535
+ if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {
536
+ return true;
537
+ }
538
+ }
539
+ }
540
+ return false;
541
+ };
542
+
543
+ dialogPolyfill.needsCentering = function(dialog) {
544
+ var computedStyle = window.getComputedStyle(dialog);
545
+ if (computedStyle.position !== 'absolute') {
546
+ return false;
547
+ }
548
+
549
+ // We must determine whether the top/bottom specified value is non-auto. In
550
+ // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but
551
+ // Firefox returns the used value. So we do this crazy thing instead: check
552
+ // the inline style and then go through CSS rules.
553
+ if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||
554
+ (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {
555
+ return false;
556
+ }
557
+ return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);
558
+ };
559
+
560
+ /**
561
+ * @param {!Element} element to force upgrade
562
+ */
563
+ dialogPolyfill.forceRegisterDialog = function(element) {
564
+ if (window.HTMLDialogElement || element.showModal) {
565
+ console.warn('This browser already supports <dialog>, the polyfill ' +
566
+ 'may not work correctly', element);
567
+ }
568
+ if (element.localName !== 'dialog') {
569
+ throw new Error('Failed to register dialog: The element is not a dialog.');
570
+ }
571
+ new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));
572
+ };
573
+
574
+ /**
575
+ * @param {!Element} element to upgrade, if necessary
576
+ */
577
+ dialogPolyfill.registerDialog = function(element) {
578
+ if (!element.showModal) {
579
+ dialogPolyfill.forceRegisterDialog(element);
580
+ }
581
+ };
582
+
583
+ /**
584
+ * @constructor
585
+ */
586
+ dialogPolyfill.DialogManager = function() {
587
+ /** @type {!Array<!dialogPolyfillInfo>} */
588
+ this.pendingDialogStack = [];
589
+
590
+ var checkDOM = this.checkDOM_.bind(this);
591
+
592
+ // The overlay is used to simulate how a modal dialog blocks the document.
593
+ // The blocking dialog is positioned on top of the overlay, and the rest of
594
+ // the dialogs on the pending dialog stack are positioned below it. In the
595
+ // actual implementation, the modal dialog stacking is controlled by the
596
+ // top layer, where z-index has no effect.
597
+ this.overlay = document.createElement('div');
598
+ this.overlay.className = '_dialog_overlay';
599
+ this.overlay.addEventListener('click', function(e) {
600
+ this.forwardTab_ = undefined;
601
+ e.stopPropagation();
602
+ checkDOM([]); // sanity-check DOM
603
+ }.bind(this));
604
+
605
+ this.handleKey_ = this.handleKey_.bind(this);
606
+ this.handleFocus_ = this.handleFocus_.bind(this);
607
+
608
+ this.zIndexLow_ = 100000;
609
+ this.zIndexHigh_ = 100000 + 150;
610
+
611
+ this.forwardTab_ = undefined;
612
+
613
+ if ('MutationObserver' in window) {
614
+ this.mo_ = new MutationObserver(function(records) {
615
+ var removed = [];
616
+ records.forEach(function(rec) {
617
+ for (var i = 0, c; c = rec.removedNodes[i]; ++i) {
618
+ if (!(c instanceof Element)) {
619
+ continue;
620
+ } else if (c.localName === 'dialog') {
621
+ removed.push(c);
622
+ }
623
+ removed = removed.concat(c.querySelectorAll('dialog'));
28
624
  }
29
- } }, this.renderOnDragOverMessage(), h("slot", null)));
625
+ });
626
+ removed.length && checkDOM(removed);
627
+ });
30
628
  }
31
629
  };
32
- ZDragdropArea.style = stylesCss$1;
33
630
 
34
- const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none;margin:0}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::backdrop{display:none}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;overflow:hidden;width:100%;height:100vh;flex-direction:column}.modal-container>header{display:flex;flex-flow:row nowrap;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;width:100%;flex-direction:column;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{padding:0;margin:0;color:var(--color-text01);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header h2{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{overflow:auto;flex:1 auto;background:var(--color-surface01);overflow-x:hidden}.modal-container .modal-content::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{position:fixed;top:calc(var(--space-unit) * 6);left:50%;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header h2{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+h2{margin-top:0}}";
631
+ /**
632
+ * Called on the first modal dialog being shown. Adds the overlay and related
633
+ * handlers.
634
+ */
635
+ dialogPolyfill.DialogManager.prototype.blockDocument = function() {
636
+ document.documentElement.addEventListener('focus', this.handleFocus_, true);
637
+ document.addEventListener('keydown', this.handleKey_);
638
+ this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});
639
+ };
640
+
641
+ /**
642
+ * Called on the first modal dialog being removed, i.e., when no more modal
643
+ * dialogs are visible.
644
+ */
645
+ dialogPolyfill.DialogManager.prototype.unblockDocument = function() {
646
+ document.documentElement.removeEventListener('focus', this.handleFocus_, true);
647
+ document.removeEventListener('keydown', this.handleKey_);
648
+ this.mo_ && this.mo_.disconnect();
649
+ };
650
+
651
+ /**
652
+ * Updates the stacking of all known dialogs.
653
+ */
654
+ dialogPolyfill.DialogManager.prototype.updateStacking = function() {
655
+ var zIndex = this.zIndexHigh_;
656
+
657
+ for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {
658
+ dpi.updateZIndex(--zIndex, --zIndex);
659
+ if (i === 0) {
660
+ this.overlay.style.zIndex = --zIndex;
661
+ }
662
+ }
663
+
664
+ // Make the overlay a sibling of the dialog itself.
665
+ var last = this.pendingDialogStack[0];
666
+ if (last) {
667
+ var p = last.dialog.parentNode || document.body;
668
+ p.appendChild(this.overlay);
669
+ } else if (this.overlay.parentNode) {
670
+ this.overlay.parentNode.removeChild(this.overlay);
671
+ }
672
+ };
35
673
 
36
- const FOCUSABLE_ELEMENTS_SELECTOR = ':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';
37
- const ZModal = class {
38
- constructor(hostRef) {
39
- registerInstance(this, hostRef);
40
- this.modalClose = createEvent(this, "modalClose", 7);
41
- this.modalHeaderActive = createEvent(this, "modalHeaderActive", 7);
42
- this.modalBackgroundClick = createEvent(this, "modalBackgroundClick", 7);
43
- /** aria-label for close button (optional) */
44
- this.closeButtonLabel = "chiudi modale";
45
- /** add role "alertdialog" to dialog (optional, default is false) */
46
- this.alertdialog = false;
47
- /** if true, the modal is closable (optional, default is true) */
48
- this.closable = true;
674
+ /**
675
+ * @param {Element} candidate to check if contained or is the top-most modal dialog
676
+ * @return {boolean} whether candidate is contained in top dialog
677
+ */
678
+ dialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {
679
+ while (candidate = findNearestDialog(candidate)) {
680
+ for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {
681
+ if (dpi.dialog === candidate) {
682
+ return i === 0; // only valid if top-most
683
+ }
684
+ }
685
+ candidate = candidate.parentElement;
49
686
  }
50
- emitModalClose() {
51
- if (this.closable) {
52
- this.modalClose.emit({ modalid: this.modalid });
687
+ return false;
688
+ };
689
+
690
+ dialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {
691
+ var target = event.composedPath ? event.composedPath()[0] : event.target;
692
+
693
+ if (this.containedByTopDialog_(target)) { return; }
694
+
695
+ if (document.activeElement === document.documentElement) { return; }
696
+
697
+ event.preventDefault();
698
+ event.stopPropagation();
699
+ safeBlur(/** @type {Element} */ (target));
700
+
701
+ if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key
702
+
703
+ var dpi = this.pendingDialogStack[0];
704
+ var dialog = dpi.dialog;
705
+ var position = dialog.compareDocumentPosition(target);
706
+ if (position & Node.DOCUMENT_POSITION_PRECEDING) {
707
+ if (this.forwardTab_) {
708
+ // forward
709
+ dpi.focus_();
710
+ } else if (target !== document.documentElement) {
711
+ // backwards if we're not already focused on <html>
712
+ document.documentElement.focus();
53
713
  }
54
714
  }
55
- emitModalHeaderActive() {
56
- this.modalHeaderActive.emit({ modalid: this.modalid });
715
+
716
+ return false;
717
+ };
718
+
719
+ dialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {
720
+ this.forwardTab_ = undefined;
721
+ if (event.keyCode === 27) {
722
+ event.preventDefault();
723
+ event.stopPropagation();
724
+ var cancelEvent = new supportCustomEvent('cancel', {
725
+ bubbles: false,
726
+ cancelable: true
727
+ });
728
+ var dpi = this.pendingDialogStack[0];
729
+ if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {
730
+ dpi.dialog.close();
731
+ }
732
+ } else if (event.keyCode === 9) {
733
+ this.forwardTab_ = !event.shiftKey;
57
734
  }
58
- emitBackgroundClick() {
59
- if (this.closable) {
60
- this.modalBackgroundClick.emit({ modalid: this.modalid });
735
+ };
736
+
737
+ /**
738
+ * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are
739
+ * removed and immediately readded don't stay modal, they become normal.
740
+ *
741
+ * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed
742
+ */
743
+ dialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {
744
+ // This operates on a clone because it may cause it to change. Each change also calls
745
+ // updateStacking, which only actually needs to happen once. But who removes many modal dialogs
746
+ // at a time?!
747
+ var clone = this.pendingDialogStack.slice();
748
+ clone.forEach(function(dpi) {
749
+ if (removed.indexOf(dpi.dialog) !== -1) {
750
+ dpi.downgradeModal();
751
+ } else {
752
+ dpi.maybeHideModal();
61
753
  }
754
+ });
755
+ };
756
+
757
+ /**
758
+ * @param {!dialogPolyfillInfo} dpi
759
+ * @return {boolean} whether the dialog was allowed
760
+ */
761
+ dialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {
762
+ var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;
763
+ if (this.pendingDialogStack.length >= allowed) {
764
+ return false;
62
765
  }
63
- componentDidLoad() {
64
- this.open();
766
+ if (this.pendingDialogStack.unshift(dpi) === 1) {
767
+ this.blockDocument();
65
768
  }
66
- /** open modal */
67
- async open() {
68
- var _a;
69
- (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.showModal();
769
+ this.updateStacking();
770
+ return true;
771
+ };
772
+
773
+ /**
774
+ * @param {!dialogPolyfillInfo} dpi
775
+ */
776
+ dialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {
777
+ var index = this.pendingDialogStack.indexOf(dpi);
778
+ if (index === -1) { return; }
779
+
780
+ this.pendingDialogStack.splice(index, 1);
781
+ if (this.pendingDialogStack.length === 0) {
782
+ this.unblockDocument();
70
783
  }
71
- /** close modal */
72
- async close() {
73
- var _a;
74
- if (this.closable) {
75
- (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close();
784
+ this.updateStacking();
785
+ };
786
+
787
+ dialogPolyfill.dm = new dialogPolyfill.DialogManager();
788
+ dialogPolyfill.formSubmitter = null;
789
+ dialogPolyfill.imagemapUseValue = null;
790
+
791
+ /**
792
+ * Installs global handlers, such as click listers and native method overrides. These are needed
793
+ * even if a no dialog is registered, as they deal with <form method="dialog">.
794
+ */
795
+ if (window.HTMLDialogElement === undefined) {
796
+
797
+ /**
798
+ * If HTMLFormElement translates method="DIALOG" into 'get', then replace the descriptor with
799
+ * one that returns the correct value.
800
+ */
801
+ var testForm = document.createElement('form');
802
+ testForm.setAttribute('method', 'dialog');
803
+ if (testForm.method !== 'dialog') {
804
+ var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');
805
+ if (methodDescriptor) {
806
+ // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything
807
+ // and don't bother to update the element.
808
+ var realGet = methodDescriptor.get;
809
+ methodDescriptor.get = function() {
810
+ if (isFormMethodDialog(this)) {
811
+ return 'dialog';
812
+ }
813
+ return realGet.call(this);
814
+ };
815
+ var realSet = methodDescriptor.set;
816
+ /** @this {HTMLElement} */
817
+ methodDescriptor.set = function(v) {
818
+ if (typeof v === 'string' && v.toLowerCase() === 'dialog') {
819
+ return this.setAttribute('method', v);
820
+ }
821
+ return realSet.call(this, v);
822
+ };
823
+ Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);
76
824
  }
77
825
  }
826
+
78
827
  /**
79
- * Get a list of focusable elements in the dialog.
80
- * Remove elements with `display: none` from the list, because they're not focusable.
81
- *
82
- * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.
83
- * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.
828
+ * Global 'click' handler, to capture the <input type="submit"> or <button> element which has
829
+ * submitted a <form method="dialog">. Needed as Safari and others don't report this inside
830
+ * document.activeElement.
84
831
  */
85
- get focusableElements() {
86
- return [
87
- ...Array.from(this.host.shadowRoot.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
88
- ...Array.from(this.host.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
89
- ].filter((element) => getComputedStyle(element).display !== "none");
90
- }
91
- handleKeyDown(e) {
92
- if (e.code !== KeyboardCode.TAB) {
93
- return;
94
- }
95
- const focusableElements = this.focusableElements;
96
- const shadowActiveElement = this.host.shadowRoot.activeElement;
97
- const activeElement = this.host.ownerDocument.activeElement;
98
- const firstFocusableElement = focusableElements[0];
99
- const lastFocusableElement = focusableElements[focusableElements.length - 1];
100
- if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {
101
- // shift + tab was pressed and current active element is the first focusable element
102
- e.preventDefault();
103
- lastFocusableElement.focus();
104
- }
105
- else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {
106
- // shift + tab was pressed and current active element is the first focusable element
107
- e.preventDefault();
108
- firstFocusableElement.focus();
109
- }
110
- }
111
- closeButtonSlot() {
112
- if (this.closable) {
113
- return (h("slot", { name: "modalCloseButton" }, h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close() }, h("z-icon", { name: "multiply-circle-filled" }))));
114
- }
115
- }
116
- handleEscape(e) {
117
- if (this.closable) {
118
- return;
119
- }
120
- e.preventDefault();
121
- }
122
- render() {
123
- return (h("dialog", { "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(),
124
- // @ts-ignore
125
- onCancel: (e) => this.handleEscape(e) }, h("div", { class: "modal-container", id: this.modalid }, h("header", { onClick: this.emitModalHeaderActive.bind(this) }, h("div", null, this.modaltitle && h("h1", { id: "modal-title" }, this.modaltitle), this.modalsubtitle && h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), this.closeButtonSlot()), h("div", { class: "modal-content", id: "modal-content" }, h("slot", { name: "modalContent" }))), h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
126
- this.emitBackgroundClick();
127
- this.close();
128
- } })));
129
- }
130
- get host() { return getElement(this); }
131
- };
832
+ document.addEventListener('click', function(ev) {
833
+ dialogPolyfill.formSubmitter = null;
834
+ dialogPolyfill.imagemapUseValue = null;
835
+ if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission
836
+
837
+ var target = /** @type {Element} */ (ev.target);
838
+ if ('composedPath' in ev) {
839
+ var path = ev.composedPath();
840
+ target = path.shift() || target;
841
+ }
842
+ if (!target || !isFormMethodDialog(target.form)) { return; }
843
+
844
+ var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);
845
+ if (!valid) {
846
+ if (!(target.localName === 'input' && target.type === 'image')) { return; }
847
+ // this is a <input type="image">, which can submit forms
848
+ dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;
849
+ }
850
+
851
+ var dialog = findNearestDialog(target);
852
+ if (!dialog) { return; }
853
+
854
+ dialogPolyfill.formSubmitter = target;
855
+
856
+ }, false);
857
+
858
+ /**
859
+ * Global 'submit' handler. This handles submits of `method="dialog"` which are invalid, i.e.,
860
+ * outside a dialog. They get prevented.
861
+ */
862
+ document.addEventListener('submit', function(ev) {
863
+ var form = ev.target;
864
+ var dialog = findNearestDialog(form);
865
+ if (dialog) {
866
+ return; // ignore, handle there
867
+ }
868
+
869
+ var submitter = findFormSubmitter(ev);
870
+ var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');
871
+ if (formmethod === 'dialog') {
872
+ ev.preventDefault();
873
+ }
874
+ });
875
+
876
+ /**
877
+ * Replace the native HTMLFormElement.submit() method, as it won't fire the
878
+ * submit event and give us a chance to respond.
879
+ */
880
+ var nativeFormSubmit = HTMLFormElement.prototype.submit;
881
+ var replacementFormSubmit = function () {
882
+ if (!isFormMethodDialog(this)) {
883
+ return nativeFormSubmit.call(this);
884
+ }
885
+ var dialog = findNearestDialog(this);
886
+ dialog && dialog.close();
887
+ };
888
+ HTMLFormElement.prototype.submit = replacementFormSubmit;
889
+ }
890
+
891
+ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none;margin:0}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::backdrop{display:none}:host>dialog+.backdrop{display:none}:host>dialog:not([open]){display:none}:host>dialog[open]{display:block}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;overflow:hidden;width:100%;height:100vh;flex-direction:column}.modal-container>header{display:flex;flex-flow:row nowrap;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;width:100%;flex-direction:column;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{padding:0;margin:0;color:var(--color-text01);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header h2{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{overflow:auto;flex:1 auto;background:var(--color-surface01);overflow-x:hidden}.modal-container .modal-content::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{position:fixed;top:calc(var(--space-unit) * 6);left:50%;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header h2{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+h2{margin-top:0}}";
892
+
893
+ const FOCUSABLE_ELEMENTS_SELECTOR = ':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';
894
+ const ZModal = class {
895
+ constructor(hostRef) {
896
+ registerInstance(this, hostRef);
897
+ this.modalClose = createEvent(this, "modalClose", 7);
898
+ this.modalHeaderActive = createEvent(this, "modalHeaderActive", 7);
899
+ this.modalBackgroundClick = createEvent(this, "modalBackgroundClick", 7);
900
+ /** aria-label for close button (optional) */
901
+ this.closeButtonLabel = "chiudi modale";
902
+ /** add role "alertdialog" to dialog (optional, default is false) */
903
+ this.alertdialog = false;
904
+ /** if true, the modal is closable (optional, default is true) */
905
+ this.closable = true;
906
+ }
907
+ emitModalClose() {
908
+ if (this.closable) {
909
+ this.modalClose.emit({ modalid: this.modalid });
910
+ }
911
+ }
912
+ emitModalHeaderActive() {
913
+ this.modalHeaderActive.emit({ modalid: this.modalid });
914
+ }
915
+ emitBackgroundClick() {
916
+ if (this.closable) {
917
+ this.modalBackgroundClick.emit({ modalid: this.modalid });
918
+ }
919
+ }
920
+ componentDidLoad() {
921
+ if (typeof HTMLDialogElement !== "function") {
922
+ dialogPolyfill.registerDialog(this.dialog);
923
+ this.dialog.setAttribute("open", "true");
924
+ }
925
+ else {
926
+ this.open();
927
+ }
928
+ }
929
+ /** open modal */
930
+ async open() {
931
+ var _a;
932
+ (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.showModal();
933
+ }
934
+ /** close modal */
935
+ async close() {
936
+ var _a;
937
+ if (this.closable) {
938
+ (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close();
939
+ }
940
+ }
941
+ /**
942
+ * Get a list of focusable elements in the dialog.
943
+ * Remove elements with `display: none` from the list, because they're not focusable.
944
+ *
945
+ * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.
946
+ * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.
947
+ */
948
+ get focusableElements() {
949
+ return [
950
+ ...Array.from(this.host.shadowRoot.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
951
+ ...Array.from(this.host.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),
952
+ ].filter((element) => getComputedStyle(element).display !== "none");
953
+ }
954
+ handleKeyDown(e) {
955
+ if (e.code !== KeyboardCode.TAB) {
956
+ return;
957
+ }
958
+ const focusableElements = this.focusableElements;
959
+ const shadowActiveElement = this.host.shadowRoot.activeElement;
960
+ const activeElement = this.host.ownerDocument.activeElement;
961
+ const firstFocusableElement = focusableElements[0];
962
+ const lastFocusableElement = focusableElements[focusableElements.length - 1];
963
+ if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {
964
+ // shift + tab was pressed and current active element is the first focusable element
965
+ e.preventDefault();
966
+ lastFocusableElement.focus();
967
+ }
968
+ else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {
969
+ // shift + tab was pressed and current active element is the first focusable element
970
+ e.preventDefault();
971
+ firstFocusableElement.focus();
972
+ }
973
+ }
974
+ closeButtonSlot() {
975
+ if (this.closable) {
976
+ return (h("slot", { name: "modalCloseButton" }, h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close() }, h("z-icon", { name: "multiply-circle-filled" }))));
977
+ }
978
+ }
979
+ handleEscape(e) {
980
+ if (this.closable) {
981
+ return;
982
+ }
983
+ e.preventDefault();
984
+ }
985
+ render() {
986
+ return (h("dialog", { "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(),
987
+ // @ts-ignore
988
+ onCancel: (e) => this.handleEscape(e) }, h("div", { class: "modal-container", id: this.modalid }, h("header", { onClick: this.emitModalHeaderActive.bind(this) }, h("div", null, this.modaltitle && h("h1", { id: "modal-title" }, this.modaltitle), this.modalsubtitle && h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), this.closeButtonSlot()), h("div", { class: "modal-content", id: "modal-content" }, h("slot", { name: "modalContent" }))), h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
989
+ this.emitBackgroundClick();
990
+ this.close();
991
+ } })));
992
+ }
993
+ get host() { return getElement(this); }
994
+ };
132
995
  ZModal.style = stylesCss;
133
996
 
134
997
  export { ZDragdropArea as z_dragdrop_area, ZModal as z_modal };