@zanichelli/delta_share 3.1.0 → 3.2.1

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 (392) hide show
  1. package/dist/wc/cjs/{breakpoints-a55736d0.js → breakpoints-e7c8838e.js} +3 -1
  2. package/dist/wc/cjs/delta_share.cjs.js +2 -2
  3. package/dist/wc/cjs/{icons-9d7fe21e.js → icons-6d7ce4fc.js} +111 -0
  4. package/dist/wc/cjs/{index-1112cdb1.js → index-029f1a7e.js} +43 -10
  5. package/dist/wc/cjs/index-0c6fe5a8.js +34 -0
  6. package/dist/wc/cjs/index-1a5d1f46.js +67 -0
  7. package/dist/wc/cjs/index-2bd3ba9a.js +74 -0
  8. package/dist/wc/cjs/index-2cac2542.js +79 -0
  9. package/dist/wc/cjs/index-32a6c022.js +21 -0
  10. package/dist/wc/cjs/index-42c0b32c.js +20 -0
  11. package/dist/wc/cjs/index-5da586ad.js +41 -0
  12. package/dist/wc/cjs/index-6d707e7c.js +21 -0
  13. package/dist/wc/cjs/index-77820e6c.js +17 -0
  14. package/dist/wc/cjs/index-7b42e7ce.js +21 -0
  15. package/dist/wc/cjs/index-903cb132.js +17 -0
  16. package/dist/wc/cjs/index-9ad9039f.js +22 -0
  17. package/dist/wc/cjs/index-a8dfd3f3.js +53 -0
  18. package/dist/wc/cjs/index-d6d2e8ac.js +21 -0
  19. package/dist/wc/cjs/index-e5699190.js +17 -0
  20. package/dist/wc/cjs/index-ef01acde.js +29 -0
  21. package/dist/wc/cjs/{index-9ca7d5e5.js → index-fd6e6c28.js} +8 -0
  22. package/dist/wc/cjs/{license-activation_11.cjs.entry.js → license-activation_10.cjs.entry.js} +966 -129
  23. package/dist/wc/cjs/loader.cjs.js +2 -2
  24. package/dist/wc/cjs/{utils-2bfaab77.js → utils-1ed1ec98.js} +1 -1
  25. package/dist/wc/cjs/{utils-3ac19501.js → utils-43a3deb6.js} +13 -3
  26. package/dist/wc/cjs/z-accordion.cjs.entry.js +67 -0
  27. package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
  28. package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  29. package/dist/wc/cjs/z-app-header.cjs.entry.js +92 -40
  30. package/dist/wc/cjs/z-aria-alert.cjs.entry.js +2 -2
  31. package/dist/wc/cjs/z-avatar.cjs.entry.js +5 -5
  32. package/dist/wc/cjs/z-book-card.cjs.entry.js +126 -0
  33. package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +232 -0
  34. package/dist/wc/cjs/z-button-sort.cjs.entry.js +4 -4
  35. package/dist/wc/cjs/z-card.cjs.entry.js +6 -19
  36. package/dist/wc/cjs/z-carousel.cjs.entry.js +8 -4
  37. package/dist/wc/cjs/z-chip.cjs.entry.js +11 -16
  38. package/dist/wc/cjs/z-combobox.cjs.entry.js +12 -10
  39. package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +6 -6
  40. package/dist/wc/cjs/z-cover-hero.cjs.entry.js +25 -8
  41. package/dist/wc/cjs/z-date-picker.cjs.entry.js +3 -3
  42. package/dist/wc/cjs/z-divider.cjs.entry.js +2 -2
  43. package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +1 -1
  44. package/dist/wc/cjs/z-file-upload.cjs.entry.js +5 -5
  45. package/dist/wc/cjs/z-file.cjs.entry.js +3 -3
  46. package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
  47. package/dist/wc/cjs/z-info-reveal.cjs.entry.js +2 -2
  48. package/dist/wc/cjs/z-link.cjs.entry.js +74 -0
  49. package/dist/wc/cjs/z-list_3.cjs.entry.js +4 -4
  50. package/dist/wc/cjs/z-logo.cjs.entry.js +1 -1
  51. package/dist/wc/cjs/z-menu-section.cjs.entry.js +12 -4
  52. package/dist/wc/cjs/z-menu.cjs.entry.js +27 -15
  53. package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +3 -3
  54. package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  55. package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  56. package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  57. package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +16 -4
  58. package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  59. package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +4 -4
  60. package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +2 -2
  61. package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +5 -5
  62. package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +5 -5
  63. package/dist/wc/cjs/z-myz-list.cjs.entry.js +1 -1
  64. package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +10 -7
  65. package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +7 -7
  66. package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +152 -49
  67. package/dist/wc/cjs/z-notification.cjs.entry.js +1 -1
  68. package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +281 -0
  69. package/dist/wc/cjs/z-otp.cjs.entry.js +2 -2
  70. package/dist/wc/cjs/z-pagination.cjs.entry.js +3 -3
  71. package/dist/wc/cjs/z-panel-elem.cjs.entry.js +7 -3
  72. package/dist/wc/cjs/z-pocket-message.cjs.entry.js +1 -1
  73. package/dist/wc/cjs/z-pocket_3.cjs.entry.js +4 -4
  74. package/dist/wc/cjs/z-popover.cjs.entry.js +6 -5
  75. package/dist/wc/cjs/z-range-picker.cjs.entry.js +25 -7
  76. package/dist/wc/cjs/z-section-title.cjs.entry.js +3 -3
  77. package/dist/wc/cjs/z-select.cjs.entry.js +20 -13
  78. package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +14 -6
  79. package/dist/wc/cjs/z-slideshow.cjs.entry.js +5 -5
  80. package/dist/wc/cjs/z-stepper-item.cjs.entry.js +2 -2
  81. package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
  82. package/dist/wc/cjs/z-table-body.cjs.entry.js +3 -17
  83. package/dist/wc/cjs/z-table-cell.cjs.entry.js +4 -29
  84. package/dist/wc/cjs/z-table-deprecated.cjs.entry.js +91 -0
  85. package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +3 -24
  86. package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +3 -12
  87. package/dist/wc/cjs/z-table-footer.cjs.entry.js +3 -16
  88. package/dist/wc/cjs/z-table-head.cjs.entry.js +3 -16
  89. package/dist/wc/cjs/z-table-header-row.cjs.entry.js +3 -15
  90. package/dist/wc/cjs/z-table-header.cjs.entry.js +6 -75
  91. package/dist/wc/cjs/z-table-row.cjs.entry.js +4 -36
  92. package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +3 -12
  93. package/dist/wc/cjs/z-table.cjs.entry.js +37 -59
  94. package/dist/wc/cjs/z-tag.cjs.entry.js +1 -1
  95. package/dist/wc/cjs/z-tbody.cjs.entry.js +10 -0
  96. package/dist/wc/cjs/z-td.cjs.entry.js +11 -0
  97. package/dist/wc/cjs/z-tfoot.cjs.entry.js +10 -0
  98. package/dist/wc/cjs/z-th.cjs.entry.js +11 -0
  99. package/dist/wc/cjs/z-thead.cjs.entry.js +10 -0
  100. package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  101. package/dist/wc/cjs/z-toast-notification.cjs.entry.js +3 -3
  102. package/dist/wc/cjs/z-toggle-button.cjs.entry.js +5 -3
  103. package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +4 -4
  104. package/dist/wc/cjs/z-tooltip.cjs.entry.js +11 -5
  105. package/dist/wc/cjs/z-tr.cjs.entry.js +15 -0
  106. package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
  107. package/dist/wc/collection/collection-manifest.json +10 -4
  108. package/dist/wc/collection/components/license-activation/license-activation.js +23 -19
  109. package/dist/wc/collection/components/license-activation-form/license-activation-form.css +15 -8
  110. package/dist/wc/collection/components/license-activation-form/license-activation-form.js +13 -37
  111. package/dist/wc/custom-elements/index.js +2737 -840
  112. package/dist/wc/delta_share/delta_share.esm.js +1 -1
  113. package/dist/wc/delta_share/p-0365fad8.entry.js +1 -0
  114. package/dist/wc/delta_share/p-042bd3f6.js +1 -0
  115. package/dist/wc/delta_share/{p-9ad5616e.entry.js → p-059e9ee0.entry.js} +1 -1
  116. package/dist/wc/delta_share/p-05c9d96f.entry.js +1 -0
  117. package/dist/wc/delta_share/{p-578f4d61.entry.js → p-065a8ef6.entry.js} +1 -1
  118. package/dist/wc/delta_share/{p-5e503d5f.entry.js → p-08af13db.entry.js} +1 -1
  119. package/dist/wc/delta_share/{p-c31b160e.entry.js → p-09de99b2.entry.js} +1 -1
  120. package/dist/wc/delta_share/p-0e74cc07.entry.js +1 -0
  121. package/dist/wc/delta_share/{p-9e5596cd.entry.js → p-105ddd7d.entry.js} +1 -1
  122. package/dist/wc/delta_share/p-112478b5.js +1 -0
  123. package/dist/wc/delta_share/p-1553bc63.entry.js +1 -0
  124. package/dist/wc/delta_share/{p-0aa553ea.entry.js → p-16e61c27.entry.js} +1 -1
  125. package/dist/wc/delta_share/p-172a32d0.entry.js +1 -0
  126. package/dist/wc/delta_share/p-18ac49f8.entry.js +1 -0
  127. package/dist/wc/delta_share/p-18fcc8c7.js +1 -0
  128. package/dist/wc/delta_share/p-1c37c8f2.js +1 -0
  129. package/dist/wc/delta_share/{p-3cf0c6a5.entry.js → p-1e9b4693.entry.js} +1 -1
  130. package/dist/wc/delta_share/{p-bc10cf1a.entry.js → p-2439bd5d.entry.js} +1 -1
  131. package/dist/wc/delta_share/p-293a7ee2.entry.js +1 -0
  132. package/dist/wc/delta_share/{p-bcb29c7a.entry.js → p-2a4fe864.entry.js} +1 -1
  133. package/dist/wc/delta_share/p-2b4c3aab.js +1 -0
  134. package/dist/wc/delta_share/{p-6c54d53f.entry.js → p-2ca8ccb2.entry.js} +1 -1
  135. package/dist/wc/delta_share/p-2ed166b8.entry.js +1 -0
  136. package/dist/wc/delta_share/p-319c1a3e.entry.js +1 -0
  137. package/dist/wc/delta_share/p-37c5c92e.js +1 -0
  138. package/dist/wc/delta_share/p-3984a6c2.entry.js +1 -0
  139. package/dist/wc/delta_share/p-3b3f83a6.entry.js +1 -0
  140. package/dist/wc/delta_share/p-3f4dbb4f.entry.js +3 -0
  141. package/dist/wc/delta_share/{p-a815651c.entry.js → p-3fac6e84.entry.js} +1 -1
  142. package/dist/wc/delta_share/p-4018719d.entry.js +1 -0
  143. package/dist/wc/delta_share/{p-57f2b8d8.entry.js → p-44d6f07c.entry.js} +1 -1
  144. package/dist/wc/delta_share/{p-8d532866.entry.js → p-47ec520c.js} +1 -1
  145. package/dist/wc/delta_share/p-47f3e677.js +1 -0
  146. package/dist/wc/delta_share/{p-42dd4f36.entry.js → p-4a51a3c6.entry.js} +1 -1
  147. package/dist/wc/delta_share/p-4b2719fc.entry.js +1 -0
  148. package/dist/wc/delta_share/p-4c9ec16c.entry.js +1 -0
  149. package/dist/wc/delta_share/p-4ff6d958.entry.js +1 -0
  150. package/dist/wc/delta_share/p-536412c7.entry.js +1 -0
  151. package/dist/wc/delta_share/p-551bf917.js +1 -0
  152. package/dist/wc/delta_share/{p-8876b438.entry.js → p-57a1a7a3.entry.js} +1 -1
  153. package/dist/wc/delta_share/p-58991db7.js +1 -0
  154. package/dist/wc/delta_share/p-595c8d39.entry.js +1 -0
  155. package/dist/wc/delta_share/p-5989869c.js +1 -0
  156. package/dist/wc/delta_share/p-5f97902c.entry.js +1 -0
  157. package/dist/wc/delta_share/{p-950aa417.entry.js → p-6658206d.entry.js} +1 -1
  158. package/dist/wc/delta_share/p-67f03907.entry.js +1 -0
  159. package/dist/wc/delta_share/{p-d8e80ee8.entry.js → p-69d9835f.js} +1 -1
  160. package/dist/wc/delta_share/p-6bd46452.entry.js +1 -0
  161. package/dist/wc/delta_share/p-6be926f4.js +1 -0
  162. package/dist/wc/delta_share/p-6cb698e0.entry.js +1 -0
  163. package/dist/wc/delta_share/p-6e8df0ae.entry.js +1 -0
  164. package/dist/wc/delta_share/p-6f95cb22.entry.js +1 -0
  165. package/dist/wc/delta_share/p-7142f1dc.entry.js +1 -0
  166. package/dist/wc/delta_share/p-7b00c3b1.entry.js +1 -0
  167. package/dist/wc/delta_share/{p-963999a8.entry.js → p-7b668937.entry.js} +1 -1
  168. package/dist/wc/delta_share/p-7cb2f788.entry.js +1 -0
  169. package/dist/wc/delta_share/{p-8710e686.entry.js → p-82630451.entry.js} +1 -1
  170. package/dist/wc/delta_share/p-84a8b959.entry.js +1 -0
  171. package/dist/wc/delta_share/p-84e4e924.entry.js +1 -0
  172. package/dist/wc/delta_share/{p-829539a5.entry.js → p-8650dcb7.entry.js} +1 -1
  173. package/dist/wc/delta_share/p-8a0d51f7.entry.js +1 -0
  174. package/dist/wc/delta_share/{p-2f289949.entry.js → p-8f286d70.entry.js} +1 -1
  175. package/dist/wc/delta_share/p-8f38cd92.entry.js +1 -0
  176. package/dist/wc/delta_share/{p-81ddcb87.entry.js → p-8f6424ca.entry.js} +1 -1
  177. package/dist/wc/delta_share/p-96f53236.entry.js +1 -0
  178. package/dist/wc/delta_share/p-9ef9046f.entry.js +1 -0
  179. package/dist/wc/delta_share/p-9faa9434.entry.js +1 -0
  180. package/dist/wc/delta_share/{p-b38b27f2.entry.js → p-a051e83a.entry.js} +1 -1
  181. package/dist/wc/delta_share/{p-45dcece4.entry.js → p-a14153cc.entry.js} +1 -1
  182. package/dist/wc/delta_share/p-a3dc62bb.js +1 -0
  183. package/dist/wc/delta_share/p-aa8f533e.entry.js +1 -0
  184. package/dist/wc/delta_share/p-ab6dbdae.entry.js +1 -0
  185. package/dist/wc/delta_share/p-aeec6792.entry.js +1 -0
  186. package/dist/wc/delta_share/p-af60173c.entry.js +1 -0
  187. package/dist/wc/delta_share/p-bb15cf8b.entry.js +1 -0
  188. package/dist/wc/delta_share/p-c0ccd95c.entry.js +1 -0
  189. package/dist/wc/delta_share/p-c1b16c6e.entry.js +1 -0
  190. package/dist/wc/delta_share/p-c5f5fb78.entry.js +1 -0
  191. package/dist/wc/delta_share/p-c64950a2.entry.js +1 -0
  192. package/dist/wc/delta_share/p-c7678d37.js +1 -0
  193. package/dist/wc/delta_share/{p-1009b417.entry.js → p-ce115f77.entry.js} +1 -1
  194. package/dist/wc/delta_share/{p-7546c464.entry.js → p-d1062520.js} +1 -1
  195. package/dist/wc/delta_share/p-d231964b.entry.js +1 -0
  196. package/dist/wc/delta_share/p-d4fbf66b.entry.js +1 -0
  197. package/dist/wc/delta_share/{p-0bb97b61.js → p-d50ea6ea.js} +1 -1
  198. package/dist/wc/delta_share/p-d52d3e5c.js +1 -0
  199. package/dist/wc/delta_share/p-d6eef1ed.entry.js +1 -0
  200. package/dist/wc/delta_share/p-d8592d42.js +1 -0
  201. package/dist/wc/delta_share/p-d888ec2a.entry.js +1 -0
  202. package/dist/wc/delta_share/p-db7371fa.entry.js +1 -0
  203. package/dist/wc/delta_share/p-dd409bfb.js +1 -0
  204. package/dist/wc/delta_share/p-df6ae14f.js +1 -0
  205. package/dist/wc/delta_share/{p-4eb940ca.entry.js → p-e182b6dc.entry.js} +1 -1
  206. package/dist/wc/delta_share/p-e7f23a1e.entry.js +1 -0
  207. package/dist/wc/delta_share/p-ebd0e41d.entry.js +1 -0
  208. package/dist/wc/delta_share/{p-0bff6d57.entry.js → p-eddfcccc.entry.js} +1 -1
  209. package/dist/wc/delta_share/p-f77ae63f.entry.js +1 -0
  210. package/dist/wc/delta_share/p-f8091230.entry.js +1 -0
  211. package/dist/wc/delta_share/p-f894f849.entry.js +1 -0
  212. package/dist/wc/delta_share/p-f903c87f.entry.js +1 -0
  213. package/dist/wc/delta_share/p-fe486d84.entry.js +1 -0
  214. package/dist/wc/delta_share/p-fe53cbde.entry.js +1 -0
  215. package/dist/wc/delta_share/p-ff24a080.js +1 -0
  216. package/dist/wc/delta_share/p-ff98ef8e.entry.js +1 -0
  217. package/dist/wc/esm/breakpoints-3c3dbb8c.js +5 -0
  218. package/dist/wc/esm/delta_share.js +2 -2
  219. package/dist/wc/esm/{icons-7a34b033.js → icons-6196a79a.js} +111 -0
  220. package/dist/wc/esm/index-0cf1e7ae.js +19 -0
  221. package/dist/wc/esm/index-2a8923e8.js +18 -0
  222. package/dist/wc/esm/index-2ae14d02.js +65 -0
  223. package/dist/wc/esm/{index-b3a91e19.js → index-396432db.js} +8 -0
  224. package/dist/wc/esm/index-48b6c0e6.js +15 -0
  225. package/dist/wc/esm/index-5445c84d.js +19 -0
  226. package/dist/wc/esm/index-6642fa3a.js +15 -0
  227. package/dist/wc/esm/index-81516a9a.js +19 -0
  228. package/dist/wc/esm/{index-4f1e2705.js → index-9d240d39.js} +44 -11
  229. package/dist/wc/esm/index-b6d67648.js +39 -0
  230. package/dist/wc/esm/index-be084691.js +77 -0
  231. package/dist/wc/esm/index-c3e3c74b.js +51 -0
  232. package/dist/wc/esm/index-c74188e2.js +19 -0
  233. package/dist/wc/esm/index-c8e57c08.js +20 -0
  234. package/dist/wc/esm/index-cbe7ef0a.js +27 -0
  235. package/dist/wc/esm/index-df217b14.js +32 -0
  236. package/dist/wc/esm/index-e14dd015.js +15 -0
  237. package/dist/wc/esm/index-ea60f2c2.js +72 -0
  238. package/dist/wc/esm/{license-activation_11.entry.js → license-activation_10.entry.js} +967 -129
  239. package/dist/wc/esm/loader.js +2 -2
  240. package/dist/wc/esm/{utils-711517a4.js → utils-5e6dc3fe.js} +1 -1
  241. package/dist/wc/esm/{utils-5a24a17b.js → utils-bc5ea6f7.js} +13 -4
  242. package/dist/wc/esm/z-accordion.entry.js +63 -0
  243. package/dist/wc/esm/z-alert.entry.js +1 -1
  244. package/dist/wc/esm/z-anchor-navigation.entry.js +2 -2
  245. package/dist/wc/esm/z-app-header.entry.js +92 -40
  246. package/dist/wc/esm/z-aria-alert.entry.js +2 -2
  247. package/dist/wc/esm/z-avatar.entry.js +5 -5
  248. package/dist/wc/esm/z-book-card.entry.js +122 -0
  249. package/dist/wc/esm/z-breadcrumb.entry.js +228 -0
  250. package/dist/wc/esm/z-button-sort.entry.js +4 -4
  251. package/dist/wc/esm/z-card.entry.js +6 -19
  252. package/dist/wc/esm/z-carousel.entry.js +8 -4
  253. package/dist/wc/esm/z-chip.entry.js +11 -16
  254. package/dist/wc/esm/z-combobox.entry.js +12 -10
  255. package/dist/wc/esm/z-contextual-menu.entry.js +6 -6
  256. package/dist/wc/esm/z-cover-hero.entry.js +25 -8
  257. package/dist/wc/esm/z-date-picker.entry.js +3 -3
  258. package/dist/wc/esm/z-divider.entry.js +2 -2
  259. package/dist/wc/esm/z-dragdrop-area.entry.js +1 -1
  260. package/dist/wc/esm/z-file-upload.entry.js +5 -5
  261. package/dist/wc/esm/z-file.entry.js +3 -3
  262. package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
  263. package/dist/wc/esm/z-info-reveal.entry.js +2 -2
  264. package/dist/wc/esm/z-link.entry.js +70 -0
  265. package/dist/wc/esm/z-list_3.entry.js +4 -4
  266. package/dist/wc/esm/z-logo.entry.js +1 -1
  267. package/dist/wc/esm/z-menu-section.entry.js +12 -4
  268. package/dist/wc/esm/z-menu.entry.js +27 -15
  269. package/dist/wc/esm/z-messages-pocket.entry.js +3 -3
  270. package/dist/wc/esm/z-myz-card-alert.entry.js +2 -2
  271. package/dist/wc/esm/z-myz-card-dictionary.entry.js +2 -2
  272. package/dist/wc/esm/z-myz-card-footer-sections.entry.js +2 -2
  273. package/dist/wc/esm/z-myz-card-footer.entry.js +16 -4
  274. package/dist/wc/esm/z-myz-card-icon.entry.js +2 -2
  275. package/dist/wc/esm/z-myz-card-info.entry.js +4 -4
  276. package/dist/wc/esm/z-myz-card-list.entry.js +2 -2
  277. package/dist/wc/esm/z-myz-card_4.entry.js +5 -5
  278. package/dist/wc/esm/z-myz-list-item.entry.js +5 -5
  279. package/dist/wc/esm/z-myz-list.entry.js +1 -1
  280. package/dist/wc/esm/z-navigation-tab-link.entry.js +10 -7
  281. package/dist/wc/esm/z-navigation-tab.entry.js +7 -7
  282. package/dist/wc/esm/z-navigation-tabs.entry.js +152 -49
  283. package/dist/wc/esm/z-notification.entry.js +1 -1
  284. package/dist/wc/esm/z-offcanvas_2.entry.js +276 -0
  285. package/dist/wc/esm/z-otp.entry.js +2 -2
  286. package/dist/wc/esm/z-pagination.entry.js +3 -3
  287. package/dist/wc/esm/z-panel-elem.entry.js +7 -3
  288. package/dist/wc/esm/z-pocket-message.entry.js +1 -1
  289. package/dist/wc/esm/z-pocket_3.entry.js +4 -4
  290. package/dist/wc/esm/z-popover.entry.js +6 -5
  291. package/dist/wc/esm/z-range-picker.entry.js +25 -7
  292. package/dist/wc/esm/z-section-title.entry.js +3 -3
  293. package/dist/wc/esm/z-select.entry.js +20 -13
  294. package/dist/wc/esm/z-skip-to-content.entry.js +14 -6
  295. package/dist/wc/esm/z-slideshow.entry.js +5 -5
  296. package/dist/wc/esm/z-stepper-item.entry.js +2 -2
  297. package/dist/wc/esm/z-stepper.entry.js +2 -2
  298. package/dist/wc/esm/z-table-body.entry.js +2 -20
  299. package/dist/wc/esm/z-table-cell.entry.js +3 -32
  300. package/dist/wc/esm/z-table-deprecated.entry.js +87 -0
  301. package/dist/wc/esm/z-table-empty-box.entry.js +2 -27
  302. package/dist/wc/esm/z-table-expanded-row.entry.js +2 -15
  303. package/dist/wc/esm/z-table-footer.entry.js +2 -19
  304. package/dist/wc/esm/z-table-head.entry.js +2 -19
  305. package/dist/wc/esm/z-table-header-row.entry.js +2 -18
  306. package/dist/wc/esm/z-table-header.entry.js +5 -78
  307. package/dist/wc/esm/z-table-row.entry.js +3 -39
  308. package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -15
  309. package/dist/wc/esm/z-table.entry.js +37 -59
  310. package/dist/wc/esm/z-tag.entry.js +1 -1
  311. package/dist/wc/esm/z-tbody.entry.js +2 -0
  312. package/dist/wc/esm/z-td.entry.js +3 -0
  313. package/dist/wc/esm/z-tfoot.entry.js +2 -0
  314. package/dist/wc/esm/z-th.entry.js +3 -0
  315. package/dist/wc/esm/z-thead.entry.js +2 -0
  316. package/dist/wc/esm/z-toast-notification-list.entry.js +2 -2
  317. package/dist/wc/esm/z-toast-notification.entry.js +3 -3
  318. package/dist/wc/esm/z-toggle-button.entry.js +5 -3
  319. package/dist/wc/esm/z-toggle-switch.entry.js +4 -4
  320. package/dist/wc/esm/z-tooltip.entry.js +11 -5
  321. package/dist/wc/esm/z-tr.entry.js +7 -0
  322. package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
  323. package/dist/wc/types/components/license-activation/license-activation.d.ts +2 -3
  324. package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -5
  325. package/dist/wc/types/components.d.ts +0 -2
  326. package/package.json +1 -1
  327. package/dist/wc/cjs/z-app-switcher.cjs.entry.js +0 -29
  328. package/dist/wc/cjs/z-body.cjs.entry.js +0 -18
  329. package/dist/wc/cjs/z-heading.cjs.entry.js +0 -18
  330. package/dist/wc/cjs/z-offcanvas.cjs.entry.js +0 -70
  331. package/dist/wc/cjs/z-searchbar.cjs.entry.js +0 -235
  332. package/dist/wc/cjs/z-typography.cjs.entry.js +0 -30
  333. package/dist/wc/delta_share/p-0434c900.entry.js +0 -1
  334. package/dist/wc/delta_share/p-063881e2.entry.js +0 -1
  335. package/dist/wc/delta_share/p-0667e9cd.entry.js +0 -1
  336. package/dist/wc/delta_share/p-0f55558e.js +0 -1
  337. package/dist/wc/delta_share/p-1c2d7c30.entry.js +0 -1
  338. package/dist/wc/delta_share/p-1d2cb6f9.entry.js +0 -1
  339. package/dist/wc/delta_share/p-23905d08.entry.js +0 -1
  340. package/dist/wc/delta_share/p-29310a24.entry.js +0 -1
  341. package/dist/wc/delta_share/p-3fa29874.entry.js +0 -1
  342. package/dist/wc/delta_share/p-42e9c740.entry.js +0 -1
  343. package/dist/wc/delta_share/p-500ff0dd.entry.js +0 -1
  344. package/dist/wc/delta_share/p-51431ace.js +0 -1
  345. package/dist/wc/delta_share/p-5530ca81.entry.js +0 -1
  346. package/dist/wc/delta_share/p-5d88112c.entry.js +0 -1
  347. package/dist/wc/delta_share/p-61264c72.entry.js +0 -1
  348. package/dist/wc/delta_share/p-64decd7d.entry.js +0 -1
  349. package/dist/wc/delta_share/p-65be6de6.entry.js +0 -1
  350. package/dist/wc/delta_share/p-6cb8def6.entry.js +0 -1
  351. package/dist/wc/delta_share/p-6d853df0.entry.js +0 -1
  352. package/dist/wc/delta_share/p-702dd7b4.entry.js +0 -1
  353. package/dist/wc/delta_share/p-74b71f61.entry.js +0 -1
  354. package/dist/wc/delta_share/p-78d71789.js +0 -1
  355. package/dist/wc/delta_share/p-7ae0c21f.js +0 -1
  356. package/dist/wc/delta_share/p-86a8888e.entry.js +0 -3
  357. package/dist/wc/delta_share/p-8794c0c7.entry.js +0 -1
  358. package/dist/wc/delta_share/p-8825d8e4.entry.js +0 -1
  359. package/dist/wc/delta_share/p-8cc7c2c7.entry.js +0 -1
  360. package/dist/wc/delta_share/p-8d91a5b7.entry.js +0 -1
  361. package/dist/wc/delta_share/p-90fdd23f.entry.js +0 -1
  362. package/dist/wc/delta_share/p-925fc6c3.entry.js +0 -1
  363. package/dist/wc/delta_share/p-963f64a8.entry.js +0 -1
  364. package/dist/wc/delta_share/p-99ffd017.entry.js +0 -1
  365. package/dist/wc/delta_share/p-a150a778.entry.js +0 -1
  366. package/dist/wc/delta_share/p-a2b564ef.entry.js +0 -1
  367. package/dist/wc/delta_share/p-a64544de.entry.js +0 -1
  368. package/dist/wc/delta_share/p-a6b403f9.entry.js +0 -1
  369. package/dist/wc/delta_share/p-afb5bfe5.entry.js +0 -1
  370. package/dist/wc/delta_share/p-b16fd965.entry.js +0 -1
  371. package/dist/wc/delta_share/p-badf3f24.entry.js +0 -1
  372. package/dist/wc/delta_share/p-be7f8da0.entry.js +0 -1
  373. package/dist/wc/delta_share/p-c229c90e.entry.js +0 -1
  374. package/dist/wc/delta_share/p-c436e1af.entry.js +0 -1
  375. package/dist/wc/delta_share/p-c51ebb01.entry.js +0 -1
  376. package/dist/wc/delta_share/p-c885d25c.entry.js +0 -1
  377. package/dist/wc/delta_share/p-c9df8e5d.entry.js +0 -1
  378. package/dist/wc/delta_share/p-cb16715b.entry.js +0 -1
  379. package/dist/wc/delta_share/p-cf58d833.js +0 -1
  380. package/dist/wc/delta_share/p-d586adfc.entry.js +0 -1
  381. package/dist/wc/delta_share/p-d69c3b08.entry.js +0 -1
  382. package/dist/wc/delta_share/p-ddab353c.entry.js +0 -1
  383. package/dist/wc/delta_share/p-ea6c67f2.entry.js +0 -1
  384. package/dist/wc/delta_share/p-ee0a8f1f.entry.js +0 -1
  385. package/dist/wc/delta_share/p-fc49c455.entry.js +0 -1
  386. package/dist/wc/esm/breakpoints-e07f80e7.js +0 -4
  387. package/dist/wc/esm/z-app-switcher.entry.js +0 -25
  388. package/dist/wc/esm/z-body.entry.js +0 -14
  389. package/dist/wc/esm/z-heading.entry.js +0 -14
  390. package/dist/wc/esm/z-offcanvas.entry.js +0 -66
  391. package/dist/wc/esm/z-searchbar.entry.js +0 -231
  392. package/dist/wc/esm/z-typography.entry.js +0 -26
