@zanichelli/albe-web-components 19.3.0-rc1 → 19.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1492) hide show
  1. package/CHANGELOG.md +68 -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 +1030 -0
  7. package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
  8. package/dist/cjs/index-Cn7FFDHr.js +415 -0
  9. package/dist/cjs/index-Cn7FFDHr.js.map +1 -0
  10. package/dist/cjs/index-DY2I5wAY.js +2727 -0
  11. package/dist/cjs/index-DY2I5wAY.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +10 -3
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +5 -2
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-CxJYkamG.js +1446 -0
  17. package/dist/cjs/reactive-controller-CxJYkamG.js.map +1 -0
  18. package/dist/cjs/utils-By4U4KkV.js +2721 -0
  19. package/dist/cjs/utils-By4U4KkV.js.map +1 -0
  20. package/dist/cjs/utils-kQZHfpti.js +919 -0
  21. package/dist/cjs/utils-kQZHfpti.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +5 -2
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +6 -3
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +5 -2
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +7 -4
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +6 -3
  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 +101 -135
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +6 -3
  35. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  36. package/dist/cjs/z-avatar.cjs.entry.js +7 -4
  37. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-book-card-app.cjs.entry.js +6 -3
  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 +7 -4
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +6 -3
  43. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-cover.cjs.entry.js +5 -2
  45. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  46. package/dist/cjs/z-breadcrumb.cjs.entry.js +8 -5
  47. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  48. package/dist/cjs/z-button-sort.cjs.entry.js +5 -2
  49. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-card.cjs.entry.js +5 -2
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +6 -3
  53. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-chip.cjs.entry.js +7 -4
  55. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-color-picker.cjs.entry.js +7 -4
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +21 -15
  59. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-cover-hero.cjs.entry.js +7 -4
  61. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-date-picker.cjs.entry.js +7 -4
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +25 -41
  65. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  66. package/dist/cjs/z-file-upload.cjs.entry.js +7 -4
  67. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-file.cjs.entry.js +6 -3
  69. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  70. package/dist/cjs/z-ghost-loading.cjs.entry.js +5 -2
  71. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  72. package/dist/cjs/z-info-box.cjs.entry.js +5 -2
  73. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-info-reveal.cjs.entry.js +6 -3
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-input-range.cjs.entry.js +145 -0
  77. package/dist/cjs/z-input-range.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-logo.cjs.entry.js +6 -3
  79. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-deprecated.cjs.entry.js +6 -3
  81. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +5 -2
  83. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu-section.cjs.entry.js +6 -3
  85. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-menu.cjs.entry.js +6 -3
  87. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-alert.cjs.entry.js +6 -3
  89. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
  91. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +5 -2
  93. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -3
  95. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-icon.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-info.cjs.entry.js +7 -4
  99. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card-list.cjs.entry.js +5 -2
  101. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -6
  103. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list-item.cjs.entry.js +7 -4
  105. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-myz-list.cjs.entry.js +5 -2
  107. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-navigation-tabs.cjs.entry.js +7 -4
  109. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-notification.cjs.entry.js +5 -2
  111. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-otp.cjs.entry.js +7 -4
  113. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-pagination.cjs.entry.js +5 -2
  115. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-panel-elem.cjs.entry.js +6 -3
  117. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-popover.cjs.entry.js +7 -4
  119. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-range-picker.cjs.entry.js +9 -6
  121. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-result-card.cjs.entry.js +5 -2
  123. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-section-title.cjs.entry.js +6 -3
  125. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-select.cjs.entry.js +13 -14
  127. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-skip-to-content.cjs.entry.js +7 -4
  129. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-slideshow.cjs.entry.js +6 -3
  131. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper-item.cjs.entry.js +5 -2
  133. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-stepper.cjs.entry.js +5 -2
  135. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-table.cjs.entry.js +7 -4
  137. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-tbody.cjs.entry.js +5 -2
  139. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-td.cjs.entry.js +6 -3
  141. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-tfoot.cjs.entry.js +5 -2
  143. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-th.cjs.entry.js +6 -3
  145. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-thead.cjs.entry.js +5 -2
  147. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification-list.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toast-notification.cjs.entry.js +8 -5
  151. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-button.cjs.entry.js +6 -3
  153. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-toggle-switch.cjs.entry.js +9 -6
  155. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-tool.cjs.entry.js +8 -5
  157. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-toolbar.cjs.entry.js +6 -3
  159. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tooltip.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tr.cjs.entry.js +8 -5
  163. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-tree-list.cjs.entry.js +6 -3
  165. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  166. package/dist/cjs/z-visually-hidden.cjs.entry.js +5 -2
  167. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  168. package/dist/collection/beans/index.js +6 -0
  169. package/dist/collection/beans/index.js.map +1 -0
  170. package/dist/collection/collection-manifest.json +12 -11
  171. package/dist/collection/components/book-card/z-book-card/index.js +2 -8
  172. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  173. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  174. package/dist/collection/components/book-card/z-book-card-app/index.js +2 -3
  175. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  176. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  177. package/dist/collection/components/date-picker/utils.js +1 -0
  178. package/dist/collection/components/date-picker/utils.js.map +1 -0
  179. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -1
  180. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
  181. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -3
  182. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +2 -54
  184. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  185. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  186. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +2 -5
  187. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  188. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  189. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +2 -2
  190. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  191. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  192. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +2 -1
  193. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  194. package/dist/collection/components/deprecated/z-section-title/index.js +2 -2
  195. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  196. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  197. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +3 -2
  198. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  199. package/dist/collection/components/file-upload/z-file/index.js +2 -1
  200. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  201. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -2
  202. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  203. package/dist/collection/components/index.js +1 -0
  204. package/dist/collection/components/index.js.map +1 -0
  205. package/dist/collection/components/list/z-list/index.js +2 -1
  206. package/dist/collection/components/list/z-list/index.js.map +1 -0
  207. package/dist/collection/components/list/z-list-element/index.js +2 -1
  208. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  209. package/dist/collection/components/list/z-list-group/index.js +3 -2
  210. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  211. package/dist/collection/components/list/z-tree-list/index.js +2 -1
  212. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  213. package/dist/collection/components/table/cells/z-td/index.js +2 -1
  214. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  215. package/dist/collection/components/table/cells/z-th/index.js +2 -1
  216. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  217. package/dist/collection/components/table/z-table/index.js +2 -2
  218. package/dist/collection/components/table/z-table/index.js.map +1 -0
  219. package/dist/collection/components/table/z-table/styles.css +3 -0
  220. package/dist/collection/components/table/z-tbody/index.js +2 -1
  221. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  222. package/dist/collection/components/table/z-tfoot/index.js +2 -1
  223. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  224. package/dist/collection/components/table/z-thead/index.js +2 -1
  225. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/index.js +2 -1
  227. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  228. package/dist/collection/components/table/z-tr/styles.css +2 -2
  229. package/dist/collection/components/z-accordion/index.js +4 -11
  230. package/dist/collection/components/z-accordion/index.js.map +1 -0
  231. package/dist/collection/components/z-accordion/styles.css +12 -0
  232. package/dist/collection/components/z-anchor-navigation/index.js +4 -3
  233. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  234. package/dist/collection/components/z-app-header/index.js +22 -8
  235. package/dist/collection/components/z-app-header/index.js.map +1 -0
  236. package/dist/collection/components/z-app-header/styles.css +12 -12
  237. package/dist/collection/components/z-aria-alert/index.js +2 -1
  238. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  239. package/dist/collection/components/z-avatar/index.js +3 -2
  240. package/dist/collection/components/z-avatar/index.js.map +1 -0
  241. package/dist/collection/components/z-book-cover/index.js +2 -5
  242. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  243. package/dist/collection/components/z-book-cover/styles.css +6 -0
  244. package/dist/collection/components/z-breadcrumb/index.js +3 -2
  245. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  246. package/dist/collection/components/z-button/index.js +3 -2
  247. package/dist/collection/components/z-button/index.js.map +1 -0
  248. package/dist/collection/components/z-button-sort/index.js +2 -1
  249. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  250. package/dist/collection/components/z-card/index.js +2 -8
  251. package/dist/collection/components/z-card/index.js.map +1 -0
  252. package/dist/collection/components/z-card/styles.css +9 -0
  253. package/dist/collection/components/z-carousel/index.js +1 -2
  254. package/dist/collection/components/z-carousel/index.js.map +1 -0
  255. package/dist/collection/components/z-carousel/styles.css +7 -3
  256. package/dist/collection/components/z-chip/index.js +3 -2
  257. package/dist/collection/components/z-chip/index.js.map +1 -0
  258. package/dist/collection/components/z-color-picker/index.js +2 -1
  259. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  260. package/dist/collection/components/z-combobox/index.js +17 -13
  261. package/dist/collection/components/z-combobox/index.js.map +1 -0
  262. package/dist/collection/components/z-cover-hero/index.js +3 -5
  263. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  264. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  265. package/dist/collection/components/z-divider/index.js +2 -1
  266. package/dist/collection/components/z-divider/index.js.map +1 -0
  267. package/dist/collection/components/z-ghost-loading/index.js +2 -1
  268. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  269. package/dist/collection/components/z-icon/index.js +32 -2
  270. package/dist/collection/components/z-icon/index.js.map +1 -0
  271. package/dist/collection/components/z-info-box/index.js +2 -1
  272. package/dist/collection/components/z-info-box/index.js.map +1 -0
  273. package/dist/collection/components/z-info-reveal/index.js +2 -5
  274. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  275. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  276. package/dist/collection/components/z-input/index.js +51 -30
  277. package/dist/collection/components/z-input/index.js.map +1 -0
  278. package/dist/collection/components/z-input/styles-checkbox-radio.css +2 -0
  279. package/dist/collection/components/z-input/styles-text.css +5 -0
  280. package/dist/collection/components/z-input-message/index.js +2 -1
  281. package/dist/collection/components/z-input-message/index.js.map +1 -0
  282. package/dist/collection/components/z-input-range/index.js +438 -0
  283. package/dist/collection/components/z-input-range/index.js.map +1 -0
  284. package/dist/collection/components/z-input-range/styles.css +262 -0
  285. package/dist/collection/components/z-logo/index.js +2 -1
  286. package/dist/collection/components/z-logo/index.js.map +1 -0
  287. package/dist/collection/components/z-logo/styles.css +5 -0
  288. package/dist/collection/components/z-menu/index.js +1 -1
  289. package/dist/collection/components/z-menu/index.js.map +1 -0
  290. package/dist/collection/components/z-menu/styles.css +3 -0
  291. package/dist/collection/components/z-menu-section/index.js +2 -1
  292. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  293. package/dist/collection/components/z-modal/index.js +17 -37
  294. package/dist/collection/components/z-modal/index.js.map +1 -0
  295. package/dist/collection/components/z-modal/styles.css +5 -2
  296. package/dist/collection/components/z-navigation-tabs/index.js +3 -4
  297. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  298. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  299. package/dist/collection/components/z-notification/index.js +2 -4
  300. package/dist/collection/components/z-notification/index.js.map +1 -0
  301. package/dist/collection/components/z-notification/styles.css +5 -0
  302. package/dist/collection/components/z-offcanvas/index.js +43 -119
  303. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  304. package/dist/collection/components/z-offcanvas/styles.css +6 -0
  305. package/dist/collection/components/z-pagination/index.js +1 -2
  306. package/dist/collection/components/z-pagination/index.js.map +1 -0
  307. package/dist/collection/components/z-pagination/styles.css +6 -0
  308. package/dist/collection/components/z-panel-elem/index.js +3 -2
  309. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  310. package/dist/collection/components/z-popover/index.js +2 -6
  311. package/dist/collection/components/z-popover/index.js.map +1 -0
  312. package/dist/collection/components/z-popover/styles.css +6 -0
  313. package/dist/collection/components/z-result-card/index.js +1 -0
  314. package/dist/collection/components/z-result-card/index.js.map +1 -0
  315. package/dist/collection/components/z-result-card/styles.css +8 -5
  316. package/dist/collection/components/z-searchbar/index.js +4 -8
  317. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  318. package/dist/collection/components/z-searchbar/styles.css +5 -0
  319. package/dist/collection/components/z-select/index.js +9 -12
  320. package/dist/collection/components/z-select/index.js.map +1 -0
  321. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  322. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  323. package/dist/collection/components/z-stepper/index.js +2 -1
  324. package/dist/collection/components/z-stepper/index.js.map +1 -0
  325. package/dist/collection/components/z-stepper-item/index.js +2 -1
  326. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  327. package/dist/collection/components/z-tag/index.js +3 -4
  328. package/dist/collection/components/z-tag/index.js.map +1 -0
  329. package/dist/collection/components/z-tag/styles.css +5 -0
  330. package/dist/collection/components/z-toast-notification/index.js +4 -3
  331. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  332. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  333. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  334. package/dist/collection/components/z-toggle-button/index.js +3 -2
  335. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  336. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  337. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  338. package/dist/collection/components/z-tool/index.js +4 -3
  339. package/dist/collection/components/z-tool/index.js.map +1 -0
  340. package/dist/collection/components/z-toolbar/index.js +2 -2
  341. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  342. package/dist/collection/components/z-toolbar/styles.css +4 -0
  343. package/dist/collection/components/z-tooltip/index.js +2 -5
  344. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  345. package/dist/collection/components/z-tooltip/styles.css +6 -0
  346. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  347. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  348. package/dist/collection/constants/breakpoints.js +1 -0
  349. package/dist/collection/constants/breakpoints.js.map +1 -0
  350. package/dist/collection/constants/icons.js +1 -0
  351. package/dist/collection/constants/icons.js.map +1 -0
  352. package/dist/collection/constants/iconset.js +7 -6
  353. package/dist/collection/constants/iconset.js.map +1 -0
  354. package/dist/collection/index.js +1 -0
  355. package/dist/collection/index.js.map +1 -0
  356. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -2
  357. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  358. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +2 -1
  359. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  360. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +2 -1
  361. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  362. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +2 -1
  363. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  364. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +2 -1
  365. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  366. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +2 -1
  367. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  368. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +2 -1
  369. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  370. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +2 -1
  371. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  372. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
  373. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  374. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
  375. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  376. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +2 -1
  377. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  378. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +2 -1
  379. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  380. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -1
  381. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  382. package/dist/collection/snowflakes/myz/z-alert/index.js +2 -1
  383. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  384. package/dist/collection/snowflakes/myz/z-otp/index.js +3 -2
  385. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  386. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  387. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  388. package/dist/collection/utils/focus-trap-controller.js +100 -0
  389. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  390. package/dist/collection/utils/reactive-controller.js +46 -0
  391. package/dist/collection/utils/reactive-controller.js.map +1 -0
  392. package/dist/collection/utils/storybook-utils.js +8 -0
  393. package/dist/collection/utils/storybook-utils.js.map +1 -0
  394. package/dist/collection/utils/utils.js +65 -1
  395. package/dist/collection/utils/utils.js.map +1 -0
  396. package/dist/components/_commonjsHelpers.js +2 -1
  397. package/dist/components/_commonjsHelpers.js.map +1 -0
  398. package/dist/components/breakpoints.js +2 -1
  399. package/dist/components/breakpoints.js.map +1 -0
  400. package/dist/components/iconset.js +2 -1
  401. package/dist/components/iconset.js.map +1 -0
  402. package/dist/components/index.d.ts +2 -0
  403. package/dist/components/index.js +2 -1
  404. package/dist/components/index.js.map +1 -0
  405. package/dist/components/index10.js +2 -1
  406. package/dist/components/index10.js.map +1 -0
  407. package/dist/components/index11.js +2 -1
  408. package/dist/components/index11.js.map +1 -0
  409. package/dist/components/index12.js +2 -1
  410. package/dist/components/index12.js.map +1 -0
  411. package/dist/components/index13.js +2 -1
  412. package/dist/components/index13.js.map +1 -0
  413. package/dist/components/index14.js +2 -1
  414. package/dist/components/index14.js.map +1 -0
  415. package/dist/components/index15.js +2 -1
  416. package/dist/components/index15.js.map +1 -0
  417. package/dist/components/index16.js +2 -1
  418. package/dist/components/index16.js.map +1 -0
  419. package/dist/components/index17.js +2 -1
  420. package/dist/components/index17.js.map +1 -0
  421. package/dist/components/index18.js +2 -1
  422. package/dist/components/index18.js.map +1 -0
  423. package/dist/components/index19.js +2 -1
  424. package/dist/components/index19.js.map +1 -0
  425. package/dist/components/index2.js +2 -1
  426. package/dist/components/index2.js.map +1 -0
  427. package/dist/components/index20.js +2 -1
  428. package/dist/components/index20.js.map +1 -0
  429. package/dist/components/index21.js +2 -1
  430. package/dist/components/index21.js.map +1 -0
  431. package/dist/components/index22.js +2 -1
  432. package/dist/components/index22.js.map +1 -0
  433. package/dist/components/index23.js +2 -1
  434. package/dist/components/index23.js.map +1 -0
  435. package/dist/components/index24.js +2 -1
  436. package/dist/components/index24.js.map +1 -0
  437. package/dist/components/index25.js +2 -1
  438. package/dist/components/index25.js.map +1 -0
  439. package/dist/components/index26.js +2 -1
  440. package/dist/components/index26.js.map +1 -0
  441. package/dist/components/index27.js +2 -1
  442. package/dist/components/index27.js.map +1 -0
  443. package/dist/components/index3.js +2 -1
  444. package/dist/components/index3.js.map +1 -0
  445. package/dist/components/index4.js +2 -1
  446. package/dist/components/index4.js.map +1 -0
  447. package/dist/components/index5.js +2 -1
  448. package/dist/components/index5.js.map +1 -0
  449. package/dist/components/index6.js +2 -1
  450. package/dist/components/index6.js.map +1 -0
  451. package/dist/components/index7.js +2 -1
  452. package/dist/components/index7.js.map +1 -0
  453. package/dist/components/index8.js +2 -1
  454. package/dist/components/index8.js.map +1 -0
  455. package/dist/components/index9.js +2 -1
  456. package/dist/components/index9.js.map +1 -0
  457. package/dist/components/reactive-controller.js +6 -0
  458. package/dist/components/reactive-controller.js.map +1 -0
  459. package/dist/components/utils.js +7 -1
  460. package/dist/components/utils.js.map +1 -0
  461. package/dist/components/utils2.js +2 -1
  462. package/dist/components/utils2.js.map +1 -0
  463. package/dist/components/z-accordion.js +2 -1
  464. package/dist/components/z-accordion.js.map +1 -0
  465. package/dist/components/z-alert.js +2 -1
  466. package/dist/components/z-alert.js.map +1 -0
  467. package/dist/components/z-anchor-navigation.js +2 -1
  468. package/dist/components/z-anchor-navigation.js.map +1 -0
  469. package/dist/components/z-app-header-deprecated.js +2 -1
  470. package/dist/components/z-app-header-deprecated.js.map +1 -0
  471. package/dist/components/z-app-header.js +2 -1
  472. package/dist/components/z-app-header.js.map +1 -0
  473. package/dist/components/z-aria-alert.js +2 -1
  474. package/dist/components/z-aria-alert.js.map +1 -0
  475. package/dist/components/z-avatar.js +2 -1
  476. package/dist/components/z-avatar.js.map +1 -0
  477. package/dist/components/z-book-card-app.js +2 -1
  478. package/dist/components/z-book-card-app.js.map +1 -0
  479. package/dist/components/z-book-card-deprecated.js +2 -1
  480. package/dist/components/z-book-card-deprecated.js.map +1 -0
  481. package/dist/components/z-book-card.js +2 -1
  482. package/dist/components/z-book-card.js.map +1 -0
  483. package/dist/components/z-book-cover.js +2 -1
  484. package/dist/components/z-book-cover.js.map +1 -0
  485. package/dist/components/z-breadcrumb.js +2 -1
  486. package/dist/components/z-breadcrumb.js.map +1 -0
  487. package/dist/components/z-button-sort.js +2 -1
  488. package/dist/components/z-button-sort.js.map +1 -0
  489. package/dist/components/z-button.js +2 -1
  490. package/dist/components/z-button.js.map +1 -0
  491. package/dist/components/z-card.js +2 -1
  492. package/dist/components/z-card.js.map +1 -0
  493. package/dist/components/z-carousel.js +2 -1
  494. package/dist/components/z-carousel.js.map +1 -0
  495. package/dist/components/z-chip.js +2 -1
  496. package/dist/components/z-chip.js.map +1 -0
  497. package/dist/components/z-color-picker.js +2 -1
  498. package/dist/components/z-color-picker.js.map +1 -0
  499. package/dist/components/z-combobox.js +2 -1
  500. package/dist/components/z-combobox.js.map +1 -0
  501. package/dist/components/z-cover-hero.js +2 -1
  502. package/dist/components/z-cover-hero.js.map +1 -0
  503. package/dist/components/z-date-picker.js +3 -2
  504. package/dist/components/z-date-picker.js.map +1 -0
  505. package/dist/components/z-divider.js +2 -1
  506. package/dist/components/z-divider.js.map +1 -0
  507. package/dist/components/z-dragdrop-area.js +2 -1
  508. package/dist/components/z-dragdrop-area.js.map +1 -0
  509. package/dist/components/z-file-upload.js +2 -1
  510. package/dist/components/z-file-upload.js.map +1 -0
  511. package/dist/components/z-file.js +2 -1
  512. package/dist/components/z-file.js.map +1 -0
  513. package/dist/components/z-ghost-loading.js +2 -1
  514. package/dist/components/z-ghost-loading.js.map +1 -0
  515. package/dist/components/z-icon.js +2 -1
  516. package/dist/components/z-icon.js.map +1 -0
  517. package/dist/components/z-info-box.js +2 -1
  518. package/dist/components/z-info-box.js.map +1 -0
  519. package/dist/components/z-info-reveal.js +2 -1
  520. package/dist/components/z-info-reveal.js.map +1 -0
  521. package/dist/components/z-input-message.js +2 -1
  522. package/dist/components/z-input-message.js.map +1 -0
  523. package/dist/components/z-input-range.d.ts +11 -0
  524. package/dist/components/z-input-range.js +2 -0
  525. package/dist/components/z-input-range.js.map +1 -0
  526. package/dist/components/z-input.js +2 -1
  527. package/dist/components/z-input.js.map +1 -0
  528. package/dist/components/z-list-element.js +2 -1
  529. package/dist/components/z-list-element.js.map +1 -0
  530. package/dist/components/z-list-group.js +2 -1
  531. package/dist/components/z-list-group.js.map +1 -0
  532. package/dist/components/z-list.js +2 -1
  533. package/dist/components/z-list.js.map +1 -0
  534. package/dist/components/z-logo.js +2 -1
  535. package/dist/components/z-logo.js.map +1 -0
  536. package/dist/components/z-menu-deprecated.js +2 -1
  537. package/dist/components/z-menu-deprecated.js.map +1 -0
  538. package/dist/components/z-menu-section-deprecated.js +2 -1
  539. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  540. package/dist/components/z-menu-section.js +2 -1
  541. package/dist/components/z-menu-section.js.map +1 -0
  542. package/dist/components/z-menu.js +2 -1
  543. package/dist/components/z-menu.js.map +1 -0
  544. package/dist/components/z-modal.js +2 -1
  545. package/dist/components/z-modal.js.map +1 -0
  546. package/dist/components/z-myz-card-alert.js +2 -1
  547. package/dist/components/z-myz-card-alert.js.map +1 -0
  548. package/dist/components/z-myz-card-body.js +2 -1
  549. package/dist/components/z-myz-card-body.js.map +1 -0
  550. package/dist/components/z-myz-card-cover.js +2 -1
  551. package/dist/components/z-myz-card-cover.js.map +1 -0
  552. package/dist/components/z-myz-card-dictionary.js +2 -1
  553. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  554. package/dist/components/z-myz-card-footer-sections.js +2 -1
  555. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  556. package/dist/components/z-myz-card-footer.js +2 -1
  557. package/dist/components/z-myz-card-footer.js.map +1 -0
  558. package/dist/components/z-myz-card-header.js +2 -1
  559. package/dist/components/z-myz-card-header.js.map +1 -0
  560. package/dist/components/z-myz-card-icon.js +2 -1
  561. package/dist/components/z-myz-card-icon.js.map +1 -0
  562. package/dist/components/z-myz-card-info.js +2 -1
  563. package/dist/components/z-myz-card-info.js.map +1 -0
  564. package/dist/components/z-myz-card-list.js +2 -1
  565. package/dist/components/z-myz-card-list.js.map +1 -0
  566. package/dist/components/z-myz-card.js +2 -1
  567. package/dist/components/z-myz-card.js.map +1 -0
  568. package/dist/components/z-myz-list-item.js +2 -1
  569. package/dist/components/z-myz-list-item.js.map +1 -0
  570. package/dist/components/z-myz-list.js +2 -1
  571. package/dist/components/z-myz-list.js.map +1 -0
  572. package/dist/components/z-navigation-tabs.js +2 -1
  573. package/dist/components/z-navigation-tabs.js.map +1 -0
  574. package/dist/components/z-notification.js +2 -1
  575. package/dist/components/z-notification.js.map +1 -0
  576. package/dist/components/z-offcanvas.js +2 -1
  577. package/dist/components/z-offcanvas.js.map +1 -0
  578. package/dist/components/z-otp.js +2 -1
  579. package/dist/components/z-otp.js.map +1 -0
  580. package/dist/components/z-pagination.js +2 -1
  581. package/dist/components/z-pagination.js.map +1 -0
  582. package/dist/components/z-panel-elem.js +2 -1
  583. package/dist/components/z-panel-elem.js.map +1 -0
  584. package/dist/components/z-popover.js +2 -1
  585. package/dist/components/z-popover.js.map +1 -0
  586. package/dist/components/z-range-picker.js +2 -1
  587. package/dist/components/z-range-picker.js.map +1 -0
  588. package/dist/components/z-result-card.js +2 -1
  589. package/dist/components/z-result-card.js.map +1 -0
  590. package/dist/components/z-searchbar.js +2 -1
  591. package/dist/components/z-searchbar.js.map +1 -0
  592. package/dist/components/z-section-title.js +2 -1
  593. package/dist/components/z-section-title.js.map +1 -0
  594. package/dist/components/z-select.js +2 -1
  595. package/dist/components/z-select.js.map +1 -0
  596. package/dist/components/z-skip-to-content.js +2 -1
  597. package/dist/components/z-skip-to-content.js.map +1 -0
  598. package/dist/components/z-slideshow.js +2 -1
  599. package/dist/components/z-slideshow.js.map +1 -0
  600. package/dist/components/z-stepper-item.js +2 -1
  601. package/dist/components/z-stepper-item.js.map +1 -0
  602. package/dist/components/z-stepper.js +2 -1
  603. package/dist/components/z-stepper.js.map +1 -0
  604. package/dist/components/z-table.js +2 -1
  605. package/dist/components/z-table.js.map +1 -0
  606. package/dist/components/z-tag.js +2 -1
  607. package/dist/components/z-tag.js.map +1 -0
  608. package/dist/components/z-tbody.js +2 -1
  609. package/dist/components/z-tbody.js.map +1 -0
  610. package/dist/components/z-td.js +2 -1
  611. package/dist/components/z-td.js.map +1 -0
  612. package/dist/components/z-tfoot.js +2 -1
  613. package/dist/components/z-tfoot.js.map +1 -0
  614. package/dist/components/z-th.js +2 -1
  615. package/dist/components/z-th.js.map +1 -0
  616. package/dist/components/z-thead.js +2 -1
  617. package/dist/components/z-thead.js.map +1 -0
  618. package/dist/components/z-toast-notification-list.js +2 -1
  619. package/dist/components/z-toast-notification-list.js.map +1 -0
  620. package/dist/components/z-toast-notification.js +8 -2
  621. package/dist/components/z-toast-notification.js.map +1 -0
  622. package/dist/components/z-toggle-button.js +2 -1
  623. package/dist/components/z-toggle-button.js.map +1 -0
  624. package/dist/components/z-toggle-switch.js +2 -1
  625. package/dist/components/z-toggle-switch.js.map +1 -0
  626. package/dist/components/z-tool.js +2 -1
  627. package/dist/components/z-tool.js.map +1 -0
  628. package/dist/components/z-toolbar.js +2 -1
  629. package/dist/components/z-toolbar.js.map +1 -0
  630. package/dist/components/z-tooltip.js +2 -1
  631. package/dist/components/z-tooltip.js.map +1 -0
  632. package/dist/components/z-tr.js +2 -1
  633. package/dist/components/z-tr.js.map +1 -0
  634. package/dist/components/z-tree-list.js +2 -1
  635. package/dist/components/z-tree-list.js.map +1 -0
  636. package/dist/components/z-visually-hidden.js +2 -1
  637. package/dist/components/z-visually-hidden.js.map +1 -0
  638. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  639. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  640. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  641. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  642. package/dist/esm/iconset-AwzX9V8L.js +1027 -0
  643. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  644. package/dist/esm/index-B3nR3-Jw.js +413 -0
  645. package/dist/esm/index-B3nR3-Jw.js.map +1 -0
  646. package/dist/esm/index-BEHxru6n.js +2697 -0
  647. package/dist/esm/index-BEHxru6n.js.map +1 -0
  648. package/dist/esm/index.js +6 -3
  649. package/dist/esm/index.js.map +1 -0
  650. package/dist/esm/loader.js +6 -3
  651. package/dist/esm/loader.js.map +1 -0
  652. package/dist/esm/reactive-controller-DXvzHFid.js +1443 -0
  653. package/dist/esm/reactive-controller-DXvzHFid.js.map +1 -0
  654. package/dist/esm/utils-C9lc3rtK.js +896 -0
  655. package/dist/esm/utils-C9lc3rtK.js.map +1 -0
  656. package/dist/esm/utils-DP4zBIll.js +2715 -0
  657. package/dist/esm/utils-DP4zBIll.js.map +1 -0
  658. package/dist/esm/web-components-library.js +6 -3
  659. package/dist/esm/web-components-library.js.map +1 -0
  660. package/dist/esm/z-accordion.entry.js +6 -3
  661. package/dist/esm/z-accordion.entry.js.map +1 -0
  662. package/dist/esm/z-alert.entry.js +5 -2
  663. package/dist/esm/z-alert.entry.js.map +1 -0
  664. package/dist/esm/z-anchor-navigation.entry.js +7 -4
  665. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  666. package/dist/esm/z-app-header-deprecated.entry.js +6 -3
  667. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  668. package/dist/esm/z-app-header_12.entry.js +101 -135
  669. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  670. package/dist/esm/z-aria-alert.entry.js +6 -3
  671. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  672. package/dist/esm/z-avatar.entry.js +7 -4
  673. package/dist/esm/z-avatar.entry.js.map +1 -0
  674. package/dist/esm/z-book-card-app.entry.js +6 -3
  675. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  676. package/dist/esm/z-book-card-deprecated.entry.js +7 -4
  677. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  678. package/dist/esm/z-book-card.entry.js +6 -3
  679. package/dist/esm/z-book-card.entry.js.map +1 -0
  680. package/dist/esm/z-book-cover.entry.js +5 -2
  681. package/dist/esm/z-book-cover.entry.js.map +1 -0
  682. package/dist/esm/z-breadcrumb.entry.js +8 -5
  683. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  684. package/dist/esm/z-button-sort.entry.js +5 -2
  685. package/dist/esm/z-button-sort.entry.js.map +1 -0
  686. package/dist/esm/z-card.entry.js +5 -2
  687. package/dist/esm/z-card.entry.js.map +1 -0
  688. package/dist/esm/z-carousel.entry.js +6 -3
  689. package/dist/esm/z-carousel.entry.js.map +1 -0
  690. package/dist/esm/z-chip.entry.js +7 -4
  691. package/dist/esm/z-chip.entry.js.map +1 -0
  692. package/dist/esm/z-color-picker.entry.js +7 -4
  693. package/dist/esm/z-color-picker.entry.js.map +1 -0
  694. package/dist/esm/z-combobox.entry.js +21 -15
  695. package/dist/esm/z-combobox.entry.js.map +1 -0
  696. package/dist/esm/z-cover-hero.entry.js +7 -4
  697. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  698. package/dist/esm/z-date-picker.entry.js +7 -4
  699. package/dist/esm/z-date-picker.entry.js.map +1 -0
  700. package/dist/esm/z-dragdrop-area_2.entry.js +25 -41
  701. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  702. package/dist/esm/z-file-upload.entry.js +7 -4
  703. package/dist/esm/z-file-upload.entry.js.map +1 -0
  704. package/dist/esm/z-file.entry.js +6 -3
  705. package/dist/esm/z-file.entry.js.map +1 -0
  706. package/dist/esm/z-ghost-loading.entry.js +5 -2
  707. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  708. package/dist/esm/z-info-box.entry.js +5 -2
  709. package/dist/esm/z-info-box.entry.js.map +1 -0
  710. package/dist/esm/z-info-reveal.entry.js +6 -3
  711. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  712. package/dist/esm/z-input-range.entry.js +143 -0
  713. package/dist/esm/z-input-range.entry.js.map +1 -0
  714. package/dist/esm/z-logo.entry.js +6 -3
  715. package/dist/esm/z-logo.entry.js.map +1 -0
  716. package/dist/esm/z-menu-deprecated.entry.js +6 -3
  717. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  718. package/dist/esm/z-menu-section-deprecated.entry.js +5 -2
  719. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  720. package/dist/esm/z-menu-section.entry.js +6 -3
  721. package/dist/esm/z-menu-section.entry.js.map +1 -0
  722. package/dist/esm/z-menu.entry.js +6 -3
  723. package/dist/esm/z-menu.entry.js.map +1 -0
  724. package/dist/esm/z-myz-card-alert.entry.js +6 -3
  725. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  726. package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
  727. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  728. package/dist/esm/z-myz-card-footer-sections.entry.js +5 -2
  729. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  730. package/dist/esm/z-myz-card-footer.entry.js +6 -3
  731. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  732. package/dist/esm/z-myz-card-icon.entry.js +5 -2
  733. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  734. package/dist/esm/z-myz-card-info.entry.js +7 -4
  735. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  736. package/dist/esm/z-myz-card-list.entry.js +5 -2
  737. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  738. package/dist/esm/z-myz-card_4.entry.js +9 -6
  739. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  740. package/dist/esm/z-myz-list-item.entry.js +7 -4
  741. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  742. package/dist/esm/z-myz-list.entry.js +5 -2
  743. package/dist/esm/z-myz-list.entry.js.map +1 -0
  744. package/dist/esm/z-navigation-tabs.entry.js +7 -4
  745. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  746. package/dist/esm/z-notification.entry.js +5 -2
  747. package/dist/esm/z-notification.entry.js.map +1 -0
  748. package/dist/esm/z-otp.entry.js +7 -4
  749. package/dist/esm/z-otp.entry.js.map +1 -0
  750. package/dist/esm/z-pagination.entry.js +5 -2
  751. package/dist/esm/z-pagination.entry.js.map +1 -0
  752. package/dist/esm/z-panel-elem.entry.js +6 -3
  753. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  754. package/dist/esm/z-popover.entry.js +7 -4
  755. package/dist/esm/z-popover.entry.js.map +1 -0
  756. package/dist/esm/z-range-picker.entry.js +9 -6
  757. package/dist/esm/z-range-picker.entry.js.map +1 -0
  758. package/dist/esm/z-result-card.entry.js +5 -2
  759. package/dist/esm/z-result-card.entry.js.map +1 -0
  760. package/dist/esm/z-section-title.entry.js +6 -3
  761. package/dist/esm/z-section-title.entry.js.map +1 -0
  762. package/dist/esm/z-select.entry.js +13 -14
  763. package/dist/esm/z-select.entry.js.map +1 -0
  764. package/dist/esm/z-skip-to-content.entry.js +7 -4
  765. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  766. package/dist/esm/z-slideshow.entry.js +6 -3
  767. package/dist/esm/z-slideshow.entry.js.map +1 -0
  768. package/dist/esm/z-stepper-item.entry.js +5 -2
  769. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  770. package/dist/esm/z-stepper.entry.js +5 -2
  771. package/dist/esm/z-stepper.entry.js.map +1 -0
  772. package/dist/esm/z-table.entry.js +7 -4
  773. package/dist/esm/z-table.entry.js.map +1 -0
  774. package/dist/esm/z-tbody.entry.js +5 -2
  775. package/dist/esm/z-tbody.entry.js.map +1 -0
  776. package/dist/esm/z-td.entry.js +6 -3
  777. package/dist/esm/z-td.entry.js.map +1 -0
  778. package/dist/esm/z-tfoot.entry.js +5 -2
  779. package/dist/esm/z-tfoot.entry.js.map +1 -0
  780. package/dist/esm/z-th.entry.js +6 -3
  781. package/dist/esm/z-th.entry.js.map +1 -0
  782. package/dist/esm/z-thead.entry.js +5 -2
  783. package/dist/esm/z-thead.entry.js.map +1 -0
  784. package/dist/esm/z-toast-notification-list.entry.js +6 -3
  785. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  786. package/dist/esm/z-toast-notification.entry.js +8 -5
  787. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  788. package/dist/esm/z-toggle-button.entry.js +6 -3
  789. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  790. package/dist/esm/z-toggle-switch.entry.js +9 -6
  791. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  792. package/dist/esm/z-tool.entry.js +8 -5
  793. package/dist/esm/z-tool.entry.js.map +1 -0
  794. package/dist/esm/z-toolbar.entry.js +6 -3
  795. package/dist/esm/z-toolbar.entry.js.map +1 -0
  796. package/dist/esm/z-tooltip.entry.js +6 -3
  797. package/dist/esm/z-tooltip.entry.js.map +1 -0
  798. package/dist/esm/z-tr.entry.js +8 -5
  799. package/dist/esm/z-tr.entry.js.map +1 -0
  800. package/dist/esm/z-tree-list.entry.js +6 -3
  801. package/dist/esm/z-tree-list.entry.js.map +1 -0
  802. package/dist/esm/z-visually-hidden.entry.js +5 -2
  803. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  804. package/dist/types/beans/index.d.ts +4 -0
  805. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  806. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  807. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  808. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  809. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  810. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  811. package/dist/types/components/table/z-table/index.d.ts +0 -1
  812. package/dist/types/components/z-accordion/index.d.ts +2 -10
  813. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  814. package/dist/types/components/z-app-header/index.d.ts +4 -6
  815. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  816. package/dist/types/components/z-button/index.d.ts +1 -1
  817. package/dist/types/components/z-card/index.d.ts +1 -8
  818. package/dist/types/components/z-carousel/index.d.ts +0 -2
  819. package/dist/types/components/z-combobox/index.d.ts +1 -0
  820. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  821. package/dist/types/components/z-icon/index.d.ts +13 -0
  822. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  823. package/dist/types/components/z-input/index.d.ts +6 -4
  824. package/dist/types/components/z-input-range/index.d.ts +83 -0
  825. package/dist/types/components/z-menu/index.d.ts +0 -1
  826. package/dist/types/components/z-modal/index.d.ts +4 -11
  827. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  828. package/dist/types/components/z-notification/index.d.ts +0 -3
  829. package/dist/types/components/z-offcanvas/index.d.ts +12 -37
  830. package/dist/types/components/z-pagination/index.d.ts +0 -2
  831. package/dist/types/components/z-popover/index.d.ts +0 -5
  832. package/dist/types/components/z-searchbar/index.d.ts +0 -5
  833. package/dist/types/components/z-select/index.d.ts +0 -1
  834. package/dist/types/components/z-tag/index.d.ts +0 -2
  835. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  836. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  837. package/dist/types/components.d.ts +213 -606
  838. package/dist/types/constants/iconset.d.ts +4 -4
  839. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  840. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  841. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  842. package/dist/types/utils/reactive-controller.d.ts +39 -0
  843. package/dist/types/utils/storybook-utils.d.ts +7 -2
  844. package/dist/types/utils/utils.d.ts +12 -0
  845. package/dist/web-components-library/index.esm.js +2 -1
  846. package/dist/web-components-library/index.esm.js.map +1 -0
  847. package/dist/web-components-library/p-0a10c7d7.entry.js +2 -0
  848. package/dist/web-components-library/p-0a10c7d7.entry.js.map +1 -0
  849. package/dist/web-components-library/p-0de3e2fa.entry.js +2 -0
  850. package/dist/web-components-library/p-0de3e2fa.entry.js.map +1 -0
  851. package/dist/web-components-library/p-0eb833b6.entry.js +2 -0
  852. package/dist/web-components-library/p-0eb833b6.entry.js.map +1 -0
  853. package/dist/web-components-library/p-17a9c2b3.entry.js +2 -0
  854. package/dist/web-components-library/p-17a9c2b3.entry.js.map +1 -0
  855. package/dist/web-components-library/p-235a1c1d.entry.js +2 -0
  856. package/dist/web-components-library/p-235a1c1d.entry.js.map +1 -0
  857. package/dist/web-components-library/p-286690fd.entry.js +2 -0
  858. package/dist/web-components-library/p-286690fd.entry.js.map +1 -0
  859. package/dist/web-components-library/p-288c1f55.entry.js +2 -0
  860. package/dist/web-components-library/p-288c1f55.entry.js.map +1 -0
  861. package/dist/web-components-library/p-2b05eaef.entry.js +2 -0
  862. package/dist/web-components-library/p-2b05eaef.entry.js.map +1 -0
  863. package/dist/web-components-library/p-2c63a798.entry.js +2 -0
  864. package/dist/web-components-library/p-2c63a798.entry.js.map +1 -0
  865. package/dist/web-components-library/p-315ac39c.entry.js +2 -0
  866. package/dist/web-components-library/p-315ac39c.entry.js.map +1 -0
  867. package/dist/web-components-library/p-35653b5e.entry.js +2 -0
  868. package/dist/web-components-library/p-35653b5e.entry.js.map +1 -0
  869. package/dist/web-components-library/p-38e4e01f.entry.js +2 -0
  870. package/dist/web-components-library/p-38e4e01f.entry.js.map +1 -0
  871. package/dist/web-components-library/p-3b3e1ffb.entry.js +2 -0
  872. package/dist/web-components-library/p-3b3e1ffb.entry.js.map +1 -0
  873. package/dist/web-components-library/p-3b7f5d80.entry.js +2 -0
  874. package/dist/web-components-library/p-3b7f5d80.entry.js.map +1 -0
  875. package/dist/web-components-library/p-40694478.entry.js +2 -0
  876. package/dist/web-components-library/p-40694478.entry.js.map +1 -0
  877. package/dist/web-components-library/p-440e5b62.entry.js +2 -0
  878. package/dist/web-components-library/p-440e5b62.entry.js.map +1 -0
  879. package/dist/web-components-library/p-44410388.entry.js +2 -0
  880. package/dist/web-components-library/p-44410388.entry.js.map +1 -0
  881. package/dist/web-components-library/p-508eb530.entry.js +2 -0
  882. package/dist/web-components-library/p-508eb530.entry.js.map +1 -0
  883. package/dist/web-components-library/p-50a09bf1.entry.js +2 -0
  884. package/dist/web-components-library/p-50a09bf1.entry.js.map +1 -0
  885. package/dist/web-components-library/p-54f98f8e.entry.js +2 -0
  886. package/dist/web-components-library/p-54f98f8e.entry.js.map +1 -0
  887. package/dist/web-components-library/p-5a0424cd.entry.js +2 -0
  888. package/dist/web-components-library/p-5a0424cd.entry.js.map +1 -0
  889. package/dist/web-components-library/p-5ba350d8.entry.js +2 -0
  890. package/dist/web-components-library/p-5ba350d8.entry.js.map +1 -0
  891. package/dist/web-components-library/p-643aaedc.entry.js +2 -0
  892. package/dist/web-components-library/p-643aaedc.entry.js.map +1 -0
  893. package/dist/web-components-library/p-654cbe9f.entry.js +2 -0
  894. package/dist/web-components-library/p-654cbe9f.entry.js.map +1 -0
  895. package/dist/web-components-library/p-6fc4fd53.entry.js +2 -0
  896. package/dist/web-components-library/p-6fc4fd53.entry.js.map +1 -0
  897. package/dist/web-components-library/p-72356b43.entry.js +2 -0
  898. package/dist/web-components-library/p-72356b43.entry.js.map +1 -0
  899. package/dist/web-components-library/p-723c700f.entry.js +2 -0
  900. package/dist/web-components-library/p-723c700f.entry.js.map +1 -0
  901. package/dist/web-components-library/p-72da35ee.entry.js +2 -0
  902. package/dist/web-components-library/p-72da35ee.entry.js.map +1 -0
  903. package/dist/web-components-library/p-7313202f.entry.js +2 -0
  904. package/dist/web-components-library/p-7313202f.entry.js.map +1 -0
  905. package/dist/web-components-library/p-73ed9922.entry.js +2 -0
  906. package/dist/web-components-library/p-73ed9922.entry.js.map +1 -0
  907. package/dist/web-components-library/p-779a7476.entry.js +2 -0
  908. package/dist/web-components-library/p-779a7476.entry.js.map +1 -0
  909. package/dist/web-components-library/p-7a25961e.entry.js +2 -0
  910. package/dist/web-components-library/p-7a25961e.entry.js.map +1 -0
  911. package/dist/web-components-library/p-7dfb5290.entry.js +2 -0
  912. package/dist/web-components-library/p-7dfb5290.entry.js.map +1 -0
  913. package/dist/web-components-library/p-7fff6cfd.entry.js +2 -0
  914. package/dist/web-components-library/p-7fff6cfd.entry.js.map +1 -0
  915. package/dist/web-components-library/p-8041306f.entry.js +2 -0
  916. package/dist/web-components-library/p-8041306f.entry.js.map +1 -0
  917. package/dist/web-components-library/p-8046cab0.entry.js +2 -0
  918. package/dist/web-components-library/p-8046cab0.entry.js.map +1 -0
  919. package/dist/web-components-library/p-82c43c62.entry.js +2 -0
  920. package/dist/web-components-library/p-82c43c62.entry.js.map +1 -0
  921. package/dist/web-components-library/p-82e04f79.entry.js +2 -0
  922. package/dist/web-components-library/p-82e04f79.entry.js.map +1 -0
  923. package/dist/web-components-library/p-87a5a352.entry.js +2 -0
  924. package/dist/web-components-library/p-87a5a352.entry.js.map +1 -0
  925. package/dist/web-components-library/p-8b0c232c.entry.js +2 -0
  926. package/dist/web-components-library/p-8b0c232c.entry.js.map +1 -0
  927. package/dist/web-components-library/p-8b1f745c.entry.js +2 -0
  928. package/dist/web-components-library/p-8b1f745c.entry.js.map +1 -0
  929. package/dist/web-components-library/p-8bd0e3e2.entry.js +2 -0
  930. package/dist/web-components-library/p-8bd0e3e2.entry.js.map +1 -0
  931. package/dist/web-components-library/p-8ca86be7.entry.js +2 -0
  932. package/dist/web-components-library/p-8ca86be7.entry.js.map +1 -0
  933. package/dist/web-components-library/p-8ce8d90d.entry.js +2 -0
  934. package/dist/web-components-library/p-8ce8d90d.entry.js.map +1 -0
  935. package/dist/web-components-library/p-927d9062.entry.js +2 -0
  936. package/dist/web-components-library/p-927d9062.entry.js.map +1 -0
  937. package/dist/web-components-library/p-931f2a16.entry.js +2 -0
  938. package/dist/web-components-library/p-931f2a16.entry.js.map +1 -0
  939. package/dist/web-components-library/p-960cd1d9.entry.js +2 -0
  940. package/dist/web-components-library/p-960cd1d9.entry.js.map +1 -0
  941. package/dist/web-components-library/p-9f0e91f5.entry.js +2 -0
  942. package/dist/web-components-library/p-9f0e91f5.entry.js.map +1 -0
  943. package/dist/web-components-library/p-AwzX9V8L.js +2 -0
  944. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  945. package/dist/web-components-library/p-B3nR3-Jw.js +2 -0
  946. package/dist/web-components-library/p-B3nR3-Jw.js.map +1 -0
  947. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  948. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  949. package/dist/web-components-library/p-BEHxru6n.js +3 -0
  950. package/dist/web-components-library/p-BEHxru6n.js.map +1 -0
  951. package/dist/web-components-library/p-Bx6o9v2_.js +2 -0
  952. package/dist/web-components-library/p-Bx6o9v2_.js.map +1 -0
  953. package/dist/web-components-library/p-C8pbzcmM.js +7 -0
  954. package/dist/web-components-library/p-C8pbzcmM.js.map +1 -0
  955. package/dist/web-components-library/p-CscBC1Z4.js +6 -0
  956. package/dist/web-components-library/p-CscBC1Z4.js.map +1 -0
  957. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  958. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  959. package/dist/web-components-library/p-a1db3939.entry.js +2 -0
  960. package/dist/web-components-library/p-a1db3939.entry.js.map +1 -0
  961. package/dist/web-components-library/p-a6f29ff5.entry.js +2 -0
  962. package/dist/web-components-library/p-a6f29ff5.entry.js.map +1 -0
  963. package/dist/web-components-library/p-a8e42a7c.entry.js +2 -0
  964. package/dist/web-components-library/p-a8e42a7c.entry.js.map +1 -0
  965. package/dist/web-components-library/p-a8fe9ae0.entry.js +2 -0
  966. package/dist/web-components-library/p-a8fe9ae0.entry.js.map +1 -0
  967. package/dist/web-components-library/p-ab64e360.entry.js +2 -0
  968. package/dist/web-components-library/p-ab64e360.entry.js.map +1 -0
  969. package/dist/web-components-library/p-acba8f34.entry.js +2 -0
  970. package/dist/web-components-library/p-acba8f34.entry.js.map +1 -0
  971. package/dist/web-components-library/p-ace68b04.entry.js +2 -0
  972. package/dist/web-components-library/p-ace68b04.entry.js.map +1 -0
  973. package/dist/web-components-library/p-ad88d4a5.entry.js +2 -0
  974. package/dist/web-components-library/p-ad88d4a5.entry.js.map +1 -0
  975. package/dist/web-components-library/p-ae8d5494.entry.js +2 -0
  976. package/dist/web-components-library/p-ae8d5494.entry.js.map +1 -0
  977. package/dist/web-components-library/p-af8fec68.entry.js +17 -0
  978. package/dist/web-components-library/p-af8fec68.entry.js.map +1 -0
  979. package/dist/web-components-library/p-b4140668.entry.js +2 -0
  980. package/dist/web-components-library/p-b4140668.entry.js.map +1 -0
  981. package/dist/web-components-library/p-bff500a3.entry.js +2 -0
  982. package/dist/web-components-library/p-bff500a3.entry.js.map +1 -0
  983. package/dist/web-components-library/p-d09060af.entry.js +2 -0
  984. package/dist/web-components-library/p-d09060af.entry.js.map +1 -0
  985. package/dist/web-components-library/p-da213c6e.entry.js +2 -0
  986. package/dist/web-components-library/p-da213c6e.entry.js.map +1 -0
  987. package/dist/web-components-library/p-e4622c5d.entry.js +2 -0
  988. package/dist/web-components-library/p-e4622c5d.entry.js.map +1 -0
  989. package/dist/web-components-library/p-e7e98d15.entry.js +2 -0
  990. package/dist/web-components-library/p-e7e98d15.entry.js.map +1 -0
  991. package/dist/web-components-library/p-e87e13b0.entry.js +2 -0
  992. package/dist/web-components-library/p-e87e13b0.entry.js.map +1 -0
  993. package/dist/web-components-library/p-e9212c7a.entry.js +2 -0
  994. package/dist/web-components-library/p-e9212c7a.entry.js.map +1 -0
  995. package/dist/web-components-library/p-e9722221.entry.js +8 -0
  996. package/dist/web-components-library/p-e9722221.entry.js.map +1 -0
  997. package/dist/web-components-library/p-e9ed3594.entry.js +2 -0
  998. package/dist/web-components-library/p-e9ed3594.entry.js.map +1 -0
  999. package/dist/web-components-library/p-eb5e4333.entry.js +2 -0
  1000. package/dist/web-components-library/p-eb5e4333.entry.js.map +1 -0
  1001. package/dist/web-components-library/p-ee711acf.entry.js +2 -0
  1002. package/dist/web-components-library/p-ee711acf.entry.js.map +1 -0
  1003. package/dist/web-components-library/p-fa4e8b1b.entry.js +2 -0
  1004. package/dist/web-components-library/p-fa4e8b1b.entry.js.map +1 -0
  1005. package/dist/web-components-library/p-fe279683.entry.js +2 -0
  1006. package/dist/web-components-library/p-fe279683.entry.js.map +1 -0
  1007. package/dist/web-components-library/web-components-library.esm.js +2 -1
  1008. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  1009. package/package.json +17 -17
  1010. package/react/components.d.ts +1 -0
  1011. package/react/components.js +3 -2
  1012. package/readme.md +8 -19
  1013. package/www/build/index.esm.js +2 -1
  1014. package/www/build/index.esm.js.map +1 -0
  1015. package/www/build/p-0a10c7d7.entry.js +2 -0
  1016. package/www/build/p-0a10c7d7.entry.js.map +1 -0
  1017. package/www/build/p-0de3e2fa.entry.js +2 -0
  1018. package/www/build/p-0de3e2fa.entry.js.map +1 -0
  1019. package/www/build/p-0eb833b6.entry.js +2 -0
  1020. package/www/build/p-0eb833b6.entry.js.map +1 -0
  1021. package/www/build/p-17a9c2b3.entry.js +2 -0
  1022. package/www/build/p-17a9c2b3.entry.js.map +1 -0
  1023. package/www/build/p-235a1c1d.entry.js +2 -0
  1024. package/www/build/p-235a1c1d.entry.js.map +1 -0
  1025. package/www/build/p-286690fd.entry.js +2 -0
  1026. package/www/build/p-286690fd.entry.js.map +1 -0
  1027. package/www/build/p-288c1f55.entry.js +2 -0
  1028. package/www/build/p-288c1f55.entry.js.map +1 -0
  1029. package/www/build/p-2b05eaef.entry.js +2 -0
  1030. package/www/build/p-2b05eaef.entry.js.map +1 -0
  1031. package/www/build/p-2c63a798.entry.js +2 -0
  1032. package/www/build/p-2c63a798.entry.js.map +1 -0
  1033. package/www/build/p-315ac39c.entry.js +2 -0
  1034. package/www/build/p-315ac39c.entry.js.map +1 -0
  1035. package/www/build/p-35653b5e.entry.js +2 -0
  1036. package/www/build/p-35653b5e.entry.js.map +1 -0
  1037. package/www/build/p-38e4e01f.entry.js +2 -0
  1038. package/www/build/p-38e4e01f.entry.js.map +1 -0
  1039. package/www/build/p-3b3e1ffb.entry.js +2 -0
  1040. package/www/build/p-3b3e1ffb.entry.js.map +1 -0
  1041. package/www/build/p-3b7f5d80.entry.js +2 -0
  1042. package/www/build/p-3b7f5d80.entry.js.map +1 -0
  1043. package/www/build/p-40694478.entry.js +2 -0
  1044. package/www/build/p-40694478.entry.js.map +1 -0
  1045. package/www/build/p-440e5b62.entry.js +2 -0
  1046. package/www/build/p-440e5b62.entry.js.map +1 -0
  1047. package/www/build/p-44410388.entry.js +2 -0
  1048. package/www/build/p-44410388.entry.js.map +1 -0
  1049. package/www/build/p-508eb530.entry.js +2 -0
  1050. package/www/build/p-508eb530.entry.js.map +1 -0
  1051. package/www/build/p-50a09bf1.entry.js +2 -0
  1052. package/www/build/p-50a09bf1.entry.js.map +1 -0
  1053. package/www/build/p-54f98f8e.entry.js +2 -0
  1054. package/www/build/p-54f98f8e.entry.js.map +1 -0
  1055. package/www/build/p-5a0424cd.entry.js +2 -0
  1056. package/www/build/p-5a0424cd.entry.js.map +1 -0
  1057. package/www/build/p-5ba350d8.entry.js +2 -0
  1058. package/www/build/p-5ba350d8.entry.js.map +1 -0
  1059. package/www/build/p-643aaedc.entry.js +2 -0
  1060. package/www/build/p-643aaedc.entry.js.map +1 -0
  1061. package/www/build/p-654cbe9f.entry.js +2 -0
  1062. package/www/build/p-654cbe9f.entry.js.map +1 -0
  1063. package/www/build/p-6fc4fd53.entry.js +2 -0
  1064. package/www/build/p-6fc4fd53.entry.js.map +1 -0
  1065. package/www/build/p-72356b43.entry.js +2 -0
  1066. package/www/build/p-72356b43.entry.js.map +1 -0
  1067. package/www/build/p-723c700f.entry.js +2 -0
  1068. package/www/build/p-723c700f.entry.js.map +1 -0
  1069. package/www/build/p-72da35ee.entry.js +2 -0
  1070. package/www/build/p-72da35ee.entry.js.map +1 -0
  1071. package/www/build/p-7313202f.entry.js +2 -0
  1072. package/www/build/p-7313202f.entry.js.map +1 -0
  1073. package/www/build/p-73ed9922.entry.js +2 -0
  1074. package/www/build/p-73ed9922.entry.js.map +1 -0
  1075. package/www/build/p-779a7476.entry.js +2 -0
  1076. package/www/build/p-779a7476.entry.js.map +1 -0
  1077. package/www/build/p-7a25961e.entry.js +2 -0
  1078. package/www/build/p-7a25961e.entry.js.map +1 -0
  1079. package/www/build/p-7dfb5290.entry.js +2 -0
  1080. package/www/build/p-7dfb5290.entry.js.map +1 -0
  1081. package/www/build/p-7fff6cfd.entry.js +2 -0
  1082. package/www/build/p-7fff6cfd.entry.js.map +1 -0
  1083. package/www/build/p-8041306f.entry.js +2 -0
  1084. package/www/build/p-8041306f.entry.js.map +1 -0
  1085. package/www/build/p-8046cab0.entry.js +2 -0
  1086. package/www/build/p-8046cab0.entry.js.map +1 -0
  1087. package/www/build/p-82c43c62.entry.js +2 -0
  1088. package/www/build/p-82c43c62.entry.js.map +1 -0
  1089. package/www/build/p-82e04f79.entry.js +2 -0
  1090. package/www/build/p-82e04f79.entry.js.map +1 -0
  1091. package/www/build/p-87a5a352.entry.js +2 -0
  1092. package/www/build/p-87a5a352.entry.js.map +1 -0
  1093. package/www/build/p-8b0c232c.entry.js +2 -0
  1094. package/www/build/p-8b0c232c.entry.js.map +1 -0
  1095. package/www/build/p-8b1f745c.entry.js +2 -0
  1096. package/www/build/p-8b1f745c.entry.js.map +1 -0
  1097. package/www/build/p-8bd0e3e2.entry.js +2 -0
  1098. package/www/build/p-8bd0e3e2.entry.js.map +1 -0
  1099. package/www/build/p-8ca86be7.entry.js +2 -0
  1100. package/www/build/p-8ca86be7.entry.js.map +1 -0
  1101. package/www/build/p-8ce8d90d.entry.js +2 -0
  1102. package/www/build/p-8ce8d90d.entry.js.map +1 -0
  1103. package/www/build/p-927d9062.entry.js +2 -0
  1104. package/www/build/p-927d9062.entry.js.map +1 -0
  1105. package/www/build/p-931f2a16.entry.js +2 -0
  1106. package/www/build/p-931f2a16.entry.js.map +1 -0
  1107. package/www/build/p-960cd1d9.entry.js +2 -0
  1108. package/www/build/p-960cd1d9.entry.js.map +1 -0
  1109. package/www/build/p-9f0e91f5.entry.js +2 -0
  1110. package/www/build/p-9f0e91f5.entry.js.map +1 -0
  1111. package/www/build/p-AwzX9V8L.js +2 -0
  1112. package/www/build/p-AwzX9V8L.js.map +1 -0
  1113. package/www/build/p-B3nR3-Jw.js +2 -0
  1114. package/www/build/p-B3nR3-Jw.js.map +1 -0
  1115. package/www/build/p-B85MJLTf.js +2 -1
  1116. package/www/build/p-B85MJLTf.js.map +1 -0
  1117. package/www/build/p-BEHxru6n.js +3 -0
  1118. package/www/build/p-BEHxru6n.js.map +1 -0
  1119. package/www/build/p-Bx6o9v2_.js +2 -0
  1120. package/www/build/p-Bx6o9v2_.js.map +1 -0
  1121. package/www/build/p-C8pbzcmM.js +7 -0
  1122. package/www/build/p-C8pbzcmM.js.map +1 -0
  1123. package/www/build/p-CscBC1Z4.js +6 -0
  1124. package/www/build/p-CscBC1Z4.js.map +1 -0
  1125. package/www/build/p-Q-tWjk7P.js +2 -1
  1126. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1127. package/www/build/p-a1db3939.entry.js +2 -0
  1128. package/www/build/p-a1db3939.entry.js.map +1 -0
  1129. package/www/build/p-a6f29ff5.entry.js +2 -0
  1130. package/www/build/p-a6f29ff5.entry.js.map +1 -0
  1131. package/www/build/p-a8e42a7c.entry.js +2 -0
  1132. package/www/build/p-a8e42a7c.entry.js.map +1 -0
  1133. package/www/build/p-a8fe9ae0.entry.js +2 -0
  1134. package/www/build/p-a8fe9ae0.entry.js.map +1 -0
  1135. package/www/build/p-ab64e360.entry.js +2 -0
  1136. package/www/build/p-ab64e360.entry.js.map +1 -0
  1137. package/www/build/p-acba8f34.entry.js +2 -0
  1138. package/www/build/p-acba8f34.entry.js.map +1 -0
  1139. package/www/build/p-ace68b04.entry.js +2 -0
  1140. package/www/build/p-ace68b04.entry.js.map +1 -0
  1141. package/www/build/p-ad88d4a5.entry.js +2 -0
  1142. package/www/build/p-ad88d4a5.entry.js.map +1 -0
  1143. package/www/build/p-ae8d5494.entry.js +2 -0
  1144. package/www/build/p-ae8d5494.entry.js.map +1 -0
  1145. package/www/build/p-af8fec68.entry.js +17 -0
  1146. package/www/build/p-af8fec68.entry.js.map +1 -0
  1147. package/www/build/p-b289ae9e.js +2 -0
  1148. package/www/build/p-b4140668.entry.js +2 -0
  1149. package/www/build/p-b4140668.entry.js.map +1 -0
  1150. package/www/build/p-bff500a3.entry.js +2 -0
  1151. package/www/build/p-bff500a3.entry.js.map +1 -0
  1152. package/www/build/p-d09060af.entry.js +2 -0
  1153. package/www/build/p-d09060af.entry.js.map +1 -0
  1154. package/www/build/p-da213c6e.entry.js +2 -0
  1155. package/www/build/p-da213c6e.entry.js.map +1 -0
  1156. package/www/build/p-e4622c5d.entry.js +2 -0
  1157. package/www/build/p-e4622c5d.entry.js.map +1 -0
  1158. package/www/build/p-e7e98d15.entry.js +2 -0
  1159. package/www/build/p-e7e98d15.entry.js.map +1 -0
  1160. package/www/build/p-e87e13b0.entry.js +2 -0
  1161. package/www/build/p-e87e13b0.entry.js.map +1 -0
  1162. package/www/build/p-e9212c7a.entry.js +2 -0
  1163. package/www/build/p-e9212c7a.entry.js.map +1 -0
  1164. package/www/build/p-e9722221.entry.js +8 -0
  1165. package/www/build/p-e9722221.entry.js.map +1 -0
  1166. package/www/build/p-e9ed3594.entry.js +2 -0
  1167. package/www/build/p-e9ed3594.entry.js.map +1 -0
  1168. package/www/build/p-eb5e4333.entry.js +2 -0
  1169. package/www/build/p-eb5e4333.entry.js.map +1 -0
  1170. package/www/build/p-ee711acf.entry.js +2 -0
  1171. package/www/build/p-ee711acf.entry.js.map +1 -0
  1172. package/www/build/p-fa4e8b1b.entry.js +2 -0
  1173. package/www/build/p-fa4e8b1b.entry.js.map +1 -0
  1174. package/www/build/p-fe279683.entry.js +2 -0
  1175. package/www/build/p-fe279683.entry.js.map +1 -0
  1176. package/www/build/web-components-library.esm.js +2 -1
  1177. package/www/build/web-components-library.esm.js.map +1 -0
  1178. package/www/index.html +1 -1
  1179. package/dist/cjs/iconset-oiCBBbd2.js +0 -1027
  1180. package/dist/cjs/index-D_S5lGcb.js +0 -2683
  1181. package/dist/cjs/index-wGaSHN1_.js +0 -407
  1182. package/dist/cjs/utils-C5_wGVkJ.js +0 -2718
  1183. package/dist/cjs/utils-Ctc6JP2n.js +0 -259
  1184. package/dist/collection/__mocks__/fileMock.js +0 -1
  1185. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  1186. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  1187. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  1188. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  1189. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  1190. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  1191. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  1192. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  1193. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  1194. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  1195. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  1196. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  1197. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  1198. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  1199. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  1200. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  1201. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  1202. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  1203. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  1204. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  1205. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  1206. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  1207. package/dist/collection/components/z-app-header/index.stories.js +0 -318
  1208. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  1209. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  1210. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  1211. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  1212. package/dist/collection/components/z-button/index.stories.js +0 -103
  1213. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  1214. package/dist/collection/components/z-card/index.stories.js +0 -302
  1215. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  1216. package/dist/collection/components/z-chip/index.stories.js +0 -69
  1217. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  1218. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  1219. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  1220. package/dist/collection/components/z-divider/index.stories.js +0 -44
  1221. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  1222. package/dist/collection/components/z-icon/index.stories.js +0 -70
  1223. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  1224. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  1225. package/dist/collection/components/z-input/index.stories.js +0 -293
  1226. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  1227. package/dist/collection/components/z-logo/index.stories.js +0 -25
  1228. package/dist/collection/components/z-menu/index.stories.js +0 -122
  1229. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  1230. package/dist/collection/components/z-modal/index.stories.js +0 -201
  1231. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  1232. package/dist/collection/components/z-notification/index.stories.js +0 -174
  1233. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  1234. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  1235. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  1236. package/dist/collection/components/z-popover/index.stories.js +0 -282
  1237. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  1238. package/dist/collection/components/z-searchbar/index.stories.js +0 -332
  1239. package/dist/collection/components/z-select/index.stories.js +0 -359
  1240. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  1241. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  1242. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  1243. package/dist/collection/components/z-tag/index.stories.js +0 -63
  1244. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  1245. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  1246. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  1247. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  1248. package/dist/collection/components/z-tool/index.stories.js +0 -146
  1249. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  1250. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  1251. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  1252. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  1253. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  1254. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  1255. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  1256. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  1257. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  1258. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  1259. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  1260. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  1261. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  1262. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  1263. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  1264. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  1265. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  1266. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  1267. package/dist/esm/iconset-CjHS9zeM.js +0 -1024
  1268. package/dist/esm/index-BKCj6NR2.js +0 -405
  1269. package/dist/esm/index-DPdXlnVe.js +0 -2653
  1270. package/dist/esm/utils-DYd3kO0P.js +0 -244
  1271. package/dist/esm/utils-DuuLzXZj.js +0 -2712
  1272. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  1273. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  1274. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  1275. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  1276. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  1277. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  1278. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  1279. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  1280. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  1281. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  1282. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  1283. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  1284. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  1285. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  1286. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  1287. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  1288. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  1289. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  1290. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  1291. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  1292. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  1293. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  1294. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  1295. package/dist/types/components/z-app-header/index.stories.d.ts +0 -128
  1296. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  1297. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  1298. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  1299. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  1300. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  1301. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  1302. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  1303. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  1304. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  1305. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  1306. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  1307. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  1308. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  1309. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  1310. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  1311. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  1312. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  1313. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  1314. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  1315. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  1316. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  1317. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  1318. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  1319. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  1320. package/dist/types/components/z-notification/index.stories.d.ts +0 -77
  1321. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  1322. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  1323. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  1324. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  1325. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  1326. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -163
  1327. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  1328. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  1329. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  1330. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  1331. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  1332. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  1333. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  1334. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  1335. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  1336. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  1337. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  1338. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  1339. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  1340. package/dist/web-components-library/p-087956fa.entry.js +0 -1
  1341. package/dist/web-components-library/p-10e5e16e.entry.js +0 -1
  1342. package/dist/web-components-library/p-13e7f751.entry.js +0 -1
  1343. package/dist/web-components-library/p-14b804f9.entry.js +0 -1
  1344. package/dist/web-components-library/p-1580db58.entry.js +0 -1
  1345. package/dist/web-components-library/p-15825811.entry.js +0 -1
  1346. package/dist/web-components-library/p-1993b0ad.entry.js +0 -1
  1347. package/dist/web-components-library/p-1a95491d.entry.js +0 -1
  1348. package/dist/web-components-library/p-1d023220.entry.js +0 -1
  1349. package/dist/web-components-library/p-21c85e04.entry.js +0 -1
  1350. package/dist/web-components-library/p-23b46642.entry.js +0 -1
  1351. package/dist/web-components-library/p-299f0f85.entry.js +0 -1
  1352. package/dist/web-components-library/p-29dde955.entry.js +0 -1
  1353. package/dist/web-components-library/p-2c036e17.entry.js +0 -1
  1354. package/dist/web-components-library/p-2d4c01c3.entry.js +0 -1
  1355. package/dist/web-components-library/p-2dabe353.entry.js +0 -1
  1356. package/dist/web-components-library/p-2df6d169.entry.js +0 -1
  1357. package/dist/web-components-library/p-2ef82e17.entry.js +0 -1
  1358. package/dist/web-components-library/p-324933f6.entry.js +0 -1
  1359. package/dist/web-components-library/p-37e84b71.entry.js +0 -1
  1360. package/dist/web-components-library/p-3c53e451.entry.js +0 -1
  1361. package/dist/web-components-library/p-3ea03d34.entry.js +0 -1
  1362. package/dist/web-components-library/p-41584e90.entry.js +0 -1
  1363. package/dist/web-components-library/p-50e10a10.entry.js +0 -1
  1364. package/dist/web-components-library/p-52899754.entry.js +0 -1
  1365. package/dist/web-components-library/p-53670be4.entry.js +0 -1
  1366. package/dist/web-components-library/p-583b8152.entry.js +0 -1
  1367. package/dist/web-components-library/p-5a05dc1e.entry.js +0 -1
  1368. package/dist/web-components-library/p-5d20fc3d.entry.js +0 -1
  1369. package/dist/web-components-library/p-622466f9.entry.js +0 -1
  1370. package/dist/web-components-library/p-658f022d.entry.js +0 -1
  1371. package/dist/web-components-library/p-6bd35edf.entry.js +0 -1
  1372. package/dist/web-components-library/p-7226f07a.entry.js +0 -1
  1373. package/dist/web-components-library/p-7371a543.entry.js +0 -2
  1374. package/dist/web-components-library/p-77bf39a4.entry.js +0 -1
  1375. package/dist/web-components-library/p-788eaac7.entry.js +0 -1
  1376. package/dist/web-components-library/p-7bf7539a.entry.js +0 -1
  1377. package/dist/web-components-library/p-81eb43fd.entry.js +0 -1
  1378. package/dist/web-components-library/p-8261c869.entry.js +0 -1
  1379. package/dist/web-components-library/p-83da1031.entry.js +0 -1
  1380. package/dist/web-components-library/p-85cac60d.entry.js +0 -1
  1381. package/dist/web-components-library/p-88a3ba7c.entry.js +0 -1
  1382. package/dist/web-components-library/p-8a8df4f4.entry.js +0 -1
  1383. package/dist/web-components-library/p-8b026993.entry.js +0 -1
  1384. package/dist/web-components-library/p-8d7e2e16.entry.js +0 -1
  1385. package/dist/web-components-library/p-8de064a4.entry.js +0 -1
  1386. package/dist/web-components-library/p-8f4a04aa.entry.js +0 -1
  1387. package/dist/web-components-library/p-B8WJfd4z.js +0 -1
  1388. package/dist/web-components-library/p-BKCj6NR2.js +0 -1
  1389. package/dist/web-components-library/p-CPsEG702.js +0 -1
  1390. package/dist/web-components-library/p-CjHS9zeM.js +0 -1
  1391. package/dist/web-components-library/p-DPdXlnVe.js +0 -2
  1392. package/dist/web-components-library/p-a4f673f8.entry.js +0 -1
  1393. package/dist/web-components-library/p-aa4fc3d3.entry.js +0 -1
  1394. package/dist/web-components-library/p-aa72d766.entry.js +0 -1
  1395. package/dist/web-components-library/p-ad2cd7fc.entry.js +0 -1
  1396. package/dist/web-components-library/p-b6223d7e.entry.js +0 -1
  1397. package/dist/web-components-library/p-b851f20b.entry.js +0 -1
  1398. package/dist/web-components-library/p-b9343431.entry.js +0 -1
  1399. package/dist/web-components-library/p-be354b22.entry.js +0 -1
  1400. package/dist/web-components-library/p-c42ddd93.entry.js +0 -1
  1401. package/dist/web-components-library/p-c4e7bd16.entry.js +0 -1
  1402. package/dist/web-components-library/p-c944a943.entry.js +0 -1
  1403. package/dist/web-components-library/p-cd33f4b1.entry.js +0 -1
  1404. package/dist/web-components-library/p-cdd88182.entry.js +0 -16
  1405. package/dist/web-components-library/p-d3053434.entry.js +0 -1
  1406. package/dist/web-components-library/p-d63665c1.entry.js +0 -1
  1407. package/dist/web-components-library/p-dabccb20.entry.js +0 -1
  1408. package/dist/web-components-library/p-dc5ab2cc.entry.js +0 -1
  1409. package/dist/web-components-library/p-dfd43710.entry.js +0 -1
  1410. package/dist/web-components-library/p-e1d0a6e3.entry.js +0 -1
  1411. package/dist/web-components-library/p-e48497f0.entry.js +0 -1
  1412. package/dist/web-components-library/p-ec4940ce.entry.js +0 -1
  1413. package/dist/web-components-library/p-eddc2d19.entry.js +0 -1
  1414. package/dist/web-components-library/p-ef5018bb.entry.js +0 -1
  1415. package/dist/web-components-library/p-f7e46ef2.entry.js +0 -1
  1416. package/www/build/p-087956fa.entry.js +0 -1
  1417. package/www/build/p-10e5e16e.entry.js +0 -1
  1418. package/www/build/p-13e7f751.entry.js +0 -1
  1419. package/www/build/p-14b804f9.entry.js +0 -1
  1420. package/www/build/p-1580db58.entry.js +0 -1
  1421. package/www/build/p-15825811.entry.js +0 -1
  1422. package/www/build/p-1993b0ad.entry.js +0 -1
  1423. package/www/build/p-1a95491d.entry.js +0 -1
  1424. package/www/build/p-1d023220.entry.js +0 -1
  1425. package/www/build/p-21c85e04.entry.js +0 -1
  1426. package/www/build/p-23b46642.entry.js +0 -1
  1427. package/www/build/p-299f0f85.entry.js +0 -1
  1428. package/www/build/p-29dde955.entry.js +0 -1
  1429. package/www/build/p-2c036e17.entry.js +0 -1
  1430. package/www/build/p-2d4c01c3.entry.js +0 -1
  1431. package/www/build/p-2dabe353.entry.js +0 -1
  1432. package/www/build/p-2df6d169.entry.js +0 -1
  1433. package/www/build/p-2ef82e17.entry.js +0 -1
  1434. package/www/build/p-324933f6.entry.js +0 -1
  1435. package/www/build/p-37e84b71.entry.js +0 -1
  1436. package/www/build/p-3c53e451.entry.js +0 -1
  1437. package/www/build/p-3ea03d34.entry.js +0 -1
  1438. package/www/build/p-41584e90.entry.js +0 -1
  1439. package/www/build/p-50e10a10.entry.js +0 -1
  1440. package/www/build/p-52899754.entry.js +0 -1
  1441. package/www/build/p-53670be4.entry.js +0 -1
  1442. package/www/build/p-583b8152.entry.js +0 -1
  1443. package/www/build/p-5a05dc1e.entry.js +0 -1
  1444. package/www/build/p-5d20fc3d.entry.js +0 -1
  1445. package/www/build/p-622466f9.entry.js +0 -1
  1446. package/www/build/p-658f022d.entry.js +0 -1
  1447. package/www/build/p-6bd35edf.entry.js +0 -1
  1448. package/www/build/p-7226f07a.entry.js +0 -1
  1449. package/www/build/p-7371a543.entry.js +0 -2
  1450. package/www/build/p-77bf39a4.entry.js +0 -1
  1451. package/www/build/p-788eaac7.entry.js +0 -1
  1452. package/www/build/p-7bf7539a.entry.js +0 -1
  1453. package/www/build/p-81eb43fd.entry.js +0 -1
  1454. package/www/build/p-8261c869.entry.js +0 -1
  1455. package/www/build/p-83da1031.entry.js +0 -1
  1456. package/www/build/p-85cac60d.entry.js +0 -1
  1457. package/www/build/p-88a3ba7c.entry.js +0 -1
  1458. package/www/build/p-8a8df4f4.entry.js +0 -1
  1459. package/www/build/p-8b026993.entry.js +0 -1
  1460. package/www/build/p-8d7e2e16.entry.js +0 -1
  1461. package/www/build/p-8de064a4.entry.js +0 -1
  1462. package/www/build/p-8f4a04aa.entry.js +0 -1
  1463. package/www/build/p-B8WJfd4z.js +0 -1
  1464. package/www/build/p-BKCj6NR2.js +0 -1
  1465. package/www/build/p-CPsEG702.js +0 -1
  1466. package/www/build/p-CjHS9zeM.js +0 -1
  1467. package/www/build/p-DPdXlnVe.js +0 -2
  1468. package/www/build/p-a4f673f8.entry.js +0 -1
  1469. package/www/build/p-aa4fc3d3.entry.js +0 -1
  1470. package/www/build/p-aa72d766.entry.js +0 -1
  1471. package/www/build/p-ad2cd7fc.entry.js +0 -1
  1472. package/www/build/p-b6223d7e.entry.js +0 -1
  1473. package/www/build/p-b851f20b.entry.js +0 -1
  1474. package/www/build/p-b9343431.entry.js +0 -1
  1475. package/www/build/p-be354b22.entry.js +0 -1
  1476. package/www/build/p-c42ddd93.entry.js +0 -1
  1477. package/www/build/p-c4e7bd16.entry.js +0 -1
  1478. package/www/build/p-c5c5a64f.js +0 -1
  1479. package/www/build/p-c944a943.entry.js +0 -1
  1480. package/www/build/p-cd33f4b1.entry.js +0 -1
  1481. package/www/build/p-cdd88182.entry.js +0 -16
  1482. package/www/build/p-d3053434.entry.js +0 -1
  1483. package/www/build/p-d63665c1.entry.js +0 -1
  1484. package/www/build/p-dabccb20.entry.js +0 -1
  1485. package/www/build/p-dc5ab2cc.entry.js +0 -1
  1486. package/www/build/p-dfd43710.entry.js +0 -1
  1487. package/www/build/p-e1d0a6e3.entry.js +0 -1
  1488. package/www/build/p-e48497f0.entry.js +0 -1
  1489. package/www/build/p-ec4940ce.entry.js +0 -1
  1490. package/www/build/p-eddc2d19.entry.js +0 -1
  1491. package/www/build/p-ef5018bb.entry.js +0 -1
  1492. package/www/build/p-f7e46ef2.entry.js +0 -1
