@zanichelli/albe-web-components 19.2.12-rc3 → 19.2.12

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 (1449) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js +3 -0
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  4. package/dist/cjs/breakpoints-B7vFm-3T.js +3 -0
  5. package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
  6. package/dist/cjs/iconset-Cz-UsfoU.js +3 -0
  7. package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
  8. package/dist/cjs/index-D_S5lGcb.js +3 -0
  9. package/dist/cjs/index-D_S5lGcb.js.map +1 -0
  10. package/dist/cjs/index-wGaSHN1_.js +3 -0
  11. package/dist/cjs/index-wGaSHN1_.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +4 -1
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +4 -1
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-BmGKM-4y.js +1446 -0
  17. package/dist/cjs/reactive-controller-BmGKM-4y.js.map +1 -0
  18. package/dist/cjs/utils-C5_wGVkJ.js +3 -0
  19. package/dist/cjs/utils-C5_wGVkJ.js.map +1 -0
  20. package/dist/cjs/utils-DRCgbM7t.js +919 -0
  21. package/dist/cjs/utils-DRCgbM7t.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +4 -1
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +4 -1
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +3 -0
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +5 -2
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +4 -1
  31. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  32. package/dist/cjs/z-app-header_12.cjs.entry.js +57 -121
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +4 -1
  35. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  36. package/dist/cjs/z-avatar.cjs.entry.js +5 -2
  37. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-book-card-app.cjs.entry.js +4 -1
  39. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  40. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +5 -2
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +4 -1
  43. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-cover.cjs.entry.js +4 -1
  45. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  46. package/dist/cjs/z-breadcrumb.cjs.entry.js +6 -3
  47. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  48. package/dist/cjs/z-button-sort.cjs.entry.js +4 -1
  49. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-card.cjs.entry.js +3 -0
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +4 -1
  53. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-chip.cjs.entry.js +5 -2
  55. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-color-picker.cjs.entry.js +5 -2
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +5 -2
  59. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-cover-hero.cjs.entry.js +5 -2
  61. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-date-picker.cjs.entry.js +4 -1
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +23 -39
  65. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  66. package/dist/cjs/z-file-upload.cjs.entry.js +5 -2
  67. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-file.cjs.entry.js +4 -1
  69. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  70. package/dist/cjs/z-ghost-loading.cjs.entry.js +4 -1
  71. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  72. package/dist/cjs/z-info-box.cjs.entry.js +4 -1
  73. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-info-reveal.cjs.entry.js +4 -1
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-logo.cjs.entry.js +5 -2
  77. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-menu-deprecated.cjs.entry.js +5 -2
  79. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +4 -1
  81. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section.cjs.entry.js +4 -1
  83. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu.cjs.entry.js +4 -1
  85. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -0
  87. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -0
  89. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +3 -0
  91. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer.cjs.entry.js +3 -0
  93. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-icon.cjs.entry.js +3 -0
  95. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-info.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-list.cjs.entry.js +3 -0
  99. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -1
  101. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -1
  103. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list.cjs.entry.js +3 -0
  105. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-navigation-tabs.cjs.entry.js +5 -2
  107. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-notification.cjs.entry.js +4 -1
  109. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-otp.cjs.entry.js +3 -0
  111. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-pagination.cjs.entry.js +3 -0
  113. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-panel-elem.cjs.entry.js +5 -2
  115. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-popover.cjs.entry.js +5 -2
  117. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-range-picker.cjs.entry.js +6 -3
  119. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-result-card.cjs.entry.js +3 -0
  121. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-section-title.cjs.entry.js +4 -1
  123. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-select.cjs.entry.js +9 -6
  125. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-skip-to-content.cjs.entry.js +5 -2
  127. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-slideshow.cjs.entry.js +4 -1
  129. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-stepper-item.cjs.entry.js +4 -1
  131. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper.cjs.entry.js +4 -1
  133. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-table.cjs.entry.js +5 -2
  135. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-tbody.cjs.entry.js +4 -1
  137. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-td.cjs.entry.js +4 -1
  139. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-tfoot.cjs.entry.js +4 -1
  141. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-th.cjs.entry.js +4 -1
  143. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-thead.cjs.entry.js +4 -1
  145. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-toast-notification-list.cjs.entry.js +4 -1
  147. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toggle-button.cjs.entry.js +5 -2
  151. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-switch.cjs.entry.js +7 -4
  153. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-tool.cjs.entry.js +6 -3
  155. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-toolbar.cjs.entry.js +4 -1
  157. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-tooltip.cjs.entry.js +4 -1
  159. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tr.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tree-list.cjs.entry.js +4 -1
  163. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-visually-hidden.cjs.entry.js +4 -1
  165. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  166. package/dist/collection/beans/index.js +1 -0
  167. package/dist/collection/beans/index.js.map +1 -0
  168. package/dist/collection/collection-manifest.json +11 -11
  169. package/dist/collection/components/book-card/z-book-card/index.js +2 -8
  170. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  171. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  172. package/dist/collection/components/book-card/z-book-card-app/index.js +2 -3
  173. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  174. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  175. package/dist/collection/components/date-picker/utils.js +1 -0
  176. package/dist/collection/components/date-picker/utils.js.map +1 -0
  177. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -1
  178. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
  179. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -3
  180. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
  181. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +2 -54
  182. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  184. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +2 -5
  185. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  186. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  187. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +2 -2
  188. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  189. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  190. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +2 -1
  191. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  192. package/dist/collection/components/deprecated/z-section-title/index.js +2 -2
  193. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  194. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  195. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +3 -2
  196. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  197. package/dist/collection/components/file-upload/z-file/index.js +2 -1
  198. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  199. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -2
  200. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  201. package/dist/collection/components/index.js +1 -0
  202. package/dist/collection/components/index.js.map +1 -0
  203. package/dist/collection/components/list/z-list/index.js +2 -1
  204. package/dist/collection/components/list/z-list/index.js.map +1 -0
  205. package/dist/collection/components/list/z-list-element/index.js +2 -1
  206. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  207. package/dist/collection/components/list/z-list-group/index.js +3 -2
  208. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  209. package/dist/collection/components/list/z-tree-list/index.js +2 -1
  210. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  211. package/dist/collection/components/table/cells/z-td/index.js +2 -1
  212. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  213. package/dist/collection/components/table/cells/z-th/index.js +2 -1
  214. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  215. package/dist/collection/components/table/z-table/index.js +2 -2
  216. package/dist/collection/components/table/z-table/index.js.map +1 -0
  217. package/dist/collection/components/table/z-table/styles.css +3 -0
  218. package/dist/collection/components/table/z-tbody/index.js +2 -1
  219. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  220. package/dist/collection/components/table/z-tfoot/index.js +2 -1
  221. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  222. package/dist/collection/components/table/z-thead/index.js +2 -1
  223. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  224. package/dist/collection/components/table/z-tr/index.js +2 -1
  225. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/styles.css +2 -2
  227. package/dist/collection/components/z-accordion/index.js +4 -11
  228. package/dist/collection/components/z-accordion/index.js.map +1 -0
  229. package/dist/collection/components/z-accordion/styles.css +12 -0
  230. package/dist/collection/components/z-anchor-navigation/index.js +4 -3
  231. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  232. package/dist/collection/components/z-app-header/index.js +22 -8
  233. package/dist/collection/components/z-app-header/index.js.map +1 -0
  234. package/dist/collection/components/z-app-header/styles.css +12 -12
  235. package/dist/collection/components/z-aria-alert/index.js +2 -1
  236. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  237. package/dist/collection/components/z-avatar/index.js +3 -2
  238. package/dist/collection/components/z-avatar/index.js.map +1 -0
  239. package/dist/collection/components/z-book-cover/index.js +2 -5
  240. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  241. package/dist/collection/components/z-book-cover/styles.css +6 -0
  242. package/dist/collection/components/z-breadcrumb/index.js +3 -2
  243. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  244. package/dist/collection/components/z-button/index.js +3 -2
  245. package/dist/collection/components/z-button/index.js.map +1 -0
  246. package/dist/collection/components/z-button-sort/index.js +2 -1
  247. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  248. package/dist/collection/components/z-card/index.js +2 -8
  249. package/dist/collection/components/z-card/index.js.map +1 -0
  250. package/dist/collection/components/z-card/styles.css +9 -0
  251. package/dist/collection/components/z-carousel/index.js +1 -2
  252. package/dist/collection/components/z-carousel/index.js.map +1 -0
  253. package/dist/collection/components/z-carousel/styles.css +7 -3
  254. package/dist/collection/components/z-chip/index.js +3 -2
  255. package/dist/collection/components/z-chip/index.js.map +1 -0
  256. package/dist/collection/components/z-color-picker/index.js +2 -1
  257. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  258. package/dist/collection/components/z-combobox/index.js +2 -1
  259. package/dist/collection/components/z-combobox/index.js.map +1 -0
  260. package/dist/collection/components/z-cover-hero/index.js +3 -5
  261. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  262. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  263. package/dist/collection/components/z-divider/index.js +2 -1
  264. package/dist/collection/components/z-divider/index.js.map +1 -0
  265. package/dist/collection/components/z-ghost-loading/index.js +2 -1
  266. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  267. package/dist/collection/components/z-icon/index.js +4 -3
  268. package/dist/collection/components/z-icon/index.js.map +1 -0
  269. package/dist/collection/components/z-info-box/index.js +2 -1
  270. package/dist/collection/components/z-info-box/index.js.map +1 -0
  271. package/dist/collection/components/z-info-reveal/index.js +2 -5
  272. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  273. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  274. package/dist/collection/components/z-input/index.js +2 -1
  275. package/dist/collection/components/z-input/index.js.map +1 -0
  276. package/dist/collection/components/z-input-message/index.js +2 -1
  277. package/dist/collection/components/z-input-message/index.js.map +1 -0
  278. package/dist/collection/components/z-logo/index.js +2 -1
  279. package/dist/collection/components/z-logo/index.js.map +1 -0
  280. package/dist/collection/components/z-logo/styles.css +5 -0
  281. package/dist/collection/components/z-menu/index.js +1 -1
  282. package/dist/collection/components/z-menu/index.js.map +1 -0
  283. package/dist/collection/components/z-menu/styles.css +3 -0
  284. package/dist/collection/components/z-menu-section/index.js +2 -1
  285. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  286. package/dist/collection/components/z-modal/index.js +17 -37
  287. package/dist/collection/components/z-modal/index.js.map +1 -0
  288. package/dist/collection/components/z-modal/styles.css +5 -2
  289. package/dist/collection/components/z-navigation-tabs/index.js +3 -4
  290. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  291. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  292. package/dist/collection/components/z-notification/index.js +2 -4
  293. package/dist/collection/components/z-notification/index.js.map +1 -0
  294. package/dist/collection/components/z-notification/styles.css +5 -0
  295. package/dist/collection/components/z-offcanvas/index.js +43 -119
  296. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  297. package/dist/collection/components/z-offcanvas/styles.css +6 -0
  298. package/dist/collection/components/z-pagination/index.js +1 -2
  299. package/dist/collection/components/z-pagination/index.js.map +1 -0
  300. package/dist/collection/components/z-pagination/styles.css +6 -0
  301. package/dist/collection/components/z-panel-elem/index.js +3 -2
  302. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  303. package/dist/collection/components/z-popover/index.js +2 -6
  304. package/dist/collection/components/z-popover/index.js.map +1 -0
  305. package/dist/collection/components/z-popover/styles.css +6 -0
  306. package/dist/collection/components/z-result-card/index.js +1 -0
  307. package/dist/collection/components/z-result-card/index.js.map +1 -0
  308. package/dist/collection/components/z-searchbar/index.js +4 -8
  309. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  310. package/dist/collection/components/z-searchbar/styles.css +5 -0
  311. package/dist/collection/components/z-select/index.js +6 -5
  312. package/dist/collection/components/z-select/index.js.map +1 -0
  313. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  314. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  315. package/dist/collection/components/z-stepper/index.js +2 -1
  316. package/dist/collection/components/z-stepper/index.js.map +1 -0
  317. package/dist/collection/components/z-stepper-item/index.js +2 -1
  318. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  319. package/dist/collection/components/z-tag/index.js +3 -4
  320. package/dist/collection/components/z-tag/index.js.map +1 -0
  321. package/dist/collection/components/z-tag/styles.css +5 -0
  322. package/dist/collection/components/z-toast-notification/index.js +4 -3
  323. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  324. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  325. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  326. package/dist/collection/components/z-toggle-button/index.js +3 -2
  327. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  328. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  329. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  330. package/dist/collection/components/z-tool/index.js +3 -2
  331. package/dist/collection/components/z-tool/index.js.map +1 -0
  332. package/dist/collection/components/z-toolbar/index.js +2 -2
  333. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  334. package/dist/collection/components/z-toolbar/styles.css +4 -0
  335. package/dist/collection/components/z-tooltip/index.js +2 -5
  336. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  337. package/dist/collection/components/z-tooltip/styles.css +6 -0
  338. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  339. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  340. package/dist/collection/constants/breakpoints.js +1 -0
  341. package/dist/collection/constants/breakpoints.js.map +1 -0
  342. package/dist/collection/constants/icons.js +1 -0
  343. package/dist/collection/constants/icons.js.map +1 -0
  344. package/dist/collection/constants/iconset.js +1 -0
  345. package/dist/collection/constants/iconset.js.map +1 -0
  346. package/dist/collection/index.js +1 -0
  347. package/dist/collection/index.js.map +1 -0
  348. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -2
  349. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  350. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -0
  351. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  352. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -0
  353. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  354. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -0
  355. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  356. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -0
  357. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  358. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -0
  359. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  360. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -0
  361. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  362. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -0
  363. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  364. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -0
  365. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  366. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
  367. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  368. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -0
  369. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  370. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -0
  371. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  372. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -0
  373. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  374. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -0
  375. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  376. package/dist/collection/snowflakes/myz/z-otp/index.js +1 -0
  377. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  378. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  379. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  380. package/dist/collection/utils/focus-trap-controller.js +100 -0
  381. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  382. package/dist/collection/utils/reactive-controller.js +46 -0
  383. package/dist/collection/utils/reactive-controller.js.map +1 -0
  384. package/dist/collection/utils/storybook-utils.js +8 -0
  385. package/dist/collection/utils/storybook-utils.js.map +1 -0
  386. package/dist/collection/utils/utils.js +60 -1
  387. package/dist/collection/utils/utils.js.map +1 -0
  388. package/dist/components/_commonjsHelpers.js +2 -1
  389. package/dist/components/_commonjsHelpers.js.map +1 -0
  390. package/dist/components/breakpoints.js +2 -1
  391. package/dist/components/breakpoints.js.map +1 -0
  392. package/dist/components/iconset.js +2 -1
  393. package/dist/components/iconset.js.map +1 -0
  394. package/dist/components/index.js +2 -1
  395. package/dist/components/index.js.map +1 -0
  396. package/dist/components/index10.js +2 -1
  397. package/dist/components/index10.js.map +1 -0
  398. package/dist/components/index11.js +2 -1
  399. package/dist/components/index11.js.map +1 -0
  400. package/dist/components/index12.js +2 -1
  401. package/dist/components/index12.js.map +1 -0
  402. package/dist/components/index13.js +2 -1
  403. package/dist/components/index13.js.map +1 -0
  404. package/dist/components/index14.js +2 -1
  405. package/dist/components/index14.js.map +1 -0
  406. package/dist/components/index15.js +2 -1
  407. package/dist/components/index15.js.map +1 -0
  408. package/dist/components/index16.js +2 -1
  409. package/dist/components/index16.js.map +1 -0
  410. package/dist/components/index17.js +2 -1
  411. package/dist/components/index17.js.map +1 -0
  412. package/dist/components/index18.js +2 -1
  413. package/dist/components/index18.js.map +1 -0
  414. package/dist/components/index19.js +2 -1
  415. package/dist/components/index19.js.map +1 -0
  416. package/dist/components/index2.js +2 -1
  417. package/dist/components/index2.js.map +1 -0
  418. package/dist/components/index20.js +2 -1
  419. package/dist/components/index20.js.map +1 -0
  420. package/dist/components/index21.js +2 -1
  421. package/dist/components/index21.js.map +1 -0
  422. package/dist/components/index22.js +2 -1
  423. package/dist/components/index22.js.map +1 -0
  424. package/dist/components/index23.js +2 -1
  425. package/dist/components/index23.js.map +1 -0
  426. package/dist/components/index24.js +2 -1
  427. package/dist/components/index24.js.map +1 -0
  428. package/dist/components/index25.js +2 -1
  429. package/dist/components/index25.js.map +1 -0
  430. package/dist/components/index26.js +2 -1
  431. package/dist/components/index26.js.map +1 -0
  432. package/dist/components/index27.js +2 -1
  433. package/dist/components/index27.js.map +1 -0
  434. package/dist/components/index3.js +2 -1
  435. package/dist/components/index3.js.map +1 -0
  436. package/dist/components/index4.js +2 -1
  437. package/dist/components/index4.js.map +1 -0
  438. package/dist/components/index5.js +2 -1
  439. package/dist/components/index5.js.map +1 -0
  440. package/dist/components/index6.js +2 -1
  441. package/dist/components/index6.js.map +1 -0
  442. package/dist/components/index7.js +2 -1
  443. package/dist/components/index7.js.map +1 -0
  444. package/dist/components/index8.js +2 -1
  445. package/dist/components/index8.js.map +1 -0
  446. package/dist/components/index9.js +2 -1
  447. package/dist/components/index9.js.map +1 -0
  448. package/dist/components/reactive-controller.js +6 -0
  449. package/dist/components/reactive-controller.js.map +1 -0
  450. package/dist/components/utils.js +7 -1
  451. package/dist/components/utils.js.map +1 -0
  452. package/dist/components/utils2.js +2 -1
  453. package/dist/components/utils2.js.map +1 -0
  454. package/dist/components/z-accordion.js +2 -1
  455. package/dist/components/z-accordion.js.map +1 -0
  456. package/dist/components/z-alert.js +2 -1
  457. package/dist/components/z-alert.js.map +1 -0
  458. package/dist/components/z-anchor-navigation.js +2 -1
  459. package/dist/components/z-anchor-navigation.js.map +1 -0
  460. package/dist/components/z-app-header-deprecated.js +2 -1
  461. package/dist/components/z-app-header-deprecated.js.map +1 -0
  462. package/dist/components/z-app-header.js +2 -1
  463. package/dist/components/z-app-header.js.map +1 -0
  464. package/dist/components/z-aria-alert.js +2 -1
  465. package/dist/components/z-aria-alert.js.map +1 -0
  466. package/dist/components/z-avatar.js +2 -1
  467. package/dist/components/z-avatar.js.map +1 -0
  468. package/dist/components/z-book-card-app.js +2 -1
  469. package/dist/components/z-book-card-app.js.map +1 -0
  470. package/dist/components/z-book-card-deprecated.js +2 -1
  471. package/dist/components/z-book-card-deprecated.js.map +1 -0
  472. package/dist/components/z-book-card.js +2 -1
  473. package/dist/components/z-book-card.js.map +1 -0
  474. package/dist/components/z-book-cover.js +2 -1
  475. package/dist/components/z-book-cover.js.map +1 -0
  476. package/dist/components/z-breadcrumb.js +2 -1
  477. package/dist/components/z-breadcrumb.js.map +1 -0
  478. package/dist/components/z-button-sort.js +2 -1
  479. package/dist/components/z-button-sort.js.map +1 -0
  480. package/dist/components/z-button.js +2 -1
  481. package/dist/components/z-button.js.map +1 -0
  482. package/dist/components/z-card.js +2 -1
  483. package/dist/components/z-card.js.map +1 -0
  484. package/dist/components/z-carousel.js +2 -1
  485. package/dist/components/z-carousel.js.map +1 -0
  486. package/dist/components/z-chip.js +2 -1
  487. package/dist/components/z-chip.js.map +1 -0
  488. package/dist/components/z-color-picker.js +2 -1
  489. package/dist/components/z-color-picker.js.map +1 -0
  490. package/dist/components/z-combobox.js +2 -1
  491. package/dist/components/z-combobox.js.map +1 -0
  492. package/dist/components/z-cover-hero.js +2 -1
  493. package/dist/components/z-cover-hero.js.map +1 -0
  494. package/dist/components/z-date-picker.js +3 -2
  495. package/dist/components/z-date-picker.js.map +1 -0
  496. package/dist/components/z-divider.js +2 -1
  497. package/dist/components/z-divider.js.map +1 -0
  498. package/dist/components/z-dragdrop-area.js +2 -1
  499. package/dist/components/z-dragdrop-area.js.map +1 -0
  500. package/dist/components/z-file-upload.js +2 -1
  501. package/dist/components/z-file-upload.js.map +1 -0
  502. package/dist/components/z-file.js +2 -1
  503. package/dist/components/z-file.js.map +1 -0
  504. package/dist/components/z-ghost-loading.js +2 -1
  505. package/dist/components/z-ghost-loading.js.map +1 -0
  506. package/dist/components/z-icon.js +2 -1
  507. package/dist/components/z-icon.js.map +1 -0
  508. package/dist/components/z-info-box.js +2 -1
  509. package/dist/components/z-info-box.js.map +1 -0
  510. package/dist/components/z-info-reveal.js +2 -1
  511. package/dist/components/z-info-reveal.js.map +1 -0
  512. package/dist/components/z-input-message.js +2 -1
  513. package/dist/components/z-input-message.js.map +1 -0
  514. package/dist/components/z-input.js +2 -1
  515. package/dist/components/z-input.js.map +1 -0
  516. package/dist/components/z-list-element.js +2 -1
  517. package/dist/components/z-list-element.js.map +1 -0
  518. package/dist/components/z-list-group.js +2 -1
  519. package/dist/components/z-list-group.js.map +1 -0
  520. package/dist/components/z-list.js +2 -1
  521. package/dist/components/z-list.js.map +1 -0
  522. package/dist/components/z-logo.js +2 -1
  523. package/dist/components/z-logo.js.map +1 -0
  524. package/dist/components/z-menu-deprecated.js +2 -1
  525. package/dist/components/z-menu-deprecated.js.map +1 -0
  526. package/dist/components/z-menu-section-deprecated.js +2 -1
  527. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  528. package/dist/components/z-menu-section.js +2 -1
  529. package/dist/components/z-menu-section.js.map +1 -0
  530. package/dist/components/z-menu.js +2 -1
  531. package/dist/components/z-menu.js.map +1 -0
  532. package/dist/components/z-modal.js +2 -1
  533. package/dist/components/z-modal.js.map +1 -0
  534. package/dist/components/z-myz-card-alert.js +2 -1
  535. package/dist/components/z-myz-card-alert.js.map +1 -0
  536. package/dist/components/z-myz-card-body.js +2 -1
  537. package/dist/components/z-myz-card-body.js.map +1 -0
  538. package/dist/components/z-myz-card-cover.js +2 -1
  539. package/dist/components/z-myz-card-cover.js.map +1 -0
  540. package/dist/components/z-myz-card-dictionary.js +2 -1
  541. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  542. package/dist/components/z-myz-card-footer-sections.js +2 -1
  543. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  544. package/dist/components/z-myz-card-footer.js +2 -1
  545. package/dist/components/z-myz-card-footer.js.map +1 -0
  546. package/dist/components/z-myz-card-header.js +2 -1
  547. package/dist/components/z-myz-card-header.js.map +1 -0
  548. package/dist/components/z-myz-card-icon.js +2 -1
  549. package/dist/components/z-myz-card-icon.js.map +1 -0
  550. package/dist/components/z-myz-card-info.js +2 -1
  551. package/dist/components/z-myz-card-info.js.map +1 -0
  552. package/dist/components/z-myz-card-list.js +2 -1
  553. package/dist/components/z-myz-card-list.js.map +1 -0
  554. package/dist/components/z-myz-card.js +2 -1
  555. package/dist/components/z-myz-card.js.map +1 -0
  556. package/dist/components/z-myz-list-item.js +2 -1
  557. package/dist/components/z-myz-list-item.js.map +1 -0
  558. package/dist/components/z-myz-list.js +2 -1
  559. package/dist/components/z-myz-list.js.map +1 -0
  560. package/dist/components/z-navigation-tabs.js +2 -1
  561. package/dist/components/z-navigation-tabs.js.map +1 -0
  562. package/dist/components/z-notification.js +2 -1
  563. package/dist/components/z-notification.js.map +1 -0
  564. package/dist/components/z-offcanvas.js +2 -1
  565. package/dist/components/z-offcanvas.js.map +1 -0
  566. package/dist/components/z-otp.js +2 -1
  567. package/dist/components/z-otp.js.map +1 -0
  568. package/dist/components/z-pagination.js +2 -1
  569. package/dist/components/z-pagination.js.map +1 -0
  570. package/dist/components/z-panel-elem.js +2 -1
  571. package/dist/components/z-panel-elem.js.map +1 -0
  572. package/dist/components/z-popover.js +2 -1
  573. package/dist/components/z-popover.js.map +1 -0
  574. package/dist/components/z-range-picker.js +2 -1
  575. package/dist/components/z-range-picker.js.map +1 -0
  576. package/dist/components/z-result-card.js +2 -1
  577. package/dist/components/z-result-card.js.map +1 -0
  578. package/dist/components/z-searchbar.js +2 -1
  579. package/dist/components/z-searchbar.js.map +1 -0
  580. package/dist/components/z-section-title.js +2 -1
  581. package/dist/components/z-section-title.js.map +1 -0
  582. package/dist/components/z-select.js +2 -1
  583. package/dist/components/z-select.js.map +1 -0
  584. package/dist/components/z-skip-to-content.js +2 -1
  585. package/dist/components/z-skip-to-content.js.map +1 -0
  586. package/dist/components/z-slideshow.js +2 -1
  587. package/dist/components/z-slideshow.js.map +1 -0
  588. package/dist/components/z-stepper-item.js +2 -1
  589. package/dist/components/z-stepper-item.js.map +1 -0
  590. package/dist/components/z-stepper.js +2 -1
  591. package/dist/components/z-stepper.js.map +1 -0
  592. package/dist/components/z-table.js +2 -1
  593. package/dist/components/z-table.js.map +1 -0
  594. package/dist/components/z-tag.js +2 -1
  595. package/dist/components/z-tag.js.map +1 -0
  596. package/dist/components/z-tbody.js +2 -1
  597. package/dist/components/z-tbody.js.map +1 -0
  598. package/dist/components/z-td.js +2 -1
  599. package/dist/components/z-td.js.map +1 -0
  600. package/dist/components/z-tfoot.js +2 -1
  601. package/dist/components/z-tfoot.js.map +1 -0
  602. package/dist/components/z-th.js +2 -1
  603. package/dist/components/z-th.js.map +1 -0
  604. package/dist/components/z-thead.js +2 -1
  605. package/dist/components/z-thead.js.map +1 -0
  606. package/dist/components/z-toast-notification-list.js +2 -1
  607. package/dist/components/z-toast-notification-list.js.map +1 -0
  608. package/dist/components/z-toast-notification.js +8 -2
  609. package/dist/components/z-toast-notification.js.map +1 -0
  610. package/dist/components/z-toggle-button.js +2 -1
  611. package/dist/components/z-toggle-button.js.map +1 -0
  612. package/dist/components/z-toggle-switch.js +2 -1
  613. package/dist/components/z-toggle-switch.js.map +1 -0
  614. package/dist/components/z-tool.js +2 -1
  615. package/dist/components/z-tool.js.map +1 -0
  616. package/dist/components/z-toolbar.js +2 -1
  617. package/dist/components/z-toolbar.js.map +1 -0
  618. package/dist/components/z-tooltip.js +2 -1
  619. package/dist/components/z-tooltip.js.map +1 -0
  620. package/dist/components/z-tr.js +2 -1
  621. package/dist/components/z-tr.js.map +1 -0
  622. package/dist/components/z-tree-list.js +2 -1
  623. package/dist/components/z-tree-list.js.map +1 -0
  624. package/dist/components/z-visually-hidden.js +2 -1
  625. package/dist/components/z-visually-hidden.js.map +1 -0
  626. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  627. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  628. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  629. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  630. package/dist/esm/iconset-AwzX9V8L.js +3 -0
  631. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  632. package/dist/esm/index-BKCj6NR2.js +3 -0
  633. package/dist/esm/index-BKCj6NR2.js.map +1 -0
  634. package/dist/esm/index-DPdXlnVe.js +3 -0
  635. package/dist/esm/index-DPdXlnVe.js.map +1 -0
  636. package/dist/esm/index.js +4 -1
  637. package/dist/esm/index.js.map +1 -0
  638. package/dist/esm/loader.js +4 -1
  639. package/dist/esm/loader.js.map +1 -0
  640. package/dist/esm/reactive-controller-DZQWST94.js +1443 -0
  641. package/dist/esm/reactive-controller-DZQWST94.js.map +1 -0
  642. package/dist/esm/utils-D-T4RQuj.js +896 -0
  643. package/dist/esm/utils-D-T4RQuj.js.map +1 -0
  644. package/dist/esm/utils-DuuLzXZj.js +3 -0
  645. package/dist/esm/utils-DuuLzXZj.js.map +1 -0
  646. package/dist/esm/web-components-library.js +4 -1
  647. package/dist/esm/web-components-library.js.map +1 -0
  648. package/dist/esm/z-accordion.entry.js +4 -1
  649. package/dist/esm/z-accordion.entry.js.map +1 -0
  650. package/dist/esm/z-alert.entry.js +3 -0
  651. package/dist/esm/z-alert.entry.js.map +1 -0
  652. package/dist/esm/z-anchor-navigation.entry.js +5 -2
  653. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  654. package/dist/esm/z-app-header-deprecated.entry.js +4 -1
  655. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  656. package/dist/esm/z-app-header_12.entry.js +57 -121
  657. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  658. package/dist/esm/z-aria-alert.entry.js +4 -1
  659. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  660. package/dist/esm/z-avatar.entry.js +5 -2
  661. package/dist/esm/z-avatar.entry.js.map +1 -0
  662. package/dist/esm/z-book-card-app.entry.js +4 -1
  663. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  664. package/dist/esm/z-book-card-deprecated.entry.js +5 -2
  665. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  666. package/dist/esm/z-book-card.entry.js +4 -1
  667. package/dist/esm/z-book-card.entry.js.map +1 -0
  668. package/dist/esm/z-book-cover.entry.js +4 -1
  669. package/dist/esm/z-book-cover.entry.js.map +1 -0
  670. package/dist/esm/z-breadcrumb.entry.js +6 -3
  671. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  672. package/dist/esm/z-button-sort.entry.js +4 -1
  673. package/dist/esm/z-button-sort.entry.js.map +1 -0
  674. package/dist/esm/z-card.entry.js +3 -0
  675. package/dist/esm/z-card.entry.js.map +1 -0
  676. package/dist/esm/z-carousel.entry.js +4 -1
  677. package/dist/esm/z-carousel.entry.js.map +1 -0
  678. package/dist/esm/z-chip.entry.js +5 -2
  679. package/dist/esm/z-chip.entry.js.map +1 -0
  680. package/dist/esm/z-color-picker.entry.js +5 -2
  681. package/dist/esm/z-color-picker.entry.js.map +1 -0
  682. package/dist/esm/z-combobox.entry.js +5 -2
  683. package/dist/esm/z-combobox.entry.js.map +1 -0
  684. package/dist/esm/z-cover-hero.entry.js +5 -2
  685. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  686. package/dist/esm/z-date-picker.entry.js +4 -1
  687. package/dist/esm/z-date-picker.entry.js.map +1 -0
  688. package/dist/esm/z-dragdrop-area_2.entry.js +23 -39
  689. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  690. package/dist/esm/z-file-upload.entry.js +5 -2
  691. package/dist/esm/z-file-upload.entry.js.map +1 -0
  692. package/dist/esm/z-file.entry.js +4 -1
  693. package/dist/esm/z-file.entry.js.map +1 -0
  694. package/dist/esm/z-ghost-loading.entry.js +4 -1
  695. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  696. package/dist/esm/z-info-box.entry.js +4 -1
  697. package/dist/esm/z-info-box.entry.js.map +1 -0
  698. package/dist/esm/z-info-reveal.entry.js +4 -1
  699. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  700. package/dist/esm/z-logo.entry.js +5 -2
  701. package/dist/esm/z-logo.entry.js.map +1 -0
  702. package/dist/esm/z-menu-deprecated.entry.js +5 -2
  703. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  704. package/dist/esm/z-menu-section-deprecated.entry.js +4 -1
  705. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  706. package/dist/esm/z-menu-section.entry.js +4 -1
  707. package/dist/esm/z-menu-section.entry.js.map +1 -0
  708. package/dist/esm/z-menu.entry.js +4 -1
  709. package/dist/esm/z-menu.entry.js.map +1 -0
  710. package/dist/esm/z-myz-card-alert.entry.js +3 -0
  711. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  712. package/dist/esm/z-myz-card-dictionary.entry.js +3 -0
  713. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  714. package/dist/esm/z-myz-card-footer-sections.entry.js +3 -0
  715. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  716. package/dist/esm/z-myz-card-footer.entry.js +3 -0
  717. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  718. package/dist/esm/z-myz-card-icon.entry.js +3 -0
  719. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  720. package/dist/esm/z-myz-card-info.entry.js +5 -2
  721. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  722. package/dist/esm/z-myz-card-list.entry.js +3 -0
  723. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  724. package/dist/esm/z-myz-card_4.entry.js +4 -1
  725. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  726. package/dist/esm/z-myz-list-item.entry.js +4 -1
  727. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  728. package/dist/esm/z-myz-list.entry.js +3 -0
  729. package/dist/esm/z-myz-list.entry.js.map +1 -0
  730. package/dist/esm/z-navigation-tabs.entry.js +5 -2
  731. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  732. package/dist/esm/z-notification.entry.js +4 -1
  733. package/dist/esm/z-notification.entry.js.map +1 -0
  734. package/dist/esm/z-otp.entry.js +3 -0
  735. package/dist/esm/z-otp.entry.js.map +1 -0
  736. package/dist/esm/z-pagination.entry.js +3 -0
  737. package/dist/esm/z-pagination.entry.js.map +1 -0
  738. package/dist/esm/z-panel-elem.entry.js +5 -2
  739. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  740. package/dist/esm/z-popover.entry.js +5 -2
  741. package/dist/esm/z-popover.entry.js.map +1 -0
  742. package/dist/esm/z-range-picker.entry.js +6 -3
  743. package/dist/esm/z-range-picker.entry.js.map +1 -0
  744. package/dist/esm/z-result-card.entry.js +3 -0
  745. package/dist/esm/z-result-card.entry.js.map +1 -0
  746. package/dist/esm/z-section-title.entry.js +4 -1
  747. package/dist/esm/z-section-title.entry.js.map +1 -0
  748. package/dist/esm/z-select.entry.js +9 -6
  749. package/dist/esm/z-select.entry.js.map +1 -0
  750. package/dist/esm/z-skip-to-content.entry.js +5 -2
  751. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  752. package/dist/esm/z-slideshow.entry.js +4 -1
  753. package/dist/esm/z-slideshow.entry.js.map +1 -0
  754. package/dist/esm/z-stepper-item.entry.js +4 -1
  755. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  756. package/dist/esm/z-stepper.entry.js +4 -1
  757. package/dist/esm/z-stepper.entry.js.map +1 -0
  758. package/dist/esm/z-table.entry.js +5 -2
  759. package/dist/esm/z-table.entry.js.map +1 -0
  760. package/dist/esm/z-tbody.entry.js +4 -1
  761. package/dist/esm/z-tbody.entry.js.map +1 -0
  762. package/dist/esm/z-td.entry.js +4 -1
  763. package/dist/esm/z-td.entry.js.map +1 -0
  764. package/dist/esm/z-tfoot.entry.js +4 -1
  765. package/dist/esm/z-tfoot.entry.js.map +1 -0
  766. package/dist/esm/z-th.entry.js +4 -1
  767. package/dist/esm/z-th.entry.js.map +1 -0
  768. package/dist/esm/z-thead.entry.js +4 -1
  769. package/dist/esm/z-thead.entry.js.map +1 -0
  770. package/dist/esm/z-toast-notification-list.entry.js +4 -1
  771. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  772. package/dist/esm/z-toast-notification.entry.js +6 -3
  773. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  774. package/dist/esm/z-toggle-button.entry.js +5 -2
  775. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  776. package/dist/esm/z-toggle-switch.entry.js +7 -4
  777. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  778. package/dist/esm/z-tool.entry.js +6 -3
  779. package/dist/esm/z-tool.entry.js.map +1 -0
  780. package/dist/esm/z-toolbar.entry.js +4 -1
  781. package/dist/esm/z-toolbar.entry.js.map +1 -0
  782. package/dist/esm/z-tooltip.entry.js +4 -1
  783. package/dist/esm/z-tooltip.entry.js.map +1 -0
  784. package/dist/esm/z-tr.entry.js +6 -3
  785. package/dist/esm/z-tr.entry.js.map +1 -0
  786. package/dist/esm/z-tree-list.entry.js +4 -1
  787. package/dist/esm/z-tree-list.entry.js.map +1 -0
  788. package/dist/esm/z-visually-hidden.entry.js +4 -1
  789. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  790. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  791. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  792. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  793. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  794. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  795. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  796. package/dist/types/components/table/z-table/index.d.ts +0 -1
  797. package/dist/types/components/z-accordion/index.d.ts +2 -10
  798. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  799. package/dist/types/components/z-app-header/index.d.ts +4 -6
  800. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  801. package/dist/types/components/z-button/index.d.ts +1 -1
  802. package/dist/types/components/z-card/index.d.ts +1 -8
  803. package/dist/types/components/z-carousel/index.d.ts +0 -2
  804. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  805. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  806. package/dist/types/components/z-menu/index.d.ts +0 -1
  807. package/dist/types/components/z-modal/index.d.ts +4 -11
  808. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  809. package/dist/types/components/z-notification/index.d.ts +0 -3
  810. package/dist/types/components/z-offcanvas/index.d.ts +12 -37
  811. package/dist/types/components/z-pagination/index.d.ts +0 -2
  812. package/dist/types/components/z-popover/index.d.ts +0 -5
  813. package/dist/types/components/z-searchbar/index.d.ts +0 -5
  814. package/dist/types/components/z-tag/index.d.ts +0 -2
  815. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  816. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  817. package/dist/types/components.d.ts +18 -601
  818. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  819. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  820. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  821. package/dist/types/utils/reactive-controller.d.ts +39 -0
  822. package/dist/types/utils/storybook-utils.d.ts +7 -2
  823. package/dist/types/utils/utils.d.ts +10 -0
  824. package/dist/web-components-library/index.esm.js +2 -1
  825. package/dist/web-components-library/index.esm.js.map +1 -0
  826. package/dist/web-components-library/p-02741f3e.entry.js +2 -0
  827. package/dist/web-components-library/p-02741f3e.entry.js.map +1 -0
  828. package/dist/web-components-library/p-02b47708.entry.js +2 -0
  829. package/dist/web-components-library/p-02b47708.entry.js.map +1 -0
  830. package/dist/web-components-library/p-02e3f7db.entry.js +2 -0
  831. package/dist/web-components-library/p-02e3f7db.entry.js.map +1 -0
  832. package/dist/web-components-library/p-0b8313b7.entry.js +2 -0
  833. package/dist/web-components-library/p-0b8313b7.entry.js.map +1 -0
  834. package/dist/web-components-library/p-0f79c6e8.entry.js +2 -0
  835. package/dist/web-components-library/p-0f79c6e8.entry.js.map +1 -0
  836. package/dist/web-components-library/p-168426fe.entry.js +2 -0
  837. package/dist/web-components-library/p-168426fe.entry.js.map +1 -0
  838. package/dist/web-components-library/p-1f64ba04.entry.js +8 -0
  839. package/dist/web-components-library/p-1f64ba04.entry.js.map +1 -0
  840. package/dist/web-components-library/p-29816d9c.entry.js +2 -0
  841. package/dist/web-components-library/p-29816d9c.entry.js.map +1 -0
  842. package/dist/web-components-library/p-2a00eea3.entry.js +2 -0
  843. package/dist/web-components-library/p-2a00eea3.entry.js.map +1 -0
  844. package/dist/web-components-library/p-2ffbc315.entry.js +2 -0
  845. package/dist/web-components-library/p-2ffbc315.entry.js.map +1 -0
  846. package/dist/web-components-library/p-31635e9d.entry.js +2 -0
  847. package/dist/web-components-library/p-31635e9d.entry.js.map +1 -0
  848. package/dist/web-components-library/p-338fc882.entry.js +2 -0
  849. package/dist/web-components-library/p-338fc882.entry.js.map +1 -0
  850. package/dist/web-components-library/p-40079bb3.entry.js +2 -0
  851. package/dist/web-components-library/p-40079bb3.entry.js.map +1 -0
  852. package/dist/web-components-library/p-413c743d.entry.js +2 -0
  853. package/dist/web-components-library/p-413c743d.entry.js.map +1 -0
  854. package/dist/web-components-library/p-441cb2d9.entry.js +2 -0
  855. package/dist/web-components-library/p-441cb2d9.entry.js.map +1 -0
  856. package/dist/web-components-library/p-44b8aba8.entry.js +2 -0
  857. package/dist/web-components-library/p-44b8aba8.entry.js.map +1 -0
  858. package/dist/web-components-library/p-4767a2b3.entry.js +2 -0
  859. package/dist/web-components-library/p-4767a2b3.entry.js.map +1 -0
  860. package/dist/web-components-library/p-48b9411e.entry.js +2 -0
  861. package/dist/web-components-library/p-48b9411e.entry.js.map +1 -0
  862. package/dist/web-components-library/p-52e01182.entry.js +2 -0
  863. package/dist/web-components-library/p-52e01182.entry.js.map +1 -0
  864. package/dist/web-components-library/p-56f926d7.entry.js +2 -0
  865. package/dist/web-components-library/p-56f926d7.entry.js.map +1 -0
  866. package/dist/web-components-library/p-585b7068.entry.js +2 -0
  867. package/dist/web-components-library/p-585b7068.entry.js.map +1 -0
  868. package/dist/web-components-library/p-5928e726.entry.js +2 -0
  869. package/dist/web-components-library/p-5928e726.entry.js.map +1 -0
  870. package/dist/web-components-library/p-5b72a84e.entry.js +2 -0
  871. package/dist/web-components-library/p-5b72a84e.entry.js.map +1 -0
  872. package/dist/web-components-library/p-5fc0afef.entry.js +2 -0
  873. package/dist/web-components-library/p-5fc0afef.entry.js.map +1 -0
  874. package/dist/web-components-library/p-602aad3e.entry.js +2 -0
  875. package/dist/web-components-library/p-602aad3e.entry.js.map +1 -0
  876. package/dist/web-components-library/p-65013fbe.entry.js +2 -0
  877. package/dist/web-components-library/p-65013fbe.entry.js.map +1 -0
  878. package/dist/web-components-library/p-680e12d3.entry.js +2 -0
  879. package/dist/web-components-library/p-680e12d3.entry.js.map +1 -0
  880. package/dist/web-components-library/p-6a949aa2.entry.js +2 -0
  881. package/dist/web-components-library/p-6a949aa2.entry.js.map +1 -0
  882. package/dist/web-components-library/p-6d5dac88.entry.js +2 -0
  883. package/dist/web-components-library/p-6d5dac88.entry.js.map +1 -0
  884. package/dist/web-components-library/p-6df25588.entry.js +2 -0
  885. package/dist/web-components-library/p-6df25588.entry.js.map +1 -0
  886. package/dist/web-components-library/p-720d8465.entry.js +2 -0
  887. package/dist/web-components-library/p-720d8465.entry.js.map +1 -0
  888. package/dist/web-components-library/p-7825ea5e.entry.js +2 -0
  889. package/dist/web-components-library/p-7825ea5e.entry.js.map +1 -0
  890. package/dist/web-components-library/p-7a0eb225.entry.js +2 -0
  891. package/dist/web-components-library/p-7a0eb225.entry.js.map +1 -0
  892. package/dist/web-components-library/p-7c1da49a.entry.js +2 -0
  893. package/dist/web-components-library/p-7c1da49a.entry.js.map +1 -0
  894. package/dist/web-components-library/p-7c3e6b8d.entry.js +2 -0
  895. package/dist/web-components-library/p-7c3e6b8d.entry.js.map +1 -0
  896. package/dist/web-components-library/p-7d9d5708.entry.js +2 -0
  897. package/dist/web-components-library/p-7d9d5708.entry.js.map +1 -0
  898. package/dist/web-components-library/p-813716a7.entry.js +2 -0
  899. package/dist/web-components-library/p-813716a7.entry.js.map +1 -0
  900. package/dist/web-components-library/p-8282c9d3.entry.js +2 -0
  901. package/dist/web-components-library/p-8282c9d3.entry.js.map +1 -0
  902. package/dist/web-components-library/p-829ea489.entry.js +2 -0
  903. package/dist/web-components-library/p-829ea489.entry.js.map +1 -0
  904. package/dist/web-components-library/p-832c0410.entry.js +2 -0
  905. package/dist/web-components-library/p-832c0410.entry.js.map +1 -0
  906. package/dist/web-components-library/p-83d30a6b.entry.js +2 -0
  907. package/dist/web-components-library/p-83d30a6b.entry.js.map +1 -0
  908. package/dist/web-components-library/p-8437b51b.entry.js +17 -0
  909. package/dist/web-components-library/p-8437b51b.entry.js.map +1 -0
  910. package/dist/web-components-library/p-883a78e8.entry.js +2 -0
  911. package/dist/web-components-library/p-883a78e8.entry.js.map +1 -0
  912. package/dist/web-components-library/p-8b02ad8e.entry.js +2 -0
  913. package/dist/web-components-library/p-8b02ad8e.entry.js.map +1 -0
  914. package/dist/web-components-library/p-93762440.entry.js +2 -0
  915. package/dist/web-components-library/p-93762440.entry.js.map +1 -0
  916. package/dist/web-components-library/p-9640df86.entry.js +2 -0
  917. package/dist/web-components-library/p-9640df86.entry.js.map +1 -0
  918. package/dist/web-components-library/p-9738ace8.entry.js +2 -0
  919. package/dist/web-components-library/p-9738ace8.entry.js.map +1 -0
  920. package/dist/web-components-library/p-97f87456.entry.js +2 -0
  921. package/dist/web-components-library/p-97f87456.entry.js.map +1 -0
  922. package/dist/web-components-library/p-9b4f88c3.entry.js +2 -0
  923. package/dist/web-components-library/p-9b4f88c3.entry.js.map +1 -0
  924. package/dist/web-components-library/p-9d9a2685.entry.js +2 -0
  925. package/dist/web-components-library/p-9d9a2685.entry.js.map +1 -0
  926. package/dist/web-components-library/p-9db95f97.entry.js +2 -0
  927. package/dist/web-components-library/p-9db95f97.entry.js.map +1 -0
  928. package/dist/web-components-library/p-9f86e284.entry.js +2 -0
  929. package/dist/web-components-library/p-9f86e284.entry.js.map +1 -0
  930. package/dist/web-components-library/p-AwzX9V8L.js +2 -1
  931. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  932. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  933. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  934. package/dist/web-components-library/p-B8WJfd4z.js +2 -1
  935. package/dist/web-components-library/p-B8WJfd4z.js.map +1 -0
  936. package/dist/web-components-library/p-BKCj6NR2.js +2 -1
  937. package/dist/web-components-library/p-BKCj6NR2.js.map +1 -0
  938. package/dist/web-components-library/p-C-uijUlb.js +6 -0
  939. package/dist/web-components-library/p-C-uijUlb.js.map +1 -0
  940. package/dist/web-components-library/p-DALRZVXG.js +7 -0
  941. package/dist/web-components-library/p-DALRZVXG.js.map +1 -0
  942. package/dist/web-components-library/p-DPdXlnVe.js +3 -2
  943. package/dist/web-components-library/p-DPdXlnVe.js.map +1 -0
  944. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  945. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  946. package/dist/web-components-library/p-a1f1e2da.entry.js +2 -0
  947. package/dist/web-components-library/p-a1f1e2da.entry.js.map +1 -0
  948. package/dist/web-components-library/p-a3b628d2.entry.js +2 -0
  949. package/dist/web-components-library/p-a3b628d2.entry.js.map +1 -0
  950. package/dist/web-components-library/p-a5647972.entry.js +2 -0
  951. package/dist/web-components-library/p-a5647972.entry.js.map +1 -0
  952. package/dist/web-components-library/p-a97bfd11.entry.js +2 -0
  953. package/dist/web-components-library/p-a97bfd11.entry.js.map +1 -0
  954. package/dist/web-components-library/p-af91a46b.entry.js +2 -0
  955. package/dist/web-components-library/p-af91a46b.entry.js.map +1 -0
  956. package/dist/web-components-library/p-b02a920c.entry.js +2 -0
  957. package/dist/web-components-library/p-b02a920c.entry.js.map +1 -0
  958. package/dist/web-components-library/p-b3c84f65.entry.js +2 -0
  959. package/dist/web-components-library/p-b3c84f65.entry.js.map +1 -0
  960. package/dist/web-components-library/p-bba3b3ac.entry.js +2 -0
  961. package/dist/web-components-library/p-bba3b3ac.entry.js.map +1 -0
  962. package/dist/web-components-library/p-c700b3b6.entry.js +2 -0
  963. package/dist/web-components-library/p-c700b3b6.entry.js.map +1 -0
  964. package/dist/web-components-library/p-c9f7a6fd.entry.js +2 -0
  965. package/dist/web-components-library/p-c9f7a6fd.entry.js.map +1 -0
  966. package/dist/web-components-library/p-d13bba23.entry.js +2 -0
  967. package/dist/web-components-library/p-d13bba23.entry.js.map +1 -0
  968. package/dist/web-components-library/p-dcd96768.entry.js +2 -0
  969. package/dist/web-components-library/p-dcd96768.entry.js.map +1 -0
  970. package/dist/web-components-library/p-e44e5a9e.entry.js +2 -0
  971. package/dist/web-components-library/p-e44e5a9e.entry.js.map +1 -0
  972. package/dist/web-components-library/p-ec0ef7bb.entry.js +2 -0
  973. package/dist/web-components-library/p-ec0ef7bb.entry.js.map +1 -0
  974. package/dist/web-components-library/p-f1fa85fe.entry.js +2 -0
  975. package/dist/web-components-library/p-f1fa85fe.entry.js.map +1 -0
  976. package/dist/web-components-library/p-f70d4f1f.entry.js +2 -0
  977. package/dist/web-components-library/p-f70d4f1f.entry.js.map +1 -0
  978. package/dist/web-components-library/p-fb41e2bb.entry.js +2 -0
  979. package/dist/web-components-library/p-fb41e2bb.entry.js.map +1 -0
  980. package/dist/web-components-library/p-fb804d28.entry.js +2 -0
  981. package/dist/web-components-library/p-fb804d28.entry.js.map +1 -0
  982. package/dist/web-components-library/p-ffb1c8ae.entry.js +2 -0
  983. package/dist/web-components-library/p-ffb1c8ae.entry.js.map +1 -0
  984. package/dist/web-components-library/web-components-library.esm.js +2 -1
  985. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  986. package/package.json +16 -16
  987. package/readme.md +8 -19
  988. package/www/build/index.esm.js +2 -1
  989. package/www/build/index.esm.js.map +1 -0
  990. package/www/build/p-02741f3e.entry.js +2 -0
  991. package/www/build/p-02741f3e.entry.js.map +1 -0
  992. package/www/build/p-02b47708.entry.js +2 -0
  993. package/www/build/p-02b47708.entry.js.map +1 -0
  994. package/www/build/p-02e3f7db.entry.js +2 -0
  995. package/www/build/p-02e3f7db.entry.js.map +1 -0
  996. package/www/build/p-0b8313b7.entry.js +2 -0
  997. package/www/build/p-0b8313b7.entry.js.map +1 -0
  998. package/www/build/p-0f79c6e8.entry.js +2 -0
  999. package/www/build/p-0f79c6e8.entry.js.map +1 -0
  1000. package/www/build/p-168426fe.entry.js +2 -0
  1001. package/www/build/p-168426fe.entry.js.map +1 -0
  1002. package/www/build/p-1f64ba04.entry.js +8 -0
  1003. package/www/build/p-1f64ba04.entry.js.map +1 -0
  1004. package/www/build/p-29816d9c.entry.js +2 -0
  1005. package/www/build/p-29816d9c.entry.js.map +1 -0
  1006. package/www/build/p-2a00eea3.entry.js +2 -0
  1007. package/www/build/p-2a00eea3.entry.js.map +1 -0
  1008. package/www/build/p-2ffbc315.entry.js +2 -0
  1009. package/www/build/p-2ffbc315.entry.js.map +1 -0
  1010. package/www/build/p-31635e9d.entry.js +2 -0
  1011. package/www/build/p-31635e9d.entry.js.map +1 -0
  1012. package/www/build/p-338fc882.entry.js +2 -0
  1013. package/www/build/p-338fc882.entry.js.map +1 -0
  1014. package/www/build/p-40079bb3.entry.js +2 -0
  1015. package/www/build/p-40079bb3.entry.js.map +1 -0
  1016. package/www/build/p-413c743d.entry.js +2 -0
  1017. package/www/build/p-413c743d.entry.js.map +1 -0
  1018. package/www/build/p-441cb2d9.entry.js +2 -0
  1019. package/www/build/p-441cb2d9.entry.js.map +1 -0
  1020. package/www/build/p-44b8aba8.entry.js +2 -0
  1021. package/www/build/p-44b8aba8.entry.js.map +1 -0
  1022. package/www/build/p-4767a2b3.entry.js +2 -0
  1023. package/www/build/p-4767a2b3.entry.js.map +1 -0
  1024. package/www/build/p-48b9411e.entry.js +2 -0
  1025. package/www/build/p-48b9411e.entry.js.map +1 -0
  1026. package/www/build/p-52e01182.entry.js +2 -0
  1027. package/www/build/p-52e01182.entry.js.map +1 -0
  1028. package/www/build/p-56f926d7.entry.js +2 -0
  1029. package/www/build/p-56f926d7.entry.js.map +1 -0
  1030. package/www/build/p-585b7068.entry.js +2 -0
  1031. package/www/build/p-585b7068.entry.js.map +1 -0
  1032. package/www/build/p-5928e726.entry.js +2 -0
  1033. package/www/build/p-5928e726.entry.js.map +1 -0
  1034. package/www/build/p-5b72a84e.entry.js +2 -0
  1035. package/www/build/p-5b72a84e.entry.js.map +1 -0
  1036. package/www/build/p-5fc0afef.entry.js +2 -0
  1037. package/www/build/p-5fc0afef.entry.js.map +1 -0
  1038. package/www/build/p-602aad3e.entry.js +2 -0
  1039. package/www/build/p-602aad3e.entry.js.map +1 -0
  1040. package/www/build/p-65013fbe.entry.js +2 -0
  1041. package/www/build/p-65013fbe.entry.js.map +1 -0
  1042. package/www/build/p-680e12d3.entry.js +2 -0
  1043. package/www/build/p-680e12d3.entry.js.map +1 -0
  1044. package/www/build/p-6a949aa2.entry.js +2 -0
  1045. package/www/build/p-6a949aa2.entry.js.map +1 -0
  1046. package/www/build/p-6d5dac88.entry.js +2 -0
  1047. package/www/build/p-6d5dac88.entry.js.map +1 -0
  1048. package/www/build/p-6df25588.entry.js +2 -0
  1049. package/www/build/p-6df25588.entry.js.map +1 -0
  1050. package/www/build/p-720d8465.entry.js +2 -0
  1051. package/www/build/p-720d8465.entry.js.map +1 -0
  1052. package/www/build/p-7825ea5e.entry.js +2 -0
  1053. package/www/build/p-7825ea5e.entry.js.map +1 -0
  1054. package/www/build/p-7a0eb225.entry.js +2 -0
  1055. package/www/build/p-7a0eb225.entry.js.map +1 -0
  1056. package/www/build/p-7c1da49a.entry.js +2 -0
  1057. package/www/build/p-7c1da49a.entry.js.map +1 -0
  1058. package/www/build/p-7c3e6b8d.entry.js +2 -0
  1059. package/www/build/p-7c3e6b8d.entry.js.map +1 -0
  1060. package/www/build/p-7d9d5708.entry.js +2 -0
  1061. package/www/build/p-7d9d5708.entry.js.map +1 -0
  1062. package/www/build/p-813716a7.entry.js +2 -0
  1063. package/www/build/p-813716a7.entry.js.map +1 -0
  1064. package/www/build/p-8282c9d3.entry.js +2 -0
  1065. package/www/build/p-8282c9d3.entry.js.map +1 -0
  1066. package/www/build/p-829ea489.entry.js +2 -0
  1067. package/www/build/p-829ea489.entry.js.map +1 -0
  1068. package/www/build/p-832c0410.entry.js +2 -0
  1069. package/www/build/p-832c0410.entry.js.map +1 -0
  1070. package/www/build/p-83d30a6b.entry.js +2 -0
  1071. package/www/build/p-83d30a6b.entry.js.map +1 -0
  1072. package/www/build/p-8437b51b.entry.js +17 -0
  1073. package/www/build/p-8437b51b.entry.js.map +1 -0
  1074. package/www/build/p-883a78e8.entry.js +2 -0
  1075. package/www/build/p-883a78e8.entry.js.map +1 -0
  1076. package/www/build/p-8b02ad8e.entry.js +2 -0
  1077. package/www/build/p-8b02ad8e.entry.js.map +1 -0
  1078. package/www/build/p-93762440.entry.js +2 -0
  1079. package/www/build/p-93762440.entry.js.map +1 -0
  1080. package/www/build/p-9640df86.entry.js +2 -0
  1081. package/www/build/p-9640df86.entry.js.map +1 -0
  1082. package/www/build/p-9738ace8.entry.js +2 -0
  1083. package/www/build/p-9738ace8.entry.js.map +1 -0
  1084. package/www/build/p-97f87456.entry.js +2 -0
  1085. package/www/build/p-97f87456.entry.js.map +1 -0
  1086. package/www/build/p-9b4f88c3.entry.js +2 -0
  1087. package/www/build/p-9b4f88c3.entry.js.map +1 -0
  1088. package/www/build/p-9d9a2685.entry.js +2 -0
  1089. package/www/build/p-9d9a2685.entry.js.map +1 -0
  1090. package/www/build/p-9db95f97.entry.js +2 -0
  1091. package/www/build/p-9db95f97.entry.js.map +1 -0
  1092. package/www/build/p-9f86e284.entry.js +2 -0
  1093. package/www/build/p-9f86e284.entry.js.map +1 -0
  1094. package/www/build/p-AwzX9V8L.js +2 -1
  1095. package/www/build/p-AwzX9V8L.js.map +1 -0
  1096. package/www/build/p-B85MJLTf.js +2 -1
  1097. package/www/build/p-B85MJLTf.js.map +1 -0
  1098. package/www/build/p-B8WJfd4z.js +2 -1
  1099. package/www/build/p-B8WJfd4z.js.map +1 -0
  1100. package/www/build/p-BKCj6NR2.js +2 -1
  1101. package/www/build/p-BKCj6NR2.js.map +1 -0
  1102. package/www/build/p-C-uijUlb.js +6 -0
  1103. package/www/build/p-C-uijUlb.js.map +1 -0
  1104. package/www/build/p-DALRZVXG.js +7 -0
  1105. package/www/build/p-DALRZVXG.js.map +1 -0
  1106. package/www/build/p-DPdXlnVe.js +3 -2
  1107. package/www/build/p-DPdXlnVe.js.map +1 -0
  1108. package/www/build/p-Q-tWjk7P.js +2 -1
  1109. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1110. package/www/build/p-a1f1e2da.entry.js +2 -0
  1111. package/www/build/p-a1f1e2da.entry.js.map +1 -0
  1112. package/www/build/p-a3b628d2.entry.js +2 -0
  1113. package/www/build/p-a3b628d2.entry.js.map +1 -0
  1114. package/www/build/p-a5647972.entry.js +2 -0
  1115. package/www/build/p-a5647972.entry.js.map +1 -0
  1116. package/www/build/p-a97bfd11.entry.js +2 -0
  1117. package/www/build/p-a97bfd11.entry.js.map +1 -0
  1118. package/www/build/p-af91a46b.entry.js +2 -0
  1119. package/www/build/p-af91a46b.entry.js.map +1 -0
  1120. package/www/build/p-b02a920c.entry.js +2 -0
  1121. package/www/build/p-b02a920c.entry.js.map +1 -0
  1122. package/www/build/p-b3c84f65.entry.js +2 -0
  1123. package/www/build/p-b3c84f65.entry.js.map +1 -0
  1124. package/www/build/p-bba3b3ac.entry.js +2 -0
  1125. package/www/build/p-bba3b3ac.entry.js.map +1 -0
  1126. package/www/build/p-c700b3b6.entry.js +2 -0
  1127. package/www/build/p-c700b3b6.entry.js.map +1 -0
  1128. package/www/build/p-c9f7a6fd.entry.js +2 -0
  1129. package/www/build/p-c9f7a6fd.entry.js.map +1 -0
  1130. package/www/build/p-d13bba23.entry.js +2 -0
  1131. package/www/build/p-d13bba23.entry.js.map +1 -0
  1132. package/www/build/p-dcd96768.entry.js +2 -0
  1133. package/www/build/p-dcd96768.entry.js.map +1 -0
  1134. package/www/build/p-e44e5a9e.entry.js +2 -0
  1135. package/www/build/p-e44e5a9e.entry.js.map +1 -0
  1136. package/www/build/p-ec0ef7bb.entry.js +2 -0
  1137. package/www/build/p-ec0ef7bb.entry.js.map +1 -0
  1138. package/www/build/p-f1fa85fe.entry.js +2 -0
  1139. package/www/build/p-f1fa85fe.entry.js.map +1 -0
  1140. package/www/build/p-f70d4f1f.entry.js +2 -0
  1141. package/www/build/p-f70d4f1f.entry.js.map +1 -0
  1142. package/www/build/p-f78b0ee3.js +2 -0
  1143. package/www/build/p-fb41e2bb.entry.js +2 -0
  1144. package/www/build/p-fb41e2bb.entry.js.map +1 -0
  1145. package/www/build/p-fb804d28.entry.js +2 -0
  1146. package/www/build/p-fb804d28.entry.js.map +1 -0
  1147. package/www/build/p-ffb1c8ae.entry.js +2 -0
  1148. package/www/build/p-ffb1c8ae.entry.js.map +1 -0
  1149. package/www/build/web-components-library.esm.js +2 -1
  1150. package/www/build/web-components-library.esm.js.map +1 -0
  1151. package/www/index.html +1 -1
  1152. package/dist/cjs/utils-BY7xrW7W.js +0 -265
  1153. package/dist/collection/__mocks__/fileMock.js +0 -1
  1154. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  1155. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  1156. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  1157. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  1158. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  1159. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  1160. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  1161. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  1162. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  1163. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  1164. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  1165. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  1166. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  1167. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  1168. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  1169. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  1170. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  1171. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  1172. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  1173. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  1174. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  1175. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  1176. package/dist/collection/components/z-app-header/index.stories.js +0 -318
  1177. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  1178. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  1179. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  1180. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  1181. package/dist/collection/components/z-button/index.stories.js +0 -103
  1182. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  1183. package/dist/collection/components/z-card/index.stories.js +0 -302
  1184. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  1185. package/dist/collection/components/z-chip/index.stories.js +0 -69
  1186. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  1187. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  1188. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  1189. package/dist/collection/components/z-divider/index.stories.js +0 -44
  1190. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  1191. package/dist/collection/components/z-icon/index.stories.js +0 -70
  1192. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  1193. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  1194. package/dist/collection/components/z-input/index.stories.js +0 -293
  1195. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  1196. package/dist/collection/components/z-logo/index.stories.js +0 -25
  1197. package/dist/collection/components/z-menu/index.stories.js +0 -122
  1198. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  1199. package/dist/collection/components/z-modal/index.stories.js +0 -201
  1200. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  1201. package/dist/collection/components/z-notification/index.stories.js +0 -174
  1202. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  1203. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  1204. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  1205. package/dist/collection/components/z-popover/index.stories.js +0 -282
  1206. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  1207. package/dist/collection/components/z-searchbar/index.stories.js +0 -332
  1208. package/dist/collection/components/z-select/index.stories.js +0 -359
  1209. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  1210. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  1211. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  1212. package/dist/collection/components/z-tag/index.stories.js +0 -63
  1213. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  1214. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  1215. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  1216. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  1217. package/dist/collection/components/z-tool/index.stories.js +0 -146
  1218. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  1219. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  1220. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  1221. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  1222. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  1223. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  1224. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  1225. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  1226. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  1227. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  1228. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  1229. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  1230. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  1231. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  1232. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  1233. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  1234. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  1235. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  1236. package/dist/esm/utils-BEzZQwOB.js +0 -249
  1237. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  1238. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  1239. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  1240. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  1241. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  1242. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  1243. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  1244. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  1245. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  1246. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  1247. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  1248. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  1249. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  1250. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  1251. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  1252. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  1253. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  1254. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  1255. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  1256. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  1257. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  1258. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  1259. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  1260. package/dist/types/components/z-app-header/index.stories.d.ts +0 -128
  1261. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  1262. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  1263. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  1264. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  1265. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  1266. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  1267. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  1268. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  1269. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  1270. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  1271. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  1272. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  1273. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  1274. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  1275. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  1276. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  1277. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  1278. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  1279. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  1280. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  1281. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  1282. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  1283. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  1284. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  1285. package/dist/types/components/z-notification/index.stories.d.ts +0 -77
  1286. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  1287. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  1288. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  1289. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  1290. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  1291. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -163
  1292. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  1293. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  1294. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  1295. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  1296. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  1297. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  1298. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  1299. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  1300. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  1301. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  1302. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  1303. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  1304. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  1305. package/dist/web-components-library/p-0105149a.entry.js +0 -1
  1306. package/dist/web-components-library/p-087956fa.entry.js +0 -1
  1307. package/dist/web-components-library/p-10e5e16e.entry.js +0 -1
  1308. package/dist/web-components-library/p-13e7f751.entry.js +0 -1
  1309. package/dist/web-components-library/p-1580db58.entry.js +0 -1
  1310. package/dist/web-components-library/p-1993b0ad.entry.js +0 -1
  1311. package/dist/web-components-library/p-1a95491d.entry.js +0 -1
  1312. package/dist/web-components-library/p-20d94cce.entry.js +0 -1
  1313. package/dist/web-components-library/p-21c85e04.entry.js +0 -1
  1314. package/dist/web-components-library/p-23b46642.entry.js +0 -1
  1315. package/dist/web-components-library/p-271dfd9c.entry.js +0 -1
  1316. package/dist/web-components-library/p-29dde955.entry.js +0 -1
  1317. package/dist/web-components-library/p-2abf765d.entry.js +0 -1
  1318. package/dist/web-components-library/p-2d4c01c3.entry.js +0 -1
  1319. package/dist/web-components-library/p-2dabe353.entry.js +0 -1
  1320. package/dist/web-components-library/p-2df6d169.entry.js +0 -1
  1321. package/dist/web-components-library/p-2ef82e17.entry.js +0 -1
  1322. package/dist/web-components-library/p-313fc91d.entry.js +0 -1
  1323. package/dist/web-components-library/p-324933f6.entry.js +0 -1
  1324. package/dist/web-components-library/p-3c53e451.entry.js +0 -1
  1325. package/dist/web-components-library/p-41584e90.entry.js +0 -1
  1326. package/dist/web-components-library/p-4d1b3d16.entry.js +0 -1
  1327. package/dist/web-components-library/p-50e10a10.entry.js +0 -1
  1328. package/dist/web-components-library/p-52899754.entry.js +0 -1
  1329. package/dist/web-components-library/p-53670be4.entry.js +0 -1
  1330. package/dist/web-components-library/p-5a05dc1e.entry.js +0 -1
  1331. package/dist/web-components-library/p-5d20fc3d.entry.js +0 -1
  1332. package/dist/web-components-library/p-622466f9.entry.js +0 -1
  1333. package/dist/web-components-library/p-62d2247e.entry.js +0 -1
  1334. package/dist/web-components-library/p-64c025f6.entry.js +0 -1
  1335. package/dist/web-components-library/p-658f022d.entry.js +0 -1
  1336. package/dist/web-components-library/p-7226f07a.entry.js +0 -1
  1337. package/dist/web-components-library/p-7371a543.entry.js +0 -2
  1338. package/dist/web-components-library/p-77bf39a4.entry.js +0 -1
  1339. package/dist/web-components-library/p-788eaac7.entry.js +0 -1
  1340. package/dist/web-components-library/p-7bf7539a.entry.js +0 -1
  1341. package/dist/web-components-library/p-81eb43fd.entry.js +0 -1
  1342. package/dist/web-components-library/p-88a3ba7c.entry.js +0 -1
  1343. package/dist/web-components-library/p-89daaeb5.entry.js +0 -1
  1344. package/dist/web-components-library/p-8a33c769.entry.js +0 -1
  1345. package/dist/web-components-library/p-8d7e2e16.entry.js +0 -1
  1346. package/dist/web-components-library/p-8de064a4.entry.js +0 -1
  1347. package/dist/web-components-library/p-8eb8b5be.entry.js +0 -1
  1348. package/dist/web-components-library/p-8f4a04aa.entry.js +0 -1
  1349. package/dist/web-components-library/p-B0bOjMSb.js +0 -1
  1350. package/dist/web-components-library/p-a4f673f8.entry.js +0 -1
  1351. package/dist/web-components-library/p-aa4fc3d3.entry.js +0 -1
  1352. package/dist/web-components-library/p-aa72d766.entry.js +0 -1
  1353. package/dist/web-components-library/p-ad2cd7fc.entry.js +0 -1
  1354. package/dist/web-components-library/p-b01ff8e6.entry.js +0 -1
  1355. package/dist/web-components-library/p-b6223d7e.entry.js +0 -1
  1356. package/dist/web-components-library/p-b851f20b.entry.js +0 -1
  1357. package/dist/web-components-library/p-b9343431.entry.js +0 -1
  1358. package/dist/web-components-library/p-be354b22.entry.js +0 -1
  1359. package/dist/web-components-library/p-c42ddd93.entry.js +0 -1
  1360. package/dist/web-components-library/p-c4e7bd16.entry.js +0 -1
  1361. package/dist/web-components-library/p-c643f3ff.entry.js +0 -1
  1362. package/dist/web-components-library/p-c944a943.entry.js +0 -1
  1363. package/dist/web-components-library/p-cd33f4b1.entry.js +0 -1
  1364. package/dist/web-components-library/p-cdd88182.entry.js +0 -16
  1365. package/dist/web-components-library/p-ce3bbaf2.entry.js +0 -1
  1366. package/dist/web-components-library/p-cf403b75.entry.js +0 -1
  1367. package/dist/web-components-library/p-d121122f.entry.js +0 -1
  1368. package/dist/web-components-library/p-d3053434.entry.js +0 -1
  1369. package/dist/web-components-library/p-d63665c1.entry.js +0 -1
  1370. package/dist/web-components-library/p-da70be9b.entry.js +0 -1
  1371. package/dist/web-components-library/p-dabccb20.entry.js +0 -1
  1372. package/dist/web-components-library/p-dc5ab2cc.entry.js +0 -1
  1373. package/dist/web-components-library/p-dfd43710.entry.js +0 -1
  1374. package/dist/web-components-library/p-e1d0a6e3.entry.js +0 -1
  1375. package/dist/web-components-library/p-ec4940ce.entry.js +0 -1
  1376. package/dist/web-components-library/p-ef5018bb.entry.js +0 -1
  1377. package/www/build/p-0105149a.entry.js +0 -1
  1378. package/www/build/p-087956fa.entry.js +0 -1
  1379. package/www/build/p-10e5e16e.entry.js +0 -1
  1380. package/www/build/p-13e7f751.entry.js +0 -1
  1381. package/www/build/p-1580db58.entry.js +0 -1
  1382. package/www/build/p-1993b0ad.entry.js +0 -1
  1383. package/www/build/p-1a95491d.entry.js +0 -1
  1384. package/www/build/p-20d94cce.entry.js +0 -1
  1385. package/www/build/p-21c85e04.entry.js +0 -1
  1386. package/www/build/p-23b46642.entry.js +0 -1
  1387. package/www/build/p-271dfd9c.entry.js +0 -1
  1388. package/www/build/p-29dde955.entry.js +0 -1
  1389. package/www/build/p-2abf765d.entry.js +0 -1
  1390. package/www/build/p-2d4c01c3.entry.js +0 -1
  1391. package/www/build/p-2dabe353.entry.js +0 -1
  1392. package/www/build/p-2df6d169.entry.js +0 -1
  1393. package/www/build/p-2ef82e17.entry.js +0 -1
  1394. package/www/build/p-313fc91d.entry.js +0 -1
  1395. package/www/build/p-324933f6.entry.js +0 -1
  1396. package/www/build/p-3c53e451.entry.js +0 -1
  1397. package/www/build/p-41584e90.entry.js +0 -1
  1398. package/www/build/p-4d1b3d16.entry.js +0 -1
  1399. package/www/build/p-50e10a10.entry.js +0 -1
  1400. package/www/build/p-52899754.entry.js +0 -1
  1401. package/www/build/p-53670be4.entry.js +0 -1
  1402. package/www/build/p-5a05dc1e.entry.js +0 -1
  1403. package/www/build/p-5d20fc3d.entry.js +0 -1
  1404. package/www/build/p-622466f9.entry.js +0 -1
  1405. package/www/build/p-62d2247e.entry.js +0 -1
  1406. package/www/build/p-64c025f6.entry.js +0 -1
  1407. package/www/build/p-658f022d.entry.js +0 -1
  1408. package/www/build/p-7226f07a.entry.js +0 -1
  1409. package/www/build/p-7371a543.entry.js +0 -2
  1410. package/www/build/p-77bf39a4.entry.js +0 -1
  1411. package/www/build/p-788eaac7.entry.js +0 -1
  1412. package/www/build/p-7bf7539a.entry.js +0 -1
  1413. package/www/build/p-81eb43fd.entry.js +0 -1
  1414. package/www/build/p-88a3ba7c.entry.js +0 -1
  1415. package/www/build/p-89daaeb5.entry.js +0 -1
  1416. package/www/build/p-8a33c769.entry.js +0 -1
  1417. package/www/build/p-8d7e2e16.entry.js +0 -1
  1418. package/www/build/p-8de064a4.entry.js +0 -1
  1419. package/www/build/p-8eb8b5be.entry.js +0 -1
  1420. package/www/build/p-8f4a04aa.entry.js +0 -1
  1421. package/www/build/p-B0bOjMSb.js +0 -1
  1422. package/www/build/p-a4f673f8.entry.js +0 -1
  1423. package/www/build/p-aa4fc3d3.entry.js +0 -1
  1424. package/www/build/p-aa72d766.entry.js +0 -1
  1425. package/www/build/p-ad2cd7fc.entry.js +0 -1
  1426. package/www/build/p-b01ff8e6.entry.js +0 -1
  1427. package/www/build/p-b6223d7e.entry.js +0 -1
  1428. package/www/build/p-b851f20b.entry.js +0 -1
  1429. package/www/build/p-b9343431.entry.js +0 -1
  1430. package/www/build/p-be354b22.entry.js +0 -1
  1431. package/www/build/p-c42ddd93.entry.js +0 -1
  1432. package/www/build/p-c4e7bd16.entry.js +0 -1
  1433. package/www/build/p-c643f3ff.entry.js +0 -1
  1434. package/www/build/p-c944a943.entry.js +0 -1
  1435. package/www/build/p-cd33f4b1.entry.js +0 -1
  1436. package/www/build/p-cdd88182.entry.js +0 -16
  1437. package/www/build/p-ce3bbaf2.entry.js +0 -1
  1438. package/www/build/p-cf403b75.entry.js +0 -1
  1439. package/www/build/p-d121122f.entry.js +0 -1
  1440. package/www/build/p-d3053434.entry.js +0 -1
  1441. package/www/build/p-d63665c1.entry.js +0 -1
  1442. package/www/build/p-da70be9b.entry.js +0 -1
  1443. package/www/build/p-dabccb20.entry.js +0 -1
  1444. package/www/build/p-dc5ab2cc.entry.js +0 -1
  1445. package/www/build/p-dfd43710.entry.js +0 -1
  1446. package/www/build/p-e1d0a6e3.entry.js +0 -1
  1447. package/www/build/p-ec4940ce.entry.js +0 -1
  1448. package/www/build/p-ef5018bb.entry.js +0 -1
  1449. package/www/build/p-f6f0b188.js +0 -1