@@ -1,9 +1,9 @@
1
- import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-b3a91e19.js';
1
+ import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-396432db.js';
2
2
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
3
- import { B as ButtonVariant, a as ButtonType, b as ButtonSize, L as LabelPosition, I as InputType, K as KeyboardCode } from './index-4f1e2705.js';
4
- import { I as ICONS } from './icons-7a34b033.js';
5
- import { r as randomId, b as boolean } from './utils-5a24a17b.js';
6
- import './breakpoints-e07f80e7.js';
3
+ import { B as ButtonVariant, a as ButtonType, C as ControlSize, L as LabelPosition, I as InputType, K as KeyboardCode } from './index-9d240d39.js';
4
+ import { I as ICONS } from './icons-6196a79a.js';
5
+ import { r as randomId, b as boolean } from './utils-bc5ea6f7.js';
6
+ import './breakpoints-3c3dbb8c.js';
7
7
 
8
8
  var DeviceEnum;
9
9
  (function (DeviceEnum) {
@@ -65,10 +65,10 @@ const debounce = (fn, ms) => {
65
65
  *
66
66
  * Better leak in Edge than to be useless.
67
67
  */
68
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
68
+ const isConnected$1 = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
69
69
  const cleanupElements = debounce((map) => {
70
70
  for (let key of map.keys()) {
71
- map.set(key, map.get(key).filter(isConnected));
71
+ map.set(key, map.get(key).filter(isConnected$1));
72
72
  }
73
73
  }, 2000);
74
74
  const stencilSubscription = ({ on }) => {
@@ -1734,7 +1734,6 @@ const LicenseActivation = class {
1734
1734
  this.licenseStatusChange = createEvent(this, "licenseStatusChange", 7);
1735
1735
  /** env: values: "local" | "devmy" | "testmy" | "demomy" | "prod" */
1736
1736
  this.env = "prod";
1737
- this.initialShowInfoBox = false;
1738
1737
  this.licenseActivationState = licenseInitialState;
1739
1738
  }
1740
1739
  async componentWillLoad() {
@@ -1759,8 +1758,7 @@ const LicenseActivation = class {
1759
1758
  this.licenseModalState.emit({ value: "closed" });
1760
1759
  this.resetStore();
1761
1760
  }
1762
- handleLicenseModalOpen(initialShowInfoBox) {
1763
- this.initialShowInfoBox = initialShowInfoBox;
1761
+ handleLicenseModalOpen() {
1764
1762
  this.submitClicked = true;
1765
1763
  this.modalState = "open";
1766
1764
  this.licenseModalState.emit({ value: "open" });
@@ -1795,7 +1793,7 @@ const LicenseActivation = class {
1795
1793
  if (this.licenseActivationState.licenseActivationCode === sampleCode) {
1796
1794
  this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationMessage: sampleCodeError, licenseActivationStatus: "fail", licenseActivationApiData: null });
1797
1795
  this.emitStatusChange();
1798
- this.handleLicenseModalOpen(false);
1796
+ this.handleLicenseModalOpen();
1799
1797
  }
1800
1798
  try {
1801
1799
  const response = await post(url, { code: this.licenseActivationState.licenseActivationCode }, null, requestOpt);
@@ -1806,20 +1804,20 @@ const LicenseActivation = class {
1806
1804
  this.emitStatusChange();
1807
1805
  response.ok
1808
1806
  ? this.handleLicenseModalClose()
1809
- : this.handleLicenseModalOpen(false);
1807
+ : this.handleLicenseModalOpen();
1810
1808
  }
1811
1809
  catch (error) {
1812
1810
  const { response } = error;
1813
1811
  this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationApiError: error, licenseActivationStatus: "fail", licenseActivationMessage: handleResponseError(await response.json()), licenseActivationApiData: null });
1814
1812
  this.emitStatusChange();
1815
- this.handleLicenseModalOpen(false);
1813
+ this.handleLicenseModalOpen();
1816
1814
  }
1817
1815
  }
1818
1816
  async handleSubmitButtonClick(inputVal) {
1819
1817
  const { licenseActivationState: { licenseActivationStatus }, } = this;
1820
1818
  this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationCode: inputVal });
1821
1819
  if (!inputVal) {
1822
- this.handleLicenseModalOpen(false);
1820
+ this.handleLicenseModalOpen();
1823
1821
  }
1824
1822
  if ((this.variant === LicenseActivationVariantEnum.modal ||
1825
1823
  this.modalState === "open" ||
@@ -1846,19 +1844,27 @@ const LicenseActivation = class {
1846
1844
  renderLicenseActivationModal() {
1847
1845
  return (h("license-activation-modal", { id: `${this.host.id}-modal`, "modal-title": this.cms["newdashboard.licenseActivation.modalTitle"], onActivationModalClose: () => this.handleLicenseModalClose(), resetStore: this.resetStore }, this.renderLicenseActivationForm(LicenseActivationVariantEnum.modal)));
1848
1846
  }
1849
- retrieveTextsObject() {
1850
- const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription, buttonIcon, previewInputPlaceholder, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
1847
+ retrieveTextsObject(variant) {
1848
+ const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, additionalDescription, buttonIcon, previewInputPlaceholder, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
1851
1849
  const { licenseActivationStatus } = this.licenseActivationState;
1850
+ let description = null, defaultInputMessage = null;
1851
+ if (variant === LicenseActivationVariantEnum.modal) {
1852
+ description =
1853
+ additionalDescription ||
1854
+ this.cms["newdashboard.licenseActivation.additionalDescription"];
1855
+ }
1856
+ else {
1857
+ defaultInputMessage =
1858
+ this.cms["newdashboard.licenseActivation.inputHelperMessage"];
1859
+ }
1852
1860
  return {
1853
1861
  inputStatus: this.mapInputStatus(licenseActivationStatus),
1854
- inputMessage: inputMessage ||
1855
- this.cms["newdashboard.licenseActivation.inputHelperMessage"],
1862
+ inputMessage: inputMessage || defaultInputMessage,
1856
1863
  placeholder: inputPlaceholder ||
1857
1864
  this.cms["newdashboard.licenseActivation.inputPlaceholder"],
1858
1865
  inputLabel: inputLabel || this.cms["newdashboard.licenseActivation.inputLabel"],
1859
- buttonLabel: isMobile
1860
- ? buttonLabel || this.cms["newdashboard.licenseActivation.submitLabel"]
1861
- : this.cms["newdashboard.onboarding.licenseActivation.submitLabel"],
1866
+ buttonLabel: buttonLabel ||
1867
+ this.cms["newdashboard.onboarding.licenseActivation.submitLabel"],
1862
1868
  buttonIcon,
1863
1869
  previewInputPlaceholder,
1864
1870
  previewButtonLabel,
@@ -1870,15 +1876,14 @@ const LicenseActivation = class {
1870
1876
  infoBoxIcon: `${this.environment.URL_S3_IMAGES_FOLDER}bollinoSIAE.svg`,
1871
1877
  infoBoxContent: this.cms["newdashboard.licenseActivation.infoBoxContent"],
1872
1878
  supportLink: this.cms["newdashboard.licenseActivation.contactUs.url"],
1873
- additionalDescription: this.variant === LicenseActivationVariantEnum.modal &&
1874
- additionalDescription,
1879
+ additionalDescription: description,
1875
1880
  };
1876
1881
  }
1877
1882
  renderLicenseActivationForm(variant) {
1878
1883
  const { componentid } = this;
1879
1884
  const { licenseActivationState: { licenseActivationMessage, licenseActivationCode, licenseActivationApiLoading, }, } = this;
1880
- const textObject = this.retrieveTextsObject();
1881
- return (h("license-activation-form", { direction: "column", error: licenseActivationMessage, initialCode: licenseActivationCode, formTexts: textObject, requestLoading: !!licenseActivationApiLoading, enableButton: this.enableFormSubmitButton, formid: componentid, initialShowInfoBox: this.initialShowInfoBox, onFormInputChange: (e) => this.handleFormInputChange(e.detail.value), onSubmitButtonClick: (e) => this.handleSubmitButtonClick(e.detail.value), variant: variant, handleModalOpen: () => this.handleLicenseModalOpen(true) }));
1885
+ const textObject = this.retrieveTextsObject(variant);
1886
+ return (h("license-activation-form", { direction: "column", error: licenseActivationMessage, initialCode: licenseActivationCode, formTexts: textObject, requestLoading: !!licenseActivationApiLoading, enableButton: this.enableFormSubmitButton, formid: componentid, onFormInputChange: (e) => this.handleFormInputChange(e.detail.value), onSubmitButtonClick: (e) => this.handleSubmitButtonClick(e.detail.value), variant: variant, handleModalOpen: () => this.handleLicenseModalOpen() }));
1882
1887
  }
1883
1888
  renderMobileButton() {
1884
1889
  return (h("z-button", { onClick: () => this.handleMobileButtonClick() }, this.cms["newdashboard.onboarding.licenseActivation.mobileSubmitLabel"]));
@@ -1923,7 +1928,7 @@ const LicenseActivationBox = class {
1923
1928
  };
1924
1929
  LicenseActivationBox.style = licenseActivationBoxCss;
1925
1930
 
1926
- const licenseActivationFormCss = ".sc-license-activation-form-h{display:block}.sc-license-activation-form-h>div.sc-license-activation-form>.body-3.sc-license-activation-form{display:block;margin-bottom:calc(var(--space-unit) * 2)}.sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding:calc(var(--space-unit) * 2) 0;width:100%}.sc-license-activation-form-h>div.sc-license-activation-form>z-input.sc-license-activation-form{width:100%}.sc-license-activation-form-h>z-link.sc-license-activation-form{font-weight:bold}.sc-license-activation-form-h>div.sc-license-activation-form>z-info-box.sc-license-activation-form>div.sc-license-activation-form{display:flex}[variant=\"modal\"].sc-license-activation-form-h{padding:calc(var(--space-unit) * 2)}[variant=\"modal\"].sc-license-activation-form-h .error-section.sc-license-activation-form{display:flex;flex-direction:column;border-top:var(--border-size-small) solid var(--color-surface03);margin-top:calc(var(--space-unit) * 3);padding-top:calc(var(--space-unit) * 2)}[variant=\"modal\"].sc-license-activation-form-h .error-section.sc-license-activation-form>span.sc-license-activation-form{padding:calc(var(--space-unit) * 2) 0;display:block;color:var(--color-text01);fill:var(--color-text01);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:20px}[variant=\"preview\"].sc-license-activation-form-h{margin:0;padding:0}[variant=\"preview\"].sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{margin:0;padding:0;width:initial}[variant=\"preview\"].sc-license-activation-form-h .license-input-container.sc-license-activation-form{width:100%;margin-right:calc(var(--space-unit) * 2)}.sc-license-activation-form-h .license-input-container.sc-license-activation-form>z-input.sc-license-activation-form{width:100%}@media only screen and (min-width: 768px){[variant=\"modal\"].sc-license-activation-form-h{padding:24px;width:396px}.sc-license-activation-form-h>div.sc-license-activation-form{display:flex;flex-direction:row}[variant=\"modal\"].sc-license-activation-form-h>div.sc-license-activation-form{flex-direction:column}.sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding-top:calc(var(--space-unit) * 3);padding-left:calc(var(--space-unit) * 2);width:auto}[variant=\"preview\"].sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding-top:0}[variant=\"modal\"].sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding:24px 0 calc(var(--space-unit) * 2);width:max-content}[variant=\"modal\"].sc-license-activation-form-h .error-section.sc-license-activation-form>z-button.sc-license-activation-form{width:max-content}}@media only screen and (min-width: 1152px){.sc-license-activation-form-h>div.sc-license-activation-form{flex-direction:row}}@media only screen and (min-width: 1366px){[variant=\"modal\"].sc-license-activation-form-h{padding:32px;width:477px}}";
1931
+ const licenseActivationFormCss = ".sc-license-activation-form-h{display:block}.sc-license-activation-form-h>div.sc-license-activation-form>.body-3.sc-license-activation-form{display:block;margin-bottom:calc(var(--space-unit) * 4)}.sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding:calc(var(--space-unit) * 2) 0;width:100%}.sc-license-activation-form-h>div.sc-license-activation-form>z-input.sc-license-activation-form{width:100%}.sc-license-activation-form-h>div.sc-license-activation-form>z-info-box.sc-license-activation-form>div.sc-license-activation-form{display:flex}[variant=\"modal\"].sc-license-activation-form-h{padding:calc(var(--space-unit) * 2)}[variant=\"modal\"].sc-license-activation-form-h .error-section.sc-license-activation-form{display:flex;flex-direction:column;border-top:var(--border-size-small) solid var(--color-surface03);margin-top:calc(var(--space-unit) * 3);padding-top:calc(var(--space-unit) * 2)}[variant=\"modal\"].sc-license-activation-form-h .error-section.sc-license-activation-form>span.sc-license-activation-form{padding:calc(var(--space-unit) * 2) 0;display:block;color:var(--color-text01);fill:var(--color-text01);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:20px}[variant=\"preview\"].sc-license-activation-form-h{margin:0;padding:0}[variant=\"preview\"].sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{margin:0;padding:0;width:initial}[variant=\"preview\"].sc-license-activation-form-h .license-input-container.sc-license-activation-form{width:100%;margin-right:calc(var(--space-unit) * 2)}[variant=\"modal\"].sc-license-activation-form-h .infobox-content.sc-license-activation-form{display:flex;align-items:center;color:var(--color-link-primary);column-gap:0.5em;padding:calc(var(--space-unit) / 2) 0}[variant=\"modal\"].sc-license-activation-form-h .infobox-content.sc-license-activation-form z-icon.sc-license-activation-form{fill:var(--color-link-primary)}.sc-license-activation-form-h .license-input-container.sc-license-activation-form>z-input.sc-license-activation-form{width:100%}@media only screen and (min-width: 768px){[variant=\"modal\"].sc-license-activation-form-h{padding:calc(var(--space-unit) * 3);width:396px}.sc-license-activation-form-h>div.sc-license-activation-form{display:flex;flex-direction:row}[variant=\"modal\"].sc-license-activation-form-h>div.sc-license-activation-form{flex-direction:column}.sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding-top:calc(var(--space-unit) * 3);padding-left:calc(var(--space-unit) * 2);width:auto}[variant=\"preview\"].sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding-top:0}[variant=\"modal\"].sc-license-activation-form-h>div.sc-license-activation-form>z-button.sc-license-activation-form{padding:calc(var(--space-unit) * 3) 0 calc(var(--space-unit) * 2);width:max-content}[variant=\"modal\"].sc-license-activation-form-h .error-section.sc-license-activation-form>z-button.sc-license-activation-form{width:max-content}}@media only screen and (min-width: 1152px){.sc-license-activation-form-h>div.sc-license-activation-form{flex-direction:row}}@media only screen and (min-width: 1366px){[variant=\"modal\"].sc-license-activation-form-h{padding:calc(var(--space-unit) * 4);width:477px}}";
1927
1932
 
1928
1933
  const LicenseActivationForm = class {
1929
1934
  constructor(hostRef) {
@@ -1951,7 +1956,6 @@ const LicenseActivationForm = class {
1951
1956
  }
1952
1957
  }
1953
1958
  componentWillLoad() {
1954
- this.showInfoBox = !!this.initialShowInfoBox;
1955
1959
  this.inputVal = this.initialCode ? this.initialCode : "";
1956
1960
  }
1957
1961
  handleFormInputChange(detail) {
@@ -1962,9 +1966,6 @@ const LicenseActivationForm = class {
1962
1966
  this.submitButtonClick.emit({ value: inputVal });
1963
1967
  }
1964
1968
  handleInfoClick() {
1965
- if (this.variant === LicenseActivationVariantEnum.modal) {
1966
- this.showInfoBox = true;
1967
- }
1968
1969
  if (this.variant === LicenseActivationVariantEnum.box ||
1969
1970
  this.variant === LicenseActivationVariantEnum.preview) {
1970
1971
  this.handleModalOpen();
@@ -2000,34 +2001,27 @@ const LicenseActivationForm = class {
2000
2001
  const disabled = (this.variant === LicenseActivationVariantEnum.modal && !this.inputVal) ||
2001
2002
  !!this.requestLoading ||
2002
2003
  !this.enableButton;
2003
- return (h("z-button", { variant: ButtonVariant.primary, size: this.getButtonSize(this.variant), icon: this.getButtonIcon(this.variant), disabled: disabled, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.getButtonLabel(this.variant)));
2004
+ return (h("z-button", { ariaLabel: "attiva il libro digitale", variant: ButtonVariant.primary, size: this.getButtonSize(this.variant), icon: this.getButtonIcon(this.variant), disabled: disabled, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.getButtonLabel(this.variant)));
2004
2005
  }
2005
2006
  renderAdditionalDescription() {
2006
2007
  const { additionalDescription } = this.formTexts;
2007
2008
  if (!additionalDescription)
2008
2009
  return;
2009
- return h("span", { class: "body-3" }, additionalDescription);
2010
+ return (h("span", { class: "body-3", innerHTML: manageMarkupContent(additionalDescription) }));
2010
2011
  }
2011
2012
  renderInfoLink() {
2012
2013
  const { linkLabel } = this.formTexts;
2013
2014
  if (this.variant === LicenseActivationVariantEnum.preview)
2014
2015
  return;
2015
- return (h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick(), onKeyUp: (e) => {
2016
- if (e.code === "Enter")
2017
- this.handleInfoClick();
2018
- } }, linkLabel));
2016
+ if (this.variant === LicenseActivationVariantEnum.modal)
2017
+ return (h("span", { class: "infobox-content body-4-sb" }, h("z-icon", { name: "question-mark" }), " ", linkLabel));
2018
+ return (h("button", { class: "z-link z-link-icon z-link-sb", "aria-label": `${linkLabel} clicca per avere maggiori informazioni`, onClick: () => this.handleInfoClick() }, h("z-icon", { name: "question-mark" }), linkLabel));
2019
2019
  }
2020
2020
  renderInfoBox() {
2021
- if (!this.showInfoBox)
2021
+ if (this.variant !== LicenseActivationVariantEnum.modal)
2022
2022
  return;
2023
2023
  const { infoBoxContent, infoBoxIcon } = this.formTexts;
2024
- return (h("z-info-box", { boxid: "singleInputFormInfoSection", isclosable: true, onClick: (e) => this.handleInfoBoxClick(e) }, h("div", { slot: "content" }, infoBoxIcon && (h("span", { "aria-hidden": "true" }, h("img", { src: infoBoxIcon, alt: "" }))), infoBoxContent && (h("span", { innerHTML: manageMarkupContent(infoBoxContent) })))));
2025
- }
2026
- handleInfoBoxClick(e) {
2027
- const cp = e.composedPath();
2028
- if (cp.find((elem) => elem.dataset && elem.dataset.action === "infoBoxClose")) {
2029
- this.showInfoBox = false;
2030
- }
2024
+ return (h("z-info-box", { boxid: "singleInputFormInfoSection", isclosable: false }, h("div", { slot: "content" }, infoBoxIcon && (h("span", { "aria-hidden": "true" }, h("img", { src: infoBoxIcon, alt: "" }))), infoBoxContent && (h("span", { innerHTML: manageMarkupContent(infoBoxContent) })))));
2031
2025
  }
2032
2026
  redirectToSupport() {
2033
2027
  const { formTexts } = this;
@@ -2097,7 +2091,7 @@ const LicenseActivationModal = class {
2097
2091
  };
2098
2092
  LicenseActivationModal.style = licenseActivationModalCss;
2099
2093
 
2100
- const stylesCss$6 = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled=\"false\"]){pointer-events:none}.sc-z-button-h .z-button--container.sc-z-button{display:inline-flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;white-space:nowrap}.sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}[size=\"big\"].sc-z-button-h .z-button--container.sc-z-button{min-width:44px;height:44px}[size=\"small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:36px;height:36px}[size=\"x-small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:32px;height:32px}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-hover-primary);color:var(--color-text-inverse)}}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-text-inverse)}[variant=\"primary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled02)}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-surface01);color:var(--color-primary01)}@media (hover: hover){[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-surface01);color:var(--color-hover-primary)}}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-pressed-primary)}[variant=\"secondary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-surface01);color:var(--color-disabled02)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-primary01)}@media (hover: hover){[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-surface01);background-color:var(--color-surface01);color:var(--color-primary01)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-surface01);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant=\"tertiary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-disabled02)}";
2094
+ const stylesCss$5 = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled=\"false\"]){pointer-events:none}.sc-z-button-h .z-button--container.sc-z-button{display:inline-flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;white-space:nowrap}.sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}[size=\"big\"].sc-z-button-h .z-button--container.sc-z-button{min-width:44px;height:44px}[size=\"small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:36px;height:36px}[size=\"x-small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:32px;height:32px}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-hover-primary);color:var(--color-text-inverse)}}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-text-inverse)}[variant=\"primary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled02)}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-surface01);color:var(--color-primary01)}@media (hover: hover){[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-surface01);color:var(--color-hover-primary)}}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-pressed-primary)}[variant=\"secondary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-surface01);color:var(--color-disabled02)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary02);background-color:var(--color-primary02);color:var(--color-primary01)}@media (hover: hover){[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-surface01);background-color:var(--color-surface01);color:var(--color-primary01)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-surface01);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant=\"tertiary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-disabled02)}";
2101
2095
 
2102
2096
  const ZButton = class {
2103
2097
  constructor(hostRef) {
@@ -2111,7 +2105,7 @@ const ZButton = class {
2111
2105
  /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
2112
2106
  this.variant = ButtonVariant.PRIMARY;
2113
2107
  /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
2114
- this.size = ButtonSize.BIG;
2108
+ this.size = ControlSize.BIG;
2115
2109
  }
2116
2110
  getAttributes() {
2117
2111
  return {
@@ -2126,13 +2120,13 @@ const ZButton = class {
2126
2120
  if (this.href) {
2127
2121
  return (h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
2128
2122
  }
2129
- return (h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, disabled: this.disabled }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
2123
+ return (h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, role: this.role, disabled: this.disabled }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
2130
2124
  }
2131
2125
  get hostElement() { return getElement(this); }
2132
2126
  };
2133
- ZButton.style = stylesCss$6;
2127
+ ZButton.style = stylesCss$5;
2134
2128
 
2135
- const stylesCss$5 = ":host{margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
2129
+ const stylesCss$4 = ":host{margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
2136
2130
 
2137
2131
  const ZIcon = class {
2138
2132
  constructor(hostRef) {
@@ -2148,9 +2142,9 @@ const ZIcon = class {
2148
2142
  return (h(Host, { "aria-hidden": "true" }, h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(ICONS[this.name]))));
2149
2143
  }
2150
2144
  };
2151
- ZIcon.style = stylesCss$5;
2145
+ ZIcon.style = stylesCss$4;
2152
2146
 
2153
- const stylesCss$4 = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>div{display:flex;width:inherit;padding:calc(var(--space-unit) * 2);background:var(--accent-lighter);border-radius:var(--border-radius)}:host>div>slot{color:var(--text-grey-800);font-size:14px}:host>div>z-icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--myz-blue)}";
2147
+ const stylesCss$3 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{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-text01);font-size:14px}:host>div>z-icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-primary01)}";
2154
2148
 
2155
2149
  const ZInfoBox = class {
2156
2150
  constructor(hostRef) {
@@ -2166,9 +2160,9 @@ const ZInfoBox = class {
2166
2160
  return (h("div", { id: this.boxid }, h("slot", { name: "content" }), this.isclosable && (h("z-icon", { name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
2167
2161
  }
2168
2162
  };
2169
- ZInfoBox.style = stylesCss$4;
2163
+ ZInfoBox.style = stylesCss$3;
2170
2164
 
2171
- const stylesCss$3 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--color-surface04);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--color-text01);fill:var(--color-icon02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,.textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-primary02)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--blue500)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{box-shadow:none;pointer-events:none}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled02)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{background:var(--color-white) !important;background-clip:text !important;-webkit-transition-delay:99999s !important}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled02)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
2165
+ const stylesCss$2 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--color-surface04);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--color-text01);fill:var(--color-icon02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}[size=\"small\"].sc-z-input-h input.sc-z-input,[size=\"small\"].sc-z-input-h textarea.sc-z-input,[size=\"small\"].sc-z-input-h .textarea-wrapper.sc-z-input,[size=\"x-small\"].sc-z-input-h input.sc-z-input,[size=\"x-small\"].sc-z-input-h textarea.sc-z-input,[size=\"x-small\"].sc-z-input-h .textarea-wrapper.sc-z-input{font-size:var(--font-size-2)}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,.textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-input-field02)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--blue500)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{box-shadow:none}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled02)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size=\"small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size=\"x-small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled02)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
2172
2166
 
2173
2167
  const ZInput = class {
2174
2168
  constructor(hostRef) {
@@ -2195,6 +2189,8 @@ const ZInput = class {
2195
2189
  this.labelPosition = LabelPosition.RIGHT;
2196
2190
  /** render clear icon when typing (optional): available for text */
2197
2191
  this.hasclearicon = true;
2192
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
2193
+ this.size = ControlSize.BIG;
2198
2194
  this.isTyping = false;
2199
2195
  this.passwordHidden = true;
2200
2196
  this.typingtimeout = 300;
@@ -2274,6 +2270,8 @@ const ZInput = class {
2274
2270
  readonly: this.readonly,
2275
2271
  required: this.required,
2276
2272
  title: this.htmltitle,
2273
+ minlength: this.minlength,
2274
+ maxlength: this.maxlength,
2277
2275
  class: {
2278
2276
  [`input-${this.status}`]: !!this.status,
2279
2277
  filled: !!this.value,
@@ -2314,7 +2312,7 @@ const ZInput = class {
2314
2312
  if (this.hasclearicon && type != InputType.NUMBER) {
2315
2313
  Object.assign(attr.class, { "has-clear-icon": true });
2316
2314
  }
2317
- return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr)), this.renderIcons()), this.renderMessage()));
2315
+ return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { ref: (el) => (this.inputRef = el) })), this.renderIcons()), this.renderMessage()));
2318
2316
  }
2319
2317
  renderLabel() {
2320
2318
  if (!this.label) {
@@ -2332,22 +2330,26 @@ const ZInput = class {
2332
2330
  if (!this.icon) {
2333
2331
  return;
2334
2332
  }
2335
- return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
2333
+ return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1, "aria-hidden": "true" }, h("z-icon", { name: this.icon, class: this.size })));
2336
2334
  }
2337
2335
  renderResetIcon() {
2336
+ let hidden = false;
2338
2337
  if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
2339
- return;
2338
+ hidden = true;
2340
2339
  }
2341
- return (h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
2340
+ return (h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => {
2341
+ this.inputRef.value = "";
2342
+ this.emitInputChange("");
2343
+ } }, h("z-icon", { name: "multiply", class: this.size })));
2342
2344
  }
2343
2345
  renderShowHidePassword() {
2344
- return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
2346
+ return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
2345
2347
  }
2346
2348
  renderMessage() {
2347
2349
  if (boolean(this.message) === false) {
2348
2350
  return;
2349
2351
  }
2350
- return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
2352
+ return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
2351
2353
  }
2352
2354
  /* END text/password/email/number */
2353
2355
  /* START textarea */
@@ -2367,7 +2369,7 @@ const ZInput = class {
2367
2369
  "checkbox-label": true,
2368
2370
  "after": this.labelPosition === LabelPosition.RIGHT,
2369
2371
  "before": this.labelPosition === LabelPosition.LEFT,
2370
- } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
2372
+ } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
2371
2373
  }
2372
2374
  /* END checkbox */
2373
2375
  /* START radio */
@@ -2376,26 +2378,31 @@ const ZInput = class {
2376
2378
  "radio-label": true,
2377
2379
  "after": this.labelPosition === LabelPosition.RIGHT,
2378
2380
  "before": this.labelPosition === LabelPosition.LEFT,
2379
- } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
2381
+ } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
2380
2382
  }
2381
2383
  /* END radio */
2382
2384
  render() {
2385
+ let input;
2383
2386
  switch (this.type) {
2384
2387
  case InputType.TEXTAREA:
2385
- return this.renderTextarea();
2388
+ input = this.renderTextarea();
2389
+ break;
2386
2390
  case InputType.CHECKBOX:
2387
- return this.renderCheckbox();
2391
+ input = this.renderCheckbox();
2392
+ break;
2388
2393
  case InputType.RADIO:
2389
- return this.renderRadio();
2394
+ input = this.renderRadio();
2395
+ break;
2390
2396
  default:
2391
- return this.renderInputText(this.type);
2397
+ input = this.renderInputText(this.type);
2392
2398
  }
2399
+ return h(Host, null, input);
2393
2400
  }
2394
2401
  get hostElement() { return getElement(this); }
2395
2402
  };