@@ -1,4 +1,53 @@
1
1
  :host {
2
+ /**
3
+ * @prop --app-header-typography-1-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `24px`.
4
+ * @prop --app-header-typography-2-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `28px`.
5
+ * @prop --app-header-typography-3-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `32px`.
6
+ * @prop --app-header-typography-4-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `36px`.
7
+ * @prop --app-header-typography-5-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `42px`.
8
+ * @prop --app-header-typography-6-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `48px`.
9
+ * @prop --app-header-typography-7-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `54px`.
10
+ * @prop --app-header-typography-8-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `60px`.
11
+ * @prop --app-header-typography-9-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `68px`.
12
+ * @prop --app-header-typography-10-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `76px`.
13
+ * @prop --app-header-typography-11-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `84px`.
14
+ * @prop --app-header-typography-12-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `92px`.
15
+ * @prop --app-header-typography-1-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.33`.
16
+ * @prop --app-header-typography-2-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.29`.
17
+ * @prop --app-header-typography-3-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.
18
+ * @prop --app-header-typography-4-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.
19
+ * @prop --app-header-typography-5-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.
20
+ * @prop --app-header-typography-6-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.
21
+ * @prop --app-header-typography-7-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.
22
+ * @prop --app-header-typography-8-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.
23
+ * @prop --app-header-typography-9-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.
24
+ * @prop --app-header-typography-10-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.
25
+ * @prop --app-header-typography-11-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.
26
+ * @prop --app-header-typography-12-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.
27
+ * @prop --app-header-typography-1-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.2 / 1em)`.
28
+ * @prop --app-header-typography-2-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.4 / 1em)`.
29
+ * @prop --app-header-typography-3-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.6 / 1em)`.
30
+ * @prop --app-header-typography-4-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.8 / 1em)`.
31
+ * @prop --app-header-typography-5-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1 / 1em)`.
32
+ * @prop --app-header-typography-6-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.2 / 1em)`.
33
+ * @prop --app-header-typography-7-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.4 / 1em)`.
34
+ * @prop --app-header-typography-8-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.6 / 1em)`.
35
+ * @prop --app-header-typography-9-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.8 / 1em)`.
36
+ * @prop --app-header-typography-10-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2 / 1em)`.
37
+ * @prop --app-header-typography-11-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.2 / 1em)`.
38
+ * @prop --app-header-typography-12-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.4 / 1em)`.
39
+ * @prop --app-header-content-max-width: Use it to set header's content max width. Useful when the project use a fixed width layout. Defaults to `100%`.
40
+ * @prop --app-header-height: Defaults to `auto`.
41
+ * @prop --app-header-top-offset: Top offset for the stuck header. Useful when there are other fixed elements above the header. Defaults to `48px` (the height of the main topbar).
42
+ * @prop --app-header-drawer-trigger-size: The size of the drawer icon. Defaults to `--space-unit * 4`.
43
+ * @prop --app-header-bg: Header background color. Defaults to `--color-surface01`.
44
+ * @prop --app-header-stucked-bg: Stuck header background color. Defaults to `--color-surface01`.
45
+ * @prop --app-header-text-color: Text color. Useful on `hero` variant to set text color based on the colors of the background image. Defaults to `--color-default-text`.
46
+ * @prop --app-header-title-font-size: Variable to customize the title's font size. NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. Defaults to `--app-header-typography-3-size`.
47
+ * @prop --app-header-title-lineheight: Variable to customize the title's line-height. NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value and use the same level as the one of the font size. Defaults to `--app-header-typography-3-lineheight`.
48
+ * @prop --app-header-title-letter-spacing: Variable to customize the title's letter-spacing. NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value and use the same level as the one of the font size. Defaults to `--app-header-typography-3-tracking`.
49
+ * @prop --app-header-stucked-text-color: Stuck header text color. Defaults to `--color-default-text`.
50
+ */
2
51
  --app-header-typography-1-size: 24px;
3
52
  --app-header-typography-2-size: 28px;
4
53
  --app-header-typography-3-size: 32px;
@@ -7,10 +7,6 @@ import { randomId } from "../../../utils/utils";
7
7
  * @slot header-cta - header CTA (e.g. bookmark icon - extended and search variant only)
8
8
  * @slot tags - card tags (extended and search variant only)
9
9
  * @slot footer-cta - footer cta button (search and compact variant only)
10
- * @cssprop --z-book-card-ribbon-background-color - ribbon backgrund color
11
- * @cssprop --z-book-card-ribbon-shadow-color - ribbon shadow color
12
- * @cssprop --z-book-card-compact-width - compact card custom width
13
- * @cssprop --z-book-card-compact-height - compact card custom height
14
10
  */
15
11
  export class ZBookCardDeprecated {
16
12
  constructor() {
@@ -115,7 +111,7 @@ export class ZBookCardDeprecated {
115
111
  return (h("div", { class: "action-container" }, h("slot", { name: "footer-cta" })));
116
112
  }
117
113
  render() {
118
- return (h("article", { key: '09310ad4eac077f69d476ad5bcc941d96df9975d', class: {
114
+ return (h("article", { key: 'd603afa99fc5bdc0b6cb9ad1b22a309c4962c486', class: {
119
115
  [this.variant]: true,
120
116
  borderless: !!this.borderless,
121
117
  } }, this.renderCard()));
@@ -418,3 +414,4 @@ export class ZBookCardDeprecated {
418
414
  }
419
415
  static get elementRef() { return "hostElement"; }
420
416
  }
417
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/deprecated/z-book-card-deprecated/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAC,yBAAyB,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C;;;;;GAKG;AAMH,MAAM,OAAO,mBAAmB;IALhC;QA4CE;;WAEG;QAEH,cAAS,GAAG,EAAE,CAAC;QAuCf,aAAQ,GAAG,KAAK,CAAC;QAGjB,iBAAY,GAAG,KAAK,CAAC;QAGrB,kBAAa,GAAG,KAAK,CAAC;KA2RvB;IArRS,eAAe;QACrB,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAID,iBAAiB;QACf,IAAI,CAAC,EAAE,GAAG,MAAM,QAAQ,EAAE,EAAE,CAAC;QAE7B,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,eAAe,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC;QACnF,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC;QACzC,gBAAgB,CAAC,QAAQ,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Prop, State, h} from \"@stencil/core\";\nimport {BookCardDeprecatedVariant} from \"../../../beans\";\nimport {Breakpoints} from \"../../../constants/breakpoints\";\nimport {randomId} from \"../../../utils/utils\";\n\n/**\n * @slot resources - books resources (extended variant only)\n * @slot header-cta - header CTA (e.g. bookmark icon - extended and search variant only)\n * @slot tags - card tags (extended and search variant only)\n * @slot footer-cta - footer cta button (search and compact variant only)\n */\n@Component({\n tag: \"z-book-card-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBookCardDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZBookCardDeprecatedElement;\n\n /**\n * Card variant: expanded, compact, search\n */\n @Prop()\n variant: BookCardDeprecatedVariant;\n\n /**\n * Cover URL\n */\n @Prop()\n cover: string;\n\n /**\n * Card main title\n */\n @Prop()\n operaTitle: string;\n\n /**\n * [optional] Card subtitle\n */\n @Prop()\n volumeTitle?: string;\n\n /**\n * [optional] Authors\n */\n @Prop()\n authors?: string;\n\n /**\n * [optional] Main ISBN\n */\n @Prop()\n isbn?: string;\n\n /**\n * [optional] ISBN label\n */\n @Prop()\n isbnLabel = \"\";\n\n /**\n * [optional] Ribbon label - expanded and search variant only\n */\n @Prop()\n ribbon?: string;\n\n /**\n * [optional] Ribbon icon - expanded and search variant only\n */\n @Prop()\n ribbonIcon?: string;\n\n /**\n * [optional] Ribbon interactive - expanded and search variant only\n */\n @Prop()\n ribbonInteractive?: boolean;\n\n /**\n * [optional] Borderless card - compact variant only\n */\n @Prop()\n borderless?: boolean;\n\n /**\n * [optional] Fallback cover URL\n */\n @Prop()\n fallbackCover?: string;\n\n /**\n * [optional] [accessibility] Card title HTML tag\n */\n @Prop()\n operaTitleTag?: string;\n\n @State()\n isMobile = false;\n\n @State()\n hasResources = false;\n\n @State()\n showResources = false;\n\n /** click on interactive ribbon */\n @Event()\n ribbonClick: EventEmitter;\n\n private emitRibbonClick(): void {\n this.ribbonClick.emit();\n }\n\n private id: string;\n\n componentWillLoad(): void {\n this.id = `id-${randomId()}`;\n\n const mobileMediaQuery = window.matchMedia(`(max-width: ${Breakpoints.MOBILE}px)`);\n this.isMobile = mobileMediaQuery.matches;\n mobileMediaQuery.onchange = (mql) => (this.isMobile = mql.matches);\n }\n\n componentDidLoad(): void {\n this.handleResources();\n }\n\n private handleResources(): void {\n if (this.variant !== BookCardDeprecatedVariant.EXPANDED || !this.isMobile) {\n return;\n }\n this.hasResources = this.hostElement.querySelectorAll(\"[slot=resources]\")?.length > 0;\n }\n\n private toggleResources(): void {\n this.showResources = !this.showResources;\n }\n\n private renderCard(): HTMLDivElement {\n switch (this.variant) {\n case BookCardDeprecatedVariant.EXPANDED:\n return this.isMobile ? this.renderMobileExpandedCard() : this.renderExpandedCard();\n case BookCardDeprecatedVariant.COMPACT:\n return this.renderCompactCard();\n case BookCardDeprecatedVariant.SEARCH:\n return this.renderSearchCard();\n }\n }\n\n private renderExpandedCard(): HTMLDivElement {\n return (\n <div class=\"wrapper\">\n {this.renderCover()}\n <div class=\"content\">\n <div class=\"top\">\n <div class=\"info\">\n <div class=\"left\">\n {this.renderAuthors()}\n {this.renderOperaTitle()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n <div class=\"right\">{this.renderHeaderCtaSlot()}</div>\n </div>\n {this.renderTagsSlot()}\n </div>\n <div class=\"bottom\">{this.renderResourcesSlot()}</div>\n </div>\n </div>\n );\n }\n\n private renderMobileExpandedCard(): HTMLDivElement {\n return (\n <div class=\"wrapper\">\n <div class=\"header\">\n {this.renderOperaTitle()}\n {this.renderHeaderCtaSlot()}\n </div>\n {this.renderCover()}\n <div class=\"content\">\n {this.renderTagsSlot()}\n {this.renderAuthors()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n {this.hasResources && (\n <div\n class={{\n footer: true,\n open: this.showResources,\n close: !this.showResources,\n }}\n >\n {!this.showResources && this.renderShowResources()}\n {this.renderResourcesSlot()}\n {this.showResources && this.renderShowResources()}\n </div>\n )}\n </div>\n );\n }\n\n private renderSearchCard(): HTMLDivElement {\n return (\n <div class=\"wrapper-container\">\n <div class=\"wrapper\">\n <div class=\"header\">\n {this.renderOperaTitle()}\n {this.renderHeaderCtaSlot()}\n </div>\n {this.renderCover()}\n <div class=\"content\">\n {this.renderTagsSlot()}\n {this.renderAuthors()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n </div>\n {this.renderFooterCtaSlot()}\n </div>\n );\n }\n\n private renderCompactCard(): HTMLDivElement {\n return (\n <div class=\"wrapper\">\n {this.renderCover()}\n <div class=\"content\">\n {this.renderAuthors()}\n {this.renderOperaTitle()}\n {this.renderVolumeTitle()}\n {this.renderIsbn()}\n </div>\n {this.renderFooterCtaSlot()}\n </div>\n );\n }\n\n private renderCover(): HTMLDivElement {\n return (\n <div class=\"cover\">\n {this.ribbon && this.variant !== BookCardDeprecatedVariant.COMPACT && this.renderRibbon()}\n <div class=\"img-wrapper\">\n <img\n src={this.cover}\n onError={() => {\n if (this.fallbackCover) {\n this.cover = this.fallbackCover;\n }\n }}\n aria-hidden=\"true\"\n />\n </div>\n </div>\n );\n }\n\n private renderRibbon(): HTMLElement {\n const content = [\n this.ribbonIcon && (\n <z-icon\n name={this.ribbonIcon}\n width={16}\n height={16}\n fill={\"color-inverse-icon\"}\n />\n ),\n <span>{this.ribbon}</span>,\n ];\n\n return this.ribbonInteractive ? (\n <button\n class=\"ribbon interactive\"\n onClick={() => this.emitRibbonClick()}\n >\n {content}\n </button>\n ) : (\n <div class=\"ribbon\">{content}</div>\n );\n }\n\n private renderOperaTitle(): HTMLDivElement {\n const title = this.operaTitleTag\n ? `<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`\n : this.operaTitle;\n\n return (\n <div\n class=\"title\"\n innerHTML={title}\n />\n );\n }\n\n private renderVolumeTitle(): null | HTMLDivElement {\n return this.volumeTitle ? <div class=\"subtitle\">{this.volumeTitle}</div> : null;\n }\n\n private renderAuthors(): null | HTMLDivElement {\n return this.authors ? (\n <div\n class=\"authors\"\n aria-description=\"Autori\"\n >\n {this.authors}\n </div>\n ) : null;\n }\n\n private renderIsbn(): null | HTMLDivElement {\n return this.isbn ? (\n <div class=\"isbn\">\n <span\n class=\"code\"\n aria-description={`ISBN ${this.isbnLabel}`}\n >\n {this.isbn}\n </span>\n {this.isbnLabel ? <span class=\"label\"> {this.isbnLabel}</span> : null}\n </div>\n ) : null;\n }\n\n private renderShowResources(): HTMLButtonElement {\n return (\n <button\n class=\"show-resources\"\n aria-label={`Risorse del libro ${this.operaTitle}`}\n aria-expanded={this.showResources.toString()}\n aria-controls={`resources-${this.id}`}\n onClick={() => this.toggleResources()}\n >\n {this.showResources ? \"Chiudi\" : \"Vedi tutto\"}\n <z-icon name={this.showResources ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n );\n }\n\n private renderTagsSlot(): HTMLDivElement {\n return (\n <div class=\"tags\">\n <slot name=\"tags\" />\n </div>\n );\n }\n\n private renderHeaderCtaSlot(): HTMLSlotElement {\n return <slot name=\"header-cta\" />;\n }\n\n private renderResourcesSlot(): HTMLDivElement {\n return (\n <div\n id={`resources-${this.id}`}\n class=\"resources\"\n >\n <slot\n name=\"resources\"\n onSlotchange={() => this.handleResources()}\n />\n </div>\n );\n }\n\n private renderFooterCtaSlot(): HTMLDivElement {\n return (\n <div class=\"action-container\">\n <slot name=\"footer-cta\" />\n </div>\n );\n }\n\n render(): HTMLZBookCardDeprecatedElement {\n return (\n <article\n class={{\n [this.variant]: true,\n borderless: !!this.borderless,\n }}\n >\n {this.renderCard()}\n </article>\n );\n }\n}\n"]}
@@ -1,6 +1,12 @@
1
1
  /* COMMON STYLES */
2
2
 
3
3
  :host {
4
+ /**
5
+ * @prop --z-book-card-ribbon-background-color: ribbon backgrund color
6
+ * @prop --z-book-card-ribbon-shadow-color: ribbon shadow color
7
+ * @prop --z-book-card-compact-width: compact card custom width
8
+ * @prop --z-book-card-compact-height: compact card custom height
9
+ */
4
10
  --z-book-card-ribbon-background-color: var(--avatar-C08);
5
11
  --z-book-card-ribbon-shadow-color: var(--green950);
6
12
  --z-book-card-compact-width: 262px;
@@ -3,7 +3,6 @@ import { Host, h, } from "@stencil/core";
3
3
  * @slot - Menu label
4
4
  * @slot header - Header to display as the first entry of the open menu.
5
5
  * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.
6
- * @cssprop --z-menu-label-color - Color of the label's text.
7
6
  */
8
7
  export class ZMenuDeprecated {
9
8
  toggle() {
@@ -108,7 +107,7 @@ export class ZMenuDeprecated {
108
107
  return (h("div", { class: "menu-label" }, h("div", { class: "menu-label-content" }, h("slot", { onSlotchange: this.onLabelSlotChange }))));
109
108
  }
110
109
  render() {
111
- return (h(Host, { key: 'c0cc18338db770e7b369bce7e469445219326566' }, this.renderMenuLabel(), this.hasContent && (h("div", { key: 'c895c377c1cc572c18bbc56e9cb8c513346d1ae4', class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (h("header", { key: '17df894168c27a4ec0599d10bb885761b5eded54', class: "header" }, h("slot", { key: 'd50f55ef51bdf388a75bc8739c29a58f32c6b316', name: "header", onSlotchange: this.checkContent }))), h("div", { key: '948157a99d60c696fa97b8b904366dc0992e87da', class: "items", role: "menu" }, h("slot", { key: 'e93150d2a5e7c1e33d7cfe8f297e9990e0d5c01e', name: "item", onSlotchange: this.onItemsChange }))))));
110
+ return (h(Host, { key: 'dde3e828c6617646ed848e91c53dc624fc23bc2d' }, this.renderMenuLabel(), this.hasContent && (h("div", { key: '9888a27020733770e87e87f2ac6193dc0430e36b', class: "content", ref: (el) => (this.content = el) }, this.hasHeader && (h("header", { key: '09a21728b3cfc859dbdf59b2441326a610c2869f', class: "header" }, h("slot", { key: '72bbb4073b1e76569770dc7089526e9f9b055089', name: "header", onSlotchange: this.checkContent }))), h("div", { key: 'f53e86dea26861a62f3e924e67f14c97e42f7861', class: "items", role: "menu" }, h("slot", { key: '2b6e230e79f472828b85ba40281c9781a14dcef6', name: "item", onSlotchange: this.onItemsChange }))))));
112
111
  }
113
112
  static get is() { return "z-menu-deprecated"; }
114
113
  static get encapsulation() { return "shadow"; }
@@ -261,3 +260,4 @@ export class ZMenuDeprecated {
261
260
  }];
262
261
  }
263
262
  }
263
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/deprecated/z-menu-deprecated/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AAMH,MAAM,OAAO,eAAe;IA6ClB,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;IAED,iFAAiF;IAEjF,WAAW,CAAC,EAAc;QACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAiB,CAAC,EAAE,CAAC;YACpF,OAAO;QACT,CAAC;QAED,IAAI,CAAC,MAAM,EAA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Aa,GAC1B,CACJ,CACF,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -5,11 +5,14 @@
5
5
  }
6
6
 
7
7
  :host {
8
+ /**
9
+ * @prop --z-menu-label-color: Color of the label's text.
10
+ */
11
+ --z-menu-label-color: var(--color-default-text);
12
+
8
13
  position: relative;
9
14
  display: inline-flex;
10
15
  flex-direction: column;
11
-
12
- --z-menu-label-color: var(--color-default-text);
13
16
  }
14
17
 
15
18
  ::slotted(a) {
@@ -43,7 +43,7 @@ export class ZMenuSectionDeprecated {
43
43
  this.checkContent();
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '9c0afdf0decad8a1eb51ba90c1fa1cb3bcbfa321', role: "menu", open: this.open }, h("button", { key: '79ddfb8c44ef6a47fad56cf2f2a1c5ea6ee4bd5a', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, h("slot", { key: '3027b6975681544c8e2fef1c6f59be689664e26e', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: '9de3a8659409445f8bf781498ecc1dd2d2691d6c', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: 'd5aa04822af0e9e9c07b6ee72bde0b875d2bafbb', class: "items" }, h("slot", { key: 'ca7eaac55e80903beb3d49373bbb28ca24f4e034', name: "item", onSlotchange: this.checkContent.bind(this) })))));
46
+ return (h(Host, { key: 'a65fd5af1f2b3b6c9d21c30336b806395624af59', role: "menu", open: this.open }, h("button", { key: '88460e785ca428d4a40f4dc9bdd56194a2b64d3e', class: "label", "aria-pressed": this.open ? "true" : "false", onClick: this.toggle.bind(this) }, h("slot", { key: 'b0198e42f9819b2e9c622d4672510d7a9584a1b1', onSlotchange: this.onLabelSlotChange.bind(this) }), this.hasContent && h("z-icon", { key: '6b6f41288e53ef83b6817eda49e1a77135552345', name: this.open ? "chevron-up" : "chevron-down" })), this.open && (h("div", { key: '7721c370a48044d60749f366a718ca266d9afc73', class: "items" }, h("slot", { key: '1738da8320d0931abaf8a7dd854456e28bba9781', name: "item", onSlotchange: this.checkContent.bind(this) })))));
47
47
  }
48
48
  static get is() { return "z-menu-section-deprecated"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -130,3 +130,4 @@ export class ZMenuSectionDeprecated {
130
130
  }];
131
131
  }
132
132
  }
133
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/deprecated/z-menu-section-deprecated/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAExH;;;;GAIG;AAMH,MAAM,OAAO,sBAAsB;IAqBzB,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QAED,IAAI,CAA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gBAE/B,6DAAM,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS;gBAC7D,IAAI,CAAC,UAAU,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAI,CACxE;YACR,IAAI,CAAC,IAAI,IAAI,CACZ,4DAAK,KAAK,EAAC,OAAO;gBAChB,6DACE,IAAI,EAAC,MAAM,EACX,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GACpC,CACJ,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -7,7 +7,6 @@ import { DividerSize, ZSectionTitleDividerPosition } from "../../../beans";
7
7
  * @slot secondary-title - Slot for the secondary title. When present, the divider is always displayed under it,
8
8
  * following its width and removing the one for the primary title.
9
9
  * @slot primary-title - Slot for the primary title.
10
- * @cssprop --z-section-title--divider-color - Color of the divider. Use a CSS prop string like `"--red500"`. Default is `"--red500"`.
11
10
  */
12
11
  export class ZSectionTitle {
13
12
  constructor() {
@@ -25,7 +24,7 @@ export class ZSectionTitle {
25
24
  this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
26
25
  }
27
26
  render() {
28
- return (h(Host, { key: 'b2a5c1767c66f1b993f95c4907e5b6ac4555a7a5' }, h("slot", { key: 'dd96a1b84d003243f6a48a074c3ebe92c5b3c3e3', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { key: '8de1932f1eee5210277e73ba1a25359570a2ab06', size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { key: 'd0f29c94936e5ab2a7491b3b6273ce51a1c8a626', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { key: '13f04775afe18fc3f76bb09f48c415486896b421', size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
27
+ return (h(Host, { key: '020c1a41ff7fa0881464463322b54754e7664957' }, h("slot", { key: 'c6d7baf944465d1092749cf288636fcd502e659c', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { key: 'ea70a8579ed61ba8b1d6488566473b90c47540d1', size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { key: '4cf602491394aaf97cead51bbc7f9b2da299bef3', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { key: '47275d6411b00769db2e244bad13032d43cc9144', size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
29
28
  }
30
29
  static get is() { return "z-section-title"; }
31
30
  static get encapsulation() { return "shadow"; }
@@ -92,3 +91,4 @@ export class ZSectionTitle {
92
91
  }
93
92
  static get elementRef() { return "host"; }
94
93
  }
94
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/deprecated/z-section-title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,WAAW,EAAE,4BAA4B,EAAC,MAAM,gBAAgB,CAAC;AAEzE;;;;;;;GAOG;AAMH,MAAM,OAAO,aAAa;IAL1B;QAME;;;WAGG;QAEH,oBAAe,GAAiC,4BAA4B,CAAC,MAAM,CAAC;QAEpF;;WAEG;QAEH,cAAS,GAAG,IAAI,CAAC;KA8BlB;IAxBC,mBAAmB;QACjB,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,6DAAM,IAAI,EAAC,iBAAiB,GAAG;YAC9B,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,eAAe,KAAK,4BAA4B,CAAC,MAAM,IAAI,CAC1F,kEACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,KAAK,EAAC,gCAAgC,GACtC,CACH;YACD,6DAAM,IAAI,EAAC,eAAe,GAAG;YAC5B,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,eAAe,KAAK,4BAA4B,CAAC,KAAK,IAAI,CACzF,kEACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,KAAK,EAAC,gCAAgC,GACtC,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, h, Host, Prop} from \"@stencil/core\";\nimport {DividerSize, ZSectionTitleDividerPosition} from \"../../../beans\";\n\n/**\n * Section title component.\n * An optional secondary title can be put over the primary one.\n *\n * @slot secondary-title - Slot for the secondary title. When present, the divider is always displayed under it,\n * following its width and removing the one for the primary title.\n * @slot primary-title - Slot for the primary title.\n */\n@Component({\n tag: \"z-section-title\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZSectionTitle implements ComponentInterface {\n /**\n * Divider position for the primary title.\n * This prop only works if the secondary title is not set.\n */\n @Prop()\n dividerPosition: ZSectionTitleDividerPosition = ZSectionTitleDividerPosition.BEFORE;\n\n /**\n * Whether the primary title text is uppercase.\n */\n @Prop({reflect: true})\n uppercase = true;\n\n @Element() host: HTMLZSectionTitleElement;\n\n private hasSecondaryTitle: boolean;\n\n componentWillRender(): void {\n this.hasSecondaryTitle = !!this.host.querySelector(\"[slot=secondary-title]\");\n }\n\n render(): HTMLZSectionTitleElement {\n return (\n <Host>\n <slot name=\"secondary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n <slot name=\"primary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1,4 +1,7 @@
1
1
  :host {
2
+ /**
3
+ * @prop --z-section-title--divider-color: Color of the divider. Use a CSS prop string like `"--red500"`. Default is `"--red500"`.
4
+ */
2
5
  --z-section-title--divider-color: var(--red500);
3
6
 
4
7
  display: flex;
@@ -12,12 +12,12 @@ export class ZDragdropArea {
12
12
  }
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '042a22ebd47c1bee49ca08121fa3ef23c99daa97', class: { dragover: this.dragging }, onDragOver: (e) => {
15
+ return (h(Host, { key: 'ec92afc8d6998ac3595b4c84121cc80204367bbb', class: { dragover: this.dragging }, onDragOver: (e) => {
16
16
  e.preventDefault();
17
17
  this.dragging = true;
18
18
  }, onDragLeave: () => {
19
19
  this.dragging = false;
20
- }, onDrop: this.onDrop.bind(this) }, h("div", { key: '9f4cb47d47b9976a86f5eedba956aa3cf0939f81', class: "dragover-container" }, h("z-button", { key: 'fc12e55894affd3273bffa56f1508b0d1d23e92d' }, this.dragAndDropLabel)), h("slot", { key: '0f99ee53ef49d5792772b9993bade7d5b46e6c58' })));
20
+ }, onDrop: this.onDrop.bind(this) }, h("div", { key: '6008c32e681b7c8f9f1063bba50c6106e12599de', class: "dragover-container" }, h("z-button", { key: 'ea4bfd5b7ee6d05241f5efb18844cd8beb10dde2' }, this.dragAndDropLabel)), h("slot", { key: '95aa7512bbbd0efcea3c3dbafecc4b33a1d24f87' })));
21
21
  }
22
22
  static get is() { return "z-dragdrop-area"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -78,3 +78,4 @@ export class ZDragdropArea {
78
78
  }];
79
79
  }
80
80
  }
81
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/file-upload/z-dragdrop-area/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAOvG,MAAM,OAAO,aAAa;IAL1B;QAUE,oFAAoF;QAEpF,aAAQ,GAAG,KAAK,CAAC;KAkClB;IA5BS,MAAM,CAAC,CAAY;QACzB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAChC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,EAChC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE;gBAChB,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACvB,CAAC,EACD,WAAW,EAAE,GAAG,EAAE;gBAChB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACxB,CAAC,EACD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;YAE9B,4DAAK,KAAK,EAAC,oBAAoB;gBAC7B,mEAAW,IAAI,CAAC,gBAAgB,CAAY,CACxC;YACN,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Event, EventEmitter, Host, Prop, State, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-dragdrop-area\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZDragdropArea implements ComponentInterface {\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel: string;\n\n /** State that indicates if the user is dragging a file over the drag & drop area */\n @State()\n dragging = false;\n\n /** Emitted when user drop one or more files */\n @Event()\n fileDropped: EventEmitter;\n\n private onDrop(e: DragEvent): void {\n e.preventDefault();\n this.dragging = false;\n if (e.dataTransfer.files.length) {\n this.fileDropped.emit(e.dataTransfer.files);\n }\n }\n\n render(): HTMLZDragdropAreaElement {\n return (\n <Host\n class={{dragover: this.dragging}}\n onDragOver={(e) => {\n e.preventDefault();\n this.dragging = true;\n }}\n onDragLeave={() => {\n this.dragging = false;\n }}\n onDrop={this.onDrop.bind(this)}\n >\n <div class=\"dragover-container\">\n <z-button>{this.dragAndDropLabel}</z-button>\n </div>\n <slot />\n </Host>\n );\n }\n}\n"]}
@@ -30,7 +30,7 @@ export class ZFile {
30
30
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: 'b14de221b558a20b6a73755f4a299743fa5a7d23' }, this.allowPopover && (h("z-popover", { key: 'fc3a7c327d89a7a9ea6b9660d17d78de1922729c', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: '7f33d40074ba639bd8da65132dad5b2fa1cf349e', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: 'ae8746950f0ee745c77a1b5602c4f6ecb0278afd', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: '6ef36d2bebe82fbcb9919cce4c2a4c8d657ba255', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
33
+ return (h(Host, { key: '12ffcf9cd4e06418f8ef0c0fe6f901519ea81578' }, this.allowPopover && (h("z-popover", { key: 'b77adda2c9f80584b3e74ab82d5c8b5198b50d88', open: this.popoverVisible, position: PopoverPosition.AUTO, bindTo: this.chip }, h("span", { key: '9d0bb9bbdb210ce143a129ca4f46a6409b85b393', class: "body-5 tooltip-content" }, this.ellipsis.innerText))), h("z-chip", { key: '9d9c8f64f63c4723c2f6540be7d6c534650a847d', ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.DEFAULT }, h("span", { key: '959647e217388cad43c3bb3536a44ce22b548067', ref: (el) => (this.ellipsis = el), tabIndex: -1 }, this.fileName))));
34
34
  }
35
35
  static get is() { return "z-file"; }
36
36
  static get encapsulation() { return "scoped"; }
@@ -133,3 +133,4 @@ export class ZFile {
133
133
  }];
134
134
  }
135
135
  }
136
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/file-upload/z-file/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACxH,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAQ3D,MAAM,OAAO,KAAK;IANlB;QAsBE,iBAAY,GAAG,KAAK,CAAC;QAGrB,mBAAc,GAAG,KAAK,CAAC;KAoExB;IA5DS,iBAAiB;QACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;QAChD,IAA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AI,CAAC,QAAQ,CACT,CACA,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\nimport {PopoverPosition, ZChipType} from \"../../../beans\";\nimport {Breakpoints} from \"../../../constants/breakpoints\";\n\n@Component({\n tag: \"z-file\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFile implements ComponentInterface {\n private icon: HTMLElement;\n\n private ellipsis?: HTMLSpanElement;\n\n private chip?: HTMLZChipElement;\n\n /** File chip id */\n @Prop()\n fileNumber: number;\n\n /** File name */\n @Prop()\n fileName: string;\n\n @State()\n allowPopover = false;\n\n @State()\n popoverVisible = false;\n\n @Element() el: HTMLZFileElement;\n\n /** Emitted when a z-file component is removed from the DOM */\n @Event()\n removeFile: EventEmitter;\n\n private removeFileHandler(): void {\n this.removeFile.emit({fileName: this.fileName});\n this.el.remove();\n }\n\n @Listen(\"mouseover\")\n onMouseOver(): void {\n this.popoverVisible = true;\n }\n\n @Listen(\"mouseleave\")\n onMouseLeave(): void {\n this.popoverVisible = false;\n }\n\n @Listen(\"interactiveIconClick\")\n onInteractiveIconClick(): void {\n this.removeFileHandler();\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis() && window.innerWidth > Breakpoints.TABLET) {\n this.allowPopover = true;\n }\n\n this.icon?.focus?.();\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n render(): HTMLZFileElement {\n return (\n <Host>\n {this.allowPopover && (\n <z-popover\n open={this.popoverVisible}\n position={PopoverPosition.AUTO}\n bindTo={this.chip}\n >\n <span class=\"body-5 tooltip-content\">{this.ellipsis.innerText}</span>\n </z-popover>\n )}\n <z-chip\n ref={(el) => (this.chip = el as HTMLZChipElement)}\n id={`chip-${this.fileNumber}`}\n interactiveIcon=\"multiply-circled\"\n type={ZChipType.DEFAULT}\n >\n <span\n ref={(el) => (this.ellipsis = el as HTMLSpanElement)}\n tabIndex={-1}\n >\n {this.fileName}\n </span>\n </z-chip>\n </Host>\n );\n }\n}\n"]}
@@ -133,7 +133,7 @@ export class ZFileUpload {
133
133
  return (h("section", { class: { "files-container": true, "hidden": !this.files.length } }, h("div", { class: "uploaded-files-label heading-3-sb" }, this.uploadedFilesLabel), h("div", { class: "files-wrapper" }, h("slot", { name: "files" }))));
134
134
  }
135
135
  renderInput() {
136
- return (h("input", { type: "file", name: this.inputName, multiple: true, onChange: (e) => this.onFilesChange(e), accept: this.acceptedFormat, ref: (val) => (this.input = val) }));
136
+ return (h("input", { type: "file", name: this.inputName, multiple: true, onChange: (e) => this.onFilesChange(e), accept: this.acceptedFormat, "aria-labelledby": this.description ? "description" : undefined, ref: (val) => (this.input = val) }));
137
137
  }
138
138
  renderUploadButton() {
139
139
  return [
@@ -178,7 +178,7 @@ export class ZFileUpload {
178
178
  });
179
179
  }
180
180
  render() {
181
- return (h(Host, { key: '9f2aeeeb12f48f34a732137c809c48c23d6a190e' }, this.mainTitle && (h("div", { key: '63924f49200a966ed3e7244c685ae9df6eeefbc1', id: "title", class: "heading-3-sb" }, this.mainTitle)), this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode(), !!this.invalidFiles.size && this.showErrors && (h("z-modal", { key: 'e3c015962d22df4c1d769d6177417bbf8d6bcc93', modalid: `file-upload-${this.type}-error-modal`, ref: (val) => (this.errorModal = val), modaltitle: this.errorModalTitle, onModalClose: () => this.resetErrors(), onModalBackgroundClick: () => this.resetErrors() }, h("div", { key: '0cc1b6a3a952e1e683a70b952af131b74e7021e0', slot: "modalContent" }, h("div", { key: '833875c9ffe28ad248a4cacd7249153c7230df0a', class: "modal-wrapper body-3" }, this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()))))));
181
+ return (h(Host, { key: '26a1a04ff6d1a9c9cf0e16311bb747b349c7ca67' }, this.mainTitle && (h("div", { key: 'cbce95e36bb7a1fe81c8c41e0723169e6b47442d', id: "title", class: "heading-3-sb" }, this.mainTitle)), this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode(), !!this.invalidFiles.size && this.showErrors && (h("z-modal", { key: '6a000d85f1f9b46a2872b4fa40b978a97427018c', modalid: `file-upload-${this.type}-error-modal`, ref: (val) => (this.errorModal = val), modaltitle: this.errorModalTitle, onModalClose: () => this.resetErrors(), onModalBackgroundClick: () => this.resetErrors() }, h("div", { key: 'caa8f6424a54d279ed2eca6c7514390324b40c59', slot: "modalContent" }, h("div", { key: 'b069c1fff610bcf4adbff57b0c5a9fa3e70e32ea', class: "modal-wrapper body-3" }, this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()))))));
182
182
  }
183
183
  static get is() { return "z-file-upload"; }
184
184
  static get encapsulation() { return "scoped"; }
@@ -658,3 +658,4 @@ export class ZFileUpload {
658
658
  }];
659
659
  }
660
660
  }
661
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/file-upload/z-file-upload/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAU9D,MAAM,OAAO,WAAW;IANxB;QAOE,wEAAwE;QAExE,SAAI,GAAoB,eAAe,CAAC,OAAO,CAAC;QAsBhD,2BAA2B;QAE3B,mBAAc,GAAY,QAAQ,CAAC;QAEnC,+BAA+B;QAE/B,qBAAgB,GAAY,+CAA+C,CAAC;QAM5E,+BAA+B;QAE/B,2BAAsB,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n State,\n h,\n} from \"@stencil/core\";\nimport {ButtonVariant, ZFileUploadType} from \"../../../beans\";\n\nexport type ZFileUploadError = {cause: \"format\" | \"size\"; message: string};\n\n@Component({\n tag: \"z-file-upload\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFileUpload implements ComponentInterface {\n /** Prop indicating the file upload type - can be default or dragdrop */\n @Prop({reflect: true})\n type: ZFileUploadType = ZFileUploadType.DEFAULT;\n\n /** Prop indicating the button variant*/\n @Prop()\n buttonVariant?: ButtonVariant;\n\n /** Prop indicating the accepted file type: ex \".pdf, .doc, .jpg\" */\n @Prop()\n acceptedFormat?: string;\n\n /** Max file dimension in Megabyte */\n @Prop()\n fileMaxSize?: number;\n\n /** Title */\n @Prop()\n mainTitle?: string;\n\n /** Description */\n @Prop()\n description?: string;\n\n /** upoload button label */\n @Prop()\n uploadBtnLabel?: string = \"allega\";\n\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel?: string = \"Rilascia i file in questa area per allegarli.\";\n\n /** allowed file message */\n @Prop()\n allowedFilesMessage?: string;\n\n /** upload clickable message */\n @Prop()\n uploadClickableMessage?: string = \"Carica\";\n\n /** upload message */\n @Prop()\n uploadMessage?: string = \"o trascina dal tuo computer\";\n\n /** error modal title */\n @Prop()\n errorModalTitle?: string = \"Errore di caricamento\";\n\n /** error modal message */\n @Prop()\n errorModalMessage?: string;\n\n /** loaded files label */\n @Prop()\n uploadedFilesLabel?: string = \"File appena caricati\";\n\n /** uploaded files history rendering */\n @Prop()\n hasFileSection?: boolean = true;\n\n /** Value to set on the file input's `name` attribute (for use with forms) */\n @Prop()\n inputName? = \"z-file-upload\";\n\n /**\n * Whether to show errors in the internal modal or leave the handling to the app.\n * Errors will still be emitted.\n */\n @Prop()\n showErrors = true;\n\n /** Internal store of the component type. It will change when viewport goes from desktop to tablet/mobile and vice versa */\n @State()\n private _type: ZFileUploadType = this.type;\n\n /** Files added by the user */\n @State()\n files: File[] = [];\n\n /** Map of files whose upload caused an error and the relative errors, with the cause and a message */\n @State()\n invalidFiles: Map<string, ZFileUploadError[]> = new Map<string, ZFileUploadError[]>();\n\n /** Input ref */\n @State()\n private input: HTMLInputElement;\n\n /** Emitted when user select one or more files */\n @Event()\n fileInput: EventEmitter<File>;\n\n /**\n * Emits an array of error messages related to one or more files not allowed.\n * Emitted when some file is dropped or selected.\n */\n @Event()\n fileError: EventEmitter<{file: string; errors: ZFileUploadError[]}>;\n\n @Element() host: HTMLZFileUploadElement;\n\n private errorModal: HTMLZModalElement;\n\n /** Listen `removeFile` event sent from z-file component */\n @Listen(\"removeFile\")\n onFileRemoved(e: CustomEvent): void {\n this.removeFile(e.detail.fileName);\n }\n\n /** Listen fileDropped event sent from z-dragdrop-area component */\n @Listen(\"fileDropped\")\n fileDroppedListener(e: CustomEvent): void {\n this.input.files = e.detail;\n this.checkFilesValidity(this.input.files);\n }\n\n /** Get the list of uploaded files */\n @Method()\n async getFiles(): Promise<File[]> {\n return this.files;\n }\n\n /** Remove a previously uploaded file */\n @Method()\n async removeFile(fileName: string): Promise<void> {\n const files = this.files;\n const index = files.findIndex((file) => file.name === fileName);\n if (index >= 0) {\n files.splice(index, 1);\n this.files = [...files];\n }\n }\n\n private checkFilesValidity(files: FileList): Map<string, string[]> {\n if (!files.length) {\n return;\n }\n\n Array.from(files).forEach((file: File) => {\n const fileSize = file.size / 1024 / 1024;\n const fileFormatOk = this.acceptedFormat\n .split(\",\")\n .some((ext: string) => file.name.toLowerCase().endsWith(ext.trim()));\n const fileSizeOk = fileSize <= this.fileMaxSize;\n if (fileSizeOk && fileFormatOk && !this.files.find((f) => f.name === file.name)) {\n this.files = [...this.files, file];\n this.fileInput.emit(file);\n this.input.value = \"\";\n\n return;\n }\n\n const sizeError = `Il file ${file.name} supera il limite di ${this.fileMaxSize}MB`;\n const formatError = `Il file ${file.name} ha un formato non supportato`;\n const errors = [\n !fileSizeOk && {cause: \"size\" as const, message: sizeError},\n !fileFormatOk && {cause: \"format\" as const, message: formatError},\n ].filter(Boolean);\n this.invalidFiles.set(file.name, errors);\n this.invalidFiles = new Map(this.invalidFiles); // trigger state update\n this.fileError.emit({file: file.name, errors});\n });\n }\n\n private resetErrors(): void {\n this.invalidFiles = new Map<string, ZFileUploadError[]>();\n }\n\n private onFilesChange(e: Event): void {\n this.checkFilesValidity((e.target as HTMLInputElement).files);\n }\n\n componentWillLoad(): void {\n // force default type on mobile and tablet viewport\n const mql = window.matchMedia(\"(max-width: 1151px)\");\n this._type = mql.matches ? ZFileUploadType.DEFAULT : this.type;\n mql.addEventListener(\"change\", (e) => {\n this._type = e.matches ? ZFileUploadType.DEFAULT : this.type;\n });\n }\n\n componentDidUpdate(): void {\n if (!this.showErrors || !this.invalidFiles.size) {\n return;\n }\n\n this.errorModal.open();\n }\n\n private renderDescription(cssClass): HTMLElement | undefined {\n if (!this.description) {\n return;\n }\n\n return (\n <span\n id=\"description\"\n class={cssClass}\n >\n {this.description}\n </span>\n );\n }\n\n private renderAllowedFilesMessage(): HTMLElement {\n let fileFormatString = \"\";\n let fileWeightString = \"\";\n\n if (this.acceptedFormat) {\n const fileFormat = this.acceptedFormat\n .split(\", \")\n .map((string) => string.substring(1).toUpperCase())\n .join(\", \");\n fileFormatString = ` nei formati ${fileFormat}`;\n }\n\n if (this.fileMaxSize) {\n fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;\n }\n\n const defaultMessage =\n fileFormatString || fileWeightString ? `Puoi allegare file${fileFormatString}${fileWeightString}.` : undefined;\n\n if (!this.allowedFilesMessage && !defaultMessage) {\n return;\n }\n\n return <span class=\"allowed-files-message body-3\">{this.allowedFilesMessage || defaultMessage}</span>;\n }\n\n private renderFileSection(): HTMLElement {\n if (!this.hasFileSection) {\n return;\n }\n\n return (\n <section class={{\"files-container\": true, \"hidden\": !this.files.length}}>\n <div class=\"uploaded-files-label heading-3-sb\">{this.uploadedFilesLabel}</div>\n <div class=\"files-wrapper\">\n <slot name=\"files\" />\n </div>\n </section>\n );\n }\n\n private renderInput(): HTMLInputElement {\n return (\n <input\n type=\"file\"\n name={this.inputName}\n multiple\n onChange={(e) => this.onFilesChange(e)}\n accept={this.acceptedFormat}\n aria-labelledby={this.description ? \"description\" : undefined}\n ref={(val) => (this.input = val)}\n />\n );\n }\n\n private renderUploadButton(): unknown[] {\n return [\n <z-button\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n id=\"fileSelect\"\n variant={this.buttonVariant}\n icon=\"upload\"\n >\n {this.uploadBtnLabel}\n </z-button>,\n this.renderInput(),\n ];\n }\n\n private renderUploadLink(): unknown[] {\n return [\n this.renderInput(),\n <span class=\"body-1 upload-link-text\">\n <span\n tabIndex={0}\n class=\"body-1-sb upload-link\"\n onClick={() => this.input.click()}\n onKeyPress={(e) => {\n if (e.code == \"Space\" || e.code == \"Enter\") {\n e.preventDefault();\n this.input.click();\n }\n }}\n >\n {this.uploadClickableMessage}\n </span>{\" \"}\n {this.uploadMessage}\n </span>,\n ];\n }\n\n private renderDefaultMode(): unknown[] {\n return [\n this.renderDescription(\"body-3-sb\"),\n this.renderAllowedFilesMessage(),\n this.renderFileSection(),\n this.renderUploadButton(),\n ];\n }\n\n private renderDragDropMode(): unknown[] {\n return [\n this.renderFileSection(),\n <z-dragdrop-area drag-and-drop-label={this.dragAndDropLabel}>\n <div class=\"text-container\">\n {this.renderDescription(\"body-1\")}\n {this.renderUploadLink()}\n {this.renderAllowedFilesMessage()}\n </div>\n </z-dragdrop-area>,\n ];\n }\n\n private renderFileErrors(): HTMLElement[] {\n return Array.from(this.invalidFiles).map(([fileName, errors]) => {\n const prefix = `Il file ${fileName}`;\n\n return (\n <span class=\"error-message\">\n Il file <span class=\"body-3-sb\">{fileName}</span>\n {errors.map(({message}) => message.replace(prefix, \"\")).join(\" e \")}.\n </span>\n );\n });\n }\n\n render(): HTMLZFileUploadElement {\n return (\n <Host>\n {this.mainTitle && (\n <div\n id=\"title\"\n class=\"heading-3-sb\"\n >\n {this.mainTitle}\n </div>\n )}\n {this._type == ZFileUploadType.DEFAULT ? this.renderDefaultMode() : this.renderDragDropMode()}\n {!!this.invalidFiles.size && this.showErrors && (\n <z-modal\n modalid={`file-upload-${this.type}-error-modal`}\n ref={(val) => (this.errorModal = val)}\n modaltitle={this.errorModalTitle}\n onModalClose={() => this.resetErrors()}\n onModalBackgroundClick={() => this.resetErrors()}\n >\n <div slot=\"modalContent\">\n <div class=\"modal-wrapper body-3\">\n {this.errorModalMessage ? this.errorModalMessage : this.renderFileErrors()}\n </div>\n </div>\n </z-modal>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -6,3 +6,4 @@
6
6
  //
7
7
  // Must be fixed
8
8
  //
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,mBAAmB;AACnB,EAAE;AACF,oEAAoE;AACpE,iDAAiD;AACjD,EAAE;AACF,gBAAgB;AAChB,EAAE","sourcesContent":["//\n// Temp workaround:\n//\n// Empty file to prevent errors when importing beans in stencil apps\n// Stencil apps with React bindings will not work\n//\n// Must be fixed\n//\n"]}
@@ -27,7 +27,7 @@ export class ZList {
27
27
  this.setChildrenSizeType();
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: 'f34729eb14ef690bf0aeb7da4b406e955a66fbf7' }, h("slot", { key: '82b4a9c72937797bb8f7e4141f7a4c609908c702' })));
30
+ return (h(Host, { key: '2aac86dccac20cc21ec7c1341a99298f8523af49' }, h("slot", { key: '207231c63243efcd61917a9b4aa3394e22379bbd' })));
31
31
  }
32
32
  static get is() { return "z-list"; }
33
33
  static get encapsulation() { return "shadow"; }
@@ -121,3 +121,4 @@ export class ZList {
121
121
  }
122
122
  static get elementRef() { return "host"; }
123
123
  }
