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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1449) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js +3 -0
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  4. package/dist/cjs/breakpoints-B7vFm-3T.js +3 -0
  5. package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
  6. package/dist/cjs/iconset-Cz-UsfoU.js +3 -0
  7. package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
  8. package/dist/cjs/index-D_S5lGcb.js +3 -0
  9. package/dist/cjs/index-D_S5lGcb.js.map +1 -0
  10. package/dist/cjs/index-wGaSHN1_.js +3 -0
  11. package/dist/cjs/index-wGaSHN1_.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +4 -1
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +4 -1
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-BmGKM-4y.js +1446 -0
  17. package/dist/cjs/reactive-controller-BmGKM-4y.js.map +1 -0
  18. package/dist/cjs/utils-C5_wGVkJ.js +3 -0
  19. package/dist/cjs/utils-C5_wGVkJ.js.map +1 -0
  20. package/dist/cjs/utils-DRCgbM7t.js +919 -0
  21. package/dist/cjs/utils-DRCgbM7t.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +4 -1
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +4 -1
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +3 -0
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +5 -2
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +4 -1
  31. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  32. package/dist/cjs/z-app-header_12.cjs.entry.js +57 -121
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +4 -1
  35. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  36. package/dist/cjs/z-avatar.cjs.entry.js +5 -2
  37. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-book-card-app.cjs.entry.js +4 -1
  39. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  40. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +5 -2
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +4 -1
  43. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-cover.cjs.entry.js +4 -1
  45. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  46. package/dist/cjs/z-breadcrumb.cjs.entry.js +6 -3
  47. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  48. package/dist/cjs/z-button-sort.cjs.entry.js +4 -1
  49. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-card.cjs.entry.js +3 -0
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +4 -1
  53. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-chip.cjs.entry.js +5 -2
  55. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-color-picker.cjs.entry.js +5 -2
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +5 -2
  59. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-cover-hero.cjs.entry.js +5 -2
  61. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-date-picker.cjs.entry.js +4 -1
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +23 -39
  65. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  66. package/dist/cjs/z-file-upload.cjs.entry.js +5 -2
  67. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-file.cjs.entry.js +4 -1
  69. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  70. package/dist/cjs/z-ghost-loading.cjs.entry.js +4 -1
  71. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  72. package/dist/cjs/z-info-box.cjs.entry.js +4 -1
  73. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-info-reveal.cjs.entry.js +4 -1
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-logo.cjs.entry.js +5 -2
  77. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-menu-deprecated.cjs.entry.js +5 -2
  79. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +4 -1
  81. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section.cjs.entry.js +4 -1
  83. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu.cjs.entry.js +4 -1
  85. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-myz-card-alert.cjs.entry.js +3 -0
  87. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -0
  89. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +3 -0
  91. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer.cjs.entry.js +3 -0
  93. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-icon.cjs.entry.js +3 -0
  95. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-info.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-list.cjs.entry.js +3 -0
  99. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -1
  101. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -1
  103. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list.cjs.entry.js +3 -0
  105. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-navigation-tabs.cjs.entry.js +5 -2
  107. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-notification.cjs.entry.js +4 -1
  109. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-otp.cjs.entry.js +3 -0
  111. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-pagination.cjs.entry.js +3 -0
  113. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-panel-elem.cjs.entry.js +5 -2
  115. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-popover.cjs.entry.js +5 -2
  117. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-range-picker.cjs.entry.js +6 -3
  119. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-result-card.cjs.entry.js +3 -0
  121. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-section-title.cjs.entry.js +4 -1
  123. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-select.cjs.entry.js +9 -6
  125. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-skip-to-content.cjs.entry.js +5 -2
  127. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-slideshow.cjs.entry.js +4 -1
  129. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-stepper-item.cjs.entry.js +4 -1
  131. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper.cjs.entry.js +4 -1
  133. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-table.cjs.entry.js +5 -2
  135. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-tbody.cjs.entry.js +4 -1
  137. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-td.cjs.entry.js +4 -1
  139. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-tfoot.cjs.entry.js +4 -1
  141. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-th.cjs.entry.js +4 -1
  143. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-thead.cjs.entry.js +4 -1
  145. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-toast-notification-list.cjs.entry.js +4 -1
  147. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toggle-button.cjs.entry.js +5 -2
  151. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-switch.cjs.entry.js +7 -4
  153. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-tool.cjs.entry.js +6 -3
  155. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-toolbar.cjs.entry.js +4 -1
  157. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-tooltip.cjs.entry.js +4 -1
  159. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tr.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tree-list.cjs.entry.js +4 -1
  163. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-visually-hidden.cjs.entry.js +4 -1
  165. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  166. package/dist/collection/beans/index.js +1 -0
  167. package/dist/collection/beans/index.js.map +1 -0
  168. package/dist/collection/collection-manifest.json +11 -11
  169. package/dist/collection/components/book-card/z-book-card/index.js +2 -8
  170. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  171. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  172. package/dist/collection/components/book-card/z-book-card-app/index.js +2 -3
  173. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  174. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  175. package/dist/collection/components/date-picker/utils.js +1 -0
  176. package/dist/collection/components/date-picker/utils.js.map +1 -0
  177. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -1
  178. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
  179. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -3
  180. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
  181. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +2 -54
  182. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  184. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +2 -5
  185. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  186. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  187. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +2 -2
  188. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  189. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  190. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +2 -1
  191. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  192. package/dist/collection/components/deprecated/z-section-title/index.js +2 -2
  193. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  194. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  195. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +3 -2
  196. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  197. package/dist/collection/components/file-upload/z-file/index.js +2 -1
  198. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  199. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -2
  200. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  201. package/dist/collection/components/index.js +1 -0
  202. package/dist/collection/components/index.js.map +1 -0
  203. package/dist/collection/components/list/z-list/index.js +2 -1
  204. package/dist/collection/components/list/z-list/index.js.map +1 -0
  205. package/dist/collection/components/list/z-list-element/index.js +2 -1
  206. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  207. package/dist/collection/components/list/z-list-group/index.js +3 -2
  208. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  209. package/dist/collection/components/list/z-tree-list/index.js +2 -1
  210. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  211. package/dist/collection/components/table/cells/z-td/index.js +2 -1
  212. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  213. package/dist/collection/components/table/cells/z-th/index.js +2 -1
  214. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  215. package/dist/collection/components/table/z-table/index.js +2 -2
  216. package/dist/collection/components/table/z-table/index.js.map +1 -0
  217. package/dist/collection/components/table/z-table/styles.css +3 -0
  218. package/dist/collection/components/table/z-tbody/index.js +2 -1
  219. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  220. package/dist/collection/components/table/z-tfoot/index.js +2 -1
  221. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  222. package/dist/collection/components/table/z-thead/index.js +2 -1
  223. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  224. package/dist/collection/components/table/z-tr/index.js +2 -1
  225. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/styles.css +2 -2
  227. package/dist/collection/components/z-accordion/index.js +4 -11
  228. package/dist/collection/components/z-accordion/index.js.map +1 -0
  229. package/dist/collection/components/z-accordion/styles.css +12 -0
  230. package/dist/collection/components/z-anchor-navigation/index.js +4 -3
  231. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  232. package/dist/collection/components/z-app-header/index.js +22 -8
  233. package/dist/collection/components/z-app-header/index.js.map +1 -0
  234. package/dist/collection/components/z-app-header/styles.css +12 -12
  235. package/dist/collection/components/z-aria-alert/index.js +2 -1
  236. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  237. package/dist/collection/components/z-avatar/index.js +3 -2
  238. package/dist/collection/components/z-avatar/index.js.map +1 -0
  239. package/dist/collection/components/z-book-cover/index.js +2 -5
  240. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  241. package/dist/collection/components/z-book-cover/styles.css +6 -0
  242. package/dist/collection/components/z-breadcrumb/index.js +3 -2
  243. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  244. package/dist/collection/components/z-button/index.js +3 -2
  245. package/dist/collection/components/z-button/index.js.map +1 -0
  246. package/dist/collection/components/z-button-sort/index.js +2 -1
  247. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  248. package/dist/collection/components/z-card/index.js +2 -8
  249. package/dist/collection/components/z-card/index.js.map +1 -0
  250. package/dist/collection/components/z-card/styles.css +9 -0
  251. package/dist/collection/components/z-carousel/index.js +1 -2
  252. package/dist/collection/components/z-carousel/index.js.map +1 -0
  253. package/dist/collection/components/z-carousel/styles.css +7 -3
  254. package/dist/collection/components/z-chip/index.js +3 -2
  255. package/dist/collection/components/z-chip/index.js.map +1 -0
  256. package/dist/collection/components/z-color-picker/index.js +2 -1
  257. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  258. package/dist/collection/components/z-combobox/index.js +2 -1
  259. package/dist/collection/components/z-combobox/index.js.map +1 -0
  260. package/dist/collection/components/z-cover-hero/index.js +3 -5
  261. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  262. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  263. package/dist/collection/components/z-divider/index.js +2 -1
  264. package/dist/collection/components/z-divider/index.js.map +1 -0
  265. package/dist/collection/components/z-ghost-loading/index.js +2 -1
  266. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  267. package/dist/collection/components/z-icon/index.js +4 -3
  268. package/dist/collection/components/z-icon/index.js.map +1 -0
  269. package/dist/collection/components/z-info-box/index.js +2 -1
  270. package/dist/collection/components/z-info-box/index.js.map +1 -0
  271. package/dist/collection/components/z-info-reveal/index.js +2 -5
  272. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  273. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  274. package/dist/collection/components/z-input/index.js +2 -1
  275. package/dist/collection/components/z-input/index.js.map +1 -0
  276. package/dist/collection/components/z-input-message/index.js +2 -1
  277. package/dist/collection/components/z-input-message/index.js.map +1 -0
  278. package/dist/collection/components/z-logo/index.js +2 -1
  279. package/dist/collection/components/z-logo/index.js.map +1 -0
  280. package/dist/collection/components/z-logo/styles.css +5 -0
  281. package/dist/collection/components/z-menu/index.js +1 -1
  282. package/dist/collection/components/z-menu/index.js.map +1 -0
  283. package/dist/collection/components/z-menu/styles.css +3 -0
  284. package/dist/collection/components/z-menu-section/index.js +2 -1
  285. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  286. package/dist/collection/components/z-modal/index.js +17 -37
  287. package/dist/collection/components/z-modal/index.js.map +1 -0
  288. package/dist/collection/components/z-modal/styles.css +5 -2
  289. package/dist/collection/components/z-navigation-tabs/index.js +3 -4
  290. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  291. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  292. package/dist/collection/components/z-notification/index.js +2 -4
  293. package/dist/collection/components/z-notification/index.js.map +1 -0
  294. package/dist/collection/components/z-notification/styles.css +5 -0
  295. package/dist/collection/components/z-offcanvas/index.js +43 -119
  296. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  297. package/dist/collection/components/z-offcanvas/styles.css +6 -0
  298. package/dist/collection/components/z-pagination/index.js +1 -2
  299. package/dist/collection/components/z-pagination/index.js.map +1 -0
  300. package/dist/collection/components/z-pagination/styles.css +6 -0
  301. package/dist/collection/components/z-panel-elem/index.js +3 -2
  302. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  303. package/dist/collection/components/z-popover/index.js +2 -6
  304. package/dist/collection/components/z-popover/index.js.map +1 -0
  305. package/dist/collection/components/z-popover/styles.css +6 -0
  306. package/dist/collection/components/z-result-card/index.js +1 -0
  307. package/dist/collection/components/z-result-card/index.js.map +1 -0
  308. package/dist/collection/components/z-searchbar/index.js +4 -8
  309. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  310. package/dist/collection/components/z-searchbar/styles.css +5 -0
  311. package/dist/collection/components/z-select/index.js +6 -5
  312. package/dist/collection/components/z-select/index.js.map +1 -0
  313. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  314. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  315. package/dist/collection/components/z-stepper/index.js +2 -1
  316. package/dist/collection/components/z-stepper/index.js.map +1 -0
  317. package/dist/collection/components/z-stepper-item/index.js +2 -1
  318. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  319. package/dist/collection/components/z-tag/index.js +3 -4
  320. package/dist/collection/components/z-tag/index.js.map +1 -0
  321. package/dist/collection/components/z-tag/styles.css +5 -0
  322. package/dist/collection/components/z-toast-notification/index.js +4 -3
  323. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  324. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  325. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  326. package/dist/collection/components/z-toggle-button/index.js +3 -2
  327. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  328. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  329. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  330. package/dist/collection/components/z-tool/index.js +3 -2
  331. package/dist/collection/components/z-tool/index.js.map +1 -0
  332. package/dist/collection/components/z-toolbar/index.js +2 -2
  333. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  334. package/dist/collection/components/z-toolbar/styles.css +4 -0
  335. package/dist/collection/components/z-tooltip/index.js +2 -5
  336. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  337. package/dist/collection/components/z-tooltip/styles.css +6 -0
  338. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  339. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  340. package/dist/collection/constants/breakpoints.js +1 -0
  341. package/dist/collection/constants/breakpoints.js.map +1 -0
  342. package/dist/collection/constants/icons.js +1 -0
  343. package/dist/collection/constants/icons.js.map +1 -0
  344. package/dist/collection/constants/iconset.js +1 -0
  345. package/dist/collection/constants/iconset.js.map +1 -0
  346. package/dist/collection/index.js +1 -0
  347. package/dist/collection/index.js.map +1 -0
  348. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -2
  349. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  350. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -0
  351. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  352. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -0
  353. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  354. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -0
  355. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  356. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -0
  357. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  358. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -0
  359. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  360. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -0
  361. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  362. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -0
  363. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  364. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -0
  365. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  366. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
  367. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  368. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -0
  369. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  370. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -0
  371. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  372. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -0
  373. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  374. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -0
  375. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  376. package/dist/collection/snowflakes/myz/z-otp/index.js +1 -0
  377. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  378. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  379. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  380. package/dist/collection/utils/focus-trap-controller.js +100 -0
  381. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  382. package/dist/collection/utils/reactive-controller.js +46 -0
  383. package/dist/collection/utils/reactive-controller.js.map +1 -0
  384. package/dist/collection/utils/storybook-utils.js +8 -0
  385. package/dist/collection/utils/storybook-utils.js.map +1 -0
  386. package/dist/collection/utils/utils.js +60 -1
  387. package/dist/collection/utils/utils.js.map +1 -0
  388. package/dist/components/_commonjsHelpers.js +2 -1
  389. package/dist/components/_commonjsHelpers.js.map +1 -0
  390. package/dist/components/breakpoints.js +2 -1
  391. package/dist/components/breakpoints.js.map +1 -0
  392. package/dist/components/iconset.js +2 -1
  393. package/dist/components/iconset.js.map +1 -0
  394. package/dist/components/index.js +2 -1
  395. package/dist/components/index.js.map +1 -0
  396. package/dist/components/index10.js +2 -1
  397. package/dist/components/index10.js.map +1 -0
  398. package/dist/components/index11.js +2 -1
  399. package/dist/components/index11.js.map +1 -0
  400. package/dist/components/index12.js +2 -1
  401. package/dist/components/index12.js.map +1 -0
  402. package/dist/components/index13.js +2 -1
  403. package/dist/components/index13.js.map +1 -0
  404. package/dist/components/index14.js +2 -1
  405. package/dist/components/index14.js.map +1 -0
  406. package/dist/components/index15.js +2 -1
  407. package/dist/components/index15.js.map +1 -0
  408. package/dist/components/index16.js +2 -1
  409. package/dist/components/index16.js.map +1 -0
  410. package/dist/components/index17.js +2 -1
  411. package/dist/components/index17.js.map +1 -0
  412. package/dist/components/index18.js +2 -1
  413. package/dist/components/index18.js.map +1 -0
  414. package/dist/components/index19.js +2 -1
  415. package/dist/components/index19.js.map +1 -0
  416. package/dist/components/index2.js +2 -1
  417. package/dist/components/index2.js.map +1 -0
  418. package/dist/components/index20.js +2 -1
  419. package/dist/components/index20.js.map +1 -0
  420. package/dist/components/index21.js +2 -1
  421. package/dist/components/index21.js.map +1 -0
  422. package/dist/components/index22.js +2 -1
  423. package/dist/components/index22.js.map +1 -0
  424. package/dist/components/index23.js +2 -1
  425. package/dist/components/index23.js.map +1 -0
  426. package/dist/components/index24.js +2 -1
  427. package/dist/components/index24.js.map +1 -0
  428. package/dist/components/index25.js +2 -1
  429. package/dist/components/index25.js.map +1 -0
  430. package/dist/components/index26.js +2 -1
  431. package/dist/components/index26.js.map +1 -0
  432. package/dist/components/index27.js +2 -1
  433. package/dist/components/index27.js.map +1 -0
  434. package/dist/components/index3.js +2 -1
  435. package/dist/components/index3.js.map +1 -0
  436. package/dist/components/index4.js +2 -1
  437. package/dist/components/index4.js.map +1 -0
  438. package/dist/components/index5.js +2 -1
  439. package/dist/components/index5.js.map +1 -0
  440. package/dist/components/index6.js +2 -1
  441. package/dist/components/index6.js.map +1 -0
  442. package/dist/components/index7.js +2 -1
  443. package/dist/components/index7.js.map +1 -0
  444. package/dist/components/index8.js +2 -1
  445. package/dist/components/index8.js.map +1 -0
  446. package/dist/components/index9.js +2 -1
  447. package/dist/components/index9.js.map +1 -0
  448. package/dist/components/reactive-controller.js +6 -0
  449. package/dist/components/reactive-controller.js.map +1 -0
  450. package/dist/components/utils.js +7 -1
  451. package/dist/components/utils.js.map +1 -0
  452. package/dist/components/utils2.js +2 -1
  453. package/dist/components/utils2.js.map +1 -0
  454. package/dist/components/z-accordion.js +2 -1
  455. package/dist/components/z-accordion.js.map +1 -0
  456. package/dist/components/z-alert.js +2 -1
  457. package/dist/components/z-alert.js.map +1 -0
  458. package/dist/components/z-anchor-navigation.js +2 -1
  459. package/dist/components/z-anchor-navigation.js.map +1 -0
  460. package/dist/components/z-app-header-deprecated.js +2 -1
  461. package/dist/components/z-app-header-deprecated.js.map +1 -0
  462. package/dist/components/z-app-header.js +2 -1
  463. package/dist/components/z-app-header.js.map +1 -0
  464. package/dist/components/z-aria-alert.js +2 -1
  465. package/dist/components/z-aria-alert.js.map +1 -0
  466. package/dist/components/z-avatar.js +2 -1
  467. package/dist/components/z-avatar.js.map +1 -0
  468. package/dist/components/z-book-card-app.js +2 -1
  469. package/dist/components/z-book-card-app.js.map +1 -0
  470. package/dist/components/z-book-card-deprecated.js +2 -1
  471. package/dist/components/z-book-card-deprecated.js.map +1 -0
  472. package/dist/components/z-book-card.js +2 -1
  473. package/dist/components/z-book-card.js.map +1 -0
  474. package/dist/components/z-book-cover.js +2 -1
  475. package/dist/components/z-book-cover.js.map +1 -0
  476. package/dist/components/z-breadcrumb.js +2 -1
  477. package/dist/components/z-breadcrumb.js.map +1 -0
  478. package/dist/components/z-button-sort.js +2 -1
  479. package/dist/components/z-button-sort.js.map +1 -0
  480. package/dist/components/z-button.js +2 -1
  481. package/dist/components/z-button.js.map +1 -0
  482. package/dist/components/z-card.js +2 -1
  483. package/dist/components/z-card.js.map +1 -0
  484. package/dist/components/z-carousel.js +2 -1
  485. package/dist/components/z-carousel.js.map +1 -0
  486. package/dist/components/z-chip.js +2 -1
  487. package/dist/components/z-chip.js.map +1 -0
  488. package/dist/components/z-color-picker.js +2 -1
  489. package/dist/components/z-color-picker.js.map +1 -0
  490. package/dist/components/z-combobox.js +2 -1
  491. package/dist/components/z-combobox.js.map +1 -0
  492. package/dist/components/z-cover-hero.js +2 -1
  493. package/dist/components/z-cover-hero.js.map +1 -0
  494. package/dist/components/z-date-picker.js +3 -2
  495. package/dist/components/z-date-picker.js.map +1 -0
  496. package/dist/components/z-divider.js +2 -1
  497. package/dist/components/z-divider.js.map +1 -0
  498. package/dist/components/z-dragdrop-area.js +2 -1
  499. package/dist/components/z-dragdrop-area.js.map +1 -0
  500. package/dist/components/z-file-upload.js +2 -1
  501. package/dist/components/z-file-upload.js.map +1 -0
  502. package/dist/components/z-file.js +2 -1
  503. package/dist/components/z-file.js.map +1 -0
  504. package/dist/components/z-ghost-loading.js +2 -1
  505. package/dist/components/z-ghost-loading.js.map +1 -0
  506. package/dist/components/z-icon.js +2 -1
  507. package/dist/components/z-icon.js.map +1 -0
  508. package/dist/components/z-info-box.js +2 -1
  509. package/dist/components/z-info-box.js.map +1 -0
  510. package/dist/components/z-info-reveal.js +2 -1
  511. package/dist/components/z-info-reveal.js.map +1 -0
  512. package/dist/components/z-input-message.js +2 -1
  513. package/dist/components/z-input-message.js.map +1 -0
  514. package/dist/components/z-input.js +2 -1
  515. package/dist/components/z-input.js.map +1 -0
  516. package/dist/components/z-list-element.js +2 -1
  517. package/dist/components/z-list-element.js.map +1 -0
  518. package/dist/components/z-list-group.js +2 -1
  519. package/dist/components/z-list-group.js.map +1 -0
  520. package/dist/components/z-list.js +2 -1
  521. package/dist/components/z-list.js.map +1 -0
  522. package/dist/components/z-logo.js +2 -1
  523. package/dist/components/z-logo.js.map +1 -0
  524. package/dist/components/z-menu-deprecated.js +2 -1
  525. package/dist/components/z-menu-deprecated.js.map +1 -0
  526. package/dist/components/z-menu-section-deprecated.js +2 -1
  527. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  528. package/dist/components/z-menu-section.js +2 -1
  529. package/dist/components/z-menu-section.js.map +1 -0
  530. package/dist/components/z-menu.js +2 -1
  531. package/dist/components/z-menu.js.map +1 -0
  532. package/dist/components/z-modal.js +2 -1
  533. package/dist/components/z-modal.js.map +1 -0
  534. package/dist/components/z-myz-card-alert.js +2 -1
  535. package/dist/components/z-myz-card-alert.js.map +1 -0
  536. package/dist/components/z-myz-card-body.js +2 -1
  537. package/dist/components/z-myz-card-body.js.map +1 -0
  538. package/dist/components/z-myz-card-cover.js +2 -1
  539. package/dist/components/z-myz-card-cover.js.map +1 -0
  540. package/dist/components/z-myz-card-dictionary.js +2 -1
  541. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  542. package/dist/components/z-myz-card-footer-sections.js +2 -1
  543. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  544. package/dist/components/z-myz-card-footer.js +2 -1
  545. package/dist/components/z-myz-card-footer.js.map +1 -0
  546. package/dist/components/z-myz-card-header.js +2 -1
  547. package/dist/components/z-myz-card-header.js.map +1 -0
  548. package/dist/components/z-myz-card-icon.js +2 -1
  549. package/dist/components/z-myz-card-icon.js.map +1 -0
  550. package/dist/components/z-myz-card-info.js +2 -1
  551. package/dist/components/z-myz-card-info.js.map +1 -0
  552. package/dist/components/z-myz-card-list.js +2 -1
  553. package/dist/components/z-myz-card-list.js.map +1 -0
  554. package/dist/components/z-myz-card.js +2 -1
  555. package/dist/components/z-myz-card.js.map +1 -0
  556. package/dist/components/z-myz-list-item.js +2 -1
  557. package/dist/components/z-myz-list-item.js.map +1 -0
  558. package/dist/components/z-myz-list.js +2 -1
  559. package/dist/components/z-myz-list.js.map +1 -0
  560. package/dist/components/z-navigation-tabs.js +2 -1
  561. package/dist/components/z-navigation-tabs.js.map +1 -0
  562. package/dist/components/z-notification.js +2 -1
  563. package/dist/components/z-notification.js.map +1 -0
  564. package/dist/components/z-offcanvas.js +2 -1
  565. package/dist/components/z-offcanvas.js.map +1 -0
  566. package/dist/components/z-otp.js +2 -1
  567. package/dist/components/z-otp.js.map +1 -0
  568. package/dist/components/z-pagination.js +2 -1
  569. package/dist/components/z-pagination.js.map +1 -0
  570. package/dist/components/z-panel-elem.js +2 -1
  571. package/dist/components/z-panel-elem.js.map +1 -0
  572. package/dist/components/z-popover.js +2 -1
  573. package/dist/components/z-popover.js.map +1 -0
  574. package/dist/components/z-range-picker.js +2 -1
  575. package/dist/components/z-range-picker.js.map +1 -0
  576. package/dist/components/z-result-card.js +2 -1
  577. package/dist/components/z-result-card.js.map +1 -0
  578. package/dist/components/z-searchbar.js +2 -1
  579. package/dist/components/z-searchbar.js.map +1 -0
  580. package/dist/components/z-section-title.js +2 -1
  581. package/dist/components/z-section-title.js.map +1 -0
  582. package/dist/components/z-select.js +2 -1
  583. package/dist/components/z-select.js.map +1 -0
  584. package/dist/components/z-skip-to-content.js +2 -1
  585. package/dist/components/z-skip-to-content.js.map +1 -0
  586. package/dist/components/z-slideshow.js +2 -1
  587. package/dist/components/z-slideshow.js.map +1 -0
  588. package/dist/components/z-stepper-item.js +2 -1
  589. package/dist/components/z-stepper-item.js.map +1 -0
  590. package/dist/components/z-stepper.js +2 -1
  591. package/dist/components/z-stepper.js.map +1 -0
  592. package/dist/components/z-table.js +2 -1
  593. package/dist/components/z-table.js.map +1 -0
  594. package/dist/components/z-tag.js +2 -1
  595. package/dist/components/z-tag.js.map +1 -0
  596. package/dist/components/z-tbody.js +2 -1
  597. package/dist/components/z-tbody.js.map +1 -0
  598. package/dist/components/z-td.js +2 -1
  599. package/dist/components/z-td.js.map +1 -0
  600. package/dist/components/z-tfoot.js +2 -1
  601. package/dist/components/z-tfoot.js.map +1 -0
  602. package/dist/components/z-th.js +2 -1
  603. package/dist/components/z-th.js.map +1 -0
  604. package/dist/components/z-thead.js +2 -1
  605. package/dist/components/z-thead.js.map +1 -0
  606. package/dist/components/z-toast-notification-list.js +2 -1
  607. package/dist/components/z-toast-notification-list.js.map +1 -0
  608. package/dist/components/z-toast-notification.js +8 -2
  609. package/dist/components/z-toast-notification.js.map +1 -0
  610. package/dist/components/z-toggle-button.js +2 -1
  611. package/dist/components/z-toggle-button.js.map +1 -0
  612. package/dist/components/z-toggle-switch.js +2 -1
  613. package/dist/components/z-toggle-switch.js.map +1 -0
  614. package/dist/components/z-tool.js +2 -1
  615. package/dist/components/z-tool.js.map +1 -0
  616. package/dist/components/z-toolbar.js +2 -1
  617. package/dist/components/z-toolbar.js.map +1 -0
  618. package/dist/components/z-tooltip.js +2 -1
  619. package/dist/components/z-tooltip.js.map +1 -0
  620. package/dist/components/z-tr.js +2 -1
  621. package/dist/components/z-tr.js.map +1 -0
  622. package/dist/components/z-tree-list.js +2 -1
  623. package/dist/components/z-tree-list.js.map +1 -0
  624. package/dist/components/z-visually-hidden.js +2 -1
  625. package/dist/components/z-visually-hidden.js.map +1 -0
  626. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  627. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  628. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  629. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  630. package/dist/esm/iconset-AwzX9V8L.js +3 -0
  631. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  632. package/dist/esm/index-BKCj6NR2.js +3 -0
  633. package/dist/esm/index-BKCj6NR2.js.map +1 -0
  634. package/dist/esm/index-DPdXlnVe.js +3 -0
  635. package/dist/esm/index-DPdXlnVe.js.map +1 -0
  636. package/dist/esm/index.js +4 -1
  637. package/dist/esm/index.js.map +1 -0
  638. package/dist/esm/loader.js +4 -1
  639. package/dist/esm/loader.js.map +1 -0
  640. package/dist/esm/reactive-controller-DZQWST94.js +1443 -0
  641. package/dist/esm/reactive-controller-DZQWST94.js.map +1 -0
  642. package/dist/esm/utils-D-T4RQuj.js +896 -0
  643. package/dist/esm/utils-D-T4RQuj.js.map +1 -0
  644. package/dist/esm/utils-DuuLzXZj.js +3 -0
  645. package/dist/esm/utils-DuuLzXZj.js.map +1 -0
  646. package/dist/esm/web-components-library.js +4 -1
  647. package/dist/esm/web-components-library.js.map +1 -0
  648. package/dist/esm/z-accordion.entry.js +4 -1
  649. package/dist/esm/z-accordion.entry.js.map +1 -0
  650. package/dist/esm/z-alert.entry.js +3 -0
  651. package/dist/esm/z-alert.entry.js.map +1 -0
  652. package/dist/esm/z-anchor-navigation.entry.js +5 -2
  653. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  654. package/dist/esm/z-app-header-deprecated.entry.js +4 -1
  655. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  656. package/dist/esm/z-app-header_12.entry.js +57 -121
  657. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  658. package/dist/esm/z-aria-alert.entry.js +4 -1
  659. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  660. package/dist/esm/z-avatar.entry.js +5 -2
  661. package/dist/esm/z-avatar.entry.js.map +1 -0
  662. package/dist/esm/z-book-card-app.entry.js +4 -1
  663. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  664. package/dist/esm/z-book-card-deprecated.entry.js +5 -2
  665. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  666. package/dist/esm/z-book-card.entry.js +4 -1
  667. package/dist/esm/z-book-card.entry.js.map +1 -0
  668. package/dist/esm/z-book-cover.entry.js +4 -1
  669. package/dist/esm/z-book-cover.entry.js.map +1 -0
  670. package/dist/esm/z-breadcrumb.entry.js +6 -3
  671. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  672. package/dist/esm/z-button-sort.entry.js +4 -1
  673. package/dist/esm/z-button-sort.entry.js.map +1 -0
  674. package/dist/esm/z-card.entry.js +3 -0
  675. package/dist/esm/z-card.entry.js.map +1 -0
  676. package/dist/esm/z-carousel.entry.js +4 -1
  677. package/dist/esm/z-carousel.entry.js.map +1 -0
  678. package/dist/esm/z-chip.entry.js +5 -2
  679. package/dist/esm/z-chip.entry.js.map +1 -0
  680. package/dist/esm/z-color-picker.entry.js +5 -2
  681. package/dist/esm/z-color-picker.entry.js.map +1 -0
  682. package/dist/esm/z-combobox.entry.js +5 -2
  683. package/dist/esm/z-combobox.entry.js.map +1 -0
  684. package/dist/esm/z-cover-hero.entry.js +5 -2
  685. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  686. package/dist/esm/z-date-picker.entry.js +4 -1
  687. package/dist/esm/z-date-picker.entry.js.map +1 -0
  688. package/dist/esm/z-dragdrop-area_2.entry.js +23 -39
  689. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  690. package/dist/esm/z-file-upload.entry.js +5 -2
  691. package/dist/esm/z-file-upload.entry.js.map +1 -0
  692. package/dist/esm/z-file.entry.js +4 -1
  693. package/dist/esm/z-file.entry.js.map +1 -0
  694. package/dist/esm/z-ghost-loading.entry.js +4 -1
  695. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  696. package/dist/esm/z-info-box.entry.js +4 -1
  697. package/dist/esm/z-info-box.entry.js.map +1 -0
  698. package/dist/esm/z-info-reveal.entry.js +4 -1
  699. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  700. package/dist/esm/z-logo.entry.js +5 -2
  701. package/dist/esm/z-logo.entry.js.map +1 -0
  702. package/dist/esm/z-menu-deprecated.entry.js +5 -2
  703. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  704. package/dist/esm/z-menu-section-deprecated.entry.js +4 -1
  705. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  706. package/dist/esm/z-menu-section.entry.js +4 -1
  707. package/dist/esm/z-menu-section.entry.js.map +1 -0
  708. package/dist/esm/z-menu.entry.js +4 -1
  709. package/dist/esm/z-menu.entry.js.map +1 -0
  710. package/dist/esm/z-myz-card-alert.entry.js +3 -0
  711. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  712. package/dist/esm/z-myz-card-dictionary.entry.js +3 -0
  713. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  714. package/dist/esm/z-myz-card-footer-sections.entry.js +3 -0
  715. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  716. package/dist/esm/z-myz-card-footer.entry.js +3 -0
  717. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  718. package/dist/esm/z-myz-card-icon.entry.js +3 -0
  719. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  720. package/dist/esm/z-myz-card-info.entry.js +5 -2
  721. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  722. package/dist/esm/z-myz-card-list.entry.js +3 -0
  723. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  724. package/dist/esm/z-myz-card_4.entry.js +4 -1
  725. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  726. package/dist/esm/z-myz-list-item.entry.js +4 -1
  727. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  728. package/dist/esm/z-myz-list.entry.js +3 -0
  729. package/dist/esm/z-myz-list.entry.js.map +1 -0
  730. package/dist/esm/z-navigation-tabs.entry.js +5 -2
  731. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  732. package/dist/esm/z-notification.entry.js +4 -1
  733. package/dist/esm/z-notification.entry.js.map +1 -0
  734. package/dist/esm/z-otp.entry.js +3 -0
  735. package/dist/esm/z-otp.entry.js.map +1 -0
  736. package/dist/esm/z-pagination.entry.js +3 -0
  737. package/dist/esm/z-pagination.entry.js.map +1 -0
  738. package/dist/esm/z-panel-elem.entry.js +5 -2
  739. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  740. package/dist/esm/z-popover.entry.js +5 -2
  741. package/dist/esm/z-popover.entry.js.map +1 -0
  742. package/dist/esm/z-range-picker.entry.js +6 -3
  743. package/dist/esm/z-range-picker.entry.js.map +1 -0
  744. package/dist/esm/z-result-card.entry.js +3 -0
  745. package/dist/esm/z-result-card.entry.js.map +1 -0
  746. package/dist/esm/z-section-title.entry.js +4 -1
  747. package/dist/esm/z-section-title.entry.js.map +1 -0
  748. package/dist/esm/z-select.entry.js +9 -6
  749. package/dist/esm/z-select.entry.js.map +1 -0
  750. package/dist/esm/z-skip-to-content.entry.js +5 -2
  751. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  752. package/dist/esm/z-slideshow.entry.js +4 -1
  753. package/dist/esm/z-slideshow.entry.js.map +1 -0
  754. package/dist/esm/z-stepper-item.entry.js +4 -1
  755. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  756. package/dist/esm/z-stepper.entry.js +4 -1
  757. package/dist/esm/z-stepper.entry.js.map +1 -0
  758. package/dist/esm/z-table.entry.js +5 -2
  759. package/dist/esm/z-table.entry.js.map +1 -0
  760. package/dist/esm/z-tbody.entry.js +4 -1
  761. package/dist/esm/z-tbody.entry.js.map +1 -0
  762. package/dist/esm/z-td.entry.js +4 -1
  763. package/dist/esm/z-td.entry.js.map +1 -0
  764. package/dist/esm/z-tfoot.entry.js +4 -1
  765. package/dist/esm/z-tfoot.entry.js.map +1 -0
  766. package/dist/esm/z-th.entry.js +4 -1
  767. package/dist/esm/z-th.entry.js.map +1 -0
  768. package/dist/esm/z-thead.entry.js +4 -1
  769. package/dist/esm/z-thead.entry.js.map +1 -0
  770. package/dist/esm/z-toast-notification-list.entry.js +4 -1
  771. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  772. package/dist/esm/z-toast-notification.entry.js +6 -3
  773. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  774. package/dist/esm/z-toggle-button.entry.js +5 -2
  775. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  776. package/dist/esm/z-toggle-switch.entry.js +7 -4
  777. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  778. package/dist/esm/z-tool.entry.js +6 -3
  779. package/dist/esm/z-tool.entry.js.map +1 -0
  780. package/dist/esm/z-toolbar.entry.js +4 -1
  781. package/dist/esm/z-toolbar.entry.js.map +1 -0
  782. package/dist/esm/z-tooltip.entry.js +4 -1
  783. package/dist/esm/z-tooltip.entry.js.map +1 -0
  784. package/dist/esm/z-tr.entry.js +6 -3
  785. package/dist/esm/z-tr.entry.js.map +1 -0
  786. package/dist/esm/z-tree-list.entry.js +4 -1
  787. package/dist/esm/z-tree-list.entry.js.map +1 -0
  788. package/dist/esm/z-visually-hidden.entry.js +4 -1
  789. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  790. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  791. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  792. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  793. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  794. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  795. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  796. package/dist/types/components/table/z-table/index.d.ts +0 -1
  797. package/dist/types/components/z-accordion/index.d.ts +2 -10
  798. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  799. package/dist/types/components/z-app-header/index.d.ts +4 -6
  800. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  801. package/dist/types/components/z-button/index.d.ts +1 -1
  802. package/dist/types/components/z-card/index.d.ts +1 -8
  803. package/dist/types/components/z-carousel/index.d.ts +0 -2
  804. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  805. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  806. package/dist/types/components/z-menu/index.d.ts +0 -1
  807. package/dist/types/components/z-modal/index.d.ts +4 -11
  808. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  809. package/dist/types/components/z-notification/index.d.ts +0 -3
  810. package/dist/types/components/z-offcanvas/index.d.ts +12 -37
  811. package/dist/types/components/z-pagination/index.d.ts +0 -2
  812. package/dist/types/components/z-popover/index.d.ts +0 -5
  813. package/dist/types/components/z-searchbar/index.d.ts +0 -5
  814. package/dist/types/components/z-tag/index.d.ts +0 -2
  815. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  816. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  817. package/dist/types/components.d.ts +18 -601
  818. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  819. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  820. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  821. package/dist/types/utils/reactive-controller.d.ts +39 -0
  822. package/dist/types/utils/storybook-utils.d.ts +7 -2
  823. package/dist/types/utils/utils.d.ts +10 -0
  824. package/dist/web-components-library/index.esm.js +2 -1
  825. package/dist/web-components-library/index.esm.js.map +1 -0
  826. package/dist/web-components-library/p-02741f3e.entry.js +2 -0
  827. package/dist/web-components-library/p-02741f3e.entry.js.map +1 -0
  828. package/dist/web-components-library/p-02b47708.entry.js +2 -0
  829. package/dist/web-components-library/p-02b47708.entry.js.map +1 -0
  830. package/dist/web-components-library/p-02e3f7db.entry.js +2 -0
  831. package/dist/web-components-library/p-02e3f7db.entry.js.map +1 -0
  832. package/dist/web-components-library/p-0b8313b7.entry.js +2 -0
  833. package/dist/web-components-library/p-0b8313b7.entry.js.map +1 -0
  834. package/dist/web-components-library/p-0f79c6e8.entry.js +2 -0
  835. package/dist/web-components-library/p-0f79c6e8.entry.js.map +1 -0
  836. package/dist/web-components-library/p-168426fe.entry.js +2 -0
  837. package/dist/web-components-library/p-168426fe.entry.js.map +1 -0
  838. package/dist/web-components-library/p-1f64ba04.entry.js +8 -0
  839. package/dist/web-components-library/p-1f64ba04.entry.js.map +1 -0
  840. package/dist/web-components-library/p-29816d9c.entry.js +2 -0
  841. package/dist/web-components-library/p-29816d9c.entry.js.map +1 -0
  842. package/dist/web-components-library/p-2a00eea3.entry.js +2 -0
  843. package/dist/web-components-library/p-2a00eea3.entry.js.map +1 -0
  844. package/dist/web-components-library/p-2ffbc315.entry.js +2 -0
  845. package/dist/web-components-library/p-2ffbc315.entry.js.map +1 -0
  846. package/dist/web-components-library/p-31635e9d.entry.js +2 -0
  847. package/dist/web-components-library/p-31635e9d.entry.js.map +1 -0
  848. package/dist/web-components-library/p-338fc882.entry.js +2 -0
  849. package/dist/web-components-library/p-338fc882.entry.js.map +1 -0
  850. package/dist/web-components-library/p-40079bb3.entry.js +2 -0
  851. package/dist/web-components-library/p-40079bb3.entry.js.map +1 -0
  852. package/dist/web-components-library/p-413c743d.entry.js +2 -0
  853. package/dist/web-components-library/p-413c743d.entry.js.map +1 -0
  854. package/dist/web-components-library/p-441cb2d9.entry.js +2 -0
  855. package/dist/web-components-library/p-441cb2d9.entry.js.map +1 -0
  856. package/dist/web-components-library/p-44b8aba8.entry.js +2 -0
  857. package/dist/web-components-library/p-44b8aba8.entry.js.map +1 -0
  858. package/dist/web-components-library/p-4767a2b3.entry.js +2 -0
  859. package/dist/web-components-library/p-4767a2b3.entry.js.map +1 -0
  860. package/dist/web-components-library/p-48b9411e.entry.js +2 -0
  861. package/dist/web-components-library/p-48b9411e.entry.js.map +1 -0
  862. package/dist/web-components-library/p-52e01182.entry.js +2 -0
  863. package/dist/web-components-library/p-52e01182.entry.js.map +1 -0
  864. package/dist/web-components-library/p-56f926d7.entry.js +2 -0
  865. package/dist/web-components-library/p-56f926d7.entry.js.map +1 -0
  866. package/dist/web-components-library/p-585b7068.entry.js +2 -0
  867. package/dist/web-components-library/p-585b7068.entry.js.map +1 -0
  868. package/dist/web-components-library/p-5928e726.entry.js +2 -0
  869. package/dist/web-components-library/p-5928e726.entry.js.map +1 -0
  870. package/dist/web-components-library/p-5b72a84e.entry.js +2 -0
  871. package/dist/web-components-library/p-5b72a84e.entry.js.map +1 -0
  872. package/dist/web-components-library/p-5fc0afef.entry.js +2 -0
  873. package/dist/web-components-library/p-5fc0afef.entry.js.map +1 -0
  874. package/dist/web-components-library/p-602aad3e.entry.js +2 -0
  875. package/dist/web-components-library/p-602aad3e.entry.js.map +1 -0
  876. package/dist/web-components-library/p-65013fbe.entry.js +2 -0
  877. package/dist/web-components-library/p-65013fbe.entry.js.map +1 -0
  878. package/dist/web-components-library/p-680e12d3.entry.js +2 -0
  879. package/dist/web-components-library/p-680e12d3.entry.js.map +1 -0
  880. package/dist/web-components-library/p-6a949aa2.entry.js +2 -0
  881. package/dist/web-components-library/p-6a949aa2.entry.js.map +1 -0
  882. package/dist/web-components-library/p-6d5dac88.entry.js +2 -0
  883. package/dist/web-components-library/p-6d5dac88.entry.js.map +1 -0
  884. package/dist/web-components-library/p-6df25588.entry.js +2 -0
  885. package/dist/web-components-library/p-6df25588.entry.js.map +1 -0
  886. package/dist/web-components-library/p-720d8465.entry.js +2 -0
  887. package/dist/web-components-library/p-720d8465.entry.js.map +1 -0
  888. package/dist/web-components-library/p-7825ea5e.entry.js +2 -0
  889. package/dist/web-components-library/p-7825ea5e.entry.js.map +1 -0
  890. package/dist/web-components-library/p-7a0eb225.entry.js +2 -0
  891. package/dist/web-components-library/p-7a0eb225.entry.js.map +1 -0
  892. package/dist/web-components-library/p-7c1da49a.entry.js +2 -0
  893. package/dist/web-components-library/p-7c1da49a.entry.js.map +1 -0
  894. package/dist/web-components-library/p-7c3e6b8d.entry.js +2 -0
  895. package/dist/web-components-library/p-7c3e6b8d.entry.js.map +1 -0
  896. package/dist/web-components-library/p-7d9d5708.entry.js +2 -0
  897. package/dist/web-components-library/p-7d9d5708.entry.js.map +1 -0
  898. package/dist/web-components-library/p-813716a7.entry.js +2 -0
  899. package/dist/web-components-library/p-813716a7.entry.js.map +1 -0
  900. package/dist/web-components-library/p-8282c9d3.entry.js +2 -0
  901. package/dist/web-components-library/p-8282c9d3.entry.js.map +1 -0
  902. package/dist/web-components-library/p-829ea489.entry.js +2 -0
  903. package/dist/web-components-library/p-829ea489.entry.js.map +1 -0
  904. package/dist/web-components-library/p-832c0410.entry.js +2 -0
  905. package/dist/web-components-library/p-832c0410.entry.js.map +1 -0
  906. package/dist/web-components-library/p-83d30a6b.entry.js +2 -0
  907. package/dist/web-components-library/p-83d30a6b.entry.js.map +1 -0
  908. package/dist/web-components-library/p-8437b51b.entry.js +17 -0
  909. package/dist/web-components-library/p-8437b51b.entry.js.map +1 -0
  910. package/dist/web-components-library/p-883a78e8.entry.js +2 -0
  911. package/dist/web-components-library/p-883a78e8.entry.js.map +1 -0
  912. package/dist/web-components-library/p-8b02ad8e.entry.js +2 -0
  913. package/dist/web-components-library/p-8b02ad8e.entry.js.map +1 -0
  914. package/dist/web-components-library/p-93762440.entry.js +2 -0
  915. package/dist/web-components-library/p-93762440.entry.js.map +1 -0
  916. package/dist/web-components-library/p-9640df86.entry.js +2 -0
  917. package/dist/web-components-library/p-9640df86.entry.js.map +1 -0
  918. package/dist/web-components-library/p-9738ace8.entry.js +2 -0
  919. package/dist/web-components-library/p-9738ace8.entry.js.map +1 -0
  920. package/dist/web-components-library/p-97f87456.entry.js +2 -0
  921. package/dist/web-components-library/p-97f87456.entry.js.map +1 -0
  922. package/dist/web-components-library/p-9b4f88c3.entry.js +2 -0
  923. package/dist/web-components-library/p-9b4f88c3.entry.js.map +1 -0
  924. package/dist/web-components-library/p-9d9a2685.entry.js +2 -0
  925. package/dist/web-components-library/p-9d9a2685.entry.js.map +1 -0
  926. package/dist/web-components-library/p-9db95f97.entry.js +2 -0
  927. package/dist/web-components-library/p-9db95f97.entry.js.map +1 -0
  928. package/dist/web-components-library/p-9f86e284.entry.js +2 -0
  929. package/dist/web-components-library/p-9f86e284.entry.js.map +1 -0
  930. package/dist/web-components-library/p-AwzX9V8L.js +2 -1
  931. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  932. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  933. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  934. package/dist/web-components-library/p-B8WJfd4z.js +2 -1
  935. package/dist/web-components-library/p-B8WJfd4z.js.map +1 -0
  936. package/dist/web-components-library/p-BKCj6NR2.js +2 -1
  937. package/dist/web-components-library/p-BKCj6NR2.js.map +1 -0
  938. package/dist/web-components-library/p-C-uijUlb.js +6 -0
  939. package/dist/web-components-library/p-C-uijUlb.js.map +1 -0
  940. package/dist/web-components-library/p-DALRZVXG.js +7 -0
  941. package/dist/web-components-library/p-DALRZVXG.js.map +1 -0
  942. package/dist/web-components-library/p-DPdXlnVe.js +3 -2
  943. package/dist/web-components-library/p-DPdXlnVe.js.map +1 -0
  944. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  945. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  946. package/dist/web-components-library/p-a1f1e2da.entry.js +2 -0
  947. package/dist/web-components-library/p-a1f1e2da.entry.js.map +1 -0
  948. package/dist/web-components-library/p-a3b628d2.entry.js +2 -0
  949. package/dist/web-components-library/p-a3b628d2.entry.js.map +1 -0
  950. package/dist/web-components-library/p-a5647972.entry.js +2 -0
  951. package/dist/web-components-library/p-a5647972.entry.js.map +1 -0
  952. package/dist/web-components-library/p-a97bfd11.entry.js +2 -0
  953. package/dist/web-components-library/p-a97bfd11.entry.js.map +1 -0
  954. package/dist/web-components-library/p-af91a46b.entry.js +2 -0
  955. package/dist/web-components-library/p-af91a46b.entry.js.map +1 -0
  956. package/dist/web-components-library/p-b02a920c.entry.js +2 -0
  957. package/dist/web-components-library/p-b02a920c.entry.js.map +1 -0
  958. package/dist/web-components-library/p-b3c84f65.entry.js +2 -0
  959. package/dist/web-components-library/p-b3c84f65.entry.js.map +1 -0
  960. package/dist/web-components-library/p-bba3b3ac.entry.js +2 -0
  961. package/dist/web-components-library/p-bba3b3ac.entry.js.map +1 -0
  962. package/dist/web-components-library/p-c700b3b6.entry.js +2 -0
  963. package/dist/web-components-library/p-c700b3b6.entry.js.map +1 -0
  964. package/dist/web-components-library/p-c9f7a6fd.entry.js +2 -0
  965. package/dist/web-components-library/p-c9f7a6fd.entry.js.map +1 -0
  966. package/dist/web-components-library/p-d13bba23.entry.js +2 -0
  967. package/dist/web-components-library/p-d13bba23.entry.js.map +1 -0
  968. package/dist/web-components-library/p-dcd96768.entry.js +2 -0
  969. package/dist/web-components-library/p-dcd96768.entry.js.map +1 -0
  970. package/dist/web-components-library/p-e44e5a9e.entry.js +2 -0
  971. package/dist/web-components-library/p-e44e5a9e.entry.js.map +1 -0
  972. package/dist/web-components-library/p-ec0ef7bb.entry.js +2 -0
  973. package/dist/web-components-library/p-ec0ef7bb.entry.js.map +1 -0
  974. package/dist/web-components-library/p-f1fa85fe.entry.js +2 -0
  975. package/dist/web-components-library/p-f1fa85fe.entry.js.map +1 -0
  976. package/dist/web-components-library/p-f70d4f1f.entry.js +2 -0
  977. package/dist/web-components-library/p-f70d4f1f.entry.js.map +1 -0
  978. package/dist/web-components-library/p-fb41e2bb.entry.js +2 -0
  979. package/dist/web-components-library/p-fb41e2bb.entry.js.map +1 -0
  980. package/dist/web-components-library/p-fb804d28.entry.js +2 -0
  981. package/dist/web-components-library/p-fb804d28.entry.js.map +1 -0
  982. package/dist/web-components-library/p-ffb1c8ae.entry.js +2 -0
  983. package/dist/web-components-library/p-ffb1c8ae.entry.js.map +1 -0
  984. package/dist/web-components-library/web-components-library.esm.js +2 -1
  985. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  986. package/package.json +16 -16
  987. package/readme.md +8 -19
  988. package/www/build/index.esm.js +2 -1
  989. package/www/build/index.esm.js.map +1 -0
  990. package/www/build/p-02741f3e.entry.js +2 -0
  991. package/www/build/p-02741f3e.entry.js.map +1 -0
  992. package/www/build/p-02b47708.entry.js +2 -0
  993. package/www/build/p-02b47708.entry.js.map +1 -0
  994. package/www/build/p-02e3f7db.entry.js +2 -0
  995. package/www/build/p-02e3f7db.entry.js.map +1 -0
  996. package/www/build/p-0b8313b7.entry.js +2 -0
  997. package/www/build/p-0b8313b7.entry.js.map +1 -0
  998. package/www/build/p-0f79c6e8.entry.js +2 -0
  999. package/www/build/p-0f79c6e8.entry.js.map +1 -0
  1000. package/www/build/p-168426fe.entry.js +2 -0
  1001. package/www/build/p-168426fe.entry.js.map +1 -0
  1002. package/www/build/p-1f64ba04.entry.js +8 -0
  1003. package/www/build/p-1f64ba04.entry.js.map +1 -0
  1004. package/www/build/p-29816d9c.entry.js +2 -0
  1005. package/www/build/p-29816d9c.entry.js.map +1 -0
  1006. package/www/build/p-2a00eea3.entry.js +2 -0
  1007. package/www/build/p-2a00eea3.entry.js.map +1 -0
  1008. package/www/build/p-2ffbc315.entry.js +2 -0
  1009. package/www/build/p-2ffbc315.entry.js.map +1 -0
  1010. package/www/build/p-31635e9d.entry.js +2 -0
  1011. package/www/build/p-31635e9d.entry.js.map +1 -0
  1012. package/www/build/p-338fc882.entry.js +2 -0
  1013. package/www/build/p-338fc882.entry.js.map +1 -0
  1014. package/www/build/p-40079bb3.entry.js +2 -0
  1015. package/www/build/p-40079bb3.entry.js.map +1 -0
  1016. package/www/build/p-413c743d.entry.js +2 -0
  1017. package/www/build/p-413c743d.entry.js.map +1 -0
  1018. package/www/build/p-441cb2d9.entry.js +2 -0
  1019. package/www/build/p-441cb2d9.entry.js.map +1 -0
  1020. package/www/build/p-44b8aba8.entry.js +2 -0
  1021. package/www/build/p-44b8aba8.entry.js.map +1 -0
  1022. package/www/build/p-4767a2b3.entry.js +2 -0
  1023. package/www/build/p-4767a2b3.entry.js.map +1 -0
  1024. package/www/build/p-48b9411e.entry.js +2 -0
  1025. package/www/build/p-48b9411e.entry.js.map +1 -0
  1026. package/www/build/p-52e01182.entry.js +2 -0
  1027. package/www/build/p-52e01182.entry.js.map +1 -0
  1028. package/www/build/p-56f926d7.entry.js +2 -0
  1029. package/www/build/p-56f926d7.entry.js.map +1 -0
  1030. package/www/build/p-585b7068.entry.js +2 -0
  1031. package/www/build/p-585b7068.entry.js.map +1 -0
  1032. package/www/build/p-5928e726.entry.js +2 -0
  1033. package/www/build/p-5928e726.entry.js.map +1 -0
  1034. package/www/build/p-5b72a84e.entry.js +2 -0
  1035. package/www/build/p-5b72a84e.entry.js.map +1 -0
  1036. package/www/build/p-5fc0afef.entry.js +2 -0
  1037. package/www/build/p-5fc0afef.entry.js.map +1 -0
  1038. package/www/build/p-602aad3e.entry.js +2 -0
  1039. package/www/build/p-602aad3e.entry.js.map +1 -0
  1040. package/www/build/p-65013fbe.entry.js +2 -0
  1041. package/www/build/p-65013fbe.entry.js.map +1 -0
  1042. package/www/build/p-680e12d3.entry.js +2 -0
  1043. package/www/build/p-680e12d3.entry.js.map +1 -0
  1044. package/www/build/p-6a949aa2.entry.js +2 -0
  1045. package/www/build/p-6a949aa2.entry.js.map +1 -0
  1046. package/www/build/p-6d5dac88.entry.js +2 -0
  1047. package/www/build/p-6d5dac88.entry.js.map +1 -0
  1048. package/www/build/p-6df25588.entry.js +2 -0
  1049. package/www/build/p-6df25588.entry.js.map +1 -0
  1050. package/www/build/p-720d8465.entry.js +2 -0
  1051. package/www/build/p-720d8465.entry.js.map +1 -0
  1052. package/www/build/p-7825ea5e.entry.js +2 -0
  1053. package/www/build/p-7825ea5e.entry.js.map +1 -0
  1054. package/www/build/p-7a0eb225.entry.js +2 -0
  1055. package/www/build/p-7a0eb225.entry.js.map +1 -0
  1056. package/www/build/p-7c1da49a.entry.js +2 -0
  1057. package/www/build/p-7c1da49a.entry.js.map +1 -0
  1058. package/www/build/p-7c3e6b8d.entry.js +2 -0
  1059. package/www/build/p-7c3e6b8d.entry.js.map +1 -0
  1060. package/www/build/p-7d9d5708.entry.js +2 -0
  1061. package/www/build/p-7d9d5708.entry.js.map +1 -0
  1062. package/www/build/p-813716a7.entry.js +2 -0
  1063. package/www/build/p-813716a7.entry.js.map +1 -0
  1064. package/www/build/p-8282c9d3.entry.js +2 -0
  1065. package/www/build/p-8282c9d3.entry.js.map +1 -0
  1066. package/www/build/p-829ea489.entry.js +2 -0
  1067. package/www/build/p-829ea489.entry.js.map +1 -0
  1068. package/www/build/p-832c0410.entry.js +2 -0
  1069. package/www/build/p-832c0410.entry.js.map +1 -0
  1070. package/www/build/p-83d30a6b.entry.js +2 -0
  1071. package/www/build/p-83d30a6b.entry.js.map +1 -0
  1072. package/www/build/p-8437b51b.entry.js +17 -0
  1073. package/www/build/p-8437b51b.entry.js.map +1 -0
  1074. package/www/build/p-883a78e8.entry.js +2 -0
  1075. package/www/build/p-883a78e8.entry.js.map +1 -0
  1076. package/www/build/p-8b02ad8e.entry.js +2 -0
  1077. package/www/build/p-8b02ad8e.entry.js.map +1 -0
  1078. package/www/build/p-93762440.entry.js +2 -0
  1079. package/www/build/p-93762440.entry.js.map +1 -0
  1080. package/www/build/p-9640df86.entry.js +2 -0
  1081. package/www/build/p-9640df86.entry.js.map +1 -0
  1082. package/www/build/p-9738ace8.entry.js +2 -0
  1083. package/www/build/p-9738ace8.entry.js.map +1 -0
  1084. package/www/build/p-97f87456.entry.js +2 -0
  1085. package/www/build/p-97f87456.entry.js.map +1 -0
  1086. package/www/build/p-9b4f88c3.entry.js +2 -0
  1087. package/www/build/p-9b4f88c3.entry.js.map +1 -0
  1088. package/www/build/p-9d9a2685.entry.js +2 -0
  1089. package/www/build/p-9d9a2685.entry.js.map +1 -0
  1090. package/www/build/p-9db95f97.entry.js +2 -0
  1091. package/www/build/p-9db95f97.entry.js.map +1 -0
  1092. package/www/build/p-9f86e284.entry.js +2 -0
  1093. package/www/build/p-9f86e284.entry.js.map +1 -0
  1094. package/www/build/p-AwzX9V8L.js +2 -1
  1095. package/www/build/p-AwzX9V8L.js.map +1 -0
  1096. package/www/build/p-B85MJLTf.js +2 -1
  1097. package/www/build/p-B85MJLTf.js.map +1 -0
  1098. package/www/build/p-B8WJfd4z.js +2 -1
  1099. package/www/build/p-B8WJfd4z.js.map +1 -0
  1100. package/www/build/p-BKCj6NR2.js +2 -1
  1101. package/www/build/p-BKCj6NR2.js.map +1 -0
  1102. package/www/build/p-C-uijUlb.js +6 -0
  1103. package/www/build/p-C-uijUlb.js.map +1 -0
  1104. package/www/build/p-DALRZVXG.js +7 -0
  1105. package/www/build/p-DALRZVXG.js.map +1 -0
  1106. package/www/build/p-DPdXlnVe.js +3 -2
  1107. package/www/build/p-DPdXlnVe.js.map +1 -0
  1108. package/www/build/p-Q-tWjk7P.js +2 -1
  1109. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1110. package/www/build/p-a1f1e2da.entry.js +2 -0
  1111. package/www/build/p-a1f1e2da.entry.js.map +1 -0
  1112. package/www/build/p-a3b628d2.entry.js +2 -0
  1113. package/www/build/p-a3b628d2.entry.js.map +1 -0
  1114. package/www/build/p-a5647972.entry.js +2 -0
  1115. package/www/build/p-a5647972.entry.js.map +1 -0
  1116. package/www/build/p-a97bfd11.entry.js +2 -0
  1117. package/www/build/p-a97bfd11.entry.js.map +1 -0
  1118. package/www/build/p-af91a46b.entry.js +2 -0
  1119. package/www/build/p-af91a46b.entry.js.map +1 -0
  1120. package/www/build/p-b02a920c.entry.js +2 -0
  1121. package/www/build/p-b02a920c.entry.js.map +1 -0
  1122. package/www/build/p-b3c84f65.entry.js +2 -0
  1123. package/www/build/p-b3c84f65.entry.js.map +1 -0
  1124. package/www/build/p-bba3b3ac.entry.js +2 -0
  1125. package/www/build/p-bba3b3ac.entry.js.map +1 -0
  1126. package/www/build/p-c700b3b6.entry.js +2 -0
  1127. package/www/build/p-c700b3b6.entry.js.map +1 -0
  1128. package/www/build/p-c9f7a6fd.entry.js +2 -0
  1129. package/www/build/p-c9f7a6fd.entry.js.map +1 -0
  1130. package/www/build/p-d13bba23.entry.js +2 -0
  1131. package/www/build/p-d13bba23.entry.js.map +1 -0
  1132. package/www/build/p-dcd96768.entry.js +2 -0
  1133. package/www/build/p-dcd96768.entry.js.map +1 -0
  1134. package/www/build/p-e44e5a9e.entry.js +2 -0
  1135. package/www/build/p-e44e5a9e.entry.js.map +1 -0
  1136. package/www/build/p-ec0ef7bb.entry.js +2 -0
  1137. package/www/build/p-ec0ef7bb.entry.js.map +1 -0
  1138. package/www/build/p-f1fa85fe.entry.js +2 -0
  1139. package/www/build/p-f1fa85fe.entry.js.map +1 -0
  1140. package/www/build/p-f70d4f1f.entry.js +2 -0
  1141. package/www/build/p-f70d4f1f.entry.js.map +1 -0
  1142. package/www/build/p-f78b0ee3.js +2 -0
  1143. package/www/build/p-fb41e2bb.entry.js +2 -0
  1144. package/www/build/p-fb41e2bb.entry.js.map +1 -0
  1145. package/www/build/p-fb804d28.entry.js +2 -0
  1146. package/www/build/p-fb804d28.entry.js.map +1 -0
  1147. package/www/build/p-ffb1c8ae.entry.js +2 -0
  1148. package/www/build/p-ffb1c8ae.entry.js.map +1 -0
  1149. package/www/build/web-components-library.esm.js +2 -1
  1150. package/www/build/web-components-library.esm.js.map +1 -0
  1151. package/www/index.html +1 -1
  1152. package/dist/cjs/utils-BY7xrW7W.js +0 -265
  1153. package/dist/collection/__mocks__/fileMock.js +0 -1
  1154. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  1155. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  1156. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  1157. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  1158. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  1159. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  1160. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  1161. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  1162. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  1163. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  1164. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  1165. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  1166. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  1167. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  1168. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  1169. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  1170. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  1171. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  1172. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  1173. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  1174. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  1175. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  1176. package/dist/collection/components/z-app-header/index.stories.js +0 -318
  1177. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  1178. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  1179. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  1180. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  1181. package/dist/collection/components/z-button/index.stories.js +0 -103
  1182. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  1183. package/dist/collection/components/z-card/index.stories.js +0 -302
  1184. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  1185. package/dist/collection/components/z-chip/index.stories.js +0 -69
  1186. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  1187. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  1188. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  1189. package/dist/collection/components/z-divider/index.stories.js +0 -44
  1190. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  1191. package/dist/collection/components/z-icon/index.stories.js +0 -70
  1192. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  1193. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  1194. package/dist/collection/components/z-input/index.stories.js +0 -293
  1195. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  1196. package/dist/collection/components/z-logo/index.stories.js +0 -25
  1197. package/dist/collection/components/z-menu/index.stories.js +0 -122
  1198. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  1199. package/dist/collection/components/z-modal/index.stories.js +0 -201
  1200. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  1201. package/dist/collection/components/z-notification/index.stories.js +0 -174
  1202. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  1203. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  1204. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  1205. package/dist/collection/components/z-popover/index.stories.js +0 -282
  1206. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  1207. package/dist/collection/components/z-searchbar/index.stories.js +0 -332
  1208. package/dist/collection/components/z-select/index.stories.js +0 -359
  1209. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  1210. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  1211. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  1212. package/dist/collection/components/z-tag/index.stories.js +0 -63
  1213. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  1214. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  1215. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  1216. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  1217. package/dist/collection/components/z-tool/index.stories.js +0 -146
  1218. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  1219. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  1220. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  1221. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  1222. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  1223. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  1224. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  1225. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  1226. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  1227. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  1228. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  1229. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  1230. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  1231. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  1232. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  1233. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  1234. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  1235. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  1236. package/dist/esm/utils-BEzZQwOB.js +0 -249
  1237. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  1238. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  1239. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  1240. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  1241. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  1242. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  1243. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  1244. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  1245. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  1246. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  1247. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  1248. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  1249. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  1250. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  1251. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  1252. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  1253. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  1254. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  1255. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  1256. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  1257. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  1258. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  1259. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  1260. package/dist/types/components/z-app-header/index.stories.d.ts +0 -128
  1261. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  1262. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  1263. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  1264. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  1265. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  1266. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  1267. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  1268. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  1269. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  1270. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  1271. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  1272. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  1273. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  1274. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  1275. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  1276. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  1277. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  1278. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  1279. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  1280. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  1281. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  1282. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  1283. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  1284. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  1285. package/dist/types/components/z-notification/index.stories.d.ts +0 -77
  1286. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  1287. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  1288. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  1289. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  1290. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  1291. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -163
  1292. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  1293. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  1294. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  1295. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  1296. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  1297. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  1298. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  1299. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  1300. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  1301. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  1302. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  1303. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  1304. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  1305. package/dist/web-components-library/p-0105149a.entry.js +0 -1
  1306. package/dist/web-components-library/p-087956fa.entry.js +0 -1
  1307. package/dist/web-components-library/p-10e5e16e.entry.js +0 -1
  1308. package/dist/web-components-library/p-13e7f751.entry.js +0 -1
  1309. package/dist/web-components-library/p-1580db58.entry.js +0 -1
  1310. package/dist/web-components-library/p-1993b0ad.entry.js +0 -1
  1311. package/dist/web-components-library/p-1a95491d.entry.js +0 -1
  1312. package/dist/web-components-library/p-20d94cce.entry.js +0 -1
  1313. package/dist/web-components-library/p-21c85e04.entry.js +0 -1
  1314. package/dist/web-components-library/p-23b46642.entry.js +0 -1
  1315. package/dist/web-components-library/p-271dfd9c.entry.js +0 -1
  1316. package/dist/web-components-library/p-29dde955.entry.js +0 -1
  1317. package/dist/web-components-library/p-2abf765d.entry.js +0 -1
  1318. package/dist/web-components-library/p-2d4c01c3.entry.js +0 -1
  1319. package/dist/web-components-library/p-2dabe353.entry.js +0 -1
  1320. package/dist/web-components-library/p-2df6d169.entry.js +0 -1
  1321. package/dist/web-components-library/p-2ef82e17.entry.js +0 -1
  1322. package/dist/web-components-library/p-313fc91d.entry.js +0 -1
  1323. package/dist/web-components-library/p-324933f6.entry.js +0 -1
  1324. package/dist/web-components-library/p-3c53e451.entry.js +0 -1
  1325. package/dist/web-components-library/p-41584e90.entry.js +0 -1
  1326. package/dist/web-components-library/p-4d1b3d16.entry.js +0 -1
  1327. package/dist/web-components-library/p-50e10a10.entry.js +0 -1
  1328. package/dist/web-components-library/p-52899754.entry.js +0 -1
  1329. package/dist/web-components-library/p-53670be4.entry.js +0 -1
  1330. package/dist/web-components-library/p-5a05dc1e.entry.js +0 -1
  1331. package/dist/web-components-library/p-5d20fc3d.entry.js +0 -1
  1332. package/dist/web-components-library/p-622466f9.entry.js +0 -1
  1333. package/dist/web-components-library/p-62d2247e.entry.js +0 -1
  1334. package/dist/web-components-library/p-64c025f6.entry.js +0 -1
  1335. package/dist/web-components-library/p-658f022d.entry.js +0 -1
  1336. package/dist/web-components-library/p-7226f07a.entry.js +0 -1
  1337. package/dist/web-components-library/p-7371a543.entry.js +0 -2
  1338. package/dist/web-components-library/p-77bf39a4.entry.js +0 -1
  1339. package/dist/web-components-library/p-788eaac7.entry.js +0 -1
  1340. package/dist/web-components-library/p-7bf7539a.entry.js +0 -1
  1341. package/dist/web-components-library/p-81eb43fd.entry.js +0 -1
  1342. package/dist/web-components-library/p-88a3ba7c.entry.js +0 -1
  1343. package/dist/web-components-library/p-89daaeb5.entry.js +0 -1
  1344. package/dist/web-components-library/p-8a33c769.entry.js +0 -1
  1345. package/dist/web-components-library/p-8d7e2e16.entry.js +0 -1
  1346. package/dist/web-components-library/p-8de064a4.entry.js +0 -1
  1347. package/dist/web-components-library/p-8eb8b5be.entry.js +0 -1
  1348. package/dist/web-components-library/p-8f4a04aa.entry.js +0 -1
  1349. package/dist/web-components-library/p-B0bOjMSb.js +0 -1
  1350. package/dist/web-components-library/p-a4f673f8.entry.js +0 -1
  1351. package/dist/web-components-library/p-aa4fc3d3.entry.js +0 -1
  1352. package/dist/web-components-library/p-aa72d766.entry.js +0 -1
  1353. package/dist/web-components-library/p-ad2cd7fc.entry.js +0 -1
  1354. package/dist/web-components-library/p-b01ff8e6.entry.js +0 -1
  1355. package/dist/web-components-library/p-b6223d7e.entry.js +0 -1
  1356. package/dist/web-components-library/p-b851f20b.entry.js +0 -1
  1357. package/dist/web-components-library/p-b9343431.entry.js +0 -1
  1358. package/dist/web-components-library/p-be354b22.entry.js +0 -1
  1359. package/dist/web-components-library/p-c42ddd93.entry.js +0 -1
  1360. package/dist/web-components-library/p-c4e7bd16.entry.js +0 -1
  1361. package/dist/web-components-library/p-c643f3ff.entry.js +0 -1
  1362. package/dist/web-components-library/p-c944a943.entry.js +0 -1
  1363. package/dist/web-components-library/p-cd33f4b1.entry.js +0 -1
  1364. package/dist/web-components-library/p-cdd88182.entry.js +0 -16
  1365. package/dist/web-components-library/p-ce3bbaf2.entry.js +0 -1
  1366. package/dist/web-components-library/p-cf403b75.entry.js +0 -1
  1367. package/dist/web-components-library/p-d121122f.entry.js +0 -1
  1368. package/dist/web-components-library/p-d3053434.entry.js +0 -1
  1369. package/dist/web-components-library/p-d63665c1.entry.js +0 -1
  1370. package/dist/web-components-library/p-da70be9b.entry.js +0 -1
  1371. package/dist/web-components-library/p-dabccb20.entry.js +0 -1
  1372. package/dist/web-components-library/p-dc5ab2cc.entry.js +0 -1
  1373. package/dist/web-components-library/p-dfd43710.entry.js +0 -1
  1374. package/dist/web-components-library/p-e1d0a6e3.entry.js +0 -1
  1375. package/dist/web-components-library/p-ec4940ce.entry.js +0 -1
  1376. package/dist/web-components-library/p-ef5018bb.entry.js +0 -1
  1377. package/www/build/p-0105149a.entry.js +0 -1
  1378. package/www/build/p-087956fa.entry.js +0 -1
  1379. package/www/build/p-10e5e16e.entry.js +0 -1
  1380. package/www/build/p-13e7f751.entry.js +0 -1
  1381. package/www/build/p-1580db58.entry.js +0 -1
  1382. package/www/build/p-1993b0ad.entry.js +0 -1
  1383. package/www/build/p-1a95491d.entry.js +0 -1
  1384. package/www/build/p-20d94cce.entry.js +0 -1
  1385. package/www/build/p-21c85e04.entry.js +0 -1
  1386. package/www/build/p-23b46642.entry.js +0 -1
  1387. package/www/build/p-271dfd9c.entry.js +0 -1
  1388. package/www/build/p-29dde955.entry.js +0 -1
  1389. package/www/build/p-2abf765d.entry.js +0 -1
  1390. package/www/build/p-2d4c01c3.entry.js +0 -1
  1391. package/www/build/p-2dabe353.entry.js +0 -1
  1392. package/www/build/p-2df6d169.entry.js +0 -1
  1393. package/www/build/p-2ef82e17.entry.js +0 -1
  1394. package/www/build/p-313fc91d.entry.js +0 -1
  1395. package/www/build/p-324933f6.entry.js +0 -1
  1396. package/www/build/p-3c53e451.entry.js +0 -1
  1397. package/www/build/p-41584e90.entry.js +0 -1
  1398. package/www/build/p-4d1b3d16.entry.js +0 -1
  1399. package/www/build/p-50e10a10.entry.js +0 -1
  1400. package/www/build/p-52899754.entry.js +0 -1
  1401. package/www/build/p-53670be4.entry.js +0 -1
  1402. package/www/build/p-5a05dc1e.entry.js +0 -1
  1403. package/www/build/p-5d20fc3d.entry.js +0 -1
  1404. package/www/build/p-622466f9.entry.js +0 -1
  1405. package/www/build/p-62d2247e.entry.js +0 -1
  1406. package/www/build/p-64c025f6.entry.js +0 -1
  1407. package/www/build/p-658f022d.entry.js +0 -1
  1408. package/www/build/p-7226f07a.entry.js +0 -1
  1409. package/www/build/p-7371a543.entry.js +0 -2
  1410. package/www/build/p-77bf39a4.entry.js +0 -1
  1411. package/www/build/p-788eaac7.entry.js +0 -1
  1412. package/www/build/p-7bf7539a.entry.js +0 -1
  1413. package/www/build/p-81eb43fd.entry.js +0 -1
  1414. package/www/build/p-88a3ba7c.entry.js +0 -1
  1415. package/www/build/p-89daaeb5.entry.js +0 -1
  1416. package/www/build/p-8a33c769.entry.js +0 -1
  1417. package/www/build/p-8d7e2e16.entry.js +0 -1
  1418. package/www/build/p-8de064a4.entry.js +0 -1
  1419. package/www/build/p-8eb8b5be.entry.js +0 -1
  1420. package/www/build/p-8f4a04aa.entry.js +0 -1
  1421. package/www/build/p-B0bOjMSb.js +0 -1
  1422. package/www/build/p-a4f673f8.entry.js +0 -1
  1423. package/www/build/p-aa4fc3d3.entry.js +0 -1
  1424. package/www/build/p-aa72d766.entry.js +0 -1
  1425. package/www/build/p-ad2cd7fc.entry.js +0 -1
  1426. package/www/build/p-b01ff8e6.entry.js +0 -1
  1427. package/www/build/p-b6223d7e.entry.js +0 -1
  1428. package/www/build/p-b851f20b.entry.js +0 -1
  1429. package/www/build/p-b9343431.entry.js +0 -1
  1430. package/www/build/p-be354b22.entry.js +0 -1
  1431. package/www/build/p-c42ddd93.entry.js +0 -1
  1432. package/www/build/p-c4e7bd16.entry.js +0 -1
  1433. package/www/build/p-c643f3ff.entry.js +0 -1
  1434. package/www/build/p-c944a943.entry.js +0 -1
  1435. package/www/build/p-cd33f4b1.entry.js +0 -1
  1436. package/www/build/p-cdd88182.entry.js +0 -16
  1437. package/www/build/p-ce3bbaf2.entry.js +0 -1
  1438. package/www/build/p-cf403b75.entry.js +0 -1
  1439. package/www/build/p-d121122f.entry.js +0 -1
  1440. package/www/build/p-d3053434.entry.js +0 -1
  1441. package/www/build/p-d63665c1.entry.js +0 -1
  1442. package/www/build/p-da70be9b.entry.js +0 -1
  1443. package/www/build/p-dabccb20.entry.js +0 -1
  1444. package/www/build/p-dc5ab2cc.entry.js +0 -1
  1445. package/www/build/p-dfd43710.entry.js +0 -1
  1446. package/www/build/p-e1d0a6e3.entry.js +0 -1
  1447. package/www/build/p-ec4940ce.entry.js +0 -1
  1448. package/www/build/p-ef5018bb.entry.js +0 -1
  1449. package/www/build/p-f6f0b188.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZButtonSort","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","sortlabelasc","sortlabeldesc","isselected","sortasc","allowTooltip","emitButtonSortClick","buttonSortClick","emit","buttonid","sortAsc","componentDidLoad","elementHasEllipsis","window","innerWidth","Breakpoints","TABLET","setButtonTitle","label","desclabel","ellipsis","offsetWidth","scrollWidth","render","h","key","title","id","class","selected","onClick","ref","el","counter","name","width","height"],"sources":["src/components/z-button-sort/styles.css?tag=z-button-sort&encapsulation=shadow","src/components/z-button-sort/index.tsx"],"sourcesContent":["button {\n display: flex;\n max-width: 100%;\n height: 36px;\n align-items: center;\n padding: 0 var(--space-unit);\n border: var(--border-size-medium) solid var(--color-primary01);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n color: var(--color-primary01);\n cursor: pointer;\n fill: var(--color-primary01);\n font-family: var(--font-family-sans);\n font-size: 14px;\n font-weight: var(--font-sb);\n outline: none;\n}\n\nbutton::-moz-focus-inner {\n border: 0;\n}\n\nbutton:hover {\n border-color: var(--color-hover-primary);\n color: var(--color-hover-primary);\n fill: var(--color-hover-primary-icon);\n}\n\nbutton:focus {\n border-color: var(--color-primary01);\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n\nbutton:active {\n border-color: var(--color-pressed-primary);\n box-shadow: var(--shadow-2);\n color: var(--color-pressed-primary);\n fill: var(--color-active-primary-icon);\n}\n\nbutton.selected {\n border-color: var(--color-hover-primary);\n background-color: var(--color-hover-primary);\n color: var(--color-text-inverse);\n fill: var(--color-inverse-icon);\n}\n\nbutton > span.ellipsis {\n overflow: hidden;\n padding: 0;\n margin: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\nbutton > span.counter {\n margin-right: calc(var(--space-unit) * 2);\n margin-left: calc(var(--space-unit) / 2);\n}\n\nbutton > span.sort {\n margin-right: calc(var(--space-unit) / 2);\n white-space: nowrap;\n}\n\nbutton > span {\n margin-right: calc(var(--space-unit) / 2);\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n button {\n max-width: 325px;\n }\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n button {\n max-width: 490px;\n }\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Prop, State, h} from \"@stencil/core\";\nimport {Breakpoints} from \"../../constants/breakpoints\";\n\n@Component({\n tag: \"z-button-sort\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZButtonSort implements ComponentInterface {\n /** id, should be unique */\n @Prop()\n buttonid: string;\n\n /** label content (ascending) */\n @Prop()\n label: string;\n\n /** label content (descending) */\n @Prop()\n desclabel?: string;\n\n /** occurrences counter (optional) */\n @Prop()\n counter?: number;\n\n /** sort label content (ascending) (optional) */\n @Prop()\n sortlabelasc?: string = \"A-Z\";\n\n /** sort label content (descending) (optional) */\n @Prop()\n sortlabeldesc?: string = \"Z-A\";\n\n /** selected flag (optional) */\n @Prop({mutable: true})\n isselected?: boolean = false;\n\n /** sortable flag (optional) */\n @Prop({mutable: true})\n sortasc?: boolean = true;\n\n @State()\n allowTooltip = false;\n\n private ellipsis?: HTMLSpanElement;\n\n /** sorting direction click event, returns `buttonid` and `sortAsc` */\n @Event()\n buttonSortClick: EventEmitter;\n\n private emitButtonSortClick(): void {\n if (!this.isselected) {\n this.isselected = true;\n } else {\n this.sortasc = !this.sortasc;\n }\n this.buttonSortClick.emit({\n buttonid: this.buttonid,\n sortAsc: this.sortasc,\n });\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis() && window.innerWidth > Breakpoints.TABLET) {\n this.allowTooltip = true;\n }\n }\n\n private setButtonTitle(): string {\n return this.allowTooltip ? `${this.sortasc ? this.label : this.desclabel}` : \"\";\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n render(): HTMLButtonElement {\n return (\n <button\n title={this.setButtonTitle()}\n id={this.buttonid}\n class={{selected: this.isselected}}\n onClick={() => this.emitButtonSortClick()}\n >\n <span\n ref={(el) => (this.ellipsis = el as HTMLSpanElement)}\n class=\"ellipsis\"\n >\n {!this.sortasc && this.desclabel ? this.desclabel : this.label}\n </span>\n <span class=\"counter\">{this.counter && ` (${this.counter})`}</span>\n <span class=\"sort\">{this.sortasc ? this.sortlabelasc : this.sortlabeldesc}</span>\n <z-icon\n name=\"caret-up-down\"\n width={16}\n height={16}\n />\n </button>\n );\n }\n}\n"],"mappings":"mMAAA,MAAMA,EAAY,IAAM,w6C,MCQXC,EAAWC,EAAA,MAAAD,UAAAE,EALxB,WAAAC,CAAAC,G,mHAwBEC,KAAAC,aAAwB,MAIxBD,KAAAE,cAAyB,MAIzBF,KAAAG,WAAuB,MAIvBH,KAAAI,QAAoB,KAGpBJ,KAAAK,aAAe,KA0DhB,CAlDS,mBAAAC,GACN,IAAKN,KAAKG,WAAY,CACpBH,KAAKG,WAAa,I,KACb,CACLH,KAAKI,SAAWJ,KAAKI,O,CAEvBJ,KAAKO,gBAAgBC,KAAK,CACxBC,SAAUT,KAAKS,SACfC,QAASV,KAAKI,S,CAIlB,gBAAAO,GACE,GAAIX,KAAKY,sBAAwBC,OAAOC,WAAaC,EAAYC,OAAQ,CACvEhB,KAAKK,aAAe,I,EAIhB,cAAAY,GACN,OAAOjB,KAAKK,aAAe,GAAGL,KAAKI,QAAUJ,KAAKkB,MAAQlB,KAAKmB,YAAc,E,CAGvE,kBAAAP,GACN,OAAOZ,KAAKoB,SAASC,YAAcrB,KAAKoB,SAASE,W,CAGnD,MAAAC,GACE,OACEC,EAAA,UAAAC,IAAA,2CACEC,MAAO1B,KAAKiB,iBACZU,GAAI3B,KAAKS,SACTmB,MAAO,CAACC,SAAU7B,KAAKG,YACvB2B,QAAS,IAAM9B,KAAKM,uBAEpBkB,EAAA,QAAAC,IAAA,2CACEM,IAAMC,GAAQhC,KAAKoB,SAAWY,EAC9BJ,MAAM,aAEJ5B,KAAKI,SAAWJ,KAAKmB,UAAYnB,KAAKmB,UAAYnB,KAAKkB,OAE3DM,EAAA,QAAAC,IAAA,2CAAMG,MAAM,WAAW5B,KAAKiC,SAAW,KAAKjC,KAAKiC,YACjDT,EAAA,QAAAC,IAAA,2CAAMG,MAAM,QAAQ5B,KAAKI,QAAUJ,KAAKC,aAAeD,KAAKE,eAC5DsB,EAAA,UAAAC,IAAA,2CACES,KAAK,gBACLC,MAAO,GACPC,OAAQ,K","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{Z as o,d as s}from"./index5.js";const r=o,t=s;export{r as ZButton,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index5.js";const t=o;const n=s;export{t as ZButton,n as defineCustomElement};
2
+ //# sourceMappingURL=z-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as t,HTMLElement as o,h as a,Host as e,transformTag as r}from"@stencil/core/internal/client";import{C as s}from"./index2.js";import{d as i}from"./index3.js";const c=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.showShadow=!1,this.clickable=!1}componentWillLoad(){this.hasCoverImage=null!==this.host.querySelector('[slot="cover"]')}renderColorCoverCard(){return[a("div",{class:"cover-container"},a("div",{class:"color-cover"},a("div",{class:"cover-content"},a("slot",{name:"metadata"}),a("slot",{name:"title"})))),a("div",{class:"content"},a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))]}renderContent(){return a("div",{class:"content"},a("slot",{name:"metadata"}),a("slot",{name:"title"}),a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))}render(){return this.variant===s.TEXT?a(e,null,this.renderContent()):this.variant===s.OVERLAY||this.hasCoverImage?a(e,null,a("div",{class:"cover-container"},this.hasCoverImage&&[a("slot",{name:"cover"}),this.variant!==s.OVERLAY&&this.coverIcon&&a("z-icon",{name:this.coverIcon})],!this.hasCoverImage&&a("div",{class:"color-cover"})),this.renderContent()):a(e,null,this.renderColorCoverCard())}get host(){return this}static get style(){return':host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;--z-card--text-padding:calc(var(--space-unit) * 2) var(--space-unit);position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}*:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:not([variant="overlay"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot="cover"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot="metadata"]),::slotted([slot="title"]),::slotted([slot="text"]){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot="title"]:not(:last-child)),::slotted([slot="text"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot="title"])::before{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;content:""}::slotted([slot="metadata"]){width:100%;-webkit-line-clamp:1;line-clamp:1;text-transform:uppercase}::slotted([slot="metadata"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25)}::slotted([slot="title"]){margin:0;font-size:var(--font-size-3);font-weight:var(--font-sb);-webkit-line-clamp:2;line-clamp:2;text-decoration:none}::slotted([slot="title"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);outline:none}::slotted([slot="text"]){width:100%;margin:0;-webkit-line-clamp:3;line-clamp:3}.actions{display:flex;align-items:center}:host(:not([variant="overlay"])) .actions{margin-top:auto}::slotted([slot="action"]){position:relative;z-index:2}::slotted([slot="action"]:not(:last-child)){margin-right:calc(var(--space-unit) * 2)}::slotted([slot="action"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);outline:none !important}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible){box-shadow:none !important;outline:none !important}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible)::before{box-shadow:var(--shadow-focus-primary)}:host([variant="text"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([variant="text"]) [slot="text"]::before{border-radius:var(--z-card--text-border-radius)}:host([show-shadow])>.content,:host([variant="border"])>.content,:host([variant="shadow"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant="text"])>.content{padding:var(--z-card--text-padding)}:host([variant="border"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant="border"][clickable]:hover)>.content{background:var(--color-background)}:host([variant="border"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="border"][clickable]:active){border-color:transparent}:host([variant="shadow"]),:host([show-shadow]){box-shadow:var(--shadow-2)}:host([variant="shadow"][clickable]:hover),:host([clickable][show-shadow]:hover){box-shadow:var(--shadow-4)}:host([variant="shadow"][clickable]:focus:focus-visible),:host([clickable][show-shadow]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="shadow"][clickable]:active),:host([clickable][show-shadow]:active){box-shadow:none}:host([variant="overlay"]) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}'}},[257,"z-card",{variant:[513],coverIcon:[1,"cover-icon"],showShadow:[516,"show-shadow"],clickable:[516],hasCoverImage:[32]}]),n=c,l=function(){"undefined"!=typeof customElements&&["z-card","z-icon"].forEach((t=>{switch(t){case"z-card":customElements.get(r(t))||customElements.define(r(t),c);break;case"z-icon":customElements.get(r(t))||i()}}))};export{n as ZCard,l as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as o,h as a,Host as e,transformTag as r}from"@stencil/core/internal/client";import{C as s}from"./index2.js";import{d as i}from"./index3.js";const c=()=>`:host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;--z-card--text-padding:calc(var(--space-unit) * 2) var(--space-unit);position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}*:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:not([variant="overlay"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot="cover"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot="metadata"]),::slotted([slot="title"]),::slotted([slot="text"]){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot="title"]:not(:last-child)),::slotted([slot="text"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot="title"])::before{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;content:""}::slotted([slot="metadata"]){width:100%;-webkit-line-clamp:1;line-clamp:1;text-transform:uppercase}::slotted([slot="metadata"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25)}::slotted([slot="title"]){margin:0;font-size:var(--font-size-3);font-weight:var(--font-sb);-webkit-line-clamp:2;line-clamp:2;text-decoration:none}::slotted([slot="title"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);outline:none}::slotted([slot="text"]){width:100%;margin:0;-webkit-line-clamp:3;line-clamp:3}.actions{display:flex;align-items:center}:host(:not([variant="overlay"])) .actions{margin-top:auto}::slotted([slot="action"]){position:relative;z-index:2}::slotted([slot="action"]:not(:last-child)){margin-right:calc(var(--space-unit) * 2)}::slotted([slot="action"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);outline:none !important}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible){box-shadow:none !important;outline:none !important}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible)::before{box-shadow:var(--shadow-focus-primary)}:host([variant="text"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([variant="text"]) [slot="text"]::before{border-radius:var(--z-card--text-border-radius)}:host([show-shadow])>.content,:host([variant="border"])>.content,:host([variant="shadow"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant="text"])>.content{padding:var(--z-card--text-padding)}:host([variant="border"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant="border"][clickable]:hover)>.content{background:var(--color-background)}:host([variant="border"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="border"][clickable]:active){border-color:transparent}:host([variant="shadow"]),:host([show-shadow]){box-shadow:var(--shadow-2)}:host([variant="shadow"][clickable]:hover),:host([clickable][show-shadow]:hover){box-shadow:var(--shadow-4)}:host([variant="shadow"][clickable]:focus:focus-visible),:host([clickable][show-shadow]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="shadow"][clickable]:active),:host([clickable][show-shadow]:active){box-shadow:none}:host([variant="overlay"]) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}`;const n=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.showShadow=false;this.clickable=false}componentWillLoad(){this.hasCoverImage=this.host.querySelector('[slot="cover"]')!==null}renderColorCoverCard(){return[a("div",{class:"cover-container"},a("div",{class:"color-cover"},a("div",{class:"cover-content"},a("slot",{name:"metadata"}),a("slot",{name:"title"})))),a("div",{class:"content"},a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))]}renderContent(){return a("div",{class:"content"},a("slot",{name:"metadata"}),a("slot",{name:"title"}),a("slot",{name:"text"}),a("div",{class:"actions"},a("slot",{name:"action"})))}render(){if(this.variant===s.TEXT){return a(e,null,this.renderContent())}if(this.variant===s.OVERLAY||this.hasCoverImage){return a(e,null,a("div",{class:"cover-container"},this.hasCoverImage&&[a("slot",{name:"cover"}),this.variant!==s.OVERLAY&&this.coverIcon&&a("z-icon",{name:this.coverIcon})],!this.hasCoverImage&&a("div",{class:"color-cover"})),this.renderContent())}return a(e,null,this.renderColorCoverCard())}get host(){return this}static get style(){return c()}},[257,"z-card",{variant:[513],coverIcon:[1,"cover-icon"],showShadow:[516,"show-shadow"],clickable:[516],hasCoverImage:[32]}]);function l(){if(typeof customElements==="undefined"){return}const t=["z-card","z-icon"];t.forEach((t=>{switch(t){case"z-card":if(!customElements.get(r(t))){customElements.define(r(t),n)}break;case"z-icon":if(!customElements.get(r(t))){i()}break}}))}const d=n;const v=l;export{d as ZCard,v as defineCustomElement};
2
+ //# sourceMappingURL=z-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZCard","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","showShadow","clickable","componentWillLoad","hasCoverImage","host","querySelector","renderColorCoverCard","h","class","name","renderContent","render","variant","CardVariant","TEXT","Host","OVERLAY","coverIcon"],"sources":["src/components/z-card/styles.css?tag=z-card&encapsulation=shadow","src/components/z-card/index.tsx"],"sourcesContent":[":host {\n /**\n * @prop --aspect-ratio: Cover aspect ratio. Default: `1.62`\n * @prop --z-card--border-color: Default: `var(--gray200)`\n * @prop --z-card--color-cover-background: Cover color. Default: `var(--color-surface01)`\n * @prop --z-card--text-background: Background color for the `text` variant. Default: `var(--color-surface01)`\n * @prop --z-card--text-border-radius: Default: `none`\n * @prop --z-card--text-border: Configure CSS `border`. Default: `none`\n * @prop --z-card--text-padding: Configure CSS `padding`. Default: `none`\n */\n --aspect-ratio: 1.62;\n --z-card--border-color: var(--gray200);\n --z-card--color-cover-background: var(--color-surface01);\n --z-card--text-background: var(--color-surface01);\n --z-card--text-border-radius: none;\n --z-card--text-border: none;\n --z-card--text-padding: calc(var(--space-unit) * 2) var(--space-unit);\n\n position: relative;\n display: flex;\n flex-direction: column;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n*,\n::slotted(*) {\n box-sizing: border-box;\n}\n\n*:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:not([variant=\"overlay\"])) .cover-container {\n position: relative;\n width: 100%;\n}\n\n/* Old good trick with percentage padding to keep the aspect ratio.\nUnfortunately the `aspect-ratio` property is still experimental */\n.cover-container {\n padding-bottom: calc(100% / var(--aspect-ratio));\n}\n\n::slotted([slot=\"cover\"]),\n.color-cover {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n}\n\n.cover-container > z-icon {\n --z-icon-width: calc(var(--space-unit) * 11);\n --z-icon-height: var(--z-icon-width);\n\n position: absolute;\n top: calc(50% - calc(var(--z-icon-height) / 2));\n left: calc(50% - calc(var(--z-icon-width) / 2));\n fill: var(--color-primary01);\n}\n\n.color-cover {\n background-color: var(--z-card--color-cover-background);\n}\n\n.content {\n display: flex;\n flex-direction: column;\n padding-top: var(--space-unit);\n}\n\n.color-cover .cover-content {\n display: flex;\n height: 100%;\n flex-direction: column;\n justify-content: flex-end;\n padding: var(--space-unit);\n}\n\n/* Truncates overflowing text */\n::slotted([slot=\"metadata\"]),\n::slotted([slot=\"title\"]),\n::slotted([slot=\"text\"]) {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n}\n\n::slotted([slot=\"title\"]:not(:last-child)),\n::slotted([slot=\"text\"]:not(:last-child)) {\n margin-bottom: var(--space-unit);\n}\n\n::slotted([slot=\"title\"])::before {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \"\";\n}\n\n::slotted([slot=\"metadata\"]) {\n width: 100%;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n text-transform: uppercase;\n}\n\n::slotted([slot=\"metadata\"]:not(:last-child)) {\n margin: 0 0 calc(var(--space-unit) * 0.25);\n}\n\n::slotted([slot=\"title\"]) {\n margin: 0;\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n -webkit-line-clamp: 2;\n line-clamp: 2;\n text-decoration: none;\n}\n\n::slotted([slot=\"title\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n::slotted([slot=\"text\"]) {\n width: 100%;\n margin: 0;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n}\n\n.actions {\n display: flex;\n align-items: center;\n}\n\n:host(:not([variant=\"overlay\"])) .actions {\n margin-top: auto;\n}\n\n::slotted([slot=\"action\"]) {\n position: relative;\n z-index: 2;\n}\n\n::slotted([slot=\"action\"]:not(:last-child)) {\n margin-right: calc(var(--space-unit) * 2);\n}\n\n::slotted([slot=\"action\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n:host([clickable]) ::slotted([slot=\"title\"]:focus:focus-visible) {\n box-shadow: none !important;\n outline: none !important;\n}\n\n:host([clickable]) ::slotted([slot=\"title\"]:focus:focus-visible)::before {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host([variant=\"text\"]) {\n border: var(--z-card--text-border);\n background-color: var(--z-card--text-background);\n border-radius: var(--z-card--text-border-radius);\n}\n\n:host([variant=\"text\"]) [slot=\"text\"]::before {\n border-radius: var(--z-card--text-border-radius);\n}\n\n:host([show-shadow]) > .content,\n:host([variant=\"border\"]) > .content,\n:host([variant=\"shadow\"]) > .content {\n height: 100%;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);\n}\n\n:host([variant=\"text\"]) > .content {\n padding: var(--z-card--text-padding);\n}\n\n/* Border */\n:host([variant=\"border\"]) {\n border: var(--border-size-small) solid var(--z-card--border-color);\n}\n\n:host([variant=\"border\"][clickable]:hover) > .content {\n background: var(--color-background);\n}\n\n:host([variant=\"border\"][clickable]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host([variant=\"border\"][clickable]:active) {\n border-color: transparent;\n}\n\n/* Shadow */\n:host([variant=\"shadow\"]),\n:host([show-shadow]) {\n box-shadow: var(--shadow-2);\n}\n\n:host([variant=\"shadow\"][clickable]:hover),\n:host([clickable][show-shadow]:hover) {\n box-shadow: var(--shadow-4);\n}\n\n:host([variant=\"shadow\"][clickable]:focus:focus-visible),\n:host([clickable][show-shadow]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host([variant=\"shadow\"][clickable]:active),\n:host([clickable][show-shadow]:active) {\n box-shadow: none;\n}\n\n/* Overlay */\n:host([variant=\"overlay\"]) .content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n justify-content: flex-end;\n padding: var(--space-unit);\n background-image: linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));\n color: var(--color-text-inverse);\n fill: var(--color-text-inverse);\n}\n","import {Component, ComponentInterface, Element, Host, Prop, State, h} from \"@stencil/core\";\nimport {CardVariant} from \"../../beans\";\n\n/**\n * ZCard component.\n * The width of the card must be set by its container, following the grid indications of the design.\n *\n * @slot cover - Image cover\n * @slot metadata - Metadata\n * @slot title - Using an `<a>` tag here will make the whole card clickable as if the link was wrapping it.\n * @slot text\n * @slot action - Interactive elements to place at the bottom of the card. To put non-interactive elements here when using an `<a>` tag in the `title` slot, and use this as a sort of \"footer\", set `z-index: 0` on each of those elements.\n */\n@Component({\n tag: \"z-card\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCard implements ComponentInterface {\n /**\n * Card variant.\n * Can be one of \"text\", \"border\", \"shadow\", \"overlay\".\n * Leave it undefined for the default card.\n */\n @Prop({reflect: true})\n variant?: CardVariant;\n\n /** Name of the icon to place over the image cover */\n @Prop()\n coverIcon: string;\n\n /** Enable shadow. Default: false. */\n @Prop({reflect: true})\n showShadow = false;\n\n /**\n * Enable \"clickable\" styles like hover background and cursor, focus shadow on the whole card, etc.\n * Always set this to `true` when putting an `<a>` tag in the `title` slot.\n */\n @Prop({reflect: true})\n clickable = false;\n\n @Element() host: HTMLZCardElement;\n\n @State()\n hasCoverImage: boolean;\n\n componentWillLoad(): void {\n this.hasCoverImage = this.host.querySelector('[slot=\"cover\"]') !== null;\n }\n\n /**\n * Template for a card without image cover.\n * A colored background replaces the image and some data is moved over it.\n */\n private renderColorCoverCard(): HTMLDivElement[] {\n return [\n <div class=\"cover-container\">\n <div class=\"color-cover\">\n <div class=\"cover-content\">\n <slot name=\"metadata\"></slot>\n <slot name=\"title\"></slot>\n </div>\n </div>\n </div>,\n <div class=\"content\">\n <slot name=\"text\"></slot>\n <div class=\"actions\">\n <slot name=\"action\"></slot>\n </div>\n </div>,\n ];\n }\n\n /**\n * Template for the content.\n */\n private renderContent(): HTMLDivElement {\n return (\n <div class=\"content\">\n <slot name=\"metadata\"></slot>\n <slot name=\"title\"></slot>\n <slot name=\"text\"></slot>\n <div class=\"actions\">\n <slot name=\"action\"></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZCardElement {\n if (this.variant === CardVariant.TEXT) {\n return <Host>{this.renderContent()}</Host>;\n }\n\n if (this.variant === CardVariant.OVERLAY || this.hasCoverImage) {\n return (\n <Host>\n <div class=\"cover-container\">\n {this.hasCoverImage && [\n <slot name=\"cover\"></slot>,\n this.variant !== CardVariant.OVERLAY && this.coverIcon && <z-icon name={this.coverIcon}></z-icon>,\n ]}\n {!this.hasCoverImage && <div class=\"color-cover\"></div>}\n </div>\n {this.renderContent()}\n </Host>\n );\n }\n\n return <Host>{this.renderColorCoverCard()}</Host>;\n }\n}\n"],"mappings":"uLAAA,MAAMA,EAAY,IAAM,8tI,MCkBXC,EAAKC,EAAA,MAAAD,UAAAE,EALlB,WAAAC,CAAAC,G,kEAoBEC,KAAAC,WAAa,MAObD,KAAAE,UAAY,KAwEb,CAjEC,iBAAAC,GACEH,KAAKI,cAAgBJ,KAAKK,KAAKC,cAAc,oBAAsB,I,CAO7D,oBAAAC,GACN,MAAO,CACLC,EAAA,OAAKC,MAAM,mBACTD,EAAA,OAAKC,MAAM,eACTD,EAAA,OAAKC,MAAM,iBACTD,EAAA,QAAME,KAAK,aACXF,EAAA,QAAME,KAAK,aAIjBF,EAAA,OAAKC,MAAM,WACTD,EAAA,QAAME,KAAK,SACXF,EAAA,OAAKC,MAAM,WACTD,EAAA,QAAME,KAAK,a,CASX,aAAAC,GACN,OACEH,EAAA,OAAKC,MAAM,WACTD,EAAA,QAAME,KAAK,aACXF,EAAA,QAAME,KAAK,UACXF,EAAA,QAAME,KAAK,SACXF,EAAA,OAAKC,MAAM,WACTD,EAAA,QAAME,KAAK,Y,CAMnB,MAAAE,GACE,GAAIZ,KAAKa,UAAYC,EAAYC,KAAM,CACrC,OAAOP,EAACQ,EAAI,KAAEhB,KAAKW,gB,CAGrB,GAAIX,KAAKa,UAAYC,EAAYG,SAAWjB,KAAKI,cAAe,CAC9D,OACEI,EAACQ,EAAI,KACHR,EAAA,OAAKC,MAAM,mBACRT,KAAKI,eAAiB,CACrBI,EAAA,QAAME,KAAK,UACXV,KAAKa,UAAYC,EAAYG,SAAWjB,KAAKkB,WAAaV,EAAA,UAAQE,KAAMV,KAAKkB,cAE7ElB,KAAKI,eAAiBI,EAAA,OAAKC,MAAM,iBAEpCT,KAAKW,gB,CAKZ,OAAOH,EAACQ,EAAI,KAAEhB,KAAKO,uB","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as n,Host as o,transformTag as s}from"@stencil/core/internal/client";import{Q as a,R as r,B as l}from"./index2.js";import{d as h}from"./index5.js";import{d as g}from"./index18.js";import{d}from"./index3.js";const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.indexChange=i(this,"indexChange",7),this.single=!1,this.fixedArrows=!0,this.ghostLoadingHeight=100,this.infinite=!1,this.current=0,this.scrollingTo=null}onIndexChange(){this.indexChange.emit({currentItem:this.current})}onSingleModeChange(){this.single&&!this.intersectionObserver&&this.setIntersectionObserver()}onInfiniteModeChange(){this.checkNavigationValidity()}onLoadingChange(){this.isLoading||this.setupObserversAndListeners()}setupObserversAndListeners(){var t;this.setupItems(),null===(t=this.itemsContainer)||void 0===t||t.addEventListener("scroll",this.checkNavigationValidity.bind(this),{passive:!0}),this.resizeObserver=new ResizeObserver(this.checkNavigationValidity.bind(this)),this.resizeObserver.observe(this.itemsContainer),this.single&&this.setIntersectionObserver(),this.checkNavigationValidity()}setIntersectionObserver(){this.intersectionObserver=new IntersectionObserver((t=>{const e=t.find((({isIntersecting:t})=>t));if(!e)return;const i=this.items.findIndex((t=>t===e.target));this.highlightedIndicator=i,null!==this.scrollingTo&&i!==this.scrollingTo||(this.scrollingTo=null,this.current=i)}),{root:this.itemsContainer,threshold:.5}),this.items.forEach((t=>this.intersectionObserver.observe(t)))}onSlotChange(){this.items=Array.from(this.host.children),this.checkNavigationValidity(),this.setIntersectionObserver(),this.goTo(this.current)}onPrev(){this.single?this.goTo(this.infinite&&this.current-1<0?this.items.length-1:Math.max(0,this.current-1)):this.itemsContainer.scrollBy({left:this.infinite&&0==this.itemsContainer.scrollLeft?this.itemsContainer.scrollWidth-this.itemsContainer.clientWidth:-this.itemsContainer.clientWidth/2,behavior:"smooth"})}onNext(){if(this.single)return this.goTo(this.infinite&&this.current+1>this.items.length-1?0:Math.min(this.current+1,this.items.length-1));this.itemsContainer.scrollBy({left:this.infinite&&this.itemsContainer.scrollLeft==this.itemsContainer.scrollWidth-this.itemsContainer.clientWidth?-this.itemsContainer.scrollWidth:this.itemsContainer.clientWidth/2,behavior:"smooth"})}checkNavigationValidity(){if(this.single)return this.canNavigatePrev=this.current>0,void(this.canNavigateNext=this.current<this.items.length-1);this.canNavigatePrev=this.itemsContainer.scrollLeft>0,this.canNavigateNext=this.itemsContainer.scrollLeft<this.itemsContainer.scrollWidth-this.itemsContainer.clientWidth}canShowFooter(){return!(!this.canNavigatePrev&&!this.canNavigateNext||this.arrowsPosition!==a.BOTTOM&&this.progressMode!==r.DOTS&&this.progressMode!==r.NUMBERS)}goTo(t){if(this.current===t)return;this.scrollingTo=t;const e=this.items.slice(0,t).reduce(((t,e)=>t+e.clientWidth),0);this.itemsContainer.scroll({left:e,behavior:"smooth"})}get canNavigate(){return this.canNavigatePrev||this.canNavigateNext}setupItems(){this.items=Array.from(this.host.children),this.items.forEach((t=>{t.setAttribute("aria-roledescription","slide")}))}componentDidLoad(){this.isLoading||this.setupObserversAndListeners()}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){return this.isLoading?n("div",{class:"z-carousel-container"},this.label&&n("div",{class:"heading-3-sb z-carousel-title"},this.label),n("div",{style:{height:this.ghostLoadingHeight+"px"}},n("z-ghost-loading",null))):n(o,null,n("div",{class:"z-carousel-container","aria-roledescription":"carousel","aria-label":this.label||"Carousel"},this.label&&n("div",{class:"z-carousel-title heading-3-sb"},this.label),n("div",{class:"z-carousel-wrapper"},n("z-button",{class:"z-carousel-navigation-arrow",variant:l.SECONDARY,"data-direction":"prev",icon:"arrow-left",onClick:this.onPrev.bind(this),disabled:!this.infinite&&!this.canNavigatePrev,hidden:this.arrowsPosition!==a.OVER||!this.canNavigate,ariaLabel:this.single?"Mostra l'elemento precedente":"Mostra gli elementi precedenti"}),n("ul",{class:"z-carousel-items-container","aria-atomic":"false","aria-live":"polite",ref:t=>this.itemsContainer=t},n("slot",{onSlotchange:this.onSlotChange.bind(this)})),n("z-button",{class:"z-carousel-navigation-arrow",variant:l.SECONDARY,"data-direction":"next",icon:"arrow-right",onClick:this.onNext.bind(this),disabled:!this.infinite&&!this.canNavigateNext,hidden:this.arrowsPosition!==a.OVER||!this.canNavigate,ariaLabel:this.single?"Mostra l'elemento successivo":"Mostra gli elementi successivi"}))),this.canShowFooter()&&n("div",{class:"z-carousel-footer"},this.arrowsPosition===a.BOTTOM&&n("z-button",{class:"z-carousel-navigation-arrow",variant:l.TERTIARY,icon:"arrow-left",onClick:this.onPrev.bind(this),disabled:!this.infinite&&!this.canNavigatePrev,ariaLabel:this.single?"Mostra l'elemento precedente":"Mostra gli elementi precedenti"}),this.progressMode===r.DOTS&&this.single&&this.items&&n("div",{class:"dots-progress"},this.items.map(((t,e)=>n("button",{type:"button",class:{current:this.highlightedIndicator===e},"aria-label":this.highlightedIndicator===e?"Elemento corrente":"Spostati all'elemento "+(e+1),onClick:()=>this.goTo(e)})))),this.progressMode===r.NUMBERS&&this.single&&this.items&&n("div",{class:"numbers-progress interactive-1"},n("span",{class:"current"},this.current+1),n("span",null,"di"),n("span",null,this.items.length)),this.arrowsPosition===a.BOTTOM&&n("z-button",{class:"z-carousel-navigation-arrow",variant:l.TERTIARY,icon:"arrow-right",onClick:this.onNext.bind(this),disabled:!this.infinite&&!this.canNavigateNext,ariaLabel:this.single?"Mostra l'elemento successivo":"Mostra gli elementi successivi"})))}get host(){return this}static get watchers(){return{current:[{onIndexChange:0}],single:[{onSingleModeChange:0}],infinite:[{onInfiniteModeChange:0}],isLoading:[{onLoadingChange:0}]}}static get style(){return':host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0;}:host([single]){display:flex;flex-direction:column;align-items:center;justify-content:center}:host([single]) .z-carousel-container{width:fit-content;max-width:100%}.z-carousel-container{display:flex;flex-direction:column}.z-carousel-title{margin-bottom:calc(var(--space-unit) * 2)}.z-carousel-wrapper{position:relative}.z-carousel-items-container{display:flex;max-width:100%;flex-direction:row;margin:0;box-shadow:var(--z-carousel-items-shadow, none);column-gap:var(--z-carousel-gutter);list-style:none;-ms-overflow-style:none;overflow-x:scroll;padding-inline-start:0;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;}.z-carousel-items-container::-webkit-scrollbar{display:none}.z-carousel-items-container ::slotted(*){scroll-snap-align:center}.z-carousel-navigation-arrow[hidden]{display:none}.z-carousel-navigation-arrow[data-direction]{position:absolute;z-index:1;bottom:50%;transform:translateY(50%)}.z-carousel-navigation-arrow[data-direction="next"]{right:0}:host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow{display:none}.z-carousel-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;column-gap:calc(var(--space-unit) * 3)}:host([arrows-position="bottom"]) .z-carousel-footer{margin-top:calc(var(--space-unit) * 0.75)}.z-carousel-footer .numbers-progress,.z-carousel-footer .dots-progress{display:flex;align-items:center;justify-content:center}.z-carousel-footer .dots-progress{column-gap:calc(var(--space-unit) * 3)}:host(:not([arrows-position="bottom"])) .z-carousel-footer .dots-progress{margin-top:calc(var(--space-unit) * 2)}.z-carousel-footer .dots-progress button{display:flex;width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);align-items:center;padding:0;border:none;margin:0;background-color:var(--color-surface03);border-radius:calc(var(--space-unit) * 3)}.z-carousel-footer .dots-progress button.current{background-color:var(--color-primary01)}.z-carousel-footer .dots-progress button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-carousel-footer .dots-progress button:not(.current){cursor:pointer}.z-carousel-footer .numbers-progress{column-gap:calc(var(--space-unit) / 2)}:host(:not([arrows-position="bottom"])) .z-carousel-footer .numbers-progress{margin-top:var(--space-unit)}.z-carousel-footer .numbers-progress .current{font-weight:var(--font-sb)}@media (min-width: 768px){:host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]){display:flex}}:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}'}},[257,"z-carousel",{isLoading:[4,"is-loading"],label:[1],single:[516],arrowsPosition:[513,"arrows-position"],progressMode:[1,"progress-mode"],fixedArrows:[516,"fixed-arrows"],ghostLoadingHeight:[2,"ghost-loading-height"],infinite:[4],current:[32],items:[32],highlightedIndicator:[32],canNavigatePrev:[32],canNavigateNext:[32]},void 0,{current:[{onIndexChange:0}],single:[{onSingleModeChange:0}],infinite:[{onInfiniteModeChange:0}],isLoading:[{onLoadingChange:0}]}]),b=f,c=function(){"undefined"!=typeof customElements&&["z-carousel","z-button","z-ghost-loading","z-icon"].forEach((t=>{switch(t){case"z-carousel":customElements.get(s(t))||customElements.define(s(t),f);break;case"z-button":customElements.get(s(t))||h();break;case"z-ghost-loading":customElements.get(s(t))||g();break;case"z-icon":customElements.get(s(t))||d()}}))};export{b as ZCarousel,c as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as n,Host as o,transformTag as s}from"@stencil/core/internal/client";import{Q as a,R as r,B as l}from"./index2.js";import{d as h}from"./index5.js";import{d as f}from"./index18.js";import{d as g}from"./index3.js";const d=()=>`:host{--z-carousel-gutter:0;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host([single]){display:flex;flex-direction:column;align-items:center;justify-content:center}:host([single]) .z-carousel-container{width:fit-content;max-width:100%}.z-carousel-container{display:flex;flex-direction:column}.z-carousel-title{margin-bottom:calc(var(--space-unit) * 2)}.z-carousel-wrapper{position:relative}.z-carousel-items-container{display:flex;max-width:100%;flex-direction:row;margin:0;box-shadow:var(--z-carousel-items-shadow, none);column-gap:var(--z-carousel-gutter);list-style:none;-ms-overflow-style:none;overflow-x:scroll;padding-inline-start:0;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;}.z-carousel-items-container::-webkit-scrollbar{display:none}.z-carousel-items-container ::slotted(*){scroll-snap-align:center}.z-carousel-navigation-arrow[hidden]{display:none}.z-carousel-navigation-arrow[data-direction]{position:absolute;z-index:1;bottom:50%;transform:translateY(50%)}.z-carousel-navigation-arrow[data-direction="next"]{right:0}:host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow{display:none}.z-carousel-footer{display:flex;flex-direction:row;align-items:center;justify-content:center;column-gap:calc(var(--space-unit) * 3)}:host([arrows-position="bottom"]) .z-carousel-footer{margin-top:calc(var(--space-unit) * 0.75)}.z-carousel-footer .numbers-progress,.z-carousel-footer .dots-progress{display:flex;align-items:center;justify-content:center}.z-carousel-footer .dots-progress{column-gap:calc(var(--space-unit) * 3)}:host(:not([arrows-position="bottom"])) .z-carousel-footer .dots-progress{margin-top:calc(var(--space-unit) * 2)}.z-carousel-footer .dots-progress button{display:flex;width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);align-items:center;padding:0;border:none;margin:0;background-color:var(--color-surface03);border-radius:calc(var(--space-unit) * 3)}.z-carousel-footer .dots-progress button.current{background-color:var(--color-primary01)}.z-carousel-footer .dots-progress button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-carousel-footer .dots-progress button:not(.current){cursor:pointer}.z-carousel-footer .numbers-progress{column-gap:calc(var(--space-unit) / 2)}:host(:not([arrows-position="bottom"])) .z-carousel-footer .numbers-progress{margin-top:var(--space-unit)}.z-carousel-footer .numbers-progress .current{font-weight:var(--font-sb)}@media (min-width: 768px){:host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]){display:flex}}`;const b=()=>`:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}`;const c=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.indexChange=i(this,"indexChange",7);this.single=false;this.fixedArrows=true;this.ghostLoadingHeight=100;this.infinite=false;this.current=0;this.scrollingTo=null}onIndexChange(){this.indexChange.emit({currentItem:this.current})}onSingleModeChange(){if(this.single&&!this.intersectionObserver){this.setIntersectionObserver()}}onInfiniteModeChange(){this.checkNavigationValidity()}onLoadingChange(){if(!this.isLoading){this.setupObserversAndListeners()}}setupObserversAndListeners(){var t;this.setupItems();(t=this.itemsContainer)===null||t===void 0?void 0:t.addEventListener("scroll",this.checkNavigationValidity.bind(this),{passive:true});this.resizeObserver=new ResizeObserver(this.checkNavigationValidity.bind(this));this.resizeObserver.observe(this.itemsContainer);if(this.single){this.setIntersectionObserver()}this.checkNavigationValidity()}setIntersectionObserver(){this.intersectionObserver=new IntersectionObserver((t=>{const e=t.find((({isIntersecting:t})=>t));if(!e){return}const i=this.items.findIndex((t=>t===e.target));this.highlightedIndicator=i;if(this.scrollingTo!==null&&i!==this.scrollingTo){return}this.scrollingTo=null;this.current=i}),{root:this.itemsContainer,threshold:.5});this.items.forEach((t=>this.intersectionObserver.observe(t)))}onSlotChange(){this.items=Array.from(this.host.children);this.checkNavigationValidity();this.setIntersectionObserver();this.goTo(this.current)}onPrev(){if(this.single){this.goTo(this.infinite&&this.current-1<0?this.items.length-1:Math.max(0,this.current-1));return}this.itemsContainer.scrollBy({left:this.infinite&&this.itemsContainer.scrollLeft==0?this.itemsContainer.scrollWidth-this.itemsContainer.clientWidth:-this.itemsContainer.clientWidth/2,behavior:"smooth"})}onNext(){if(this.single){const t=this.infinite&&this.current+1>this.items.length-1?0:Math.min(this.current+1,this.items.length-1);return this.goTo(t)}this.itemsContainer.scrollBy({left:this.infinite&&this.itemsContainer.scrollLeft==this.itemsContainer.scrollWidth-this.itemsContainer.clientWidth?-this.itemsContainer.scrollWidth:this.itemsContainer.clientWidth/2,behavior:"smooth"})}checkNavigationValidity(){if(this.single){this.canNavigatePrev=this.current>0;this.canNavigateNext=this.current<this.items.length-1;return}this.canNavigatePrev=this.itemsContainer.scrollLeft>0;this.canNavigateNext=this.itemsContainer.scrollLeft<this.itemsContainer.scrollWidth-this.itemsContainer.clientWidth}canShowFooter(){if(!this.canNavigatePrev&&!this.canNavigateNext){return false}return this.arrowsPosition===a.BOTTOM||this.progressMode===r.DOTS||this.progressMode===r.NUMBERS}goTo(t){if(this.current===t){return}this.scrollingTo=t;const e=this.items.slice(0,t).reduce(((t,e)=>t+=e.clientWidth),0);this.itemsContainer.scroll({left:e,behavior:"smooth"})}get canNavigate(){return this.canNavigatePrev||this.canNavigateNext}setupItems(){this.items=Array.from(this.host.children);this.items.forEach((t=>{t.setAttribute("aria-roledescription","slide")}))}componentDidLoad(){if(this.isLoading){return}this.setupObserversAndListeners()}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){if(this.isLoading){return n("div",{class:"z-carousel-container"},this.label&&n("div",{class:"heading-3-sb z-carousel-title"},this.label),n("div",{style:{height:`${this.ghostLoadingHeight}px`}},n("z-ghost-loading",null)))}return n(o,null,n("div",{class:"z-carousel-container","aria-roledescription":"carousel","aria-label":this.label||"Carousel"},this.label&&n("div",{class:"z-carousel-title heading-3-sb"},this.label),n("div",{class:"z-carousel-wrapper"},n("z-button",{class:"z-carousel-navigation-arrow",variant:l.SECONDARY,"data-direction":"prev",icon:"arrow-left",onClick:this.onPrev.bind(this),disabled:!this.infinite&&!this.canNavigatePrev,hidden:this.arrowsPosition!==a.OVER||!this.canNavigate,ariaLabel:this.single?"Mostra l'elemento precedente":"Mostra gli elementi precedenti"}),n("ul",{class:"z-carousel-items-container","aria-atomic":"false","aria-live":"polite",ref:t=>this.itemsContainer=t},n("slot",{onSlotchange:this.onSlotChange.bind(this)})),n("z-button",{class:"z-carousel-navigation-arrow",variant:l.SECONDARY,"data-direction":"next",icon:"arrow-right",onClick:this.onNext.bind(this),disabled:!this.infinite&&!this.canNavigateNext,hidden:this.arrowsPosition!==a.OVER||!this.canNavigate,ariaLabel:this.single?"Mostra l'elemento successivo":"Mostra gli elementi successivi"}))),this.canShowFooter()&&n("div",{class:"z-carousel-footer"},this.arrowsPosition===a.BOTTOM&&n("z-button",{class:"z-carousel-navigation-arrow",variant:l.TERTIARY,icon:"arrow-left",onClick:this.onPrev.bind(this),disabled:!this.infinite&&!this.canNavigatePrev,ariaLabel:this.single?"Mostra l'elemento precedente":"Mostra gli elementi precedenti"}),this.progressMode===r.DOTS&&this.single&&this.items&&n("div",{class:"dots-progress"},this.items.map(((t,e)=>n("button",{type:"button",class:{current:this.highlightedIndicator===e},"aria-label":this.highlightedIndicator===e?"Elemento corrente":`Spostati all'elemento ${e+1}`,onClick:()=>this.goTo(e)})))),this.progressMode===r.NUMBERS&&this.single&&this.items&&n("div",{class:"numbers-progress interactive-1"},n("span",{class:"current"},this.current+1),n("span",null,"di"),n("span",null,this.items.length)),this.arrowsPosition===a.BOTTOM&&n("z-button",{class:"z-carousel-navigation-arrow",variant:l.TERTIARY,icon:"arrow-right",onClick:this.onNext.bind(this),disabled:!this.infinite&&!this.canNavigateNext,ariaLabel:this.single?"Mostra l'elemento successivo":"Mostra gli elementi successivi"})))}get host(){return this}static get watchers(){return{current:[{onIndexChange:0}],single:[{onSingleModeChange:0}],infinite:[{onInfiniteModeChange:0}],isLoading:[{onLoadingChange:0}]}}static get style(){return d()+b()}},[257,"z-carousel",{isLoading:[4,"is-loading"],label:[1],single:[516],arrowsPosition:[513,"arrows-position"],progressMode:[1,"progress-mode"],fixedArrows:[516,"fixed-arrows"],ghostLoadingHeight:[2,"ghost-loading-height"],infinite:[4],current:[32],items:[32],highlightedIndicator:[32],canNavigatePrev:[32],canNavigateNext:[32]},undefined,{current:[{onIndexChange:0}],single:[{onSingleModeChange:0}],infinite:[{onInfiniteModeChange:0}],isLoading:[{onLoadingChange:0}]}]);function v(){if(typeof customElements==="undefined"){return}const t=["z-carousel","z-button","z-ghost-loading","z-icon"];t.forEach((t=>{switch(t){case"z-carousel":if(!customElements.get(s(t))){customElements.define(s(t),c)}break;case"z-button":if(!customElements.get(s(t))){h()}break;case"z-ghost-loading":if(!customElements.get(s(t))){f()}break;case"z-icon":if(!customElements.get(s(t))){g()}break}}))}const z=c;const p=v;export{z as ZCarousel,p as defineCustomElement};
2
+ //# sourceMappingURL=z-carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","typographyCss","ZCarousel","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","single","fixedArrows","ghostLoadingHeight","infinite","current","scrollingTo","onIndexChange","indexChange","emit","currentItem","onSingleModeChange","intersectionObserver","setIntersectionObserver","onInfiniteModeChange","checkNavigationValidity","onLoadingChange","isLoading","setupObserversAndListeners","setupItems","_a","itemsContainer","addEventListener","bind","passive","resizeObserver","ResizeObserver","observe","IntersectionObserver","entries","entry","find","isIntersecting","entryIndex","items","findIndex","item","target","highlightedIndicator","root","threshold","forEach","element","onSlotChange","Array","from","host","children","goTo","onPrev","length","Math","max","scrollBy","left","scrollLeft","scrollWidth","clientWidth","behavior","onNext","next","min","canNavigatePrev","canNavigateNext","canShowFooter","arrowsPosition","CarouselArrowsPosition","BOTTOM","progressMode","CarouselProgressMode","DOTS","NUMBERS","index","slice","reduce","acc","scroll","canNavigate","setAttribute","componentDidLoad","disconnectedCallback","disconnect","render","h","class","label","style","height","Host","variant","ButtonVariant","SECONDARY","icon","onClick","disabled","hidden","OVER","ariaLabel","ref","el","onSlotchange","TERTIARY","map","_","type"],"sources":["src/components/z-carousel/styles.css?tag=z-carousel&encapsulation=shadow","src/tokens/typography.css?tag=z-carousel&encapsulation=shadow","src/components/z-carousel/index.tsx"],"sourcesContent":[":host {\n /**\n * @prop --z-carousel-gutter: The gutter between items.\n * @prop --z-carousel-items-shadow: The shadow around the items.\n */\n --z-carousel-gutter: 0;\n --z-carousel-items-shadow: ;\n\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host([single]) {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n:host([single]) .z-carousel-container {\n width: fit-content;\n max-width: 100%;\n}\n\n.z-carousel-container {\n display: flex;\n flex-direction: column;\n}\n\n.z-carousel-title {\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n.z-carousel-wrapper {\n position: relative;\n}\n\n.z-carousel-items-container {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n margin: 0;\n box-shadow: var(--z-carousel-items-shadow, none);\n column-gap: var(--z-carousel-gutter);\n list-style: none;\n -ms-overflow-style: none; /* IE and Edge */\n overflow-x: scroll;\n padding-inline-start: 0;\n scroll-behavior: smooth;\n scroll-snap-type: x mandatory;\n\n /* Hide scrollbar for IE, Edge and Firefox */\n scrollbar-width: none; /* Firefox */\n}\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n.z-carousel-items-container::-webkit-scrollbar {\n display: none;\n}\n\n.z-carousel-items-container ::slotted(*) {\n scroll-snap-align: center;\n}\n\n.z-carousel-navigation-arrow[hidden] {\n display: none;\n}\n\n.z-carousel-navigation-arrow[data-direction] {\n position: absolute;\n z-index: 1;\n bottom: 50%;\n transform: translateY(50%);\n}\n\n.z-carousel-navigation-arrow[data-direction=\"next\"] {\n right: 0;\n}\n\n:host(:not([fixed-arrows])) .z-carousel-wrapper .z-carousel-navigation-arrow {\n display: none;\n}\n\n.z-carousel-footer {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n column-gap: calc(var(--space-unit) * 3);\n}\n\n:host([arrows-position=\"bottom\"]) .z-carousel-footer {\n margin-top: calc(var(--space-unit) * 0.75);\n}\n\n.z-carousel-footer .numbers-progress,\n.z-carousel-footer .dots-progress {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.z-carousel-footer .dots-progress {\n column-gap: calc(var(--space-unit) * 3);\n}\n\n:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .dots-progress {\n margin-top: calc(var(--space-unit) * 2);\n}\n\n.z-carousel-footer .dots-progress button {\n display: flex;\n width: calc(var(--space-unit) * 3);\n height: calc(var(--space-unit) * 3);\n align-items: center;\n padding: 0;\n border: none;\n margin: 0;\n background-color: var(--color-surface03);\n border-radius: calc(var(--space-unit) * 3);\n}\n\n.z-carousel-footer .dots-progress button.current {\n background-color: var(--color-primary01);\n}\n\n.z-carousel-footer .dots-progress button:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-carousel-footer .dots-progress button:not(.current) {\n cursor: pointer;\n}\n\n.z-carousel-footer .numbers-progress {\n column-gap: calc(var(--space-unit) / 2);\n}\n\n:host(:not([arrows-position=\"bottom\"])) .z-carousel-footer .numbers-progress {\n margin-top: var(--space-unit);\n}\n\n.z-carousel-footer .numbers-progress .current {\n font-weight: var(--font-sb);\n}\n\n@media (min-width: 768px) {\n :host(:not([fixed-arrows])) .z-carousel-wrapper:hover .z-carousel-navigation-arrow:not([hidden]) {\n display: flex;\n }\n}\n",":root {\n /* font-family */\n --font-family-sans: \"IBM Plex Sans\", sans-serif;\n --font-family-serif: \"IBM Plex Serif\", serif;\n\n /* font-weight */\n --font-lt: 300;\n --font-rg: 400;\n --font-sb: 600;\n --font-bd: 700;\n\n /* font-size type scale */\n --font-size-1: 0.75rem; /* 12px */\n --font-size-2: 0.875rem; /* 14px */\n --font-size-3: 1rem; /* assuming 16px */\n --font-size-4: 1.125rem; /* 18px */\n --font-size-5: 1.25rem; /* 20px */\n --font-size-6: 1.5rem; /* 24px */\n --font-size-7: 1.75rem; /* 28px */\n --font-size-8: 2rem; /* 32px */\n --font-size-9: 2.25rem; /* 36px */\n --font-size-10: 2.625rem; /* 42px */\n --font-size-11: 3rem; /* 48px */\n --font-size-12: 3.375rem; /* 54px */\n --font-size-13: 3.75rem; /* 60px */\n --font-size-14: 4.25rem; /* 68px */\n --font-size-15: 4.75rem; /* 76px */\n --font-size-16: 5.25rem; /* 84px */\n --font-size-17: 5.75rem; /* 92px */\n\n /* cssprops to use with `font` shorthand property */\n --section-title-1: var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);\n --section-title-2: var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);\n --section-title-3: var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);\n --section-title-4: var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);\n --section-title-5: var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);\n --section-title-6: var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif);\n}\n\n/* Typography classes */\n.heading-1,\n.heading-1-sb,\n.heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n}\n\n.heading-2,\n.heading-2-sb,\n.heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-3,\n.heading-3-sb,\n.heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-4,\n.heading-4-sb,\n.heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-1,\n.body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-2,\n.body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-3,\n.body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-4,\n.body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.body-5,\n.body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.interactive-1,\n.interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.interactive-2,\n.interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.interactive-3,\n.interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.helper,\n.helper-sb {\n font-size: var(--font-size-1);\n font-style: italic;\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n/* section title */\n.section-title-1 {\n font: var(--section-title-1);\n}\n\n.section-title-2 {\n font: var(--section-title-2);\n}\n\n.section-title-3 {\n font: var(--section-title-3);\n}\n\n.section-title-4 {\n font: var(--section-title-4);\n}\n\n.section-title-5 {\n font: var(--section-title-5);\n}\n\n.section-title-6 {\n font: var(--section-title-6);\n}\n\n/* heading-1/2 for desktop and wide viewports */\n@media (min-width: 1152px) {\n .heading-1,\n .heading-1-sb,\n .heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .heading-2,\n .heading-2-sb,\n .heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n}\n\n/* viewport classes */\n@media (max-width: 767px) {\n .mobile-heading-1,\n .mobile-heading-1-sb,\n .mobile-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .mobile-heading-2,\n .mobile-heading-2-sb,\n .mobile-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-3,\n .mobile-heading-3-sb,\n .mobile-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-4,\n .mobile-heading-4-sb,\n .mobile-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-1,\n .mobile-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-2,\n .mobile-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-3,\n .mobile-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-4,\n .mobile-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-body-5,\n .mobile-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-interactive-1,\n .mobile-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-interactive-2,\n .mobile-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-interactive-3,\n .mobile-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-section-title-1 {\n font: var(--section-title-1);\n }\n\n .mobile-section-title-2 {\n font: var(--section-title-2);\n }\n\n .mobile-section-title-3 {\n font: var(--section-title-3);\n }\n\n .mobile-section-title-4 {\n font: var(--section-title-4);\n }\n\n .mobile-section-title-5 {\n font: var(--section-title-5);\n }\n\n .mobile-section-title-6 {\n font: var(--section-title-6);\n }\n\n .mobile-heading-1-lt,\n .mobile-heading-2-lt,\n .mobile-heading-3-lt,\n .mobile-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .mobile-heading-1-sb,\n .mobile-heading-2-sb,\n .mobile-heading-3-sb,\n .mobile-heading-4-sb,\n .mobile-body-1-sb,\n .mobile-body-2-sb,\n .mobile-body-3-sb,\n .mobile-body-4-sb,\n .mobile-body-5-sb,\n .mobile-interactive-1-sb,\n .mobile-interactive-2-sb,\n .mobile-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 768px) and (max-width: 1151px) {\n .tablet-heading-1,\n .tablet-heading-1-sb,\n .tablet-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .tablet-heading-2,\n .tablet-heading-2-sb,\n .tablet-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-3,\n .tablet-heading-3-sb,\n .tablet-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-4,\n .tablet-heading-4-sb,\n .tablet-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-1,\n .tablet-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-2,\n .tablet-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-3,\n .tablet-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-4,\n .tablet-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-body-5,\n .tablet-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-interactive-1,\n .tablet-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-interactive-2,\n .tablet-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-interactive-3,\n .tablet-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-section-title-1 {\n font: var(--section-title-1);\n }\n\n .tablet-section-title-2 {\n font: var(--section-title-2);\n }\n\n .tablet-section-title-3 {\n font: var(--section-title-3);\n }\n\n .tablet-section-title-4 {\n font: var(--section-title-4);\n }\n\n .tablet-section-title-5 {\n font: var(--section-title-5);\n }\n\n .tablet-section-title-6 {\n font: var(--section-title-6);\n }\n\n .tablet-heading-1-lt,\n .tablet-heading-2-lt,\n .tablet-heading-3-lt,\n .tablet-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .tablet-heading-1-sb,\n .tablet-heading-2-sb,\n .tablet-heading-3-sb,\n .tablet-heading-4-sb,\n .tablet-body-1-sb,\n .tablet-body-2-sb,\n .tablet-body-3-sb,\n .tablet-body-4-sb,\n .tablet-body-5-sb,\n .tablet-interactive-1-sb,\n .tablet-interactive-2-sb,\n .tablet-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1152px) and (max-width: 1365px) {\n .desktop-heading-1,\n .desktop-heading-1-sb,\n .desktop-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .desktop-heading-2,\n .desktop-heading-2-sb,\n .desktop-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .desktop-heading-3,\n .desktop-heading-3-sb,\n .desktop-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .desktop-heading-4,\n .desktop-heading-4-sb,\n .desktop-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-1,\n .desktop-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-2,\n .desktop-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-3,\n .desktop-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-4,\n .desktop-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-body-5,\n .desktop-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-interactive-1,\n .desktop-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-interactive-2,\n .desktop-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-interactive-3,\n .desktop-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-section-title-1 {\n font: var(--section-title-1);\n }\n\n .desktop-section-title-2 {\n font: var(--section-title-2);\n }\n\n .desktop-section-title-3 {\n font: var(--section-title-3);\n }\n\n .desktop-section-title-4 {\n font: var(--section-title-4);\n }\n\n .desktop-section-title-5 {\n font: var(--section-title-5);\n }\n\n .desktop-section-title-6 {\n font: var(--section-title-6);\n }\n\n .desktop-heading-1-lt,\n .desktop-heading-2-lt,\n .desktop-heading-3-lt,\n .desktop-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .desktop-heading-1-sb,\n .desktop-heading-2-sb,\n .desktop-heading-3-sb,\n .desktop-heading-4-sb,\n .desktop-body-1-sb,\n .desktop-body-2-sb,\n .desktop-body-3-sb,\n .desktop-body-4-sb,\n .desktop-body-5-sb,\n .desktop-interactive-1-sb,\n .desktop-interactive-2-sb,\n .desktop-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1366px) {\n .wide-heading-1,\n .wide-heading-1-sb,\n .wide-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .wide-heading-2,\n .wide-heading-2-sb,\n .wide-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .wide-heading-3,\n .wide-heading-3-sb,\n .wide-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .wide-heading-4,\n .wide-heading-4-sb,\n .wide-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-1,\n .wide-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-2,\n .wide-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-3,\n .wide-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-4,\n .wide-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-body-5,\n .wide-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-interactive-1,\n .wide-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-interactive-2,\n .wide-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-interactive-3,\n .wide-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-section-title-1 {\n font: var(--section-title-1);\n }\n\n .wide-section-title-2 {\n font: var(--section-title-2);\n }\n\n .wide-section-title-3 {\n font: var(--section-title-3);\n }\n\n .wide-section-title-4 {\n font: var(--section-title-4);\n }\n\n .wide-section-title-5 {\n font: var(--section-title-5);\n }\n\n .wide-section-title-6 {\n font: var(--section-title-6);\n }\n\n .wide-heading-1-lt,\n .wide-heading-2-lt,\n .wide-heading-3-lt,\n .wide-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .wide-heading-1-sb,\n .wide-heading-2-sb,\n .wide-heading-3-sb,\n .wide-heading-4-sb,\n .wide-body-1-sb,\n .wide-body-2-sb,\n .wide-body-3-sb,\n .wide-body-4-sb,\n .wide-body-5-sb,\n .wide-interactive-1-sb,\n .wide-interactive-2-sb,\n .wide-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n/* font-weight variants */\n.heading-1-lt,\n.heading-2-lt,\n.heading-3-lt,\n.heading-4-lt {\n font-weight: var(--font-lt);\n}\n\n.heading-1-sb,\n.heading-2-sb,\n.heading-3-sb,\n.heading-4-sb,\n.body-1-sb,\n.body-2-sb,\n.body-3-sb,\n.body-4-sb,\n.body-5-sb,\n.interactive-1-sb,\n.interactive-2-sb,\n.interactive-3-sb,\n.helper-sb {\n font-weight: var(--font-sb);\n}\n","import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, CarouselArrowsPosition, CarouselProgressMode} from \"../../beans\";\n\n/**\n * ZCarousel component.\n * @slot - Carousel items. Use `<li>` elements inside this slot.\n */\n@Component({\n tag: \"z-carousel\",\n styleUrls: [\"styles.css\", \"../../tokens/typography.css\"],\n shadow: true,\n})\nexport class ZCarousel implements ComponentInterface {\n @Element() host: HTMLZCarouselElement;\n\n /** The z-carousel is on loading state */\n @Prop()\n isLoading: boolean;\n\n /** The z-carousel title */\n @Prop()\n label?: string;\n\n /** Shows only one content at a time */\n @Prop({reflect: true})\n single = false;\n\n /** Arrow buttons position */\n @Prop({reflect: true})\n arrowsPosition?: CarouselArrowsPosition;\n\n /** Progress indicator type. Only available for `single` mode */\n @Prop()\n progressMode?: CarouselProgressMode;\n\n /**\n * Whether the navigation arrow buttons over the items are always visible or only on mouse hover.\n * If set to `false`, the arrows will not be visible on mobile.\n * Only meaningful with `arrowsPosition` set to `OVER`.\n */\n @Prop({reflect: true})\n fixedArrows = true;\n\n /** The height of the ghost loader (only visible when `isLoading` is set to `true`) */\n @Prop()\n ghostLoadingHeight = 100;\n\n /** When enabled, navigating next the last item will go back to the first item and vice versa. */\n @Prop()\n infinite = false;\n\n /** Current item index for single mode. */\n @State()\n current = 0;\n\n /** Items on the slider. */\n @State()\n items: HTMLLIElement[];\n\n /** Index of the indicator to highlight. */\n @State()\n highlightedIndicator: number;\n\n @State()\n canNavigatePrev: boolean;\n\n @State()\n canNavigateNext: boolean;\n\n /** Reference for the items container element. */\n protected itemsContainer: HTMLUListElement;\n\n /** Observer that handles current index change when scrolling on single mode. */\n private intersectionObserver: IntersectionObserver;\n\n /** Observer to check if navigation can still be enabled/showed when the size of the items' container changes */\n private resizeObserver: ResizeObserver;\n\n /** Flag indicating the items container is about to scroll programmatically towards the stored index. */\n private scrollingTo: number = null;\n\n /** Emitted on index change and only in `single` mode. */\n @Event()\n indexChange: EventEmitter<{currentItem: number}>;\n\n @Watch(\"current\")\n onIndexChange(): void {\n this.indexChange.emit({currentItem: this.current});\n }\n\n @Watch(\"single\")\n onSingleModeChange(): void {\n if (this.single && !this.intersectionObserver) {\n this.setIntersectionObserver();\n }\n }\n\n @Watch(\"infinite\")\n onInfiniteModeChange(): void {\n this.checkNavigationValidity();\n }\n\n @Watch(\"isLoading\")\n onLoadingChange(): void {\n if (!this.isLoading) {\n // when loading is finished, we need to set up things with the real items that were not present during the loading phase\n this.setupObserversAndListeners();\n }\n }\n\n /** Set up all observers and listeners related to the rendered items. */\n private setupObserversAndListeners(): void {\n this.setupItems();\n this.itemsContainer?.addEventListener(\"scroll\", this.checkNavigationValidity.bind(this), {passive: true});\n this.resizeObserver = new ResizeObserver(this.checkNavigationValidity.bind(this));\n this.resizeObserver.observe(this.itemsContainer);\n if (this.single) {\n this.setIntersectionObserver();\n }\n this.checkNavigationValidity();\n }\n\n /**\n * Set an intersection observer to:\n * - highlight the indicator of the intersecting item during scroll\n * - set the current item to the last intersecting item\n */\n private setIntersectionObserver(): void {\n this.intersectionObserver = new IntersectionObserver(\n (entries) => {\n const entry = entries.find(({isIntersecting}) => isIntersecting);\n if (!entry) {\n return;\n }\n\n const entryIndex = this.items.findIndex((item) => item === entry.target);\n this.highlightedIndicator = entryIndex;\n\n /* skip setting the current item if intersection has been triggered by a programmatic scroll\n (@see `goTo` function) and the final index has not been reached */\n if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {\n return;\n }\n\n this.scrollingTo = null;\n this.current = entryIndex;\n },\n {\n root: this.itemsContainer,\n threshold: 0.5,\n }\n );\n\n this.items.forEach((element) => this.intersectionObserver.observe(element));\n }\n\n /** Update items' list and check conditions to allow navigation */\n private onSlotChange(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.checkNavigationValidity();\n this.setIntersectionObserver();\n this.goTo(this.current);\n }\n\n private onPrev(): void {\n if (this.single) {\n this.goTo(this.infinite && this.current - 1 < 0 ? this.items.length - 1 : Math.max(0, this.current - 1));\n\n return;\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite && this.itemsContainer.scrollLeft == 0\n ? this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n : -this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n private onNext(): void {\n if (this.single) {\n const next =\n this.infinite && this.current + 1 > this.items.length - 1\n ? 0\n : Math.min(this.current + 1, this.items.length - 1);\n\n return this.goTo(next);\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite &&\n this.itemsContainer.scrollLeft == this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n ? -this.itemsContainer.scrollWidth\n : this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n /**\n * Check if navigation buttons can be enabled and set the related local states.\n */\n private checkNavigationValidity(): void {\n if (this.single) {\n this.canNavigatePrev = this.current > 0;\n this.canNavigateNext = this.current < this.items.length - 1;\n\n return;\n }\n\n this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;\n this.canNavigateNext =\n this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;\n }\n\n /**\n * Check if footer has to be rendered.\n */\n private canShowFooter(): boolean {\n if (!this.canNavigatePrev && !this.canNavigateNext) {\n return false;\n }\n\n return (\n this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||\n this.progressMode === CarouselProgressMode.DOTS ||\n this.progressMode === CarouselProgressMode.NUMBERS\n );\n }\n\n /**\n * Set current item to passed index.\n * @param index Index to set\n */\n private goTo(index: number): void {\n if (this.current === index) {\n return;\n }\n\n this.scrollingTo = index;\n const left = this.items.slice(0, index).reduce((acc, item) => (acc += item.clientWidth), 0);\n // the scroll will trigger the IntersectionObserver and set the current item\n this.itemsContainer.scroll({\n left,\n behavior: \"smooth\",\n });\n }\n\n /** Check if navigation of at least one direction is enabled */\n private get canNavigate(): boolean {\n return this.canNavigatePrev || this.canNavigateNext;\n }\n\n private setupItems(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.items.forEach((item) => {\n item.setAttribute(\"aria-roledescription\", \"slide\");\n });\n }\n\n componentDidLoad(): void {\n if (this.isLoading) {\n return;\n }\n\n this.setupObserversAndListeners();\n }\n\n disconnectedCallback(): void {\n this.resizeObserver?.disconnect();\n }\n\n render(): HTMLDivElement | HTMLZCarouselElement {\n if (this.isLoading) {\n return (\n <div class=\"z-carousel-container\">\n {this.label && <div class=\"heading-3-sb z-carousel-title\">{this.label}</div>}\n <div style={{height: `${this.ghostLoadingHeight}px`}}>\n <z-ghost-loading></z-ghost-loading>\n </div>\n </div>\n );\n }\n\n return (\n <Host>\n <div\n class=\"z-carousel-container\"\n aria-roledescription=\"carousel\"\n aria-label={this.label || \"Carousel\"}\n >\n {this.label && <div class=\"z-carousel-title heading-3-sb\">{this.label}</div>}\n <div class=\"z-carousel-wrapper\">\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"prev\"\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n <ul\n class=\"z-carousel-items-container\"\n aria-atomic=\"false\"\n aria-live=\"polite\"\n ref={(el) => (this.itemsContainer = el)}\n >\n <slot onSlotchange={this.onSlotChange.bind(this)} />\n </ul>\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"next\"\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n </div>\n </div>\n\n {this.canShowFooter() && (\n <div class=\"z-carousel-footer\">\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n {this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (\n <div class=\"dots-progress\">\n {this.items.map((_, index) => (\n <button\n type=\"button\"\n class={{current: this.highlightedIndicator === index}}\n aria-label={\n this.highlightedIndicator === index ? \"Elemento corrente\" : `Spostati all'elemento ${index + 1}`\n }\n onClick={() => this.goTo(index)}\n />\n ))}\n </div>\n )}\n {this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (\n <div class=\"numbers-progress interactive-1\">\n <span class=\"current\">{this.current + 1}</span>\n <span>di</span>\n <span>{this.items.length}</span>\n </div>\n )}\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{Z as o,d as s}from"./index19.js";const r=o,t=s;export{r as ZChip,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index19.js";const t=o;const n=s;export{t as ZChip,n as defineCustomElement};
2
+ //# sourceMappingURL=z-chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as t,HTMLElement as r,createEvent as e,h as o,Host as a,transformTag as s}from"@stencil/core/internal/client";import{a0 as i}from"./index2.js";import{a as l}from"./utils.js";const c={it:{"Select a color":"Seleziona un colore","Color swatch":"Campione di colore"},en:{"Select a color":"Select a color","Color swatch":"Color swatch"}},n=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.colorSelected=e(this,"colorSelected",7),this.lng="it",this.disableTransparent=!1,this.colorKeysByRow=[],this._colorButtons=[]}get colorButtons(){return this._colorButtons.length||(this._colorButtons=Array.from(this.host.shadowRoot.querySelectorAll("button"))),this._colorButtons}sortColorKeysByRow(){const t=Object.keys(i),r=[];for(let e=0;e<5;e++)for(let o=0;o<9;o++){const a=5*o+e;a<t.length&&r.push(t[a])}return r}moveFocusTo(t){this.colorButtons.forEach(((r,e)=>r.tabIndex=e===t?0:-1)),this.colorButtons[t].focus()}validateTransparentSelection(){this.disableTransparent&&"#FFFFFF00"===this.selectedColor&&(this.selectedColor="#333333")}emitColorSelected(){this.colorSelected.emit(this.selectedColor)}async setFocus(){this.colorButtons.forEach((t=>t.tabIndex=-1));const t=this.colorButtons.find((t=>"true"===t.ariaSelected))||this.colorButtons.find((t=>!t.disabled));t&&(t.tabIndex=0,setTimeout((()=>{t.focus()}),50),this.host.tabIndex=-1)}getNextIndexByKey(t,r,e){const o=Math.floor(t/9),a=t%9;let s=t;switch(r){case"ArrowRight":{const t=a+1;s=9*(t>=9?(o+1)%5:o)+t%9,s>=e&&(s=0);break}case"ArrowLeft":{const t=a-1;s=9*(t<0?(o-1+5)%5:o)+(t+9)%9,s>=e&&(s=e-1);break}case"ArrowDown":{let t=o+1,r=a;t>=5&&(t=0,r=(a+1)%9),s=9*t+r,s>=e&&(s=0);break}case"ArrowUp":{let t=o-1,r=a;t<0&&(t=4,r=(a-1+9)%9),s=9*t+r,s>=e&&(s=e-1);break}}return s}handleKeyDown(t){var r,e;const o=t.composedPath()[0];if(!o.dataset.color)return;const a=this.colorButtons.indexOf(o),s=this.colorButtons.length;if(a<0||!["ArrowRight","ArrowLeft","ArrowDown","ArrowUp"].includes(t.key))return;let i=a,l=0;do{i=this.getNextIndexByKey(i,t.key,s),l++}while(l<s&&(null===(r=this.colorButtons[i])||void 0===r?void 0:r.disabled));i!==a&&i>=0&&i<s&&!(null===(e=this.colorButtons[i])||void 0===e?void 0:e.disabled)&&(this.moveFocusTo(i),t.preventDefault(),t.stopPropagation())}handleBlur(t){l(this.host,t.relatedTarget)||(this.host.tabIndex=0,this.colorButtons.forEach((t=>t.tabIndex=-1)))}componentWillLoad(){this.colorKeysByRow=this.sortColorKeysByRow()}render(){return o(a,{key:"c834820884acc8c3bdf4571379cbe6da74e7ea89",role:"listbox","aria-label":this.htmlAriaLabel||c[this.lng]["Select a color"],tabIndex:0},this.colorKeysByRow.map((t=>{var r;return o("button",{class:"color-swatch","data-color":t,role:"option","aria-selected":(null===(r=this.selectedColor)||void 0===r?void 0:r.toUpperCase())===t.toUpperCase()?"true":"false",tabIndex:-1,onClick:()=>this.selectedColor=t,disabled:this.disableTransparent&&"#FFFFFF00"===t},o("div",{class:"color-swatch",role:"img","aria-roledescription":c[this.lng]["Color swatch"],"aria-label":i[t][this.lng],title:i[t][this.lng],style:{backgroundColor:t}}))})))}get host(){return this}static get watchers(){return{disableTransparent:[{validateTransparentSelection:0}],selectedColor:[{validateTransparentSelection:0},{emitColorSelected:0}]}}static get style(){return':host{display:grid;width:fit-content;padding:calc(var(--space-unit) * 2);background:var(--color-surface01);gap:var(--space-unit);grid-template-columns:repeat(9, calc(var(--space-unit) * 3));grid-template-rows:repeat(5, calc(var(--space-unit) * 3))}:host,*{box-sizing:border-box}button{--border-color:var(--color-surface05);padding:0;border:none;appearance:none;background:none;border-radius:var(--border-radius);cursor:pointer}button[data-color="#FFFFFF00"]{position:relative}button[data-color="#FFFFFF00"]::after{position:absolute;top:0;right:0;width:100%;height:100%;background:linear-gradient( -45deg, transparent 48%, var(--border-color) 48%, var(--border-color) 52%, transparent 52% );border-radius:var(--border-radius);content:""}button[aria-selected="true"]{box-shadow:0 0 0 1px var(--color-white), 0 0 0 3px var(--color-active-primary)}button:focus-visible{box-shadow:var(--shadow-focus-primary)}button .color-swatch{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--border-color);border-radius:var(--border-radius)}button[data-color="#FFFFFF00"]:disabled{--border-color:var(--color-disabled01-icon);cursor:not-allowed}button[data-color="#FFFFFF00"]:disabled .color-swatch{background-color:var(--color-disabled02)}'}},[1,"z-color-picker",{selectedColor:[1025,"selected-color"],lng:[1],htmlAriaLabel:[1,"html-aria-label"],disableTransparent:[4,"disable-transparent"],setFocus:[64]},[[0,"focus","setFocus"],[0,"keydown","handleKeyDown"],[0,"blur","handleBlur"]],{disableTransparent:[{validateTransparentSelection:0}],selectedColor:[{validateTransparentSelection:0},{emitColorSelected:0}]}]),d=n,h=function(){"undefined"!=typeof customElements&&["z-color-picker"].forEach((t=>{"z-color-picker"===t&&(customElements.get(s(t))||customElements.define(s(t),n))}))};export{d as ZColorPicker,h as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as o,h as r,Host as a,transformTag as s}from"@stencil/core/internal/client";import{a0 as i}from"./index2.js";import{a as l}from"./utils.js";const c=()=>`:host{display:grid;width:fit-content;padding:calc(var(--space-unit) * 2);background:var(--color-surface01);gap:var(--space-unit);grid-template-columns:repeat(9, calc(var(--space-unit) * 3));grid-template-rows:repeat(5, calc(var(--space-unit) * 3))}:host,*{box-sizing:border-box}button{--border-color:var(--color-surface05);padding:0;border:none;appearance:none;background:none;border-radius:var(--border-radius);cursor:pointer}button[data-color="#FFFFFF00"]{position:relative}button[data-color="#FFFFFF00"]::after{position:absolute;top:0;right:0;width:100%;height:100%;background:linear-gradient( -45deg, transparent 48%, var(--border-color) 48%, var(--border-color) 52%, transparent 52% );border-radius:var(--border-radius);content:""}button[aria-selected="true"]{box-shadow:0 0 0 1px var(--color-white), 0 0 0 3px var(--color-active-primary)}button:focus-visible{box-shadow:var(--shadow-focus-primary)}button .color-swatch{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--border-color);border-radius:var(--border-radius)}button[data-color="#FFFFFF00"]:disabled{--border-color:var(--color-disabled01-icon);cursor:not-allowed}button[data-color="#FFFFFF00"]:disabled .color-swatch{background-color:var(--color-disabled02)}`;const n={it:{"Select a color":"Seleziona un colore","Color swatch":"Campione di colore"},en:{"Select a color":"Select a color","Color swatch":"Color swatch"}};const d=5;const h=9;const u=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.colorSelected=o(this,"colorSelected",7);this.lng="it";this.disableTransparent=false;this.colorKeysByRow=[];this._colorButtons=[]}get colorButtons(){if(!this._colorButtons.length){this._colorButtons=Array.from(this.host.shadowRoot.querySelectorAll("button"))}return this._colorButtons}sortColorKeysByRow(){const t=Object.keys(i);const e=[];for(let o=0;o<d;o++){for(let r=0;r<h;r++){const a=r*d+o;if(a<t.length){e.push(t[a])}}}return e}moveFocusTo(t){this.colorButtons.forEach(((e,o)=>e.tabIndex=o===t?0:-1));this.colorButtons[t].focus()}validateTransparentSelection(){if(this.disableTransparent&&this.selectedColor==="#FFFFFF00"){this.selectedColor="#333333"}}emitColorSelected(){this.colorSelected.emit(this.selectedColor)}async setFocus(){this.colorButtons.forEach((t=>t.tabIndex=-1));const t=this.colorButtons.find((t=>t.ariaSelected==="true"))||this.colorButtons.find((t=>!t.disabled));if(!t){return}t.tabIndex=0;setTimeout((()=>{t.focus()}),50);this.host.tabIndex=-1}getNextIndexByKey(t,e,o){const r=Math.floor(t/h);const a=t%h;let s=t;switch(e){case"ArrowRight":{const t=a+1;const e=t>=h?(r+1)%d:r;s=e*h+t%h;if(s>=o){s=0}break}case"ArrowLeft":{const t=a-1;const e=t<0?(r-1+d)%d:r;s=e*h+(t+h)%h;if(s>=o){s=o-1}break}case"ArrowDown":{let t=r+1;let e=a;if(t>=d){t=0;e=(a+1)%h}s=t*h+e;if(s>=o){s=0}break}case"ArrowUp":{let t=r-1;let e=a;if(t<0){t=d-1;e=(a-1+h)%h}s=t*h+e;if(s>=o){s=o-1}break}}return s}handleKeyDown(t){var e,o;const r=t.composedPath()[0];if(!r.dataset.color){return}const a=this.colorButtons.indexOf(r);const s=this.colorButtons.length;if(a<0||!["ArrowRight","ArrowLeft","ArrowDown","ArrowUp"].includes(t.key)){return}let i=a;let l=0;do{i=this.getNextIndexByKey(i,t.key,s);l++}while(l<s&&((e=this.colorButtons[i])===null||e===void 0?void 0:e.disabled));if(i!==a&&i>=0&&i<s&&!((o=this.colorButtons[i])===null||o===void 0?void 0:o.disabled)){this.moveFocusTo(i);t.preventDefault();t.stopPropagation()}}handleBlur(t){const e=t.relatedTarget;if(!l(this.host,e)){this.host.tabIndex=0;this.colorButtons.forEach((t=>t.tabIndex=-1))}}componentWillLoad(){this.colorKeysByRow=this.sortColorKeysByRow()}render(){return r(a,{key:"8ab27c4b68bd295e1bda15e78f1f41bfbfc66b47",role:"listbox","aria-label":this.htmlAriaLabel||n[this.lng]["Select a color"],tabIndex:0},this.colorKeysByRow.map((t=>{var e;return r("button",{class:"color-swatch","data-color":t,role:"option","aria-selected":((e=this.selectedColor)===null||e===void 0?void 0:e.toUpperCase())===t.toUpperCase()?"true":"false",tabIndex:-1,onClick:()=>this.selectedColor=t,disabled:this.disableTransparent&&t==="#FFFFFF00"},r("div",{class:"color-swatch",role:"img","aria-roledescription":n[this.lng]["Color swatch"],"aria-label":i[t][this.lng],title:i[t][this.lng],style:{backgroundColor:t}}))})))}get host(){return this}static get watchers(){return{disableTransparent:[{validateTransparentSelection:0}],selectedColor:[{validateTransparentSelection:0},{emitColorSelected:0}]}}static get style(){return c()}},[1,"z-color-picker",{selectedColor:[1025,"selected-color"],lng:[1],htmlAriaLabel:[1,"html-aria-label"],disableTransparent:[4,"disable-transparent"],setFocus:[64]},[[0,"focus","setFocus"],[0,"keydown","handleKeyDown"],[0,"blur","handleBlur"]],{disableTransparent:[{validateTransparentSelection:0}],selectedColor:[{validateTransparentSelection:0},{emitColorSelected:0}]}]);function b(){if(typeof customElements==="undefined"){return}const t=["z-color-picker"];t.forEach((t=>{switch(t){case"z-color-picker":if(!customElements.get(s(t))){customElements.define(s(t),u)}break}}))}const p=u;const f=b;export{p as ZColorPicker,f as defineCustomElement};
2
+ //# sourceMappingURL=z-color-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","LOCALES","it","en","COLOR_GROUP_SIZE","COLOR_GROUPS","ZColorPicker","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","lng","disableTransparent","colorKeysByRow","_colorButtons","colorButtons","length","Array","from","host","shadowRoot","querySelectorAll","sortColorKeysByRow","allKeys","Object","keys","ColorPickerPalette","ordered","row","col","columnMajorIndex","push","moveFocusTo","index","forEach","btn","i","tabIndex","focus","validateTransparentSelection","selectedColor","emitColorSelected","colorSelected","emit","setFocus","firstSelectedOrEnabled","find","ariaSelected","disabled","setTimeout","getNextIndexByKey","currentIndex","key","totalColors","Math","floor","newIndex","newCol","newRow","handleKeyDown","event","target","composedPath","dataset","color","indexOf","includes","attempts","_a","_b","preventDefault","stopPropagation","handleBlur","relatedTarget","containsElement","componentWillLoad","render","h","Host","role","htmlAriaLabel","map","colorKey","class","toUpperCase","onClick","title","style","backgroundColor"],"sources":["src/components/z-color-picker/styles.css?tag=z-color-picker&encapsulation=shadow","src/components/z-color-picker/index.tsx"],"sourcesContent":[":host {\n display: grid;\n width: fit-content;\n padding: calc(var(--space-unit) * 2);\n background: var(--color-surface01);\n gap: var(--space-unit);\n grid-template-columns: repeat(9, calc(var(--space-unit) * 3));\n grid-template-rows: repeat(5, calc(var(--space-unit) * 3));\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\nbutton {\n --border-color: var(--color-surface05);\n\n padding: 0;\n border: none;\n appearance: none;\n background: none;\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n\nbutton[data-color=\"#FFFFFF00\"] {\n position: relative;\n}\n\n/* draw a diagonal line from top right corner */\nbutton[data-color=\"#FFFFFF00\"]::after {\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n -45deg,\n transparent 48%,\n var(--border-color) 48%,\n var(--border-color) 52%,\n transparent 52%\n );\n border-radius: var(--border-radius);\n content: \"\";\n}\n\nbutton[aria-selected=\"true\"] {\n box-shadow:\n 0 0 0 1px var(--color-white),\n 0 0 0 3px var(--color-active-primary);\n}\n\nbutton:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n}\n\nbutton .color-swatch {\n width: calc(var(--space-unit) * 3);\n height: calc(var(--space-unit) * 3);\n border: var(--border-size-small) solid var(--border-color);\n border-radius: var(--border-radius);\n}\n\nbutton[data-color=\"#FFFFFF00\"]:disabled {\n --border-color: var(--color-disabled01-icon);\n\n cursor: not-allowed;\n}\n\nbutton[data-color=\"#FFFFFF00\"]:disabled .color-swatch {\n background-color: var(--color-disabled02);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ColorPickerPalette} from \"../../beans\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst LOCALES = {\n it: {\n \"Select a color\": \"Seleziona un colore\",\n \"Color swatch\": \"Campione di colore\",\n },\n en: {\n \"Select a color\": \"Select a color\",\n \"Color swatch\": \"Color swatch\",\n },\n} as const;\n\n/** Number of colors in each group (column) of the grid. */\nconst COLOR_GROUP_SIZE = 5;\n\n/** Number of color groups (columns) in the grid. */\nconst COLOR_GROUPS = 9;\n\n/**\n * Color picker component.\n * This component allows the user to pick a color from a predefined set.\n */\n@Component({\n tag: \"z-color-picker\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZColorPicker implements ComponentInterface {\n @Element() host: HTMLZColorPickerElement;\n\n /**\n * The selected color to highlight.\n */\n @Prop({mutable: true})\n selectedColor: ColorPickerPalette;\n\n /**\n * The language for the aria labels inside the color picker.\n */\n @Prop()\n lng: \"it\" | \"en\" = \"it\";\n\n /**\n * The aria-label for the color picker, e.g. \"Select a background color for the label\".\n */\n @Prop()\n htmlAriaLabel: string;\n\n /**\n * Disables the transparent color option.\n * Setting `selectedColor` prop to `#FFFFFF00` while `disableTransparent` is true will default to `#333333` (\"dark gray 2\").\n */\n @Prop()\n disableTransparent = false;\n\n /**\n * Event emitted when a color is selected.\n */\n @Event()\n colorSelected: EventEmitter<ColorPickerPalette>;\n\n /**\n * The color keys arranged in row-major order for rendering and navigation.\n */\n private colorKeysByRow: ColorPickerPalette[] = [];\n\n private _colorButtons: HTMLButtonElement[] = [];\n\n private get colorButtons(): HTMLButtonElement[] {\n if (!this._colorButtons.length) {\n this._colorButtons = Array.from(this.host.shadowRoot.querySelectorAll(\"button\")) as HTMLButtonElement[];\n }\n\n return this._colorButtons;\n }\n\n /**\n * Reorders color keys from column-major (the format of the `ColorPickerPalette` object) to row-major (visual/navigation order).\n * This ensures button indices in the DOM match their visual position in the grid.\n */\n private sortColorKeysByRow(): ColorPickerPalette[] {\n const allKeys = Object.keys(ColorPickerPalette) as ColorPickerPalette[];\n const ordered: ColorPickerPalette[] = [];\n\n // Iterate through visual positions (row by row, left to right)\n for (let row = 0; row < COLOR_GROUP_SIZE; row++) {\n for (let col = 0; col < COLOR_GROUPS; col++) {\n const columnMajorIndex = col * COLOR_GROUP_SIZE + row;\n if (columnMajorIndex < allKeys.length) {\n ordered.push(allKeys[columnMajorIndex]);\n }\n }\n }\n\n return ordered;\n }\n\n /** Move focus to the specified color button by index. */\n private moveFocusTo(index: number): void {\n // Reset tabindex of other buttons and set tabindex to 0 on selected button\n this.colorButtons.forEach((btn, i) => (btn.tabIndex = i === index ? 0 : -1));\n this.colorButtons[index].focus();\n }\n\n @Watch(\"disableTransparent\")\n @Watch(\"selectedColor\")\n validateTransparentSelection(): void {\n if (this.disableTransparent && this.selectedColor === \"#FFFFFF00\") {\n this.selectedColor = \"#333333\"; // Default to dark gray 2 if transparent is disabled and currently selected\n }\n }\n\n @Watch(\"selectedColor\")\n emitColorSelected(): void {\n this.colorSelected.emit(this.selectedColor);\n }\n\n /**\n * Focuses the selected or first enabled color button and makes the container non-tabbable.\n */\n @Listen(\"focus\")\n @Method()\n async setFocus(): Promise<void> {\n // Reset tabindex of all buttons\n this.colorButtons.forEach((btn) => (btn.tabIndex = -1));\n const firstSelectedOrEnabled =\n this.colorButtons.find((btn) => btn.ariaSelected === \"true\") || this.colorButtons.find((btn) => !btn.disabled);\n if (!firstSelectedOrEnabled) {\n return;\n }\n\n firstSelectedOrEnabled.tabIndex = 0;\n setTimeout(() => {\n firstSelectedOrEnabled.focus();\n }, 50);\n // Set container as non-tabbable\n this.host.tabIndex = -1;\n }\n\n /**\n * Compute next index in row-major grid according to keyboard direction.\n */\n private getNextIndexByKey(currentIndex: number, key: string, totalColors: number): number {\n const row = Math.floor(currentIndex / COLOR_GROUPS);\n const col = currentIndex % COLOR_GROUPS;\n let newIndex = currentIndex;\n\n switch (key) {\n case \"ArrowRight\": {\n const newCol = col + 1;\n const newRow = newCol >= COLOR_GROUPS ? (row + 1) % COLOR_GROUP_SIZE : row;\n newIndex = newRow * COLOR_GROUPS + (newCol % COLOR_GROUPS);\n if (newIndex >= totalColors) {\n newIndex = 0; // Wrap to first item\n }\n\n break;\n }\n case \"ArrowLeft\": {\n const newCol = col - 1;\n const newRow = newCol < 0 ? (row - 1 + COLOR_GROUP_SIZE) % COLOR_GROUP_SIZE : row;\n newIndex = newRow * COLOR_GROUPS + ((newCol + COLOR_GROUPS) % COLOR_GROUPS);\n if (newIndex >= totalColors) {\n newIndex = totalColors - 1; // Wrap to last item\n }\n\n break;\n }\n case \"ArrowDown\": {\n let newRow = row + 1;\n let newCol = col;\n if (newRow >= COLOR_GROUP_SIZE) {\n // Wrap to first item of next column\n newRow = 0;\n newCol = (col + 1) % COLOR_GROUPS;\n }\n newIndex = newRow * COLOR_GROUPS + newCol;\n if (newIndex >= totalColors) {\n newIndex = 0; // Wrap to first item\n }\n\n break;\n }\n case \"ArrowUp\": {\n let newRow = row - 1;\n let newCol = col;\n if (newRow < 0) {\n // Wrap to last item of previous column\n newRow = COLOR_GROUP_SIZE - 1;\n newCol = (col - 1 + COLOR_GROUPS) % COLOR_GROUPS;\n }\n newIndex = newRow * COLOR_GROUPS + newCol;\n if (newIndex >= totalColors) {\n newIndex = totalColors - 1; // Wrap to last item\n }\n\n break;\n }\n }\n\n return newIndex;\n }\n\n /**\n * Handle keyboard navigation within the color picker.\n * Arrow keys move focus in the expected direction, wrapping around edges. The grid is navigated in row-major order.\n */\n @Listen(\"keydown\")\n handleKeyDown(event: KeyboardEvent): void {\n const target = event.composedPath()[0] as HTMLElement;\n if (!target.dataset.color) {\n return;\n }\n\n const currentIndex = this.colorButtons.indexOf(target as HTMLButtonElement);\n const totalColors = this.colorButtons.length;\n if (currentIndex < 0 || ![\"ArrowRight\", \"ArrowLeft\", \"ArrowDown\", \"ArrowUp\"].includes(event.key)) {\n return;\n }\n\n let newIndex = currentIndex;\n let attempts = 0;\n\n do {\n newIndex = this.getNextIndexByKey(newIndex, event.key, totalColors);\n attempts++;\n } while (attempts < totalColors && this.colorButtons[newIndex]?.disabled);\n\n if (\n newIndex !== currentIndex &&\n newIndex >= 0 &&\n newIndex < totalColors &&\n !this.colorButtons[newIndex]?.disabled\n ) {\n this.moveFocusTo(newIndex);\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /**\n * When focus leaves the color picker (e.g. user tabs away), reset all buttons to non-tabbable and make the container tabbable again.\n */\n @Listen(\"blur\")\n handleBlur(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget as HTMLElement;\n if (!containsElement(this.host, relatedTarget)) {\n this.host.tabIndex = 0;\n this.colorButtons.forEach((btn) => (btn.tabIndex = -1));\n }\n }\n\n componentWillLoad(): void {\n this.colorKeysByRow = this.sortColorKeysByRow();\n }\n\n render(): HTMLZColorPickerElement {\n return (\n <Host\n role=\"listbox\"\n aria-label={this.htmlAriaLabel || LOCALES[this.lng][\"Select a color\"]}\n tabIndex={0}\n >\n {this.colorKeysByRow.map((colorKey: ColorPickerPalette) => (\n <button\n class=\"color-swatch\"\n data-color={colorKey}\n role=\"option\"\n aria-selected={this.selectedColor?.toUpperCase() === colorKey.toUpperCase() ? \"true\" : \"false\"}\n tabIndex={-1}\n onClick={() => (this.selectedColor = colorKey)}\n disabled={this.disableTransparent && colorKey === \"#FFFFFF00\"}\n >\n <div\n class=\"color-swatch\"\n role=\"img\"\n aria-roledescription={LOCALES[this.lng][\"Color swatch\"]}\n aria-label={ColorPickerPalette[colorKey][this.lng]}\n title={ColorPickerPalette[colorKey][this.lng]}\n style={{backgroundColor: colorKey}}\n ></div>\n </button>\n ))}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as s,transformTag as o}from"@stencil/core/internal/client";import{e as a,I as r,i as n,g as l,l as c}from"./index2.js";import{r as h,e as d,b as p}from"./utils.js";import{d as m}from"./index6.js";import{d as u}from"./index3.js";import{d as b}from"./index7.js";import{d as v}from"./index8.js";import{d as f}from"./index10.js";import{d as g}from"./index11.js";const x=e(class extends t{watchItems(){this.itemsList="string"==typeof this.items?JSON.parse(this.items):this.items,this.selectedCounter=this.itemsList.filter((e=>e.checked)).length,this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.comboboxChange=i(this,"comboboxChange",7),this.inputid="combo-"+h(),this.disabled=!1,this.hassearch=!1,this.noresultslabel="Nessun risultato",this.isopen=!1,this.isfixed=!1,this.hascheckall=!1,this.checkalltext="Seleziona tutti",this.uncheckalltext="Deseleziona tutti",this.maxcheckableitems=0,this.size=a.BIG,this.renderItemsList=[],this.focusedItemId="",this.itemsList=[],this.inputType=r.TEXT,this.toggleComboBox=this.toggleComboBox.bind(this),this.closeFilterItems=this.closeFilterItems.bind(this)}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((e=>e.checked)).length}getControlToListSize(){switch(this.size){case a.X_SMALL:return n.SMALL;case a.SMALL:return n.MEDIUM;default:return n.LARGE}}getOptionId(e){return`${this.inputid}-option-${d(e.id?""+e.id:""+e.name)}`}getCheckAllOptionId(){return this.inputid+"-check-all"}allOptionsSelected(){return this.selectedCounter===this.itemsList.length}hasReachedMaxSelections(){return!!(this.maxcheckableitems&&this.selectedCounter>=this.maxcheckableitems)}handleHeaderKeyDown(e){if(e.code!==l.ENTER||this.focusedItemId||this.toggleComboBox(),this.isopen&&!this.hassearch)switch(e.code){case l.SPACE:case l.ENTER:this.focusedItemId&&(e.preventDefault(),this.checkOption(this.focusedItemId));break;case l.ESC:this.focusedItemId&&(this.focusedItemId="");break;case l.ARROW_DOWN:case l.ARROW_UP:this.handleArrowsNavigation(e)}}handleInputKeyDown(e){switch(e.code){case l.ENTER:case l.SPACE:if(this.focusedItemId){e.preventDefault(),this.checkOption(this.focusedItemId);break}break;case l.ARROW_DOWN:case l.ARROW_UP:this.handleArrowsNavigation(e);break;case l.ESC:if(this.focusedItemId){this.focusedItemId="";break}this.closeFilterItems();break;case l.TAB:this.focusedItemId=""}}checkOption(e){e===this.getCheckAllOptionId()?(this.itemsList=this.itemsList.map((e=>Object.assign(Object.assign({},e),{checked:!this.allOptionsSelected()}))),this.focusedItemId=this.getCheckAllOptionId()):this.itemsList=this.itemsList.map((t=>(e===this.getOptionId(t)&&(t.checked=!t.checked),t))),this.updateRenderItemsList(),this.emitComboboxChange()}handleArrowsNavigation(e){if(![l.ARROW_DOWN,l.ARROW_UP].includes(e.code)||!this.isopen)return;e.preventDefault(),e.stopPropagation();const t=this.focusedItemId?this.element.shadowRoot.querySelector("#"+this.focusedItemId):null,i=Array.from(this.element.shadowRoot.querySelectorAll('[role="option"]'));if(!i.length)return;const s=t?i.indexOf(t):null,o=i.length-1;let a=null;e.code===l.ARROW_DOWN?a=null===s?i[0]:i[s+1]||i[o]:e.code===l.ARROW_UP&&(a=null===s?i[o]:i[s-1]||i[0]),this.focusedItemId=a.id,a.scrollIntoView({block:"nearest",container:"nearest"})}updateRenderItemsList(){this.searchValue?this.filterItems(this.searchValue):this.resetRenderItemsList()}resetRenderItemsList(){const e=[];this.itemsList.forEach((t=>{e.push(Object.assign({},t))})),this.renderItemsList=e}filterItems(e){if(!e)return this.closeFilterItems();this.resetRenderItemsList(),this.renderItemsList=this.renderItemsList.filter((t=>{const i=t.name.toUpperCase().indexOf(e.toUpperCase()),s=i+e.length,o=t.name.substring(0,i)+"<strong>"+t.name.substring(i,s)+"</strong>"+t.name.substring(s,t.name.length);return t.name=o,i>=0}))}closeFilterItems(){this.searchValue="",this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}getHeaderAriaLabel(){if(this.label&&!(this.selectedCounter<=0))return`${this.label}: ${this.selectedCounter} ${1===this.selectedCounter?"elemento selezionato":"elementi selezionati"}`}getComboboxA11yAttributes(e){const t="combobox",i=this.isopen?"true":"false",s=this.isopen?this.focusedItemId:"",o=this.inputid+"_list";return e?{role:t,"aria-label":this.htmlAriaLabel,"html-aria-expanded":i,"html-aria-activedescendant":s,"html-aria-controls":o}:{role:t,"aria-expanded":i,"aria-activedescendant":s,"aria-controls":o}}renderHeader(){const e=this.hassearch?{}:this.getComboboxA11yAttributes(!1);return s("div",Object.assign({class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:e=>this.handleHeaderKeyDown(e),role:"button",tabindex:0,"aria-controls":"open-combo-data","aria-expanded":this.isopen?"true":"false","aria-label":this.getHeaderAriaLabel()},e),s("span",{class:"body-3"},this.label,s("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),s("z-icon",{name:"caret-down",class:this.size}))}renderContent(){return s("div",{id:"open-combo-data",class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),s("div",{role:"listbox","aria-label":this.label,"aria-multiselectable":"true",id:this.inputid+"_list","aria-owns":`${this.hascheckall?this.getCheckAllOptionId()+" ":""}${this.itemsList.map((e=>this.getOptionId(e))).join(" ")}`},this.renderItems()))}renderItems(){return s("div",{class:this.searchValue&&"search",tabIndex:-1,role:"presentation"},this.renderList(this.renderItemsList))}renderItem(e,t,i){const o=this.getOptionId(e),a=!e.checked&&this.hasReachedMaxSelections();return s("z-list-element",{htmlTabindex:-1,dividerType:t!==i-1?c.ELEMENT:c.NONE,size:this.getControlToListSize(),role:"presentation",disabled:!!a},s("span",{class:"option-wrap",role:"presentation",onClick:()=>{this.focusedItemId="",this.checkOption(o)}},s("z-icon",{name:e.checked?"checkbox-checked":"checkbox",class:this.focusedItemId===o?"focused":""}),s("span",{id:o,role:a?"presentation":"option","aria-selected":e.checked?"true":"false","aria-label":a?void 0:p(e.name)},s("span",{"aria-hidden":"true",innerHTML:e.name}))))}renderList(e){if(e)return!e.length&&this.searchValue?this.renderNoSearchResults():this.hasgroupitems?this.renderGroups(e):s("ul",{role:"presentation"},this.renderCheckAll(),e.map(((t,i)=>this.renderItem(t,i,e.length))))}renderGroups(e){const t=e.reduce(((t,i,s)=>{var o;const a=i.category||"Altra categoria",r=this.renderItem(i,s,e.length);return t[a]=null!==(o=t[a])&&void 0!==o?o:[],t[a].push(r),t}),{}),i=Object.entries(t).map((([e,t],i)=>s("z-list-group",{size:this.getControlToListSize(),"divider-type":c.ELEMENT,"aria-labelledby":`${this.inputid}_list_group_${i}`},s("span",{class:"body-3-sb z-list-group-title",slot:"header-title",id:`${this.inputid}_list_group_${i}`,"aria-hidden":"true"},e),t.map((e=>e)))));return s("ul",{role:"presentation"},this.renderCheckAll(),i)}renderNoSearchResults(){return s("div",{class:"no-results"},s("span",null,this.noresultslabel))}renderSearchInput(){return s("z-input",Object.assign({htmlid:this.inputid+"_search",label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:!1,size:this.size,"html-aria-autocomplete":"list"},this.getComboboxA11yAttributes(!0),{onKeyDown:e=>this.handleInputKeyDown(e),onInputChange:e=>{this.searchValue=e.detail.value,this.focusedItemId=""}}))}renderCheckAll(){if(!this.hascheckall||this.searchValue)return;const e=this.getCheckAllOptionId(),t=this.allOptionsSelected(),i=this.hasReachedMaxSelections()||this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length;return s("z-list-element",{class:"check-all-wrapper",role:"presentation",htmlTabindex:-1,dividerType:c.ELEMENT,dividerColor:"gray800",size:this.getControlToListSize(),disabled:!!i},s("span",{class:"option-wrap",role:"presentation",onClick:()=>this.checkOption(e)},s("z-icon",{name:t?"checkbox-checked":"checkbox",class:this.focusedItemId===e?"focused":""}),s("span",{id:e,role:i?"presentation":"option","aria-selected":t?"true":"false"},t?this.uncheckalltext:this.checkalltext)))}render(){return s("div",{key:"85e406623f826020f0d8236c33c2f79785f23d10","data-action":"combo-"+this.inputid,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}get element(){return this}static get watchers(){return{items:[{watchItems:0}],searchValue:[{watchSearchValue:0}]}}static get style(){return'.z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}:host{display:block;min-width:290px;color:var(--color-form-default-text);fill:var(--color-form-default-icon);font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-form-surface04);margin:0;background-color:var(--color-form-background);border-radius:var(--border-radius-small);cursor:pointer}:host([size="small"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-form-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>span.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-form-active-primary);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-form-disabled03);fill:var(--color-form-disabled01-icon)}:host>div.disabled .header>span.body-3{color:var(--color-form-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-form-disabled01-icon)}:host>div.open>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div>div.open-combo-data{display:none}:host>div.open>div.open-combo-data{position:relative;z-index:12;display:block;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--color-form-surface03);border-top:0;background-color:var(--color-form-background);border-radius:0;box-shadow:var(--shadow-2)}:host .open .open-combo-data z-input .z-label{color:var(--color-form-default-text)}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;padding-left:var(--space-unit);margin-left:calc(var(--space-unit) * -1);}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 calc(var(--space-unit) * 0.5);margin:0}:host .open-combo-data z-list-element{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-form-surface03);--background-active-color-list-element:var(--color-form-surface03)}:host .open-combo-data z-list-element[disabled]{pointer-events:none}:host .open-combo-data z-list-element .option-wrap{display:flex;flex-direction:row;align-items:center;cursor:pointer;gap:var(--space-unit)}:host .open-combo-data z-list-element[size="medium"] .option-wrap,:host .open-combo-data z-list-element[size="small"] .option-wrap{--z-icon-width:16px;--z-icon-height:16px;font-size:var(--font-size-2);gap:calc(var(--space-unit) / 2)}:host .open-combo-data z-list-element .option-wrap>z-icon{fill:var(--color-primary01)}:host .open-combo-data z-list-element[disabled] .option-wrap>z-icon{fill:var(--color-disabled01)}:host .open-combo-data z-list-element .option-wrap>z-icon.focused{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary);outline:none}:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus,:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus-visible{outline:none}::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(::-webkit-scrollbar-track){:host{scrollbar-color:var(--color-primary01) transparent}}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-form-active-primary)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:none;margin-top:0}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host .open .open-combo-data .search .no-results{display:flex;align-items:center;column-gap:var(--space-unit)}:host>.open>.open-combo-data .search .close-search{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search .close-search>a{display:inline-block;height:44px;color:var(--color-form-active-primary);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search .close-search>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);margin-left:calc(var(--space-unit) * -1);text-align:left}:host([size="small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size="x-small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}'}},[1,"z-combobox",{inputid:[1],items:[1],label:[1],disabled:[516],hassearch:[4],searchlabel:[1],searchplaceholder:[1],searchtitle:[1],noresultslabel:[1],isopen:[1028],isfixed:[4],hascheckall:[4],checkalltext:[1],uncheckalltext:[1],maxcheckableitems:[2],hasgroupitems:[4],size:[1],htmlAriaLabel:[1,"html-aria-label"],searchValue:[32],selectedCounter:[32],renderItemsList:[32],focusedItemId:[32]},void 0,{items:[{watchItems:0}],searchValue:[{watchSearchValue:0}]}]),z=x,w=function(){"undefined"!=typeof customElements&&["z-combobox","z-divider","z-icon","z-input","z-input-message","z-list-element","z-list-group"].forEach((e=>{switch(e){case"z-combobox":customElements.get(o(e))||customElements.define(o(e),x);break;case"z-divider":customElements.get(o(e))||m();break;case"z-icon":customElements.get(o(e))||u();break;case"z-input":customElements.get(o(e))||b();break;case"z-input-message":customElements.get(o(e))||v();break;case"z-list-element":customElements.get(o(e))||f();break;case"z-list-group":customElements.get(o(e))||g()}}))};export{z as ZCombobox,w as defineCustomElement}
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as s,transformTag as o}from"@stencil/core/internal/client";import{e as a,I as r,i as n,g as l,l as c}from"./index2.js";import{r as h,e as d,b as p}from"./utils.js";import{d as m}from"./index6.js";import{d as u}from"./index3.js";import{d as b}from"./index7.js";import{d as v}from"./index8.js";import{d as f}from"./index10.js";import{d as g}from"./index11.js";const x=()=>`.z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}`;const z=()=>`:host{display:block;min-width:290px;color:var(--color-form-default-text);fill:var(--color-form-default-icon);font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-form-surface04);margin:0;background-color:var(--color-form-background);border-radius:var(--border-radius-small);cursor:pointer}:host([size="small"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-form-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>span.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-form-active-primary);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-form-disabled03);fill:var(--color-form-disabled01-icon)}:host>div.disabled .header>span.body-3{color:var(--color-form-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-form-disabled01-icon)}:host>div.open>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div>div.open-combo-data{display:none}:host>div.open>div.open-combo-data{position:relative;z-index:12;display:block;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--color-form-surface03);border-top:0;background-color:var(--color-form-background);border-radius:0;box-shadow:var(--shadow-2)}:host .open .open-combo-data z-input .z-label{color:var(--color-form-default-text)}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;padding-left:var(--space-unit);margin-left:calc(var(--space-unit) * -1);}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 calc(var(--space-unit) * 0.5);margin:0}:host .open-combo-data z-list-element{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-form-surface03);--background-active-color-list-element:var(--color-form-surface03)}:host .open-combo-data z-list-element[disabled]{pointer-events:none}:host .open-combo-data z-list-element .option-wrap{display:flex;flex-direction:row;align-items:center;cursor:pointer;gap:var(--space-unit)}:host .open-combo-data z-list-element[size="medium"] .option-wrap,:host .open-combo-data z-list-element[size="small"] .option-wrap{--z-icon-width:16px;--z-icon-height:16px;font-size:var(--font-size-2);gap:calc(var(--space-unit) / 2)}:host .open-combo-data z-list-element .option-wrap>z-icon{fill:var(--color-primary01)}:host .open-combo-data z-list-element[disabled] .option-wrap>z-icon{fill:var(--color-disabled01)}:host .open-combo-data z-list-element .option-wrap>z-icon.focused{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary);outline:none}:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus,:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus-visible{outline:none}::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(::-webkit-scrollbar-track){:host{scrollbar-color:var(--color-primary01) transparent}}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-form-active-primary)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:none;margin-top:0}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host .open .open-combo-data .search .no-results{display:flex;align-items:center;column-gap:var(--space-unit)}:host>.open>.open-combo-data .search .close-search{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search .close-search>a{display:inline-block;height:44px;color:var(--color-form-active-primary);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search .close-search>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);margin-left:calc(var(--space-unit) * -1);text-align:left}:host([size="small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size="x-small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}`;const k=e(class e extends t{watchItems(){this.itemsList=typeof this.items==="string"?JSON.parse(this.items):this.items;this.selectedCounter=this.itemsList.filter((e=>e.checked)).length;this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.comboboxChange=i(this,"comboboxChange",7);this.inputid=`combo-${h()}`;this.disabled=false;this.hassearch=false;this.noresultslabel="Nessun risultato";this.isopen=false;this.isfixed=false;this.hascheckall=false;this.checkalltext="Seleziona tutti";this.uncheckalltext="Deseleziona tutti";this.maxcheckableitems=0;this.size=a.BIG;this.renderItemsList=[];this.focusedItemId="";this.itemsList=[];this.inputType=r.TEXT;this.toggleComboBox=this.toggleComboBox.bind(this);this.closeFilterItems=this.closeFilterItems.bind(this)}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((e=>e.checked)).length}getControlToListSize(){switch(this.size){case a.X_SMALL:return n.SMALL;case a.SMALL:return n.MEDIUM;default:return n.LARGE}}getOptionId(e){return`${this.inputid}-option-${e.id?d(`${e.id}`):d(`${e.name}`)}`}getCheckAllOptionId(){return`${this.inputid}-check-all`}allOptionsSelected(){return this.selectedCounter===this.itemsList.length}hasReachedMaxSelections(){return!!(this.maxcheckableitems&&this.selectedCounter>=this.maxcheckableitems)}handleHeaderKeyDown(e){if(e.code===l.ENTER&&!this.focusedItemId){this.toggleComboBox()}if(!this.isopen||this.hassearch){return}switch(e.code){case l.SPACE:case l.ENTER:if(this.focusedItemId){e.preventDefault();this.checkOption(this.focusedItemId)}break;case l.ESC:if(this.focusedItemId){this.focusedItemId=""}break;case l.ARROW_DOWN:case l.ARROW_UP:this.handleArrowsNavigation(e);break}}handleInputKeyDown(e){switch(e.code){case l.ENTER:case l.SPACE:if(this.focusedItemId){e.preventDefault();this.checkOption(this.focusedItemId);break}break;case l.ARROW_DOWN:case l.ARROW_UP:this.handleArrowsNavigation(e);break;case l.ESC:if(this.focusedItemId){this.focusedItemId="";break}this.closeFilterItems();break;case l.TAB:this.focusedItemId="";break}}checkOption(e){if(e===this.getCheckAllOptionId()){this.itemsList=this.itemsList.map((e=>Object.assign(Object.assign({},e),{checked:!this.allOptionsSelected()})));this.focusedItemId=this.getCheckAllOptionId()}else{this.itemsList=this.itemsList.map((t=>{if(e===this.getOptionId(t)){t.checked=!t.checked}return t}))}this.updateRenderItemsList();this.emitComboboxChange()}handleArrowsNavigation(e){if(![l.ARROW_DOWN,l.ARROW_UP].includes(e.code)||!this.isopen){return}e.preventDefault();e.stopPropagation();const t=this.focusedItemId?this.element.shadowRoot.querySelector(`#${this.focusedItemId}`):null;const i=Array.from(this.element.shadowRoot.querySelectorAll('[role="option"]'));if(!i.length){return}const s=t?i.indexOf(t):null;const o=0;const a=i.length-1;let r=null;if(e.code===l.ARROW_DOWN){r=s===null?i[o]:i[s+1]||i[a]}else if(e.code===l.ARROW_UP){r=s===null?i[a]:i[s-1]||i[o]}this.focusedItemId=r.id;r.scrollIntoView({block:"nearest",container:"nearest"})}updateRenderItemsList(){if(this.searchValue){this.filterItems(this.searchValue)}else{this.resetRenderItemsList()}}resetRenderItemsList(){const e=[];this.itemsList.forEach((t=>{e.push(Object.assign({},t))}));this.renderItemsList=e}filterItems(e){if(!e){return this.closeFilterItems()}this.resetRenderItemsList();this.renderItemsList=this.renderItemsList.filter((t=>{const i=t.name.toUpperCase().indexOf(e.toUpperCase());const s=i+e.length;const o=t.name.substring(0,i)+"<strong>"+t.name.substring(i,s)+"</strong>"+t.name.substring(s,t.name.length);t.name=o;return i>=0}))}closeFilterItems(){this.searchValue="";this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}getHeaderAriaLabel(){if(!this.label||this.selectedCounter<=0){return undefined}const e=this.selectedCounter===1?"elemento selezionato":"elementi selezionati";return`${this.label}: ${this.selectedCounter} ${e}`}getComboboxA11yAttributes(e){const t="combobox";const i=this.isopen?"true":"false";const s=this.isopen?this.focusedItemId:"";const o=`${this.inputid}_list`;if(e){return{role:t,"aria-label":this.htmlAriaLabel,"html-aria-expanded":i,"html-aria-activedescendant":s,"html-aria-controls":o}}return{role:t,"aria-expanded":i,"aria-activedescendant":s,"aria-controls":o}}renderHeader(){const e=!this.hassearch?this.getComboboxA11yAttributes(false):{};return s("div",Object.assign({class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:e=>this.handleHeaderKeyDown(e),role:"button",tabindex:0,"aria-controls":"open-combo-data","aria-expanded":this.isopen?"true":"false","aria-label":this.getHeaderAriaLabel()},e),s("span",{class:"body-3"},this.label,s("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),s("z-icon",{name:"caret-down",class:this.size}))}renderContent(){return s("div",{id:"open-combo-data",class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),s("div",{role:"listbox","aria-label":this.label,"aria-multiselectable":"true",id:`${this.inputid}_list`,"aria-owns":`${this.hascheckall?`${this.getCheckAllOptionId()} `:``}${this.itemsList.map((e=>this.getOptionId(e))).join(" ")}`},this.renderItems()))}renderItems(){return s("div",{class:this.searchValue&&"search",tabIndex:-1,role:"presentation"},this.renderList(this.renderItemsList))}renderItem(e,t,i){const o=this.getOptionId(e);const a=!e.checked&&this.hasReachedMaxSelections();return s("z-list-element",{htmlTabindex:-1,dividerType:t!==i-1?c.ELEMENT:c.NONE,size:this.getControlToListSize(),role:"presentation",disabled:!!a},s("span",{class:"option-wrap",role:"presentation",onClick:()=>{this.focusedItemId="";this.checkOption(o)}},s("z-icon",{name:e.checked?"checkbox-checked":"checkbox",class:this.focusedItemId===o?"focused":""}),s("span",{id:o,role:a?"presentation":"option","aria-selected":e.checked?"true":"false","aria-label":a?undefined:p(e.name)},s("span",{"aria-hidden":"true",innerHTML:e.name}))))}renderList(e){if(!e){return}if(!e.length&&this.searchValue){return this.renderNoSearchResults()}if(this.hasgroupitems){return this.renderGroups(e)}return s("ul",{role:"presentation"},this.renderCheckAll(),e.map(((t,i)=>this.renderItem(t,i,e.length))))}renderGroups(e){const t=e.reduce(((t,i,s)=>{var o;const a=i.category||"Altra categoria";const r=this.renderItem(i,s,e.length);t[a]=(o=t[a])!==null&&o!==void 0?o:[];t[a].push(r);return t}),{});const i=Object.entries(t).map((([e,t],i)=>s("z-list-group",{size:this.getControlToListSize(),"divider-type":c.ELEMENT,"aria-labelledby":`${this.inputid}_list_group_${i}`},s("span",{class:"body-3-sb z-list-group-title",slot:"header-title",id:`${this.inputid}_list_group_${i}`,"aria-hidden":"true"},e),t.map((e=>e)))));return s("ul",{role:"presentation"},this.renderCheckAll(),i)}renderNoSearchResults(){return s("div",{class:"no-results"},s("span",null,this.noresultslabel))}renderSearchInput(){return s("z-input",Object.assign({htmlid:`${this.inputid}_search`,label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:false,size:this.size,"html-aria-autocomplete":"list"},this.getComboboxA11yAttributes(true),{onKeyDown:e=>this.handleInputKeyDown(e),onInputChange:e=>{this.searchValue=e.detail.value;this.focusedItemId=""}}))}renderCheckAll(){if(!this.hascheckall||this.searchValue){return}const e=this.getCheckAllOptionId();const t=this.allOptionsSelected();const i=this.hasReachedMaxSelections()||this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length;return s("z-list-element",{class:"check-all-wrapper",role:"presentation",htmlTabindex:-1,dividerType:c.ELEMENT,dividerColor:"gray800",size:this.getControlToListSize(),disabled:!!i},s("span",{class:"option-wrap",role:"presentation",onClick:()=>this.checkOption(e)},s("z-icon",{name:t?"checkbox-checked":"checkbox",class:this.focusedItemId===e?"focused":""}),s("span",{id:e,role:i?"presentation":"option","aria-selected":t?"true":"false"},t?this.uncheckalltext:this.checkalltext)))}render(){return s("div",{key:"6ada0f3dc9aebeb5c97843c18935199f6c981e28","data-action":`combo-${this.inputid}`,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}get element(){return this}static get watchers(){return{items:[{watchItems:0}],searchValue:[{watchSearchValue:0}]}}static get style(){return x()+z()}},[1,"z-combobox",{inputid:[1],items:[1],label:[1],disabled:[516],hassearch:[4],searchlabel:[1],searchplaceholder:[1],searchtitle:[1],noresultslabel:[1],isopen:[1028],isfixed:[4],hascheckall:[4],checkalltext:[1],uncheckalltext:[1],maxcheckableitems:[2],hasgroupitems:[4],size:[1],htmlAriaLabel:[1,"html-aria-label"],searchValue:[32],selectedCounter:[32],renderItemsList:[32],focusedItemId:[32]},undefined,{items:[{watchItems:0}],searchValue:[{watchSearchValue:0}]}]);function w(){if(typeof customElements==="undefined"){return}const e=["z-combobox","z-divider","z-icon","z-input","z-input-message","z-list-element","z-list-group"];e.forEach((e=>{switch(e){case"z-combobox":if(!customElements.get(o(e))){customElements.define(o(e),k)}break;case"z-divider":if(!customElements.get(o(e))){m()}break;case"z-icon":if(!customElements.get(o(e))){u()}break;case"z-input":if(!customElements.get(o(e))){b()}break;case"z-input-message":if(!customElements.get(o(e))){v()}break;case"z-list-element":if(!customElements.get(o(e))){f()}break;case"z-list-group":if(!customElements.get(o(e))){g()}break}}))}const y=k;const $=w;export{y as ZCombobox,$ as defineCustomElement};
2
+ //# sourceMappingURL=z-combobox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZCombobox","__stencil_proxyCustomElement","HTMLElement","watchItems","this","itemsList","items","JSON","parse","selectedCounter","filter","item","checked","length","updateRenderItemsList","watchSearchValue","filterItems","searchValue","emitComboboxChange","comboboxChange","emit","id","inputid","constructor","registerHost","randomId","disabled","hassearch","noresultslabel","isopen","isfixed","hascheckall","checkalltext","uncheckalltext","maxcheckableitems","size","ControlSize","BIG","renderItemsList","focusedItemId","inputType","InputType","TEXT","toggleComboBox","bind","closeFilterItems","componentWillLoad","componentWillRender","getControlToListSize","X_SMALL","ListSize","SMALL","MEDIUM","LARGE","getOptionId","encodeString","name","getCheckAllOptionId","allOptionsSelected","hasReachedMaxSelections","handleHeaderKeyDown","e","code","KeyboardCode","ENTER","SPACE","preventDefault","checkOption","ESC","ARROW_DOWN","ARROW_UP","handleArrowsNavigation","handleInputKeyDown","TAB","optionId","map","Object","assign","i","includes","stopPropagation","currElem","element","shadowRoot","querySelector","options","Array","from","querySelectorAll","currElemIndex","indexOf","firstElemIndex","lastElemIndex","nextElem","scrollIntoView","block","container","resetRenderItemsList","forEach","push","value","start","toUpperCase","end","newName","substring","getHeaderAriaLabel","label","undefined","suffix","getComboboxA11yAttributes","isZInput","role","ariaExpanded","ariaActivedescendant","ariaControls","htmlAriaLabel","renderHeader","comboboxA11yAttributes","h","class","onClick","onKeyDown","tabindex","renderContent","renderSearchInput","join","renderItems","tabIndex","renderList","renderItem","index","isDisabled","htmlTabindex","dividerType","ListDividerType","ELEMENT","NONE","getPlainText","innerHTML","renderNoSearchResults","hasgroupitems","renderGroups","renderCheckAll","newData","reduce","group","category","zListItem","_a","listGroups","entries","key","slot","htmlid","searchlabel","placeholder","searchplaceholder","htmltitle","searchtitle","type","message","onInputChange","detail","allChecked","dividerColor","render","open","fixed"],"sources":["src/components/css-components/z-label/styles.css?tag=z-combobox&encapsulation=shadow","src/components/z-combobox/styles.css?tag=z-combobox&encapsulation=shadow","src/components/z-combobox/index.tsx"],"sourcesContent":[".z-label {\n display: block;\n padding-bottom: var(--space-unit);\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-1);\n font-weight: var(--font-sb);\n text-align: left;\n text-transform: uppercase;\n}\n",":host {\n display: block;\n min-width: 290px;\n color: var(--color-form-default-text);\n fill: var(--color-form-default-icon);\n font-family: var(--font-family-sans);\n}\n\n:host > div.fixed {\n position: relative;\n}\n\n:host > div > .header {\n position: relative;\n z-index: 10;\n display: flex;\n min-height: 42px;\n align-items: center;\n justify-content: space-between;\n padding: 0 calc(var(--space-unit) * 1.5);\n border: var(--border-size-small) solid var(--color-form-surface04);\n margin: 0;\n background-color: var(--color-form-background);\n border-radius: var(--border-radius-small);\n cursor: pointer;\n}\n\n:host([size=\"small\"]) > div > .header {\n min-height: 34px;\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) > div > .header {\n min-height: 30px;\n font-size: var(--font-size-2);\n}\n\n:host > div > .header:hover {\n outline: var(--border-size-medium) solid var(--color-form-surface04);\n outline-offset: -2px;\n}\n\n:host > div > div.header:focus:focus-visible {\n z-index: 16;\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host > div > .header > span.body-3 > span {\n font-weight: var(--font-sb);\n}\n\n:host > div > .header > z-icon {\n fill: var(--color-form-default-icon);\n transform: rotate(360deg);\n transition: all 200ms linear;\n}\n\n:host > div > .header > z-icon.small,\n:host > div > .header > z-icon.x-small {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n:host > div.open > .header {\n border: var(--border-size-small) solid var(--color-form-active-primary);\n border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;\n}\n\n:host > div.disabled {\n pointer-events: none;\n}\n\n:host > div.disabled .header {\n border-color: var(--color-form-disabled03);\n fill: var(--color-form-disabled01-icon);\n}\n\n:host > div.disabled .header > span.body-3 {\n color: var(--color-form-disabled03);\n}\n\n:host > div.disabled .header > z-icon:last-child {\n fill: var(--color-form-disabled01-icon);\n}\n\n:host > div.open > .header > z-icon {\n fill: var(--color-form-default-icon);\n transform: rotate(180deg);\n transition: all 200ms linear;\n}\n\n:host > div > div.open-combo-data {\n display: none;\n}\n\n:host > div.open > div.open-combo-data {\n position: relative;\n z-index: 12;\n display: block;\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n border: var(--border-size-small) solid var(--color-form-surface03);\n border-top: 0;\n background-color: var(--color-form-background);\n border-radius: 0;\n box-shadow: var(--shadow-2);\n}\n\n:host .open .open-combo-data z-input .z-label {\n color: var(--color-form-default-text);\n}\n\n:host > div.open > div.open-combo-data > div > div {\n overflow: auto;\n max-height: 235px;\n padding: 0;\n padding-left: var(--space-unit); /* padding left and negative margin in order to enable focus */\n margin-left: calc(var(--space-unit) * -1); /* padding left and negative margin in order to enable focus */\n}\n\n:host > div.open > div.open-combo-data > z-input {\n width: 100%;\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > div.open > div.open-combo-data > div > div > ul {\n max-height: 235px;\n padding: 0 calc(var(--space-unit) * 0.5); /* needed for checkbox focus shadow */\n margin: 0;\n}\n\n:host .open-combo-data z-list-element {\n --background-color-list-element: var(--color-form-background);\n --background-hover-color-list-element: var(--color-form-surface03);\n --background-active-color-list-element: var(--color-form-surface03);\n}\n\n:host .open-combo-data z-list-element[disabled] {\n pointer-events: none;\n}\n\n:host .open-combo-data z-list-element .option-wrap {\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n gap: var(--space-unit);\n}\n\n:host .open-combo-data z-list-element[size=\"medium\"] .option-wrap,\n:host .open-combo-data z-list-element[size=\"small\"] .option-wrap {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n\n font-size: var(--font-size-2);\n gap: calc(var(--space-unit) / 2);\n}\n\n:host .open-combo-data z-list-element .option-wrap > z-icon {\n fill: var(--color-primary01);\n}\n\n:host .open-combo-data z-list-element[disabled] .option-wrap > z-icon {\n fill: var(--color-disabled01);\n}\n\n:host .open-combo-data z-list-element .option-wrap > z-icon.focused {\n border-radius: var(--border-radius-small);\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host .open-combo-data z-list-element .option-wrap > [role=\"option\"]:focus,\n:host .open-combo-data z-list-element .option-wrap > [role=\"option\"]:focus-visible {\n outline: none;\n}\n\n::-webkit-scrollbar {\n width: 6px;\n background: linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px);\n}\n\n::-webkit-scrollbar-thumb {\n background-color: var(--color-primary01);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-hover-primary);\n}\n\n/* Firefox scrollbar */\n@supports not selector(::-webkit-scrollbar-track) {\n :host {\n scrollbar-color: var(--color-primary01) transparent;\n }\n}\n\n:host > div.open > z-input {\n position: relative;\n z-index: 1;\n width: 238px;\n margin: 0 calc(var(--space-unit) * 2);\n color: var(--color-form-active-primary);\n}\n\n:host > div.open > div.open-combo-data > div > div.search {\n overflow: hidden;\n max-height: none;\n margin-top: 0;\n}\n\n:host > div.open > div.open-combo-data > div > div.search > ul {\n overflow: auto;\n max-height: 180px;\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n}\n\n:host .open .open-combo-data .search .no-results {\n display: flex;\n align-items: center;\n column-gap: var(--space-unit);\n}\n\n:host > .open > .open-combo-data .search .close-search {\n display: flex;\n justify-content: center;\n}\n\n:host > div.open > div.open-combo-data > div > div.search .close-search > a {\n display: inline-block;\n height: 44px;\n color: var(--color-form-active-primary);\n cursor: pointer;\n font-size: 14px;\n font-weight: var(--font-sb);\n line-height: 44px;\n text-align: center;\n text-transform: uppercase;\n}\n\n:host > div.open > div.open-combo-data > div > div.search .close-search > a:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host > div.open > div.open-combo-data > div > div.check-all-wrapper {\n /* padding left and negative margin in order to enable focus */\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 1.5);\n border-bottom: var(--border-size-small) solid var(--gray800);\n margin-bottom: var(--space-unit);\n margin-left: calc(var(--space-unit) * -1);\n text-align: left;\n}\n\n:host([size=\"small\"]) > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5);\n}\n\n:host([size=\"x-small\"]) > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: var(--space-unit) calc(var(--space-unit) * 0.5);\n}\n","import {Component, ComponentInterface, Element, Event, EventEmitter, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ComboItem, ControlSize, InputType, KeyboardCode, ListDividerType, ListSize} from \"../../beans\";\nimport {encodeString, getPlainText, randomId} from \"../../utils/utils\";\nimport {ZInput} from \"../z-input\";\n\n@Component({\n tag: \"z-combobox\",\n styleUrls: [\"../css-components/z-label/styles.css\", \"styles.css\"],\n shadow: true,\n})\nexport class ZCombobox implements ComponentInterface {\n @Element() element: HTMLZComboboxElement;\n\n /** input unique id */\n @Prop()\n inputid = `combo-${randomId()}`;\n\n /** list items array */\n @Prop()\n items: ComboItem[] | string;\n\n /** label text */\n @Prop()\n label: string;\n\n /** the combobox is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** show search input flag (optional) */\n @Prop()\n hassearch?: boolean = false;\n\n /** search input label text (optional) */\n @Prop()\n searchlabel?: string;\n\n /** search input placeholder text (optional) */\n @Prop()\n searchplaceholder?: string;\n\n /** search input title text (optional) */\n @Prop()\n searchtitle?: string;\n\n /** no result text message */\n @Prop()\n noresultslabel?: string = \"Nessun risultato\";\n\n /** toggle combo list opening flag */\n @Prop({mutable: true})\n isopen = false;\n\n /** fixed style flag */\n @Prop()\n isfixed = false;\n\n /** show \"check all\" checkbox (optional) */\n @Prop()\n hascheckall?: boolean = false;\n\n /** check all label (optional) */\n @Prop()\n checkalltext?: string = \"Seleziona tutti\";\n\n /** uncheck all label (optional) */\n @Prop()\n uncheckalltext?: string = \"Deseleziona tutti\";\n\n /** max number of checkable items (0 = unlimited) */\n @Prop()\n maxcheckableitems = 0;\n\n /** group items by category */\n @Prop()\n hasgroupitems?: boolean;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop()\n size?: ControlSize = ControlSize.BIG;\n\n /** the combobox aria-label */\n @Prop()\n htmlAriaLabel?: string;\n\n @State()\n searchValue: string;\n\n @State()\n selectedCounter: number;\n\n @State()\n renderItemsList: ComboItem[] = []; // used for render only\n\n @State()\n focusedItemId = \"\";\n\n private itemsList: ComboItem[] = [];\n\n private inputType: InputType = InputType.TEXT;\n\n @Watch(\"items\")\n watchItems(): void {\n this.itemsList = typeof this.items === \"string\" ? JSON.parse(this.items) : this.items;\n this.selectedCounter = this.itemsList.filter((item) => item.checked).length;\n this.updateRenderItemsList();\n }\n\n @Watch(\"searchValue\")\n watchSearchValue(): void {\n this.filterItems(this.searchValue);\n }\n\n /** Emitted when value is checked/unchecked. Returns id, items. */\n @Event()\n comboboxChange: EventEmitter;\n\n private emitComboboxChange(): void {\n this.comboboxChange.emit({id: this.inputid, items: this.itemsList});\n }\n\n constructor() {\n this.toggleComboBox = this.toggleComboBox.bind(this);\n this.closeFilterItems = this.closeFilterItems.bind(this);\n }\n\n componentWillLoad(): void {\n this.watchItems();\n }\n\n componentWillRender(): void {\n this.selectedCounter = this.itemsList.filter((item) => item.checked).length;\n }\n\n private getControlToListSize(): ListSize {\n switch (this.size) {\n case ControlSize.X_SMALL:\n return ListSize.SMALL;\n case ControlSize.SMALL:\n return ListSize.MEDIUM;\n default:\n return ListSize.LARGE;\n }\n }\n\n private getOptionId(item: ComboItem): string {\n return `${this.inputid}-option-${item.id ? encodeString(`${item.id}`) : encodeString(`${item.name}`)}`;\n }\n\n private getCheckAllOptionId(): string {\n return `${this.inputid}-check-all`;\n }\n\n private allOptionsSelected(): boolean {\n return this.selectedCounter === this.itemsList.length;\n }\n\n private hasReachedMaxSelections(): boolean {\n return !!(this.maxcheckableitems && this.selectedCounter >= this.maxcheckableitems);\n }\n\n private handleHeaderKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ENTER && !this.focusedItemId) {\n this.toggleComboBox();\n }\n\n if (!this.isopen || this.hassearch) {\n return;\n }\n\n switch (e.code as KeyboardCode) {\n case KeyboardCode.SPACE:\n case KeyboardCode.ENTER:\n if (this.focusedItemId) {\n e.preventDefault();\n this.checkOption(this.focusedItemId);\n }\n break;\n case KeyboardCode.ESC:\n if (this.focusedItemId) {\n this.focusedItemId = \"\";\n }\n break;\n case KeyboardCode.ARROW_DOWN:\n case KeyboardCode.ARROW_UP:\n this.handleArrowsNavigation(e);\n break;\n }\n }\n\n private handleInputKeyDown(e: KeyboardEvent): void {\n switch (e.code as KeyboardCode) {\n case KeyboardCode.ENTER:\n case KeyboardCode.SPACE:\n if (this.focusedItemId) {\n e.preventDefault();\n this.checkOption(this.focusedItemId);\n break;\n }\n break;\n case KeyboardCode.ARROW_DOWN:\n case KeyboardCode.ARROW_UP:\n this.handleArrowsNavigation(e);\n break;\n case KeyboardCode.ESC:\n if (this.focusedItemId) {\n this.focusedItemId = \"\";\n break;\n }\n this.closeFilterItems();\n break;\n case KeyboardCode.TAB:\n this.focusedItemId = \"\";\n break;\n }\n }\n\n private checkOption(optionId: string): void {\n if (optionId === this.getCheckAllOptionId()) {\n this.itemsList = this.itemsList.map((item: ComboItem) => ({\n ...item,\n checked: !this.allOptionsSelected(),\n }));\n\n this.focusedItemId = this.getCheckAllOptionId();\n } else {\n this.itemsList = this.itemsList.map((i: ComboItem) => {\n if (optionId === this.getOptionId(i)) {\n i.checked = !i.checked;\n }\n\n return i;\n });\n }\n\n this.updateRenderItemsList();\n this.emitComboboxChange();\n }\n\n private handleArrowsNavigation(e: KeyboardEvent): void {\n if (![KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP].includes(e.code as KeyboardCode) || !this.isopen) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n\n const currElem = this.focusedItemId ? this.element.shadowRoot.querySelector(`#${this.focusedItemId}`) : null;\n const options = Array.from(this.element.shadowRoot.querySelectorAll('[role=\"option\"]'));\n\n if (!options.length) {\n return;\n }\n\n const currElemIndex = currElem ? options.indexOf(currElem) : null;\n const firstElemIndex = 0;\n const lastElemIndex = options.length - 1;\n\n let nextElem = null;\n if (e.code === KeyboardCode.ARROW_DOWN) {\n nextElem =\n currElemIndex === null ? options[firstElemIndex] : options[currElemIndex + 1] || options[lastElemIndex];\n } else if (e.code === KeyboardCode.ARROW_UP) {\n nextElem =\n currElemIndex === null ? options[lastElemIndex] : options[currElemIndex - 1] || options[firstElemIndex];\n }\n\n this.focusedItemId = nextElem.id;\n nextElem.scrollIntoView({block: \"nearest\", container: \"nearest\"});\n }\n\n private updateRenderItemsList(): void {\n if (this.searchValue) {\n this.filterItems(this.searchValue);\n } else {\n this.resetRenderItemsList();\n }\n }\n\n private resetRenderItemsList(): void {\n const renderItemsList = [];\n this.itemsList.forEach((item: ComboItem) => {\n renderItemsList.push({...item});\n });\n this.renderItemsList = renderItemsList;\n }\n\n private filterItems(value: string): void {\n if (!value) {\n return this.closeFilterItems();\n }\n\n this.resetRenderItemsList();\n this.renderItemsList = this.renderItemsList.filter((item) => {\n const start = item.name.toUpperCase().indexOf(value.toUpperCase());\n const end = start + value.length;\n const newName =\n item.name.substring(0, start) +\n \"<strong>\" +\n item.name.substring(start, end) +\n \"</strong>\" +\n item.name.substring(end, item.name.length);\n\n item.name = newName;\n\n return start >= 0;\n });\n }\n\n private closeFilterItems(): void {\n this.searchValue = \"\";\n this.resetRenderItemsList();\n }\n\n private toggleComboBox(): void {\n this.isopen = !this.isopen;\n }\n\n private getHeaderAriaLabel(): string | undefined {\n if (!this.label || this.selectedCounter <= 0) {\n return undefined;\n }\n\n const suffix = this.selectedCounter === 1 ? \"elemento selezionato\" : \"elementi selezionati\";\n\n return `${this.label}: ${this.selectedCounter} ${suffix}`;\n }\n\n private getComboboxA11yAttributes(isZInput: boolean): Record<string, string> {\n const role = \"combobox\";\n const ariaExpanded = this.isopen ? \"true\" : \"false\";\n const ariaActivedescendant = this.isopen ? this.focusedItemId : \"\";\n const ariaControls = `${this.inputid}_list`;\n\n if (isZInput) {\n return {\n \"role\": role,\n \"aria-label\": this.htmlAriaLabel,\n \"html-aria-expanded\": ariaExpanded,\n \"html-aria-activedescendant\": ariaActivedescendant,\n \"html-aria-controls\": ariaControls,\n };\n }\n\n return {\n \"role\": role,\n \"aria-expanded\": ariaExpanded,\n \"aria-activedescendant\": ariaActivedescendant,\n \"aria-controls\": ariaControls,\n };\n }\n\n private renderHeader(): HTMLDivElement {\n const comboboxA11yAttributes = !this.hassearch ? this.getComboboxA11yAttributes(false) : {};\n\n return (\n <div\n class=\"header\"\n onClick={() => this.toggleComboBox()}\n onKeyDown={(e: KeyboardEvent) => this.handleHeaderKeyDown(e)}\n role=\"button\"\n tabindex={0}\n aria-controls=\"open-combo-data\"\n aria-expanded={this.isopen ? \"true\" : \"false\"}\n aria-label={this.getHeaderAriaLabel()}\n {...comboboxA11yAttributes}\n >\n <span class=\"body-3\">\n {this.label}\n <span>{this.selectedCounter > 0 && ` (${this.selectedCounter})`}</span>\n </span>\n <z-icon\n name=\"caret-down\"\n class={this.size}\n />\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n return (\n <div\n id=\"open-combo-data\"\n class=\"open-combo-data\"\n >\n {this.hassearch && this.renderSearchInput()}\n <div\n role=\"listbox\"\n aria-label={this.label}\n aria-multiselectable=\"true\"\n id={`${this.inputid}_list`}\n aria-owns={`${this.hascheckall ? `${this.getCheckAllOptionId()} ` : ``}${this.itemsList.map((item) => this.getOptionId(item)).join(\" \")}`}\n >\n {this.renderItems()}\n </div>\n </div>\n );\n }\n\n private renderItems(): HTMLDivElement {\n return (\n <div\n class={this.searchValue && \"search\"}\n tabIndex={-1}\n role=\"presentation\"\n >\n {this.renderList(this.renderItemsList)}\n </div>\n );\n }\n\n private renderItem(item: ComboItem, index: number, length: number): HTMLZListElement {\n const optionId = this.getOptionId(item);\n const isDisabled = !item.checked && this.hasReachedMaxSelections();\n\n return (\n <z-list-element\n htmlTabindex={-1}\n dividerType={index !== length - 1 ? ListDividerType.ELEMENT : ListDividerType.NONE}\n size={this.getControlToListSize()}\n role=\"presentation\"\n disabled={!!isDisabled}\n >\n <span\n class=\"option-wrap\"\n role=\"presentation\"\n onClick={() => {\n this.focusedItemId = \"\";\n this.checkOption(optionId);\n }}\n >\n <z-icon\n name={item.checked ? \"checkbox-checked\" : \"checkbox\"}\n class={this.focusedItemId === optionId ? \"focused\" : \"\"}\n />\n <span\n id={optionId}\n role={isDisabled ? \"presentation\" : \"option\"}\n aria-selected={item.checked ? \"true\" : \"false\"}\n aria-label={isDisabled ? undefined : getPlainText(item.name)}\n >\n <span\n aria-hidden=\"true\"\n innerHTML={item.name}\n />\n </span>\n </span>\n </z-list-element>\n );\n }\n\n private renderList(items: ComboItem[]): HTMLUListElement {\n if (!items) {\n return;\n }\n if (!items.length && this.searchValue) {\n return this.renderNoSearchResults();\n }\n\n if (this.hasgroupitems) {\n return this.renderGroups(items);\n }\n\n return (\n <ul role=\"presentation\">\n {this.renderCheckAll()}\n {items.map((item, i) => {\n return this.renderItem(item, i, items.length);\n })}\n </ul>\n );\n }\n\n private renderGroups(items: ComboItem[]): HTMLUListElement {\n const newData = items.reduce((group, item, index) => {\n const category = item.category || \"Altra categoria\";\n const zListItem = this.renderItem(item, index, items.length);\n\n group[category] = group[category] ?? [];\n group[category].push(zListItem);\n\n return group;\n }, {});\n\n const listGroups = Object.entries(newData as {[key: string]: HTMLZListElementElement[]}).map(\n ([key, value], index) => {\n return (\n <z-list-group\n size={this.getControlToListSize()}\n divider-type={ListDividerType.ELEMENT}\n aria-labelledby={`${this.inputid}_list_group_${index}`}\n >\n <span\n class=\"body-3-sb z-list-group-title\"\n slot=\"header-title\"\n id={`${this.inputid}_list_group_${index}`}\n aria-hidden=\"true\"\n >\n {key}\n </span>\n {value.map((item) => item)}\n </z-list-group>\n );\n }\n );\n\n return (\n <ul role=\"presentation\">\n {this.renderCheckAll()}\n {listGroups}\n </ul>\n );\n }\n\n private renderNoSearchResults(): HTMLUListElement {\n return (\n <div class=\"no-results\">\n <span>{this.noresultslabel}</span>\n </div>\n );\n }\n\n private renderSearchInput(): ZInput {\n return (\n <z-input\n htmlid={`${this.inputid}_search`}\n label={this.searchlabel}\n placeholder={this.searchplaceholder}\n htmltitle={this.searchtitle}\n type={this.inputType}\n value={this.searchValue}\n message={false}\n size={this.size}\n html-aria-autocomplete=\"list\"\n {...this.getComboboxA11yAttributes(true)}\n onKeyDown={(e: KeyboardEvent) => this.handleInputKeyDown(e)}\n onInputChange={(e: CustomEvent) => {\n this.searchValue = e.detail.value;\n this.focusedItemId = \"\";\n }}\n />\n );\n }\n\n private renderCheckAll(): HTMLDivElement {\n if (!this.hascheckall || this.searchValue) {\n return;\n }\n\n const optionId = this.getCheckAllOptionId();\n const allChecked = this.allOptionsSelected();\n const isDisabled =\n this.hasReachedMaxSelections() || (this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length);\n\n return (\n <z-list-element\n class=\"check-all-wrapper\"\n role=\"presentation\"\n htmlTabindex={-1}\n dividerType={ListDividerType.ELEMENT}\n dividerColor=\"gray800\"\n size={this.getControlToListSize()}\n disabled={!!isDisabled}\n >\n <span\n class=\"option-wrap\"\n role=\"presentation\"\n onClick={() => this.checkOption(optionId)}\n >\n <z-icon\n name={allChecked ? \"checkbox-checked\" : \"checkbox\"}\n class={this.focusedItemId === optionId ? \"focused\" : \"\"}\n />\n <span\n id={optionId}\n role={isDisabled ? \"presentation\" : \"option\"}\n aria-selected={allChecked ? \"true\" : \"false\"}\n >\n {allChecked ? this.uncheckalltext : this.checkalltext}\n </span>\n </span>\n </z-list-element>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div\n data-action={`combo-${this.inputid}`}\n class={{open: this.isopen, fixed: this.isfixed, disabled: this.disabled}}\n id={this.inputid}\n >\n {this.renderHeader()}\n {!this.disabled && this.renderContent()}\n </div>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}