2396
- ZInput.style = stylesCss$3;
2403
+ ZInput.style = stylesCss$2;
2397
2404
 
2398
- const stylesCss$2 = ":host{display:flex;min-height:calc(var(--space-unit) * 2.5);align-items:start;margin-top:var(--space-unit);color:var(--color-text05);fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status=\"success\"]){color:var(--color-text-success)}:host([status=\"error\"]){color:var(--color-text-error)}:host([status=\"warning\"]){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);--z-icon-right-margin:var(--space-unit)}";
2405
+ const stylesCss$1 = ":host{display:flex;min-height:calc(var(--space-unit) * 2.5);align-items:start;margin-top:var(--space-unit);color:var(--color-text05);fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host(.small),:host(.x-small){margin-top:calc(var(--space-unit) * 0.5);font-size:var(--font-size-1)}:host([status=\"success\"]){color:var(--color-text-success)}:host([status=\"error\"]){color:var(--color-text-error)}:host([status=\"warning\"]){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);--z-icon-right-margin:var(--space-unit);margin-top:calc(var(--space-unit) * 0.25)}:host(.small)>z-icon,:host(.x-small)>z-icon{--z-icon-width:14px;--z-icon-height:14px;--z-icon-right-margin:calc(var(--space-unit) * 0.5)}";
2399
2406
 