124
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/list/z-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAOlD,MAAM,OAAO,KAAK;IALlB;QAQE;;WAEG;QAEH,SAAI,GAAc,QAAQ,CAAC,MAAM,CAAC;QAElC;;WAEG;QAEH,aAAQ,GAAc,QAAQ,CAAC,IAAI,CAAC;QAEpC;;WAEG;QAEH,SAAI,GAAG,MAAM,CAAC;KAsBf;IApBS,mBAAmB;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5C,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrD,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,uBAAuB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Host, Prop, h} from \"@stencil/core\";\nimport {ListSize, ListType} from \"../../../beans\";\n\n@Component({\n tag: \"z-list\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZList implements ComponentInterface {\n @Element() host: HTMLZListElement;\n\n /**\n * [optional] Sets size of inside elements.\n */\n @Prop({reflect: true})\n size?: ListSize = ListSize.MEDIUM;\n\n /**\n * [optional] type of the list marker for each element\n */\n @Prop({reflect: true})\n listType?: ListType = ListType.NONE;\n\n /**\n * Sets role of the element.\n */\n @Prop({reflect: true})\n role = \"list\";\n\n private setChildrenSizeType(): void {\n const children = this.host.children;\n for (let i = 0; i < children.length; i++) {\n children[i].setAttribute(\"size\", this.size);\n children[i].setAttribute(\"list-type\", this.listType);\n children[i].setAttribute(\"list-element-position\", (i + 1).toString());\n }\n }\n\n componentDidLoad(): void {\n this.setChildrenSizeType();\n }\n\n render(): HTMLZListElement {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"]}
@@ -157,7 +157,7 @@ export class ZListElement {
157
157
  }
