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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1274) hide show
  1. package/CHANGELOG.md +31 -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-wGaSHN1_.js → index-Cn7FFDHr.js} +8 -0
  9. package/dist/cjs/index-Cn7FFDHr.js.map +1 -0
  10. package/dist/cjs/{index-DnscebL4.js → index-DY2I5wAY.js} +51 -7
  11. package/dist/cjs/index-DY2I5wAY.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +9 -2
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +5 -2
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-CxJYkamG.js +1446 -0
  17. package/dist/cjs/reactive-controller-CxJYkamG.js.map +1 -0
  18. package/dist/cjs/{utils-C5_wGVkJ.js → utils-By4U4KkV.js} +4 -1
  19. package/dist/cjs/utils-By4U4KkV.js.map +1 -0
  20. package/dist/cjs/utils-kQZHfpti.js +919 -0
  21. package/dist/cjs/utils-kQZHfpti.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +5 -2
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +5 -2
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +5 -2
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +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 +5 -2
  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 +45 -109
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +5 -2
  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 +5 -2
  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 +6 -3
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +5 -2
  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 +5 -2
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +5 -2
  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 +6 -3
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +6 -3
  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 +6 -3
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +22 -38
  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 +5 -2
  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 +5 -2
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-input-range.cjs.entry.js +145 -0
  77. package/dist/cjs/z-input-range.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-logo.cjs.entry.js +5 -2
  79. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-deprecated.cjs.entry.js +4 -1
  81. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +4 -1
  83. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu-section.cjs.entry.js +6 -3
  85. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-menu.cjs.entry.js +6 -3
  87. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-alert.cjs.entry.js +6 -3
  89. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
  91. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +5 -2
  93. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -3
  95. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-icon.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-info.cjs.entry.js +7 -4
  99. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card-list.cjs.entry.js +5 -2
  101. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -6
  103. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list-item.cjs.entry.js +7 -4
  105. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-myz-list.cjs.entry.js +5 -2
  107. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-navigation-tabs.cjs.entry.js +7 -4
  109. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-notification.cjs.entry.js +5 -2
  111. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-otp.cjs.entry.js +7 -4
  113. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-pagination.cjs.entry.js +5 -2
  115. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-panel-elem.cjs.entry.js +6 -3
  117. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-popover.cjs.entry.js +7 -4
  119. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-range-picker.cjs.entry.js +6 -3
  121. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-result-card.cjs.entry.js +4 -1
  123. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-section-title.cjs.entry.js +5 -2
  125. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-select.cjs.entry.js +11 -8
  127. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-skip-to-content.cjs.entry.js +7 -4
  129. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-slideshow.cjs.entry.js +6 -3
  131. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper-item.cjs.entry.js +5 -2
  133. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-stepper.cjs.entry.js +5 -2
  135. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-table.cjs.entry.js +9 -8
  137. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-tbody.cjs.entry.js +7 -6
  139. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-td.cjs.entry.js +8 -7
  141. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-tfoot.cjs.entry.js +7 -6
  143. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-th.cjs.entry.js +9 -8
  145. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-thead.cjs.entry.js +7 -6
  147. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification-list.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toast-notification.cjs.entry.js +8 -5
  151. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-button.cjs.entry.js +6 -3
  153. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-toggle-switch.cjs.entry.js +9 -6
  155. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-tool.cjs.entry.js +8 -5
  157. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-toolbar.cjs.entry.js +6 -3
  159. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tooltip.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tr.cjs.entry.js +9 -8
  163. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-tree-list.cjs.entry.js +5 -2
  165. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  166. package/dist/cjs/z-visually-hidden.cjs.entry.js +5 -2
  167. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  168. package/dist/collection/beans/index.js +6 -0
  169. package/dist/collection/beans/index.js.map +1 -0
  170. package/dist/collection/collection-manifest.json +1 -0
  171. package/dist/collection/components/book-card/z-book-card/index.js +1 -0
  172. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  173. package/dist/collection/components/book-card/z-book-card-app/index.js +1 -0
  174. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -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 +1 -0
  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 +1 -0
  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 +1 -0
  182. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -0
  184. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  185. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -0
  186. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  187. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -0
  188. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  189. package/dist/collection/components/deprecated/z-section-title/index.js +1 -0
  190. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  191. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +1 -0
  192. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  193. package/dist/collection/components/file-upload/z-file/index.js +1 -0
  194. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  195. package/dist/collection/components/file-upload/z-file-upload/index.js +1 -0
  196. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  197. package/dist/collection/components/index.js +1 -0
  198. package/dist/collection/components/index.js.map +1 -0
  199. package/dist/collection/components/list/z-list/index.js +1 -0
  200. package/dist/collection/components/list/z-list/index.js.map +1 -0
  201. package/dist/collection/components/list/z-list-element/index.js +1 -0
  202. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  203. package/dist/collection/components/list/z-list-group/index.js +1 -0
  204. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  205. package/dist/collection/components/list/z-tree-list/index.js +1 -0
  206. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  207. package/dist/collection/components/table/cells/z-table-cells.css +1 -0
  208. package/dist/collection/components/table/cells/z-td/index.js +4 -3
  209. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  210. package/dist/collection/components/table/cells/z-th/index.js +4 -3
  211. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  212. package/dist/collection/components/table/cells/z-th/styles.css +2 -2
  213. package/dist/collection/components/table/z-table/index.js +4 -3
  214. package/dist/collection/components/table/z-table/index.js.map +1 -0
  215. package/dist/collection/components/table/z-table/styles.css +6 -0
  216. package/dist/collection/components/table/z-tbody/index.js +4 -3
  217. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  218. package/dist/collection/components/table/z-tfoot/index.js +4 -3
  219. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  220. package/dist/collection/components/table/z-tfoot/styles.css +2 -1
  221. package/dist/collection/components/table/z-thead/index.js +4 -3
  222. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  223. package/dist/collection/components/table/z-thead/styles.css +4 -0
  224. package/dist/collection/components/table/z-tr/index.js +4 -3
  225. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/styles.css +9 -3
  227. package/dist/collection/components/z-accordion/index.js +1 -0
  228. package/dist/collection/components/z-accordion/index.js.map +1 -0
  229. package/dist/collection/components/z-anchor-navigation/index.js +1 -0
  230. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  231. package/dist/collection/components/z-app-header/index.js +1 -0
  232. package/dist/collection/components/z-app-header/index.js.map +1 -0
  233. package/dist/collection/components/z-aria-alert/index.js +1 -0
  234. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  235. package/dist/collection/components/z-avatar/index.js +1 -0
  236. package/dist/collection/components/z-avatar/index.js.map +1 -0
  237. package/dist/collection/components/z-book-cover/index.js +1 -0
  238. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  239. package/dist/collection/components/z-breadcrumb/index.js +1 -0
  240. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  241. package/dist/collection/components/z-button/index.js +1 -0
  242. package/dist/collection/components/z-button/index.js.map +1 -0
  243. package/dist/collection/components/z-button-sort/index.js +1 -0
  244. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  245. package/dist/collection/components/z-card/index.js +1 -0
  246. package/dist/collection/components/z-card/index.js.map +1 -0
  247. package/dist/collection/components/z-carousel/index.js +1 -0
  248. package/dist/collection/components/z-carousel/index.js.map +1 -0
  249. package/dist/collection/components/z-chip/index.js +1 -0
  250. package/dist/collection/components/z-chip/index.js.map +1 -0
  251. package/dist/collection/components/z-color-picker/index.js +1 -0
  252. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  253. package/dist/collection/components/z-combobox/index.js +1 -0
  254. package/dist/collection/components/z-combobox/index.js.map +1 -0
  255. package/dist/collection/components/z-cover-hero/index.js +1 -0
  256. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  257. package/dist/collection/components/z-divider/index.js +1 -0
  258. package/dist/collection/components/z-divider/index.js.map +1 -0
  259. package/dist/collection/components/z-ghost-loading/index.js +1 -0
  260. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  261. package/dist/collection/components/z-icon/index.js +1 -0
  262. package/dist/collection/components/z-icon/index.js.map +1 -0
  263. package/dist/collection/components/z-info-box/index.js +1 -0
  264. package/dist/collection/components/z-info-box/index.js.map +1 -0
  265. package/dist/collection/components/z-info-reveal/index.js +1 -0
  266. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  267. package/dist/collection/components/z-input/index.js +1 -0
  268. package/dist/collection/components/z-input/index.js.map +1 -0
  269. package/dist/collection/components/z-input-message/index.js +1 -0
  270. package/dist/collection/components/z-input-message/index.js.map +1 -0
  271. package/dist/collection/components/z-input-range/index.js +438 -0
  272. package/dist/collection/components/z-input-range/index.js.map +1 -0
  273. package/dist/collection/components/z-input-range/styles.css +262 -0
  274. package/dist/collection/components/z-logo/index.js +2 -1
  275. package/dist/collection/components/z-logo/index.js.map +1 -0
  276. package/dist/collection/components/z-menu/index.js +1 -0
  277. package/dist/collection/components/z-menu/index.js.map +1 -0
  278. package/dist/collection/components/z-menu-section/index.js +2 -1
  279. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  280. package/dist/collection/components/z-modal/index.js +17 -36
  281. package/dist/collection/components/z-modal/index.js.map +1 -0
  282. package/dist/collection/components/z-navigation-tabs/index.js +3 -2
  283. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  284. package/dist/collection/components/z-notification/index.js +2 -1
  285. package/dist/collection/components/z-notification/index.js.map +1 -0
  286. package/dist/collection/components/z-offcanvas/index.js +43 -116
  287. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  288. package/dist/collection/components/z-offcanvas/styles.css +1 -0
  289. package/dist/collection/components/z-pagination/index.js +1 -0
  290. package/dist/collection/components/z-pagination/index.js.map +1 -0
  291. package/dist/collection/components/z-panel-elem/index.js +3 -2
  292. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  293. package/dist/collection/components/z-popover/index.js +2 -1
  294. package/dist/collection/components/z-popover/index.js.map +1 -0
  295. package/dist/collection/components/z-result-card/index.js +1 -0
  296. package/dist/collection/components/z-result-card/index.js.map +1 -0
  297. package/dist/collection/components/z-searchbar/index.js +4 -3
  298. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  299. package/dist/collection/components/z-select/index.js +6 -5
  300. package/dist/collection/components/z-select/index.js.map +1 -0
  301. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  302. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  303. package/dist/collection/components/z-stepper/index.js +2 -1
  304. package/dist/collection/components/z-stepper/index.js.map +1 -0
  305. package/dist/collection/components/z-stepper-item/index.js +2 -1
  306. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  307. package/dist/collection/components/z-tag/index.js +3 -2
  308. package/dist/collection/components/z-tag/index.js.map +1 -0
  309. package/dist/collection/components/z-toast-notification/index.js +4 -3
  310. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  311. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  312. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  313. package/dist/collection/components/z-toggle-button/index.js +3 -2
  314. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  315. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  316. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  317. package/dist/collection/components/z-tool/index.js +3 -2
  318. package/dist/collection/components/z-tool/index.js.map +1 -0
  319. package/dist/collection/components/z-toolbar/index.js +2 -1
  320. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  321. package/dist/collection/components/z-tooltip/index.js +2 -1
  322. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  323. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  324. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  325. package/dist/collection/constants/breakpoints.js +1 -0
  326. package/dist/collection/constants/breakpoints.js.map +1 -0
  327. package/dist/collection/constants/icons.js +1 -0
  328. package/dist/collection/constants/icons.js.map +1 -0
  329. package/dist/collection/constants/iconset.js +1 -0
  330. package/dist/collection/constants/iconset.js.map +1 -0
  331. package/dist/collection/index.js +1 -0
  332. package/dist/collection/index.js.map +1 -0
  333. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +2 -1
  334. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  335. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +2 -1
  336. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  337. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +2 -1
  338. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  339. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +2 -1
  340. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  341. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +2 -1
  342. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  343. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +2 -1
  344. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  345. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +2 -1
  346. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  347. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +2 -1
  348. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  349. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
  350. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  351. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -1
  352. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  353. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +2 -1
  354. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  355. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +2 -1
  356. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  357. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -1
  358. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  359. package/dist/collection/snowflakes/myz/z-alert/index.js +2 -1
  360. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  361. package/dist/collection/snowflakes/myz/z-otp/index.js +3 -2
  362. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  363. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  364. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  365. package/dist/collection/utils/focus-trap-controller.js +100 -0
  366. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  367. package/dist/collection/utils/reactive-controller.js +46 -0
  368. package/dist/collection/utils/reactive-controller.js.map +1 -0
  369. package/dist/collection/utils/storybook-utils.js +1 -0
  370. package/dist/collection/utils/storybook-utils.js.map +1 -0
  371. package/dist/collection/utils/utils.js +60 -1
  372. package/dist/collection/utils/utils.js.map +1 -0
  373. package/dist/components/_commonjsHelpers.js +2 -1
  374. package/dist/components/_commonjsHelpers.js.map +1 -0
  375. package/dist/components/breakpoints.js +2 -1
  376. package/dist/components/breakpoints.js.map +1 -0
  377. package/dist/components/iconset.js +2 -1
  378. package/dist/components/iconset.js.map +1 -0
  379. package/dist/components/index.d.ts +2 -0
  380. package/dist/components/index.js +2 -1
  381. package/dist/components/index.js.map +1 -0
  382. package/dist/components/index10.js +2 -1
  383. package/dist/components/index10.js.map +1 -0
  384. package/dist/components/index11.js +2 -1
  385. package/dist/components/index11.js.map +1 -0
  386. package/dist/components/index12.js +2 -1
  387. package/dist/components/index12.js.map +1 -0
  388. package/dist/components/index13.js +2 -1
  389. package/dist/components/index13.js.map +1 -0
  390. package/dist/components/index14.js +2 -1
  391. package/dist/components/index14.js.map +1 -0
  392. package/dist/components/index15.js +2 -1
  393. package/dist/components/index15.js.map +1 -0
  394. package/dist/components/index16.js +2 -1
  395. package/dist/components/index16.js.map +1 -0
  396. package/dist/components/index17.js +2 -1
  397. package/dist/components/index17.js.map +1 -0
  398. package/dist/components/index18.js +2 -1
  399. package/dist/components/index18.js.map +1 -0
  400. package/dist/components/index19.js +2 -1
  401. package/dist/components/index19.js.map +1 -0
  402. package/dist/components/index2.js +2 -1
  403. package/dist/components/index2.js.map +1 -0
  404. package/dist/components/index20.js +2 -1
  405. package/dist/components/index20.js.map +1 -0
  406. package/dist/components/index21.js +2 -1
  407. package/dist/components/index21.js.map +1 -0
  408. package/dist/components/index22.js +2 -1
  409. package/dist/components/index22.js.map +1 -0
  410. package/dist/components/index23.js +2 -1
  411. package/dist/components/index23.js.map +1 -0
  412. package/dist/components/index24.js +2 -1
  413. package/dist/components/index24.js.map +1 -0
  414. package/dist/components/index25.js +2 -1
  415. package/dist/components/index25.js.map +1 -0
  416. package/dist/components/index26.js +2 -1
  417. package/dist/components/index26.js.map +1 -0
  418. package/dist/components/index27.js +2 -1
  419. package/dist/components/index27.js.map +1 -0
  420. package/dist/components/index3.js +2 -1
  421. package/dist/components/index3.js.map +1 -0
  422. package/dist/components/index4.js +2 -1
  423. package/dist/components/index4.js.map +1 -0
  424. package/dist/components/index5.js +2 -1
  425. package/dist/components/index5.js.map +1 -0
  426. package/dist/components/index6.js +2 -1
  427. package/dist/components/index6.js.map +1 -0
  428. package/dist/components/index7.js +2 -1
  429. package/dist/components/index7.js.map +1 -0
  430. package/dist/components/index8.js +2 -1
  431. package/dist/components/index8.js.map +1 -0
  432. package/dist/components/index9.js +2 -1
  433. package/dist/components/index9.js.map +1 -0
  434. package/dist/components/reactive-controller.js +6 -0
  435. package/dist/components/reactive-controller.js.map +1 -0
  436. package/dist/components/utils.js +7 -1
  437. package/dist/components/utils.js.map +1 -0
  438. package/dist/components/utils2.js +2 -1
  439. package/dist/components/utils2.js.map +1 -0
  440. package/dist/components/z-accordion.js +2 -1
  441. package/dist/components/z-accordion.js.map +1 -0
  442. package/dist/components/z-alert.js +2 -1
  443. package/dist/components/z-alert.js.map +1 -0
  444. package/dist/components/z-anchor-navigation.js +2 -1
  445. package/dist/components/z-anchor-navigation.js.map +1 -0
  446. package/dist/components/z-app-header-deprecated.js +2 -1
  447. package/dist/components/z-app-header-deprecated.js.map +1 -0
  448. package/dist/components/z-app-header.js +2 -1
  449. package/dist/components/z-app-header.js.map +1 -0
  450. package/dist/components/z-aria-alert.js +2 -1
  451. package/dist/components/z-aria-alert.js.map +1 -0
  452. package/dist/components/z-avatar.js +2 -1
  453. package/dist/components/z-avatar.js.map +1 -0
  454. package/dist/components/z-book-card-app.js +2 -1
  455. package/dist/components/z-book-card-app.js.map +1 -0
  456. package/dist/components/z-book-card-deprecated.js +2 -1
  457. package/dist/components/z-book-card-deprecated.js.map +1 -0
  458. package/dist/components/z-book-card.js +2 -1
  459. package/dist/components/z-book-card.js.map +1 -0
  460. package/dist/components/z-book-cover.js +2 -1
  461. package/dist/components/z-book-cover.js.map +1 -0
  462. package/dist/components/z-breadcrumb.js +2 -1
  463. package/dist/components/z-breadcrumb.js.map +1 -0
  464. package/dist/components/z-button-sort.js +2 -1
  465. package/dist/components/z-button-sort.js.map +1 -0
  466. package/dist/components/z-button.js +2 -1
  467. package/dist/components/z-button.js.map +1 -0
  468. package/dist/components/z-card.js +2 -1
  469. package/dist/components/z-card.js.map +1 -0
  470. package/dist/components/z-carousel.js +2 -1
  471. package/dist/components/z-carousel.js.map +1 -0
  472. package/dist/components/z-chip.js +2 -1
  473. package/dist/components/z-chip.js.map +1 -0
  474. package/dist/components/z-color-picker.js +2 -1
  475. package/dist/components/z-color-picker.js.map +1 -0
  476. package/dist/components/z-combobox.js +2 -1
  477. package/dist/components/z-combobox.js.map +1 -0
  478. package/dist/components/z-cover-hero.js +2 -1
  479. package/dist/components/z-cover-hero.js.map +1 -0
  480. package/dist/components/z-date-picker.js +3 -2
  481. package/dist/components/z-date-picker.js.map +1 -0
  482. package/dist/components/z-divider.js +2 -1
  483. package/dist/components/z-divider.js.map +1 -0
  484. package/dist/components/z-dragdrop-area.js +2 -1
  485. package/dist/components/z-dragdrop-area.js.map +1 -0
  486. package/dist/components/z-file-upload.js +2 -1
  487. package/dist/components/z-file-upload.js.map +1 -0
  488. package/dist/components/z-file.js +2 -1
  489. package/dist/components/z-file.js.map +1 -0
  490. package/dist/components/z-ghost-loading.js +2 -1
  491. package/dist/components/z-ghost-loading.js.map +1 -0
  492. package/dist/components/z-icon.js +2 -1
  493. package/dist/components/z-icon.js.map +1 -0
  494. package/dist/components/z-info-box.js +2 -1
  495. package/dist/components/z-info-box.js.map +1 -0
  496. package/dist/components/z-info-reveal.js +2 -1
  497. package/dist/components/z-info-reveal.js.map +1 -0
  498. package/dist/components/z-input-message.js +2 -1
  499. package/dist/components/z-input-message.js.map +1 -0
  500. package/dist/components/z-input-range.d.ts +11 -0
  501. package/dist/components/z-input-range.js +2 -0
  502. package/dist/components/z-input-range.js.map +1 -0
  503. package/dist/components/z-input.js +2 -1
  504. package/dist/components/z-input.js.map +1 -0
  505. package/dist/components/z-list-element.js +2 -1
  506. package/dist/components/z-list-element.js.map +1 -0
  507. package/dist/components/z-list-group.js +2 -1
  508. package/dist/components/z-list-group.js.map +1 -0
  509. package/dist/components/z-list.js +2 -1
  510. package/dist/components/z-list.js.map +1 -0
  511. package/dist/components/z-logo.js +2 -1
  512. package/dist/components/z-logo.js.map +1 -0
  513. package/dist/components/z-menu-deprecated.js +2 -1
  514. package/dist/components/z-menu-deprecated.js.map +1 -0
  515. package/dist/components/z-menu-section-deprecated.js +2 -1
  516. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  517. package/dist/components/z-menu-section.js +2 -1
  518. package/dist/components/z-menu-section.js.map +1 -0
  519. package/dist/components/z-menu.js +2 -1
  520. package/dist/components/z-menu.js.map +1 -0
  521. package/dist/components/z-modal.js +2 -1
  522. package/dist/components/z-modal.js.map +1 -0
  523. package/dist/components/z-myz-card-alert.js +2 -1
  524. package/dist/components/z-myz-card-alert.js.map +1 -0
  525. package/dist/components/z-myz-card-body.js +2 -1
  526. package/dist/components/z-myz-card-body.js.map +1 -0
  527. package/dist/components/z-myz-card-cover.js +2 -1
  528. package/dist/components/z-myz-card-cover.js.map +1 -0
  529. package/dist/components/z-myz-card-dictionary.js +2 -1
  530. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  531. package/dist/components/z-myz-card-footer-sections.js +2 -1
  532. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  533. package/dist/components/z-myz-card-footer.js +2 -1
  534. package/dist/components/z-myz-card-footer.js.map +1 -0
  535. package/dist/components/z-myz-card-header.js +2 -1
  536. package/dist/components/z-myz-card-header.js.map +1 -0
  537. package/dist/components/z-myz-card-icon.js +2 -1
  538. package/dist/components/z-myz-card-icon.js.map +1 -0
  539. package/dist/components/z-myz-card-info.js +2 -1
  540. package/dist/components/z-myz-card-info.js.map +1 -0
  541. package/dist/components/z-myz-card-list.js +2 -1
  542. package/dist/components/z-myz-card-list.js.map +1 -0
  543. package/dist/components/z-myz-card.js +2 -1
  544. package/dist/components/z-myz-card.js.map +1 -0
  545. package/dist/components/z-myz-list-item.js +2 -1
  546. package/dist/components/z-myz-list-item.js.map +1 -0
  547. package/dist/components/z-myz-list.js +2 -1
  548. package/dist/components/z-myz-list.js.map +1 -0
  549. package/dist/components/z-navigation-tabs.js +2 -1
  550. package/dist/components/z-navigation-tabs.js.map +1 -0
  551. package/dist/components/z-notification.js +2 -1
  552. package/dist/components/z-notification.js.map +1 -0
  553. package/dist/components/z-offcanvas.js +2 -1
  554. package/dist/components/z-offcanvas.js.map +1 -0
  555. package/dist/components/z-otp.js +2 -1
  556. package/dist/components/z-otp.js.map +1 -0
  557. package/dist/components/z-pagination.js +2 -1
  558. package/dist/components/z-pagination.js.map +1 -0
  559. package/dist/components/z-panel-elem.js +2 -1
  560. package/dist/components/z-panel-elem.js.map +1 -0
  561. package/dist/components/z-popover.js +2 -1
  562. package/dist/components/z-popover.js.map +1 -0
  563. package/dist/components/z-range-picker.js +2 -1
  564. package/dist/components/z-range-picker.js.map +1 -0
  565. package/dist/components/z-result-card.js +2 -1
  566. package/dist/components/z-result-card.js.map +1 -0
  567. package/dist/components/z-searchbar.js +2 -1
  568. package/dist/components/z-searchbar.js.map +1 -0
  569. package/dist/components/z-section-title.js +2 -1
  570. package/dist/components/z-section-title.js.map +1 -0
  571. package/dist/components/z-select.js +2 -1
  572. package/dist/components/z-select.js.map +1 -0
  573. package/dist/components/z-skip-to-content.js +2 -1
  574. package/dist/components/z-skip-to-content.js.map +1 -0
  575. package/dist/components/z-slideshow.js +2 -1
  576. package/dist/components/z-slideshow.js.map +1 -0
  577. package/dist/components/z-stepper-item.js +2 -1
  578. package/dist/components/z-stepper-item.js.map +1 -0
  579. package/dist/components/z-stepper.js +2 -1
  580. package/dist/components/z-stepper.js.map +1 -0
  581. package/dist/components/z-table.js +2 -1
  582. package/dist/components/z-table.js.map +1 -0
  583. package/dist/components/z-tag.js +2 -1
  584. package/dist/components/z-tag.js.map +1 -0
  585. package/dist/components/z-tbody.js +2 -1
  586. package/dist/components/z-tbody.js.map +1 -0
  587. package/dist/components/z-td.js +2 -1
  588. package/dist/components/z-td.js.map +1 -0
  589. package/dist/components/z-tfoot.js +2 -1
  590. package/dist/components/z-tfoot.js.map +1 -0
  591. package/dist/components/z-th.js +2 -1
  592. package/dist/components/z-th.js.map +1 -0
  593. package/dist/components/z-thead.js +2 -1
  594. package/dist/components/z-thead.js.map +1 -0
  595. package/dist/components/z-toast-notification-list.js +2 -1
  596. package/dist/components/z-toast-notification-list.js.map +1 -0
  597. package/dist/components/z-toast-notification.js +8 -2
  598. package/dist/components/z-toast-notification.js.map +1 -0
  599. package/dist/components/z-toggle-button.js +2 -1
  600. package/dist/components/z-toggle-button.js.map +1 -0
  601. package/dist/components/z-toggle-switch.js +2 -1
  602. package/dist/components/z-toggle-switch.js.map +1 -0
  603. package/dist/components/z-tool.js +2 -1
  604. package/dist/components/z-tool.js.map +1 -0
  605. package/dist/components/z-toolbar.js +2 -1
  606. package/dist/components/z-toolbar.js.map +1 -0
  607. package/dist/components/z-tooltip.js +2 -1
  608. package/dist/components/z-tooltip.js.map +1 -0
  609. package/dist/components/z-tr.js +2 -1
  610. package/dist/components/z-tr.js.map +1 -0
  611. package/dist/components/z-tree-list.js +2 -1
  612. package/dist/components/z-tree-list.js.map +1 -0
  613. package/dist/components/z-visually-hidden.js +2 -1
  614. package/dist/components/z-visually-hidden.js.map +1 -0
  615. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  616. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  617. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  618. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  619. package/dist/esm/iconset-AwzX9V8L.js +3 -0
  620. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  621. package/dist/esm/{index-BKCj6NR2.js → index-B3nR3-Jw.js} +9 -1
  622. package/dist/esm/index-B3nR3-Jw.js.map +1 -0
  623. package/dist/esm/{index-fIt9Ytc6.js → index-BEHxru6n.js} +51 -7
  624. package/dist/esm/index-BEHxru6n.js.map +1 -0
  625. package/dist/esm/index.js +5 -2
  626. package/dist/esm/index.js.map +1 -0
  627. package/dist/esm/loader.js +6 -3
  628. package/dist/esm/loader.js.map +1 -0
  629. package/dist/esm/reactive-controller-DXvzHFid.js +1443 -0
  630. package/dist/esm/reactive-controller-DXvzHFid.js.map +1 -0
  631. package/dist/esm/utils-C9lc3rtK.js +896 -0
  632. package/dist/esm/utils-C9lc3rtK.js.map +1 -0
  633. package/dist/esm/{utils-DuuLzXZj.js → utils-DP4zBIll.js} +4 -1
  634. package/dist/esm/utils-DP4zBIll.js.map +1 -0
  635. package/dist/esm/web-components-library.js +6 -3
  636. package/dist/esm/web-components-library.js.map +1 -0
  637. package/dist/esm/z-accordion.entry.js +5 -2
  638. package/dist/esm/z-accordion.entry.js.map +1 -0
  639. package/dist/esm/z-alert.entry.js +5 -2
  640. package/dist/esm/z-alert.entry.js.map +1 -0
  641. package/dist/esm/z-anchor-navigation.entry.js +5 -2
  642. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  643. package/dist/esm/z-app-header-deprecated.entry.js +5 -2
  644. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  645. package/dist/esm/z-app-header_12.entry.js +45 -109
  646. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  647. package/dist/esm/z-aria-alert.entry.js +5 -2
  648. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  649. package/dist/esm/z-avatar.entry.js +5 -2
  650. package/dist/esm/z-avatar.entry.js.map +1 -0
  651. package/dist/esm/z-book-card-app.entry.js +5 -2
  652. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  653. package/dist/esm/z-book-card-deprecated.entry.js +6 -3
  654. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  655. package/dist/esm/z-book-card.entry.js +5 -2
  656. package/dist/esm/z-book-card.entry.js.map +1 -0
  657. package/dist/esm/z-book-cover.entry.js +4 -1
  658. package/dist/esm/z-book-cover.entry.js.map +1 -0
  659. package/dist/esm/z-breadcrumb.entry.js +6 -3
  660. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  661. package/dist/esm/z-button-sort.entry.js +4 -1
  662. package/dist/esm/z-button-sort.entry.js.map +1 -0
  663. package/dist/esm/z-card.entry.js +5 -2
  664. package/dist/esm/z-card.entry.js.map +1 -0
  665. package/dist/esm/z-carousel.entry.js +5 -2
  666. package/dist/esm/z-carousel.entry.js.map +1 -0
  667. package/dist/esm/z-chip.entry.js +5 -2
  668. package/dist/esm/z-chip.entry.js.map +1 -0
  669. package/dist/esm/z-color-picker.entry.js +6 -3
  670. package/dist/esm/z-color-picker.entry.js.map +1 -0
  671. package/dist/esm/z-combobox.entry.js +6 -3
  672. package/dist/esm/z-combobox.entry.js.map +1 -0
  673. package/dist/esm/z-cover-hero.entry.js +5 -2
  674. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  675. package/dist/esm/z-date-picker.entry.js +6 -3
  676. package/dist/esm/z-date-picker.entry.js.map +1 -0
  677. package/dist/esm/z-dragdrop-area_2.entry.js +22 -38
  678. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  679. package/dist/esm/z-file-upload.entry.js +5 -2
  680. package/dist/esm/z-file-upload.entry.js.map +1 -0
  681. package/dist/esm/z-file.entry.js +5 -2
  682. package/dist/esm/z-file.entry.js.map +1 -0
  683. package/dist/esm/z-ghost-loading.entry.js +4 -1
  684. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  685. package/dist/esm/z-info-box.entry.js +4 -1
  686. package/dist/esm/z-info-box.entry.js.map +1 -0
  687. package/dist/esm/z-info-reveal.entry.js +5 -2
  688. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  689. package/dist/esm/z-input-range.entry.js +143 -0
  690. package/dist/esm/z-input-range.entry.js.map +1 -0
  691. package/dist/esm/z-logo.entry.js +5 -2
  692. package/dist/esm/z-logo.entry.js.map +1 -0
  693. package/dist/esm/z-menu-deprecated.entry.js +4 -1
  694. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  695. package/dist/esm/z-menu-section-deprecated.entry.js +4 -1
  696. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  697. package/dist/esm/z-menu-section.entry.js +6 -3
  698. package/dist/esm/z-menu-section.entry.js.map +1 -0
  699. package/dist/esm/z-menu.entry.js +6 -3
  700. package/dist/esm/z-menu.entry.js.map +1 -0
  701. package/dist/esm/z-myz-card-alert.entry.js +6 -3
  702. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  703. package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
  704. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  705. package/dist/esm/z-myz-card-footer-sections.entry.js +5 -2
  706. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  707. package/dist/esm/z-myz-card-footer.entry.js +6 -3
  708. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  709. package/dist/esm/z-myz-card-icon.entry.js +5 -2
  710. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  711. package/dist/esm/z-myz-card-info.entry.js +7 -4
  712. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  713. package/dist/esm/z-myz-card-list.entry.js +5 -2
  714. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  715. package/dist/esm/z-myz-card_4.entry.js +9 -6
  716. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  717. package/dist/esm/z-myz-list-item.entry.js +7 -4
  718. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  719. package/dist/esm/z-myz-list.entry.js +5 -2
  720. package/dist/esm/z-myz-list.entry.js.map +1 -0
  721. package/dist/esm/z-navigation-tabs.entry.js +7 -4
  722. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  723. package/dist/esm/z-notification.entry.js +5 -2
  724. package/dist/esm/z-notification.entry.js.map +1 -0
  725. package/dist/esm/z-otp.entry.js +7 -4
  726. package/dist/esm/z-otp.entry.js.map +1 -0
  727. package/dist/esm/z-pagination.entry.js +5 -2
  728. package/dist/esm/z-pagination.entry.js.map +1 -0
  729. package/dist/esm/z-panel-elem.entry.js +6 -3
  730. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  731. package/dist/esm/z-popover.entry.js +7 -4
  732. package/dist/esm/z-popover.entry.js.map +1 -0
  733. package/dist/esm/z-range-picker.entry.js +6 -3
  734. package/dist/esm/z-range-picker.entry.js.map +1 -0
  735. package/dist/esm/z-result-card.entry.js +4 -1
  736. package/dist/esm/z-result-card.entry.js.map +1 -0
  737. package/dist/esm/z-section-title.entry.js +5 -2
  738. package/dist/esm/z-section-title.entry.js.map +1 -0
  739. package/dist/esm/z-select.entry.js +11 -8
  740. package/dist/esm/z-select.entry.js.map +1 -0
  741. package/dist/esm/z-skip-to-content.entry.js +7 -4
  742. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  743. package/dist/esm/z-slideshow.entry.js +6 -3
  744. package/dist/esm/z-slideshow.entry.js.map +1 -0
  745. package/dist/esm/z-stepper-item.entry.js +5 -2
  746. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  747. package/dist/esm/z-stepper.entry.js +5 -2
  748. package/dist/esm/z-stepper.entry.js.map +1 -0
  749. package/dist/esm/z-table.entry.js +9 -8
  750. package/dist/esm/z-table.entry.js.map +1 -0
  751. package/dist/esm/z-tbody.entry.js +7 -6
  752. package/dist/esm/z-tbody.entry.js.map +1 -0
  753. package/dist/esm/z-td.entry.js +8 -7
  754. package/dist/esm/z-td.entry.js.map +1 -0
  755. package/dist/esm/z-tfoot.entry.js +7 -6
  756. package/dist/esm/z-tfoot.entry.js.map +1 -0
  757. package/dist/esm/z-th.entry.js +9 -8
  758. package/dist/esm/z-th.entry.js.map +1 -0
  759. package/dist/esm/z-thead.entry.js +7 -6
  760. package/dist/esm/z-thead.entry.js.map +1 -0
  761. package/dist/esm/z-toast-notification-list.entry.js +6 -3
  762. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  763. package/dist/esm/z-toast-notification.entry.js +8 -5
  764. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  765. package/dist/esm/z-toggle-button.entry.js +6 -3
  766. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  767. package/dist/esm/z-toggle-switch.entry.js +9 -6
  768. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  769. package/dist/esm/z-tool.entry.js +8 -5
  770. package/dist/esm/z-tool.entry.js.map +1 -0
  771. package/dist/esm/z-toolbar.entry.js +6 -3
  772. package/dist/esm/z-toolbar.entry.js.map +1 -0
  773. package/dist/esm/z-tooltip.entry.js +6 -3
  774. package/dist/esm/z-tooltip.entry.js.map +1 -0
  775. package/dist/esm/z-tr.entry.js +9 -8
  776. package/dist/esm/z-tr.entry.js.map +1 -0
  777. package/dist/esm/z-tree-list.entry.js +5 -2
  778. package/dist/esm/z-tree-list.entry.js.map +1 -0
  779. package/dist/esm/z-visually-hidden.entry.js +5 -2
  780. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  781. package/dist/types/beans/index.d.ts +4 -0
  782. package/dist/types/components/z-input-range/index.d.ts +83 -0
  783. package/dist/types/components/z-modal/index.d.ts +4 -10
  784. package/dist/types/components/z-offcanvas/index.d.ts +12 -34
  785. package/dist/types/components.d.ts +187 -6
  786. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  787. package/dist/types/utils/reactive-controller.d.ts +39 -0
  788. package/dist/types/utils/utils.d.ts +10 -0
  789. package/dist/web-components-library/index.esm.js +2 -1
  790. package/dist/web-components-library/index.esm.js.map +1 -0
  791. package/dist/web-components-library/p-0a10c7d7.entry.js +2 -0
  792. package/dist/web-components-library/p-0a10c7d7.entry.js.map +1 -0
  793. package/dist/web-components-library/p-0de3e2fa.entry.js +2 -0
  794. package/dist/web-components-library/p-0de3e2fa.entry.js.map +1 -0
  795. package/dist/web-components-library/p-0eb833b6.entry.js +2 -0
  796. package/dist/web-components-library/p-0eb833b6.entry.js.map +1 -0
  797. package/dist/web-components-library/p-17a9c2b3.entry.js +2 -0
  798. package/dist/web-components-library/p-17a9c2b3.entry.js.map +1 -0
  799. package/dist/web-components-library/p-235a1c1d.entry.js +2 -0
  800. package/dist/web-components-library/p-235a1c1d.entry.js.map +1 -0
  801. package/dist/web-components-library/p-286690fd.entry.js +2 -0
  802. package/dist/web-components-library/p-286690fd.entry.js.map +1 -0
  803. package/dist/web-components-library/p-288c1f55.entry.js +2 -0
  804. package/dist/web-components-library/p-288c1f55.entry.js.map +1 -0
  805. package/dist/web-components-library/p-2b05eaef.entry.js +2 -0
  806. package/dist/web-components-library/p-2b05eaef.entry.js.map +1 -0
  807. package/dist/web-components-library/p-2c63a798.entry.js +2 -0
  808. package/dist/web-components-library/p-2c63a798.entry.js.map +1 -0
  809. package/dist/web-components-library/p-315ac39c.entry.js +2 -0
  810. package/dist/web-components-library/p-315ac39c.entry.js.map +1 -0
  811. package/dist/web-components-library/p-35653b5e.entry.js +2 -0
  812. package/dist/web-components-library/p-35653b5e.entry.js.map +1 -0
  813. package/dist/web-components-library/p-38e4e01f.entry.js +2 -0
  814. package/dist/web-components-library/p-38e4e01f.entry.js.map +1 -0
  815. package/dist/web-components-library/p-3b3e1ffb.entry.js +2 -0
  816. package/dist/web-components-library/p-3b3e1ffb.entry.js.map +1 -0
  817. package/dist/web-components-library/p-3b7f5d80.entry.js +2 -0
  818. package/dist/web-components-library/p-3b7f5d80.entry.js.map +1 -0
  819. package/dist/web-components-library/p-40694478.entry.js +2 -0
  820. package/dist/web-components-library/p-40694478.entry.js.map +1 -0
  821. package/dist/web-components-library/p-440e5b62.entry.js +2 -0
  822. package/dist/web-components-library/p-440e5b62.entry.js.map +1 -0
  823. package/dist/web-components-library/p-44410388.entry.js +2 -0
  824. package/dist/web-components-library/p-44410388.entry.js.map +1 -0
  825. package/dist/web-components-library/p-508eb530.entry.js +2 -0
  826. package/dist/web-components-library/p-508eb530.entry.js.map +1 -0
  827. package/dist/web-components-library/p-50a09bf1.entry.js +2 -0
  828. package/dist/web-components-library/p-50a09bf1.entry.js.map +1 -0
  829. package/dist/web-components-library/p-54f98f8e.entry.js +2 -0
  830. package/dist/web-components-library/p-54f98f8e.entry.js.map +1 -0
  831. package/dist/web-components-library/p-5a0424cd.entry.js +2 -0
  832. package/dist/web-components-library/p-5a0424cd.entry.js.map +1 -0
  833. package/dist/web-components-library/p-5ba350d8.entry.js +2 -0
  834. package/dist/web-components-library/p-5ba350d8.entry.js.map +1 -0
  835. package/dist/web-components-library/p-643aaedc.entry.js +2 -0
  836. package/dist/web-components-library/p-643aaedc.entry.js.map +1 -0
  837. package/dist/web-components-library/p-654cbe9f.entry.js +2 -0
  838. package/dist/web-components-library/p-654cbe9f.entry.js.map +1 -0
  839. package/dist/web-components-library/p-6fc4fd53.entry.js +2 -0
  840. package/dist/web-components-library/p-6fc4fd53.entry.js.map +1 -0
  841. package/dist/web-components-library/{p-2621b31f.entry.js → p-72356b43.entry.js} +2 -1
  842. package/dist/web-components-library/p-72356b43.entry.js.map +1 -0
  843. package/dist/web-components-library/p-723c700f.entry.js +2 -0
  844. package/dist/web-components-library/p-723c700f.entry.js.map +1 -0
  845. package/dist/web-components-library/p-72da35ee.entry.js +2 -0
  846. package/dist/web-components-library/p-72da35ee.entry.js.map +1 -0
  847. package/dist/web-components-library/p-7313202f.entry.js +2 -0
  848. package/dist/web-components-library/p-7313202f.entry.js.map +1 -0
  849. package/dist/web-components-library/p-73ed9922.entry.js +2 -0
  850. package/dist/web-components-library/p-73ed9922.entry.js.map +1 -0
  851. package/dist/web-components-library/p-779a7476.entry.js +2 -0
  852. package/dist/web-components-library/p-779a7476.entry.js.map +1 -0
  853. package/dist/web-components-library/p-7a25961e.entry.js +2 -0
  854. package/dist/web-components-library/p-7a25961e.entry.js.map +1 -0
  855. package/dist/web-components-library/p-7dfb5290.entry.js +2 -0
  856. package/dist/web-components-library/p-7dfb5290.entry.js.map +1 -0
  857. package/dist/web-components-library/p-7fff6cfd.entry.js +2 -0
  858. package/dist/web-components-library/p-7fff6cfd.entry.js.map +1 -0
  859. package/dist/web-components-library/p-8041306f.entry.js +2 -0
  860. package/dist/web-components-library/p-8041306f.entry.js.map +1 -0
  861. package/dist/web-components-library/p-8046cab0.entry.js +2 -0
  862. package/dist/web-components-library/p-8046cab0.entry.js.map +1 -0
  863. package/dist/web-components-library/{p-ebd8c113.entry.js → p-82c43c62.entry.js} +2 -1
  864. package/dist/web-components-library/p-82c43c62.entry.js.map +1 -0
  865. package/dist/web-components-library/p-82e04f79.entry.js +2 -0
  866. package/dist/web-components-library/p-82e04f79.entry.js.map +1 -0
  867. package/dist/web-components-library/p-87a5a352.entry.js +2 -0
  868. package/dist/web-components-library/p-87a5a352.entry.js.map +1 -0
  869. package/dist/web-components-library/p-8b0c232c.entry.js +2 -0
  870. package/dist/web-components-library/p-8b0c232c.entry.js.map +1 -0
  871. package/dist/web-components-library/p-8b1f745c.entry.js +2 -0
  872. package/dist/web-components-library/p-8b1f745c.entry.js.map +1 -0
  873. package/dist/web-components-library/p-8bd0e3e2.entry.js +2 -0
  874. package/dist/web-components-library/p-8bd0e3e2.entry.js.map +1 -0
  875. package/dist/web-components-library/p-8ca86be7.entry.js +2 -0
  876. package/dist/web-components-library/p-8ca86be7.entry.js.map +1 -0
  877. package/dist/web-components-library/p-8ce8d90d.entry.js +2 -0
  878. package/dist/web-components-library/p-8ce8d90d.entry.js.map +1 -0
  879. package/dist/web-components-library/p-927d9062.entry.js +2 -0
  880. package/dist/web-components-library/p-927d9062.entry.js.map +1 -0
  881. package/dist/web-components-library/p-931f2a16.entry.js +2 -0
  882. package/dist/web-components-library/p-931f2a16.entry.js.map +1 -0
  883. package/dist/web-components-library/p-960cd1d9.entry.js +2 -0
  884. package/dist/web-components-library/p-960cd1d9.entry.js.map +1 -0
  885. package/dist/web-components-library/p-9f0e91f5.entry.js +2 -0
  886. package/dist/web-components-library/p-9f0e91f5.entry.js.map +1 -0
  887. package/dist/web-components-library/p-AwzX9V8L.js +2 -1
  888. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  889. package/dist/web-components-library/p-B3nR3-Jw.js +2 -0
  890. package/dist/web-components-library/p-B3nR3-Jw.js.map +1 -0
  891. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  892. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  893. package/dist/web-components-library/p-BEHxru6n.js +3 -0
  894. package/dist/web-components-library/p-BEHxru6n.js.map +1 -0
  895. package/dist/web-components-library/p-Bx6o9v2_.js +2 -0
  896. package/dist/web-components-library/p-Bx6o9v2_.js.map +1 -0
  897. package/dist/web-components-library/p-C8pbzcmM.js +7 -0
  898. package/dist/web-components-library/p-C8pbzcmM.js.map +1 -0
  899. package/dist/web-components-library/p-CscBC1Z4.js +6 -0
  900. package/dist/web-components-library/p-CscBC1Z4.js.map +1 -0
  901. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  902. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  903. package/dist/web-components-library/p-a1db3939.entry.js +2 -0
  904. package/dist/web-components-library/p-a1db3939.entry.js.map +1 -0
  905. package/dist/web-components-library/p-a6f29ff5.entry.js +2 -0
  906. package/dist/web-components-library/p-a6f29ff5.entry.js.map +1 -0
  907. package/dist/web-components-library/p-a8e42a7c.entry.js +2 -0
  908. package/dist/web-components-library/p-a8e42a7c.entry.js.map +1 -0
  909. package/dist/web-components-library/p-a8fe9ae0.entry.js +2 -0
  910. package/dist/web-components-library/p-a8fe9ae0.entry.js.map +1 -0
  911. package/dist/web-components-library/p-ab64e360.entry.js +2 -0
  912. package/dist/web-components-library/p-ab64e360.entry.js.map +1 -0
  913. package/dist/web-components-library/p-acba8f34.entry.js +2 -0
  914. package/dist/web-components-library/p-acba8f34.entry.js.map +1 -0
  915. package/dist/web-components-library/p-ace68b04.entry.js +2 -0
  916. package/dist/web-components-library/p-ace68b04.entry.js.map +1 -0
  917. package/dist/web-components-library/p-ad88d4a5.entry.js +2 -0
  918. package/dist/web-components-library/p-ad88d4a5.entry.js.map +1 -0
  919. package/dist/web-components-library/p-ae8d5494.entry.js +2 -0
  920. package/dist/web-components-library/p-ae8d5494.entry.js.map +1 -0
  921. package/dist/web-components-library/p-af8fec68.entry.js +17 -0
  922. package/dist/web-components-library/p-af8fec68.entry.js.map +1 -0
  923. package/dist/web-components-library/p-b4140668.entry.js +2 -0
  924. package/dist/web-components-library/p-b4140668.entry.js.map +1 -0
  925. package/dist/web-components-library/p-bff500a3.entry.js +2 -0
  926. package/dist/web-components-library/p-bff500a3.entry.js.map +1 -0
  927. package/dist/web-components-library/p-d09060af.entry.js +2 -0
  928. package/dist/web-components-library/p-d09060af.entry.js.map +1 -0
  929. package/dist/web-components-library/p-da213c6e.entry.js +2 -0
  930. package/dist/web-components-library/p-da213c6e.entry.js.map +1 -0
  931. package/dist/web-components-library/p-e4622c5d.entry.js +2 -0
  932. package/dist/web-components-library/p-e4622c5d.entry.js.map +1 -0
  933. package/dist/web-components-library/p-e7e98d15.entry.js +2 -0
  934. package/dist/web-components-library/p-e7e98d15.entry.js.map +1 -0
  935. package/dist/web-components-library/p-e87e13b0.entry.js +2 -0
  936. package/dist/web-components-library/p-e87e13b0.entry.js.map +1 -0
  937. package/dist/web-components-library/p-e9212c7a.entry.js +2 -0
  938. package/dist/web-components-library/p-e9212c7a.entry.js.map +1 -0
  939. package/dist/web-components-library/p-e9722221.entry.js +8 -0
  940. package/dist/web-components-library/p-e9722221.entry.js.map +1 -0
  941. package/dist/web-components-library/p-e9ed3594.entry.js +2 -0
  942. package/dist/web-components-library/p-e9ed3594.entry.js.map +1 -0
  943. package/dist/web-components-library/p-eb5e4333.entry.js +2 -0
  944. package/dist/web-components-library/p-eb5e4333.entry.js.map +1 -0
  945. package/dist/web-components-library/p-ee711acf.entry.js +2 -0
  946. package/dist/web-components-library/p-ee711acf.entry.js.map +1 -0
  947. package/dist/web-components-library/p-fa4e8b1b.entry.js +2 -0
  948. package/dist/web-components-library/p-fa4e8b1b.entry.js.map +1 -0
  949. package/dist/web-components-library/p-fe279683.entry.js +2 -0
  950. package/dist/web-components-library/p-fe279683.entry.js.map +1 -0
  951. package/dist/web-components-library/web-components-library.css +0 -62
  952. package/dist/web-components-library/web-components-library.esm.js +2 -1
  953. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  954. package/package.json +5 -5
  955. package/react/components.d.ts +1 -0
  956. package/react/components.js +3 -2
  957. package/www/build/index.esm.js +2 -1
  958. package/www/build/index.esm.js.map +1 -0
  959. package/www/build/p-0a10c7d7.entry.js +2 -0
  960. package/www/build/p-0a10c7d7.entry.js.map +1 -0
  961. package/www/build/p-0de3e2fa.entry.js +2 -0
  962. package/www/build/p-0de3e2fa.entry.js.map +1 -0
  963. package/www/build/p-0eb833b6.entry.js +2 -0
  964. package/www/build/p-0eb833b6.entry.js.map +1 -0
  965. package/www/build/p-17a9c2b3.entry.js +2 -0
  966. package/www/build/p-17a9c2b3.entry.js.map +1 -0
  967. package/www/build/p-235a1c1d.entry.js +2 -0
  968. package/www/build/p-235a1c1d.entry.js.map +1 -0
  969. package/www/build/p-286690fd.entry.js +2 -0
  970. package/www/build/p-286690fd.entry.js.map +1 -0
  971. package/www/build/p-288c1f55.entry.js +2 -0
  972. package/www/build/p-288c1f55.entry.js.map +1 -0
  973. package/www/build/p-2b05eaef.entry.js +2 -0
  974. package/www/build/p-2b05eaef.entry.js.map +1 -0
  975. package/www/build/p-2c63a798.entry.js +2 -0
  976. package/www/build/p-2c63a798.entry.js.map +1 -0
  977. package/www/build/p-315ac39c.entry.js +2 -0
  978. package/www/build/p-315ac39c.entry.js.map +1 -0
  979. package/www/build/p-35653b5e.entry.js +2 -0
  980. package/www/build/p-35653b5e.entry.js.map +1 -0
  981. package/www/build/p-38e4e01f.entry.js +2 -0
  982. package/www/build/p-38e4e01f.entry.js.map +1 -0
  983. package/www/build/p-3b3e1ffb.entry.js +2 -0
  984. package/www/build/p-3b3e1ffb.entry.js.map +1 -0
  985. package/www/build/p-3b7f5d80.entry.js +2 -0
  986. package/www/build/p-3b7f5d80.entry.js.map +1 -0
  987. package/www/build/p-40694478.entry.js +2 -0
  988. package/www/build/p-40694478.entry.js.map +1 -0
  989. package/www/build/p-440e5b62.entry.js +2 -0
  990. package/www/build/p-440e5b62.entry.js.map +1 -0
  991. package/www/build/p-44410388.entry.js +2 -0
  992. package/www/build/p-44410388.entry.js.map +1 -0
  993. package/www/build/p-508eb530.entry.js +2 -0
  994. package/www/build/p-508eb530.entry.js.map +1 -0
  995. package/www/build/p-50a09bf1.entry.js +2 -0
  996. package/www/build/p-50a09bf1.entry.js.map +1 -0
  997. package/www/build/p-54f98f8e.entry.js +2 -0
  998. package/www/build/p-54f98f8e.entry.js.map +1 -0
  999. package/www/build/p-5a0424cd.entry.js +2 -0
  1000. package/www/build/p-5a0424cd.entry.js.map +1 -0
  1001. package/www/build/p-5ba350d8.entry.js +2 -0
  1002. package/www/build/p-5ba350d8.entry.js.map +1 -0
  1003. package/www/build/p-643aaedc.entry.js +2 -0
  1004. package/www/build/p-643aaedc.entry.js.map +1 -0
  1005. package/www/build/p-654cbe9f.entry.js +2 -0
  1006. package/www/build/p-654cbe9f.entry.js.map +1 -0
  1007. package/www/build/p-6fc4fd53.entry.js +2 -0
  1008. package/www/build/p-6fc4fd53.entry.js.map +1 -0
  1009. package/www/build/{p-2621b31f.entry.js → p-72356b43.entry.js} +2 -1
  1010. package/www/build/p-72356b43.entry.js.map +1 -0
  1011. package/www/build/p-723c700f.entry.js +2 -0
  1012. package/www/build/p-723c700f.entry.js.map +1 -0
  1013. package/www/build/p-72da35ee.entry.js +2 -0
  1014. package/www/build/p-72da35ee.entry.js.map +1 -0
  1015. package/www/build/p-7313202f.entry.js +2 -0
  1016. package/www/build/p-7313202f.entry.js.map +1 -0
  1017. package/www/build/p-73ed9922.entry.js +2 -0
  1018. package/www/build/p-73ed9922.entry.js.map +1 -0
  1019. package/www/build/p-779a7476.entry.js +2 -0
  1020. package/www/build/p-779a7476.entry.js.map +1 -0
  1021. package/www/build/p-7a25961e.entry.js +2 -0
  1022. package/www/build/p-7a25961e.entry.js.map +1 -0
  1023. package/www/build/p-7dfb5290.entry.js +2 -0
  1024. package/www/build/p-7dfb5290.entry.js.map +1 -0
  1025. package/www/build/p-7fff6cfd.entry.js +2 -0
  1026. package/www/build/p-7fff6cfd.entry.js.map +1 -0
  1027. package/www/build/p-8041306f.entry.js +2 -0
  1028. package/www/build/p-8041306f.entry.js.map +1 -0
  1029. package/www/build/p-8046cab0.entry.js +2 -0
  1030. package/www/build/p-8046cab0.entry.js.map +1 -0
  1031. package/www/build/{p-ebd8c113.entry.js → p-82c43c62.entry.js} +2 -1
  1032. package/www/build/p-82c43c62.entry.js.map +1 -0
  1033. package/www/build/p-82e04f79.entry.js +2 -0
  1034. package/www/build/p-82e04f79.entry.js.map +1 -0
  1035. package/www/build/p-87a5a352.entry.js +2 -0
  1036. package/www/build/p-87a5a352.entry.js.map +1 -0
  1037. package/www/build/p-8b0c232c.entry.js +2 -0
  1038. package/www/build/p-8b0c232c.entry.js.map +1 -0
  1039. package/www/build/p-8b1f745c.entry.js +2 -0
  1040. package/www/build/p-8b1f745c.entry.js.map +1 -0
  1041. package/www/build/p-8bd0e3e2.entry.js +2 -0
  1042. package/www/build/p-8bd0e3e2.entry.js.map +1 -0
  1043. package/www/build/p-8ca86be7.entry.js +2 -0
  1044. package/www/build/p-8ca86be7.entry.js.map +1 -0
  1045. package/www/build/p-8ce8d90d.entry.js +2 -0
  1046. package/www/build/p-8ce8d90d.entry.js.map +1 -0
  1047. package/www/build/p-927d9062.entry.js +2 -0
  1048. package/www/build/p-927d9062.entry.js.map +1 -0
  1049. package/www/build/p-931f2a16.entry.js +2 -0
  1050. package/www/build/p-931f2a16.entry.js.map +1 -0
  1051. package/www/build/p-960cd1d9.entry.js +2 -0
  1052. package/www/build/p-960cd1d9.entry.js.map +1 -0
  1053. package/www/build/p-9f0e91f5.entry.js +2 -0
  1054. package/www/build/p-9f0e91f5.entry.js.map +1 -0
  1055. package/www/build/p-AwzX9V8L.js +2 -1
  1056. package/www/build/p-AwzX9V8L.js.map +1 -0
  1057. package/www/build/p-B3nR3-Jw.js +2 -0
  1058. package/www/build/p-B3nR3-Jw.js.map +1 -0
  1059. package/www/build/p-B85MJLTf.js +2 -1
  1060. package/www/build/p-B85MJLTf.js.map +1 -0
  1061. package/www/build/p-BEHxru6n.js +3 -0
  1062. package/www/build/p-BEHxru6n.js.map +1 -0
  1063. package/www/build/p-Bx6o9v2_.js +2 -0
  1064. package/www/build/p-Bx6o9v2_.js.map +1 -0
  1065. package/www/build/p-C8pbzcmM.js +7 -0
  1066. package/www/build/p-C8pbzcmM.js.map +1 -0
  1067. package/www/build/p-CscBC1Z4.js +6 -0
  1068. package/www/build/p-CscBC1Z4.js.map +1 -0
  1069. package/www/build/p-Q-tWjk7P.js +2 -1
  1070. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1071. package/www/build/p-a1db3939.entry.js +2 -0
  1072. package/www/build/p-a1db3939.entry.js.map +1 -0
  1073. package/www/build/p-a6f29ff5.entry.js +2 -0
  1074. package/www/build/p-a6f29ff5.entry.js.map +1 -0
  1075. package/www/build/p-a8e42a7c.entry.js +2 -0
  1076. package/www/build/p-a8e42a7c.entry.js.map +1 -0
  1077. package/www/build/p-a8fe9ae0.entry.js +2 -0
  1078. package/www/build/p-a8fe9ae0.entry.js.map +1 -0
  1079. package/www/build/p-ab64e360.entry.js +2 -0
  1080. package/www/build/p-ab64e360.entry.js.map +1 -0
  1081. package/www/build/p-acba8f34.entry.js +2 -0
  1082. package/www/build/p-acba8f34.entry.js.map +1 -0
  1083. package/www/build/p-ace68b04.entry.js +2 -0
  1084. package/www/build/p-ace68b04.entry.js.map +1 -0
  1085. package/www/build/p-ad88d4a5.entry.js +2 -0
  1086. package/www/build/p-ad88d4a5.entry.js.map +1 -0
  1087. package/www/build/p-ae8d5494.entry.js +2 -0
  1088. package/www/build/p-ae8d5494.entry.js.map +1 -0
  1089. package/www/build/p-af8fec68.entry.js +17 -0
  1090. package/www/build/p-af8fec68.entry.js.map +1 -0
  1091. package/www/build/p-b289ae9e.js +2 -0
  1092. package/www/build/p-b4140668.entry.js +2 -0
  1093. package/www/build/p-b4140668.entry.js.map +1 -0
  1094. package/www/build/p-bff500a3.entry.js +2 -0
  1095. package/www/build/p-bff500a3.entry.js.map +1 -0
  1096. package/www/build/{p-c9523ede.css → p-c60c851a.css} +0 -62
  1097. package/www/build/p-d09060af.entry.js +2 -0
  1098. package/www/build/p-d09060af.entry.js.map +1 -0
  1099. package/www/build/p-da213c6e.entry.js +2 -0
  1100. package/www/build/p-da213c6e.entry.js.map +1 -0
  1101. package/www/build/p-e4622c5d.entry.js +2 -0
  1102. package/www/build/p-e4622c5d.entry.js.map +1 -0
  1103. package/www/build/p-e7e98d15.entry.js +2 -0
  1104. package/www/build/p-e7e98d15.entry.js.map +1 -0
  1105. package/www/build/p-e87e13b0.entry.js +2 -0
  1106. package/www/build/p-e87e13b0.entry.js.map +1 -0
  1107. package/www/build/p-e9212c7a.entry.js +2 -0
  1108. package/www/build/p-e9212c7a.entry.js.map +1 -0
  1109. package/www/build/p-e9722221.entry.js +8 -0
  1110. package/www/build/p-e9722221.entry.js.map +1 -0
  1111. package/www/build/p-e9ed3594.entry.js +2 -0
  1112. package/www/build/p-e9ed3594.entry.js.map +1 -0
  1113. package/www/build/p-eb5e4333.entry.js +2 -0
  1114. package/www/build/p-eb5e4333.entry.js.map +1 -0
  1115. package/www/build/p-ee711acf.entry.js +2 -0
  1116. package/www/build/p-ee711acf.entry.js.map +1 -0
  1117. package/www/build/p-fa4e8b1b.entry.js +2 -0
  1118. package/www/build/p-fa4e8b1b.entry.js.map +1 -0
  1119. package/www/build/p-fe279683.entry.js +2 -0
  1120. package/www/build/p-fe279683.entry.js.map +1 -0
  1121. package/www/build/web-components-library.css +0 -62
  1122. package/www/build/web-components-library.esm.js +2 -1
  1123. package/www/build/web-components-library.esm.js.map +1 -0
  1124. package/www/index.html +1 -1
  1125. package/dist/cjs/utils-BY7xrW7W.js +0 -265
  1126. package/dist/collection/components/css-components/z-table/styles.css +0 -61
  1127. package/dist/esm/utils-BEzZQwOB.js +0 -249
  1128. package/dist/web-components-library/p-053470ec.entry.js +0 -1
  1129. package/dist/web-components-library/p-071d2a57.entry.js +0 -1
  1130. package/dist/web-components-library/p-0e9e73ed.entry.js +0 -1
  1131. package/dist/web-components-library/p-1397ebb2.entry.js +0 -1
  1132. package/dist/web-components-library/p-13d3c53c.entry.js +0 -1
  1133. package/dist/web-components-library/p-1418f4d2.entry.js +0 -1
  1134. package/dist/web-components-library/p-1432864e.entry.js +0 -1
  1135. package/dist/web-components-library/p-150171da.entry.js +0 -1
  1136. package/dist/web-components-library/p-16d99a59.entry.js +0 -1
  1137. package/dist/web-components-library/p-17276ae7.entry.js +0 -1
  1138. package/dist/web-components-library/p-1afc3227.entry.js +0 -1
  1139. package/dist/web-components-library/p-1d00c30e.entry.js +0 -1
  1140. package/dist/web-components-library/p-263b4960.entry.js +0 -1
  1141. package/dist/web-components-library/p-2f79d3fd.entry.js +0 -1
  1142. package/dist/web-components-library/p-3aa12417.entry.js +0 -1
  1143. package/dist/web-components-library/p-4170d86b.entry.js +0 -1
  1144. package/dist/web-components-library/p-41edfbd3.entry.js +0 -1
  1145. package/dist/web-components-library/p-420b547f.entry.js +0 -1
  1146. package/dist/web-components-library/p-473594e3.entry.js +0 -1
  1147. package/dist/web-components-library/p-48ef2fb1.entry.js +0 -1
  1148. package/dist/web-components-library/p-50a15c76.entry.js +0 -16
  1149. package/dist/web-components-library/p-5c3bc8a1.entry.js +0 -1
  1150. package/dist/web-components-library/p-733ddcca.entry.js +0 -1
  1151. package/dist/web-components-library/p-7648a0b0.entry.js +0 -1
  1152. package/dist/web-components-library/p-7a58bb24.entry.js +0 -1
  1153. package/dist/web-components-library/p-7b4ca721.entry.js +0 -1
  1154. package/dist/web-components-library/p-7fa3211f.entry.js +0 -2
  1155. package/dist/web-components-library/p-80eb4ada.entry.js +0 -1
  1156. package/dist/web-components-library/p-8237255f.entry.js +0 -1
  1157. package/dist/web-components-library/p-8711674f.entry.js +0 -1
  1158. package/dist/web-components-library/p-90a25f58.entry.js +0 -1
  1159. package/dist/web-components-library/p-93e2f49e.entry.js +0 -1
  1160. package/dist/web-components-library/p-94bc612d.entry.js +0 -1
  1161. package/dist/web-components-library/p-98165529.entry.js +0 -1
  1162. package/dist/web-components-library/p-99d355d6.entry.js +0 -1
  1163. package/dist/web-components-library/p-9b2589a6.entry.js +0 -1
  1164. package/dist/web-components-library/p-9f9b9b8e.entry.js +0 -1
  1165. package/dist/web-components-library/p-B0bOjMSb.js +0 -1
  1166. package/dist/web-components-library/p-B8WJfd4z.js +0 -1
  1167. package/dist/web-components-library/p-BKCj6NR2.js +0 -1
  1168. package/dist/web-components-library/p-a0675e97.entry.js +0 -1
  1169. package/dist/web-components-library/p-a26011c7.entry.js +0 -1
  1170. package/dist/web-components-library/p-a336b496.entry.js +0 -1
  1171. package/dist/web-components-library/p-a9282ee9.entry.js +0 -1
  1172. package/dist/web-components-library/p-acd32089.entry.js +0 -1
  1173. package/dist/web-components-library/p-addac0e0.entry.js +0 -1
  1174. package/dist/web-components-library/p-b127d150.entry.js +0 -1
  1175. package/dist/web-components-library/p-b64dd64c.entry.js +0 -1
  1176. package/dist/web-components-library/p-b757d2dc.entry.js +0 -1
  1177. package/dist/web-components-library/p-b76f39fa.entry.js +0 -1
  1178. package/dist/web-components-library/p-b7907578.entry.js +0 -1
  1179. package/dist/web-components-library/p-bb319405.entry.js +0 -1
  1180. package/dist/web-components-library/p-c3a6159b.entry.js +0 -1
  1181. package/dist/web-components-library/p-ca89f8e8.entry.js +0 -1
  1182. package/dist/web-components-library/p-cb6af60f.entry.js +0 -1
  1183. package/dist/web-components-library/p-d0c0e9f1.entry.js +0 -1
  1184. package/dist/web-components-library/p-d6ff2160.entry.js +0 -1
  1185. package/dist/web-components-library/p-d756e131.entry.js +0 -1
  1186. package/dist/web-components-library/p-d79a7787.entry.js +0 -1
  1187. package/dist/web-components-library/p-d7fc390f.entry.js +0 -1
  1188. package/dist/web-components-library/p-d9998674.entry.js +0 -1
  1189. package/dist/web-components-library/p-d9a20a51.entry.js +0 -1
  1190. package/dist/web-components-library/p-da977942.entry.js +0 -1
  1191. package/dist/web-components-library/p-e03fc01d.entry.js +0 -1
  1192. package/dist/web-components-library/p-eb093728.entry.js +0 -1
  1193. package/dist/web-components-library/p-ecf55fe6.entry.js +0 -1
  1194. package/dist/web-components-library/p-f2ebf81b.entry.js +0 -1
  1195. package/dist/web-components-library/p-f33d8f8d.entry.js +0 -1
  1196. package/dist/web-components-library/p-f4082ec2.entry.js +0 -1
  1197. package/dist/web-components-library/p-fIt9Ytc6.js +0 -2
  1198. package/dist/web-components-library/p-fad8e9b8.entry.js +0 -1
  1199. package/dist/web-components-library/p-fb7edb66.entry.js +0 -1
  1200. package/dist/web-components-library/p-fea76ac6.entry.js +0 -1
  1201. package/www/build/p-053470ec.entry.js +0 -1
  1202. package/www/build/p-071d2a57.entry.js +0 -1
  1203. package/www/build/p-0e9e73ed.entry.js +0 -1
  1204. package/www/build/p-1397ebb2.entry.js +0 -1
  1205. package/www/build/p-13d3c53c.entry.js +0 -1
  1206. package/www/build/p-1418f4d2.entry.js +0 -1
  1207. package/www/build/p-1432864e.entry.js +0 -1
  1208. package/www/build/p-150171da.entry.js +0 -1
  1209. package/www/build/p-16d99a59.entry.js +0 -1
  1210. package/www/build/p-17276ae7.entry.js +0 -1
  1211. package/www/build/p-1afc3227.entry.js +0 -1
  1212. package/www/build/p-1d00c30e.entry.js +0 -1
  1213. package/www/build/p-263b4960.entry.js +0 -1
  1214. package/www/build/p-2f79d3fd.entry.js +0 -1
  1215. package/www/build/p-3aa12417.entry.js +0 -1
  1216. package/www/build/p-40eed148.js +0 -1
  1217. package/www/build/p-4170d86b.entry.js +0 -1
  1218. package/www/build/p-41edfbd3.entry.js +0 -1
  1219. package/www/build/p-420b547f.entry.js +0 -1
  1220. package/www/build/p-473594e3.entry.js +0 -1
  1221. package/www/build/p-48ef2fb1.entry.js +0 -1
  1222. package/www/build/p-50a15c76.entry.js +0 -16
  1223. package/www/build/p-5c3bc8a1.entry.js +0 -1
  1224. package/www/build/p-733ddcca.entry.js +0 -1
  1225. package/www/build/p-7648a0b0.entry.js +0 -1
  1226. package/www/build/p-7a58bb24.entry.js +0 -1
  1227. package/www/build/p-7b4ca721.entry.js +0 -1
  1228. package/www/build/p-7fa3211f.entry.js +0 -2
  1229. package/www/build/p-80eb4ada.entry.js +0 -1
  1230. package/www/build/p-8237255f.entry.js +0 -1
  1231. package/www/build/p-8711674f.entry.js +0 -1
  1232. package/www/build/p-90a25f58.entry.js +0 -1
  1233. package/www/build/p-93e2f49e.entry.js +0 -1
  1234. package/www/build/p-94bc612d.entry.js +0 -1
  1235. package/www/build/p-98165529.entry.js +0 -1
  1236. package/www/build/p-99d355d6.entry.js +0 -1
  1237. package/www/build/p-9b2589a6.entry.js +0 -1
  1238. package/www/build/p-9f9b9b8e.entry.js +0 -1
  1239. package/www/build/p-B0bOjMSb.js +0 -1
  1240. package/www/build/p-B8WJfd4z.js +0 -1
  1241. package/www/build/p-BKCj6NR2.js +0 -1
  1242. package/www/build/p-a0675e97.entry.js +0 -1
  1243. package/www/build/p-a26011c7.entry.js +0 -1
  1244. package/www/build/p-a336b496.entry.js +0 -1
  1245. package/www/build/p-a9282ee9.entry.js +0 -1
  1246. package/www/build/p-acd32089.entry.js +0 -1
  1247. package/www/build/p-addac0e0.entry.js +0 -1
  1248. package/www/build/p-b127d150.entry.js +0 -1
  1249. package/www/build/p-b64dd64c.entry.js +0 -1
  1250. package/www/build/p-b757d2dc.entry.js +0 -1
  1251. package/www/build/p-b76f39fa.entry.js +0 -1
  1252. package/www/build/p-b7907578.entry.js +0 -1
  1253. package/www/build/p-bb319405.entry.js +0 -1
  1254. package/www/build/p-c3a6159b.entry.js +0 -1
  1255. package/www/build/p-ca89f8e8.entry.js +0 -1
  1256. package/www/build/p-cb6af60f.entry.js +0 -1
  1257. package/www/build/p-d0c0e9f1.entry.js +0 -1
  1258. package/www/build/p-d6ff2160.entry.js +0 -1
  1259. package/www/build/p-d756e131.entry.js +0 -1
  1260. package/www/build/p-d79a7787.entry.js +0 -1
  1261. package/www/build/p-d7fc390f.entry.js +0 -1
  1262. package/www/build/p-d9998674.entry.js +0 -1
  1263. package/www/build/p-d9a20a51.entry.js +0 -1
  1264. package/www/build/p-da977942.entry.js +0 -1
  1265. package/www/build/p-e03fc01d.entry.js +0 -1
  1266. package/www/build/p-eb093728.entry.js +0 -1
  1267. package/www/build/p-ecf55fe6.entry.js +0 -1
  1268. package/www/build/p-f2ebf81b.entry.js +0 -1
  1269. package/www/build/p-f33d8f8d.entry.js +0 -1
  1270. package/www/build/p-f4082ec2.entry.js +0 -1
  1271. package/www/build/p-fIt9Ytc6.js +0 -2
  1272. package/www/build/p-fad8e9b8.entry.js +0 -1
  1273. package/www/build/p-fb7edb66.entry.js +0 -1
  1274. package/www/build/p-fea76ac6.entry.js +0 -1
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ZInputRange extends Components.ZInputRange, HTMLElement {}
4
+ export const ZInputRange: {
5
+ prototype: ZInputRange;
6
+ new (): ZInputRange;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,2 @@
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as n,Host as o,transformTag as a}from"@stencil/core/internal/client";import{O as r,P as s}from"./index2.js";import{r as h}from"./utils.js";import{d as l}from"./index17.js";import{d as g}from"./index22.js";const d=()=>`:host,*{box-sizing:border-box}:host{--progress:0%;--progress-ratio:0;--z-input-range-thumb-size:calc(var(--space-unit) * 3);display:flex;width:fit-content;height:fit-content;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host([size="small"]){--z-input-range-thumb-size:calc(var(--space-unit) * 2)}:host([size="x-small"]){--z-input-range-thumb-size:calc(var(--space-unit) * 1.5)}:host([orientation="vertical"]){height:100%;flex-direction:row}.input-container{--z-input-range-track-size:calc(var(--z-input-range-thumb-size) / 3);position:relative;display:flex;width:100%;height:100%}label.z-label{padding:0;margin-bottom:calc(var(--space-unit) * 1.5)}:host([orientation="vertical"]) label.z-label{display:none}input[type="range"]{--main-color:var(--color-primary01);width:100%;height:var(--z-input-range-thumb-size);padding:0;margin:0;appearance:none;background:transparent;writing-mode:horizontal-tb}input[type="range"]:hover,input[type="range"]:hover~z-tooltip{--main-color:var(--color-hover-primary)}input[type="range"]:focus:focus-visible{outline:none}input[type="range"]:disabled,input[type="range"]:disabled~z-tooltip{--main-color:var(--color-form-disabled03);cursor:default}input[type="range"]::-webkit-slider-runnable-track{width:100%;height:var(--z-input-range-track-size);border:none;appearance:none;background:linear-gradient(var(--main-color), var(--main-color)) 0 / var(--progress) 100% no-repeat, var(--color-surface03);border-radius:var(--border-radius)}:host([orientation="vertical"]) input[type="range"]{width:var(--z-input-range-thumb-size);height:100%;direction:rtl;writing-mode:vertical-lr}:host([orientation="vertical"]) input[type="range"]::-webkit-slider-runnable-track{width:var(--z-input-range-track-size);height:100%;background:linear-gradient(var(--main-color), var(--main-color)) 0 100% / 100% var(--progress) no-repeat, var(--color-surface03)}input[type="range"]::-webkit-slider-thumb{width:var(--z-input-range-thumb-size);height:var(--z-input-range-thumb-size);box-sizing:border-box;border:calc(var(--z-input-range-thumb-size) / 4.8) solid var(--main-color);margin-top:calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);appearance:none;background-color:var(--color-surface01);border-radius:50%}:host([orientation="vertical"]) input[type="range"]::-webkit-slider-thumb{margin-top:0;margin-left:calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2)}input[type="range"]:not(:disabled)::-webkit-slider-runnable-track{cursor:pointer}input[type="range"]:not(:disabled)::-webkit-slider-thumb{cursor:grab}input[type="range"]:focus:not(:active)::-webkit-slider-thumb{box-shadow:var(--shadow-focus-primary)}input[type="range"]:active:not(:disabled)::-webkit-slider-thumb{cursor:grabbing}input[type="range"]::-moz-range-track{width:100%;height:var(--z-input-range-track-size);border:none;appearance:none;background:var(--color-surface03);border-radius:var(--border-radius)}:host([orientation="vertical"]) input[type="range"]::-moz-range-track{width:var(--z-input-range-track-size);height:100%}input[type="range"]::-moz-range-progress{height:var(--z-input-range-track-size);border:none;background:var(--main-color);border-radius:var(--border-radius)}:host([orientation="vertical"]) input[type="range"]::-moz-range-progress{width:var(--z-input-range-track-size);height:auto}input[type="range"]::-moz-range-thumb{width:var(--z-input-range-thumb-size);height:var(--z-input-range-thumb-size);box-sizing:border-box;border:calc(var(--z-input-range-thumb-size) / 4.8) solid var(--main-color);margin-top:calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);appearance:none;background-color:var(--color-surface01);border-radius:50%}:host([orientation="vertical"]) input[type="range"]::-moz-range-thumb{margin-top:0;margin-left:calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2)}input[type="range"]:not(:disabled)::-moz-range-track,input[type="range"]:not(:disabled)::-moz-range-progress{cursor:pointer}input[type="range"]:not(:disabled)::-moz-range-thumb{cursor:grab}input[type="range"]:active:not(:disabled)::-moz-range-thumb{cursor:grabbing}input[type="range"]:focus:not(:active)::-moz-range-thumb{box-shadow:var(--shadow-focus-primary)}.tooltip-guide{--progress-position:calc( (var(--progress-ratio) * (100% - var(--z-input-range-thumb-size))) + (var(--z-input-range-thumb-size) / 2) );position:absolute;z-index:-1;top:0;left:var(--progress-position);width:var(--z-input-range-thumb-size);height:var(--z-input-range-thumb-size);background:transparent;pointer-events:none;transform:translateX(-50%)}:host([orientation="vertical"]) .tooltip-guide{top:auto;bottom:var(--progress-position);left:0;transform:translateY(50%)}z-tooltip{--main-color:var(--color-primary01);--z-tooltip-theme--surface:var(--main-color);--z-tooltip-theme--text:var(--color-text-inverse);--z-tooltip-padding:calc(var(--space-unit) / 2)}z-tooltip .current-value{min-width:calc(var(--space-unit) * 3.5)}.edges{display:flex;justify-content:space-between}.edges :is(.min,.max){min-width:var(--z-input-range-thumb-size);text-align:center}:host([orientation="vertical"]) .edges{display:none}`;const f=()=>`: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 b=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.rangeInput=i(this,"rangeInput",7);this.rangeChange=i(this,"rangeChange",7);this.internals=this.attachInternals();this.disabled=false;this.htmlId=`z-input-range-${h()}`;this.max=100;this.min=0;this.showEdges=false;this.step=1;this.value=0;this.currentValue=this.value;this.showValueTooltip=false;this.needsNativeValueSync=false}get ariaLabel(){var t;return(t=this.htmlAriaLabel)!==null&&t!==void 0?t:this.orientation===r.VERTICAL?this.label:undefined}get tooltipPosition(){var t;return(t=this.valuePosition)!==null&&t!==void 0?t:this.orientation===r.VERTICAL?s.LEFT:s.TOP}updateCurrentValue(t){if(Number.isNaN(t)||t===this.currentValue){return}this.currentValue=t;this.internals.setFormValue(this.currentValue.toString())}getCurrentRatio(){const t=this.max-this.min;if(t<=0){return 0}const e=(this.currentValue-this.min)/t;return Math.min(1,Math.max(0,e))}updateProgress(){var t,e;const i=this.getCurrentRatio();const n=i*100;(t=this.host)===null||t===void 0?void 0:t.style.setProperty("--progress-ratio",`${i}`);(e=this.host)===null||e===void 0?void 0:e.style.setProperty("--progress",`${n}%`)}syncCurrentValueFromNativeInput(){if(!this.inputRef){return}this.updateCurrentValue(this.inputRef.valueAsNumber);this.updateProgress()}onInput(t){t.stopPropagation();this.syncCurrentValueFromNativeInput();this.rangeInput.emit(this.currentValue)}onChange(t){t.stopPropagation();this.syncCurrentValueFromNativeInput();this.rangeChange.emit(this.currentValue)}onConstraintsChange(){this.needsNativeValueSync=true}componentDidLoad(){this.needsNativeValueSync=true;this.syncCurrentValueFromNativeInput()}componentDidRender(){if(!this.needsNativeValueSync){return}this.syncCurrentValueFromNativeInput();this.needsNativeValueSync=false}render(){return n(o,{key:"4297a1ce9ebf313882a70733661321a2f5bde38d"},this.label&&n("label",{key:"933af2d529a852f226e0fe9eb18109fc5b7feccd",class:"z-label",htmlFor:this.htmlId},this.label),n("div",{key:"5a6a44ec7bc2fe7a292474027c1f39fc6d7cb9aa",class:"input-container body-3"},n("input",{key:"2759d81abdf6106cd29a261081b2d60495d2fe8d",ref:t=>this.inputRef=t,type:"range","aria-label":this.ariaLabel,id:this.htmlId,disabled:this.disabled,min:this.min,max:this.max,step:this.step,value:this.currentValue,onInput:t=>this.onInput(t),onChange:t=>this.onChange(t),onFocus:()=>this.showValueTooltip=true,onBlur:()=>this.showValueTooltip=false}),n("div",{key:"252ee3a382b279cf6bb397d066300dd97cca2537",class:"tooltip-guide",ref:t=>this.tooltipGuideRef=t}),n("z-tooltip",{key:"e8795cd4df104297809f79f13fdf5317cbb20ec1",position:this.tooltipPosition,bindTo:this.tooltipGuideRef,open:this.showValueTooltip,closable:false},n("div",{key:"92186a95ac641beaff9afdd95537f85161ab7186",class:"current-value"},this.currentValue))),this.showEdges&&n("div",{key:"d09e29dc8bef5b376a5d04d138f70c5c43f8bebe",class:"edges body-3"},n("span",{key:"fea33d9d289b5f31da1b0c756b347fa25892940f",class:"min"},this.min),n("span",{key:"602ac1fc4957b2262bb2bb2c802898c6296e31f6",class:"max"},this.max)))}static get formAssociated(){return true}get host(){return this}static get watchers(){return{min:[{onConstraintsChange:0}],max:[{onConstraintsChange:0}],step:[{onConstraintsChange:0}],value:[{onConstraintsChange:0}]}}static get style(){return d()+f()}},[65,"z-input-range",{disabled:[4],htmlAriaLabel:[1,"html-aria-label"],htmlId:[1,"html-id"],label:[1],max:[2],min:[2],orientation:[513],showEdges:[4,"show-edges"],size:[513],step:[2],value:[2],valuePosition:[1,"value-position"],currentValue:[32],showValueTooltip:[32]},undefined,{min:[{onConstraintsChange:0}],max:[{onConstraintsChange:0}],step:[{onConstraintsChange:0}],value:[{onConstraintsChange:0}]}]);function v(){if(typeof customElements==="undefined"){return}const t=["z-input-range","z-popover","z-tooltip"];t.forEach((t=>{switch(t){case"z-input-range":if(!customElements.get(a(t))){customElements.define(a(t),b)}break;case"z-popover":if(!customElements.get(a(t))){l()}break;case"z-tooltip":if(!customElements.get(a(t))){g()}break}}))}const c=b;const p=v;export{c as ZInputRange,p as defineCustomElement};
2
+ //# sourceMappingURL=z-input-range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","typographyCss","ZInputRange","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","disabled","htmlId","randomId","max","min","showEdges","step","value","currentValue","showValueTooltip","needsNativeValueSync","ariaLabel","_a","htmlAriaLabel","orientation","Orientation","VERTICAL","label","undefined","tooltipPosition","valuePosition","PopoverPosition","LEFT","TOP","updateCurrentValue","nextValue","Number","isNaN","internals","setFormValue","toString","getCurrentRatio","range","ratio","Math","updateProgress","progress","host","style","setProperty","_b","syncCurrentValueFromNativeInput","inputRef","valueAsNumber","onInput","event","stopPropagation","rangeInput","emit","onChange","rangeChange","onConstraintsChange","componentDidLoad","componentDidRender","render","h","Host","key","class","htmlFor","ref","el","type","id","onFocus","onBlur","tooltipGuideRef","position","bindTo","open","closable"],"sources":["src/components/z-input-range/styles.css?tag=z-input-range&encapsulation=shadow","src/tokens/typography.css?tag=z-input-range&encapsulation=shadow","src/components/z-input-range/index.tsx"],"sourcesContent":[":host,\n* {\n box-sizing: border-box;\n}\n\n:host {\n /* Internal CSS variable used to store the progress of the input range as a percentage.\n Needed to color the progress in the runnable track of the input (only Firefox natively provides a pseudo-element to do that: `::-moz-range-progress`).\n The value is updated by the component. */\n --progress: 0%;\n\n /* Internal CSS variable used to store the ratio of the current value to the total range, used for positioning the tooltip guide.\n The value is updated by the component. */\n --progress-ratio: 0;\n --z-input-range-thumb-size: calc(var(--space-unit) * 3);\n\n display: flex;\n width: fit-content;\n height: fit-content;\n flex-direction: column;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host([size=\"small\"]) {\n --z-input-range-thumb-size: calc(var(--space-unit) * 2);\n}\n\n:host([size=\"x-small\"]) {\n --z-input-range-thumb-size: calc(var(--space-unit) * 1.5);\n}\n\n:host([orientation=\"vertical\"]) {\n height: 100%;\n flex-direction: row;\n}\n\n.input-container {\n /* Thickness of the track. It is calculated as one-third of the thumb size. */\n --z-input-range-track-size: calc(var(--z-input-range-thumb-size) / 3);\n\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n}\n\nlabel.z-label {\n padding: 0;\n margin-bottom: calc(var(--space-unit) * 1.5);\n}\n\n:host([orientation=\"vertical\"]) label.z-label {\n display: none;\n}\n\ninput[type=\"range\"] {\n --main-color: var(--color-primary01);\n\n width: 100%;\n height: var(--z-input-range-thumb-size);\n padding: 0;\n margin: 0;\n appearance: none;\n background: transparent;\n writing-mode: horizontal-tb;\n}\n\ninput[type=\"range\"]:hover,\ninput[type=\"range\"]:hover ~ z-tooltip {\n --main-color: var(--color-hover-primary);\n}\n\ninput[type=\"range\"]:focus:focus-visible {\n outline: none;\n}\n\ninput[type=\"range\"]:disabled,\ninput[type=\"range\"]:disabled ~ z-tooltip {\n --main-color: var(--color-form-disabled03);\n\n cursor: default;\n}\n\ninput[type=\"range\"]::-webkit-slider-runnable-track {\n width: 100%;\n height: var(--z-input-range-track-size);\n border: none;\n appearance: none;\n background:\n linear-gradient(var(--main-color), var(--main-color)) 0 / var(--progress) 100% no-repeat,\n var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"] {\n width: var(--z-input-range-thumb-size);\n height: 100%;\n direction: rtl;\n writing-mode: vertical-lr;\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-webkit-slider-runnable-track {\n width: var(--z-input-range-track-size);\n height: 100%;\n background:\n linear-gradient(var(--main-color), var(--main-color)) 0 100% / 100% var(--progress) no-repeat,\n var(--color-surface03);\n}\n\ninput[type=\"range\"]::-webkit-slider-thumb {\n width: var(--z-input-range-thumb-size);\n height: var(--z-input-range-thumb-size);\n box-sizing: border-box;\n border: calc(var(--z-input-range-thumb-size) / 4.8) solid var(--main-color);\n margin-top: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n appearance: none;\n background-color: var(--color-surface01);\n border-radius: 50%;\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-webkit-slider-thumb {\n margin-top: 0;\n margin-left: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n}\n\ninput[type=\"range\"]:not(:disabled)::-webkit-slider-runnable-track {\n cursor: pointer;\n}\n\ninput[type=\"range\"]:not(:disabled)::-webkit-slider-thumb {\n cursor: grab;\n}\n\ninput[type=\"range\"]:focus:not(:active)::-webkit-slider-thumb {\n box-shadow: var(--shadow-focus-primary);\n}\n\ninput[type=\"range\"]:active:not(:disabled)::-webkit-slider-thumb {\n cursor: grabbing;\n}\n\n/* --- Firefox styles --- */\n\n/* All styles must be duplicated, because using comma-separated selectors\n(like `input[type=\"range\"]::-webkit-slider-thumb, input[type=\"range\"]::-moz-range-thumb`) would break webkit styles...\n*/\ninput[type=\"range\"]::-moz-range-track {\n width: 100%;\n height: var(--z-input-range-track-size);\n border: none;\n appearance: none;\n background: var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-moz-range-track {\n width: var(--z-input-range-track-size);\n height: 100%;\n}\n\ninput[type=\"range\"]::-moz-range-progress {\n height: var(--z-input-range-track-size);\n border: none;\n background: var(--main-color);\n border-radius: var(--border-radius);\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-moz-range-progress {\n width: var(--z-input-range-track-size);\n height: auto;\n}\n\ninput[type=\"range\"]::-moz-range-thumb {\n width: var(--z-input-range-thumb-size);\n height: var(--z-input-range-thumb-size);\n box-sizing: border-box;\n border: calc(var(--z-input-range-thumb-size) / 4.8) solid var(--main-color);\n margin-top: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n appearance: none;\n background-color: var(--color-surface01);\n border-radius: 50%;\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-moz-range-thumb {\n margin-top: 0;\n margin-left: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n}\n\ninput[type=\"range\"]:not(:disabled)::-moz-range-track,\ninput[type=\"range\"]:not(:disabled)::-moz-range-progress {\n cursor: pointer;\n}\n\ninput[type=\"range\"]:not(:disabled)::-moz-range-thumb {\n cursor: grab;\n}\n\ninput[type=\"range\"]:active:not(:disabled)::-moz-range-thumb {\n cursor: grabbing;\n}\n\ninput[type=\"range\"]:focus:not(:active)::-moz-range-thumb {\n box-shadow: var(--shadow-focus-primary);\n}\n\n/* --- End of Firefox styles --- */\n\n.tooltip-guide {\n --progress-position: calc(\n (var(--progress-ratio) * (100% - var(--z-input-range-thumb-size))) + (var(--z-input-range-thumb-size) / 2)\n );\n\n position: absolute;\n z-index: -1;\n top: 0;\n\n /* `--progress` is good for painting the filled track, but not enough for representing the thumb center.\n * The thumb center cannot go from 0 to 100%:\n * at min it sits at thumbSize/2, and at max it sits at width - thumbSize/2.\n * So we map a normalized ratio (0..1) over the usable travel distance\n * (width - thumbSize), then add thumbSize/2 to get the correct center coordinate.\n */\n left: var(--progress-position);\n width: var(--z-input-range-thumb-size);\n height: var(--z-input-range-thumb-size);\n background: transparent;\n pointer-events: none;\n transform: translateX(-50%);\n}\n\n:host([orientation=\"vertical\"]) .tooltip-guide {\n top: auto;\n bottom: var(--progress-position);\n left: 0;\n transform: translateY(50%);\n}\n\nz-tooltip {\n --main-color: var(--color-primary01);\n --z-tooltip-theme--surface: var(--main-color);\n --z-tooltip-theme--text: var(--color-text-inverse);\n --z-tooltip-padding: calc(var(--space-unit) / 2);\n}\n\nz-tooltip .current-value {\n min-width: calc(var(--space-unit) * 3.5);\n}\n\n.edges {\n display: flex;\n justify-content: space-between;\n}\n\n.edges :is(.min, .max) {\n min-width: var(--z-input-range-thumb-size); /* visually align single digit values to the center of the thumb */\n text-align: center;\n}\n\n:host([orientation=\"vertical\"]) .edges {\n display: none;\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 {\n AttachInternals,\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ControlSize, Orientation, PopoverPosition} from \"../../beans\";\nimport {randomId} from \"../../utils/utils\";\n\n/**\n * Input range component.\n */\n@Component({\n tag: \"z-input-range\",\n styleUrls: [\"styles.css\", \"../../tokens/typography.css\"],\n shadow: true,\n formAssociated: true,\n})\nexport class ZInputRange implements ComponentInterface {\n @Element() host: HTMLZInputRangeElement;\n\n @AttachInternals() internals: ElementInternals;\n\n /** Whether the input range is disabled. */\n @Prop()\n disabled = false;\n\n /**\n * The aria label of the input range. for accessibility.\n * Not necessary if the `label` prop is set.\n */\n @Prop()\n htmlAriaLabel: string;\n\n /** ID of the input range. */\n @Prop()\n htmlId = `z-input-range-${randomId()}`;\n\n /**\n * The label of the input range.\n * When `orientation` is set to `vertical`, the label is not visible but used as `aria-label`, unless `htmlAriaLabel` is provided.\n */\n @Prop()\n label: string;\n\n /** The greatest value in the range of permitted values. */\n @Prop()\n max = 100;\n\n /** The lowest value in the range of permitted values. */\n @Prop()\n min = 0;\n\n /** The orientation of the input range. */\n @Prop({reflect: true})\n orientation: Orientation;\n\n /** Whether to show `min` and `max` values of the input range. Only visible with the `horizontal` orientation. */\n @Prop()\n showEdges = false;\n\n /** The size of the input range. Default: `ControlSize.BIG` */\n @Prop({reflect: true})\n size: ControlSize.BIG;\n\n /** The step value for the input range. */\n @Prop()\n step = 1;\n\n /** The value of the input range. */\n @Prop()\n value = 0;\n\n /**\n * The position of the tooltip displaying the current value.\n * Defaults to `top` for horizontal orientation and `left` for vertical orientation.\n * May be necessary to adjust this prop when the input range is close to the edges of the screen,\n * to prevent the tooltip from showing out of the screen or in an unintended position due to auto adjustment.\n * For example, for a horizontal input range close to the top of the screen, you may want to set this prop to `bottom`.\n */\n @Prop()\n valuePosition: PopoverPosition.TOP | PopoverPosition.BOTTOM | PopoverPosition.LEFT | PopoverPosition.RIGHT;\n\n /** Emitted when the value of the input range is being changed (`input` native event). */\n @Event()\n rangeInput: EventEmitter<number>;\n\n /** Emitted when the value of the input range has changed (`change` native event). */\n @Event()\n rangeChange: EventEmitter<number>;\n\n /** The current value of the input range synchronized with the native input element. */\n @State()\n currentValue = this.value;\n\n /**\n * Whether to show the tooltip displaying the current value.\n * The tooltip is shown only when the input range is focused or while the user is changing the value.\n */\n @State()\n showValueTooltip = false;\n\n /**\n * Whether the native input value needs to be synced with the component state.\n * This is necessary when the `step` prop changes, as the browser may round the value,\n * so we need to update the component state accordingly.\n */\n private needsNativeValueSync = false;\n\n private inputRef: HTMLInputElement;\n\n private tooltipGuideRef: HTMLSpanElement;\n\n private get ariaLabel(): string | undefined {\n return this.htmlAriaLabel ?? (this.orientation === Orientation.VERTICAL ? this.label : undefined);\n }\n\n private get tooltipPosition(): typeof this.valuePosition {\n return (\n this.valuePosition ?? (this.orientation === Orientation.VERTICAL ? PopoverPosition.LEFT : PopoverPosition.TOP)\n );\n }\n\n private updateCurrentValue(nextValue: number): void {\n if (Number.isNaN(nextValue) || nextValue === this.currentValue) {\n return;\n }\n\n this.currentValue = nextValue;\n this.internals.setFormValue(this.currentValue.toString());\n }\n\n /** Calculates the current ratio of the input range value. */\n private getCurrentRatio(): number {\n const range = this.max - this.min;\n if (range <= 0) {\n return 0;\n }\n\n const ratio = (this.currentValue - this.min) / range;\n\n return Math.min(1, Math.max(0, ratio));\n }\n\n /** Updates the CSS variables used to color the track progress and tooltip guide position. */\n private updateProgress(): void {\n const ratio = this.getCurrentRatio();\n const progress = ratio * 100;\n\n this.host?.style.setProperty(\"--progress-ratio\", `${ratio}`);\n this.host?.style.setProperty(\"--progress\", `${progress}%`);\n }\n\n /**\n * Syncs current value from native input after render-time browser coercions:\n * when `step` changes, the browser may round the value, so we need to update the component state accordingly.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/range#step\n */\n private syncCurrentValueFromNativeInput(): void {\n if (!this.inputRef) {\n return;\n }\n\n this.updateCurrentValue(this.inputRef.valueAsNumber);\n this.updateProgress();\n }\n\n private onInput(event: InputEvent): void {\n event.stopPropagation();\n this.syncCurrentValueFromNativeInput();\n this.rangeInput.emit(this.currentValue);\n }\n\n private onChange(event: Event): void {\n event.stopPropagation();\n this.syncCurrentValueFromNativeInput();\n this.rangeChange.emit(this.currentValue);\n }\n\n @Watch(\"min\")\n @Watch(\"max\")\n @Watch(\"step\")\n @Watch(\"value\")\n onConstraintsChange(): void {\n this.needsNativeValueSync = true;\n }\n\n componentDidLoad() {\n this.needsNativeValueSync = true;\n this.syncCurrentValueFromNativeInput();\n }\n\n componentDidRender() {\n if (!this.needsNativeValueSync) {\n return;\n }\n\n this.syncCurrentValueFromNativeInput();\n this.needsNativeValueSync = false;\n }\n\n render() {\n return (\n <Host>\n {this.label && (\n <label\n class=\"z-label\"\n htmlFor={this.htmlId}\n >\n {this.label}\n </label>\n )}\n <div class=\"input-container body-3\">\n <input\n ref={(el) => (this.inputRef = el)}\n type=\"range\"\n aria-label={this.ariaLabel}\n id={this.htmlId}\n disabled={this.disabled}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.currentValue}\n onInput={(event) => this.onInput(event)}\n onChange={(event) => this.onChange(event)}\n onFocus={() => (this.showValueTooltip = true)}\n onBlur={() => (this.showValueTooltip = false)}\n />\n <div\n class=\"tooltip-guide\"\n ref={(el) => (this.tooltipGuideRef = el)}\n ></div>\n <z-tooltip\n position={this.tooltipPosition}\n bindTo={this.tooltipGuideRef}\n open={this.showValueTooltip}\n closable={false}\n >\n <div class=\"current-value\">{this.currentValue}</div>\n </z-tooltip>\n </div>\n {this.showEdges && (\n <div class=\"edges body-3\">\n <span class=\"min\">{this.min}</span>\n <span class=\"max\">{this.max}</span>\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"./index7.js";const r=o,t=s;export{r as ZInput,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index7.js";const t=o;const n=s;export{t as ZInput,n as defineCustomElement};
2
+ //# sourceMappingURL=z-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{Z as o,d as s}from"./index10.js";const r=o,t=s;export{r as ZListElement,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index10.js";const t=o;const n=s;export{t as ZListElement,n as defineCustomElement};
2
+ //# sourceMappingURL=z-list-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{Z as o,d as s}from"./index11.js";const r=o,t=s;export{r as ZListGroup,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index11.js";const t=o;const n=s;export{t as ZListGroup,n as defineCustomElement};
2
+ //# sourceMappingURL=z-list-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{Z as o,d as s}from"./index9.js";const r=o,t=s;export{r as ZList,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index9.js";const t=o;const n=s;export{t as ZList,n as defineCustomElement};
2
+ //# sourceMappingURL=z-list.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 i,Host as L,transformTag as e}from"@stencil/core/internal/client";const l=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){const t={};return this.width&&(t.width=t["max-width"]=this.width+"px"),this.height&&(t.height=t["max-height"]=this.height+"px"),i(L,{key:"9401038e196d731be0ca5b2727f58b68fb47442c",style:t,class:{mobile:!!this.mobileLogo}},this.link?i("a",{href:this.link,target:this.targetBlank?"_blank":"_self"},i("img",{alt:this.imageAlt})):i("img",{alt:this.imageAlt}))}static get style(){return":host{display:inline-block;width:255px;height:64px;vertical-align:top}img{display:block;width:100%;height:100%;margin:auto;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}a:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}"}},[1,"z-logo",{width:[2],height:[2],imageAlt:[1,"image-alt"],link:[1],targetBlank:[4,"target-blank"],mobileLogo:[4,"mobile-logo"]}]),s=l,n=function(){"undefined"!=typeof customElements&&["z-logo"].forEach((t=>{"z-logo"===t&&(customElements.get(e(t))||customElements.define(e(t),l))}))};export{s as ZLogo,n as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as i,h as o,Host as e,transformTag as L}from"@stencil/core/internal/client";const l=()=>`:host{display:inline-block;width:255px;height:64px;vertical-align:top}img{display:block;width:100%;height:100%;margin:auto;content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}a{display:block;width:100%;height:100%}a:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}`;const s=t(class t extends i{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow()}render(){const t={};if(this.width){t["width"]=t["max-width"]=`${this.width}px`}if(this.height){t["height"]=t["max-height"]=`${this.height}px`}return o(e,{key:"35e05af6b6f866d00ee18e9f88c56665a70ffaf1",style:t,class:{mobile:!!this.mobileLogo}},this.link?o("a",{href:this.link,target:this.targetBlank?"_blank":"_self"},o("img",{alt:this.imageAlt})):o("img",{alt:this.imageAlt}))}static get style(){return l()}},[1,"z-logo",{width:[2],height:[2],imageAlt:[1,"image-alt"],link:[1],targetBlank:[4,"target-blank"],mobileLogo:[4,"mobile-logo"]}]);function n(){if(typeof customElements==="undefined"){return}const t=["z-logo"];t.forEach((t=>{switch(t){case"z-logo":if(!customElements.get(L(t))){customElements.define(L(t),s)}break}}))}const g=s;const a=n;export{g as ZLogo,a as defineCustomElement};
2
+ //# sourceMappingURL=z-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZLogo","__stencil_proxyCustomElement","HTMLElement","render","style","this","width","height","h","Host","key","class","mobile","mobileLogo","link","href","target","targetBlank","alt","imageAlt"],"sources":["src/components/z-logo/styles.css?tag=z-logo&encapsulation=shadow","src/components/z-logo/index.tsx"],"sourcesContent":[":host {\n display: inline-block;\n width: 255px;\n height: 64px;\n vertical-align: top;\n}\n\nimg {\n display: block;\n width: 100%;\n height: 100%;\n margin: auto;\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n\na {\n display: block;\n width: 100%;\n height: 100%;\n}\n\na:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(.mobile) {\n width: 31px;\n height: 40px;\n}\n\n:host(.mobile) img {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n}\n","import {Component, ComponentInterface, Host, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-logo\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZLogo implements ComponentInterface {\n /** image width */\n @Prop()\n width?: number;\n\n /** image height */\n @Prop()\n height?: number;\n\n /** alternative image text */\n @Prop()\n imageAlt?: string;\n\n /** link url (optional) */\n @Prop()\n link?: string;\n\n /** link target: true means _blank, false means _self */\n @Prop()\n targetBlank?: boolean;\n\n /** if true, the mobile logo is displayed, otherwise the desktop one */\n @Prop()\n mobileLogo?: boolean;\n\n render(): HTMLZLogoElement {\n const style = {};\n\n if (this.width) {\n style[\"width\"] = style[\"max-width\"] = `${this.width}px`;\n }\n\n if (this.height) {\n style[\"height\"] = style[\"max-height\"] = `${this.height}px`;\n }\n\n return (\n <Host\n style={style}\n class={{mobile: !!this.mobileLogo}}\n >\n {this.link ? (\n <a\n href={this.link}\n target={this.targetBlank ? \"_blank\" : \"_self\"}\n >\n <img alt={this.imageAlt} />\n </a>\n ) : (\n <img alt={this.imageAlt} />\n )}\n </Host>\n );\n }\n}\n"],"mappings":"uHAAA,MAAMA,EAAY,IAAM,m5I,MCOXC,EAAKC,EAAA,MAAAD,UAAAE,E,iFAyBhB,MAAAC,GACE,MAAMC,EAAQ,GAEd,GAAIC,KAAKC,MAAO,CACdF,EAAM,SAAWA,EAAM,aAAe,GAAGC,KAAKC,S,CAGhD,GAAID,KAAKE,OAAQ,CACfH,EAAM,UAAYA,EAAM,cAAgB,GAAGC,KAAKE,U,CAGlD,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHN,MAAOA,EACPO,MAAO,CAACC,SAAUP,KAAKQ,aAEtBR,KAAKS,KACJN,EAAA,KACEO,KAAMV,KAAKS,KACXE,OAAQX,KAAKY,YAAc,SAAW,SAEtCT,EAAA,OAAKU,IAAKb,KAAKc,YAGjBX,EAAA,OAAKU,IAAKb,KAAKc,W","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as e,HTMLElement as t,createEvent as n,h as i,Host as o,transformTag as a}from"@stencil/core/internal/client";import{d as l}from"./index3.js";const s=e(class extends t{toggle(){this.hasContent&&(this.open=!this.open,this.open?this.opened.emit():this.closed.emit())}handleClick(e){this.floating&&this.open&&!this.hostElement.contains(e.target)&&(this.reflow(),this.open=!1,this.closed.emit())}onOpenChanged(){this.open?this.reflow(!0):cancelAnimationFrame(this.raf)}constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.opened=n(this,"opened",7),this.closed=n(this,"closed",7),this.floating=!1,this.open=!1,this.verticalContext=!1,this.toggle=this.toggle.bind(this),this.checkContent=this.checkContent.bind(this),this.onLabelSlotChange=this.onLabelSlotChange.bind(this),this.onItemsChange=this.onItemsChange.bind(this)}componentWillLoad(){this.checkContent()}onLabelSlotChange(e){const t=e.target.assignedElements()[0];t.dataset.text=null==t?void 0:t.textContent}reflow(e=!1){if(this.content){const{style:e}=this.content,{left:t}=this.hostElement.getBoundingClientRect(),n=getComputedStyle(this.content).width,i=n?parseFloat(n.replace("px","")):375;e.left=Math.min(window.innerWidth-t-i-30,0)+"px"}e&&(this.raf=requestAnimationFrame(this.reflow.bind(this,e)))}checkContent(){this.hasHeader=!!this.hostElement.querySelectorAll("[slot=header]").length,this.hasContent=!!this.hostElement.querySelectorAll("[slot=item]").length||this.hasHeader}onItemsChange(){this.checkContent(),this.hostElement.querySelectorAll("[slot=item]").forEach((e=>{e.setAttribute("role","menuitem"),e.dataset.text=e.textContent}))}renderMenuLabel(){return this.hasContent?i("button",{class:"menu-label","aria-expanded":this.open?"true":"false","aria-label":this.open?"Chiudi menù":"Apri menù",onClick:this.toggle},i("div",{class:"menu-label-content"},i("slot",{onSlotchange:this.onLabelSlotChange}),i("z-icon",{name:this.open?"chevron-up":"chevron-down"}))):i("div",{class:"menu-label"},i("div",{class:"menu-label-content"},i("slot",{onSlotchange:this.onLabelSlotChange})))}render(){return i(o,{key:"dde3e828c6617646ed848e91c53dc624fc23bc2d"},this.renderMenuLabel(),this.hasContent&&i("div",{key:"9888a27020733770e87e87f2ac6193dc0430e36b",class:"content",ref:e=>this.content=e},this.hasHeader&&i("header",{key:"09a21728b3cfc859dbdf59b2441326a610c2869f",class:"header"},i("slot",{key:"72bbb4073b1e76569770dc7089526e9f9b055089",name:"header",onSlotchange:this.checkContent})),i("div",{key:"f53e86dea26861a62f3e924e67f14c97e42f7861",class:"items",role:"menu"},i("slot",{key:"2b6e230e79f472828b85ba40281c9781a14dcef6",name:"item",onSlotchange:this.onItemsChange}))))}get hostElement(){return this}static get watchers(){return{open:[{onOpenChanged:0}]}}static get style(){return':host,::slotted(*),*{box-sizing:border-box}:host{--z-menu-label-color:var(--color-default-text);position:relative;display:inline-flex;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:"";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}'}},[257,"z-menu-deprecated",{active:[516],floating:[516],open:[1540],verticalContext:[516,"vertical-context"],hasHeader:[32],hasContent:[32]},[[4,"click","handleClick"]],{open:[{onOpenChanged:0}]}]),c=s,r=function(){"undefined"!=typeof customElements&&["z-menu-deprecated","z-icon"].forEach((e=>{switch(e){case"z-menu-deprecated":customElements.get(a(e))||customElements.define(a(e),s);break;case"z-icon":customElements.get(a(e))||l()}}))};export{c as ZMenuDeprecated,r as defineCustomElement}
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as n,h as i,Host as o,transformTag as a}from"@stencil/core/internal/client";import{d as s}from"./index3.js";const l=()=>`:host,::slotted(*),*{box-sizing:border-box}:host{--z-menu-label-color:var(--color-default-text);position:relative;display:inline-flex;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible){box-shadow:none !important}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:"";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-primary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-primary01);font-weight:var(--font-bd)}`;const r=e(class e extends t{toggle(){if(!this.hasContent){return}this.open=!this.open;if(this.open){this.opened.emit()}else{this.closed.emit()}}handleClick(e){if(!this.floating||!this.open||this.hostElement.contains(e.target)){return}this.reflow();this.open=false;this.closed.emit()}onOpenChanged(){if(this.open){this.reflow(true)}else{cancelAnimationFrame(this.raf)}}constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.opened=n(this,"opened",7);this.closed=n(this,"closed",7);this.floating=false;this.open=false;this.verticalContext=false;this.toggle=this.toggle.bind(this);this.checkContent=this.checkContent.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onItemsChange=this.onItemsChange.bind(this)}componentWillLoad(){this.checkContent()}onLabelSlotChange(e){const t=e.target.assignedElements()[0];t.dataset.text=t===null||t===void 0?void 0:t.textContent}reflow(e=false){if(this.content){const{style:e}=this.content;const{left:t}=this.hostElement.getBoundingClientRect();const n=getComputedStyle(this.content).width;const i=n?parseFloat(n.replace("px","")):375;const o=30;e.left=`${Math.min(window.innerWidth-t-i-o,0)}px`}if(e){this.raf=requestAnimationFrame(this.reflow.bind(this,e))}}checkContent(){this.hasHeader=!!this.hostElement.querySelectorAll("[slot=header]").length;this.hasContent=!!this.hostElement.querySelectorAll("[slot=item]").length||this.hasHeader}onItemsChange(){this.checkContent();const e=this.hostElement.querySelectorAll("[slot=item]");e.forEach((e=>{e.setAttribute("role","menuitem");e.dataset.text=e.textContent}))}renderMenuLabel(){if(this.hasContent){return i("button",{class:"menu-label","aria-expanded":this.open?"true":"false","aria-label":this.open?"Chiudi menù":"Apri menù",onClick:this.toggle},i("div",{class:"menu-label-content"},i("slot",{onSlotchange:this.onLabelSlotChange}),i("z-icon",{name:this.open?"chevron-up":"chevron-down"})))}return i("div",{class:"menu-label"},i("div",{class:"menu-label-content"},i("slot",{onSlotchange:this.onLabelSlotChange})))}render(){return i(o,{key:"dde3e828c6617646ed848e91c53dc624fc23bc2d"},this.renderMenuLabel(),this.hasContent&&i("div",{key:"9888a27020733770e87e87f2ac6193dc0430e36b",class:"content",ref:e=>this.content=e},this.hasHeader&&i("header",{key:"09a21728b3cfc859dbdf59b2441326a610c2869f",class:"header"},i("slot",{key:"72bbb4073b1e76569770dc7089526e9f9b055089",name:"header",onSlotchange:this.checkContent})),i("div",{key:"f53e86dea26861a62f3e924e67f14c97e42f7861",class:"items",role:"menu"},i("slot",{key:"2b6e230e79f472828b85ba40281c9781a14dcef6",name:"item",onSlotchange:this.onItemsChange}))))}get hostElement(){return this}static get watchers(){return{open:[{onOpenChanged:0}]}}static get style(){return l()}},[257,"z-menu-deprecated",{active:[516],floating:[516],open:[1540],verticalContext:[516,"vertical-context"],hasHeader:[32],hasContent:[32]},[[4,"click","handleClick"]],{open:[{onOpenChanged:0}]}]);function c(){if(typeof customElements==="undefined"){return}const e=["z-menu-deprecated","z-icon"];e.forEach((e=>{switch(e){case"z-menu-deprecated":if(!customElements.get(a(e))){customElements.define(a(e),r)}break;case"z-icon":if(!customElements.get(a(e))){s()}break}}))}const h=r;const d=c;export{h as ZMenuDeprecated,d as defineCustomElement};
2
+ //# sourceMappingURL=z-menu-deprecated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMenuDeprecated","__stencil_proxyCustomElement","HTMLElement","toggle","this","hasContent","open","opened","emit","closed","handleClick","ev","floating","hostElement","contains","target","reflow","onOpenChanged","cancelAnimationFrame","raf","constructor","registerHost","verticalContext","bind","checkContent","onLabelSlotChange","onItemsChange","componentWillLoad","labelElement","assignedElements","dataset","text","textContent","live","content","style","left","getBoundingClientRect","widthPx","getComputedStyle","width","parseFloat","replace","safeScrollbarSpace","Math","min","window","innerWidth","requestAnimationFrame","hasHeader","querySelectorAll","length","items","forEach","item","setAttribute","renderMenuLabel","h","class","onClick","onSlotchange","name","render","Host","key","ref","el","role"],"sources":["src/components/deprecated/z-menu-deprecated/styles.css?tag=z-menu-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-deprecated/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n:host {\n /**\n * @prop --z-menu-label-color: Color of the label's text.\n */\n --z-menu-label-color: var(--color-default-text);\n\n position: relative;\n display: inline-flex;\n flex-direction: column;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.menu-label {\n padding: 0;\n border: 0;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n outline: none;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-within {\n z-index: 1;\n padding-right: calc(var(--space-unit) * 0.5);\n padding-left: calc(var(--space-unit) * 0.5);\n margin-right: calc(var(--space-unit) * -0.5);\n margin-left: calc(var(--space-unit) * -0.5);\n box-shadow: var(--shadow-focus-primary);\n}\n\n.menu-label .menu-label-content {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n:host(:is([active], [open])) .menu-label-content,\n.menu-label:focus-within .menu-label-content {\n font-weight: var(--font-bd);\n}\n\n:host(:is([active], [open])) .menu-label-content ::slotted(*),\n.menu-label:focus-within .menu-label-content ::slotted(*) {\n letter-spacing: normal;\n}\n\n:host .menu-label .menu-label-content ::slotted(*:not([slot]):focus:focus-visible) {\n box-shadow: none !important;\n}\n\n/* border */\n:host(:is([active], [open], [vertical-context])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n content: \"\";\n pointer-events: none;\n}\n\n:host([vertical-context]) .menu-label-content::after {\n height: var(--border-size-small);\n background-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label .menu-label-content::after,\n.menu-label .menu-label-content:hover::after,\n.menu-label:focus-within .menu-label-content::after {\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n}\n\n/* Prevents layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.menu-label .menu-label-content ::slotted(*) {\n display: inline-flex;\n width: 100%;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color);\n font-family: var(--font-family-sans);\n font-size: var(--font-size-5);\n font-weight: inherit;\n letter-spacing: 0.36px; /* increasing the letter spacing of the regular text helps reduce the size difference between regular and bold text */\n line-height: 1.2;\n outline: none;\n}\n\n.menu-label .menu-label-content ::slotted(*),\n.menu-label .menu-label-content z-icon {\n padding: var(--space-unit) 0;\n}\n\n.menu-label .menu-label-content z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: currentcolor;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.\n */\n@Component({\n tag: \"z-menu-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZMenuDeprecatedElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = false;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n private content: HTMLElement;\n\n /** Animation frame request id. */\n private raf: number;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n if (this.open) {\n this.opened.emit();\n } else {\n this.closed.emit();\n }\n }\n\n /** Close the floating list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.floating || !this.open || this.hostElement.contains(ev.target as Element)) {\n return;\n }\n\n this.reflow();\n this.open = false;\n this.closed.emit();\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (this.open) {\n this.reflow(true);\n } else {\n cancelAnimationFrame(this.raf);\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (this.content) {\n const {style} = this.content;\n const {left} = this.hostElement.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.hostElement.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.hostElement.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n /**\n * Set `menuitem` role to all menu items.\n * Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).\n */\n private onItemsChange(): void {\n this.checkContent();\n const items = this.hostElement.querySelectorAll<HTMLElement>(\"[slot=item]\");\n items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.dataset.text = item.textContent;\n });\n }\n\n private renderMenuLabel(): HTMLButtonElement | HTMLDivElement {\n if (this.hasContent) {\n return (\n <button\n class=\"menu-label\"\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n onClick={this.toggle}\n >\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </div>\n </button>\n );\n }\n\n return (\n <div class=\"menu-label\">\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZMenuElement {\n return (\n <Host>\n {this.renderMenuLabel()}\n\n {this.hasContent && (\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n ></slot>\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n ></slot>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as o,h as i,Host as s,transformTag as a}from"@stencil/core/internal/client";import{d as n}from"./index3.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.opened=o(this,"opened",7),this.closed=o(this,"closed",7)}toggle(){this.hasContent&&(this.open=!this.open,this.open?this.opened.emit():this.closed.emit())}handleClick(t){this.open&&!this.hostElement.contains(t.target)&&(this.open=!1,this.closed.emit())}checkContent(){this.hasContent=this.hostElement.querySelectorAll('[slot="item"]').length>0}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=(null==e?void 0:e.innerText)||null}componentWillLoad(){this.checkContent()}render(){return i(s,{key:"a65fd5af1f2b3b6c9d21c30336b806395624af59",role:"menu",open:this.open},i("button",{key:"88460e785ca428d4a40f4dc9bdd56194a2b64d3e",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this)},i("slot",{key:"b0198e42f9819b2e9c622d4672510d7a9584a1b1",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&i("z-icon",{key:"6b6f41288e53ef83b6817eda49e1a77135552345",name:this.open?"chevron-up":"chevron-down"})),this.open&&i("div",{key:"7721c370a48044d60749f366a718ca266d9afc73",class:"items"},i("slot",{key:"1738da8320d0931abaf8a7dd854456e28bba9781",name:"item",onSlotchange:this.checkContent.bind(this)})))}get hostElement(){return this}static get style(){return':host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}'}},[257,"z-menu-section-deprecated",{active:[516],open:[32],hasContent:[32]},[[4,"click","handleClick"]]]),r=l,c=function(){"undefined"!=typeof customElements&&["z-menu-section-deprecated","z-icon"].forEach((t=>{switch(t){case"z-menu-section-deprecated":customElements.get(a(t))||customElements.define(a(t),l);break;case"z-icon":customElements.get(a(t))||n()}}))};export{r as ZMenuSectionDeprecated,c as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as o,Host as s,transformTag as a}from"@stencil/core/internal/client";import{d as n}from"./index3.js";const l=()=>`:host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-primary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-primary01);font-weight:var(--font-bd)}`;const r=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.opened=i(this,"opened",7);this.closed=i(this,"closed",7)}toggle(){if(!this.hasContent){return}this.open=!this.open;if(this.open){this.opened.emit()}else{this.closed.emit()}}handleClick(t){if(!this.open||this.hostElement.contains(t.target)){return}this.open=false;this.closed.emit()}checkContent(){this.hasContent=this.hostElement.querySelectorAll('[slot="item"]').length>0}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=(e===null||e===void 0?void 0:e.innerText)||null}componentWillLoad(){this.checkContent()}render(){return o(s,{key:"a65fd5af1f2b3b6c9d21c30336b806395624af59",role:"menu",open:this.open},o("button",{key:"88460e785ca428d4a40f4dc9bdd56194a2b64d3e",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this)},o("slot",{key:"b0198e42f9819b2e9c622d4672510d7a9584a1b1",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&o("z-icon",{key:"6b6f41288e53ef83b6817eda49e1a77135552345",name:this.open?"chevron-up":"chevron-down"})),this.open&&o("div",{key:"7721c370a48044d60749f366a718ca266d9afc73",class:"items"},o("slot",{key:"1738da8320d0931abaf8a7dd854456e28bba9781",name:"item",onSlotchange:this.checkContent.bind(this)})))}get hostElement(){return this}static get style(){return l()}},[257,"z-menu-section-deprecated",{active:[516],open:[32],hasContent:[32]},[[4,"click","handleClick"]]]);function c(){if(typeof customElements==="undefined"){return}const t=["z-menu-section-deprecated","z-icon"];t.forEach((t=>{switch(t){case"z-menu-section-deprecated":if(!customElements.get(a(t))){customElements.define(a(t),r)}break;case"z-icon":if(!customElements.get(a(t))){n()}break}}))}const d=r;const f=c;export{d as ZMenuSectionDeprecated,f as defineCustomElement};
2
+ //# sourceMappingURL=z-menu-section-deprecated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMenuSectionDeprecated","__stencil_proxyCustomElement","HTMLElement","toggle","this","hasContent","open","opened","emit","closed","handleClick","ev","hostElement","contains","target","checkContent","querySelectorAll","length","onLabelSlotChange","labelElement","assignedElements","dataset","text","innerText","componentWillLoad","render","h","Host","key","role","class","onClick","bind","onSlotchange","name"],"sources":["src/components/deprecated/z-menu-section-deprecated/styles.css?tag=z-menu-section-deprecated&encapsulation=shadow","src/components/deprecated/z-menu-section-deprecated/index.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host(:is([active], [open])) .label,\n.label:hover {\n border-color: var(--color-primary01);\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items > ::slotted([slot=\"item\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-2);\n line-height: 1.4;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"][active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSectionDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZMenuSectionDeprecatedElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n if (this.open) {\n this.opened.emit();\n } else {\n this.closed.emit();\n }\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"item\"]').length > 0;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.innerText || null;\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"item\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"wKAAA,MAAMA,EAAY,IAAM,67D,MCYXC,EAAsBC,EAAA,MAAAD,UAAAE,E,+IAqBzB,MAAAC,GACN,IAAKC,KAAKC,WAAY,CACpB,M,CAGFD,KAAKE,MAAQF,KAAKE,KAClB,GAAIF,KAAKE,KAAM,CACbF,KAAKG,OAAOC,M,KACP,CACLJ,KAAKK,OAAOD,M,EAMhB,WAAAE,CAAYC,GACV,IAAKP,KAAKE,MAAQF,KAAKQ,YAAYC,SAASF,EAAGG,QAAiB,CAC9D,M,CAGFV,KAAKE,KAAO,MACZF,KAAKK,OAAOD,M,CAMN,YAAAO,GACNX,KAAKC,WAAaD,KAAKQ,YAAYI,iBAAiB,iBAAiBC,OAAS,C,CAOxE,iBAAAC,CAAkBP,GACxB,MAAMQ,EAAgBR,EAAGG,OAA2BM,mBAAmB,GACvED,EAAaE,QAAQC,MAAOH,IAAY,MAAZA,SAAY,SAAZA,EAAcI,YAAa,I,CAGzD,iBAAAC,GACEpB,KAAKW,c,CAGP,MAAAU,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,OACLvB,KAAMF,KAAKE,MAEXoB,EAAA,UAAAE,IAAA,2CACEE,MAAM,QAAO,eACC1B,KAAKE,KAAO,OAAS,QACnCyB,QAAS3B,KAAKD,OAAO6B,KAAK5B,OAE1BsB,EAAA,QAAAE,IAAA,2CAAMK,aAAc7B,KAAKc,kBAAkBc,KAAK5B,QAC/CA,KAAKC,YAAcqB,EAAA,UAAAE,IAAA,2CAAQM,KAAM9B,KAAKE,KAAO,aAAe,kBAE9DF,KAAKE,MACJoB,EAAA,OAAAE,IAAA,2CAAKE,MAAM,SACTJ,EAAA,QAAAE,IAAA,2CACEM,KAAK,OACLD,aAAc7B,KAAKW,aAAaiB,KAAK5B,S","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as s,h as i,Host as o,transformTag as n}from"@stencil/core/internal/client";import{g as a}from"./index2.js";import{d as l}from"./index3.js";const h=t(class extends e{get focusableItem(){return this.items.find((({tabIndex:t})=>0===t))}toggle(){this.hasItems&&(this.open=!this.open)}setItemsA11yAttrs(){this.hasItems&&this.items.forEach((t=>{t.setAttribute("role","menuitem"),t.tabIndex=-1}))}onItemsChange(){this.items=Array.from(this.host.querySelectorAll('[slot="section"]')),this.hasItems=this.items.length>0,this.setItemsA11yAttrs()}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=null==e?void 0:e.textContent}onLabelClick(){this.toggle(),this.setFocus()}onLabelKeydown(t){t.key!==a.ENTER&&t.key!==a.SPACE||(t.preventDefault(),t.stopPropagation(),this.toggle(),this.open&&this.focustFirstItem())}moveFocus(t,e){t.tabIndex=0,setTimeout((()=>{t.focus()}),100),e&&(e.tabIndex=-1)}focustFirstItem(){this.moveFocus(this.items[0])}async focusLastItem(){this.moveFocus(this.items[this.items.length-1])}async setFocus(){this.htmlTabindex=0,setTimeout((()=>{this.label.focus()}),100)}onOpenChange(){this.open?this.opened.emit():(this.setItemsA11yAttrs(),this.closed.emit())}onTabindexChange(){this.label&&(this.label.tabIndex=this.htmlTabindex)}onItemsKeydown(t){switch(t.key){case a.ESC:case a.ARROW_LEFT:if(!this.open)break;t.preventDefault(),t.stopPropagation(),this.moveFocus(this.label,this.focusableItem),this.open=!1;break;case a.ARROW_RIGHT:if(this.open)break;t.preventDefault(),t.stopPropagation(),this.open=!0,this.focustFirstItem();break;case a.ARROW_DOWN:{if(!this.open)break;if(document.activeElement===this.host){t.preventDefault(),t.stopPropagation(),this.focustFirstItem();break}const e=this.items.indexOf(this.focusableItem),s=this.items[e+1];s?(t.preventDefault(),t.stopPropagation(),this.moveFocus(s,this.focusableItem)):(this.htmlTabindex=0,this.focusableItem.tabIndex=-1);break}case a.ARROW_UP:{if(!this.open||document.activeElement===this.host)break;const e=this.items.indexOf(this.focusableItem),s=this.items[e-1];t.preventDefault(),t.stopPropagation(),s?this.moveFocus(s,this.focusableItem):(this.focusableItem.tabIndex=-1,this.setFocus());break}}}constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.opened=s(this,"opened",7),this.closed=s(this,"closed",7),this.htmlTabindex=-1,this.toggle=this.toggle.bind(this),this.onItemsChange=this.onItemsChange.bind(this),this.onLabelSlotChange=this.onLabelSlotChange.bind(this),this.onLabelClick=this.onLabelClick.bind(this),this.onLabelKeydown=this.onLabelKeydown.bind(this),this.onItemsKeydown=this.onItemsKeydown.bind(this)}connectedCallback(){this.onItemsChange()}render(){return i(o,{key:"e2584623ee4db0d3b11804dff89a93afa9b2761b",open:this.open},i("button",{key:"21c6cf5558e6a719e56d2af7bbfef31044030394",ref:t=>this.label=t,class:"label","aria-haspopup":""+!!this.hasItems,"aria-expanded":""+!!this.open,role:"menuitem",tabindex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},i("slot",{key:"59d3f4a1306bc8639a2cdddc2be44bd6c49bdd1b",onSlotchange:this.onLabelSlotChange}),this.hasItems&&i("z-icon",{key:"3448e73ef71fd89e861add9bbb6f020d8e873117",name:this.open?"chevron-up":"chevron-down"})),i("div",{key:"93304aead086952a3bf4235216877289b882971d",class:"items",role:"menu",hidden:!this.open},i("slot",{key:"c0258eaedb4fd8b9296570da1eda75108d9c0af0",name:"section",onSlotchange:this.onItemsChange})))}get host(){return this}static get watchers(){return{open:[{onOpenChange:0}],htmlTabindex:[{onTabindexChange:0}]}}static get style(){return':host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-primary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items[hidden]{display:none}::slotted([slot="section"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot="section"]:last-of-type){border:none}::slotted([slot="section"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}::slotted([slot="section"]:hover),::slotted([slot="section"]:focus:focus-visible),::slotted([slot="section"]:active),::slotted([slot="section"][active]),::slotted([slot="section"][data-active]){color:var(--color-primary01);font-weight:var(--font-bd)}'}},[257,"z-menu-section",{active:[516],htmlTabindex:[2,"html-tabindex"],open:[1028],hasItems:[32],items:[32],focusLastItem:[64],setFocus:[64]},[[0,"keydown","onItemsKeydown"]],{open:[{onOpenChange:0}],htmlTabindex:[{onTabindexChange:0}]}]),c=h,r=function(){"undefined"!=typeof customElements&&["z-menu-section","z-icon"].forEach((t=>{switch(t){case"z-menu-section":customElements.get(n(t))||customElements.define(n(t),h);break;case"z-icon":customElements.get(n(t))||l()}}))};export{c as ZMenuSection,r as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as s,h as i,Host as o,transformTag as n}from"@stencil/core/internal/client";import{g as a}from"./index2.js";import{d as l}from"./index3.js";const h=()=>`:host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-primary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items[hidden]{display:none}::slotted([slot="section"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot="section"]:last-of-type){border:none}::slotted([slot="section"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}::slotted([slot="section"]:hover),::slotted([slot="section"]:focus:focus-visible),::slotted([slot="section"]:active),::slotted([slot="section"][active]),::slotted([slot="section"][data-active]){color:var(--color-primary01);font-weight:var(--font-bd)}`;const c=t(class t extends e{get focusableItem(){return this.items.find((({tabIndex:t})=>t===0))}toggle(){if(!this.hasItems){return}this.open=!this.open}setItemsA11yAttrs(){if(!this.hasItems){return}this.items.forEach((t=>{t.setAttribute("role","menuitem");t.tabIndex=-1}))}onItemsChange(){this.items=Array.from(this.host.querySelectorAll('[slot="section"]'));this.hasItems=this.items.length>0;this.setItemsA11yAttrs()}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=e===null||e===void 0?void 0:e.textContent}onLabelClick(){this.toggle();this.setFocus()}onLabelKeydown(t){if(t.key===a.ENTER||t.key===a.SPACE){t.preventDefault();t.stopPropagation();this.toggle();if(this.open){this.focustFirstItem()}}}moveFocus(t,e){t.tabIndex=0;setTimeout((()=>{t.focus()}),100);if(e){e.tabIndex=-1}}focustFirstItem(){this.moveFocus(this.items[0])}async focusLastItem(){this.moveFocus(this.items[this.items.length-1])}async setFocus(){this.htmlTabindex=0;setTimeout((()=>{this.label.focus()}),100)}onOpenChange(){if(!this.open){this.setItemsA11yAttrs();this.closed.emit()}else{this.opened.emit()}}onTabindexChange(){if(!this.label){return}this.label.tabIndex=this.htmlTabindex}onItemsKeydown(t){switch(t.key){case a.ESC:case a.ARROW_LEFT:if(!this.open){break}t.preventDefault();t.stopPropagation();this.moveFocus(this.label,this.focusableItem);this.open=false;break;case a.ARROW_RIGHT:if(this.open){break}t.preventDefault();t.stopPropagation();this.open=true;this.focustFirstItem();break;case a.ARROW_DOWN:{if(!this.open){break}if(document.activeElement===this.host){t.preventDefault();t.stopPropagation();this.focustFirstItem();break}const e=this.items.indexOf(this.focusableItem);const s=this.items[e+1];if(s){t.preventDefault();t.stopPropagation();this.moveFocus(s,this.focusableItem)}else{this.htmlTabindex=0;this.focusableItem.tabIndex=-1}break}case a.ARROW_UP:{if(!this.open||document.activeElement===this.host){break}const e=this.items.indexOf(this.focusableItem);const s=this.items[e-1];t.preventDefault();t.stopPropagation();if(s){this.moveFocus(s,this.focusableItem)}else{this.focusableItem.tabIndex=-1;this.setFocus()}break}}}constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.opened=s(this,"opened",7);this.closed=s(this,"closed",7);this.htmlTabindex=-1;this.toggle=this.toggle.bind(this);this.onItemsChange=this.onItemsChange.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onLabelClick=this.onLabelClick.bind(this);this.onLabelKeydown=this.onLabelKeydown.bind(this);this.onItemsKeydown=this.onItemsKeydown.bind(this)}connectedCallback(){this.onItemsChange()}render(){return i(o,{key:"fff56aa316372fc2df80738c86be52be59e4deb9",open:this.open},i("button",{key:"89630a6dc1985a9236dd7f7d0fdd2b5e5b8bd580",ref:t=>this.label=t,class:"label","aria-haspopup":`${!!this.hasItems}`,"aria-expanded":`${!!this.open}`,role:"menuitem",tabindex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},i("slot",{key:"5b131d904e2154fb8c852a734bcc8dd9b421da65",onSlotchange:this.onLabelSlotChange}),this.hasItems&&i("z-icon",{key:"0463aa91e57fa4766c0a11fd3e329752fd770240",name:this.open?"chevron-up":"chevron-down"})),i("div",{key:"f919168a46d3d3ebd7c12fce97d84f029ee938bc",class:"items",role:"menu",hidden:!this.open},i("slot",{key:"e21f494480c18514ff4081b2aa75a8f856f74cc6",name:"section",onSlotchange:this.onItemsChange})))}get host(){return this}static get watchers(){return{open:[{onOpenChange:0}],htmlTabindex:[{onTabindexChange:0}]}}static get style(){return h()}},[257,"z-menu-section",{active:[516],htmlTabindex:[2,"html-tabindex"],open:[1028],hasItems:[32],items:[32],focusLastItem:[64],setFocus:[64]},[[0,"keydown","onItemsKeydown"]],{open:[{onOpenChange:0}],htmlTabindex:[{onTabindexChange:0}]}]);function r(){if(typeof customElements==="undefined"){return}const t=["z-menu-section","z-icon"];t.forEach((t=>{switch(t){case"z-menu-section":if(!customElements.get(n(t))){customElements.define(n(t),c)}break;case"z-icon":if(!customElements.get(n(t))){l()}break}}))}const d=c;const f=r;export{d as ZMenuSection,f as defineCustomElement};
2
+ //# sourceMappingURL=z-menu-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMenuSection","__stencil_proxyCustomElement","HTMLElement","focusableItem","this","items","find","tabIndex","toggle","hasItems","open","setItemsA11yAttrs","forEach","item","setAttribute","onItemsChange","Array","from","host","querySelectorAll","length","onLabelSlotChange","ev","labelElement","target","assignedElements","dataset","text","textContent","onLabelClick","setFocus","onLabelKeydown","key","KeyboardCode","ENTER","SPACE","preventDefault","stopPropagation","focustFirstItem","moveFocus","receiver","current","setTimeout","focus","focusLastItem","htmlTabindex","label","onOpenChange","closed","emit","opened","onTabindexChange","onItemsKeydown","ESC","ARROW_LEFT","ARROW_RIGHT","ARROW_DOWN","document","activeElement","currentIndex","indexOf","ARROW_UP","constructor","registerHost","bind","connectedCallback","render","h","Host","ref","el","class","role","tabindex","onClick","onKeyDown","onSlotchange","name","hidden"],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-primary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"]:active),\n::slotted([slot=\"section\"][active]),\n::slotted([slot=\"section\"][data-active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot section - Single entry of the menu section. Set the same slot name to different elements to put many of them. Add the `data-active` attribute to a slotted element to highlight it (`active` also works but `data-active` is preferable).\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection implements ComponentInterface {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n if (!this.label) {\n return;\n }\n\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as s,Host as o,transformTag as n}from"@stencil/core/internal/client";import{g as a}from"./index2.js";import{a as l}from"./utils.js";import{d as h}from"./index3.js";const r=t=>"Z-MENU-SECTION"===(null==t?void 0:t.tagName),c=t(class extends e{get focusableItem(){return this.items.find((t=>r(t)?0===t.htmlTabindex:0===t.tabIndex))}toggle(){this.hasContent&&(this.open=!this.open)}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=null==e?void 0:e.textContent,this.setLabelA11yAttrs()}reflow(t=!1){if(this.floating){if(this.content&&this.hasContent){const{style:t}=this.content,{left:e}=this.host.getBoundingClientRect(),i=getComputedStyle(this.content).width,s=i?parseFloat(i.replace("px","")):375;t.left=Math.min(window.innerWidth-e-s-30,0)+"px"}t&&(this.raf=requestAnimationFrame(this.reflow.bind(this,t)))}}checkContent(){this.hasHeader=!!this.host.querySelectorAll("[slot=header]").length,this.hasContent=!!this.host.querySelectorAll("[slot=item]").length||this.hasHeader}setItemTabindex(t,e){r(t)?t.htmlTabindex=e:t.tabIndex=e}setItemsA11yAttrs(){this.items.forEach(((t,e)=>{this.setItemTabindex(t,0===e?0:-1),r(t)||t.setAttribute("role","menuitem")}))}onItemsChange(){this.checkContent(),this.items=Array.from(this.host.children).filter((({slot:t})=>"item"===t)),this.setItemsA11yAttrs(),this.items.forEach((t=>{r(t)||(t.dataset.text=t.textContent)}))}moveFocus(t,e){r(t)?t.setFocus():(t.tabIndex=0,setTimeout((()=>{t.focus()}),100)),e&&this.setItemTabindex(e,-1)}onLabelClick(){this.toggle(),this.setFocus()}onLabelKeydown(t){if(t.key===a.ENTER||t.key===a.SPACE)return t.preventDefault(),t.stopPropagation(),this.toggle(),void(this.open&&this.moveFocus(this.items[0]));this.verticalContext&&(t.key!==a.ARROW_RIGHT||this.open||(t.preventDefault(),t.stopPropagation(),this.open=!0,this.moveFocus(this.items[0])))}async setFocus(){this.htmlTabindex=0,(this.hasContent?this.labelButton:this.host.firstElementChild).focus()}async focusLastItem(){const t=this.items[this.items.length-1];r(t)&&t.open?t.focusLastItem():this.moveFocus(t)}onOpenChanged(){if(!this.open)return cancelAnimationFrame(this.raf),this.closed.emit(),void this.items.forEach((t=>{r(t)&&t.open&&(t.open=!1)}));this.setItemsA11yAttrs(),this.opened.emit(),this.floating&&this.reflow(!0)}setLabelA11yAttrs(){if(this.hasContent&&this.labelButton)return void(this.labelButton.tabIndex=this.htmlTabindex);const t=this.host.firstElementChild;t.role="menuitem",t.tabIndex=this.htmlTabindex}onItemClick(t){const e=this.items.find((e=>l(e,t.target)));e&&this.items.forEach((t=>{t!==e&&(r(t)?t.htmlTabindex=-1:t.tabIndex=-1)}))}onKeyDown(t){var e;if(this.hasContent)switch(t.key){case a.ESC:if(!this.open)break;t.stopPropagation(),t.preventDefault(),this.open=!1,this.setFocus();break;case a.ARROW_DOWN:{if(document.activeElement===this.host){if(this.verticalContext&&!this.open)break;t.stopPropagation(),t.preventDefault(),this.open||(this.open=!0),this.moveFocus(this.items[0]);break}const e=this.items.indexOf(this.focusableItem);if(this.verticalContext&&e===this.items.length-1){this.setItemTabindex(this.items[e],-1),this.htmlTabindex=0;break}t.stopPropagation(),t.preventDefault();const i=this.items[e+1];this.moveFocus(null!=i?i:this.items[0],this.focusableItem);break}case a.ARROW_UP:{if(document.activeElement===this.host){if(this.verticalContext)break;t.stopPropagation(),t.preventDefault(),this.open||(this.open=!0),this.moveFocus(this.items[this.items.length-1],this.focusableItem);break}t.stopPropagation(),t.preventDefault();const i=this.items.indexOf(this.focusableItem);if(0===i&&this.verticalContext){this.setItemTabindex(this.focusableItem,-1),this.setFocus();break}const s=null!==(e=this.items[i-1])&&void 0!==e?e:this.items[this.items.length-1];if(r(s)&&s.open){this.setItemTabindex(this.focusableItem,-1),s.focusLastItem();break}this.moveFocus(s,this.focusableItem);break}case a.ARROW_LEFT:if(!this.open||!this.verticalContext)break;t.preventDefault(),t.stopPropagation(),this.open=!1,this.setFocus()}}constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.opened=i(this,"opened",7),this.closed=i(this,"closed",7),this.floating=!0,this.open=!1,this.verticalContext=!1,this.htmlTabindex=-1,this.items=[],this.toggle=this.toggle.bind(this),this.checkContent=this.checkContent.bind(this),this.onLabelSlotChange=this.onLabelSlotChange.bind(this),this.onLabelClick=this.onLabelClick.bind(this),this.onItemsChange=this.onItemsChange.bind(this),this.onLabelKeydown=this.onLabelKeydown.bind(this)}componentWillLoad(){this.setLabelA11yAttrs(),this.onItemsChange()}render(){return this.hasContent?s(o,null,s("button",{ref:t=>this.labelButton=t,class:"menu-label","aria-expanded":""+!!this.open,"aria-haspopup":""+this.hasContent,"aria-label":this.open?"Chiudi menù":"Apri menù",role:"menuitem",tabIndex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},s("slot",{onSlotchange:this.onLabelSlotChange}),s("z-icon",{name:this.open?"chevron-up":"chevron-down"})),s("div",{class:"content",ref:t=>this.content=t},this.hasHeader&&s("header",{class:"header"},s("slot",{name:"header",onSlotchange:this.checkContent})),s("div",{class:"items",role:"menu"},s("slot",{name:"item",onSlotchange:this.onItemsChange})))):s("div",{class:"menu-label"},s("slot",{onSlotchange:this.onLabelSlotChange}))}get host(){return this}static get watchers(){return{open:[{onOpenChanged:0}],htmlTabindex:[{setLabelA11yAttrs:0}]}}static get style(){return':host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-primary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:calc(var(--border-size-small) * -1);left:0;width:100%;height:var(--border-size-large);background-color:var(--color-primary01);content:""}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot="item"]:last-child){border-bottom:0}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active),.items>::slotted([slot="item"][active]),.items>::slotted([slot="item"][data-active]){border-color:var(--color-primary01);font-weight:var(--font-bd)}'}},[257,"z-menu",{active:[516],floating:[516],open:[1540],verticalContext:[516,"vertical-context"],htmlTabindex:[1026,"html-tabindex"],hasHeader:[32],hasContent:[32],setFocus:[64],focusLastItem:[64]},[[4,"click","onItemClick"],[0,"keydown","onKeyDown"]],{open:[{onOpenChanged:0}],htmlTabindex:[{setLabelA11yAttrs:0}]}]),d=c,m=function(){"undefined"!=typeof customElements&&["z-menu","z-icon"].forEach((t=>{switch(t){case"z-menu":customElements.get(n(t))||customElements.define(n(t),c);break;case"z-icon":customElements.get(n(t))||h()}}))};export{d as ZMenu,m as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as s,Host as o,transformTag as n}from"@stencil/core/internal/client";import{g as a}from"./index2.js";import{a as l}from"./utils.js";import{d as r}from"./index3.js";const h=()=>`:host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-primary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:calc(var(--border-size-small) * -1);left:0;width:100%;height:var(--border-size-large);background-color:var(--color-primary01);content:""}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot="item"]:last-child){border-bottom:0}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active),.items>::slotted([slot="item"][active]),.items>::slotted([slot="item"][data-active]){border-color:var(--color-primary01);font-weight:var(--font-bd)}`;const c=t=>(t===null||t===void 0?void 0:t.tagName)==="Z-MENU-SECTION";const d=t(class t extends e{get focusableItem(){return this.items.find((t=>c(t)?t.htmlTabindex===0:t.tabIndex===0))}toggle(){if(!this.hasContent){return}this.open=!this.open}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=e===null||e===void 0?void 0:e.textContent;this.setLabelA11yAttrs()}reflow(t=false){if(!this.floating){return}if(this.content&&this.hasContent){const{style:t}=this.content;const{left:e}=this.host.getBoundingClientRect();const i=getComputedStyle(this.content).width;const s=i?parseFloat(i.replace("px","")):375;const o=30;t.left=`${Math.min(window.innerWidth-e-s-o,0)}px`}if(t){this.raf=requestAnimationFrame(this.reflow.bind(this,t))}}checkContent(){this.hasHeader=!!this.host.querySelectorAll("[slot=header]").length;this.hasContent=!!this.host.querySelectorAll("[slot=item]").length||this.hasHeader}setItemTabindex(t,e){if(c(t)){t.htmlTabindex=e}else{t.tabIndex=e}}setItemsA11yAttrs(){this.items.forEach(((t,e)=>{const i=e===0?0:-1;this.setItemTabindex(t,i);if(!c(t)){t.setAttribute("role","menuitem")}}))}onItemsChange(){this.checkContent();this.items=Array.from(this.host.children).filter((({slot:t})=>t==="item"));this.setItemsA11yAttrs();this.items.forEach((t=>{if(!c(t)){t.dataset.text=t.textContent}}))}moveFocus(t,e){if(c(t)){t.setFocus()}else{t.tabIndex=0;setTimeout((()=>{t.focus()}),100)}if(!e){return}this.setItemTabindex(e,-1)}onLabelClick(){this.toggle();this.setFocus()}onLabelKeydown(t){if(t.key===a.ENTER||t.key===a.SPACE){t.preventDefault();t.stopPropagation();this.toggle();if(this.open){this.moveFocus(this.items[0])}return}if(!this.verticalContext){return}if(t.key===a.ARROW_RIGHT&&!this.open){t.preventDefault();t.stopPropagation();this.open=true;this.moveFocus(this.items[0])}}async setFocus(){this.htmlTabindex=0;const t=this.hasContent?this.labelButton:this.host.firstElementChild;t.focus()}async focusLastItem(){const t=this.items[this.items.length-1];if(c(t)&&t.open){t.focusLastItem();return}this.moveFocus(t)}onOpenChanged(){if(!this.open){cancelAnimationFrame(this.raf);this.closed.emit();this.items.forEach((t=>{if(c(t)&&t.open){t.open=false}}));return}this.setItemsA11yAttrs();this.opened.emit();if(this.floating){this.reflow(true)}}setLabelA11yAttrs(){if(this.hasContent&&this.labelButton){this.labelButton.tabIndex=this.htmlTabindex;return}const t=this.host.firstElementChild;t.role="menuitem";t.tabIndex=this.htmlTabindex}onItemClick(t){const e=this.items.find((e=>l(e,t.target)));if(e){this.items.forEach((t=>{if(t===e){return}if(c(t)){t.htmlTabindex=-1}else{t.tabIndex=-1}}))}}onKeyDown(t){var e;if(!this.hasContent){return}switch(t.key){case a.ESC:if(!this.open){break}t.stopPropagation();t.preventDefault();this.open=false;this.setFocus();break;case a.ARROW_DOWN:{if(document.activeElement===this.host){if(this.verticalContext&&!this.open){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[0]);break}const e=this.items.indexOf(this.focusableItem);if(this.verticalContext&&e===this.items.length-1){this.setItemTabindex(this.items[e],-1);this.htmlTabindex=0;break}t.stopPropagation();t.preventDefault();const i=this.items[e+1];this.moveFocus(i!==null&&i!==void 0?i:this.items[0],this.focusableItem);break}case a.ARROW_UP:{if(document.activeElement===this.host){if(this.verticalContext){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[this.items.length-1],this.focusableItem);break}t.stopPropagation();t.preventDefault();const i=this.items.indexOf(this.focusableItem);if(i===0&&this.verticalContext){this.setItemTabindex(this.focusableItem,-1);this.setFocus();break}const s=(e=this.items[i-1])!==null&&e!==void 0?e:this.items[this.items.length-1];if(c(s)&&s.open){this.setItemTabindex(this.focusableItem,-1);s.focusLastItem();break}this.moveFocus(s,this.focusableItem);break}case a.ARROW_LEFT:if(!this.open||!this.verticalContext){break}t.preventDefault();t.stopPropagation();this.open=false;this.setFocus()}}constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.opened=i(this,"opened",7);this.closed=i(this,"closed",7);this.floating=true;this.open=false;this.verticalContext=false;this.htmlTabindex=-1;this.items=[];this.toggle=this.toggle.bind(this);this.checkContent=this.checkContent.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onLabelClick=this.onLabelClick.bind(this);this.onItemsChange=this.onItemsChange.bind(this);this.onLabelKeydown=this.onLabelKeydown.bind(this)}componentWillLoad(){this.setLabelA11yAttrs();this.onItemsChange()}render(){if(!this.hasContent){return s("div",{class:"menu-label"},s("slot",{onSlotchange:this.onLabelSlotChange}))}return s(o,null,s("button",{ref:t=>this.labelButton=t,class:"menu-label","aria-expanded":`${!!this.open}`,"aria-haspopup":`${this.hasContent}`,"aria-label":this.open?"Chiudi menù":"Apri menù",role:"menuitem",tabIndex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},s("slot",{onSlotchange:this.onLabelSlotChange}),s("z-icon",{name:this.open?"chevron-up":"chevron-down"})),s("div",{class:"content",ref:t=>this.content=t},this.hasHeader&&s("header",{class:"header"},s("slot",{name:"header",onSlotchange:this.checkContent})),s("div",{class:"items",role:"menu"},s("slot",{name:"item",onSlotchange:this.onItemsChange}))))}get host(){return this}static get watchers(){return{open:[{onOpenChanged:0}],htmlTabindex:[{setLabelA11yAttrs:0}]}}static get style(){return h()}},[257,"z-menu",{active:[516],floating:[516],open:[1540],verticalContext:[516,"vertical-context"],htmlTabindex:[1026,"html-tabindex"],hasHeader:[32],hasContent:[32],setFocus:[64],focusLastItem:[64]},[[4,"click","onItemClick"],[0,"keydown","onKeyDown"]],{open:[{onOpenChanged:0}],htmlTabindex:[{setLabelA11yAttrs:0}]}]);function m(){if(typeof customElements==="undefined"){return}const t=["z-menu","z-icon"];t.forEach((t=>{switch(t){case"z-menu":if(!customElements.get(n(t))){customElements.define(n(t),d)}break;case"z-icon":if(!customElements.get(n(t))){r()}break}}))}const f=d;const u=m;export{f as ZMenu,u as defineCustomElement};
2
+ //# sourceMappingURL=z-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","isZMenuSection","el","tagName","ZMenu","__stencil_proxyCustomElement","HTMLElement","focusableItem","this","items","find","item","htmlTabindex","tabIndex","toggle","hasContent","open","onLabelSlotChange","ev","labelElement","target","assignedElements","dataset","text","textContent","setLabelA11yAttrs","reflow","live","floating","content","style","left","host","getBoundingClientRect","widthPx","getComputedStyle","width","parseFloat","replace","safeScrollbarSpace","Math","min","window","innerWidth","raf","requestAnimationFrame","bind","checkContent","hasHeader","querySelectorAll","length","setItemTabindex","setItemsA11yAttrs","forEach","index","tabindex","setAttribute","onItemsChange","Array","from","children","filter","slot","moveFocus","receiver","current","setFocus","setTimeout","focus","onLabelClick","onLabelKeydown","key","KeyboardCode","ENTER","SPACE","preventDefault","stopPropagation","verticalContext","ARROW_RIGHT","label","labelButton","firstElementChild","focusLastItem","lastItem","onOpenChanged","cancelAnimationFrame","closed","emit","opened","slottedLabel","role","onItemClick","clickedItem","containsElement","onKeyDown","ESC","ARROW_DOWN","document","activeElement","currentIndex","indexOf","ARROW_UP","_a","ARROW_LEFT","constructor","registerHost","componentWillLoad","render","h","class","onSlotchange","Host","ref","onClick","name"],"sources":["src/components/z-menu/styles.css?tag=z-menu&encapsulation=shadow","src/components/z-menu/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n outline: none;\n}\n\n:host {\n /**\n * @prop --z-menu-label-color: Color of the label's text.\n */\n --z-menu-label-color: ;\n\n position: relative;\n display: inline-flex;\n height: fit-content;\n flex-direction: column;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.menu-label {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 0;\n border: 0;\n border-bottom: var(--border-size-large) solid transparent;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host(:is([active], [open])) .menu-label ::slotted(*),\n.menu-label:focus-visible ::slotted(*),\ndiv.menu-label:focus-within ::slotted(*) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n\n:host([vertical-context]) .menu-label {\n padding: var(--space-unit) 0;\n border-width: var(--border-size-small);\n border-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label,\n.menu-label:hover,\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n border-color: var(--color-primary01);\n}\n\n:host([vertical-context]:is([active], [open])) .menu-label::after,\n:host([vertical-context]) .menu-label:hover::after,\n:host([vertical-context]) .menu-label:focus-visible::after,\n:host([vertical-context]) div.menu-label:focus-within::after {\n position: absolute;\n bottom: calc(var(--border-size-small) * -1);\n left: 0;\n width: 100%;\n height: var(--border-size-large);\n background-color: var(--color-primary01);\n content: \"\";\n}\n\n:host([vertical-context]) .menu-label ::slotted(*) {\n padding: 0;\n}\n\n.menu-label ::slotted(*) {\n display: inline-flex;\n width: 100%;\n min-width: fit-content;\n padding-bottom: 2px;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color, var(--color-default-text));\n font-family: var(--font-family-sans);\n font-size: var(--font-size-3);\n font-weight: inherit;\n line-height: 1.5;\n white-space: nowrap;\n}\n\n.menu-label z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: var(--color-default-icon);\n}\n\n/* Prevents layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text]:not([slot]))::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text]:not([slot]))::after {\n display: none;\n }\n}\n\n::slotted([data-text]:not([slot])) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]:not([vertical-context])) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: 0 calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: var(--space-unit) 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n}\n\n:host(:not([vertical-context])) .items > ::slotted([slot=\"item\"]:last-child) {\n border-bottom: 0;\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active),\n.items > ::slotted([slot=\"item\"][active]),\n.items > ::slotted([slot=\"item\"][data-active]) {\n border-color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst isZMenuSection = (el: HTMLElement | HTMLZMenuSectionElement): el is HTMLZMenuSectionElement =>\n el?.tagName === \"Z-MENU-SECTION\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Set the `data-active` HTML attribute on the element to highlight it (`active` also works but `data-active` is preferable). Use `z-menu-section` for submenus.\n */\n@Component({\n tag: \"z-menu\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenu implements ComponentInterface {\n @Element() host: HTMLZMenuElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = true;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (usually in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n /**\n * Tabindex value to set on the menu label.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZAppHeader).\n */\n @Prop({mutable: true})\n htmlTabindex = -1;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private labelButton: HTMLButtonElement;\n\n private content: HTMLElement;\n\n private items: (HTMLElement | HTMLZMenuSectionElement)[] = [];\n\n /** Animation frame request id. */\n private raf: number;\n\n private get focusableItem(): HTMLZMenuSectionElement | HTMLElement | null {\n return this.items.find((item) => (isZMenuSection(item) ? item.htmlTabindex === 0 : item.tabIndex === 0));\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n this.setLabelA11yAttrs();\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (!this.floating) {\n return;\n }\n\n if (this.content && this.hasContent) {\n const {style} = this.content;\n const {left} = this.host.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.host.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.host.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n private setItemTabindex(item: HTMLElement | HTMLZMenuSectionElement, tabIndex: number): void {\n if (isZMenuSection(item)) {\n item.htmlTabindex = tabIndex;\n } else {\n item.tabIndex = tabIndex;\n }\n }\n\n /**\n * Set `menuitem` role to all menu items (ZMenuSection items already have it).\n * Set -1 to the tabindex of the items and 0 to the first one.\n */\n private setItemsA11yAttrs(): void {\n this.items.forEach((item, index) => {\n const tabindex = index === 0 ? 0 : -1;\n this.setItemTabindex(item, tabindex);\n if (!isZMenuSection(item)) {\n item.setAttribute(\"role\", \"menuitem\");\n }\n });\n }\n\n private onItemsChange(): void {\n this.checkContent();\n this.items = Array.from(this.host.children).filter(({slot}) => slot === \"item\") as HTMLElement[];\n this.setItemsA11yAttrs();\n this.items.forEach((item) => {\n if (!isZMenuSection(item)) {\n item.dataset.text = item.textContent;\n }\n });\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n * If the receiver is a ZMenuSection and it's open, focus its first focusable item.\n */\n private moveFocus(\n receiver: HTMLElement | HTMLZMenuSectionElement,\n current?: HTMLElement | HTMLZMenuSectionElement\n ): void {\n if (isZMenuSection(receiver)) {\n receiver.setFocus();\n } else {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n }\n if (!current) {\n return;\n }\n\n this.setItemTabindex(current, -1);\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.moveFocus(this.items[0]);\n }\n\n return;\n }\n\n if (!this.verticalContext) {\n return;\n }\n\n if (ev.key === KeyboardCode.ARROW_RIGHT && !this.open) {\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.moveFocus(this.items[0]);\n }\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n const label = this.hasContent ? this.labelButton : (this.host.firstElementChild as HTMLElement);\n label.focus();\n }\n\n /**\n * Focus the last item.\n */\n @Method()\n async focusLastItem(): Promise<void> {\n const lastItem = this.items[this.items.length - 1];\n if (isZMenuSection(lastItem) && lastItem.open) {\n lastItem.focusLastItem();\n\n return;\n }\n\n this.moveFocus(lastItem);\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (!this.open) {\n cancelAnimationFrame(this.raf);\n this.closed.emit();\n this.items.forEach((item) => {\n if (isZMenuSection(item) && item.open) {\n item.open = false;\n }\n });\n\n return;\n }\n\n this.setItemsA11yAttrs();\n this.opened.emit();\n if (this.floating) {\n this.reflow(true);\n }\n }\n\n @Watch(\"htmlTabindex\")\n setLabelA11yAttrs(): void {\n if (this.hasContent && this.labelButton) {\n this.labelButton.tabIndex = this.htmlTabindex;\n\n return;\n }\n\n const slottedLabel = this.host.firstElementChild as HTMLElement;\n slottedLabel.role = \"menuitem\";\n slottedLabel.tabIndex = this.htmlTabindex;\n }\n\n /**\n * Set tabindex to -1 to all siblings of the clicked item.\n */\n @Listen(\"click\", {target: \"document\"})\n onItemClick(ev: MouseEvent): void {\n const clickedItem = this.items.find((item) => containsElement(item, ev.target as HTMLElement));\n if (clickedItem) {\n this.items.forEach((item) => {\n if (item === clickedItem) {\n return;\n }\n\n if (isZMenuSection(item)) {\n item.htmlTabindex = -1;\n } else {\n item.tabIndex = -1;\n }\n });\n }\n }\n\n @Listen(\"keydown\")\n onKeyDown(ev: KeyboardEvent): void {\n if (!this.hasContent) {\n return;\n }\n\n switch (ev.key) {\n case KeyboardCode.ESC:\n if (!this.open) {\n break;\n }\n ev.stopPropagation();\n ev.preventDefault();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (document.activeElement === this.host) {\n if (this.verticalContext && !this.open) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[0]);\n break;\n }\n\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (this.verticalContext && currentIndex === this.items.length - 1) {\n // navigation is going to leave this menu. restore tabindex to the label and let the parent handle it\n this.setItemTabindex(this.items[currentIndex], -1);\n this.htmlTabindex = 0;\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const receiver = this.items[currentIndex + 1];\n // if the last item is already focused, navigate to the first one\n this.moveFocus(receiver ?? this.items[0], this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (document.activeElement === this.host) {\n if (this.verticalContext) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n // open the menu and focus the last item\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[this.items.length - 1], this.focusableItem);\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (currentIndex === 0 && this.verticalContext) {\n this.setItemTabindex(this.focusableItem, -1);\n this.setFocus();\n break;\n }\n\n const receiver = this.items[currentIndex - 1] ?? this.items[this.items.length - 1];\n // if the receiver is a ZMenuSection and it's open, focus its last item\n if (isZMenuSection(receiver) && receiver.open) {\n this.setItemTabindex(this.focusableItem, -1);\n receiver.focusLastItem();\n break;\n }\n\n this.moveFocus(receiver, this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_LEFT:\n if (!this.open || !this.verticalContext) {\n break;\n }\n\n // close the menu and focus the label\n ev.preventDefault();\n ev.stopPropagation();\n this.open = false;\n this.setFocus();\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n }\n\n componentWillLoad(): void {\n this.setLabelA11yAttrs();\n this.onItemsChange();\n }\n\n render(): HTMLDivElement | HTMLZMenuElement {\n if (!this.hasContent) {\n return (\n <div class=\"menu-label\">\n <slot onSlotchange={this.onLabelSlotChange} />\n </div>\n );\n }\n\n return (\n <Host>\n <button\n ref={(el) => (this.labelButton = el)}\n class=\"menu-label\"\n aria-expanded={`${!!this.open}`}\n aria-haspopup={`${this.hasContent}`}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n role=\"menuitem\"\n tabIndex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n />\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1,2 @@
1
- import{Z as o,d as s}from"./index21.js";const r=o,t=s;export{r as ZModal,t as defineCustomElement}
1
+ import{Z as o,d as s}from"./index21.js";const t=o;const n=s;export{t as ZModal,n as defineCustomElement};
2
+ //# sourceMappingURL=z-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}