@zanichelli/albe-web-components 12.1.2 → 12.1.4-rc

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 (813) hide show
  1. package/package.json +1 -1
  2. package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
  3. package/dist/cjs/breakpoints-ebe1a437.js +0 -9
  4. package/dist/cjs/hammer-4f20813e.js +0 -2650
  5. package/dist/cjs/icons-d385b990.js +0 -862
  6. package/dist/cjs/index-00b6f6ba.js +0 -20
  7. package/dist/cjs/index-115387e6.js +0 -17
  8. package/dist/cjs/index-195ca522.js +0 -2326
  9. package/dist/cjs/index-20f305f7.js +0 -17
  10. package/dist/cjs/index-23ca3837.js +0 -53
  11. package/dist/cjs/index-270a4cf7.js +0 -22
  12. package/dist/cjs/index-2b0eb1f0.js +0 -34
  13. package/dist/cjs/index-4e41767c.js +0 -21
  14. package/dist/cjs/index-53c72420.js +0 -79
  15. package/dist/cjs/index-544902f0.js +0 -21
  16. package/dist/cjs/index-bb84dc1c.js +0 -21
  17. package/dist/cjs/index-cf9497bc.js +0 -344
  18. package/dist/cjs/index-d30158ef.js +0 -67
  19. package/dist/cjs/index-df08bc63.js +0 -29
  20. package/dist/cjs/index-e3bf75bc.js +0 -41
  21. package/dist/cjs/index-e78caf11.js +0 -74
  22. package/dist/cjs/index-f64e5dfe.js +0 -17
  23. package/dist/cjs/index-f6910e7f.js +0 -21
  24. package/dist/cjs/index.cjs.js +0 -331
  25. package/dist/cjs/loader.cjs.js +0 -21
  26. package/dist/cjs/utils-8335dca3.js +0 -2706
  27. package/dist/cjs/utils-ee86db4f.js +0 -110
  28. package/dist/cjs/web-components-library.cjs.js +0 -19
  29. package/dist/cjs/z-accordion.cjs.entry.js +0 -67
  30. package/dist/cjs/z-alert.cjs.entry.js +0 -19
  31. package/dist/cjs/z-anchor-navigation.cjs.entry.js +0 -53
  32. package/dist/cjs/z-app-header_11.cjs.entry.js +0 -1058
  33. package/dist/cjs/z-aria-alert.cjs.entry.js +0 -19
  34. package/dist/cjs/z-avatar.cjs.entry.js +0 -44
  35. package/dist/cjs/z-book-card.cjs.entry.js +0 -126
  36. package/dist/cjs/z-breadcrumb.cjs.entry.js +0 -232
  37. package/dist/cjs/z-button-sort.cjs.entry.js +0 -53
  38. package/dist/cjs/z-card.cjs.entry.js +0 -53
  39. package/dist/cjs/z-carousel.cjs.entry.js +0 -150
  40. package/dist/cjs/z-chip.cjs.entry.js +0 -32
  41. package/dist/cjs/z-combobox.cjs.entry.js +0 -201
  42. package/dist/cjs/z-contextual-menu.cjs.entry.js +0 -46
  43. package/dist/cjs/z-cover-hero.cjs.entry.js +0 -57
  44. package/dist/cjs/z-date-picker.cjs.entry.js +0 -477
  45. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -1016
  46. package/dist/cjs/z-file-upload.cjs.entry.js +0 -185
  47. package/dist/cjs/z-file.cjs.entry.js +0 -48
  48. package/dist/cjs/z-ghost-loading.cjs.entry.js +0 -19
  49. package/dist/cjs/z-info-box.cjs.entry.js +0 -25
  50. package/dist/cjs/z-info-reveal.cjs.entry.js +0 -65
  51. package/dist/cjs/z-link.cjs.entry.js +0 -74
  52. package/dist/cjs/z-logo.cjs.entry.js +0 -26
  53. package/dist/cjs/z-menu-section.cjs.entry.js +0 -54
  54. package/dist/cjs/z-menu.cjs.entry.js +0 -119
  55. package/dist/cjs/z-messages-pocket.cjs.entry.js +0 -46
  56. package/dist/cjs/z-myz-card-alert.cjs.entry.js +0 -63
  57. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +0 -36
  58. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +0 -19
  59. package/dist/cjs/z-myz-card-footer.cjs.entry.js +0 -69
  60. package/dist/cjs/z-myz-card-icon.cjs.entry.js +0 -23
  61. package/dist/cjs/z-myz-card-info.cjs.entry.js +0 -129
  62. package/dist/cjs/z-myz-card-list.cjs.entry.js +0 -38
  63. package/dist/cjs/z-myz-card_4.cjs.entry.js +0 -108
  64. package/dist/cjs/z-myz-list-item.cjs.entry.js +0 -37
  65. package/dist/cjs/z-myz-list.cjs.entry.js +0 -35
  66. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +0 -74
  67. package/dist/cjs/z-navigation-tab.cjs.entry.js +0 -73
  68. package/dist/cjs/z-navigation-tabs.cjs.entry.js +0 -229
  69. package/dist/cjs/z-notification.cjs.entry.js +0 -41
  70. package/dist/cjs/z-otp.cjs.entry.js +0 -41
  71. package/dist/cjs/z-pagination.cjs.entry.js +0 -229
  72. package/dist/cjs/z-panel-elem.cjs.entry.js +0 -34
  73. package/dist/cjs/z-pocket-message.cjs.entry.js +0 -19
  74. package/dist/cjs/z-pocket_3.cjs.entry.js +0 -125
  75. package/dist/cjs/z-popover.cjs.entry.js +0 -328
  76. package/dist/cjs/z-range-picker.cjs.entry.js +0 -361
  77. package/dist/cjs/z-section-title.cjs.entry.js +0 -33
  78. package/dist/cjs/z-select.cjs.entry.js +0 -332
  79. package/dist/cjs/z-skip-to-content.cjs.entry.js +0 -74
  80. package/dist/cjs/z-slideshow.cjs.entry.js +0 -129
  81. package/dist/cjs/z-stepper-item.cjs.entry.js +0 -22
  82. package/dist/cjs/z-stepper.cjs.entry.js +0 -19
  83. package/dist/cjs/z-table-body.cjs.entry.js +0 -10
  84. package/dist/cjs/z-table-cell.cjs.entry.js +0 -11
  85. package/dist/cjs/z-table-deprecated.cjs.entry.js +0 -91
  86. package/dist/cjs/z-table-empty-box.cjs.entry.js +0 -10
  87. package/dist/cjs/z-table-expanded-row.cjs.entry.js +0 -10
  88. package/dist/cjs/z-table-footer.cjs.entry.js +0 -10
  89. package/dist/cjs/z-table-head.cjs.entry.js +0 -10
  90. package/dist/cjs/z-table-header-row.cjs.entry.js +0 -10
  91. package/dist/cjs/z-table-header.cjs.entry.js +0 -13
  92. package/dist/cjs/z-table-row.cjs.entry.js +0 -11
  93. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +0 -10
  94. package/dist/cjs/z-table.cjs.entry.js +0 -58
  95. package/dist/cjs/z-tag.cjs.entry.js +0 -22
  96. package/dist/cjs/z-tbody.cjs.entry.js +0 -10
  97. package/dist/cjs/z-td.cjs.entry.js +0 -11
  98. package/dist/cjs/z-tfoot.cjs.entry.js +0 -10
  99. package/dist/cjs/z-th.cjs.entry.js +0 -11
  100. package/dist/cjs/z-thead.cjs.entry.js +0 -10
  101. package/dist/cjs/z-toast-notification-list.cjs.entry.js +0 -56
  102. package/dist/cjs/z-toast-notification.cjs.entry.js +0 -200
  103. package/dist/cjs/z-toggle-button.cjs.entry.js +0 -36
  104. package/dist/cjs/z-toggle-switch.cjs.entry.js +0 -51
  105. package/dist/cjs/z-tooltip.cjs.entry.js +0 -37
  106. package/dist/cjs/z-tr.cjs.entry.js +0 -15
  107. package/dist/cjs/z-visually-hidden.cjs.entry.js +0 -19
  108. package/dist/collection/beans/index.js +0 -342
  109. package/dist/collection/collection-manifest.json +0 -106
  110. package/dist/collection/components/buttons/z-button/index.js +0 -262
  111. package/dist/collection/components/buttons/z-button/styles.css +0 -149
  112. package/dist/collection/components/buttons/z-button-sort/index.js +0 -220
  113. package/dist/collection/components/buttons/z-button-sort/styles.css +0 -84
  114. package/dist/collection/components/buttons/z-chip/index.js +0 -147
  115. package/dist/collection/components/buttons/z-chip/styles.css +0 -122
  116. package/dist/collection/components/buttons/z-toggle-button/index.js +0 -146
  117. package/dist/collection/components/buttons/z-toggle-button/styles.css +0 -60
  118. package/dist/collection/components/buttons/z-toggle-switch/index.js +0 -144
  119. package/dist/collection/components/buttons/z-toggle-switch/styles.css +0 -104
  120. package/dist/collection/components/date-picker/styles.css +0 -565
  121. package/dist/collection/components/date-picker/utils.js +0 -76
  122. package/dist/collection/components/date-picker/z-date-picker/index.js +0 -295
  123. package/dist/collection/components/date-picker/z-range-picker/index.js +0 -593
  124. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -53
  125. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +0 -51
  126. package/dist/collection/components/file-upload/z-file/index.js +0 -131
  127. package/dist/collection/components/file-upload/z-file/styles.css +0 -23
  128. package/dist/collection/components/file-upload/z-file-upload/index.js +0 -363
  129. package/dist/collection/components/file-upload/z-file-upload/styles.css +0 -84
  130. package/dist/collection/components/icons/icons.js +0 -858
  131. package/dist/collection/components/icons/z-icon/index.js +0 -114
  132. package/dist/collection/components/icons/z-icon/styles.css +0 -14
  133. package/dist/collection/components/index.js +0 -8
  134. package/dist/collection/components/indicators/z-stepper/index.js +0 -21
  135. package/dist/collection/components/indicators/z-stepper/styles.css +0 -19
  136. package/dist/collection/components/indicators/z-stepper-item/index.js +0 -93
  137. package/dist/collection/components/indicators/z-stepper-item/styles.css +0 -114
  138. package/dist/collection/components/inputs/z-combobox/index.js +0 -570
  139. package/dist/collection/components/inputs/z-combobox/styles.css +0 -194
  140. package/dist/collection/components/inputs/z-input/index.js +0 -804
  141. package/dist/collection/components/inputs/z-input/styles.css +0 -397
  142. package/dist/collection/components/inputs/z-input-message/index.js +0 -89
  143. package/dist/collection/components/inputs/z-input-message/styles.css +0 -48
  144. package/dist/collection/components/inputs/z-searchbar/index.js +0 -599
  145. package/dist/collection/components/inputs/z-searchbar/styles.css +0 -185
  146. package/dist/collection/components/inputs/z-select/index.js +0 -753
  147. package/dist/collection/components/inputs/z-select/styles.css +0 -123
  148. package/dist/collection/components/list/z-list/index.js +0 -91
  149. package/dist/collection/components/list/z-list/styles.css +0 -6
  150. package/dist/collection/components/list/z-list-element/index.js +0 -508
  151. package/dist/collection/components/list/z-list-element/styles.css +0 -121
  152. package/dist/collection/components/list/z-list-group/index.js +0 -175
  153. package/dist/collection/components/list/z-list-group/styles.css +0 -21
  154. package/dist/collection/components/list/z-toast-notification-list/index.js +0 -105
  155. package/dist/collection/components/list/z-toast-notification-list/styles.css +0 -100
  156. package/dist/collection/components/logo/z-logo/index.js +0 -131
  157. package/dist/collection/components/logo/z-logo/styles.css +0 -29
  158. package/dist/collection/components/modal/z-modal/index.js +0 -351
  159. package/dist/collection/components/modal/z-modal/styles.css +0 -251
  160. package/dist/collection/components/navigation/z-app-header/index.js +0 -449
  161. package/dist/collection/components/navigation/z-app-header/index.stories.js +0 -393
  162. package/dist/collection/components/navigation/z-app-header/styles.css +0 -441
  163. package/dist/collection/components/navigation/z-menu/index.js +0 -250
  164. package/dist/collection/components/navigation/z-menu/styles.css +0 -217
  165. package/dist/collection/components/navigation/z-menu-section/index.js +0 -125
  166. package/dist/collection/components/navigation/z-menu-section/styles.css +0 -123
  167. package/dist/collection/components/navigation/z-navigation-tabs/index.js +0 -367
  168. package/dist/collection/components/navigation/z-navigation-tabs/index.stories.js +0 -12
  169. package/dist/collection/components/navigation/z-navigation-tabs/styles.css +0 -212
  170. package/dist/collection/components/notification/z-info-box/index.js +0 -85
  171. package/dist/collection/components/notification/z-info-box/styles.css +0 -23
  172. package/dist/collection/components/notification/z-notification/index.js +0 -195
  173. package/dist/collection/components/notification/z-notification/styles.css +0 -114
  174. package/dist/collection/components/notification/z-toast-notification/index.js +0 -399
  175. package/dist/collection/components/notification/z-toast-notification/styles.css +0 -254
  176. package/dist/collection/components/notification/z-tooltip/index.js +0 -157
  177. package/dist/collection/components/notification/z-tooltip/styles.css +0 -17
  178. package/dist/collection/components/panel/z-panel-elem/index.js +0 -197
  179. package/dist/collection/components/panel/z-panel-elem/styles.css +0 -46
  180. package/dist/collection/components/table/cells/z-td/index.js +0 -147
  181. package/dist/collection/components/table/cells/z-td/styles.css +0 -59
  182. package/dist/collection/components/table/cells/z-th/index.js +0 -209
  183. package/dist/collection/components/table/cells/z-th/styles.css +0 -88
  184. package/dist/collection/components/table/z-table/index.js +0 -86
  185. package/dist/collection/components/table/z-table/styles.css +0 -22
  186. package/dist/collection/components/table/z-tbody/index.js +0 -22
  187. package/dist/collection/components/table/z-tbody/styles.css +0 -4
  188. package/dist/collection/components/table/z-tfoot/index.js +0 -50
  189. package/dist/collection/components/table/z-tfoot/styles.css +0 -13
  190. package/dist/collection/components/table/z-thead/index.js +0 -50
  191. package/dist/collection/components/table/z-thead/styles.css +0 -19
  192. package/dist/collection/components/table/z-tr/index.js +0 -133
  193. package/dist/collection/components/table/z-tr/styles.css +0 -87
  194. package/dist/collection/components/z-accordion/index.js +0 -255
  195. package/dist/collection/components/z-accordion/styles.css +0 -255
  196. package/dist/collection/components/z-anchor-navigation/index.js +0 -95
  197. package/dist/collection/components/z-anchor-navigation/styles.css +0 -128
  198. package/dist/collection/components/z-aria-alert/index.js +0 -39
  199. package/dist/collection/components/z-avatar/index.js +0 -142
  200. package/dist/collection/components/z-avatar/styles.css +0 -32
  201. package/dist/collection/components/z-book-card/index.js +0 -392
  202. package/dist/collection/components/z-book-card/styles.css +0 -476
  203. package/dist/collection/components/z-breadcrumb/index.js +0 -392
  204. package/dist/collection/components/z-breadcrumb/styles.css +0 -146
  205. package/dist/collection/components/z-card/index.js +0 -148
  206. package/dist/collection/components/z-card/styles.css +0 -213
  207. package/dist/collection/components/z-carousel/index.js +0 -304
  208. package/dist/collection/components/z-carousel/styles.css +0 -129
  209. package/dist/collection/components/z-contextual-menu/index.js +0 -126
  210. package/dist/collection/components/z-contextual-menu/styles.css +0 -60
  211. package/dist/collection/components/z-cover-hero/index.js +0 -146
  212. package/dist/collection/components/z-cover-hero/styles.css +0 -93
  213. package/dist/collection/components/z-divider/index.js +0 -95
  214. package/dist/collection/components/z-divider/styles.css +0 -37
  215. package/dist/collection/components/z-ghost-loading/index.js +0 -18
  216. package/dist/collection/components/z-ghost-loading/styles.css +0 -34
  217. package/dist/collection/components/z-info-reveal/index.js +0 -147
  218. package/dist/collection/components/z-info-reveal/styles.css +0 -103
  219. package/dist/collection/components/z-offcanvas/index.js +0 -162
  220. package/dist/collection/components/z-offcanvas/styles.css +0 -182
  221. package/dist/collection/components/z-pagination/index.js +0 -435
  222. package/dist/collection/components/z-pagination/styles.css +0 -199
  223. package/dist/collection/components/z-popover/index.js +0 -513
  224. package/dist/collection/components/z-popover/styles.css +0 -147
  225. package/dist/collection/components/z-section-title/index.js +0 -88
  226. package/dist/collection/components/z-section-title/styles.css +0 -45
  227. package/dist/collection/components/z-skip-to-content/index.js +0 -147
  228. package/dist/collection/components/z-skip-to-content/styles.css +0 -81
  229. package/dist/collection/components/z-tag/index.js +0 -65
  230. package/dist/collection/components/z-tag/styles.css +0 -46
  231. package/dist/collection/components/z-visually-hidden/index.js +0 -18
  232. package/dist/collection/components/z-visually-hidden/styles.css +0 -12
  233. package/dist/collection/constants/breakpoints.js +0 -4
  234. package/dist/collection/constants/icons.js +0 -6
  235. package/dist/collection/deprecated/navigation-tab.css +0 -138
  236. package/dist/collection/deprecated/z-link/index.js +0 -318
  237. package/dist/collection/deprecated/z-link/styles.css +0 -167
  238. package/dist/collection/deprecated/z-navigation-tab/index.js +0 -290
  239. package/dist/collection/deprecated/z-navigation-tab-link/index.js +0 -313
  240. package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js +0 -26
  241. package/dist/collection/deprecated/z-table-deprecated/z-table-body/styles.css +0 -9
  242. package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js +0 -84
  243. package/dist/collection/deprecated/z-table-deprecated/z-table-cell/styles.css +0 -58
  244. package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js +0 -363
  245. package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/styles.css +0 -115
  246. package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js +0 -75
  247. package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/styles.css +0 -38
  248. package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js +0 -42
  249. package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/styles.css +0 -9
  250. package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js +0 -25
  251. package/dist/collection/deprecated/z-table-deprecated/z-table-footer/styles.css +0 -5
  252. package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js +0 -25
  253. package/dist/collection/deprecated/z-table-deprecated/z-table-head/styles.css +0 -5
  254. package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js +0 -226
  255. package/dist/collection/deprecated/z-table-deprecated/z-table-header/styles.css +0 -71
  256. package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js +0 -44
  257. package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/styles.css +0 -13
  258. package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js +0 -95
  259. package/dist/collection/deprecated/z-table-deprecated/z-table-row/styles.css +0 -45
  260. package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js +0 -22
  261. package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/styles.css +0 -11
  262. package/dist/collection/index.js +0 -7
  263. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +0 -129
  264. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +0 -44
  265. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +0 -151
  266. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +0 -62
  267. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +0 -22
  268. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +0 -13
  269. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -93
  270. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +0 -11
  271. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +0 -177
  272. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +0 -72
  273. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +0 -219
  274. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +0 -181
  275. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +0 -22
  276. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +0 -20
  277. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +0 -109
  278. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +0 -59
  279. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +0 -81
  280. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +0 -69
  281. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +0 -199
  282. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +0 -93
  283. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -60
  284. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +0 -41
  285. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -78
  286. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +0 -4
  287. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +0 -192
  288. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +0 -66
  289. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +0 -120
  290. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +0 -102
  291. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +0 -191
  292. package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +0 -44
  293. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +0 -84
  294. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +0 -41
  295. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +0 -93
  296. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +0 -27
  297. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +0 -22
  298. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +0 -44
  299. package/dist/collection/snowflakes/myz/z-alert/index.js +0 -47
  300. package/dist/collection/snowflakes/myz/z-alert/styles.css +0 -28
  301. package/dist/collection/snowflakes/myz/z-otp/index.js +0 -120
  302. package/dist/collection/snowflakes/myz/z-otp/styles.css +0 -47
  303. package/dist/collection/snowflakes/myz/z-slideshow/index.js +0 -180
  304. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +0 -127
  305. package/dist/collection/utils/storybook-utils.js +0 -76
  306. package/dist/collection/utils/utils.js +0 -115
  307. package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
  308. package/dist/esm/breakpoints-9b81eb1b.js +0 -5
  309. package/dist/esm/hammer-c3266b17.js +0 -2648
  310. package/dist/esm/icons-e3232103.js +0 -860
  311. package/dist/esm/index-0a587f24.js +0 -51
  312. package/dist/esm/index-0cdc998f.js +0 -19
  313. package/dist/esm/index-361b27f9.js +0 -15
  314. package/dist/esm/index-47f23745.js +0 -344
  315. package/dist/esm/index-4968ce56.js +0 -2298
  316. package/dist/esm/index-4d1853ea.js +0 -77
  317. package/dist/esm/index-531501d7.js +0 -15
  318. package/dist/esm/index-6161978d.js +0 -27
  319. package/dist/esm/index-772a7413.js +0 -20
  320. package/dist/esm/index-816801e5.js +0 -18
  321. package/dist/esm/index-85dc8bc0.js +0 -32
  322. package/dist/esm/index-88a23895.js +0 -19
  323. package/dist/esm/index-8f7fd43f.js +0 -19
  324. package/dist/esm/index-af5c6b4c.js +0 -15
  325. package/dist/esm/index-dc50a9ae.js +0 -72
  326. package/dist/esm/index-e6ee76f0.js +0 -39
  327. package/dist/esm/index-fac1fe6c.js +0 -19
  328. package/dist/esm/index-fb19ca57.js +0 -65
  329. package/dist/esm/index.js +0 -9
  330. package/dist/esm/loader.js +0 -17
  331. package/dist/esm/polyfills/core-js.js +0 -11
  332. package/dist/esm/polyfills/css-shim.js +0 -1
  333. package/dist/esm/polyfills/dom.js +0 -79
  334. package/dist/esm/polyfills/es5-html-element.js +0 -1
  335. package/dist/esm/polyfills/index.js +0 -34
  336. package/dist/esm/polyfills/system.js +0 -6
  337. package/dist/esm/utils-2a4ef29d.js +0 -100
  338. package/dist/esm/utils-8e0bd81d.js +0 -2700
  339. package/dist/esm/web-components-library.js +0 -17
  340. package/dist/esm/z-accordion.entry.js +0 -63
  341. package/dist/esm/z-alert.entry.js +0 -15
  342. package/dist/esm/z-anchor-navigation.entry.js +0 -49
  343. package/dist/esm/z-app-header_11.entry.js +0 -1044
  344. package/dist/esm/z-aria-alert.entry.js +0 -15
  345. package/dist/esm/z-avatar.entry.js +0 -40
  346. package/dist/esm/z-book-card.entry.js +0 -122
  347. package/dist/esm/z-breadcrumb.entry.js +0 -228
  348. package/dist/esm/z-button-sort.entry.js +0 -49
  349. package/dist/esm/z-card.entry.js +0 -49
  350. package/dist/esm/z-carousel.entry.js +0 -146
  351. package/dist/esm/z-chip.entry.js +0 -28
  352. package/dist/esm/z-combobox.entry.js +0 -197
  353. package/dist/esm/z-contextual-menu.entry.js +0 -42
  354. package/dist/esm/z-cover-hero.entry.js +0 -53
  355. package/dist/esm/z-date-picker.entry.js +0 -473
  356. package/dist/esm/z-dragdrop-area_2.entry.js +0 -1011
  357. package/dist/esm/z-file-upload.entry.js +0 -181
  358. package/dist/esm/z-file.entry.js +0 -44
  359. package/dist/esm/z-ghost-loading.entry.js +0 -15
  360. package/dist/esm/z-info-box.entry.js +0 -21
  361. package/dist/esm/z-info-reveal.entry.js +0 -61
  362. package/dist/esm/z-link.entry.js +0 -70
  363. package/dist/esm/z-logo.entry.js +0 -22
  364. package/dist/esm/z-menu-section.entry.js +0 -50
  365. package/dist/esm/z-menu.entry.js +0 -115
  366. package/dist/esm/z-messages-pocket.entry.js +0 -42
  367. package/dist/esm/z-myz-card-alert.entry.js +0 -59
  368. package/dist/esm/z-myz-card-dictionary.entry.js +0 -32
  369. package/dist/esm/z-myz-card-footer-sections.entry.js +0 -15
  370. package/dist/esm/z-myz-card-footer.entry.js +0 -65
  371. package/dist/esm/z-myz-card-icon.entry.js +0 -19
  372. package/dist/esm/z-myz-card-info.entry.js +0 -125
  373. package/dist/esm/z-myz-card-list.entry.js +0 -34
  374. package/dist/esm/z-myz-card_4.entry.js +0 -101
  375. package/dist/esm/z-myz-list-item.entry.js +0 -33
  376. package/dist/esm/z-myz-list.entry.js +0 -31
  377. package/dist/esm/z-navigation-tab-link.entry.js +0 -70
  378. package/dist/esm/z-navigation-tab.entry.js +0 -69
  379. package/dist/esm/z-navigation-tabs.entry.js +0 -225
  380. package/dist/esm/z-notification.entry.js +0 -37
  381. package/dist/esm/z-otp.entry.js +0 -37
  382. package/dist/esm/z-pagination.entry.js +0 -225
  383. package/dist/esm/z-panel-elem.entry.js +0 -30
  384. package/dist/esm/z-pocket-message.entry.js +0 -15
  385. package/dist/esm/z-pocket_3.entry.js +0 -119
  386. package/dist/esm/z-popover.entry.js +0 -324
  387. package/dist/esm/z-range-picker.entry.js +0 -357
  388. package/dist/esm/z-section-title.entry.js +0 -29
  389. package/dist/esm/z-select.entry.js +0 -328
  390. package/dist/esm/z-skip-to-content.entry.js +0 -70
  391. package/dist/esm/z-slideshow.entry.js +0 -125
  392. package/dist/esm/z-stepper-item.entry.js +0 -18
  393. package/dist/esm/z-stepper.entry.js +0 -15
  394. package/dist/esm/z-table-body.entry.js +0 -2
  395. package/dist/esm/z-table-cell.entry.js +0 -3
  396. package/dist/esm/z-table-deprecated.entry.js +0 -87
  397. package/dist/esm/z-table-empty-box.entry.js +0 -2
  398. package/dist/esm/z-table-expanded-row.entry.js +0 -2
  399. package/dist/esm/z-table-footer.entry.js +0 -2
  400. package/dist/esm/z-table-head.entry.js +0 -2
  401. package/dist/esm/z-table-header-row.entry.js +0 -2
  402. package/dist/esm/z-table-header.entry.js +0 -5
  403. package/dist/esm/z-table-row.entry.js +0 -3
  404. package/dist/esm/z-table-sticky-footer.entry.js +0 -2
  405. package/dist/esm/z-table.entry.js +0 -54
  406. package/dist/esm/z-tag.entry.js +0 -18
  407. package/dist/esm/z-tbody.entry.js +0 -2
  408. package/dist/esm/z-td.entry.js +0 -3
  409. package/dist/esm/z-tfoot.entry.js +0 -2
  410. package/dist/esm/z-th.entry.js +0 -3
  411. package/dist/esm/z-thead.entry.js +0 -2
  412. package/dist/esm/z-toast-notification-list.entry.js +0 -52
  413. package/dist/esm/z-toast-notification.entry.js +0 -196
  414. package/dist/esm/z-toggle-button.entry.js +0 -32
  415. package/dist/esm/z-toggle-switch.entry.js +0 -47
  416. package/dist/esm/z-tooltip.entry.js +0 -33
  417. package/dist/esm/z-tr.entry.js +0 -7
  418. package/dist/esm/z-visually-hidden.entry.js +0 -15
  419. package/dist/index.cjs.js +0 -1
  420. package/dist/index.js +0 -1
  421. package/dist/types/beans/index.d.ts +0 -398
  422. package/dist/types/components/buttons/z-button/index.d.ts +0 -31
  423. package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -28
  424. package/dist/types/components/buttons/z-chip/index.d.ts +0 -18
  425. package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -17
  426. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -17
  427. package/dist/types/components/date-picker/utils.d.ts +0 -4
  428. package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -29
  429. package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -52
  430. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -9
  431. package/dist/types/components/file-upload/z-file/index.d.ts +0 -22
  432. package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -52
  433. package/dist/types/components/icons/icons.d.ts +0 -1549
  434. package/dist/types/components/icons/z-icon/index.d.ts +0 -14
  435. package/dist/types/components/index.d.ts +0 -0
  436. package/dist/types/components/indicators/z-stepper/index.d.ts +0 -6
  437. package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -19
  438. package/dist/types/components/inputs/z-combobox/index.d.ts +0 -71
  439. package/dist/types/components/inputs/z-input/index.d.ts +0 -91
  440. package/dist/types/components/inputs/z-input-message/index.d.ts +0 -12
  441. package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -73
  442. package/dist/types/components/inputs/z-select/index.d.ts +0 -82
  443. package/dist/types/components/list/z-list/index.d.ts +0 -15
  444. package/dist/types/components/list/z-list-element/index.d.ts +0 -95
  445. package/dist/types/components/list/z-list-group/index.d.ts +0 -28
  446. package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -14
  447. package/dist/types/components/logo/z-logo/index.d.ts +0 -15
  448. package/dist/types/components/modal/z-modal/index.d.ts +0 -49
  449. package/dist/types/components/navigation/z-app-header/index.d.ts +0 -149
  450. package/dist/types/components/navigation/z-menu/index.d.ts +0 -61
  451. package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -31
  452. package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +0 -114
  453. package/dist/types/components/notification/z-info-box/index.d.ts +0 -14
  454. package/dist/types/components/notification/z-notification/index.d.ts +0 -32
  455. package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -56
  456. package/dist/types/components/notification/z-tooltip/index.d.ts +0 -32
  457. package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -25
  458. package/dist/types/components/table/cells/z-td/index.d.ts +0 -37
  459. package/dist/types/components/table/cells/z-th/index.d.ts +0 -56
  460. package/dist/types/components/table/z-table/index.d.ts +0 -28
  461. package/dist/types/components/table/z-tbody/index.d.ts +0 -7
  462. package/dist/types/components/table/z-tfoot/index.d.ts +0 -11
  463. package/dist/types/components/table/z-thead/index.d.ts +0 -11
  464. package/dist/types/components/table/z-tr/index.d.ts +0 -41
  465. package/dist/types/components/z-accordion/index.d.ts +0 -65
  466. package/dist/types/components/z-anchor-navigation/index.d.ts +0 -39
  467. package/dist/types/components/z-aria-alert/index.d.ts +0 -6
  468. package/dist/types/components/z-avatar/index.d.ts +0 -16
  469. package/dist/types/components/z-book-card/index.d.ts +0 -95
  470. package/dist/types/components/z-breadcrumb/index.d.ts +0 -56
  471. package/dist/types/components/z-card/index.d.ts +0 -38
  472. package/dist/types/components/z-carousel/index.d.ts +0 -63
  473. package/dist/types/components/z-contextual-menu/index.d.ts +0 -26
  474. package/dist/types/components/z-cover-hero/index.d.ts +0 -41
  475. package/dist/types/components/z-divider/index.d.ts +0 -10
  476. package/dist/types/components/z-ghost-loading/index.d.ts +0 -3
  477. package/dist/types/components/z-info-reveal/index.d.ts +0 -29
  478. package/dist/types/components/z-offcanvas/index.d.ts +0 -27
  479. package/dist/types/components/z-pagination/index.d.ts +0 -109
  480. package/dist/types/components/z-popover/index.d.ts +0 -69
  481. package/dist/types/components/z-section-title/index.d.ts +0 -25
  482. package/dist/types/components/z-skip-to-content/index.d.ts +0 -21
  483. package/dist/types/components/z-tag/index.d.ts +0 -13
  484. package/dist/types/components/z-visually-hidden/index.d.ts +0 -3
  485. package/dist/types/components.d.ts +0 -5198
  486. package/dist/types/constants/breakpoints.d.ts +0 -4
  487. package/dist/types/constants/icons.d.ts +0 -6
  488. package/dist/types/deprecated/z-link/index.d.ts +0 -41
  489. package/dist/types/deprecated/z-navigation-tab/index.d.ts +0 -69
  490. package/dist/types/deprecated/z-navigation-tab-link/index.d.ts +0 -77
  491. package/dist/types/deprecated/z-table-deprecated/z-table-body/index.d.ts +0 -8
  492. package/dist/types/deprecated/z-table-deprecated/z-table-cell/index.d.ts +0 -14
  493. package/dist/types/deprecated/z-table-deprecated/z-table-deprecated/index.d.ts +0 -59
  494. package/dist/types/deprecated/z-table-deprecated/z-table-empty-box/index.d.ts +0 -15
  495. package/dist/types/deprecated/z-table-deprecated/z-table-expanded-row/index.d.ts +0 -8
  496. package/dist/types/deprecated/z-table-deprecated/z-table-footer/index.d.ts +0 -8
  497. package/dist/types/deprecated/z-table-deprecated/z-table-head/index.d.ts +0 -8
  498. package/dist/types/deprecated/z-table-deprecated/z-table-header/index.d.ts +0 -31
  499. package/dist/types/deprecated/z-table-deprecated/z-table-header-row/index.d.ts +0 -9
  500. package/dist/types/deprecated/z-table-deprecated/z-table-row/index.d.ts +0 -16
  501. package/dist/types/deprecated/z-table-deprecated/z-table-sticky-footer/index.d.ts +0 -7
  502. package/dist/types/index.d.ts +0 -7
  503. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -16
  504. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -19
  505. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -7
  506. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -12
  507. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -24
  508. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -34
  509. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -7
  510. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -19
  511. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -9
  512. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -36
  513. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -9
  514. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -11
  515. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -25
  516. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -16
  517. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -25
  518. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -12
  519. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -18
  520. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -7
  521. package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -9
  522. package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -17
  523. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -30
  524. package/dist/types/stencil-public-runtime.d.ts +0 -1576
  525. package/dist/types/utils/storybook-utils.d.ts +0 -50
  526. package/dist/types/utils/utils.d.ts +0 -24
  527. package/dist/web-components-library/index.esm.js +0 -1
  528. package/dist/web-components-library/p-01e2e8d4.entry.js +0 -1
  529. package/dist/web-components-library/p-035fbb3e.entry.js +0 -1
  530. package/dist/web-components-library/p-03b13390.entry.js +0 -1
  531. package/dist/web-components-library/p-04b2ab0d.entry.js +0 -1
  532. package/dist/web-components-library/p-05ba9739.entry.js +0 -1
  533. package/dist/web-components-library/p-06c94384.entry.js +0 -1
  534. package/dist/web-components-library/p-100207d8.entry.js +0 -1
  535. package/dist/web-components-library/p-1086a0fa.entry.js +0 -1
  536. package/dist/web-components-library/p-112455b1.js +0 -1
  537. package/dist/web-components-library/p-138bc87e.entry.js +0 -1
  538. package/dist/web-components-library/p-13fc4378.js +0 -1
  539. package/dist/web-components-library/p-15a606ce.entry.js +0 -1
  540. package/dist/web-components-library/p-19876b0d.entry.js +0 -1
  541. package/dist/web-components-library/p-1d805413.entry.js +0 -1
  542. package/dist/web-components-library/p-29fa362c.entry.js +0 -1
  543. package/dist/web-components-library/p-2cb45213.entry.js +0 -1
  544. package/dist/web-components-library/p-33305cc8.entry.js +0 -1
  545. package/dist/web-components-library/p-3636078a.entry.js +0 -1
  546. package/dist/web-components-library/p-376f2928.entry.js +0 -1
  547. package/dist/web-components-library/p-392899e9.entry.js +0 -1
  548. package/dist/web-components-library/p-39a446ec.entry.js +0 -1
  549. package/dist/web-components-library/p-39b7ad4f.entry.js +0 -1
  550. package/dist/web-components-library/p-3bb2d909.entry.js +0 -1
  551. package/dist/web-components-library/p-417482b0.entry.js +0 -1
  552. package/dist/web-components-library/p-485fd3db.entry.js +0 -1
  553. package/dist/web-components-library/p-49f4e9a0.entry.js +0 -1
  554. package/dist/web-components-library/p-4d0d5d93.entry.js +0 -1
  555. package/dist/web-components-library/p-50f78a81.entry.js +0 -1
  556. package/dist/web-components-library/p-5338cc37.entry.js +0 -1
  557. package/dist/web-components-library/p-571b55dc.js +0 -1
  558. package/dist/web-components-library/p-57c6d414.entry.js +0 -1
  559. package/dist/web-components-library/p-5944a8f2.entry.js +0 -1
  560. package/dist/web-components-library/p-5c177ba5.entry.js +0 -1
  561. package/dist/web-components-library/p-5d274fcc.entry.js +0 -1
  562. package/dist/web-components-library/p-5f202970.entry.js +0 -1
  563. package/dist/web-components-library/p-5fd3ed9c.entry.js +0 -1
  564. package/dist/web-components-library/p-61c00383.entry.js +0 -1
  565. package/dist/web-components-library/p-68410ea2.js +0 -1
  566. package/dist/web-components-library/p-6a4403c6.entry.js +0 -1
  567. package/dist/web-components-library/p-6ed0aaab.entry.js +0 -1
  568. package/dist/web-components-library/p-7426f322.js +0 -1
  569. package/dist/web-components-library/p-7588fbf0.js +0 -1
  570. package/dist/web-components-library/p-7907bdf7.entry.js +0 -1
  571. package/dist/web-components-library/p-7b990086.js +0 -1
  572. package/dist/web-components-library/p-7c5ddeb0.entry.js +0 -1
  573. package/dist/web-components-library/p-80e52459.js +0 -1
  574. package/dist/web-components-library/p-81006561.js +0 -2
  575. package/dist/web-components-library/p-86758f78.entry.js +0 -1
  576. package/dist/web-components-library/p-8a45ae2a.entry.js +0 -1
  577. package/dist/web-components-library/p-8c31e60b.entry.js +0 -1
  578. package/dist/web-components-library/p-9021c92a.js +0 -1
  579. package/dist/web-components-library/p-94afe4dd.entry.js +0 -1
  580. package/dist/web-components-library/p-9508cd3e.js +0 -1
  581. package/dist/web-components-library/p-95370f75.js +0 -1
  582. package/dist/web-components-library/p-96fc8078.entry.js +0 -1
  583. package/dist/web-components-library/p-98204840.entry.js +0 -1
  584. package/dist/web-components-library/p-98badafc.js +0 -1
  585. package/dist/web-components-library/p-9b0bcd43.entry.js +0 -1
  586. package/dist/web-components-library/p-9c1ed1e8.entry.js +0 -1
  587. package/dist/web-components-library/p-9ff2fc8e.entry.js +0 -1
  588. package/dist/web-components-library/p-a01baa71.js +0 -1
  589. package/dist/web-components-library/p-a1663ab1.entry.js +0 -1
  590. package/dist/web-components-library/p-a3587fd6.entry.js +0 -16
  591. package/dist/web-components-library/p-a4502b1e.entry.js +0 -1
  592. package/dist/web-components-library/p-a48e5c46.entry.js +0 -1
  593. package/dist/web-components-library/p-a50262e8.entry.js +0 -1
  594. package/dist/web-components-library/p-a862a070.entry.js +0 -1
  595. package/dist/web-components-library/p-a9d2edee.entry.js +0 -1
  596. package/dist/web-components-library/p-acb89afa.entry.js +0 -1
  597. package/dist/web-components-library/p-b2527ca1.entry.js +0 -1
  598. package/dist/web-components-library/p-b497e33e.js +0 -1
  599. package/dist/web-components-library/p-b99039ed.js +0 -1
  600. package/dist/web-components-library/p-c298cb2f.js +0 -1
  601. package/dist/web-components-library/p-c44d87bd.entry.js +0 -1
  602. package/dist/web-components-library/p-c6e7991f.entry.js +0 -1
  603. package/dist/web-components-library/p-c9bc5148.js +0 -1
  604. package/dist/web-components-library/p-ca472d1c.entry.js +0 -1
  605. package/dist/web-components-library/p-cbb670c5.js +0 -1
  606. package/dist/web-components-library/p-cc009af8.entry.js +0 -1
  607. package/dist/web-components-library/p-cd561d69.js +0 -1
  608. package/dist/web-components-library/p-d2946762.entry.js +0 -1
  609. package/dist/web-components-library/p-db0a64af.js +0 -1
  610. package/dist/web-components-library/p-dd4fc386.entry.js +0 -1
  611. package/dist/web-components-library/p-de5688e9.entry.js +0 -1
  612. package/dist/web-components-library/p-decbd59d.entry.js +0 -1
  613. package/dist/web-components-library/p-e43e61ac.js +0 -7
  614. package/dist/web-components-library/p-e54d4ef9.entry.js +0 -1
  615. package/dist/web-components-library/p-e7c6d651.entry.js +0 -1
  616. package/dist/web-components-library/p-ed42ceca.entry.js +0 -1
  617. package/dist/web-components-library/p-f058316f.entry.js +0 -1
  618. package/dist/web-components-library/p-f14105c6.entry.js +0 -1
  619. package/dist/web-components-library/p-f3cc3f27.entry.js +0 -1
  620. package/dist/web-components-library/p-f46fa177.entry.js +0 -1
  621. package/dist/web-components-library/p-f4e2e76b.entry.js +0 -1
  622. package/dist/web-components-library/p-f5ae1514.entry.js +0 -1
  623. package/dist/web-components-library/p-f5bc7dda.entry.js +0 -1
  624. package/dist/web-components-library/p-f8383e14.entry.js +0 -1
  625. package/dist/web-components-library/p-f976f29f.js +0 -1
  626. package/dist/web-components-library/p-f9873cb9.entry.js +0 -1
  627. package/dist/web-components-library/p-fd58b7a2.entry.js +0 -1
  628. package/dist/web-components-library/p-fde82dc3.js +0 -1
  629. package/dist/web-components-library/p-ff5a6e34.entry.js +0 -1
  630. package/dist/web-components-library/p-ffde06d1.entry.js +0 -1
  631. package/dist/web-components-library/web-components-library.css +0 -3
  632. package/dist/web-components-library/web-components-library.esm.js +0 -1
  633. package/loader/cdn.js +0 -3
  634. package/loader/index.cjs.js +0 -3
  635. package/loader/index.d.ts +0 -12
  636. package/loader/index.es2017.js +0 -3
  637. package/loader/index.js +0 -4
  638. package/loader/package.json +0 -11
  639. package/react/components.d.ts +0 -97
  640. package/react/components.js +0 -104
  641. package/react/components.js.map +0 -1
  642. package/react/index.d.ts +0 -1
  643. package/react/index.js +0 -14
  644. package/react/index.js.map +0 -1
  645. package/react/react-component-lib/createComponent.d.ts +0 -10
  646. package/react/react-component-lib/createComponent.js +0 -98
  647. package/react/react-component-lib/createComponent.js.map +0 -1
  648. package/react/react-component-lib/createOverlayComponent.d.ts +0 -21
  649. package/react/react-component-lib/createOverlayComponent.js +0 -116
  650. package/react/react-component-lib/createOverlayComponent.js.map +0 -1
  651. package/react/react-component-lib/index.d.ts +0 -2
  652. package/react/react-component-lib/index.js +0 -8
  653. package/react/react-component-lib/index.js.map +0 -1
  654. package/react/react-component-lib/interfaces.d.ts +0 -29
  655. package/react/react-component-lib/interfaces.js +0 -3
  656. package/react/react-component-lib/interfaces.js.map +0 -1
  657. package/react/react-component-lib/utils/attachProps.d.ts +0 -12
  658. package/react/react-component-lib/utils/attachProps.js +0 -105
  659. package/react/react-component-lib/utils/attachProps.js.map +0 -1
  660. package/react/react-component-lib/utils/case.d.ts +0 -2
  661. package/react/react-component-lib/utils/case.js +0 -12
  662. package/react/react-component-lib/utils/case.js.map +0 -1
  663. package/react/react-component-lib/utils/dev.d.ts +0 -2
  664. package/react/react-component-lib/utils/dev.js +0 -18
  665. package/react/react-component-lib/utils/dev.js.map +0 -1
  666. package/react/react-component-lib/utils/index.d.ts +0 -10
  667. package/react/react-component-lib/utils/index.js +0 -54
  668. package/react/react-component-lib/utils/index.js.map +0 -1
  669. package/www/assets/favicon.png +0 -0
  670. package/www/assets/images/png/arrowDown.png +0 -0
  671. package/www/assets/images/png/arrowUp.png +0 -0
  672. package/www/assets/images/png/back-button.png +0 -0
  673. package/www/assets/images/png/bovolenta-logo.png +0 -0
  674. package/www/assets/images/png/cart-icon.png +0 -0
  675. package/www/assets/images/png/cea-logo.png +0 -0
  676. package/www/assets/images/png/clitt-logo.png +0 -0
  677. package/www/assets/images/png/down-arrow.png +0 -0
  678. package/www/assets/images/png/download.png +0 -0
  679. package/www/assets/images/png/facebook.png +0 -0
  680. package/www/assets/images/png/gruoss.png +0 -0
  681. package/www/assets/images/png/instagram.png +0 -0
  682. package/www/assets/images/png/lucisano-logo.png +0 -0
  683. package/www/assets/images/png/myzanichelli-logo.png +0 -0
  684. package/www/assets/images/png/question-mark.png +0 -0
  685. package/www/assets/images/png/suitcase-icon.png +0 -0
  686. package/www/assets/images/png/twitter.png +0 -0
  687. package/www/assets/images/png/up-arrow.png +0 -0
  688. package/www/assets/images/png/user.png +0 -0
  689. package/www/assets/images/png/user_transparent.png +0 -0
  690. package/www/assets/images/png/youtube.png +0 -0
  691. package/www/assets/images/png/zanichelli-add-book-gray@8x.png +0 -0
  692. package/www/assets/images/png/zanichelli-book-remove-gray@8x.png +0 -0
  693. package/www/assets/images/png/zanichelli-error-image.png +0 -0
  694. package/www/assets/images/png/zanichelli-external-link-2@8x.png +0 -0
  695. package/www/assets/images/png/zanichelli-external-link-3@8x.png +0 -0
  696. package/www/assets/images/png/zanichelli-external-link@8x.png +0 -0
  697. package/www/assets/images/png/zanichelli-logo-2.png +0 -0
  698. package/www/assets/images/png/zanichelli-logo-footer.png +0 -0
  699. package/www/assets/images/png/zanichelli-logo.png +0 -0
  700. package/www/build/index.esm.js +0 -1
  701. package/www/build/p-01e2e8d4.entry.js +0 -1
  702. package/www/build/p-035fbb3e.entry.js +0 -1
  703. package/www/build/p-03b13390.entry.js +0 -1
  704. package/www/build/p-04b2ab0d.entry.js +0 -1
  705. package/www/build/p-05ba9739.entry.js +0 -1
  706. package/www/build/p-06c94384.entry.js +0 -1
  707. package/www/build/p-100207d8.entry.js +0 -1
  708. package/www/build/p-1086a0fa.entry.js +0 -1
  709. package/www/build/p-112455b1.js +0 -1
  710. package/www/build/p-138bc87e.entry.js +0 -1
  711. package/www/build/p-13fc4378.js +0 -1
  712. package/www/build/p-15a606ce.entry.js +0 -1
  713. package/www/build/p-19876b0d.entry.js +0 -1
  714. package/www/build/p-1d805413.entry.js +0 -1
  715. package/www/build/p-29fa362c.entry.js +0 -1
  716. package/www/build/p-2cb45213.entry.js +0 -1
  717. package/www/build/p-33305cc8.entry.js +0 -1
  718. package/www/build/p-3636078a.entry.js +0 -1
  719. package/www/build/p-376f2928.entry.js +0 -1
  720. package/www/build/p-392899e9.entry.js +0 -1
  721. package/www/build/p-39a446ec.entry.js +0 -1
  722. package/www/build/p-39b7ad4f.entry.js +0 -1
  723. package/www/build/p-3bb2d909.entry.js +0 -1
  724. package/www/build/p-417482b0.entry.js +0 -1
  725. package/www/build/p-485fd3db.entry.js +0 -1
  726. package/www/build/p-49f4e9a0.entry.js +0 -1
  727. package/www/build/p-4d0d5d93.entry.js +0 -1
  728. package/www/build/p-50f78a81.entry.js +0 -1
  729. package/www/build/p-5338cc37.entry.js +0 -1
  730. package/www/build/p-571b55dc.js +0 -1
  731. package/www/build/p-57c6d414.entry.js +0 -1
  732. package/www/build/p-5944a8f2.entry.js +0 -1
  733. package/www/build/p-5c177ba5.entry.js +0 -1
  734. package/www/build/p-5d274fcc.entry.js +0 -1
  735. package/www/build/p-5f202970.entry.js +0 -1
  736. package/www/build/p-5fd3ed9c.entry.js +0 -1
  737. package/www/build/p-61c00383.entry.js +0 -1
  738. package/www/build/p-68410ea2.js +0 -1
  739. package/www/build/p-6a4403c6.entry.js +0 -1
  740. package/www/build/p-6ed0aaab.entry.js +0 -1
  741. package/www/build/p-7426f322.js +0 -1
  742. package/www/build/p-7588fbf0.js +0 -1
  743. package/www/build/p-7907bdf7.entry.js +0 -1
  744. package/www/build/p-7b990086.js +0 -1
  745. package/www/build/p-7c5ddeb0.entry.js +0 -1
  746. package/www/build/p-80e52459.js +0 -1
  747. package/www/build/p-81006561.js +0 -2
  748. package/www/build/p-86758f78.entry.js +0 -1
  749. package/www/build/p-8a45ae2a.entry.js +0 -1
  750. package/www/build/p-8c31e60b.entry.js +0 -1
  751. package/www/build/p-9021c92a.js +0 -1
  752. package/www/build/p-94afe4dd.entry.js +0 -1
  753. package/www/build/p-9508cd3e.js +0 -1
  754. package/www/build/p-95370f75.js +0 -1
  755. package/www/build/p-96fc8078.entry.js +0 -1
  756. package/www/build/p-98204840.entry.js +0 -1
  757. package/www/build/p-98badafc.js +0 -1
  758. package/www/build/p-9b0bcd43.entry.js +0 -1
  759. package/www/build/p-9c1ed1e8.entry.js +0 -1
  760. package/www/build/p-9ff2fc8e.entry.js +0 -1
  761. package/www/build/p-a01baa71.js +0 -1
  762. package/www/build/p-a1663ab1.entry.js +0 -1
  763. package/www/build/p-a3587fd6.entry.js +0 -16
  764. package/www/build/p-a4502b1e.entry.js +0 -1
  765. package/www/build/p-a48e5c46.entry.js +0 -1
  766. package/www/build/p-a50262e8.entry.js +0 -1
  767. package/www/build/p-a69eedf3.css +0 -3
  768. package/www/build/p-a862a070.entry.js +0 -1
  769. package/www/build/p-a9d2edee.entry.js +0 -1
  770. package/www/build/p-acb89afa.entry.js +0 -1
  771. package/www/build/p-b2527ca1.entry.js +0 -1
  772. package/www/build/p-b497e33e.js +0 -1
  773. package/www/build/p-b99039ed.js +0 -1
  774. package/www/build/p-c298cb2f.js +0 -1
  775. package/www/build/p-c44d87bd.entry.js +0 -1
  776. package/www/build/p-c6e7991f.entry.js +0 -1
  777. package/www/build/p-c9bc5148.js +0 -1
  778. package/www/build/p-ca472d1c.entry.js +0 -1
  779. package/www/build/p-cbb670c5.js +0 -1
  780. package/www/build/p-cc009af8.entry.js +0 -1
  781. package/www/build/p-cd561d69.js +0 -1
  782. package/www/build/p-d2946762.entry.js +0 -1
  783. package/www/build/p-d2c232e5.js +0 -1
  784. package/www/build/p-db0a64af.js +0 -1
  785. package/www/build/p-dd4fc386.entry.js +0 -1
  786. package/www/build/p-de5688e9.entry.js +0 -1
  787. package/www/build/p-decbd59d.entry.js +0 -1
  788. package/www/build/p-e43e61ac.js +0 -7
  789. package/www/build/p-e54d4ef9.entry.js +0 -1
  790. package/www/build/p-e7c6d651.entry.js +0 -1
  791. package/www/build/p-ed42ceca.entry.js +0 -1
  792. package/www/build/p-f058316f.entry.js +0 -1
  793. package/www/build/p-f14105c6.entry.js +0 -1
  794. package/www/build/p-f3cc3f27.entry.js +0 -1
  795. package/www/build/p-f46fa177.entry.js +0 -1
  796. package/www/build/p-f4e2e76b.entry.js +0 -1
  797. package/www/build/p-f5ae1514.entry.js +0 -1
  798. package/www/build/p-f5bc7dda.entry.js +0 -1
  799. package/www/build/p-f8383e14.entry.js +0 -1
  800. package/www/build/p-f976f29f.js +0 -1
  801. package/www/build/p-f9873cb9.entry.js +0 -1
  802. package/www/build/p-fd58b7a2.entry.js +0 -1
  803. package/www/build/p-fde82dc3.js +0 -1
  804. package/www/build/p-ff5a6e34.entry.js +0 -1
  805. package/www/build/p-ffde06d1.entry.js +0 -1
  806. package/www/build/web-components-library.css +0 -3
  807. package/www/build/web-components-library.esm.js +0 -1
  808. package/www/build/web-components-library.js +0 -33
  809. package/www/host.config.json +0 -15
  810. package/www/index.html +0 -1
  811. package/www/pages/book-cards.html +0 -595
  812. package/www/pages/file-upload.html +0 -258
  813. package/www/pages/notification.html +0 -299