158
158
  }
159
159
  render() {
160
- return (h(Host, { key: '565d88705b517e78e6b9c05f5923903704472751', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: this.hasTreeItems ? undefined : this.htmlTabindex, role: this.hasTreeItems ? "none" : this.role }, h("div", { key: '6a1ccb7af0b9455e52e4b0b7699722a2f2e98f01', class: this.hasTreeItems ? "tree-element-container" : "container", style: !this.disabled && { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, h("div", { key: '64a7d40c04afdb7cd9fc1f090926d7de10341ef4', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { key: 'e781e6f655bd4a7d0987fef33d8b426caa7ed0aa', class: { "z-tree-list-divider": this.hasTreeItems }, color: this.dividerColor, size: this.dividerSize }))));
160
+ return (h(Host, { key: '9a06293fba7e3b74fe169d1d3e927a4abd7b17f1', "aria-expanded": this.expandable ? this.showInnerContent : null, onClick: this.handleClick, onFocus: () => this.ariaDescendantFocus.emit(this.listElementId), onKeyDown: this.handleKeyDown, clickable: this.clickable && !this.disabled, tabIndex: this.hasTreeItems ? undefined : this.htmlTabindex, role: this.hasTreeItems ? "none" : this.role }, h("div", { key: 'c962c30a71313bd84b1075ad03a96e4b5de77a42', class: this.hasTreeItems ? "tree-element-container" : "container", style: !this.disabled && { color: `var(--${this.color})` }, tabindex: "-1", id: `z-list-element-id-${this.listElementId}`, part: "list-item-container" }, h("div", { key: 'ccca86019dec23767ae7bcf5af988c7f2366d850', class: "z-list-element-container" }, this.renderExpandableButton(), this.renderContent()), this.renderExpandedContent()), this.dividerType === ListDividerType.ELEMENT && (h("z-divider", { key: 'f8f1b6053d0fe0415b520c4f1deaba92e24019b8', class: { "z-tree-list-divider": this.hasTreeItems }, color: this.dividerColor, size: this.dividerSize }))));
161
161
  }
162
162
  static get is() { return "z-list-element"; }
163
163
  static get encapsulation() { return "shadow"; }
@@ -599,3 +599,4 @@ export class ZListElement {
599
599
  }];
600
600
  }
601
601
  }