2400
2407
  const ZInputMessage = class {
2401
2408
  constructor(hostRef) {
@@ -2421,76 +2428,866 @@ const ZInputMessage = class {
2421
2428
  "status": ["onMessageChange"]
2422
2429
  }; }
2423
2430
  };
2424
- ZInputMessage.style = stylesCss$2;
2431
+ ZInputMessage.style = stylesCss$1;
2432
+
2433
+ // nb. This is for IE10 and lower _only_.
2434
+ var supportCustomEvent = window.CustomEvent;
2435
+ if (!supportCustomEvent || typeof supportCustomEvent === 'object') {
2436
+ supportCustomEvent = function CustomEvent(event, x) {
2437
+ x = x || {};
2438
+ var ev = document.createEvent('CustomEvent');
2439
+ ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);
2440
+ return ev;
2441
+ };
2442
+ supportCustomEvent.prototype = window.Event.prototype;
2443
+ }
2444
+
2445
+ /**
2446
+ * Dispatches the passed event to both an "on<type>" handler as well as via the
2447
+ * normal dispatch operation. Does not bubble.
2448
+ *
2449
+ * @param {!EventTarget} target
2450
+ * @param {!Event} event
2451
+ * @return {boolean}
2452
+ */
2453
+ function safeDispatchEvent(target, event) {
2454
+ var check = 'on' + event.type.toLowerCase();
2455
+ if (typeof target[check] === 'function') {
2456
+ target[check](event);
2457
+ }
2458
+ return target.dispatchEvent(event);
2459
+ }
2425
2460
 