@@ -1,1044 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4968ce56.js';
2
- import { O as OffCanvasVariant, v as TransitionDirection, B as ButtonVariant, e as ControlSize, c as ButtonType, D as DividerSize, h as DividerOrientation, k as LabelPosition, I as InputType, i as ListSize, m as ListType, j as ExpandableListButtonAlign, l as ListDividerType, E as ExpandableListStyle, g as KeyboardCode } from './index-47f23745.js';
3
- import { I as ICONS } from './icons-e3232103.js';
4
- import { r as randomId, b as boolean, h as handleEnterKeydSubmit } from './utils-2a4ef29d.js';
5
- import './breakpoints-9b81eb1b.js';
6
-
7
- 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=\"top-subtitle\"]),::slotted([slot=\"subtitle\"]){margin:0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;line-height:26px}::slotted([slot=\"subtitle\"]){font-weight:500}::slotted([slot=\"top-subtitle\"]){font-weight:400}.menu-container{display:flex;width:100%;flex:1 auto;flex-flow:row wrap}:host([menu-length=\"0\"]:not([enable-search])) .menu-container,.menu-container:empty{display:none}.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{overflow:hidden}.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:none}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column;row-gap:calc(var(--space-unit) * 2.5)}z-offcanvas[open] .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}}";
8
-
9
- const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
10
- const ZAppHeader = class {
11
- constructor(hostRef) {
12
- registerInstance(this, hostRef);
13
- this.sticking = createEvent(this, "sticking", 7);
14
- /**
15
- * Stuck mode for the header.
16
- * You can programmatically set it using an IntersectionObserver.
17
- */
18
- this.stuck = false;
19
- /**
20
- * Should place an overlay over the hero image.
21
- * Useful for legibility purpose.
22
- */
23
- this.overlay = false;
24
- /**
25
- * Control menu bar position in the header.
26
- * - auto: the menu bar is positioned near the title
27
- * - stack: the menu bar is positioned below the title
28
- * - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
29
- */
30
- this.flow = "auto";
31
- /**
32
- * The opening state of the drawer.
33
- */
34
- this.drawerOpen = false;
35
- /**
36
- * Enable the search bar.
37
- */
38
- this.enableSearch = false;
39
- /**
40
- * Placeholder text for the search bar.
41
- */
42
- this.searchPlaceholder = "Cerca";
43
- /**
44
- * Search string for the search bar.
45
- */
46
- this.searchString = "";
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.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 || 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 (h("z-button", { class: "search-page-button", variant: ButtonVariant.SECONDARY, href: this.searchPageUrl, icon: "search", size: ControlSize.X_SMALL }));
163
- }
164
- renderSeachbar(searchButtonIconOnly) {
165
- return (h("z-searchbar", { value: this.searchString, placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: searchButtonIconOnly, size: ControlSize.X_SMALL, variant: ButtonVariant.SECONDARY, preventSubmit: this.searchString.length < 3, onSearchTyping: (e) => (this.searchString = e.detail) }));
166
- }
167
- componentDidLoad() {
168
- this.collectMenuElements();
169
- this.onStuckMode();
170
- this.evaluateViewport();
171
- }
172
- render() {
173
- return (h(Host, { "menu-length": this.menuLength }, this.hasHero && (h("div", { class: "hero-container" }, h("slot", { name: "hero" }, this.hero && (h("img", { alt: "", src: this.hero }))))), h("div", { class: "heading-panel", ref: (el) => (this.container = el) }, h("div", { class: "heading-container" }, h("div", { class: "heading-subtitle" }, h("slot", { name: "top-subtitle" })), h("div", { class: "heading-title" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("slot", { name: "title" }), this.renderSearchLinkButton()), h("div", { class: "heading-subtitle" }, h("slot", { name: "subtitle" }))), (this.canShowMenu || this.canShowSearchbar) && (h("div", { class: "menu-container" }, this.canShowMenu && (h("slot", { name: "menu", onSlotchange: this.collectMenuElements })), this.canShowSearchbar && this.renderSeachbar(this.currentViewport !== "desktop")))), h("z-offcanvas", { variant: OffCanvasVariant.OVERLAY, transitiondirection: TransitionDirection.RIGHT, open: this.drawerOpen, onCanvasOpenStatusChanged: (ev) => (this.drawerOpen = ev.detail) }, h("button", { class: "drawer-close", "aria-label": "Chiudi menu", onClick: this.closeDrawer, slot: "canvasContent", "aria-hidden": `${!this.drawerOpen}`, disabled: !this.drawerOpen }, h("z-icon", { name: "close" })), h("div", { class: "drawer-content", slot: "canvasContent", "aria-hidden": `${!this.drawerOpen}` }, h("slot", { name: "menu", onSlotchange: this.collectMenuElements }))), this._stuck && (h("div", { class: "heading-stuck" }, h("div", { class: "heading-stuck-content" }, this.menuLength > 0 && (h("button", { class: "drawer-trigger", "aria-label": "Apri menu", onClick: this.openDrawer }, h("z-icon", { name: "burger-menu" }))), h("div", { class: "heading-title" }, h("slot", { name: "stucked-title" }, this.title)), this.renderSearchLinkButton(), this.canShowSearchbar && this.currentViewport === "desktop" && this.renderSeachbar(false))))));
174
- }
175
- get hostElement() { return getElement(this); }
176
- static get watchers() { return {
177
- "_stuck": ["onStuck"],
178
- "drawerOpen": ["setMenuFloatingMode"],
179
- "stuck": ["onStuckMode"]
180
- }; }
181
- };
182
- ZAppHeader.style = stylesCss$a;
183
-
184
- 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:var(--color-primary02);background-color:var(--color-primary02);color:var(--color-primary01)}@media (hover: hover){[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-surface01);background-color:var(--color-surface01);color:var(--color-primary01)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-surface01);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant=\"tertiary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-disabled02)}";
185
-
186
- const ZButton = class {
187
- constructor(hostRef) {
188
- registerInstance(this, hostRef);
189
- /** defines a string value that labels an interactive element, used for accessibility. */
190
- this.ariaLabel = "";
191
- /** HTML button disabled attribute. */
192
- this.disabled = false;
193
- /** HTML button type attribute. */
194
- this.type = ButtonType.BUTTON;
195
- /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
196
- this.variant = ButtonVariant.PRIMARY;
197
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
198
- this.size = ControlSize.BIG;
199
- }
200
- getAttributes() {
201
- return {
202
- id: this.htmlid,
203
- class: {
204
- "z-button--container": true,
205
- "z-button--has-text": !!this.hostElement.textContent.trim(),
206
- },
207
- };
208
- }
209
- render() {
210
- if (this.href) {
211
- return (h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
212
- }
213
- return (h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, role: this.role, disabled: this.disabled }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
214
- }
215
- get hostElement() { return getElement(this); }
216
- };
217
- ZButton.style = stylesCss$9;
218
-
219
- 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)}";
220
-
221
- const ZDivider = class {
222
- constructor(hostRef) {
223
- registerInstance(this, hostRef);
224
- /** [optional] Divider size */
225
- this.size = DividerSize.SMALL;
226
- /** [optional] Divider color */
227
- this.color = "gray200";
228
- /** [optional] Divider orintation */
229
- this.orientation = DividerOrientation.HORIZONTAL;
230
- }
231
- render() {
232
- return (h(Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
233
- }
234
- };
235
- ZDivider.style = stylesCss$8;
236
-
237
- 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)}";
238
-
239
- const ZIcon = class {
240
- constructor(hostRef) {
241
- registerInstance(this, hostRef);
242
- }
243
- selectPathOrPolygon(iconValue) {
244
- if (iconValue === null || iconValue === void 0 ? void 0 : iconValue.startsWith("M")) {
245
- return h("path", { d: ICONS[this.name] });
246
- }
247
- return h("polygon", { points: ICONS[this.name] });
248
- }
249
- render() {
250
- return (h(Host, { "aria-hidden": "true" }, h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(ICONS[this.name]))));
251
- }
252
- };
253
- ZIcon.style = stylesCss$7;
254
-
255
- 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-input-field02)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--blue500)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{box-shadow:none}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled02)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-icon02)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size=\"small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size=\"x-small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-text01);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled02)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
256
-
257
- const ZInput = class {
258
- constructor(hostRef) {
259
- registerInstance(this, hostRef);
260
- this.inputChange = createEvent(this, "inputChange", 7);
261
- this.startTyping = createEvent(this, "startTyping", 7);
262
- this.stopTyping = createEvent(this, "stopTyping", 7);
263
- this.inputCheck = createEvent(this, "inputCheck", 7);
264
- /** the id of the input element */
265
- this.htmlid = `id-${randomId()}`;
266
- /** the input aria-label */
267
- this.ariaLabel = "";
268
- /** the input is disabled */
269
- this.disabled = false;
270
- /** the input is readonly */
271
- this.readonly = false;
272
- /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
273
- this.required = false;
274
- /** checked: available for checkbox, radio */
275
- this.checked = false;
276
- /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
277
- this.message = true;
278
- /** the input label position: available for checkbox, radio */
279
- this.labelPosition = LabelPosition.RIGHT;
280
- /** render clear icon when typing (optional): available for text */
281
- this.hasclearicon = true;
282
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
283
- this.size = ControlSize.BIG;
284
- this.isTyping = false;
285
- this.passwordHidden = true;
286
- this.typingtimeout = 300;
287
- }
288
- inputCheckListener(e) {
289
- const data = e.detail;
290
- switch (this.type) {
291
- case InputType.RADIO:
292
- if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
293
- this.checked = false;
294
- }
295
- break;
296
- }
297
- }
298
- /** get checked status */
299
- async isChecked() {
300
- switch (this.type) {
301
- case InputType.CHECKBOX:
302
- case InputType.RADIO:
303
- return this.checked;
304
- default:
305
- console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
306
- return false;
307
- }
308
- }
309
- emitInputChange(value) {
310
- if (!this.isTyping) {
311
- this.emitStartTyping();
312
- }
313
- let validity;
314
- if (this.type === InputType.TEXTAREA) {
315
- validity = this.getValidity("textarea");
316
- }
317
- else {
318
- validity = this.getValidity("input");
319
- }
320
- this.value = value;
321
- this.inputChange.emit({ value, validity });
322
- clearTimeout(this.timer);
323
- this.timer = setTimeout(() => {
324
- this.emitStopTyping(this.value, validity);
325
- }, this.typingtimeout);
326
- }
327
- emitStartTyping() {
328
- this.isTyping = true;
329
- this.startTyping.emit();
330
- }
331
- emitStopTyping(value, validity) {
332
- this.isTyping = false;
333
- this.stopTyping.emit({
334
- value: value,
335
- validity: validity,
336
- });
337
- }
338
- emitInputCheck(checked) {
339
- this.inputCheck.emit({
340
- id: this.htmlid,
341
- checked: checked,
342
- type: this.type,
343
- name: this.name,
344
- value: this.value,
345
- validity: this.getValidity("input"),
346
- });
347
- }
348
- getValidity(type) {
349
- const input = this.hostElement.querySelector(type);
350
- return input.validity;
351
- }
352
- /* START text/password/email/number */
353
- getTextAttributes() {
354
- return {
355
- id: this.htmlid,
356
- name: this.name,
357
- placeholder: this.placeholder,
358
- value: this.value,
359
- disabled: this.disabled,
360
- readonly: this.readonly,
361
- required: this.required,
362
- title: this.htmltitle,
363
- minlength: this.minlength,
364
- maxlength: this.maxlength,
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 != 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 != InputType.PASSWORD &&
385
- type != InputType.TEXT &&
386
- type != InputType.TEL &&
387
- type != InputType.SEARCH &&
388
- type != InputType.URL &&
389
- type != InputType.EMAIL) {
390
- return;
391
- }
392
- return {
393
- pattern: this.pattern,
394
- };
395
- }
396
- renderInputText(type = 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 === InputType.PASSWORD) {
400
- Object.assign(attr.class, { "has-icon": true });
401
- }
402
- if (this.hasclearicon && type != InputType.NUMBER) {
403
- Object.assign(attr.class, { "has-clear-icon": true });
404
- }
405
- return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { ref: (el) => (this.inputRef = el) })), this.renderIcons()), this.renderMessage()));
406
- }
407
- renderLabel() {
408
- if (!this.label) {
409
- return;
410
- }
411
- return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
412
- }
413
- renderIcons() {
414
- return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
415
- }
416
- renderIcon() {
417
- if (this.type === InputType.PASSWORD) {
418
- return this.renderShowHidePassword();
419
- }
420
- if (!this.icon) {
421
- return;
422
- }
423
- return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1, "aria-hidden": "true" }, h("z-icon", { name: this.icon, class: this.size })));
424
- }
425
- renderResetIcon() {
426
- let hidden = false;
427
- if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
428
- hidden = true;
429
- }
430
- return (h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => {
431
- this.inputRef.value = "";
432
- this.emitInputChange("");
433
- } }, h("z-icon", { name: "multiply", class: this.size })));
434
- }
435
- renderShowHidePassword() {
436
- return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
437
- }
438
- renderMessage() {
439
- if (boolean(this.message) === false) {
440
- return;
441
- }
442
- return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
443
- }
444
- /* END text/password/email/number */
445
- /* START textarea */
446
- renderTextarea() {
447
- const attributes = this.getTextAttributes();
448
- const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
449
- return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, ariaLabel))), this.renderMessage()));
450
- }
451
- /* END textarea */
452
- handleCheck(ev) {
453
- this.checked = ev.target.checked;
454
- this.emitInputCheck(this.checked);
455
- }
456
- /* START checkbox */
457
- renderCheckbox() {
458
- return (h("div", { class: "checkbox-wrapper" }, 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 }), h("label", { htmlFor: this.htmlid, class: {
459
- "checkbox-label": true,
460
- "after": this.labelPosition === LabelPosition.RIGHT,
461
- "before": this.labelPosition === LabelPosition.LEFT,
462
- } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
463
- }
464
- /* END checkbox */
465
- /* START radio */
466
- renderRadio() {
467
- return (h("div", { class: "radio-wrapper" }, 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 }), h("label", { htmlFor: this.htmlid, class: {
468
- "radio-label": true,
469
- "after": this.labelPosition === LabelPosition.RIGHT,
470
- "before": this.labelPosition === LabelPosition.LEFT,
471
- } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
472
- }
473
- /* END radio */
474
- render() {
475
- let input;
476
- switch (this.type) {
477
- case InputType.TEXTAREA:
478
- input = this.renderTextarea();
479
- break;
480
- case InputType.CHECKBOX:
481
- input = this.renderCheckbox();
482
- break;
483
- case InputType.RADIO:
484
- input = this.renderRadio();
485
- break;
486
- default:
487
- input = this.renderInputText(this.type);
488
- }
489
- return h(Host, null, input);
490
- }
491
- get hostElement() { return getElement(this); }
492
- };
493
- ZInput.style = stylesCss$6;
494
-
495
- 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)}";
496
-
497
- const ZInputMessage = class {
498
- constructor(hostRef) {
499
- registerInstance(this, hostRef);
500
- this.statusIcons = {
501
- success: "checkmark-circle",
502
- error: "multiply-circled",
503
- warning: "exclamation-circle",
504
- };
505
- this.statusRole = {};
506
- }
507
- onMessageChange() {
508
- this.statusRole = this.message && this.status ? { role: "alert" } : {};
509
- }
510
- componentWillLoad() {
511
- this.onMessageChange();
512
- }
513
- render() {
514
- return (h(Host, Object.assign({}, this.statusRole, { "aria-label": this.message }), this.statusIcons[this.status] && this.message && h("z-icon", { name: this.statusIcons[this.status] }), h("span", { innerHTML: this.message })));
515
- }
516
- static get watchers() { return {
517
- "message": ["onMessageChange"],
518
- "status": ["onMessageChange"]
519
- }; }
520
- };
521
- ZInputMessage.style = stylesCss$5;
522
-
523
- const stylesCss$4 = ":host{display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";
524
-
525
- const ZList = class {
526
- constructor(hostRef) {
527
- registerInstance(this, hostRef);
528
- /**
529
- * [optional] Sets size of inside elements.
530
- */
531
- this.size = ListSize.MEDIUM;
532
- /**
533
- * [optional] type of the list marker for each element
534
- */
535
- this.listType = ListType.NONE;
536
- }
537
- setChildrenSizeType() {
538
- const children = this.host.children;
539
- for (let i = 0; i < children.length; i++) {
540
- children[i].setAttribute("size", this.size);
541
- children[i].setAttribute("list-type", this.listType);
542
- children[i].setAttribute("list-element-position", (i + 1).toString());
543
- }
544
- }
545
- componentDidLoad() {
546
- this.setChildrenSizeType();
547
- }
548
- render() {
549
- return (h(Host, { role: "list" }, h("slot", null)));
550
- }
551
- get host() { return getElement(this); }
552
- };
553
- ZList.style = stylesCss$4;
554
-
555
- const stylesCss$3 = ":host{outline:none}:host>.container,:host>.container-contextual-menu{--background-color-list-element:var(--color-surface01);--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}";
556
-
557
- const ZListElement = class {
558
- /**
559
- * Constructor.
560
- */
561
- constructor(hostRef) {
562
- registerInstance(this, hostRef);
563
- this.accessibleFocus = createEvent(this, "accessibleFocus", 7);
564
- this.clickItem = createEvent(this, "clickItem", 7);
565
- /**
566
- * [optional] Align expandable button left or right.
567
- */
568
- this.alignButton = ExpandableListButtonAlign.LEFT;
569
- /**
570
- * [optional] Sets element clickable.
571
- */
572
- this.clickable = false;
573
- /**
574
- * [optional] Sets the divider color.
575
- */
576
- this.dividerColor = "color-surface03";
577
- /**
578
- * [optional] Sets the position where to insert the divider.
579
- */
580
- this.dividerType = ListDividerType.NONE;
581
- /**
582
- * [optional] Sets the divider size.
583
- */
584
- this.dividerSize = DividerSize.SMALL;
585
- /**
586
- * [optional] Sets element as expandable.
587
- */
588
- this.expandable = false;
589
- /**
590
- * [optional] Sets expandable style to element.
591
- */
592
- this.expandableStyle = ExpandableListStyle.ACCORDION;
593
- /**
594
- * [optional] Sets size of inside elements.
595
- */
596
- this.size = ListSize.MEDIUM;
597
- /**
598
- * [optional] Sets text color of the element.
599
- */
600
- this.color = "none";
601
- /**
602
- * [optional] Sets disabled style of the element.
603
- */
604
- this.disabled = false;
605
- /**
606
- * [optional] If is used in ZContextualMenu component
607
- */
608
- this.isContextualMenu = false;
609
- /**
610
- * [optional] position of the list element inside the list or the group
611
- */
612
- this.listElementPosition = "0";
613
- /**
614
- * [optional] type of the list marker for each element
615
- */
616
- this.listType = ListType.NONE;
617
- this.showInnerContent = false;
618
- this.openElementConfig = {
619
- accordion: {
620
- open: "minus-circled",
621
- close: "plus-circled",
622
- },
623
- menu: {
624
- open: "chevron-up",
625
- close: "chevron-down",
626
- },
627
- };
628
- this.handleClick = this.handleClick.bind(this);
629
- this.handleKeyDown = this.handleKeyDown.bind(this);
630
- }
631
- accessibleFocusHandler(e) {
632
- if (this.listElementId === e.detail) {
633
- const toFocus = this.host.shadowRoot.getElementById(`z-list-element-id-${e.detail}`);
634
- toFocus.focus();
635
- }
636
- }
637
- /**
638
- * Handler for click on element. If element is expandable, change state.
639
- * @returns void
640
- */
641
- handleClick() {
642
- this.clickItem.emit(this.listElementId);
643
- if (!this.expandable) {
644
- return;
645
- }
646
- this.showInnerContent = !this.showInnerContent;
647
- }
648
- calculateClass() {
649
- if (this.isContextualMenu) {
650
- return "container-contextual-menu";
651
- }
652
- return "container";
653
- }
654
- handleKeyDown(event) {
655
- const expandByKey = event.code === KeyboardCode.ENTER;
656
- switch (event.code) {
657
- case KeyboardCode.ARROW_DOWN:
658
- event.preventDefault();
659
- this.accessibleFocus.emit(this.listElementId + 1);
660
- break;
661
- case KeyboardCode.ARROW_UP:
662
- event.preventDefault();
663
- this.accessibleFocus.emit(this.listElementId - 1);
664
- break;
665
- case KeyboardCode.ENTER:
666
- event.preventDefault();
667
- this.clickItem.emit(this.listElementId);
668
- break;
669
- }
670
- if (!this.expandable || !expandByKey) {
671
- return;
672
- }
673
- this.showInnerContent = !this.showInnerContent;
674
- }
675
- /**
676
- * Renders button to expand element.
677
- * @returns expadable button
678
- */
679
- renderExpandableButton() {
680
- if (!this.expandable) {
681
- return null;
682
- }
683
- return (h("z-icon", { name: this.showInnerContent
684
- ? this.openElementConfig[this.expandableStyle].open
685
- : this.openElementConfig[this.expandableStyle].close }));
686
- }
687
- /**
688
- * Renders expanded content if element is expandable.
689
- * @returns expanded content
690
- */
691
- renderExpandedContent() {
692
- if (!this.expandable) {
693
- return null;
694
- }
695
- return (h("div", { class: {
696
- "z-list-element-inner-container": true,
697
- "expanded": this.showInnerContent,
698
- } }, h("slot", { name: "inner-content" })));
699
- }
700
- /**
701
- * Renders content of the z-list-element
702
- * @returns list content
703
- */
704
- renderContent() {
705
- if (this.listType === ListType.NONE) {
706
- return h("slot", null);
707
- }
708
- if (this.listType === ListType.ORDERED) {
709
- return (h("div", { class: "z-list-content-container" }, h("div", null, this.listElementPosition, ".\u2003"), h("slot", null)));
710
- }
711
- if (this.listType === ListType.UNORDERED) {
712
- return (h("div", { class: "z-list-content-container" }, h("span", null, "\u2022\u2003"), h("slot", null)));
713
- }
714
- }
715
- render() {
716
- return (h(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 }, 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" }, h("div", { class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))));
717
- }
718
- get host() { return getElement(this); }
719
- };
720
- ZListElement.style = stylesCss$3;
721
-
722
- 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)}";
723
-
724
- const ZListGroup = class {
725
- constructor(hostRef) {
726
- registerInstance(this, hostRef);
727
- /**
728
- * [optional] Sets size of inside elements.
729
- */
730
- this.size = ListSize.MEDIUM;
731
- /**
732
- * [optional] Sets the position where to insert the divider.
733
- */
734
- this.dividerType = ListDividerType.NONE;
735
- /**
736
- * [optional] Sets the divider size.
737
- */
738
- this.dividerSize = DividerSize.SMALL;
739
- /**
740
- * [optional] Sets the divider color.
741
- */
742
- this.dividerColor = "gray200";
743
- /**
744
- * [optional] type of the list marker for each element
745
- */
746
- this.listType = ListType.NONE;
747
- }
748
- componentDidLoad() {
749
- const children = this.host.children;
750
- for (let i = 0; i < children.length; i++) {
751
- if (children.length - 1 > i) {
752
- children[i].setAttribute("divider-type", this.dividerType);
753
- children[i].setAttribute("divider-size", this.dividerSize);
754
- children[i].setAttribute("divider-color", this.dividerColor);
755
- }
756
- children[i].setAttribute("size", this.size);
757
- children[i].setAttribute("list-type", this.listType);
758
- children[i].setAttribute("list-element-position", i.toString());
759
- }
760
- }
761
- componentWillLoad() {
762
- this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
763
- }
764
- render() {
765
- return (h(Host, { role: "group" }, h("div", { class: {
766
- "z-list-group-header-container": true,
767
- "has-header": this.hasHeader,
768
- } }, h("slot", { name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { color: this.dividerColor, size: this.dividerSize }))), h("slot", null)));
769
- }
770
- get host() { return getElement(this); }
771
- };
772
- ZListGroup.style = stylesCss$2;
773
-
774
- 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}";
775
-
776
- const ZOffcanvas = class {
777
- constructor(hostRef) {
778
- registerInstance(this, hostRef);
779
- this.canvasOpenStatusChanged = createEvent(this, "canvasOpenStatusChanged", 7);
780
- /**
781
- * Offcanvas variant.
782
- * Can be one `overlay` or `pushcontent`.
783
- * Default variant: pushcontent
784
- */
785
- this.variant = OffCanvasVariant.PUSHCONTENT;
786
- /** Whether the offcanvas is open. Default: false */
787
- this.open = false;
788
- /** open content transitioning in a specified direction left | right. Default: left */
789
- this.transitiondirection = TransitionDirection.LEFT;
790
- /**
791
- * Whether to skip the initial animation.
792
- * Useful when the initial value of the `open` prop is set to `true`.
793
- */
794
- this.skipLoadAnimation = false;
795
- }
796
- onOpenChanged() {
797
- if (!this.open && this.skipLoadAnimation) {
798
- this.skipLoadAnimation = false;
799
- }
800
- if (this.open) {
801
- this.handlePageOverflow();
802
- }
803
- this.canvasOpenStatusChanged.emit(this.open);
804
- }
805
- handlePageOverflow() {
806
- const overflow = this.variant === OffCanvasVariant.OVERLAY ? "overflow-y" : "overflow-x";
807
- document.body.style[overflow] = this.open ? "hidden" : "";
808
- }
809
- render() {
810
- return (h(Host, { class: { "skip-animation": this.skipLoadAnimation } }, h("div", { role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, h("div", { role: "presentation", class: "canvas-content" }, h("slot", { name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
811
- }
812
- static get watchers() { return {
813
- "open": ["onOpenChanged"]
814
- }; }
815
- };
816
- ZOffcanvas.style = stylesCss$1;
817
-
818
- const stylesCss = ":host{z-index:15;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}";
819
-
820
- const ZSearchbar = class {
821
- constructor(hostRef) {
822
- registerInstance(this, hostRef);
823
- this.searchSubmit = createEvent(this, "searchSubmit", 7);
824
- this.searchTyping = createEvent(this, "searchTyping", 7);
825
- this.searchItemClick = createEvent(this, "searchItemClick", 7);
826
- /** the id of the searchbar element */
827
- this.htmlid = `searchbar-${randomId()}`;
828
- /** Prevent submit action */
829
- this.preventSubmit = false;
830
- /** Show autocomplete results */
831
- this.autocomplete = false;
832
- /** Minimun number of characters to dispatch typing event */
833
- this.autocompleteMinChars = 3;
834
- /** Truncate results to single row */
835
- this.resultsEllipsis = true;
836
- /** Search helper text */
837
- this.searchHelperLabel = "Cerca {searchString}";
838
- /** Sort autocomplete results items */
839
- this.sortResultsItems = false;
840
- /** Show submit button */
841
- this.showSearchButton = false;
842
- /** Set button icon without label*/
843
- this.searchButtonIconOnly = false;
844
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
845
- this.size = ControlSize.BIG;
846
- /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
847
- this.variant = ButtonVariant.PRIMARY;
848
- this.searchString = this.value;
849
- this.currResultsCount = 0;
850
- this.showResults = false;
851
- this.resultsItemsList = null;
852
- }
853
- emitSearchSubmit() {
854
- this.searchSubmit.emit(this.inputRef.value);
855
- }
856
- emitSearchTyping(search) {
857
- this.searchTyping.emit(search);
858
- }
859
- emitSearchItemClick(item) {
860
- this.searchItemClick.emit(item);
861
- }
862
- watchItems() {
863
- this.resultsItemsList = this.getResultsItemsList();
864
- }
865
- watchResultsCount() {
866
- this.currResultsCount = this.resultsCount;
867
- }
868
- watchValue() {
869
- this.searchString = this.value;
870
- }
871
- watchSearchString() {
872
- this.emitSearchTyping(this.searchString);
873
- if (!this.searchString) {
874
- this.currResultsCount = this.resultsCount;
875
- }
876
- }
877
- componentWillLoad() {
878
- this.resultsItemsList = this.getResultsItemsList();
879
- this.currResultsCount = this.resultsCount;
880
- }
881
- getResultsItemsList() {
882
- return typeof this.resultsItems === "string" ? JSON.parse(this.resultsItems) : this.resultsItems;
883
- }
884
- getGroupedItems(items) {
885
- const groupedItems = {};
886
- items.forEach((item) => {
887
- var _a;
888
- const key = `${item === null || item === void 0 ? void 0 : item.category}${item === null || item === void 0 ? void 0 : item.subcategory}`;
889
- groupedItems[key] = (_a = groupedItems[key]) !== null && _a !== void 0 ? _a : {
890
- category: item === null || item === void 0 ? void 0 : item.category,
891
- subcategory: item === null || item === void 0 ? void 0 : item.subcategory,
892
- items: [],
893
- };
894
- groupedItems[key]["items"].push(item);
895
- });
896
- if (this.sortResultsItems) {
897
- return Object.keys(groupedItems)
898
- .sort()
899
- .reduce((obj, key) => {
900
- obj[key] = Object.assign(Object.assign({}, groupedItems[key]), { items: groupedItems[key]["items"].sort((a, b) => {
901
- const nameA = a.label.toUpperCase();
902
- const nameB = b.label.toUpperCase();
903
- if (nameA < nameB) {
904
- return -1;
905
- }
906
- if (nameA > nameB) {
907
- return 1;
908
- }
909
- return 0;
910
- }) });
911
- return obj;
912
- }, {});
913
- }
914
- return groupedItems;
915
- }
916
- checkResultsCount(counter) {
917
- if (!this.currResultsCount || counter < this.currResultsCount) {
918
- return true;
919
- }
920
- return false;
921
- }
922
- handleStopTyping(e) {
923
- e.stopPropagation();
924
- this.searchString = e.detail.value;
925
- }
926
- handleSubmit() {
927
- if (this.preventSubmit) {
928
- return;
929
- }
930
- this.emitSearchSubmit();
931
- }
932
- handleOutsideClick(e) {
933
- const cp = e.composedPath();
934
- const searchbar = cp.find((elem) => elem.nodeName === "Z-SEARCHBAR");
935
- if (!searchbar || searchbar.htmlid !== this.htmlid) {
936
- this.showResults = false;
937
- return;
938
- }
939
- 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")); })) {
940
- this.showResults = true;
941
- return;
942
- }
943
- this.showResults = false;
944
- }
945
- renderInput() {
946
- return (h("z-input", { ref: (val) => {
947
- this.inputRef = val;
948
- }, message: false, placeholder: this.placeholder, onStopTyping: (e) => this.handleStopTyping(e), onKeyUp: (e) => handleEnterKeydSubmit(e, () => this.handleSubmit()), value: this.value, size: this.size }));
949
- }
950
- renderButton() {
951
- if (!this.showSearchButton) {
952
- return null;
953
- }
954
- const iconProp = this.searchButtonIconOnly ? { icon: "search" } : null;
955
- const buttonLabel = this.searchButtonIconOnly ? "" : "CERCA";
956
- const defaultProps = Object.assign({ disabled: this.preventSubmit, variant: this.variant, size: this.size, onClick: () => this.handleSubmit() }, iconProp);
957
- return h("z-button", Object.assign({}, defaultProps), buttonLabel);
958
- }
959
- renderResults() {
960
- if (!this.showResults ||
961
- !this.autocomplete ||
962
- !this.searchString ||
963
- this.searchString.length < this.autocompleteMinChars ||
964
- !this.resultsItemsList) {
965
- return null;
966
- }
967
- return (h("div", { class: "results-wrapper" }, h("div", { class: "results" }, this.renderResultsList())));
968
- }
969
- renderResultsList() {
970
- var _a, _b;
971
- if (this.preventSubmit && !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
972
- return (h("span", { class: "item item-no-results" }, "Non abbiamo trovato risultati per ", h("b", null, this.searchString), h("br", null), h("br", null), "Cosa puoi fare?", h("ul", null, h("li", null, "Verificare di aver scritto bene"), h("li", null, "Provare a cercare un'altra parola"), h("li", null, "Provare a cercare qualcosa di pi\u00F9 generico"))));
973
- }
974
- return (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()));
975
- }
976
- renderItems() {
977
- var _a;
978
- if (!((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length)) {
979
- return [];
980
- }
981
- const groupedItems = this.getGroupedItems(this.resultsItemsList);
982
- const listGroups = [];
983
- let counter = 0;
984
- Object.values(groupedItems).forEach((groupItem, index, array) => {
985
- if (this.checkResultsCount(counter)) {
986
- const listGroupsElements = [];
987
- groupItem.items.forEach((item, subindex, subarray) => {
988
- if (this.checkResultsCount(counter)) {
989
- const isLast = index === array.length - 1 && subindex === subarray.length - 1;
990
- listGroupsElements.push(this.renderItem(item, subindex, !isLast));
991
- }
992
- counter++;
993
- });
994
- if (listGroupsElements.length) {
995
- listGroups.push(h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, this.renderItemCategory(groupItem), listGroupsElements));
996
- }
997
- }
998
- });
999
- return listGroups;
1000
- }
1001
- renderItem(item, key, divider) {
1002
- return (h("z-list-element", { id: `list-item-${this.htmlid}-${key}`, role: "option", tabindex: 0, dividerType: divider ? ListDividerType.ELEMENT : undefined, clickable: true, onClickItem: () => this.emitSearchItemClick(item) }, h("span", { class: { "item": true, "ellipsis": this.resultsEllipsis, "has-category": !!item.category } }, (item === null || item === void 0 ? void 0 : item.icon) && (h("z-icon", { class: "item-icon", name: item.icon })), h("span", { class: "item-label", title: item.label, innerHTML: this.renderItemLabel(item.label) }))));
1003
- }
1004
- renderItemLabel(label) {
1005
- if (!this.searchString) {
1006
- return label;
1007
- }
1008
- return label.replace(new RegExp(this.searchString.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gmi"), (found) => `<mark>${found}</mark>`);
1009
- }
1010
- renderItemCategory(groupItem) {
1011
- if (!(groupItem === null || groupItem === void 0 ? void 0 : groupItem.category)) {
1012
- return null;
1013
- }
1014
- return (h("span", { class: "category-heading", slot: "header-title" }, h("span", { class: "category" }, groupItem.category), (groupItem === null || groupItem === void 0 ? void 0 : groupItem.subcategory) && h("span", { class: "subcategory" }, groupItem.subcategory)));
1015
- }
1016
- renderSearchHelper(hasDivider = true) {
1017
- if (!this.autocomplete || this.preventSubmit || !this.searchString) {
1018
- return null;
1019
- }
1020
- return (h("z-list-element", { role: "option", tabindex: 0, dividerType: hasDivider ? ListDividerType.ELEMENT : undefined, clickable: true, id: `list-item-${this.htmlid}-search`, onClickItem: () => this.emitSearchSubmit() }, h("span", { class: "item item-search" }, h("z-icon", { class: "search-icon", name: "left-magnifying-glass" }), h("span", { class: "item-label", innerHTML: this.searchHelperLabel.replace("{searchString}", `<mark>${this.searchString}</mark>`) }))));
1021
- }
1022
- renderShowAllResults() {
1023
- var _a, _b;
1024
- if (!this.currResultsCount ||
1025
- !this.searchString ||
1026
- !((_a = this.resultsItemsList) === null || _a === void 0 ? void 0 : _a.length) ||
1027
- this.currResultsCount >= ((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)) {
1028
- return null;
1029
- }
1030
- return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
1031
- }
1032
- render() {
1033
- return (h(Host, { onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
1034
- }
1035
- static get watchers() { return {
1036
- "resultsItems": ["watchItems"],
1037
- "resultsCount": ["watchResultsCount"],
1038
- "value": ["watchValue"],
1039
- "searchString": ["watchSearchString"]
1040
- }; }
1041
- };
1042
- ZSearchbar.style = stylesCss;
1043
-
1044
- export { ZAppHeader as z_app_header, ZButton as z_button, ZDivider as z_divider, ZIcon as z_icon, ZInput as z_input, ZInputMessage as z_input_message, ZList as z_list, ZListElement as z_list_element, ZListGroup as z_list_group, ZOffcanvas as z_offcanvas, ZSearchbar as z_searchbar };