@zanichelli/albe-web-components 7.3.2 → 7.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (618) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{breakpoints-88c4fd6c.js → breakpoints-776c8868.js} +1 -1
  3. package/dist/cjs/{icons-a9849a41.js → icons-dea2e345.js} +763 -763
  4. package/dist/cjs/{index-7a9a8430.js → index-677bbad4.js} +317 -317
  5. package/dist/cjs/index-e3299e0a.js +6 -30
  6. package/dist/cjs/index.cjs.js +5 -5
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{utils-305151da.js → utils-3b7e4fdf.js} +94 -94
  9. package/dist/cjs/{utils-f460d1c0.js → utils-49853b30.js} +75 -75
  10. package/dist/cjs/web-components-library.cjs.js +1 -1
  11. package/dist/cjs/z-alert.cjs.entry.js +8 -8
  12. package/dist/cjs/z-anchor-navigation.cjs.entry.js +42 -42
  13. package/dist/cjs/z-app-header_11.cjs.entry.js +1050 -0
  14. package/dist/cjs/z-aria-alert.cjs.entry.js +10 -10
  15. package/dist/cjs/z-avatar.cjs.entry.js +33 -33
  16. package/dist/cjs/z-body.cjs.entry.js +9 -9
  17. package/dist/cjs/z-button-sort.cjs.entry.js +42 -42
  18. package/dist/cjs/z-card.cjs.entry.js +55 -55
  19. package/dist/cjs/z-carousel.cjs.entry.js +135 -135
  20. package/dist/cjs/z-chip.cjs.entry.js +29 -29
  21. package/dist/cjs/z-combobox.cjs.entry.js +190 -190
  22. package/dist/cjs/z-contextual-menu.cjs.entry.js +35 -35
  23. package/dist/cjs/z-cover-hero.cjs.entry.js +46 -46
  24. package/dist/cjs/z-date-picker.cjs.entry.js +164 -164
  25. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +973 -110
  26. package/dist/cjs/z-file-upload.cjs.entry.js +174 -174
  27. package/dist/cjs/z-file.cjs.entry.js +37 -37
  28. package/dist/cjs/z-ghost-loading.cjs.entry.js +9 -9
  29. package/dist/cjs/z-heading.cjs.entry.js +9 -9
  30. package/dist/cjs/z-info-box.cjs.entry.js +14 -14
  31. package/dist/cjs/z-info-reveal.cjs.entry.js +54 -54
  32. package/dist/cjs/z-link.cjs.entry.js +63 -63
  33. package/dist/cjs/z-logo.cjs.entry.js +15 -15
  34. package/dist/cjs/z-menu-section.cjs.entry.js +44 -44
  35. package/dist/cjs/z-menu.cjs.entry.js +109 -109
  36. package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
  37. package/dist/cjs/z-myz-card-alert.cjs.entry.js +52 -52
  38. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +25 -25
  39. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +8 -8
  40. package/dist/cjs/z-myz-card-footer.cjs.entry.js +58 -58
  41. package/dist/cjs/z-myz-card-icon.cjs.entry.js +12 -12
  42. package/dist/cjs/z-myz-card-info.cjs.entry.js +118 -118
  43. package/dist/cjs/z-myz-card-list.cjs.entry.js +27 -27
  44. package/dist/cjs/z-myz-card_4.cjs.entry.js +82 -82
  45. package/dist/cjs/z-myz-list-item.cjs.entry.js +26 -26
  46. package/dist/cjs/z-myz-list.cjs.entry.js +24 -24
  47. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +60 -60
  48. package/dist/cjs/z-navigation-tab.cjs.entry.js +62 -62
  49. package/dist/cjs/z-navigation-tabs.cjs.entry.js +115 -115
  50. package/dist/cjs/z-notification.cjs.entry.js +30 -30
  51. package/dist/cjs/z-otp.cjs.entry.js +30 -30
  52. package/dist/cjs/z-pagination.cjs.entry.js +219 -219
  53. package/dist/cjs/z-panel-elem.cjs.entry.js +19 -19
  54. package/dist/cjs/z-pocket-message.cjs.entry.js +8 -8
  55. package/dist/cjs/z-pocket_3.cjs.entry.js +102 -102
  56. package/dist/cjs/z-popover.cjs.entry.js +317 -317
  57. package/dist/cjs/z-range-picker.cjs.entry.js +331 -331
  58. package/dist/cjs/z-section-title.cjs.entry.js +22 -22
  59. package/dist/cjs/z-select.cjs.entry.js +322 -322
  60. package/dist/cjs/z-skip-to-content.cjs.entry.js +55 -55
  61. package/dist/cjs/z-slideshow.cjs.entry.js +118 -118
  62. package/dist/cjs/z-stepper-item.cjs.entry.js +11 -11
  63. package/dist/cjs/z-stepper.cjs.entry.js +8 -8
  64. package/dist/cjs/z-table-body.cjs.entry.js +13 -13
  65. package/dist/cjs/z-table-cell.cjs.entry.js +25 -25
  66. package/dist/cjs/z-table-empty-box.cjs.entry.js +21 -21
  67. package/dist/cjs/z-table-expanded-row.cjs.entry.js +8 -8
  68. package/dist/cjs/z-table-footer.cjs.entry.js +12 -12
  69. package/dist/cjs/z-table-head.cjs.entry.js +12 -12
  70. package/dist/cjs/z-table-header-row.cjs.entry.js +11 -11
  71. package/dist/cjs/z-table-header.cjs.entry.js +71 -71
  72. package/dist/cjs/z-table-row.cjs.entry.js +32 -32
  73. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +8 -8
  74. package/dist/cjs/z-table.cjs.entry.js +69 -69
  75. package/dist/cjs/z-tag.cjs.entry.js +11 -11
  76. package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
  77. package/dist/cjs/z-toast-notification.cjs.entry.js +187 -187
  78. package/dist/cjs/z-toggle-button.cjs.entry.js +25 -25
  79. package/dist/cjs/z-toggle-switch.cjs.entry.js +40 -40
  80. package/dist/cjs/z-tooltip.cjs.entry.js +26 -26
  81. package/dist/cjs/z-typography.cjs.entry.js +19 -19
  82. package/dist/cjs/z-visually-hidden.cjs.entry.js +8 -8
  83. package/dist/collection/beans/index.js +318 -318
  84. package/dist/collection/components/buttons/z-button/index.js +245 -245
  85. package/dist/collection/components/buttons/z-button/styles.css +149 -149
  86. package/dist/collection/components/buttons/z-button-sort/index.js +220 -220
  87. package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
  88. package/dist/collection/components/buttons/z-chip/index.js +155 -155
  89. package/dist/collection/components/buttons/z-chip/styles.css +138 -138
  90. package/dist/collection/components/buttons/z-toggle-button/index.js +146 -146
  91. package/dist/collection/components/buttons/z-toggle-button/styles.css +60 -60
  92. package/dist/collection/components/buttons/z-toggle-switch/index.js +144 -144
  93. package/dist/collection/components/buttons/z-toggle-switch/styles.css +104 -104
  94. package/dist/collection/components/date-picker/styles.css +436 -436
  95. package/dist/collection/components/date-picker/utils.js +76 -76
  96. package/dist/collection/components/date-picker/z-date-picker/index.js +295 -295
  97. package/dist/collection/components/date-picker/z-range-picker/index.js +499 -499
  98. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +53 -53
  99. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +51 -51
  100. package/dist/collection/components/file-upload/z-file/index.js +131 -131
  101. package/dist/collection/components/file-upload/z-file/styles.css +23 -23
  102. package/dist/collection/components/file-upload/z-file-upload/index.js +363 -363
  103. package/dist/collection/components/file-upload/z-file-upload/styles.css +84 -84
  104. package/dist/collection/components/icons/icons.js +764 -764
  105. package/dist/collection/components/icons/z-icon/index.js +114 -114
  106. package/dist/collection/components/icons/z-icon/styles.css +14 -14
  107. package/dist/collection/components/index.js +8 -8
  108. package/dist/collection/components/indicators/z-stepper/index.js +21 -21
  109. package/dist/collection/components/indicators/z-stepper/styles.css +19 -19
  110. package/dist/collection/components/indicators/z-stepper-item/index.js +93 -93
  111. package/dist/collection/components/indicators/z-stepper-item/styles.css +114 -114
  112. package/dist/collection/components/inputs/z-combobox/index.js +570 -570
  113. package/dist/collection/components/inputs/z-combobox/styles.css +197 -197
  114. package/dist/collection/components/inputs/z-input/index.js +764 -764
  115. package/dist/collection/components/inputs/z-input/styles.css +398 -398
  116. package/dist/collection/components/inputs/z-input-message/index.js +89 -89
  117. package/dist/collection/components/inputs/z-input-message/styles.css +48 -48
  118. package/dist/collection/components/inputs/z-searchbar/index.js +599 -611
  119. package/dist/collection/components/inputs/z-searchbar/styles.css +185 -234
  120. package/dist/collection/components/inputs/z-select/index.js +754 -754
  121. package/dist/collection/components/inputs/z-select/styles.css +123 -123
  122. package/dist/collection/components/list/z-list/index.js +91 -91
  123. package/dist/collection/components/list/z-list/styles.css +6 -6
  124. package/dist/collection/components/list/z-list-element/index.js +508 -508
  125. package/dist/collection/components/list/z-list-element/styles.css +121 -121
  126. package/dist/collection/components/list/z-list-group/index.js +175 -175
  127. package/dist/collection/components/list/z-list-group/styles.css +21 -21
  128. package/dist/collection/components/list/z-toast-notification-list/index.js +105 -105
  129. package/dist/collection/components/list/z-toast-notification-list/styles.css +100 -100
  130. package/dist/collection/components/logo/z-logo/index.js +131 -131
  131. package/dist/collection/components/logo/z-logo/styles.css +29 -29
  132. package/dist/collection/components/modal/z-modal/index.js +319 -312
  133. package/dist/collection/components/modal/z-modal/styles.css +198 -185
  134. package/dist/collection/components/navigation/tabs/navigation-tab.css +136 -136
  135. package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +242 -242
  136. package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +264 -264
  137. package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +200 -200
  138. package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +104 -104
  139. package/dist/collection/components/navigation/z-app-header/index.js +428 -305
  140. package/dist/collection/components/navigation/z-app-header/index.stories.js +393 -0
  141. package/dist/collection/components/navigation/z-app-header/styles.css +420 -419
  142. package/dist/collection/components/navigation/z-link/index.js +317 -317
  143. package/dist/collection/components/navigation/z-link/styles.css +167 -167
  144. package/dist/collection/components/navigation/z-menu/index.js +250 -249
  145. package/dist/collection/components/navigation/z-menu/styles.css +213 -213
  146. package/dist/collection/components/navigation/z-menu-section/index.js +125 -125
  147. package/dist/collection/components/navigation/z-menu-section/styles.css +123 -124
  148. package/dist/collection/components/notification/z-info-box/index.js +85 -85
  149. package/dist/collection/components/notification/z-info-box/styles.css +23 -23
  150. package/dist/collection/components/notification/z-notification/index.js +195 -195
  151. package/dist/collection/components/notification/z-notification/styles.css +114 -114
  152. package/dist/collection/components/notification/z-toast-notification/index.js +399 -399
  153. package/dist/collection/components/notification/z-toast-notification/styles.css +254 -254
  154. package/dist/collection/components/notification/z-tooltip/index.js +157 -157
  155. package/dist/collection/components/notification/z-tooltip/styles.css +17 -17
  156. package/dist/collection/components/panel/z-panel-elem/index.js +193 -193
  157. package/dist/collection/components/panel/z-panel-elem/styles.css +39 -39
  158. package/dist/collection/components/z-anchor-navigation/index.js +95 -95
  159. package/dist/collection/components/z-anchor-navigation/styles.css +129 -129
  160. package/dist/collection/components/z-aria-alert/index.js +39 -39
  161. package/dist/collection/components/z-avatar/index.js +142 -142
  162. package/dist/collection/components/z-avatar/styles.css +32 -32
  163. package/dist/collection/components/z-card/index.js +186 -186
  164. package/dist/collection/components/z-card/styles.css +206 -206
  165. package/dist/collection/components/z-carousel/index.js +300 -300
  166. package/dist/collection/components/z-carousel/styles.css +129 -129
  167. package/dist/collection/components/z-contextual-menu/index.js +126 -126
  168. package/dist/collection/components/z-contextual-menu/styles.css +60 -60
  169. package/dist/collection/components/z-cover-hero/index.js +146 -146
  170. package/dist/collection/components/z-cover-hero/styles.css +93 -93
  171. package/dist/collection/components/z-divider/index.js +95 -95
  172. package/dist/collection/components/z-divider/styles.css +37 -37
  173. package/dist/collection/components/z-ghost-loading/index.js +18 -18
  174. package/dist/collection/components/z-ghost-loading/styles.css +34 -34
  175. package/dist/collection/components/z-info-reveal/index.js +147 -147
  176. package/dist/collection/components/z-info-reveal/styles.css +103 -103
  177. package/dist/collection/components/z-offcanvas/index.js +162 -178
  178. package/dist/collection/components/z-offcanvas/styles.css +182 -182
  179. package/dist/collection/components/z-pagination/index.js +435 -435
  180. package/dist/collection/components/z-pagination/styles.css +199 -199
  181. package/dist/collection/components/z-popover/index.js +513 -513
  182. package/dist/collection/components/z-popover/styles.css +147 -147
  183. package/dist/collection/components/z-section-title/index.js +88 -88
  184. package/dist/collection/components/z-section-title/styles.css +44 -44
  185. package/dist/collection/components/z-skip-to-content/index.js +139 -139
  186. package/dist/collection/components/z-skip-to-content/styles.css +80 -80
  187. package/dist/collection/components/z-table/z-table/index.js +352 -352
  188. package/dist/collection/components/z-table/z-table/styles.css +115 -115
  189. package/dist/collection/components/z-table/z-table-body/index.js +23 -23
  190. package/dist/collection/components/z-table/z-table-body/styles.css +9 -9
  191. package/dist/collection/components/z-table/z-table-cell/index.js +86 -86
  192. package/dist/collection/components/z-table/z-table-cell/styles.css +58 -58
  193. package/dist/collection/components/z-table/z-table-empty-box/index.js +72 -72
  194. package/dist/collection/components/z-table/z-table-empty-box/styles.css +38 -38
  195. package/dist/collection/components/z-table/z-table-expanded-row/index.js +39 -39
  196. package/dist/collection/components/z-table/z-table-expanded-row/styles.css +9 -9
  197. package/dist/collection/components/z-table/z-table-footer/index.js +22 -22
  198. package/dist/collection/components/z-table/z-table-footer/styles.css +5 -5
  199. package/dist/collection/components/z-table/z-table-head/index.js +22 -22
  200. package/dist/collection/components/z-table/z-table-head/styles.css +5 -5
  201. package/dist/collection/components/z-table/z-table-header/index.js +238 -238
  202. package/dist/collection/components/z-table/z-table-header/styles.css +71 -71
  203. package/dist/collection/components/z-table/z-table-header-row/index.js +41 -41
  204. package/dist/collection/components/z-table/z-table-header-row/styles.css +13 -13
  205. package/dist/collection/components/z-table/z-table-row/index.js +92 -92
  206. package/dist/collection/components/z-table/z-table-row/styles.css +45 -45
  207. package/dist/collection/components/z-table/z-table-sticky-footer/index.js +21 -21
  208. package/dist/collection/components/z-table/z-table-sticky-footer/styles.css +11 -11
  209. package/dist/collection/components/z-tag/index.js +65 -65
  210. package/dist/collection/components/z-tag/styles.css +46 -46
  211. package/dist/collection/components/z-visually-hidden/index.js +18 -18
  212. package/dist/collection/components/z-visually-hidden/styles.css +12 -12
  213. package/dist/collection/constants/breakpoints.js +3 -3
  214. package/dist/collection/constants/icons.js +6 -6
  215. package/dist/collection/deprecated/typography/z-body/index.js +68 -68
  216. package/dist/collection/deprecated/typography/z-heading/index.js +68 -68
  217. package/dist/collection/deprecated/typography/z-typography/index.js +91 -91
  218. package/dist/collection/deprecated/typography/z-typography/styles.css +65 -65
  219. package/dist/collection/index.js +7 -7
  220. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +129 -129
  221. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -44
  222. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +151 -151
  223. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -62
  224. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +22 -22
  225. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -13
  226. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +93 -93
  227. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -11
  228. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -177
  229. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +72 -72
  230. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +219 -219
  231. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +182 -182
  232. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +22 -22
  233. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -20
  234. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +109 -109
  235. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +59 -59
  236. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +81 -81
  237. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -69
  238. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +199 -199
  239. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -93
  240. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +60 -60
  241. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -41
  242. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +78 -78
  243. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -4
  244. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +192 -192
  245. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +66 -66
  246. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +120 -120
  247. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +102 -102
  248. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +191 -191
  249. package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +44 -44
  250. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +84 -84
  251. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +41 -41
  252. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +93 -93
  253. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +27 -27
  254. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +22 -22
  255. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +44 -44
  256. package/dist/collection/snowflakes/myz/z-alert/index.js +47 -47
  257. package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
  258. package/dist/collection/snowflakes/myz/z-otp/index.js +120 -120
  259. package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
  260. package/dist/collection/snowflakes/myz/z-slideshow/index.js +180 -180
  261. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +127 -127
  262. package/dist/collection/utils/storybook-utils.js +51 -51
  263. package/dist/collection/utils/utils.js +113 -113
  264. package/dist/esm/{breakpoints-c386984e.js → breakpoints-14432d05.js} +1 -1
  265. package/dist/esm/{icons-6cd265c6.js → icons-55b0b113.js} +763 -763
  266. package/dist/esm/{index-e36ec4a4.js → index-03c01696.js} +317 -317
  267. package/dist/esm/index-a2ca4b97.js +6 -30
  268. package/dist/esm/index.js +5 -5
  269. package/dist/esm/loader.js +1 -1
  270. package/dist/esm/polyfills/core-js.js +0 -0
  271. package/dist/esm/polyfills/dom.js +0 -0
  272. package/dist/esm/polyfills/es5-html-element.js +0 -0
  273. package/dist/esm/polyfills/index.js +0 -0
  274. package/dist/esm/polyfills/system.js +0 -0
  275. package/dist/esm/{utils-9641b4ed.js → utils-a7846d0f.js} +75 -75
  276. package/dist/esm/{utils-970ac457.js → utils-f8eb3944.js} +95 -95
  277. package/dist/esm/web-components-library.js +1 -1
  278. package/dist/esm/z-alert.entry.js +8 -8
  279. package/dist/esm/z-anchor-navigation.entry.js +42 -42
  280. package/dist/esm/z-app-header_11.entry.js +1036 -0
  281. package/dist/esm/z-aria-alert.entry.js +10 -10
  282. package/dist/esm/z-avatar.entry.js +33 -33
  283. package/dist/esm/z-body.entry.js +9 -9
  284. package/dist/esm/z-button-sort.entry.js +42 -42
  285. package/dist/esm/z-card.entry.js +55 -55
  286. package/dist/esm/z-carousel.entry.js +135 -135
  287. package/dist/esm/z-chip.entry.js +29 -29
  288. package/dist/esm/z-combobox.entry.js +190 -190
  289. package/dist/esm/z-contextual-menu.entry.js +35 -35
  290. package/dist/esm/z-cover-hero.entry.js +46 -46
  291. package/dist/esm/z-date-picker.entry.js +164 -164
  292. package/dist/esm/z-dragdrop-area_2.entry.js +973 -110
  293. package/dist/esm/z-file-upload.entry.js +174 -174
  294. package/dist/esm/z-file.entry.js +37 -37
  295. package/dist/esm/z-ghost-loading.entry.js +9 -9
  296. package/dist/esm/z-heading.entry.js +9 -9
  297. package/dist/esm/z-info-box.entry.js +14 -14
  298. package/dist/esm/z-info-reveal.entry.js +54 -54
  299. package/dist/esm/z-link.entry.js +63 -63
  300. package/dist/esm/z-logo.entry.js +15 -15
  301. package/dist/esm/z-menu-section.entry.js +44 -44
  302. package/dist/esm/z-menu.entry.js +109 -109
  303. package/dist/esm/z-messages-pocket.entry.js +36 -36
  304. package/dist/esm/z-myz-card-alert.entry.js +52 -52
  305. package/dist/esm/z-myz-card-dictionary.entry.js +25 -25
  306. package/dist/esm/z-myz-card-footer-sections.entry.js +8 -8
  307. package/dist/esm/z-myz-card-footer.entry.js +58 -58
  308. package/dist/esm/z-myz-card-icon.entry.js +12 -12
  309. package/dist/esm/z-myz-card-info.entry.js +118 -118
  310. package/dist/esm/z-myz-card-list.entry.js +27 -27
  311. package/dist/esm/z-myz-card_4.entry.js +82 -82
  312. package/dist/esm/z-myz-list-item.entry.js +26 -26
  313. package/dist/esm/z-myz-list.entry.js +24 -24
  314. package/dist/esm/z-navigation-tab-link.entry.js +60 -60
  315. package/dist/esm/z-navigation-tab.entry.js +62 -62
  316. package/dist/esm/z-navigation-tabs.entry.js +115 -115
  317. package/dist/esm/z-notification.entry.js +30 -30
  318. package/dist/esm/z-otp.entry.js +30 -30
  319. package/dist/esm/z-pagination.entry.js +219 -219
  320. package/dist/esm/z-panel-elem.entry.js +19 -19
  321. package/dist/esm/z-pocket-message.entry.js +8 -8
  322. package/dist/esm/z-pocket_3.entry.js +102 -102
  323. package/dist/esm/z-popover.entry.js +317 -317
  324. package/dist/esm/z-range-picker.entry.js +331 -331
  325. package/dist/esm/z-section-title.entry.js +22 -22
  326. package/dist/esm/z-select.entry.js +322 -322
  327. package/dist/esm/z-skip-to-content.entry.js +55 -55
  328. package/dist/esm/z-slideshow.entry.js +118 -118
  329. package/dist/esm/z-stepper-item.entry.js +11 -11
  330. package/dist/esm/z-stepper.entry.js +8 -8
  331. package/dist/esm/z-table-body.entry.js +13 -13
  332. package/dist/esm/z-table-cell.entry.js +25 -25
  333. package/dist/esm/z-table-empty-box.entry.js +21 -21
  334. package/dist/esm/z-table-expanded-row.entry.js +8 -8
  335. package/dist/esm/z-table-footer.entry.js +12 -12
  336. package/dist/esm/z-table-head.entry.js +12 -12
  337. package/dist/esm/z-table-header-row.entry.js +11 -11
  338. package/dist/esm/z-table-header.entry.js +71 -71
  339. package/dist/esm/z-table-row.entry.js +32 -32
  340. package/dist/esm/z-table-sticky-footer.entry.js +8 -8
  341. package/dist/esm/z-table.entry.js +69 -69
  342. package/dist/esm/z-tag.entry.js +11 -11
  343. package/dist/esm/z-toast-notification-list.entry.js +45 -45
  344. package/dist/esm/z-toast-notification.entry.js +187 -187
  345. package/dist/esm/z-toggle-button.entry.js +25 -25
  346. package/dist/esm/z-toggle-switch.entry.js +40 -40
  347. package/dist/esm/z-tooltip.entry.js +26 -26
  348. package/dist/esm/z-typography.entry.js +19 -19
  349. package/dist/esm/z-visually-hidden.entry.js +8 -8
  350. package/dist/types/beans/index.d.ts +374 -374
  351. package/dist/types/components/buttons/z-button/index.d.ts +29 -29
  352. package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
  353. package/dist/types/components/buttons/z-chip/index.d.ts +20 -20
  354. package/dist/types/components/buttons/z-toggle-button/index.d.ts +17 -17
  355. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +17 -17
  356. package/dist/types/components/date-picker/utils.d.ts +4 -4
  357. package/dist/types/components/date-picker/z-date-picker/index.d.ts +29 -29
  358. package/dist/types/components/date-picker/z-range-picker/index.d.ts +42 -42
  359. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -9
  360. package/dist/types/components/file-upload/z-file/index.d.ts +22 -22
  361. package/dist/types/components/file-upload/z-file-upload/index.d.ts +52 -52
  362. package/dist/types/components/icons/icons.d.ts +1362 -1362
  363. package/dist/types/components/icons/z-icon/index.d.ts +14 -14
  364. package/dist/types/components/indicators/z-stepper/index.d.ts +6 -6
  365. package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -19
  366. package/dist/types/components/inputs/z-combobox/index.d.ts +71 -71
  367. package/dist/types/components/inputs/z-input/index.d.ts +86 -86
  368. package/dist/types/components/inputs/z-input-message/index.d.ts +12 -12
  369. package/dist/types/components/inputs/z-searchbar/index.d.ts +73 -75
  370. package/dist/types/components/inputs/z-select/index.d.ts +82 -82
  371. package/dist/types/components/list/z-list/index.d.ts +15 -15
  372. package/dist/types/components/list/z-list-element/index.d.ts +95 -95
  373. package/dist/types/components/list/z-list-group/index.d.ts +28 -28
  374. package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
  375. package/dist/types/components/logo/z-logo/index.d.ts +15 -15
  376. package/dist/types/components/modal/z-modal/index.d.ts +47 -47
  377. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +52 -52
  378. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +60 -60
  379. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +70 -70
  380. package/dist/types/components/navigation/z-app-header/index.d.ts +143 -111
  381. package/dist/types/components/navigation/z-link/index.d.ts +40 -40
  382. package/dist/types/components/navigation/z-menu/index.d.ts +61 -60
  383. package/dist/types/components/navigation/z-menu-section/index.d.ts +31 -31
  384. package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
  385. package/dist/types/components/notification/z-notification/index.d.ts +32 -32
  386. package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
  387. package/dist/types/components/notification/z-tooltip/index.d.ts +32 -32
  388. package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
  389. package/dist/types/components/z-anchor-navigation/index.d.ts +39 -39
  390. package/dist/types/components/z-aria-alert/index.d.ts +6 -6
  391. package/dist/types/components/z-avatar/index.d.ts +16 -16
  392. package/dist/types/components/z-card/index.d.ts +44 -44
  393. package/dist/types/components/z-carousel/index.d.ts +63 -63
  394. package/dist/types/components/z-contextual-menu/index.d.ts +26 -26
  395. package/dist/types/components/z-cover-hero/index.d.ts +41 -41
  396. package/dist/types/components/z-divider/index.d.ts +10 -10
  397. package/dist/types/components/z-ghost-loading/index.d.ts +3 -3
  398. package/dist/types/components/z-info-reveal/index.d.ts +29 -29
  399. package/dist/types/components/z-offcanvas/index.d.ts +27 -29
  400. package/dist/types/components/z-pagination/index.d.ts +109 -109
  401. package/dist/types/components/z-popover/index.d.ts +69 -69
  402. package/dist/types/components/z-section-title/index.d.ts +25 -25
  403. package/dist/types/components/z-skip-to-content/index.d.ts +21 -21
  404. package/dist/types/components/z-table/z-table/index.d.ts +48 -48
  405. package/dist/types/components/z-table/z-table-body/index.d.ts +5 -5
  406. package/dist/types/components/z-table/z-table-cell/index.d.ts +12 -12
  407. package/dist/types/components/z-table/z-table-empty-box/index.d.ts +12 -12
  408. package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +5 -5
  409. package/dist/types/components/z-table/z-table-footer/index.d.ts +5 -5
  410. package/dist/types/components/z-table/z-table-head/index.d.ts +5 -5
  411. package/dist/types/components/z-table/z-table-header/index.d.ts +29 -29
  412. package/dist/types/components/z-table/z-table-header-row/index.d.ts +6 -6
  413. package/dist/types/components/z-table/z-table-row/index.d.ts +13 -13
  414. package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +6 -6
  415. package/dist/types/components/z-tag/index.d.ts +13 -13
  416. package/dist/types/components/z-visually-hidden/index.d.ts +3 -3
  417. package/dist/types/components.d.ts +41 -13
  418. package/dist/types/constants/breakpoints.d.ts +3 -3
  419. package/dist/types/constants/icons.d.ts +6 -6
  420. package/dist/types/deprecated/typography/z-body/index.d.ts +9 -9
  421. package/dist/types/deprecated/typography/z-heading/index.d.ts +9 -9
  422. package/dist/types/deprecated/typography/z-typography/index.d.ts +11 -11
  423. package/dist/types/index.d.ts +7 -7
  424. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -16
  425. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +19 -19
  426. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -7
  427. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -12
  428. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -24
  429. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -34
  430. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -7
  431. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +19 -19
  432. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -9
  433. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -36
  434. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +9 -9
  435. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -11
  436. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -25
  437. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -16
  438. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -25
  439. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -12
  440. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -18
  441. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -7
  442. package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
  443. package/dist/types/snowflakes/myz/z-otp/index.d.ts +17 -17
  444. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
  445. package/dist/types/utils/utils.d.ts +24 -24
  446. package/dist/web-components-library/index.esm.js +1 -1
  447. package/dist/web-components-library/{p-06b7dad4.entry.js → p-0164ca54.entry.js} +1 -1
  448. package/{www/build/p-047439a1.entry.js → dist/web-components-library/p-04631bc5.entry.js} +1 -1
  449. package/dist/web-components-library/{p-4367f978.entry.js → p-0afb1436.entry.js} +1 -1
  450. package/dist/web-components-library/{p-6f5cab30.entry.js → p-0b1de3ce.entry.js} +1 -1
  451. package/dist/web-components-library/{p-01ba4a7c.entry.js → p-0c3f4eed.entry.js} +1 -1
  452. package/dist/web-components-library/{p-bca446ef.entry.js → p-15bb0526.entry.js} +1 -1
  453. package/{www/build/p-779c8d20.entry.js → dist/web-components-library/p-1d19e382.entry.js} +1 -1
  454. package/dist/web-components-library/{p-75da9f5d.entry.js → p-2415d4d8.entry.js} +1 -1
  455. package/dist/web-components-library/{p-9d57a84c.entry.js → p-25678da1.entry.js} +1 -1
  456. package/dist/web-components-library/{p-c88ff94b.entry.js → p-32eec10f.entry.js} +1 -1
  457. package/dist/web-components-library/{p-d9c98cfd.entry.js → p-356b2fc1.entry.js} +1 -1
  458. package/dist/web-components-library/{p-0c62a60a.entry.js → p-3d4b8a34.entry.js} +1 -1
  459. package/dist/web-components-library/{p-10adc1fa.entry.js → p-50bc8152.entry.js} +1 -1
  460. package/dist/web-components-library/{p-4d4eb6ed.entry.js → p-50d1f5a4.entry.js} +1 -1
  461. package/dist/web-components-library/{p-10625725.entry.js → p-560116ec.entry.js} +1 -1
  462. package/dist/web-components-library/{p-ecf4117e.entry.js → p-6c9421c6.entry.js} +1 -1
  463. package/dist/web-components-library/p-70e71580.entry.js +1 -0
  464. package/dist/web-components-library/p-72c76071.entry.js +1 -0
  465. package/dist/web-components-library/{p-98d3c4d6.entry.js → p-75883172.entry.js} +1 -1
  466. package/dist/web-components-library/{p-59b1f1e9.entry.js → p-79919c84.entry.js} +1 -1
  467. package/dist/web-components-library/{p-ff18ab96.entry.js → p-802723a9.entry.js} +1 -1
  468. package/dist/web-components-library/{p-068951a7.entry.js → p-8153e216.entry.js} +1 -1
  469. package/dist/web-components-library/{p-31cb64b3.entry.js → p-825b4767.entry.js} +1 -1
  470. package/dist/web-components-library/{p-d74090ce.entry.js → p-8272a099.entry.js} +1 -1
  471. package/dist/web-components-library/p-8ff45f5f.entry.js +1 -0
  472. package/{www/build/p-3f0cdaa1.entry.js → dist/web-components-library/p-9665df65.entry.js} +1 -1
  473. package/dist/web-components-library/{p-6736e894.entry.js → p-968d9b80.entry.js} +1 -1
  474. package/{www/build/p-d982fc4c.entry.js → dist/web-components-library/p-9c3e91fd.entry.js} +1 -1
  475. package/dist/web-components-library/{p-1f259ec0.entry.js → p-a8df4340.entry.js} +1 -1
  476. package/dist/web-components-library/{p-a481bb97.js → p-ad48bdb5.js} +1 -1
  477. package/dist/web-components-library/{p-a7249453.entry.js → p-ad664ac3.entry.js} +1 -1
  478. package/dist/web-components-library/{p-5f5f2463.entry.js → p-b10a244b.entry.js} +1 -1
  479. package/dist/web-components-library/{p-dfc69cc3.js → p-b301e6e1.js} +1 -1
  480. package/dist/web-components-library/{p-1b07b435.entry.js → p-b6b122a3.entry.js} +1 -1
  481. package/dist/web-components-library/{p-1ff146fb.entry.js → p-baabfd0d.entry.js} +1 -1
  482. package/dist/web-components-library/{p-e2758870.entry.js → p-bfd78f08.entry.js} +1 -1
  483. package/dist/web-components-library/{p-f9f42d17.entry.js → p-c47ec900.entry.js} +1 -1
  484. package/dist/web-components-library/p-c655b1c8.entry.js +1 -0
  485. package/dist/web-components-library/{p-2c8f6f12.entry.js → p-cf34dfa1.entry.js} +1 -1
  486. package/dist/web-components-library/{p-dae1376f.entry.js → p-d152fcef.entry.js} +1 -1
  487. package/dist/web-components-library/{p-c948b900.entry.js → p-d1c86e77.entry.js} +1 -1
  488. package/{www/build/p-191c9901.entry.js → dist/web-components-library/p-d2fb8d30.entry.js} +1 -1
  489. package/dist/web-components-library/{p-81cad61c.entry.js → p-da923c76.entry.js} +1 -1
  490. package/dist/web-components-library/{p-fc579135.entry.js → p-e02ecf4c.entry.js} +1 -1
  491. package/dist/web-components-library/{p-5fa58b99.entry.js → p-e09f95c9.entry.js} +1 -1
  492. package/dist/web-components-library/{p-1b0f4e52.entry.js → p-e5410351.entry.js} +1 -1
  493. package/dist/web-components-library/p-eefde77a.entry.js +1 -0
  494. package/dist/web-components-library/{p-f52100f3.entry.js → p-f0eb6020.entry.js} +1 -1
  495. package/dist/web-components-library/p-f9d29371.entry.js +1 -0
  496. package/dist/web-components-library/web-components-library.esm.js +1 -1
  497. package/package.json +106 -105
  498. package/react/components.d.ts +90 -90
  499. package/react/components.js +96 -96
  500. package/react/index.d.ts +1 -1
  501. package/react/index.js +13 -13
  502. package/react/react-component-lib/createComponent.d.ts +10 -10
  503. package/react/react-component-lib/createComponent.js +97 -97
  504. package/react/react-component-lib/createOverlayComponent.d.ts +21 -21
  505. package/react/react-component-lib/createOverlayComponent.js +115 -115
  506. package/react/react-component-lib/index.d.ts +2 -2
  507. package/react/react-component-lib/index.js +7 -7
  508. package/react/react-component-lib/interfaces.d.ts +29 -29
  509. package/react/react-component-lib/interfaces.js +2 -2
  510. package/react/react-component-lib/utils/attachProps.d.ts +12 -12
  511. package/react/react-component-lib/utils/attachProps.js +104 -104
  512. package/react/react-component-lib/utils/case.d.ts +2 -2
  513. package/react/react-component-lib/utils/case.js +11 -11
  514. package/react/react-component-lib/utils/dev.d.ts +2 -2
  515. package/react/react-component-lib/utils/dev.js +17 -17
  516. package/react/react-component-lib/utils/index.d.ts +10 -10
  517. package/react/react-component-lib/utils/index.js +53 -53
  518. package/readme.md +280 -280
  519. package/www/build/index.esm.js +1 -1
  520. package/www/build/{p-06b7dad4.entry.js → p-0164ca54.entry.js} +1 -1
  521. package/{dist/web-components-library/p-047439a1.entry.js → www/build/p-04631bc5.entry.js} +1 -1
  522. package/www/build/{p-4367f978.entry.js → p-0afb1436.entry.js} +1 -1
  523. package/www/build/{p-6f5cab30.entry.js → p-0b1de3ce.entry.js} +1 -1
  524. package/www/build/{p-01ba4a7c.entry.js → p-0c3f4eed.entry.js} +1 -1
  525. package/www/build/{p-bca446ef.entry.js → p-15bb0526.entry.js} +1 -1
  526. package/{dist/web-components-library/p-779c8d20.entry.js → www/build/p-1d19e382.entry.js} +1 -1
  527. package/www/build/{p-75da9f5d.entry.js → p-2415d4d8.entry.js} +1 -1
  528. package/www/build/{p-9d57a84c.entry.js → p-25678da1.entry.js} +1 -1
  529. package/www/build/{p-c88ff94b.entry.js → p-32eec10f.entry.js} +1 -1
  530. package/www/build/{p-d9c98cfd.entry.js → p-356b2fc1.entry.js} +1 -1
  531. package/www/build/{p-0c62a60a.entry.js → p-3d4b8a34.entry.js} +1 -1
  532. package/www/build/{p-10adc1fa.entry.js → p-50bc8152.entry.js} +1 -1
  533. package/www/build/{p-4d4eb6ed.entry.js → p-50d1f5a4.entry.js} +1 -1
  534. package/www/build/{p-10625725.entry.js → p-560116ec.entry.js} +1 -1
  535. package/www/build/{p-ecf4117e.entry.js → p-6c9421c6.entry.js} +1 -1
  536. package/www/build/p-70e71580.entry.js +1 -0
  537. package/www/build/p-72c76071.entry.js +1 -0
  538. package/www/build/{p-98d3c4d6.entry.js → p-75883172.entry.js} +1 -1
  539. package/www/build/{p-59b1f1e9.entry.js → p-79919c84.entry.js} +1 -1
  540. package/www/build/{p-ff18ab96.entry.js → p-802723a9.entry.js} +1 -1
  541. package/www/build/{p-068951a7.entry.js → p-8153e216.entry.js} +1 -1
  542. package/www/build/{p-31cb64b3.entry.js → p-825b4767.entry.js} +1 -1
  543. package/www/build/{p-d74090ce.entry.js → p-8272a099.entry.js} +1 -1
  544. package/www/build/p-8ff45f5f.entry.js +1 -0
  545. package/{dist/web-components-library/p-3f0cdaa1.entry.js → www/build/p-9665df65.entry.js} +1 -1
  546. package/www/build/{p-6736e894.entry.js → p-968d9b80.entry.js} +1 -1
  547. package/{dist/web-components-library/p-d982fc4c.entry.js → www/build/p-9c3e91fd.entry.js} +1 -1
  548. package/www/build/{p-1f259ec0.entry.js → p-a8df4340.entry.js} +1 -1
  549. package/www/build/{p-a481bb97.js → p-ad48bdb5.js} +1 -1
  550. package/www/build/{p-a7249453.entry.js → p-ad664ac3.entry.js} +1 -1
  551. package/www/build/{p-5f5f2463.entry.js → p-b10a244b.entry.js} +1 -1
  552. package/www/build/{p-dfc69cc3.js → p-b301e6e1.js} +1 -1
  553. package/www/build/{p-1b07b435.entry.js → p-b6b122a3.entry.js} +1 -1
  554. package/www/build/{p-1ff146fb.entry.js → p-baabfd0d.entry.js} +1 -1
  555. package/www/build/{p-e2758870.entry.js → p-bfd78f08.entry.js} +1 -1
  556. package/www/build/{p-f9f42d17.entry.js → p-c47ec900.entry.js} +1 -1
  557. package/www/build/p-c655b1c8.entry.js +1 -0
  558. package/www/build/{p-2c8f6f12.entry.js → p-cf34dfa1.entry.js} +1 -1
  559. package/www/build/{p-dae1376f.entry.js → p-d152fcef.entry.js} +1 -1
  560. package/www/build/{p-c948b900.entry.js → p-d1c86e77.entry.js} +1 -1
  561. package/www/build/p-d20434c3.js +1 -0
  562. package/{dist/web-components-library/p-191c9901.entry.js → www/build/p-d2fb8d30.entry.js} +1 -1
  563. package/www/build/{p-81cad61c.entry.js → p-da923c76.entry.js} +1 -1
  564. package/www/build/{p-fc579135.entry.js → p-e02ecf4c.entry.js} +1 -1
  565. package/www/build/{p-5fa58b99.entry.js → p-e09f95c9.entry.js} +1 -1
  566. package/www/build/{p-1b0f4e52.entry.js → p-e5410351.entry.js} +1 -1
  567. package/www/build/p-eefde77a.entry.js +1 -0
  568. package/www/build/{p-f52100f3.entry.js → p-f0eb6020.entry.js} +1 -1
  569. package/www/build/p-f9d29371.entry.js +1 -0
  570. package/www/build/web-components-library.esm.js +1 -1
  571. package/www/index.html +1 -1
  572. package/www/pages/file-upload.html +258 -258
  573. package/www/pages/notification.html +299 -299
  574. package/dist/cjs/z-app-header_2.cjs.entry.js +0 -152
  575. package/dist/cjs/z-button.cjs.entry.js +0 -43
  576. package/dist/cjs/z-divider.cjs.entry.js +0 -26
  577. package/dist/cjs/z-input_2.cjs.entry.js +0 -273
  578. package/dist/cjs/z-list_3.cjs.entry.js +0 -261
  579. package/dist/cjs/z-offcanvas.cjs.entry.js +0 -57
  580. package/dist/cjs/z-searchbar.cjs.entry.js +0 -248
  581. package/dist/esm/z-app-header_2.entry.js +0 -147
  582. package/dist/esm/z-button.entry.js +0 -39
  583. package/dist/esm/z-divider.entry.js +0 -22
  584. package/dist/esm/z-input_2.entry.js +0 -268
  585. package/dist/esm/z-list_3.entry.js +0 -255
  586. package/dist/esm/z-offcanvas.entry.js +0 -53
  587. package/dist/esm/z-searchbar.entry.js +0 -244
  588. package/dist/web-components-library/p-1570917d.entry.js +0 -1
  589. package/dist/web-components-library/p-157aea3b.entry.js +0 -1
  590. package/dist/web-components-library/p-1c8e7c24.entry.js +0 -1
  591. package/dist/web-components-library/p-20682781.entry.js +0 -1
  592. package/dist/web-components-library/p-3d0f5e36.entry.js +0 -1
  593. package/dist/web-components-library/p-4f266607.entry.js +0 -1
  594. package/dist/web-components-library/p-51c946a5.entry.js +0 -1
  595. package/dist/web-components-library/p-af283478.entry.js +0 -1
  596. package/dist/web-components-library/p-bae1911e.entry.js +0 -1
  597. package/dist/web-components-library/p-d0760bb1.entry.js +0 -1
  598. package/dist/web-components-library/p-deda8776.entry.js +0 -1
  599. package/dist/web-components-library/p-f3a8cc14.entry.js +0 -1
  600. package/www/build/p-1570917d.entry.js +0 -1
  601. package/www/build/p-157aea3b.entry.js +0 -1
  602. package/www/build/p-1c8e7c24.entry.js +0 -1
  603. package/www/build/p-20682781.entry.js +0 -1
  604. package/www/build/p-3d0f5e36.entry.js +0 -1
  605. package/www/build/p-4b0934c2.js +0 -1
  606. package/www/build/p-4f266607.entry.js +0 -1
  607. package/www/build/p-51c946a5.entry.js +0 -1
  608. package/www/build/p-af283478.entry.js +0 -1
  609. package/www/build/p-bae1911e.entry.js +0 -1
  610. package/www/build/p-d0760bb1.entry.js +0 -1
  611. package/www/build/p-deda8776.entry.js +0 -1
  612. package/www/build/p-f3a8cc14.entry.js +0 -1
  613. /package/dist/web-components-library/{p-bb85c467.js → p-21c3aea0.js} +0 -0
  614. /package/dist/web-components-library/{p-e1ac5c4e.js → p-dfed050d.js} +0 -0
  615. /package/dist/web-components-library/{p-d69e14fb.js → p-e35d3552.js} +0 -0
  616. /package/www/build/{p-bb85c467.js → p-21c3aea0.js} +0 -0
  617. /package/www/build/{p-e1ac5c4e.js → p-dfed050d.js} +0 -0
  618. /package/www/build/{p-d69e14fb.js → p-e35d3552.js} +0 -0