2426
- const stylesCss$1 = ":host{--font-size-link:inherit;--font-weight-link:inherit;font-family:var(--font-family-sans);font-size:var(--font-size-link);font-weight:var(--font-weight-link);line-height:inherit;outline:none}:host([big]){--font-size-link:16px;--font-weight-link:var(--font-sb)}a{display:inline-flex;align-items:center;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent;color:var(--color-link-primary);cursor:pointer;fill:var(--color-link-primary);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{color:var(--color-disabled03);cursor:default;fill:var(--color-disabled03);pointer-events:none}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:var(--space-unit)}a>z-icon:last-child{margin-left:var(--space-unit)}";
2461
+ /**
2462
+ * @param {Element} el to check for stacking context
2463
+ * @return {boolean} whether this el or its parents creates a stacking context
2464
+ */
2465
+ function createsStackingContext(el) {
2466
+ while (el && el !== document.body) {
2467
+ var s = window.getComputedStyle(el);
2468
+ var invalid = function(k, ok) {
2469
+ return !(s[k] === undefined || s[k] === ok);
2470
+ };
2427
2471
 
2428
- const ZLink = class {
2429
- constructor(hostRef) {
2430
- registerInstance(this, hostRef);
2431
- this.zLinkClick = createEvent(this, "zLinkClick", 7);
2432
- /** link target (optional) */
2433
- this.target = "_self";
2434
- /** tabindex link attribute (optional) */
2435
- this.htmltabindex = 0;
2436
- /** disable link flag (optional) */
2437
- this.isdisabled = false;
2438
- /** active link flag (optional) */
2439
- this.isactive = false;
2440
- /** white variant flag (optional) */
2441
- this.iswhite = false;
2442
- /** link text variant (optional) */
2443
- this.textcolor = "primary";
2444
- /** big link version */
2445
- this.big = false;
2446
- /** link icon position (optional) */
2447
- this.iconposition = "left";
2448
- /** draw underline on text (optional) */
2449
- this.underline = false;
2450
- this.iconSize = 18;
2451
- this.emitZLinkClick = this.emitZLinkClick.bind(this);
2452
- this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
2472
+ if (s.opacity < 1 ||
2473
+ invalid('zIndex', 'auto') ||
2474
+ invalid('transform', 'none') ||
2475
+ invalid('mixBlendMode', 'normal') ||
2476
+ invalid('filter', 'none') ||
2477
+ invalid('perspective', 'none') ||
2478
+ s['isolation'] === 'isolate' ||
2479
+ s.position === 'fixed' ||
2480
+ s.webkitOverflowScrolling === 'touch') {
2481
+ return true;
2482
+ }
2483
+ el = el.parentElement;
2453
2484
  }
2454
- componentWillLoad() {
2455
- if (this.iswhite) {
2456
- console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
2485
+ return false;
2486
+ }
2487
+
2488
+ /**
2489
+ * Finds the nearest <dialog> from the passed element.
2490
+ *
2491
+ * @param {Element} el to search from
2492
+ * @return {HTMLDialogElement} dialog found
2493
+ */
2494
+ function findNearestDialog(el) {
2495
+ while (el) {
2496
+ if (el.localName === 'dialog') {
2497
+ return /** @type {HTMLDialogElement} */ (el);
2457
2498
  }
2458
- if (this.big) {
2459
- console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
2499
+ if (el.parentElement) {
2500
+ el = el.parentElement;
2501
+ } else if (el.parentNode) {
2502
+ el = el.parentNode.host;
2503
+ } else {
2504
+ el = null;
2460
2505
  }
2461
2506
  }
2462
- emitZLinkClick(e, linkId) {
2463
- this.emitZLinkInteraction(e, linkId);
2507
+ return null;
2508
+ }
2509
+
2510
+ /**
2511
+ * Blur the specified element, as long as it's not the HTML body element.
2512
+ * This works around an IE9/10 bug - blurring the body causes Windows to
2513
+ * blur the whole application.
2514
+ *
2515
+ * @param {Element} el to blur
2516
+ */
2517
+ function safeBlur(el) {
2518
+ // Find the actual focused element when the active element is inside a shadow root
2519
+ while (el && el.shadowRoot && el.shadowRoot.activeElement) {
2520
+ el = el.shadowRoot.activeElement;
2464
2521
  }
2465
- emitZLinkInteraction(e, linkId) {
2466
- this.zLinkClick.emit({ e, linkId });
2522
+
2523
+ if (el && el.blur && el !== document.body) {
2524
+ el.blur();
2467
2525
  }
2468
- componentDidLoad() {
2469
- if (this.icon) {
2470
- const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue("font-size"));
2471
- const currentSize = this.big ? 18 : Math.round(height * 1.125);
2472
- if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
2473
- this.iconSize = currentSize;
2526
+ }
2527
+
2528
+ /**
2529
+ * @param {!NodeList} nodeList to search
2530
+ * @param {Node} node to find
2531
+ * @return {boolean} whether node is inside nodeList
2532
+ */
2533
+ function inNodeList(nodeList, node) {
2534
+ for (var i = 0; i < nodeList.length; ++i) {
2535
+ if (nodeList[i] === node) {
2536
+ return true;
2537
+ }
2538
+ }
2539
+ return false;
2540
+ }
2541
+
2542
+ /**
2543
+ * @param {HTMLFormElement} el to check
2544
+ * @return {boolean} whether this form has method="dialog"
2545
+ */
2546
+ function isFormMethodDialog(el) {
2547
+ if (!el || !el.hasAttribute('method')) {
2548
+ return false;
2549
+ }
2550
+ return el.getAttribute('method').toLowerCase() === 'dialog';
2551
+ }
2552
+
2553
+ /**
2554
+ * @param {!DocumentFragment|!Element} hostElement
2555
+ * @return {?Element}
2556
+ */
2557
+ function findFocusableElementWithin(hostElement) {
2558
+ // Note that this is 'any focusable area'. This list is probably not exhaustive, but the
2559
+ // alternative involves stepping through and trying to focus everything.
2560
+ var opts = ['button', 'input', 'keygen', 'select', 'textarea'];
2561
+ var query = opts.map(function(el) {
2562
+ return el + ':not([disabled])';
2563
+ });
2564
+ // TODO(samthor): tabindex values that are not numeric are not focusable.
2565
+ query.push('[tabindex]:not([disabled]):not([tabindex=""])'); // tabindex != "", not disabled
2566
+ var target = hostElement.querySelector(query.join(', '));
2567
+
2568
+ if (!target && 'attachShadow' in Element.prototype) {
2569
+ // If we haven't found a focusable target, see if the host element contains an element
2570
+ // which has a shadowRoot.
2571
+ // Recursively search for the first focusable item in shadow roots.
2572
+ var elems = hostElement.querySelectorAll('*');
2573
+ for (var i = 0; i < elems.length; i++) {
2574
+ if (elems[i].tagName && elems[i].shadowRoot) {
2575
+ target = findFocusableElementWithin(elems[i].shadowRoot);
2576
+ if (target) {
2577
+ break;
2578
+ }
2474
2579
  }
2475
2580
  }
2476
2581
  }
2477
- render() {
2478
- return (h("a", { id: this.htmlid, href: this.href ? this.href : null, class: {
2479
- disabled: this.isdisabled,
2480
- active: this.isactive,
2481
- white: this.iswhite,
2482
- [this.textcolor || ""]: true,
2483
- underline: this.underline,
2484
- }, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon && (h("z-icon", { style: {
2485
- "--z-icon-width": `${this.iconSize}px`,
2486
- "--z-icon-height": `${this.iconSize}px`,
2487
- }, name: this.icon })), this.iconposition === "left" && h("slot", null)));
2582
+ return target;
2583
+ }
2584
+
2585
+ /**
2586
+ * Determines if an element is attached to the DOM.
2587
+ * @param {Element} element to check
2588
+ * @return {boolean} whether the element is in DOM
2589
+ */
2590
+ function isConnected(element) {
2591
+ return element.isConnected || document.body.contains(element);
2592
+ }
2593
+
2594
+ /**
2595
+ * @param {!Event} event
2596
+ * @return {?Element}
2597
+ */
2598
+ function findFormSubmitter(event) {
2599
+ if (event.submitter) {
2600
+ return event.submitter;
2601
+ }
2602
+
2603
+ var form = event.target;
2604
+ if (!(form instanceof HTMLFormElement)) {
2605
+ return null;
2606
+ }
2607
+
2608
+ var submitter = dialogPolyfill.formSubmitter;
2609
+ if (!submitter) {
2610
+ var target = event.target;
2611
+ var root = ('getRootNode' in target && target.getRootNode() || document);
2612
+ submitter = root.activeElement;
2613
+ }
2614
+
2615
+ if (!submitter || submitter.form !== form) {
2616
+ return null;
2617
+ }
2618
+ return submitter;
2619
+ }
2620
+
2621
+ /**
2622
+ * @param {!Event} event
2623
+ */
2624
+ function maybeHandleSubmit(event) {
2625
+ if (event.defaultPrevented) {
2626
+ return;
2627
+ }
2628
+ var form = /** @type {!HTMLFormElement} */ (event.target);
2629
+
2630
+ // We'd have a value if we clicked on an imagemap.
2631
+ var value = dialogPolyfill.imagemapUseValue;
2632
+ var submitter = findFormSubmitter(event);
2633
+ if (value === null && submitter) {
2634
+ value = submitter.value;
2635
+ }
2636
+
2637
+ // There should always be a dialog as this handler is added specifically on them, but check just
2638
+ // in case.
2639
+ var dialog = findNearestDialog(form);
2640
+ if (!dialog) {
2641
+ return;
2642
+ }
2643
+
2644
+ // Prefer formmethod on the button.
2645
+ var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');
2646
+ if (formmethod !== 'dialog') {
2647
+ return;
2648
+ }
2649
+ event.preventDefault();
2650
+
2651
+ if (value != null) {
2652
+ // nb. we explicitly check against null/undefined
2653
+ dialog.close(value);
2654
+ } else {
2655
+ dialog.close();
2656
+ }
2657
+ }
2658
+
2659
+ /**
2660
+ * @param {!HTMLDialogElement} dialog to upgrade
2661
+ * @constructor
2662
+ */
2663
+ function dialogPolyfillInfo(dialog) {
2664
+ this.dialog_ = dialog;
2665
+ this.replacedStyleTop_ = false;
2666
+ this.openAsModal_ = false;
2667
+
2668
+ // Set a11y role. Browsers that support dialog implicitly know this already.
2669
+ if (!dialog.hasAttribute('role')) {
2670
+ dialog.setAttribute('role', 'dialog');
2671
+ }
2672
+
2673
+ dialog.show = this.show.bind(this);
2674
+ dialog.showModal = this.showModal.bind(this);
2675
+ dialog.close = this.close.bind(this);
2676
+
2677
+ dialog.addEventListener('submit', maybeHandleSubmit, false);
2678
+
2679
+ if (!('returnValue' in dialog)) {
2680
+ dialog.returnValue = '';
2681
+ }
2682
+
2683
+ if ('MutationObserver' in window) {
2684
+ var mo = new MutationObserver(this.maybeHideModal.bind(this));
2685
+ mo.observe(dialog, {attributes: true, attributeFilter: ['open']});
2686
+ } else {
2687
+ // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also
2688
+ // seem to fire even if the element was removed as part of a parent removal. Use the removed
2689
+ // events to force downgrade (useful if removed/immediately added).
2690
+ var removed = false;
2691
+ var cb = function() {
2692
+ removed ? this.downgradeModal() : this.maybeHideModal();
2693
+ removed = false;
2694
+ }.bind(this);
2695
+ var timeout;
2696
+ var delayModel = function(ev) {
2697
+ if (ev.target !== dialog) { return; } // not for a child element
2698
+ var cand = 'DOMNodeRemoved';
2699
+ removed |= (ev.type.substr(0, cand.length) === cand);
2700
+ window.clearTimeout(timeout);
2701
+ timeout = window.setTimeout(cb, 0);
2702
+ };
2703
+ ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {
2704
+ dialog.addEventListener(name, delayModel);
2705
+ });
2706
+ }
2707
+ // Note that the DOM is observed inside DialogManager while any dialog
2708
+ // is being displayed as a modal, to catch modal removal from the DOM.
2709
+
2710
+ Object.defineProperty(dialog, 'open', {
2711
+ set: this.setOpen.bind(this),
2712
+ get: dialog.hasAttribute.bind(dialog, 'open')
2713
+ });
2714
+
2715
+ this.backdrop_ = document.createElement('div');
2716
+ this.backdrop_.className = 'backdrop';
2717
+ this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));
2718
+ this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));
2719
+ this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));
2720
+ }
2721
+
2722
+ dialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({
2723
+
2724
+ get dialog() {
2725
+ return this.dialog_;
2726
+ },
2727
+
2728
+ /**
2729
+ * Maybe remove this dialog from the modal top layer. This is called when
2730
+ * a modal dialog may no longer be tenable, e.g., when the dialog is no
2731
+ * longer open or is no longer part of the DOM.
2732
+ */
2733
+ maybeHideModal: function() {
2734
+ if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }
2735
+ this.downgradeModal();
2736
+ },
2737
+
2738
+ /**
2739
+ * Remove this dialog from the modal top layer, leaving it as a non-modal.
2740
+ */
2741
+ downgradeModal: function() {
2742
+ if (!this.openAsModal_) { return; }
2743
+ this.openAsModal_ = false;
2744
+ this.dialog_.style.zIndex = '';
2745
+
2746
+ // This won't match the native <dialog> exactly because if the user set top on a centered
2747
+ // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's
2748
+ // possible to polyfill this perfectly.
2749
+ if (this.replacedStyleTop_) {
2750
+ this.dialog_.style.top = '';
2751
+ this.replacedStyleTop_ = false;
2752
+ }
2753
+
2754
+ // Clear the backdrop and remove from the manager.
2755
+ this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);
2756
+ dialogPolyfill.dm.removeDialog(this);
2757
+ },
2758
+
2759
+ /**
2760
+ * @param {boolean} value whether to open or close this dialog
2761
+ */
2762
+ setOpen: function(value) {
2763
+ if (value) {
2764
+ this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');
2765
+ } else {
2766
+ this.dialog_.removeAttribute('open');
2767
+ this.maybeHideModal(); // nb. redundant with MutationObserver
2768
+ }
2769
+ },
2770
+
2771
+ /**
2772
+ * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if
2773
+ * they were on the dialog itself.
2774
+ *
2775
+ * @param {!Event} e to redirect
2776
+ */
2777
+ backdropMouseEvent_: function(e) {
2778
+ if (!this.dialog_.hasAttribute('tabindex')) {
2779
+ // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be
2780
+ // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this
2781
+ // would not be needed - clicks would move the implicit cursor there.
2782
+ var fake = document.createElement('div');
2783
+ this.dialog_.insertBefore(fake, this.dialog_.firstChild);
2784
+ fake.tabIndex = -1;
2785
+ fake.focus();
2786
+ this.dialog_.removeChild(fake);
2787
+ } else {
2788
+ this.dialog_.focus();
2789
+ }
2790
+
2791
+ var redirectedEvent = document.createEvent('MouseEvents');
2792
+ redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,
2793
+ e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,
2794
+ e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);
2795
+ this.dialog_.dispatchEvent(redirectedEvent);
2796
+ e.stopPropagation();
2797
+ },
2798
+
2799
+ /**
2800
+ * Focuses on the first focusable element within the dialog. This will always blur the current
2801
+ * focus, even if nothing within the dialog is found.
2802
+ */
2803
+ focus_: function() {
2804
+ // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.
2805
+ var target = this.dialog_.querySelector('[autofocus]:not([disabled])');
2806
+ if (!target && this.dialog_.tabIndex >= 0) {
2807
+ target = this.dialog_;
2808
+ }
2809
+ if (!target) {
2810
+ target = findFocusableElementWithin(this.dialog_);
2811
+ }
2812
+ safeBlur(document.activeElement);
2813
+ target && target.focus();
2814
+ },
2815
+
2816
+ /**
2817
+ * Sets the zIndex for the backdrop and dialog.
2818
+ *
2819
+ * @param {number} dialogZ
2820
+ * @param {number} backdropZ
2821
+ */
2822
+ updateZIndex: function(dialogZ, backdropZ) {
2823
+ if (dialogZ < backdropZ) {
2824
+ throw new Error('dialogZ should never be < backdropZ');
2825
+ }
2826
+ this.dialog_.style.zIndex = dialogZ;
2827
+ this.backdrop_.style.zIndex = backdropZ;
2828
+ },
2829
+
2830
+ /**
2831
+ * Shows the dialog. If the dialog is already open, this does nothing.
2832
+ */
2833
+ show: function() {
2834
+ if (!this.dialog_.open) {
2835
+ this.setOpen(true);
2836
+ this.focus_();
2837
+ }
2838
+ },
2839
+
2840
+ /**
2841
+ * Show this dialog modally.
2842
+ */
2843
+ showModal: function() {
2844
+ if (this.dialog_.hasAttribute('open')) {
2845
+ throw new Error('Failed to execute \'showModal\' on dialog: The element is already open, and therefore cannot be opened modally.');
2846
+ }
2847
+ if (!isConnected(this.dialog_)) {
2848
+ throw new Error('Failed to execute \'showModal\' on dialog: The element is not in a Document.');
2849
+ }
2850
+ if (!dialogPolyfill.dm.pushDialog(this)) {
2851
+ throw new Error('Failed to execute \'showModal\' on dialog: There are too many open modal dialogs.');
2852
+ }
2853
+
2854
+ if (createsStackingContext(this.dialog_.parentElement)) {
2855
+ console.warn('A dialog is being shown inside a stacking context. ' +
2856
+ 'This may cause it to be unusable. For more information, see this link: ' +
2857
+ 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');
2858
+ }
2859
+
2860
+ this.setOpen(true);
2861
+ this.openAsModal_ = true;
2862
+
2863
+ // Optionally center vertically, relative to the current viewport.
2864
+ if (dialogPolyfill.needsCentering(this.dialog_)) {
2865
+ dialogPolyfill.reposition(this.dialog_);
2866
+ this.replacedStyleTop_ = true;
2867
+ } else {
2868
+ this.replacedStyleTop_ = false;
2869
+ }
2870
+
2871
+ // Insert backdrop.
2872
+ this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);
2873
+
2874
+ // Focus on whatever inside the dialog.
2875
+ this.focus_();
2876
+ },
2877
+
2878
+ /**
2879
+ * Closes this HTMLDialogElement. This is optional vs clearing the open
2880
+ * attribute, however this fires a 'close' event.
2881
+ *
2882
+ * @param {string=} opt_returnValue to use as the returnValue
2883
+ */
2884
+ close: function(opt_returnValue) {
2885
+ if (!this.dialog_.hasAttribute('open')) {
2886
+ throw new Error('Failed to execute \'close\' on dialog: The element does not have an \'open\' attribute, and therefore cannot be closed.');
2887
+ }
2888
+ this.setOpen(false);
2889
+
2890
+ // Leave returnValue untouched in case it was set directly on the element
2891
+ if (opt_returnValue !== undefined) {
2892
+ this.dialog_.returnValue = opt_returnValue;
2893
+ }
2894
+
2895
+ // Triggering "close" event for any attached listeners on the <dialog>.
2896
+ var closeEvent = new supportCustomEvent('close', {
2897
+ bubbles: false,
2898
+ cancelable: false
2899
+ });
2900
+ safeDispatchEvent(this.dialog_, closeEvent);
2901
+ }
2902
+
2903
+ });
2904
+
2905
+ var dialogPolyfill = {};
2906
+
2907
+ dialogPolyfill.reposition = function(element) {
2908
+ var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
2909
+ var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;
2910
+ element.style.top = Math.max(scrollTop, topValue) + 'px';
2911
+ };
2912
+
2913
+ dialogPolyfill.isInlinePositionSetByStylesheet = function(element) {
2914
+ for (var i = 0; i < document.styleSheets.length; ++i) {
2915
+ var styleSheet = document.styleSheets[i];
2916
+ var cssRules = null;
2917
+ // Some browsers throw on cssRules.
2918
+ try {
2919
+ cssRules = styleSheet.cssRules;
2920
+ } catch (e) {}
2921
+ if (!cssRules) { continue; }
2922
+ for (var j = 0; j < cssRules.length; ++j) {
2923
+ var rule = cssRules[j];
2924
+ var selectedNodes = null;
2925
+ // Ignore errors on invalid selector texts.
2926
+ try {
2927
+ selectedNodes = document.querySelectorAll(rule.selectorText);
2928
+ } catch(e) {}
2929
+ if (!selectedNodes || !inNodeList(selectedNodes, element)) {
2930
+ continue;
2931
+ }
2932
+ var cssTop = rule.style.getPropertyValue('top');
2933
+ var cssBottom = rule.style.getPropertyValue('bottom');
2934
+ if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {
2935
+ return true;
2936
+ }
2937
+ }
2938
+ }
2939
+ return false;
2940
+ };
2941
+
2942
+ dialogPolyfill.needsCentering = function(dialog) {
2943
+ var computedStyle = window.getComputedStyle(dialog);
2944
+ if (computedStyle.position !== 'absolute') {
2945
+ return false;
2946
+ }
2947
+
2948
+ // We must determine whether the top/bottom specified value is non-auto. In
2949
+ // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but
2950
+ // Firefox returns the used value. So we do this crazy thing instead: check
2951
+ // the inline style and then go through CSS rules.
2952
+ if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||
2953
+ (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {
2954
+ return false;
2955
+ }
2956
+ return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);
2957
+ };
2958
+
2959
+ /**
2960
+ * @param {!Element} element to force upgrade
2961
+ */
2962
+ dialogPolyfill.forceRegisterDialog = function(element) {
2963
+ if (window.HTMLDialogElement || element.showModal) {
2964
+ console.warn('This browser already supports <dialog>, the polyfill ' +
2965
+ 'may not work correctly', element);
2966
+ }
2967
+ if (element.localName !== 'dialog') {
2968
+ throw new Error('Failed to register dialog: The element is not a dialog.');
2969
+ }
2970
+ new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));
2971
+ };
2972
+
2973
+ /**
2974
+ * @param {!Element} element to upgrade, if necessary
2975
+ */
2976
+ dialogPolyfill.registerDialog = function(element) {
2977
+ if (!element.showModal) {
2978
+ dialogPolyfill.forceRegisterDialog(element);
2488
2979
  }
2489
- get hostElement() { return getElement(this); }
2490
2980
  };
