@zanichelli/albe-web-components 17.0.4 → 17.0.5-RC1

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 (1434) hide show
  1. package/dist/cjs/index-0b836780.js +21 -0
  2. package/dist/cjs/index-0b836780.js.map +1 -0
  3. package/dist/cjs/index-32d5273a.js +21 -0
  4. package/dist/cjs/index-32d5273a.js.map +1 -0
  5. package/dist/cjs/index-6c84c7e8.js +47 -0
  6. package/dist/cjs/index-6c84c7e8.js.map +1 -0
  7. package/dist/cjs/index-72dcc0c1.js +67 -0
  8. package/dist/cjs/index-72dcc0c1.js.map +1 -0
  9. package/dist/cjs/index-b69475c3.js +20 -0
  10. package/dist/cjs/index-b69475c3.js.map +1 -0
  11. package/dist/cjs/index-c286015f.js +59 -0
  12. package/dist/cjs/index-c286015f.js.map +1 -0
  13. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  14. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -1
  15. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  16. package/dist/cjs/z-alert.cjs.entry.js.map +1 -1
  17. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  18. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -1
  19. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
  20. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -1
  21. package/dist/cjs/z-app-header_12.cjs.entry.js +9 -9
  22. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  23. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  24. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -1
  25. package/dist/cjs/z-book-card-app.cjs.entry.js +2 -2
  26. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -1
  27. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  28. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -1
  29. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  30. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  31. package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
  32. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -1
  33. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  34. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -1
  35. package/dist/cjs/z-card.cjs.entry.js +1 -1
  36. package/dist/cjs/z-card.cjs.entry.js.map +1 -1
  37. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  38. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -1
  39. package/dist/cjs/z-chip.cjs.entry.js +1 -1
  40. package/dist/cjs/z-chip.cjs.entry.js.map +1 -1
  41. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  42. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  43. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  44. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -1
  45. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  46. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
  47. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +2 -2
  48. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  50. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
  51. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  52. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -1
  53. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  54. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -1
  55. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  56. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -1
  57. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  58. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -1
  59. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  60. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -1
  61. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  62. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  63. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  64. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  65. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  66. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -1
  67. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  68. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -1
  69. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  70. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -1
  71. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  72. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -1
  73. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -1
  75. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  76. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -1
  77. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  78. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -1
  79. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  80. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -1
  81. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  82. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -1
  83. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  84. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  85. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  86. package/dist/cjs/z-notification.cjs.entry.js.map +1 -1
  87. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  88. package/dist/cjs/z-otp.cjs.entry.js.map +1 -1
  89. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  90. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -1
  91. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  92. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -1
  93. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  94. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  95. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  96. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -1
  97. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  98. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -1
  99. package/dist/cjs/z-select.cjs.entry.js +1 -1
  100. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  101. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  102. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -1
  103. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  104. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -1
  105. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  106. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -1
  107. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  108. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -1
  109. package/dist/cjs/z-table.cjs.entry.js +7 -7
  110. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  111. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  112. package/dist/cjs/z-td.cjs.entry.js +1 -1
  113. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  114. package/dist/cjs/z-th.cjs.entry.js +1 -1
  115. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  116. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  117. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -1
  118. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  119. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  120. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  121. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -1
  122. package/dist/cjs/z-toggle-switch.cjs.entry.js +1 -1
  123. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -1
  124. package/dist/cjs/z-tr.cjs.entry.js +3 -3
  125. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  126. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -1
  127. package/dist/components/index10.js +1 -1
  128. package/dist/components/index10.js.map +1 -1
  129. package/dist/components/index11.js +1 -1
  130. package/dist/components/index11.js.map +1 -1
  131. package/dist/components/index12.js +1 -1
  132. package/dist/components/index12.js.map +1 -1
  133. package/dist/components/index13.js +1 -1
  134. package/dist/components/index13.js.map +1 -1
  135. package/dist/components/index14.js +1 -1
  136. package/dist/components/index14.js.map +1 -1
  137. package/dist/components/index16.js +1 -1
  138. package/dist/components/index16.js.map +1 -1
  139. package/dist/components/index17.js +1 -1
  140. package/dist/components/index17.js.map +1 -1
  141. package/dist/components/index18.js +1 -1
  142. package/dist/components/index18.js.map +1 -1
  143. package/dist/components/index19.js +1 -1
  144. package/dist/components/index19.js.map +1 -1
  145. package/dist/components/index20.js +1 -1
  146. package/dist/components/index20.js.map +1 -1
  147. package/dist/components/index21.js +1 -1
  148. package/dist/components/index21.js.map +1 -1
  149. package/dist/components/index22.js +1 -1
  150. package/dist/components/index22.js.map +1 -1
  151. package/dist/components/index23.js +1 -1
  152. package/dist/components/index23.js.map +1 -1
  153. package/dist/components/index24.js +1 -1
  154. package/dist/components/index24.js.map +1 -1
  155. package/dist/components/index25.js +1 -1
  156. package/dist/components/index25.js.map +1 -1
  157. package/dist/components/index3.js +1 -1
  158. package/dist/components/index3.js.map +1 -1
  159. package/dist/components/index4.js +1 -1
  160. package/dist/components/index4.js.map +1 -1
  161. package/dist/components/index5.js +1 -1
  162. package/dist/components/index5.js.map +1 -1
  163. package/dist/components/index7.js +1 -1
  164. package/dist/components/index7.js.map +1 -1
  165. package/dist/components/index8.js +1 -1
  166. package/dist/components/index8.js.map +1 -1
  167. package/dist/components/z-accordion.js +1 -1
  168. package/dist/components/z-accordion.js.map +1 -1
  169. package/dist/components/z-anchor-navigation.js +1 -1
  170. package/dist/components/z-anchor-navigation.js.map +1 -1
  171. package/dist/components/z-app-header-deprecated.js +1 -1
  172. package/dist/components/z-app-header-deprecated.js.map +1 -1
  173. package/dist/components/z-app-header.js +1 -1
  174. package/dist/components/z-app-header.js.map +1 -1
  175. package/dist/components/z-avatar.js +1 -1
  176. package/dist/components/z-avatar.js.map +1 -1
  177. package/dist/components/z-book-card-app.js +2 -2
  178. package/dist/components/z-book-card-app.js.map +1 -1
  179. package/dist/components/z-book-card-deprecated.js +1 -1
  180. package/dist/components/z-book-card-deprecated.js.map +1 -1
  181. package/dist/components/z-book-card.js +2 -2
  182. package/dist/components/z-book-card.js.map +1 -1
  183. package/dist/components/z-breadcrumb.js +1 -1
  184. package/dist/components/z-breadcrumb.js.map +1 -1
  185. package/dist/components/z-button-sort.js +1 -1
  186. package/dist/components/z-button-sort.js.map +1 -1
  187. package/dist/components/z-card.js +1 -1
  188. package/dist/components/z-card.js.map +1 -1
  189. package/dist/components/z-carousel.js +1 -1
  190. package/dist/components/z-carousel.js.map +1 -1
  191. package/dist/components/z-combobox.js +1 -1
  192. package/dist/components/z-combobox.js.map +1 -1
  193. package/dist/components/z-cover-hero.js +1 -1
  194. package/dist/components/z-cover-hero.js.map +1 -1
  195. package/dist/components/z-date-picker.js +1 -1
  196. package/dist/components/z-date-picker.js.map +1 -1
  197. package/dist/components/z-file-upload.js +1 -1
  198. package/dist/components/z-file-upload.js.map +1 -1
  199. package/dist/components/z-info-box.js +1 -1
  200. package/dist/components/z-info-box.js.map +1 -1
  201. package/dist/components/z-menu-deprecated.js +1 -1
  202. package/dist/components/z-menu-deprecated.js.map +1 -1
  203. package/dist/components/z-menu-section-deprecated.js +1 -1
  204. package/dist/components/z-menu-section-deprecated.js.map +1 -1
  205. package/dist/components/z-menu-section.js +1 -1
  206. package/dist/components/z-menu-section.js.map +1 -1
  207. package/dist/components/z-menu.js +1 -1
  208. package/dist/components/z-menu.js.map +1 -1
  209. package/dist/components/z-myz-card-alert.js +1 -1
  210. package/dist/components/z-myz-card-alert.js.map +1 -1
  211. package/dist/components/z-myz-card-dictionary.js +1 -1
  212. package/dist/components/z-myz-card-dictionary.js.map +1 -1
  213. package/dist/components/z-myz-card-footer-sections.js +1 -1
  214. package/dist/components/z-myz-card-footer-sections.js.map +1 -1
  215. package/dist/components/z-myz-card-footer.js +1 -1
  216. package/dist/components/z-myz-card-footer.js.map +1 -1
  217. package/dist/components/z-myz-card-icon.js +1 -1
  218. package/dist/components/z-myz-card-icon.js.map +1 -1
  219. package/dist/components/z-myz-card-info.js +1 -1
  220. package/dist/components/z-myz-card-info.js.map +1 -1
  221. package/dist/components/z-myz-card-list.js +1 -1
  222. package/dist/components/z-myz-card-list.js.map +1 -1
  223. package/dist/components/z-navigation-tabs.js +1 -1
  224. package/dist/components/z-navigation-tabs.js.map +1 -1
  225. package/dist/components/z-notification.js +1 -1
  226. package/dist/components/z-notification.js.map +1 -1
  227. package/dist/components/z-otp.js +1 -1
  228. package/dist/components/z-otp.js.map +1 -1
  229. package/dist/components/z-pagination.js +1 -1
  230. package/dist/components/z-pagination.js.map +1 -1
  231. package/dist/components/z-panel-elem.js +1 -1
  232. package/dist/components/z-panel-elem.js.map +1 -1
  233. package/dist/components/z-range-picker.js +1 -1
  234. package/dist/components/z-range-picker.js.map +1 -1
  235. package/dist/components/z-section-title.js +1 -1
  236. package/dist/components/z-section-title.js.map +1 -1
  237. package/dist/components/z-select.js +1 -1
  238. package/dist/components/z-select.js.map +1 -1
  239. package/dist/components/z-skip-to-content.js +1 -1
  240. package/dist/components/z-skip-to-content.js.map +1 -1
  241. package/dist/components/z-slideshow.js +1 -1
  242. package/dist/components/z-slideshow.js.map +1 -1
  243. package/dist/components/z-stepper-item.js +1 -1
  244. package/dist/components/z-stepper-item.js.map +1 -1
  245. package/dist/components/z-stepper.js +1 -1
  246. package/dist/components/z-stepper.js.map +1 -1
  247. package/dist/components/z-table.js +1 -1
  248. package/dist/components/z-table.js.map +1 -1
  249. package/dist/components/z-tbody.js +1 -1
  250. package/dist/components/z-tbody.js.map +1 -1
  251. package/dist/components/z-td.js +1 -1
  252. package/dist/components/z-td.js.map +1 -1
  253. package/dist/components/z-tfoot.js +1 -1
  254. package/dist/components/z-tfoot.js.map +1 -1
  255. package/dist/components/z-th.js +1 -1
  256. package/dist/components/z-th.js.map +1 -1
  257. package/dist/components/z-thead.js +1 -1
  258. package/dist/components/z-thead.js.map +1 -1
  259. package/dist/components/z-toast-notification-list.js +1 -1
  260. package/dist/components/z-toast-notification-list.js.map +1 -1
  261. package/dist/components/z-toast-notification.js +1 -1
  262. package/dist/components/z-toast-notification.js.map +1 -1
  263. package/dist/components/z-toggle-button.js +1 -1
  264. package/dist/components/z-toggle-button.js.map +1 -1
  265. package/dist/components/z-toggle-switch.js +1 -1
  266. package/dist/components/z-toggle-switch.js.map +1 -1
  267. package/dist/components/z-tr.js +1 -1
  268. package/dist/components/z-tr.js.map +1 -1
  269. package/dist/components/z-visually-hidden.js +1 -1
  270. package/dist/components/z-visually-hidden.js.map +1 -1
  271. package/dist/esm/index-08bf4c13.js +18 -0
  272. package/dist/esm/index-08bf4c13.js.map +1 -0
  273. package/dist/esm/index-2a6f56f8.js +65 -0
  274. package/dist/esm/index-2a6f56f8.js.map +1 -0
  275. package/dist/esm/index-2d88cd2a.js +19 -0
  276. package/dist/esm/index-2d88cd2a.js.map +1 -0
  277. package/dist/esm/index-72c3946c.js +19 -0
  278. package/dist/esm/index-72c3946c.js.map +1 -0
  279. package/dist/esm/index-821e1d1c.js +57 -0
  280. package/dist/esm/index-821e1d1c.js.map +1 -0
  281. package/dist/esm/index-fd99721b.js +45 -0
  282. package/dist/esm/index-fd99721b.js.map +1 -0
  283. package/dist/esm/polyfills/core-js.js +11 -0
  284. package/dist/esm/polyfills/dom.js +79 -0
  285. package/dist/esm/polyfills/es5-html-element.js +1 -0
  286. package/dist/esm/polyfills/index.js +34 -0
  287. package/dist/esm/polyfills/system.js +6 -0
  288. package/dist/esm/z-accordion.entry.js +1 -1
  289. package/dist/esm/z-accordion.entry.js.map +1 -1
  290. package/dist/esm/z-alert.entry.js +1 -1
  291. package/dist/esm/z-alert.entry.js.map +1 -1
  292. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  293. package/dist/esm/z-anchor-navigation.entry.js.map +1 -1
  294. package/dist/esm/z-app-header-deprecated.entry.js +1 -1
  295. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -1
  296. package/dist/esm/z-app-header_12.entry.js +9 -9
  297. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  298. package/dist/esm/z-avatar.entry.js +1 -1
  299. package/dist/esm/z-avatar.entry.js.map +1 -1
  300. package/dist/esm/z-book-card-app.entry.js +2 -2
  301. package/dist/esm/z-book-card-app.entry.js.map +1 -1
  302. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  303. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -1
  304. package/dist/esm/z-book-card.entry.js +2 -2
  305. package/dist/esm/z-book-card.entry.js.map +1 -1
  306. package/dist/esm/z-breadcrumb.entry.js +1 -1
  307. package/dist/esm/z-breadcrumb.entry.js.map +1 -1
  308. package/dist/esm/z-button-sort.entry.js +1 -1
  309. package/dist/esm/z-button-sort.entry.js.map +1 -1
  310. package/dist/esm/z-card.entry.js +1 -1
  311. package/dist/esm/z-card.entry.js.map +1 -1
  312. package/dist/esm/z-carousel.entry.js +1 -1
  313. package/dist/esm/z-carousel.entry.js.map +1 -1
  314. package/dist/esm/z-chip.entry.js +1 -1
  315. package/dist/esm/z-chip.entry.js.map +1 -1
  316. package/dist/esm/z-combobox.entry.js +1 -1
  317. package/dist/esm/z-combobox.entry.js.map +1 -1
  318. package/dist/esm/z-cover-hero.entry.js +1 -1
  319. package/dist/esm/z-cover-hero.entry.js.map +1 -1
  320. package/dist/esm/z-date-picker.entry.js +1 -1
  321. package/dist/esm/z-date-picker.entry.js.map +1 -1
  322. package/dist/esm/z-dragdrop-area_2.entry.js +2 -2
  323. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  324. package/dist/esm/z-file-upload.entry.js +1 -1
  325. package/dist/esm/z-file-upload.entry.js.map +1 -1
  326. package/dist/esm/z-ghost-loading.entry.js +1 -1
  327. package/dist/esm/z-ghost-loading.entry.js.map +1 -1
  328. package/dist/esm/z-info-box.entry.js +1 -1
  329. package/dist/esm/z-info-box.entry.js.map +1 -1
  330. package/dist/esm/z-info-reveal.entry.js +1 -1
  331. package/dist/esm/z-info-reveal.entry.js.map +1 -1
  332. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  333. package/dist/esm/z-menu-deprecated.entry.js.map +1 -1
  334. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  335. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -1
  336. package/dist/esm/z-menu-section.entry.js +1 -1
  337. package/dist/esm/z-menu-section.entry.js.map +1 -1
  338. package/dist/esm/z-menu.entry.js +1 -1
  339. package/dist/esm/z-menu.entry.js.map +1 -1
  340. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  341. package/dist/esm/z-myz-card-alert.entry.js.map +1 -1
  342. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  343. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -1
  344. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  345. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -1
  346. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  347. package/dist/esm/z-myz-card-footer.entry.js.map +1 -1
  348. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  349. package/dist/esm/z-myz-card-icon.entry.js.map +1 -1
  350. package/dist/esm/z-myz-card-info.entry.js +1 -1
  351. package/dist/esm/z-myz-card-info.entry.js.map +1 -1
  352. package/dist/esm/z-myz-card-list.entry.js +1 -1
  353. package/dist/esm/z-myz-card-list.entry.js.map +1 -1
  354. package/dist/esm/z-myz-card_4.entry.js +4 -4
  355. package/dist/esm/z-myz-card_4.entry.js.map +1 -1
  356. package/dist/esm/z-myz-list-item.entry.js +1 -1
  357. package/dist/esm/z-myz-list-item.entry.js.map +1 -1
  358. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  359. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  360. package/dist/esm/z-notification.entry.js +1 -1
  361. package/dist/esm/z-notification.entry.js.map +1 -1
  362. package/dist/esm/z-otp.entry.js +1 -1
  363. package/dist/esm/z-otp.entry.js.map +1 -1
  364. package/dist/esm/z-pagination.entry.js +1 -1
  365. package/dist/esm/z-pagination.entry.js.map +1 -1
  366. package/dist/esm/z-panel-elem.entry.js +1 -1
  367. package/dist/esm/z-panel-elem.entry.js.map +1 -1
  368. package/dist/esm/z-popover.entry.js +1 -1
  369. package/dist/esm/z-popover.entry.js.map +1 -1
  370. package/dist/esm/z-range-picker.entry.js +1 -1
  371. package/dist/esm/z-range-picker.entry.js.map +1 -1
  372. package/dist/esm/z-section-title.entry.js +1 -1
  373. package/dist/esm/z-section-title.entry.js.map +1 -1
  374. package/dist/esm/z-select.entry.js +1 -1
  375. package/dist/esm/z-select.entry.js.map +1 -1
  376. package/dist/esm/z-skip-to-content.entry.js +1 -1
  377. package/dist/esm/z-skip-to-content.entry.js.map +1 -1
  378. package/dist/esm/z-slideshow.entry.js +1 -1
  379. package/dist/esm/z-slideshow.entry.js.map +1 -1
  380. package/dist/esm/z-stepper-item.entry.js +1 -1
  381. package/dist/esm/z-stepper-item.entry.js.map +1 -1
  382. package/dist/esm/z-stepper.entry.js +1 -1
  383. package/dist/esm/z-stepper.entry.js.map +1 -1
  384. package/dist/esm/z-table.entry.js +7 -7
  385. package/dist/esm/z-table.entry.js.map +1 -1
  386. package/dist/esm/z-tbody.entry.js +1 -1
  387. package/dist/esm/z-td.entry.js +1 -1
  388. package/dist/esm/z-tfoot.entry.js +1 -1
  389. package/dist/esm/z-th.entry.js +1 -1
  390. package/dist/esm/z-thead.entry.js +1 -1
  391. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  392. package/dist/esm/z-toast-notification-list.entry.js.map +1 -1
  393. package/dist/esm/z-toast-notification.entry.js +1 -1
  394. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  395. package/dist/esm/z-toggle-button.entry.js +1 -1
  396. package/dist/esm/z-toggle-button.entry.js.map +1 -1
  397. package/dist/esm/z-toggle-switch.entry.js +1 -1
  398. package/dist/esm/z-toggle-switch.entry.js.map +1 -1
  399. package/dist/esm/z-tr.entry.js +3 -3
  400. package/dist/esm/z-visually-hidden.entry.js +1 -1
  401. package/dist/esm/z-visually-hidden.entry.js.map +1 -1
  402. package/dist/esm-es5/app-globals-0f993ce5.js +2 -0
  403. package/dist/esm-es5/app-globals-0f993ce5.js.map +1 -0
  404. package/dist/esm-es5/breakpoints-d148bfde.js +2 -0
  405. package/dist/esm-es5/breakpoints-d148bfde.js.map +1 -0
  406. package/dist/esm-es5/index-08bf4c13.js +2 -0
  407. package/dist/esm-es5/index-08bf4c13.js.map +1 -0
  408. package/dist/esm-es5/index-2a6f56f8.js +2 -0
  409. package/dist/esm-es5/index-2a6f56f8.js.map +1 -0
  410. package/dist/esm-es5/index-2d88cd2a.js +2 -0
  411. package/dist/esm-es5/index-2d88cd2a.js.map +1 -0
  412. package/dist/esm-es5/index-72c3946c.js +2 -0
  413. package/dist/esm-es5/index-72c3946c.js.map +1 -0
  414. package/dist/esm-es5/index-821e1d1c.js +2 -0
  415. package/dist/esm-es5/index-821e1d1c.js.map +1 -0
  416. package/dist/esm-es5/index-c8ceadeb.js +2 -0
  417. package/dist/esm-es5/index-c8ceadeb.js.map +1 -0
  418. package/dist/esm-es5/index-ee40e66b.js +2 -0
  419. package/dist/esm-es5/index-ee40e66b.js.map +1 -0
  420. package/dist/esm-es5/index-fd99721b.js +2 -0
  421. package/dist/esm-es5/index-fd99721b.js.map +1 -0
  422. package/dist/esm-es5/index.js +2 -0
  423. package/dist/esm-es5/index.js.map +1 -0
  424. package/dist/esm-es5/loader.js +2 -0
  425. package/dist/esm-es5/loader.js.map +1 -0
  426. package/dist/esm-es5/utils-a31c16d9.js +2 -0
  427. package/dist/esm-es5/utils-a31c16d9.js.map +1 -0
  428. package/dist/esm-es5/utils-b924649f.js +2 -0
  429. package/dist/esm-es5/utils-b924649f.js.map +1 -0
  430. package/dist/esm-es5/web-components-library.js +2 -0
  431. package/dist/esm-es5/web-components-library.js.map +1 -0
  432. package/dist/esm-es5/z-accordion.entry.js +2 -0
  433. package/dist/esm-es5/z-accordion.entry.js.map +1 -0
  434. package/dist/esm-es5/z-alert.entry.js +2 -0
  435. package/dist/esm-es5/z-alert.entry.js.map +1 -0
  436. package/dist/esm-es5/z-anchor-navigation.entry.js +2 -0
  437. package/dist/esm-es5/z-anchor-navigation.entry.js.map +1 -0
  438. package/dist/esm-es5/z-app-header-deprecated.entry.js +2 -0
  439. package/dist/esm-es5/z-app-header-deprecated.entry.js.map +1 -0
  440. package/dist/esm-es5/z-app-header_12.entry.js +2 -0
  441. package/dist/esm-es5/z-app-header_12.entry.js.map +1 -0
  442. package/dist/esm-es5/z-aria-alert.entry.js +2 -0
  443. package/dist/esm-es5/z-aria-alert.entry.js.map +1 -0
  444. package/dist/esm-es5/z-avatar.entry.js +2 -0
  445. package/dist/esm-es5/z-avatar.entry.js.map +1 -0
  446. package/dist/esm-es5/z-book-card-app.entry.js +2 -0
  447. package/dist/esm-es5/z-book-card-app.entry.js.map +1 -0
  448. package/dist/esm-es5/z-book-card-deprecated.entry.js +2 -0
  449. package/dist/esm-es5/z-book-card-deprecated.entry.js.map +1 -0
  450. package/dist/esm-es5/z-book-card.entry.js +2 -0
  451. package/dist/esm-es5/z-book-card.entry.js.map +1 -0
  452. package/dist/esm-es5/z-breadcrumb.entry.js +2 -0
  453. package/dist/esm-es5/z-breadcrumb.entry.js.map +1 -0
  454. package/dist/esm-es5/z-button-sort.entry.js +2 -0
  455. package/dist/esm-es5/z-button-sort.entry.js.map +1 -0
  456. package/dist/esm-es5/z-card.entry.js +2 -0
  457. package/dist/esm-es5/z-card.entry.js.map +1 -0
  458. package/dist/esm-es5/z-carousel.entry.js +2 -0
  459. package/dist/esm-es5/z-carousel.entry.js.map +1 -0
  460. package/dist/esm-es5/z-chip.entry.js +2 -0
  461. package/dist/esm-es5/z-chip.entry.js.map +1 -0
  462. package/dist/esm-es5/z-combobox.entry.js +2 -0
  463. package/dist/esm-es5/z-combobox.entry.js.map +1 -0
  464. package/dist/esm-es5/z-cover-hero.entry.js +2 -0
  465. package/dist/esm-es5/z-cover-hero.entry.js.map +1 -0
  466. package/dist/esm-es5/z-date-picker.entry.js +17 -0
  467. package/dist/esm-es5/z-date-picker.entry.js.map +1 -0
  468. package/dist/esm-es5/z-dragdrop-area_2.entry.js +2 -0
  469. package/dist/esm-es5/z-dragdrop-area_2.entry.js.map +1 -0
  470. package/dist/esm-es5/z-file-upload.entry.js +2 -0
  471. package/dist/esm-es5/z-file-upload.entry.js.map +1 -0
  472. package/dist/esm-es5/z-file.entry.js +2 -0
  473. package/dist/esm-es5/z-file.entry.js.map +1 -0
  474. package/dist/esm-es5/z-ghost-loading.entry.js +2 -0
  475. package/dist/esm-es5/z-ghost-loading.entry.js.map +1 -0
  476. package/dist/esm-es5/z-info-box.entry.js +2 -0
  477. package/dist/esm-es5/z-info-box.entry.js.map +1 -0
  478. package/dist/esm-es5/z-info-reveal.entry.js +2 -0
  479. package/dist/esm-es5/z-info-reveal.entry.js.map +1 -0
  480. package/dist/esm-es5/z-logo.entry.js +2 -0
  481. package/dist/esm-es5/z-logo.entry.js.map +1 -0
  482. package/dist/esm-es5/z-menu-deprecated.entry.js +2 -0
  483. package/dist/esm-es5/z-menu-deprecated.entry.js.map +1 -0
  484. package/dist/esm-es5/z-menu-section-deprecated.entry.js +2 -0
  485. package/dist/esm-es5/z-menu-section-deprecated.entry.js.map +1 -0
  486. package/dist/esm-es5/z-menu-section.entry.js +2 -0
  487. package/dist/esm-es5/z-menu-section.entry.js.map +1 -0
  488. package/dist/esm-es5/z-menu.entry.js +2 -0
  489. package/dist/esm-es5/z-menu.entry.js.map +1 -0
  490. package/dist/esm-es5/z-myz-card-alert.entry.js +2 -0
  491. package/dist/esm-es5/z-myz-card-alert.entry.js.map +1 -0
  492. package/dist/esm-es5/z-myz-card-dictionary.entry.js +2 -0
  493. package/dist/esm-es5/z-myz-card-dictionary.entry.js.map +1 -0
  494. package/dist/esm-es5/z-myz-card-footer-sections.entry.js +2 -0
  495. package/dist/esm-es5/z-myz-card-footer-sections.entry.js.map +1 -0
  496. package/dist/esm-es5/z-myz-card-footer.entry.js +2 -0
  497. package/dist/esm-es5/z-myz-card-footer.entry.js.map +1 -0
  498. package/dist/esm-es5/z-myz-card-icon.entry.js +2 -0
  499. package/dist/esm-es5/z-myz-card-icon.entry.js.map +1 -0
  500. package/dist/esm-es5/z-myz-card-info.entry.js +2 -0
  501. package/dist/esm-es5/z-myz-card-info.entry.js.map +1 -0
  502. package/dist/esm-es5/z-myz-card-list.entry.js +2 -0
  503. package/dist/esm-es5/z-myz-card-list.entry.js.map +1 -0
  504. package/dist/esm-es5/z-myz-card_4.entry.js +2 -0
  505. package/dist/esm-es5/z-myz-card_4.entry.js.map +1 -0
  506. package/dist/esm-es5/z-myz-list-item.entry.js +2 -0
  507. package/dist/esm-es5/z-myz-list-item.entry.js.map +1 -0
  508. package/dist/esm-es5/z-myz-list.entry.js +2 -0
  509. package/dist/esm-es5/z-myz-list.entry.js.map +1 -0
  510. package/dist/esm-es5/z-navigation-tabs.entry.js +2 -0
  511. package/dist/esm-es5/z-navigation-tabs.entry.js.map +1 -0
  512. package/dist/esm-es5/z-notification.entry.js +2 -0
  513. package/dist/esm-es5/z-notification.entry.js.map +1 -0
  514. package/dist/esm-es5/z-otp.entry.js +2 -0
  515. package/dist/esm-es5/z-otp.entry.js.map +1 -0
  516. package/dist/esm-es5/z-pagination.entry.js +2 -0
  517. package/dist/esm-es5/z-pagination.entry.js.map +1 -0
  518. package/dist/esm-es5/z-panel-elem.entry.js +2 -0
  519. package/dist/esm-es5/z-panel-elem.entry.js.map +1 -0
  520. package/dist/esm-es5/z-popover.entry.js +2 -0
  521. package/dist/esm-es5/z-popover.entry.js.map +1 -0
  522. package/dist/esm-es5/z-range-picker.entry.js +2 -0
  523. package/dist/esm-es5/z-range-picker.entry.js.map +1 -0
  524. package/dist/esm-es5/z-section-title.entry.js +2 -0
  525. package/dist/esm-es5/z-section-title.entry.js.map +1 -0
  526. package/dist/esm-es5/z-select.entry.js +2 -0
  527. package/dist/esm-es5/z-select.entry.js.map +1 -0
  528. package/dist/esm-es5/z-skip-to-content.entry.js +2 -0
  529. package/dist/esm-es5/z-skip-to-content.entry.js.map +1 -0
  530. package/dist/esm-es5/z-slideshow.entry.js +2 -0
  531. package/dist/esm-es5/z-slideshow.entry.js.map +1 -0
  532. package/dist/esm-es5/z-stepper-item.entry.js +2 -0
  533. package/dist/esm-es5/z-stepper-item.entry.js.map +1 -0
  534. package/dist/esm-es5/z-stepper.entry.js +2 -0
  535. package/dist/esm-es5/z-stepper.entry.js.map +1 -0
  536. package/dist/esm-es5/z-table.entry.js +2 -0
  537. package/dist/esm-es5/z-table.entry.js.map +1 -0
  538. package/dist/esm-es5/z-tbody.entry.js +2 -0
  539. package/dist/esm-es5/z-td.entry.js +2 -0
  540. package/dist/esm-es5/z-tfoot.entry.js +2 -0
  541. package/dist/esm-es5/z-th.entry.js +2 -0
  542. package/dist/esm-es5/z-thead.entry.js +2 -0
  543. package/dist/esm-es5/z-toast-notification-list.entry.js +2 -0
  544. package/dist/esm-es5/z-toast-notification-list.entry.js.map +1 -0
  545. package/dist/esm-es5/z-toast-notification.entry.js +7 -0
  546. package/dist/esm-es5/z-toast-notification.entry.js.map +1 -0
  547. package/dist/esm-es5/z-toggle-button.entry.js +2 -0
  548. package/dist/esm-es5/z-toggle-button.entry.js.map +1 -0
  549. package/dist/esm-es5/z-toggle-switch.entry.js +2 -0
  550. package/dist/esm-es5/z-toggle-switch.entry.js.map +1 -0
  551. package/dist/esm-es5/z-tooltip.entry.js +2 -0
  552. package/dist/esm-es5/z-tooltip.entry.js.map +1 -0
  553. package/dist/esm-es5/z-tr.entry.js +2 -0
  554. package/dist/esm-es5/z-visually-hidden.entry.js +2 -0
  555. package/dist/esm-es5/z-visually-hidden.entry.js.map +1 -0
  556. package/dist/index.js +1 -1
  557. package/dist/web-components-library/p-01faaaa7.system.entry.js +17 -0
  558. package/dist/web-components-library/p-01faaaa7.system.entry.js.map +1 -0
  559. package/dist/web-components-library/p-05a8064b.entry.js +2 -0
  560. package/dist/web-components-library/p-05a8064b.entry.js.map +1 -0
  561. package/dist/web-components-library/p-063aebfd.entry.js +2 -0
  562. package/dist/web-components-library/p-063aebfd.entry.js.map +1 -0
  563. package/dist/web-components-library/p-0a70ea7f.system.entry.js +2 -0
  564. package/dist/web-components-library/p-0a70ea7f.system.entry.js.map +1 -0
  565. package/dist/web-components-library/p-0a83d2cf.system.entry.js +2 -0
  566. package/dist/web-components-library/p-0a83d2cf.system.entry.js.map +1 -0
  567. package/dist/web-components-library/p-0aa064b4.entry.js +2 -0
  568. package/dist/web-components-library/p-0aa064b4.entry.js.map +1 -0
  569. package/dist/web-components-library/p-0ace83e2.entry.js +2 -0
  570. package/dist/web-components-library/p-0ace83e2.entry.js.map +1 -0
  571. package/dist/web-components-library/p-0acf5b47.entry.js +2 -0
  572. package/dist/web-components-library/p-0d6659f0.system.entry.js +2 -0
  573. package/dist/web-components-library/p-0d6659f0.system.entry.js.map +1 -0
  574. package/dist/web-components-library/p-0dcf996a.system.entry.js +2 -0
  575. package/dist/web-components-library/p-0dcf996a.system.entry.js.map +1 -0
  576. package/dist/web-components-library/p-13eadea8.entry.js +2 -0
  577. package/dist/web-components-library/p-13eadea8.entry.js.map +1 -0
  578. package/dist/web-components-library/p-1504b323.system.entry.js +7 -0
  579. package/dist/web-components-library/p-1504b323.system.entry.js.map +1 -0
  580. package/dist/web-components-library/p-15b6e0ab.system.entry.js +2 -0
  581. package/dist/web-components-library/p-15b6e0ab.system.entry.js.map +1 -0
  582. package/dist/web-components-library/p-1756ee1f.system.js +2 -0
  583. package/dist/web-components-library/p-1756ee1f.system.js.map +1 -0
  584. package/dist/web-components-library/p-18451749.entry.js +2 -0
  585. package/dist/web-components-library/p-1d8d2a3a.entry.js +2 -0
  586. package/dist/web-components-library/p-1d8d2a3a.entry.js.map +1 -0
  587. package/dist/web-components-library/p-1dbff73f.system.entry.js +2 -0
  588. package/dist/web-components-library/p-1dbff73f.system.entry.js.map +1 -0
  589. package/dist/web-components-library/p-1edba67a.entry.js +2 -0
  590. package/dist/web-components-library/p-1f9c2ffe.entry.js +2 -0
  591. package/dist/web-components-library/p-1f9c2ffe.entry.js.map +1 -0
  592. package/dist/web-components-library/p-1fbedccf.entry.js +2 -0
  593. package/dist/web-components-library/p-1fbedccf.entry.js.map +1 -0
  594. package/dist/web-components-library/p-2070676f.system.js +2 -0
  595. package/dist/web-components-library/p-2070676f.system.js.map +1 -0
  596. package/dist/web-components-library/p-23845bda.js +2 -0
  597. package/dist/web-components-library/p-23845bda.js.map +1 -0
  598. package/dist/web-components-library/p-263656b9.entry.js +2 -0
  599. package/dist/web-components-library/p-263656b9.entry.js.map +1 -0
  600. package/dist/web-components-library/p-26f0caa2.entry.js +2 -0
  601. package/dist/web-components-library/p-26f0caa2.entry.js.map +1 -0
  602. package/dist/web-components-library/p-2738b33e.system.entry.js +2 -0
  603. package/dist/web-components-library/p-2738b33e.system.entry.js.map +1 -0
  604. package/dist/web-components-library/p-290e0806.system.entry.js +2 -0
  605. package/dist/web-components-library/p-290e0806.system.entry.js.map +1 -0
  606. package/dist/web-components-library/p-29735d58.system.entry.js +2 -0
  607. package/dist/web-components-library/p-29735d58.system.entry.js.map +1 -0
  608. package/dist/web-components-library/p-2e0c2a2e.system.entry.js +2 -0
  609. package/dist/web-components-library/p-2e0c2a2e.system.entry.js.map +1 -0
  610. package/dist/web-components-library/p-328b5a16.system.entry.js +2 -0
  611. package/dist/web-components-library/p-328b5a16.system.entry.js.map +1 -0
  612. package/dist/web-components-library/p-33650038.system.entry.js +2 -0
  613. package/dist/web-components-library/p-33650038.system.entry.js.map +1 -0
  614. package/dist/web-components-library/p-338d42fa.system.entry.js +2 -0
  615. package/dist/web-components-library/p-338d42fa.system.entry.js.map +1 -0
  616. package/dist/web-components-library/p-343f5b87.system.entry.js +2 -0
  617. package/dist/web-components-library/p-343f5b87.system.entry.js.map +1 -0
  618. package/dist/web-components-library/p-34e6e101.entry.js +2 -0
  619. package/dist/web-components-library/p-34e6e101.entry.js.map +1 -0
  620. package/dist/web-components-library/p-3a17cca0.entry.js +2 -0
  621. package/dist/web-components-library/p-3a17cca0.entry.js.map +1 -0
  622. package/dist/web-components-library/p-3a9cd12d.system.entry.js +2 -0
  623. package/dist/web-components-library/p-3b1f8c43.system.entry.js +2 -0
  624. package/dist/web-components-library/p-3b1f8c43.system.entry.js.map +1 -0
  625. package/dist/web-components-library/p-3b4f4d89.entry.js +2 -0
  626. package/dist/web-components-library/p-3b4f4d89.entry.js.map +1 -0
  627. package/dist/web-components-library/p-3ea11fb6.entry.js +2 -0
  628. package/dist/web-components-library/p-3ea11fb6.entry.js.map +1 -0
  629. package/dist/web-components-library/p-3f28e4b3.entry.js +2 -0
  630. package/dist/web-components-library/p-3f28e4b3.entry.js.map +1 -0
  631. package/dist/web-components-library/p-40f7fb7f.system.entry.js +2 -0
  632. package/dist/web-components-library/p-40f7fb7f.system.entry.js.map +1 -0
  633. package/dist/web-components-library/p-41c7a946.entry.js +2 -0
  634. package/dist/web-components-library/p-41c7a946.entry.js.map +1 -0
  635. package/dist/web-components-library/p-430213e0.system.entry.js +2 -0
  636. package/dist/web-components-library/p-430213e0.system.entry.js.map +1 -0
  637. package/dist/web-components-library/p-48690a96.system.entry.js +2 -0
  638. package/dist/web-components-library/p-48690a96.system.entry.js.map +1 -0
  639. package/dist/web-components-library/p-4c168e46.system.entry.js +2 -0
  640. package/dist/web-components-library/p-4c168e46.system.entry.js.map +1 -0
  641. package/dist/web-components-library/p-4e93c427.system.js +2 -0
  642. package/dist/web-components-library/p-4e93c427.system.js.map +1 -0
  643. package/dist/web-components-library/p-501d2d46.entry.js +2 -0
  644. package/dist/web-components-library/p-501d2d46.entry.js.map +1 -0
  645. package/dist/web-components-library/p-53385a6e.system.entry.js +2 -0
  646. package/dist/web-components-library/p-53385a6e.system.entry.js.map +1 -0
  647. package/dist/web-components-library/p-56ba5cbf.system.js +2 -0
  648. package/dist/web-components-library/p-56ba5cbf.system.js.map +1 -0
  649. package/dist/web-components-library/p-56ec1eba.entry.js +17 -0
  650. package/dist/web-components-library/p-56ec1eba.entry.js.map +1 -0
  651. package/dist/web-components-library/p-598b3b9b.js +2 -0
  652. package/dist/web-components-library/p-598b3b9b.js.map +1 -0
  653. package/dist/web-components-library/p-5d3f0716.system.entry.js +2 -0
  654. package/dist/web-components-library/p-5d3f0716.system.entry.js.map +1 -0
  655. package/dist/web-components-library/p-5f8bc3bf.entry.js +2 -0
  656. package/dist/web-components-library/p-5f8bc3bf.entry.js.map +1 -0
  657. package/dist/web-components-library/p-5fd6c3e8.entry.js +2 -0
  658. package/dist/web-components-library/p-5fd6c3e8.entry.js.map +1 -0
  659. package/dist/web-components-library/p-6091d82b.entry.js +2 -0
  660. package/dist/web-components-library/p-6091d82b.entry.js.map +1 -0
  661. package/dist/web-components-library/p-61ac7fad.entry.js +2 -0
  662. package/dist/web-components-library/p-626dceda.system.entry.js +2 -0
  663. package/dist/web-components-library/p-626dceda.system.entry.js.map +1 -0
  664. package/dist/web-components-library/p-672b4e09.system.js +2 -0
  665. package/dist/web-components-library/p-672b4e09.system.js.map +1 -0
  666. package/dist/web-components-library/p-67dc61ac.entry.js +2 -0
  667. package/dist/web-components-library/p-67dc61ac.entry.js.map +1 -0
  668. package/dist/web-components-library/p-6a5bd1ca.system.entry.js +2 -0
  669. package/dist/web-components-library/p-6b7ad4a6.system.entry.js +2 -0
  670. package/dist/web-components-library/p-6b7ad4a6.system.entry.js.map +1 -0
  671. package/dist/web-components-library/p-6c8761c6.system.js +2 -0
  672. package/dist/web-components-library/p-6c8761c6.system.js.map +1 -0
  673. package/dist/web-components-library/p-6cb70123.js +2 -0
  674. package/dist/web-components-library/p-6cb70123.js.map +1 -0
  675. package/dist/web-components-library/p-6ec93872.system.entry.js +2 -0
  676. package/dist/web-components-library/p-6ec93872.system.entry.js.map +1 -0
  677. package/dist/web-components-library/p-6f00cc14.entry.js +2 -0
  678. package/dist/web-components-library/p-6f00cc14.entry.js.map +1 -0
  679. package/dist/web-components-library/p-6f87ae17.system.entry.js +2 -0
  680. package/dist/web-components-library/p-6f87ae17.system.entry.js.map +1 -0
  681. package/dist/web-components-library/p-70270f39.entry.js +2 -0
  682. package/dist/web-components-library/p-70270f39.entry.js.map +1 -0
  683. package/dist/web-components-library/p-73a45e23.system.entry.js +2 -0
  684. package/dist/web-components-library/p-73a45e23.system.entry.js.map +1 -0
  685. package/dist/web-components-library/p-77630f04.entry.js +2 -0
  686. package/dist/web-components-library/p-77630f04.entry.js.map +1 -0
  687. package/dist/web-components-library/p-78e06322.system.entry.js +2 -0
  688. package/dist/web-components-library/p-78e06322.system.entry.js.map +1 -0
  689. package/dist/web-components-library/p-7a0bf87b.system.entry.js +2 -0
  690. package/dist/web-components-library/p-7a0bf87b.system.entry.js.map +1 -0
  691. package/dist/web-components-library/p-7b170476.system.entry.js +2 -0
  692. package/dist/web-components-library/p-7b170476.system.entry.js.map +1 -0
  693. package/dist/web-components-library/p-7d3cc549.entry.js +2 -0
  694. package/dist/web-components-library/p-7d3cc549.entry.js.map +1 -0
  695. package/dist/web-components-library/p-7e3c133b.entry.js +2 -0
  696. package/dist/web-components-library/p-7e3c133b.entry.js.map +1 -0
  697. package/dist/web-components-library/p-7ecc7bd5.system.entry.js +2 -0
  698. package/dist/web-components-library/p-7ecc7bd5.system.entry.js.map +1 -0
  699. package/dist/web-components-library/p-7ef7fe98.system.js +2 -0
  700. package/dist/web-components-library/p-7ef7fe98.system.js.map +1 -0
  701. package/dist/web-components-library/p-832bd78d.system.entry.js +2 -0
  702. package/dist/web-components-library/p-832bd78d.system.entry.js.map +1 -0
  703. package/dist/web-components-library/p-897d7c3a.system.entry.js +2 -0
  704. package/dist/web-components-library/p-897d7c3a.system.entry.js.map +1 -0
  705. package/dist/web-components-library/p-8ad7f11d.system.entry.js +2 -0
  706. package/dist/web-components-library/p-8ad7f11d.system.entry.js.map +1 -0
  707. package/dist/web-components-library/p-8c14e5ba.system.entry.js +2 -0
  708. package/dist/web-components-library/p-8c14e5ba.system.entry.js.map +1 -0
  709. package/dist/web-components-library/p-8d0d1234.entry.js +2 -0
  710. package/dist/web-components-library/p-8d0d1234.entry.js.map +1 -0
  711. package/dist/web-components-library/p-8e8c7916.system.entry.js +2 -0
  712. package/dist/web-components-library/p-8e8c7916.system.entry.js.map +1 -0
  713. package/dist/web-components-library/p-8efb3264.entry.js +2 -0
  714. package/dist/web-components-library/p-8efb3264.entry.js.map +1 -0
  715. package/dist/web-components-library/p-8fb9599b.system.entry.js +2 -0
  716. package/dist/web-components-library/p-8fb9599b.system.entry.js.map +1 -0
  717. package/dist/web-components-library/p-902d6ead.js +2 -0
  718. package/dist/web-components-library/p-902d6ead.js.map +1 -0
  719. package/dist/web-components-library/p-9109c157.system.entry.js +2 -0
  720. package/dist/web-components-library/p-9109c157.system.entry.js.map +1 -0
  721. package/dist/web-components-library/p-910a5027.entry.js +2 -0
  722. package/dist/web-components-library/p-910a5027.entry.js.map +1 -0
  723. package/dist/web-components-library/p-9249ffcb.system.entry.js +2 -0
  724. package/dist/web-components-library/p-9249ffcb.system.entry.js.map +1 -0
  725. package/dist/web-components-library/p-9681e90f.system.entry.js +2 -0
  726. package/dist/web-components-library/p-9681e90f.system.entry.js.map +1 -0
  727. package/dist/web-components-library/p-983b47eb.entry.js +2 -0
  728. package/dist/web-components-library/p-983b47eb.entry.js.map +1 -0
  729. package/dist/web-components-library/p-9908464a.entry.js +2 -0
  730. package/dist/web-components-library/p-9908464a.entry.js.map +1 -0
  731. package/dist/web-components-library/p-9967c6f5.system.entry.js +2 -0
  732. package/dist/web-components-library/p-9967c6f5.system.entry.js.map +1 -0
  733. package/dist/web-components-library/p-9a116bc8.system.entry.js +2 -0
  734. package/dist/web-components-library/p-9a116bc8.system.entry.js.map +1 -0
  735. package/dist/web-components-library/p-9b5108d9.entry.js +2 -0
  736. package/dist/web-components-library/p-9b5108d9.entry.js.map +1 -0
  737. package/dist/web-components-library/p-9ca6b55e.system.entry.js +2 -0
  738. package/dist/web-components-library/p-9ca6b55e.system.entry.js.map +1 -0
  739. package/dist/web-components-library/p-9def2eb3.entry.js +2 -0
  740. package/dist/web-components-library/p-9def2eb3.entry.js.map +1 -0
  741. package/dist/web-components-library/p-9eeb8788.system.entry.js +2 -0
  742. package/dist/web-components-library/p-9eeb8788.system.entry.js.map +1 -0
  743. package/dist/web-components-library/p-9ff4bf4e.entry.js +2 -0
  744. package/dist/web-components-library/p-9ff4bf4e.entry.js.map +1 -0
  745. package/dist/web-components-library/p-a0fb12bf.entry.js +2 -0
  746. package/dist/web-components-library/p-a0fb12bf.entry.js.map +1 -0
  747. package/dist/web-components-library/p-a10e0cb5.entry.js +2 -0
  748. package/dist/web-components-library/p-a10e0cb5.entry.js.map +1 -0
  749. package/dist/web-components-library/p-a12bd05d.system.entry.js +2 -0
  750. package/dist/web-components-library/p-a12bd05d.system.entry.js.map +1 -0
  751. package/dist/web-components-library/p-a1f945ac.system.entry.js +2 -0
  752. package/dist/web-components-library/p-a1f945ac.system.entry.js.map +1 -0
  753. package/dist/web-components-library/p-a7b5bca5.system.entry.js +2 -0
  754. package/dist/web-components-library/p-a7b5bca5.system.entry.js.map +1 -0
  755. package/dist/web-components-library/p-aa0b992c.system.entry.js +2 -0
  756. package/dist/web-components-library/p-aa0b992c.system.entry.js.map +1 -0
  757. package/dist/web-components-library/p-b3ea380b.system.js +3 -0
  758. package/dist/web-components-library/p-b3ea380b.system.js.map +1 -0
  759. package/dist/web-components-library/p-b5751929.entry.js +2 -0
  760. package/dist/web-components-library/p-b5751929.entry.js.map +1 -0
  761. package/dist/web-components-library/p-b7c10157.system.js +2 -0
  762. package/dist/web-components-library/p-b7c10157.system.js.map +1 -0
  763. package/dist/web-components-library/p-b8d8a6c5.entry.js +2 -0
  764. package/dist/web-components-library/p-b8d8a6c5.entry.js.map +1 -0
  765. package/dist/web-components-library/p-b8fa33e7.entry.js +2 -0
  766. package/dist/web-components-library/p-b8fa33e7.entry.js.map +1 -0
  767. package/dist/web-components-library/p-c01ba02c.entry.js +2 -0
  768. package/dist/web-components-library/p-c01ba02c.entry.js.map +1 -0
  769. package/dist/web-components-library/p-c276bd00.entry.js +2 -0
  770. package/dist/web-components-library/p-c276bd00.entry.js.map +1 -0
  771. package/dist/web-components-library/p-c3663cf8.system.entry.js +2 -0
  772. package/dist/web-components-library/p-c3663cf8.system.entry.js.map +1 -0
  773. package/dist/web-components-library/p-c4c0b36f.entry.js +2 -0
  774. package/dist/web-components-library/p-c4c0b36f.entry.js.map +1 -0
  775. package/dist/web-components-library/p-ca2e78a1.system.entry.js +2 -0
  776. package/dist/web-components-library/p-ca2e78a1.system.entry.js.map +1 -0
  777. package/dist/web-components-library/p-ca4d6aff.js +2 -0
  778. package/dist/web-components-library/p-ca4d6aff.js.map +1 -0
  779. package/dist/web-components-library/p-cad14780.system.entry.js +2 -0
  780. package/dist/web-components-library/p-cad14780.system.entry.js.map +1 -0
  781. package/dist/web-components-library/p-cd54d9f1.entry.js +2 -0
  782. package/dist/web-components-library/p-cd54d9f1.entry.js.map +1 -0
  783. package/dist/web-components-library/p-cfa332f9.system.entry.js +2 -0
  784. package/dist/web-components-library/p-cfa332f9.system.entry.js.map +1 -0
  785. package/dist/web-components-library/p-d30a546b.entry.js +2 -0
  786. package/dist/web-components-library/p-d30a546b.entry.js.map +1 -0
  787. package/dist/web-components-library/p-d484cdd5.entry.js +2 -0
  788. package/dist/web-components-library/p-d484cdd5.entry.js.map +1 -0
  789. package/dist/web-components-library/p-d91b26d9.system.js +2 -0
  790. package/dist/web-components-library/p-d91b26d9.system.js.map +1 -0
  791. package/dist/web-components-library/p-da3e9cc5.entry.js +2 -0
  792. package/dist/web-components-library/p-da3e9cc5.entry.js.map +1 -0
  793. package/dist/web-components-library/p-daa3d9e5.system.js +2 -0
  794. package/dist/web-components-library/p-daa3d9e5.system.js.map +1 -0
  795. package/dist/web-components-library/p-dbfecfaa.system.entry.js +2 -0
  796. package/dist/web-components-library/p-dbfecfaa.system.entry.js.map +1 -0
  797. package/dist/web-components-library/p-dc225ede.entry.js +2 -0
  798. package/dist/web-components-library/p-dc225ede.entry.js.map +1 -0
  799. package/dist/web-components-library/p-dd2c6f2d.entry.js +2 -0
  800. package/dist/web-components-library/p-dd2c6f2d.entry.js.map +1 -0
  801. package/dist/web-components-library/p-de4606c5.system.entry.js +2 -0
  802. package/dist/web-components-library/p-de4606c5.system.entry.js.map +1 -0
  803. package/dist/web-components-library/p-dfe7cb73.entry.js +2 -0
  804. package/dist/web-components-library/p-dfe7cb73.entry.js.map +1 -0
  805. package/dist/web-components-library/p-e03e6a78.system.entry.js +2 -0
  806. package/dist/web-components-library/p-e03e6a78.system.entry.js.map +1 -0
  807. package/dist/web-components-library/p-e2088242.entry.js +2 -0
  808. package/dist/web-components-library/p-e2088242.entry.js.map +1 -0
  809. package/dist/web-components-library/p-e37f51fe.entry.js +2 -0
  810. package/dist/web-components-library/p-e37f51fe.entry.js.map +1 -0
  811. package/dist/web-components-library/p-e429e855.system.entry.js +2 -0
  812. package/dist/web-components-library/p-e429e855.system.entry.js.map +1 -0
  813. package/dist/web-components-library/p-e616adb1.system.entry.js +2 -0
  814. package/dist/web-components-library/p-e616adb1.system.entry.js.map +1 -0
  815. package/dist/web-components-library/p-e7dbba78.system.js +2 -0
  816. package/dist/web-components-library/p-e7dbba78.system.js.map +1 -0
  817. package/dist/web-components-library/p-ebbe994e.system.entry.js +2 -0
  818. package/dist/web-components-library/p-ebbe994e.system.entry.js.map +1 -0
  819. package/dist/web-components-library/p-ed4197a3.entry.js +2 -0
  820. package/dist/web-components-library/p-ed4197a3.entry.js.map +1 -0
  821. package/dist/web-components-library/p-edda3257.entry.js +7 -0
  822. package/dist/web-components-library/p-edda3257.entry.js.map +1 -0
  823. package/dist/web-components-library/p-ef09664f.system.js +2 -0
  824. package/dist/web-components-library/p-ef09664f.system.js.map +1 -0
  825. package/dist/web-components-library/p-f1c506f4.system.entry.js +2 -0
  826. package/dist/web-components-library/p-f1c506f4.system.entry.js.map +1 -0
  827. package/dist/web-components-library/p-f2374b3f.system.entry.js +2 -0
  828. package/dist/web-components-library/p-f2374b3f.system.entry.js.map +1 -0
  829. package/dist/web-components-library/p-f675808e.system.js +2 -0
  830. package/dist/web-components-library/p-f675808e.system.js.map +1 -0
  831. package/dist/web-components-library/p-f7448d81.system.entry.js +2 -0
  832. package/dist/web-components-library/p-f7448d81.system.entry.js.map +1 -0
  833. package/dist/web-components-library/p-f777c4d3.entry.js +2 -0
  834. package/dist/web-components-library/p-f777c4d3.entry.js.map +1 -0
  835. package/dist/web-components-library/p-f88ada7f.js +2 -0
  836. package/dist/web-components-library/p-f88ada7f.js.map +1 -0
  837. package/dist/web-components-library/p-fc346ca5.entry.js +2 -0
  838. package/dist/web-components-library/p-fc346ca5.entry.js.map +1 -0
  839. package/dist/web-components-library/p-ff686d23.system.entry.js +2 -0
  840. package/dist/web-components-library/p-ff686d23.system.entry.js.map +1 -0
  841. package/dist/web-components-library/web-components-library.css +26 -0
  842. package/dist/web-components-library/web-components-library.esm.js +1 -1
  843. package/dist/web-components-library/web-components-library.js +127 -0
  844. package/loader/cdn.js +2 -1
  845. package/loader/index.cjs.js +2 -1
  846. package/loader/index.es2017.js +1 -0
  847. package/loader/index.js +2 -1
  848. package/package.json +1 -1
  849. package/www/build/p-01faaaa7.system.entry.js +17 -0
  850. package/www/build/p-01faaaa7.system.entry.js.map +1 -0
  851. package/www/build/p-05a8064b.entry.js +2 -0
  852. package/www/build/p-05a8064b.entry.js.map +1 -0
  853. package/www/build/p-063aebfd.entry.js +2 -0
  854. package/www/build/p-063aebfd.entry.js.map +1 -0
  855. package/www/build/p-0a70ea7f.system.entry.js +2 -0
  856. package/www/build/p-0a70ea7f.system.entry.js.map +1 -0
  857. package/www/build/p-0a83d2cf.system.entry.js +2 -0
  858. package/www/build/p-0a83d2cf.system.entry.js.map +1 -0
  859. package/www/build/p-0aa064b4.entry.js +2 -0
  860. package/www/build/p-0aa064b4.entry.js.map +1 -0
  861. package/www/build/p-0ace83e2.entry.js +2 -0
  862. package/www/build/p-0ace83e2.entry.js.map +1 -0
  863. package/www/build/p-0acf5b47.entry.js +2 -0
  864. package/www/build/p-0acf5b47.entry.js.map +1 -0
  865. package/www/build/p-0c3d324c.css +2534 -0
  866. package/www/build/p-0d6659f0.system.entry.js +2 -0
  867. package/www/build/p-0d6659f0.system.entry.js.map +1 -0
  868. package/www/build/p-0dcf996a.system.entry.js +2 -0
  869. package/www/build/p-0dcf996a.system.entry.js.map +1 -0
  870. package/www/build/p-13eadea8.entry.js +2 -0
  871. package/www/build/p-13eadea8.entry.js.map +1 -0
  872. package/www/build/p-1504b323.system.entry.js +7 -0
  873. package/www/build/p-1504b323.system.entry.js.map +1 -0
  874. package/www/build/p-15b6e0ab.system.entry.js +2 -0
  875. package/www/build/p-15b6e0ab.system.entry.js.map +1 -0
  876. package/www/build/p-1756ee1f.system.js +2 -0
  877. package/www/build/p-1756ee1f.system.js.map +1 -0
  878. package/www/build/p-18451749.entry.js +2 -0
  879. package/www/build/p-18451749.entry.js.map +1 -0
  880. package/www/build/p-1d8d2a3a.entry.js +2 -0
  881. package/www/build/p-1d8d2a3a.entry.js.map +1 -0
  882. package/www/build/p-1dbff73f.system.entry.js +2 -0
  883. package/www/build/p-1dbff73f.system.entry.js.map +1 -0
  884. package/www/build/p-1edba67a.entry.js +2 -0
  885. package/www/build/p-1edba67a.entry.js.map +1 -0
  886. package/www/build/p-1f9c2ffe.entry.js +2 -0
  887. package/www/build/p-1f9c2ffe.entry.js.map +1 -0
  888. package/www/build/p-1fbedccf.entry.js +2 -0
  889. package/www/build/p-1fbedccf.entry.js.map +1 -0
  890. package/www/build/p-2070676f.system.js +2 -0
  891. package/www/build/p-2070676f.system.js.map +1 -0
  892. package/www/build/p-23845bda.js +2 -0
  893. package/www/build/p-23845bda.js.map +1 -0
  894. package/www/build/p-263656b9.entry.js +2 -0
  895. package/www/build/p-263656b9.entry.js.map +1 -0
  896. package/www/build/p-26f0caa2.entry.js +2 -0
  897. package/www/build/p-26f0caa2.entry.js.map +1 -0
  898. package/www/build/p-2738b33e.system.entry.js +2 -0
  899. package/www/build/p-2738b33e.system.entry.js.map +1 -0
  900. package/www/build/p-290e0806.system.entry.js +2 -0
  901. package/www/build/p-290e0806.system.entry.js.map +1 -0
  902. package/www/build/p-29735d58.system.entry.js +2 -0
  903. package/www/build/p-29735d58.system.entry.js.map +1 -0
  904. package/www/build/p-2e0c2a2e.system.entry.js +2 -0
  905. package/www/build/p-2e0c2a2e.system.entry.js.map +1 -0
  906. package/www/build/p-328b5a16.system.entry.js +2 -0
  907. package/www/build/p-328b5a16.system.entry.js.map +1 -0
  908. package/www/build/p-33650038.system.entry.js +2 -0
  909. package/www/build/p-33650038.system.entry.js.map +1 -0
  910. package/www/build/p-338d42fa.system.entry.js +2 -0
  911. package/www/build/p-338d42fa.system.entry.js.map +1 -0
  912. package/www/build/p-343f5b87.system.entry.js +2 -0
  913. package/www/build/p-343f5b87.system.entry.js.map +1 -0
  914. package/www/build/p-34e6e101.entry.js +2 -0
  915. package/www/build/p-34e6e101.entry.js.map +1 -0
  916. package/www/build/p-3a17cca0.entry.js +2 -0
  917. package/www/build/p-3a17cca0.entry.js.map +1 -0
  918. package/www/build/p-3a9cd12d.system.entry.js +2 -0
  919. package/www/build/p-3a9cd12d.system.entry.js.map +1 -0
  920. package/www/build/p-3b1f8c43.system.entry.js +2 -0
  921. package/www/build/p-3b1f8c43.system.entry.js.map +1 -0
  922. package/www/build/p-3b4f4d89.entry.js +2 -0
  923. package/www/build/p-3b4f4d89.entry.js.map +1 -0
  924. package/www/build/p-3ea11fb6.entry.js +2 -0
  925. package/www/build/p-3ea11fb6.entry.js.map +1 -0
  926. package/www/build/p-3f28e4b3.entry.js +2 -0
  927. package/www/build/p-3f28e4b3.entry.js.map +1 -0
  928. package/www/build/p-40f7fb7f.system.entry.js +2 -0
  929. package/www/build/p-40f7fb7f.system.entry.js.map +1 -0
  930. package/www/build/p-41c7a946.entry.js +2 -0
  931. package/www/build/p-41c7a946.entry.js.map +1 -0
  932. package/www/build/p-430213e0.system.entry.js +2 -0
  933. package/www/build/p-430213e0.system.entry.js.map +1 -0
  934. package/www/build/p-48690a96.system.entry.js +2 -0
  935. package/www/build/p-48690a96.system.entry.js.map +1 -0
  936. package/www/build/p-4c168e46.system.entry.js +2 -0
  937. package/www/build/p-4c168e46.system.entry.js.map +1 -0
  938. package/www/build/p-4e93c427.system.js +2 -0
  939. package/www/build/p-4e93c427.system.js.map +1 -0
  940. package/www/build/p-501d2d46.entry.js +2 -0
  941. package/www/build/p-501d2d46.entry.js.map +1 -0
  942. package/www/build/p-53385a6e.system.entry.js +2 -0
  943. package/www/build/p-53385a6e.system.entry.js.map +1 -0
  944. package/www/build/p-56ba5cbf.system.js +2 -0
  945. package/www/build/p-56ba5cbf.system.js.map +1 -0
  946. package/www/build/p-56ec1eba.entry.js +17 -0
  947. package/www/build/p-56ec1eba.entry.js.map +1 -0
  948. package/www/build/p-598b3b9b.js +2 -0
  949. package/www/build/p-598b3b9b.js.map +1 -0
  950. package/www/build/p-5d3f0716.system.entry.js +2 -0
  951. package/www/build/p-5d3f0716.system.entry.js.map +1 -0
  952. package/www/build/p-5f8bc3bf.entry.js +2 -0
  953. package/www/build/p-5f8bc3bf.entry.js.map +1 -0
  954. package/www/build/p-5fd6c3e8.entry.js +2 -0
  955. package/www/build/p-5fd6c3e8.entry.js.map +1 -0
  956. package/www/build/p-6091d82b.entry.js +2 -0
  957. package/www/build/p-6091d82b.entry.js.map +1 -0
  958. package/www/build/p-61ac7fad.entry.js +2 -0
  959. package/www/build/p-61ac7fad.entry.js.map +1 -0
  960. package/www/build/p-626dceda.system.entry.js +2 -0
  961. package/www/build/p-626dceda.system.entry.js.map +1 -0
  962. package/www/build/p-672b4e09.system.js +2 -0
  963. package/www/build/p-672b4e09.system.js.map +1 -0
  964. package/www/build/p-67dc61ac.entry.js +2 -0
  965. package/www/build/p-67dc61ac.entry.js.map +1 -0
  966. package/www/build/p-6a5bd1ca.system.entry.js +2 -0
  967. package/www/build/p-6a5bd1ca.system.entry.js.map +1 -0
  968. package/www/build/p-6b7ad4a6.system.entry.js +2 -0
  969. package/www/build/p-6b7ad4a6.system.entry.js.map +1 -0
  970. package/www/build/p-6c8761c6.system.js +2 -0
  971. package/www/build/p-6c8761c6.system.js.map +1 -0
  972. package/www/build/p-6cb70123.js +2 -0
  973. package/www/build/p-6cb70123.js.map +1 -0
  974. package/www/build/p-6ec93872.system.entry.js +2 -0
  975. package/www/build/p-6ec93872.system.entry.js.map +1 -0
  976. package/www/build/p-6f00cc14.entry.js +2 -0
  977. package/www/build/p-6f00cc14.entry.js.map +1 -0
  978. package/www/build/p-6f87ae17.system.entry.js +2 -0
  979. package/www/build/p-6f87ae17.system.entry.js.map +1 -0
  980. package/www/build/p-70270f39.entry.js +2 -0
  981. package/www/build/p-70270f39.entry.js.map +1 -0
  982. package/www/build/p-73a45e23.system.entry.js +2 -0
  983. package/www/build/p-73a45e23.system.entry.js.map +1 -0
  984. package/www/build/p-77630f04.entry.js +2 -0
  985. package/www/build/p-77630f04.entry.js.map +1 -0
  986. package/www/build/p-78e06322.system.entry.js +2 -0
  987. package/www/build/p-78e06322.system.entry.js.map +1 -0
  988. package/www/build/p-7a0bf87b.system.entry.js +2 -0
  989. package/www/build/p-7a0bf87b.system.entry.js.map +1 -0
  990. package/www/build/p-7b170476.system.entry.js +2 -0
  991. package/www/build/p-7b170476.system.entry.js.map +1 -0
  992. package/www/build/p-7d3cc549.entry.js +2 -0
  993. package/www/build/p-7d3cc549.entry.js.map +1 -0
  994. package/www/build/p-7e3c133b.entry.js +2 -0
  995. package/www/build/p-7e3c133b.entry.js.map +1 -0
  996. package/www/build/p-7ecc7bd5.system.entry.js +2 -0
  997. package/www/build/p-7ecc7bd5.system.entry.js.map +1 -0
  998. package/www/build/p-7ef7fe98.system.js +2 -0
  999. package/www/build/p-7ef7fe98.system.js.map +1 -0
  1000. package/www/build/p-832bd78d.system.entry.js +2 -0
  1001. package/www/build/p-832bd78d.system.entry.js.map +1 -0
  1002. package/www/build/p-897d7c3a.system.entry.js +2 -0
  1003. package/www/build/p-897d7c3a.system.entry.js.map +1 -0
  1004. package/www/build/p-8ad7f11d.system.entry.js +2 -0
  1005. package/www/build/p-8ad7f11d.system.entry.js.map +1 -0
  1006. package/www/build/p-8c14e5ba.system.entry.js +2 -0
  1007. package/www/build/p-8c14e5ba.system.entry.js.map +1 -0
  1008. package/www/build/p-8d0d1234.entry.js +2 -0
  1009. package/www/build/p-8d0d1234.entry.js.map +1 -0
  1010. package/www/build/p-8e8c7916.system.entry.js +2 -0
  1011. package/www/build/p-8e8c7916.system.entry.js.map +1 -0
  1012. package/www/build/p-8efb3264.entry.js +2 -0
  1013. package/www/build/p-8efb3264.entry.js.map +1 -0
  1014. package/www/build/p-8fb9599b.system.entry.js +2 -0
  1015. package/www/build/p-8fb9599b.system.entry.js.map +1 -0
  1016. package/www/build/p-902d6ead.js +2 -0
  1017. package/www/build/p-902d6ead.js.map +1 -0
  1018. package/www/build/p-9109c157.system.entry.js +2 -0
  1019. package/www/build/p-9109c157.system.entry.js.map +1 -0
  1020. package/www/build/p-910a5027.entry.js +2 -0
  1021. package/www/build/p-910a5027.entry.js.map +1 -0
  1022. package/www/build/p-9249ffcb.system.entry.js +2 -0
  1023. package/www/build/p-9249ffcb.system.entry.js.map +1 -0
  1024. package/www/build/p-9681e90f.system.entry.js +2 -0
  1025. package/www/build/p-9681e90f.system.entry.js.map +1 -0
  1026. package/www/build/p-983b47eb.entry.js +2 -0
  1027. package/www/build/p-983b47eb.entry.js.map +1 -0
  1028. package/www/build/p-9908464a.entry.js +2 -0
  1029. package/www/build/p-9908464a.entry.js.map +1 -0
  1030. package/www/build/p-9967c6f5.system.entry.js +2 -0
  1031. package/www/build/p-9967c6f5.system.entry.js.map +1 -0
  1032. package/www/build/p-9a116bc8.system.entry.js +2 -0
  1033. package/www/build/p-9a116bc8.system.entry.js.map +1 -0
  1034. package/www/build/p-9b5108d9.entry.js +2 -0
  1035. package/www/build/p-9b5108d9.entry.js.map +1 -0
  1036. package/www/build/p-9ca6b55e.system.entry.js +2 -0
  1037. package/www/build/p-9ca6b55e.system.entry.js.map +1 -0
  1038. package/www/build/p-9def2eb3.entry.js +2 -0
  1039. package/www/build/p-9def2eb3.entry.js.map +1 -0
  1040. package/www/build/p-9eeb8788.system.entry.js +2 -0
  1041. package/www/build/p-9eeb8788.system.entry.js.map +1 -0
  1042. package/www/build/p-9fe1e807.js +2 -0
  1043. package/www/build/p-9ff4bf4e.entry.js +2 -0
  1044. package/www/build/p-9ff4bf4e.entry.js.map +1 -0
  1045. package/www/build/p-a0fb12bf.entry.js +2 -0
  1046. package/www/build/p-a0fb12bf.entry.js.map +1 -0
  1047. package/www/build/p-a10e0cb5.entry.js +2 -0
  1048. package/www/build/p-a10e0cb5.entry.js.map +1 -0
  1049. package/www/build/p-a12bd05d.system.entry.js +2 -0
  1050. package/www/build/p-a12bd05d.system.entry.js.map +1 -0
  1051. package/www/build/p-a1f945ac.system.entry.js +2 -0
  1052. package/www/build/p-a1f945ac.system.entry.js.map +1 -0
  1053. package/www/build/p-a7b5bca5.system.entry.js +2 -0
  1054. package/www/build/p-a7b5bca5.system.entry.js.map +1 -0
  1055. package/www/build/p-aa0b992c.system.entry.js +2 -0
  1056. package/www/build/p-aa0b992c.system.entry.js.map +1 -0
  1057. package/www/build/p-b3ea380b.system.js +3 -0
  1058. package/www/build/p-b3ea380b.system.js.map +1 -0
  1059. package/www/build/p-b5751929.entry.js +2 -0
  1060. package/www/build/p-b5751929.entry.js.map +1 -0
  1061. package/www/build/p-b7c10157.system.js +2 -0
  1062. package/www/build/p-b7c10157.system.js.map +1 -0
  1063. package/www/build/p-b8d8a6c5.entry.js +2 -0
  1064. package/www/build/p-b8d8a6c5.entry.js.map +1 -0
  1065. package/www/build/p-b8fa33e7.entry.js +2 -0
  1066. package/www/build/p-b8fa33e7.entry.js.map +1 -0
  1067. package/www/build/p-c01ba02c.entry.js +2 -0
  1068. package/www/build/p-c01ba02c.entry.js.map +1 -0
  1069. package/www/build/p-c276bd00.entry.js +2 -0
  1070. package/www/build/p-c276bd00.entry.js.map +1 -0
  1071. package/www/build/p-c3663cf8.system.entry.js +2 -0
  1072. package/www/build/p-c3663cf8.system.entry.js.map +1 -0
  1073. package/www/build/p-c4c0b36f.entry.js +2 -0
  1074. package/www/build/p-c4c0b36f.entry.js.map +1 -0
  1075. package/www/build/p-ca2e78a1.system.entry.js +2 -0
  1076. package/www/build/p-ca2e78a1.system.entry.js.map +1 -0
  1077. package/www/build/p-ca4d6aff.js +2 -0
  1078. package/www/build/p-ca4d6aff.js.map +1 -0
  1079. package/www/build/p-cad14780.system.entry.js +2 -0
  1080. package/www/build/p-cad14780.system.entry.js.map +1 -0
  1081. package/www/build/p-cd54d9f1.entry.js +2 -0
  1082. package/www/build/p-cd54d9f1.entry.js.map +1 -0
  1083. package/www/build/p-cfa332f9.system.entry.js +2 -0
  1084. package/www/build/p-cfa332f9.system.entry.js.map +1 -0
  1085. package/www/build/p-d30a546b.entry.js +2 -0
  1086. package/www/build/p-d30a546b.entry.js.map +1 -0
  1087. package/www/build/p-d484cdd5.entry.js +2 -0
  1088. package/www/build/p-d484cdd5.entry.js.map +1 -0
  1089. package/www/build/p-d91b26d9.system.js +2 -0
  1090. package/www/build/p-d91b26d9.system.js.map +1 -0
  1091. package/www/build/p-da3e9cc5.entry.js +2 -0
  1092. package/www/build/p-da3e9cc5.entry.js.map +1 -0
  1093. package/www/build/p-daa3d9e5.system.js +2 -0
  1094. package/www/build/p-daa3d9e5.system.js.map +1 -0
  1095. package/www/build/p-dbfecfaa.system.entry.js +2 -0
  1096. package/www/build/p-dbfecfaa.system.entry.js.map +1 -0
  1097. package/www/build/p-dc225ede.entry.js +2 -0
  1098. package/www/build/p-dc225ede.entry.js.map +1 -0
  1099. package/www/build/p-dd2c6f2d.entry.js +2 -0
  1100. package/www/build/p-dd2c6f2d.entry.js.map +1 -0
  1101. package/www/build/p-de4606c5.system.entry.js +2 -0
  1102. package/www/build/p-de4606c5.system.entry.js.map +1 -0
  1103. package/www/build/p-dfe7cb73.entry.js +2 -0
  1104. package/www/build/p-dfe7cb73.entry.js.map +1 -0
  1105. package/www/build/p-e03e6a78.system.entry.js +2 -0
  1106. package/www/build/p-e03e6a78.system.entry.js.map +1 -0
  1107. package/www/build/p-e2088242.entry.js +2 -0
  1108. package/www/build/p-e2088242.entry.js.map +1 -0
  1109. package/www/build/p-e37f51fe.entry.js +2 -0
  1110. package/www/build/p-e37f51fe.entry.js.map +1 -0
  1111. package/www/build/p-e429e855.system.entry.js +2 -0
  1112. package/www/build/p-e429e855.system.entry.js.map +1 -0
  1113. package/www/build/p-e616adb1.system.entry.js +2 -0
  1114. package/www/build/p-e616adb1.system.entry.js.map +1 -0
  1115. package/www/build/p-e7dbba78.system.js +2 -0
  1116. package/www/build/p-e7dbba78.system.js.map +1 -0
  1117. package/www/build/p-ebbe994e.system.entry.js +2 -0
  1118. package/www/build/p-ebbe994e.system.entry.js.map +1 -0
  1119. package/www/build/p-ed4197a3.entry.js +2 -0
  1120. package/www/build/p-ed4197a3.entry.js.map +1 -0
  1121. package/www/build/p-edda3257.entry.js +7 -0
  1122. package/www/build/p-edda3257.entry.js.map +1 -0
  1123. package/www/build/p-ef09664f.system.js +2 -0
  1124. package/www/build/p-ef09664f.system.js.map +1 -0
  1125. package/www/build/p-f1c506f4.system.entry.js +2 -0
  1126. package/www/build/p-f1c506f4.system.entry.js.map +1 -0
  1127. package/www/build/p-f2374b3f.system.entry.js +2 -0
  1128. package/www/build/p-f2374b3f.system.entry.js.map +1 -0
  1129. package/www/build/p-f675808e.system.js +2 -0
  1130. package/www/build/p-f675808e.system.js.map +1 -0
  1131. package/www/build/p-f7448d81.system.entry.js +2 -0
  1132. package/www/build/p-f7448d81.system.entry.js.map +1 -0
  1133. package/www/build/p-f777c4d3.entry.js +2 -0
  1134. package/www/build/p-f777c4d3.entry.js.map +1 -0
  1135. package/www/build/p-f88ada7f.js +2 -0
  1136. package/www/build/p-f88ada7f.js.map +1 -0
  1137. package/www/build/p-fc346ca5.entry.js +2 -0
  1138. package/www/build/p-fc346ca5.entry.js.map +1 -0
  1139. package/www/build/p-ff686d23.system.entry.js +2 -0
  1140. package/www/build/p-ff686d23.system.entry.js.map +1 -0
  1141. package/www/build/web-components-library.css +26 -0
  1142. package/www/build/web-components-library.esm.js +1 -1
  1143. package/www/build/web-components-library.js +125 -31
  1144. package/www/index.html +1 -1
  1145. package/dist/cjs/index-2a9a328d.js +0 -47
  1146. package/dist/cjs/index-2a9a328d.js.map +0 -1
  1147. package/dist/cjs/index-4e2d222e.js +0 -21
  1148. package/dist/cjs/index-4e2d222e.js.map +0 -1
  1149. package/dist/cjs/index-7191c0cc.js +0 -21
  1150. package/dist/cjs/index-7191c0cc.js.map +0 -1
  1151. package/dist/cjs/index-a6593d82.js +0 -20
  1152. package/dist/cjs/index-a6593d82.js.map +0 -1
  1153. package/dist/cjs/index-aa56c709.js +0 -59
  1154. package/dist/cjs/index-aa56c709.js.map +0 -1
  1155. package/dist/cjs/index-b2f35532.js +0 -67
  1156. package/dist/cjs/index-b2f35532.js.map +0 -1
  1157. package/dist/esm/index-04335eea.js +0 -19
  1158. package/dist/esm/index-04335eea.js.map +0 -1
  1159. package/dist/esm/index-092fc7cc.js +0 -57
  1160. package/dist/esm/index-092fc7cc.js.map +0 -1
  1161. package/dist/esm/index-5dff449e.js +0 -19
  1162. package/dist/esm/index-5dff449e.js.map +0 -1
  1163. package/dist/esm/index-735d4f23.js +0 -45
  1164. package/dist/esm/index-735d4f23.js.map +0 -1
  1165. package/dist/esm/index-90f624c1.js +0 -65
  1166. package/dist/esm/index-90f624c1.js.map +0 -1
  1167. package/dist/esm/index-9adfcd0d.js +0 -18
  1168. package/dist/esm/index-9adfcd0d.js.map +0 -1
  1169. package/dist/web-components-library/p-035807e3.entry.js +0 -2
  1170. package/dist/web-components-library/p-035807e3.entry.js.map +0 -1
  1171. package/dist/web-components-library/p-0378c12a.entry.js +0 -2
  1172. package/dist/web-components-library/p-0378c12a.entry.js.map +0 -1
  1173. package/dist/web-components-library/p-08d8f935.entry.js +0 -2
  1174. package/dist/web-components-library/p-08d8f935.entry.js.map +0 -1
  1175. package/dist/web-components-library/p-0df6b405.entry.js +0 -2
  1176. package/dist/web-components-library/p-0df6b405.entry.js.map +0 -1
  1177. package/dist/web-components-library/p-11216ee8.entry.js +0 -2
  1178. package/dist/web-components-library/p-11216ee8.entry.js.map +0 -1
  1179. package/dist/web-components-library/p-115fab3e.entry.js +0 -2
  1180. package/dist/web-components-library/p-115fab3e.entry.js.map +0 -1
  1181. package/dist/web-components-library/p-11629dd3.entry.js +0 -2
  1182. package/dist/web-components-library/p-11629dd3.entry.js.map +0 -1
  1183. package/dist/web-components-library/p-123739cb.js +0 -2
  1184. package/dist/web-components-library/p-123739cb.js.map +0 -1
  1185. package/dist/web-components-library/p-14e61df6.js +0 -2
  1186. package/dist/web-components-library/p-14e61df6.js.map +0 -1
  1187. package/dist/web-components-library/p-1630e240.entry.js +0 -2
  1188. package/dist/web-components-library/p-1630e240.entry.js.map +0 -1
  1189. package/dist/web-components-library/p-18d63f0c.entry.js +0 -2
  1190. package/dist/web-components-library/p-18d63f0c.entry.js.map +0 -1
  1191. package/dist/web-components-library/p-1e3ff105.entry.js +0 -2
  1192. package/dist/web-components-library/p-1e3ff105.entry.js.map +0 -1
  1193. package/dist/web-components-library/p-22d56699.entry.js +0 -2
  1194. package/dist/web-components-library/p-22d56699.entry.js.map +0 -1
  1195. package/dist/web-components-library/p-22e32e11.entry.js +0 -17
  1196. package/dist/web-components-library/p-22e32e11.entry.js.map +0 -1
  1197. package/dist/web-components-library/p-2798c0b2.entry.js +0 -2
  1198. package/dist/web-components-library/p-2a0d8ebe.entry.js +0 -2
  1199. package/dist/web-components-library/p-2a0d8ebe.entry.js.map +0 -1
  1200. package/dist/web-components-library/p-2aeb2a94.entry.js +0 -2
  1201. package/dist/web-components-library/p-2c450113.entry.js +0 -2
  1202. package/dist/web-components-library/p-2c450113.entry.js.map +0 -1
  1203. package/dist/web-components-library/p-2dcf53b3.entry.js +0 -2
  1204. package/dist/web-components-library/p-2dcf53b3.entry.js.map +0 -1
  1205. package/dist/web-components-library/p-2fa0042e.entry.js +0 -2
  1206. package/dist/web-components-library/p-2fa0042e.entry.js.map +0 -1
  1207. package/dist/web-components-library/p-30170218.entry.js +0 -2
  1208. package/dist/web-components-library/p-30170218.entry.js.map +0 -1
  1209. package/dist/web-components-library/p-384baa02.entry.js +0 -2
  1210. package/dist/web-components-library/p-384baa02.entry.js.map +0 -1
  1211. package/dist/web-components-library/p-395b261e.entry.js +0 -2
  1212. package/dist/web-components-library/p-395b261e.entry.js.map +0 -1
  1213. package/dist/web-components-library/p-4374d3f3.entry.js +0 -2
  1214. package/dist/web-components-library/p-4374d3f3.entry.js.map +0 -1
  1215. package/dist/web-components-library/p-4a3fedbf.entry.js +0 -2
  1216. package/dist/web-components-library/p-4a3fedbf.entry.js.map +0 -1
  1217. package/dist/web-components-library/p-4c462e7f.js +0 -2
  1218. package/dist/web-components-library/p-4c462e7f.js.map +0 -1
  1219. package/dist/web-components-library/p-50bf57b4.entry.js +0 -2
  1220. package/dist/web-components-library/p-50bf57b4.entry.js.map +0 -1
  1221. package/dist/web-components-library/p-52be7378.entry.js +0 -2
  1222. package/dist/web-components-library/p-52be7378.entry.js.map +0 -1
  1223. package/dist/web-components-library/p-5387e6f3.entry.js +0 -2
  1224. package/dist/web-components-library/p-5387e6f3.entry.js.map +0 -1
  1225. package/dist/web-components-library/p-5f04d9eb.entry.js +0 -2
  1226. package/dist/web-components-library/p-5f04d9eb.entry.js.map +0 -1
  1227. package/dist/web-components-library/p-6e1ba2f0.entry.js +0 -2
  1228. package/dist/web-components-library/p-7095262b.entry.js +0 -2
  1229. package/dist/web-components-library/p-7095262b.entry.js.map +0 -1
  1230. package/dist/web-components-library/p-72dae90b.entry.js +0 -2
  1231. package/dist/web-components-library/p-72dae90b.entry.js.map +0 -1
  1232. package/dist/web-components-library/p-73d686e0.entry.js +0 -2
  1233. package/dist/web-components-library/p-73d686e0.entry.js.map +0 -1
  1234. package/dist/web-components-library/p-75808b47.entry.js +0 -2
  1235. package/dist/web-components-library/p-75808b47.entry.js.map +0 -1
  1236. package/dist/web-components-library/p-758333dc.entry.js +0 -2
  1237. package/dist/web-components-library/p-758333dc.entry.js.map +0 -1
  1238. package/dist/web-components-library/p-7af33b00.entry.js +0 -2
  1239. package/dist/web-components-library/p-7af33b00.entry.js.map +0 -1
  1240. package/dist/web-components-library/p-7f370d17.entry.js +0 -2
  1241. package/dist/web-components-library/p-7f370d17.entry.js.map +0 -1
  1242. package/dist/web-components-library/p-9187ce36.entry.js +0 -2
  1243. package/dist/web-components-library/p-9187ce36.entry.js.map +0 -1
  1244. package/dist/web-components-library/p-9c4b7a51.entry.js +0 -2
  1245. package/dist/web-components-library/p-9c4b7a51.entry.js.map +0 -1
  1246. package/dist/web-components-library/p-aa0b3e7a.entry.js +0 -2
  1247. package/dist/web-components-library/p-aa0b3e7a.entry.js.map +0 -1
  1248. package/dist/web-components-library/p-aa42f01d.entry.js +0 -2
  1249. package/dist/web-components-library/p-aa42f01d.entry.js.map +0 -1
  1250. package/dist/web-components-library/p-ad825740.entry.js +0 -2
  1251. package/dist/web-components-library/p-b38be247.entry.js +0 -2
  1252. package/dist/web-components-library/p-bba6129f.js +0 -2
  1253. package/dist/web-components-library/p-bba6129f.js.map +0 -1
  1254. package/dist/web-components-library/p-bbd492d3.entry.js +0 -2
  1255. package/dist/web-components-library/p-bbd492d3.entry.js.map +0 -1
  1256. package/dist/web-components-library/p-bd571858.entry.js +0 -2
  1257. package/dist/web-components-library/p-bd571858.entry.js.map +0 -1
  1258. package/dist/web-components-library/p-c13ef624.js +0 -2
  1259. package/dist/web-components-library/p-c13ef624.js.map +0 -1
  1260. package/dist/web-components-library/p-c29a520b.entry.js +0 -2
  1261. package/dist/web-components-library/p-c29a520b.entry.js.map +0 -1
  1262. package/dist/web-components-library/p-c2af9a71.entry.js +0 -2
  1263. package/dist/web-components-library/p-c2af9a71.entry.js.map +0 -1
  1264. package/dist/web-components-library/p-c7df6a63.entry.js +0 -2
  1265. package/dist/web-components-library/p-c7df6a63.entry.js.map +0 -1
  1266. package/dist/web-components-library/p-cb8aec27.entry.js +0 -2
  1267. package/dist/web-components-library/p-cb8aec27.entry.js.map +0 -1
  1268. package/dist/web-components-library/p-ce0d5448.entry.js +0 -2
  1269. package/dist/web-components-library/p-ce0d5448.entry.js.map +0 -1
  1270. package/dist/web-components-library/p-cf7b7e73.entry.js +0 -2
  1271. package/dist/web-components-library/p-cf7b7e73.entry.js.map +0 -1
  1272. package/dist/web-components-library/p-d1cca5ea.entry.js +0 -2
  1273. package/dist/web-components-library/p-d1cca5ea.entry.js.map +0 -1
  1274. package/dist/web-components-library/p-d6a2b1c6.entry.js +0 -2
  1275. package/dist/web-components-library/p-d6a2b1c6.entry.js.map +0 -1
  1276. package/dist/web-components-library/p-db0a5f51.entry.js +0 -2
  1277. package/dist/web-components-library/p-db0a5f51.entry.js.map +0 -1
  1278. package/dist/web-components-library/p-e185545c.entry.js +0 -2
  1279. package/dist/web-components-library/p-e78353d6.entry.js +0 -2
  1280. package/dist/web-components-library/p-e78353d6.entry.js.map +0 -1
  1281. package/dist/web-components-library/p-ea36d666.entry.js +0 -2
  1282. package/dist/web-components-library/p-ea36d666.entry.js.map +0 -1
  1283. package/dist/web-components-library/p-ed091723.entry.js +0 -2
  1284. package/dist/web-components-library/p-ed091723.entry.js.map +0 -1
  1285. package/dist/web-components-library/p-f06bd257.entry.js +0 -2
  1286. package/dist/web-components-library/p-f06bd257.entry.js.map +0 -1
  1287. package/dist/web-components-library/p-f075ec62.entry.js +0 -2
  1288. package/dist/web-components-library/p-f075ec62.entry.js.map +0 -1
  1289. package/dist/web-components-library/p-f8915e2e.entry.js +0 -7
  1290. package/dist/web-components-library/p-f8915e2e.entry.js.map +0 -1
  1291. package/dist/web-components-library/p-fb06a5d8.entry.js +0 -2
  1292. package/dist/web-components-library/p-fb06a5d8.entry.js.map +0 -1
  1293. package/dist/web-components-library/p-feb84d36.js +0 -2
  1294. package/dist/web-components-library/p-feb84d36.js.map +0 -1
  1295. package/www/build/p-01994cd6.js +0 -2
  1296. package/www/build/p-035807e3.entry.js +0 -2
  1297. package/www/build/p-035807e3.entry.js.map +0 -1
  1298. package/www/build/p-0378c12a.entry.js +0 -2
  1299. package/www/build/p-0378c12a.entry.js.map +0 -1
  1300. package/www/build/p-08d8f935.entry.js +0 -2
  1301. package/www/build/p-08d8f935.entry.js.map +0 -1
  1302. package/www/build/p-0df6b405.entry.js +0 -2
  1303. package/www/build/p-0df6b405.entry.js.map +0 -1
  1304. package/www/build/p-11216ee8.entry.js +0 -2
  1305. package/www/build/p-11216ee8.entry.js.map +0 -1
  1306. package/www/build/p-115fab3e.entry.js +0 -2
  1307. package/www/build/p-115fab3e.entry.js.map +0 -1
  1308. package/www/build/p-11629dd3.entry.js +0 -2
  1309. package/www/build/p-11629dd3.entry.js.map +0 -1
  1310. package/www/build/p-123739cb.js +0 -2
  1311. package/www/build/p-123739cb.js.map +0 -1
  1312. package/www/build/p-14e61df6.js +0 -2
  1313. package/www/build/p-14e61df6.js.map +0 -1
  1314. package/www/build/p-1630e240.entry.js +0 -2
  1315. package/www/build/p-1630e240.entry.js.map +0 -1
  1316. package/www/build/p-18d63f0c.entry.js +0 -2
  1317. package/www/build/p-18d63f0c.entry.js.map +0 -1
  1318. package/www/build/p-1e3ff105.entry.js +0 -2
  1319. package/www/build/p-1e3ff105.entry.js.map +0 -1
  1320. package/www/build/p-22d56699.entry.js +0 -2
  1321. package/www/build/p-22d56699.entry.js.map +0 -1
  1322. package/www/build/p-22e32e11.entry.js +0 -17
  1323. package/www/build/p-22e32e11.entry.js.map +0 -1
  1324. package/www/build/p-2798c0b2.entry.js +0 -2
  1325. package/www/build/p-2a0d8ebe.entry.js +0 -2
  1326. package/www/build/p-2a0d8ebe.entry.js.map +0 -1
  1327. package/www/build/p-2aeb2a94.entry.js +0 -2
  1328. package/www/build/p-2c450113.entry.js +0 -2
  1329. package/www/build/p-2c450113.entry.js.map +0 -1
  1330. package/www/build/p-2dcf53b3.entry.js +0 -2
  1331. package/www/build/p-2dcf53b3.entry.js.map +0 -1
  1332. package/www/build/p-2fa0042e.entry.js +0 -2
  1333. package/www/build/p-2fa0042e.entry.js.map +0 -1
  1334. package/www/build/p-30170218.entry.js +0 -2
  1335. package/www/build/p-30170218.entry.js.map +0 -1
  1336. package/www/build/p-384baa02.entry.js +0 -2
  1337. package/www/build/p-384baa02.entry.js.map +0 -1
  1338. package/www/build/p-395b261e.entry.js +0 -2
  1339. package/www/build/p-395b261e.entry.js.map +0 -1
  1340. package/www/build/p-4374d3f3.entry.js +0 -2
  1341. package/www/build/p-4374d3f3.entry.js.map +0 -1
  1342. package/www/build/p-4a3fedbf.entry.js +0 -2
  1343. package/www/build/p-4a3fedbf.entry.js.map +0 -1
  1344. package/www/build/p-4c462e7f.js +0 -2
  1345. package/www/build/p-4c462e7f.js.map +0 -1
  1346. package/www/build/p-50bf57b4.entry.js +0 -2
  1347. package/www/build/p-50bf57b4.entry.js.map +0 -1
  1348. package/www/build/p-52be7378.entry.js +0 -2
  1349. package/www/build/p-52be7378.entry.js.map +0 -1
  1350. package/www/build/p-5387e6f3.entry.js +0 -2
  1351. package/www/build/p-5387e6f3.entry.js.map +0 -1
  1352. package/www/build/p-5f04d9eb.entry.js +0 -2
  1353. package/www/build/p-5f04d9eb.entry.js.map +0 -1
  1354. package/www/build/p-6e1ba2f0.entry.js +0 -2
  1355. package/www/build/p-7095262b.entry.js +0 -2
  1356. package/www/build/p-7095262b.entry.js.map +0 -1
  1357. package/www/build/p-72dae90b.entry.js +0 -2
  1358. package/www/build/p-72dae90b.entry.js.map +0 -1
  1359. package/www/build/p-73d686e0.entry.js +0 -2
  1360. package/www/build/p-73d686e0.entry.js.map +0 -1
  1361. package/www/build/p-75808b47.entry.js +0 -2
  1362. package/www/build/p-75808b47.entry.js.map +0 -1
  1363. package/www/build/p-758333dc.entry.js +0 -2
  1364. package/www/build/p-758333dc.entry.js.map +0 -1
  1365. package/www/build/p-7af33b00.entry.js +0 -2
  1366. package/www/build/p-7af33b00.entry.js.map +0 -1
  1367. package/www/build/p-7f370d17.entry.js +0 -2
  1368. package/www/build/p-7f370d17.entry.js.map +0 -1
  1369. package/www/build/p-9187ce36.entry.js +0 -2
  1370. package/www/build/p-9187ce36.entry.js.map +0 -1
  1371. package/www/build/p-9c4b7a51.entry.js +0 -2
  1372. package/www/build/p-9c4b7a51.entry.js.map +0 -1
  1373. package/www/build/p-a35437c8.css +0 -2508
  1374. package/www/build/p-aa0b3e7a.entry.js +0 -2
  1375. package/www/build/p-aa0b3e7a.entry.js.map +0 -1
  1376. package/www/build/p-aa42f01d.entry.js +0 -2
  1377. package/www/build/p-aa42f01d.entry.js.map +0 -1
  1378. package/www/build/p-ad825740.entry.js +0 -2
  1379. package/www/build/p-b38be247.entry.js +0 -2
  1380. package/www/build/p-bba6129f.js +0 -2
  1381. package/www/build/p-bba6129f.js.map +0 -1
  1382. package/www/build/p-bbd492d3.entry.js +0 -2
  1383. package/www/build/p-bbd492d3.entry.js.map +0 -1
  1384. package/www/build/p-bd571858.entry.js +0 -2
  1385. package/www/build/p-bd571858.entry.js.map +0 -1
  1386. package/www/build/p-c13ef624.js +0 -2
  1387. package/www/build/p-c13ef624.js.map +0 -1
  1388. package/www/build/p-c29a520b.entry.js +0 -2
  1389. package/www/build/p-c29a520b.entry.js.map +0 -1
  1390. package/www/build/p-c2af9a71.entry.js +0 -2
  1391. package/www/build/p-c2af9a71.entry.js.map +0 -1
  1392. package/www/build/p-c7df6a63.entry.js +0 -2
  1393. package/www/build/p-c7df6a63.entry.js.map +0 -1
  1394. package/www/build/p-cb8aec27.entry.js +0 -2
  1395. package/www/build/p-cb8aec27.entry.js.map +0 -1
  1396. package/www/build/p-ce0d5448.entry.js +0 -2
  1397. package/www/build/p-ce0d5448.entry.js.map +0 -1
  1398. package/www/build/p-cf7b7e73.entry.js +0 -2
  1399. package/www/build/p-cf7b7e73.entry.js.map +0 -1
  1400. package/www/build/p-d1cca5ea.entry.js +0 -2
  1401. package/www/build/p-d1cca5ea.entry.js.map +0 -1
  1402. package/www/build/p-d6a2b1c6.entry.js +0 -2
  1403. package/www/build/p-d6a2b1c6.entry.js.map +0 -1
  1404. package/www/build/p-db0a5f51.entry.js +0 -2
  1405. package/www/build/p-db0a5f51.entry.js.map +0 -1
  1406. package/www/build/p-e185545c.entry.js +0 -2
  1407. package/www/build/p-e78353d6.entry.js +0 -2
  1408. package/www/build/p-e78353d6.entry.js.map +0 -1
  1409. package/www/build/p-ea36d666.entry.js +0 -2
  1410. package/www/build/p-ea36d666.entry.js.map +0 -1
  1411. package/www/build/p-ed091723.entry.js +0 -2
  1412. package/www/build/p-ed091723.entry.js.map +0 -1
  1413. package/www/build/p-f06bd257.entry.js +0 -2
  1414. package/www/build/p-f06bd257.entry.js.map +0 -1
  1415. package/www/build/p-f075ec62.entry.js +0 -2
  1416. package/www/build/p-f075ec62.entry.js.map +0 -1
  1417. package/www/build/p-f8915e2e.entry.js +0 -7
  1418. package/www/build/p-f8915e2e.entry.js.map +0 -1
  1419. package/www/build/p-fb06a5d8.entry.js +0 -2
  1420. package/www/build/p-fb06a5d8.entry.js.map +0 -1
  1421. package/www/build/p-feb84d36.js +0 -2
  1422. package/www/build/p-feb84d36.js.map +0 -1
  1423. /package/dist/{web-components-library/p-2798c0b2.entry.js.map → esm-es5/z-tbody.entry.js.map} +0 -0
  1424. /package/dist/{web-components-library/p-2aeb2a94.entry.js.map → esm-es5/z-td.entry.js.map} +0 -0
  1425. /package/dist/{web-components-library/p-6e1ba2f0.entry.js.map → esm-es5/z-tfoot.entry.js.map} +0 -0
  1426. /package/dist/{web-components-library/p-ad825740.entry.js.map → esm-es5/z-th.entry.js.map} +0 -0
  1427. /package/dist/{web-components-library/p-b38be247.entry.js.map → esm-es5/z-thead.entry.js.map} +0 -0
  1428. /package/dist/{web-components-library/p-e185545c.entry.js.map → esm-es5/z-tr.entry.js.map} +0 -0
  1429. /package/{www/build/p-2798c0b2.entry.js.map → dist/web-components-library/p-0acf5b47.entry.js.map} +0 -0
  1430. /package/{www/build/p-2aeb2a94.entry.js.map → dist/web-components-library/p-18451749.entry.js.map} +0 -0
  1431. /package/{www/build/p-6e1ba2f0.entry.js.map → dist/web-components-library/p-1edba67a.entry.js.map} +0 -0
  1432. /package/{www/build/p-ad825740.entry.js.map → dist/web-components-library/p-3a9cd12d.system.entry.js.map} +0 -0
  1433. /package/{www/build/p-b38be247.entry.js.map → dist/web-components-library/p-61ac7fad.entry.js.map} +0 -0
  1434. /package/{www/build/p-e185545c.entry.js.map → dist/web-components-library/p-6a5bd1ca.system.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function r(t){try{s(o.next(t))}catch(t){a(t)}}function l(t){try{s(o["throw"](t))}catch(t){a(t)}}function s(t){t.done?i(t.value):n(t.value).then(r,l)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(i=0)),i)try{if(o=1,n&&(a=l[0]&2?n["return"]:l[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;if(n=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;n=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(l[0]===6&&i.label<a[1]){i.label=a[1];a=l;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(l);break}if(a[2])i.ops.pop();i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t];n=0}finally{o=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var o=0,n=e.length,a;o<n;o++){if(a||!(o in e)){if(!a)a=Array.prototype.slice.call(e,0,o);a[o]=e[o]}}return t.concat(a||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-c8ceadeb.js";import{g as KeyboardCode}from"./index-ee40e66b.js";var stylesCss$1=":host{position:relative;display:-ms-flexbox;display:flex;width:772px;max-width:100%;height:232px;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding:calc(var(--space-unit) * 3);background-color:var(--color-surface02);background-image:repeating-linear-gradient(\n 0deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n ),\n repeating-linear-gradient(\n 90deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n ),\n repeating-linear-gradient(\n 180deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n ),\n repeating-linear-gradient(\n 270deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n );background-position:0 0,\n 0 0,\n 100% 0,\n 0 100%;background-repeat:no-repeat;background-size:2px 100%,\n 100% 2px,\n 2px 100%,\n 100% 2px;border-radius:var(--border-radius-small);color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,*{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.dragover) *{pointer-events:none}.dragover-container{position:absolute;z-index:1;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}:host(.dragover) .dragover-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}";var ZDragdropAreaStyle0=stylesCss$1;var ZDragdropArea=function(){function t(t){registerInstance(this,t);this.fileDropped=createEvent(this,"fileDropped",7);this.dragAndDropLabel=undefined;this.dragging=false}t.prototype.onDrop=function(t){t.preventDefault();this.dragging=false;if(t.dataTransfer.files.length){this.fileDropped.emit(t.dataTransfer.files)}};t.prototype.render=function(){var t=this;return h(Host,{key:"5dd259e74cca7c7fa1278d9cdc11062efaaf34b2",class:{dragover:this.dragging},onDragOver:function(e){e.preventDefault();t.dragging=true},onDragLeave:function(){t.dragging=false},onDrop:this.onDrop.bind(this)},h("div",{key:"2c8607ad99edd4ad3a59b9b2511222b4fced829d",class:"dragover-container"},h("z-button",{key:"8cc6efce06a0df6d5473d2a6e1920e1e38952906"},this.dragAndDropLabel)),h("slot",{key:"969e228a60b69c7eed7f287c3a5b35b8e82bbe07"}))};return t}();ZDragdropArea.style=ZDragdropAreaStyle0;var supportCustomEvent=window.CustomEvent;if(!supportCustomEvent||typeof supportCustomEvent==="object"){supportCustomEvent=function t(e,i){i=i||{};var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!!i.bubbles,!!i.cancelable,i.detail||null);return o};supportCustomEvent.prototype=window.Event.prototype}function safeDispatchEvent(t,e){var i="on"+e.type.toLowerCase();if(typeof t[i]==="function"){t[i](e)}return t.dispatchEvent(e)}function createsStackingContext(t){while(t&&t!==document.body){var e=window.getComputedStyle(t);var i=function(t,i){return!(e[t]===undefined||e[t]===i)};if(e.opacity<1||i("zIndex","auto")||i("transform","none")||i("mixBlendMode","normal")||i("filter","none")||i("perspective","none")||e["isolation"]==="isolate"||e.position==="fixed"||e.webkitOverflowScrolling==="touch"){return true}t=t.parentElement}return false}function findNearestDialog(t){while(t){if(t.localName==="dialog"){return t}if(t.parentElement){t=t.parentElement}else if(t.parentNode){t=t.parentNode.host}else{t=null}}return null}function safeBlur(t){while(t&&t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}if(t&&t.blur&&t!==document.body){t.blur()}}function inNodeList(t,e){for(var i=0;i<t.length;++i){if(t[i]===e){return true}}return false}function isFormMethodDialog(t){if(!t||!t.hasAttribute("method")){return false}return t.getAttribute("method").toLowerCase()==="dialog"}function findFocusableElementWithin(t){var e=["button","input","keygen","select","textarea"];var i=e.map((function(t){return t+":not([disabled])"}));i.push('[tabindex]:not([disabled]):not([tabindex=""])');var o=t.querySelector(i.join(", "));if(!o&&"attachShadow"in Element.prototype){var n=t.querySelectorAll("*");for(var a=0;a<n.length;a++){if(n[a].tagName&&n[a].shadowRoot){o=findFocusableElementWithin(n[a].shadowRoot);if(o){break}}}}return o}function isConnected(t){return t.isConnected||document.body.contains(t)}function findFormSubmitter(t){if(t.submitter){return t.submitter}var e=t.target;if(!(e instanceof HTMLFormElement)){return null}var i=dialogPolyfill.formSubmitter;if(!i){var o=t.target;var n="getRootNode"in o&&o.getRootNode()||document;i=n.activeElement}if(!i||i.form!==e){return null}return i}function maybeHandleSubmit(t){if(t.defaultPrevented){return}var e=t.target;var i=dialogPolyfill.imagemapUseValue;var o=findFormSubmitter(t);if(i===null&&o){i=o.value}var n=findNearestDialog(e);if(!n){return}var a=o&&o.getAttribute("formmethod")||e.getAttribute("method");if(a!=="dialog"){return}t.preventDefault();if(i!=null){n.close(i)}else{n.close()}}function dialogPolyfillInfo(t){this.dialog_=t;this.replacedStyleTop_=false;this.openAsModal_=false;if(!t.hasAttribute("role")){t.setAttribute("role","dialog")}t.show=this.show.bind(this);t.showModal=this.showModal.bind(this);t.close=this.close.bind(this);t.addEventListener("submit",maybeHandleSubmit,false);if(!("returnValue"in t)){t.returnValue=""}if("MutationObserver"in window){var e=new MutationObserver(this.maybeHideModal.bind(this));e.observe(t,{attributes:true,attributeFilter:["open"]})}else{var i=false;var o=function(){i?this.downgradeModal():this.maybeHideModal();i=false}.bind(this);var n;var a=function(e){if(e.target!==t){return}var a="DOMNodeRemoved";i|=e.type.substr(0,a.length)===a;window.clearTimeout(n);n=window.setTimeout(o,0)};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach((function(e){t.addEventListener(e,a)}))}Object.defineProperty(t,"open",{set:this.setOpen.bind(this),get:t.hasAttribute.bind(t,"open")});this.backdrop_=document.createElement("div");this.backdrop_.className="backdrop";this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this));this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this));this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}dialogPolyfillInfo.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){if(this.dialog_.hasAttribute("open")&&isConnected(this.dialog_)){return}this.downgradeModal()},downgradeModal:function(){if(!this.openAsModal_){return}this.openAsModal_=false;this.dialog_.style.zIndex="";if(this.replacedStyleTop_){this.dialog_.style.top="";this.replacedStyleTop_=false}this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_);dialogPolyfill.dm.removeDialog(this)},setOpen:function(t){if(t){this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open","")}else{this.dialog_.removeAttribute("open");this.maybeHideModal()}},backdropMouseEvent_:function(t){if(!this.dialog_.hasAttribute("tabindex")){var e=document.createElement("div");this.dialog_.insertBefore(e,this.dialog_.firstChild);e.tabIndex=-1;e.focus();this.dialog_.removeChild(e)}else{this.dialog_.focus()}var i=document.createEvent("MouseEvents");i.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget);this.dialog_.dispatchEvent(i);t.stopPropagation()},focus_:function(){var t=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!t&&this.dialog_.tabIndex>=0){t=this.dialog_}if(!t){t=findFocusableElementWithin(this.dialog_)}safeBlur(document.activeElement);t&&t.focus()},updateZIndex:function(t,e){if(t<e){throw new Error("dialogZ should never be < backdropZ")}this.dialog_.style.zIndex=t;this.backdrop_.style.zIndex=e},show:function(){if(!this.dialog_.open){this.setOpen(true);this.focus_()}},showModal:function(){if(this.dialog_.hasAttribute("open")){throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.")}if(!isConnected(this.dialog_)){throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.")}if(!dialogPolyfill.dm.pushDialog(this)){throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.")}if(createsStackingContext(this.dialog_.parentElement)){console.warn("A dialog is being shown inside a stacking context. "+"This may cause it to be unusable. For more information, see this link: "+"https://github.com/GoogleChrome/dialog-polyfill/#stacking-context")}this.setOpen(true);this.openAsModal_=true;if(dialogPolyfill.needsCentering(this.dialog_)){dialogPolyfill.reposition(this.dialog_);this.replacedStyleTop_=true}else{this.replacedStyleTop_=false}this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling);this.focus_()},close:function(t){if(!this.dialog_.hasAttribute("open")){throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.")}this.setOpen(false);if(t!==undefined){this.dialog_.returnValue=t}var e=new supportCustomEvent("close",{bubbles:false,cancelable:false});safeDispatchEvent(this.dialog_,e)}};var dialogPolyfill={};dialogPolyfill.reposition=function(t){var e=document.body.scrollTop||document.documentElement.scrollTop;var i=e+(window.innerHeight-t.offsetHeight)/2;t.style.top=Math.max(e,i)+"px"};dialogPolyfill.isInlinePositionSetByStylesheet=function(t){for(var e=0;e<document.styleSheets.length;++e){var i=document.styleSheets[e];var o=null;try{o=i.cssRules}catch(t){}if(!o){continue}for(var n=0;n<o.length;++n){var a=o[n];var r=null;try{r=document.querySelectorAll(a.selectorText)}catch(t){}if(!r||!inNodeList(r,t)){continue}var l=a.style.getPropertyValue("top");var s=a.style.getPropertyValue("bottom");if(l&&l!=="auto"||s&&s!=="auto"){return true}}}return false};dialogPolyfill.needsCentering=function(t){var e=window.getComputedStyle(t);if(e.position!=="absolute"){return false}if(t.style.top!=="auto"&&t.style.top!==""||t.style.bottom!=="auto"&&t.style.bottom!==""){return false}return!dialogPolyfill.isInlinePositionSetByStylesheet(t)};dialogPolyfill.forceRegisterDialog=function(t){if(window.HTMLDialogElement||t.showModal){console.warn("This browser already supports <dialog>, the polyfill "+"may not work correctly",t)}if(t.localName!=="dialog"){throw new Error("Failed to register dialog: The element is not a dialog.")}new dialogPolyfillInfo(t)};dialogPolyfill.registerDialog=function(t){if(!t.showModal){dialogPolyfill.forceRegisterDialog(t)}};dialogPolyfill.DialogManager=function(){this.pendingDialogStack=[];var t=this.checkDOM_.bind(this);this.overlay=document.createElement("div");this.overlay.className="_dialog_overlay";this.overlay.addEventListener("click",function(e){this.forwardTab_=undefined;e.stopPropagation();t([])}.bind(this));this.handleKey_=this.handleKey_.bind(this);this.handleFocus_=this.handleFocus_.bind(this);this.zIndexLow_=1e5;this.zIndexHigh_=1e5+150;this.forwardTab_=undefined;if("MutationObserver"in window){this.mo_=new MutationObserver((function(e){var i=[];e.forEach((function(t){for(var e=0,o;o=t.removedNodes[e];++e){if(!(o instanceof Element)){continue}else if(o.localName==="dialog"){i.push(o)}i=i.concat(o.querySelectorAll("dialog"))}}));i.length&&t(i)}))}};dialogPolyfill.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,true);document.addEventListener("keydown",this.handleKey_);this.mo_&&this.mo_.observe(document,{childList:true,subtree:true})};dialogPolyfill.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,true);document.removeEventListener("keydown",this.handleKey_);this.mo_&&this.mo_.disconnect()};dialogPolyfill.DialogManager.prototype.updateStacking=function(){var t=this.zIndexHigh_;for(var e=0,i;i=this.pendingDialogStack[e];++e){i.updateZIndex(--t,--t);if(e===0){this.overlay.style.zIndex=--t}}var o=this.pendingDialogStack[0];if(o){var n=o.dialog.parentNode||document.body;n.appendChild(this.overlay)}else if(this.overlay.parentNode){this.overlay.parentNode.removeChild(this.overlay)}};dialogPolyfill.DialogManager.prototype.containedByTopDialog_=function(t){while(t=findNearestDialog(t)){for(var e=0,i;i=this.pendingDialogStack[e];++e){if(i.dialog===t){return e===0}}t=t.parentElement}return false};dialogPolyfill.DialogManager.prototype.handleFocus_=function(t){var e=t.composedPath?t.composedPath()[0]:t.target;if(this.containedByTopDialog_(e)){return}if(document.activeElement===document.documentElement){return}t.preventDefault();t.stopPropagation();safeBlur(e);if(this.forwardTab_===undefined){return}var i=this.pendingDialogStack[0];var o=i.dialog;var n=o.compareDocumentPosition(e);if(n&Node.DOCUMENT_POSITION_PRECEDING){if(this.forwardTab_){i.focus_()}else if(e!==document.documentElement){document.documentElement.focus()}}return false};dialogPolyfill.DialogManager.prototype.handleKey_=function(t){this.forwardTab_=undefined;if(t.keyCode===27){t.preventDefault();t.stopPropagation();var e=new supportCustomEvent("cancel",{bubbles:false,cancelable:true});var i=this.pendingDialogStack[0];if(i&&safeDispatchEvent(i.dialog,e)){i.dialog.close()}}else if(t.keyCode===9){this.forwardTab_=!t.shiftKey}};dialogPolyfill.DialogManager.prototype.checkDOM_=function(t){var e=this.pendingDialogStack.slice();e.forEach((function(e){if(t.indexOf(e.dialog)!==-1){e.downgradeModal()}else{e.maybeHideModal()}}))};dialogPolyfill.DialogManager.prototype.pushDialog=function(t){var e=(this.zIndexHigh_-this.zIndexLow_)/2-1;if(this.pendingDialogStack.length>=e){return false}if(this.pendingDialogStack.unshift(t)===1){this.blockDocument()}this.updateStacking();return true};dialogPolyfill.DialogManager.prototype.removeDialog=function(t){var e=this.pendingDialogStack.indexOf(t);if(e===-1){return}this.pendingDialogStack.splice(e,1);if(this.pendingDialogStack.length===0){this.unblockDocument()}this.updateStacking()};dialogPolyfill.dm=new dialogPolyfill.DialogManager;dialogPolyfill.formSubmitter=null;dialogPolyfill.imagemapUseValue=null;if(window.HTMLDialogElement===undefined){var testForm=document.createElement("form");testForm.setAttribute("method","dialog");if(testForm.method!=="dialog"){var methodDescriptor=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(methodDescriptor){var realGet=methodDescriptor.get;methodDescriptor.get=function(){if(isFormMethodDialog(this)){return"dialog"}return realGet.call(this)};var realSet=methodDescriptor.set;methodDescriptor.set=function(t){if(typeof t==="string"&&t.toLowerCase()==="dialog"){return this.setAttribute("method",t)}return realSet.call(this,t)};Object.defineProperty(HTMLFormElement.prototype,"method",methodDescriptor)}}document.addEventListener("click",(function(t){dialogPolyfill.formSubmitter=null;dialogPolyfill.imagemapUseValue=null;if(t.defaultPrevented){return}var e=t.target;if("composedPath"in t){var i=t.composedPath();e=i.shift()||e}if(!e||!isFormMethodDialog(e.form)){return}var o=e.type==="submit"&&["button","input"].indexOf(e.localName)>-1;if(!o){if(!(e.localName==="input"&&e.type==="image")){return}dialogPolyfill.imagemapUseValue=t.offsetX+","+t.offsetY}var n=findNearestDialog(e);if(!n){return}dialogPolyfill.formSubmitter=e}),false);document.addEventListener("submit",(function(t){var e=t.target;var i=findNearestDialog(e);if(i){return}var o=findFormSubmitter(t);var n=o&&o.getAttribute("formmethod")||e.getAttribute("method");if(n==="dialog"){t.preventDefault()}}));var nativeFormSubmit=HTMLFormElement.prototype.submit;var replacementFormSubmit=function(){if(!isFormMethodDialog(this)){return nativeFormSubmit.call(this)}var t=findNearestDialog(this);t&&t.close()};HTMLFormElement.prototype.submit=replacementFormSubmit}var stylesCss=':host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-modal-content-padding:calc(var(--space-unit) * 2)}:host>dialog{padding:0;border:none;margin:0;background-color:transparent}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::-webkit-backdrop{display:none}:host>dialog::-ms-backdrop{display:none}:host>dialog::backdrop{display:none}:host>dialog+.backdrop{display:none}:host>dialog:not([open]){display:none}:host>dialog[open]{display:block}::slotted([slot="modalContent"]){padding:var(--z-modal-content-padding)}.modal-container{z-index:1010;display:-ms-flexbox;display:flex;overflow:-moz-scrollbars-none;width:100%;height:100vh;-ms-flex-direction:column;flex-direction:column}.modal-container>.modal-content-scroll-outside{overflow:auto;background:var(--color-surface01)}.modal-container>header{padding:calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.75)\n calc(var(--space-unit) * 2);background:var(--color-background)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header button:focus-visible{border-radius:50%;-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);outline:none !important}.modal-container>header button::after{position:absolute;top:6px;right:4px;display:block;width:40px;height:40px;background-color:transparent;content:""}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.25);--z-icon-height:calc(var(--space-unit) * 2.25);display:-ms-flexbox;display:flex;fill:var(--color-primary01-icon)}.modal-container>header>div{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:baseline;align-items:baseline;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header .subtitle{padding:0;margin:0;color:var(--color-default-text);font-weight:var(--font-sb)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header .subtitle{font-size:var(--font-size-3);font-weight:var(--font-rg);letter-spacing:0;line-height:1.5}.modal-container>header>div>h1 *:empty{display:none}.modal-container>header h1+.subtitle{margin-top:calc(var(--space-unit) * 0.5)}.modal-container-scroll-inside>.modal-content-scroll-inside{overflow:hidden auto;-ms-flex:1 auto;flex:1 auto;background:var(--color-surface01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar,.modal-container-scroll-outside>.modal-content-scroll-outside::-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-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container-scroll-inside .modal-content-scroll-inside,.modal-container-scroll-outside .modal-content-scroll-outside{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-background{position:fixed;top:0;left:0;overflow:hidden;width:100vw;height:100vh;background-color:var(--gray900);opacity:0.7}.modal-background.modal-background-scroll-outside{position:-webkit-sticky;position:sticky}.modal-container-scroll-inside{position:fixed;top:calc(var(--space-unit) * 6);left:50%;overflow:hidden;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);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.modal-container-scroll-outside{position:absolute;top:calc(var(--space-unit) * 6);left:50%;display:block;overflow:initial;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));-webkit-transform:translateX(-50%);transform:translateX(-50%)}.modal-container>.modal-content-scroll-outside{overflow:initial}.modal-container-scroll-outside>header,.modal-container-scroll-inside>header{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.modal-container-scroll-outside::after{display:block;height:calc(var(--space-unit) * 6);content:" "}.modal-dialog{position:fixed;top:0;left:0;height:auto;overflow-x:hidden;overflow-y:auto}.modal-content-scroll-outside{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.modal-dialog::-webkit-scrollbar{display:none}}@media only screen and (min-width: 1152px){.modal-container>header{padding-top:calc(var(--space-unit) * 1.5);padding-bottom:calc(var(--space-unit) * 1.5)}.modal-container>header h1{font-size:var(--font-size-6);font-weight:var(--font-sb);letter-spacing:0;line-height:1.333}.modal-container>header .subtitle{font-size:var(--font-size-4);font-weight:var(--font-rg);letter-spacing:0;line-height:1.5}.modal-container>header h1+.subtitle{margin-top:0}}';var ZModalStyle0=stylesCss;var FOCUSABLE_ELEMENTS_SELECTOR=':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';var ZModal=function(){function t(t){registerInstance(this,t);this.modalClose=createEvent(this,"modalClose",7);this.modalHeaderActive=createEvent(this,"modalHeaderActive",7);this.modalBackgroundClick=createEvent(this,"modalBackgroundClick",7);this.modalid=undefined;this.modaltitle=undefined;this.modalsubtitle=undefined;this.closeButtonLabel="chiudi modale";this.alertdialog=false;this.closable=true;this.scrollInside=true}t.prototype.emitModalClose=function(){if(this.closable){this.modalClose.emit({modalid:this.modalid})}};t.prototype.emitModalHeaderActive=function(){this.modalHeaderActive.emit({modalid:this.modalid})};t.prototype.emitBackgroundClick=function(){if(this.closable){this.modalBackgroundClick.emit({modalid:this.modalid})}};t.prototype.componentDidLoad=function(){if(typeof window.HTMLDialogElement!=="function"){if(!this.dialog.localName){Object.defineProperty(this.dialog,"localName",{value:"dialog"})}dialogPolyfill.registerDialog(this.dialog);this.dialog.setAttribute("open","true")}else{this.open()}};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.dialog)===null||t===void 0?void 0:t.showModal();return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.closable){(t=this.dialog)===null||t===void 0?void 0:t.close()}return[2]}))}))};Object.defineProperty(t.prototype,"focusableElements",{get:function(){return __spreadArray(__spreadArray([],Array.from(this.host.shadowRoot.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),true),Array.from(this.host.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)),true).filter((function(t){return getComputedStyle(t).display!=="none"}))},enumerable:false,configurable:true});t.prototype.handleKeyDown=function(t){if(t.code===KeyboardCode.ESC&&!this.closable){t.preventDefault()}if(t.code!==KeyboardCode.TAB){return}var e=this.focusableElements;var i=this.host.shadowRoot.activeElement;var o=this.host.ownerDocument.activeElement;var n=e[0];var a=e[e.length-1];if(t.shiftKey&&(i==n||o==n)){t.preventDefault();a.focus()}else if(!t.shiftKey&&(i==a||o==a)){t.preventDefault();n.focus()}};t.prototype.closeButtonSlot=function(){var t=this;if(this.closable){return h("slot",{name:"modalCloseButton"},h("button",{"aria-label":this.closeButtonLabel,onClick:function(){return t.close()}},h("z-icon",{name:"multiply-circle-filled"})))}};t.prototype.handleEscape=function(t){if(this.closable){return}t.preventDefault()};t.prototype.render=function(){var t=this;return h("dialog",{key:"17794438aa16cc501338ebf00d3a3b65b6641fef",class:{"modal-dialog":!this.scrollInside},"aria-labelledby":"modal-title","aria-describedby":"modal-content",role:this.alertdialog?"alertdialog":undefined,ref:function(e){return t.dialog=e},onClose:function(){return t.emitModalClose()},onCancel:function(e){return t.handleEscape(e)}},h("div",{key:"d2598b03be351e20e3ef1f5b404a75efa033774d",class:{"modal-container":true,"modal-container-scroll-inside":this.scrollInside,"modal-container-scroll-outside":!this.scrollInside},id:this.modalid},h("header",{key:"7af194baf3c79535e9234aa164d499db62939ac3",onClick:this.emitModalHeaderActive.bind(this)},h("div",{key:"74aebe7e908ae02f76429a4c9d18ed2baea93826"},this.modaltitle&&h("h1",{key:"4d1e2d2eedc5632c9aad4e7a8e368edbc461e9a5",id:"modal-title"},this.modaltitle),this.closeButtonSlot()),this.modalsubtitle&&h("div",{key:"5cc0068f3ed046f90db1aec8351ce6c9a0ff395e",class:"subtitle",id:"modal-subtitle"},this.modalsubtitle)),h("div",{key:"cb68ab8b8919343b19464132060abb4a0af4e4fd",class:{"modal-content-scroll-inside":this.scrollInside,"modal-content-scroll-outside":!this.scrollInside},id:"modal-content"},h("slot",{key:"e703270b2f2a1d4f20609c842476f50de720d33d",name:"modalContent"}))),h("div",{key:"3ce377406bf6e766769db87a5da3a45cf68eb776",class:{"modal-background":true,"modal-background-scroll-outside":!this.scrollInside},"data-action":"modalBackground","data-modal":this.modalid,onClick:function(){t.emitBackgroundClick();t.close()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();ZModal.style=ZModalStyle0;export{ZDragdropArea as z_dragdrop_area,ZModal as z_modal};
2
+ //# sourceMappingURL=z-dragdrop-area_2.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZDragdropAreaStyle0","ZDragdropArea","prototype","onDrop","e","preventDefault","this","dragging","dataTransfer","files","length","fileDropped","emit","render","_this","h","Host","key","class","dragover","onDragOver","onDragLeave","bind","dragAndDropLabel","supportCustomEvent","window","CustomEvent","event","x","ev","document","createEvent","initCustomEvent","bubbles","cancelable","detail","Event","safeDispatchEvent","target","check","type","toLowerCase","dispatchEvent","createsStackingContext","el","body","s","getComputedStyle","invalid","k","ok","undefined","opacity","position","webkitOverflowScrolling","parentElement","findNearestDialog","localName","parentNode","host","safeBlur","shadowRoot","activeElement","blur","inNodeList","nodeList","node","i","isFormMethodDialog","hasAttribute","getAttribute","findFocusableElementWithin","hostElement","opts","query","map","push","querySelector","join","Element","elems","querySelectorAll","tagName","isConnected","element","contains","findFormSubmitter","submitter","form","HTMLFormElement","dialogPolyfill","formSubmitter","root","getRootNode","maybeHandleSubmit","defaultPrevented","value","imagemapUseValue","dialog","formmethod","close","dialogPolyfillInfo","dialog_","replacedStyleTop_","openAsModal_","setAttribute","show","showModal","addEventListener","returnValue","mo","MutationObserver","maybeHideModal","observe","attributes","attributeFilter","removed","cb","downgradeModal","timeout","delayModel","cand","substr","clearTimeout","setTimeout","forEach","name","Object","defineProperty","set","setOpen","get","backdrop_","createElement","className","backdropMouseEvent_","style","zIndex","top","removeChild","dm","removeDialog","removeAttribute","fake","insertBefore","firstChild","tabIndex","focus","redirectedEvent","initMouseEvent","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","stopPropagation","focus_","updateZIndex","dialogZ","backdropZ","Error","open","pushDialog","console","warn","needsCentering","reposition","nextSibling","opt_returnValue","closeEvent","scrollTop","documentElement","topValue","innerHeight","offsetHeight","Math","max","isInlinePositionSetByStylesheet","styleSheets","styleSheet","cssRules","j","rule","selectedNodes","selectorText","cssTop","getPropertyValue","cssBottom","computedStyle","bottom","forceRegisterDialog","HTMLDialogElement","registerDialog","DialogManager","pendingDialogStack","checkDOM","checkDOM_","overlay","forwardTab_","handleKey_","handleFocus_","zIndexLow_","zIndexHigh_","mo_","records","rec","c","removedNodes","concat","blockDocument","childList","subtree","unblockDocument","removeEventListener","disconnect","updateStacking","dpi","last","p","appendChild","containedByTopDialog_","candidate","composedPath","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","keyCode","cancelEvent","clone","slice","indexOf","allowed","unshift","index","splice","testForm","method","methodDescriptor","getOwnPropertyDescriptor","realGet","call","realSet","v","path","shift","valid","offsetX","offsetY","nativeFormSubmit","submit","replacementFormSubmit","ZModalStyle0","FOCUSABLE_ELEMENTS_SELECTOR","ZModal","class_1","emitModalClose","closable","modalClose","modalid","emitModalHeaderActive","modalHeaderActive","emitBackgroundClick","modalBackgroundClick","componentDidLoad","_a","__spreadArray","Array","from","filter","display","handleKeyDown","code","KeyboardCode","ESC","TAB","focusableElements","shadowActiveElement","ownerDocument","firstFocusableElement","lastFocusableElement","closeButtonSlot","closeButtonLabel","onClick","handleEscape","scrollInside","role","alertdialog","ref","onClose","onCancel","id","modaltitle","modalsubtitle"],"sources":["src/components/file-upload/z-dragdrop-area/styles.css?tag=z-dragdrop-area&encapsulation=shadow","src/components/file-upload/z-dragdrop-area/index.tsx","node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js","src/components/z-modal/styles.css?tag=z-modal&encapsulation=shadow","src/components/z-modal/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: flex;\n width: 772px;\n max-width: 100%;\n height: 232px;\n flex-direction: column;\n align-items: center;\n padding: calc(var(--space-unit) * 3);\n background-color: var(--color-surface02);\n background-image: repeating-linear-gradient(\n 0deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n ),\n repeating-linear-gradient(\n 90deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n ),\n repeating-linear-gradient(\n 180deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n ),\n repeating-linear-gradient(\n 270deg,\n var(--color-surface03),\n var(--color-surface03) 12px,\n transparent 12px,\n transparent 20px\n );\n background-position:\n 0 0,\n 0 0,\n 100% 0,\n 0 100%;\n background-repeat: no-repeat;\n background-size:\n 2px 100%,\n 100% 2px,\n 2px 100%,\n 100% 2px;\n border-radius: var(--border-radius-small);\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n/* https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element */\n:host(.dragover) * {\n pointer-events: none;\n}\n\n.dragover-container {\n position: absolute;\n z-index: 1;\n top: 0;\n left: 0;\n display: none;\n width: 100%;\n height: 100%;\n background-color: var(--color-primary03);\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host(.dragover) .dragover-container {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n","import {Component, Event, EventEmitter, Host, Prop, State, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-dragdrop-area\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZDragdropArea {\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel: string;\n\n /** State that indicates if the user is dragging a file over the drag & drop area */\n @State()\n dragging = false;\n\n /** Emitted when user drop one or more files */\n @Event()\n fileDropped: EventEmitter;\n\n private onDrop(e: DragEvent): void {\n e.preventDefault();\n this.dragging = false;\n if (e.dataTransfer.files.length) {\n this.fileDropped.emit(e.dataTransfer.files);\n }\n }\n\n render(): HTMLZDragdropAreaElement {\n return (\n <Host\n class={{dragover: this.dragging}}\n onDragOver={(e) => {\n e.preventDefault();\n this.dragging = true;\n }}\n onDragLeave={() => {\n this.dragging = false;\n }}\n onDrop={this.onDrop.bind(this)}\n >\n <div class=\"dragover-container\">\n <z-button>{this.dragAndDropLabel}</z-button>\n </div>\n <slot />\n </Host>\n );\n }\n}\n","// nb. This is for IE10 and lower _only_.\nvar supportCustomEvent = window.CustomEvent;\nif (!supportCustomEvent || typeof supportCustomEvent === 'object') {\n supportCustomEvent = function CustomEvent(event, x) {\n x = x || {};\n var ev = document.createEvent('CustomEvent');\n ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);\n return ev;\n };\n supportCustomEvent.prototype = window.Event.prototype;\n}\n\n/**\n * Dispatches the passed event to both an \"on<type>\" handler as well as via the\n * normal dispatch operation. Does not bubble.\n *\n * @param {!EventTarget} target\n * @param {!Event} event\n * @return {boolean}\n */\nfunction safeDispatchEvent(target, event) {\n var check = 'on' + event.type.toLowerCase();\n if (typeof target[check] === 'function') {\n target[check](event);\n }\n return target.dispatchEvent(event);\n}\n\n/**\n * @param {Element} el to check for stacking context\n * @return {boolean} whether this el or its parents creates a stacking context\n */\nfunction createsStackingContext(el) {\n while (el && el !== document.body) {\n var s = window.getComputedStyle(el);\n var invalid = function(k, ok) {\n return !(s[k] === undefined || s[k] === ok);\n };\n\n if (s.opacity < 1 ||\n invalid('zIndex', 'auto') ||\n invalid('transform', 'none') ||\n invalid('mixBlendMode', 'normal') ||\n invalid('filter', 'none') ||\n invalid('perspective', 'none') ||\n s['isolation'] === 'isolate' ||\n s.position === 'fixed' ||\n s.webkitOverflowScrolling === 'touch') {\n return true;\n }\n el = el.parentElement;\n }\n return false;\n}\n\n/**\n * Finds the nearest <dialog> from the passed element.\n *\n * @param {Element} el to search from\n * @return {HTMLDialogElement} dialog found\n */\nfunction findNearestDialog(el) {\n while (el) {\n if (el.localName === 'dialog') {\n return /** @type {HTMLDialogElement} */ (el);\n }\n if (el.parentElement) {\n el = el.parentElement;\n } else if (el.parentNode) {\n el = el.parentNode.host;\n } else {\n el = null;\n }\n }\n return null;\n}\n\n/**\n * Blur the specified element, as long as it's not the HTML body element.\n * This works around an IE9/10 bug - blurring the body causes Windows to\n * blur the whole application.\n *\n * @param {Element} el to blur\n */\nfunction safeBlur(el) {\n // Find the actual focused element when the active element is inside a shadow root\n while (el && el.shadowRoot && el.shadowRoot.activeElement) {\n el = el.shadowRoot.activeElement;\n }\n\n if (el && el.blur && el !== document.body) {\n el.blur();\n }\n}\n\n/**\n * @param {!NodeList} nodeList to search\n * @param {Node} node to find\n * @return {boolean} whether node is inside nodeList\n */\nfunction inNodeList(nodeList, node) {\n for (var i = 0; i < nodeList.length; ++i) {\n if (nodeList[i] === node) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * @param {HTMLFormElement} el to check\n * @return {boolean} whether this form has method=\"dialog\"\n */\nfunction isFormMethodDialog(el) {\n if (!el || !el.hasAttribute('method')) {\n return false;\n }\n return el.getAttribute('method').toLowerCase() === 'dialog';\n}\n\n/**\n * @param {!DocumentFragment|!Element} hostElement\n * @return {?Element}\n */\nfunction findFocusableElementWithin(hostElement) {\n // Note that this is 'any focusable area'. This list is probably not exhaustive, but the\n // alternative involves stepping through and trying to focus everything.\n var opts = ['button', 'input', 'keygen', 'select', 'textarea'];\n var query = opts.map(function(el) {\n return el + ':not([disabled])';\n });\n // TODO(samthor): tabindex values that are not numeric are not focusable.\n query.push('[tabindex]:not([disabled]):not([tabindex=\"\"])'); // tabindex != \"\", not disabled\n var target = hostElement.querySelector(query.join(', '));\n\n if (!target && 'attachShadow' in Element.prototype) {\n // If we haven't found a focusable target, see if the host element contains an element\n // which has a shadowRoot.\n // Recursively search for the first focusable item in shadow roots.\n var elems = hostElement.querySelectorAll('*');\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].tagName && elems[i].shadowRoot) {\n target = findFocusableElementWithin(elems[i].shadowRoot);\n if (target) {\n break;\n }\n }\n }\n }\n return target;\n}\n\n/**\n * Determines if an element is attached to the DOM.\n * @param {Element} element to check\n * @return {boolean} whether the element is in DOM\n */\nfunction isConnected(element) {\n return element.isConnected || document.body.contains(element);\n}\n\n/**\n * @param {!Event} event\n * @return {?Element}\n */\nfunction findFormSubmitter(event) {\n if (event.submitter) {\n return event.submitter;\n }\n\n var form = event.target;\n if (!(form instanceof HTMLFormElement)) {\n return null;\n }\n\n var submitter = dialogPolyfill.formSubmitter;\n if (!submitter) {\n var target = event.target;\n var root = ('getRootNode' in target && target.getRootNode() || document);\n submitter = root.activeElement;\n }\n\n if (!submitter || submitter.form !== form) {\n return null;\n }\n return submitter;\n}\n\n/**\n * @param {!Event} event\n */\nfunction maybeHandleSubmit(event) {\n if (event.defaultPrevented) {\n return;\n }\n var form = /** @type {!HTMLFormElement} */ (event.target);\n\n // We'd have a value if we clicked on an imagemap.\n var value = dialogPolyfill.imagemapUseValue;\n var submitter = findFormSubmitter(event);\n if (value === null && submitter) {\n value = submitter.value;\n }\n\n // There should always be a dialog as this handler is added specifically on them, but check just\n // in case.\n var dialog = findNearestDialog(form);\n if (!dialog) {\n return;\n }\n\n // Prefer formmethod on the button.\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod !== 'dialog') {\n return;\n }\n event.preventDefault();\n\n if (value != null) {\n // nb. we explicitly check against null/undefined\n dialog.close(value);\n } else {\n dialog.close();\n }\n}\n\n/**\n * @param {!HTMLDialogElement} dialog to upgrade\n * @constructor\n */\nfunction dialogPolyfillInfo(dialog) {\n this.dialog_ = dialog;\n this.replacedStyleTop_ = false;\n this.openAsModal_ = false;\n\n // Set a11y role. Browsers that support dialog implicitly know this already.\n if (!dialog.hasAttribute('role')) {\n dialog.setAttribute('role', 'dialog');\n }\n\n dialog.show = this.show.bind(this);\n dialog.showModal = this.showModal.bind(this);\n dialog.close = this.close.bind(this);\n\n dialog.addEventListener('submit', maybeHandleSubmit, false);\n\n if (!('returnValue' in dialog)) {\n dialog.returnValue = '';\n }\n\n if ('MutationObserver' in window) {\n var mo = new MutationObserver(this.maybeHideModal.bind(this));\n mo.observe(dialog, {attributes: true, attributeFilter: ['open']});\n } else {\n // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also\n // seem to fire even if the element was removed as part of a parent removal. Use the removed\n // events to force downgrade (useful if removed/immediately added).\n var removed = false;\n var cb = function() {\n removed ? this.downgradeModal() : this.maybeHideModal();\n removed = false;\n }.bind(this);\n var timeout;\n var delayModel = function(ev) {\n if (ev.target !== dialog) { return; } // not for a child element\n var cand = 'DOMNodeRemoved';\n removed |= (ev.type.substr(0, cand.length) === cand);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(cb, 0);\n };\n ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {\n dialog.addEventListener(name, delayModel);\n });\n }\n // Note that the DOM is observed inside DialogManager while any dialog\n // is being displayed as a modal, to catch modal removal from the DOM.\n\n Object.defineProperty(dialog, 'open', {\n set: this.setOpen.bind(this),\n get: dialog.hasAttribute.bind(dialog, 'open')\n });\n\n this.backdrop_ = document.createElement('div');\n this.backdrop_.className = 'backdrop';\n this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));\n}\n\ndialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({\n\n get dialog() {\n return this.dialog_;\n },\n\n /**\n * Maybe remove this dialog from the modal top layer. This is called when\n * a modal dialog may no longer be tenable, e.g., when the dialog is no\n * longer open or is no longer part of the DOM.\n */\n maybeHideModal: function() {\n if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }\n this.downgradeModal();\n },\n\n /**\n * Remove this dialog from the modal top layer, leaving it as a non-modal.\n */\n downgradeModal: function() {\n if (!this.openAsModal_) { return; }\n this.openAsModal_ = false;\n this.dialog_.style.zIndex = '';\n\n // This won't match the native <dialog> exactly because if the user set top on a centered\n // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's\n // possible to polyfill this perfectly.\n if (this.replacedStyleTop_) {\n this.dialog_.style.top = '';\n this.replacedStyleTop_ = false;\n }\n\n // Clear the backdrop and remove from the manager.\n this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);\n dialogPolyfill.dm.removeDialog(this);\n },\n\n /**\n * @param {boolean} value whether to open or close this dialog\n */\n setOpen: function(value) {\n if (value) {\n this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');\n } else {\n this.dialog_.removeAttribute('open');\n this.maybeHideModal(); // nb. redundant with MutationObserver\n }\n },\n\n /**\n * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if\n * they were on the dialog itself.\n *\n * @param {!Event} e to redirect\n */\n backdropMouseEvent_: function(e) {\n if (!this.dialog_.hasAttribute('tabindex')) {\n // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be\n // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this\n // would not be needed - clicks would move the implicit cursor there.\n var fake = document.createElement('div');\n this.dialog_.insertBefore(fake, this.dialog_.firstChild);\n fake.tabIndex = -1;\n fake.focus();\n this.dialog_.removeChild(fake);\n } else {\n this.dialog_.focus();\n }\n\n var redirectedEvent = document.createEvent('MouseEvents');\n redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,\n e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,\n e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);\n this.dialog_.dispatchEvent(redirectedEvent);\n e.stopPropagation();\n },\n\n /**\n * Focuses on the first focusable element within the dialog. This will always blur the current\n * focus, even if nothing within the dialog is found.\n */\n focus_: function() {\n // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.\n var target = this.dialog_.querySelector('[autofocus]:not([disabled])');\n if (!target && this.dialog_.tabIndex >= 0) {\n target = this.dialog_;\n }\n if (!target) {\n target = findFocusableElementWithin(this.dialog_);\n }\n safeBlur(document.activeElement);\n target && target.focus();\n },\n\n /**\n * Sets the zIndex for the backdrop and dialog.\n *\n * @param {number} dialogZ\n * @param {number} backdropZ\n */\n updateZIndex: function(dialogZ, backdropZ) {\n if (dialogZ < backdropZ) {\n throw new Error('dialogZ should never be < backdropZ');\n }\n this.dialog_.style.zIndex = dialogZ;\n this.backdrop_.style.zIndex = backdropZ;\n },\n\n /**\n * Shows the dialog. If the dialog is already open, this does nothing.\n */\n show: function() {\n if (!this.dialog_.open) {\n this.setOpen(true);\n this.focus_();\n }\n },\n\n /**\n * Show this dialog modally.\n */\n showModal: function() {\n if (this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is already open, and therefore cannot be opened modally.');\n }\n if (!isConnected(this.dialog_)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is not in a Document.');\n }\n if (!dialogPolyfill.dm.pushDialog(this)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: There are too many open modal dialogs.');\n }\n\n if (createsStackingContext(this.dialog_.parentElement)) {\n console.warn('A dialog is being shown inside a stacking context. ' +\n 'This may cause it to be unusable. For more information, see this link: ' +\n 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');\n }\n\n this.setOpen(true);\n this.openAsModal_ = true;\n\n // Optionally center vertically, relative to the current viewport.\n if (dialogPolyfill.needsCentering(this.dialog_)) {\n dialogPolyfill.reposition(this.dialog_);\n this.replacedStyleTop_ = true;\n } else {\n this.replacedStyleTop_ = false;\n }\n\n // Insert backdrop.\n this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);\n\n // Focus on whatever inside the dialog.\n this.focus_();\n },\n\n /**\n * Closes this HTMLDialogElement. This is optional vs clearing the open\n * attribute, however this fires a 'close' event.\n *\n * @param {string=} opt_returnValue to use as the returnValue\n */\n close: function(opt_returnValue) {\n if (!this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'close\\' on dialog: The element does not have an \\'open\\' attribute, and therefore cannot be closed.');\n }\n this.setOpen(false);\n\n // Leave returnValue untouched in case it was set directly on the element\n if (opt_returnValue !== undefined) {\n this.dialog_.returnValue = opt_returnValue;\n }\n\n // Triggering \"close\" event for any attached listeners on the <dialog>.\n var closeEvent = new supportCustomEvent('close', {\n bubbles: false,\n cancelable: false\n });\n safeDispatchEvent(this.dialog_, closeEvent);\n }\n\n});\n\nvar dialogPolyfill = {};\n\ndialogPolyfill.reposition = function(element) {\n var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;\n var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;\n element.style.top = Math.max(scrollTop, topValue) + 'px';\n};\n\ndialogPolyfill.isInlinePositionSetByStylesheet = function(element) {\n for (var i = 0; i < document.styleSheets.length; ++i) {\n var styleSheet = document.styleSheets[i];\n var cssRules = null;\n // Some browsers throw on cssRules.\n try {\n cssRules = styleSheet.cssRules;\n } catch (e) {}\n if (!cssRules) { continue; }\n for (var j = 0; j < cssRules.length; ++j) {\n var rule = cssRules[j];\n var selectedNodes = null;\n // Ignore errors on invalid selector texts.\n try {\n selectedNodes = document.querySelectorAll(rule.selectorText);\n } catch(e) {}\n if (!selectedNodes || !inNodeList(selectedNodes, element)) {\n continue;\n }\n var cssTop = rule.style.getPropertyValue('top');\n var cssBottom = rule.style.getPropertyValue('bottom');\n if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {\n return true;\n }\n }\n }\n return false;\n};\n\ndialogPolyfill.needsCentering = function(dialog) {\n var computedStyle = window.getComputedStyle(dialog);\n if (computedStyle.position !== 'absolute') {\n return false;\n }\n\n // We must determine whether the top/bottom specified value is non-auto. In\n // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but\n // Firefox returns the used value. So we do this crazy thing instead: check\n // the inline style and then go through CSS rules.\n if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||\n (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {\n return false;\n }\n return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);\n};\n\n/**\n * @param {!Element} element to force upgrade\n */\ndialogPolyfill.forceRegisterDialog = function(element) {\n if (window.HTMLDialogElement || element.showModal) {\n console.warn('This browser already supports <dialog>, the polyfill ' +\n 'may not work correctly', element);\n }\n if (element.localName !== 'dialog') {\n throw new Error('Failed to register dialog: The element is not a dialog.');\n }\n new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));\n};\n\n/**\n * @param {!Element} element to upgrade, if necessary\n */\ndialogPolyfill.registerDialog = function(element) {\n if (!element.showModal) {\n dialogPolyfill.forceRegisterDialog(element);\n }\n};\n\n/**\n * @constructor\n */\ndialogPolyfill.DialogManager = function() {\n /** @type {!Array<!dialogPolyfillInfo>} */\n this.pendingDialogStack = [];\n\n var checkDOM = this.checkDOM_.bind(this);\n\n // The overlay is used to simulate how a modal dialog blocks the document.\n // The blocking dialog is positioned on top of the overlay, and the rest of\n // the dialogs on the pending dialog stack are positioned below it. In the\n // actual implementation, the modal dialog stacking is controlled by the\n // top layer, where z-index has no effect.\n this.overlay = document.createElement('div');\n this.overlay.className = '_dialog_overlay';\n this.overlay.addEventListener('click', function(e) {\n this.forwardTab_ = undefined;\n e.stopPropagation();\n checkDOM([]); // sanity-check DOM\n }.bind(this));\n\n this.handleKey_ = this.handleKey_.bind(this);\n this.handleFocus_ = this.handleFocus_.bind(this);\n\n this.zIndexLow_ = 100000;\n this.zIndexHigh_ = 100000 + 150;\n\n this.forwardTab_ = undefined;\n\n if ('MutationObserver' in window) {\n this.mo_ = new MutationObserver(function(records) {\n var removed = [];\n records.forEach(function(rec) {\n for (var i = 0, c; c = rec.removedNodes[i]; ++i) {\n if (!(c instanceof Element)) {\n continue;\n } else if (c.localName === 'dialog') {\n removed.push(c);\n }\n removed = removed.concat(c.querySelectorAll('dialog'));\n }\n });\n removed.length && checkDOM(removed);\n });\n }\n};\n\n/**\n * Called on the first modal dialog being shown. Adds the overlay and related\n * handlers.\n */\ndialogPolyfill.DialogManager.prototype.blockDocument = function() {\n document.documentElement.addEventListener('focus', this.handleFocus_, true);\n document.addEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});\n};\n\n/**\n * Called on the first modal dialog being removed, i.e., when no more modal\n * dialogs are visible.\n */\ndialogPolyfill.DialogManager.prototype.unblockDocument = function() {\n document.documentElement.removeEventListener('focus', this.handleFocus_, true);\n document.removeEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.disconnect();\n};\n\n/**\n * Updates the stacking of all known dialogs.\n */\ndialogPolyfill.DialogManager.prototype.updateStacking = function() {\n var zIndex = this.zIndexHigh_;\n\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n dpi.updateZIndex(--zIndex, --zIndex);\n if (i === 0) {\n this.overlay.style.zIndex = --zIndex;\n }\n }\n\n // Make the overlay a sibling of the dialog itself.\n var last = this.pendingDialogStack[0];\n if (last) {\n var p = last.dialog.parentNode || document.body;\n p.appendChild(this.overlay);\n } else if (this.overlay.parentNode) {\n this.overlay.parentNode.removeChild(this.overlay);\n }\n};\n\n/**\n * @param {Element} candidate to check if contained or is the top-most modal dialog\n * @return {boolean} whether candidate is contained in top dialog\n */\ndialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {\n while (candidate = findNearestDialog(candidate)) {\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n if (dpi.dialog === candidate) {\n return i === 0; // only valid if top-most\n }\n }\n candidate = candidate.parentElement;\n }\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n\n if (this.containedByTopDialog_(target)) { return; }\n\n if (document.activeElement === document.documentElement) { return; }\n\n event.preventDefault();\n event.stopPropagation();\n safeBlur(/** @type {Element} */ (target));\n\n if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key\n\n var dpi = this.pendingDialogStack[0];\n var dialog = dpi.dialog;\n var position = dialog.compareDocumentPosition(target);\n if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n if (this.forwardTab_) {\n // forward\n dpi.focus_();\n } else if (target !== document.documentElement) {\n // backwards if we're not already focused on <html>\n document.documentElement.focus();\n }\n }\n\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {\n this.forwardTab_ = undefined;\n if (event.keyCode === 27) {\n event.preventDefault();\n event.stopPropagation();\n var cancelEvent = new supportCustomEvent('cancel', {\n bubbles: false,\n cancelable: true\n });\n var dpi = this.pendingDialogStack[0];\n if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {\n dpi.dialog.close();\n }\n } else if (event.keyCode === 9) {\n this.forwardTab_ = !event.shiftKey;\n }\n};\n\n/**\n * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are\n * removed and immediately readded don't stay modal, they become normal.\n *\n * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed\n */\ndialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {\n // This operates on a clone because it may cause it to change. Each change also calls\n // updateStacking, which only actually needs to happen once. But who removes many modal dialogs\n // at a time?!\n var clone = this.pendingDialogStack.slice();\n clone.forEach(function(dpi) {\n if (removed.indexOf(dpi.dialog) !== -1) {\n dpi.downgradeModal();\n } else {\n dpi.maybeHideModal();\n }\n });\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n * @return {boolean} whether the dialog was allowed\n */\ndialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {\n var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;\n if (this.pendingDialogStack.length >= allowed) {\n return false;\n }\n if (this.pendingDialogStack.unshift(dpi) === 1) {\n this.blockDocument();\n }\n this.updateStacking();\n return true;\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n */\ndialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {\n var index = this.pendingDialogStack.indexOf(dpi);\n if (index === -1) { return; }\n\n this.pendingDialogStack.splice(index, 1);\n if (this.pendingDialogStack.length === 0) {\n this.unblockDocument();\n }\n this.updateStacking();\n};\n\ndialogPolyfill.dm = new dialogPolyfill.DialogManager();\ndialogPolyfill.formSubmitter = null;\ndialogPolyfill.imagemapUseValue = null;\n\n/**\n * Installs global handlers, such as click listers and native method overrides. These are needed\n * even if a no dialog is registered, as they deal with <form method=\"dialog\">.\n */\nif (window.HTMLDialogElement === undefined) {\n\n /**\n * If HTMLFormElement translates method=\"DIALOG\" into 'get', then replace the descriptor with\n * one that returns the correct value.\n */\n var testForm = document.createElement('form');\n testForm.setAttribute('method', 'dialog');\n if (testForm.method !== 'dialog') {\n var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');\n if (methodDescriptor) {\n // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything\n // and don't bother to update the element.\n var realGet = methodDescriptor.get;\n methodDescriptor.get = function() {\n if (isFormMethodDialog(this)) {\n return 'dialog';\n }\n return realGet.call(this);\n };\n var realSet = methodDescriptor.set;\n /** @this {HTMLElement} */\n methodDescriptor.set = function(v) {\n if (typeof v === 'string' && v.toLowerCase() === 'dialog') {\n return this.setAttribute('method', v);\n }\n return realSet.call(this, v);\n };\n Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);\n }\n }\n\n /**\n * Global 'click' handler, to capture the <input type=\"submit\"> or <button> element which has\n * submitted a <form method=\"dialog\">. Needed as Safari and others don't report this inside\n * document.activeElement.\n */\n document.addEventListener('click', function(ev) {\n dialogPolyfill.formSubmitter = null;\n dialogPolyfill.imagemapUseValue = null;\n if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission\n\n var target = /** @type {Element} */ (ev.target);\n if ('composedPath' in ev) {\n var path = ev.composedPath();\n target = path.shift() || target;\n }\n if (!target || !isFormMethodDialog(target.form)) { return; }\n\n var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);\n if (!valid) {\n if (!(target.localName === 'input' && target.type === 'image')) { return; }\n // this is a <input type=\"image\">, which can submit forms\n dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;\n }\n\n var dialog = findNearestDialog(target);\n if (!dialog) { return; }\n\n dialogPolyfill.formSubmitter = target;\n\n }, false);\n\n /**\n * Global 'submit' handler. This handles submits of `method=\"dialog\"` which are invalid, i.e.,\n * outside a dialog. They get prevented.\n */\n document.addEventListener('submit', function(ev) {\n var form = ev.target;\n var dialog = findNearestDialog(form);\n if (dialog) {\n return; // ignore, handle there\n }\n\n var submitter = findFormSubmitter(ev);\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod === 'dialog') {\n ev.preventDefault();\n }\n });\n\n /**\n * Replace the native HTMLFormElement.submit() method, as it won't fire the\n * submit event and give us a chance to respond.\n */\n var nativeFormSubmit = HTMLFormElement.prototype.submit;\n var replacementFormSubmit = function () {\n if (!isFormMethodDialog(this)) {\n return nativeFormSubmit.call(this);\n }\n var dialog = findNearestDialog(this);\n dialog && dialog.close();\n };\n HTMLFormElement.prototype.submit = replacementFormSubmit;\n}\n\nexport default dialogPolyfill;\n",":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n\n --z-modal-content-padding: calc(var(--space-unit) * 2);\n}\n\n:host > dialog {\n padding: 0;\n border: none;\n margin: 0;\n background-color: transparent;\n}\n\n/* stylelint-disable selector-pseudo-class-no-unknown */\n:host > dialog:modal {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n}\n\n:host > dialog::backdrop {\n display: none;\n}\n\n/* polyfill style */\n:host > dialog + .backdrop {\n display: none;\n}\n\n:host > dialog:not([open]) {\n display: none;\n}\n\n:host > dialog[open] {\n display: block;\n}\n\n::slotted([slot=\"modalContent\"]) {\n padding: var(--z-modal-content-padding);\n}\n\n.modal-container {\n z-index: 1010;\n display: flex;\n overflow: -moz-scrollbars-none;\n width: 100%;\n height: 100vh;\n flex-direction: column;\n}\n\n.modal-container > .modal-content-scroll-outside {\n overflow: auto;\n background: var(--color-surface01);\n}\n\n.modal-container > header {\n padding: calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.75)\n calc(var(--space-unit) * 2);\n background: var(--color-background);\n}\n\n.modal-container > header button {\n padding: 0;\n border: none;\n margin: 0;\n margin-left: auto;\n background: transparent;\n cursor: pointer;\n}\n\n.modal-container > header button:focus-visible {\n border-radius: 50%;\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n.modal-container > header button::after {\n position: absolute;\n top: 6px;\n right: 4px;\n display: block;\n width: 40px;\n height: 40px;\n background-color: transparent;\n content: \"\";\n}\n\n.modal-container > header z-icon {\n --z-icon-width: calc(var(--space-unit) * 2.25);\n --z-icon-height: calc(var(--space-unit) * 2.25);\n\n display: flex;\n fill: var(--color-primary01-icon);\n}\n\n.modal-container > header > div {\n display: flex;\n width: 100%;\n align-items: baseline;\n margin-right: calc(var(--space-unit) * 2);\n}\n\n.modal-container > header h1,\n.modal-container > header .subtitle {\n padding: 0;\n margin: 0;\n color: var(--color-default-text);\n font-weight: var(--font-sb);\n}\n\n.modal-container > header h1 {\n font-size: var(--font-size-5);\n letter-spacing: 0;\n line-height: 1.4;\n}\n\n.modal-container > header .subtitle {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n letter-spacing: 0;\n line-height: 1.5;\n}\n\n.modal-container > header > div > h1 *:empty {\n display: none;\n}\n\n.modal-container > header h1 + .subtitle {\n margin-top: calc(var(--space-unit) * 0.5);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside {\n overflow: hidden auto;\n flex: 1 auto;\n background: var(--color-surface01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar {\n width: 10px;\n background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);\n border-radius: var(--border-radius);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb {\n width: 10px;\n background-color: var(--color-primary01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-hover-primary);\n}\n\n/* Firefox */\n.modal-container-scroll-inside .modal-content-scroll-inside,\n.modal-container-scroll-outside .modal-content-scroll-outside {\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n/* Tablet / Desktop */\n@media only screen and (min-width: 768px) {\n .modal-background {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n width: 100vw;\n height: 100vh;\n background-color: var(--gray900);\n opacity: 0.7;\n }\n\n .modal-background.modal-background-scroll-outside {\n position: sticky;\n }\n\n .modal-container-scroll-inside {\n position: fixed;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n overflow: hidden;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n border-radius: var(--border-radius);\n transform: translateX(-50%);\n }\n\n .modal-container-scroll-outside {\n position: absolute;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n display: block;\n overflow: initial;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n transform: translateX(-50%);\n }\n\n .modal-container > .modal-content-scroll-outside {\n overflow: initial;\n }\n\n .modal-container-scroll-outside > header,\n .modal-container-scroll-inside > header {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n\n .modal-container-scroll-outside::after {\n display: block;\n height: calc(var(--space-unit) * 6);\n content: \" \";\n }\n\n .modal-dialog {\n position: fixed;\n top: 0;\n left: 0;\n height: auto;\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .modal-content-scroll-outside {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n\n .modal-dialog::-webkit-scrollbar {\n display: none;\n }\n}\n\n/* Desktop */\n@media only screen and (min-width: 1152px) {\n .modal-container > header {\n padding-top: calc(var(--space-unit) * 1.5);\n padding-bottom: calc(var(--space-unit) * 1.5);\n }\n\n .modal-container > header h1 {\n font-size: var(--font-size-6);\n font-weight: var(--font-sb);\n letter-spacing: 0;\n line-height: 1.333;\n }\n\n .modal-container > header .subtitle {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n letter-spacing: 0;\n line-height: 1.5;\n }\n\n .modal-container > header h1 + .subtitle {\n margin-top: 0;\n }\n}\n","import {Component, Element, Event, EventEmitter, Listen, Method, Prop, h} from \"@stencil/core\";\nimport dialogPolyfill from \"dialog-polyfill\";\nimport {KeyboardCode} from \"../../beans\";\n\nconst FOCUSABLE_ELEMENTS_SELECTOR =\n ':is(button, input, select, textarea, [contenteditable=\"\"], [contenteditable=\"true\"], a[href], [tabindex], summary):not([disabled], [disabled=\"\"], [tabindex=\"-1\"], [aria-hidden=\"true\"], [hidden])';\n\n/**\n * @slot modalCloseButton - accept custom close button\n * @slot modalContent - set the content of the modal\n * @cssprop --z-modal-content-padding - set a default padding for the modal content slot to 16px\n */\n@Component({\n tag: \"z-modal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZModal {\n /** unique id */\n @Prop()\n modalid: string;\n\n /** title text (optional) */\n @Prop()\n modaltitle?: string;\n\n /** subtitle (optional) */\n @Prop()\n modalsubtitle?: string;\n\n /** aria-label for close button (optional) */\n @Prop()\n closeButtonLabel = \"chiudi modale\";\n\n /** add role \"alertdialog\" to dialog (optional, default is false) */\n @Prop()\n alertdialog?: boolean = false;\n\n /** if true, the modal is closable (optional, default is true) */\n @Prop()\n closable?: boolean = true;\n\n /** if true, the modal can scroll inside, if false the viewport can scroll */\n @Prop()\n scrollInside?: boolean = true;\n\n private dialog: HTMLDialogElement;\n\n @Element() host: HTMLZModalElement;\n\n /** emitted on close button click, returns modalid */\n @Event()\n modalClose: EventEmitter;\n\n private emitModalClose(): void {\n if (this.closable) {\n this.modalClose.emit({modalid: this.modalid});\n }\n }\n\n /** emitted on modal header click, returns modalid */\n @Event()\n modalHeaderActive: EventEmitter;\n\n private emitModalHeaderActive(): void {\n this.modalHeaderActive.emit({modalid: this.modalid});\n }\n\n /** emitted on background click, returns modalid */\n @Event()\n modalBackgroundClick: EventEmitter;\n\n private emitBackgroundClick(): void {\n if (this.closable) {\n this.modalBackgroundClick.emit({modalid: this.modalid});\n }\n }\n\n componentDidLoad(): void {\n if (typeof window.HTMLDialogElement !== \"function\") {\n /* workaround to fix `registerDialog` in test environment:\n stencil converts html elements to MockHTMLElement but this element is missing the `localName` property,\n which is used by `registerDialog` to recognize the element as dialog */\n if (!this.dialog.localName) {\n Object.defineProperty(this.dialog, \"localName\", {value: \"dialog\"});\n }\n dialogPolyfill.registerDialog(this.dialog);\n this.dialog.setAttribute(\"open\", \"true\");\n } else {\n this.open();\n }\n }\n\n /** open modal */\n @Method()\n async open(): Promise<void> {\n this.dialog?.showModal();\n }\n\n /** close modal */\n @Method()\n async close(): Promise<void> {\n if (this.closable) {\n this.dialog?.close();\n }\n }\n\n /**\n * Get a list of focusable elements in the dialog.\n * Remove elements with `display: none` from the list, because they're not focusable.\n *\n * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.\n * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.\n */\n private get focusableElements(): HTMLElement[] {\n return [\n ...Array.from(this.host.shadowRoot.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ...Array.from(this.host.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ].filter((element) => getComputedStyle(element).display !== \"none\");\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ESC && !this.closable) {\n e.preventDefault();\n }\n\n if (e.code !== KeyboardCode.TAB) {\n return;\n }\n\n const focusableElements = this.focusableElements;\n const shadowActiveElement = this.host.shadowRoot.activeElement;\n const activeElement = this.host.ownerDocument.activeElement;\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n lastFocusableElement.focus();\n } else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n firstFocusableElement.focus();\n }\n }\n\n private closeButtonSlot(): HTMLElement | void {\n if (this.closable) {\n return (\n <slot name=\"modalCloseButton\">\n <button\n aria-label={this.closeButtonLabel}\n onClick={() => this.close()}\n >\n <z-icon name=\"multiply-circle-filled\"></z-icon>\n </button>\n </slot>\n );\n }\n }\n\n private handleEscape(e: Event): void {\n if (this.closable) {\n return;\n }\n e.preventDefault();\n }\n\n render(): HTMLZModalElement {\n return (\n <dialog\n class={{\n \"modal-dialog\": !this.scrollInside,\n }}\n aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\"\n role={this.alertdialog ? \"alertdialog\" : undefined}\n ref={(el) => (this.dialog = el as HTMLDialogElement)}\n onClose={() => this.emitModalClose()}\n onCancel={(e) => this.handleEscape(e)}\n >\n <div\n class={{\n \"modal-container\": true,\n \"modal-container-scroll-inside\": this.scrollInside,\n \"modal-container-scroll-outside\": !this.scrollInside,\n }}\n id={this.modalid}\n >\n <header onClick={this.emitModalHeaderActive.bind(this)}>\n <div>\n {this.modaltitle && <h1 id=\"modal-title\">{this.modaltitle}</h1>}\n {this.closeButtonSlot()}\n </div>\n {this.modalsubtitle && (\n <div\n class=\"subtitle\"\n id=\"modal-subtitle\"\n >\n {this.modalsubtitle}\n </div>\n )}\n </header>\n\n <div\n class={{\n \"modal-content-scroll-inside\": this.scrollInside,\n \"modal-content-scroll-outside\": !this.scrollInside,\n }}\n id=\"modal-content\"\n >\n <slot name=\"modalContent\"></slot>\n </div>\n </div>\n <div\n class={{\n \"modal-background\": true,\n \"modal-background-scroll-outside\": !this.scrollInside,\n }}\n data-action=\"modalBackground\"\n data-modal={this.modalid}\n onClick={() => {\n this.emitBackgroundClick();\n this.close();\n }}\n ></div>\n </dialog>\n );\n }\n}\n"],"mappings":"u1DAAA,IAAMA,YAAY,gsDAClB,IAAAC,oBAAeD,Y,ICMFE,cAAa,W,wIAOb,K,CAMHA,EAAAC,UAAAC,OAAA,SAAOC,GACbA,EAAEC,iBACFC,KAAKC,SAAW,MAChB,GAAIH,EAAEI,aAAaC,MAAMC,OAAQ,CAC/BJ,KAAKK,YAAYC,KAAKR,EAAEI,aAAaC,M,GAIzCR,EAAAC,UAAAW,OAAA,eAAAC,EAAAR,KACE,OACES,EAACC,KAA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Q,EAAEC,gB,EAGJ8P,EAAAjQ,UAAAW,OAAA,eAAAC,EAAAR,KACE,OACES,EAAA,UAAAE,IAAA,2CACEC,MAAO,CACL,gBAAiBZ,KAAK2R,cACvB,kBACe,cAAa,mBACZ,gBACjBC,KAAM5R,KAAK6R,YAAc,cAAgBhP,UACzCiP,IAAK,SAACxP,GAAE,OAAM9B,EAAKoF,OAAStD,CAApB,EACRyP,QAAS,WAAM,OAAAvR,EAAKsP,gBAAL,EACfkC,SAAU,SAAClS,GAAM,OAAAU,EAAKkR,aAAa5R,EAAlB,GAEjBW,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,kBAAmB,KACnB,gCAAiCZ,KAAK2R,aACtC,kCAAmC3R,KAAK2R,cAE1CM,GAAIjS,KAAKiQ,SAETxP,EAAA,UAAAE,IAAA,2CAAQ8Q,QAASzR,KAAKkQ,sBAAsBlP,KAAKhB,OAC/CS,EAAA,OAAAE,IAAA,4CACGX,KAAKkS,YAAczR,EAAA,MAAAE,IAAA,2CAAIsR,GAAG,eAAejS,KAAKkS,YAC9ClS,KAAKuR,mBAEPvR,KAAKmS,eACJ1R,EAAA,OAAAE,IAAA,2CACEC,MAAM,WACNqR,GAAG,kBAEFjS,KAAKmS,gBAKZ1R,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,8BAA+BZ,KAAK2R,aACpC,gCAAiC3R,KAAK2R,cAExCM,GAAG,iBAEHxR,EAAA,QAAAE,IAAA,2CAAM6G,KAAK,mBAGf/G,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACL,mBAAoB,KACpB,mCAAoCZ,KAAK2R,cAC1C,cACW,kBAAiB,aACjB3R,KAAKiQ,QACjBwB,QAAS,WACPjR,EAAK4P,sBACL5P,EAAKsF,O,sIA/ME,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var __awaiter=this&&this.__awaiter||function(i,e,t,a){function n(i){return i instanceof t?i:new t((function(e){e(i)}))}return new(t||(t=Promise))((function(t,r){function s(i){try{o(a.next(i))}catch(i){r(i)}}function l(i){try{o(a["throw"](i))}catch(i){r(i)}}function o(i){i.done?t(i.value):n(i.value).then(s,l)}o((a=a.apply(i,e||[])).next())}))};var __generator=this&&this.__generator||function(i,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(i){return function(e){return o([i,e])}}function o(l){if(a)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(a=1,n&&(r=l[0]&2?n["return"]:l[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;if(n=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;n=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){t.label=l[1];break}if(l[0]===6&&t.label<r[1]){t.label=r[1];r=l;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(l);break}if(r[2])t.ops.pop();t.trys.pop();continue}l=e.call(i,t)}catch(i){l=[6,i];n=0}finally{a=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(i,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,r;a<n;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return i.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-c8ceadeb.js";import{v as ZFileUploadType}from"./index-ee40e66b.js";var stylesCss='.sc-z-file-upload-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}.sc-z-file-upload-h .text-container.sc-z-file-upload{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:auto;text-align:center}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload{color:var(--color-text-link-blue);cursor:pointer;text-decoration:underline}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link.sc-z-file-upload:focus-visible{-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);outline:none !important}.sc-z-file-upload-h .text-container.sc-z-file-upload .upload-link-text.sc-z-file-upload{margin-bottom:var(--space-unit)}.sc-z-file-upload-h input[type="file"].sc-z-file-upload{display:none}.sc-z-file-upload-h #title.sc-z-file-upload+#description.sc-z-file-upload{margin-top:var(--space-unit)}.sc-z-file-upload-h>*.sc-z-file-upload+z-button.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload+*.sc-z-file-upload,.sc-z-file-upload-h>.files-container.sc-z-file-upload:not(:first-child){margin-top:calc(var(--space-unit) * 3)}.sc-z-file-upload-h>.files-container.hidden.sc-z-file-upload{display:none}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.uploaded-files-label.sc-z-file-upload{margin-bottom:calc(var(--space-unit) * 2)}.sc-z-file-upload-h>.files-container.sc-z-file-upload>.files-wrapper.sc-z-file-upload{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:calc(var(--space-unit) * 2);-moz-column-gap:calc(var(--space-unit) * 2);column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}@media (min-width: 768px){.sc-z-file-upload-h>.container.sc-z-file-upload>z-button.sc-z-file-upload{-ms-flex-item-align:start;align-self:flex-start}.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 3)}}@media (min-width: 1152px){.sc-z-file-upload-h .modal-wrapper.sc-z-file-upload{padding:calc(var(--space-unit) * 4)}}';var ZFileUploadStyle0=stylesCss;var ZFileUpload=function(){function i(i){registerInstance(this,i);this.fileInput=createEvent(this,"fileInput",7);this.fileError=createEvent(this,"fileError",7);this.type=ZFileUploadType.DEFAULT;this.buttonVariant=undefined;this.acceptedFormat=undefined;this.fileMaxSize=undefined;this.mainTitle=undefined;this.description=undefined;this.uploadBtnLabel="allega";this.dragAndDropLabel="Rilascia i file in questa area per allegarli.";this.allowedFilesMessage=undefined;this.uploadClickableMessage="Carica";this.uploadMessage="o trascina dal tuo computer";this.errorModalTitle="Errore di caricamento";this.errorModalMessage=undefined;this.uploadedFilesLabel="File appena caricati";this.hasFileSection=true;this.inputName="z-file-upload";this.showErrors=true;this._type=this.type;this.files=[];this.invalidFiles=new Map}i.prototype.onFileRemoved=function(i){this.removeFile(i.detail)};i.prototype.fileDroppedListener=function(i){this.input.files=i.detail;this.checkFilesValidity(this.input.files)};i.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.files]}))}))};i.prototype.removeFile=function(i){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){e=this.files;t=e.findIndex((function(e){return e.name===i}));if(t>=0){e.splice(t,1);this.files=__spreadArray([],e,true)}return[2]}))}))};i.prototype.checkFilesValidity=function(i){var e=this;if(!i.length){return}Array.from(i).forEach((function(i){var t=i.size/1024/1024;var a=e.acceptedFormat.split(",").some((function(e){return i.name.toLowerCase().endsWith(e.trim())}));var n=t<=e.fileMaxSize;if(n&&a&&!e.files.find((function(e){return e.name===i.name}))){e.files=__spreadArray(__spreadArray([],e.files,true),[i],false);e.fileInput.emit(i);e.input.value="";return}var r="Il file ".concat(i.name," supera il limite di ").concat(e.fileMaxSize,"MB");var s="Il file ".concat(i.name," ha un formato non supportato");var l=[!n&&{cause:"size",message:r},!a&&{cause:"format",message:s}].filter(Boolean);e.invalidFiles.set(i.name,l);e.invalidFiles=new Map(e.invalidFiles);e.fileError.emit({file:i.name,errors:l})}))};i.prototype.resetErrors=function(){this.invalidFiles=new Map};i.prototype.onFilesChange=function(i){this.checkFilesValidity(i.target.files)};i.prototype.componentWillLoad=function(){var i=this;var e=window.matchMedia("(max-width: 1151px)");this._type=e.matches?ZFileUploadType.DEFAULT:this.type;e.addEventListener("change",(function(e){i._type=e.matches?ZFileUploadType.DEFAULT:i.type}))};i.prototype.componentDidUpdate=function(){if(!this.showErrors||!this.invalidFiles.size){return}this.errorModal.open()};i.prototype.renderDescription=function(i){if(!this.description){return}return h("span",{id:"description",class:i},this.description)};i.prototype.renderAllowedFilesMessage=function(){var i="";var e="";if(this.acceptedFormat){var t=this.acceptedFormat.split(", ").map((function(i){return i.substring(1).toUpperCase()})).join(", ");i=" nei formati ".concat(t)}if(this.fileMaxSize){e=" per un massimo di ".concat(this.fileMaxSize,"MB di peso")}var a=i||e?"Puoi allegare file".concat(i).concat(e,"."):undefined;if(!this.allowedFilesMessage&&!a){return}return h("span",{class:"allowed-files-message body-3"},this.allowedFilesMessage||a)};i.prototype.renderFileSection=function(){if(!this.hasFileSection){return}return h("section",{class:{"files-container":true,hidden:!this.files.length}},h("div",{class:"uploaded-files-label heading-3-sb"},this.uploadedFilesLabel),h("div",{class:"files-wrapper"},h("slot",{name:"files"})))};i.prototype.renderInput=function(){var i=this;return h("input",{type:"file",name:this.inputName,multiple:true,onChange:function(e){return i.onFilesChange(e)},accept:this.acceptedFormat,ref:function(e){return i.input=e}})};i.prototype.renderUploadButton=function(){var i=this;return[h("z-button",{onClick:function(){return i.input.click()},onKeyPress:function(e){if(e.code=="Space"||e.code=="Enter"){e.preventDefault();i.input.click()}},id:"fileSelect",variant:this.buttonVariant,icon:"upload"},this.uploadBtnLabel),this.renderInput()]};i.prototype.renderUploadLink=function(){var i=this;return[this.renderInput(),h("span",{class:"body-1 upload-link-text"},h("span",{tabIndex:0,class:"body-1-sb upload-link",onClick:function(){return i.input.click()},onKeyPress:function(e){if(e.code=="Space"||e.code=="Enter"){e.preventDefault();i.input.click()}}},this.uploadClickableMessage)," ",this.uploadMessage)]};i.prototype.renderDefaultMode=function(){return[this.renderDescription("body-3-sb"),this.renderAllowedFilesMessage(),this.renderFileSection(),this.renderUploadButton()]};i.prototype.renderDragDropMode=function(){return[this.renderFileSection(),h("z-dragdrop-area",{"drag-and-drop-label":this.dragAndDropLabel},h("div",{class:"text-container"},this.renderDescription("body-1"),this.renderUploadLink(),this.renderAllowedFilesMessage()))]};i.prototype.renderFileErrors=function(){return Array.from(this.invalidFiles).map((function(i){var e=i[0],t=i[1];var a="Il file ".concat(e);return h("span",{class:"error-message"},"Il file ",h("span",{class:"body-3-sb"},e),t.map((function(i){var e=i.message;return e.replace(a,"")})).join(" e "),".")}))};i.prototype.render=function(){var i=this;return h(Host,{key:"ea57cc0462e4358d04bfc8f5709b61be50947e7a"},this.mainTitle&&h("div",{key:"59e23f66172333b963922832782a8ac89611acb9",id:"title",class:"heading-3-sb"},this.mainTitle),this._type==ZFileUploadType.DEFAULT?this.renderDefaultMode():this.renderDragDropMode(),!!this.invalidFiles.size&&this.showErrors&&h("z-modal",{key:"64cb55a1c0fb491a9dd5b414a309b284e4f2d24e",modalid:"file-upload-".concat(this.type,"-error-modal"),ref:function(e){return i.errorModal=e},modaltitle:this.errorModalTitle,onModalClose:function(){return i.resetErrors()},onModalBackgroundClick:function(){return i.resetErrors()}},h("div",{key:"255cf2140f1ca881f90df6952965abc8f364f4d0",slot:"modalContent"},h("div",{key:"03638b6b970c72c73ac7014f0c7848a032029963",class:"modal-wrapper body-3"},this.errorModalMessage?this.errorModalMessage:this.renderFileErrors()))))};Object.defineProperty(i.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return i}();ZFileUpload.style=ZFileUploadStyle0;export{ZFileUpload as z_file_upload};
2
+ //# sourceMappingURL=z-file-upload.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZFileUploadStyle0","ZFileUpload","ZFileUploadType","DEFAULT","this","type","Map","class_1","prototype","onFileRemoved","e","removeFile","detail","fileDroppedListener","input","files","checkFilesValidity","getFiles","fileName","index","findIndex","file","name","splice","__spreadArray","_this","length","Array","from","forEach","fileSize","size","fileFormatOk","acceptedFormat","split","some","ext","toLowerCase","endsWith","trim","fileSizeOk","fileMaxSize","find","f","fileInput","emit","value","sizeError","concat","formatError","errors","cause","message","filter","Boolean","invalidFiles","set","fileError","resetErrors","onFilesChange","target","componentWillLoad","mql","window","matchMedia","_type","matches","addEventListener","componentDidUpdate","showErrors","errorModal","open","renderDescription","cssClass","description","h","id","class","renderAllowedFilesMessage","fileFormatString","fileWeightString","fileFormat","map","string","substring","toUpperCase","join","defaultMessage","undefined","allowedFilesMessage","renderFileSection","hasFileSection","hidden","uploadedFilesLabel","renderInput","inputName","multiple","onChange","accept","ref","val","renderUploadButton","onClick","click","onKeyPress","code","preventDefault","variant","buttonVariant","icon","uploadBtnLabel","renderUploadLink","tabIndex","uploadClickableMessage","uploadMessage","renderDefaultMode","renderDragDropMode","dragAndDropLabel","renderFileErrors","_a","prefix","replace","render","Host","key","mainTitle","modalid","modaltitle","errorModalTitle","onModalClose","onModalBackgroundClick","slot","errorModalMessage"],"sources":["src/components/file-upload/z-file-upload/styles.css?tag=z-file-upload&encapsulation=scoped","src/components/file-upload/z-file-upload/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host .modal-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n:host .modal-wrapper > .files-wrapper {\n display: flex;\n flex-direction: column;\n margin: calc(var(--space-unit) * 4);\n gap: var(--space-unit);\n}\n\n:host .text-container {\n display: flex;\n flex-direction: column;\n margin: auto;\n text-align: center;\n}\n\n:host .text-container .upload-link {\n color: var(--color-text-link-blue);\n cursor: pointer;\n text-decoration: underline;\n}\n\n:host .text-container .upload-link:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host .text-container .upload-link-text {\n margin-bottom: var(--space-unit);\n}\n\n:host input[type=\"file\"] {\n display: none;\n}\n\n:host #title + #description {\n margin-top: var(--space-unit);\n}\n\n:host > * + z-button,\n:host > .files-container + *,\n:host > .files-container:not(:first-child) {\n margin-top: calc(var(--space-unit) * 3);\n}\n\n:host > .files-container.hidden {\n display: none;\n}\n\n:host > .files-container > .uploaded-files-label {\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > .files-container > .files-wrapper {\n display: flex;\n flex-wrap: wrap;\n column-gap: calc(var(--space-unit) * 2);\n row-gap: calc(var(--space-unit) * 2);\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host > .container > z-button {\n align-self: flex-start;\n }\n\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 3);\n }\n}\n\n@media (min-width: 1152px) {\n :host .modal-wrapper {\n padding: calc(var(--space-unit) * 4);\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {ButtonVariant, ZFileUploadType} from \"../../../beans\";\n\nexport type ZFileUploadError = {cause: \"format\" | \"size\"; message: string};\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFileUpload {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** allowed file message */\n @Prop()\n allowedFilesMessage?: string;\n\n /** upload clickable message */\n @Prop()\n uploadClickableMessage?: string = \"Carica\";\n\n /** upload message */\n @Prop()\n uploadMessage?: string = \"o trascina dal tuo computer\";\n\n /** error modal title */\n @Prop()\n errorModalTitle?: string = \"Errore di caricamento\";\n\n /** error modal message */\n @Prop()\n errorModalMessage?: string;\n\n /** loaded files label */\n @Prop()\n uploadedFilesLabel?: string = \"File appena caricati\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** Value to set on the file input's `name` attribute (for use with forms) */\n @Prop()\n inputName? = \"z-file-upload\";\n\n /**\n * Whether to show errors in the internal modal or leave the handling to the app.\n * Errors will still be emitted.\n */\n @Prop()\n showErrors = true;\n\n /** Internal store of the component type. It will change when viewport goes from desktop to tablet/mobile and vice versa */\n @State()\n private _type: ZFileUploadType = this.type;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** Map of files whose upload caused an error and the relative errors, with the cause and a message */\n @State()\n invalidFiles: Map<string, ZFileUploadError[]> = new Map<string, ZFileUploadError[]>();\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter<File>;\n\n /**\n * Emits an array of error messages related to one or more files not allowed.\n * Emitted when some file is dropped or selected.\n */\n @Event()\n fileError: EventEmitter<{file: string; errors: ZFileUploadError[]}>;\n\n @Element() host: HTMLZFileUploadElement;\n\n private input: HTMLInputElement;\n\n private errorModal: HTMLZModalElement;\n\n /** Listen `removeFile` event sent from z-file component */\n @Listen(\"removeFile\")\n onFileRemoved(e: CustomEvent): void {\n this.removeFile(e.detail);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.checkFilesValidity(this.input.files);\n }\n\n /** Get the list of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** Remove a previously uploaded file */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n const files = this.files;\n const index = files.findIndex((file) => file.name === fileName);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n\n private checkFilesValidity(files: FileList): Map<string, string[]> {\n if (!files.length) {\n return;\n }\n\n Array.from(files).forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {\n this.files = [...this.files, file];\n this.fileInput.emit(file);\n this.input.value = \"\";\n\n return;\n }\n\n const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;\n const formatError = `Il file ${file.name} ha un formato non supportato`;\n const errors = [\n !fileSizeOk && {cause: \"size\" as const, message: sizeError},\n !fileFormatOk && {cause: \"format\" as const, message: formatError},\n ].filter(Boolean);\n this.invalidFiles.set(file.name, errors);\n this.invalidFiles = new Map(this.invalidFiles); // trigger state update\n this.fileError.emit({file: file.name, errors});\n });\n }\n\n private resetErrors(): void {\n this.invalidFiles = new Map<string, ZFileUploadError[]>();\n }\n\n private onFilesChange(e: Event): void {\n this.checkFilesValidity((e.target as HTMLInputElement).files);\n }\n\n componentWillLoad(): void {\n // force default type on mobile and tablet viewport\n const mql = window.matchMedia(\"(max-width: 1151px)\");\n this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;\n mql.addEventListener(\"change\", (e) => {\n this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;\n });\n }\n\n componentDidUpdate(): void {\n if (!this.showErrors || !this.invalidFiles.size) {\n return;\n }\n\n this.errorModal.open();\n }\n\n private renderDescription(cssClass): HTMLElement | undefined {\n if (!this.description) {\n return;\n }\n\n return (\n <span\n id=\"description\"\n class={cssClass}\n >\n {this.description}\n </span>\n );\n }\n\n private renderAllowedFilesMessage(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const defaultMessage =\n fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;\n\n if (!this.allowedFilesMessage && !defaultMessage) {\n return;\n }\n\n return <span class=\"allowed-files-message body-3\">{this.allowedFilesMessage || defaultMessage}</span>;\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={{\"files-container\": true, \"hidden\": !this.files.length}}>\n <div class=\"uploaded-files-label heading-3-sb\">{this.uploadedFilesLabel}</div>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n type=\"file\"\n name={this.inputName}\n multiple\n onChange={(e) => this.onFilesChange(e)}\n accept={this.acceptedFormat}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n >\n {this.uploadBtnLabel}\n </z-button>,\n this.renderInput(),\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n >\n {this.uploadClickableMessage}\n </span>{\" \"}\n {this.uploadMessage}\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFilesMessage(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFilesMessage()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private renderFileErrors(): HTMLElement[] {\n return Array.from(this.invalidFiles).map(([fileName, errors]) => {\n const prefix = `Il file ${fileName}`;\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"body-3-sb\">{fileName}</span>\n {errors.map(({message}) => message.replace(prefix, \"\")).join(\" e \")}.\n </span>\n );\n });\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n {this.mainTitle && (\n <div\n id=\"title\"\n class=\"heading-3-sb\"\n >\n {this.mainTitle}\n </div>\n )}\n {this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n {!!this.invalidFiles.size && this.showErrors && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n ref={(val) => (this.errorModal = val)}\n modaltitle={this.errorModalTitle}\n onModalClose={() => this.resetErrors()}\n onModalBackgroundClick={() => this.resetErrors()}\n >\n <div slot=\"modalContent\">\n <div class=\"modal-wrap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KyH,WACJlD,EAAA,OAAAiD,IAAA,2CACEhD,GAAG,QACHC,MAAM,gBAELzE,KAAKyH,WAGTzH,KAAK6D,OAAS/D,gBAAgBC,QAAUC,KAAK+G,oBAAsB/G,KAAKgH,uBACtEhH,KAAKmD,aAAaxB,MAAQ3B,KAAKiE,YAChCM,EAAA,WAAAiD,IAAA,2CACEE,QAAS,eAAA9E,OAAe5C,KAAKC,KAAI,gBACjC8F,IAAK,SAACC,GAAG,OAAM3E,EAAK6C,WAAa8B,CAAxB,EACT2B,WAAY3H,KAAK4H,gBACjBC,aAAc,WAAM,OAAAxG,EAAKiC,aAAL,EACpBwE,uBAAwB,WAAM,OAAAzG,EAAKiC,aAAL,GAE9BiB,EAAA,OAAAiD,IAAA,2CAAKO,KAAK,gBACRxD,EAAA,OAAAiD,IAAA,2CAAK/C,MAAM,wBACRzE,KAAKgI,kBAAoBhI,KAAKgI,kBAAoBhI,KAAKkH,sB,kIAnWhD,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-c8ceadeb.js";import{w as ZChipType,P as PopoverPosition}from"./index-ee40e66b.js";import{B as Breakpoints}from"./breakpoints-d148bfde.js";var stylesCss=".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";var ZFileStyle0=stylesCss;var ZFile=function(){function e(e){registerInstance(this,e);this.removeFile=createEvent(this,"removeFile",7);this.fileNumber=undefined;this.fileName=undefined;this.allowPopover=false;this.popoverVisible=false}e.prototype.removeFileHandler=function(){this.removeFile.emit({fileName:this.fileName});this.el.remove()};e.prototype.onMouseOver=function(){this.popoverVisible=true};e.prototype.onMouseLeave=function(){this.popoverVisible=false};e.prototype.onInteractiveIconClick=function(){this.removeFileHandler()};e.prototype.componentDidLoad=function(){var e,i;if(this.elementHasEllipsis()&&window.innerWidth>Breakpoints.TABLET){this.allowPopover=true}(i=(e=this.icon)===null||e===void 0?void 0:e.focus)===null||i===void 0?void 0:i.call(e)};e.prototype.elementHasEllipsis=function(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth};e.prototype.render=function(){var e=this;return h(Host,{key:"9a670c454baa87afc7d1c9e47a744eecaa074c68"},this.allowPopover&&h("z-popover",{key:"8d5d38d65a09aee75d56b888b9828a3f8a9e1626",open:this.popoverVisible,position:PopoverPosition.AUTO,bindTo:this.chip},h("span",{key:"c24e0d8afecbe3fdfb6370c76ddc0db54f597497",class:"body-5 tooltip-content"},this.ellipsis.innerText)),h("z-chip",{key:"a5c4ff0f9366bb59d581c9d48606d8989bbed678",ref:function(i){return e.chip=i},id:"chip-".concat(this.fileNumber),interactiveIcon:"multiply-circled",type:ZChipType.DEFAULT},h("span",{key:"eed1a949170a44f7ff618ec3e363923aea656742",ref:function(i){return e.ellipsis=i},tabIndex:-1},this.fileName)))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();ZFile.style=ZFileStyle0;export{ZFile as z_file};
2
+ //# sourceMappingURL=z-file.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZFileStyle0","ZFile","prototype","removeFileHandler","this","removeFile","emit","fileName","el","remove","onMouseOver","popoverVisible","onMouseLeave","onInteractiveIconClick","componentDidLoad","elementHasEllipsis","window","innerWidth","Breakpoints","TABLET","allowPopover","_b","_a","icon","focus","call","ellipsis","offsetWidth","scrollWidth","render","_this","h","Host","key","open","position","PopoverPosition","AUTO","bindTo","chip","class","innerText","ref","id","concat","fileNumber","interactiveIcon","type","ZChipType","DEFAULT","tabIndex"],"sources":["src/components/file-upload/z-file/styles.css?tag=z-file&encapsulation=scoped","src/components/file-upload/z-file/index.tsx"],"sourcesContent":[":host {\n position: relative;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-popover {\n z-index: 10;\n}\n\n:host > z-popover > .tooltip-content {\n white-space: nowrap;\n}\n\n:host > z-chip span {\n display: block;\n overflow: hidden;\n max-width: 250px;\n letter-spacing: 0.32px;\n line-height: 1.33;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\nimport {PopoverPosition, ZChipType} from \"../../../beans\";\nimport {Breakpoints} from \"../../../constants/breakpoints\";\n\n@Component({\n tag: \"z-file\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFile {\n private icon: HTMLElement;\n\n private ellipsis?: HTMLSpanElement;\n\n private chip?: HTMLZChipElement;\n\n /** File chip id */\n @Prop()\n fileNumber: number;\n\n /** File name */\n @Prop()\n fileName: string;\n\n @State()\n allowPopover = false;\n\n @State()\n popoverVisible = false;\n\n @Element() el: HTMLZFileElement;\n\n /** Emitted when a z-file component is removed from the DOM */\n @Event()\n removeFile: EventEmitter;\n\n private removeFileHandler(): void {\n this.removeFile.emit({fileName: this.fileName});\n this.el.remove();\n }\n\n @Listen(\"mouseover\")\n onMouseOver(): void {\n this.popoverVisible = true;\n }\n\n @Listen(\"mouseleave\")\n onMouseLeave(): void {\n this.popoverVisible = false;\n }\n\n @Listen(\"interactiveIconClick\")\n onInteractiveIconClick(): void {\n this.removeFileHandler();\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis() && window.innerWidth > Breakpoints.TABLET) {\n this.allowPopover = true;\n }\n\n this.icon?.focus?.();\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n render(): HTMLZFileElement {\n return (\n <Host>\n {this.allowPopover && (\n <z-popover\n open={this.popoverVisible}\n position={PopoverPosition.AUTO}\n bindTo={this.chip}\n >\n <span class=\"body-5 tooltip-content\">{this.ellipsis.innerText}</span>\n </z-popover>\n )}\n <z-chip\n ref={(el) => (this.chip = el as HTMLZChipElement)}\n id={`chip-${this.fileNumber}`}\n interactiveIcon=\"multiply-circled\"\n type={ZChipType.DEFAULT}\n >\n <span\n ref={(el) => (this.ellipsis = el as HTMLSpanElement)}\n tabIndex={-1}\n >\n {this.fileName}\n </span>\n </z-chip>\n </Host>\n );\n }\n}\n"],"mappings":"iOAAA,IAAMA,UAAY,wYAClB,IAAAC,YAAeD,U,ICSFE,MAAK,W,4JAgBD,M,oBAGE,K,CAQTA,EAAAC,UAAAC,kBAAA,WACNC,KAAKC,WAAWC,KAAK,CAACC,SAAUH,KAAKG,WACrCH,KAAKI,GAAGC,Q,EAIVR,EAAAC,UAAAQ,YAAA,WACEN,KAAKO,eAAiB,I,EAIxBV,EAAAC,UAAAU,aAAA,WACER,KAAKO,eAAiB,K,EAIxBV,EAAAC,UAAAW,uBAAA,WACET,KAAKD,mB,EAGPF,EAAAC,UAAAY,iBAAA,W,QACE,GAAIV,KAAKW,sBAAwBC,OAAOC,WAAaC,YAAYC,OAAQ,CACvEf,KAAKgB,aAAe,I,EAGtBC,GAAAC,EAAAlB,KAAKmB,QAAI,MAAAD,SAAA,SAAAA,EAAEE,SAAK,MAAAH,SAAA,SAAAA,EAAAI,KAAAH,E,EAGVrB,EAAAC,UAAAa,mBAAA,WACN,OAAOX,KAAKsB,SAASC,YAAcvB,KAAKsB,SAASE,W,EAGnD3B,EAAAC,UAAA2B,OAAA,eAAAC,EAAA1B,KACE,OACE2B,EAACC,KAAI,CAAAC,IAAA,4CACF7B,KAAKgB,cACJW,EAAA,aAAAE,IAAA,2CACEC,KAAM9B,KAAKO,eACXwB,SAAUC,gBAAgBC,KAC1BC,OAAQlC,KAAKmC,MAEbR,EAAA,QAAAE,IAAA,2CAAMO,MAAM,0BAA0BpC,KAAKsB,SAASe,YAGxDV,EAAA,UAAAE,IAAA,2CACES,IAAK,SAAClC,GAAE,OAAMsB,EAAKS,KAAO/B,CAAlB,EACRmC,GAAI,QAAAC,OAAQxC,KAAKyC,YACjBC,gBAAgB,mBAChBC,KAAMC,UAAUC,SAEhBlB,EAAA,QAAAE,IAAA,2CACES,IAAK,SAAClC,GAAE,OAAMsB,EAAKJ,SAAWlB,CAAtB,EACR0C,UAAW,GAEV9C,KAAKG,W,gIAjFA,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,h,a as Host}from"./index-c8ceadeb.js";var stylesCss=':host{display:inline-block;overflow:hidden;width:100%;height:100%;background:var(--color-background);border-radius:var(--border-radius);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host::after{display:block;width:100%;height:100%;-webkit-animation:progress 1.6s ease-in-out infinite;animation:progress 1.6s ease-in-out infinite;background-image:-webkit-gradient(\n linear,\n left top, right top,\n from(var(--color-background)),\n color-stop(95%, var(--color-surface03)),\n to(var(--color-background))\n );background-image:linear-gradient(\n 90deg,\n var(--color-background) 0%,\n var(--color-surface03) 95%,\n var(--color-background) 100%\n );content:"";-webkit-filter:blur(6px);filter:blur(6px)}@-webkit-keyframes progress{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes progress{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}';var ZGhostLoadingStyle0=stylesCss;var ZGhostLoading=function(){function r(r){registerInstance(this,r)}r.prototype.render=function(){return h(Host,{key:"8824327c1d3ba1c9b13dfdfd605c58dd7cd71b55"})};return r}();ZGhostLoading.style=ZGhostLoadingStyle0;export{ZGhostLoading as z_ghost_loading};
2
+ //# sourceMappingURL=z-ghost-loading.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZGhostLoadingStyle0","ZGhostLoading","prototype","render","h","Host","key"],"sources":["src/components/z-ghost-loading/styles.css?tag=z-ghost-loading&encapsulation=shadow","src/components/z-ghost-loading/index.tsx"],"sourcesContent":[":host {\n display: inline-block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background: var(--color-background);\n border-radius: var(--border-radius);\n transform: translate3d(0, 0, 0);\n}\n\n:host::after {\n display: block;\n width: 100%;\n height: 100%;\n animation: progress 1.6s ease-in-out infinite;\n background-image: linear-gradient(\n 90deg,\n var(--color-background) 0%,\n var(--color-surface03) 95%,\n var(--color-background) 100%\n );\n content: \"\";\n filter: blur(6px);\n}\n\n@keyframes progress {\n 0% {\n transform: translateX(-100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n}\n","import {Component, h, Host} from \"@stencil/core\";\n@Component({\n tag: \"z-ghost-loading\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZGhostLoading {\n render(): HTMLZGhostLoadingElement {\n return <Host />;\n }\n}\n"],"mappings":"mEAAA,IAAMA,UAAY,ijCAClB,IAAAC,oBAAeD,U,ICKFE,cAAa,W,uCACxBA,EAAAC,UAAAC,OAAA,WACE,OAAOC,EAACC,KAAI,CAAAC,IAAA,4C,WAFU,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,c as createEvent,h}from"./index-c8ceadeb.js";var stylesCss=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:-ms-flexbox;display:flex;width:inherit;padding:calc(var(--space-unit) * 2);background:var(--color-primary03);border-radius:var(--border-radius)}:host>div>slot{color:var(--color-default-text);font-size:14px}:host>div>z-icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-primary01)}";var ZInfoBoxStyle0=stylesCss;var ZInfoBox=function(){function t(t){registerInstance(this,t);this.infoBoxClose=createEvent(this,"infoBoxClose",7);this.boxid=undefined;this.isclosable=true}t.prototype.emitInfoBoxClose=function(){this.infoBoxClose.emit({boxid:this.boxid})};t.prototype.render=function(){var t=this;return h("div",{key:"bff4d7fdd01fae2697f23b03515d9cb93a53127d",id:this.boxid},h("slot",{key:"a2d80c39c0cc7c115974a4d5da52c2189ab830c9",name:"content"}),this.isclosable&&h("z-icon",{key:"555579d0bf7c1e654055fe4c552c4e89af0fb513",name:"multiply","data-action":"infoBoxClose",onClick:function(){return t.emitInfoBoxClose()}}))};return t}();ZInfoBox.style=ZInfoBoxStyle0;export{ZInfoBox as z_info_box};
2
+ //# sourceMappingURL=z-info-box.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZInfoBoxStyle0","ZInfoBox","prototype","emitInfoBoxClose","this","infoBoxClose","emit","boxid","render","_this","h","key","id","name","isclosable","onClick"],"sources":["src/components/z-info-box/styles.css?tag=z-info-box&encapsulation=shadow","src/components/z-info-box/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > div {\n display: flex;\n width: inherit;\n padding: calc(var(--space-unit) * 2);\n background: var(--color-primary03);\n border-radius: var(--border-radius);\n}\n\n:host > div > slot {\n color: var(--color-default-text);\n font-size: 14px;\n}\n\n:host > div > z-icon {\n margin-left: calc(var(--space-unit) * 2);\n cursor: pointer;\n fill: var(--color-primary01);\n}\n","import {Component, Event, EventEmitter, Prop, h} from \"@stencil/core\";\n\n/**\n * @slot content - set the info box content\n */\n@Component({\n tag: \"z-info-box\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoBox {\n /** info box unique id */\n @Prop()\n boxid: string;\n\n /** render close icon flag */\n @Prop()\n isclosable = true;\n\n /** emitted on close icon click */\n @Event()\n infoBoxClose: EventEmitter;\n\n private emitInfoBoxClose(): void {\n this.infoBoxClose.emit({boxid: this.boxid});\n }\n\n render(): HTMLDivElement {\n return (\n <div id={this.boxid}>\n <slot name=\"content\" />\n {this.isclosable && (\n <z-icon\n name=\"multiply\"\n data-action=\"infoBoxClose\"\n onClick={() => this.emitInfoBoxClose()}\n />\n )}\n </div>\n );\n }\n}\n"],"mappings":"0EAAA,IAAMA,UAAY,4YAClB,IAAAC,eAAeD,U,ICSFE,SAAQ,W,iIAON,I,CAMLA,EAAAC,UAAAC,iBAAA,WACNC,KAAKC,aAAaC,KAAK,CAACC,MAAOH,KAAKG,O,EAGtCN,EAAAC,UAAAM,OAAA,eAAAC,EAAAL,KACE,OACEM,EAAA,OAAAC,IAAA,2CAAKC,GAAIR,KAAKG,OACZG,EAAA,QAAAC,IAAA,2CAAME,KAAK,YACVT,KAAKU,YACJJ,EAAA,UAAAC,IAAA,2CACEE,KAAK,WAAU,cACH,eACZE,QAAS,WAAM,OAAAN,EAAKN,kBAAL,I,WAzBN,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-c8ceadeb.js";import{H as InfoRevealPosition,e as ControlSize}from"./index-ee40e66b.js";var stylesCss=':host{--z-info-reveal-panel-width:384px;--trigger-size:44px;position:relative}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}button{--trigger-icon-size:calc(var(--trigger-size) / 2);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;font-family:inherit;letter-spacing:inherit}button:focus:focus-visible{-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);outline:none}.z-info-reveal-trigger{min-width:var(--trigger-size);height:var(--trigger-size);padding:calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);background-color:var(--color-surface05);border-radius:var(--border-radius);color:var(--color-text-inverse);-webkit-column-gap:var(--space-unit);-moz-column-gap:var(--space-unit);column-gap:var(--space-unit);font-weight:var(--font-sb);line-height:1rem}:host([size="big"]) .z-info-reveal-trigger{font-size:var(--font-size-2)}:host([size="small"]) .z-info-reveal-trigger{--trigger-size:36px;font-size:var(--font-size-2)}:host([size="x-small"]) .z-info-reveal-trigger{--trigger-size:32px;padding:var(--space-unit);font-size:var(--font-size-1)}:host>.z-info-reveal-trigger z-icon{--z-icon-width:var(--trigger-icon-size);--z-icon-height:var(--trigger-icon-size);display:-ms-flexbox;display:flex;fill:var(--color-inverse-icon)}:host([size="small"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:18px}:host([size="x-small"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:16px}.z-info-reveal-panel{position:absolute;z-index:99;display:-ms-flexbox;display:flex;width:var(--z-info-reveal-panel-width);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-ms-flex-align:start;align-items:flex-start;padding:calc(var(--space-unit) * 1.5);background-color:var(--color-surface05);border-radius:var(--border-radius);-webkit-box-shadow:var(--shadow-4);box-shadow:var(--shadow-4);color:var(--color-text-inverse);-webkit-column-gap:var(--space-unit);-moz-column-gap:var(--space-unit);column-gap:var(--space-unit)}.z-info-reveal-panel[hidden]{display:none}:host([position="top_left"]) .z-info-reveal-panel,:host([position="top_right"]) .z-info-reveal-panel{top:0}:host([position="bottom_left"]) .z-info-reveal-panel,:host([position="bottom_right"]) .z-info-reveal-panel{bottom:0}:host([position="top_right"]) .z-info-reveal-panel,:host([position="bottom_right"]) .z-info-reveal-panel{right:0}:host([position="top_left"]) .z-info-reveal-panel,:host([position="bottom_left"]) .z-info-reveal-panel{left:0}.z-info-reveal-panel .z-info-reveal-close{margin-left:auto}.z-info-reveal-panel z-icon{fill:var(--color-inverse-icon)}@media (max-width: 767px){.z-info-reveal-panel{position:fixed;top:auto !important;bottom:auto !important;left:var(--grid-margin) !important;width:calc(100% - (var(--grid-margin) * 2)) !important;max-width:none !important;margin-top:calc(var(--trigger-size) * -1)}}';var ZInfoRevealStyle0=stylesCss;var ZInfoReveal=function(){function e(e){registerInstance(this,e);this.icon="informationsource";this.position=InfoRevealPosition.BOTTOM_RIGHT;this.label=undefined;this.ariaLabel="Apri pannello informazioni";this.size=ControlSize.BIG;this.open=false}e.prototype.adjustPanelPosition=function(){if(!this.open||!this.panel){return}var e=this.host.getBoundingClientRect();var i=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--grid-margin"),10);var t=document.documentElement.offsetWidth;var o=Math.round((this.position.includes("left")?t-e.left:e.right)-i);this.panel.style.maxWidth="".concat(o,"px")};e.prototype.togglePanel=function(){this.open=!this.open};e.prototype.closePanel=function(){this.open=false};e.prototype.handleEscapeKey=function(e){if(e.key==="Escape"&&this.open){this.closePanel()}};e.prototype.render=function(){var e=this;return h(Host,{key:"7098ea723139c78a7ecca1bbc924d5e17925bdc5",open:this.open},h("button",{key:"8f798611b1069939b18ab3bdc9c197bec5fc6d20",class:"z-info-reveal-trigger",type:"button",onClick:this.togglePanel.bind(this),"aria-label":!this.label?this.ariaLabel:undefined,"aria-expanded":this.open?"true":"false","aria-controls":"z-info-reveal-panel"},this.icon&&h("z-icon",{key:"2db6409fe7db09738f83135e58300c235ce988db",name:this.icon}),this.label&&h("span",{key:"71ca110cd12256dcfe5e7b37026537fb5ea324b8",class:"z-info-reveal-label"},this.label)),h("div",{key:"1385b98d28160c1e5578d47f63ba37f26e63eeb8",class:"z-info-reveal-panel",id:"z-info-reveal-panel",ref:function(i){return e.panel=i},hidden:!this.open},h("slot",{key:"dbbcff160f1dceaa336362f5a43436d57f357e01"}),h("button",{key:"e6f4778d55de1de95fa3d509ed01c3b555ff225b",class:"z-info-reveal-close",type:"button",onClick:this.closePanel.bind(this),"aria-label":"Chiudi pannello informazioni"},h("z-icon",{key:"51b13036bb93efce68db3f0cbf5d9f718ddcb266",name:"multiply"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{position:["adjustPanelPosition"],open:["adjustPanelPosition"]}},enumerable:false,configurable:true});return e}();ZInfoReveal.style=ZInfoRevealStyle0;export{ZInfoReveal as z_info_reveal};
2
+ //# sourceMappingURL=z-info-reveal.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZInfoRevealStyle0","ZInfoReveal","InfoRevealPosition","BOTTOM_RIGHT","ControlSize","BIG","prototype","adjustPanelPosition","this","open","panel","rect","host","getBoundingClientRect","gridMargin","parseInt","getComputedStyle","document","documentElement","getPropertyValue","pageWidth","offsetWidth","availableSpace","Math","round","position","includes","left","right","style","maxWidth","concat","togglePanel","closePanel","handleEscapeKey","event","key","render","_this","h","Host","class","type","onClick","bind","label","ariaLabel","undefined","icon","name","id","ref","el","hidden"],"sources":["src/components/z-info-reveal/styles.css?tag=z-info-reveal&encapsulation=shadow","src/components/z-info-reveal/index.tsx"],"sourcesContent":[":host {\n --z-info-reveal-panel-width: 384px; /* defaults half the size of the mobile breakpoint */\n --trigger-size: 44px;\n\n position: relative;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\nbutton {\n --trigger-icon-size: calc(var(--trigger-size) / 2);\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n font-family: inherit;\n letter-spacing: inherit;\n}\n\nbutton:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-info-reveal-trigger {\n min-width: var(--trigger-size);\n height: var(--trigger-size);\n padding: calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n font-weight: var(--font-sb);\n line-height: 1rem;\n}\n\n:host([size=\"big\"]) .z-info-reveal-trigger {\n font-size: var(--font-size-2);\n}\n\n:host([size=\"small\"]) .z-info-reveal-trigger {\n --trigger-size: 36px;\n\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) .z-info-reveal-trigger {\n --trigger-size: 32px;\n\n padding: var(--space-unit);\n font-size: var(--font-size-1);\n}\n\n:host > .z-info-reveal-trigger z-icon {\n --z-icon-width: var(--trigger-icon-size);\n --z-icon-height: var(--trigger-icon-size);\n\n display: flex;\n fill: var(--color-inverse-icon);\n}\n\n:host([size=\"small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 18px;\n}\n\n:host([size=\"x-small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 16px;\n}\n\n.z-info-reveal-panel {\n position: absolute;\n z-index: 99;\n display: flex;\n width: var(--z-info-reveal-panel-width);\n height: fit-content;\n align-items: flex-start;\n padding: calc(var(--space-unit) * 1.5);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-4);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n}\n\n.z-info-reveal-panel[hidden] {\n display: none;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"top_right\"]) .z-info-reveal-panel {\n top: 0;\n}\n\n:host([position=\"bottom_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n bottom: 0;\n}\n\n:host([position=\"top_right\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n right: 0;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_left\"]) .z-info-reveal-panel {\n left: 0;\n}\n\n.z-info-reveal-panel .z-info-reveal-close {\n margin-left: auto;\n}\n\n.z-info-reveal-panel z-icon {\n fill: var(--color-inverse-icon);\n}\n\n@media (max-width: 767px) {\n .z-info-reveal-panel {\n position: fixed;\n top: auto !important;\n bottom: auto !important;\n left: var(--grid-margin) !important;\n width: calc(100% - (var(--grid-margin) * 2)) !important;\n max-width: none !important;\n margin-top: calc(var(--trigger-size) * -1);\n }\n}\n","import {Component, Element, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ControlSize, InfoRevealPosition} from \"../../beans\";\n\n/**\n * Info reveal component.\n *\n * @slot - content of the info panel.\n * @cssprop --z-info-reveal-panel-width - Width of the info panel.\n */\n@Component({\n tag: \"z-info-reveal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoReveal {\n /** Name of the icon for the trigger button */\n @Prop()\n icon? = \"informationsource\";\n\n /**\n * The position of the z-info-reveal in the page. This helps to correctly place the info panel.\n * The panel will grow in the opposite direction of the position.\n * For example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left.\n */\n @Prop({reflect: true})\n position?: InfoRevealPosition = InfoRevealPosition.BOTTOM_RIGHT;\n\n /** Label of the trigger button. */\n @Prop()\n label?: string;\n\n /** Aria label of the trigger button. It will be only used when `label` prop is empty. */\n @Prop()\n ariaLabel = \"Apri pannello informazioni\";\n\n /** Size of the trigger button */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n /** Whether the info panel is open. */\n @State()\n open = false;\n\n @Element() host: HTMLZInfoRevealElement;\n\n private panel: HTMLDivElement;\n\n /**\n * Adjust the position of the info panel to prevent exiting the viewport.\n */\n @Watch(\"position\")\n @Watch(\"open\")\n @Listen(\"resize\", {target: \"window\", passive: true})\n adjustPanelPosition(): void {\n if (!this.open || !this.panel) {\n return;\n }\n\n const rect = this.host.getBoundingClientRect();\n const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--grid-margin\"), 10);\n const pageWidth = document.documentElement.offsetWidth;\n // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.\n const availableSpace = Math.round(\n (this.position.includes(\"left\") ? pageWidth - rect.left : rect.right) - gridMargin\n );\n this.panel.style.maxWidth = `${availableSpace}px`;\n }\n\n /**\n * Toggle the open state of the info panel.\n */\n private togglePanel(): void {\n this.open = !this.open;\n }\n\n /**\n * Close the info panel.\n */\n private closePanel(): void {\n this.open = false;\n }\n\n @Listen(\"keydown\", {target: \"window\", capture: true})\n handleEscapeKey(event: KeyboardEvent): void {\n if (event.key === \"Escape\" && this.open) {\n this.closePanel();\n }\n }\n\n render(): HTMLZInfoRevealElement {\n return (\n <Host open={this.open}>\n <button\n class=\"z-info-reveal-trigger\"\n type=\"button\"\n onClick={this.togglePanel.bind(this)}\n aria-label={!this.label ? this.ariaLabel : undefined}\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-controls=\"z-info-reveal-panel\"\n >\n {this.icon && <z-icon name={this.icon} />}\n {this.label && <span class=\"z-info-reveal-label\">{this.label}</span>}\n </button>\n <div\n class=\"z-info-reveal-panel\"\n id=\"z-info-reveal-panel\"\n ref={(el) => (this.panel = el)}\n hidden={!this.open}\n >\n <slot></slot>\n <button\n class=\"z-info-reveal-close\"\n type=\"button\"\n onClick={this.closePanel.bind(this)}\n aria-label=\"Chiudi pannello informazioni\"\n >\n <z-icon name=\"multiply\" />\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"6JAAA,IAAMA,UAAY,26FAClB,IAAAC,kBAAeD,U,ICaFE,YAAW,W,iDAGd,oB,cAQwBC,mBAAmBC,a,oCAQvC,6B,UAISC,YAAYC,I,UAI1B,K,CAYPJ,EAAAK,UAAAC,oBAAA,WACE,IAAKC,KAAKC,OAASD,KAAKE,MAAO,CAC7B,M,CAGF,IAAMC,EAAOH,KAAKI,KAAKC,wBACvB,IAAMC,EAAaC,SAASC,iBAAiBC,SAASC,iBAAiBC,iBAAiB,iBAAkB,IAC1G,IAAMC,EAAYH,SAASC,gBAAgBG,YAE3C,IAAMC,EAAiBC,KAAKC,OACzBhB,KAAKiB,SAASC,SAAS,QAAUN,EAAYT,EAAKgB,KAAOhB,EAAKiB,OAASd,GAE1EN,KAAKE,MAAMmB,MAAMC,SAAW,GAAAC,OAAGT,EAAc,K,EAMvCrB,EAAAK,UAAA0B,YAAA,WACNxB,KAAKC,MAAQD,KAAKC,I,EAMZR,EAAAK,UAAA2B,WAAA,WACNzB,KAAKC,KAAO,K,EAIdR,EAAAK,UAAA4B,gBAAA,SAAgBC,GACd,GAAIA,EAAMC,MAAQ,UAAY5B,KAAKC,KAAM,CACvCD,KAAKyB,Y,GAIThC,EAAAK,UAAA+B,OAAA,eAAAC,EAAA9B,KACE,OACE+B,EAACC,KAAI,CAAAJ,IAAA,2CAAC3B,KAAMD,KAAKC,MACf8B,EAAA,UAAAH,IAAA,2CACEK,MAAM,wBACNC,KAAK,SACLC,QAASnC,KAAKwB,YAAYY,KAAKpC,MAAK,cACvBA,KAAKqC,MAAQrC,KAAKsC,UAAYC,UAAS,gBACrCvC,KAAKC,KAAO,OAAS,QAAO,gBAC7B,uBAEbD,KAAKwC,MAAQT,EAAA,UAAAH,IAAA,2CAAQa,KAAMzC,KAAKwC,OAChCxC,KAAKqC,OAASN,EAAA,QAAAH,IAAA,2CAAMK,MAAM,uBAAuBjC,KAAKqC,QAEzDN,EAAA,OAAAH,IAAA,2CACEK,MAAM,sBACNS,GAAG,sBACHC,IAAK,SAACC,GAAE,OAAMd,EAAK5B,MAAQ0C,CAAnB,EACRC,QAAS7C,KAAKC,MAEd8B,EAAA,QAAAH,IAAA,6CACAG,EAAA,UAAAH,IAAA,2CACEK,MAAM,sBACNC,KAAK,SACLC,QAASnC,KAAKyB,WAAWW,KAAKpC,MAAK,aACxB,gCAEX+B,EAAA,UAAAH,IAAA,2CAAQa,KAAK,e,iSAtGD,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,h,a as Host}from"./index-c8ceadeb.js";var stylesCss=":host{display:inline-block;width:255px;height:64px;vertical-align:top}img{display:block;width:100%;height:100%;margin:auto;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}";var ZLogoStyle0=stylesCss;var ZLogo=function(){function i(i){registerInstance(this,i);this.width=undefined;this.height=undefined;this.imageAlt=undefined;this.link=undefined;this.targetBlank=undefined;this.mobileLogo=undefined}i.prototype.render=function(){var i={};if(this.width){i["width"]=i["max-width"]="".concat(this.width,"px")}if(this.height){i["height"]=i["max-height"]="".concat(this.height,"px")}return h(Host,{key:"43def5f659303a7fa03bdf8a48bf03dacc379dde",style:i,class:{mobile:!!this.mobileLogo}},this.link?h("a",{href:this.link,target:this.targetBlank?"_blank":"_self"},h("img",{alt:this.imageAlt})):h("img",{alt:this.imageAlt}))};return i}();ZLogo.style=ZLogoStyle0;export{ZLogo as z_logo};
2
+ //# sourceMappingURL=z-logo.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZLogoStyle0","ZLogo","prototype","render","style","this","width","concat","height","h","Host","key","class","mobile","mobileLogo","link","href","target","targetBlank","alt","imageAlt"],"sources":["src/components/z-logo/styles.css?tag=z-logo&encapsulation=shadow","src/components/z-logo/index.tsx"],"sourcesContent":[":host {\n display: inline-block;\n width: 255px;\n height: 64px;\n vertical-align: top;\n}\n\nimg {\n display: block;\n width: 100%;\n height: 100%;\n margin: auto;\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n\na {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n:host(.mobile) {\n width: 31px;\n height: 40px;\n}\n\n:host(.mobile) img {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n","import {Component, Host, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-logo\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZLogo {\n /** image width */\n @Prop()\n width?: number;\n\n /** image height */\n @Prop()\n height?: number;\n\n /** alternative image text */\n @Prop()\n imageAlt?: string;\n\n /** link url (optional) */\n @Prop()\n link?: string;\n\n /** link target: true means _blank, false means _self */\n @Prop()\n targetBlank?: boolean;\n\n /** if true, the mobile logo is displayed, otherwise the desktop one */\n @Prop()\n mobileLogo?: boolean;\n\n render(): HTMLZLogoElement {\n const style = {};\n\n if (this.width) {\n style[\"width\"] = style[\"max-width\"] = `${this.width}px`;\n }\n\n if (this.height) {\n style[\"height\"] = style[\"max-height\"] = `${this.height}px`;\n }\n\n return (\n <Host\n style={style}\n class={{mobile: !!this.mobileLogo}}\n >\n {this.link ? (\n <a\n href={this.link}\n target={this.targetBlank ? \"_blank\" : \"_self\"}\n >\n <img alt={this.imageAlt} />\n </a>\n ) : (\n <img alt={this.imageAlt} />\n )}\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,UAAY,m1IAClB,IAAAC,YAAeD,U,ICMFE,MAAK,W,mLAyBhBA,EAAAC,UAAAC,OAAA,WACE,IAAMC,EAAQ,GAEd,GAAIC,KAAKC,MAAO,CACdF,EAAM,SAAWA,EAAM,aAAe,GAAAG,OAAGF,KAAKC,MAAK,K,CAGrD,GAAID,KAAKG,OAAQ,CACfJ,EAAM,UAAYA,EAAM,cAAgB,GAAAG,OAAGF,KAAKG,OAAM,K,CAGxD,OACEC,EAACC,KAAI,CAAAC,IAAA,2CACHP,MAAOA,EACPQ,MAAO,CAACC,SAAUR,KAAKS,aAEtBT,KAAKU,KACJN,EAAA,KACEO,KAAMX,KAAKU,KACXE,OAAQZ,KAAKa,YAAc,SAAW,SAEtCT,EAAA,OAAKU,IAAKd,KAAKe,YAGjBX,EAAA,OAAKU,IAAKd,KAAKe,W,WAjDP,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-c8ceadeb.js";var stylesCss=':host,::slotted(*),*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){-webkit-box-shadow:none !important;box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:"";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:-ms-inline-flexbox;display:inline-flex;width:100%;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);-webkit-box-shadow:var(--shadow-2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;-o-object-fit:contain;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}';var ZMenuDeprecatedStyle0=stylesCss;var ZMenuDeprecated=function(){function e(e){registerInstance(this,e);this.opened=createEvent(this,"opened",7);this.closed=createEvent(this,"closed",7);this.active=undefined;this.floating=false;this.open=false;this.verticalContext=false;this.hasHeader=undefined;this.hasContent=undefined;this.toggle=this.toggle.bind(this);this.checkContent=this.checkContent.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onItemsChange=this.onItemsChange.bind(this)}e.prototype.toggle=function(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():this.closed.emit()};e.prototype.handleClick=function(e){if(!this.floating||!this.open||this.hostElement.contains(e.target)){return}this.reflow();this.open=false;this.closed.emit()};e.prototype.onOpenChanged=function(){if(this.open){this.reflow(true)}else{cancelAnimationFrame(this.raf)}};e.prototype.componentWillLoad=function(){this.checkContent()};e.prototype.onLabelSlotChange=function(e){var t=e.target.assignedElements()[0];t.dataset.text=t===null||t===void 0?void 0:t.textContent};e.prototype.reflow=function(e){if(e===void 0){e=false}if(this.content){var t=this.content.style;var n=this.hostElement.getBoundingClientRect().left;var i=getComputedStyle(this.content).width;var a=i?parseFloat(i.replace("px","")):375;var o=30;t.left="".concat(Math.min(window.innerWidth-n-a-o,0),"px")}if(e){this.raf=requestAnimationFrame(this.reflow.bind(this,e))}};e.prototype.checkContent=function(){this.hasHeader=!!this.hostElement.querySelectorAll("[slot=header]").length;this.hasContent=!!this.hostElement.querySelectorAll("[slot=item]").length||this.hasHeader};e.prototype.onItemsChange=function(){this.checkContent();var e=this.hostElement.querySelectorAll("[slot=item]");e.forEach((function(e){e.setAttribute("role","menuitem");e.dataset.text=e.textContent}))};e.prototype.renderMenuLabel=function(){if(this.hasContent){return h("button",{class:"menu-label","aria-expanded":this.open?"true":"false","aria-label":this.open?"Chiudi menù":"Apri menù",onClick:this.toggle},h("div",{class:"menu-label-content"},h("slot",{onSlotchange:this.onLabelSlotChange}),h("z-icon",{name:this.open?"chevron-up":"chevron-down"})))}return h("div",{class:"menu-label"},h("div",{class:"menu-label-content"},h("slot",{onSlotchange:this.onLabelSlotChange})))};e.prototype.render=function(){var e=this;return h(Host,{key:"b85eb4e974d6e49d326f637e96f467d867588cc4"},this.renderMenuLabel(),this.hasContent&&h("div",{key:"36e4f36123dd6e49f334a6f5e98cce0875df158c",class:"content",ref:function(t){return e.content=t}},this.hasHeader&&h("header",{key:"d8d980f037bd593ca7388946f27f08372d19f7e8",class:"header"},h("slot",{key:"1d40e062cc0d24b5c7adcb707341d438e0089cb7",name:"header",onSlotchange:this.checkContent})),h("div",{key:"93cdd787bb371624be8311ca32539a576ee1fcb7",class:"items",role:"menu"},h("slot",{key:"2d1ffad0d4c6fec04d202e371118535f5454eaef",name:"item",onSlotchange:this.onItemsChange}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["onOpenChanged"]}},enumerable:false,configurable:true});return e}();ZMenuDeprecated.style=ZMenuDeprecatedStyle0;export{ZMenuDeprecated as z_menu_deprecated};
2
+ //# sourceMappingURL=z-menu-deprecated.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMenuDeprecatedStyle0","ZMenuDeprecated","hostRef","this","toggle","bind","checkContent","onLabelSlotChange","onItemsChange","prototype","hasContent","open","opened","emit","closed","handleClick","ev","floating","hostElement","contains","target","reflow","onOpenChanged","cancelAnimationFrame","raf","componentWillLoad","labelElement","assignedElements","dataset","text","textContent","live","content","style","left","getBoundingClientRect","widthPx","getComputedStyle","width","parseFloat","replace","safeScrollbarSpace","concat","Math","min","window","innerWidth","requestAnimationFrame","hasHeader","querySelectorAll","length","items","forEach","item","setAttribute","renderMenuLabel","h","class","onClick","onSlotchange","name","render","_this","Host","key","ref","el","role"],"sources":["src/components/deprecated/z-menu-deprecated/styles.css?tag=z-menu-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-deprecated/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n:host {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n\n --z-menu-label-color: var(--color-default-text);\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.menu-label {\n padding: 0;\n border: 0;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n outline: none;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-within {\n z-index: 1;\n padding-right: calc(var(--space-unit) * 0.5);\n padding-left: calc(var(--space-unit) * 0.5);\n margin-right: calc(var(--space-unit) * -0.5);\n margin-left: calc(var(--space-unit) * -0.5);\n box-shadow: var(--shadow-focus-primary);\n}\n\n.menu-label .menu-label-content {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n:host(:is([active], [open])) .menu-label-content,\n.menu-label:focus-within .menu-label-content {\n font-weight: var(--font-bd);\n}\n\n:host(:is([active], [open])) .menu-label-content ::slotted(*),\n.menu-label:focus-within .menu-label-content ::slotted(*) {\n letter-spacing: normal;\n}\n\n:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible) {\n box-shadow: none !important;\n}\n\n/* border */\n:host(:is([active], [open], [vertical-context])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n content: \"\";\n pointer-events: none;\n}\n\n:host([vertical-context]) .menu-label-content::after {\n height: var(--border-size-small);\n background-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n}\n\n/* Prevents layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.menu-label .menu-label-content ::slotted(*) {\n display: inline-flex;\n width: 100%;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-5);\n font-weight: inherit;\n letter-spacing: 0.36px; /* increasing the letter spacing of the regular text helps reduce the size difference between regular and bold text */\n line-height: 1.2;\n outline: none;\n}\n\n.menu-label .menu-label-content ::slotted(*),\n.menu-label .menu-label-content z-icon {\n padding: var(--space-unit) 0;\n}\n\n.menu-label .menu-label-content z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: currentcolor;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.\n * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuDeprecated {\n @Element() hostElement: HTMLZMenuDeprecatedElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = false;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n private content: HTMLElement;\n\n /** Animation frame request id. */\n private raf: number;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the floating list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.floating || !this.open || this.hostElement.contains(ev.target as Element)) {\n return;\n }\n\n this.reflow();\n this.open = false;\n this.closed.emit();\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (this.open) {\n this.reflow(true);\n } else {\n cancelAnimationFrame(this.raf);\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (this.content) {\n const {style} = this.content;\n const {left} = this.hostElement.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.hostElement.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.hostElement.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n /**\n * Set `menuitem` role to all menu items.\n * Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).\n */\n private onItemsChange(): void {\n this.checkContent();\n const items = this.hostElement.querySelectorAll<HTMLElement>(\"[slot=item]\");\n items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.dataset.text = item.textContent;\n });\n }\n\n private renderMenuLabel(): HTMLButtonElement | HTMLDivElement {\n if (this.hasContent) {\n return (\n <button\n class=\"menu-label\"\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n onClick={this.toggle}\n >\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </div>\n </button>\n );\n }\n\n return (\n <div class=\"menu-label\">\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZMenuElement {\n return (\n <Host>\n {this.renderMenuLabel()}\n\n {this.hasContent && (\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n ></slot>\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n ></slot>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,IAAMA,UAAY,y9IAClB,IAAAC,sBAAeD,U,ICYFE,gBAAe,WA2E1B,SAAAA,EAAAC,G,+IA9DY,M,UAIL,M,qBAOW,M,mDAoDhBC,KAAKC,OAASD,KAAKC,OAAOC,KAAKF,MAC/BA,KAAKG,aAAeH,KAAKG,aAAaD,KAAKF,MAC3CA,KAAKI,kBAAoBJ,KAAKI,kBAAkBF,KAAKF,MACrDA,KAAKK,cAAgBL,KAAKK,cAAcH,KAAKF,K,CAlCvCF,EAAAQ,UAAAL,OAAA,WACN,IAAKD,KAAKO,WAAY,CACpB,M,CAGFP,KAAKQ,MAAQR,KAAKQ,KAClBR,KAAKQ,KAAOR,KAAKS,OAAOC,OAASV,KAAKW,OAAOD,M,EAK/CZ,EAAAQ,UAAAM,YAAA,SAAYC,GACV,IAAKb,KAAKc,WAAad,KAAKQ,MAAQR,KAAKe,YAAYC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AAQC,KAAOwB,EAAKvB,W,KAIrB7B,EAAAQ,UAAA8C,gBAAA,WACN,GAAIpD,KAAKO,WAAY,CACnB,OACE8C,EAAA,UACEC,MAAM,aAAY,gBACHtD,KAAKQ,KAAO,OAAS,QAAO,aAC/BR,KAAKQ,KAAO,cAAgB,YACxC+C,QAASvD,KAAKC,QAEdoD,EAAA,OAAKC,MAAM,sBACTD,EAAA,QAAMG,aAAcxD,KAAKI,oBACzBiD,EAAA,UAAQI,KAAMzD,KAAKQ,KAAO,aAAe,kB,CAMjD,OACE6C,EAAA,OAAKC,MAAM,cACTD,EAAA,OAAKC,MAAM,sBACTD,EAAA,QAAMG,aAAcxD,KAAKI,qB,EAMjCN,EAAAQ,UAAAoD,OAAA,eAAAC,EAAA3D,KACE,OACEqD,EAACO,KAAI,CAAAC,IAAA,4CACF7D,KAAKoD,kBAELpD,KAAKO,YACJ8C,EAAA,OAAAQ,IAAA,2CACEP,MAAM,UACNQ,IAAK,SAACC,GAAE,OAAMJ,EAAK9B,QAAUkC,CAArB,GAEP/D,KAAK6C,WACJQ,EAAA,UAAAQ,IAAA,2CAAQP,MAAM,UACZD,EAAA,QAAAQ,IAAA,2CACEJ,KAAK,SACLD,aAAcxD,KAAKG,gBAKzBkD,EAAA,OAAAQ,IAAA,2CACEP,MAAM,QACNU,KAAK,QAELX,EAAA,QAAAQ,IAAA,2CACEJ,KAAK,OACLD,aAAcxD,KAAKK,kB,iQAzLP,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-c8ceadeb.js";var stylesCss=':host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:-ms-inline-flexbox;display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){-webkit-box-shadow:var(--shadow-focus-primary);box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}';var ZMenuSectionDeprecatedStyle0=stylesCss;var ZMenuSectionDeprecated=function(){function e(e){registerInstance(this,e);this.opened=createEvent(this,"opened",7);this.closed=createEvent(this,"closed",7);this.active=undefined;this.open=undefined;this.hasContent=undefined}e.prototype.toggle=function(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():this.closed.emit()};e.prototype.handleClick=function(e){if(!this.open||this.hostElement.contains(e.target)){return}this.open=false;this.closed.emit()};e.prototype.checkContent=function(){this.hasContent=this.hostElement.querySelectorAll('[slot="item"]').length>0};e.prototype.onLabelSlotChange=function(e){var t=e.target.assignedElements()[0];t.dataset.text=(t===null||t===void 0?void 0:t.innerText)||null};e.prototype.componentWillLoad=function(){this.checkContent()};e.prototype.render=function(){return h(Host,{key:"683c1153c92167f03d2324765485f0c42d9e088e",role:"menu",open:this.open},h("button",{key:"774e5b28393d489684864d4e3ad3e5f2f9ad8ffe",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this)},h("slot",{key:"f27ceb99398725734be2027e191c7bba8e3bf593",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&h("z-icon",{key:"a5a2a175c5ec52579d184afbed86135f0c43ea8e",name:this.open?"chevron-up":"chevron-down"})),this.open&&h("div",{key:"d27cf75d9481eae65039adc296246776b09fbc3a",class:"items"},h("slot",{key:"dbb67c5b4f7587a4f83a4ffe8a8af6d91d1180c8",name:"item",onSlotchange:this.checkContent.bind(this)})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();ZMenuSectionDeprecated.style=ZMenuSectionDeprecatedStyle0;export{ZMenuSectionDeprecated as z_menu_section_deprecated};
2
+ //# sourceMappingURL=z-menu-section-deprecated.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMenuSectionDeprecatedStyle0","ZMenuSectionDeprecated","prototype","toggle","this","hasContent","open","opened","emit","closed","handleClick","ev","hostElement","contains","target","checkContent","querySelectorAll","length","onLabelSlotChange","labelElement","assignedElements","dataset","text","innerText","componentWillLoad","render","h","Host","key","role","class","onClick","bind","onSlotchange","name"],"sources":["src/components/deprecated/z-menu-section-deprecated/styles.css?tag=z-menu-section-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-section-deprecated/index.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host(:is([active], [open])) .label,\n.label:hover {\n border-color: var(--color-primary01);\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items > ::slotted([slot=\"item\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-2);\n line-height: 1.4;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSectionDeprecated {\n @Element() hostElement: HTMLZMenuSectionDeprecatedElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"item\"]').length > 0;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.innerText || null;\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"item\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,IAAMA,UAAY,o4EAClB,IAAAC,6BAAeD,U,ICWFE,uBAAsB,W,6LAqBzBA,EAAAC,UAAAC,OAAA,WACN,IAAKC,KAAKC,WAAY,CACpB,M,CAGFD,KAAKE,MAAQF,KAAKE,KAClBF,KAAKE,KAAOF,KAAKG,OAAOC,OAASJ,KAAKK,OAAOD,M,EAK/CP,EAAAC,UAAAQ,YAAA,SAAYC,GACV,IAAKP,KAAKE,MAAQF,KAAKQ,YAAYC,SAASF,EAAGG,QAAiB,CAC9D,M,CAGFV,KAAKE,KAAO,MACZF,KAAKK,OAAOD,M,EAMNP,EAAAC,UAAAa,aAAA,WACNX,KAAKC,WAAaD,KAAKQ,YAAYI,iBAAiB,iBAAiBC,OAAS,C,EAOxEhB,EAAAC,UAAAgB,kBAAA,SAAkBP,GACxB,IAAMQ,EAAgBR,EAAGG,OAA2BM,mBAAmB,GACvED,EAAaE,QAAQC,MAAOH,IAAY,MAAZA,SAAY,SAAZA,EAAcI,YAAa,I,EAGzDtB,EAAAC,UAAAsB,kBAAA,WACEpB,KAAKW,c,EAGPd,EAAAC,UAAAuB,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CACHC,KAAK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