602
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/list/z-list-element/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AACxH,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,QAAQ,GACT,MAAM,gBAAgB,CAAC;AAOxB,MAAM,OAAO,YAAY;IA+BvB,sBAAsB,CAAC,CAAc;QACnC,IAAI,IAAI,CAAC,aAAa,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;YACpC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YACrF,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;IA8GD;;OAEG;IACH;QA/GA;;WAEG;QAEH,gBAAW,GAA+B,yBAAyB,CAAC,IAAI,CAAC;QAEzE;;WAEG;QAEH,cAAS,GAAa,KAAK,CAAC;QAE5B;;WAEG;QAEH,iBAAY,GAAY,iBAAiB,CAAC;QAE1C;;WAEG;QAEH,gBAAW,GAAqB,eAAe,CAAC,IAAI,CAAC;QAErD;;WAEG;QAEH,gBAAW,GAAiB,WAAW,CAAC,KAAK,CAAC;QAE9C;;WAEG;QAEH,eAAU,GAAa,KAAK,CAAC;QAE7B;;WAEG;QAEH,oBAAe,GAAyB,mBAAmB,CAAC,SAAS,CAAC;QAQtE;;WAEG;QAEH,SAAI,GAAc,QAAQ,CAA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AC,KAAK,GAAG,EAAC,EACxD,QAAQ,EAAC,IAAI,EACb,EAAE,EAAE,qBAAqB,IAAI,CAAC,aAAa,EAAE,EAC7C,IAAI,EAAC,qBAAqB;gBAE1B,4DAAK,KAAK,EAAC,0BAA0B;oBAClC,IAAI,CAAC,sBAAsB,EAAE;oBAC7B,IAAI,CAAC,aAAa,EAAE,CACjB;gBACL,IAAI,CAAC,qBAAqB,EAAE,CACzB;YACL,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,OAAO,IAAI,CAC/C,kEACE,KAAK,EAAE,EAAC,qBAAqB,EAAE,IAAI,CAAC,YAAY,EAAC,EACjD,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,IAAI,EAAE,IAAI,CAAC,WAAW,GACtB,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, h, Host, Listen, Prop, State} from \"@stencil/core\";\nimport {\n DividerSize,\n ExpandableListButtonAlign,\n ExpandableListStyle,\n KeyboardCode,\n ListDividerType,\n ListSize,\n ListType,\n} from \"../../../beans\";\n\n@Component({\n tag: \"z-list-element\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZListElement implements ComponentInterface {\n @Element() host: HTMLZListElementElement;\n\n /** remove filter click event, returns filterid */\n @Event({\n eventName: \"accessibleFocus\",\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n accessibleFocus: EventEmitter<number>;\n\n /** set parent aria-activedescendant on focus event, returns filterid */\n @Event({\n eventName: \"ariaDescendantFocus\",\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n ariaDescendantFocus: EventEmitter<number>;\n\n /** remove filter click event, returns filterid */\n @Event({\n eventName: \"clickItem\",\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n clickItem: EventEmitter;\n\n @Listen(\"accessibleFocus\", {target: \"document\"})\n accessibleFocusHandler(e: CustomEvent): void {\n if (this.listElementId === e.detail) {\n const toFocus = this.host.shadowRoot.getElementById(`z-list-element-id-${e.detail}`);\n toFocus.focus();\n }\n }\n\n /**\n * [optional] Align expandable button left or right.\n */\n @Prop({reflect: true})\n alignButton?: ExpandableListButtonAlign = ExpandableListButtonAlign.LEFT;\n\n /**\n * [optional] Sets element clickable.\n */\n @Prop({reflect: true})\n clickable?: boolean = false;\n\n /**\n * [optional] Sets the divider color.\n */\n @Prop()\n dividerColor?: string = \"color-surface03\";\n\n /**\n * [optional] Sets the position where to insert the divider.\n */\n @Prop()\n dividerType?: ListDividerType = ListDividerType.NONE;\n\n /**\n * [optional] Sets the divider size.\n */\n @Prop()\n dividerSize?: DividerSize = DividerSize.SMALL;\n\n /**\n * [optional] Sets element as expandable.\n */\n @Prop({reflect: true})\n expandable?: boolean = false;\n\n /**\n * [optional] Sets expandable style to element.\n */\n @Prop()\n expandableStyle?: ExpandableListStyle = ExpandableListStyle.ACCORDION;\n\n /**\n * [optional] List element id.\n */\n @Prop({reflect: true})\n listElementId?: number;\n\n /**\n * [optional] Sets size of inside elements.\n */\n @Prop({reflect: true})\n size?: ListSize = ListSize.MEDIUM;\n\n /**\n * [optional] Sets text color of the element.\n */\n @Prop({reflect: true})\n color?: string = \"none\";\n\n /**\n * [optional] Sets disabled style of the element.\n */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /**\n * [optional] position of the list element inside the list or the group\n */\n @Prop({reflect: true})\n listElementPosition?: string = \"0\";\n\n /**\n * [optional] type of the list marker for each element\n */\n @Prop({reflect: true})\n listType?: ListType = ListType.NONE;\n\n /**\n * [optional] Sets element as tree item.\n */\n @Prop()\n hasTreeItems?: boolean;\n\n /**\n * Sets element role.\n */\n @Prop({reflect: true})\n role = \"listitem\";\n\n /** set tabindex to Host tag (optional). Defaults to 0. */\n @Prop()\n htmlTabindex?: number | null = 0;\n\n @State()\n showInnerContent = false;\n\n private openElementConfig = {\n accordion: {\n open: \"minus-circled\",\n close: \"plus-circled\",\n },\n menu: {\n open: \"chevron-up\",\n close: \"chevron-down\",\n },\n };\n\n /**\n * Constructor.\n */\n constructor() {\n this.handleClick = this.handleClick.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n /**\n * Handler for click on element. If element is expandable, change state.\n * @returns void\n */\n private handleClick(): void {\n if (this.disabled) {\n return;\n }\n\n this.clickItem.emit(this.listElementId);\n if (!this.expandable) {\n return;\n }\n this.showInnerContent = !this.showInnerContent;\n }\n\n private handleKeyDown(event): void {\n const expandByKey = event.code === KeyboardCode.ENTER;\n switch (event.code) {\n case KeyboardCode.ARROW_DOWN:\n event.preventDefault();\n this.accessibleFocus.emit(this.listElementId + 1);\n break;\n case KeyboardCode.ARROW_UP:\n event.preventDefault();\n this.accessibleFocus.emit(this.listElementId - 1);\n break;\n case KeyboardCode.ENTER:\n event.preventDefault();\n this.clickItem.emit(this.listElementId);\n break;\n default:\n break;\n }\n\n if (!this.expandable || !expandByKey) {\n return;\n }\n this.showInnerContent = !this.showInnerContent;\n }\n\n /**\n * Renders button to expand element.\n * @returns expadable button\n */\n private renderExpandableButton(): HTMLZIconElement {\n if (!this.expandable) {\n return null;\n }\n\n return (\n <z-icon\n name={\n this.showInnerContent\n ? this.openElementConfig[this.expandableStyle].open\n : this.openElementConfig[this.expandableStyle].close\n }\n />\n );\n }\n\n /**\n * Renders expanded content if element is expandable.\n * @returns expanded content\n */\n private renderExpandedContent(): HTMLDivElement {\n if (!this.expandable) {\n return null;\n }\n\n return (\n <div\n class={{\n \"z-list-element-inner-container\": true,\n \"expanded\": this.showInnerContent,\n }}\n >\n <slot name=\"inner-content\" />\n </div>\n );\n }\n\n /**\n * Renders content of the z-list-element\n * @returns list content\n */\n private renderContent(): HTMLDivElement {\n if (this.listType === ListType.NONE) {\n return <slot />;\n }\n\n if (this.listType === ListType.ORDERED) {\n return (\n <div class=\"z-list-content-container\">\n <div>{this.listElementPosition}.&emsp;</div>\n <slot />\n </div>\n );\n }\n\n if (this.listType === ListType.UNORDERED) {\n return (\n <div class=\"z-list-content-container\">\n <span>&bull;&emsp;</span>\n <slot />\n </div>\n );\n }\n }\n\n render(): HTMLZListElementElement {\n return (\n <Host\n aria-expanded={this.expandable ? this.showInnerContent : null}\n onClick={this.handleClick}\n onFocus={() => this.ariaDescendantFocus.emit(this.listElementId)}\n onKeyDown={this.handleKeyDown}\n clickable={this.clickable && !this.disabled}\n tabIndex={this.hasTreeItems ? undefined : this.htmlTabindex}\n role={this.hasTreeItems ? \"none\" : this.role}\n >\n <div\n class={this.hasTreeItems ? \"tree-element-container\" : \"container\"}\n style={!this.disabled && {color: `var(--${this.color})`}}\n tabindex=\"-1\"\n id={`z-list-element-id-${this.listElementId}`}\n part=\"list-item-container\"\n >\n <div class=\"z-list-element-container\">\n {this.renderExpandableButton()}\n {this.renderContent()}\n </div>\n {this.renderExpandedContent()}\n </div>\n {this.dividerType === ListDividerType.ELEMENT && (\n <z-divider\n class={{\"z-tree-list-divider\": this.hasTreeItems}}\n color={this.dividerColor}\n size={this.dividerSize}\n />\n )}\n </Host>\n );\n }\n}\n"]}
@@ -44,11 +44,11 @@ export class ZListGroup {
44
44
  this.hasHeader = !!this.host.querySelector('[slot="header-title"]');
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'a2b30a3071d35ba28d8e485ff92a88e537a85290' }, h("div", { key: '528f17bfa6de4ccb252e86ec424b388f3d6d4ff0', class: {
47
+ return (h(Host, { key: 'cd9bd738252e44011edad7b468ad711a2ef83f12' }, h("div", { key: 'd2c2e41d50b4884b438ae7b25e9e2b06260df6ac', class: {
48
48
  "z-list-group-header-container": true,
49
49
  "has-header": this.hasHeader && !this.hasTreeItems,
50
50
  "grouped-tree-list-header": this.hasTreeItems,
51
- } }, h("slot", { key: '318ed932865eef9943a0f7ff7ae87e02a2ce968e', name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { key: '3d6d1ea46c42420c86b4f5f22bf5d5bcb1c5268f', color: this.dividerColor, size: this.dividerSize }))), h("slot", { key: 'f02a9b862b895d421be12ba4eb9625269f086e03' })));
51
+ } }, h("slot", { key: 'c47a8ea2508c87bbd0688248dcae0350d159350a', name: "header-title" }), this.dividerType === ListDividerType.HEADER && (h("z-divider", { key: 'c0586eee517b42aaf76507286bd086abaecb8013', color: this.dividerColor, size: this.dividerSize }))), h("slot", { key: '5f558529f5de2f4b62403d239e8424eea6259fd3' })));
52
52
  }