2491
- ZLink.style = stylesCss$1;
2492
2981
 
2493
- const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none}:host>dialog::backdrop{display:none}.modal-background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;overflow:hidden;width:100%;height:100vh;flex-direction:column}.modal-container>header{display:flex;flex-flow:row nowrap;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;width:100%;flex-direction:column;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{padding:0;margin:0;color:var(--color-text01);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header h2{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{overflow:auto;flex:1 auto;background:var(--color-surface01);overflow-x:hidden}.modal-container .modal-content::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-container{position:fixed;top:calc(var(--space-unit) * 6);left:50%;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header h2{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+h2{margin-top:0}}";
2982
+ /**
2983
+ * @constructor
2984
+ */
2985
+ dialogPolyfill.DialogManager = function() {
2986
+ /** @type {!Array<!dialogPolyfillInfo>} */
2987
+ this.pendingDialogStack = [];
2988
+
2989
+ var checkDOM = this.checkDOM_.bind(this);
2990
+
2991
+ // The overlay is used to simulate how a modal dialog blocks the document.
2992
+ // The blocking dialog is positioned on top of the overlay, and the rest of
2993
+ // the dialogs on the pending dialog stack are positioned below it. In the
2994
+ // actual implementation, the modal dialog stacking is controlled by the
2995
+ // top layer, where z-index has no effect.
2996
+ this.overlay = document.createElement('div');
2997
+ this.overlay.className = '_dialog_overlay';
2998
+ this.overlay.addEventListener('click', function(e) {
2999
+ this.forwardTab_ = undefined;
3000
+ e.stopPropagation();
3001
+ checkDOM([]); // sanity-check DOM
3002
+ }.bind(this));
3003
+
3004
+ this.handleKey_ = this.handleKey_.bind(this);
3005
+ this.handleFocus_ = this.handleFocus_.bind(this);
3006
+
3007
+ this.zIndexLow_ = 100000;
3008
+ this.zIndexHigh_ = 100000 + 150;
3009
+
3010
+ this.forwardTab_ = undefined;
3011
+
3012
+ if ('MutationObserver' in window) {
3013
+ this.mo_ = new MutationObserver(function(records) {
3014
+ var removed = [];
3015
+ records.forEach(function(rec) {
3016
+ for (var i = 0, c; c = rec.removedNodes[i]; ++i) {
3017
+ if (!(c instanceof Element)) {
3018
+ continue;
3019
+ } else if (c.localName === 'dialog') {
3020
+ removed.push(c);
3021
+ }
3022
+ removed = removed.concat(c.querySelectorAll('dialog'));
3023
+ }
3024
+ });
3025
+ removed.length && checkDOM(removed);
3026
+ });
3027
+ }
3028
+ };
3029
+
3030
+ /**
3031
+ * Called on the first modal dialog being shown. Adds the overlay and related
3032
+ * handlers.
3033
+ */
3034
+ dialogPolyfill.DialogManager.prototype.blockDocument = function() {
3035
+ document.documentElement.addEventListener('focus', this.handleFocus_, true);
3036
+ document.addEventListener('keydown', this.handleKey_);
3037
+ this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});
3038
+ };
3039
+
3040
+ /**
3041
+ * Called on the first modal dialog being removed, i.e., when no more modal
3042
+ * dialogs are visible.
3043
+ */
3044
+ dialogPolyfill.DialogManager.prototype.unblockDocument = function() {
3045
+ document.documentElement.removeEventListener('focus', this.handleFocus_, true);
3046
+ document.removeEventListener('keydown', this.handleKey_);
3047
+ this.mo_ && this.mo_.disconnect();
3048
+ };
3049
+
3050
+ /**
3051
+ * Updates the stacking of all known dialogs.
3052
+ */
3053
+ dialogPolyfill.DialogManager.prototype.updateStacking = function() {
3054
+ var zIndex = this.zIndexHigh_;
3055
+
3056
+ for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {
3057
+ dpi.updateZIndex(--zIndex, --zIndex);
3058
+ if (i === 0) {
3059
+ this.overlay.style.zIndex = --zIndex;
3060
+ }
3061
+ }
3062
+
3063
+ // Make the overlay a sibling of the dialog itself.
3064
+ var last = this.pendingDialogStack[0];
3065
+ if (last) {
3066
+ var p = last.dialog.parentNode || document.body;
3067
+ p.appendChild(this.overlay);
3068
+ } else if (this.overlay.parentNode) {
3069
+ this.overlay.parentNode.removeChild(this.overlay);
3070
+ }
3071
+ };
3072
+
3073
+ /**
3074
+ * @param {Element} candidate to check if contained or is the top-most modal dialog
3075
+ * @return {boolean} whether candidate is contained in top dialog
3076
+ */
3077
+ dialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {
3078
+ while (candidate = findNearestDialog(candidate)) {
3079
+ for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {
3080
+ if (dpi.dialog === candidate) {
3081
+ return i === 0; // only valid if top-most
3082
+ }
3083
+ }
3084
+ candidate = candidate.parentElement;
3085
+ }
3086
+ return false;
3087
+ };
3088
+
3089
+ dialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {
3090
+ var target = event.composedPath ? event.composedPath()[0] : event.target;
3091
+
3092
+ if (this.containedByTopDialog_(target)) { return; }
3093
+
3094
+ if (document.activeElement === document.documentElement) { return; }
3095
+
3096
+ event.preventDefault();
3097
+ event.stopPropagation();
3098
+ safeBlur(/** @type {Element} */ (target));
3099
+
3100
+ if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key
3101
+
3102
+ var dpi = this.pendingDialogStack[0];
3103
+ var dialog = dpi.dialog;
3104
+ var position = dialog.compareDocumentPosition(target);
3105
+ if (position & Node.DOCUMENT_POSITION_PRECEDING) {
3106
+ if (this.forwardTab_) {
3107
+ // forward
3108
+ dpi.focus_();
3109
+ } else if (target !== document.documentElement) {
3110
+ // backwards if we're not already focused on <html>
3111
+ document.documentElement.focus();
3112
+ }
3113
+ }
3114
+
3115
+ return false;
3116
+ };
3117
+
3118
+ dialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {
3119
+ this.forwardTab_ = undefined;
3120
+ if (event.keyCode === 27) {
3121
+ event.preventDefault();
3122
+ event.stopPropagation();
3123
+ var cancelEvent = new supportCustomEvent('cancel', {
3124
+ bubbles: false,
3125
+ cancelable: true
3126
+ });
3127
+ var dpi = this.pendingDialogStack[0];
3128
+ if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {
3129
+ dpi.dialog.close();
3130
+ }
3131
+ } else if (event.keyCode === 9) {
3132
+ this.forwardTab_ = !event.shiftKey;
3133
+ }
3134
+ };
3135
+
3136
+ /**
3137
+ * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are
3138
+ * removed and immediately readded don't stay modal, they become normal.
3139
+ *
3140
+ * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed
3141
+ */
3142
+ dialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {
3143
+ // This operates on a clone because it may cause it to change. Each change also calls
3144
+ // updateStacking, which only actually needs to happen once. But who removes many modal dialogs
3145
+ // at a time?!
3146
+ var clone = this.pendingDialogStack.slice();
3147
+ clone.forEach(function(dpi) {
3148
+ if (removed.indexOf(dpi.dialog) !== -1) {
3149
+ dpi.downgradeModal();
3150
+ } else {
3151
+ dpi.maybeHideModal();
3152
+ }
3153
+ });
3154
+ };
3155
+
3156
+ /**
3157
+ * @param {!dialogPolyfillInfo} dpi
3158
+ * @return {boolean} whether the dialog was allowed
3159
+ */
3160
+ dialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {
3161
+ var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;
3162
+ if (this.pendingDialogStack.length >= allowed) {
3163
+ return false;
3164
+ }
3165
+ if (this.pendingDialogStack.unshift(dpi) === 1) {
3166
+ this.blockDocument();
3167
+ }
3168
+ this.updateStacking();
3169
+ return true;
3170
+ };
3171
+
3172
+ /**
3173
+ * @param {!dialogPolyfillInfo} dpi
3174
+ */
3175
+ dialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {
3176
+ var index = this.pendingDialogStack.indexOf(dpi);
3177
+ if (index === -1) { return; }
3178
+
3179
+ this.pendingDialogStack.splice(index, 1);
3180
+ if (this.pendingDialogStack.length === 0) {
3181
+ this.unblockDocument();
3182
+ }
3183
+ this.updateStacking();
3184
+ };
3185
+
3186
+ dialogPolyfill.dm = new dialogPolyfill.DialogManager();
3187
+ dialogPolyfill.formSubmitter = null;
3188
+ dialogPolyfill.imagemapUseValue = null;
3189
+
3190
+ /**
3191
+ * Installs global handlers, such as click listers and native method overrides. These are needed
3192
+ * even if a no dialog is registered, as they deal with <form method="dialog">.
3193
+ */
3194
+ if (window.HTMLDialogElement === undefined) {
3195
+
3196
+ /**
3197
+ * If HTMLFormElement translates method="DIALOG" into 'get', then replace the descriptor with
3198
+ * one that returns the correct value.
3199
+ */
3200
+ var testForm = document.createElement('form');
3201
+ testForm.setAttribute('method', 'dialog');
3202
+ if (testForm.method !== 'dialog') {
3203
+ var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');
3204
+ if (methodDescriptor) {
3205
+ // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything
3206
+ // and don't bother to update the element.
3207
+ var realGet = methodDescriptor.get;
3208
+ methodDescriptor.get = function() {
3209
+ if (isFormMethodDialog(this)) {
3210
+ return 'dialog';
3211
+ }
3212
+ return realGet.call(this);
3213
+ };
3214
+ var realSet = methodDescriptor.set;
3215
+ /** @this {HTMLElement} */
3216
+ methodDescriptor.set = function(v) {
3217
+ if (typeof v === 'string' && v.toLowerCase() === 'dialog') {
3218
+ return this.setAttribute('method', v);
3219
+ }
3220
+ return realSet.call(this, v);
3221
+ };
3222
+ Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);
3223
+ }
3224
+ }
3225
+
3226
+ /**
3227
+ * Global 'click' handler, to capture the <input type="submit"> or <button> element which has
3228
+ * submitted a <form method="dialog">. Needed as Safari and others don't report this inside
3229
+ * document.activeElement.
3230
+ */
3231
+ document.addEventListener('click', function(ev) {
3232
+ dialogPolyfill.formSubmitter = null;
3233
+ dialogPolyfill.imagemapUseValue = null;
3234
+ if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission
3235
+
3236
+ var target = /** @type {Element} */ (ev.target);
3237
+ if ('composedPath' in ev) {
3238
+ var path = ev.composedPath();
3239
+ target = path.shift() || target;
3240
+ }
3241
+ if (!target || !isFormMethodDialog(target.form)) { return; }
3242
+
3243
+ var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);
3244
+ if (!valid) {
3245
+ if (!(target.localName === 'input' && target.type === 'image')) { return; }
3246
+ // this is a <input type="image">, which can submit forms
3247
+ dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;
3248
+ }
3249
+
3250
+ var dialog = findNearestDialog(target);
3251
+ if (!dialog) { return; }
3252
+
3253
+ dialogPolyfill.formSubmitter = target;
3254
+
3255
+ }, false);
3256
+
3257
+ /**
3258
+ * Global 'submit' handler. This handles submits of `method="dialog"` which are invalid, i.e.,
3259
+ * outside a dialog. They get prevented.
3260
+ */
3261
+ document.addEventListener('submit', function(ev) {
3262
+ var form = ev.target;
3263
+ var dialog = findNearestDialog(form);
3264
+ if (dialog) {
3265
+ return; // ignore, handle there
3266
+ }
3267
+
3268
+ var submitter = findFormSubmitter(ev);
3269
+ var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');
3270
+ if (formmethod === 'dialog') {
3271
+ ev.preventDefault();
3272
+ }
3273
+ });
3274
+
3275
+ /**
3276
+ * Replace the native HTMLFormElement.submit() method, as it won't fire the
3277
+ * submit event and give us a chance to respond.
3278
+ */
3279
+ var nativeFormSubmit = HTMLFormElement.prototype.submit;
3280
+ var replacementFormSubmit = function () {
3281
+ if (!isFormMethodDialog(this)) {
3282
+ return nativeFormSubmit.call(this);
3283
+ }
3284
+ var dialog = findNearestDialog(this);
3285
+ dialog && dialog.close();
3286
+ };
3287
+ HTMLFormElement.prototype.submit = replacementFormSubmit;
3288
+ }
3289
+
3290
+ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none;margin:0;background-color:transparent}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::backdrop{display:none}:host>dialog+.backdrop{display:none}:host>dialog:not([open]){display:none}:host>dialog[open]{display:block}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;width:100%;height:100vh;flex-direction:column}.modal-container>.modal-content-scroll-outside{overflow:auto;background:var(--color-surface01)}.modal-container>header{padding:calc(var(--space-unit) * 2 - 2px) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;width:100%;align-items:center;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{padding:0;margin:0;color:var(--color-text01);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header h2{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div>h1 *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container-scroll-inside>.modal-content-scroll-inside{overflow:hidden 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: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);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));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}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 3 - 2px) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 4 - 4px) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header h2{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+h2{margin-top:0}}";
2494
3291
 