@@ -0,0 +1 @@
1
+ {"file":"z-logo.cjs.entry.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,g5IAAg5I,CAAC;;MCO75I,KAAK,GAAA,MAAA;;;;IAyBhB,MAAM,GAAA;QACJ,MAAM,KAAK,GAAG,EAAE;AAEhB,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE;AACd,YAAA,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAA,EAAG,IAAI,CAAC,KAAK,IAAI;;AAGzD,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;AACf,YAAA,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAA,EAAG,IAAI,CAAC,MAAM,IAAI;;QAG5D,QACEA,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,EAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,EAAC,EAAA,EAEjC,IAAI,CAAC,IAAI,IACRD,OAAA,CAAA,GAAA,EAAA,EACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,WAAW,GAAG,QAAQ,GAAG,OAAO,EAAA,EAE7CA,OAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAA,CAAI,CACzB,KAEJA,OAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAA,CAAI,CAC5B,CACI;;;;;;;","names":["h","Host"],"sources":["src/components/z-logo/styles.css?tag=z-logo&encapsulation=shadow","src/components/z-logo/index.tsx"],"sourcesContent":[":host {\n display: inline-block;\n width: 255px;\n height: 64px;\n vertical-align: top;\n}\n\nimg {\n display: block;\n width: 100%;\n height: 100%;\n margin: auto;\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n\na {\n display: block;\n width: 100%;\n height: 100%;\n}\n\na:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(.mobile) {\n width: 31px;\n height: 40px;\n}\n\n:host(.mobile) img {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n","import {Component, ComponentInterface, Host, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-logo\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZLogo implements ComponentInterface {\n /** image width */\n @Prop()\n width?: number;\n\n /** image height */\n @Prop()\n height?: number;\n\n /** alternative image text */\n @Prop()\n imageAlt?: string;\n\n /** link url (optional) */\n @Prop()\n link?: string;\n\n /** link target: true means _blank, false means _self */\n @Prop()\n targetBlank?: boolean;\n\n /** if true, the mobile logo is displayed, otherwise the desktop one */\n @Prop()\n mobileLogo?: boolean;\n\n render(): HTMLZLogoElement {\n const style = {};\n\n if (this.width) {\n style[\"width\"] = style[\"max-width\"] = `${this.width}px`;\n }\n\n if (this.height) {\n style[\"height\"] = style[\"max-height\"] = `${this.height}px`;\n }\n\n return (\n <Host\n style={style}\n class={{mobile: !!this.mobileLogo}}\n >\n {this.link ? (\n <a\n href={this.link}\n target={this.targetBlank ? \"_blank\" : \"_self\"}\n >\n <img alt={this.imageAlt} />\n </a>\n ) : (\n <img alt={this.imageAlt} />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-D_S5lGcb.js');
4
4
 
5
- const stylesCss = () => `:host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);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)}`;
5
+ 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)}`;
6
6
 
7
7
  const ZMenuDeprecated = class {
8
8
  toggle() {
@@ -110,7 +110,7 @@ const ZMenuDeprecated = class {
110
110
  return (index.h("div", { class: "menu-label" }, index.h("div", { class: "menu-label-content" }, index.h("slot", { onSlotchange: this.onLabelSlotChange }))));
111
111
  }
112
112
  render() {
113
- return (index.h(index.Host, { key: 'c0cc18338db770e7b369bce7e469445219326566' }, this.renderMenuLabel(), this.hasContent && (index.h("div", { key: 'c895c377c1cc572c18bbc56e9cb8c513346d1ae4', class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (index.h("header", { key: '17df894168c27a4ec0599d10bb885761b5eded54', class: "header" }, index.h("slot", { key: 'd50f55ef51bdf388a75bc8739c29a58f32c6b316', name: "header", onSlotchange: this.checkContent }))), index.h("div", { key: '948157a99d60c696fa97b8b904366dc0992e87da', class: "items", role: "menu" }, index.h("slot", { key: 'e93150d2a5e7c1e33d7cfe8f297e9990e0d5c01e', name: "item", onSlotchange: this.onItemsChange }))))));
113
+ return (index.h(index.Host, { key: 'dde3e828c6617646ed848e91c53dc624fc23bc2d' }, this.renderMenuLabel(), this.hasContent && (index.h("div", { key: '9888a27020733770e87e87f2ac6193dc0430e36b', class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (index.h("header", { key: '09a21728b3cfc859dbdf59b2441326a610c2869f', class: "header" }, index.h("slot", { key: '72bbb4073b1e76569770dc7089526e9f9b055089', name: "header", onSlotchange: this.checkContent }))), index.h("div", { key: 'f53e86dea26861a62f3e924e67f14c97e42f7861', class: "items", role: "menu" }, index.h("slot", { key: '2b6e230e79f472828b85ba40281c9781a14dcef6', name: "item", onSlotchange: this.onItemsChange }))))));
114
114
  }
115
115
  get hostElement() { return index.getElement(this); }
116
116
  static get watchers() { return {
@@ -122,3 +122,6 @@ const ZMenuDeprecated = class {
122
122
  ZMenuDeprecated.style = stylesCss();
123
123
 
124
124
  exports.z_menu_deprecated = ZMenuDeprecated;
125
+ //# sourceMappingURL=z-menu-deprecated.entry.cjs.js.map
126
+
127
+ //# sourceMappingURL=z-menu-deprecated.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-menu-deprecated.cjs.entry.js","mappings":";;;;AAAA,MAAM,SAAS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oBAAoB,EAAA,EAC7BA,OAAA,CAAA,MAAA,EAAA,EAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,EAAA,CAAS,CAC/C,CACF;;IAIV,MAAM,GAAA;AACJ,QAAA,QACEA,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACF,IAAI,CAAC,eAAe,EAAE,EAEtB,IAAI,CAAC,UAAU,KACdD,kEACE,KAAK,EAAC,SAAS,EACf,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,EAAA,EAE/B,IAAI,CAAC,SAAS,KACbA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,KAAK,EAAC,QAAQ,EAAA,EACpBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,EAAA,CACzB,CACD,CACV,EAEDA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EAAA,EAEXA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,GAC1B,CACJ,CACF,CACP,CACI;;;;;;;;;;;;;","names":["h","Host"],"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"],"version":3}
@@ -48,10 +48,13 @@ const ZMenuSectionDeprecated = class {
48
48
  this.checkContent();
49
49
  }
50
50
  render() {
51
- return (index.h(index.Host, { key: '9c0afdf0decad8a1eb51ba90c1fa1cb3bcbfa321', role: "menu", open: this.open }, index.h("button", { key: '79ddfb8c44ef6a47fad56cf2f2a1c5ea6ee4bd5a', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, index.h("slot", { key: '3027b6975681544c8e2fef1c6f59be689664e26e', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && index.h("z-icon", { key: '9de3a8659409445f8bf781498ecc1dd2d2691d6c', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (index.h("div", { key: 'd5aa04822af0e9e9c07b6ee72bde0b875d2bafbb', class: "items" }, index.h("slot", { key: 'ca7eaac55e80903beb3d49373bbb28ca24f4e034', name: "item", onSlotchange: this.checkContent.bind(this) })))));
51
+ return (index.h(index.Host, { key: 'a65fd5af1f2b3b6c9d21c30336b806395624af59', role: "menu", open: this.open }, index.h("button", { key: '88460e785ca428d4a40f4dc9bdd56194a2b64d3e', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, index.h("slot", { key: 'b0198e42f9819b2e9c622d4672510d7a9584a1b1', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && index.h("z-icon", { key: '6b6f41288e53ef83b6817eda49e1a77135552345', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (index.h("div", { key: '7721c370a48044d60749f366a718ca266d9afc73', class: "items" }, index.h("slot", { key: '1738da8320d0931abaf8a7dd854456e28bba9781', name: "item", onSlotchange: this.checkContent.bind(this) })))));
52
52
  }
53
53
  get hostElement() { return index.getElement(this); }
54
54
  };
55
55
  ZMenuSectionDeprecated.style = stylesCss();
56
56
 
57
57
  exports.z_menu_section_deprecated = ZMenuSectionDeprecated;
58
+ //# sourceMappingURL=z-menu-section-deprecated.entry.cjs.js.map
59
+
60
+ //# sourceMappingURL=z-menu-section-deprecated.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-menu-section-deprecated.cjs.entry.js","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,IAAI,EAAE;;aACb;AACL,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;;;;AAMtB,IAAA,WAAW,CAAC,EAAc,EAAA;AACxB,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW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AAI,KACRA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,OAAO,EAAA,EAChBA,OAAA,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;;;;;;;;","names":["h","Host"],"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"],"version":3}
@@ -177,7 +177,7 @@ const ZMenuSection = class {
177
177
  this.onItemsChange();
178
178
  }
179
179
  render() {
180
- return (index$1.h(index$1.Host, { key: '4e6388d5919ca9010c78ef35df6b1c0b807d2dd6', open: this.open }, index$1.h("button", { key: '4093e9a7ce5cb5cf63ca7012bb44c7b49b638e90', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, index$1.h("slot", { key: '0c88383d5be4c81aee5a78f89e4706a6b167dccb', onSlotchange: this.onLabelSlotChange }), this.hasItems && index$1.h("z-icon", { key: 'd32c9dc28048a6d7441075da41cb2f255e5bdc73', name: this.open ? "chevron-up" : "chevron-down" })), index$1.h("div", { key: '0c24a7122314391262e640b440f87dce632eb2f3', class: "items", role: "menu", hidden: !this.open }, index$1.h("slot", { key: 'fe79aa30aaa7d3a92621c6725e4d0ddca604726e', name: "section", onSlotchange: this.onItemsChange }))));
180
+ return (index$1.h(index$1.Host, { key: 'e2584623ee4db0d3b11804dff89a93afa9b2761b', open: this.open }, index$1.h("button", { key: '21c6cf5558e6a719e56d2af7bbfef31044030394', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, index$1.h("slot", { key: '59d3f4a1306bc8639a2cdddc2be44bd6c49bdd1b', onSlotchange: this.onLabelSlotChange }), this.hasItems && index$1.h("z-icon", { key: '3448e73ef71fd89e861add9bbb6f020d8e873117', name: this.open ? "chevron-up" : "chevron-down" })), index$1.h("div", { key: '93304aead086952a3bf4235216877289b882971d', class: "items", role: "menu", hidden: !this.open }, index$1.h("slot", { key: 'c0258eaedb4fd8b9296570da1eda75108d9c0af0', name: "section", onSlotchange: this.onItemsChange }))));
181
181
  }
182
182
  get host() { return index$1.getElement(this); }
183
183
  static get watchers() { return {
@@ -192,3 +192,6 @@ const ZMenuSection = class {
192
192
  ZMenuSection.style = stylesCss();
193
193
 
194
194
  exports.z_menu_section = ZMenuSection;
195
+ //# sourceMappingURL=z-menu-section.entry.cjs.js.map
196
+
197
+ //# sourceMappingURL=z-menu-section.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-menu-section.cjs.entry.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,6mEAA6mE,CAAC;;MC0B1nE,YAAY,GAAA,MAAA;AAkCvB,IAAA,IAAY,aAAa,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iBAAiB,GAAA;QACf,IAAI,CAAC,aAAa,EAAE;;IAGtB,MAAM,GAAA;AACJ,QAAA,QACEC,UAACC,YAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAA,EACnBD,SAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,EAC9B,KAAK,EAAC,OAAO,EAAA,eAAA,EACE,CAAA,EAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAA,CAAE,EAAA,eAAA,EACpB,CAAA,EAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA,CAAE,EAC/B,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,SAAS,EAAE,IAAI,CAAC,cAAc,EAAA,EAE9BA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,EAAA,CAAI,EAC7C,IAAI,CAAC,QAAQ,IAAIA,uEAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY,GAAG,cAAc,GAAI,CACtE,EACTA,SAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,EAAA,EAElBA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,SAAS,EACd,YAAY,EAAE,IAAI,CAAC,aAAa,EAAA,CAChC,CACE,CACD;;;;;;;;;;;;;;;;","names":["KeyboardCode","h","Host"],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: 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.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-primary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\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::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.5;\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[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"]:active),\n::slotted([slot=\"section\"][active]),\n::slotted([slot=\"section\"][data-active]) {\n 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 Method,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot section - Single entry of the menu section. Set the same slot name to different elements to put many of them. Add the `data-active` attribute to a slotted element to highlight it (`active` also works but `data-active` is preferable).\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection implements ComponentInterface {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\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 label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\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 private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n if (!this.label) {\n return;\n }\n\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index$1 = require('./index-D_S5lGcb.js');
4
4
  var index = require('./index-wGaSHN1_.js');
5
- var utils = require('./utils-BY7xrW7W.js');
5
+ var utils = require('./utils-DRCgbM7t.js');
6
6
  require('./breakpoints-B7vFm-3T.js');
7
7
 
8
8
  const stylesCss = () => `:host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;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{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-primary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:calc(var(--border-size-small) * -1);left:0;width:100%;height:var(--border-size-large);background-color:var(--color-primary01);content:""}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::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]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 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.5}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot="item"]:last-child){border-bottom:0}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active),.items>::slotted([slot="item"][active]),.items>::slotted([slot="item"][data-active]){border-color:var(--color-primary01);font-weight:var(--font-bd)}`;
@@ -329,3 +329,6 @@ const ZMenu = class {
329
329
  ZMenu.style = stylesCss();
330
330
 
331
331
  exports.z_menu = ZMenu;
332
+ //# sourceMappingURL=z-menu.entry.cjs.js.map
333
+
334
+ //# sourceMappingURL=z-menu.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-menu.cjs.entry.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,suHAAsuH,CAAC;;ACiBhwH,MAAM,cAAc,GAAG,CAAC,EAAyC,KAC/D,CAAA,EAAE,KAAA,IAAA,IAAF,EAAE,KAAA,MAAA,GAAA,MAAA,GAAF,EAAE,CAAE,OAAO,MAAK,gBAAgB;MAYrB,KAAK,GAAA,MAAA;AAwDhB,IAAA,IAAY,aAAa,GAAA;AACvB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,MAAM,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,KAAK,CAAC,GAAG,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC;;IAGlG,MAAM,GAAA;AACZ,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB;;AAGF,QAAA,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI;;AAGxB;;;AAGG;AACK,IAAA,iBAAiB,CAAC,EAAS,EAAA;QACjC,MAAM,YAAY,GAAI,EAAE,CAAC,MAA0B,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAgB;QACxF,YAAY,CAAC,OAAO,CAAC,IAAI,GAAG,YAAY,KAAA,IAAA,IAAZ,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZ,YAAY,CAAE,WAAW;QACrD,IAAI,CAAC,iBAAiB,EAAE;;AAG1B;;;AAGG;IACK,MAAM,CAAC,IAAI,GAAG,KAAK,EAAA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AK,EAAC,SAAS,EACf,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,EAAA,EAE/B,IAAI,CAAC,SAAS,KACbA,SAAA,CAAA,QAAA,EAAA,EAAQ,KAAK,EAAC,QAAQ,EAAA,EACpBA,SAAA,CAAA,MAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,EAAA,CAC/B,CACK,CACV,EAEDA,SAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EAAA,EAEXA,SAAA,CAAA,MAAA,EAAA,EACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,aAAa,EAAA,CAChC,CACE,CACF,CACD;;;;;;;;;;;;;;;;","names":["KeyboardCode","containsElement","h","Host"],"sources":["src/components/z-menu/styles.css?tag=z-menu&encapsulation=shadow","src/components/z-menu/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n outline: none;\n}\n\n:host {\n /**\n * @prop --z-menu-label-color: Color of the label's text.\n */\n --z-menu-label-color: ;\n\n position: relative;\n display: inline-flex;\n height: fit-content;\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 position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 0;\n border: 0;\n border-bottom: var(--border-size-large) solid transparent;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host(:is([active], [open])) .menu-label ::slotted(*),\n.menu-label:focus-visible ::slotted(*),\ndiv.menu-label:focus-within ::slotted(*) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n\n:host([vertical-context]) .menu-label {\n padding: var(--space-unit) 0;\n border-width: var(--border-size-small);\n border-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label,\n.menu-label:hover,\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n border-color: var(--color-primary01);\n}\n\n:host([vertical-context]:is([active], [open])) .menu-label::after,\n:host([vertical-context]) .menu-label:hover::after,\n:host([vertical-context]) .menu-label:focus-visible::after,\n:host([vertical-context]) div.menu-label:focus-within::after {\n position: absolute;\n bottom: calc(var(--border-size-small) * -1);\n left: 0;\n width: 100%;\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n content: \"\";\n}\n\n:host([vertical-context]) .menu-label ::slotted(*) {\n padding: 0;\n}\n\n.menu-label ::slotted(*) {\n display: inline-flex;\n width: 100%;\n min-width: fit-content;\n padding-bottom: 2px;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color, var(--color-default-text));\n font-family: var(--font-family-sans);\n font-size: var(--font-size-3);\n font-weight: inherit;\n line-height: 1.5;\n white-space: nowrap;\n}\n\n.menu-label z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: var(--color-default-icon);\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]:not([slot]))::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]:not([slot]))::after {\n display: none;\n }\n}\n\n::slotted([data-text]:not([slot])) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]:not([vertical-context])) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: 0 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.5;\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: var(--space-unit) 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n}\n\n:host(:not([vertical-context])) .items > ::slotted([slot=\"item\"]:last-child) {\n border-bottom: 0;\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active),\n.items > ::slotted([slot=\"item\"][active]),\n.items > ::slotted([slot=\"item\"][data-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 Method,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst isZMenuSection = (el: HTMLElement | HTMLZMenuSectionElement): el is HTMLZMenuSectionElement =>\n el?.tagName === \"Z-MENU-SECTION\";\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. Set the `data-active` HTML attribute on the element to highlight it (`active` also works but `data-active` is preferable). Use `z-menu-section` for submenus.\n */\n@Component({\n tag: \"z-menu\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenu implements ComponentInterface {\n @Element() host: HTMLZMenuElement;\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? = true;\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 (usually 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 /**\n * Tabindex value to set on the menu label.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZAppHeader).\n */\n @Prop({mutable: true})\n htmlTabindex = -1;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\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 labelButton: HTMLButtonElement;\n\n private content: HTMLElement;\n\n private items: (HTMLElement | HTMLZMenuSectionElement)[] = [];\n\n /** Animation frame request id. */\n private raf: number;\n\n private get focusableItem(): HTMLZMenuSectionElement | HTMLElement | null {\n return this.items.find((item) => (isZMenuSection(item) ? item.htmlTabindex === 0 : item.tabIndex === 0));\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\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 this.setLabelA11yAttrs();\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.floating) {\n return;\n }\n\n if (this.content && this.hasContent) {\n const {style} = this.content;\n const {left} = this.host.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.host.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.host.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n private setItemTabindex(item: HTMLElement | HTMLZMenuSectionElement, tabIndex: number): void {\n if (isZMenuSection(item)) {\n item.htmlTabindex = tabIndex;\n } else {\n item.tabIndex = tabIndex;\n }\n }\n\n /**\n * Set `menuitem` role to all menu items (ZMenuSection items already have it).\n * Set -1 to the tabindex of the items and 0 to the first one.\n */\n private setItemsA11yAttrs(): void {\n this.items.forEach((item, index) => {\n const tabindex = index === 0 ? 0 : -1;\n this.setItemTabindex(item, tabindex);\n if (!isZMenuSection(item)) {\n item.setAttribute(\"role\", \"menuitem\");\n }\n });\n }\n\n private onItemsChange(): void {\n this.checkContent();\n this.items = Array.from(this.host.children).filter(({slot}) => slot === \"item\") as HTMLElement[];\n this.setItemsA11yAttrs();\n this.items.forEach((item) => {\n if (!isZMenuSection(item)) {\n item.dataset.text = item.textContent;\n }\n });\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n * If the receiver is a ZMenuSection and it's open, focus its first focusable item.\n */\n private moveFocus(\n receiver: HTMLElement | HTMLZMenuSectionElement,\n current?: HTMLElement | HTMLZMenuSectionElement\n ): void {\n if (isZMenuSection(receiver)) {\n receiver.setFocus();\n } else {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n }\n if (!current) {\n return;\n }\n\n this.setItemTabindex(current, -1);\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.moveFocus(this.items[0]);\n }\n\n return;\n }\n\n if (!this.verticalContext) {\n return;\n }\n\n if (ev.key === KeyboardCode.ARROW_RIGHT && !this.open) {\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.moveFocus(this.items[0]);\n }\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n const label = this.hasContent ? this.labelButton : (this.host.firstElementChild as HTMLElement);\n label.focus();\n }\n\n /**\n * Focus the last item.\n */\n @Method()\n async focusLastItem(): Promise<void> {\n const lastItem = this.items[this.items.length - 1];\n if (isZMenuSection(lastItem) && lastItem.open) {\n lastItem.focusLastItem();\n\n return;\n }\n\n this.moveFocus(lastItem);\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (!this.open) {\n cancelAnimationFrame(this.raf);\n this.closed.emit();\n this.items.forEach((item) => {\n if (isZMenuSection(item) && item.open) {\n item.open = false;\n }\n });\n\n return;\n }\n\n this.setItemsA11yAttrs();\n this.opened.emit();\n if (this.floating) {\n this.reflow(true);\n }\n }\n\n @Watch(\"htmlTabindex\")\n setLabelA11yAttrs(): void {\n if (this.hasContent && this.labelButton) {\n this.labelButton.tabIndex = this.htmlTabindex;\n\n return;\n }\n\n const slottedLabel = this.host.firstElementChild as HTMLElement;\n slottedLabel.role = \"menuitem\";\n slottedLabel.tabIndex = this.htmlTabindex;\n }\n\n /**\n * Set tabindex to -1 to all siblings of the clicked item.\n */\n @Listen(\"click\", {target: \"document\"})\n onItemClick(ev: MouseEvent): void {\n const clickedItem = this.items.find((item) => containsElement(item, ev.target as HTMLElement));\n if (clickedItem) {\n this.items.forEach((item) => {\n if (item === clickedItem) {\n return;\n }\n\n if (isZMenuSection(item)) {\n item.htmlTabindex = -1;\n } else {\n item.tabIndex = -1;\n }\n });\n }\n }\n\n @Listen(\"keydown\")\n onKeyDown(ev: KeyboardEvent): void {\n if (!this.hasContent) {\n return;\n }\n\n switch (ev.key) {\n case KeyboardCode.ESC:\n if (!this.open) {\n break;\n }\n ev.stopPropagation();\n ev.preventDefault();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (document.activeElement === this.host) {\n if (this.verticalContext && !this.open) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[0]);\n break;\n }\n\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (this.verticalContext && currentIndex === this.items.length - 1) {\n // navigation is going to leave this menu. restore tabindex to the label and let the parent handle it\n this.setItemTabindex(this.items[currentIndex], -1);\n this.htmlTabindex = 0;\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const receiver = this.items[currentIndex + 1];\n // if the last item is already focused, navigate to the first one\n this.moveFocus(receiver ?? this.items[0], this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (document.activeElement === this.host) {\n if (this.verticalContext) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n // open the menu and focus the last item\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[this.items.length - 1], this.focusableItem);\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (currentIndex === 0 && this.verticalContext) {\n this.setItemTabindex(this.focusableItem, -1);\n this.setFocus();\n break;\n }\n\n const receiver = this.items[currentIndex - 1] ?? this.items[this.items.length - 1];\n // if the receiver is a ZMenuSection and it's open, focus its last item\n if (isZMenuSection(receiver) && receiver.open) {\n this.setItemTabindex(this.focusableItem, -1);\n receiver.focusLastItem();\n break;\n }\n\n this.moveFocus(receiver, this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_LEFT:\n if (!this.open || !this.verticalContext) {\n break;\n }\n\n // close the menu and focus the label\n ev.preventDefault();\n ev.stopPropagation();\n this.open = false;\n this.setFocus();\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.onLabelClick = this.onLabelClick.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n }\n\n componentWillLoad(): void {\n this.setLabelA11yAttrs();\n this.onItemsChange();\n }\n\n render(): HTMLDivElement | HTMLZMenuElement {\n if (!this.hasContent) {\n return (\n <div class=\"menu-label\">\n <slot onSlotchange={this.onLabelSlotChange} />\n </div>\n );\n }\n\n return (\n <Host>\n <button\n ref={(el) => (this.labelButton = el)}\n class=\"menu-label\"\n aria-expanded={`${!!this.open}`}\n aria-haspopup={`${this.hasContent}`}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n role=\"menuitem\"\n tabIndex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n\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 />\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -59,3 +59,6 @@ const ZMyzCardAlert = class {
59
59
  ZMyzCardAlert.style = stylesCss();
60
60
 
61
61
  exports.z_myz_card_alert = ZMyzCardAlert;
62
+ //# sourceMappingURL=z-myz-card-alert.entry.cjs.js.map
63
+
64
+ //# sourceMappingURL=z-myz-card-alert.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-alert.cjs.entry.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,s7BAAs7B,CAAC;;MCQn8B,aAAa,GAAA,MAAA;;;;;IAqBhB,cAAc,GAAA;AACpB,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC;;AAGvC,IAAA,mBAAmB,CAAC,CAAgB,EAAA;AAC1C,QAAA,IAAI,CAAC,CAAC,OAAO,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,IAAI,EAAE,EAAE;YACtC,CAAC,CAAC,cAAc,EAAE;YAClB,IAAI,CAAC,cAAc,EAAE;;;AAIjB,IAAA,uBAAuB,CAAC,CAAa,EAAA;QAC3C,CAAC,CAAC,cAAc,EAAE;QAClB,IAAI,CAAC,cAAc,EAAE;;IAGf,aAAa,GAAA;QACnB,IAAI,SAAS,GAAG,EAAE;AAClB,QAAA,QAAQ,IAAI,CAAC,IAAI;AACf,YAAA,KAAK,KAAK;gBACR,SAAS,GAAG,WAAW;gBACvB;AACF,YAAA,KAAK,QAAQ;gBACX,SAAS,GAAG,cAAc;gBAC1B;AACF,YAAA;gBACE,SAAS,GAAG,EAAE;gBACd;;AAGJ,QAAA,OAAO,SAAS;;IAGV,YAAY,GAAA;AAClB,QAAA,QAAQ,IAAI,CAAC,IAAI;AACf,YAAA,KAAK,KAAK;gBACR,OAAOA,iBAAS,CAAC,OAAO;AAC1B,YAAA,KAAK,QAAQ;gBACX,OAAOA,iBAAS,CAAC,OAAO;AAC1B,YAAA;AACE,gBAAA,OAAO,IAAI;;;IAIjB,MAAM,GAAA;AACJ,QAAA,QACEC,kEAAK,KAAK,EAAE,yBAAyB,GAAG,IAAI,CAAC,aAAa,EAAE,EAAA,EAC1DA,OAAA,CAAA,SAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAS,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,EAAA,EAChCA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,oBAAoB,EAAA,EAC7BA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,EAAA,CACnB,EACVA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,cAAc,IAAE,IAAI,CAAC,WAAW,CAAQ,EACnD,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KACjDA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,CAAC,CAAa,KAAI;AACzB,gBAAA,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC;AACjC,aAAC,EACD,UAAU,EAAE,CAAC,CAAgB,KAAI;AAC/B,gBAAA,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC;aAC5B,EAAA,EAEA,IAAI,CAAC,UAAU,CACX,CACR,CACG,CACE,CACN;;;;;;;","names":["AlertType","h"],"sources":["src/snowflakes/myz/card/z-myz-card-alert/styles.css?tag=z-myz-card-alert&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-alert/index.tsx"],"sourcesContent":[":host {\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 100%;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-alert {\n height: calc(var(--space-unit) * 6);\n}\n\n.relative-container {\n position: relative;\n display: grid;\n align-items: center;\n padding: 0;\n grid-column-gap: var(--space-unit);\n grid-template-columns: 18px auto 46px;\n grid-template-rows: 1fr;\n outline: none;\n}\n\n.relative-container::-moz-focus-inner {\n border: 0;\n}\n\n.alert-external-wrapper.remove-alert {\n border: var(--border-size-medium) solid var(--color-background);\n border-top: none;\n}\n\n:host div.add-alert {\n background: var(--color-inverse-success);\n}\n\n:host div.remove-alert {\n background: var(--color-inverse-warning);\n}\n\n:host div > .content-text {\n color: var(--color-surface05);\n font-size: 14px;\n letter-spacing: 0.16px;\n line-height: 20px;\n}\n\n:host div > .content-action {\n height: 20px;\n color: var(--color-primary01);\n cursor: pointer;\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.32px;\n line-height: 20px;\n}\n\n:host div > z-icon {\n justify-self: center;\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {AlertType} from \"../../../../beans\";\n\n@Component({\n tag: \"z-myz-card-alert\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardAlert implements ComponentInterface {\n /** icon name */\n @Prop()\n iconname: string;\n\n /** content text */\n @Prop()\n contenttext: string;\n\n /** action button text */\n @Prop()\n actiontext?: string;\n\n /** alert variant type */\n @Prop()\n type: string;\n\n /** undo action click/keyboard event, returns actionType */\n @Event()\n undoAction: EventEmitter;\n\n private emitUndoAction(): void {\n this.undoAction.emit({actionType: this.type});\n }\n\n private handleSpaceKeyPress(e: KeyboardEvent): void {\n if (e.keyCode == 32 || e.keyCode == 13) {\n e.preventDefault();\n this.emitUndoAction();\n }\n }\n\n private handleActionButtonClick(e: MouseEvent): void {\n e.preventDefault();\n this.emitUndoAction();\n }\n\n private retrieveClass(): string {\n let className = \"\";\n switch (this.type) {\n case \"add\":\n className = \"add-alert\";\n break;\n case \"remove\":\n className = \"remove-alert\";\n break;\n default:\n className = \"\";\n break;\n }\n\n return className;\n }\n\n private getAlertType(): AlertType {\n switch (this.type) {\n case \"add\":\n return AlertType.SUCCESS;\n case \"remove\":\n return AlertType.WARNING;\n default:\n return null;\n }\n }\n\n render(): HTMLDivElement {\n return (\n <div class={\"alert-external-wrapper \" + this.retrieveClass()}>\n <z-alert type={this.getAlertType()}>\n <div class=\"relative-container\">\n <z-icon\n name={this.iconname}\n width={18}\n height={18}\n class={this.retrieveClass()}\n ></z-icon>\n <span class=\"content-text\">{this.contenttext}</span>\n {this.actiontext && !!this.actiontext.trim().length && (\n <span\n role=\"button\"\n tabindex=\"0\"\n class=\"content-action\"\n onClick={(e: MouseEvent) => {\n this.handleActionButtonClick(e);\n }}\n onKeyPress={(e: KeyboardEvent) => {\n this.handleSpaceKeyPress(e);\n }}\n >\n {this.actiontext}\n </span>\n )}\n </div>\n </z-alert>\n </div>\n );\n }\n}\n"],"version":3}
@@ -32,3 +32,6 @@ const ZMyzCardDictionary = class {
32
32
  ZMyzCardDictionary.style = stylesCss();
33
33
 
34
34
  exports.z_myz_card_dictionary = ZMyzCardDictionary;
35
+ //# sourceMappingURL=z-myz-card-dictionary.entry.cjs.js.map
36
+
37
+ //# sourceMappingURL=z-myz-card-dictionary.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-dictionary.cjs.entry.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,omCAAomC,CAAC;;MCYjnC,kBAAkB,GAAA,MAAA;AAL/B,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAgBE,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;;AAIhB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;;AAIf,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM;;AAIxB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;AAmDpB;AAhDC,IAAA,c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O,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,IAErB,IAAI,CAAC,eAAe,CACZ,CACP,EACNF,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,MAAM,EAAA,EACfA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,EAAA,CAAG,CAChB,CACF,EACNA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACG,CACT;;;;;;;","names":["h","ButtonVariant","ButtonSize"],"sources":["src/snowflakes/myz/card/z-myz-card-dictionary/styles.css?tag=z-myz-card-dictionary&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-dictionary/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host z-myz-card {\n --card-overflow: visible;\n}\n\n:host > div {\n position: relative;\n width: 100%;\n height: 522px;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content {\n position: relative;\n z-index: 2;\n width: 100%;\n height: 522px;\n transform-style: preserve-3d;\n transition: -webkit-transform 0.5s ease-out;\n transition: transform 0.5s ease-out;\n transition:\n transform 0.5s ease-out,\n -webkit-transform 0.5s ease-out;\n}\n\n:host > div .content.flipped {\n margin-top: -2px;\n transform: rotateY(180deg);\n}\n\n:host > div .front,\n:host > div .back {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n}\n\n:host > div .front {\n z-index: 2;\n top: 0;\n left: 0;\n transform: rotateY(0deg);\n}\n\n:host > div .front z-button {\n position: absolute;\n z-index: 3;\n top: calc(var(--space-unit) * 0.5);\n left: calc(-1 * var(--space-unit));\n}\n\n:host > div .back {\n z-index: 1;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n padding: 0 var(--space-unit);\n margin-left: calc(-1 * var(--space-unit));\n transform: rotateY(180deg);\n}\n\n.hide-info {\n display: none;\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Listen, Prop, h} from \"@stencil/core\";\nimport {ButtonSize, ButtonVariant} from \"../../../../beans\";\n\n/**\n * @slot - generic card slot\n * @slot info - flipped card info\n */\n@Component({\n tag: \"z-myz-card-dictionary\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardDictionary implements ComponentInterface {\n /** card title */\n @Prop()\n name: string;\n\n /** card cover */\n @Prop()\n cover: string;\n\n /** card is disabled */\n @Prop()\n disabled = false;\n\n /** card is flipped */\n @Prop({mutable: true})\n flipped = false;\n\n /** flip button label */\n @Prop()\n flipbuttonlabel = \"INFO\";\n\n /** hide info button */\n @Prop()\n hideinfobtn = false;\n\n @Listen(\"flipCard\")\n handleFlipCard(e: CustomEvent): void {\n this.flipCard(e.detail);\n }\n\n /** when card is flipped */\n @Event()\n cardFlipped: EventEmitter;\n\n private flipCard(showBack = true): void {\n this.flipped = showBack;\n this.cardFlipped.emit(showBack);\n }\n\n render(): HTMLDivElement {\n return (\n <div>\n <z-myz-card>\n <z-myz-card-header titolo={this.name}></z-myz-card-header>\n <div class={`content ${this.flipped ? \"flipped\" : \"\"}`}>\n <div class=\"front\">\n <z-myz-card-body>\n <z-myz-card-cover\n slot=\"cover\"\n titolo={this.name}\n img={this.cover}\n faded={this.disabled}\n />\n </z-myz-card-body>\n <z-button\n class={{\"hide-info\": this.hideinfobtn}}\n variant={ButtonVariant.SECONDARY}\n icon=\"informationsource\"\n size={ButtonSize.X_SMALL}\n onClick={() => this.flipCard(true)}\n disabled={this.flipped}\n >\n {this.flipbuttonlabel}\n </z-button>\n </div>\n <div class=\"back\">\n <slot name=\"info\" />\n </div>\n </div>\n <slot />\n </z-myz-card>\n </div>\n );\n }\n}\n"],"version":3}
@@ -15,3 +15,6 @@ const ZMyzCardFooterSections = class {
15
15
  ZMyzCardFooterSections.style = stylesCss();
16
16
 
17
17
  exports.z_myz_card_footer_sections = ZMyzCardFooterSections;
18
+ //# sourceMappingURL=z-myz-card-footer-sections.entry.cjs.js.map
19
+
20
+ //# sourceMappingURL=z-myz-card-footer-sections.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-footer-sections.cjs.entry.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,6aAA6a,CAAC;;MCW1b,sBAAsB,GAAA,MAAA;;;;IACjC,MAAM,GAAA;AACJ,QAAA,QACEA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACEA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACEA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,KAAK,EAAA,EACdA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,KAAK,EAAA,CAAG,CACf,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,QAAQ,EAAA,EACjBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,EAAA,CAAG,CAClB,CACC,CACL;;;;;;;","names":["h"],"sources":["src/snowflakes/myz/card/z-myz-card-footer-sections/styles.css?tag=z-myz-card-footer-sections&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-footer-sections/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > div > footer {\n height: 128px;\n box-sizing: border-box;\n padding: var(--space-unit) calc(var(--space-unit) * 2) 0;\n border-top: var(--border-size-medium) solid var(--color-surface03);\n border-radius: 0 0 var(--border-radius) var(--border-radius);\n color: var(--color-surface05);\n font-size: 16px;\n line-height: 24px;\n}\n\n:host > div > footer > div.top,\n:host > div > footer > div.bottom {\n height: 60px;\n}\n","import {Component, ComponentInterface, h} from \"@stencil/core\";\n\n/**\n * @slot top - footer top content\n * @slot bottom - footer bottom content\n */\n@Component({\n tag: \"z-myz-card-footer-sections\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardFooterSections implements ComponentInterface {\n render(): HTMLDivElement {\n return (\n <div>\n <footer>\n <div class=\"top\">\n <slot name=\"top\" />\n </div>\n <div class=\"bottom\">\n <slot name=\"bottom\" />\n </div>\n </footer>\n </div>\n );\n }\n}\n"],"version":3}
@@ -65,3 +65,6 @@ const ZMyzCardFooter = class {
65
65
  ZMyzCardFooter.style = stylesCss();
66
66
 
67
67
  exports.z_myz_card_footer = ZMyzCardFooter;
68
+ //# sourceMappingURL=z-myz-card-footer.entry.cjs.js.map
69
+
70
+ //# sourceMappingURL=z-myz-card-footer.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-footer.cjs.entry.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,u9FAAu9F,CAAC;;MCap+F,cAAc,GAAA,MAAA;AAL3B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AA8BE,QAAA,IAAA,CAAA,MAAM,GAAa,KAAK;;AAIxB,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;AAGrB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAGd,QAAA,IAAA,CAAA,mBAAmB,GAAG,KAAK;AAwG5B;IAnGC,YAAY,GAAA;AACV,QAAA,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM;AAC1B,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;AACf,YAAA,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE;YACzC,IAAI,SAAS,EAAE;gBACb,qBAAqB,CAAC,MAAK;oBACzB,SAAS,CAAC,KAAK,EAAE;AACnB,i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EAAA,0CAAA,EAAG,KAAK,EAAC,WAAW,EAAA,EAClBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,MAAM,EAAA,EAChBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACEA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,kBAAA,EACmB,wBAAwB,EACzC,KAAK,EAAC,MAAM,EAAA,EAEX,IAAI,CAAC,IAAI,CACL,EAAC,GAAG,EAEN,gBAAA,CAAA,CACF,CACL,CACA,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,gBAAgB,IAAI,CAAC,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAA,CAAE,EAAA,EAC9DA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,EAAA,CAAG,CAChB,CACF,CACC,EACR,IAAI,CAAC,aAAa,IAAIA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAA,CAAG,CAC1C;;;;;;;;","names":["LicenseType","h"],"sources":["src/snowflakes/myz/card/z-myz-card-footer/styles.css?tag=z-myz-card-footer&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-footer/index.tsx"],"sourcesContent":["footer {\n position: relative;\n z-index: 5;\n top: 0;\n width: auto;\n height: calc(var(--space-unit) * 6);\n padding: 0;\n border-top: var(--border-size-medium) solid var(--color-surface03);\n margin: 0;\n background-color: var(--color-surface01);\n border-radius: 0 0 var(--border-radius) var(--border-radius);\n color: var(--color-surface05);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n transition:\n height 500ms ease-in-out,\n top 500ms ease-in-out;\n}\n\nfooter.real,\nfooter.trial,\nfooter.temp {\n border-top: var(--border-size-medium) solid var(--blue100);\n}\n\nfooter .bold {\n font-family: var(--font-family-sans);\n font-weight: var(--font-sb);\n}\n\nfooter > p {\n overflow: hidden;\n height: 40px;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) var(--space-unit) calc(var(--space-unit) * 2);\n margin: 0;\n background-color: var(--color-surface01);\n font-family: var(--font-family-sans);\n font-size: 16px;\n font-weight: var(--font-rg);\n line-height: 22px;\n transition: all 200ms linear;\n}\n\nfooter.isopen > p {\n background-color: var(--gray200);\n font-size: 14px;\n font-weight: var(--font-sb);\n transition: all 200ms linear;\n}\n\nfooter.isopen.real > p,\nfooter.isopen.trial > p,\nfooter.isopen.temp > p {\n background-color: var(--blue100);\n}\n\nfooter .visible {\n display: block;\n}\n\nfooter .hidden {\n display: none;\n}\n\nfooter > div.content {\n overflow: hidden;\n height: 60px;\n}\n\nfooter > div.content > div:not(.slot-handler) {\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n}\n\nfooter > div.content > div > p {\n overflow: hidden;\n height: 20px;\n padding: 0;\n margin: 0;\n font-size: 14px;\n line-height: 20px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\nfooter > div.content > div > p.year-isbn {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding-top: var(--space-unit);\n}\n\nfooter > div.content > div > p.year-isbn > span.isbn {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nfooter.isopen > div.content > div:not(.slot-handler) {\n height: 68px;\n}\n\nfooter.isopen > div.content > div > p.authors {\n height: 40px;\n text-overflow: initial;\n white-space: initial;\n}\n\nfooter.isopen > div.content > div > p.year-isbn {\n height: 50px;\n flex-direction: column;\n padding-left: 0;\n}\n\nfooter.isopen > div.content > div > p.year-isbn > span.isbn {\n display: inline-grid;\n padding-left: 0;\n}\n\nfooter.isopen {\n top: -212px;\n height: 295px;\n transition:\n height 500ms ease-in-out,\n top 500ms ease-in-out;\n}\n\nfooter.isopen.custom-content {\n top: -292px;\n}\n\nfooter.isopen > div.content {\n height: 280px;\n transition:\n height 500ms ease-in-out,\n top 500ms ease-in-out;\n}\n\nfooter.isopen.custom-content > div.content {\n height: 230px;\n}\n\n.toggle {\n position: absolute;\n z-index: 10;\n top: -24px;\n left: 16px;\n}\n\n.faded {\n opacity: 0.3;\n pointer-events: none;\n}\n\nfooter > p.custom-content,\nfooter .content.custom-content {\n display: none;\n}\n\nfooter.isopen > p.custom-content,\nfooter.isopen .content.custom-content {\n display: block;\n}\n\ndiv.wrapper {\n position: relative;\n height: 100%;\n}\n\ndiv.wrapper ::slotted([slot=\"content\"]) {\n position: absolute;\n z-index: 10;\n top: calc(var(--space-unit) * 2);\n display: block;\n width: 100%;\n height: 112px;\n box-sizing: border-box;\n padding: 0 calc(var(--space-unit) * 2);\n border-top: var(--border-size-medium) solid transparent;\n background: var(--color-white);\n}\n\ndiv.wrapper.isopen ::slotted([slot=\"content\"]) {\n top: 0;\n bottom: 0;\n height: 128px;\n padding: calc(var(--space-unit) * 2);\n border-color: var(--blue100);\n}\n","import {Component, ComponentInterface, Element, Listen, Prop, State, h} from \"@stencil/core\";\nimport {JSXBase} from \"@stencil/core/internal\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot toggle - toggle button slot\n * @slot list - card resources list slot\n */\n@Component({\n tag: \"z-myz-card-footer\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardFooter implements ComponentInterface {\n @Element() host: HTMLZMyzCardFooterElement;\n\n /** volume title */\n @Prop()\n titolo: string;\n\n /** authors name text */\n @Prop()\n autori: string;\n\n /** volume isbn */\n @Prop()\n isbn: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** card graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n /** footer opened by default (optional) */\n @Prop()\n opened?: boolean = false;\n\n /** display footer custom slotted content */\n @Prop()\n customContent = false;\n\n @State()\n isOpen = false;\n\n @State()\n allowTooltipAuthors = false;\n\n private ellipsisAuthors?: HTMLElement;\n\n @Listen(\"toggleClick\")\n handleToggle(): void {\n this.isOpen = !this.isOpen;\n if (this.isOpen) {\n const firstElem = this.getFirstListItem();\n if (firstElem) {\n requestAnimationFrame(() => {\n firstElem.focus();\n });\n }\n }\n }\n\n private getTitleAuthors(): string {\n return this.allowTooltipAuthors ? this.autori : \"\";\n }\n\n componentWillLoad(): void {\n if (this.opened) {\n this.isOpen = true;\n }\n }\n\n private elementsEllipsis(): void {\n this.allowTooltipAuthors = this.elementAuthorsHasEllipsis() ? true : false;\n }\n\n private elementAuthorsHasEllipsis(): boolean {\n return this.ellipsisAuthors.offsetWidth < this.ellipsisAuthors.scrollWidth;\n }\n\n private retrieveClass(): JSXBase.HTMLAttributes[\"class\"] {\n return {\n \"isopen\": this.isOpen,\n \"real\": this.cardtype === LicenseType.REAL,\n \"trial\": this.cardtype === LicenseType.TRIAL,\n \"temp\": this.cardtype === LicenseType.TEMP,\n \"custom-content\": this.customContent,\n };\n }\n\n private footerTransitionHandler(e: TransitionEvent): void {\n if ([\"visibility\", \"height\"].includes(e.propertyName)) {\n this.elementsEllipsis();\n }\n }\n\n private getFirstListItem(): HTMLElement {\n return this.host.querySelector(\"[slot=list] > li a\");\n }\n\n render(): HTMLDivElement {\n return (\n <div class={{...(this.retrieveClass() as Record<string, boolean>), wrapper: true}}>\n <footer\n class={this.retrieveClass()}\n onTransitionEnd={(e: TransitionEvent) => this.footerTransitionHandler(e)}\n >\n <span class=\"toggle\">\n <slot name=\"toggle\" />\n </span>\n {this.titolo && <p class={{\"custom-content\": this.customContent}}>{this.titolo}</p>}\n <div class={{\"content\": true, \"custom-content\": this.customContent}}>\n <div>\n <p\n class=\"authors\"\n ref={(el) => (this.ellipsisAuthors = el as HTMLElement)}\n >\n <span title={this.getTitleAuthors()}>\n <span\n aria-description=\"Autori\"\n class=\"bold\"\n >\n {this.autori}\n </span>\n </span>\n </p>\n <p class=\"year-isbn\">\n <span class=\"isbn\">\n <span>\n <span\n aria-description=\"ISBN edizione cartacea\"\n class=\"bold\"\n >\n {this.isbn}\n </span>{\" \"}\n (ed. cartacea)\n </span>\n </span>\n </p>\n </div>\n <div class={`slot-handler ${this.isOpen ? \"visible\" : \"hidden\"}`}>\n <slot name=\"list\" />\n </div>\n </div>\n </footer>\n {this.customContent && <slot name=\"content\" />}\n </div>\n );\n }\n}\n"],"version":3}
@@ -19,3 +19,6 @@ const ZMyzCardIcon = class {
19
19
  ZMyzCardIcon.style = stylesCss();
20
20
 
21
21
  exports.z_myz_card_icon = ZMyzCardIcon;
22
+ //# sourceMappingURL=z-myz-card-icon.entry.cjs.js.map
23
+
24
+ //# sourceMappingURL=z-myz-card-icon.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-icon.cjs.entry.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,imCAAimC,CAAC;;MCO9mC,YAAY,GAAA,MAAA;AALzB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAYE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;;AAIlB,QAAA,IAAA,CAAA,SAAS,GAAG,EAAE;AAkBf;IAhBC,MAAM,GAAA;AACJ,QAAA,QACEA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAA,YAAA,EACb,IAAI,CAAC,SAAS,EAAA,EAE1BA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACEA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACG,CACA;;;;;;;","names":["h"],"sources":["src/snowflakes/myz/card/z-myz-card-icon/styles.css?tag=z-myz-card-icon&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-icon/index.tsx"],"sourcesContent":["button {\n display: flex;\n width: 42px;\n width: calc(var(--space-unit) * 6);\n height: calc(var(--space-unit) * 5);\n height: calc(var(--space-unit) * 6);\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-left: var(--border-size-medium) solid var(--color-surface03);\n margin: 0;\n background: none;\n border-radius: 0 var(--border-radius) 0 0;\n color: var(--color-primary01);\n cursor: pointer;\n fill: var(--color-primary01);\n outline: none;\n}\n\nbutton:active,\nbutton:focus {\n color: var(--blue700);\n fill: var(--blue700);\n}\n\nbutton > span {\n display: flex;\n width: 28px;\n height: 28px;\n align-items: center;\n justify-content: center;\n border: 0;\n border-radius: var(--border-radius);\n}\n\nbutton:hover > span {\n background: var(--color-primary03);\n}\n\nbutton:focus > span {\n background: var(--color-surface01);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-focus-primary);\n}\n\nbutton:active > span {\n background: var(--color-surface01);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-2);\n}\n\nbutton:disabled {\n cursor: not-allowed;\n}\n\nbutton:disabled > span {\n background: none;\n box-shadow: var(--shadow-0);\n pointer-events: none;\n}\n\nbutton:disabled > span > z-icon {\n fill: var(--color-surface03);\n}\n\nbutton::-moz-focus-inner {\n border: 0;\n}\n","import {Component, ComponentInterface, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-myz-card-icon\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardIcon implements ComponentInterface {\n /** icon name */\n @Prop()\n icon: string;\n\n /** disabled status flag */\n @Prop()\n isdisabled = false;\n\n /** description of the icon*/\n @Prop()\n ariaLabel = \"\";\n\n render(): HTMLButtonElement {\n return (\n <button\n disabled={this.isdisabled}\n aria-label={this.ariaLabel}\n >\n <span>\n <z-icon\n name={this.icon}\n width={16}\n height={16}\n />\n </span>\n </button>\n );\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-D_S5lGcb.js');
4
4
  var index$1 = require('./index-wGaSHN1_.js');
5
- var utils = require('./utils-BY7xrW7W.js');
5
+ var utils = require('./utils-DRCgbM7t.js');
6
6
  require('./breakpoints-B7vFm-3T.js');
7
7
 
8
8
  const stylesCss = () => `:host{width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:relative;display:grid;width:calc(100% + calc(var(--space-unit) * 2));height:402px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--color-primary01);margin-left:calc(-1 * var(--space-unit));background:var(--color-surface01);border-radius:0;box-shadow:0 2px 4px 0 rgb(66 69 72 / 35%)}:host>div>z-icon{position:absolute;top:var(--space-unit);right:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}:host>div>div.cta-wrapper{display:flex;flex-flow:column nowrap;align-self:end;justify-content:space-between}:host>div>div.content-wrapper{position:relative;overflow:hidden;align-self:stretch}:host>div>div.content-wrapper>section{box-sizing:border-box;padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);font-size:14px;line-height:20px}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden::after{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg, rgb(255 0 0 / 0%), rgb(255 0 0 / 0%) 60%, white);content:"";pointer-events:none}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-primary01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-hover-warning);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-popover{position:absolute;top:0;left:calc(var(--space-unit) * 4)}`;
@@ -119,9 +119,12 @@ const ZMyzCardInfo = class {
119
119
  return (index.h("section", { ref: (el) => (this.offlineLicenseWrapper = el) }, index.h("span", { class: "license-heading" }, index.h("span", null, "Licenza offline"), this.setExpirationLicenseMessage("offline")), "Scadenza il ", index.h("b", null, this.cardData.offlineLicense.expiration), index.h("br", null), "Installazioni disponibili: ", index.h("b", null, this.cardData.offlineLicense.installations)));
120
120
  }
121
121
  render() {
122
- return (index.h("div", { key: '2cf85a75758a40cfb8b3c9df21fecc74cbb04f58' }, this.renderCloseIcon(), index.h("div", { key: 'af5eb9bd6a0cc66c03731683794faf2b60686e40', class: "content-wrapper", ref: (el) => (this.contentWrapper = el) }, this.renderGeneralSection(), this.renderTooltip(), this.renderOnlineLicenseSection(), this.renderOfflineLicenseSection()), index.h("div", { key: '39225945aeaa95be7f2b30eb4a23c04f5a6246f2', class: "cta-wrapper" }, index.h("slot", { key: 'b1c650e3a43ee7d78530eaa52638cd3c4cf02a7f' }))));
122
+ return (index.h("div", { key: '3607109f95aff2febdb6e28e5aa1db8f6a53ba6e' }, this.renderCloseIcon(), index.h("div", { key: '0f2530af1ddc200434346f5206207a095b778860', class: "content-wrapper", ref: (el) => (this.contentWrapper = el) }, this.renderGeneralSection(), this.renderTooltip(), this.renderOnlineLicenseSection(), this.renderOfflineLicenseSection()), index.h("div", { key: '6526087216d027750bc9946c5f9396f49aa392e3', class: "cta-wrapper" }, index.h("slot", { key: '984995bd7a2f93a57223f074ca9adb2fabcd66a9' }))));
123
123
  }
124
124
  };
125
125
  ZMyzCardInfo.style = stylesCss();
126
126
 
127
127
  exports.z_myz_card_info = ZMyzCardInfo;
128
+ //# sourceMappingURL=z-myz-card-info.entry.cjs.js.map
129
+
130
+ //# sourceMappingURL=z-myz-card-info.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-info.cjs.entry.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,y0DAAy0D,CAAC;;MCYt1D,YAAY,GAAA,MAAA;IA6Bf,YAAY,CAAC,QAAQ,GAAG,KAAK,EAAA;AACnC,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;;AAG9B,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AA1BA,QAAA,IAAA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,EAAE,CAC/B,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,aAAa,EAAA,EACtBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACJ,CACF;;;;;;;","names":["h","handleKeyboardSubmit","PopoverPosition"],"sources":["src/snowflakes/myz/card/z-myz-card-info/styles.css?tag=z-myz-card-info&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-info/index.tsx"],"sourcesContent":[":host {\n width: 100%;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > div {\n position: relative;\n display: grid;\n width: calc(100% + calc(var(--space-unit) * 2));\n height: 402px;\n box-sizing: border-box;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);\n border: var(--border-size-small) solid var(--color-primary01);\n margin-left: calc(-1 * var(--space-unit));\n background: var(--color-surface01);\n border-radius: 0;\n box-shadow: 0 2px 4px 0 rgb(66 69 72 / 35%);\n}\n\n:host > div > z-icon {\n position: absolute;\n top: var(--space-unit);\n right: var(--space-unit);\n cursor: pointer;\n fill: var(--color-primary01);\n}\n\n:host > div > div.cta-wrapper {\n display: flex;\n flex-flow: column nowrap;\n align-self: end;\n justify-content: space-between;\n}\n\n:host > div > div.content-wrapper {\n position: relative;\n overflow: hidden;\n align-self: stretch;\n}\n\n:host > div > div.content-wrapper > section {\n box-sizing: border-box;\n padding: var(--space-unit) 0;\n border-bottom: var(--border-size-small) solid var(--color-surface04);\n color: var(--color-surface05);\n font-size: 14px;\n line-height: 20px;\n}\n\n:host > div > div.content-wrapper > section:last-child {\n border-bottom: none;\n}\n\n:host > div > div.content-wrapper > section.info-wrapper {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n:host > div > div.content-wrapper > section.info-wrapper.hidden::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(180deg, rgb(255 0 0 / 0%), rgb(255 0 0 / 0%) 60%, white);\n content: \"\";\n pointer-events: none;\n}\n\n:host > div > div.content-wrapper > section > span.license-heading {\n display: flex;\n justify-content: space-between;\n}\n\n:host > div > div.content-wrapper > section > span.license-heading > span.expired {\n color: var(--color-primary01);\n font-size: 12px;\n font-weight: 600;\n}\n\n:host > div > div.content-wrapper > section > span.license-heading > span.expiring {\n color: var(--color-hover-warning);\n font-size: 12px;\n font-weight: 600;\n}\n\n:host > div > div.content-wrapper > z-popover {\n position: absolute;\n top: 0;\n left: calc(var(--space-unit) * 4);\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Prop, State, h} from \"@stencil/core\";\nimport {DictionaryData, PopoverPosition} from \"../../../../beans\";\nimport {handleKeyboardSubmit} from \"../../../../utils/utils\";\n\n/**\n * @slot - content\n */\n@Component({\n tag: \"z-myz-card-info\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardInfo implements ComponentInterface {\n /** dictionary info */\n @Prop()\n data: string | DictionaryData;\n\n /** tabindex link attribute (optional) */\n @Prop()\n htmltabindex?: number = 0;\n\n @State()\n hiddenContent = false;\n\n @State()\n tooltip = false;\n\n private cardData: DictionaryData;\n\n private contentWrapper: HTMLElement;\n\n private infoWrapper: HTMLElement;\n\n private onlineLicenseWrapper: HTMLElement;\n\n private offlineLicenseWrapper: HTMLElement;\n\n /** flip card to front */\n @Event()\n flipCard: EventEmitter;\n\n private emitFlipCard(showBack = false): void {\n this.flipCard.emit(showBack);\n }\n\n constructor() {\n this.emitFlipCard = this.emitFlipCard.bind(this);\n }\n\n componentWillLoad(): void {\n this.setStringOrArray();\n }\n\n componentWillUpdate(): void {\n this.setStringOrArray();\n }\n\n componentDidRender(): void {\n this.handleContentHeight();\n }\n\n private handleContentHeight(): void {\n if (!this.contentWrapper && !this.infoWrapper) {\n this.hiddenContent = false;\n\n return;\n }\n\n if (\n this.contentWrapper.scrollHeight > this.contentWrapper.offsetHeight ||\n this.infoWrapper.scrollHeight > this.infoWrapper.offsetHeight\n ) {\n const height =\n this.contentWrapper.offsetHeight -\n this.onlineLicenseWrapper.offsetHeight -\n this.offlineLicenseWrapper.offsetHeight;\n this.infoWrapper.style.height = `${height}px`;\n this.hiddenContent = true;\n\n return;\n }\n\n this.hiddenContent = false;\n }\n\n private setStringOrArray(): void {\n if (typeof this.data === \"string\") {\n this.cardData = JSON.parse(this.data);\n } else {\n this.cardData = this.data;\n }\n }\n\n private renderCloseIcon(): HTMLZIconElement {\n return (\n <z-icon\n name=\"multiply-circled-filled\"\n height={18}\n width={18}\n onClick={() => this.emitFlipCard(false)}\n tabindex={this.htmltabindex}\n onKeyUp={(e: KeyboardEvent) => {\n handleKeyboardSubmit(e, this.emitFlipCard, false);\n }}\n />\n );\n }\n\n private renderGeneralSection(): HTMLElement {\n const title = this?.cardData?.title;\n const description = this?.cardData?.description;\n\n return (\n <section\n class={`info-wrapper ${this.hiddenContent ? \"hidden\" : \"\"}`}\n onClick={() => {\n if (this.hiddenContent) {\n this.tooltip = !this.tooltip;\n }\n }}\n ref={(el) => (this.infoWrapper = el)}\n >\n {this.renderAuthor()}\n {this.renderYear()}\n {title}\n <br />\n {description}\n </section>\n );\n }\n\n private renderAuthor(): HTMLSpanElement {\n const author = this?.cardData?.author;\n if (!author) {\n return null;\n }\n\n return (\n <span>\n Autore: <b>{author}</b>\n <br />\n </span>\n );\n }\n\n private renderYear(): HTMLSpanElement {\n const year = this?.cardData?.year;\n if (!year) {\n return null;\n }\n\n return (\n <span>\n Anno: <b>{year}</b>\n <br />\n </span>\n );\n }\n\n private renderTooltip(): HTMLZPopoverElement {\n if (!this.tooltip) {\n return;\n }\n\n if (!this.cardData) {\n return;\n }\n const {title, year, author, description} = this.cardData;\n\n return (\n <z-popover\n position={PopoverPosition.RIGHT}\n onClick={() => (this.tooltip = false)}\n >\n {`${title} ${year} ${author} ${description}`}\n </z-popover>\n );\n }\n\n private setExpirationLicenseMessage(type: string): HTMLSpanElement {\n if (\n (type === \"online\" && this.cardData.onlineLicense.expired) ||\n (type === \"offline\" && this.cardData.offlineLicense.expired)\n ) {\n return <span class=\"expired\">SCADUTA</span>;\n }\n\n if (\n (type === \"online\" && this.cardData.onlineLicense.expiring) ||\n (type === \"offline\" && this.cardData.offlineLicense.expiring)\n ) {\n return <span class=\"expiring\">IN SCADENZA</span>;\n }\n }\n\n private renderOnlineLicenseSection(): HTMLElement {\n if (!this?.cardData?.onlineLicense) {\n return;\n }\n\n return (\n <section ref={(el) => (this.onlineLicenseWrapper = el)}>\n <span class=\"license-heading\">\n <span>Licenza online</span>\n {this.setExpirationLicenseMessage(\"online\")}\n </span>\n Scadenza il <b>{this.cardData.onlineLicense.expiration}</b>\n <br />\n </section>\n );\n }\n\n private renderOfflineLicenseSection(): HTMLElement {\n if (!this?.cardData?.offlineLicense) {\n return;\n }\n\n return (\n <section ref={(el) => (this.offlineLicenseWrapper = el)}>\n <span class=\"license-heading\">\n <span>Licenza offline</span>\n {this.setExpirationLicenseMessage(\"offline\")}\n </span>\n Scadenza il <b>{this.cardData.offlineLicense.expiration}</b>\n <br />\n Installazioni disponibili: <b>{this.cardData.offlineLicense.installations}</b>\n </section>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div>\n {this.renderCloseIcon()}\n <div\n class=\"content-wrapper\"\n ref={(el) => (this.contentWrapper = el)}\n >\n {this.renderGeneralSection()}\n {this.renderTooltip()}\n {this.renderOnlineLicenseSection()}\n {this.renderOfflineLicenseSection()}\n </div>\n <div class=\"cta-wrapper\">\n <slot />\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -34,3 +34,6 @@ const ZMyzCardList = class {
34
34
  ZMyzCardList.style = stylesCss();
35
35
 
36
36
  exports.z_myz_card_list = ZMyzCardList;
37
+ //# sourceMappingURL=z-myz-card-list.entry.cjs.js.map
38
+
39
+ //# sourceMappingURL=z-myz-card-list.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card-list.cjs.entry.js","mappings":";;;;AAAA,MAAM,SAAS,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AAM;;;;;;;","names":["h"],"sources":["src/snowflakes/myz/card/z-myz-card-list/styles.css?tag=z-myz-card-list&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-list/index.tsx"],"sourcesContent":["*:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\nul {\n overflow: hidden;\n width: auto;\n height: auto;\n padding: 0;\n margin: 0 calc(var(--space-unit) * 2);\n color: var(--color-primary01);\n font-family: var(--font-family-sans);\n list-style: none;\n}\n\nul > li {\n padding-left: 10px;\n text-indent: -10px;\n}\n\nul > li > a {\n display: block;\n padding-top: calc(var(--space-unit) * 0.5);\n color: var(--color-primary01);\n font-size: 14px;\n font-weight: var(--font-sb);\n letter-spacing: 0.16px;\n line-height: calc(var(--space-unit) * 2.5);\n text-decoration: none;\n}\n\nul > li > a::before {\n padding-right: 5px;\n content: \"•\";\n}\n\nul > li > span {\n padding: 0 calc(var(--space-unit) * 2);\n color: var(--color-surface04);\n font-size: 14px;\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: calc(var(--space-unit) * 2.5);\n text-decoration: none;\n}\n","import {Component, ComponentInterface, Prop, h} from \"@stencil/core\";\nimport {Action} from \"../../../../beans\";\n\n@Component({\n tag: \"z-myz-card-list\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardList implements ComponentInterface {\n /** list data stringified array */\n @Prop()\n listdata: string;\n\n constructor() {\n this.renderList = this.renderList.bind(this);\n }\n\n private handleSpaceKeyPress(e: KeyboardEvent, url: string): void {\n if (e.keyCode == 32 || e.keyCode == 13) {\n e.preventDefault();\n window.open(url, \"_blank\");\n }\n }\n\n private formatListContent(data: Action): HTMLAnchorElement {\n const {value, isLink, url} = data;\n if (!isLink) {\n return <span>{value}</span>;\n }\n\n return (\n <a\n role=\"button\"\n onKeyPress={(e: KeyboardEvent) => this.handleSpaceKeyPress(e, url)}\n href={url}\n target=\"_blank\"\n >\n {value}\n </a>\n );\n }\n\n private renderList(dataArray: Action[]): HTMLLIElement[] {\n return dataArray.map((data: Action) => {\n return <li>{this.formatListContent(data)}</li>;\n });\n }\n\n render(): HTMLUListElement {\n return <ul>{this.renderList(JSON.parse(this.listdata))}</ul>;\n }\n}\n"],"version":3}
@@ -36,7 +36,7 @@ const ZMyzCardComponent = class {
36
36
  return elemClasses;
37
37
  }
38
38
  render() {
39
- return (index.h("div", { key: 'b67a08f3b64765de8616a71391a1b6ca8c12b6a9', class: this.retrieveClass(), tabindex: "0" }, index.h("slot", { key: '9b5002efd87f6f829578802ebd4dfcf57a69e02f' })));
39
+ return (index.h("div", { key: 'ed3d5841bd46ec168fef3fcb25e177cc5548ff42', class: this.retrieveClass(), tabindex: "0" }, index.h("slot", { key: '87fa940d952cc77e8a2d95cbff8a8690d782039a' })));
40
40
  }
41
41
  };
42
42
  ZMyzCardComponent.style = stylesCss$3();
@@ -104,3 +104,6 @@ exports.z_myz_card = ZMyzCardComponent;
104
104
  exports.z_myz_card_body = ZMyzCardBody;
105
105
  exports.z_myz_card_cover = ZMyzCardCover;
106
106
  exports.z_myz_card_header = ZMyzCardHeader;
107
+ //# sourceMappingURL=z-myz-card.z-myz-card-body.z-myz-card-cover.z-myz-card-header.entry.cjs.js.map
108
+
109
+ //# sourceMappingURL=z-myz-card_4.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"z-myz-card_4.cjs.entry.js","mappings":";;;;;AAAA,MAAMA,WAAS,GAAG,MAAM,CAAC,glBAAglB,CAAC;;MCW7lB,iBAAiB,GAAA,MAAA;AAL9B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAgBE,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;;AAIjB,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK;AAkCtB;IAhCS,aAAa,GAAA;QACnB,IAAI,WAAW,GAAG,EAAE;QAEpB,IAAI,IAAI,CAAC,QAAQ,KAAKC,mBAAW,CAAC,IAAI,EAAE;YACtC,WAAW,IAAI,MAAM;;aAChB,IAAI,IA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AC5BA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,YAAY,EAClB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAiB,CAAC,EAChD,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAA,EAErB,IAAI,CAAC,MAAM,CACP,EACPA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,EAAA,CAAG,CACb;;;;;;;;;;","names":["stylesCss","LicenseType","h"],"sources":["src/snowflakes/myz/card/z-myz-card/styles.css?tag=z-myz-card&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card/index.tsx","src/snowflakes/myz/card/z-myz-card-body/styles.css?tag=z-myz-card-body&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-body/index.tsx","src/snowflakes/myz/card/z-myz-card-cover/styles.css?tag=z-myz-card-cover&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-cover/index.tsx","src/snowflakes/myz/card/z-myz-card-header/styles.css?tag=z-myz-card-header&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-header/index.tsx"],"sourcesContent":[":host {\n --card-overflow: hidden;\n}\n\ndiv {\n display: flex;\n overflow: var(--card-overflow);\n width: auto;\n width: 256px; /* TODO: width must be 100% - must be handled in dashboard */\n height: 522px;\n box-sizing: border-box;\n flex-direction: column;\n border: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n}\n\ndiv.real,\ndiv.trial,\ndiv.temp {\n border-color: var(--blue100);\n}\n\n/* HIDDEN status */\ndiv.faded {\n border: var(--border-size-medium) solid var(--color-background);\n}\n\n/* HIGHLIGHTED status */\ndiv.highlighted {\n box-shadow: var(--shadow-4);\n outline: none;\n}\n\n/* PRESSED status */\ndiv.pressed {\n box-shadow: var(--shadow-8);\n outline: none;\n}\n\ndiv:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n","import {Component, ComponentInterface, h, Prop} from \"@stencil/core\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot - generic card slot\n */\n@Component({\n tag: \"z-myz-card\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardComponent implements ComponentInterface {\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n /** pressed status */\n @Prop()\n ispressed = false;\n\n /** highlighted status */\n @Prop()\n ishighlighted = false;\n\n private retrieveClass(): string {\n let elemClasses = \"\";\n\n if (this.cardtype === LicenseType.REAL) {\n elemClasses += \"real\";\n } else if (this.cardtype === LicenseType.TRIAL) {\n elemClasses += \"trial\";\n } else if (this.cardtype === LicenseType.TEMP) {\n elemClasses += \"temp\";\n }\n\n if (this.faded) {\n elemClasses += \" faded\";\n } else if (this.ispressed) {\n elemClasses += \" pressed\";\n } else if (this.ishighlighted) {\n elemClasses += \" highlighted\";\n }\n\n return elemClasses;\n }\n\n render(): HTMLDivElement {\n return (\n <div\n class={this.retrieveClass()}\n tabindex=\"0\"\n >\n <slot />\n </div>\n );\n }\n}\n",":host {\n width: auto;\n height: 340px;\n}\n\n:host > div {\n position: relative;\n display: flex;\n width: auto;\n height: 340px;\n align-items: center;\n justify-content: center;\n}\n","import {Component, ComponentInterface, h} from \"@stencil/core\";\n\n/**\n * @slot alert - card alert slot\n * @slot cover - book cover slot\n */\n@Component({\n tag: \"z-myz-card-body\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardBody implements ComponentInterface {\n render(): HTMLDivElement {\n return (\n <div>\n <slot name=\"alert\"></slot>\n <slot name=\"cover\" />\n </div>\n );\n }\n}\n","img {\n display: block;\n max-width: 100%;\n height: 340px;\n margin: auto;\n object-fit: cover;\n}\n\nimg.faded {\n opacity: 0.3;\n}\n","import {Component, ComponentInterface, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-myz-card-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardCover implements ComponentInterface {\n /** image source */\n @Prop()\n img: string;\n\n /** cover alt title */\n @Prop()\n titolo: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** default error image source */\n @Prop()\n defaultimg: string;\n\n private hadleOnImageError(): void {\n this.img = this.defaultimg;\n }\n\n render(): HTMLImageElement {\n return (\n <img\n class={this.faded && \"faded\"}\n onError={this.hadleOnImageError.bind(this)}\n alt={this.titolo}\n src={this.img}\n />\n );\n }\n}\n","header {\n position: relative;\n display: flex;\n width: auto;\n height: calc(var(--space-unit) * 6);\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n border-bottom: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius);\n}\n\nslot[name=\"aria-heading\"]::slotted(*) {\n position: absolute;\n overflow: hidden !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n border: 0 none !important;\n margin: -1px !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n}\n\nheader.real,\nheader.trial,\nheader.temp {\n border-bottom: var(--border-size-medium) solid var(--blue100);\n background-color: var(--color-primary03);\n}\n\n.card-title {\n overflow: hidden;\n height: calc(var(--space-unit) * 2);\n padding: calc(var(--space-unit) * 2);\n margin: 0;\n color: var(--color-surface05);\n font-family: var(--font-family-sans);\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.22px;\n line-height: calc(var(--space-unit) * 2);\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.faded {\n border-bottom: var(--border-size-medium) solid var(--color-background);\n}\n\n.faded.real,\n.faded.trial,\n.faded.temp {\n border-top: var(--border-size-medium) solid var(--blue100);\n border-right: var(--border-size-medium) solid var(--blue100);\n border-left: var(--border-size-medium) solid var(--blue100);\n}\n","import {Component, ComponentInterface, Prop, State, h} from \"@stencil/core\";\nimport {JSXBase} from \"@stencil/core/internal\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot icon - card header icon slot\n */\n@Component({\n tag: \"z-myz-card-header\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardHeader implements ComponentInterface {\n /** volume title */\n @Prop()\n titolo: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** card graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n @State()\n allowTooltip = false;\n\n private ellipsis?: HTMLElement;\n\n private getTitle(): string {\n return this.allowTooltip ? this.titolo : \"\";\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis()) {\n this.allowTooltip = true;\n }\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n private retrieveClass(): JSXBase.HTMLAttributes[\"class\"] {\n return {\n real: this.cardtype === LicenseType.REAL,\n trial: this.cardtype === LicenseType.TRIAL,\n temp: this.cardtype === LicenseType.TEMP,\n faded: this.faded,\n };\n }\n\n render(): HTMLElement {\n return (\n <header class={this.retrieveClass()}>\n <slot name=\"aria-heading\" />\n <span\n class=\"card-title\"\n ref={(el) => (this.ellipsis = el as HTMLElement)}\n title={this.getTitle()}\n >\n {this.titolo}\n </span>\n <slot name=\"icon\" />\n </header>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-D_S5lGcb.js');
4
- var utils = require('./utils-BY7xrW7W.js');
4
+ var utils = require('./utils-DRCgbM7t.js');
5
5
  require('./index-wGaSHN1_.js');
6
6
  require('./breakpoints-B7vFm-3T.js');
7
7
 
@@ -33,3 +33,6 @@ const ZMyzListItem = class {
33
33
  ZMyzListItem.style = stylesCss();
34
34
 
35
35
  exports.z_myz_list_item = ZMyzListItem;
36
+ //# sourceMappingURL=z-myz-list-item.entry.cjs.js.map
37
+
38
+ //# sourceMappingURL=z-myz-list-item.cjs.entry.js.map