@@ -0,0 +1,1050 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e3299e0a.js');
6
+ const index$1 = require('./index-677bbad4.js');
7
+ const icons = require('./icons-dea2e345.js');
8
+ const utils = require('./utils-3b7e4fdf.js');
9
+ require('./breakpoints-776c8868.js');
10
+
11
+ const stylesCss$a = ":host{--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-content-max-width:100%;--app-header-height:auto;--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-surface01);--app-header-stucked-bg:var(--color-surface01);--app-header-text-color:var(--color-text01);--app-header-title-font-size:var(--app-header-typography-3-size);--app-header-title-lineheight:var(--app-header-typography-3-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-3-tracking);--app-header-stucked-text-color:var(--color-text01);position:relative;display:block;height:var(--app-header-height);color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5)}.hero-container+.heading-panel{background:transparent}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:flex-start;column-gap:calc(var(--space-unit) * 2)}::slotted([slot=\"title\"]),.heading-stuck .heading-title>*,::slotted([slot=\"stucked-title\"]){margin:0;font-family:\"IBM Plex Serif\", serif;font-weight:var(--font-bd)}::slotted([slot=\"title\"]){font-size:var(--app-header-title-font-size);letter-spacing:var(--app-header-title-letter-spacing);line-height:var(--app-header-title-lineheight)}.heading-stuck .heading-title>*,::slotted([slot=\"stucked-title\"]){font-size:var(--app-header-typography-3-size);letter-spacing:var(--app-header-typography-3-tracking);line-height:var(--app-header-typography-3-lineheight)}:host(:not([menu-length=\"0\"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2))}::slotted([slot=\"subtitle\"]){margin:0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;font-weight:500;line-height:26px}.menu-container{display:flex;width:100%;flex:1 auto;flex-flow:row wrap}.menu-container ::slotted([open]){position:relative;z-index:3}z-searchbar{z-index:0;display:flex;width:auto;min-width:calc(var(--space-unit) * 32);flex:1 auto;align-items:center;margin-left:auto}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto;column-gap:calc(var(--space-unit) * 2)}.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-stuck-content z-button{margin-left:auto}.drawer-trigger{padding:0;border:0;margin:0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.heading-container :is(.drawer-trigger,z-button.search-page-button){display:flex;height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));align-items:center}.heading-container z-button.search-page-button{margin-left:auto}.drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column;row-gap:calc(var(--space-unit) * 2.5)}.drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu){--z-menu-label-color:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:\"\";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host{--app-header-title-font-size:var(--app-header-typography-6-size);--app-header-title-lineheight:var(--app-header-typography-6-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-6-tracking)}.heading-panel{flex-flow:row wrap;align-items:center;padding-bottom:calc(var(--space-unit) * 2)}.heading-container{margin-right:auto}:host(:is([flow=\"offcanvas\"],[menu-length=\"0\"])) :is(.heading-container,.menu-container){width:auto}:host(:not([flow=\"offcanvas\"])) .heading-subtitle{padding-left:0}.menu-container{flex:initial;align-items:center}:host([menu-length=\"0\"]) .menu-container:not(:empty){height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight))}:host(:not([flow=\"offcanvas\"])) .menu-container{gap:var(--space-unit) calc(var(--space-unit) * 5)}:host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger{display:none}}@media (min-width: 1152px){:host{--app-header-title-font-size:var(--app-header-typography-7-size);--app-header-title-lineheight:var(--app-header-typography-7-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-7-tracking)}.heading-panel{justify-content:flex-start;padding-bottom:calc(var(--space-unit) * 3)}.heading-container,.menu-container{width:auto}:host([flow=\"stack\"]) .heading-panel{flex-flow:column;align-items:flex-start}:host([flow=\"stack\"]) .menu-container{width:100%}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-panel{row-gap:calc(var(--space-unit) * 3)}z-searchbar{min-width:calc(var(--space-unit) * 45);flex:initial}}@media (min-width: 1366px){:host{--app-header-title-font-size:var(--app-header-typography-9-size);--app-header-title-lineheight:var(--app-header-typography-9-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-9-tracking)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}";
12
+
13
+ const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
14
+ const ZAppHeader = class {
15
+ constructor(hostRef) {
16
+ index.registerInstance(this, hostRef);
17
+ this.sticking = index.createEvent(this, "sticking", 7);
18
+ /**
19
+ * Stuck mode for the header.
20
+ * You can programmatically set it using an IntersectionObserver.
21
+ */
22
+ this.stuck = false;
23
+ /**
24
+ * Should place an overlay over the hero image.
25
+ * Useful for legibility purpose.
26
+ */
27
+ this.overlay = false;
28
+ /**
29
+ * Control menu bar position in the header.
30
+ * - auto: the menu bar is positioned near the title
31
+ * - stack: the menu bar is positioned below the title
32
+ * - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
33
+ */
34
+ this.flow = "auto";
35
+ /**
36
+ * The opening state of the drawer.
37
+ */
38
+ this.drawerOpen = false;
39
+ /**
40
+ * Enable the search bar.
41
+ */
42
+ this.enableSearch = false;
43
+ /**
44
+ * Placeholder text for the search bar.
45
+ */
46
+ this.searchPlaceholder = "Cerca";
47
+ /**
48
+ * The stuck state of the bar.
49
+ */
50
+ this._stuck = false;
51
+ /**
52
+ * Current viewport.
53
+ * Used to change the aspect of the search button (icon only) on mobile and tablet.
54
+ */
55
+ this.currentViewport = "mobile";
56
+ this.observer = SUPPORT_INTERSECTION_OBSERVER &&
57
+ new IntersectionObserver(([entry]) => {
58
+ this._stuck = !entry.isIntersecting;
59
+ }, {
60
+ threshold: 0.5,
61
+ });
62
+ this.openDrawer = this.openDrawer.bind(this);
63
+ this.closeDrawer = this.closeDrawer.bind(this);
64
+ this.collectMenuElements = this.collectMenuElements.bind(this);
65
+ }
66
+ evaluateViewport() {
67
+ if (window.innerWidth < 768) {
68
+ this.currentViewport = "mobile";
69
+ }
70
+ else if (window.innerWidth >= 768 && window.innerWidth < 1152) {
71
+ this.currentViewport = "tablet";
72
+ }
73
+ else {
74
+ this.currentViewport = "desktop";
75
+ }
76
+ }
77
+ onStuck() {
78
+ const scrollParent = this.scrollParent;
79
+ if (!scrollParent) {
80
+ return;
81
+ }
82
+ this.sticking.emit(this._stuck);
83
+ }
84
+ setMenuFloatingMode() {
85
+ if (this.menuElements.length === 0) {
86
+ return;
87
+ }
88
+ const elements = this.menuElements;
89
+ elements.forEach((element) => {
90
+ element.open = false;
91
+ element.floating = !this.drawerOpen;
92
+ element.verticalContext = this.drawerOpen;
93
+ });
94
+ }
95
+ get title() {
96
+ const titleElement = this.hostElement.querySelector('[slot="title"]');
97
+ if (titleElement === null) {
98
+ return "";
99
+ }
100
+ return titleElement.textContent.trim();
101
+ }
102
+ get scrollParent() {
103
+ const parent = this.hostElement.offsetParent;
104
+ if (parent === document.body || parent === document.documentElement) {
105
+ return window;
106
+ }
107
+ return parent;
108
+ }
109
+ get canShowMenu() {
110
+ return this.menuLength > 0 && this.flow !== "offcanvas" && this.currentViewport !== "mobile" && !this.drawerOpen;
111
+ }
112
+ get canShowSearchbar() {
113
+ if (!this.enableSearch) {
114
+ return false;
115
+ }
116
+ // Always show the searchbar on desktop, even if a searchPageUrl is set
117
+ if (this.searchPageUrl) {
118
+ return this.currentViewport === "desktop";
119
+ }
120
+ return true;
121
+ }
122
+ /**
123
+ * Whether the header has a hero image, either as a prop or as a slot.
124
+ */
125
+ get hasHero() {
126
+ return this.hero !== undefined || this.hostElement.querySelector("[slot=hero]") !== null;
127
+ }
128
+ openDrawer() {
129
+ this.drawerOpen = true;
130
+ }
131
+ closeDrawer() {
132
+ this.drawerOpen = false;
133
+ }
134
+ collectMenuElements() {
135
+ const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot="menu"]'));
136
+ this.menuLength = menuElements.length;
137
+ this.setMenuFloatingMode();
138
+ }
139
+ enableStuckObserver() {
140
+ if (this.observer) {
141
+ this.observer.observe(this.container);
142
+ }
143
+ }
144
+ disableStuckMode() {
145
+ this._stuck = false;
146
+ if (this.observer) {
147
+ this.observer.unobserve(this.container);
148
+ }
149
+ }
150
+ onStuckMode() {
151
+ if (this.stuck) {
152
+ this.enableStuckObserver();
153
+ }
154
+ else {
155
+ this.disableStuckMode();
156
+ }
157
+ }
158
+ renderSearchLinkButton() {
159
+ if (!this.enableSearch || !this.searchPageUrl || this.currentViewport === "desktop") {
160
+ return null;
161
+ }
162
+ return (index.h("z-button", { class: "search-page-button", variant: index$1.ButtonVariant.SECONDARY, href: this.searchPageUrl, icon: "search", size: index$1.ControlSize.X_SMALL }));
163
+ }
164
+ componentDidLoad() {
165
+ this.collectMenuElements();
166
+ this.onStuckMode();
167
+ this.evaluateViewport();
168
+ }
169
+ render() {
170
+ return (index.h(index.Host, { "menu-length": this.menuLength }, this.hasHero && (index.h("div", { class: "hero-container" }, index.h("slot", { name: "hero" }, this.hero && (index.h("img", { alt: "", src: this.hero }))))), index.h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, index.h("div", { class: "heading-container" }, index.h("div", { class: "heading-title" }, this.menuLength > 0 && (index.h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, index.h("z-icon", { name: "burger-menu" }))), index.h("slot", { name: "title" }), this.renderSearchLinkButton()), index.h("div", { class: "heading-subtitle" }, index.h("slot", { name: "subtitle" }))), (this.canShowMenu || this.canShowSearchbar) && (index.h("div", { class: "menu-container" }, this.canShowMenu && (index.h("slot", { name: "menu", onSlotchange: this.collectMenuElements })), this.canShowSearchbar && (index.h("z-searchbar", { placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: this.currentViewport !== "desktop", size: index$1.ControlSize.X_SMALL, variant: index$1.ButtonVariant.SECONDARY, preventSubmit: true, onSearchTyping: (e) => {
171
+ e.target.preventSubmit = !e.detail || e.detail.length < 3;
172
+ } }))))), index.h("z-offcanvas", { variant: index$1.OffCanvasVariant.OVERLAY, transitiondirection: index$1.TransitionDirection.RIGHT, open: this.drawerOpen, onCanvasOpenStatusChanged: (ev) => (this.drawerOpen = ev.detail) }, index.h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer, slot: "canvasContent" }, index.h("z-icon", { name: "close" })), this.drawerOpen && (index.h("div", { class: "drawer-content", slot: "canvasContent" }, index.h("slot", { name: "menu", onSlotchange: this.collectMenuElements })))), this._stuck && (index.h("div", { class: "heading-stuck" }, index.h("div", { class: "heading-stuck-content" }, this.menuLength > 0 && (index.h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, index.h("z-icon", { name: "burger-menu" }))), index.h("div", { class: "heading-title" }, index.h("slot", { name: "stucked-title" }, this.title)), this.renderSearchLinkButton(), this.canShowSearchbar && this.currentViewport === "desktop" && (index.h("z-searchbar", { placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: false, size: index$1.ControlSize.X_SMALL, variant: index$1.ButtonVariant.SECONDARY, preventSubmit: true, onSearchTyping: (e) => {
173
+ var _a;
174
+ e.target.preventSubmit = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.length) < 3;
175
+ } })))))));
176
+ }
177
+ get hostElement() { return index.getElement(this); }
178
+ static get watchers() { return {
179
+ "_stuck": ["onStuck"],
180
+ "drawerOpen": ["setMenuFloatingMode"],
181
+ "stuck": ["onStuckMode"]
182
+ }; }
183
+ };
184
+ ZAppHeader.style = stylesCss$a;
185
+
186
+ const stylesCss$9 = ".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)}";
187
+
188
+ const ZButton = class {
189
+ constructor(hostRef) {
190
+ index.registerInstance(this, hostRef);
191
+ /** defines a string value that labels an interactive element, used for accessibility. */
192
+ this.ariaLabel = "";
193
+ /** HTML button disabled attribute. */
194
+ this.disabled = false;
195
+ /** HTML button type attribute. */
196
+ this.type = index$1.ButtonType.BUTTON;
197
+ /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
198
+ this.variant = index$1.ButtonVariant.PRIMARY;
199
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
200
+ this.size = index$1.ControlSize.BIG;
201
+ }
202
+ getAttributes() {
203
+ return {
204
+ id: this.htmlid,
205
+ class: {
206
+ "z-button--container": true,
207
+ "z-button--has-text": !!this.hostElement.textContent.trim(),
208
+ },
209
+ };
210
+ }
211
+ render() {
212
+ if (this.href) {
213
+ return (index.h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && (index.h("z-icon", { name: this.icon, width: 16, height: 16 })), index.h("slot", null)));
214
+ }
215
+ return (index.h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, disabled: this.disabled }), this.icon && (index.h("z-icon", { name: this.icon, width: 16, height: 16 })), index.h("slot", null)));
216
+ }
217
+ get hostElement() { return index.getElement(this); }
218
+ };
219
+ ZButton.style = stylesCss$9;
220
+
221
+ const stylesCss$8 = ".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";
222
+
223
+ const ZDivider = class {
224
+ constructor(hostRef) {
225
+ index.registerInstance(this, hostRef);
226
+ /** [optional] Divider size */
227
+ this.size = index$1.DividerSize.SMALL;
228
+ /** [optional] Divider color */
229
+ this.color = "gray200";
230
+ /** [optional] Divider orintation */
231
+ this.orientation = index$1.DividerOrientation.HORIZONTAL;
232
+ }
233
+ render() {
234
+ return (index.h(index.Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
235
+ }
236
+ };
237
+ ZDivider.style = stylesCss$8;
238
+
239
+ const stylesCss$7 = ":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)}";
240
+
241
+ const ZIcon = class {
242
+ constructor(hostRef) {
243
+ index.registerInstance(this, hostRef);
244
+ }
245
+ selectPathOrPolygon(iconValue) {
246
+ if (iconValue === null || iconValue === void 0 ? void 0 : iconValue.startsWith("M")) {
247
+ return index.h("path", { d: icons.ICONS[this.name] });
248
+ }
249
+ return index.h("polygon", { points: icons.ICONS[this.name] });
250
+ }
251
+ render() {
252
+ return (index.h(index.Host, { "aria-hidden": "true" }, index.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.ICONS[this.name]))));
253
+ }
254
+ };
255
+ ZIcon.style = stylesCss$7;
256
+
257
+ const stylesCss$6 = ".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-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}.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.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,.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}[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)}";
258
+
259
+ const ZInput = class {
260
+ constructor(hostRef) {
261
+ index.registerInstance(this, hostRef);
262
+ this.inputChange = index.createEvent(this, "inputChange", 7);
263
+ this.startTyping = index.createEvent(this, "startTyping", 7);
264
+ this.stopTyping = index.createEvent(this, "stopTyping", 7);
265
+ this.inputCheck = index.createEvent(this, "inputCheck", 7);
266
+ /** the id of the input element */
267
+ this.htmlid = `id-${utils.randomId()}`;
268
+ /** the input aria-label */
269
+ this.ariaLabel = "";
270
+ /** the input is disabled */
271
+ this.disabled = false;
272
+ /** the input is readonly */
273
+ this.readonly = false;
274
+ /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
275
+ this.required = false;
276
+ /** checked: available for checkbox, radio */
277
+ this.checked = false;
278
+ /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
279
+ this.message = true;
280
+ /** the input label position: available for checkbox, radio */
281
+ this.labelPosition = index$1.LabelPosition.RIGHT;
282
+ /** render clear icon when typing (optional): available for text */
283
+ this.hasclearicon = true;
284
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
285
+ this.size = index$1.ControlSize.BIG;
286
+ this.isTyping = false;
287
+ this.passwordHidden = true;
288
+ this.typingtimeout = 300;
289
+ }
290
+ inputCheckListener(e) {
291
+ const data = e.detail;
292
+ switch (this.type) {
293
+ case index$1.InputType.RADIO:
294
+ if (data.type === index$1.InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
295
+ this.checked = false;
296
+ }
297
+ break;
298
+ }
299
+ }
300
+ /** get checked status */
301
+ async isChecked() {
302
+ switch (this.type) {
303
+ case index$1.InputType.CHECKBOX:
304
+ case index$1.InputType.RADIO:
305
+ return this.checked;
306
+ default:
307
+ console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
308
+ return false;
309
+ }
310
+ }
311
+ emitInputChange(value) {
312
+ if (!this.isTyping) {
313
+ this.emitStartTyping();
314
+ }
315
+ let validity;
316
+ if (this.type === index$1.InputType.TEXTAREA) {
317
+ validity = this.getValidity("textarea");
318
+ }
319
+ else {
320
+ validity = this.getValidity("input");
321
+ }
322
+ this.value = value;
323
+ this.inputChange.emit({ value, validity });
324
+ clearTimeout(this.timer);
325
+ this.timer = setTimeout(() => {
326
+ this.emitStopTyping(this.value, validity);
327
+ }, this.typingtimeout);
328
+ }
329
+ emitStartTyping() {
330
+ this.isTyping = true;
331
+ this.startTyping.emit();
332
+ }
333
+ emitStopTyping(value, validity) {
334
+ this.isTyping = false;
335
+ this.stopTyping.emit({
336
+ value: value,
337
+ validity: validity,
338
+ });
339
+ }
340
+ emitInputCheck(checked) {
341
+ this.inputCheck.emit({
342
+ id: this.htmlid,
343
+ checked: checked,
344
+ type: this.type,
345
+ name: this.name,
346
+ value: this.value,
347
+ validity: this.getValidity("input"),
348
+ });
349
+ }
350
+ getValidity(type) {
351
+ const input = this.hostElement.querySelector(type);
352
+ return input.validity;
353
+ }
354
+ /* START text/password/email/number */
355
+ getTextAttributes() {
356
+ return {
357
+ id: this.htmlid,
358
+ name: this.name,
359
+ placeholder: this.placeholder,
360
+ value: this.value,
361
+ disabled: this.disabled,
362
+ readonly: this.readonly,
363
+ required: this.required,
364
+ title: this.htmltitle,
365
+ class: {
366
+ [`input-${this.status}`]: !!this.status,
367
+ filled: !!this.value,
368
+ },
369
+ autocomplete: this.autocomplete,
370
+ onInput: (e) => this.emitInputChange(e.target.value),
371
+ };
372
+ }
373
+ getNumberAttributes(type) {
374
+ if (type != index$1.InputType.NUMBER) {
375
+ return;
376
+ }
377
+ return {
378
+ min: this.min,
379
+ max: this.max,
380
+ step: this.step,
381
+ };
382
+ }
383
+ getPatternAttribute(type) {
384
+ if (type != index$1.InputType.PASSWORD &&
385
+ type != index$1.InputType.TEXT &&
386
+ type != index$1.InputType.TEL &&
387
+ type != index$1.InputType.SEARCH &&
388
+ type != index$1.InputType.URL &&
389
+ type != index$1.InputType.EMAIL) {
390
+ return;
391
+ }
392
+ return {
393
+ pattern: this.pattern,
394
+ };
395
+ }
396
+ renderInputText(type = index$1.InputType.TEXT) {
397
+ const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
398
+ const attr = Object.assign(Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type)), ariaLabel);
399
+ if (this.icon || type === index$1.InputType.PASSWORD) {
400
+ Object.assign(attr.class, { "has-icon": true });
401
+ }
402
+ if (this.hasclearicon && type != index$1.InputType.NUMBER) {
403
+ Object.assign(attr.class, { "has-clear-icon": true });
404
+ }
405
+ return (index.h("div", { class: "text-wrapper" }, this.renderLabel(), index.h("div", null, index.h("input", Object.assign({ type: type === index$1.InputType.PASSWORD && !this.passwordHidden ? index$1.InputType.TEXT : type }, attr)), this.renderIcons()), this.renderMessage()));
406
+ }
407
+ renderLabel() {
408
+ if (!this.label) {
409
+ return;
410
+ }
411
+ return (index.h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
412
+ }
413
+ renderIcons() {
414
+ return (index.h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
415
+ }
416
+ renderIcon() {
417
+ if (this.type === index$1.InputType.PASSWORD) {
418
+ return this.renderShowHidePassword();
419
+ }
420
+ if (!this.icon) {
421
+ return;
422
+ }
423
+ return (index.h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, index.h("z-icon", { name: this.icon, class: this.size })));
424
+ }
425
+ renderResetIcon() {
426
+ if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == index$1.InputType.NUMBER) {
427
+ return;
428
+ }
429
+ return (index.h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, index.h("z-icon", { name: "multiply", class: this.size })));
430
+ }
431
+ renderShowHidePassword() {
432
+ return (index.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) }, index.h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
433
+ }
434
+ renderMessage() {
435
+ if (utils.boolean(this.message) === false) {
436
+ return;
437
+ }
438
+ return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
439
+ }
440
+ /* END text/password/email/number */
441
+ /* START textarea */
442
+ renderTextarea() {
443
+ const attributes = this.getTextAttributes();
444
+ const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
445
+ return (index.h("div", { class: "text-wrapper" }, this.renderLabel(), index.h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, index.h("textarea", Object.assign({}, attributes, ariaLabel))), this.renderMessage()));
446
+ }
447
+ /* END textarea */
448
+ handleCheck(ev) {
449
+ this.checked = ev.target.checked;
450
+ this.emitInputCheck(this.checked);
451
+ }
452
+ /* START checkbox */
453
+ renderCheckbox() {
454
+ return (index.h("div", { class: "checkbox-wrapper" }, index.h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
455
+ "checkbox-label": true,
456
+ "after": this.labelPosition === index$1.LabelPosition.RIGHT,
457
+ "before": this.labelPosition === index$1.LabelPosition.LEFT,
458
+ } }, index.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && index.h("span", { innerHTML: this.label }))));
459
+ }
460
+ /* END checkbox */
461
+ /* START radio */
462
+ renderRadio() {
463
+ return (index.h("div", { class: "radio-wrapper" }, index.h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
464
+ "radio-label": true,
465
+ "after": this.labelPosition === index$1.LabelPosition.RIGHT,
466
+ "before": this.labelPosition === index$1.LabelPosition.LEFT,
467
+ } }, index.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && index.h("span", { innerHTML: this.label }))));
468
+ }
469
+ /* END radio */
470
+ render() {
471
+ let input;
472
+ switch (this.type) {
473
+ case index$1.InputType.TEXTAREA:
474
+ input = this.renderTextarea();
475
+ break;
476
+ case index$1.InputType.CHECKBOX:
477
+ input = this.renderCheckbox();
478
+ break;
479
+ case index$1.InputType.RADIO:
480
+ input = this.renderRadio();
481
+ break;
482
+ default:
483
+ input = this.renderInputText(this.type);
484
+ }
485
+ return index.h(index.Host, null, input);
486
+ }
487
+ get hostElement() { return index.getElement(this); }
488
+ };
489
+ ZInput.style = stylesCss$6;
490
+
491
+ const stylesCss$5 = ":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)}";
492
+
493
+ const ZInputMessage = class {
494
+ constructor(hostRef) {
495
+ index.registerInstance(this, hostRef);
496
+ this.statusIcons = {
497
+ success: "checkmark-circle",
498
+ error: "multiply-circled",
499
+ warning: "exclamation-circle",
500
+ };
501
+ this.statusRole = {};
502
+ }
503
+ onMessageChange() {
504
+ this.statusRole = this.message && this.status ? { role: "alert" } : {};
505
+ }
506
+ componentWillLoad() {
507
+ this.onMessageChange();
508
+ }
509
+ render() {
510
+ return (index.h(index.Host, Object.assign({}, this.statusRole, { "aria-label": this.message }), this.statusIcons[this.status] && this.message && index.h("z-icon", { name: this.statusIcons[this.status] }), index.h("span", { innerHTML: this.message })));
511
+ }
512
+ static get watchers() { return {
513
+ "message": ["onMessageChange"],
514
+ "status": ["onMessageChange"]
515
+ }; }
516
+ };
517
+ ZInputMessage.style = stylesCss$5;
518
+
519
+ const stylesCss$4 = ":host{display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";
520
+
521
+ const ZList = class {
522
+ constructor(hostRef) {
523
+ index.registerInstance(this, hostRef);
524
+ /**
525
+ * [optional] Sets size of inside elements.
526
+ */
527
+ this.size = index$1.ListSize.MEDIUM;
528
+ /**
529
+ * [optional] type of the list marker for each element
530
+ */
531
+ this.listType = index$1.ListType.NONE;
532
+ }
533
+ setChildrenSizeType() {
534
+ const children = this.host.children;
535
+ for (let i = 0; i < children.length; i++) {
536
+ children[i].setAttribute("size", this.size);
537
+ children[i].setAttribute("list-type", this.listType);
538
+ children[i].setAttribute("list-element-position", (i + 1).toString());
539
+ }
540
+ }
541
+ componentDidLoad() {
542
+ this.setChildrenSizeType();
543
+ }
544
+ render() {
545
+ return (index.h(index.Host, { role: "list" }, index.h("slot", null)));
546
+ }
547
+ get host() { return index.getElement(this); }
548
+ };
549
+ ZList.style = stylesCss$4;
550
+
551
+ const stylesCss$3 = ":host{outline:none}:host>.container,:host>.container-contextual-menu{--background-color-list-element:var(--bg-white);--background-hover-color-list-element:var(--color-surface02);--background-active-color-list-element:var(--color-surface02);display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none}:host([size=\"small\"])>.container{min-height:calc(var(--space-unit) * 4);padding:calc(var(--space-unit) / 2) 0}:host([size=\"medium\"])>.container{min-height:calc(var(--space-unit) * 5);padding:var(--space-unit) 0}:host([size=\"large\"])>.container{min-height:calc(var(--space-unit) * 7);padding:calc(var(--space-unit) * 2) 0}:host([size=\"x-large\"])>.container{min-height:calc(var(--space-unit) * 9);padding:calc(var(--space-unit) * 3) 0}:host([expandable])>.container,:host([expandable])>.container-contextual-menu,:host([clickable])>.container,:host([clickable])>.container-contextual-menu{cursor:pointer}:host([expandable]:hover)>.container,:host([expandable]:hover)>.container-contextual-menu,:host([clickable]:hover)>.container,:host([clickable]:hover)>.container-contextual-menu{background-color:var(--background-hover-color-list-element)}:host([expandable]:focus:focus-visible)>.container,:host([expandable]:focus:focus-visible)>.container-contextual-menu,:host([clickable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container-contextual-menu{box-shadow:var(--shadow-focus-primary)}:host([clickable]:not([expandable]))>.container.clicked,:host([clickable]:not([expandable]))>.container-contextual-menu.clicked{box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([expandable]:active)>.container-contextual-menu,:host([clickable]:active)>.container,:host([clickable]:active)>.container-contextual-menu{background-color:var(--background-active-color-list-element)}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container,:host([align-button=\"left\"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container,:host([align-button=\"right\"][expandable])>.container-contextual-menu>.z-list-element-container{display:flex;flex-direction:row-reverse;justify-content:space-between}:host([align-button=\"left\"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button=\"left\"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-right:var(--space-unit)}:host([align-button=\"right\"][expandable])>.container>.z-list-element-container>z-icon,:host([align-button=\"right\"][expandable])>.container-contextual-menu>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container,:host>.container-contextual-menu>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded,:host>.container-contextual-menu>.z-list-element-inner-container.expanded{display:block}:host([clickable]:hover)>.container-contextual-menu{background-color:var(--color-surface03)}.container-contextual-menu:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-list-content-container{display:flex;align-items:center}";
552
+
553
+ const ZListElement = class {
554
+ /**
555
+ * Constructor.
556
+ */
557
+ constructor(hostRef) {
558
+ index.registerInstance(this, hostRef);
559
+ this.accessibleFocus = index.createEvent(this, "accessibleFocus", 7);
560
+ this.clickItem = index.createEvent(this, "clickItem", 7);
561
+ /**
562
+ * [optional] Align expandable button left or right.
563
+ */
564
+ this.alignButton = index$1.ExpandableListButtonAlign.LEFT;
565
+ /**
566
+ * [optional] Sets element clickable.
567
+ */
568
+ this.clickable = false;
569
+ /**
570
+ * [optional] Sets the divider color.
571
+ */
572
+ this.dividerColor = "color-surface03";
573
+ /**
574
+ * [optional] Sets the position where to insert the divider.
575
+ */
576
+ this.dividerType = index$1.ListDividerType.NONE;
577
+ /**
578
+ * [optional] Sets the divider size.
579
+ */
580
+ this.dividerSize = index$1.DividerSize.SMALL;
581
+ /**
582
+ * [optional] Sets element as expandable.
583
+ */
584
+ this.expandable = false;
585
+ /**
586
+ * [optional] Sets expandable style to element.
587
+ */
588
+ this.expandableStyle = index$1.ExpandableListStyle.ACCORDION;
589
+ /**
590
+ * [optional] Sets size of inside elements.
591
+ */
592
+ this.size = index$1.ListSize.MEDIUM;
593
+ /**
594
+ * [optional] Sets text color of the element.
595
+ */
596
+ this.color = "none";
597
+ /**
598
+ * [optional] Sets disabled style of the element.
599
+ */
600
+ this.disabled = false;
601
+ /**
602
+ * [optional] If is used in ZContextualMenu component
603
+ */
604
+ this.isContextualMenu = false;
605
+ /**
606
+ * [optional] position of the list element inside the list or the group
607
+ */
608
+ this.listElementPosition = "0";
609
+ /**
610
+ * [optional] type of the list marker for each element
611
+ */
612
+ this.listType = index$1.ListType.NONE;
613
+ this.showInnerContent = false;
614
+ this.openElementConfig = {
615
+ accordion: {
616
+ open: "minus-circled",
617
+ close: "plus-circled",
618
+ },
619
+ menu: {
620
+ open: "chevron-up",
621
+ close: "chevron-down",
622
+ },
623
+ };
624
+ this.handleClick = this.handleClick.bind(this);
625
+ this.handleKeyDown = this.handleKeyDown.bind(this);
626
+ }
627
+ accessibleFocusHandler(e) {
628
+ if (this.listElementId === e.detail) {
629
+ const toFocus = this.host.shadowRoot.getElementById(`z-list-element-id-${e.detail}`);
630
+ toFocus.focus();
631
+ }
632
+ }
633
+ /**
634
+ * Handler for click on element. If element is expandable, change state.
635
+ * @returns void
636
+ */
637
+ handleClick() {
638
+ this.clickItem.emit(this.listElementId);
639
+ if (!this.expandable) {
640
+ return;
641
+ }
642
+ this.showInnerContent = !this.showInnerContent;
643
+ }
644
+ calculateClass() {
645
+ if (this.isContextualMenu) {
646
+ return "container-contextual-menu";
647
+ }
648
+ return "container";
649
+ }
650
+ handleKeyDown(event) {
651
+ const expandByKey = event.code === index$1.KeyboardCode.ENTER;
652
+ switch (event.code) {
653
+ case index$1.KeyboardCode.ARROW_DOWN:
654
+ event.preventDefault();
655
+ this.accessibleFocus.emit(this.listElementId + 1);
656
+ break;
657
+ case index$1.KeyboardCode.ARROW_UP:
658
+ event.preventDefault();
659
+ this.accessibleFocus.emit(this.listElementId - 1);
660
+ break;
661
+ case index$1.KeyboardCode.ENTER:
662
+ event.preventDefault();
663
+ this.clickItem.emit(this.listElementId);
664
+ break;
665
+ }
666
+ if (!this.expandable || !expandByKey) {
667
+ return;
668
+ }
669
+ this.showInnerContent = !this.showInnerContent;
670
+ }
671
+ /**
672
+ * Renders button to expand element.
673
+ * @returns expadable button
674
+ */
675
+ renderExpandableButton() {
676
+ if (!this.expandable) {
677
+ return null;
678
+ }
679
+ return (index.h("z-icon", { name: this.showInnerContent
680
+ ? this.openElementConfig[this.expandableStyle].open
681
+ : this.openElementConfig[this.expandableStyle].close }));
682
+ }
683
+ /**
684
+ * Renders expanded content if element is expandable.
685
+ * @returns expanded content
686
+ */
687
+ renderExpandedContent() {
688
+ if (!this.expandable) {
689
+ return null;
690
+ }
691
+ return (index.h("div", { class: {
692
+ "z-list-element-inner-container": true,
693
+ "expanded": this.showInnerContent,
694
+ } }, index.h("slot", { name: "inner-content" })));
695
+ }
696
+ /**
697
+ * Renders content of the z-list-element
698
+ * @returns list content
699
+ */
700
+ renderContent() {
701
+ if (this.listType === index$1.ListType.NONE) {
702
+ return index.h("slot", null);
703
+ }
704
+ if (this.listType === index$1.ListType.ORDERED) {
705
+ return (index.h("div", { class: "z-list-content-container" }, index.h("div", null, this.listElementPosition, ".\u2003"), index.h("slot", null)));
706
+ }
707
+ if (this.listType === index$1.ListType.UNORDERED) {
708
+ return (index.h("div", { class: "z-list-content-container" }, index.h("span", null, "\u2022\u2003"), index.h("slot", null)));
709
+ }
710
+ }
711
+ render() {
712
+ return (index.h(index.Host, { role: "listitem", "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: !this.isContextualMenu ? "0" : null }, index.h("div", { class: `${this.calculateClass()}`, style: { color: `var(--${this.color})` }, tabindex: this.isContextualMenu ? "0" : "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, index.h("div", { class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === index$1.ListDividerType.ELEMENT && (index.h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
713
+ }
714
+ get host() { return index.getElement(this); }
715
+ };
716
+ ZListElement.style = stylesCss$3;
717
+
718
+ const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.z-list-group-header-container{color:var(--gray700);font-size:var(--font-size-2);font-weight:var(--font-sb) !important;letter-spacing:0.16px;line-height:1.4}:host>.z-list-group-header-container.has-header{padding-top:var(--space-unit);padding-bottom:var(--space-unit)}:host>.z-list-group-header-container.has-header>z-divider{margin-top:var(--space-unit)}";
719
+
720
+ const ZListGroup = class {
721
+ constructor(hostRef) {
722
+ index.registerInstance(this, hostRef);
723
+ /**
724
+ * [optional] Sets size of inside elements.
725
+ */
726
+ this.size = index$1.ListSize.MEDIUM;
727
+ /**
728
+ * [optional] Sets the position where to insert the divider.
729
+ */
730
+ this.dividerType = index$1.ListDividerType.NONE;
731
+ /**
732
+ * [optional] Sets the divider size.
733
+ */
734
+ this.dividerSize = index$1.DividerSize.SMALL;
735
+ /**
736
+ * [optional] Sets the divider color.
737
+ */
738
+ this.dividerColor = "gray200";
739
+ /**
740
+ * [optional] type of the list marker for each element
741
+ */
742
+ this.listType = index$1.ListType.NONE;
743
+ }
744
+ componentDidLoad() {
745
+ const children = this.host.children;
746
+ for (let i = 0; i < children.length; i++) {
747
+ if (children.length - 1 > i) {
748
+ children[i].setAttribute("divider-type", this.dividerType);
749
+ children[i].setAttribute("divider-size", this.dividerSize);
750
+ children[i].setAttribute("divider-color", this.dividerColor);
751
+ }
752
+ children[i].setAttribute("size", this.size);
753
+ children[i].setAttribute("list-type", this.listType);
754
+ children[i].setAttribute("list-element-position", i.toString());
755
+ }
756
+ }
757
+ componentWillLoad() {
758
+ this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
759
+ }
760
+ render() {
761
+ return (index.h(index.Host, { role: "group" }, index.h("div", { class: {
762
+ "z-list-group-header-container": true,
763
+ "has-header": this.hasHeader,
764
+ } }, index.h("slot", { name: "header-title" }), this.dividerType === index$1.ListDividerType.HEADER && (index.h("z-divider", { color: this.dividerColor, size: this.dividerSize }))), index.h("slot", null)));
765
+ }
766
+ get host() { return index.getElement(this); }
767
+ };
768
+ ZListGroup.style = stylesCss$2;
769
+
770
+ const stylesCss$1 = ".sc-z-offcanvas-h{--z-offcanvas--container-width:375px;--z-offcanvas--top-space:0;min-width:100%;height:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg);visibility:hidden}.canvas-container.sc-z-offcanvas{display:flex;overflow:-moz-scrollbars-none;overflow:hidden;min-width:100%;height:100%;flex-direction:column;background:var(--color-surface01)}[variant=\"pushcontent\"].sc-z-offcanvas-h{display:none}[open].sc-z-offcanvas-h{display:flex;visibility:visible}[variant=\"overlay\"].sc-z-offcanvas-h{position:fixed;z-index:1000;top:var(--z-offcanvas--top-space);right:0;bottom:0;left:0;display:flex;height:calc(100% - var(--z-offcanvas--top-space))}[variant=\"overlay\"][transitiondirection=\"left\"].sc-z-offcanvas-h{justify-content:end}[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{z-index:1010}[variant=\"overlay\"].sc-z-offcanvas-h .canvas-background.sc-z-offcanvas{position:absolute;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{overflow:auto;flex:1 auto;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0;overflow-x:hidden}[variant=\"overlay\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{padding:0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) 0 0}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-track{background-color:transparent}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas{scrollbar-color:var(--color-primary01) transparent}@media only screen and (max-width: 768px){[open][transitiondirection=\"left\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-right 0.4s ease-out}[open][transitiondirection=\"right\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-left 0.4s ease-out}}@media only screen and (min-width: 768px){.sc-z-offcanvas-h{min-width:auto}.canvas-container.sc-z-offcanvas{width:auto;min-width:max(var(--z-offcanvas--container-width), 375px);max-width:max(var(--z-offcanvas--container-width), 375px);height:auto;min-height:calc(var(--space-unit) * 40)}.sc-z-offcanvas-h:not([variant=\"overlay\"])[open]:not(.skip-animation){width:auto;animation:grow 0.4s ease-out}}@keyframes grow{from{width:0}to{width:max(var(--z-offcanvas--container-width), 375px)}}@keyframes enter-left{from{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes enter-right{from{transform:translateX(100%)}to{transform:translateX(0)}}[open][variant=\"overlay\"][transitiondirection=\"left\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-right 0.4s ease-out}[open][transitiondirection=\"right\"].sc-z-offcanvas-h:not(.skip-animation)>.canvas-container.sc-z-offcanvas{animation:enter-left 0.4s ease-out}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"right\"]>.canvas-container.sc-z-offcanvas{transform:translateX(-100%);transition:visibility 0.4s ease-out, transform 0.4s ease-out}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"left\"]>.canvas-container.sc-z-offcanvas{transform:translateX(100%);transition:visibility 0.4s ease-out, transform 0.4s ease-out}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"] .canvas-background.sc-z-offcanvas{transition:visibility 0.4s ease-out;visibility:hidden}";
771
+
772
+ const ZOffcanvas = class {
773
+ constructor(hostRef) {
774
+ index.registerInstance(this, hostRef);
775
+ this.canvasOpenStatusChanged = index.createEvent(this, "canvasOpenStatusChanged", 7);
776
+ /**
777
+ * Offcanvas variant.
778
+ * Can be one `overlay` or `pushcontent`.
779
+ * Default variant: pushcontent
780
+ */
781
+ this.variant = index$1.OffCanvasVariant.PUSHCONTENT;
782
+ /** Whether the offcanvas is open. Default: false */
783
+ this.open = false;
784
+ /** open content transitioning in a specified direction left | right. Default: left */
785
+ this.transitiondirection = index$1.TransitionDirection.LEFT;
786
+ /**
787
+ * Whether to skip the initial animation.
788
+ * Useful when the initial value of the `open` prop is set to `true`.
789
+ */
790
+ this.skipLoadAnimation = false;
791
+ }
792
+ onOpenChanged() {
793
+ if (!this.open && this.skipLoadAnimation) {
794
+ this.skipLoadAnimation = false;
795
+ }
796
+ if (this.open) {
797
+ this.handlePageOverflow();
798
+ }
799
+ this.canvasOpenStatusChanged.emit(this.open);
800
+ }
801
+ handlePageOverflow() {
802
+ const overflow = this.variant === index$1.OffCanvasVariant.OVERLAY ? "overflow-y" : "overflow-x";
803
+ document.body.style[overflow] = this.open ? "hidden" : "";
804
+ }
805
+ render() {
806
+ return (index.h(index.Host, { class: { "skip-animation": this.skipLoadAnimation } }, index.h("div", { role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, index.h("div", { role: "presentation", class: "canvas-content" }, index.h("slot", { name: "canvasContent" }))), this.variant == index$1.OffCanvasVariant.OVERLAY && (index.h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
807
+ }
808
+ static get watchers() { return {
809
+ "open": ["onOpenChanged"]
810
+ }; }
811
+ };
812
+ ZOffcanvas.style = stylesCss$1;
813
+
814
+ const stylesCss = ":host{z-index:10;display:flex;column-gap:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,*{box-sizing:border-box}.input-container{position:relative;display:flex;width:100%;flex-direction:column}.results-wrapper{position:absolute;top:calc(100% - 1px);left:0;width:100%;padding:calc(var(--space-unit) / 4);border:var(--border-size-small) solid var(--color-surface03);border-top:none;background:var(--color-surface01)}.results{overflow:auto;max-height:var(--z-searchbar-results-height, 540px);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}.results::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.results::-webkit-scrollbar-track{background-color:transparent}.results::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.results .category-heading{display:block;font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:var(--font-size-3)}.results .category-heading>*{display:block}.results .category-heading>.category{color:var(--color-text05);font-style:italic}.results .category-heading>.subcategory{margin-top:var(--space-unit);color:var(--color-text01);text-transform:uppercase}.results z-list-element{display:block}.results .item{--z-icon-height:12px;--z-icon-width:12px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;color:var(--color-text01);column-gap:calc(var(--space-unit) * 1.5);fill:var(--color-icon02);font-size:var(--font-size-2);line-height:var(--font-size-3)}.results .item.ellipsis>.item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results .item>.item-label mark{background:var(--color-primary03)}.results .item.has-category{padding-left:calc(var(--space-unit) * 3)}.results .item.item-search{--z-icon-height:16px;--z-icon-width:16px}.results .item-show-all{text-align:center}.results .item-no-results{display:block;font-size:var(--font-size-2);font-style:italic;line-height:var(--font-size-5)}.results .item-no-results>ul{padding-left:calc(var(--space-unit) * 2);margin:var(--space-unit)}@media (min-width: 768px){.results .category-heading{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item.item-search{--z-icon-height:18px;--z-icon-width:18px}.results .item.ellipsis>.item-label{height:24px}}@media (min-width: 1152px){.results .item{cursor:pointer}.results .item-no-results{cursor:default;font-size:var(--font-size-3);line-height:var(--font-size-6)}}:host([size=\"small\"]) .results :is(.item,.category-heading),:host([size=\"x-small\"]) .results :is(.item,.category-heading){font-size:var(--font-size-2)}:host([size=\"small\"]) .results .item:not(.has-category),:host([size=\"x-small\"]) .results .item:not(.has-category){--z-icon-height:16px;--z-icon-width:16px}:host([size=\"small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4.5);padding:0}:host([size=\"x-small\"])::part(list-item-container){min-height:calc(var(--space-unit) * 4);padding:0}";
815
+
816
+ const ZSearchbar = class {
817
+ constructor(hostRef) {
818
+ index.registerInstance(this, hostRef);
819
+ this.searchSubmit = index.createEvent(this, "searchSubmit", 7);
820
+ this.searchTyping = index.createEvent(this, "searchTyping", 7);
821
+ this.searchItemClick = index.createEvent(this, "searchItemClick", 7);
822
+ /** the id of the searchbar element */
823
+ this.htmlid = `searchbar-${utils.randomId()}`;
824
+ /** Prevent submit action */
825
+ this.preventSubmit = false;
826
+ /** Show autocomplete results */
827
+ this.autocomplete = false;
828
+ /** Minimun number of characters to dispatch typing event */
829
+ this.autocompleteMinChars = 3;
830
+ /** Truncate results to single row */
831
+ this.resultsEllipsis = true;
832
+ /** Search helper text */
833
+ this.searchHelperLabel = "Cerca {searchString}";
834
+ /** Sort autocomplete results items */
835
+ this.sortResultsItems = false;
836
+ /** Show submit button */
837
+ this.showSearchButton = false;
838
+ /** Set button icon without label*/
839
+ this.searchButtonIconOnly = false;
840
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
841
+ this.size = index$1.ControlSize.BIG;
842
+ /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
843
+ this.variant = index$1.ButtonVariant.PRIMARY;
844
+ this.searchString = this.value;
845
+ this.currResultsCount = 0;
846
+ this.showResults = false;
847
+ this.resultsItemsList = null;
848
+ }
849
+ emitSearchSubmit() {
850
+ this.searchSubmit.emit(this.inputRef.value);
851
+ }
852
+ emitSearchTyping(search) {
853
+ this.searchTyping.emit(search);
854
+ }
855
+ emitSearchItemClick(item) {
856
+ this.searchItemClick.emit(item);
857
+ }
858
+ watchItems() {
859
+ this.resultsItemsList = this.getResultsItemsList();
860
+ }
861
+ watchResultsCount() {
862
+ this.currResultsCount = this.resultsCount;
863
+ }
864
+ watchValue() {
865
+ this.searchString = this.value;
866
+ }
867
+ watchSearchString() {
868
+ this.emitSearchTyping(this.searchString);
869
+ if (!this.searchString) {
870
+ this.currResultsCount = this.resultsCount;
871
+ }
872
+ }
873
+ componentWillLoad() {
874
+ this.resultsItemsList = this.getResultsItemsList();
875
+ this.currResultsCount = this.resultsCount;
876
+ }
877
+ getResultsItemsList() {
878
+ return typeof this.resultsItems === "string" ? JSON.parse(this.resultsItems) : this.resultsItems;
879
+ }
880
+ getGroupedItems(items) {
881
+ const groupedItems = {};
882
+ items.forEach((item) => {
883
+ var _a;
884
+ const key = `${item === null || item === void 0 ? void 0 : item.category}${item === null || item === void 0 ? void 0 : item.subcategory}`;
885
+ groupedItems[key] = (_a = groupedItems[key]) !== null && _a !== void 0 ? _a : {
886
+ category: item === null || item === void 0 ? void 0 : item.category,
887
+ subcategory: item === null || item === void 0 ? void 0 : item.subcategory,
888
+ items: [],
889
+ };
890
+ groupedItems[key]["items"].push(item);
891
+ });
892
+ if (this.sortResultsItems) {
893
+ return Object.keys(groupedItems)
894
+ .sort()
895
+ .reduce((obj, key) => {
896
+ obj[key] = Object.assign(Object.assign({}, groupedItems[key]), { items: groupedItems[key]["items"].sort((a, b) => {
897
+ const nameA = a.label.toUpperCase();
898
+ const nameB = b.label.toUpperCase();
899
+ if (nameA < nameB) {
900
+ return -1;
901
+ }
902
+ if (nameA > nameB) {
903
+ return 1;
904
+ }
905
+ return 0;
906
+ }) });
907
+ return obj;
908
+ }, {});
909
+ }
910
+ return groupedItems;
911
+ }
912
+ checkResultsCount(counter) {
913
+ if (!this.currResultsCount || counter < this.currResultsCount) {
914
+ return true;
915
+ }
916
+ return false;
917
+ }
918
+ handleStopTyping(e) {
919
+ e.stopPropagation();
920
+ this.searchString = e.detail.value;
921
+ }
922
+ handleSubmit() {
923
+ if (this.preventSubmit) {
924
+ return;
925
+ }
926
+ this.emitSearchSubmit();
927
+ }
928
+ handleOutsideClick(e) {
929
+ const cp = e.composedPath();
930
+ const searchbar = cp.find((elem) => elem.nodeName === "Z-SEARCHBAR");
931
+ if (!searchbar || searchbar.htmlid !== this.htmlid) {
932
+ this.showResults = false;
933
+ return;
934
+ }
935
+ if (cp.find((elem) => { var _a; return (elem === null || elem === void 0 ? void 0 : elem.nodeName) === "Z-INPUT" || ((_a = elem === null || elem === void 0 ? void 0 : elem.classList) === null || _a === void 0 ? void 0 : _a.contains("results")); })) {
936
+ this.showResults = true;
937
+ return;
938
+ }
939
+ this.showResults = false;
940
+ }
941
+ renderInput() {
942
+ return (index.h("z-input", { ref: (val) => {
943
+ this.inputRef = val;
944
+ }, message: false, placeholder: this.placeholder, onStopTyping: (e) => this.handleStopTyping(e), onKeyUp: (e) => utils.handleEnterKeydSubmit(e, () => this.handleSubmit()), value: this.value, size: this.size }));
945
+ }
946
+ renderButton() {
947
+ if (!this.showSearchButton) {
948
+ return null;
949
+ }
950
+ const iconProp = this.searchButtonIconOnly ? { icon: "search" } : null;
951
+ const buttonLabel = this.searchButtonIconOnly ? "" : "CERCA";
952
+ const defaultProps = Object.assign({ disabled: this.preventSubmit, variant: this.variant, size: this.size, onClick: () => this.handleSubmit() }, iconProp);
953
+ return index.h("z-button", Object.assign({}, defaultProps), buttonLabel);
954
+ }
955
+ renderResults() {
956
+ if (!this.showResults ||
957
+ !this.autocomplete ||
958
+ !this.searchString ||
959
+ this.searchString.length < this.autocompleteMinChars ||
960
+ !this.resultsItemsList) {
961
+ return null;
962
+ }
963
+ return (index.h("div", { class: "results-wrapper" }, index.h("div", { class: "results" }, this.renderResultsList())));
964
+ }
965
+ renderResultsList() {
966
+ var _a, _b;
967
+ if (this.preventSubmit && !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
968
+ return (index.h("span", { class: "item item-no-results" }, "Non abbiamo trovato risultati per ", index.h("b", null, this.searchString), index.h("br", null), index.h("br", null), "Cosa puoi fare?", index.h("ul", null, index.h("li", null, "Verificare di aver scritto bene"), index.h("li", null, "Provare a cercare un'altra parola"), index.h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico"))));
969
+ }
970
+ return (index.h("z-list", { role: "listbox", id: `list-${this.htmlid}` }, this.renderSearchHelper(!!((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)), this.renderItems(), this.renderShowAllResults()));
971
+ }
972
+ renderItems() {
973
+ var _a;
974
+ if (!((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
975
+ return [];
976
+ }
977
+ const groupedItems = this.getGroupedItems(this.resultsItemsList);
978
+ const listGroups = [];
979
+ let counter = 0;
980
+ Object.values(groupedItems).forEach((groupItem, index$2, array) => {
981
+ if (this.checkResultsCount(counter)) {
982
+ const listGroupsElements = [];
983
+ groupItem.items.forEach((item, subindex, subarray) => {
984
+ if (this.checkResultsCount(counter)) {
985
+ const isLast = index$2 === array.length - 1 && subindex === subarray.length - 1;
986
+ listGroupsElements.push(this.renderItem(item, subindex, !isLast));
987
+ }
988
+ counter++;
989
+ });
990
+ if (listGroupsElements.length) {
991
+ listGroups.push(index.h("z-list-group", { "divider-type": index$1.ListDividerType.ELEMENT }, this.renderItemCategory(groupItem), listGroupsElements));
992
+ }
993
+ }
994
+ });
995
+ return listGroups;
996
+ }
997
+ renderItem(item, key, divider) {
998
+ return (index.h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, role: "option", tabindex: 0, dividerType: divider ? index$1.ListDividerType.ELEMENT : undefined, clickable: true, onClickItem: () => this.emitSearchItemClick(item) }, index.h("span", { class: { "item": true, "ellipsis": this.resultsEllipsis, "has-category": !!item.category } }, (item === null || item === void 0 ? void 0 : item.icon) && (index.h("z-icon", { class: "item-icon", name: item.icon })), index.h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) }))));
999
+ }
1000
+ renderItemLabel(label) {
1001
+ if (!this.searchString) {
1002
+ return label;
1003
+ }
1004
+ return label.replace(new RegExp(this.searchString.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gmi"), (found) => `<mark>${found}</mark>`);
1005
+ }
1006
+ renderItemCategory(groupItem) {
1007
+ if (!(groupItem === null || groupItem === void 0 ? void 0 : groupItem.category)) {
1008
+ return null;
1009
+ }
1010
+ return (index.h("span", { class: "category-heading", slot: "header-title" }, index.h("span", { class: "category" }, groupItem.category), (groupItem === null || groupItem === void 0 ? void 0 : groupItem.subcategory) && index.h("span", { class: "subcategory" }, groupItem.subcategory)));
1011
+ }
1012
+ renderSearchHelper(hasDivider = true) {
1013
+ if (!this.autocomplete || this.preventSubmit || !this.searchString) {
1014
+ return null;
1015
+ }
1016
+ return (index.h("z-list-element", { role: "option", tabindex: 0, dividerType: hasDivider ? index$1.ListDividerType.ELEMENT : undefined, clickable: true, id: `list-item-${this.htmlid}-search`, onClickItem: () => this.emitSearchSubmit() }, index.h("span", { class: "item item-search" }, index.h("z-icon", { class: "search-icon", name: "left-magnifying-glass" }), index.h("span", { class: "item-label", innerHTML: this.searchHelperLabel.replace("{searchString}", `<mark>${this.searchString}</mark>`) }))));
1017
+ }
1018
+ renderShowAllResults() {
1019
+ var _a, _b;
1020
+ if (!this.currResultsCount ||
1021
+ !this.searchString ||
1022
+ !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length) ||
1023
+ this.currResultsCount >= ((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)) {
1024
+ return null;
1025
+ }
1026
+ return (index.h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, index.h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
1027
+ }
1028
+ render() {
1029
+ return (index.h(index.Host, { onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, index.h("div", { class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
1030
+ }
1031
+ static get watchers() { return {
1032
+ "resultsItems": ["watchItems"],
1033
+ "resultsCount": ["watchResultsCount"],
1034
+ "value": ["watchValue"],
1035
+ "searchString": ["watchSearchString"]
1036
+ }; }
1037
+ };
1038
+ ZSearchbar.style = stylesCss;
1039
+
1040
+ exports.z_app_header = ZAppHeader;
1041
+ exports.z_button = ZButton;
1042
+ exports.z_divider = ZDivider;
1043
+ exports.z_icon = ZIcon;
1044
+ exports.z_input = ZInput;
1045
+ exports.z_input_message = ZInputMessage;
1046
+ exports.z_list = ZList;
1047
+ exports.z_list_element = ZListElement;
1048
+ exports.z_list_group = ZListGroup;
1049
+ exports.z_offcanvas = ZOffcanvas;
1050
+ exports.z_searchbar = ZSearchbar;