53
53
  static get is() { return "z-list-group"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -235,3 +235,4 @@ export class ZListGroup {
235
235
  }
236
236
  static get elementRef() { return "host"; }
237
237
  }
238
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/list/z-list-group/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAOhF,MAAM,OAAO,UAAU;IALvB;QAQE;;WAEG;QAEH,SAAI,GAAc,QAAQ,CAAC,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,CAAC,CAAC;IACtE,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DACE,KAAK,EAAE;oBACL,+BAA+B,EAAE,IAAI;oBACrC,YAAY,EAAE,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,YAAY;oBAClD,0BAA0B,EAAE,IAAI,CAAC,YAAY;iBAC9C;gBAED,6DAAM,IAAI,EAAC,cAAc,GAAG;gBAC3B,IAAI,CAAC,WAAW,KAAK,eAAe,CAAC,MAAM,IAAI,CAC9C,kEACE,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,IAAI,EAAE,IAAI,CAAC,WAAW,GACtB,CACH,CACG;YACN,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, h, Host, Prop} from \"@stencil/core\";\nimport {DividerSize, ListDividerType, ListSize, ListType} from \"../../../beans\";\n\n@Component({\n tag: \"z-list-group\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZListGroup implements ComponentInterface {\n @Element() host: HTMLZListGroupElement;\n\n /**\n * [optional] Sets size of inside elements.\n */\n @Prop({reflect: true})\n size?: ListSize = ListSize.MEDIUM;\n\n /**\n * [optional] Sets the position where to insert the divider.\n */\n @Prop({reflect: true})\n dividerType?: ListDividerType = ListDividerType.NONE;\n\n /**\n * [optional] Sets the divider size.\n */\n @Prop({reflect: true})\n dividerSize?: DividerSize = DividerSize.SMALL;\n\n /**\n * [optional] Sets the divider color.\n */\n @Prop({reflect: true})\n dividerColor?: string = \"gray200\";\n\n /**\n * [optional] type of the list marker for each element\n */\n @Prop({reflect: true})\n listType?: ListType = ListType.NONE;\n\n /**\n * [optional] check for tree items in grouped lists\n */\n @Prop()\n hasTreeItems?: boolean;\n\n /**\n * Sets element role.\n */\n @Prop({reflect: true})\n role = \"group\";\n\n private hasHeader: boolean;\n\n componentDidLoad(): void {\n const children = this.host.children;\n for (let i = 0; i < children.length; i++) {\n if (children.length - 1 > i) {\n children[i].setAttribute(\"divider-type\", this.dividerType);\n children[i].setAttribute(\"divider-size\", this.dividerSize);\n children[i].setAttribute(\"divider-color\", this.dividerColor);\n }\n children[i].setAttribute(\"size\", this.size);\n children[i].setAttribute(\"list-type\", this.listType);\n children[i].setAttribute(\"list-element-position\", i.toString());\n }\n }\n\n componentWillLoad(): void {\n this.hasHeader = !!this.host.querySelector('[slot=\"header-title\"]');\n }\n\n render(): HTMLZListGroupElement {\n return (\n <Host>\n <div\n class={{\n \"z-list-group-header-container\": true,\n \"has-header\": this.hasHeader && !this.hasTreeItems,\n \"grouped-tree-list-header\": this.hasTreeItems,\n }}\n >\n <slot name=\"header-title\" />\n {this.dividerType === ListDividerType.HEADER && (\n <z-divider\n color={this.dividerColor}\n size={this.dividerSize}\n />\n )}\n </div>\n <slot />\n </Host>\n );\n }\n}\n"]}
@@ -93,7 +93,7 @@ export class ZTreeList {
93
93
  }