2495
3292
  const FOCUSABLE_ELEMENTS_SELECTOR = ':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';
2496
3293
  const ZModal = class {
@@ -2503,18 +3300,32 @@ const ZModal = class {
2503
3300
  this.closeButtonLabel = "chiudi modale";
2504
3301
  /** add role "alertdialog" to dialog (optional, default is false) */
2505
3302
  this.alertdialog = false;
3303
+ /** if true, the modal is closable (optional, default is true) */
3304
+ this.closable = true;
3305
+ /** if true, the modal can scroll inside, if false the viewport can scroll */
3306
+ this.scrollInside = true;
2506
3307
  }
2507
3308
  emitModalClose() {
2508
- this.modalClose.emit({ modalid: this.modalid });
3309
+ if (this.closable) {
3310
+ this.modalClose.emit({ modalid: this.modalid });
3311
+ }
2509
3312
  }
2510
3313
  emitModalHeaderActive() {
2511
3314
  this.modalHeaderActive.emit({ modalid: this.modalid });
2512
3315
  }
2513
3316
  emitBackgroundClick() {
2514
- this.modalBackgroundClick.emit({ modalid: this.modalid });
3317
+ if (this.closable) {
3318
+ this.modalBackgroundClick.emit({ modalid: this.modalid });
3319
+ }
2515
3320
  }
2516
3321
  componentDidLoad() {
2517
- this.open();
3322
+ if (typeof HTMLDialogElement !== "function") {
3323
+ dialogPolyfill.registerDialog(this.dialog);
3324
+ this.dialog.setAttribute("open", "true");
3325
+ }
3326
+ else {
3327
+ this.open();
3328
+ }
2518
3329
  }
2519
3330
  /** open modal */
2520
3331
  async open() {
@@ -2524,7 +3335,9 @@ const ZModal = class {
2524
3335
  /** close modal */
2525
3336
  async close() {
2526
3337
  var _a;
2527
- (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close();
3338
+ if (this.closable) {
3339
+ (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close();
3340
+ }
2528
3341
  }
2529
3342
  /**
2530
3343
  * Get a list of focusable elements in the dialog.
@@ -2559,8 +3372,33 @@ const ZModal = class {
2559
3372
  firstFocusableElement.focus();
2560
3373
  }
2561
3374
  }
3375
+ closeButtonSlot() {
3376
+ if (this.closable) {
3377
+ return (h("slot", { name: "modalCloseButton" }, h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close() }, h("z-icon", { name: "multiply-circle-filled" }))));
3378
+ }
3379
+ }
3380
+ handleEscape(e) {
3381
+ if (this.closable) {
3382
+ return;
3383
+ }
3384
+ e.preventDefault();
3385
+ }
2562
3386
  render() {
2563
- return (h("dialog", { "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose() }, h("div", { class: "modal-container", id: this.modalid }, h("header", { onClick: this.emitModalHeaderActive.bind(this) }, h("div", null, this.modaltitle && h("h1", { id: "modal-title" }, this.modaltitle), this.modalsubtitle && h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), h("slot", { name: "modalCloseButton" }, h("button", { "aria-label": this.closeButtonLabel, onClick: () => this.close() }, h("z-icon", { name: "multiply-circle-filled" })))), h("div", { class: "modal-content", id: "modal-content" }, h("slot", { name: "modalContent" }))), h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
3387
+ return (h("dialog", { class: {
3388
+ "modal-dialog": !this.scrollInside,
3389
+ }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(),
3390
+ // @ts-ignore
3391
+ onCancel: (e) => this.handleEscape(e) }, h("div", { class: {
3392
+ "modal-container": true,
3393
+ "modal-container-scroll-inside": this.scrollInside,
3394
+ "modal-container-scroll-outside": !this.scrollInside,
3395
+ }, id: this.modalid }, h("header", { onClick: this.emitModalHeaderActive.bind(this) }, h("div", null, this.modaltitle && h("h1", { id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && h("h2", { id: "modal-subtitle" }, this.modalsubtitle)), h("div", { class: {
3396
+ "modal-content-scroll-inside": this.scrollInside,
3397
+ "modal-content-scroll-outside": !this.scrollInside,
3398
+ }, id: "modal-content" }, h("slot", { name: "modalContent" }))), h("div", { class: {
3399
+ "modal-background": true,
3400
+ "modal-background-scroll-outside": !this.scrollInside,
3401
+ }, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
2564
3402
  this.emitBackgroundClick();
2565
3403
  this.close();
2566
3404
  } })));
@@ -2569,4 +3407,4 @@ const ZModal = class {
2569
3407
  };
2570
3408
  ZModal.style = stylesCss;
2571
3409
 
2572
- export { LicenseActivation as license_activation, LicenseActivationBox as license_activation_box, LicenseActivationForm as license_activation_form, LicenseActivationModal as license_activation_modal, ZButton as z_button, ZIcon as z_icon, ZInfoBox as z_info_box, ZInput as z_input, ZInputMessage as z_input_message, ZLink as z_link, ZModal as z_modal };
3410
+ export { LicenseActivation as license_activation, LicenseActivationBox as license_activation_box, LicenseActivationForm as license_activation_form, LicenseActivationModal as license_activation_modal, ZButton as z_button, ZIcon as z_icon, ZInfoBox as z_info_box, ZInput as z_input, ZInputMessage as z_input_message, ZModal as z_modal };