@zanichelli/albe-web-components 19.6.1 → 20.0.0

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 (903) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/cjs/{iconset-Cz-UsfoU.js → iconset-BIdMT0Ke.js} +4 -4
  3. package/dist/cjs/{iconset-Cz-UsfoU.js.map → iconset-BIdMT0Ke.js.map} +1 -1
  4. package/dist/cjs/index-CZz7uP-M.js +0 -80
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{reactive-controller-B2CuCldJ.js → reactive-controller-DJkjAuqS.js} +3 -3
  8. package/dist/cjs/{reactive-controller-B2CuCldJ.js.map → reactive-controller-DJkjAuqS.js.map} +1 -1
  9. package/dist/cjs/{utils-C0QY75C2.js → utils-BnCPu0Si.js} +2 -11
  10. package/dist/cjs/{utils-C0QY75C2.js.map → utils-BnCPu0Si.js.map} +1 -1
  11. package/dist/cjs/web-components-library.cjs.js +1 -1
  12. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  13. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  14. package/dist/cjs/z-app-header_12.cjs.entry.js +119 -132
  15. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  16. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  18. package/dist/cjs/z-book-card.cjs.entry.js +1 -1
  19. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  20. package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
  21. package/dist/cjs/z-breadcrumb.cjs.entry.js +3 -3
  22. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  23. package/dist/cjs/z-chip.cjs.entry.js +2 -4
  24. package/dist/cjs/z-chip.cjs.entry.js.map +1 -1
  25. package/dist/cjs/z-color-picker.cjs.entry.js +2 -2
  26. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  27. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  28. package/dist/cjs/z-date-picker.cjs.entry.js +2 -4
  29. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
  30. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +8 -8
  31. package/dist/cjs/z-file.cjs.entry.js +1 -1
  32. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  33. package/dist/cjs/z-info-box.cjs.entry.js +5 -3
  34. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -1
  35. package/dist/cjs/z-info-reveal.cjs.entry.js +3 -3
  36. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -1
  37. package/dist/cjs/z-input-range.cjs.entry.js +2 -2
  38. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  39. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  40. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  41. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -6
  42. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  43. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  44. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  45. package/dist/cjs/z-select.cjs.entry.js +4 -8
  46. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  47. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  48. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  49. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  50. package/dist/cjs/z-table.cjs.entry.js +2 -2
  51. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  52. package/dist/cjs/z-td.cjs.entry.js +1 -1
  53. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  54. package/dist/cjs/z-th.cjs.entry.js +1 -1
  55. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  56. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  57. package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
  58. package/dist/cjs/z-toggle-switch.cjs.entry.js +4 -4
  59. package/dist/cjs/z-tool.cjs.entry.js +3 -3
  60. package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
  61. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  62. package/dist/cjs/z-tr.cjs.entry.js +2 -2
  63. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  64. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  65. package/dist/collection/collection-manifest.json +2 -25
  66. package/dist/collection/components/book-card/z-book-card/index.js +1 -1
  67. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
  68. package/dist/collection/components/date-picker/z-date-picker/index.js +5 -8
  69. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
  70. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  71. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  72. package/dist/collection/components/list/z-list/index.js +43 -38
  73. package/dist/collection/components/list/z-list/index.js.map +1 -1
  74. package/dist/collection/components/list/z-list-element/index.js +17 -31
  75. package/dist/collection/components/list/z-list-element/index.js.map +1 -1
  76. package/dist/collection/components/list/z-list-group/index.js +62 -37
  77. package/dist/collection/components/list/z-list-group/index.js.map +1 -1
  78. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  79. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  80. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  81. package/dist/collection/components/table/z-table/index.js +1 -1
  82. package/dist/collection/components/table/z-tbody/index.js +1 -1
  83. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  84. package/dist/collection/components/table/z-thead/index.js +1 -1
  85. package/dist/collection/components/table/z-tr/index.js +1 -1
  86. package/dist/collection/components/z-accordion/index.js +1 -1
  87. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  88. package/dist/collection/components/z-app-header/index.js +1 -1
  89. package/dist/collection/components/z-aria-alert/index.js +1 -1
  90. package/dist/collection/components/z-avatar/index.js +2 -2
  91. package/dist/collection/components/z-book-cover/index.js +1 -1
  92. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  93. package/dist/collection/components/z-button/index.js +14 -46
  94. package/dist/collection/components/z-button/index.js.map +1 -1
  95. package/dist/collection/components/z-button-sort/index.js +1 -1
  96. package/dist/collection/components/z-chip/index.js +6 -9
  97. package/dist/collection/components/z-chip/index.js.map +1 -1
  98. package/dist/collection/components/z-color-picker/index.js +1 -1
  99. package/dist/collection/components/z-combobox/index.js +1 -1
  100. package/dist/collection/components/z-cover-hero/index.js +2 -2
  101. package/dist/collection/components/z-divider/index.js +1 -1
  102. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  103. package/dist/collection/components/z-icon/index.js +1 -1
  104. package/dist/collection/components/z-icon/styles.css +6 -0
  105. package/dist/collection/components/z-info-box/index.js +55 -7
  106. package/dist/collection/components/z-info-box/index.js.map +1 -1
  107. package/dist/collection/components/z-info-box/styles.css +60 -10
  108. package/dist/collection/components/z-info-reveal/index.js +6 -6
  109. package/dist/collection/components/z-info-reveal/index.js.map +1 -1
  110. package/dist/collection/components/z-input/index.js +43 -64
  111. package/dist/collection/components/z-input/index.js.map +1 -1
  112. package/dist/collection/components/z-input-message/index.js +3 -27
  113. package/dist/collection/components/z-input-message/index.js.map +1 -1
  114. package/dist/collection/components/z-input-range/index.js +1 -1
  115. package/dist/collection/components/z-logo/index.js +1 -1
  116. package/dist/collection/components/z-menu-section/index.js +1 -1
  117. package/dist/collection/components/z-modal/index.js +4 -4
  118. package/dist/collection/components/z-navigation-tabs/index.js +5 -10
  119. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
  120. package/dist/collection/components/z-notification/index.js +1 -1
  121. package/dist/collection/components/z-offcanvas/index.js +2 -2
  122. package/dist/collection/components/z-popover/index.js +1 -1
  123. package/dist/collection/components/z-searchbar/index.js +3 -3
  124. package/dist/collection/components/z-select/index.js +9 -15
  125. package/dist/collection/components/z-select/index.js.map +1 -1
  126. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  127. package/dist/collection/components/z-stepper/index.js +1 -1
  128. package/dist/collection/components/z-stepper-item/index.js +1 -1
  129. package/dist/collection/components/z-tag/index.js +2 -2
  130. package/dist/collection/components/z-toast-notification/index.js +3 -3
  131. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  132. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  133. package/dist/collection/components/z-tool/index.js +2 -2
  134. package/dist/collection/components/z-toolbar/index.js +1 -1
  135. package/dist/collection/components/z-tooltip/index.js +1 -1
  136. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  137. package/dist/collection/constants/iconset.js +2 -2
  138. package/dist/collection/constants/iconset.js.map +1 -1
  139. package/dist/collection/utils/storybook-utils.js +31 -18
  140. package/dist/collection/utils/storybook-utils.js.map +1 -1
  141. package/dist/components/iconset.js +1 -1
  142. package/dist/components/iconset.js.map +1 -1
  143. package/dist/components/index.d.ts +0 -46
  144. package/dist/components/index.js +1 -1
  145. package/dist/components/index.js.map +1 -1
  146. package/dist/components/index10.js +1 -1
  147. package/dist/components/index10.js.map +1 -1
  148. package/dist/components/index11.js +1 -1
  149. package/dist/components/index11.js.map +1 -1
  150. package/dist/components/index12.js +1 -1
  151. package/dist/components/index12.js.map +1 -1
  152. package/dist/components/index13.js +1 -1
  153. package/dist/components/index13.js.map +1 -1
  154. package/dist/components/index14.js +1 -1
  155. package/dist/components/index14.js.map +1 -1
  156. package/dist/components/index15.js +1 -1
  157. package/dist/components/index15.js.map +1 -1
  158. package/dist/components/index16.js +1 -1
  159. package/dist/components/index16.js.map +1 -1
  160. package/dist/components/index17.js +1 -1
  161. package/dist/components/index17.js.map +1 -1
  162. package/dist/components/index18.js +1 -1
  163. package/dist/components/index18.js.map +1 -1
  164. package/dist/components/index19.js +1 -1
  165. package/dist/components/index19.js.map +1 -1
  166. package/dist/components/index20.js +1 -1
  167. package/dist/components/index20.js.map +1 -1
  168. package/dist/components/index21.js +1 -1
  169. package/dist/components/index21.js.map +1 -1
  170. package/dist/components/index3.js +1 -1
  171. package/dist/components/index3.js.map +1 -1
  172. package/dist/components/index4.js +1 -1
  173. package/dist/components/index4.js.map +1 -1
  174. package/dist/components/index5.js +1 -1
  175. package/dist/components/index5.js.map +1 -1
  176. package/dist/components/index6.js +1 -1
  177. package/dist/components/index6.js.map +1 -1
  178. package/dist/components/index7.js +1 -1
  179. package/dist/components/index7.js.map +1 -1
  180. package/dist/components/index8.js +1 -1
  181. package/dist/components/index8.js.map +1 -1
  182. package/dist/components/index9.js +1 -1
  183. package/dist/components/index9.js.map +1 -1
  184. package/dist/components/reactive-controller.js +2 -2
  185. package/dist/components/utils.js +1 -1
  186. package/dist/components/utils.js.map +1 -1
  187. package/dist/components/z-accordion.js +1 -1
  188. package/dist/components/z-anchor-navigation.js +1 -1
  189. package/dist/components/z-app-header.js +1 -1
  190. package/dist/components/z-app-header.js.map +1 -1
  191. package/dist/components/z-aria-alert.js +1 -1
  192. package/dist/components/z-avatar.js +1 -1
  193. package/dist/components/z-book-card-app.js +1 -1
  194. package/dist/components/z-book-card.js +1 -1
  195. package/dist/components/z-book-card.js.map +1 -1
  196. package/dist/components/z-book-cover.js +1 -1
  197. package/dist/components/z-breadcrumb.js +1 -1
  198. package/dist/components/z-breadcrumb.js.map +1 -1
  199. package/dist/components/z-button-sort.js +1 -1
  200. package/dist/components/z-button.js +1 -1
  201. package/dist/components/z-carousel.js +1 -1
  202. package/dist/components/z-chip.js +1 -1
  203. package/dist/components/z-color-picker.js +1 -1
  204. package/dist/components/z-combobox.js +1 -1
  205. package/dist/components/z-combobox.js.map +1 -1
  206. package/dist/components/z-cover-hero.js +1 -1
  207. package/dist/components/z-date-picker.js +2 -2
  208. package/dist/components/z-date-picker.js.map +1 -1
  209. package/dist/components/z-divider.js +1 -1
  210. package/dist/components/z-dragdrop-area.js +1 -1
  211. package/dist/components/z-file-upload.js +1 -1
  212. package/dist/components/z-file.js +1 -1
  213. package/dist/components/z-ghost-loading.js +1 -1
  214. package/dist/components/z-info-box.js +1 -1
  215. package/dist/components/z-info-box.js.map +1 -1
  216. package/dist/components/z-info-reveal.js +1 -1
  217. package/dist/components/z-input-message.js +1 -1
  218. package/dist/components/z-input-range.js +1 -1
  219. package/dist/components/z-input.js +1 -1
  220. package/dist/components/z-list-element.js +1 -1
  221. package/dist/components/z-list-group.js +1 -1
  222. package/dist/components/z-list.js +1 -1
  223. package/dist/components/z-logo.js +1 -1
  224. package/dist/components/z-menu-section.js +1 -1
  225. package/dist/components/z-modal.js +1 -1
  226. package/dist/components/z-navigation-tabs.js +1 -1
  227. package/dist/components/z-navigation-tabs.js.map +1 -1
  228. package/dist/components/z-notification.js +1 -1
  229. package/dist/components/z-offcanvas.js +1 -1
  230. package/dist/components/z-pagination.js +1 -1
  231. package/dist/components/z-popover.js +1 -1
  232. package/dist/components/z-range-picker.js +1 -1
  233. package/dist/components/z-result-card.js +1 -1
  234. package/dist/components/z-searchbar.js +1 -1
  235. package/dist/components/z-select.js +1 -1
  236. package/dist/components/z-select.js.map +1 -1
  237. package/dist/components/z-skip-to-content.js +1 -1
  238. package/dist/components/z-stepper-item.js +1 -1
  239. package/dist/components/z-stepper.js +1 -1
  240. package/dist/components/z-table.js +1 -1
  241. package/dist/components/z-tag.js +1 -1
  242. package/dist/components/z-tbody.js +1 -1
  243. package/dist/components/z-td.js +1 -1
  244. package/dist/components/z-tfoot.js +1 -1
  245. package/dist/components/z-th.js +1 -1
  246. package/dist/components/z-thead.js +1 -1
  247. package/dist/components/z-toast-notification-list.js +1 -1
  248. package/dist/components/z-toast-notification.js +2 -2
  249. package/dist/components/z-toggle-switch.js +1 -1
  250. package/dist/components/z-tool.js +1 -1
  251. package/dist/components/z-toolbar.js +1 -1
  252. package/dist/components/z-tooltip.js +1 -1
  253. package/dist/components/z-tr.js +1 -1
  254. package/dist/components/z-tree-list.js +1 -1
  255. package/dist/components/z-tree-list.js.map +1 -1
  256. package/dist/components/z-visually-hidden.js +1 -1
  257. package/dist/esm/{iconset-AwzX9V8L.js → iconset-D1c5gR45.js} +4 -4
  258. package/dist/esm/{iconset-AwzX9V8L.js.map → iconset-D1c5gR45.js.map} +1 -1
  259. package/dist/esm/index-BcDWN4F1.js +0 -80
  260. package/dist/esm/index.js +2 -2
  261. package/dist/esm/loader.js +1 -1
  262. package/dist/esm/{reactive-controller-C_qN1xPW.js → reactive-controller-CHemhYDp.js} +3 -3
  263. package/dist/esm/{reactive-controller-C_qN1xPW.js.map → reactive-controller-CHemhYDp.js.map} +1 -1
  264. package/dist/esm/{utils-CEdyahRZ.js → utils-CJc3A9NX.js} +3 -11
  265. package/dist/esm/{utils-CEdyahRZ.js.map → utils-CJc3A9NX.js.map} +1 -1
  266. package/dist/esm/web-components-library.js +1 -1
  267. package/dist/esm/z-accordion.entry.js +1 -1
  268. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  269. package/dist/esm/z-app-header_12.entry.js +120 -133
  270. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  271. package/dist/esm/z-aria-alert.entry.js +1 -1
  272. package/dist/esm/z-avatar.entry.js +2 -2
  273. package/dist/esm/z-book-card.entry.js +1 -1
  274. package/dist/esm/z-book-card.entry.js.map +1 -1
  275. package/dist/esm/z-book-cover.entry.js +1 -1
  276. package/dist/esm/z-breadcrumb.entry.js +3 -3
  277. package/dist/esm/z-button-sort.entry.js +1 -1
  278. package/dist/esm/z-chip.entry.js +2 -4
  279. package/dist/esm/z-chip.entry.js.map +1 -1
  280. package/dist/esm/z-color-picker.entry.js +2 -2
  281. package/dist/esm/z-combobox.entry.js +2 -2
  282. package/dist/esm/z-cover-hero.entry.js +2 -2
  283. package/dist/esm/z-date-picker.entry.js +2 -4
  284. package/dist/esm/z-date-picker.entry.js.map +1 -1
  285. package/dist/esm/z-dragdrop-area_2.entry.js +8 -8
  286. package/dist/esm/z-file.entry.js +1 -1
  287. package/dist/esm/z-ghost-loading.entry.js +1 -1
  288. package/dist/esm/z-info-box.entry.js +6 -4
  289. package/dist/esm/z-info-box.entry.js.map +1 -1
  290. package/dist/esm/z-info-reveal.entry.js +3 -3
  291. package/dist/esm/z-info-reveal.entry.js.map +1 -1
  292. package/dist/esm/z-input-range.entry.js +2 -2
  293. package/dist/esm/z-logo.entry.js +1 -1
  294. package/dist/esm/z-menu-section.entry.js +1 -1
  295. package/dist/esm/z-menu.entry.js +1 -1
  296. package/dist/esm/z-navigation-tabs.entry.js +2 -6
  297. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  298. package/dist/esm/z-notification.entry.js +1 -1
  299. package/dist/esm/z-popover.entry.js +2 -2
  300. package/dist/esm/z-select.entry.js +4 -8
  301. package/dist/esm/z-select.entry.js.map +1 -1
  302. package/dist/esm/z-skip-to-content.entry.js +2 -2
  303. package/dist/esm/z-stepper-item.entry.js +1 -1
  304. package/dist/esm/z-stepper.entry.js +1 -1
  305. package/dist/esm/z-table.entry.js +2 -2
  306. package/dist/esm/z-tbody.entry.js +1 -1
  307. package/dist/esm/z-td.entry.js +1 -1
  308. package/dist/esm/z-tfoot.entry.js +1 -1
  309. package/dist/esm/z-th.entry.js +1 -1
  310. package/dist/esm/z-thead.entry.js +1 -1
  311. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  312. package/dist/esm/z-toast-notification.entry.js +3 -3
  313. package/dist/esm/z-toggle-switch.entry.js +4 -4
  314. package/dist/esm/z-tool.entry.js +3 -3
  315. package/dist/esm/z-toolbar.entry.js +1 -1
  316. package/dist/esm/z-tooltip.entry.js +1 -1
  317. package/dist/esm/z-tr.entry.js +2 -2
  318. package/dist/esm/z-tree-list.entry.js +1 -1
  319. package/dist/esm/z-visually-hidden.entry.js +1 -1
  320. package/dist/types/components/date-picker/z-date-picker/index.d.ts +1 -1
  321. package/dist/types/components/list/z-list/index.d.ts +6 -8
  322. package/dist/types/components/list/z-list-element/index.d.ts +2 -8
  323. package/dist/types/components/list/z-list-group/index.d.ts +3 -5
  324. package/dist/types/components/z-button/index.d.ts +4 -9
  325. package/dist/types/components/z-chip/index.d.ts +2 -2
  326. package/dist/types/components/z-info-box/index.d.ts +14 -2
  327. package/dist/types/components/z-info-reveal/index.d.ts +2 -2
  328. package/dist/types/components/z-input/index.d.ts +14 -14
  329. package/dist/types/components/z-input-message/index.d.ts +2 -5
  330. package/dist/types/components/z-navigation-tabs/index.d.ts +1 -1
  331. package/dist/types/components/z-select/index.d.ts +2 -2
  332. package/dist/types/components.d.ts +298 -1809
  333. package/dist/types/constants/iconset.d.ts +4 -4
  334. package/dist/types/utils/storybook-utils.d.ts +19 -12
  335. package/dist/web-components-library/index.esm.js +1 -1
  336. package/dist/web-components-library/{p-cdfbcb3b.entry.js → p-02fb0bf9.entry.js} +2 -2
  337. package/{www/build/p-e1081a2f.entry.js → dist/web-components-library/p-067411f0.entry.js} +2 -2
  338. package/{www/build/p-136f336a.entry.js → dist/web-components-library/p-121f224a.entry.js} +2 -2
  339. package/dist/web-components-library/p-127a6dda.entry.js +2 -0
  340. package/dist/web-components-library/p-127a6dda.entry.js.map +1 -0
  341. package/{www/build/p-af6bdd6e.entry.js → dist/web-components-library/p-1e71577c.entry.js} +2 -2
  342. package/{www/build/p-4085be9a.entry.js → dist/web-components-library/p-1ef66142.entry.js} +2 -2
  343. package/{www/build/p-22cb956c.entry.js → dist/web-components-library/p-1efed23b.entry.js} +2 -2
  344. package/{www/build/p-ab221eac.entry.js → dist/web-components-library/p-222898cd.entry.js} +3 -3
  345. package/dist/web-components-library/{p-c39e4a49.entry.js → p-2bd1326c.entry.js} +2 -2
  346. package/dist/web-components-library/p-2bebbd04.entry.js +2 -0
  347. package/{www/build/p-5af96c6f.entry.js.map → dist/web-components-library/p-2bebbd04.entry.js.map} +1 -1
  348. package/dist/web-components-library/p-303fe1d0.entry.js +2 -0
  349. package/dist/web-components-library/p-303fe1d0.entry.js.map +1 -0
  350. package/{www/build/p-67476a7c.entry.js → dist/web-components-library/p-317cbb00.entry.js} +2 -2
  351. package/{www/build/p-6d382092.entry.js → dist/web-components-library/p-32bc925a.entry.js} +2 -2
  352. package/dist/web-components-library/{p-f36e7e6b.entry.js → p-33d993fe.entry.js} +2 -2
  353. package/{www/build/p-7313c22c.entry.js → dist/web-components-library/p-33e973b3.entry.js} +2 -2
  354. package/dist/web-components-library/p-33e973b3.entry.js.map +1 -0
  355. package/dist/web-components-library/{p-1a13cd9b.entry.js → p-3748979c.entry.js} +2 -2
  356. package/{www/build/p-20401d48.entry.js → dist/web-components-library/p-3a9a120f.entry.js} +2 -2
  357. package/dist/web-components-library/{p-0251d009.entry.js → p-4f6c86ce.entry.js} +2 -2
  358. package/dist/web-components-library/{p-5b3cfc2e.entry.js → p-51ebf661.entry.js} +2 -2
  359. package/{www/build/p-aa59ca29.entry.js → dist/web-components-library/p-53c51bf4.entry.js} +2 -2
  360. package/{www/build/p-aa59ca29.entry.js.map → dist/web-components-library/p-53c51bf4.entry.js.map} +1 -1
  361. package/dist/web-components-library/p-5a43af47.entry.js +2 -0
  362. package/dist/web-components-library/p-5a43af47.entry.js.map +1 -0
  363. package/dist/web-components-library/p-657802ce.entry.js +2 -0
  364. package/dist/web-components-library/{p-5c012917.entry.js.map → p-657802ce.entry.js.map} +1 -1
  365. package/{www/build/p-7b4f5936.entry.js → dist/web-components-library/p-6de548e3.entry.js} +2 -2
  366. package/dist/web-components-library/p-6de548e3.entry.js.map +1 -0
  367. package/dist/web-components-library/{p-0c9247be.entry.js → p-6ea349f6.entry.js} +2 -2
  368. package/dist/web-components-library/{p-39b91bfa.entry.js → p-7dbd0e3e.entry.js} +2 -2
  369. package/{www/build/p-aba618c3.entry.js → dist/web-components-library/p-89b30fce.entry.js} +2 -2
  370. package/dist/web-components-library/p-8b3257b4.entry.js +2 -0
  371. package/{www/build/p-b38bca77.entry.js → dist/web-components-library/p-8c3a7bc1.entry.js} +2 -2
  372. package/dist/web-components-library/{p-bb610386.entry.js → p-8d2704ee.entry.js} +2 -2
  373. package/dist/web-components-library/{p-82e87326.entry.js → p-8f4fcd01.entry.js} +2 -2
  374. package/dist/web-components-library/p-8fb3354e.entry.js +2 -0
  375. package/dist/web-components-library/{p-88c45ed6.entry.js → p-904c7fdd.entry.js} +2 -2
  376. package/{www/build/p-ip3tTfYi.js → dist/web-components-library/p-BjrC13Q0.js} +3 -3
  377. package/{www/build/p-ip3tTfYi.js.map → dist/web-components-library/p-BjrC13Q0.js.map} +1 -1
  378. package/dist/web-components-library/{p-AwzX9V8L.js → p-D1c5gR45.js} +2 -2
  379. package/{www/build/p-AwzX9V8L.js.map → dist/web-components-library/p-D1c5gR45.js.map} +1 -1
  380. package/{www/build/p-C_25lDQa.js → dist/web-components-library/p-DPrEzmhI.js} +2 -2
  381. package/{www/build/p-C_25lDQa.js.map → dist/web-components-library/p-DPrEzmhI.js.map} +1 -1
  382. package/dist/web-components-library/{p-b7d4b886.entry.js → p-a5187022.entry.js} +2 -2
  383. package/dist/web-components-library/{p-fa02ba25.entry.js → p-a52b3dd1.entry.js} +2 -2
  384. package/dist/web-components-library/p-a8f43afd.entry.js +2 -0
  385. package/{www/build/p-31883d39.entry.js → dist/web-components-library/p-b4e0cd5c.entry.js} +2 -2
  386. package/dist/web-components-library/p-b4e0cd5c.entry.js.map +1 -0
  387. package/dist/web-components-library/{p-869ba2b5.entry.js → p-b7620e80.entry.js} +2 -2
  388. package/dist/web-components-library/{p-a09646a9.entry.js → p-bc9237eb.entry.js} +2 -2
  389. package/dist/web-components-library/p-c217c65c.entry.js +2 -0
  390. package/dist/web-components-library/{p-41f63f0e.entry.js.map → p-c217c65c.entry.js.map} +1 -1
  391. package/dist/web-components-library/{p-7965766c.entry.js → p-ccedd440.entry.js} +2 -2
  392. package/dist/web-components-library/{p-8f6ff78c.entry.js → p-d6441232.entry.js} +2 -2
  393. package/{www/build/p-87ea0b0a.entry.js → dist/web-components-library/p-df5eeb75.entry.js} +2 -2
  394. package/{www/build/p-4a7431f6.entry.js → dist/web-components-library/p-dfb0e8d8.entry.js} +2 -2
  395. package/dist/web-components-library/p-e1ab33fe.entry.js +2 -0
  396. package/dist/web-components-library/p-e1ab33fe.entry.js.map +1 -0
  397. package/{www/build/p-a2eb700b.entry.js → dist/web-components-library/p-efe489a5.entry.js} +2 -2
  398. package/dist/web-components-library/web-components-library.esm.js +1 -1
  399. package/package.json +7 -7
  400. package/react/components.d.ts +0 -23
  401. package/react/components.js +2 -25
  402. package/www/build/index.esm.js +1 -1
  403. package/www/build/{p-cdfbcb3b.entry.js → p-02fb0bf9.entry.js} +2 -2
  404. package/{dist/web-components-library/p-e1081a2f.entry.js → www/build/p-067411f0.entry.js} +2 -2
  405. package/{dist/web-components-library/p-136f336a.entry.js → www/build/p-121f224a.entry.js} +2 -2
  406. package/www/build/p-127a6dda.entry.js +2 -0
  407. package/www/build/p-127a6dda.entry.js.map +1 -0
  408. package/{dist/web-components-library/p-af6bdd6e.entry.js → www/build/p-1e71577c.entry.js} +2 -2
  409. package/{dist/web-components-library/p-4085be9a.entry.js → www/build/p-1ef66142.entry.js} +2 -2
  410. package/{dist/web-components-library/p-22cb956c.entry.js → www/build/p-1efed23b.entry.js} +2 -2
  411. package/{dist/web-components-library/p-ab221eac.entry.js → www/build/p-222898cd.entry.js} +3 -3
  412. package/www/build/{p-c39e4a49.entry.js → p-2bd1326c.entry.js} +2 -2
  413. package/www/build/p-2bebbd04.entry.js +2 -0
  414. package/{dist/web-components-library/p-5af96c6f.entry.js.map → www/build/p-2bebbd04.entry.js.map} +1 -1
  415. package/www/build/p-303fe1d0.entry.js +2 -0
  416. package/www/build/p-303fe1d0.entry.js.map +1 -0
  417. package/{dist/web-components-library/p-67476a7c.entry.js → www/build/p-317cbb00.entry.js} +2 -2
  418. package/{dist/web-components-library/p-6d382092.entry.js → www/build/p-32bc925a.entry.js} +2 -2
  419. package/www/build/{p-f36e7e6b.entry.js → p-33d993fe.entry.js} +2 -2
  420. package/{dist/web-components-library/p-7313c22c.entry.js → www/build/p-33e973b3.entry.js} +2 -2
  421. package/www/build/p-33e973b3.entry.js.map +1 -0
  422. package/www/build/{p-1a13cd9b.entry.js → p-3748979c.entry.js} +2 -2
  423. package/{dist/web-components-library/p-20401d48.entry.js → www/build/p-3a9a120f.entry.js} +2 -2
  424. package/www/build/{p-0251d009.entry.js → p-4f6c86ce.entry.js} +2 -2
  425. package/www/build/{p-5b3cfc2e.entry.js → p-51ebf661.entry.js} +2 -2
  426. package/{dist/web-components-library/p-aa59ca29.entry.js → www/build/p-53c51bf4.entry.js} +2 -2
  427. package/{dist/web-components-library/p-aa59ca29.entry.js.map → www/build/p-53c51bf4.entry.js.map} +1 -1
  428. package/www/build/p-5a1df5b1.js +2 -0
  429. package/www/build/p-5a43af47.entry.js +2 -0
  430. package/www/build/p-5a43af47.entry.js.map +1 -0
  431. package/www/build/p-657802ce.entry.js +2 -0
  432. package/www/build/{p-5c012917.entry.js.map → p-657802ce.entry.js.map} +1 -1
  433. package/{dist/web-components-library/p-7b4f5936.entry.js → www/build/p-6de548e3.entry.js} +2 -2
  434. package/www/build/p-6de548e3.entry.js.map +1 -0
  435. package/www/build/{p-0c9247be.entry.js → p-6ea349f6.entry.js} +2 -2
  436. package/www/build/{p-39b91bfa.entry.js → p-7dbd0e3e.entry.js} +2 -2
  437. package/{dist/web-components-library/p-aba618c3.entry.js → www/build/p-89b30fce.entry.js} +2 -2
  438. package/www/build/p-8b3257b4.entry.js +2 -0
  439. package/{dist/web-components-library/p-b38bca77.entry.js → www/build/p-8c3a7bc1.entry.js} +2 -2
  440. package/www/build/{p-bb610386.entry.js → p-8d2704ee.entry.js} +2 -2
  441. package/www/build/{p-82e87326.entry.js → p-8f4fcd01.entry.js} +2 -2
  442. package/www/build/p-8fb3354e.entry.js +2 -0
  443. package/www/build/{p-88c45ed6.entry.js → p-904c7fdd.entry.js} +2 -2
  444. package/{dist/web-components-library/p-ip3tTfYi.js → www/build/p-BjrC13Q0.js} +3 -3
  445. package/{dist/web-components-library/p-ip3tTfYi.js.map → www/build/p-BjrC13Q0.js.map} +1 -1
  446. package/www/build/{p-AwzX9V8L.js → p-D1c5gR45.js} +2 -2
  447. package/{dist/web-components-library/p-AwzX9V8L.js.map → www/build/p-D1c5gR45.js.map} +1 -1
  448. package/{dist/web-components-library/p-C_25lDQa.js → www/build/p-DPrEzmhI.js} +2 -2
  449. package/{dist/web-components-library/p-C_25lDQa.js.map → www/build/p-DPrEzmhI.js.map} +1 -1
  450. package/www/build/{p-b7d4b886.entry.js → p-a5187022.entry.js} +2 -2
  451. package/www/build/{p-fa02ba25.entry.js → p-a52b3dd1.entry.js} +2 -2
  452. package/www/build/p-a8f43afd.entry.js +2 -0
  453. package/{dist/web-components-library/p-31883d39.entry.js → www/build/p-b4e0cd5c.entry.js} +2 -2
  454. package/www/build/p-b4e0cd5c.entry.js.map +1 -0
  455. package/www/build/{p-869ba2b5.entry.js → p-b7620e80.entry.js} +2 -2
  456. package/www/build/{p-a09646a9.entry.js → p-bc9237eb.entry.js} +2 -2
  457. package/www/build/p-c217c65c.entry.js +2 -0
  458. package/www/build/{p-41f63f0e.entry.js.map → p-c217c65c.entry.js.map} +1 -1
  459. package/www/build/{p-7965766c.entry.js → p-ccedd440.entry.js} +2 -2
  460. package/www/build/{p-8f6ff78c.entry.js → p-d6441232.entry.js} +2 -2
  461. package/{dist/web-components-library/p-87ea0b0a.entry.js → www/build/p-df5eeb75.entry.js} +2 -2
  462. package/{dist/web-components-library/p-4a7431f6.entry.js → www/build/p-dfb0e8d8.entry.js} +2 -2
  463. package/www/build/p-e1ab33fe.entry.js +2 -0
  464. package/www/build/p-e1ab33fe.entry.js.map +1 -0
  465. package/{dist/web-components-library/p-a2eb700b.entry.js → www/build/p-efe489a5.entry.js} +2 -2
  466. package/www/build/web-components-library.esm.js +1 -1
  467. package/www/index.html +1 -1
  468. package/dist/cjs/z-alert.cjs.entry.js +0 -20
  469. package/dist/cjs/z-alert.cjs.entry.js.map +0 -1
  470. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +0 -192
  471. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +0 -1
  472. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +0 -127
  473. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +0 -1
  474. package/dist/cjs/z-menu-deprecated.cjs.entry.js +0 -127
  475. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +0 -1
  476. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +0 -60
  477. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +0 -1
  478. package/dist/cjs/z-myz-card-alert.cjs.entry.js +0 -64
  479. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +0 -1
  480. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +0 -37
  481. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +0 -1
  482. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +0 -20
  483. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +0 -1
  484. package/dist/cjs/z-myz-card-footer.cjs.entry.js +0 -70
  485. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +0 -1
  486. package/dist/cjs/z-myz-card-icon.cjs.entry.js +0 -24
  487. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +0 -1
  488. package/dist/cjs/z-myz-card-info.cjs.entry.js +0 -130
  489. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +0 -1
  490. package/dist/cjs/z-myz-card-list.cjs.entry.js +0 -39
  491. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +0 -1
  492. package/dist/cjs/z-myz-card_4.cjs.entry.js +0 -109
  493. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +0 -1
  494. package/dist/cjs/z-myz-list-item.cjs.entry.js +0 -38
  495. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +0 -1
  496. package/dist/cjs/z-myz-list.cjs.entry.js +0 -38
  497. package/dist/cjs/z-myz-list.cjs.entry.js.map +0 -1
  498. package/dist/cjs/z-otp.cjs.entry.js +0 -44
  499. package/dist/cjs/z-otp.cjs.entry.js.map +0 -1
  500. package/dist/cjs/z-panel-elem.cjs.entry.js +0 -30
  501. package/dist/cjs/z-panel-elem.cjs.entry.js.map +0 -1
  502. package/dist/cjs/z-section-title.cjs.entry.js +0 -34
  503. package/dist/cjs/z-section-title.cjs.entry.js.map +0 -1
  504. package/dist/cjs/z-slideshow.cjs.entry.js +0 -134
  505. package/dist/cjs/z-slideshow.cjs.entry.js.map +0 -1
  506. package/dist/cjs/z-toggle-button.cjs.entry.js +0 -37
  507. package/dist/cjs/z-toggle-button.cjs.entry.js.map +0 -1
  508. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +0 -415
  509. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +0 -1
  510. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +0 -490
  511. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +0 -417
  512. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +0 -1
  513. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +0 -492
  514. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +0 -263
  515. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +0 -1
  516. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +0 -220
  517. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +0 -133
  518. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +0 -1
  519. package/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +0 -123
  520. package/dist/collection/components/deprecated/z-section-title/index.js +0 -94
  521. package/dist/collection/components/deprecated/z-section-title/index.js.map +0 -1
  522. package/dist/collection/components/deprecated/z-section-title/styles.css +0 -48
  523. package/dist/collection/components/deprecated/z-toggle-button/index.js +0 -157
  524. package/dist/collection/components/deprecated/z-toggle-button/index.js.map +0 -1
  525. package/dist/collection/components/deprecated/z-toggle-button/styles.css +0 -60
  526. package/dist/collection/components/z-panel-elem/index.js +0 -211
  527. package/dist/collection/components/z-panel-elem/index.js.map +0 -1
  528. package/dist/collection/components/z-panel-elem/styles.css +0 -46
  529. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +0 -140
  530. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +0 -1
  531. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +0 -44
  532. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +0 -160
  533. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +0 -1
  534. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +0 -62
  535. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +0 -23
  536. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +0 -1
  537. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +0 -13
  538. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -102
  539. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +0 -1
  540. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +0 -11
  541. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +0 -190
  542. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +0 -1
  543. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +0 -76
  544. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +0 -236
  545. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +0 -1
  546. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +0 -187
  547. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +0 -23
  548. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +0 -1
  549. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +0 -20
  550. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +0 -118
  551. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +0 -1
  552. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +0 -59
  553. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +0 -88
  554. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +0 -1
  555. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +0 -69
  556. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +0 -206
  557. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +0 -1
  558. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +0 -93
  559. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -63
  560. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +0 -1
  561. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +0 -46
  562. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -85
  563. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +0 -1
  564. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +0 -4
  565. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +0 -207
  566. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +0 -1
  567. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +0 -66
  568. package/dist/collection/snowflakes/myz/z-alert/index.js +0 -52
  569. package/dist/collection/snowflakes/myz/z-alert/index.js.map +0 -1
  570. package/dist/collection/snowflakes/myz/z-alert/styles.css +0 -28
  571. package/dist/collection/snowflakes/myz/z-otp/index.js +0 -131
  572. package/dist/collection/snowflakes/myz/z-otp/index.js.map +0 -1
  573. package/dist/collection/snowflakes/myz/z-otp/styles.css +0 -52
  574. package/dist/collection/snowflakes/myz/z-slideshow/index.js +0 -187
  575. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +0 -1
  576. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +0 -134
  577. package/dist/components/index22.js +0 -2
  578. package/dist/components/index22.js.map +0 -1
  579. package/dist/components/index23.js +0 -2
  580. package/dist/components/index23.js.map +0 -1
  581. package/dist/components/index24.js +0 -2
  582. package/dist/components/index24.js.map +0 -1
  583. package/dist/components/index25.js +0 -2
  584. package/dist/components/index25.js.map +0 -1
  585. package/dist/components/index26.js +0 -2
  586. package/dist/components/index26.js.map +0 -1
  587. package/dist/components/index27.js +0 -2
  588. package/dist/components/index27.js.map +0 -1
  589. package/dist/components/z-alert.d.ts +0 -11
  590. package/dist/components/z-alert.js +0 -2
  591. package/dist/components/z-alert.js.map +0 -1
  592. package/dist/components/z-app-header-deprecated.d.ts +0 -11
  593. package/dist/components/z-app-header-deprecated.js +0 -2
  594. package/dist/components/z-app-header-deprecated.js.map +0 -1
  595. package/dist/components/z-book-card-deprecated.d.ts +0 -11
  596. package/dist/components/z-book-card-deprecated.js +0 -2
  597. package/dist/components/z-book-card-deprecated.js.map +0 -1
  598. package/dist/components/z-menu-deprecated.d.ts +0 -11
  599. package/dist/components/z-menu-deprecated.js +0 -2
  600. package/dist/components/z-menu-deprecated.js.map +0 -1
  601. package/dist/components/z-menu-section-deprecated.d.ts +0 -11
  602. package/dist/components/z-menu-section-deprecated.js +0 -2
  603. package/dist/components/z-menu-section-deprecated.js.map +0 -1
  604. package/dist/components/z-myz-card-alert.d.ts +0 -11
  605. package/dist/components/z-myz-card-alert.js +0 -2
  606. package/dist/components/z-myz-card-alert.js.map +0 -1
  607. package/dist/components/z-myz-card-body.d.ts +0 -11
  608. package/dist/components/z-myz-card-body.js +0 -2
  609. package/dist/components/z-myz-card-body.js.map +0 -1
  610. package/dist/components/z-myz-card-cover.d.ts +0 -11
  611. package/dist/components/z-myz-card-cover.js +0 -2
  612. package/dist/components/z-myz-card-cover.js.map +0 -1
  613. package/dist/components/z-myz-card-dictionary.d.ts +0 -11
  614. package/dist/components/z-myz-card-dictionary.js +0 -2
  615. package/dist/components/z-myz-card-dictionary.js.map +0 -1
  616. package/dist/components/z-myz-card-footer-sections.d.ts +0 -11
  617. package/dist/components/z-myz-card-footer-sections.js +0 -2
  618. package/dist/components/z-myz-card-footer-sections.js.map +0 -1
  619. package/dist/components/z-myz-card-footer.d.ts +0 -11
  620. package/dist/components/z-myz-card-footer.js +0 -2
  621. package/dist/components/z-myz-card-footer.js.map +0 -1
  622. package/dist/components/z-myz-card-header.d.ts +0 -11
  623. package/dist/components/z-myz-card-header.js +0 -2
  624. package/dist/components/z-myz-card-header.js.map +0 -1
  625. package/dist/components/z-myz-card-icon.d.ts +0 -11
  626. package/dist/components/z-myz-card-icon.js +0 -2
  627. package/dist/components/z-myz-card-icon.js.map +0 -1
  628. package/dist/components/z-myz-card-info.d.ts +0 -11
  629. package/dist/components/z-myz-card-info.js +0 -2
  630. package/dist/components/z-myz-card-info.js.map +0 -1
  631. package/dist/components/z-myz-card-list.d.ts +0 -11
  632. package/dist/components/z-myz-card-list.js +0 -2
  633. package/dist/components/z-myz-card-list.js.map +0 -1
  634. package/dist/components/z-myz-card.d.ts +0 -11
  635. package/dist/components/z-myz-card.js +0 -2
  636. package/dist/components/z-myz-card.js.map +0 -1
  637. package/dist/components/z-myz-list-item.d.ts +0 -11
  638. package/dist/components/z-myz-list-item.js +0 -2
  639. package/dist/components/z-myz-list-item.js.map +0 -1
  640. package/dist/components/z-myz-list.d.ts +0 -11
  641. package/dist/components/z-myz-list.js +0 -2
  642. package/dist/components/z-myz-list.js.map +0 -1
  643. package/dist/components/z-otp.d.ts +0 -11
  644. package/dist/components/z-otp.js +0 -2
  645. package/dist/components/z-otp.js.map +0 -1
  646. package/dist/components/z-panel-elem.d.ts +0 -11
  647. package/dist/components/z-panel-elem.js +0 -2
  648. package/dist/components/z-panel-elem.js.map +0 -1
  649. package/dist/components/z-section-title.d.ts +0 -11
  650. package/dist/components/z-section-title.js +0 -2
  651. package/dist/components/z-section-title.js.map +0 -1
  652. package/dist/components/z-slideshow.d.ts +0 -11
  653. package/dist/components/z-slideshow.js +0 -2
  654. package/dist/components/z-slideshow.js.map +0 -1
  655. package/dist/components/z-toggle-button.d.ts +0 -11
  656. package/dist/components/z-toggle-button.js +0 -2
  657. package/dist/components/z-toggle-button.js.map +0 -1
  658. package/dist/esm/z-alert.entry.js +0 -18
  659. package/dist/esm/z-alert.entry.js.map +0 -1
  660. package/dist/esm/z-app-header-deprecated.entry.js +0 -190
  661. package/dist/esm/z-app-header-deprecated.entry.js.map +0 -1
  662. package/dist/esm/z-book-card-deprecated.entry.js +0 -125
  663. package/dist/esm/z-book-card-deprecated.entry.js.map +0 -1
  664. package/dist/esm/z-menu-deprecated.entry.js +0 -125
  665. package/dist/esm/z-menu-deprecated.entry.js.map +0 -1
  666. package/dist/esm/z-menu-section-deprecated.entry.js +0 -58
  667. package/dist/esm/z-menu-section-deprecated.entry.js.map +0 -1
  668. package/dist/esm/z-myz-card-alert.entry.js +0 -62
  669. package/dist/esm/z-myz-card-alert.entry.js.map +0 -1
  670. package/dist/esm/z-myz-card-dictionary.entry.js +0 -35
  671. package/dist/esm/z-myz-card-dictionary.entry.js.map +0 -1
  672. package/dist/esm/z-myz-card-footer-sections.entry.js +0 -18
  673. package/dist/esm/z-myz-card-footer-sections.entry.js.map +0 -1
  674. package/dist/esm/z-myz-card-footer.entry.js +0 -68
  675. package/dist/esm/z-myz-card-footer.entry.js.map +0 -1
  676. package/dist/esm/z-myz-card-icon.entry.js +0 -22
  677. package/dist/esm/z-myz-card-icon.entry.js.map +0 -1
  678. package/dist/esm/z-myz-card-info.entry.js +0 -128
  679. package/dist/esm/z-myz-card-info.entry.js.map +0 -1
  680. package/dist/esm/z-myz-card-list.entry.js +0 -37
  681. package/dist/esm/z-myz-card-list.entry.js.map +0 -1
  682. package/dist/esm/z-myz-card_4.entry.js +0 -104
  683. package/dist/esm/z-myz-card_4.entry.js.map +0 -1
  684. package/dist/esm/z-myz-list-item.entry.js +0 -36
  685. package/dist/esm/z-myz-list-item.entry.js.map +0 -1
  686. package/dist/esm/z-myz-list.entry.js +0 -36
  687. package/dist/esm/z-myz-list.entry.js.map +0 -1
  688. package/dist/esm/z-otp.entry.js +0 -42
  689. package/dist/esm/z-otp.entry.js.map +0 -1
  690. package/dist/esm/z-panel-elem.entry.js +0 -28
  691. package/dist/esm/z-panel-elem.entry.js.map +0 -1
  692. package/dist/esm/z-section-title.entry.js +0 -32
  693. package/dist/esm/z-section-title.entry.js.map +0 -1
  694. package/dist/esm/z-slideshow.entry.js +0 -132
  695. package/dist/esm/z-slideshow.entry.js.map +0 -1
  696. package/dist/esm/z-toggle-button.entry.js +0 -35
  697. package/dist/esm/z-toggle-button.entry.js.map +0 -1
  698. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -96
  699. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -91
  700. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -60
  701. package/dist/types/components/deprecated/z-menu-section-deprecated/index.d.ts +0 -31
  702. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -25
  703. package/dist/types/components/deprecated/z-toggle-button/index.d.ts +0 -17
  704. package/dist/types/components/z-panel-elem/index.d.ts +0 -25
  705. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -17
  706. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -19
  707. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -8
  708. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -13
  709. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -24
  710. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -35
  711. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -8
  712. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -20
  713. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -10
  714. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -36
  715. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -10
  716. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -12
  717. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -25
  718. package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -10
  719. package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -17
  720. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -31
  721. package/dist/web-components-library/p-0673b282.entry.js +0 -2
  722. package/dist/web-components-library/p-0673b282.entry.js.map +0 -1
  723. package/dist/web-components-library/p-26788712.entry.js +0 -2
  724. package/dist/web-components-library/p-26788712.entry.js.map +0 -1
  725. package/dist/web-components-library/p-2fcbc1a1.entry.js +0 -2
  726. package/dist/web-components-library/p-2fcbc1a1.entry.js.map +0 -1
  727. package/dist/web-components-library/p-30d82cf1.entry.js +0 -2
  728. package/dist/web-components-library/p-30d82cf1.entry.js.map +0 -1
  729. package/dist/web-components-library/p-31883d39.entry.js.map +0 -1
  730. package/dist/web-components-library/p-35d62356.entry.js +0 -2
  731. package/dist/web-components-library/p-35d62356.entry.js.map +0 -1
  732. package/dist/web-components-library/p-39027ac1.entry.js +0 -2
  733. package/dist/web-components-library/p-39027ac1.entry.js.map +0 -1
  734. package/dist/web-components-library/p-39bb7ee4.entry.js +0 -2
  735. package/dist/web-components-library/p-39bb7ee4.entry.js.map +0 -1
  736. package/dist/web-components-library/p-3b70a97c.entry.js +0 -2
  737. package/dist/web-components-library/p-3b70a97c.entry.js.map +0 -1
  738. package/dist/web-components-library/p-41f63f0e.entry.js +0 -2
  739. package/dist/web-components-library/p-487e3fca.entry.js +0 -2
  740. package/dist/web-components-library/p-487e3fca.entry.js.map +0 -1
  741. package/dist/web-components-library/p-4c1b6c40.entry.js +0 -2
  742. package/dist/web-components-library/p-4c1b6c40.entry.js.map +0 -1
  743. package/dist/web-components-library/p-5af96c6f.entry.js +0 -2
  744. package/dist/web-components-library/p-5c012917.entry.js +0 -2
  745. package/dist/web-components-library/p-6c5937db.entry.js +0 -2
  746. package/dist/web-components-library/p-7313c22c.entry.js.map +0 -1
  747. package/dist/web-components-library/p-7b4f5936.entry.js.map +0 -1
  748. package/dist/web-components-library/p-817630e4.entry.js +0 -2
  749. package/dist/web-components-library/p-817630e4.entry.js.map +0 -1
  750. package/dist/web-components-library/p-831d85f5.entry.js +0 -2
  751. package/dist/web-components-library/p-831d85f5.entry.js.map +0 -1
  752. package/dist/web-components-library/p-873e12a2.entry.js +0 -2
  753. package/dist/web-components-library/p-873e12a2.entry.js.map +0 -1
  754. package/dist/web-components-library/p-908b8d73.entry.js +0 -2
  755. package/dist/web-components-library/p-908b8d73.entry.js.map +0 -1
  756. package/dist/web-components-library/p-9b181758.entry.js +0 -2
  757. package/dist/web-components-library/p-9b181758.entry.js.map +0 -1
  758. package/dist/web-components-library/p-a4df3220.entry.js +0 -2
  759. package/dist/web-components-library/p-a4df3220.entry.js.map +0 -1
  760. package/dist/web-components-library/p-a702edc4.entry.js +0 -2
  761. package/dist/web-components-library/p-a702edc4.entry.js.map +0 -1
  762. package/dist/web-components-library/p-ad4c702b.entry.js +0 -2
  763. package/dist/web-components-library/p-ad4c702b.entry.js.map +0 -1
  764. package/dist/web-components-library/p-b15d006f.entry.js +0 -2
  765. package/dist/web-components-library/p-b15d006f.entry.js.map +0 -1
  766. package/dist/web-components-library/p-bbb9029e.entry.js +0 -2
  767. package/dist/web-components-library/p-bbb9029e.entry.js.map +0 -1
  768. package/dist/web-components-library/p-cb7381a0.entry.js +0 -2
  769. package/dist/web-components-library/p-ccdfec00.entry.js +0 -2
  770. package/dist/web-components-library/p-ccdfec00.entry.js.map +0 -1
  771. package/dist/web-components-library/p-ec12d752.entry.js +0 -2
  772. package/dist/web-components-library/p-ec12d752.entry.js.map +0 -1
  773. package/dist/web-components-library/p-edbedacb.entry.js +0 -2
  774. package/dist/web-components-library/p-edbedacb.entry.js.map +0 -1
  775. package/dist/web-components-library/p-f6138bf7.entry.js +0 -2
  776. package/dist/web-components-library/p-f8bc8ed9.entry.js +0 -2
  777. package/dist/web-components-library/p-f8bc8ed9.entry.js.map +0 -1
  778. package/www/build/p-0673b282.entry.js +0 -2
  779. package/www/build/p-0673b282.entry.js.map +0 -1
  780. package/www/build/p-26788712.entry.js +0 -2
  781. package/www/build/p-26788712.entry.js.map +0 -1
  782. package/www/build/p-2fcbc1a1.entry.js +0 -2
  783. package/www/build/p-2fcbc1a1.entry.js.map +0 -1
  784. package/www/build/p-30d82cf1.entry.js +0 -2
  785. package/www/build/p-30d82cf1.entry.js.map +0 -1
  786. package/www/build/p-31883d39.entry.js.map +0 -1
  787. package/www/build/p-35d62356.entry.js +0 -2
  788. package/www/build/p-35d62356.entry.js.map +0 -1
  789. package/www/build/p-39027ac1.entry.js +0 -2
  790. package/www/build/p-39027ac1.entry.js.map +0 -1
  791. package/www/build/p-39bb7ee4.entry.js +0 -2
  792. package/www/build/p-39bb7ee4.entry.js.map +0 -1
  793. package/www/build/p-3b70a97c.entry.js +0 -2
  794. package/www/build/p-3b70a97c.entry.js.map +0 -1
  795. package/www/build/p-41f63f0e.entry.js +0 -2
  796. package/www/build/p-472fe240.js +0 -2
  797. package/www/build/p-487e3fca.entry.js +0 -2
  798. package/www/build/p-487e3fca.entry.js.map +0 -1
  799. package/www/build/p-4c1b6c40.entry.js +0 -2
  800. package/www/build/p-4c1b6c40.entry.js.map +0 -1
  801. package/www/build/p-5af96c6f.entry.js +0 -2
  802. package/www/build/p-5c012917.entry.js +0 -2
  803. package/www/build/p-6c5937db.entry.js +0 -2
  804. package/www/build/p-7313c22c.entry.js.map +0 -1
  805. package/www/build/p-7b4f5936.entry.js.map +0 -1
  806. package/www/build/p-817630e4.entry.js +0 -2
  807. package/www/build/p-817630e4.entry.js.map +0 -1
  808. package/www/build/p-831d85f5.entry.js +0 -2
  809. package/www/build/p-831d85f5.entry.js.map +0 -1
  810. package/www/build/p-873e12a2.entry.js +0 -2
  811. package/www/build/p-873e12a2.entry.js.map +0 -1
  812. package/www/build/p-908b8d73.entry.js +0 -2
  813. package/www/build/p-908b8d73.entry.js.map +0 -1
  814. package/www/build/p-9b181758.entry.js +0 -2
  815. package/www/build/p-9b181758.entry.js.map +0 -1
  816. package/www/build/p-a4df3220.entry.js +0 -2
  817. package/www/build/p-a4df3220.entry.js.map +0 -1
  818. package/www/build/p-a702edc4.entry.js +0 -2
  819. package/www/build/p-a702edc4.entry.js.map +0 -1
  820. package/www/build/p-ad4c702b.entry.js +0 -2
  821. package/www/build/p-ad4c702b.entry.js.map +0 -1
  822. package/www/build/p-b15d006f.entry.js +0 -2
  823. package/www/build/p-b15d006f.entry.js.map +0 -1
  824. package/www/build/p-bbb9029e.entry.js +0 -2
  825. package/www/build/p-bbb9029e.entry.js.map +0 -1
  826. package/www/build/p-cb7381a0.entry.js +0 -2
  827. package/www/build/p-ccdfec00.entry.js +0 -2
  828. package/www/build/p-ccdfec00.entry.js.map +0 -1
  829. package/www/build/p-ec12d752.entry.js +0 -2
  830. package/www/build/p-ec12d752.entry.js.map +0 -1
  831. package/www/build/p-edbedacb.entry.js +0 -2
  832. package/www/build/p-edbedacb.entry.js.map +0 -1
  833. package/www/build/p-f6138bf7.entry.js +0 -2
  834. package/www/build/p-f8bc8ed9.entry.js +0 -2
  835. package/www/build/p-f8bc8ed9.entry.js.map +0 -1
  836. /package/dist/web-components-library/{p-cdfbcb3b.entry.js.map → p-02fb0bf9.entry.js.map} +0 -0
  837. /package/dist/web-components-library/{p-e1081a2f.entry.js.map → p-067411f0.entry.js.map} +0 -0
  838. /package/dist/web-components-library/{p-136f336a.entry.js.map → p-121f224a.entry.js.map} +0 -0
  839. /package/dist/web-components-library/{p-af6bdd6e.entry.js.map → p-1e71577c.entry.js.map} +0 -0
  840. /package/dist/web-components-library/{p-4085be9a.entry.js.map → p-1ef66142.entry.js.map} +0 -0
  841. /package/dist/web-components-library/{p-22cb956c.entry.js.map → p-1efed23b.entry.js.map} +0 -0
  842. /package/dist/web-components-library/{p-ab221eac.entry.js.map → p-222898cd.entry.js.map} +0 -0
  843. /package/dist/web-components-library/{p-c39e4a49.entry.js.map → p-2bd1326c.entry.js.map} +0 -0
  844. /package/dist/web-components-library/{p-67476a7c.entry.js.map → p-317cbb00.entry.js.map} +0 -0
  845. /package/dist/web-components-library/{p-6d382092.entry.js.map → p-32bc925a.entry.js.map} +0 -0
  846. /package/dist/web-components-library/{p-f36e7e6b.entry.js.map → p-33d993fe.entry.js.map} +0 -0
  847. /package/dist/web-components-library/{p-1a13cd9b.entry.js.map → p-3748979c.entry.js.map} +0 -0
  848. /package/dist/web-components-library/{p-20401d48.entry.js.map → p-3a9a120f.entry.js.map} +0 -0
  849. /package/dist/web-components-library/{p-0251d009.entry.js.map → p-4f6c86ce.entry.js.map} +0 -0
  850. /package/dist/web-components-library/{p-5b3cfc2e.entry.js.map → p-51ebf661.entry.js.map} +0 -0
  851. /package/dist/web-components-library/{p-0c9247be.entry.js.map → p-6ea349f6.entry.js.map} +0 -0
  852. /package/dist/web-components-library/{p-39b91bfa.entry.js.map → p-7dbd0e3e.entry.js.map} +0 -0
  853. /package/dist/web-components-library/{p-aba618c3.entry.js.map → p-89b30fce.entry.js.map} +0 -0
  854. /package/dist/web-components-library/{p-f6138bf7.entry.js.map → p-8b3257b4.entry.js.map} +0 -0
  855. /package/dist/web-components-library/{p-b38bca77.entry.js.map → p-8c3a7bc1.entry.js.map} +0 -0
  856. /package/dist/web-components-library/{p-bb610386.entry.js.map → p-8d2704ee.entry.js.map} +0 -0
  857. /package/dist/web-components-library/{p-82e87326.entry.js.map → p-8f4fcd01.entry.js.map} +0 -0
  858. /package/dist/web-components-library/{p-cb7381a0.entry.js.map → p-8fb3354e.entry.js.map} +0 -0
  859. /package/dist/web-components-library/{p-88c45ed6.entry.js.map → p-904c7fdd.entry.js.map} +0 -0
  860. /package/dist/web-components-library/{p-b7d4b886.entry.js.map → p-a5187022.entry.js.map} +0 -0
  861. /package/dist/web-components-library/{p-fa02ba25.entry.js.map → p-a52b3dd1.entry.js.map} +0 -0
  862. /package/dist/web-components-library/{p-6c5937db.entry.js.map → p-a8f43afd.entry.js.map} +0 -0
  863. /package/dist/web-components-library/{p-869ba2b5.entry.js.map → p-b7620e80.entry.js.map} +0 -0
  864. /package/dist/web-components-library/{p-a09646a9.entry.js.map → p-bc9237eb.entry.js.map} +0 -0
  865. /package/dist/web-components-library/{p-7965766c.entry.js.map → p-ccedd440.entry.js.map} +0 -0
  866. /package/dist/web-components-library/{p-8f6ff78c.entry.js.map → p-d6441232.entry.js.map} +0 -0
  867. /package/dist/web-components-library/{p-87ea0b0a.entry.js.map → p-df5eeb75.entry.js.map} +0 -0
  868. /package/dist/web-components-library/{p-4a7431f6.entry.js.map → p-dfb0e8d8.entry.js.map} +0 -0
  869. /package/dist/web-components-library/{p-a2eb700b.entry.js.map → p-efe489a5.entry.js.map} +0 -0
  870. /package/www/build/{p-cdfbcb3b.entry.js.map → p-02fb0bf9.entry.js.map} +0 -0
  871. /package/www/build/{p-e1081a2f.entry.js.map → p-067411f0.entry.js.map} +0 -0
  872. /package/www/build/{p-136f336a.entry.js.map → p-121f224a.entry.js.map} +0 -0
  873. /package/www/build/{p-af6bdd6e.entry.js.map → p-1e71577c.entry.js.map} +0 -0
  874. /package/www/build/{p-4085be9a.entry.js.map → p-1ef66142.entry.js.map} +0 -0
  875. /package/www/build/{p-22cb956c.entry.js.map → p-1efed23b.entry.js.map} +0 -0
  876. /package/www/build/{p-ab221eac.entry.js.map → p-222898cd.entry.js.map} +0 -0
  877. /package/www/build/{p-c39e4a49.entry.js.map → p-2bd1326c.entry.js.map} +0 -0
  878. /package/www/build/{p-67476a7c.entry.js.map → p-317cbb00.entry.js.map} +0 -0
  879. /package/www/build/{p-6d382092.entry.js.map → p-32bc925a.entry.js.map} +0 -0
  880. /package/www/build/{p-f36e7e6b.entry.js.map → p-33d993fe.entry.js.map} +0 -0
  881. /package/www/build/{p-1a13cd9b.entry.js.map → p-3748979c.entry.js.map} +0 -0
  882. /package/www/build/{p-20401d48.entry.js.map → p-3a9a120f.entry.js.map} +0 -0
  883. /package/www/build/{p-0251d009.entry.js.map → p-4f6c86ce.entry.js.map} +0 -0
  884. /package/www/build/{p-5b3cfc2e.entry.js.map → p-51ebf661.entry.js.map} +0 -0
  885. /package/www/build/{p-0c9247be.entry.js.map → p-6ea349f6.entry.js.map} +0 -0
  886. /package/www/build/{p-39b91bfa.entry.js.map → p-7dbd0e3e.entry.js.map} +0 -0
  887. /package/www/build/{p-aba618c3.entry.js.map → p-89b30fce.entry.js.map} +0 -0
  888. /package/www/build/{p-f6138bf7.entry.js.map → p-8b3257b4.entry.js.map} +0 -0
  889. /package/www/build/{p-b38bca77.entry.js.map → p-8c3a7bc1.entry.js.map} +0 -0
  890. /package/www/build/{p-bb610386.entry.js.map → p-8d2704ee.entry.js.map} +0 -0
  891. /package/www/build/{p-82e87326.entry.js.map → p-8f4fcd01.entry.js.map} +0 -0
  892. /package/www/build/{p-cb7381a0.entry.js.map → p-8fb3354e.entry.js.map} +0 -0
  893. /package/www/build/{p-88c45ed6.entry.js.map → p-904c7fdd.entry.js.map} +0 -0
  894. /package/www/build/{p-b7d4b886.entry.js.map → p-a5187022.entry.js.map} +0 -0
  895. /package/www/build/{p-fa02ba25.entry.js.map → p-a52b3dd1.entry.js.map} +0 -0
  896. /package/www/build/{p-6c5937db.entry.js.map → p-a8f43afd.entry.js.map} +0 -0
  897. /package/www/build/{p-869ba2b5.entry.js.map → p-b7620e80.entry.js.map} +0 -0
  898. /package/www/build/{p-a09646a9.entry.js.map → p-bc9237eb.entry.js.map} +0 -0
  899. /package/www/build/{p-7965766c.entry.js.map → p-ccedd440.entry.js.map} +0 -0
  900. /package/www/build/{p-8f6ff78c.entry.js.map → p-d6441232.entry.js.map} +0 -0
  901. /package/www/build/{p-87ea0b0a.entry.js.map → p-df5eeb75.entry.js.map} +0 -0
  902. /package/www/build/{p-4a7431f6.entry.js.map → p-dfb0e8d8.entry.js.map} +0 -0
  903. /package/www/build/{p-a2eb700b.entry.js.map → p-efe489a5.entry.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"z-app-header-deprecated.entry.js","sources":["src/components/deprecated/z-app-header-deprecated/styles.css?tag=z-app-header-deprecated&encapsulation=shadow","src/components/deprecated/z-app-header-deprecated/index.tsx"],"sourcesContent":[":host {\n /**\n * @prop --app-header-typography-1-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `24px`.\n * @prop --app-header-typography-2-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `28px`.\n * @prop --app-header-typography-3-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `32px`.\n * @prop --app-header-typography-4-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `36px`.\n * @prop --app-header-typography-5-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `42px`.\n * @prop --app-header-typography-6-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `48px`.\n * @prop --app-header-typography-7-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `54px`.\n * @prop --app-header-typography-8-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `60px`.\n * @prop --app-header-typography-9-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `68px`.\n * @prop --app-header-typography-10-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `76px`.\n * @prop --app-header-typography-11-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `84px`.\n * @prop --app-header-typography-12-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `92px`.\n * @prop --app-header-typography-1-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.33`.\n * @prop --app-header-typography-2-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.29`.\n * @prop --app-header-typography-3-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @prop --app-header-typography-4-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @prop --app-header-typography-5-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @prop --app-header-typography-6-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @prop --app-header-typography-7-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @prop --app-header-typography-8-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @prop --app-header-typography-9-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @prop --app-header-typography-10-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @prop --app-header-typography-11-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @prop --app-header-typography-12-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @prop --app-header-typography-1-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.2 / 1em)`.\n * @prop --app-header-typography-2-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.4 / 1em)`.\n * @prop --app-header-typography-3-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.6 / 1em)`.\n * @prop --app-header-typography-4-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.8 / 1em)`.\n * @prop --app-header-typography-5-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1 / 1em)`.\n * @prop --app-header-typography-6-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.2 / 1em)`.\n * @prop --app-header-typography-7-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.4 / 1em)`.\n * @prop --app-header-typography-8-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.6 / 1em)`.\n * @prop --app-header-typography-9-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.8 / 1em)`.\n * @prop --app-header-typography-10-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2 / 1em)`.\n * @prop --app-header-typography-11-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.2 / 1em)`.\n * @prop --app-header-typography-12-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.4 / 1em)`.\n * @prop --app-header-content-max-width: Use it to set header's content max width. Useful when the project use a fixed width layout. Defaults to `100%`.\n * @prop --app-header-height: Defaults to `auto`.\n * @prop --app-header-top-offset: Top offset for the stuck header. Useful when there are other fixed elements above the header. Defaults to `48px` (the height of the main topbar).\n * @prop --app-header-drawer-trigger-size: The size of the drawer icon. Defaults to `--space-unit * 4`.\n * @prop --app-header-bg: Header background color. Defaults to `--color-surface01`.\n * @prop --app-header-stucked-bg: Stuck header background color. Defaults to `--color-surface01`.\n * @prop --app-header-text-color: Text color. Useful on `hero` variant to set text color based on the colors of the background image. Defaults to `--color-default-text`.\n * @prop --app-header-title-font-size: Variable to customize the title's font size. NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. Defaults to `--app-header-typography-3-size`.\n * @prop --app-header-title-lineheight: Variable to customize the title's line-height. NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value and use the same level as the one of the font size. Defaults to `--app-header-typography-3-lineheight`.\n * @prop --app-header-title-letter-spacing: Variable to customize the title's letter-spacing. NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value and use the same level as the one of the font size. Defaults to `--app-header-typography-3-tracking`.\n * @prop --app-header-stucked-text-color: Stuck header text color. Defaults to `--color-default-text`.\n */\n --app-header-typography-1-size: 24px;\n --app-header-typography-2-size: 28px;\n --app-header-typography-3-size: 32px;\n --app-header-typography-4-size: 36px;\n --app-header-typography-5-size: 42px;\n --app-header-typography-6-size: 48px;\n --app-header-typography-7-size: 54px;\n --app-header-typography-8-size: 60px;\n --app-header-typography-9-size: 68px;\n --app-header-typography-10-size: 76px;\n --app-header-typography-11-size: 84px;\n --app-header-typography-12-size: 92px;\n --app-header-typography-1-lineheight: 1.33;\n --app-header-typography-2-lineheight: 1.29;\n --app-header-typography-3-lineheight: 1.25;\n --app-header-typography-4-lineheight: 1.24;\n --app-header-typography-5-lineheight: 1.24;\n --app-header-typography-6-lineheight: 1.25;\n --app-header-typography-7-lineheight: 1.2;\n --app-header-typography-8-lineheight: 1.26;\n --app-header-typography-9-lineheight: 1.24;\n --app-header-typography-10-lineheight: 1.26;\n --app-header-typography-11-lineheight: 1.2;\n --app-header-typography-12-lineheight: 1.2;\n --app-header-typography-1-tracking: calc(-0.2 / 1em);\n --app-header-typography-2-tracking: calc(-0.4 / 1em);\n --app-header-typography-3-tracking: calc(-0.6 / 1em);\n --app-header-typography-4-tracking: calc(-0.8 / 1em);\n --app-header-typography-5-tracking: calc(-1 / 1em);\n --app-header-typography-6-tracking: calc(-1.2 / 1em);\n --app-header-typography-7-tracking: calc(-1.4 / 1em);\n --app-header-typography-8-tracking: calc(-1.6 / 1em);\n --app-header-typography-9-tracking: calc(-1.8 / 1em);\n --app-header-typography-10-tracking: calc(-2 / 1em);\n --app-header-typography-11-tracking: calc(-2.2 / 1em);\n --app-header-typography-12-tracking: calc(-2.4 / 1em);\n --app-header-content-max-width: 100%;\n --app-header-height: auto;\n\n /* Variable to set stuck header and drawer's top offset.\n Useful when something is absolutely positioned above the header. */\n --app-header-top-offset: 48px;\n --app-header-drawer-trigger-size: calc(var(--space-unit) * 4);\n\n /* Variable to customize header background color. */\n --app-header-bg: var(--color-surface01);\n\n /* Variable to customize stuck header background color. */\n --app-header-stucked-bg: var(--color-surface01);\n\n /* Variable to customize text and icon color. */\n --app-header-text-color: var(--color-default-text);\n\n /* Variable to customize the title's font size.\n NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. */\n --app-header-title-font-size: var(--app-header-typography-3-size);\n\n /* Variable to customize the title's line-height.\n NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value\n and use the same level as the one of the font size. */\n --app-header-title-lineheight: var(--app-header-typography-3-lineheight);\n\n /* Variable to customize the title's letter-spacing.\n NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value\n and use the same level as the one of the font size. */\n --app-header-title-letter-spacing: var(--app-header-typography-3-tracking);\n\n /* Variable to customize stuck header's text and icon color. */\n --app-header-stucked-text-color: var(--color-default-text);\n\n position: relative;\n display: block;\n height: var(--app-header-height);\n color: var(--app-header-text-color);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n.heading-panel {\n position: relative;\n display: flex;\n width: 100%;\n max-width: var(--app-header-content-max-width);\n flex-direction: column;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: baseline;\n padding: var(--grid-margin);\n margin: 0 auto;\n background: var(--app-header-bg);\n gap: calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);\n}\n\n.hero-container + .heading-panel {\n background: transparent;\n}\n\n:host(:empty) .heading-panel {\n padding: 0;\n}\n\n.heading-container {\n position: relative;\n z-index: 1;\n display: flex;\n width: 100%;\n max-width: 100%;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n}\n\n.heading-title {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n align-items: flex-start;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n::slotted([slot=\"title\"]),\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n margin: 0;\n font-family: \"IBM Plex Serif\", serif;\n font-weight: var(--font-bd);\n}\n\n::slotted([slot=\"title\"]) {\n font-size: var(--app-header-title-font-size);\n letter-spacing: var(--app-header-title-letter-spacing);\n line-height: var(--app-header-title-lineheight);\n}\n\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n font-size: var(--app-header-typography-3-size);\n letter-spacing: var(--app-header-typography-3-tracking);\n line-height: var(--app-header-typography-3-lineheight);\n}\n\n:host(:not([menu-length=\"0\"])) .heading-subtitle {\n padding-left: calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2));\n}\n\n::slotted([slot=\"top-subtitle\"]),\n::slotted([slot=\"subtitle\"]) {\n margin: 0;\n font-family: var(--font-family-sans);\n font-size: 20px;\n font-style: italic;\n line-height: 26px;\n}\n\n::slotted([slot=\"subtitle\"]) {\n font-weight: 500;\n}\n\n::slotted([slot=\"top-subtitle\"]) {\n font-weight: 400;\n}\n\n.menu-container {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-flow: row wrap;\n}\n\n:host([menu-length=\"0\"]:not([enable-search])) .menu-container,\n.menu-container:empty {\n display: none;\n}\n\n.menu-container ::slotted([open]) {\n position: relative;\n z-index: 3;\n}\n\nz-searchbar {\n z-index: 0;\n display: flex;\n width: auto;\n min-width: calc(var(--space-unit) * 32);\n flex: 1 auto;\n align-items: center;\n margin-left: auto;\n}\n\n.heading-stuck {\n position: fixed;\n z-index: 20;\n top: var(--app-header-top-offset);\n left: 0;\n width: 100%;\n max-width: 100%;\n animation: slide-stuck-heading-in 250ms ease-out;\n background: var(--app-header-stucked-bg);\n box-shadow: var(--shadow-2);\n color: var(--app-header-stucked-text-color);\n}\n\n.heading-stuck-content {\n display: flex;\n max-width: var(--app-header-content-max-width);\n align-items: center;\n padding: var(--space-unit) var(--grid-margin);\n margin: 0 auto;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n.heading-stuck .heading-title {\n overflow: hidden;\n}\n\n.heading-stuck .heading-title > *,\n.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.heading-stuck-content z-button {\n margin-left: auto;\n}\n\n.drawer-trigger {\n padding: 0;\n border: 0;\n margin: 0;\n appearance: none;\n background: none;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n}\n\n.drawer-trigger z-icon {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n fill: currentcolor;\n}\n\n/* Simulate the height of the first line of text,\nto correctly align drawer icon and search page button with the title */\n.heading-container :is(.drawer-trigger, z-button.search-page-button) {\n display: flex;\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n align-items: center;\n}\n\n.heading-container z-button.search-page-button {\n margin-left: auto;\n}\n\n.drawer-content {\n display: none;\n}\n\nz-offcanvas[open] .drawer-content {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-direction: column;\n row-gap: calc(var(--space-unit) * 2.5);\n}\n\nz-offcanvas[open] .drawer-content ::slotted(z-menu) {\n width: 100%;\n}\n\n.drawer-close {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n padding: 0;\n border: 0;\n margin: var(--space-unit) 0 calc(var(--space-unit) * 2.5);\n appearance: none;\n background: transparent;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n fill: currentcolor;\n font-size: inherit;\n outline: none;\n}\n\n.drawer-close:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.hero-container {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n:host([overlay]) .heading-panel .drawer-trigger z-icon,\n:host([overlay]) .heading-panel .heading-container,\n:host([overlay]) .heading-panel .menu-container {\n color: var(--color-white);\n fill: var(--color-white);\n}\n\n:host([overlay]) .heading-panel .menu-container ::slotted(z-menu) {\n --z-menu-label-color: var(--color-white);\n}\n\n:host([overlay]) .hero-container::after {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--color-black);\n content: \"\";\n opacity: 0.5;\n}\n\n.hero-container img,\n.hero-container ::slotted(*) {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: top center;\n -webkit-user-drag: none;\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-6-size);\n --app-header-title-lineheight: var(--app-header-typography-6-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-6-tracking);\n }\n\n .heading-panel {\n flex-flow: row wrap;\n align-items: center;\n padding-bottom: calc(var(--space-unit) * 2);\n }\n\n .heading-container {\n margin-right: auto;\n }\n\n :host(:is([flow=\"offcanvas\"], [menu-length=\"0\"])) :is(.heading-container, .menu-container) {\n width: auto;\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-subtitle {\n padding-left: 0;\n }\n\n .menu-container {\n flex: initial;\n align-items: center;\n }\n\n :host([menu-length=\"0\"]) .menu-container:not(:empty) {\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n }\n\n :host(:not([flow=\"offcanvas\"])) .menu-container {\n gap: var(--space-unit) calc(var(--space-unit) * 5);\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger {\n display: none;\n }\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-7-size);\n --app-header-title-lineheight: var(--app-header-typography-7-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-7-tracking);\n }\n\n .heading-panel {\n justify-content: flex-start;\n padding-bottom: calc(var(--space-unit) * 3);\n }\n\n .heading-container,\n .menu-container {\n width: auto;\n }\n\n :host([flow=\"stack\"]) .heading-panel {\n flex-flow: column;\n align-items: flex-start;\n }\n\n :host([flow=\"stack\"]) .menu-container {\n width: 100%;\n }\n\n :host(:not([flow=\"offcanvas\"], [menu-length=\"0\"])) .heading-panel {\n row-gap: calc(var(--space-unit) * 3);\n }\n\n z-searchbar {\n min-width: calc(var(--space-unit) * 45);\n flex: initial;\n }\n}\n\n/* Wide breakpoint */\n@media (min-width: 1366px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-9-size);\n --app-header-title-lineheight: var(--app-header-typography-9-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-9-tracking);\n }\n}\n\n@keyframes slide-stuck-heading-in {\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n\n 100% {\n transform: none;\n }\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, OffCanvasVariant, TransitionDirection} from \"../../../beans\";\n\nconst SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== \"undefined\";\n\n/**\n * @slot title - Slot for the main title\n * @slot subtitle - Slot for the bottom subtitle. It will not appear in stuck header.\n * @slot top-subtitle - Slot for the top subtitle. It will not appear in stuck header.\n * @slot stucked-title - Title for the stuck header. By default it uses the text from the `title` slot.\n */\n@Component({\n tag: \"z-app-header-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAppHeaderDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZAppHeaderDeprecatedElement;\n\n /**\n * Stuck mode for the header.\n * You can programmatically set it using an IntersectionObserver.\n */\n @Prop({reflect: true})\n stuck = false;\n\n /**\n * Set the hero image source for the header.\n * You can also use a [slot=\"hero\"] node for advanced customization.\n */\n @Prop()\n hero: string;\n\n /**\n * Should place an overlay over the hero image.\n * Useful for legibility purpose.\n */\n @Prop({reflect: true})\n overlay = false;\n\n /**\n * Control menu bar position in the header.\n * - auto: the menu bar is positioned near the title\n * - stack: the menu bar is positioned below the title\n * - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu\n */\n @Prop({reflect: true})\n flow: \"auto\" | \"stack\" | \"offcanvas\" = \"auto\";\n\n /**\n * The opening state of the drawer.\n */\n @Prop({reflect: true})\n drawerOpen = false;\n\n /**\n * Enable the search bar.\n */\n @Prop({reflect: true})\n enableSearch = false;\n\n /**\n * Placeholder text for the search bar.\n */\n @Prop()\n searchPlaceholder = \"Cerca\";\n\n /**\n * Search string for the search bar.\n */\n @Prop({mutable: true})\n searchString = \"\";\n\n /**\n * Url to the search page.\n * Set this prop and `enableSearch` to show a link-button on mobile and tablet viewports, instead of the normal searchbar.\n * The link will also appear on the sticky header.\n */\n @Prop()\n searchPageUrl: string;\n\n /**\n * The stuck state of the bar.\n */\n @State()\n private _stuck = false;\n\n /**\n * Current viewport.\n * Used to change the aspect of the search button (icon only) on mobile and tablet.\n */\n @State()\n private currentViewport: \"mobile\" | \"tablet\" | \"desktop\" = \"mobile\";\n\n /**\n * Current count of menu items.\n */\n @State()\n menuLength: number;\n\n /**\n * Emitted when the `stuck` state of the header changes\n */\n @Event()\n sticking: EventEmitter;\n\n private container?: HTMLDivElement;\n\n private menuElements?: NodeListOf<HTMLElement>;\n\n private observer?: IntersectionObserver =\n SUPPORT_INTERSECTION_OBSERVER &&\n new IntersectionObserver(\n ([entry]) => {\n this._stuck = !entry.isIntersecting;\n },\n {\n threshold: 0.5,\n }\n );\n\n constructor() {\n this.openDrawer = this.openDrawer.bind(this);\n this.closeDrawer = this.closeDrawer.bind(this);\n this.collectMenuElements = this.collectMenuElements.bind(this);\n }\n\n @Listen(\"resize\", {target: \"window\", passive: true})\n evaluateViewport(): void {\n if (window.innerWidth < 768) {\n this.currentViewport = \"mobile\";\n } else if (window.innerWidth >= 768 && window.innerWidth < 1152) {\n this.currentViewport = \"tablet\";\n } else {\n this.currentViewport = \"desktop\";\n }\n }\n\n @Watch(\"_stuck\")\n onStuck(): void {\n const scrollParent = this.scrollParent;\n if (!scrollParent) {\n return;\n }\n\n this.sticking.emit(this._stuck);\n }\n\n @Watch(\"drawerOpen\")\n setMenuFloatingMode(): void {\n if (this.menuElements.length === 0) {\n return;\n }\n\n const elements = this.menuElements;\n elements.forEach((element) => {\n (element as HTMLZMenuDeprecatedElement).open = false;\n (element as HTMLZMenuDeprecatedElement).floating = !this.drawerOpen;\n (element as HTMLZMenuDeprecatedElement).verticalContext = this.drawerOpen;\n });\n }\n\n private get title(): string {\n const titleElement = this.hostElement.querySelector('[slot=\"title\"]');\n if (titleElement === null) {\n return \"\";\n }\n\n return titleElement.textContent.trim();\n }\n\n private get scrollParent(): Window | Element {\n const parent = this.hostElement.offsetParent;\n if (parent === document.body || parent === document.documentElement) {\n return window;\n }\n\n return parent;\n }\n\n private get canShowMenu(): boolean {\n return this.flow !== \"offcanvas\" && this.currentViewport !== \"mobile\" && !this.drawerOpen;\n }\n\n private get canShowSearchbar(): boolean {\n if (!this.enableSearch) {\n return false;\n }\n\n // Always show the searchbar on desktop, even if a searchPageUrl is set\n if (this.searchPageUrl) {\n return this.currentViewport === \"desktop\";\n }\n\n return true;\n }\n\n /**\n * Whether the header has a hero image, either as a prop or as a slot.\n */\n private get hasHero(): boolean {\n return !!this.hero || this.hostElement.querySelector(\"[slot=hero]\") !== null;\n }\n\n private openDrawer(): void {\n this.drawerOpen = true;\n }\n\n private closeDrawer(): void {\n this.drawerOpen = false;\n }\n\n private collectMenuElements(): void {\n const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot=\"menu\"]'));\n this.menuLength = menuElements.length;\n this.setMenuFloatingMode();\n }\n\n private enableStuckObserver(): void {\n if (this.observer) {\n this.observer.observe(this.container);\n }\n }\n\n private disableStuckMode(): void {\n this._stuck = false;\n if (this.observer) {\n this.observer.unobserve(this.container);\n }\n }\n\n @Watch(\"stuck\")\n onStuckMode(): void {\n if (this.stuck) {\n this.enableStuckObserver();\n } else {\n this.disableStuckMode();\n }\n }\n\n private renderSearchLinkButton(): HTMLZButtonElement | null {\n if (!this.enableSearch || !this.searchPageUrl || this.currentViewport === \"desktop\") {\n return null;\n }\n\n return (\n <z-button\n class=\"search-page-button\"\n variant={ButtonVariant.SECONDARY}\n href={this.searchPageUrl}\n icon=\"search\"\n size={ControlSize.X_SMALL}\n ></z-button>\n );\n }\n\n private renderSeachbar(searchButtonIconOnly: boolean): HTMLZSearchbarElement {\n return (\n <z-searchbar\n value={this.searchString}\n placeholder={this.searchPlaceholder}\n showSearchButton={true}\n searchButtonIconOnly={searchButtonIconOnly}\n size={ControlSize.X_SMALL}\n variant={ButtonVariant.SECONDARY}\n preventSubmit={this.searchString.length < 3}\n onSearchTyping={(e) => (this.searchString = e.detail)}\n />\n );\n }\n\n componentDidLoad(): void {\n this.collectMenuElements();\n this.onStuckMode();\n this.evaluateViewport();\n }\n\n render(): HTMLZAppHeaderElement {\n return (\n <Host menu-length={this.menuLength}>\n {this.hasHero && (\n <div class=\"hero-container\">\n <slot name=\"hero\">\n {this.hero && (\n <img\n alt=\"\"\n src={this.hero}\n />\n )}\n </slot>\n </div>\n )}\n\n <div\n class=\"heading-panel\"\n ref={(el) => (this.container = el)}\n >\n <div class=\"heading-container\">\n <div class=\"heading-subtitle\">\n <slot name=\"top-subtitle\"></slot>\n </div>\n <div class=\"heading-title\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <slot name=\"title\"></slot>\n\n {this.renderSearchLinkButton()}\n </div>\n\n <div class=\"heading-subtitle\">\n <slot name=\"subtitle\"></slot>\n </div>\n </div>\n\n {(this.canShowMenu || this.canShowSearchbar) && (\n <div class=\"menu-container\">\n {this.canShowMenu && (\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n )}\n\n {this.canShowSearchbar && this.renderSeachbar(this.currentViewport !== \"desktop\")}\n </div>\n )}\n </div>\n\n <z-offcanvas\n variant={OffCanvasVariant.OVERLAY}\n transitiondirection={TransitionDirection.RIGHT}\n open={this.drawerOpen}\n onCanvasOpenStatusChanged={(ev) => (this.drawerOpen = ev.detail)}\n >\n <button\n class=\"drawer-close\"\n aria-label=\"Chiudi menu\"\n onClick={this.closeDrawer}\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n disabled={!this.drawerOpen}\n >\n <z-icon name=\"close\"></z-icon>\n </button>\n\n <div\n class=\"drawer-content\"\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n >\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n </div>\n </z-offcanvas>\n\n {this._stuck && (\n <div class=\"heading-stuck\">\n <div class=\"heading-stuck-content\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <div class=\"heading-title\">\n <slot name=\"stucked-title\">{this.title}</slot>\n </div>\n\n {this.renderSearchLinkButton()}\n {this.canShowSearchbar && this.currentViewport === \"desktop\" && this.renderSeachbar(false)}\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,ygRAAygR,CAAC;;ACeniR,MAAM,6BAA6B,GAAG,OAAO,oBAAoB,KAAK,WAAW;MAapE,oBAAoB,GAAA,MAAA;AAyG/B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAtGA;;;AAGG;AAEH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;AASb;;;AAGG;AAEH,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;AAEf;;;;;AAKG;AAEH,QAAA,IAAA,CAAA,IAAI,GAAmC,MAAM;AAE7C;;AAEG;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;AAEG;AAEH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;AAEpB;;AAEG;AAEH,QAAA,IAAA,CAAA,iBAAiB,GAAG,OAAO;AAE3B;;AAEG;AAEH,QAAA,IAAA,CAAA,YAAY,GAAG,EAAE;AAUjB;;AAEG;AAEK,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAEtB;;;AAGG;AAEK,QAAA,IAAA,CAAA,eAAe,GAAoC,QAAQ;QAkB3D,IAAA,CAAA,QAAQ,GACd,6BAA6B;AAC7B,YAAA,IAAI,oBAAoB,CACtB,CAAC,CAAC,KAAK,CAAC,KAAI;AACV,gBAAA,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,cAAc;AACrC,aAAC,EACD;AACE,gBAAA,SAAS,EAAE,GAAG;AACf,aAAA,CACF;QAGD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IA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,cAAc,CAAC,KAAK,CAAC,CACtF,CACF,CACP,CACI;;;;;;;;;;;;;;;;;;;"}
@@ -1,125 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, d as getElement } from './index-BcDWN4F1.js';
2
- import { $ as BookCardDeprecatedVariant } from './index-DdetsoIY.js';
3
- import { B as Breakpoints } from './breakpoints-Q-tWjk7P.js';
4
- import { r as randomId } from './utils-CEdyahRZ.js';
5
-
6
- const stylesCss = () => `:host{--z-book-card-ribbon-background-color:var(--avatar-C08);--z-book-card-ribbon-shadow-color:var(--green950);--z-book-card-compact-width:262px;--z-book-card-compact-height:568px}:host>article{display:block;width:100%;max-width:360px;box-sizing:border-box;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>article div.cover{position:relative}:host>article div.cover div.img-wrapper{display:flex;overflow:hidden;border:var(--border-size-small) solid var(--color-surface03);line-height:0}:host>article div.cover div.img-wrapper img{width:auto;max-width:100%;height:auto;max-height:100%;align-self:flex-end}:host>article div.cover .ribbon{position:absolute;z-index:10;top:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * -2);display:flex;max-width:100%;height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;padding:0 calc(var(--space-unit) * 2);border:var(--border-size-medium) solid var(--color-surface01);background:var(--z-book-card-ribbon-background-color);border-radius:0 var(--border-radius) var(--border-radius) 0;box-shadow:var(--shadow-2);color:var(--color-text-inverse);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-sb);line-height:initial}:host>article div.cover .ribbon.interactive:hover{cursor:pointer}:host>article div.cover .ribbon.interactive:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}:host>article div.cover .ribbon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.cover .ribbon::before{position:absolute;bottom:-12px;left:-2px;width:0;height:0;border-top:10px solid var(--z-book-card-ribbon-shadow-color);border-left:16px solid transparent;content:""}:host>article div.cover .ribbon z-icon{margin-right:var(--space-unit)}:host>article div.content{margin:var(--space-unit) 0;border-radius:var(--border-radius)}:host>article .title{display:flex;height:100%;align-self:center;color:var(--color-default-text);font-size:var(--font-size-4);font-weight:var(--font-sb);line-height:1.5}:host>article .title *{all:unset}:host>article div.subtitle{color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:1.4}:host>article div.authors{color:var(--color-default-text);font-size:var(--font-size-1);font-weight:var(--font-rg);line-height:1.33}:host>article div.isbn{overflow:hidden;color:var(--color-default-text);font-size:var(--font-size-2);line-height:1.33;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.isbn>.code{font-weight:var(--font-sb)}:host>article div.tags{display:flex;overflow:hidden;max-height:32px;flex-flow:row wrap;align-content:stretch;align-items:stretch;justify-content:flex-start;gap:calc(var(--space-unit) / 2)}:host>article ::slotted([slot="tags"]){margin-bottom:var(--space-unit)}:host>article ::slotted([slot="header-cta"]){--z-icon-width:20px;--z-icon-height:20px;padding:var(--space-unit);cursor:pointer;fill:var(--color-primary01-icon)}:host>article ::slotted([slot="header-cta"]:focus){box-shadow:var(--shadow-focus-primary);outline:none !important}:host>article.expanded{width:100%;min-width:328px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.header{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:top;justify-content:space-between;margin-bottom:var(--space-unit);white-space:nowrap}:host>article.expanded div.cover div.img-wrapper{border-radius:var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:100%}:host>article.expanded .title,:host>article.expanded .subtitle,:host>article.expanded .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}:host>article.expanded div.footer{border-top:var(--border-size-small) solid var(--color-surface03);margin-bottom:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open{padding-top:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open div.resources{display:initial}:host>article.expanded div.footer.close div.resources{display:none}:host>article.expanded button.show-resources{--z-icon-height:16px;--z-icon-width:16px;all:unset;display:flex;width:100%;flex-flow:row nowrap;align-content:center;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 1) 0;color:var(--color-text-link-blue);cursor:pointer;fill:var(--color-text-link-blue);font-size:var(--font-size-2);font-weight:var(--font-sb);gap:var(--space-unit)}:host>article.expanded button.show-resources:focus{box-shadow:var(--shadow-focus-primary)}:host>article.search{width:262px;height:616px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.search .wrapper-container{display:flex;height:100%;flex-direction:column;justify-content:space-between}:host>article.search .wrapper-container .wrapper{height:451px}:host>article.search .wrapper-container .action-container{padding-bottom:calc(var(--space-unit) * 2)}:host>article.search div.header{display:flex;height:24px;flex-flow:row nowrap;align-content:stretch;align-items:center;justify-content:space-between;margin-bottom:calc(var(--space-unit) * 1.5);white-space:nowrap}:host>article.search div.cover div.img-wrapper{height:314px;border-radius:var(--border-radius)}:host>article.search .title{display:block;height:initial;align-self:unset;font-size:var(--font-size-3)}:host>article.search .title,:host>article.search .subtitle,:host>article.search .authors{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host>article.compact{width:var(--z-book-card-compact-width);height:var(--z-book-card-compact-height)}:host>article.compact.borderless{border:none}:host>article.compact div.cover div.img-wrapper{width:100%;height:calc(var(--z-book-card-compact-width) * 1.36);box-sizing:border-box;border:none;background:var(--color-white);border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--shadow-2)}:host>article.compact div.wrapper{display:flex;height:100%;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.compact div.content{display:flex;box-sizing:border-box;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;padding:calc(var(--space-unit) * 2);padding-top:var(--space-unit);margin:0}:host>article.compact div.action-container{padding:calc(var(--space-unit) * 2);padding-top:0;margin-top:auto}:host>article.compact.borderless div.cover div.img-wrapper{width:var(--z-book-card-compact-width)}:host>article.compact.borderless div.content{padding:0;padding-top:var(--space-unit)}:host>article.compact.borderless div.action-container{padding:0;padding-bottom:calc(var(--space-unit) * 2)}:host>article.compact .title{display:block;height:initial;align-self:unset}:host>article.compact .title,:host>article.compact .subtitle,:host>article.compact .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}@media (min-width: 768px){:host>article{width:100%;max-width:initial}:host>article .title{display:block;height:initial;align-self:unset}:host>article.expanded{width:100%;min-width:initial;max-width:initial;height:360px;padding:0;border:0}:host>article.expanded div.wrapper{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.expanded div.cover div.img-wrapper{width:262px;height:356px;border:0;border:var(--border-size-medium) solid var(--color-surface03);border-right:none;background:var(--color-surface01);border-radius:var(--border-radius) 0 0 var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:auto;border-radius:0}:host>article.expanded div.content{display:flex;overflow:hidden;width:100%;height:356px;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;border:var(--border-size-medium) solid var(--color-surface03);border-left:none;margin:0;background:var(--color-surface01);border-radius:0 var(--border-radius) var(--border-radius) 0}:host>article.expanded div.content div.top{padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.content div.top div.info{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;margin-bottom:calc(var(--space-unit) / 2)}:host>article.expanded div.content div.top div.info>div.left{width:100%}:host>article.expanded div.content div.bottom{padding:calc(var(--space-unit) * 2);padding-bottom:0}}@media (min-width: 1152px){:host>article{width:fit-content;max-width:initial}}@media (min-width: 1366px){:host>article.expanded{width:635px}:host>article.expanded div.content{width:369px}}`;
7
-
8
- const ZBookCardDeprecated = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.ribbonClick = createEvent(this, "ribbonClick", 7);
12
- /**
13
- * [optional] ISBN label
14
- */
15
- this.isbnLabel = "";
16
- this.isMobile = false;
17
- this.hasResources = false;
18
- this.showResources = false;
19
- }
20
- emitRibbonClick() {
21
- this.ribbonClick.emit();
22
- }
23
- componentWillLoad() {
24
- this.id = `id-${randomId()}`;
25
- const mobileMediaQuery = window.matchMedia(`(max-width: ${Breakpoints.MOBILE}px)`);
26
- this.isMobile = mobileMediaQuery.matches;
27
- mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);
28
- }
29
- componentDidLoad() {
30
- this.handleResources();
31
- }
32
- handleResources() {
33
- var _a;
34
- if (this.variant !== BookCardDeprecatedVariant.EXPANDED || !this.isMobile) {
35
- return;
36
- }
37
- this.hasResources = ((_a = this.hostElement.querySelectorAll("[slot=resources]")) === null || _a === void 0 ? void 0 : _a.length) > 0;
38
- }
39
- toggleResources() {
40
- this.showResources = !this.showResources;
41
- }
42
- renderCard() {
43
- switch (this.variant) {
44
- case BookCardDeprecatedVariant.EXPANDED:
45
- return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();
46
- case BookCardDeprecatedVariant.COMPACT:
47
- return this.renderCompactCard();
48
- case BookCardDeprecatedVariant.SEARCH:
49
- return this.renderSearchCard();
50
- }
51
- }
52
- renderExpandedCard() {
53
- return (h("div", { class: "wrapper" }, this.renderCover(), h("div", { class: "content" }, h("div", { class: "top" }, h("div", { class: "info" }, h("div", { class: "left" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), h("div", { class: "right" }, this.renderHeaderCtaSlot())), this.renderTagsSlot()), h("div", { class: "bottom" }, this.renderResourcesSlot()))));
54
- }
55
- renderMobileExpandedCard() {
56
- return (h("div", { class: "wrapper" }, h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn()), this.hasResources && (h("div", { class: {
57
- footer: true,
58
- open: this.showResources,
59
- close: !this.showResources,
60
- } }, !this.showResources && this.renderShowResources(), this.renderResourcesSlot(), this.showResources && this.renderShowResources()))));
61
- }
62
- renderSearchCard() {
63
- return (h("div", { class: "wrapper-container" }, h("div", { class: "wrapper" }, h("div", { class: "header" }, this.renderOperaTitle(), this.renderHeaderCtaSlot()), this.renderCover(), h("div", { class: "content" }, this.renderTagsSlot(), this.renderAuthors(), this.renderVolumeTitle(), this.renderIsbn())), this.renderFooterCtaSlot()));
64
- }
65
- renderCompactCard() {
66
- return (h("div", { class: "wrapper" }, this.renderCover(), h("div", { class: "content" }, this.renderAuthors(), this.renderOperaTitle(), this.renderVolumeTitle(), this.renderIsbn()), this.renderFooterCtaSlot()));
67
- }
68
- renderCover() {
69
- return (h("div", { class: "cover" }, this.ribbon && this.variant !== BookCardDeprecatedVariant.COMPACT && this.renderRibbon(), h("div", { class: "img-wrapper" }, h("img", { src: this.cover, onError: () => {
70
- if (this.fallbackCover) {
71
- this.cover = this.fallbackCover;
72
- }
73
- }, "aria-hidden": "true" }))));
74
- }
75
- renderRibbon() {
76
- const content = [
77
- this.ribbonIcon && (h("z-icon", { name: this.ribbonIcon, width: 16, height: 16, fill: "color-inverse-icon" })),
78
- h("span", null, this.ribbon),
79
- ];
80
- return this.ribbonInteractive ? (h("button", { class: "ribbon interactive", onClick: () => this.emitRibbonClick() }, content)) : (h("div", { class: "ribbon" }, content));
81
- }
82
- renderOperaTitle() {
83
- const title = this.operaTitleTag
84
- ? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`
85
- : this.operaTitle;
86
- return (h("div", { class: "title", innerHTML: title }));
87
- }
88
- renderVolumeTitle() {
89
- return this.volumeTitle ? h("div", { class: "subtitle" }, this.volumeTitle) : null;
90
- }
91
- renderAuthors() {
92
- return this.authors ? (h("div", { class: "authors", "aria-description": "Autori" }, this.authors)) : null;
93
- }
94
- renderIsbn() {
95
- return this.isbn ? (h("div", { class: "isbn" }, h("span", { class: "code", "aria-description": `ISBN ${this.isbnLabel}` }, this.isbn), this.isbnLabel ? h("span", { class: "label" }, " ", this.isbnLabel) : null)) : null;
96
- }
97
- renderShowResources() {
98
- return (h("button", { class: "show-resources", "aria-label": `Risorse del libro ${this.operaTitle}`, "aria-expanded": this.showResources.toString(), "aria-controls": `resources-${this.id}`, onClick: () => this.toggleResources() }, this.showResources ? "Chiudi" : "Vedi tutto", h("z-icon", { name: this.showResources ? "chevron-up" : "chevron-down" })));
99
- }
100
- renderTagsSlot() {
101
- return (h("div", { class: "tags" }, h("slot", { name: "tags" })));
102
- }
103
- renderHeaderCtaSlot() {
104
- return h("slot", { name: "header-cta" });
105
- }
106
- renderResourcesSlot() {
107
- return (h("div", { id: `resources-${this.id}`, class: "resources" }, h("slot", { name: "resources", onSlotchange: () => this.handleResources() })));
108
- }
109
- renderFooterCtaSlot() {
110
- return (h("div", { class: "action-container" }, h("slot", { name: "footer-cta" })));
111
- }
112
- render() {
113
- return (h("article", { key: 'd603afa99fc5bdc0b6cb9ad1b22a309c4962c486', class: {
114
- [this.variant]: true,
115
- borderless: !!this.borderless,
116
- } }, this.renderCard()));
117
- }
118
- get hostElement() { return getElement(this); }
119
- };
120
- ZBookCardDeprecated.style = stylesCss();
121
-
122
- export { ZBookCardDeprecated as z_book_card_deprecated };
123
- //# sourceMappingURL=z-book-card-deprecated.entry.js.map
124
-
125
- //# sourceMappingURL=z-book-card-deprecated.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"z-book-card-deprecated.entry.js","sources":["src/components/deprecated/z-book-card-deprecated/styles.css?tag=z-book-card-deprecated&encapsulation=shadow","src/components/deprecated/z-book-card-deprecated/index.tsx"],"sourcesContent":["/* COMMON STYLES */\n\n:host {\n /**\n * @prop --z-book-card-ribbon-background-color: ribbon backgrund color\n * @prop --z-book-card-ribbon-shadow-color: ribbon shadow color\n * @prop --z-book-card-compact-width: compact card custom width\n * @prop --z-book-card-compact-height: compact card custom height\n */\n --z-book-card-ribbon-background-color: var(--avatar-C08);\n --z-book-card-ribbon-shadow-color: var(--green950);\n --z-book-card-compact-width: 262px;\n --z-book-card-compact-height: 568px;\n}\n\n:host > article {\n display: block;\n width: 100%;\n max-width: 360px;\n box-sizing: border-box;\n border: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > article div.cover {\n position: relative;\n}\n\n:host > article div.cover div.img-wrapper {\n display: flex;\n overflow: hidden;\n border: var(--border-size-small) solid var(--color-surface03);\n line-height: 0;\n}\n\n:host > article div.cover div.img-wrapper img {\n width: auto;\n max-width: 100%;\n height: auto;\n max-height: 100%;\n align-self: flex-end;\n}\n\n:host > article div.cover .ribbon {\n position: absolute;\n z-index: 10;\n top: calc(var(--space-unit) * 2);\n left: calc(var(--space-unit) * -2);\n display: flex;\n max-width: 100%;\n height: calc(var(--space-unit) * 4);\n box-sizing: border-box;\n align-items: center;\n padding: 0 calc(var(--space-unit) * 2);\n border: var(--border-size-medium) solid var(--color-surface01);\n background: var(--z-book-card-ribbon-background-color);\n border-radius: 0 var(--border-radius) var(--border-radius) 0;\n box-shadow: var(--shadow-2);\n color: var(--color-text-inverse);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-2);\n font-weight: var(--font-sb);\n line-height: initial;\n}\n\n:host > article div.cover .ribbon.interactive:hover {\n cursor: pointer;\n}\n\n:host > article div.cover .ribbon.interactive:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host > article div.cover .ribbon span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: nowrap;\n}\n\n:host > article div.cover .ribbon::before {\n position: absolute;\n bottom: -12px;\n left: -2px;\n width: 0;\n height: 0;\n border-top: 10px solid var(--z-book-card-ribbon-shadow-color);\n border-left: 16px solid transparent;\n content: \"\";\n}\n\n:host > article div.cover .ribbon z-icon {\n margin-right: var(--space-unit);\n}\n\n:host > article div.content {\n margin: var(--space-unit) 0;\n border-radius: var(--border-radius);\n}\n\n:host > article .title {\n display: flex;\n height: 100%;\n align-self: center;\n color: var(--color-default-text);\n font-size: var(--font-size-4);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n:host > article .title * {\n all: unset;\n}\n\n:host > article div.subtitle {\n color: var(--color-default-text);\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n:host > article div.authors {\n color: var(--color-default-text);\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n line-height: 1.33;\n}\n\n:host > article div.isbn {\n overflow: hidden;\n color: var(--color-default-text);\n font-size: var(--font-size-2);\n line-height: 1.33;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: nowrap;\n}\n\n:host > article div.isbn > .code {\n font-weight: var(--font-sb);\n}\n\n:host > article div.tags {\n display: flex;\n overflow: hidden;\n max-height: 32px;\n flex-flow: row wrap;\n align-content: stretch;\n align-items: stretch;\n justify-content: flex-start;\n gap: calc(var(--space-unit) / 2);\n}\n\n:host > article ::slotted([slot=\"tags\"]) {\n margin-bottom: var(--space-unit);\n}\n\n:host > article ::slotted([slot=\"header-cta\"]) {\n --z-icon-width: 20px;\n --z-icon-height: 20px;\n\n padding: var(--space-unit);\n cursor: pointer;\n fill: var(--color-primary01-icon);\n}\n\n:host > article ::slotted([slot=\"header-cta\"]:focus) {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n/* EXPANDED STYLES */\n\n:host > article.expanded {\n width: 100%;\n min-width: 328px;\n padding: calc(var(--space-unit) * 2);\n padding-bottom: 0;\n}\n\n:host > article.expanded div.header {\n display: flex;\n flex-flow: row nowrap;\n align-content: stretch;\n align-items: top;\n justify-content: space-between;\n margin-bottom: var(--space-unit);\n white-space: nowrap;\n}\n\n:host > article.expanded div.cover div.img-wrapper {\n border-radius: var(--border-radius);\n}\n\n:host > article.expanded div.cover div.img-wrapper img {\n width: 100%;\n}\n\n:host > article.expanded .title,\n:host > article.expanded .subtitle,\n:host > article.expanded .authors {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n white-space: initial;\n}\n\n:host > article.expanded div.footer {\n border-top: var(--border-size-small) solid var(--color-surface03);\n margin-bottom: calc(var(--space-unit) * 1.5);\n}\n\n:host > article.expanded div.footer.open {\n padding-top: calc(var(--space-unit) * 1.5);\n}\n\n:host > article.expanded div.footer.open div.resources {\n display: initial;\n}\n\n:host > article.expanded div.footer.close div.resources {\n display: none;\n}\n\n:host > article.expanded button.show-resources {\n --z-icon-height: 16px;\n --z-icon-width: 16px;\n\n all: unset;\n display: flex;\n width: 100%;\n flex-flow: row nowrap;\n align-content: center;\n align-items: center;\n justify-content: center;\n padding: calc(var(--space-unit) * 1) 0;\n color: var(--color-text-link-blue);\n cursor: pointer;\n fill: var(--color-text-link-blue);\n font-size: var(--font-size-2);\n font-weight: var(--font-sb);\n gap: var(--space-unit);\n}\n\n:host > article.expanded button.show-resources:focus {\n box-shadow: var(--shadow-focus-primary);\n}\n\n/* SEARCH STYLES */\n\n:host > article.search {\n width: 262px;\n height: 616px;\n padding: calc(var(--space-unit) * 2);\n padding-bottom: 0;\n}\n\n:host > article.search .wrapper-container {\n display: flex;\n height: 100%;\n flex-direction: column;\n justify-content: space-between;\n}\n\n:host > article.search .wrapper-container .wrapper {\n height: 451px;\n}\n\n:host > article.search .wrapper-container .action-container {\n padding-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > article.search div.header {\n display: flex;\n height: 24px;\n flex-flow: row nowrap;\n align-content: stretch;\n align-items: center;\n justify-content: space-between;\n margin-bottom: calc(var(--space-unit) * 1.5);\n white-space: nowrap;\n}\n\n:host > article.search div.cover div.img-wrapper {\n height: 314px;\n border-radius: var(--border-radius);\n}\n\n:host > article.search .title {\n display: block;\n height: initial;\n align-self: unset;\n font-size: var(--font-size-3);\n}\n\n:host > article.search .title,\n:host > article.search .subtitle,\n:host > article.search .authors {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* COMPACT STYLES */\n\n:host > article.compact {\n width: var(--z-book-card-compact-width);\n height: var(--z-book-card-compact-height);\n}\n\n:host > article.compact.borderless {\n border: none;\n}\n\n:host > article.compact div.cover div.img-wrapper {\n width: 100%;\n height: calc(var(--z-book-card-compact-width) * 1.36);\n box-sizing: border-box;\n border: none;\n background: var(--color-white);\n border-radius: var(--border-radius) var(--border-radius) 0 0;\n box-shadow: var(--shadow-2);\n}\n\n:host > article.compact div.wrapper {\n display: flex;\n height: 100%;\n flex-flow: column nowrap;\n align-content: stretch;\n align-items: stretch;\n justify-content: flex-start;\n}\n\n:host > article.compact div.content {\n display: flex;\n box-sizing: border-box;\n flex-flow: column nowrap;\n align-content: stretch;\n align-items: stretch;\n justify-content: space-between;\n padding: calc(var(--space-unit) * 2);\n padding-top: var(--space-unit);\n margin: 0;\n}\n\n:host > article.compact div.action-container {\n padding: calc(var(--space-unit) * 2);\n padding-top: 0;\n margin-top: auto;\n}\n\n:host > article.compact.borderless div.cover div.img-wrapper {\n width: var(--z-book-card-compact-width);\n}\n\n:host > article.compact.borderless div.content {\n padding: 0;\n padding-top: var(--space-unit);\n}\n\n:host > article.compact.borderless div.action-container {\n padding: 0;\n padding-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > article.compact .title {\n display: block;\n height: initial;\n align-self: unset;\n}\n\n:host > article.compact .title,\n:host > article.compact .subtitle,\n:host > article.compact .authors {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n white-space: initial;\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host > article {\n width: 100%;\n max-width: initial;\n }\n\n :host > article .title {\n display: block;\n height: initial;\n align-self: unset;\n }\n\n /* EXPANDED STYLES */\n\n :host > article.expanded {\n width: 100%;\n min-width: initial;\n max-width: initial;\n height: 360px;\n padding: 0;\n border: 0;\n }\n\n :host > article.expanded div.wrapper {\n display: flex;\n flex-flow: row nowrap;\n align-content: stretch;\n align-items: stretch;\n justify-content: flex-start;\n }\n\n :host > article.expanded div.cover div.img-wrapper {\n width: 262px;\n height: 356px;\n border: 0;\n border: var(--border-size-medium) solid var(--color-surface03);\n border-right: none;\n background: var(--color-surface01);\n border-radius: var(--border-radius) 0 0 var(--border-radius);\n }\n\n :host > article.expanded div.cover div.img-wrapper img {\n width: auto;\n border-radius: 0;\n }\n\n :host > article.expanded div.content {\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 356px;\n flex-flow: column nowrap;\n align-content: stretch;\n align-items: stretch;\n justify-content: space-between;\n border: var(--border-size-medium) solid var(--color-surface03);\n border-left: none;\n margin: 0;\n background: var(--color-surface01);\n border-radius: 0 var(--border-radius) var(--border-radius) 0;\n }\n\n :host > article.expanded div.content div.top {\n padding: calc(var(--space-unit) * 2);\n padding-bottom: 0;\n }\n\n :host > article.expanded div.content div.top div.info {\n display: flex;\n flex-flow: row nowrap;\n align-content: stretch;\n align-items: stretch;\n justify-content: space-between;\n margin-bottom: calc(var(--space-unit) / 2);\n }\n\n :host > article.expanded div.content div.top div.info > div.left {\n width: 100%;\n }\n\n :host > article.expanded div.content div.bottom {\n padding: calc(var(--space-unit) * 2);\n padding-bottom: 0;\n }\n}\n\n/* Desktop breakpoint */\n\n@media (min-width: 1152px) {\n :host > article {\n width: fit-content;\n max-width: initial;\n }\n}\n\n/* Wide breakpoint */\n@media (min-width: 1366px) {\n :host > article.expanded {\n width: 635px;\n }\n\n :host > article.expanded div.content {\n width: 369px;\n }\n}\n","import {Component, ComponentInterface, Element, Event, EventEmitter, Prop, State, h} from \"@stencil/core\";\nimport {BookCardDeprecatedVariant} from \"../../../beans\";\nimport {Breakpoints} from \"../../../constants/breakpoints\";\nimport {randomId} from \"../../../utils/utils\";\n\n/**\n * @slot resources - books resources (extended variant only)\n * @slot header-cta - header CTA (e.g. bookmark icon - extended and search variant only)\n * @slot tags - card tags (extended and search variant only)\n * @slot footer-cta - footer cta button (search and compact variant only)\n */\n@Component({\n tag: \"z-book-card-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBookCardDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZBookCardDeprecatedElement;\n\n /**\n * Card variant: expanded, compact, search\n */\n @Prop()\n variant: BookCardDeprecatedVariant;\n\n /**\n * Cover URL\n */\n @Prop()\n cover: string;\n\n /**\n * Card main title\n */\n @Prop()\n operaTitle: string;\n\n /**\n * [optional] Card subtitle\n */\n @Prop()\n volumeTitle?: string;\n\n /**\n * [optional] Authors\n */\n @Prop()\n authors?: string;\n\n /**\n * [optional] Main ISBN\n */\n @Prop()\n isbn?: string;\n\n /**\n * [optional] ISBN label\n */\n @Prop()\n isbnLabel = \"\";\n\n /**\n * [optional] Ribbon label - expanded and search variant only\n */\n @Prop()\n ribbon?: string;\n\n /**\n * [optional] Ribbon icon - expanded and search variant only\n */\n @Prop()\n ribbonIcon?: string;\n\n /**\n * [optional] Ribbon interactive - expanded and search variant only\n */\n @Prop()\n ribbonInteractive?: boolean;\n\n /**\n * [optional] Borderless card - compact variant only\n */\n @Prop()\n borderless?: boolean;\n\n /**\n * [optional] Fallback cover URL\n */\n @Prop()\n fallbackCover?: string;\n\n /**\n * [optional] [accessibility] Card title HTML tag\n */\n @Prop()\n operaTitleTag?: string;\n\n @State()\n isMobile = false;\n\n @State()\n hasResources = false;\n\n @State()\n showResources = false;\n\n /** click on interactive ribbon */\n @Event()\n ribbonClick: EventEmitter;\n\n private emitRibbonClick(): void {\n this.ribbonClick.emit();\n }\n\n private id: string;\n\n componentWillLoad(): void {\n this.id = `id-${randomId()}`;\n\n const mobileMediaQuery = window.matchMedia(`(max-width: ${Breakpoints.MOBILE}px)`);\n this.isMobile = mobileMediaQuery.matches;\n mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);\n }\n\n componentDidLoad(): void {\n this.handleResources();\n }\n\n private handleResources(): void {\n if (this.variant !== BookCardDeprecatedVariant.EXPANDED || !this.isMobile) {\n return;\n }\n this.hasResources = this.hostElement.querySelectorAll(\"[slot=resources]\")?.length > 0;\n }\n\n private toggleResources(): void {\n this.showResources = !this.showResources;\n }\n\n private renderCard(): HTMLDivElement {\n switch (this.variant) {\n case BookCardDeprecatedVariant.EXPANDED:\n return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();\n case BookCardDeprecatedVariant.COMPACT:\n return this.renderCompactCard();\n case BookCardDeprecatedVariant.SEARCH:\n return this.renderSearchCard();\n }\n }\n\n private renderExpandedCard(): HTMLDivElement {\n return (\n <div class=\"wrapper\">\n {this.renderCover()}\n <div class=\"content\">\n <div class=\"top\">\n <div class=\"info\">\n <div class=\"left\">\n {this.renderAuthors()}\n {this.renderOperaTitle()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n <div class=\"right\">{this.renderHeaderCtaSlot()}</div>\n </div>\n {this.renderTagsSlot()}\n </div>\n <div class=\"bottom\">{this.renderResourcesSlot()}</div>\n </div>\n </div>\n );\n }\n\n private renderMobileExpandedCard(): HTMLDivElement {\n return (\n <div class=\"wrapper\">\n <div class=\"header\">\n {this.renderOperaTitle()}\n {this.renderHeaderCtaSlot()}\n </div>\n {this.renderCover()}\n <div class=\"content\">\n {this.renderTagsSlot()}\n {this.renderAuthors()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n {this.hasResources && (\n <div\n class={{\n footer: true,\n open: this.showResources,\n close: !this.showResources,\n }}\n >\n {!this.showResources && this.renderShowResources()}\n {this.renderResourcesSlot()}\n {this.showResources && this.renderShowResources()}\n </div>\n )}\n </div>\n );\n }\n\n private renderSearchCard(): HTMLDivElement {\n return (\n <div class=\"wrapper-container\">\n <div class=\"wrapper\">\n <div class=\"header\">\n {this.renderOperaTitle()}\n {this.renderHeaderCtaSlot()}\n </div>\n {this.renderCover()}\n <div class=\"content\">\n {this.renderTagsSlot()}\n {this.renderAuthors()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n </div>\n {this.renderFooterCtaSlot()}\n </div>\n );\n }\n\n private renderCompactCard(): HTMLDivElement {\n return (\n <div class=\"wrapper\">\n {this.renderCover()}\n <div class=\"content\">\n {this.renderAuthors()}\n {this.renderOperaTitle()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n {this.renderFooterCtaSlot()}\n </div>\n );\n }\n\n private renderCover(): HTMLDivElement {\n return (\n <div class=\"cover\">\n {this.ribbon && this.variant !== BookCardDeprecatedVariant.COMPACT && this.renderRibbon()}\n <div class=\"img-wrapper\">\n <img\n src={this.cover}\n onError={() => {\n if (this.fallbackCover) {\n this.cover = this.fallbackCover;\n }\n }}\n aria-hidden=\"true\"\n />\n </div>\n </div>\n );\n }\n\n private renderRibbon(): HTMLElement {\n const content = [\n this.ribbonIcon && (\n <z-icon\n name={this.ribbonIcon}\n width={16}\n height={16}\n fill={\"color-inverse-icon\"}\n />\n ),\n <span>{this.ribbon}</span>,\n ];\n\n return this.ribbonInteractive ? (\n <button\n class=\"ribbon interactive\"\n onClick={() => this.emitRibbonClick()}\n >\n {content}\n </button>\n ) : (\n <div class=\"ribbon\">{content}</div>\n );\n }\n\n private renderOperaTitle(): HTMLDivElement {\n const title = this.operaTitleTag\n ? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`\n : this.operaTitle;\n\n return (\n <div\n class=\"title\"\n innerHTML={title}\n />\n );\n }\n\n private renderVolumeTitle(): null | HTMLDivElement {\n return this.volumeTitle ? <div class=\"subtitle\">{this.volumeTitle}</div> : null;\n }\n\n private renderAuthors(): null | HTMLDivElement {\n return this.authors ? (\n <div\n class=\"authors\"\n aria-description=\"Autori\"\n >\n {this.authors}\n </div>\n ) : null;\n }\n\n private renderIsbn(): null | HTMLDivElement {\n return this.isbn ? (\n <div class=\"isbn\">\n <span\n class=\"code\"\n aria-description={`ISBN ${this.isbnLabel}`}\n >\n {this.isbn}\n </span>\n {this.isbnLabel ? <span class=\"label\"> {this.isbnLabel}</span> : null}\n </div>\n ) : null;\n }\n\n private renderShowResources(): HTMLButtonElement {\n return (\n <button\n class=\"show-resources\"\n aria-label={`Risorse del libro ${this.operaTitle}`}\n aria-expanded={this.showResources.toString()}\n aria-controls={`resources-${this.id}`}\n onClick={() => this.toggleResources()}\n >\n {this.showResources ? \"Chiudi\" : \"Vedi tutto\"}\n <z-icon name={this.showResources ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n );\n }\n\n private renderTagsSlot(): HTMLDivElement {\n return (\n <div class=\"tags\">\n <slot name=\"tags\" />\n </div>\n );\n }\n\n private renderHeaderCtaSlot(): HTMLSlotElement {\n return <slot name=\"header-cta\" />;\n }\n\n private renderResourcesSlot(): HTMLDivElement {\n return (\n <div\n id={`resources-${this.id}`}\n class=\"resources\"\n >\n <slot\n name=\"resources\"\n onSlotchange={() => this.handleResources()}\n />\n </div>\n );\n }\n\n private renderFooterCtaSlot(): HTMLDivElement {\n return (\n <div class=\"action-container\">\n <slot name=\"footer-cta\" />\n </div>\n );\n }\n\n render(): HTMLZBookCardDeprecatedElement {\n return (\n <article\n class={{\n [this.variant]: true,\n borderless: !!this.borderless,\n }}\n >\n {this.renderCard()}\n </article>\n );\n }\n}\n"],"names":[],"mappings":";;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,6rRAA6rR,CAAC;;MCgB1sR,mBAAmB,GAAA,MAAA;AALhC,IAAA,WAAA,CAAA,OAAA,EAAA;;;AA4CE;;AAEG;AAEH,QAAA,IAAA,CAAA,SAAS,GAAG,EAAE;AAuCd,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;AAGhB,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;AAGpB,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;AA2RtB;IArRS,eAAe,GAAA;AACrB,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;;IAKzB,iBAAiB,GAAA;AACf,QAAA,IAAI,CAAC,EAAE,GAAG,MAAM,QAAQ,EAAE,EAAE;AAE5B,QAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC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AAM,IAAI,EAAC,YAAY,GAAG;;IAG3B,mBAAmB,GAAA;AACzB,QAAA,QACE,CAAA,CAAA,KAAA,EAAA,EACE,EAAE,EAAE,CAAA,UAAA,EAAa,IAAI,CAAC,EAAE,CAAA,CAAE,EAC1B,KAAK,EAAC,WAAW,EAAA,EAEjB,CAAA,CAAA,MAAA,EAAA,EACE,IAAI,EAAC,WAAW,EAChB,YAAY,EAAE,MAAM,IAAI,CAAC,eAAe,EAAE,EAAA,CAC1C,CACE;;IAIF,mBAAmB,GAAA;QACzB,QACE,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,kBAAkB,EAAA,EAC3B,CAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,YAAY,EAAA,CAAG,CACtB;;IAIV,MAAM,GAAA;QACJ,QACE,CAAA,CAAA,SAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE;AACL,gBAAA,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI;AACpB,gBAAA,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU;AAC9B,aAAA,EAAA,EAEA,IAAI,CAAC,UAAU,EAAE,CACV;;;;;;;;"}
@@ -1,125 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-BcDWN4F1.js';
2
-
3
- const stylesCss = () => `:host,::slotted(*),*{box-sizing:border-box}:host{--z-menu-label-color:var(--color-default-text);position:relative;display:inline-flex;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:"";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}`;
4
-
5
- const ZMenuDeprecated = class {
6
- toggle() {
7
- if (!this.hasContent) {
8
- return;
9
- }
10
- this.open = !this.open;
11
- if (this.open) {
12
- this.opened.emit();
13
- }
14
- else {
15
- this.closed.emit();
16
- }
17
- }
18
- /** Close the floating list when a click is performed outside of this Element. */
19
- handleClick(ev) {
20
- if (!this.floating || !this.open || this.hostElement.contains(ev.target)) {
21
- return;
22
- }
23
- this.reflow();
24
- this.open = false;
25
- this.closed.emit();
26
- }
27
- onOpenChanged() {
28
- if (this.open) {
29
- this.reflow(true);
30
- }
31
- else {
32
- cancelAnimationFrame(this.raf);
33
- }
34
- }
35
- constructor(hostRef) {
36
- registerInstance(this, hostRef);
37
- this.opened = createEvent(this, "opened", 7);
38
- this.closed = createEvent(this, "closed", 7);
39
- /**
40
- * Flag to set the display mode of the list.
41
- * If true, the list will be absolutely positioned under the menu label,
42
- * stacked beneath it otherwise.
43
- */
44
- this.floating = false;
45
- /** The opening state of the menu. */
46
- this.open = false;
47
- /**
48
- * Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).
49
- * A small border is placed under it as a separator from other elements.
50
- */
51
- this.verticalContext = false;
52
- this.toggle = this.toggle.bind(this);
53
- this.checkContent = this.checkContent.bind(this);
54
- this.onLabelSlotChange = this.onLabelSlotChange.bind(this);
55
- this.onItemsChange = this.onItemsChange.bind(this);
56
- }
57
- componentWillLoad() {
58
- this.checkContent();
59
- }
60
- /**
61
- * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
62
- * @param ev Slotchange event
63
- */
64
- onLabelSlotChange(ev) {
65
- const labelElement = ev.target.assignedElements()[0];
66
- labelElement.dataset.text = labelElement === null || labelElement === void 0 ? void 0 : labelElement.textContent;
67
- }
68
- /**
69
- * Correctly set position of the floating menu in order to prevent overflow.
70
- * @param live Should run the method on every refresh frame.
71
- */
72
- reflow(live = false) {
73
- if (this.content) {
74
- const { style } = this.content;
75
- const { left } = this.hostElement.getBoundingClientRect();
76
- const widthPx = getComputedStyle(this.content).width;
77
- const width = widthPx ? parseFloat(widthPx.replace("px", "")) : 375;
78
- const safeScrollbarSpace = 30;
79
- style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;
80
- }
81
- if (live) {
82
- this.raf = requestAnimationFrame(this.reflow.bind(this, live));
83
- }
84
- }
85
- /**
86
- * Check if some content slot is set.
87
- */
88
- checkContent() {
89
- this.hasHeader = !!this.hostElement.querySelectorAll("[slot=header]").length;
90
- this.hasContent = !!this.hostElement.querySelectorAll("[slot=item]").length || this.hasHeader;
91
- }
92
- /**
93
- * Set `menuitem` role to all menu items.
94
- * Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).
95
- */
96
- onItemsChange() {
97
- this.checkContent();
98
- const items = this.hostElement.querySelectorAll("[slot=item]");
99
- items.forEach((item) => {
100
- item.setAttribute("role", "menuitem");
101
- item.dataset.text = item.textContent;
102
- });
103
- }
104
- renderMenuLabel() {
105
- if (this.hasContent) {
106
- return (h("button", { class: "menu-label", "aria-expanded": this.open ? "true" : "false", "aria-label": this.open ? "Chiudi menù" : "Apri menù", onClick: this.toggle }, h("div", { class: "menu-label-content" }, h("slot", { onSlotchange: this.onLabelSlotChange }), h("z-icon", { name: this.open ? "chevron-up" : "chevron-down" }))));
107
- }
108
- return (h("div", { class: "menu-label" }, h("div", { class: "menu-label-content" }, h("slot", { onSlotchange: this.onLabelSlotChange }))));
109
- }
110
- render() {
111
- return (h(Host, { key: 'dde3e828c6617646ed848e91c53dc624fc23bc2d' }, this.renderMenuLabel(), this.hasContent && (h("div", { key: '9888a27020733770e87e87f2ac6193dc0430e36b', class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (h("header", { key: '09a21728b3cfc859dbdf59b2441326a610c2869f', class: "header" }, h("slot", { key: '72bbb4073b1e76569770dc7089526e9f9b055089', name: "header", onSlotchange: this.checkContent }))), h("div", { key: 'f53e86dea26861a62f3e924e67f14c97e42f7861', class: "items", role: "menu" }, h("slot", { key: '2b6e230e79f472828b85ba40281c9781a14dcef6', name: "item", onSlotchange: this.onItemsChange }))))));
112
- }
113
- get hostElement() { return getElement(this); }
114
- static get watchers() { return {
115
- "open": [{
116
- "onOpenChanged": 0
117
- }]
118
- }; }
119
- };
120
- ZMenuDeprecated.style = stylesCss();
121
-
122
- export { ZMenuDeprecated as z_menu_deprecated };
123
- //# sourceMappingURL=z-menu-deprecated.entry.js.map
124
-
125
- //# sourceMappingURL=z-menu-deprecated.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"z-menu-deprecated.entry.js","sources":["src/components/deprecated/z-menu-deprecated/styles.css?tag=z-menu-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-deprecated/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n:host {\n /**\n * @prop --z-menu-label-color: Color of the label's text.\n */\n --z-menu-label-color: var(--color-default-text);\n\n position: relative;\n display: inline-flex;\n flex-direction: column;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.menu-label {\n padding: 0;\n border: 0;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n outline: none;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-within {\n z-index: 1;\n padding-right: calc(var(--space-unit) * 0.5);\n padding-left: calc(var(--space-unit) * 0.5);\n margin-right: calc(var(--space-unit) * -0.5);\n margin-left: calc(var(--space-unit) * -0.5);\n box-shadow: var(--shadow-focus-primary);\n}\n\n.menu-label .menu-label-content {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n:host(:is([active], [open])) .menu-label-content,\n.menu-label:focus-within .menu-label-content {\n font-weight: var(--font-bd);\n}\n\n:host(:is([active], [open])) .menu-label-content ::slotted(*),\n.menu-label:focus-within .menu-label-content ::slotted(*) {\n letter-spacing: normal;\n}\n\n:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible) {\n box-shadow: none !important;\n}\n\n/* border */\n:host(:is([active], [open], [vertical-context])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n content: \"\";\n pointer-events: none;\n}\n\n:host([vertical-context]) .menu-label-content::after {\n height: var(--border-size-small);\n background-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n}\n\n/* Prevents layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.menu-label .menu-label-content ::slotted(*) {\n display: inline-flex;\n width: 100%;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-5);\n font-weight: inherit;\n letter-spacing: 0.36px; /* increasing the letter spacing of the regular text helps reduce the size difference between regular and bold text */\n line-height: 1.2;\n outline: none;\n}\n\n.menu-label .menu-label-content ::slotted(*),\n.menu-label .menu-label-content z-icon {\n padding: var(--space-unit) 0;\n}\n\n.menu-label .menu-label-content z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: currentcolor;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.\n */\n@Component({\n tag: \"z-menu-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZMenuDeprecatedElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = false;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n private content: HTMLElement;\n\n /** Animation frame request id. */\n private raf: number;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n if (this.open) {\n this.opened.emit();\n } else {\n this.closed.emit();\n }\n }\n\n /** Close the floating list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.floating || !this.open || this.hostElement.contains(ev.target as Element)) {\n return;\n }\n\n this.reflow();\n this.open = false;\n this.closed.emit();\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (this.open) {\n this.reflow(true);\n } else {\n cancelAnimationFrame(this.raf);\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (this.content) {\n const {style} = this.content;\n const {left} = this.hostElement.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.hostElement.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.hostElement.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n /**\n * Set `menuitem` role to all menu items.\n * Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).\n */\n private onItemsChange(): void {\n this.checkContent();\n const items = this.hostElement.querySelectorAll<HTMLElement>(\"[slot=item]\");\n items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.dataset.text = item.textContent;\n });\n }\n\n private renderMenuLabel(): HTMLButtonElement | HTMLDivElement {\n if (this.hasContent) {\n return (\n <button\n class=\"menu-label\"\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n onClick={this.toggle}\n >\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </div>\n </button>\n );\n }\n\n return (\n <div class=\"menu-label\">\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZMenuElement {\n return (\n <Host>\n {this.renderMenuLabel()}\n\n {this.hasContent && (\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n ></slot>\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n ></slot>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,i3HAAi3H,CAAC;;MCwB93H,eAAe,GAAA,MAAA;IA6ClB,MAAM,GAAA;AACZ,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB;;AAGF,QAAA,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI;AACtB,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;;aACb;AACL,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;;;;AAMtB,IAAA,WAAW,CAAC,EAAc,EAAA;QACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAiB,CAAC,EAAE;YACnF;;QAGF,IAAI,CAAC,MAAM,EAAE;AACb,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK;AACjB,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A,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EAAA,EAEX,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,GAC1B,CACJ,CACF,CACP,CACI;;;;;;;;;;;;;"}
@@ -1,58 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-BcDWN4F1.js';
2
-
3
- const stylesCss = () => `:host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}`;
4
-
5
- const ZMenuSectionDeprecated = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.opened = createEvent(this, "opened", 7);
9
- this.closed = createEvent(this, "closed", 7);
10
- }
11
- toggle() {
12
- if (!this.hasContent) {
13
- return;
14
- }
15
- this.open = !this.open;
16
- if (this.open) {
17
- this.opened.emit();
18
- }
19
- else {
20
- this.closed.emit();
21
- }
22
- }
23
- /** Close the list when a click is performed outside of this Element. */
24
- handleClick(ev) {
25
- if (!this.open || this.hostElement.contains(ev.target)) {
26
- return;
27
- }
28
- this.open = false;
29
- this.closed.emit();
30
- }
31
- /**
32
- * Check if some content slot is set.
33
- */
34
- checkContent() {
35
- this.hasContent = this.hostElement.querySelectorAll('[slot="item"]').length > 0;
36
- }
37
- /**
38
- * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
39
- * @param ev Slotchange event
40
- */
41
- onLabelSlotChange(ev) {
42
- const labelElement = ev.target.assignedElements()[0];
43
- labelElement.dataset.text = (labelElement === null || labelElement === void 0 ? void 0 : labelElement.innerText) || null;
44
- }
45
- componentWillLoad() {
46
- this.checkContent();
47
- }
48
- render() {
49
- return (h(Host, { key: 'a65fd5af1f2b3b6c9d21c30336b806395624af59', role: "menu", open: this.open }, h("button", { key: '88460e785ca428d4a40f4dc9bdd56194a2b64d3e', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, h("slot", { key: 'b0198e42f9819b2e9c622d4672510d7a9584a1b1', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: '6b6f41288e53ef83b6817eda49e1a77135552345', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: '7721c370a48044d60749f366a718ca266d9afc73', class: "items" }, h("slot", { key: '1738da8320d0931abaf8a7dd854456e28bba9781', name: "item", onSlotchange: this.checkContent.bind(this) })))));
50
- }
51
- get hostElement() { return getElement(this); }
52
- };
53
- ZMenuSectionDeprecated.style = stylesCss();
54
-
55
- export { ZMenuSectionDeprecated as z_menu_section_deprecated };
56
- //# sourceMappingURL=z-menu-section-deprecated.entry.js.map
57
-
58
- //# sourceMappingURL=z-menu-section-deprecated.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"z-menu-section-deprecated.entry.js","sources":["src/components/deprecated/z-menu-section-deprecated/styles.css?tag=z-menu-section-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-section-deprecated/index.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host(:is([active], [open])) .label,\n.label:hover {\n border-color: var(--color-primary01);\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items > ::slotted([slot=\"item\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-2);\n line-height: 1.4;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSectionDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZMenuSectionDeprecatedElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n if (this.open) {\n this.opened.emit();\n } else {\n this.closed.emit();\n }\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"item\"]').length > 0;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.innerText || null;\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"item\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,07DAA07D,CAAC;;MCYv8D,sBAAsB,GAAA,MAAA;;;;;;IAqBzB,MAAM,GAAA;AACZ,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB;;AAGF,QAAA,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI;AACtB,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,IAAI,CAAC,MAAM,CAAC,IA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AC,IAAI,CAAC,IAAI,CAAC,EAAA,CAAS,EAC7D,IAAI,CAAC,UAAU,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACxE,EACR,IAAI,CAAC,IAAI,KACR,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,OAAO,EAAA,EAChB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA,CACpC,CACJ,CACP,CACI;;;;;;;;"}
@@ -1,62 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BcDWN4F1.js';
2
- import { o as AlertType } from './index-DdetsoIY.js';
3
-
4
- const stylesCss = () => `:host{position:absolute;z-index:2;top:0;left:0;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-alert{height:calc(var(--space-unit) * 6)}.relative-container{position:relative;display:grid;align-items:center;padding:0;grid-column-gap:var(--space-unit);grid-template-columns:18px auto 46px;grid-template-rows:1fr;outline:none}.relative-container::-moz-focus-inner{border:0}.alert-external-wrapper.remove-alert{border:var(--border-size-medium) solid var(--color-background);border-top:none}:host div.add-alert{background:var(--color-inverse-success)}:host div.remove-alert{background:var(--color-inverse-warning)}:host div>.content-text{color:var(--color-surface05);font-size:14px;letter-spacing:0.16px;line-height:20px}:host div>.content-action{height:20px;color:var(--color-primary01);cursor:pointer;font-size:12px;font-weight:var(--font-sb);letter-spacing:0.32px;line-height:20px}:host div>z-icon{justify-self:center}`;
5
-
6
- const ZMyzCardAlert = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.undoAction = createEvent(this, "undoAction", 7);
10
- }
11
- emitUndoAction() {
12
- this.undoAction.emit({ actionType: this.type });
13
- }
14
- handleSpaceKeyPress(e) {
15
- if (e.keyCode == 32 || e.keyCode == 13) {
16
- e.preventDefault();
17
- this.emitUndoAction();
18
- }
19
- }
20
- handleActionButtonClick(e) {
21
- e.preventDefault();
22
- this.emitUndoAction();
23
- }
24
- retrieveClass() {
25
- let className = "";
26
- switch (this.type) {
27
- case "add":
28
- className = "add-alert";
29
- break;
30
- case "remove":
31
- className = "remove-alert";
32
- break;
33
- default:
34
- className = "";
35
- break;
36
- }
37
- return className;
38
- }
39
- getAlertType() {
40
- switch (this.type) {
41
- case "add":
42
- return AlertType.SUCCESS;
43
- case "remove":
44
- return AlertType.WARNING;
45
- default:
46
- return null;
47
- }
48
- }
49
- render() {
50
- return (h("div", { key: '201658341ee794792a8b91f6666144ac3163eec1', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: '8ac5d12c70817efc8ce85cd298737f7fdcb78acc', type: this.getAlertType() }, h("div", { key: '9db78e7bb91568660a416638e5fb12271421d076', class: "relative-container" }, h("z-icon", { key: '990bf9d3c3f17b232a9d5b113f48682581c29c44', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: '33184bd74331a45dcef59b8703b1e679e153c51b', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: 'e906ff2a3220d4d9f6a4534a31c94afa244786ff', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
51
- this.handleActionButtonClick(e);
52
- }, onKeyPress: (e) => {
53
- this.handleSpaceKeyPress(e);
54
- } }, this.actiontext))))));
55
- }
56
- };
57
- ZMyzCardAlert.style = stylesCss();
58
-
59
- export { ZMyzCardAlert as z_myz_card_alert };
60
- //# sourceMappingURL=z-myz-card-alert.entry.js.map
61
-
62
- //# sourceMappingURL=z-myz-card-alert.entry.js.map