94
94
  render() {
95
95
  const hasClickableItems = this.parsedItems.some((item) => !!item.url);
96
- return (h(Host, { key: 'ca5b846e86140efd7a98028001e646349cc5683a', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: 'eac955c253173abb6e5f0992d356311dc52f9ee6', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
96
+ return (h(Host, { key: '68d06fd53ad0f4bce01853b95aef0f7482f3304a', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '6b8010ae9caf73ec0a43b09f5d9610247110d1a6', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
97
97
  }
98
98
  static get is() { return "z-tree-list"; }
99
99
  static get encapsulation() { return "shadow"; }
@@ -202,3 +202,4 @@ export class ZTreeList {
202
202
  }];
203
203
  }
204
204
  }
205
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/list/z-tree-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAChH,OAAO,EAAC,YAAY,EAAe,MAAM,gBAAgB,CAAC;AAO1D,MAAM,OAAO,SAAS;IALtB;QAQE,8FAA8F;QAE9F,UAAK,GAA4B,EAAE,CAAC;QAc5B,gBAAW,GAAmB,EAAE,CAAC;KA4L1C;IAvLC,UAAU;QACR,IAAI,CAAC,WAAW,GAAG,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IAC1F,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAEO,WAAW,CAAC,IAAkB;QACpC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAC,CAAC,CAAC;IAC3E,CAAC;IA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AAE,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,iBAClC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,qBAClC,IAAI,CAAC,kBAAkB;YAExC,4DACE,QAAQ,EAAE,CAAC,CAAC,EACZ,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,iBAC5B,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,gBACvC,IAAI,CAAC,gBAAgB,IAEhC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,CACrE,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode, TreeListItem} from \"../../../beans\";\n\n@Component({\n tag: \"z-tree-list\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTreeList implements ComponentInterface {\n @Element() host: HTMLZTreeListElement;\n\n /** Items to render, if they have the url property they will be rendered as clickable links */\n @Prop()\n items: TreeListItem[] | string = [];\n\n /** Used for aria-labelledby attribute, sets name in \"navigation\" */\n @Prop({reflect: true})\n htmlAriaLabelledby: string;\n\n /** Used for aria-label attribute, sets name in \"tree\" */\n @Prop({reflect: true})\n htmlSectionTitle: string;\n\n /** Emitted on item click, it return the id, name and url of the clicked item */\n @Event()\n treeItemClicked: EventEmitter<{id: string; name: string; url: string}>;\n\n private parsedItems: TreeListItem[] = [];\n\n private htmlTag: string;\n\n @Watch(\"items\")\n watchItems(): void {\n this.parsedItems = typeof this.items === \"string\" ? JSON.parse(this.items) : this.items;\n }\n\n componentWillLoad(): void {\n this.watchItems();\n }\n\n private handleClick(item: TreeListItem): void {\n this.treeItemClicked.emit({id: item.id, name: item.name, url: item.url});\n }\n\n private getFocusableElements(): HTMLElement[] {\n return Array.from(this.host.shadowRoot.querySelectorAll('a[tabindex=\"0\"]'));\n }\n\n private getAncestor(element: HTMLElement, levels: number): HTMLElement | null {\n let ancestor: HTMLElement | null = element;\n\n for (let i = 0; i < levels; i++) {\n ancestor = ancestor?.parentElement;\n if (!ancestor) {\n return;\n }\n }\n\n return ancestor;\n }\n\n private handleArrowNav(event: KeyboardEvent): void {\n if (event.code === KeyboardCode.TAB) {\n event.preventDefault();\n\n return;\n }\n\n const focusableElements = this.getFocusableElements();\n const currentIndex = focusableElements.indexOf(event.target as HTMLElement);\n\n if (currentIndex === -1) {\n return;\n }\n\n if (event.code === KeyboardCode.ARROW_DOWN || event.code === KeyboardCode.ARROW_UP) {\n event.preventDefault();\n\n const nextIndex = currentIndex + (event.code === KeyboardCode.ARROW_DOWN ? 1 : -1);\n if (nextIndex < 0 || nextIndex >= focusableElements.length) {\n return;\n }\n\n focusableElements[nextIndex].focus();\n }\n\n if (event.code === KeyboardCode.ARROW_LEFT) {\n event.preventDefault();\n const ancestor = this.getAncestor(focusableElements[currentIndex], 4);\n\n if (\n !ancestor ||\n !ancestor.children[0] ||\n (ancestor.children[0].tagName.toLowerCase() !== \"a\" && ancestor.getAttribute(\"tabindex\") === null)\n ) {\n return;\n }\n\n (ancestor.children[0] as HTMLElement).focus();\n }\n\n if (event.code === KeyboardCode.ARROW_RIGHT) {\n event.preventDefault();\n\n const parentElm = (event.target as HTMLElement).closest(\"z-list-element\") as HTMLElement;\n\n if (!parentElm) {\n return;\n }\n\n const childrenContainer = parentElm.querySelector(\"z-list\") as HTMLElement;\n\n if (!childrenContainer) {\n return;\n }\n\n const firstChild = childrenContainer.querySelector('a[tabindex=\"0\"]') as HTMLElement;\n\n if (!firstChild) {\n return;\n }\n\n firstChild.focus();\n }\n }\n\n private renderTreeList(item: TreeListItem, key: string, level = 1): HTMLZListElementElement {\n this.htmlTag = item.url ? \"a\" : \"span\";\n\n const treeListContent = (\n <z-list-element\n id={key}\n class={!item.icon ? \"no-icon-elm\" : \"\"}\n clickable={Boolean(item.url)}\n hasTreeItems={true}\n role=\"none\"\n aria-hidden={undefined}\n >\n <this.htmlTag\n class={{\n \"list-element\": true,\n \"z-link\": Boolean(item.url),\n \"link-clickable\": Boolean(item.url),\n }}\n tabIndex={item.url ? 0 : -1}\n onClick={() => this.handleClick(item)}\n onKeyUp={(event: KeyboardEvent) => {\n if (event.code === KeyboardCode.ENTER || event.code === KeyboardCode.SPACE) {\n this.handleClick(item);\n }\n }}\n onKeyDown={(event: KeyboardEvent) => this.handleArrowNav(event)}\n role={item.url ? \"treeitem\" : undefined}\n aria-hidden={item.url ? undefined : \"true\"}\n aria-expanded={item.children?.length > 0 && true}\n aria-level={level}\n aria-label={item.name}\n href={item.url}\n >\n <span class=\"item ellipsis\">\n {item.icon && (\n <z-icon\n width={16}\n height={16}\n fill={item.url ? \"color-primary01\" : \"color-default-icon\"}\n class=\"item-icon\"\n name={item.icon}\n />\n )}\n <span\n class={{\n \"item-label\": true,\n \"no-icon-label\": !item.icon,\n \"bold-item\": item.bold,\n }}\n title={item.name}\n >\n {item.name}\n </span>\n </span>\n </this.htmlTag>\n {item.children?.length > 0 && (\n <z-list role=\"group\">\n <div class=\"children-node\">\n {item.children.map((child, key) => this.renderTreeList(child, `${key}`, level + 1))}\n </div>\n </z-list>\n )}\n </z-list-element>\n );\n\n return treeListContent;\n }\n\n render(): HTMLZTreeListElement {\n const hasClickableItems = this.parsedItems.some((item) => !!item.url);\n\n return (\n <Host\n class=\"tree-list\"\n role={hasClickableItems ? \"navigation\" : \"none\"}\n aria-hidden={hasClickableItems ? undefined : \"true\"}\n aria-labelledby={this.htmlAriaLabelledby}\n >\n <div\n tabIndex={-1}\n role={hasClickableItems ? \"tree\" : \"none\"}\n aria-hidden={hasClickableItems ? undefined : \"true\"}\n aria-label={this.htmlSectionTitle}\n >\n {this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`))}\n </div>\n </Host>\n );\n }\n}\n"]}