@zanichelli/albe-web-components 16.3.0-rc2 → 16.3.1-RC

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 (1116) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/breakpoints-8a1e87e0.js +11 -0
  3. package/dist/cjs/breakpoints-8a1e87e0.js.map +1 -0
  4. package/dist/cjs/{index-f4d3e681.js → index-041b41e6.js} +3 -3
  5. package/dist/cjs/{index-f4d3e681.js.map → index-041b41e6.js.map} +1 -1
  6. package/dist/cjs/index-1dfb8b3c.js +47 -0
  7. package/dist/cjs/index-1dfb8b3c.js.map +1 -0
  8. package/dist/cjs/{index-b4a90b75.js → index-25ded558.js} +3 -3
  9. package/dist/cjs/{index-b4a90b75.js.map → index-25ded558.js.map} +1 -1
  10. package/dist/cjs/index-4bce26ea.js +59 -0
  11. package/dist/cjs/index-4bce26ea.js.map +1 -0
  12. package/dist/cjs/{index-e801ae96.js → index-96af6326.js} +2167 -2127
  13. package/dist/cjs/index-96af6326.js.map +1 -0
  14. package/dist/cjs/{index-18b8a02e.js → index-b7759a0d.js} +3 -3
  15. package/dist/cjs/{index-18b8a02e.js.map → index-b7759a0d.js.map} +1 -1
  16. package/dist/cjs/index-d4272b0e.js +65 -0
  17. package/dist/cjs/index-d4272b0e.js.map +1 -0
  18. package/dist/cjs/index.cjs.js +2 -2
  19. package/dist/cjs/loader.cjs.js +2 -2
  20. package/dist/cjs/{utils-6bd8c55e.js → utils-257558ff.js} +19 -5
  21. package/dist/cjs/utils-257558ff.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +3 -3
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -1
  24. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  25. package/dist/cjs/z-alert.cjs.entry.js +2 -2
  26. package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  27. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  28. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -1
  29. package/dist/cjs/z-app-header_12.cjs.entry.js +295 -343
  30. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  31. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  32. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  33. package/dist/cjs/z-book-card.cjs.entry.js +5 -5
  34. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  35. package/dist/cjs/z-breadcrumb.cjs.entry.js +5 -5
  36. package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
  37. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-card.cjs.entry.js +1 -1
  39. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  40. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  41. package/dist/cjs/z-combobox.cjs.entry.js +5 -5
  42. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  43. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  44. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  45. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +7 -7
  46. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  47. package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
  48. package/dist/cjs/z-file.cjs.entry.js +4 -4
  49. package/dist/cjs/z-file.cjs.entry.js.map +1 -1
  50. package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
  51. package/dist/cjs/z-info-box.cjs.entry.js +2 -2
  52. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  53. package/dist/cjs/z-logo.cjs.entry.js +2 -2
  54. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  55. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  56. package/dist/cjs/z-menu-section.cjs.entry.js +141 -112
  57. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-menu.cjs.entry.js +210 -162
  59. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  60. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  61. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  62. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  63. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  64. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  65. package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
  66. package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
  67. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  68. package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -4
  69. package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
  70. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  71. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  72. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  73. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  74. package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
  75. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  76. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  77. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  78. package/dist/cjs/z-select.cjs.entry.js +4 -4
  79. package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
  80. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  81. package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
  82. package/dist/cjs/z-stepper.cjs.entry.js +2 -2
  83. package/dist/cjs/z-table.cjs.entry.js +11 -11
  84. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  85. package/dist/cjs/z-tbody.cjs.entry.js +2 -2
  86. package/dist/cjs/z-td.cjs.entry.js +2 -2
  87. package/dist/cjs/z-tfoot.cjs.entry.js +2 -2
  88. package/dist/cjs/z-th.cjs.entry.js +2 -2
  89. package/dist/cjs/z-thead.cjs.entry.js +2 -2
  90. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  91. package/dist/cjs/z-toast-notification.cjs.entry.js +4 -4
  92. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  93. package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
  94. package/dist/cjs/z-toggle-switch.cjs.entry.js +6 -6
  95. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  96. package/dist/cjs/z-tr.cjs.entry.js +6 -6
  97. package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
  98. package/dist/collection/beans/index.js.map +1 -1
  99. package/dist/collection/collection-manifest.json +2 -2
  100. package/dist/collection/components/css-components/z-fab/index.stories.js.map +1 -1
  101. package/dist/collection/components/css-components/z-link/index.stories.js.map +1 -1
  102. package/dist/collection/components/date-picker/utils.js.map +1 -1
  103. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
  104. package/dist/collection/components/date-picker/z-date-picker/index.stories.js.map +1 -1
  105. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -1
  106. package/dist/collection/components/date-picker/z-range-picker/index.stories.js.map +1 -1
  107. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  108. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -1
  109. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +1 -1
  110. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -1
  111. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +1 -1
  112. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -1
  113. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +1 -1
  114. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
  115. package/dist/collection/components/file-upload/z-file/index.js +3 -3
  116. package/dist/collection/components/file-upload/z-file/index.js.map +1 -1
  117. package/dist/collection/components/file-upload/z-file/index.stories.js.map +1 -1
  118. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
  119. package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -1
  120. package/dist/collection/components/index.js.map +1 -1
  121. package/dist/collection/components/list/z-list/index.js.map +1 -1
  122. package/dist/collection/components/list/z-list/index.stories.js.map +1 -1
  123. package/dist/collection/components/list/z-list-element/index.js.map +1 -1
  124. package/dist/collection/components/list/z-list-element/index.stories.js.map +1 -1
  125. package/dist/collection/components/list/z-list-group/index.js.map +1 -1
  126. package/dist/collection/components/list/z-list-group/index.stories.js.map +1 -1
  127. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  128. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  129. package/dist/collection/components/table/cells/z-td/styles.css +15 -5
  130. package/dist/collection/components/table/cells/z-th/index.js +5 -39
  131. package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
  132. package/dist/collection/components/table/cells/z-th/styles.css +19 -33
  133. package/dist/collection/components/table/z-table/index.js +1 -1
  134. package/dist/collection/components/table/z-table/index.js.map +1 -1
  135. package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
  136. package/dist/collection/components/table/z-table/styles.css +4 -0
  137. package/dist/collection/components/table/z-tbody/index.js +1 -1
  138. package/dist/collection/components/table/z-tbody/index.js.map +1 -1
  139. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  140. package/dist/collection/components/table/z-tfoot/index.js.map +1 -1
  141. package/dist/collection/components/table/z-thead/index.js +1 -1
  142. package/dist/collection/components/table/z-thead/index.js.map +1 -1
  143. package/dist/collection/components/table/z-tr/index.js +1 -1
  144. package/dist/collection/components/table/z-tr/index.js.map +1 -1
  145. package/dist/collection/components/table/z-tr/styles.css +1 -0
  146. package/dist/collection/components/z-accordion/index.js +1 -1
  147. package/dist/collection/components/z-accordion/index.js.map +1 -1
  148. package/dist/collection/components/z-accordion/index.stories.js.map +1 -1
  149. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  150. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -1
  151. package/dist/collection/components/z-anchor-navigation/index.stories.js.map +1 -1
  152. package/dist/collection/components/z-app-header/index.js +149 -206
  153. package/dist/collection/components/z-app-header/index.js.map +1 -1
  154. package/dist/collection/components/z-app-header/index.stories.js +12 -28
  155. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  156. package/dist/collection/components/z-app-header/styles.css +95 -121
  157. package/dist/collection/components/z-aria-alert/index.js +1 -1
  158. package/dist/collection/components/z-aria-alert/index.js.map +1 -1
  159. package/dist/collection/components/z-aria-alert/index.stories.js.map +1 -1
  160. package/dist/collection/components/z-avatar/index.js +2 -2
  161. package/dist/collection/components/z-avatar/index.js.map +1 -1
  162. package/dist/collection/components/z-avatar/index.stories.js.map +1 -1
  163. package/dist/collection/components/z-book-card/index.js +3 -3
  164. package/dist/collection/components/z-book-card/index.js.map +1 -1
  165. package/dist/collection/components/z-book-card/index.stories.js.map +1 -1
  166. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  167. package/dist/collection/components/z-breadcrumb/index.js.map +1 -1
  168. package/dist/collection/components/z-breadcrumb/index.stories.js.map +1 -1
  169. package/dist/collection/components/z-button/index.js.map +1 -1
  170. package/dist/collection/components/z-button/index.stories.js.map +1 -1
  171. package/dist/collection/components/z-button-sort/index.js +3 -3
  172. package/dist/collection/components/z-button-sort/index.js.map +1 -1
  173. package/dist/collection/components/z-button-sort/index.stories.js.map +1 -1
  174. package/dist/collection/components/z-card/index.js.map +1 -1
  175. package/dist/collection/components/z-card/index.stories.js.map +1 -1
  176. package/dist/collection/components/z-carousel/index.js.map +1 -1
  177. package/dist/collection/components/z-carousel/index.stories.js.map +1 -1
  178. package/dist/collection/components/z-chip/index.js +2 -2
  179. package/dist/collection/components/z-chip/index.js.map +1 -1
  180. package/dist/collection/components/z-chip/index.stories.js.map +1 -1
  181. package/dist/collection/components/z-combobox/index.js +1 -1
  182. package/dist/collection/components/z-combobox/index.js.map +1 -1
  183. package/dist/collection/components/z-combobox/index.stories.js.map +1 -1
  184. package/dist/collection/components/z-combobox/styles.css +6 -4
  185. package/dist/collection/components/z-cover-hero/index.js +2 -2
  186. package/dist/collection/components/z-cover-hero/index.js.map +1 -1
  187. package/dist/collection/components/z-cover-hero/index.stories.js.map +1 -1
  188. package/dist/collection/components/z-divider/index.js +1 -1
  189. package/dist/collection/components/z-divider/index.js.map +1 -1
  190. package/dist/collection/components/z-divider/index.stories.js.map +1 -1
  191. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  192. package/dist/collection/components/z-ghost-loading/index.js.map +1 -1
  193. package/dist/collection/components/z-ghost-loading/index.stories.js.map +1 -1
  194. package/dist/collection/components/z-icon/index.js.map +1 -1
  195. package/dist/collection/components/z-icon/index.stories.js.map +1 -1
  196. package/dist/collection/components/z-info-box/index.js +1 -1
  197. package/dist/collection/components/z-info-box/index.js.map +1 -1
  198. package/dist/collection/components/z-info-box/index.stories.js.map +1 -1
  199. package/dist/collection/components/z-info-reveal/index.js +1 -1
  200. package/dist/collection/components/z-info-reveal/index.js.map +1 -1
  201. package/dist/collection/components/z-info-reveal/index.stories.js.map +1 -1
  202. package/dist/collection/components/z-input/index.js +1 -1
  203. package/dist/collection/components/z-input/index.js.map +1 -1
  204. package/dist/collection/components/z-input/index.stories.js.map +1 -1
  205. package/dist/collection/components/z-input-message/index.js +1 -1
  206. package/dist/collection/components/z-input-message/index.js.map +1 -1
  207. package/dist/collection/components/z-input-message/index.stories.js.map +1 -1
  208. package/dist/collection/components/z-logo/index.js +1 -1
  209. package/dist/collection/components/z-logo/index.js.map +1 -1
  210. package/dist/collection/components/z-logo/index.stories.js.map +1 -1
  211. package/dist/collection/components/z-menu/index.js +269 -171
  212. package/dist/collection/components/z-menu/index.js.map +1 -1
  213. package/dist/collection/components/z-menu/index.stories.js +2 -8
  214. package/dist/collection/components/z-menu/index.stories.js.map +1 -1
  215. package/dist/collection/components/z-menu/styles.css +38 -46
  216. package/dist/collection/components/z-menu-section/index.js +216 -121
  217. package/dist/collection/components/z-menu-section/index.js.map +1 -1
  218. package/dist/collection/components/z-menu-section/index.stories.js.map +1 -1
  219. package/dist/collection/components/z-menu-section/styles.css +32 -27
  220. package/dist/collection/components/z-modal/index.js +6 -6
  221. package/dist/collection/components/z-modal/index.js.map +1 -1
  222. package/dist/collection/components/z-modal/index.stories.js.map +1 -1
  223. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  224. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
  225. package/dist/collection/components/z-navigation-tabs/index.stories.js.map +1 -1
  226. package/dist/collection/components/z-notification/index.js +1 -1
  227. package/dist/collection/components/z-notification/index.js.map +1 -1
  228. package/dist/collection/components/z-notification/index.stories.js.map +1 -1
  229. package/dist/collection/components/z-offcanvas/index.js +1 -1
  230. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  231. package/dist/collection/components/z-offcanvas/index.stories.js.map +1 -1
  232. package/dist/collection/components/z-pagination/index.js.map +1 -1
  233. package/dist/collection/components/z-pagination/index.stories.js.map +1 -1
  234. package/dist/collection/components/z-panel-elem/index.js +2 -2
  235. package/dist/collection/components/z-panel-elem/index.js.map +1 -1
  236. package/dist/collection/components/z-panel-elem/index.stories.js.map +1 -1
  237. package/dist/collection/components/z-popover/index.js +1 -1
  238. package/dist/collection/components/z-popover/index.js.map +1 -1
  239. package/dist/collection/components/z-popover/index.stories.js.map +1 -1
  240. package/dist/collection/components/z-searchbar/index.js +10 -4
  241. package/dist/collection/components/z-searchbar/index.js.map +1 -1
  242. package/dist/collection/components/z-searchbar/index.stories.js.map +1 -1
  243. package/dist/collection/components/z-section-title/index.js +1 -1
  244. package/dist/collection/components/z-section-title/index.js.map +1 -1
  245. package/dist/collection/components/z-section-title/index.stories.js.map +1 -1
  246. package/dist/collection/components/z-select/index.js +1 -1
  247. package/dist/collection/components/z-select/index.js.map +1 -1
  248. package/dist/collection/components/z-select/index.stories.js.map +1 -1
  249. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  250. package/dist/collection/components/z-skip-to-content/index.js.map +1 -1
  251. package/dist/collection/components/z-skip-to-content/index.stories.js.map +1 -1
  252. package/dist/collection/components/z-stepper/index.js +1 -1
  253. package/dist/collection/components/z-stepper/index.js.map +1 -1
  254. package/dist/collection/components/z-stepper/index.stories.js.map +1 -1
  255. package/dist/collection/components/z-stepper-item/index.js +1 -1
  256. package/dist/collection/components/z-stepper-item/index.js.map +1 -1
  257. package/dist/collection/components/z-stepper-item/index.stories.js.map +1 -1
  258. package/dist/collection/components/z-tag/index.js +2 -2
  259. package/dist/collection/components/z-tag/index.js.map +1 -1
  260. package/dist/collection/components/z-tag/index.stories.js.map +1 -1
  261. package/dist/collection/components/z-toast-notification/index.js +3 -3
  262. package/dist/collection/components/z-toast-notification/index.js.map +1 -1
  263. package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
  264. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  265. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -1
  266. package/dist/collection/components/z-toast-notification-list/index.stories.js.map +1 -1
  267. package/dist/collection/components/z-toggle-button/index.js +2 -2
  268. package/dist/collection/components/z-toggle-button/index.js.map +1 -1
  269. package/dist/collection/components/z-toggle-button/index.stories.js.map +1 -1
  270. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  271. package/dist/collection/components/z-toggle-switch/index.js.map +1 -1
  272. package/dist/collection/components/z-toggle-switch/index.stories.js.map +1 -1
  273. package/dist/collection/components/z-tooltip/index.js +1 -1
  274. package/dist/collection/components/z-tooltip/index.js.map +1 -1
  275. package/dist/collection/components/z-tooltip/index.stories.js.map +1 -1
  276. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  277. package/dist/collection/components/z-visually-hidden/index.js.map +1 -1
  278. package/dist/collection/components/z-visually-hidden/index.stories.js.map +1 -1
  279. package/dist/collection/constants/breakpoints.js +7 -4
  280. package/dist/collection/constants/breakpoints.js.map +1 -1
  281. package/dist/collection/constants/icons.js.map +1 -1
  282. package/dist/collection/constants/iconset.js +13 -1
  283. package/dist/collection/constants/iconset.js.map +1 -1
  284. package/dist/collection/index.js.map +1 -1
  285. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  286. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -1
  287. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  288. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -1
  289. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  290. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -1
  291. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  292. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -1
  293. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  294. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -1
  295. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  296. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -1
  297. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  298. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -1
  299. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  300. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -1
  301. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  302. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -1
  303. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  304. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -1
  305. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  306. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -1
  307. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  308. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -1
  309. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  310. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -1
  311. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  312. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -1
  313. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  314. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -1
  315. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -1
  316. package/dist/collection/utils/storybook-utils.js.map +1 -1
  317. package/dist/collection/utils/utils.js +17 -7
  318. package/dist/collection/utils/utils.js.map +1 -1
  319. package/dist/components/breakpoints.js +8 -4
  320. package/dist/components/breakpoints.js.map +1 -1
  321. package/dist/components/iconset.js +13 -1
  322. package/dist/components/iconset.js.map +1 -1
  323. package/dist/components/index10.js +1 -1
  324. package/dist/components/index11.js +1 -1
  325. package/dist/components/index15.js +6 -6
  326. package/dist/components/index15.js.map +1 -1
  327. package/dist/components/index16.js +1 -1
  328. package/dist/components/index17.js +1 -1
  329. package/dist/components/index18.js +1 -1
  330. package/dist/components/index19.js +1 -1
  331. package/dist/components/index20.js +1 -1
  332. package/dist/components/index21.js +1 -1
  333. package/dist/components/index22.js +1 -1
  334. package/dist/components/index23.js +11 -5
  335. package/dist/components/index23.js.map +1 -1
  336. package/dist/components/index24.js +2 -2
  337. package/dist/components/index3.js +1 -1
  338. package/dist/components/index5.js +2 -2
  339. package/dist/components/index6.js +1 -1
  340. package/dist/components/index8.js +1 -1
  341. package/dist/components/utils.js +18 -5
  342. package/dist/components/utils.js.map +1 -1
  343. package/dist/components/z-accordion.js +1 -1
  344. package/dist/components/z-anchor-navigation.js +1 -1
  345. package/dist/components/z-app-header-deprecated.js +1 -1
  346. package/dist/components/z-app-header-deprecated.js.map +1 -1
  347. package/dist/components/z-app-header.js +144 -207
  348. package/dist/components/z-app-header.js.map +1 -1
  349. package/dist/components/z-aria-alert.js +1 -1
  350. package/dist/components/z-avatar.js +2 -2
  351. package/dist/components/z-book-card.js +3 -3
  352. package/dist/components/z-book-card.js.map +1 -1
  353. package/dist/components/z-breadcrumb.js +2 -2
  354. package/dist/components/z-button-sort.js +3 -3
  355. package/dist/components/z-button-sort.js.map +1 -1
  356. package/dist/components/z-combobox.js +2 -2
  357. package/dist/components/z-combobox.js.map +1 -1
  358. package/dist/components/z-cover-hero.js +2 -2
  359. package/dist/components/z-file.js +3 -3
  360. package/dist/components/z-file.js.map +1 -1
  361. package/dist/components/z-info-box.js +1 -1
  362. package/dist/components/z-info-reveal.js +1 -1
  363. package/dist/components/z-logo.js +1 -1
  364. package/dist/components/z-menu-section.js +151 -115
  365. package/dist/components/z-menu-section.js.map +1 -1
  366. package/dist/components/z-menu.js +218 -166
  367. package/dist/components/z-menu.js.map +1 -1
  368. package/dist/components/z-myz-card-alert.js +1 -1
  369. package/dist/components/z-myz-card-dictionary.js +1 -1
  370. package/dist/components/z-myz-card-footer-sections.js +1 -1
  371. package/dist/components/z-myz-card-footer.js +1 -1
  372. package/dist/components/z-myz-card-icon.js +1 -1
  373. package/dist/components/z-myz-card-info.js +1 -1
  374. package/dist/components/z-myz-card-list.js +1 -1
  375. package/dist/components/z-myz-list.js +1 -1
  376. package/dist/components/z-navigation-tabs.js +2 -2
  377. package/dist/components/z-notification.js +1 -1
  378. package/dist/components/z-otp.js +2 -2
  379. package/dist/components/z-panel-elem.js +2 -2
  380. package/dist/components/z-section-title.js +1 -1
  381. package/dist/components/z-select.js +2 -2
  382. package/dist/components/z-skip-to-content.js +2 -2
  383. package/dist/components/z-slideshow.js +1 -1
  384. package/dist/components/z-stepper-item.js +1 -1
  385. package/dist/components/z-stepper.js +1 -1
  386. package/dist/components/z-table.js +3 -2
  387. package/dist/components/z-table.js.map +1 -1
  388. package/dist/components/z-tbody.js +1 -1
  389. package/dist/components/z-td.js +2 -2
  390. package/dist/components/z-td.js.map +1 -1
  391. package/dist/components/z-tfoot.js +1 -1
  392. package/dist/components/z-th.js +6 -17
  393. package/dist/components/z-th.js.map +1 -1
  394. package/dist/components/z-thead.js +1 -1
  395. package/dist/components/z-toast-notification-list.js +1 -1
  396. package/dist/components/z-toast-notification.js +3 -3
  397. package/dist/components/z-toast-notification.js.map +1 -1
  398. package/dist/components/z-toggle-button.js +2 -2
  399. package/dist/components/z-toggle-switch.js +3 -3
  400. package/dist/components/z-tooltip.js +1 -1
  401. package/dist/components/z-tr.js +2 -2
  402. package/dist/components/z-tr.js.map +1 -1
  403. package/dist/components/z-visually-hidden.js +1 -1
  404. package/dist/esm/breakpoints-d148bfde.js +11 -0
  405. package/dist/esm/breakpoints-d148bfde.js.map +1 -0
  406. package/dist/esm/index-36f0f6c0.js +18 -0
  407. package/dist/esm/{index-af907695.js.map → index-36f0f6c0.js.map} +1 -1
  408. package/dist/esm/index-66bd56db.js +57 -0
  409. package/dist/esm/index-66bd56db.js.map +1 -0
  410. package/dist/esm/index-89520805.js +63 -0
  411. package/dist/esm/index-89520805.js.map +1 -0
  412. package/dist/esm/{index-a2130b6a.js → index-c8ceadeb.js} +2167 -2127
  413. package/dist/esm/index-c8ceadeb.js.map +1 -0
  414. package/dist/esm/index-cddfba10.js +45 -0
  415. package/dist/esm/index-cddfba10.js.map +1 -0
  416. package/dist/esm/{index-7704e472.js → index-dfddeb25.js} +3 -3
  417. package/dist/esm/{index-7704e472.js.map → index-dfddeb25.js.map} +1 -1
  418. package/dist/esm/{index-87f1f803.js → index-e70be23f.js} +3 -3
  419. package/dist/esm/{index-87f1f803.js.map → index-e70be23f.js.map} +1 -1
  420. package/dist/esm/index.js +2 -2
  421. package/dist/esm/loader.js +3 -3
  422. package/dist/esm/{utils-8ade9e2d.js → utils-acc8bdd0.js} +19 -6
  423. package/dist/esm/utils-acc8bdd0.js.map +1 -0
  424. package/dist/esm/web-components-library.js +4 -4
  425. package/dist/esm/web-components-library.js.map +1 -1
  426. package/dist/esm/z-accordion.entry.js +2 -2
  427. package/dist/esm/z-alert.entry.js +2 -2
  428. package/dist/esm/z-anchor-navigation.entry.js +2 -2
  429. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  430. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -1
  431. package/dist/esm/z-app-header_12.entry.js +164 -212
  432. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  433. package/dist/esm/z-aria-alert.entry.js +2 -2
  434. package/dist/esm/z-avatar.entry.js +3 -3
  435. package/dist/esm/z-book-card.entry.js +5 -5
  436. package/dist/esm/z-book-card.entry.js.map +1 -1
  437. package/dist/esm/z-breadcrumb.entry.js +5 -5
  438. package/dist/esm/z-button-sort.entry.js +4 -4
  439. package/dist/esm/z-button-sort.entry.js.map +1 -1
  440. package/dist/esm/z-card.entry.js +1 -1
  441. package/dist/esm/z-carousel.entry.js +1 -1
  442. package/dist/esm/z-chip.entry.js +3 -3
  443. package/dist/esm/z-combobox.entry.js +5 -5
  444. package/dist/esm/z-combobox.entry.js.map +1 -1
  445. package/dist/esm/z-cover-hero.entry.js +3 -3
  446. package/dist/esm/z-date-picker.entry.js +1 -1
  447. package/dist/esm/z-dragdrop-area_2.entry.js +7 -7
  448. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  449. package/dist/esm/z-file-upload.entry.js +3 -3
  450. package/dist/esm/z-file.entry.js +4 -4
  451. package/dist/esm/z-file.entry.js.map +1 -1
  452. package/dist/esm/z-ghost-loading.entry.js +2 -2
  453. package/dist/esm/z-info-box.entry.js +2 -2
  454. package/dist/esm/z-info-reveal.entry.js +2 -2
  455. package/dist/esm/z-logo.entry.js +2 -2
  456. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  457. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  458. package/dist/esm/z-menu-section.entry.js +140 -111
  459. package/dist/esm/z-menu-section.entry.js.map +1 -1
  460. package/dist/esm/z-menu.entry.js +210 -162
  461. package/dist/esm/z-menu.entry.js.map +1 -1
  462. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  463. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  464. package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
  465. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  466. package/dist/esm/z-myz-card-icon.entry.js +2 -2
  467. package/dist/esm/z-myz-card-info.entry.js +4 -4
  468. package/dist/esm/z-myz-card-list.entry.js +2 -2
  469. package/dist/esm/z-myz-card_4.entry.js +5 -5
  470. package/dist/esm/z-myz-list-item.entry.js +4 -4
  471. package/dist/esm/z-myz-list.entry.js +2 -2
  472. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  473. package/dist/esm/z-notification.entry.js +2 -2
  474. package/dist/esm/z-otp.entry.js +3 -3
  475. package/dist/esm/z-pagination.entry.js +1 -1
  476. package/dist/esm/z-panel-elem.entry.js +3 -3
  477. package/dist/esm/z-popover.entry.js +2 -2
  478. package/dist/esm/z-range-picker.entry.js +1 -1
  479. package/dist/esm/z-section-title.entry.js +2 -2
  480. package/dist/esm/z-select.entry.js +4 -4
  481. package/dist/esm/z-skip-to-content.entry.js +4 -4
  482. package/dist/esm/z-slideshow.entry.js +3 -3
  483. package/dist/esm/z-stepper-item.entry.js +2 -2
  484. package/dist/esm/z-stepper.entry.js +2 -2
  485. package/dist/esm/z-table.entry.js +11 -11
  486. package/dist/esm/z-table.entry.js.map +1 -1
  487. package/dist/esm/z-tbody.entry.js +2 -2
  488. package/dist/esm/z-td.entry.js +2 -2
  489. package/dist/esm/z-tfoot.entry.js +2 -2
  490. package/dist/esm/z-th.entry.js +2 -2
  491. package/dist/esm/z-thead.entry.js +2 -2
  492. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  493. package/dist/esm/z-toast-notification.entry.js +4 -4
  494. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  495. package/dist/esm/z-toggle-button.entry.js +3 -3
  496. package/dist/esm/z-toggle-switch.entry.js +6 -6
  497. package/dist/esm/z-tooltip.entry.js +2 -2
  498. package/dist/esm/z-tr.entry.js +6 -6
  499. package/dist/esm/z-visually-hidden.entry.js +2 -2
  500. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +3 -3
  501. package/dist/types/components/list/z-list-group/index.stories.d.ts +1 -1
  502. package/dist/types/components/table/cells/z-th/index.d.ts +0 -7
  503. package/dist/types/components/z-app-header/index.d.ts +23 -30
  504. package/dist/types/components/z-app-header/index.stories.d.ts +2 -5
  505. package/dist/types/components/z-book-card/index.stories.d.ts +2 -2
  506. package/dist/types/components/z-carousel/index.stories.d.ts +1 -1
  507. package/dist/types/components/z-cover-hero/index.stories.d.ts +1 -1
  508. package/dist/types/components/z-menu/index.d.ts +34 -26
  509. package/dist/types/components/z-menu/index.stories.d.ts +1 -2
  510. package/dist/types/components/z-menu-section/index.d.ts +28 -18
  511. package/dist/types/components/z-modal/index.stories.d.ts +1 -1
  512. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +2 -2
  513. package/dist/types/components/z-popover/index.stories.d.ts +2 -2
  514. package/dist/types/components/z-searchbar/index.d.ts +1 -0
  515. package/dist/types/components/z-section-title/index.stories.d.ts +1 -1
  516. package/dist/types/components/z-tag/index.stories.d.ts +2 -2
  517. package/dist/types/components/z-tooltip/index.stories.d.ts +1 -1
  518. package/dist/types/components.d.ts +48 -16
  519. package/dist/types/constants/breakpoints.d.ts +6 -4
  520. package/dist/types/constants/iconset.d.ts +26 -2
  521. package/dist/types/stencil-public-runtime.d.ts +0 -2
  522. package/dist/types/utils/utils.d.ts +10 -1
  523. package/dist/web-components-library/index.esm.js +1 -1
  524. package/dist/web-components-library/p-04c39e8a.entry.js +2 -0
  525. package/dist/web-components-library/p-04c39e8a.entry.js.map +1 -0
  526. package/dist/web-components-library/p-0542a3c9.entry.js +2 -0
  527. package/dist/web-components-library/p-0542a3c9.entry.js.map +1 -0
  528. package/dist/web-components-library/{p-67ac6b9f.entry.js → p-06d98334.entry.js} +2 -2
  529. package/dist/web-components-library/p-100c6243.entry.js +2 -0
  530. package/dist/web-components-library/{p-28928bb6.entry.js → p-1896cc54.entry.js} +2 -2
  531. package/{www/build/p-19f8c3d2.entry.js → dist/web-components-library/p-1cc37aa7.entry.js} +2 -2
  532. package/{www/build/p-c0bdbfb5.entry.js → dist/web-components-library/p-273f3c53.entry.js} +2 -2
  533. package/dist/web-components-library/p-28018cd3.entry.js +2 -0
  534. package/dist/web-components-library/p-28018cd3.entry.js.map +1 -0
  535. package/{www/build/p-12d62027.entry.js → dist/web-components-library/p-296924ea.entry.js} +2 -2
  536. package/dist/web-components-library/p-2b1fd95a.entry.js +2 -0
  537. package/{www/build/p-99b791d1.entry.js → dist/web-components-library/p-2e432a39.entry.js} +2 -2
  538. package/dist/web-components-library/{p-1397aa99.entry.js → p-2f662fea.entry.js} +2 -2
  539. package/dist/web-components-library/{p-8a10fec5.entry.js → p-38d5e74f.entry.js} +2 -2
  540. package/dist/web-components-library/p-3ae8fb1a.entry.js +2 -0
  541. package/dist/web-components-library/p-3dbad75e.js +2 -0
  542. package/dist/web-components-library/{p-e5ea2279.entry.js → p-4537f922.entry.js} +2 -2
  543. package/dist/web-components-library/{p-dc85021e.entry.js → p-45dc157c.entry.js} +2 -2
  544. package/dist/web-components-library/{p-f9762109.entry.js → p-46d98609.entry.js} +2 -2
  545. package/dist/web-components-library/p-4a2e0034.js +2 -0
  546. package/dist/web-components-library/p-4a2e0034.js.map +1 -0
  547. package/dist/web-components-library/p-4f3f8578.entry.js +2 -0
  548. package/dist/web-components-library/p-5145a606.js +2 -0
  549. package/dist/web-components-library/p-5145a606.js.map +1 -0
  550. package/dist/web-components-library/{p-a887e64a.entry.js → p-51f1c9c0.entry.js} +2 -2
  551. package/dist/web-components-library/{p-03f14ac3.entry.js → p-5a0f0978.entry.js} +2 -2
  552. package/dist/web-components-library/{p-ee797508.entry.js → p-5a178c69.entry.js} +3 -3
  553. package/dist/web-components-library/p-5a178c69.entry.js.map +1 -0
  554. package/{www/build/p-cf2640b0.entry.js → dist/web-components-library/p-608c35ba.entry.js} +2 -2
  555. package/dist/web-components-library/{p-cf2640b0.entry.js.map → p-608c35ba.entry.js.map} +1 -1
  556. package/dist/web-components-library/p-60f410df.js +2 -0
  557. package/dist/web-components-library/p-60f410df.js.map +1 -0
  558. package/dist/web-components-library/p-63ec7bad.entry.js +2 -0
  559. package/dist/web-components-library/p-64364cbf.entry.js +2 -0
  560. package/dist/web-components-library/p-64364cbf.entry.js.map +1 -0
  561. package/dist/web-components-library/p-64aab82f.js +2 -0
  562. package/dist/web-components-library/p-67e5e8ed.js +2 -0
  563. package/dist/web-components-library/p-67e5e8ed.js.map +1 -0
  564. package/dist/web-components-library/p-68f4fbc8.entry.js +2 -0
  565. package/dist/web-components-library/{p-d2544111.entry.js.map → p-68f4fbc8.entry.js.map} +1 -1
  566. package/dist/web-components-library/{p-cd68bcb2.entry.js → p-6a1b3e86.entry.js} +2 -2
  567. package/dist/web-components-library/{p-1a0825e3.entry.js → p-6db2fd46.entry.js} +2 -2
  568. package/dist/web-components-library/{p-e59ada26.entry.js → p-707e5f91.entry.js} +2 -2
  569. package/dist/web-components-library/p-75c4a726.js +3 -0
  570. package/dist/web-components-library/p-75c4a726.js.map +1 -0
  571. package/dist/web-components-library/{p-16d5331a.entry.js → p-777ad335.entry.js} +2 -2
  572. package/dist/web-components-library/p-777ad335.entry.js.map +1 -0
  573. package/{www/build/p-f1b42fa3.entry.js → dist/web-components-library/p-7aba5af3.entry.js} +2 -2
  574. package/dist/web-components-library/p-7d5bf905.entry.js +2 -0
  575. package/dist/web-components-library/{p-76f18b6d.entry.js → p-820b48f6.entry.js} +2 -2
  576. package/dist/web-components-library/p-823c45d4.entry.js +2 -0
  577. package/{www/build/p-04f1d3a0.entry.js → dist/web-components-library/p-855334f4.entry.js} +2 -2
  578. package/dist/web-components-library/p-893c08f2.entry.js +2 -0
  579. package/dist/web-components-library/p-893c08f2.entry.js.map +1 -0
  580. package/dist/web-components-library/p-8a6a4d22.js +2 -0
  581. package/dist/web-components-library/p-8a6a4d22.js.map +1 -0
  582. package/{www/build/p-8b348f60.entry.js → dist/web-components-library/p-8d56e74b.entry.js} +2 -2
  583. package/dist/web-components-library/p-8d56e74b.entry.js.map +1 -0
  584. package/dist/web-components-library/p-95cb8701.js +2 -0
  585. package/dist/web-components-library/p-9a1b51ed.entry.js +2 -0
  586. package/{www/build/p-6e49f78e.entry.js.map → dist/web-components-library/p-9a1b51ed.entry.js.map} +1 -1
  587. package/dist/web-components-library/{p-d9ce7691.entry.js → p-9b9a04ad.entry.js} +2 -2
  588. package/{www/build/p-816500b1.entry.js → dist/web-components-library/p-a0fd1323.entry.js} +2 -2
  589. package/dist/web-components-library/p-a64a1bf0.entry.js +2 -0
  590. package/dist/web-components-library/p-a64a1bf0.entry.js.map +1 -0
  591. package/dist/web-components-library/p-aaae6b16.entry.js +2 -0
  592. package/dist/web-components-library/{p-6e56ce77.entry.js.map → p-aaae6b16.entry.js.map} +1 -1
  593. package/dist/web-components-library/{p-db831d3e.entry.js → p-ab7f129e.entry.js} +2 -2
  594. package/{www/build/p-088a31dc.entry.js → dist/web-components-library/p-acd911aa.entry.js} +2 -2
  595. package/{www/build/p-bfd03521.entry.js → dist/web-components-library/p-ad97fdc4.entry.js} +2 -2
  596. package/dist/web-components-library/{p-f4f45044.entry.js → p-b2356bc7.entry.js} +2 -2
  597. package/dist/web-components-library/p-c1e498ac.entry.js +2 -0
  598. package/dist/web-components-library/{p-840b267b.entry.js → p-c54d0925.entry.js} +2 -2
  599. package/dist/web-components-library/p-c679277c.entry.js +2 -0
  600. package/{www/build/p-97b0d9af.entry.js.map → dist/web-components-library/p-c679277c.entry.js.map} +1 -1
  601. package/dist/web-components-library/p-cc71a90c.entry.js +2 -0
  602. package/dist/web-components-library/{p-b8e5fe52.entry.js.map → p-cc71a90c.entry.js.map} +1 -1
  603. package/{www/build/p-9b636084.entry.js → dist/web-components-library/p-cd0219b4.entry.js} +2 -2
  604. package/dist/web-components-library/{p-ad3cac33.entry.js → p-d5f5e107.entry.js} +2 -2
  605. package/dist/web-components-library/p-d5f5e107.entry.js.map +1 -0
  606. package/dist/web-components-library/{p-88e756cd.entry.js → p-da7200c2.entry.js} +2 -2
  607. package/{www/build/p-c7172768.entry.js → dist/web-components-library/p-df8c381a.entry.js} +2 -2
  608. package/dist/web-components-library/{p-3b266de4.entry.js → p-df9c3674.entry.js} +2 -2
  609. package/{www/build/p-c4b6ada9.entry.js → dist/web-components-library/p-e25d7f0a.entry.js} +2 -2
  610. package/{www/build/p-2cbf1b2e.entry.js → dist/web-components-library/p-e4d97fbf.entry.js} +2 -2
  611. package/dist/web-components-library/{p-13e5e524.entry.js → p-e529a714.entry.js} +2 -2
  612. package/dist/web-components-library/{p-5598a37a.entry.js → p-ea9c0ff3.entry.js} +2 -2
  613. package/dist/web-components-library/p-f06ad42c.entry.js +2 -0
  614. package/dist/web-components-library/{p-217b9261.entry.js.map → p-f06ad42c.entry.js.map} +1 -1
  615. package/dist/web-components-library/{p-4888964e.entry.js → p-f15d0a00.entry.js} +2 -2
  616. package/dist/web-components-library/{p-1faaf16d.entry.js → p-f425c6f2.entry.js} +2 -2
  617. package/dist/web-components-library/p-f703660d.entry.js +2 -0
  618. package/dist/web-components-library/{p-c4094f39.entry.js → p-f8bbca6e.entry.js} +2 -2
  619. package/dist/web-components-library/web-components-library.css +3 -1
  620. package/dist/web-components-library/web-components-library.esm.js +1 -1
  621. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  622. package/loader/index.d.ts +3 -0
  623. package/package.json +16 -18
  624. package/www/build/index.esm.js +1 -1
  625. package/www/build/p-04c39e8a.entry.js +2 -0
  626. package/www/build/p-04c39e8a.entry.js.map +1 -0
  627. package/www/build/p-0542a3c9.entry.js +2 -0
  628. package/www/build/p-0542a3c9.entry.js.map +1 -0
  629. package/www/build/{p-67ac6b9f.entry.js → p-06d98334.entry.js} +2 -2
  630. package/www/build/p-0d8f7a2d.js +2 -0
  631. package/www/build/p-100c6243.entry.js +2 -0
  632. package/www/build/{p-28928bb6.entry.js → p-1896cc54.entry.js} +2 -2
  633. package/{dist/web-components-library/p-19f8c3d2.entry.js → www/build/p-1cc37aa7.entry.js} +2 -2
  634. package/{dist/web-components-library/p-c0bdbfb5.entry.js → www/build/p-273f3c53.entry.js} +2 -2
  635. package/www/build/p-28018cd3.entry.js +2 -0
  636. package/www/build/p-28018cd3.entry.js.map +1 -0
  637. package/{dist/web-components-library/p-12d62027.entry.js → www/build/p-296924ea.entry.js} +2 -2
  638. package/www/build/p-2b1fd95a.entry.js +2 -0
  639. package/{dist/web-components-library/p-99b791d1.entry.js → www/build/p-2e432a39.entry.js} +2 -2
  640. package/www/build/{p-1397aa99.entry.js → p-2f662fea.entry.js} +2 -2
  641. package/www/build/{p-8a10fec5.entry.js → p-38d5e74f.entry.js} +2 -2
  642. package/www/build/p-3ae8fb1a.entry.js +2 -0
  643. package/www/build/p-3dbad75e.js +2 -0
  644. package/www/build/{p-e5ea2279.entry.js → p-4537f922.entry.js} +2 -2
  645. package/www/build/{p-dc85021e.entry.js → p-45dc157c.entry.js} +2 -2
  646. package/www/build/{p-f9762109.entry.js → p-46d98609.entry.js} +2 -2
  647. package/www/build/p-4a2e0034.js +2 -0
  648. package/www/build/p-4a2e0034.js.map +1 -0
  649. package/www/build/p-4f3f8578.entry.js +2 -0
  650. package/www/build/p-5145a606.js +2 -0
  651. package/www/build/p-5145a606.js.map +1 -0
  652. package/www/build/{p-a887e64a.entry.js → p-51f1c9c0.entry.js} +2 -2
  653. package/www/build/{p-03f14ac3.entry.js → p-5a0f0978.entry.js} +2 -2
  654. package/www/build/{p-ee797508.entry.js → p-5a178c69.entry.js} +3 -3
  655. package/www/build/p-5a178c69.entry.js.map +1 -0
  656. package/{dist/web-components-library/p-cf2640b0.entry.js → www/build/p-608c35ba.entry.js} +2 -2
  657. package/www/build/{p-cf2640b0.entry.js.map → p-608c35ba.entry.js.map} +1 -1
  658. package/www/build/p-60f410df.js +2 -0
  659. package/www/build/p-60f410df.js.map +1 -0
  660. package/www/build/p-63ec7bad.entry.js +2 -0
  661. package/www/build/p-64364cbf.entry.js +2 -0
  662. package/www/build/p-64364cbf.entry.js.map +1 -0
  663. package/www/build/p-64aab82f.js +2 -0
  664. package/www/build/p-67e5e8ed.js +2 -0
  665. package/www/build/p-67e5e8ed.js.map +1 -0
  666. package/www/build/p-68f4fbc8.entry.js +2 -0
  667. package/www/build/{p-d2544111.entry.js.map → p-68f4fbc8.entry.js.map} +1 -1
  668. package/www/build/{p-cd68bcb2.entry.js → p-6a1b3e86.entry.js} +2 -2
  669. package/www/build/{p-1a0825e3.entry.js → p-6db2fd46.entry.js} +2 -2
  670. package/www/build/{p-e59ada26.entry.js → p-707e5f91.entry.js} +2 -2
  671. package/www/build/p-75c4a726.js +3 -0
  672. package/www/build/p-75c4a726.js.map +1 -0
  673. package/www/build/{p-16d5331a.entry.js → p-777ad335.entry.js} +2 -2
  674. package/www/build/p-777ad335.entry.js.map +1 -0
  675. package/{dist/web-components-library/p-f1b42fa3.entry.js → www/build/p-7aba5af3.entry.js} +2 -2
  676. package/www/build/p-7d5bf905.entry.js +2 -0
  677. package/www/build/{p-76f18b6d.entry.js → p-820b48f6.entry.js} +2 -2
  678. package/www/build/p-823c45d4.entry.js +2 -0
  679. package/{dist/web-components-library/p-04f1d3a0.entry.js → www/build/p-855334f4.entry.js} +2 -2
  680. package/www/build/p-893c08f2.entry.js +2 -0
  681. package/www/build/p-893c08f2.entry.js.map +1 -0
  682. package/www/build/p-8a6a4d22.js +2 -0
  683. package/www/build/p-8a6a4d22.js.map +1 -0
  684. package/{dist/web-components-library/p-8b348f60.entry.js → www/build/p-8d56e74b.entry.js} +2 -2
  685. package/www/build/p-8d56e74b.entry.js.map +1 -0
  686. package/www/build/p-95cb8701.js +2 -0
  687. package/www/build/p-9a1b51ed.entry.js +2 -0
  688. package/{dist/web-components-library/p-6e49f78e.entry.js.map → www/build/p-9a1b51ed.entry.js.map} +1 -1
  689. package/www/build/{p-d9ce7691.entry.js → p-9b9a04ad.entry.js} +2 -2
  690. package/{dist/web-components-library/p-816500b1.entry.js → www/build/p-a0fd1323.entry.js} +2 -2
  691. package/www/build/p-a64a1bf0.entry.js +2 -0
  692. package/www/build/p-a64a1bf0.entry.js.map +1 -0
  693. package/www/build/p-aaae6b16.entry.js +2 -0
  694. package/www/build/{p-6e56ce77.entry.js.map → p-aaae6b16.entry.js.map} +1 -1
  695. package/www/build/{p-db831d3e.entry.js → p-ab7f129e.entry.js} +2 -2
  696. package/{dist/web-components-library/p-088a31dc.entry.js → www/build/p-acd911aa.entry.js} +2 -2
  697. package/{dist/web-components-library/p-bfd03521.entry.js → www/build/p-ad97fdc4.entry.js} +2 -2
  698. package/www/build/{p-0cd14493.css → p-ae0a33a2.css} +3 -1
  699. package/www/build/{p-f4f45044.entry.js → p-b2356bc7.entry.js} +2 -2
  700. package/www/build/p-c1e498ac.entry.js +2 -0
  701. package/www/build/{p-840b267b.entry.js → p-c54d0925.entry.js} +2 -2
  702. package/www/build/p-c679277c.entry.js +2 -0
  703. package/{dist/web-components-library/p-97b0d9af.entry.js.map → www/build/p-c679277c.entry.js.map} +1 -1
  704. package/www/build/p-cc71a90c.entry.js +2 -0
  705. package/www/build/{p-b8e5fe52.entry.js.map → p-cc71a90c.entry.js.map} +1 -1
  706. package/{dist/web-components-library/p-9b636084.entry.js → www/build/p-cd0219b4.entry.js} +2 -2
  707. package/www/build/{p-ad3cac33.entry.js → p-d5f5e107.entry.js} +2 -2
  708. package/www/build/p-d5f5e107.entry.js.map +1 -0
  709. package/www/build/{p-88e756cd.entry.js → p-da7200c2.entry.js} +2 -2
  710. package/{dist/web-components-library/p-c7172768.entry.js → www/build/p-df8c381a.entry.js} +2 -2
  711. package/www/build/{p-3b266de4.entry.js → p-df9c3674.entry.js} +2 -2
  712. package/{dist/web-components-library/p-c4b6ada9.entry.js → www/build/p-e25d7f0a.entry.js} +2 -2
  713. package/{dist/web-components-library/p-2cbf1b2e.entry.js → www/build/p-e4d97fbf.entry.js} +2 -2
  714. package/www/build/{p-13e5e524.entry.js → p-e529a714.entry.js} +2 -2
  715. package/www/build/{p-5598a37a.entry.js → p-ea9c0ff3.entry.js} +2 -2
  716. package/www/build/p-f06ad42c.entry.js +2 -0
  717. package/www/build/{p-217b9261.entry.js.map → p-f06ad42c.entry.js.map} +1 -1
  718. package/www/build/{p-4888964e.entry.js → p-f15d0a00.entry.js} +2 -2
  719. package/www/build/{p-1faaf16d.entry.js → p-f425c6f2.entry.js} +2 -2
  720. package/www/build/p-f703660d.entry.js +2 -0
  721. package/www/build/{p-c4094f39.entry.js → p-f8bbca6e.entry.js} +2 -2
  722. package/www/build/web-components-library.css +3 -1
  723. package/www/build/web-components-library.esm.js +1 -1
  724. package/www/build/web-components-library.esm.js.map +1 -1
  725. package/www/index.html +3 -1
  726. package/dist/.storybook/elements/args-controls.js +0 -78
  727. package/dist/.storybook/elements/args-controls.js.map +0 -1
  728. package/dist/.storybook/elements/docs-template.js +0 -11
  729. package/dist/.storybook/elements/docs-template.js.map +0 -1
  730. package/dist/cjs/breakpoints-5c22092a.js +0 -11
  731. package/dist/cjs/breakpoints-5c22092a.js.map +0 -1
  732. package/dist/cjs/index-b695a167.js +0 -47
  733. package/dist/cjs/index-b695a167.js.map +0 -1
  734. package/dist/cjs/index-ba0eccb8.js +0 -59
  735. package/dist/cjs/index-ba0eccb8.js.map +0 -1
  736. package/dist/cjs/index-e801ae96.js.map +0 -1
  737. package/dist/cjs/index-f9539ff9.js +0 -75
  738. package/dist/cjs/index-f9539ff9.js.map +0 -1
  739. package/dist/cjs/utils-6bd8c55e.js.map +0 -1
  740. package/dist/collection/assets/orientamento.svg +0 -14
  741. package/dist/collection/components/date-picker/z-date-picker/index.spec.js +0 -38
  742. package/dist/collection/components/date-picker/z-date-picker/index.spec.js.map +0 -1
  743. package/dist/collection/components/date-picker/z-range-picker/index.spec.js +0 -25
  744. package/dist/collection/components/date-picker/z-range-picker/index.spec.js.map +0 -1
  745. package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js +0 -203
  746. package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js.map +0 -1
  747. package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js +0 -120
  748. package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js.map +0 -1
  749. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js +0 -50
  750. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js.map +0 -1
  751. package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js +0 -55
  752. package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js.map +0 -1
  753. package/dist/collection/components/file-upload/z-file/index.spec.js +0 -20
  754. package/dist/collection/components/file-upload/z-file/index.spec.js.map +0 -1
  755. package/dist/collection/components/file-upload/z-file-upload/index.spec.js +0 -135
  756. package/dist/collection/components/file-upload/z-file-upload/index.spec.js.map +0 -1
  757. package/dist/collection/components/file-upload/z-file-upload/test.e2e.js +0 -69
  758. package/dist/collection/components/file-upload/z-file-upload/test.e2e.js.map +0 -1
  759. package/dist/collection/components/list/z-list/index.spec.js +0 -33
  760. package/dist/collection/components/list/z-list/index.spec.js.map +0 -1
  761. package/dist/collection/components/list/z-list-element/index.spec.js +0 -135
  762. package/dist/collection/components/list/z-list-element/index.spec.js.map +0 -1
  763. package/dist/collection/components/list/z-list-group/index.spec.js +0 -39
  764. package/dist/collection/components/list/z-list-group/index.spec.js.map +0 -1
  765. package/dist/collection/components/z-app-header/index.spec.js +0 -617
  766. package/dist/collection/components/z-app-header/index.spec.js.map +0 -1
  767. package/dist/collection/components/z-aria-alert/index.spec.js +0 -14
  768. package/dist/collection/components/z-aria-alert/index.spec.js.map +0 -1
  769. package/dist/collection/components/z-avatar/index.spec.js +0 -98
  770. package/dist/collection/components/z-avatar/index.spec.js.map +0 -1
  771. package/dist/collection/components/z-book-card/index.spec.js +0 -679
  772. package/dist/collection/components/z-book-card/index.spec.js.map +0 -1
  773. package/dist/collection/components/z-breadcrumb/index.spec.js +0 -39
  774. package/dist/collection/components/z-breadcrumb/index.spec.js.map +0 -1
  775. package/dist/collection/components/z-button/index.spec.js +0 -101
  776. package/dist/collection/components/z-button/index.spec.js.map +0 -1
  777. package/dist/collection/components/z-button-sort/index.spec.js +0 -139
  778. package/dist/collection/components/z-button-sort/index.spec.js.map +0 -1
  779. package/dist/collection/components/z-button-sort/test.e2e.js +0 -29
  780. package/dist/collection/components/z-button-sort/test.e2e.js.map +0 -1
  781. package/dist/collection/components/z-card/index.spec.js +0 -179
  782. package/dist/collection/components/z-card/index.spec.js.map +0 -1
  783. package/dist/collection/components/z-chip/index.spec.js +0 -108
  784. package/dist/collection/components/z-chip/index.spec.js.map +0 -1
  785. package/dist/collection/components/z-chip/test.e2e.js +0 -32
  786. package/dist/collection/components/z-chip/test.e2e.js.map +0 -1
  787. package/dist/collection/components/z-combobox/index.spec.js +0 -475
  788. package/dist/collection/components/z-combobox/index.spec.js.map +0 -1
  789. package/dist/collection/components/z-combobox/test.e2e.js +0 -45
  790. package/dist/collection/components/z-combobox/test.e2e.js.map +0 -1
  791. package/dist/collection/components/z-divider/index.spec.js +0 -82
  792. package/dist/collection/components/z-divider/index.spec.js.map +0 -1
  793. package/dist/collection/components/z-ghost-loading/index.spec.js +0 -16
  794. package/dist/collection/components/z-ghost-loading/index.spec.js.map +0 -1
  795. package/dist/collection/components/z-icon/index.spec.js +0 -96
  796. package/dist/collection/components/z-icon/index.spec.js.map +0 -1
  797. package/dist/collection/components/z-info-box/index.spec.js +0 -71
  798. package/dist/collection/components/z-info-box/index.spec.js.map +0 -1
  799. package/dist/collection/components/z-input/test-checkbox.spec.js +0 -114
  800. package/dist/collection/components/z-input/test-checkbox.spec.js.map +0 -1
  801. package/dist/collection/components/z-input/test-methods.spec.js +0 -13
  802. package/dist/collection/components/z-input/test-methods.spec.js.map +0 -1
  803. package/dist/collection/components/z-input/test-radio.spec.js +0 -114
  804. package/dist/collection/components/z-input/test-radio.spec.js.map +0 -1
  805. package/dist/collection/components/z-input/test-text.spec.js +0 -347
  806. package/dist/collection/components/z-input/test-text.spec.js.map +0 -1
  807. package/dist/collection/components/z-input/test-textarea.spec.js +0 -54
  808. package/dist/collection/components/z-input/test-textarea.spec.js.map +0 -1
  809. package/dist/collection/components/z-input/test.e2e.js +0 -180
  810. package/dist/collection/components/z-input/test.e2e.js.map +0 -1
  811. package/dist/collection/components/z-input-message/index.spec.js +0 -45
  812. package/dist/collection/components/z-input-message/index.spec.js.map +0 -1
  813. package/dist/collection/components/z-logo/index.spec.js +0 -74
  814. package/dist/collection/components/z-logo/index.spec.js.map +0 -1
  815. package/dist/collection/components/z-menu/index.spec.js +0 -136
  816. package/dist/collection/components/z-menu/index.spec.js.map +0 -1
  817. package/dist/collection/components/z-menu-section/index.spec.js +0 -50
  818. package/dist/collection/components/z-menu-section/index.spec.js.map +0 -1
  819. package/dist/collection/components/z-modal/index.spec.js +0 -192
  820. package/dist/collection/components/z-modal/index.spec.js.map +0 -1
  821. package/dist/collection/components/z-modal/test.e2e.js +0 -81
  822. package/dist/collection/components/z-modal/test.e2e.js.map +0 -1
  823. package/dist/collection/components/z-notification/index.spec.js +0 -84
  824. package/dist/collection/components/z-notification/index.spec.js.map +0 -1
  825. package/dist/collection/components/z-notification/test.e2e.js +0 -25
  826. package/dist/collection/components/z-notification/test.e2e.js.map +0 -1
  827. package/dist/collection/components/z-offcanvas/index.spec.js +0 -42
  828. package/dist/collection/components/z-offcanvas/index.spec.js.map +0 -1
  829. package/dist/collection/components/z-pagination/index.spec.js +0 -36
  830. package/dist/collection/components/z-pagination/index.spec.js.map +0 -1
  831. package/dist/collection/components/z-panel-elem/index.spec.js +0 -284
  832. package/dist/collection/components/z-panel-elem/index.spec.js.map +0 -1
  833. package/dist/collection/components/z-searchbar/index.spec.js +0 -395
  834. package/dist/collection/components/z-searchbar/index.spec.js.map +0 -1
  835. package/dist/collection/components/z-searchbar/test.e2e.js +0 -90
  836. package/dist/collection/components/z-searchbar/test.e2e.js.map +0 -1
  837. package/dist/collection/components/z-section-title/index.spec.js +0 -27
  838. package/dist/collection/components/z-section-title/index.spec.js.map +0 -1
  839. package/dist/collection/components/z-select/index.spec.js +0 -698
  840. package/dist/collection/components/z-select/index.spec.js.map +0 -1
  841. package/dist/collection/components/z-select/test.e2e.js +0 -121
  842. package/dist/collection/components/z-select/test.e2e.js.map +0 -1
  843. package/dist/collection/components/z-skip-to-content/index.spec.js +0 -28
  844. package/dist/collection/components/z-skip-to-content/index.spec.js.map +0 -1
  845. package/dist/collection/components/z-stepper/index.spec.js +0 -38
  846. package/dist/collection/components/z-stepper/index.spec.js.map +0 -1
  847. package/dist/collection/components/z-stepper-item/index.spec.js +0 -105
  848. package/dist/collection/components/z-stepper-item/index.spec.js.map +0 -1
  849. package/dist/collection/components/z-tag/index.spec.js +0 -58
  850. package/dist/collection/components/z-tag/index.spec.js.map +0 -1
  851. package/dist/collection/components/z-toast-notification/index.spec.js +0 -104
  852. package/dist/collection/components/z-toast-notification/index.spec.js.map +0 -1
  853. package/dist/collection/components/z-toast-notification-list/index.spec.js +0 -57
  854. package/dist/collection/components/z-toast-notification-list/index.spec.js.map +0 -1
  855. package/dist/collection/components/z-toast-notification-list/test.e2e.js +0 -69
  856. package/dist/collection/components/z-toast-notification-list/test.e2e.js.map +0 -1
  857. package/dist/collection/components/z-toggle-button/index.spec.js +0 -124
  858. package/dist/collection/components/z-toggle-button/index.spec.js.map +0 -1
  859. package/dist/collection/components/z-toggle-button/test.e2e.js +0 -12
  860. package/dist/collection/components/z-toggle-button/test.e2e.js.map +0 -1
  861. package/dist/collection/components/z-toggle-switch/index.spec.js +0 -149
  862. package/dist/collection/components/z-toggle-switch/index.spec.js.map +0 -1
  863. package/dist/collection/components/z-toggle-switch/test.e2e.js +0 -22
  864. package/dist/collection/components/z-toggle-switch/test.e2e.js.map +0 -1
  865. package/dist/collection/components/z-visually-hidden/index.spec.js +0 -18
  866. package/dist/collection/components/z-visually-hidden/index.spec.js.map +0 -1
  867. package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js +0 -20
  868. package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js.map +0 -1
  869. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js +0 -128
  870. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js.map +0 -1
  871. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js +0 -21
  872. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js.map +0 -1
  873. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js +0 -33
  874. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js.map +0 -1
  875. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js +0 -121
  876. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js.map +0 -1
  877. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js +0 -199
  878. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js.map +0 -1
  879. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js +0 -54
  880. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js.map +0 -1
  881. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js +0 -22
  882. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js.map +0 -1
  883. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js +0 -56
  884. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js.map +0 -1
  885. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js +0 -136
  886. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js.map +0 -1
  887. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js +0 -39
  888. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js.map +0 -1
  889. package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js +0 -140
  890. package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js.map +0 -1
  891. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js +0 -80
  892. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js.map +0 -1
  893. package/dist/collection/snowflakes/myz/z-alert/index.spec.js +0 -20
  894. package/dist/collection/snowflakes/myz/z-alert/index.spec.js.map +0 -1
  895. package/dist/collection/snowflakes/myz/z-otp/index.spec.js +0 -74
  896. package/dist/collection/snowflakes/myz/z-otp/index.spec.js.map +0 -1
  897. package/dist/collection/snowflakes/myz/z-otp/test.e2e.js +0 -23
  898. package/dist/collection/snowflakes/myz/z-otp/test.e2e.js.map +0 -1
  899. package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js +0 -193
  900. package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js.map +0 -1
  901. package/dist/collection/utils/utils.spec.js +0 -16
  902. package/dist/collection/utils/utils.spec.js.map +0 -1
  903. package/dist/docs/grid/index.stories.js +0 -47
  904. package/dist/docs/grid/index.stories.js.map +0 -1
  905. package/dist/docs/iconset/index.stories.js +0 -32
  906. package/dist/docs/iconset/index.stories.js.map +0 -1
  907. package/dist/docs/themes/index.stories.js +0 -90
  908. package/dist/docs/themes/index.stories.js.map +0 -1
  909. package/dist/esm/breakpoints-680e0e56.js +0 -7
  910. package/dist/esm/breakpoints-680e0e56.js.map +0 -1
  911. package/dist/esm/index-6ef0b716.js +0 -57
  912. package/dist/esm/index-6ef0b716.js.map +0 -1
  913. package/dist/esm/index-8e0cd06e.js +0 -73
  914. package/dist/esm/index-8e0cd06e.js.map +0 -1
  915. package/dist/esm/index-a2130b6a.js.map +0 -1
  916. package/dist/esm/index-af907695.js +0 -18
  917. package/dist/esm/index-b8299b2f.js +0 -45
  918. package/dist/esm/index-b8299b2f.js.map +0 -1
  919. package/dist/esm/utils-8ade9e2d.js.map +0 -1
  920. package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/args-controls.d.ts +0 -13
  921. package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/docs-template.d.ts +0 -5
  922. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/grid/index.stories.d.ts +0 -9
  923. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/iconset/index.stories.d.ts +0 -11
  924. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +0 -27
  925. package/dist/web-components-library/p-054484d4.entry.js +0 -2
  926. package/dist/web-components-library/p-054484d4.entry.js.map +0 -1
  927. package/dist/web-components-library/p-16d5331a.entry.js.map +0 -1
  928. package/dist/web-components-library/p-217b9261.entry.js +0 -2
  929. package/dist/web-components-library/p-24dc95a0.js +0 -2
  930. package/dist/web-components-library/p-2bd90f9d.js +0 -2
  931. package/dist/web-components-library/p-2bd90f9d.js.map +0 -1
  932. package/dist/web-components-library/p-2c184714.js +0 -2
  933. package/dist/web-components-library/p-2c184714.js.map +0 -1
  934. package/dist/web-components-library/p-2c886e8b.js +0 -2
  935. package/dist/web-components-library/p-2c886e8b.js.map +0 -1
  936. package/dist/web-components-library/p-2f26fb87.entry.js +0 -2
  937. package/dist/web-components-library/p-2f26fb87.entry.js.map +0 -1
  938. package/dist/web-components-library/p-30209b8a.js +0 -2
  939. package/dist/web-components-library/p-30209b8a.js.map +0 -1
  940. package/dist/web-components-library/p-37bff43b.js +0 -2
  941. package/dist/web-components-library/p-3d3f38e9.entry.js +0 -2
  942. package/dist/web-components-library/p-3d3f38e9.entry.js.map +0 -1
  943. package/dist/web-components-library/p-4d1827ea.entry.js +0 -2
  944. package/dist/web-components-library/p-50141aa4.entry.js +0 -2
  945. package/dist/web-components-library/p-57ca10b2.entry.js +0 -2
  946. package/dist/web-components-library/p-6e49f78e.entry.js +0 -2
  947. package/dist/web-components-library/p-6e56ce77.entry.js +0 -2
  948. package/dist/web-components-library/p-7fc503ef.entry.js +0 -2
  949. package/dist/web-components-library/p-7fc503ef.entry.js.map +0 -1
  950. package/dist/web-components-library/p-82d3b0ad.entry.js +0 -2
  951. package/dist/web-components-library/p-88df10c9.entry.js +0 -2
  952. package/dist/web-components-library/p-8b348f60.entry.js.map +0 -1
  953. package/dist/web-components-library/p-8f386b8b.entry.js +0 -2
  954. package/dist/web-components-library/p-8f386b8b.entry.js.map +0 -1
  955. package/dist/web-components-library/p-91421a63.entry.js +0 -2
  956. package/dist/web-components-library/p-97b0d9af.entry.js +0 -2
  957. package/dist/web-components-library/p-ad3cac33.entry.js.map +0 -1
  958. package/dist/web-components-library/p-aedb0435.entry.js +0 -2
  959. package/dist/web-components-library/p-b8e5fe52.entry.js +0 -2
  960. package/dist/web-components-library/p-bf61ebd9.entry.js +0 -2
  961. package/dist/web-components-library/p-bf61ebd9.entry.js.map +0 -1
  962. package/dist/web-components-library/p-c58dc6d8.entry.js +0 -2
  963. package/dist/web-components-library/p-cc7cb25a.js +0 -2
  964. package/dist/web-components-library/p-cfa39bd3.js +0 -3
  965. package/dist/web-components-library/p-cfa39bd3.js.map +0 -1
  966. package/dist/web-components-library/p-d1a658f6.entry.js +0 -2
  967. package/dist/web-components-library/p-d2544111.entry.js +0 -2
  968. package/dist/web-components-library/p-df2457c2.js +0 -2
  969. package/dist/web-components-library/p-df2457c2.js.map +0 -1
  970. package/dist/web-components-library/p-ee797508.entry.js.map +0 -1
  971. package/www/assets/orientamento.svg +0 -14
  972. package/www/build/p-054484d4.entry.js +0 -2
  973. package/www/build/p-054484d4.entry.js.map +0 -1
  974. package/www/build/p-16d5331a.entry.js.map +0 -1
  975. package/www/build/p-217b9261.entry.js +0 -2
  976. package/www/build/p-24dc95a0.js +0 -2
  977. package/www/build/p-2bd90f9d.js +0 -2
  978. package/www/build/p-2bd90f9d.js.map +0 -1
  979. package/www/build/p-2c184714.js +0 -2
  980. package/www/build/p-2c184714.js.map +0 -1
  981. package/www/build/p-2c886e8b.js +0 -2
  982. package/www/build/p-2c886e8b.js.map +0 -1
  983. package/www/build/p-2f26fb87.entry.js +0 -2
  984. package/www/build/p-2f26fb87.entry.js.map +0 -1
  985. package/www/build/p-30209b8a.js +0 -2
  986. package/www/build/p-30209b8a.js.map +0 -1
  987. package/www/build/p-37bff43b.js +0 -2
  988. package/www/build/p-3d3f38e9.entry.js +0 -2
  989. package/www/build/p-3d3f38e9.entry.js.map +0 -1
  990. package/www/build/p-4d1827ea.entry.js +0 -2
  991. package/www/build/p-50141aa4.entry.js +0 -2
  992. package/www/build/p-57ca10b2.entry.js +0 -2
  993. package/www/build/p-6e49f78e.entry.js +0 -2
  994. package/www/build/p-6e56ce77.entry.js +0 -2
  995. package/www/build/p-7fc503ef.entry.js +0 -2
  996. package/www/build/p-7fc503ef.entry.js.map +0 -1
  997. package/www/build/p-82d3b0ad.entry.js +0 -2
  998. package/www/build/p-88df10c9.entry.js +0 -2
  999. package/www/build/p-8b348f60.entry.js.map +0 -1
  1000. package/www/build/p-8f386b8b.entry.js +0 -2
  1001. package/www/build/p-8f386b8b.entry.js.map +0 -1
  1002. package/www/build/p-91421a63.entry.js +0 -2
  1003. package/www/build/p-97b0d9af.entry.js +0 -2
  1004. package/www/build/p-a1671480.js +0 -2
  1005. package/www/build/p-ad3cac33.entry.js.map +0 -1
  1006. package/www/build/p-aedb0435.entry.js +0 -2
  1007. package/www/build/p-b8e5fe52.entry.js +0 -2
  1008. package/www/build/p-bf61ebd9.entry.js +0 -2
  1009. package/www/build/p-bf61ebd9.entry.js.map +0 -1
  1010. package/www/build/p-c58dc6d8.entry.js +0 -2
  1011. package/www/build/p-cc7cb25a.js +0 -2
  1012. package/www/build/p-cfa39bd3.js +0 -3
  1013. package/www/build/p-cfa39bd3.js.map +0 -1
  1014. package/www/build/p-d1a658f6.entry.js +0 -2
  1015. package/www/build/p-d2544111.entry.js +0 -2
  1016. package/www/build/p-df2457c2.js +0 -2
  1017. package/www/build/p-df2457c2.js.map +0 -1
  1018. package/www/build/p-ee797508.entry.js.map +0 -1
  1019. /package/dist/web-components-library/{p-67ac6b9f.entry.js.map → p-06d98334.entry.js.map} +0 -0
  1020. /package/dist/web-components-library/{p-4d1827ea.entry.js.map → p-100c6243.entry.js.map} +0 -0
  1021. /package/dist/web-components-library/{p-28928bb6.entry.js.map → p-1896cc54.entry.js.map} +0 -0
  1022. /package/dist/web-components-library/{p-19f8c3d2.entry.js.map → p-1cc37aa7.entry.js.map} +0 -0
  1023. /package/dist/web-components-library/{p-c0bdbfb5.entry.js.map → p-273f3c53.entry.js.map} +0 -0
  1024. /package/dist/web-components-library/{p-12d62027.entry.js.map → p-296924ea.entry.js.map} +0 -0
  1025. /package/dist/web-components-library/{p-57ca10b2.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
  1026. /package/dist/web-components-library/{p-99b791d1.entry.js.map → p-2e432a39.entry.js.map} +0 -0
  1027. /package/dist/web-components-library/{p-1397aa99.entry.js.map → p-2f662fea.entry.js.map} +0 -0
  1028. /package/dist/web-components-library/{p-8a10fec5.entry.js.map → p-38d5e74f.entry.js.map} +0 -0
  1029. /package/dist/web-components-library/{p-82d3b0ad.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
  1030. /package/dist/web-components-library/{p-cc7cb25a.js.map → p-3dbad75e.js.map} +0 -0
  1031. /package/dist/web-components-library/{p-e5ea2279.entry.js.map → p-4537f922.entry.js.map} +0 -0
  1032. /package/dist/web-components-library/{p-dc85021e.entry.js.map → p-45dc157c.entry.js.map} +0 -0
  1033. /package/dist/web-components-library/{p-f9762109.entry.js.map → p-46d98609.entry.js.map} +0 -0
  1034. /package/dist/web-components-library/{p-88df10c9.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
  1035. /package/dist/web-components-library/{p-a887e64a.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
  1036. /package/dist/web-components-library/{p-03f14ac3.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
  1037. /package/dist/web-components-library/{p-91421a63.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
  1038. /package/dist/web-components-library/{p-37bff43b.js.map → p-64aab82f.js.map} +0 -0
  1039. /package/dist/web-components-library/{p-cd68bcb2.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
  1040. /package/dist/web-components-library/{p-1a0825e3.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
  1041. /package/dist/web-components-library/{p-e59ada26.entry.js.map → p-707e5f91.entry.js.map} +0 -0
  1042. /package/dist/web-components-library/{p-f1b42fa3.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
  1043. /package/dist/web-components-library/{p-aedb0435.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
  1044. /package/dist/web-components-library/{p-76f18b6d.entry.js.map → p-820b48f6.entry.js.map} +0 -0
  1045. /package/dist/web-components-library/{p-c58dc6d8.entry.js.map → p-823c45d4.entry.js.map} +0 -0
  1046. /package/dist/web-components-library/{p-04f1d3a0.entry.js.map → p-855334f4.entry.js.map} +0 -0
  1047. /package/dist/web-components-library/{p-24dc95a0.js.map → p-95cb8701.js.map} +0 -0
  1048. /package/dist/web-components-library/{p-d9ce7691.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
  1049. /package/dist/web-components-library/{p-816500b1.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
  1050. /package/dist/web-components-library/{p-db831d3e.entry.js.map → p-ab7f129e.entry.js.map} +0 -0
  1051. /package/dist/web-components-library/{p-088a31dc.entry.js.map → p-acd911aa.entry.js.map} +0 -0
  1052. /package/dist/web-components-library/{p-bfd03521.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
  1053. /package/dist/web-components-library/{p-f4f45044.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
  1054. /package/dist/web-components-library/{p-50141aa4.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
  1055. /package/dist/web-components-library/{p-840b267b.entry.js.map → p-c54d0925.entry.js.map} +0 -0
  1056. /package/dist/web-components-library/{p-9b636084.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
  1057. /package/dist/web-components-library/{p-88e756cd.entry.js.map → p-da7200c2.entry.js.map} +0 -0
  1058. /package/dist/web-components-library/{p-c7172768.entry.js.map → p-df8c381a.entry.js.map} +0 -0
  1059. /package/dist/web-components-library/{p-3b266de4.entry.js.map → p-df9c3674.entry.js.map} +0 -0
  1060. /package/dist/web-components-library/{p-c4b6ada9.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
  1061. /package/dist/web-components-library/{p-2cbf1b2e.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
  1062. /package/dist/web-components-library/{p-13e5e524.entry.js.map → p-e529a714.entry.js.map} +0 -0
  1063. /package/dist/web-components-library/{p-5598a37a.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
  1064. /package/dist/web-components-library/{p-4888964e.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
  1065. /package/dist/web-components-library/{p-1faaf16d.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
  1066. /package/dist/web-components-library/{p-d1a658f6.entry.js.map → p-f703660d.entry.js.map} +0 -0
  1067. /package/dist/web-components-library/{p-c4094f39.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
  1068. /package/www/build/{p-67ac6b9f.entry.js.map → p-06d98334.entry.js.map} +0 -0
  1069. /package/www/build/{p-4d1827ea.entry.js.map → p-100c6243.entry.js.map} +0 -0
  1070. /package/www/build/{p-28928bb6.entry.js.map → p-1896cc54.entry.js.map} +0 -0
  1071. /package/www/build/{p-19f8c3d2.entry.js.map → p-1cc37aa7.entry.js.map} +0 -0
  1072. /package/www/build/{p-c0bdbfb5.entry.js.map → p-273f3c53.entry.js.map} +0 -0
  1073. /package/www/build/{p-12d62027.entry.js.map → p-296924ea.entry.js.map} +0 -0
  1074. /package/www/build/{p-57ca10b2.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
  1075. /package/www/build/{p-99b791d1.entry.js.map → p-2e432a39.entry.js.map} +0 -0
  1076. /package/www/build/{p-1397aa99.entry.js.map → p-2f662fea.entry.js.map} +0 -0
  1077. /package/www/build/{p-8a10fec5.entry.js.map → p-38d5e74f.entry.js.map} +0 -0
  1078. /package/www/build/{p-82d3b0ad.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
  1079. /package/www/build/{p-cc7cb25a.js.map → p-3dbad75e.js.map} +0 -0
  1080. /package/www/build/{p-e5ea2279.entry.js.map → p-4537f922.entry.js.map} +0 -0
  1081. /package/www/build/{p-dc85021e.entry.js.map → p-45dc157c.entry.js.map} +0 -0
  1082. /package/www/build/{p-f9762109.entry.js.map → p-46d98609.entry.js.map} +0 -0
  1083. /package/www/build/{p-88df10c9.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
  1084. /package/www/build/{p-a887e64a.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
  1085. /package/www/build/{p-03f14ac3.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
  1086. /package/www/build/{p-91421a63.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
  1087. /package/www/build/{p-37bff43b.js.map → p-64aab82f.js.map} +0 -0
  1088. /package/www/build/{p-cd68bcb2.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
  1089. /package/www/build/{p-1a0825e3.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
  1090. /package/www/build/{p-e59ada26.entry.js.map → p-707e5f91.entry.js.map} +0 -0
  1091. /package/www/build/{p-f1b42fa3.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
  1092. /package/www/build/{p-aedb0435.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
  1093. /package/www/build/{p-76f18b6d.entry.js.map → p-820b48f6.entry.js.map} +0 -0
  1094. /package/www/build/{p-c58dc6d8.entry.js.map → p-823c45d4.entry.js.map} +0 -0
  1095. /package/www/build/{p-04f1d3a0.entry.js.map → p-855334f4.entry.js.map} +0 -0
  1096. /package/www/build/{p-24dc95a0.js.map → p-95cb8701.js.map} +0 -0
  1097. /package/www/build/{p-d9ce7691.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
  1098. /package/www/build/{p-816500b1.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
  1099. /package/www/build/{p-db831d3e.entry.js.map → p-ab7f129e.entry.js.map} +0 -0
  1100. /package/www/build/{p-088a31dc.entry.js.map → p-acd911aa.entry.js.map} +0 -0
  1101. /package/www/build/{p-bfd03521.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
  1102. /package/www/build/{p-f4f45044.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
  1103. /package/www/build/{p-50141aa4.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
  1104. /package/www/build/{p-840b267b.entry.js.map → p-c54d0925.entry.js.map} +0 -0
  1105. /package/www/build/{p-9b636084.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
  1106. /package/www/build/{p-88e756cd.entry.js.map → p-da7200c2.entry.js.map} +0 -0
  1107. /package/www/build/{p-c7172768.entry.js.map → p-df8c381a.entry.js.map} +0 -0
  1108. /package/www/build/{p-3b266de4.entry.js.map → p-df9c3674.entry.js.map} +0 -0
  1109. /package/www/build/{p-c4b6ada9.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
  1110. /package/www/build/{p-2cbf1b2e.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
  1111. /package/www/build/{p-13e5e524.entry.js.map → p-e529a714.entry.js.map} +0 -0
  1112. /package/www/build/{p-5598a37a.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
  1113. /package/www/build/{p-4888964e.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
  1114. /package/www/build/{p-1faaf16d.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
  1115. /package/www/build/{p-d1a658f6.entry.js.map → p-f703660d.entry.js.map} +0 -0
  1116. /package/www/build/{p-c4094f39.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{r as t,c as i,h as e,g as s}from"./p-cfa39bd3.js";import{I as o,e as r,i as a,g as n,l as h}from"./p-6037cdf3.js";import{r as d,a as l}from"./p-2c184714.js";import"./p-2c886e8b.js";const c=':host{display:block;font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-surface04);margin:0;background-color:var(--color-input-field01);border-radius:var(--border-radius-small);cursor:pointer}:host([size="small"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header p.body-3{padding:calc(var(--space-unit) * 0.5) 0}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--color-default-text)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-primary01);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--color-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--color-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--color-input-field01);border-radius:0}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--color-primary01) transparent}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-primary01)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--color-primary01) transparent}:host>div.open>div.open-combo-data>div>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search>div>a{display:inline-block;height:44px;color:var(--color-primary01);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}:host([size="small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size="x-small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}';const p=c;const u=class{watchItems(){this.itemsList=typeof this.items==="string"?JSON.parse(this.items):this.items;this.selectedCounter=this.itemsList.filter((t=>t.checked)).length;this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}watchCheckboxes(){this.checkboxes.forEach(((t,i)=>t.setAttribute("tabindex",i===0?"0":"-1")))}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}constructor(e){t(this,e);this.comboboxChange=i(this,"comboboxChange",7);this.itemsList=[];this.inputType=o.TEXT;this.inputid=`combo-${d()}`;this.items=undefined;this.label=undefined;this.disabled=false;this.hassearch=false;this.searchlabel=undefined;this.searchplaceholder=undefined;this.searchtitle=undefined;this.noresultslabel="Nessun risultato";this.isopen=false;this.isfixed=false;this.closesearchtext="Chiudi";this.hascheckall=false;this.checkalltext="Seleziona tutti";this.uncheckalltext="Deseleziona tutti";this.maxcheckableitems=0;this.hasgroupitems=undefined;this.size=r.BIG;this.searchValue=undefined;this.selectedCounter=undefined;this.renderItemsList=[];this.focusedItemId=undefined;this.checkboxes=[];this.toggleComboBox=this.toggleComboBox.bind(this);this.closeFilterItems=this.closeFilterItems.bind(this)}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((t=>t.checked)).length}componentDidRender(){const t=this.getAllCheckboxes();if(JSON.stringify(t)!==JSON.stringify(this.checkboxes)){this.checkboxes=t}}getItemId(t){return`combo-checkbox-${this.inputid}-${t.id}`}getCheckboxClass(){return`combo-item-checkbox-input-${this.inputid}`}getAllCheckboxes(){return Array.from(this.element.shadowRoot.querySelectorAll(`.${this.getCheckboxClass()} input:not([disabled])`))}getControlToListSize(){switch(this.size){case r.X_SMALL:return a.SMALL;case r.SMALL:return a.MEDIUM;default:return a.LARGE}}handleSelectArrowsNavigation(t,i){if(![n.ARROW_DOWN,n.ARROW_UP].includes(t.key)||!this.isopen){return}t.preventDefault();t.stopPropagation();const e=this.element.shadowRoot.querySelector(`#${i}`);if(!e){return}const s=this.checkboxes;if(!s.length){return}const o=s.indexOf(e);const r=0;const a=s.length-1;let h=null;if(t.key===n.ARROW_DOWN){h=o===a?s[r]:s[o+1]}else if(t.key===n.ARROW_UP){h=o===r?s[a]:s[o-1]}this.focusComboboxItem(h)}handleHeaderKeyboardEvent(t){if(t.key===n.SPACE){t.preventDefault()}if(t.key===n.ARROW_DOWN&&!this.isopen||t.key===n.ARROW_UP&&this.isopen){this.toggleComboBox()}}handleCheckboxFocus(t){this.focusedItemId=t}focusComboboxItem(t){this.checkboxes.forEach((function(t){t.setAttribute("tabindex","-1")}));t.setAttribute("tabindex","0");t.focus()}updateRenderItemsList(){if(this.searchValue){this.filterItems(this.searchValue)}else{this.resetRenderItemsList()}}resetRenderItemsList(){const t=[];this.itemsList.forEach((i=>{t.push(Object.assign({},i))}));this.renderItemsList=t}filterItems(t){if(!t){return this.closeFilterItems()}this.resetRenderItemsList();this.renderItemsList=this.renderItemsList.filter((i=>{const e=i.name.toUpperCase().indexOf(t.toUpperCase());const s=e+t.length;const o=i.name.substring(0,e)+"<strong>"+i.name.substring(e,s)+"</strong>"+i.name.substring(s,i.name.length);i.name=o;return e>=0}))}checkAll(t=true){this.itemsList=this.itemsList.map((i=>Object.assign(Object.assign({},i),{checked:t})));this.resetRenderItemsList();this.emitComboboxChange()}closeFilterItems(){this.searchValue="";this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}getComboboxA11yAttributes(){return{role:"combobox","aria-label":this.label,"aria-expanded":this.isopen?"true":"false","aria-activedescendant":this.isopen?this.focusedItemId:"","aria-controls":`${this.inputid}_list`}}renderHeader(){return e("div",{class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:t=>{this.handleHeaderKeyboardEvent(t)},onKeyUp:t=>l(t,this.toggleComboBox),role:"button",tabindex:0,"aria-expanded":this.isopen?"true":"false"},e("p",{class:"body-3"},this.label,e("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),e("z-icon",{name:"caret-down",class:this.size}))}renderContent(){if(!this.isopen){return}return e("div",{class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),!this.hassearch?e("span",Object.assign({},this.getComboboxA11yAttributes())):null,e("div",{role:"listbox","aria-label":this.label,"aria-multiselectable":true,id:`${this.inputid}_list`,"aria-owns":`${this.checkboxes.map((t=>t.id)).join(" ")}`},this.hascheckall&&this.renderCheckAll(),this.renderItems()))}renderItems(){return e("div",{class:this.searchValue&&"search"},this.renderList(this.renderItemsList),this.searchValue&&this.renderCloseButton())}renderItem(t,i,s){return e("z-list-element",{id:t.id,htmlTabindex:null,dividerType:i!==s-1?h.ELEMENT:h.NONE,size:this.getControlToListSize()},e("z-input",{type:o.CHECKBOX,checked:t.checked,htmlid:this.getItemId(t),label:t.name,class:this.getCheckboxClass(),disabled:!t.checked&&this.maxcheckableitems&&this.selectedCounter>=this.maxcheckableitems,size:this.size===r.X_SMALL?r.SMALL:this.size,role:"option","aria-selected":t.checked?"true":"false",onKeyDown:i=>this.handleSelectArrowsNavigation(i,this.getItemId(t)),onInputCheck:i=>{this.itemsList=this.itemsList.map((e=>{if(t.id===e.id){e.checked=i.detail.checked}return e}));this.updateRenderItemsList();this.emitComboboxChange()},onInputFocus:t=>this.handleCheckboxFocus(t.detail.id)}))}renderList(t){if(!t){return}if(!t.length&&this.searchValue){return this.renderNoSearchResults()}if(this.hasgroupitems){return this.renderGroups(t)}return e("ul",{role:"none"},t.map(((i,e)=>this.renderItem(i,e,t.length))))}renderGroups(t){const i=t.reduce(((i,e,s)=>{var o;const{category:r}=e;const a=this.renderItem(e,s,t.length);i[r]=(o=i[r])!==null&&o!==void 0?o:[];i[r].push(a);return i}),{});const s=Object.entries(i).map((([t,i])=>e("z-list-group",{"divider-type":h.ELEMENT},e("span",{class:"body-3-sb z-list-group-title",slot:"header-title"},t),i.map((t=>t)))));return e("ul",{role:"none"},s)}renderNoSearchResults(){return e("ul",{role:"none"},e("z-myz-list-item",{id:"no-results",text:this.noresultslabel,listitemid:"no-results",icon:"multiply-circle",class:this.size}))}renderCloseButton(){return e("div",null,e("a",{onClick:()=>this.closeFilterItems(),onKeyUp:t=>l(t,this.closeFilterItems),role:"button",tabindex:0},this.closesearchtext))}renderSearchInput(){return e("z-input",Object.assign({htmlid:`${this.inputid}_search`,label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:false,size:this.size,"aria-autocomplete":"list"},this.getComboboxA11yAttributes(),{onKeyUp:t=>{if(t.key===n.ESC){this.closeFilterItems()}},onInputChange:t=>{this.searchValue=t.detail.value}}))}renderCheckAll(){if(this.searchValue){return}const t=`combo-checkbox-${this.inputid}-check-all`;const i=this.selectedCounter===this.itemsList.length;return e("div",{class:"check-all-wrapper"},e("z-input",{type:o.CHECKBOX,checked:i,htmlid:t,class:this.getCheckboxClass(),label:i?this.uncheckalltext:this.checkalltext,disabled:this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length,size:this.size===r.X_SMALL?r.SMALL:this.size,role:"option","aria-selected":i?"true":"false",onKeyDown:i=>this.handleSelectArrowsNavigation(i,t),onInputCheck:t=>this.checkAll(t.detail.checked),onInputFocus:t=>this.handleCheckboxFocus(t.detail.id)}))}render(){return e("div",{key:"ce61f654529f811deab1c81a772f7174dd666b9a","data-action":`combo-${this.inputid}`,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}get element(){return s(this)}static get watchers(){return{items:["watchItems"],searchValue:["watchSearchValue"],checkboxes:["watchCheckboxes"]}}};u.style=p;export{u as z_combobox};
2
- //# sourceMappingURL=p-3d3f38e9.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZComboboxStyle0","ZCombobox","watchItems","this","itemsList","items","JSON","parse","selectedCounter","filter","item","checked","length","updateRenderItemsList","watchSearchValue","filterItems","searchValue","watchCheckboxes","checkboxes","forEach","index","setAttribute","emitComboboxChange","comboboxChange","emit","id","inputid","constructor","hostRef","inputType","InputType","TEXT","randomId","ControlSize","BIG","toggleComboBox","bind","closeFilterItems","componentWillLoad","componentWillRender","componentDidRender","getAllCheckboxes","stringify","getItemId","getCheckboxClass","Array","from","element","shadowRoot","querySelectorAll","getControlToListSize","size","X_SMALL","ListSize","SMALL","MEDIUM","LARGE","handleSelectArrowsNavigation","e","currId","KeyboardCode","ARROW_DOWN","ARROW_UP","includes","key","isopen","preventDefault","stopPropagation","currElem","querySelector","currElemIndex","indexOf","firstElemIndex","lastElemIndex","nextElem","focusComboboxItem","handleHeaderKeyboardEvent","ev","SPACE","handleCheckboxFocus","focusedItemId","elem","focus","resetRenderItemsList","renderItemsList","push","Object","assign","value","start","name","toUpperCase","end","newName","substring","checkAll","map","getComboboxA11yAttributes","role","label","renderHeader","h","class","onClick","onKeyDown","onKeyUp","handleKeyboardSubmit","tabindex","renderContent","hassearch","renderSearchInput","join","hascheckall","renderCheckAll","renderItems","renderList","renderCloseButton","renderItem","htmlTabindex","dividerType","ListDividerType","ELEMENT","NONE","type","CHECKBOX","htmlid","disabled","maxcheckableitems","onInputCheck","i","detail","onInputFocus","renderNoSearchResults","hasgroupitems","renderGroups","newData","reduce","group","category","zListItem","_a","listGroups","entries","slot","text","noresultslabel","listitemid","icon","closesearchtext","searchlabel","placeholder","searchplaceholder","htmltitle","searchtitle","message","ESC","onInputChange","checkAllId","allChecked","uncheckalltext","checkalltext","render","open","fixed","isfixed"],"sources":["src/components/z-combobox/styles.css?tag=z-combobox&encapsulation=shadow","src/components/z-combobox/index.tsx"],"sourcesContent":[":host {\n display: block;\n font-family: var(--font-family-sans);\n}\n\n:host > div.fixed {\n position: relative;\n}\n\n:host > div > .header {\n position: relative;\n z-index: 10;\n display: flex;\n min-height: 42px;\n align-items: center;\n justify-content: space-between;\n padding: 0 calc(var(--space-unit) * 1.5);\n border: var(--border-size-small) solid var(--color-surface04);\n margin: 0;\n background-color: var(--color-input-field01);\n border-radius: var(--border-radius-small);\n cursor: pointer;\n}\n\n:host([size=\"small\"]) > div > .header {\n min-height: 34px;\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) > div > .header {\n min-height: 30px;\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) > div > .header p.body-3 {\n padding: calc(var(--space-unit) * 0.5) 0;\n}\n\n:host > div > .header:hover {\n outline: var(--border-size-medium) solid var(--color-surface04);\n outline-offset: -2px;\n}\n\n:host > div.open > div.header:focus:focus-visible {\n box-shadow: none;\n}\n\n:host > div > div.header:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host > div > .header > p.body-3 {\n padding: var(--space-unit) 0;\n margin: 0;\n color: var(--color-default-text);\n}\n\n:host > div > .header > p.body-3 > span {\n font-weight: var(--font-sb);\n}\n\n:host > div > .header > z-icon {\n fill: var(--color-default-icon);\n transform: rotate(360deg);\n transition: all 200ms linear;\n}\n\n:host > div > .header > z-icon.small,\n:host > div > .header > z-icon.x-small {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n:host > div.open > .header {\n border: var(--border-size-small) solid var(--color-primary01);\n border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;\n}\n\n:host > div.disabled {\n pointer-events: none;\n}\n\n:host > div.disabled .header {\n border-color: var(--color-disabled01);\n fill: var(--color-disabled01);\n}\n\n:host > div.disabled .header > p.body-3 {\n color: var(--color-disabled03);\n}\n\n:host > div.disabled .header > z-icon:last-child {\n fill: var(--color-disabled01);\n}\n\n:host > div.open > .header > z-icon {\n fill: var(--color-default-icon);\n transform: rotate(180deg);\n transition: all 200ms linear;\n}\n\n:host > div.open > div.open-combo-data {\n position: relative;\n z-index: 12;\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n border: var(--border-size-small) solid var(--gray200);\n border-top: 0;\n background-color: var(--color-input-field01);\n border-radius: 0;\n}\n\n:host > div.open > div.open-combo-data > div > div {\n overflow: auto;\n max-height: 235px;\n padding: 0;\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n:host > div.open > div.open-combo-data > z-input {\n width: 100%;\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > div.open > div.open-combo-data > div > div > ul {\n max-height: 235px;\n padding: 0 3px; /* needed for checkbox focus shadow */\n margin: 0;\n}\n\n::-webkit-scrollbar {\n width: 10px;\n background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);\n border-radius: var(--border-radius);\n}\n\n::-webkit-scrollbar-thumb {\n width: 10px;\n background-color: var(--color-primary01);\n}\n\n:host > div.open > z-input {\n position: relative;\n z-index: 1;\n width: 238px;\n margin: 0 calc(var(--space-unit) * 2);\n color: var(--color-primary01);\n}\n\n:host > div.open > div.open-combo-data > div > div.search {\n overflow: hidden;\n max-height: auto;\n margin-top: 0;\n box-shadow: 1px 1px 4px 2px rgb(217 222 227 / 50%);\n}\n\n:host > div.open > div.open-combo-data > div > div.search > ul {\n overflow: auto;\n max-height: 180px;\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n:host > div.open > div.open-combo-data > div > div.search > div {\n display: flex;\n justify-content: center;\n}\n\n:host > div.open > div.open-combo-data > div > div.search > div > a {\n display: inline-block;\n height: 44px;\n color: var(--color-primary01);\n cursor: pointer;\n font-size: 14px;\n font-weight: var(--font-sb);\n line-height: 44px;\n text-align: center;\n text-transform: uppercase;\n}\n\n:host > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--gray800);\n margin-bottom: var(--space-unit);\n text-align: left;\n}\n\n:host([size=\"small\"]) > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5);\n}\n\n:host([size=\"x-small\"]) > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: var(--space-unit) calc(var(--space-unit) * 0.5);\n}\n","import {Component, Element, Event, EventEmitter, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ComboItem, ControlSize, InputType, KeyboardCode, ListDividerType, ListSize} from \"../../beans\";\nimport {ZMyzListItem} from \"../../snowflakes/myz/list/z-myz-list-item\";\nimport {handleKeyboardSubmit, randomId} from \"../../utils/utils\";\nimport {ZInput} from \"../z-input\";\n\n@Component({\n tag: \"z-combobox\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCombobox {\n @Element() element: HTMLZComboboxElement;\n\n /** input unique id */\n @Prop()\n inputid = `combo-${randomId()}`;\n\n /** list items array */\n @Prop()\n items: ComboItem[] | string;\n\n /** label text */\n @Prop()\n label: string;\n\n /** the combobox is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** show search input flag (optional) */\n @Prop()\n hassearch?: boolean = false;\n\n /** search input label text (optional) */\n @Prop()\n searchlabel?: string;\n\n /** search input placeholder text (optional) */\n @Prop()\n searchplaceholder?: string;\n\n /** search input title text (optional) */\n @Prop()\n searchtitle?: string;\n\n /** no result text message */\n @Prop()\n noresultslabel?: string = \"Nessun risultato\";\n\n /** toggle combo list opening flag */\n @Prop({mutable: true})\n isopen = false;\n\n /** fixed style flag */\n @Prop()\n isfixed = false;\n\n /** close combobox list text */\n @Prop()\n closesearchtext?: string = \"Chiudi\";\n\n /** show \"check all\" checkbox (optional) */\n @Prop()\n hascheckall?: boolean = false;\n\n /** check all label (optional) */\n @Prop()\n checkalltext?: string = \"Seleziona tutti\";\n\n /** uncheck all label (optional) */\n @Prop()\n uncheckalltext?: string = \"Deseleziona tutti\";\n\n /** max number of checkable items (0 = unlimited) */\n @Prop()\n maxcheckableitems = 0;\n\n /** group items by category */\n @Prop()\n hasgroupitems?: boolean;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop()\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n searchValue: string;\n\n @State()\n selectedCounter: number;\n\n @State()\n renderItemsList: ComboItem[] = []; // used for render only\n\n @State()\n focusedItemId: string;\n\n @State()\n checkboxes: HTMLInputElement[] = [];\n\n private itemsList: ComboItem[] = [];\n\n private inputType: InputType = InputType.TEXT;\n\n @Watch(\"items\")\n watchItems(): void {\n this.itemsList = typeof this.items === \"string\" ? JSON.parse(this.items) : this.items;\n this.selectedCounter = this.itemsList.filter((item) => item.checked).length;\n this.updateRenderItemsList();\n }\n\n @Watch(\"searchValue\")\n watchSearchValue(): void {\n this.filterItems(this.searchValue);\n }\n\n @Watch(\"checkboxes\")\n watchCheckboxes(): void {\n this.checkboxes.forEach((item, index) => item.setAttribute(\"tabindex\", index === 0 ? \"0\" : \"-1\"));\n }\n\n /** Emitted when value is checked/unchecked. Returns id, items. */\n @Event()\n comboboxChange: EventEmitter;\n\n private emitComboboxChange(): void {\n this.comboboxChange.emit({id: this.inputid, items: this.itemsList});\n }\n\n constructor() {\n this.toggleComboBox = this.toggleComboBox.bind(this);\n this.closeFilterItems = this.closeFilterItems.bind(this);\n }\n\n componentWillLoad(): void {\n this.watchItems();\n }\n\n componentWillRender(): void {\n this.selectedCounter = this.itemsList.filter((item) => item.checked).length;\n }\n\n componentDidRender(): void {\n const checkboxes = this.getAllCheckboxes();\n if (JSON.stringify(checkboxes) !== JSON.stringify(this.checkboxes)) {\n this.checkboxes = checkboxes;\n }\n }\n\n private getItemId(item: ComboItem): string {\n return `combo-checkbox-${this.inputid}-${item.id}`;\n }\n\n private getCheckboxClass(): string {\n return `combo-item-checkbox-input-${this.inputid}`;\n }\n\n private getAllCheckboxes(): HTMLInputElement[] {\n return Array.from(\n this.element.shadowRoot.querySelectorAll(`.${this.getCheckboxClass()} input:not([disabled])`)\n ) as HTMLInputElement[];\n }\n\n private getControlToListSize(): ListSize {\n switch (this.size) {\n case ControlSize.X_SMALL:\n return ListSize.SMALL;\n case ControlSize.SMALL:\n return ListSize.MEDIUM;\n default:\n return ListSize.LARGE;\n }\n }\n\n private handleSelectArrowsNavigation(e: KeyboardEvent, currId: string): void {\n if (![KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP].includes(e.key as KeyboardCode) || !this.isopen) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n\n const currElem = this.element.shadowRoot.querySelector(`#${currId}`) as HTMLInputElement;\n if (!currElem) {\n return;\n }\n\n const checkboxes = this.checkboxes;\n if (!checkboxes.length) {\n return;\n }\n\n const currElemIndex = checkboxes.indexOf(currElem);\n const firstElemIndex = 0;\n const lastElemIndex = checkboxes.length - 1;\n\n let nextElem = null;\n if (e.key === KeyboardCode.ARROW_DOWN) {\n nextElem = currElemIndex === lastElemIndex ? checkboxes[firstElemIndex] : checkboxes[currElemIndex + 1];\n } else if (e.key === KeyboardCode.ARROW_UP) {\n nextElem = currElemIndex === firstElemIndex ? checkboxes[lastElemIndex] : checkboxes[currElemIndex - 1];\n }\n\n this.focusComboboxItem(nextElem);\n }\n\n private handleHeaderKeyboardEvent(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n }\n if ((ev.key === KeyboardCode.ARROW_DOWN && !this.isopen) || (ev.key === KeyboardCode.ARROW_UP && this.isopen)) {\n this.toggleComboBox();\n }\n }\n\n private handleCheckboxFocus(id: string): void {\n this.focusedItemId = id;\n }\n\n private focusComboboxItem(elem): void {\n this.checkboxes.forEach(function (item) {\n item.setAttribute(\"tabindex\", \"-1\");\n });\n\n elem.setAttribute(\"tabindex\", \"0\");\n elem.focus();\n }\n\n private updateRenderItemsList(): void {\n if (this.searchValue) {\n this.filterItems(this.searchValue);\n } else {\n this.resetRenderItemsList();\n }\n }\n\n private resetRenderItemsList(): void {\n const renderItemsList = [];\n this.itemsList.forEach((item: ComboItem) => {\n renderItemsList.push({...item});\n });\n this.renderItemsList = renderItemsList;\n }\n\n private filterItems(value: string): void {\n if (!value) {\n return this.closeFilterItems();\n }\n\n this.resetRenderItemsList();\n this.renderItemsList = this.renderItemsList.filter((item) => {\n const start = item.name.toUpperCase().indexOf(value.toUpperCase());\n const end = start + value.length;\n const newName =\n item.name.substring(0, start) +\n \"<strong>\" +\n item.name.substring(start, end) +\n \"</strong>\" +\n item.name.substring(end, item.name.length);\n\n item.name = newName;\n\n return start >= 0;\n });\n }\n\n private checkAll(checked = true): void {\n this.itemsList = this.itemsList.map((item: ComboItem) => ({\n ...item,\n checked: checked,\n }));\n this.resetRenderItemsList();\n this.emitComboboxChange();\n }\n\n private closeFilterItems(): void {\n this.searchValue = \"\";\n this.resetRenderItemsList();\n }\n\n private toggleComboBox(): void {\n this.isopen = !this.isopen;\n }\n\n private getComboboxA11yAttributes(): Record<string, unknown> {\n return {\n \"role\": \"combobox\",\n \"aria-label\": this.label,\n \"aria-expanded\": this.isopen ? \"true\" : \"false\",\n \"aria-activedescendant\": this.isopen ? this.focusedItemId : \"\",\n \"aria-controls\": `${this.inputid}_list`,\n };\n }\n\n private renderHeader(): HTMLDivElement {\n return (\n <div\n class=\"header\"\n onClick={() => this.toggleComboBox()}\n onKeyDown={(ev: KeyboardEvent) => {\n this.handleHeaderKeyboardEvent(ev);\n }}\n onKeyUp={(ev: KeyboardEvent) => handleKeyboardSubmit(ev, this.toggleComboBox)}\n role=\"button\"\n tabindex={0}\n aria-expanded={this.isopen ? \"true\" : \"false\"}\n >\n <p class=\"body-3\">\n {this.label}\n <span>{this.selectedCounter > 0 && ` (${this.selectedCounter})`}</span>\n </p>\n <z-icon\n name=\"caret-down\"\n class={this.size}\n />\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n if (!this.isopen) {\n return;\n }\n\n return (\n <div class=\"open-combo-data\">\n {this.hassearch && this.renderSearchInput()}\n {!this.hassearch ? <span {...this.getComboboxA11yAttributes()} /> : null}\n <div\n role=\"listbox\"\n aria-label={this.label}\n aria-multiselectable={true}\n id={`${this.inputid}_list`}\n aria-owns={`${this.checkboxes.map((item) => item.id).join(\" \")}`}\n >\n {this.hascheckall && this.renderCheckAll()}\n {this.renderItems()}\n </div>\n </div>\n );\n }\n\n private renderItems(): HTMLDivElement {\n return (\n <div class={this.searchValue && \"search\"}>\n {this.renderList(this.renderItemsList)}\n {this.searchValue && this.renderCloseButton()}\n </div>\n );\n }\n\n private renderItem(item: ComboItem, index: number, length: number): ZMyzListItem {\n return (\n <z-list-element\n id={item.id}\n htmlTabindex={null}\n dividerType={index !== length - 1 ? ListDividerType.ELEMENT : ListDividerType.NONE}\n size={this.getControlToListSize()}\n >\n <z-input\n type={InputType.CHECKBOX}\n checked={item.checked}\n htmlid={this.getItemId(item)}\n label={item.name}\n class={this.getCheckboxClass()}\n disabled={!item.checked && this.maxcheckableitems && this.selectedCounter >= this.maxcheckableitems}\n size={this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size}\n role=\"option\"\n aria-selected={item.checked ? \"true\" : \"false\"}\n onKeyDown={(e: KeyboardEvent) => this.handleSelectArrowsNavigation(e, this.getItemId(item))}\n onInputCheck={(e: CustomEvent) => {\n this.itemsList = this.itemsList.map((i: ComboItem) => {\n if (item.id === i.id) {\n i.checked = e.detail.checked;\n }\n\n return i;\n });\n this.updateRenderItemsList();\n this.emitComboboxChange();\n }}\n onInputFocus={(e: CustomEvent) => this.handleCheckboxFocus(e.detail.id)}\n />\n </z-list-element>\n );\n }\n\n private renderList(items: ComboItem[]): HTMLUListElement {\n if (!items) {\n return;\n }\n if (!items.length && this.searchValue) {\n return this.renderNoSearchResults();\n }\n\n if (this.hasgroupitems) {\n return this.renderGroups(items);\n }\n\n return (\n <ul role=\"none\">\n {items.map((item, i) => {\n return this.renderItem(item, i, items.length);\n })}\n </ul>\n );\n }\n\n private renderGroups(items: ComboItem[]): HTMLUListElement {\n const newData = items.reduce((group, item, index) => {\n const {category} = item;\n const zListItem = this.renderItem(item, index, items.length);\n\n group[category] = group[category] ?? [];\n group[category].push(zListItem);\n\n return group;\n }, {});\n\n const listGroups = Object.entries(newData as {[key: string]: HTMLZListElementElement[]}).map(([key, value]) => {\n return (\n <z-list-group divider-type={ListDividerType.ELEMENT}>\n <span\n class=\"body-3-sb z-list-group-title\"\n slot=\"header-title\"\n >\n {key}\n </span>\n {value.map((item) => item)}\n </z-list-group>\n );\n });\n\n return <ul role=\"none\">{listGroups}</ul>;\n }\n\n private renderNoSearchResults(): HTMLUListElement {\n return (\n <ul role=\"none\">\n <z-myz-list-item\n id=\"no-results\"\n text={this.noresultslabel}\n listitemid=\"no-results\"\n icon=\"multiply-circle\"\n class={this.size}\n />\n </ul>\n );\n }\n\n private renderCloseButton(): HTMLDivElement {\n return (\n <div>\n <a\n onClick={() => this.closeFilterItems()}\n onKeyUp={(e: KeyboardEvent) => handleKeyboardSubmit(e, this.closeFilterItems)}\n role=\"button\"\n tabindex={0}\n >\n {this.closesearchtext}\n </a>\n </div>\n );\n }\n\n private renderSearchInput(): ZInput {\n return (\n <z-input\n htmlid={`${this.inputid}_search`}\n label={this.searchlabel}\n placeholder={this.searchplaceholder}\n htmltitle={this.searchtitle}\n type={this.inputType}\n value={this.searchValue}\n message={false}\n size={this.size}\n aria-autocomplete=\"list\"\n {...this.getComboboxA11yAttributes()}\n onKeyUp={(e: KeyboardEvent) => {\n if (e.key === KeyboardCode.ESC) {\n this.closeFilterItems();\n }\n }}\n onInputChange={(e: CustomEvent) => {\n this.searchValue = e.detail.value;\n }}\n />\n );\n }\n\n private renderCheckAll(): HTMLDivElement {\n if (this.searchValue) {\n return;\n }\n\n const checkAllId = `combo-checkbox-${this.inputid}-check-all`;\n const allChecked = this.selectedCounter === this.itemsList.length;\n\n return (\n <div class=\"check-all-wrapper\">\n <z-input\n type={InputType.CHECKBOX}\n checked={allChecked}\n htmlid={checkAllId}\n class={this.getCheckboxClass()}\n label={allChecked ? this.uncheckalltext : this.checkalltext}\n disabled={this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length}\n size={this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size}\n role=\"option\"\n aria-selected={allChecked ? \"true\" : \"false\"}\n onKeyDown={(e: KeyboardEvent) => this.handleSelectArrowsNavigation(e, checkAllId)}\n onInputCheck={(e: CustomEvent) => this.checkAll(e.detail.checked)}\n onInputFocus={(e: CustomEvent) => this.handleCheckboxFocus(e.detail.id)}\n />\n </div>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div\n data-action={`combo-${this.inputid}`}\n class={{open: this.isopen, fixed: this.isfixed, disabled: this.disabled}}\n id={this.inputid}\n >\n {this.renderHeader()}\n {!this.disabled && this.renderContent()}\n </div>\n );\n }\n}\n"],"mappings":"4LAAA,MAAMA,EAAY,m3HAClB,MAAAC,EAAeD,E,MCUFE,EAAS,MA+FpB,UAAAC,GACEC,KAAKC,iBAAmBD,KAAKE,QA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EAAYmB,QAAUnB,EAAYqB,MAAQnD,KAAKgD,KACnE+C,KAAK,SAAQ,gBACE4D,EAAa,OAAS,QACrCtD,UAAY9C,GAAqBvD,KAAKsD,6BAA6BC,EAAGmG,GACtE7B,aAAetE,GAAmBvD,KAAK4F,SAASrC,EAAEwE,OAAOvH,SACzDwH,aAAezE,GAAmBvD,KAAK4E,oBAAoBrB,EAAEwE,OAAOzG,M,CAM5E,MAAAwI,GACE,OACE5D,EAAA,OAAArC,IAAA,yDACe,SAAS7D,KAAKuB,UAC3B4E,MAAO,CAAC4D,KAAM/J,KAAK8D,OAAQkG,MAAOhK,KAAKiK,QAAStC,SAAU3H,KAAK2H,UAC/DrG,GAAItB,KAAKuB,SAERvB,KAAKiG,gBACJjG,KAAK2H,UAAY3H,KAAKyG,gB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as t,h as i}from"./p-cfa39bd3.js";const a="ul{padding:0;margin:0}";const n=a;const s=class{constructor(i){t(this,i);this.inputrawdata=undefined;this.list=undefined}componentWillLoad(){if(this.inputrawdata){this.parseinputrawdata(this.inputrawdata)}}parseinputrawdata(t){this.list=[...JSON.parse(t)]}oninputrawdataChange(t){this.parseinputrawdata(t)}render(){const t=this.list?this.list.length-1:-1;return i("ul",{key:"01d3d301598e389a0f5ad0470d9aae9a66c686ea"},this.list&&this.list.map(((a,n)=>i("z-myz-list-item",{listitemid:a.listitemid,text:a.text,link:a.link,linktarget:a.linktarget,icon:a.icon,underlined:t!=n}))))}static get watchers(){return{inputrawdata:["oninputrawdataChange"]}}};s.style=n;export{s as z_myz_list};
2
- //# sourceMappingURL=p-4d1827ea.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as o,h as a}from"./p-cfa39bd3.js";const r=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div>footer{height:128px;box-sizing:border-box;padding:var(--space-unit) calc(var(--space-unit) * 2) 0;border-top:var(--border-size-medium) solid var(--color-surface03);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-size:16px;line-height:24px}:host>div>footer>div.top,:host>div>footer>div.bottom{height:60px}";const e=r;const d=class{constructor(a){o(this,a)}render(){return a("div",{key:"8a3118b7d3f5bd5541a2f131583516bd26ca3e5c"},a("footer",{key:"a8726e42fa3b41f69449433266936fdd5930c16b"},a("div",{key:"2d5e86738d878da859a8ab8a916633625ee69c41",class:"top"},a("slot",{key:"ff66def944f80a3ed1c1347bf2fd3057c3edd137",name:"top"})),a("div",{key:"45b1d41639a2918b272b5b1298465f0ffd28f9c3",class:"bottom"},a("slot",{key:"ac107601a49da0317a53d38d3126773534dac0a2",name:"bottom"}))))}};d.style=e;export{d as z_myz_card_footer_sections};
2
- //# sourceMappingURL=p-50141aa4.entry.js.map
@@ -1,2 +0,0 @@
1
- export{Z as z_tr}from"./p-df2457c2.js";import"./p-cfa39bd3.js";import"./p-2c184714.js";import"./p-6037cdf3.js";import"./p-2c886e8b.js";import"./p-30209b8a.js";import"./p-2bd90f9d.js";
2
- //# sourceMappingURL=p-57ca10b2.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as i,c as t,h as e,a as s,g as o}from"./p-cfa39bd3.js";import{U as r,V as n,p as a,g as l,P as h,i as p}from"./p-6037cdf3.js";import{g as c,a as d}from"./p-2c184714.js";import"./p-2c886e8b.js";const f=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--line-clamp-popover:0;--line-clamp-mobile:1}*{box-sizing:border-box}button{padding:0;border:none;margin:0;background-color:transparent}nav{display:flex;align-items:center}ol{display:flex;align-items:center;padding:0;margin:0;column-gap:var(--space-unit);list-style:none}li{display:flex;align-items:center;justify-content:flex-start;column-gap:var(--space-unit)}ol li>a,ol li>button{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}a:focus,button:focus{box-shadow:var(--shadow-focus-primary);outline:none}a{color:var(--color-link-primary);white-space:nowrap}a.missing-path{color:var(--color-default-text)}.text-ellipsis{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp-mobile);text-overflow:ellipsis;white-space:initial}nav.semibold>ol>li>a:not(.missing-path),nav.semibold>ol>li>button{font-weight:var(--font-sb);text-decoration:none}nav.underlined a,nav.underlined button{text-decoration:underline}z-icon{--z-icon-width:16px;--z-icon-height:16px;display:block;fill:var(--color-link-primary)}z-icon.separator{--z-icon-width:10px;--z-icon-height:10px;fill:var(--gray500)}button.dots{display:inline-block;color:var(--color-link-primary);cursor:pointer}.hidden-paths-popover .popover-content{max-width:302px;padding:calc(var(--space-unit) / 2) var(--space-unit);text-align:left}.hidden-paths-popover .popover-content a{font-weight:var(--font-rg);text-decoration:none}.hidden-paths-popover{--z-popover-theme--surface:var(--color-surface02);--z-popover-padding:0}.hidden-paths-popover::before,.full-path-tooltip::before{--arrow-edge-offset:calc(100% - (var(--space-unit) * 2.55))}.full-path-tooltip{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse);--z-popover-padding:0}.tooltip-content{padding:0 var(--space-unit);font-size:var(--font-size-2)}@media (min-width: 768px){.text-ellipsis{-webkit-line-clamp:var(--line-clamp-popover)}}@media (max-width: 767px){li a{display:flex;align-items:center;column-gap:var(--space-unit)}}";const u=f;const m=class{constructor(e){i(this,e);this.clickOnNode=t(this,"clickOnNode",7);this.collapsedElements=[];this.currentIndex=0;this.truncatePosition=null;this.pathStyle=r.UNDERLINED;this.homepageVariant=n.ICON;this.maxNodesToShow=5;this.preventFollowUrl=false;this.overflowMenuItemRows=0;this.truncateChar=30;this.viewPortWidth=undefined;this.hasOverflow=false;this.popoverEllipsisOpen=false}handleResize(){this.viewPortWidth=c();if(this.viewPortWidth!==a.MOBILE&&this.wrapElement&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth){this.hasOverflow=true}}handlePropChange(){this.initializeBreadcrumb()}handleResizeUp(i,t){if(i===a.MOBILE||t===a.MOBILE&&i===a.TABLET||t===a.MOBILE&&i===a.DESKTOP||t===a.MOBILE&&i===a.DESKTOP_WIDE||t===a.TABLET&&i===a.DESKTOP||t===a.TABLET&&i===a.DESKTOP_WIDE||t===a.DESKTOP&&i===a.DESKTOP_WIDE){this.initializeBreadcrumb()}}componentWillLoad(){this.viewPortWidth=c();this.initializeBreadcrumb()}componentWillRender(){if(this.viewPortWidth!==a.MOBILE&&this.hasOverflow){this.checkEllipsisOrOverflowMenu();this.hasOverflow=false}}componentDidRender(){if(this.collapsedElementsRef){this.anchorElements=Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"))}if(this.viewPortWidth!==a.MOBILE&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth){this.hasOverflow=true}}initializeBreadcrumb(){if(this.viewPortWidth===a.MOBILE){this.pathsList=this.getPathsItemsList().filter((i=>!!i.path))}else{this.pathsList=this.getPathsItemsList()}this.homepageNode=this.pathsList.shift();this.pathListCopy=[...this.pathsList];this.collapsedElements=[];if(this.pathsList.length>this.maxNodesToShow){this.collapsedElements=this.pathsList.splice(0,this.pathsList.length-2)}}checkEllipsisOrOverflowMenu(){for(let i=0;i<this.pathsList.length;i++){if(this.pathsList[i].text.length<=this.truncateChar){continue}if(this.truncatePosition>0){this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition));this.pathsList.splice(0,this.truncatePosition);this.truncatePosition=0;return}else if(this.truncatePosition===0){this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition+1));this.pathsList.splice(0,this.truncatePosition+1);this.truncatePosition=null;return}if(i!==this.pathsList.length-1){const t=this.truncateWithEllipsis(this.pathsList[i].text,this.truncateChar);this.currentEllipsisText=this.pathsList[i].text;this.pathsList[i].text=t;this.pathsList[i].hasTooltip=true;this.truncatePosition=i;return}}}truncateWithEllipsis(i,t){if(i.length<=t){return i}return i.substring(0,t-1)+"&mldr;"}getPathsItemsList(){return Array.from(this.hostElement.children).map((i=>({text:i.textContent,path:i.href,hasTooltip:false})))}renderHomepageNode(){return e("li",null,e("a",{class:{"homepage-text":this.homepageVariant===n.TEXT},href:this.homepageNode.path,onClick:i=>this.handlePreventFollowUrl(i,this.homepageNode),innerHTML:this.homepageVariant===n.ICON?`<z-icon name="home" />`:this.homepageNode.text||"Home"}),this.pathsList.length>0&&e("z-icon",{class:"separator",name:"chevron-right"}))}togglePopover(){if(!this.collapsedElementsRef.open){this.collapsedElementsRef.open=true}}handlePreventFollowUrl(i,t){if(this.preventFollowUrl){i.preventDefault();this.clickOnNode.emit(t.path)}}handleOverflowMenuAccessibility(i){const t=this.anchorElements.length;if(i.key===l.TAB){i.preventDefault();return}i.stopPropagation();const e=[l.ARROW_DOWN,l.ARROW_UP];if(e.includes(i.key)){i.preventDefault();if(i.key===l.ARROW_DOWN){this.currentIndex=t===this.currentIndex+1?0:this.currentIndex+1}if(i.key===l.ARROW_UP){this.currentIndex=this.currentIndex<=0?t-1:this.currentIndex-1}this.anchorElements[this.currentIndex].focus()}if(i.key===l.ESC){this.triggerButton.focus()}}renderOverflowMenu(){return e("li",null,e("z-popover",{class:"hidden-paths-popover",ref:i=>this.collapsedElementsRef=i,bindTo:this.triggerButton,position:h.BOTTOM_RIGHT,closable:true,showArrow:true},e("div",{class:"popover-content"},e("z-list",null,e("z-list-group",{size:p.SMALL},this.collapsedElements.map(((i,t,s)=>e("div",null,e("z-list-element",{clickable:true},e("a",{class:"text-ellipsis",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i),onKeyDown:i=>this.handleOverflowMenuAccessibility(i),innerHTML:i.text})),t<s.length-1&&e("z-divider",{color:"color-surface03"})))))))),e("button",{class:"dots",ref:i=>this.triggerButton=i,"aria-label":"Mostra più breadcrumb","aria-haspopup":"true",onClick:()=>{this.togglePopover()},onKeyDown:i=>{d(i,this.togglePopover.bind(this));setTimeout((()=>{this.anchorElements[0].focus()}),100)},innerHTML:"&mldr;"}),this.pathsList.length>0&&e("z-icon",{class:"separator",name:"chevron-right"}))}renderMobileItems(){const i=this.pathsList[this.pathsList.length-1];if(!i){return}return e("li",null,e("a",{"aria-current":i.path?undefined:"page",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i)},e("z-icon",{name:"chevron-left"}),e("span",{class:{"missing-path":!i.path,"text-ellipsis":true}},i.text)))}renderItems(){let i;return[this.renderHomepageNode(),this.collapsedElements.length>0&&this.renderOverflowMenu(),...this.pathsList.map(((t,s)=>e("li",null,t.hasTooltip&&e("z-popover",{class:"full-path-tooltip",bindTo:i,open:this.popoverEllipsisOpen,position:h.BOTTOM_RIGHT,closable:false,showArrow:true},e("span",{class:"tooltip-content"},this.currentEllipsisText)),e("a",{class:{"missing-path":!t.path},ref:t=>i=t,"aria-current":t.path?undefined:"page",href:t.path,onClick:i=>this.handlePreventFollowUrl(i,t),onMouseOver:()=>{if(t.hasTooltip){this.popoverEllipsisOpen=true}},onMouseLeave:()=>{if(t.hasTooltip){this.popoverEllipsisOpen=false}},innerHTML:t.text}),s!==this.pathsList.length-1&&e("z-icon",{class:"separator",name:"chevron-right"}))))]}render(){return e(s,{key:"4ba9b5ba70c4b555c7124d2625953db5a8c89237",style:{"--line-clamp-popover":`${this.overflowMenuItemRows}`}},e("nav",{key:"9391b343e83579a5a8e1c3de696eea620af9d54e",ref:i=>this.wrapElement=i,"aria-label":"Breadcrumb",class:{semibold:this.pathStyle===r.SEMIBOLD,underlined:this.pathStyle===r.UNDERLINED}},e("ol",{key:"1761cec57c041dcff752af11465620334daa172a"},this.viewPortWidth===a.MOBILE?this.renderMobileItems():this.renderItems())))}get hostElement(){return o(this)}static get watchers(){return{maxNodesToShow:["handlePropChange"],viewPortWidth:["handleResizeUp"]}}};m.style=u;export{m as z_breadcrumb};
2
- //# sourceMappingURL=p-6e49f78e.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as t,h as i,a as n,g as o}from"./p-cfa39bd3.js";import{T as s}from"./p-6037cdf3.js";import{d as e,a as c}from"./p-2c184714.js";import"./p-2c886e8b.js";const r=".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg);text-align:center}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{display:inline-flex;height:100%;align-items:center}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:hidden;width:0;height:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-visible.sc-z-skip-to-content{width:initial;height:initial}.dark.sc-z-skip-to-content-h{background-color:var(--color-surface05);color:var(--color-surface01)}.light.sc-z-skip-to-content-h{border:var(--border-size-medium) solid var(--color-surface05);background-color:var(--color-surface01);color:var(--color-default-text)}@media (min-width: 768px){.sc-z-skip-to-content-h{text-align:start}}@media (min-width: 1152px){.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{padding:0 calc(var(--space-unit) * 3);border-right:var(--border-size-small) solid var(--color-surface05)}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:initial;width:initial;height:initial}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child{padding-right:0;border-right:none}.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{border-right:var(--border-size-small) solid var(--color-surface01)}}";const a=r;const l=class{constructor(i){t(this,i);this.variant=undefined;this.links=[];this.visible=false;this.visibleLink=""}handleFocusOutSkipToContent(t){if(this.isInSkipToContent(t.target)){this.visible=false}}handleFocusSkipToContent(t){if(this.isInSkipToContent(t.target)){this.visible=true}}componentDidLoad(){this.showFirstChild()}componentWillRender(){if(this.links){this.links=typeof this.links==="string"?JSON.parse(this.links):this.links}}isInSkipToContent(t){const i=e(t);const n=i.find((t=>t.nodeName.toLowerCase()==="z-skip-to-content"));return!!n}showFirstChild(){var t;const i=(t=this.hostElement.children)===null||t===void 0?void 0:t[0];if(i){this.visibleLink=i.id}}handleLinkClick(){this.visible=false}render(){return i(n,{key:"a4bf8e0dff1ee41acd3f525939794eab6353c7fe",class:{[this.variant]:true,"skip-to-content-visible":this.visible}},this.links.map(((t,n)=>{const o=`skip-to-content-${n}`;return i("div",{class:"link-container"},i("a",{id:o,class:{"body-1-sb":true,"z-link":true,"z-link-underline":true,"z-link-white":this.variant===s.DARK,"z-link-black":this.variant!==s.DARK,"link-visible":o==this.visibleLink,"link-invisible":o!=this.visibleLink},"aria-label":t.ariaLabel||t.label,href:t.href,onFocus:()=>this.visibleLink=o,onClick:()=>this.handleLinkClick(),onKeyUp:t=>c(t,this.handleLinkClick.bind(this))},t.label))})))}get hostElement(){return o(this)}};l.style=a;export{l as z_skip_to_content};
2
- //# sourceMappingURL=p-6e56ce77.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as n,a as i,g as s}from"./p-cfa39bd3.js";import{g as o}from"./p-6037cdf3.js";const a=':host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;flex-direction:column;flex-shrink:0;--z-menu-label-color:var(--color-default-text)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{width:100%;padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}.menu-wrapper{display:flex;align-items:center}.menu-wrapper:focus-visible,.menu-label-content:focus-visible,button:focus-visible{outline:none}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;height:30px;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{color:var(--color-primary01);font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content z-icon{color:var(--color-primary01);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-secondary01)}::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%;min-width:fit-content;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;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-secondary01);font-weight:var(--font-bd)}';const l=a;const r=class{toggle(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():this.closed.emit()}handleClick(t){if(!this.floating||!this.open||this.hostElement.contains(t.target)){return}this.reflow();this.open=false;this.closed.emit()}canvasOpenStatusChanged(t){this.currentCanvasOpenStatus=t.detail}handleKeyDown(t){if(t.code===o.ENTER){return}if(this.open&&!this.currentCanvasOpenStatus){this.handleNavigationSideArrow(t)}this.handleArrowsNav(t)}handleNavigationSideArrow(t){if(t.code!==o.ARROW_RIGHT&&t.code!==o.ARROW_LEFT){return}if(t.code===o.ARROW_RIGHT){const t=this.hostElement.nextElementSibling;if(!t){const t=this.firstElMenu.shadowRoot.querySelector(".menu-label");t.focus();this.open=false}if(t&&t.tagName==="Z-MENU"){const e=t.shadowRoot.querySelector(".menu-label");e.focus();if(t.children.length>1){t.setAttribute("open","true")}this.open=false}}else if(t.code===o.ARROW_LEFT){const t=this.hostElement.previousElementSibling;if(t.tagName!=="Z-MENU"){const t=this.lastElMenu.shadowRoot.querySelector(".menu-label");t.focus();this.open=false}if(t&&t.tagName==="Z-MENU"){const e=t.shadowRoot.querySelector(".menu-label");e.focus();if(t.children.length>1){t.setAttribute("open","true")}this.open=false}}}handleArrowsNav(t){const e=Array.from(this.hostElement.querySelectorAll("[slot='item']"));const n=e.map((t=>{if(t.tagName==="Z-MENU-SECTION"){return t.shadowRoot.querySelector("button")}return t}));if(this.open){t.preventDefault();t.stopPropagation();if(t.code===o.ARROW_DOWN||t.code===o.ARROW_UP){let e;n.forEach((t=>t.setAttribute("tabindex","-1")));if(t.code===o.ARROW_DOWN){e=this.getNextItem(n,1)}else if(t.code===o.ARROW_UP){e=this.getNextItem(n,-1)}if(e){e.setAttribute("tabindex","0");e.focus()}}else if(t.code===o.ESC){this.focusToParentAndCloseMenu()}else if(t.shiftKey&&t.code===o.TAB){this.focusToParentAndCloseMenu()}}}getNextItem(t,e){if(this.currentIndex===-1){this.currentIndex=e===1?0:t.length-1;return t[this.currentIndex]}this.currentIndex=(this.currentIndex+e+t.length)%t.length;return t[this.currentIndex]}focusToParentAndCloseMenu(){const t=this.hostElement.shadowRoot.querySelector(".menu-label");t.focus();this.currentIndex=-1;this.open=false}onOpenChanged(){if(this.open){this.reflow(true)}else{cancelAnimationFrame(this.raf)}}constructor(n){t(this,n);this.opened=e(this,"opened",7);this.closed=e(this,"closed",7);this.currentIndex=-1;this.currentCanvasOpenStatus=false;this.active=undefined;this.floating=true;this.open=false;this.verticalContext=false;this.hasHeader=undefined;this.hasContent=undefined;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(){const t=Array.from(this.hostElement.parentElement.querySelectorAll('[slot="menu"]'));this.firstElMenu=t[0];this.lastElMenu=t[t.length-1];this.checkContent()}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=e===null||e===void 0?void 0:e.textContent}reflow(t=false){if(this.content){const{style:t}=this.content;const{left:e}=this.hostElement.getBoundingClientRect();const n=getComputedStyle(this.content).width;const i=n?parseFloat(n.replace("px","")):375;const s=30;t.left=`${Math.min(window.innerWidth-e-i-s,0)}px`}if(t){this.raf=requestAnimationFrame(this.reflow.bind(this,t))}}checkContent(){this.hasHeader=!!this.hostElement.querySelectorAll("[slot=header]").length;this.hasContent=!!this.hostElement.querySelectorAll("[slot=item]").length||this.hasHeader}onItemsChange(){this.checkContent();const t=this.hostElement.querySelectorAll("[slot=item]");t.forEach((t=>{t.setAttribute("role","menuitem");t.setAttribute("tabindex","-1");t.dataset.text=t.textContent}))}focusFirstItemOnKeyUp(){const t=this.hostElement.querySelectorAll("[slot='item']")[0];if(t){t.focus();this.currentIndex=0}}renderMenuLabel(){if(this.hasContent){return n("div",{class:"menu-wrapper"},n("button",{class:"menu-label","aria-expanded":this.open?"true":"false","aria-label":this.open?"Chiudi menù":"Apri menù",onClick:this.toggle,onKeyUp:this.focusFirstItemOnKeyUp.bind(this)},n("div",{class:"menu-label-content"},n("slot",{onSlotchange:this.onLabelSlotChange}),n("z-icon",{name:this.open?"chevron-up":"chevron-down"}))))}return n("div",{class:"menu-wrapper"},n("div",{class:"menu-label"},n("div",{class:"menu-label-content"},n("slot",{onSlotchange:this.onLabelSlotChange}))))}render(){return n(i,{key:"02f0f1bea7a6b47cc0900534e70016bffe44331b"},this.renderMenuLabel(),this.hasContent&&n("div",{key:"c30dc0cad7a59cc84777ad58b0f34107b3fb4d8c",class:"content",ref:t=>this.content=t},this.hasHeader&&n("header",{key:"d0ebd710b71b76df7492633b056a9cea77c1a06d",class:"header"},n("slot",{key:"119a2e3da4d441e17c8738372639d9785a287169",name:"header",onSlotchange:this.checkContent})),n("div",{key:"eae4a4b4a7d91bbdd20d345ec7506c98ff1da03b",class:"items",role:"menu"},n("slot",{key:"0447bc02a308e30f95e7634c087fbefb81b9b4a3",name:"item",onSlotchange:this.onItemsChange}))))}get hostElement(){return s(this)}static get watchers(){return{open:["onOpenChanged"]}}};r.style=l;export{r as z_menu};
2
- //# sourceMappingURL=p-7fc503ef.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZMenuStyle0","ZMenu","toggle","this","hasContent","open","opened","emit","closed","handleClick","ev","floating","hostElement","contains","target","reflow","canvasOpenStatusChanged","e","currentCanvasOpenStatus","detail","handleKeyDown","code","KeyboardCode","ENTER","handleNavigationSideArrow","handleArrowsNav","ARROW_RIGHT","ARROW_LEFT","nextElement","nextElementSibling","firstMenuItem","firstElMenu","shadowRoot","querySelector","focus","tagName","menuButton","children","length","setAttribute","prevElement","previousElementSibling","lastElMenuItem","lastElMenu","menuItems","Array","from","querySelectorAll","newMenuItems","map","el","preventDefault","stopPropagation","ARROW_DOWN","ARROW_UP","nextFocusableItem","forEach","item","getNextItem","ESC","focusToParentAndCloseMenu","shiftKey","TAB","direction","currentIndex","onOpenChanged","cancelAnimationFrame","raf","constructor","hostRef","bind","checkContent","onLabelSlotChange","onItemsChange","componentWillLoad","parentElement","labelElement","assignedElements","dataset","text","textContent","live","content","style","left","getBoundingClientRect","widthPx","getComputedStyle","width","parseFloat","replace","safeScrollbarSpace","Math","min","window","innerWidth","requestAnimationFrame","hasHeader","items","focusFirstItemOnKeyUp","firstElement","renderMenuLabel","h","class","onClick","onKeyUp","onSlotchange","name","render","Host","key","ref","role"],"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 position: relative;\n display: inline-flex;\n flex-direction: column;\n flex-shrink: 0;\n\n --z-menu-label-color: var(--color-default-text);\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 width: 100%;\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\n.menu-wrapper {\n display: flex;\n align-items: center;\n}\n\n.menu-wrapper:focus-visible,\n.menu-label-content:focus-visible,\nbutton:focus-visible {\n outline: none;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-within {\n z-index: 1;\n box-shadow: var(--shadow-focus-primary);\n}\n\n.menu-label .menu-label-content {\n position: relative;\n display: flex;\n height: 30px;\n align-items: center;\n}\n\n:host(:is([active], [open])) .menu-label-content,\n.menu-label:focus-within .menu-label-content {\n color: var(--color-primary01);\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.menu-label:focus-within .menu-label-content z-icon {\n color: var(--color-primary01);\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-secondary01);\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 min-width: fit-content;\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-3);\n font-weight: inherit;\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-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\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 * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenu {\n @Element() hostElement: 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 (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 currentIndex = -1;\n\n private currentCanvasOpenStatus = false;\n\n private firstElMenu: HTMLMenuElement;\n\n private lastElMenu: HTMLMenuElement;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\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 @Listen(\"canvasOpenStatusChanged\", {target: \"document\"})\n canvasOpenStatusChanged(e: CustomEvent): void {\n this.currentCanvasOpenStatus = e.detail;\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ENTER) {\n return;\n }\n\n if (this.open && !this.currentCanvasOpenStatus) {\n this.handleNavigationSideArrow(e);\n }\n\n this.handleArrowsNav(e);\n }\n\n private handleNavigationSideArrow(e: KeyboardEvent): void {\n if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {\n return;\n }\n\n if (e.code === KeyboardCode.ARROW_RIGHT) {\n const nextElement = this.hostElement.nextElementSibling;\n\n if (!nextElement) {\n const firstMenuItem = this.firstElMenu.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n firstMenuItem.focus();\n this.open = false;\n }\n\n if (nextElement && nextElement.tagName === \"Z-MENU\") {\n const menuButton = nextElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n\n if (nextElement.children.length > 1) {\n nextElement.setAttribute(\"open\", \"true\");\n }\n this.open = false;\n }\n } else if (e.code === KeyboardCode.ARROW_LEFT) {\n const prevElement = this.hostElement.previousElementSibling;\n if (prevElement.tagName !== \"Z-MENU\") {\n const lastElMenuItem = this.lastElMenu.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n lastElMenuItem.focus();\n this.open = false;\n }\n if (prevElement && prevElement.tagName === \"Z-MENU\") {\n const menuButton = prevElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n if (prevElement.children.length > 1) {\n prevElement.setAttribute(\"open\", \"true\");\n }\n this.open = false;\n }\n }\n }\n\n private handleArrowsNav(e: KeyboardEvent): void {\n const menuItems = Array.from(this.hostElement.querySelectorAll(\"[slot='item']\")) as HTMLElement[];\n const newMenuItems = menuItems.map((el) => {\n if (el.tagName === \"Z-MENU-SECTION\") {\n return el.shadowRoot.querySelector(\"button\");\n }\n\n return el;\n });\n\n if (this.open) {\n e.preventDefault();\n e.stopPropagation();\n\n if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {\n let nextFocusableItem: HTMLElement;\n // INFO: reset focus on all menu items\n newMenuItems.forEach((item: HTMLElement) => item.setAttribute(\"tabindex\", \"-1\"));\n\n if (e.code === KeyboardCode.ARROW_DOWN) {\n nextFocusableItem = this.getNextItem(newMenuItems, 1);\n } else if (e.code === KeyboardCode.ARROW_UP) {\n nextFocusableItem = this.getNextItem(newMenuItems, -1);\n }\n\n if (nextFocusableItem) {\n nextFocusableItem.setAttribute(\"tabindex\", \"0\");\n nextFocusableItem.focus();\n }\n } else if (e.code === KeyboardCode.ESC) {\n this.focusToParentAndCloseMenu();\n } else if (e.shiftKey && e.code === KeyboardCode.TAB) {\n this.focusToParentAndCloseMenu();\n }\n }\n }\n\n private getNextItem(menuItems: HTMLElement[], direction: number): HTMLElement {\n if (this.currentIndex === -1) {\n this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;\n\n return menuItems[this.currentIndex];\n }\n\n this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;\n\n return menuItems[this.currentIndex];\n }\n\n private focusToParentAndCloseMenu(): void {\n const menuButton = this.hostElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n this.currentIndex = -1;\n this.open = false;\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 const menuItems = Array.from(this.hostElement.parentElement.querySelectorAll('[slot=\"menu\"]'));\n this.firstElMenu = menuItems[0] as HTMLMenuElement;\n this.lastElMenu = menuItems[menuItems.length - 1] as HTMLMenuElement;\n\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.setAttribute(\"tabindex\", \"-1\");\n item.dataset.text = item.textContent;\n });\n }\n\n private focusFirstItemOnKeyUp(): void {\n const firstElement = this.hostElement.querySelectorAll(\"[slot='item']\")[0] as HTMLElement;\n if (firstElement) {\n firstElement.focus();\n this.currentIndex = 0;\n }\n }\n\n private renderMenuLabel(): HTMLButtonElement | HTMLDivElement {\n if (this.hasContent) {\n return (\n <div class=\"menu-wrapper\">\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 onKeyUp={this.focusFirstItemOnKeyUp.bind(this)}\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 </div>\n );\n }\n\n return (\n <div class=\"menu-wrapper\">\n <div class=\"menu-label\">\n <div class=\"menu-label-content\">\n <slot onSlotchange={this.onLabelSlotChange}></slot>\n </div>\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":"oGAAA,MAAMA,EAAY,w+HAClB,MAAAC,EAAeD,E,MCaFE,EAAK,MAqDR,MAAAC,GACN,IAAKC,KAAKC,WAAY,CACpB,M,CAGFD,KAAKE,MAAQF,KAAKE,KAClBF,KAAKE,KAAOF,KAAKG,OAAOC,OAASJ,KAAKK,OAAOD,M,CAK/C,WAAAE,CAAYC,GACV,IAAKP,KAAKQ,WAAaR,KAAKE,MAAQF,KAAKS,YAAYC,SAASH,EAAGI,QAAoB,CACnF,M,CAGFX,KAAKY,SACLZ,KAAKE,KAAO,MACZF,KAAKK,OAAOD,M,CAId,uBAAAS,CAAwBC,GACtBd,KAAKe,wBAA0BD,EAAEE,M,CAInC,aAAAC,CAAcH,GACZ,GAAIA,EAAEI,OAASC,EAAaC,MAAO,CACjC,M,CAGF,GAAIpB,KAAKE,OAASF,KAAKe,wBAAyB,CAC9Cf,KAAKqB,0BAA0BP,E,CAGjCd,KAAKsB,gBAAgBR,E,CAGf,yBAAAO,CAA0BP,GAChC,GAAIA,EAAEI,OAASC,EAAaI,aAAeT,EAAEI,OAASC,EAAaK,WAAY,CAC7E,M,CAGF,GAAIV,EAAEI,OAASC,EAAaI,YAAa,CACvC,MAAME,EAAczB,KAAKS,YAAYiB,mBAErC,IAAKD,EAAa,CAChB,MAAME,EA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BAAsB7B,KAAKnE,OAEzCmG,EAAA,OAAKC,MAAM,sBACTD,EAAA,QAAMI,aAAcvG,KAAKqE,oBACzB8B,EAAA,UAAQK,KAAMxG,KAAKE,KAAO,aAAe,mB,CAOnD,OACEiG,EAAA,OAAKC,MAAM,gBACTD,EAAA,OAAKC,MAAM,cACTD,EAAA,OAAKC,MAAM,sBACTD,EAAA,QAAMI,aAAcvG,KAAKqE,sB,CAOnC,MAAAoC,GACE,OACEN,EAACO,EAAI,CAAAC,IAAA,4CACF3G,KAAKkG,kBAELlG,KAAKC,YACJkG,EAAA,OAAAQ,IAAA,2CACEP,MAAM,UACNQ,IAAM7D,GAAQ/C,KAAK+E,QAAUhC,GAE5B/C,KAAK8F,WACJK,EAAA,UAAAQ,IAAA,2CAAQP,MAAM,UACZD,EAAA,QAAAQ,IAAA,2CACEH,KAAK,SACLD,aAAcvG,KAAKoE,gBAKzB+B,EAAA,OAAAQ,IAAA,2CACEP,MAAM,QACNS,KAAK,QAELV,EAAA,QAAAQ,IAAA,2CACEH,KAAK,OACLD,aAAcvG,KAAKsE,kB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as t,h as c}from"./p-cfa39bd3.js";const o=":host{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:0 -1px -1px 0;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";const s=o;const e=class{constructor(c){t(this,c)}render(){return c("slot",{key:"6ccf878976faa5d3d80bd5554e8619bc26f6dccc"})}};e.style=s;export{e as z_visually_hidden};
2
- //# sourceMappingURL=p-82d3b0ad.entry.js.map
@@ -1,2 +0,0 @@
1
- export{Z as z_th}from"./p-2bd90f9d.js";import"./p-cfa39bd3.js";import"./p-6037cdf3.js";
2
- //# sourceMappingURL=p-88df10c9.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZDragdropAreaStyle0","ZDragdropArea","fileDroppedHandler","files","this","fileDropped","emit","renderOnDragOverMessage","h","class","dragAndDropLabel","render","key","tabIndex","ref","val","dragDropContainer","onDragOver","e","preventDefault","classList","add","onDragLeave","remove","onDrop","dataTransfer","length","supportCustomEvent","window","CustomEvent","event","x","ev","document","createEvent","initCustomEvent","bubbles","cancelable","detail","prototype","Event","safeDispatchEvent","target","check","type","toLowerCase","dispatchEvent","createsStackingContext","el","body","s","getComputedStyle","invalid","k","ok","undefined","opacity","position","webkitOverflowScrolling","parentElement","findNearestDialog","localName","parentNode","host","safeBlur","shadowRoot","activeElement","blur","inNodeList","nodeList","node","i","isFormMethodDialog","hasAttribute","getAttribute","findFocusableElementWithin","hostElement","opts","query","map","push","querySelector","join","Element","elems","querySelectorAll","tagName","isConnected","element","contains","findFormSubmitter","submitter","form","HTMLFormElement","dialogPolyfill","formSubmitter","root","getRootNode","maybeHandleSubmit","defaultPrevented","value","imagemapUseValue","dialog","formmethod","close","dialogPolyfillInfo","dialog_","replacedStyleTop_","openAsModal_","setAttribute","show","bind","showModal","addEventListener","returnValue","mo","MutationObserver","maybeHideModal","observe","attributes","attributeFilter","removed","cb","downgradeModal","timeout","delayModel","cand","substr","clearTimeout","setTimeout","forEach","name","Object","defineProperty","set","setOpen","get","backdrop_","createElement","className","backdropMouseEvent_","style","zIndex","top","removeChild","dm","removeDialog","removeAttribute","fake","insertBefore","firstChild","focus","redirectedEvent","initMouseEvent","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","stopPropagation","focus_","updateZIndex","dialogZ","backdropZ","Error","open","pushDialog","console","warn","needsCentering","reposition","nextSibling","opt_returnValue","closeEvent","scrollTop","documentElement","topValue","innerHeight","offsetHeight","Math","max","isInlinePositionSetByStylesheet","styleSheets","styleSheet","cssRules","j","rule","selectedNodes","selectorText","cssTop","getPropertyValue","cssBottom","computedStyle","bottom","forceRegisterDialog","HTMLDialogElement","registerDialog","DialogManager","pendingDialogStack","checkDOM","checkDOM_","overlay","forwardTab_","handleKey_","handleFocus_","zIndexLow_","zIndexHigh_","mo_","records","rec","c","removedNodes","concat","blockDocument","childList","subtree","unblockDocument","removeEventListener","disconnect","updateStacking","dpi","last","p","appendChild","containedByTopDialog_","candidate","composedPath","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","keyCode","cancelEvent","clone","slice","indexOf","allowed","unshift","index","splice","testForm","method","methodDescriptor","getOwnPropertyDescriptor","realGet","call","realSet","v","path","shift","valid","offsetX","offsetY","nativeFormSubmit","submit","replacementFormSubmit","ZModalStyle0","FOCUSABLE_ELEMENTS_SELECTOR","ZModal","emitModalClose","closable","modalClose","modalid","emitModalHeaderActive","modalHeaderActive","emitBackgroundClick","modalBackgroundClick","handlePageOverflow","mobileMediaQuery","matchMedia","mobileBreakpoint","matches","componentDidLoad","_a","focusableElements","Array","from","filter","display","handleKeyDown","code","KeyboardCode","ESC","TAB","shadowActiveElement","ownerDocument","firstFocusableElement","lastFocusableElement","closeButtonSlot","closeButtonLabel","onClick","handleEscape","scrollInside","role","alertdialog","onClose","onCancel","id","modaltitle","modalsubtitle"],"sources":["src/components/file-upload/z-dragdrop-area/styles.css?tag=z-dragdrop-area&encapsulation=shadow","src/components/file-upload/z-dragdrop-area/index.tsx","node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js","src/components/z-modal/styles.css?tag=z-modal&encapsulation=shadow","src/components/z-modal/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > .dragdrop {\n position: relative;\n display: flex;\n height: 228px;\n flex-direction: column;\n padding: calc(var(--space-unit) * 2);\n border-color: var(--color-surface04);\n background-color: var(--color-surface02);\n\n /* Native CSS properties don't support the customization of border-style.\n Therefore, we use a trick with an SVG image inside background-image property.\n The SVG features give us the ability to change the distance between dashed lines, set custom pattern, add dash offset or even change a line cap.\n Generated SVG image is vector and it fills width and height of elements by 100%, so it doesn't matter what size elements have. */\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");\n border-radius: 2px;\n color: var(--color-default-text);\n}\n\n:host > .dragdrop:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n/* https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element */\n:host > .dragdrop.dragover * {\n pointer-events: none;\n}\n\n:host > .dragdrop .dragover-container {\n position: absolute;\n z-index: 10;\n top: 0;\n left: 0;\n display: none;\n width: 100%;\n height: 100%;\n background-color: var(--color-primary03);\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host > .dragdrop .dragover-container .dragover-message {\n padding: 10px 28px;\n background-color: var(--color-link-primary);\n color: var(--color-text-inverse);\n}\n\n:host > .dragdrop.dragover .dragover-container {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n","import {Component, Event, EventEmitter, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-dragdrop-area\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZDragdropArea {\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel: string;\n\n /** Emitted when user drop one or more files */\n @Event()\n fileDropped: EventEmitter;\n\n private fileDroppedHandler(files: FileList): void {\n this.fileDropped.emit(files);\n }\n\n private dragDropContainer: HTMLDivElement;\n\n private renderOnDragOverMessage(): HTMLDivElement {\n return (\n <div class=\"dragover-container\">\n <div class=\"dragover-message\">\n <span class=\"body-2-sb\">{this.dragAndDropLabel}</span>\n </div>\n </div>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div\n tabIndex={0}\n ref={(val) => (this.dragDropContainer = val)}\n class=\"dragdrop\"\n onDragOver={(e) => {\n e.preventDefault();\n this.dragDropContainer.classList.add(\"dragover\");\n }}\n onDragLeave={() => {\n this.dragDropContainer.classList.remove(\"dragover\");\n }}\n onDrop={(e) => {\n e.preventDefault();\n if (e.dataTransfer.files.length) {\n this.dragDropContainer.classList.remove(\"dragover\");\n this.fileDroppedHandler(e.dataTransfer.files);\n }\n }}\n >\n {this.renderOnDragOverMessage()}\n <slot />\n </div>\n );\n }\n}\n","// nb. This is for IE10 and lower _only_.\nvar supportCustomEvent = window.CustomEvent;\nif (!supportCustomEvent || typeof supportCustomEvent === 'object') {\n supportCustomEvent = function CustomEvent(event, x) {\n x = x || {};\n var ev = document.createEvent('CustomEvent');\n ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);\n return ev;\n };\n supportCustomEvent.prototype = window.Event.prototype;\n}\n\n/**\n * Dispatches the passed event to both an \"on<type>\" handler as well as via the\n * normal dispatch operation. Does not bubble.\n *\n * @param {!EventTarget} target\n * @param {!Event} event\n * @return {boolean}\n */\nfunction safeDispatchEvent(target, event) {\n var check = 'on' + event.type.toLowerCase();\n if (typeof target[check] === 'function') {\n target[check](event);\n }\n return target.dispatchEvent(event);\n}\n\n/**\n * @param {Element} el to check for stacking context\n * @return {boolean} whether this el or its parents creates a stacking context\n */\nfunction createsStackingContext(el) {\n while (el && el !== document.body) {\n var s = window.getComputedStyle(el);\n var invalid = function(k, ok) {\n return !(s[k] === undefined || s[k] === ok);\n };\n\n if (s.opacity < 1 ||\n invalid('zIndex', 'auto') ||\n invalid('transform', 'none') ||\n invalid('mixBlendMode', 'normal') ||\n invalid('filter', 'none') ||\n invalid('perspective', 'none') ||\n s['isolation'] === 'isolate' ||\n s.position === 'fixed' ||\n s.webkitOverflowScrolling === 'touch') {\n return true;\n }\n el = el.parentElement;\n }\n return false;\n}\n\n/**\n * Finds the nearest <dialog> from the passed element.\n *\n * @param {Element} el to search from\n * @return {HTMLDialogElement} dialog found\n */\nfunction findNearestDialog(el) {\n while (el) {\n if (el.localName === 'dialog') {\n return /** @type {HTMLDialogElement} */ (el);\n }\n if (el.parentElement) {\n el = el.parentElement;\n } else if (el.parentNode) {\n el = el.parentNode.host;\n } else {\n el = null;\n }\n }\n return null;\n}\n\n/**\n * Blur the specified element, as long as it's not the HTML body element.\n * This works around an IE9/10 bug - blurring the body causes Windows to\n * blur the whole application.\n *\n * @param {Element} el to blur\n */\nfunction safeBlur(el) {\n // Find the actual focused element when the active element is inside a shadow root\n while (el && el.shadowRoot && el.shadowRoot.activeElement) {\n el = el.shadowRoot.activeElement;\n }\n\n if (el && el.blur && el !== document.body) {\n el.blur();\n }\n}\n\n/**\n * @param {!NodeList} nodeList to search\n * @param {Node} node to find\n * @return {boolean} whether node is inside nodeList\n */\nfunction inNodeList(nodeList, node) {\n for (var i = 0; i < nodeList.length; ++i) {\n if (nodeList[i] === node) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * @param {HTMLFormElement} el to check\n * @return {boolean} whether this form has method=\"dialog\"\n */\nfunction isFormMethodDialog(el) {\n if (!el || !el.hasAttribute('method')) {\n return false;\n }\n return el.getAttribute('method').toLowerCase() === 'dialog';\n}\n\n/**\n * @param {!DocumentFragment|!Element} hostElement\n * @return {?Element}\n */\nfunction findFocusableElementWithin(hostElement) {\n // Note that this is 'any focusable area'. This list is probably not exhaustive, but the\n // alternative involves stepping through and trying to focus everything.\n var opts = ['button', 'input', 'keygen', 'select', 'textarea'];\n var query = opts.map(function(el) {\n return el + ':not([disabled])';\n });\n // TODO(samthor): tabindex values that are not numeric are not focusable.\n query.push('[tabindex]:not([disabled]):not([tabindex=\"\"])'); // tabindex != \"\", not disabled\n var target = hostElement.querySelector(query.join(', '));\n\n if (!target && 'attachShadow' in Element.prototype) {\n // If we haven't found a focusable target, see if the host element contains an element\n // which has a shadowRoot.\n // Recursively search for the first focusable item in shadow roots.\n var elems = hostElement.querySelectorAll('*');\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].tagName && elems[i].shadowRoot) {\n target = findFocusableElementWithin(elems[i].shadowRoot);\n if (target) {\n break;\n }\n }\n }\n }\n return target;\n}\n\n/**\n * Determines if an element is attached to the DOM.\n * @param {Element} element to check\n * @return {boolean} whether the element is in DOM\n */\nfunction isConnected(element) {\n return element.isConnected || document.body.contains(element);\n}\n\n/**\n * @param {!Event} event\n * @return {?Element}\n */\nfunction findFormSubmitter(event) {\n if (event.submitter) {\n return event.submitter;\n }\n\n var form = event.target;\n if (!(form instanceof HTMLFormElement)) {\n return null;\n }\n\n var submitter = dialogPolyfill.formSubmitter;\n if (!submitter) {\n var target = event.target;\n var root = ('getRootNode' in target && target.getRootNode() || document);\n submitter = root.activeElement;\n }\n\n if (!submitter || submitter.form !== form) {\n return null;\n }\n return submitter;\n}\n\n/**\n * @param {!Event} event\n */\nfunction maybeHandleSubmit(event) {\n if (event.defaultPrevented) {\n return;\n }\n var form = /** @type {!HTMLFormElement} */ (event.target);\n\n // We'd have a value if we clicked on an imagemap.\n var value = dialogPolyfill.imagemapUseValue;\n var submitter = findFormSubmitter(event);\n if (value === null && submitter) {\n value = submitter.value;\n }\n\n // There should always be a dialog as this handler is added specifically on them, but check just\n // in case.\n var dialog = findNearestDialog(form);\n if (!dialog) {\n return;\n }\n\n // Prefer formmethod on the button.\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod !== 'dialog') {\n return;\n }\n event.preventDefault();\n\n if (value != null) {\n // nb. we explicitly check against null/undefined\n dialog.close(value);\n } else {\n dialog.close();\n }\n}\n\n/**\n * @param {!HTMLDialogElement} dialog to upgrade\n * @constructor\n */\nfunction dialogPolyfillInfo(dialog) {\n this.dialog_ = dialog;\n this.replacedStyleTop_ = false;\n this.openAsModal_ = false;\n\n // Set a11y role. Browsers that support dialog implicitly know this already.\n if (!dialog.hasAttribute('role')) {\n dialog.setAttribute('role', 'dialog');\n }\n\n dialog.show = this.show.bind(this);\n dialog.showModal = this.showModal.bind(this);\n dialog.close = this.close.bind(this);\n\n dialog.addEventListener('submit', maybeHandleSubmit, false);\n\n if (!('returnValue' in dialog)) {\n dialog.returnValue = '';\n }\n\n if ('MutationObserver' in window) {\n var mo = new MutationObserver(this.maybeHideModal.bind(this));\n mo.observe(dialog, {attributes: true, attributeFilter: ['open']});\n } else {\n // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also\n // seem to fire even if the element was removed as part of a parent removal. Use the removed\n // events to force downgrade (useful if removed/immediately added).\n var removed = false;\n var cb = function() {\n removed ? this.downgradeModal() : this.maybeHideModal();\n removed = false;\n }.bind(this);\n var timeout;\n var delayModel = function(ev) {\n if (ev.target !== dialog) { return; } // not for a child element\n var cand = 'DOMNodeRemoved';\n removed |= (ev.type.substr(0, cand.length) === cand);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(cb, 0);\n };\n ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {\n dialog.addEventListener(name, delayModel);\n });\n }\n // Note that the DOM is observed inside DialogManager while any dialog\n // is being displayed as a modal, to catch modal removal from the DOM.\n\n Object.defineProperty(dialog, 'open', {\n set: this.setOpen.bind(this),\n get: dialog.hasAttribute.bind(dialog, 'open')\n });\n\n this.backdrop_ = document.createElement('div');\n this.backdrop_.className = 'backdrop';\n this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));\n}\n\ndialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({\n\n get dialog() {\n return this.dialog_;\n },\n\n /**\n * Maybe remove this dialog from the modal top layer. This is called when\n * a modal dialog may no longer be tenable, e.g., when the dialog is no\n * longer open or is no longer part of the DOM.\n */\n maybeHideModal: function() {\n if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }\n this.downgradeModal();\n },\n\n /**\n * Remove this dialog from the modal top layer, leaving it as a non-modal.\n */\n downgradeModal: function() {\n if (!this.openAsModal_) { return; }\n this.openAsModal_ = false;\n this.dialog_.style.zIndex = '';\n\n // This won't match the native <dialog> exactly because if the user set top on a centered\n // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's\n // possible to polyfill this perfectly.\n if (this.replacedStyleTop_) {\n this.dialog_.style.top = '';\n this.replacedStyleTop_ = false;\n }\n\n // Clear the backdrop and remove from the manager.\n this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);\n dialogPolyfill.dm.removeDialog(this);\n },\n\n /**\n * @param {boolean} value whether to open or close this dialog\n */\n setOpen: function(value) {\n if (value) {\n this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');\n } else {\n this.dialog_.removeAttribute('open');\n this.maybeHideModal(); // nb. redundant with MutationObserver\n }\n },\n\n /**\n * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if\n * they were on the dialog itself.\n *\n * @param {!Event} e to redirect\n */\n backdropMouseEvent_: function(e) {\n if (!this.dialog_.hasAttribute('tabindex')) {\n // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be\n // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this\n // would not be needed - clicks would move the implicit cursor there.\n var fake = document.createElement('div');\n this.dialog_.insertBefore(fake, this.dialog_.firstChild);\n fake.tabIndex = -1;\n fake.focus();\n this.dialog_.removeChild(fake);\n } else {\n this.dialog_.focus();\n }\n\n var redirectedEvent = document.createEvent('MouseEvents');\n redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,\n e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,\n e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);\n this.dialog_.dispatchEvent(redirectedEvent);\n e.stopPropagation();\n },\n\n /**\n * Focuses on the first focusable element within the dialog. This will always blur the current\n * focus, even if nothing within the dialog is found.\n */\n focus_: function() {\n // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.\n var target = this.dialog_.querySelector('[autofocus]:not([disabled])');\n if (!target && this.dialog_.tabIndex >= 0) {\n target = this.dialog_;\n }\n if (!target) {\n target = findFocusableElementWithin(this.dialog_);\n }\n safeBlur(document.activeElement);\n target && target.focus();\n },\n\n /**\n * Sets the zIndex for the backdrop and dialog.\n *\n * @param {number} dialogZ\n * @param {number} backdropZ\n */\n updateZIndex: function(dialogZ, backdropZ) {\n if (dialogZ < backdropZ) {\n throw new Error('dialogZ should never be < backdropZ');\n }\n this.dialog_.style.zIndex = dialogZ;\n this.backdrop_.style.zIndex = backdropZ;\n },\n\n /**\n * Shows the dialog. If the dialog is already open, this does nothing.\n */\n show: function() {\n if (!this.dialog_.open) {\n this.setOpen(true);\n this.focus_();\n }\n },\n\n /**\n * Show this dialog modally.\n */\n showModal: function() {\n if (this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is already open, and therefore cannot be opened modally.');\n }\n if (!isConnected(this.dialog_)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is not in a Document.');\n }\n if (!dialogPolyfill.dm.pushDialog(this)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: There are too many open modal dialogs.');\n }\n\n if (createsStackingContext(this.dialog_.parentElement)) {\n console.warn('A dialog is being shown inside a stacking context. ' +\n 'This may cause it to be unusable. For more information, see this link: ' +\n 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');\n }\n\n this.setOpen(true);\n this.openAsModal_ = true;\n\n // Optionally center vertically, relative to the current viewport.\n if (dialogPolyfill.needsCentering(this.dialog_)) {\n dialogPolyfill.reposition(this.dialog_);\n this.replacedStyleTop_ = true;\n } else {\n this.replacedStyleTop_ = false;\n }\n\n // Insert backdrop.\n this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);\n\n // Focus on whatever inside the dialog.\n this.focus_();\n },\n\n /**\n * Closes this HTMLDialogElement. This is optional vs clearing the open\n * attribute, however this fires a 'close' event.\n *\n * @param {string=} opt_returnValue to use as the returnValue\n */\n close: function(opt_returnValue) {\n if (!this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'close\\' on dialog: The element does not have an \\'open\\' attribute, and therefore cannot be closed.');\n }\n this.setOpen(false);\n\n // Leave returnValue untouched in case it was set directly on the element\n if (opt_returnValue !== undefined) {\n this.dialog_.returnValue = opt_returnValue;\n }\n\n // Triggering \"close\" event for any attached listeners on the <dialog>.\n var closeEvent = new supportCustomEvent('close', {\n bubbles: false,\n cancelable: false\n });\n safeDispatchEvent(this.dialog_, closeEvent);\n }\n\n});\n\nvar dialogPolyfill = {};\n\ndialogPolyfill.reposition = function(element) {\n var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;\n var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;\n element.style.top = Math.max(scrollTop, topValue) + 'px';\n};\n\ndialogPolyfill.isInlinePositionSetByStylesheet = function(element) {\n for (var i = 0; i < document.styleSheets.length; ++i) {\n var styleSheet = document.styleSheets[i];\n var cssRules = null;\n // Some browsers throw on cssRules.\n try {\n cssRules = styleSheet.cssRules;\n } catch (e) {}\n if (!cssRules) { continue; }\n for (var j = 0; j < cssRules.length; ++j) {\n var rule = cssRules[j];\n var selectedNodes = null;\n // Ignore errors on invalid selector texts.\n try {\n selectedNodes = document.querySelectorAll(rule.selectorText);\n } catch(e) {}\n if (!selectedNodes || !inNodeList(selectedNodes, element)) {\n continue;\n }\n var cssTop = rule.style.getPropertyValue('top');\n var cssBottom = rule.style.getPropertyValue('bottom');\n if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {\n return true;\n }\n }\n }\n return false;\n};\n\ndialogPolyfill.needsCentering = function(dialog) {\n var computedStyle = window.getComputedStyle(dialog);\n if (computedStyle.position !== 'absolute') {\n return false;\n }\n\n // We must determine whether the top/bottom specified value is non-auto. In\n // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but\n // Firefox returns the used value. So we do this crazy thing instead: check\n // the inline style and then go through CSS rules.\n if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||\n (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {\n return false;\n }\n return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);\n};\n\n/**\n * @param {!Element} element to force upgrade\n */\ndialogPolyfill.forceRegisterDialog = function(element) {\n if (window.HTMLDialogElement || element.showModal) {\n console.warn('This browser already supports <dialog>, the polyfill ' +\n 'may not work correctly', element);\n }\n if (element.localName !== 'dialog') {\n throw new Error('Failed to register dialog: The element is not a dialog.');\n }\n new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));\n};\n\n/**\n * @param {!Element} element to upgrade, if necessary\n */\ndialogPolyfill.registerDialog = function(element) {\n if (!element.showModal) {\n dialogPolyfill.forceRegisterDialog(element);\n }\n};\n\n/**\n * @constructor\n */\ndialogPolyfill.DialogManager = function() {\n /** @type {!Array<!dialogPolyfillInfo>} */\n this.pendingDialogStack = [];\n\n var checkDOM = this.checkDOM_.bind(this);\n\n // The overlay is used to simulate how a modal dialog blocks the document.\n // The blocking dialog is positioned on top of the overlay, and the rest of\n // the dialogs on the pending dialog stack are positioned below it. In the\n // actual implementation, the modal dialog stacking is controlled by the\n // top layer, where z-index has no effect.\n this.overlay = document.createElement('div');\n this.overlay.className = '_dialog_overlay';\n this.overlay.addEventListener('click', function(e) {\n this.forwardTab_ = undefined;\n e.stopPropagation();\n checkDOM([]); // sanity-check DOM\n }.bind(this));\n\n this.handleKey_ = this.handleKey_.bind(this);\n this.handleFocus_ = this.handleFocus_.bind(this);\n\n this.zIndexLow_ = 100000;\n this.zIndexHigh_ = 100000 + 150;\n\n this.forwardTab_ = undefined;\n\n if ('MutationObserver' in window) {\n this.mo_ = new MutationObserver(function(records) {\n var removed = [];\n records.forEach(function(rec) {\n for (var i = 0, c; c = rec.removedNodes[i]; ++i) {\n if (!(c instanceof Element)) {\n continue;\n } else if (c.localName === 'dialog') {\n removed.push(c);\n }\n removed = removed.concat(c.querySelectorAll('dialog'));\n }\n });\n removed.length && checkDOM(removed);\n });\n }\n};\n\n/**\n * Called on the first modal dialog being shown. Adds the overlay and related\n * handlers.\n */\ndialogPolyfill.DialogManager.prototype.blockDocument = function() {\n document.documentElement.addEventListener('focus', this.handleFocus_, true);\n document.addEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});\n};\n\n/**\n * Called on the first modal dialog being removed, i.e., when no more modal\n * dialogs are visible.\n */\ndialogPolyfill.DialogManager.prototype.unblockDocument = function() {\n document.documentElement.removeEventListener('focus', this.handleFocus_, true);\n document.removeEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.disconnect();\n};\n\n/**\n * Updates the stacking of all known dialogs.\n */\ndialogPolyfill.DialogManager.prototype.updateStacking = function() {\n var zIndex = this.zIndexHigh_;\n\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n dpi.updateZIndex(--zIndex, --zIndex);\n if (i === 0) {\n this.overlay.style.zIndex = --zIndex;\n }\n }\n\n // Make the overlay a sibling of the dialog itself.\n var last = this.pendingDialogStack[0];\n if (last) {\n var p = last.dialog.parentNode || document.body;\n p.appendChild(this.overlay);\n } else if (this.overlay.parentNode) {\n this.overlay.parentNode.removeChild(this.overlay);\n }\n};\n\n/**\n * @param {Element} candidate to check if contained or is the top-most modal dialog\n * @return {boolean} whether candidate is contained in top dialog\n */\ndialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {\n while (candidate = findNearestDialog(candidate)) {\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n if (dpi.dialog === candidate) {\n return i === 0; // only valid if top-most\n }\n }\n candidate = candidate.parentElement;\n }\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n\n if (this.containedByTopDialog_(target)) { return; }\n\n if (document.activeElement === document.documentElement) { return; }\n\n event.preventDefault();\n event.stopPropagation();\n safeBlur(/** @type {Element} */ (target));\n\n if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key\n\n var dpi = this.pendingDialogStack[0];\n var dialog = dpi.dialog;\n var position = dialog.compareDocumentPosition(target);\n if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n if (this.forwardTab_) {\n // forward\n dpi.focus_();\n } else if (target !== document.documentElement) {\n // backwards if we're not already focused on <html>\n document.documentElement.focus();\n }\n }\n\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {\n this.forwardTab_ = undefined;\n if (event.keyCode === 27) {\n event.preventDefault();\n event.stopPropagation();\n var cancelEvent = new supportCustomEvent('cancel', {\n bubbles: false,\n cancelable: true\n });\n var dpi = this.pendingDialogStack[0];\n if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {\n dpi.dialog.close();\n }\n } else if (event.keyCode === 9) {\n this.forwardTab_ = !event.shiftKey;\n }\n};\n\n/**\n * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are\n * removed and immediately readded don't stay modal, they become normal.\n *\n * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed\n */\ndialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {\n // This operates on a clone because it may cause it to change. Each change also calls\n // updateStacking, which only actually needs to happen once. But who removes many modal dialogs\n // at a time?!\n var clone = this.pendingDialogStack.slice();\n clone.forEach(function(dpi) {\n if (removed.indexOf(dpi.dialog) !== -1) {\n dpi.downgradeModal();\n } else {\n dpi.maybeHideModal();\n }\n });\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n * @return {boolean} whether the dialog was allowed\n */\ndialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {\n var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;\n if (this.pendingDialogStack.length >= allowed) {\n return false;\n }\n if (this.pendingDialogStack.unshift(dpi) === 1) {\n this.blockDocument();\n }\n this.updateStacking();\n return true;\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n */\ndialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {\n var index = this.pendingDialogStack.indexOf(dpi);\n if (index === -1) { return; }\n\n this.pendingDialogStack.splice(index, 1);\n if (this.pendingDialogStack.length === 0) {\n this.unblockDocument();\n }\n this.updateStacking();\n};\n\ndialogPolyfill.dm = new dialogPolyfill.DialogManager();\ndialogPolyfill.formSubmitter = null;\ndialogPolyfill.imagemapUseValue = null;\n\n/**\n * Installs global handlers, such as click listers and native method overrides. These are needed\n * even if a no dialog is registered, as they deal with <form method=\"dialog\">.\n */\nif (window.HTMLDialogElement === undefined) {\n\n /**\n * If HTMLFormElement translates method=\"DIALOG\" into 'get', then replace the descriptor with\n * one that returns the correct value.\n */\n var testForm = document.createElement('form');\n testForm.setAttribute('method', 'dialog');\n if (testForm.method !== 'dialog') {\n var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');\n if (methodDescriptor) {\n // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything\n // and don't bother to update the element.\n var realGet = methodDescriptor.get;\n methodDescriptor.get = function() {\n if (isFormMethodDialog(this)) {\n return 'dialog';\n }\n return realGet.call(this);\n };\n var realSet = methodDescriptor.set;\n /** @this {HTMLElement} */\n methodDescriptor.set = function(v) {\n if (typeof v === 'string' && v.toLowerCase() === 'dialog') {\n return this.setAttribute('method', v);\n }\n return realSet.call(this, v);\n };\n Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);\n }\n }\n\n /**\n * Global 'click' handler, to capture the <input type=\"submit\"> or <button> element which has\n * submitted a <form method=\"dialog\">. Needed as Safari and others don't report this inside\n * document.activeElement.\n */\n document.addEventListener('click', function(ev) {\n dialogPolyfill.formSubmitter = null;\n dialogPolyfill.imagemapUseValue = null;\n if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission\n\n var target = /** @type {Element} */ (ev.target);\n if ('composedPath' in ev) {\n var path = ev.composedPath();\n target = path.shift() || target;\n }\n if (!target || !isFormMethodDialog(target.form)) { return; }\n\n var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);\n if (!valid) {\n if (!(target.localName === 'input' && target.type === 'image')) { return; }\n // this is a <input type=\"image\">, which can submit forms\n dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;\n }\n\n var dialog = findNearestDialog(target);\n if (!dialog) { return; }\n\n dialogPolyfill.formSubmitter = target;\n\n }, false);\n\n /**\n * Global 'submit' handler. This handles submits of `method=\"dialog\"` which are invalid, i.e.,\n * outside a dialog. They get prevented.\n */\n document.addEventListener('submit', function(ev) {\n var form = ev.target;\n var dialog = findNearestDialog(form);\n if (dialog) {\n return; // ignore, handle there\n }\n\n var submitter = findFormSubmitter(ev);\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod === 'dialog') {\n ev.preventDefault();\n }\n });\n\n /**\n * Replace the native HTMLFormElement.submit() method, as it won't fire the\n * submit event and give us a chance to respond.\n */\n var nativeFormSubmit = HTMLFormElement.prototype.submit;\n var replacementFormSubmit = function () {\n if (!isFormMethodDialog(this)) {\n return nativeFormSubmit.call(this);\n }\n var dialog = findNearestDialog(this);\n dialog && dialog.close();\n };\n HTMLFormElement.prototype.submit = replacementFormSubmit;\n}\n\nexport default dialogPolyfill;\n",":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n\n --z-modal-content-padding: calc(var(--space-unit) * 2);\n}\n\n:host > dialog {\n padding: 0;\n border: none;\n margin: 0;\n background-color: transparent;\n}\n\n/* stylelint-disable selector-pseudo-class-no-unknown */\n:host > dialog:modal {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n}\n\n:host > dialog::backdrop {\n display: none;\n}\n\n/* polyfill style */\n:host > dialog + .backdrop {\n display: none;\n}\n\n:host > dialog:not([open]) {\n display: none;\n}\n\n:host > dialog[open] {\n display: block;\n}\n\n::slotted([slot=\"modalContent\"]) {\n padding: var(--z-modal-content-padding);\n}\n\n.modal-container {\n z-index: 1010;\n display: flex;\n overflow: -moz-scrollbars-none;\n width: 100%;\n height: 100vh;\n flex-direction: column;\n}\n\n.modal-container > .modal-content-scroll-outside {\n overflow: auto;\n background: var(--color-surface01);\n}\n\n.modal-container > header {\n padding: calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.75)\n calc(var(--space-unit) * 2);\n background: var(--color-surface02);\n}\n\n.modal-container > header button {\n padding: 0;\n border: none;\n margin: 0;\n margin-left: auto;\n background: transparent;\n cursor: pointer;\n}\n\n.modal-container > header button:focus-visible {\n border-radius: 50%;\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n.modal-container > header button::after {\n position: absolute;\n top: 6px;\n right: 4px;\n display: block;\n width: 40px;\n height: 40px;\n background-color: transparent;\n content: \"\";\n}\n\n.modal-container > header z-icon {\n --z-icon-width: calc(var(--space-unit) * 2.25);\n --z-icon-height: calc(var(--space-unit) * 2.25);\n\n display: flex;\n fill: var(--color-primary01-icon);\n}\n\n.modal-container > header > div {\n display: flex;\n width: 100%;\n align-items: baseline;\n margin-right: calc(var(--space-unit) * 2);\n}\n\n.modal-container > header h1,\n.modal-container > header .subtitle {\n padding: 0;\n margin: 0;\n color: var(--color-default-text);\n font-weight: var(--font-sb);\n}\n\n.modal-container > header h1 {\n font-size: var(--font-size-5);\n letter-spacing: 0;\n line-height: 1.4;\n}\n\n.modal-container > header .subtitle {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n letter-spacing: 0;\n line-height: 1.5;\n}\n\n.modal-container > header > div > h1 *:empty {\n display: none;\n}\n\n.modal-container > header h1 + .subtitle {\n margin-top: calc(var(--space-unit) * 0.5);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside {\n overflow: hidden auto;\n flex: 1 auto;\n background: var(--color-surface01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar {\n width: 10px;\n background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);\n border-radius: var(--border-radius);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb {\n width: 10px;\n background-color: var(--color-primary01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-hover-primary);\n}\n\n/* Firefox */\n.modal-container-scroll-inside .modal-content-scroll-inside,\n.modal-container-scroll-outside .modal-content-scroll-outside {\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n/* Tablet / Desktop */\n@media only screen and (min-width: 768px) {\n .modal-background {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n width: 100vw;\n height: 100vh;\n background-color: var(--gray900);\n opacity: 0.7;\n }\n\n .modal-background.modal-background-scroll-outside {\n position: sticky;\n }\n\n .modal-container-scroll-inside {\n position: fixed;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n overflow: hidden;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n border-radius: var(--border-radius);\n transform: translateX(-50%);\n }\n\n .modal-container-scroll-outside {\n position: absolute;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n display: block;\n overflow: initial;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n transform: translateX(-50%);\n }\n\n .modal-container > .modal-content-scroll-outside {\n overflow: initial;\n }\n\n .modal-container-scroll-outside > header,\n .modal-container-scroll-inside > header {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n\n .modal-container-scroll-outside::after {\n display: block;\n height: calc(var(--space-unit) * 6);\n content: \" \";\n }\n\n .modal-dialog {\n position: fixed;\n top: 0;\n left: 0;\n height: auto;\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .modal-content-scroll-outside {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n\n .modal-dialog::-webkit-scrollbar {\n display: none;\n }\n}\n\n/* Desktop */\n@media only screen and (min-width: 1152px) {\n .modal-container > header {\n padding-top: calc(var(--space-unit) * 1.5);\n padding-bottom: calc(var(--space-unit) * 1.5);\n }\n\n .modal-container > header h1 {\n font-size: var(--font-size-6);\n font-weight: var(--font-sb);\n letter-spacing: 0;\n line-height: 1.333;\n }\n\n .modal-container > header .subtitle {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n letter-spacing: 0;\n line-height: 1.5;\n }\n\n .modal-container > header h1 + .subtitle {\n margin-top: 0;\n }\n}\n","import {Component, Element, Event, EventEmitter, Listen, Method, Prop, h} from \"@stencil/core\";\nimport dialogPolyfill from \"dialog-polyfill\";\nimport {KeyboardCode} from \"../../beans\";\nimport {mobileBreakpoint} from \"../../constants/breakpoints\";\n\nconst FOCUSABLE_ELEMENTS_SELECTOR =\n ':is(button, input, select, textarea, [contenteditable=\"\"], [contenteditable=\"true\"], a[href], [tabindex], summary):not([disabled], [disabled=\"\"], [tabindex=\"-1\"], [aria-hidden=\"true\"], [hidden])';\n\n/**\n * @slot modalCloseButton - accept custom close button\n * @slot modalContent - set the content of the modal\n * @cssprop --z-modal-content-padding - set a default padding for the modal content slot to 16px\n */\n@Component({\n tag: \"z-modal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZModal {\n /** unique id */\n @Prop()\n modalid: string;\n\n /** title text (optional) */\n @Prop()\n modaltitle?: string;\n\n /** subtitle (optional) */\n @Prop()\n modalsubtitle?: string;\n\n /** aria-label for close button (optional) */\n @Prop()\n closeButtonLabel = \"chiudi modale\";\n\n /** add role \"alertdialog\" to dialog (optional, default is false) */\n @Prop()\n alertdialog?: boolean = false;\n\n /** if true, the modal is closable (optional, default is true) */\n @Prop()\n closable?: boolean = true;\n\n /** if true, the modal can scroll inside, if false the viewport can scroll */\n @Prop()\n scrollInside?: boolean = true;\n\n private dialog: HTMLDialogElement;\n\n @Element() host: HTMLZModalElement;\n\n /** emitted on close button click, returns modalid */\n @Event()\n modalClose: EventEmitter;\n\n private emitModalClose(): void {\n if (this.closable) {\n this.modalClose.emit({modalid: this.modalid});\n }\n }\n\n /** emitted on modal header click, returns modalid */\n @Event()\n modalHeaderActive: EventEmitter;\n\n private emitModalHeaderActive(): void {\n this.modalHeaderActive.emit({modalid: this.modalid});\n }\n\n /** emitted on background click, returns modalid */\n @Event()\n modalBackgroundClick: EventEmitter;\n\n private emitBackgroundClick(): void {\n if (this.closable) {\n this.modalBackgroundClick.emit({modalid: this.modalid});\n }\n }\n\n private handlePageOverflow(): void {\n const mobileMediaQuery = window.matchMedia(`(max-width: ${mobileBreakpoint}px)`);\n document.body.style[\"overflow-y\"] = mobileMediaQuery.matches ? \"hidden\" : \"\";\n }\n\n componentDidLoad(): void {\n if (typeof window.HTMLDialogElement !== \"function\") {\n /* workaround to fix `registerDialog` in test environment:\n stencil converts html elements to MockHTMLElement but this element is missing the `localName` property,\n which is used by `registerDialog` to recognize the element as dialog */\n if (!this.dialog.localName) {\n Object.defineProperty(this.dialog, \"localName\", {value: \"dialog\"});\n }\n dialogPolyfill.registerDialog(this.dialog);\n this.dialog.setAttribute(\"open\", \"true\");\n } else {\n this.open();\n }\n\n this.handlePageOverflow();\n }\n\n /** open modal */\n @Method()\n async open(): Promise<void> {\n this.dialog?.showModal();\n }\n\n /** close modal */\n @Method()\n async close(): Promise<void> {\n if (this.closable) {\n this.dialog?.close();\n }\n }\n\n /**\n * Get a list of focusable elements in the dialog.\n * Remove elements with `display: none` from the list, because they're not focusable.\n *\n * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.\n * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.\n */\n private get focusableElements(): HTMLElement[] {\n return [\n ...Array.from(this.host.shadowRoot.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ...Array.from(this.host.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ].filter((element) => getComputedStyle(element).display !== \"none\");\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ESC && !this.closable) {\n e.preventDefault();\n }\n\n if (e.code !== KeyboardCode.TAB) {\n return;\n }\n\n const focusableElements = this.focusableElements;\n const shadowActiveElement = this.host.shadowRoot.activeElement;\n const activeElement = this.host.ownerDocument.activeElement;\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n lastFocusableElement.focus();\n } else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n firstFocusableElement.focus();\n }\n }\n\n private closeButtonSlot(): HTMLElement | void {\n if (this.closable) {\n return (\n <slot name=\"modalCloseButton\">\n <button\n aria-label={this.closeButtonLabel}\n onClick={() => this.close()}\n >\n <z-icon name=\"multiply-circle-filled\"></z-icon>\n </button>\n </slot>\n );\n }\n }\n\n private handleEscape(e: Event): void {\n if (this.closable) {\n return;\n }\n e.preventDefault();\n }\n\n render(): HTMLZModalElement {\n return (\n <dialog\n class={{\n \"modal-dialog\": !this.scrollInside,\n }}\n aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\"\n role={this.alertdialog ? \"alertdialog\" : undefined}\n ref={(el) => (this.dialog = el as HTMLDialogElement)}\n onClose={() => this.emitModalClose()}\n onCancel={(e) => this.handleEscape(e)}\n >\n <div\n class={{\n \"modal-container\": true,\n \"modal-container-scroll-inside\": this.scrollInside,\n \"modal-container-scroll-outside\": !this.scrollInside,\n }}\n id={this.modalid}\n >\n <header onClick={this.emitModalHeaderActive.bind(this)}>\n <div>\n {this.modaltitle && <h1 id=\"modal-title\">{this.modaltitle}</h1>}\n {this.closeButtonSlot()}\n </div>\n {this.modalsubtitle && (\n <div\n class=\"subtitle\"\n id=\"modal-subtitle\"\n >\n {this.modalsubtitle}\n </div>\n )}\n </header>\n\n <div\n class={{\n \"modal-content-scroll-inside\": this.scrollInside,\n \"modal-content-scroll-outside\": !this.scrollInside,\n }}\n id=\"modal-content\"\n >\n <slot name=\"modalContent\"></slot>\n </div>\n </div>\n <div\n class={{\n \"modal-background\": true,\n \"modal-background-scroll-outside\": !this.scrollInside,\n }}\n data-action=\"modalBackground\"\n data-modal={this.modalid}\n onClick={() => {\n this.emitBackgroundClick();\n this.close();\n }}\n ></div>\n </dialog>\n );\n }\n}\n"],"mappings":"iIAAA,MAAMA,EAAY,msCAClB,MAAAC,EAAeD,E,MCMFE,EAAa,M,kGAShB,kBAAAC,CAAmBC,GACzBC,KAAKC,YAAYC,KAAKH,E,CAKhB,uBAAAI,GACN,OACEC,EAAA,OAAKC,MAAM,sBACTD,EAAA,OAAKC,MAAM,oBACTD,EAAA,QAAMC,MAAM,aAAaL,KAAKM,mB,CAMtC,MAAAC,GACE,OACEH,EAAA,OAAAI,IAAA,2CACEC,SAAU,EACVC,IAAMC,GAASX,KAAKY,kBAAoBD,EACxCN,MAAM,WACNQ,WAAaC,IACXA,EAAEC,iBACFf,KAAKY,kBAAkBI,UAAUC,IAAI,WAAW,EAElDC,YAAa,KACXlB,KAAKY,kBAAkBI,UAAUG,OAAO,WAAW,EAErDC,OAASN,IACPA,EAAEC,iBACF,GAAID,EAAEO,aAAatB,MAAMuB,OAAQ,CAC/BtB,KAAKY,kBAAkBI,UAAUG,OAAO,YACxCnB,KAAKF,mBAAmBgB,EAAEO,aAAatB,M,IAI1CC,KAAKG,0BACNC,EAAA,QAAAI,IAAA,6C,aCrDR,IAAIe,EAAqBC,OAAOC,YAChC,IAAKF,UAA6BA,IAAuB,SAAU,CACjEA,EAAqB,SAASE,EAAYC,EAAOC,GAC/CA,EAAIA,GAAK,GACT,IAAIC,E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ACNoS,GAAG,kBAEFzS,KAAK2S,gBAKZvS,EAAA,OAAAI,IAAA,2CACEH,MAAO,CACL,8BAA+BL,KAAKoS,aACpC,gCAAiCpS,KAAKoS,cAExCK,GAAG,iBAEHrS,EAAA,QAAAI,IAAA,2CAAMuH,KAAK,mBAGf3H,EAAA,OAAAI,IAAA,2CACEH,MAAO,CACL,mBAAoB,KACpB,mCAAoCL,KAAKoS,cAC1C,cACW,kBAAiB,aACjBpS,KAAKsQ,QACjB4B,QAAS,KACPlS,KAAKyQ,sBACLzQ,KAAKoG,OAAO,I","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as s,a as i,g as o}from"./p-cfa39bd3.js";import{g as n}from"./p-6037cdf3.js";const a=':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-secondary01)}: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="section"]){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="section"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot="section"]:hover),.items>::slotted([slot="section"]:focus:focus-visible),.items>::slotted([slot="section"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}';const l=a;const r=class{constructor(s){t(this,s);this.opened=e(this,"opened",7);this.closed=e(this,"closed",7);this.currentIndex=-1;this.currentCanvasOpenStatus=false;this.active=undefined;this.open=undefined;this.hasContent=undefined}canvasOpenStatusChanged(t){this.currentCanvasOpenStatus=t.detail}handleKeyDown(t){if(t.code===n.ENTER){return}if(this.open&&!this.currentCanvasOpenStatus){this.handleNavigationSideArrow(t)}this.handleArrowsNav(t)}handleNavigationSideArrow(t){if(t.code!==n.ARROW_RIGHT&&t.code!==n.ARROW_LEFT){return}if(t.code===n.ARROW_RIGHT){const t=this.hostElement.parentElement.nextElementSibling;if(t){const e=t.shadowRoot.querySelector(".menu-label");console.log(this.hostElement.parentElement);e.focus()}this.open=false;t.setAttribute("open","true")}else if(t.code===n.ARROW_LEFT){const t=this.hostElement.parentElement.previousElementSibling;if(t){const e=t.shadowRoot.querySelector(".menu-label");e.focus()}t.setAttribute("open","true");this.open=false}}handleArrowsNav(t){const e=Array.from(this.hostElement.querySelectorAll('[slot="section"]'));if(this.open){t.preventDefault();t.stopPropagation();if(t.code===n.ARROW_DOWN||t.code===n.ARROW_UP){let s;e.forEach((t=>t.setAttribute("tabindex","-1")));if(t.code===n.ARROW_DOWN){s=this.getNextItem(e,1)}else if(t.code===n.ARROW_UP){s=this.getNextItem(e,-1)}if(s){s.setAttribute("tabindex","0");s.focus()}}else if(t.code===n.ESC){this.focusToParentAndCloseMenu()}else if(t.shiftKey&&t.code===n.TAB){this.focusToParentAndCloseMenu()}}}getNextItem(t,e){if(this.currentIndex===-1){this.currentIndex=e===1?0:t.length-1;return t[this.currentIndex]}this.currentIndex=(this.currentIndex+e+t.length)%t.length;return t[this.currentIndex]}focusToParentAndCloseMenu(){const t=this.hostElement.shadowRoot.querySelector("button");t.focus();this.currentIndex=-1;this.open=false}toggle(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():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="section"]').length>0}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=(e===null||e===void 0?void 0:e.innerText)||null}focusFirstSectionItemOnKeyUp(){const t=this.hostElement.querySelectorAll('[slot="section"]')[0];if(t){t.focus();this.currentIndex=0}}componentWillLoad(){this.checkContent()}render(){return s(i,{key:"08825d1818384762749ba15445b8d88efed5d86c",role:"menu",open:this.open},s("button",{key:"53de21a81cf5c5da071ba758fee5947ea2800b60",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this),onKeyUp:this.focusFirstSectionItemOnKeyUp.bind(this)},s("slot",{key:"5828e33b6cbf5ce80a841362a4f879fdcb734abb",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&s("z-icon",{key:"54430c6f39a36b316056aee3ef44964401608967",name:this.open?"chevron-up":"chevron-down"})),this.open&&s("div",{key:"8fdb48843dc10bf866988804b380b8cf8bb61b05",class:"items"},s("slot",{key:"9ef0e24e9e88a2e5f7a16234e2b33010370db829",name:"section",onSlotchange:this.checkContent.bind(this)})))}get hostElement(){return o(this)}};r.style=l;export{r as z_menu_section};
2
- //# sourceMappingURL=p-8f386b8b.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZMenuSectionStyle0","ZMenuSection","this","currentIndex","currentCanvasOpenStatus","canvasOpenStatusChanged","e","detail","handleKeyDown","code","KeyboardCode","ENTER","open","handleNavigationSideArrow","handleArrowsNav","ARROW_RIGHT","ARROW_LEFT","nextElement","hostElement","parentElement","nextElementSibling","menuButton","shadowRoot","querySelector","console","log","focus","setAttribute","prevElement","previousElementSibling","menuItems","Array","from","querySelectorAll","preventDefault","stopPropagation","ARROW_DOWN","ARROW_UP","nextFocusableItem","forEach","item","getNextItem","ESC","focusToParentAndCloseMenu","shiftKey","TAB","direction","length","toggle","hasContent","opened","emit","closed","handleClick","ev","contains","target","checkContent","onLabelSlotChange","labelElement","assignedElements","dataset","text","innerText","focusFirstSectionItemOnKeyUp","firstElement","componentWillLoad","render","h","Host","key","role","class","onClick","bind","onKeyUp","onSlotchange","name"],"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: 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-secondary01);\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=\"section\"]) {\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=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n.items > ::slotted([slot=\"section\"]:hover),\n.items > ::slotted([slot=\"section\"]:focus:focus-visible),\n.items > ::slotted([slot=\"section\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} 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 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\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() hostElement: HTMLZMenuSectionElement;\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 currentIndex = -1;\n\n private currentCanvasOpenStatus = false;\n\n @Listen(\"canvasOpenStatusChanged\", {target: \"document\"})\n canvasOpenStatusChanged(e: CustomEvent): void {\n this.currentCanvasOpenStatus = e.detail;\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ENTER) {\n return;\n }\n\n if (this.open && !this.currentCanvasOpenStatus) {\n this.handleNavigationSideArrow(e);\n }\n\n this.handleArrowsNav(e);\n }\n\n private handleNavigationSideArrow(e: KeyboardEvent): void {\n if (e.code !== KeyboardCode.ARROW_RIGHT && e.code !== KeyboardCode.ARROW_LEFT) {\n return;\n }\n if (e.code === KeyboardCode.ARROW_RIGHT) {\n const nextElement = this.hostElement.parentElement.nextElementSibling;\n if (nextElement) {\n const menuButton = nextElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n console.log(this.hostElement.parentElement);\n menuButton.focus();\n }\n this.open = false;\n nextElement.setAttribute(\"open\", \"true\");\n } else if (e.code === KeyboardCode.ARROW_LEFT) {\n const prevElement = this.hostElement.parentElement.previousElementSibling;\n if (prevElement) {\n const menuButton = prevElement.shadowRoot.querySelector(\".menu-label\") as HTMLElement;\n menuButton.focus();\n }\n prevElement.setAttribute(\"open\", \"true\");\n this.open = false;\n }\n }\n\n private handleArrowsNav(e: KeyboardEvent): void {\n const menuItems = Array.from(this.hostElement.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n if (this.open) {\n e.preventDefault();\n e.stopPropagation();\n if (e.code === KeyboardCode.ARROW_DOWN || e.code === KeyboardCode.ARROW_UP) {\n let nextFocusableItem: HTMLElement;\n // INFO: reset focus on all menu items\n menuItems.forEach((item: HTMLElement) => item.setAttribute(\"tabindex\", \"-1\"));\n\n if (e.code === KeyboardCode.ARROW_DOWN) {\n nextFocusableItem = this.getNextItem(menuItems, 1);\n } else if (e.code === KeyboardCode.ARROW_UP) {\n nextFocusableItem = this.getNextItem(menuItems, -1);\n }\n\n if (nextFocusableItem) {\n nextFocusableItem.setAttribute(\"tabindex\", \"0\");\n nextFocusableItem.focus();\n }\n } else if (e.code === KeyboardCode.ESC) {\n this.focusToParentAndCloseMenu();\n } else if (e.shiftKey && e.code === KeyboardCode.TAB) {\n this.focusToParentAndCloseMenu();\n }\n }\n }\n\n private getNextItem(menuItems: HTMLElement[], direction: number): HTMLElement {\n if (this.currentIndex === -1) {\n this.currentIndex = direction === 1 ? 0 : menuItems.length - 1;\n\n return menuItems[this.currentIndex];\n }\n\n this.currentIndex = (this.currentIndex + direction + menuItems.length) % menuItems.length;\n\n return menuItems[this.currentIndex];\n }\n\n private focusToParentAndCloseMenu(): void {\n const menuButton = this.hostElement.shadowRoot.querySelector(\"button\") as HTMLElement;\n menuButton.focus();\n this.currentIndex = -1;\n this.open = false;\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\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=\"section\"]').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 private focusFirstSectionItemOnKeyUp(): void {\n const firstElement = this.hostElement.querySelectorAll('[slot=\"section\"]')[0] as HTMLElement;\n if (firstElement) {\n firstElement.focus();\n this.currentIndex = 0;\n }\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 onKeyUp={this.focusFirstSectionItemOnKeyUp.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=\"section\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAY,k9DAClB,MAAAC,EAAeD,E,MCYFE,EAAY,M,uFAqBfC,KAAAC,cAAgB,EAEhBD,KAAAE,wBAA0B,M,oEAGlC,uBAAAC,CAAwBC,GACtBJ,KAAKE,wBAA0BE,EAAEC,M,CAInC,aAAAC,CAAcF,GACZ,GAAIA,EAAEG,OAASC,EAAaC,MAAO,CACjC,M,CAGF,GAAIT,KAAKU,OAASV,KAAKE,wBAAyB,CAC9CF,KAAKW,0BAA0BP,E,CAGjCJ,KAAKY,gBAAgBR,E,CAGf,yBAAAO,CAA0BP,GAChC,GAAIA,EAAEG,OAASC,EAAaK,aAAeT,EAAEG,OAASC,EAAaM,WAAY,CAC7E,M,CAEF,GAAIV,EAAEG,OAASC,EAAaK,YAAa,CACvC,MAAME,EAAcf,KAAKgB,YAAYC,cAAcC,mBACnD,GAAIH,EAAa,CACf,MAAMI,EAAaJ,EAAYK,WAAWC,cAAc,eACxDC,QAAQC,IAAIvB,KAAKgB,YAAYC,eAC7BE,EAAWK,O,CAEbxB,KAAKU,KAAO,MACZK,EAAYU,aAAa,OAAQ,O,MAC5B,GAAIrB,EAAEG,OAASC,EAAaM,WAAY,CAC7C,MAAMY,EAAc1B,KAAKgB,YAAYC,cAAcU,uBACnD,GAAID,EAAa,CACf,MAAMP,EAAaO,EAAYN,WAAWC,cAAc,eACxDF,EAAWK,O,CAEbE,EAAYD,aAAa,OAAQ,QACjCzB,KAAKU,KAA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D,KAAKU,MAAQV,KAAKgB,YAAYqC,SAASD,EAAGE,QAAiB,CAC9D,M,CAGFtD,KAAKU,KAAO,MACZV,KAAKkD,OAAOD,M,CAMN,YAAAM,GACNvD,KAAK+C,WAAa/C,KAAKgB,YAAYe,iBAAiB,oBAAoBc,OAAS,C,CAO3E,iBAAAW,CAAkBJ,GACxB,MAAMK,EAAgBL,EAAGE,OAA2BI,mBAAmB,GACvED,EAAaE,QAAQC,MAAOH,IAAY,MAAZA,SAAY,SAAZA,EAAcI,YAAa,I,CAGjD,4BAAAC,GACN,MAAMC,EAAe/D,KAAKgB,YAAYe,iBAAiB,oBAAoB,GAC3E,GAAIgC,EAAc,CAChBA,EAAavC,QACbxB,KAAKC,aAAe,C,EAIxB,iBAAA+D,GACEhE,KAAKuD,c,CAGP,MAAAU,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,OACL3D,KAAMV,KAAKU,MAEXwD,EAAA,UAAAE,IAAA,2CACEE,MAAM,QAAO,eACCtE,KAAKU,KAAO,OAAS,QACnC6D,QAASvE,KAAK8C,OAAO0B,KAAKxE,MAC1ByE,QAASzE,KAAK8D,6BAA6BU,KAAKxE,OAEhDkE,EAAA,QAAAE,IAAA,2CAAMM,aAAc1E,KAAKwD,kBAAkBgB,KAAKxE,QAC/CA,KAAK+C,YAAcmB,EAAA,UAAAE,IAAA,2CAAQO,KAAM3E,KAAKU,KAAO,aAAe,kBAE9DV,KAAKU,MACJwD,EAAA,OAAAE,IAAA,2CAAKE,MAAM,SACTJ,EAAA,QAAAE,IAAA,2CACEO,KAAK,UACLD,aAAc1E,KAAKuD,aAAaiB,KAAKxE,S","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export{Z as z_tfoot}from"./p-cc7cb25a.js";import"./p-cfa39bd3.js";
2
- //# sourceMappingURL=p-91421a63.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as t,h as e,a as s}from"./p-cfa39bd3.js";import{A as i}from"./p-6037cdf3.js";const a=":host{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background-color:var(--gray700);border-radius:50%;font-family:var(--font-family-sans);text-transform:uppercase}:host(.small),:host(.small)>img{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3)}:host(.medium),:host(.medium)>img{width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4)}:host(.large),:host(.large)>img{width:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 5)}:host>img{object-fit:cover}";const r=a;const c=class{constructor(e){t(this,e);var s,a;this.size=i.MEDIUM;this.text=undefined;this.textColor="color-white";this.backgroundColor="gray700";this.image=undefined;if(((s=this.text)===null||s===void 0?void 0:s.length)===0&&((a=this.image)===null||a===void 0?void 0:a.length)===0){console.warn("z-avatar must contain at least one prop between text and image")}}getTextSize(){if(this.size===i.SMALL){return"5"}else if(this.size===i.MEDIUM){return"4"}else if(this.size===i.LARGE){return"2"}}render(){return e(s,{key:"6612a0db5d83b98158b4d3de0cd7624318a5ec4d",class:{[this.size]:true,[`body-${this.getTextSize()}-sb`]:true},style:{color:`var(--${this.textColor})`,backgroundColor:`var(--${this.backgroundColor})`}},this.text&&!this.image&&e("span",{key:"dc8f1955eeda5824f18d9c66cbef6483d73d4b03"},this.text.substring(0,2)),this.image&&e("img",{key:"a6065812b33ea3de4ac70eab19133d59c0149d6c",src:this.image,onError:()=>this.image=""}))}};c.style=r;export{c as z_avatar};
2
- //# sourceMappingURL=p-97b0d9af.entry.js.map
@@ -1,2 +0,0 @@
1
- import{p as e,H as a,b as t}from"./p-cfa39bd3.js";export{s as setNonce}from"./p-cfa39bd3.js";import{g as o}from"./p-e1255160.js";var i=()=>{{l(a.prototype)}const t=import.meta.url;const o={};if(t!==""){o.resourcesUrl=new URL(".",t).href}return e(o)};var l=e=>{const a=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return a.call(this,e)}const t=a.call(this,false);const o=this.childNodes;if(e){for(let e=0;e<o.length;e++){if(o[e].nodeType!==2){t.appendChild(o[e].cloneNode(true))}}}return t}};i().then((async e=>{await o();return t(JSON.parse('[["p-bf61ebd9",[[1,"z-app-header",{"stuck":[516],"enableOffcanvas":[1540,"enable-offcanvas"],"enableSearch":[516,"enable-search"],"searchPlaceholder":[1,"search-placeholder"],"searchString":[1025,"search-string"],"searchPageUrl":[1,"search-page-url"],"enableZLogo":[516,"enable-z-logo"],"_stuck":[32],"currentViewport":[32],"menuLength":[32],"drawerOpen":[32]},[[9,"resize","evaluateViewport"],[0,"keydown","handleKeyDown"]],{"_stuck":["onStuck"],"drawerOpen":["setMenuFloatingMode"],"stuck":["onStuckMode"]}],[1,"z-searchbar",{"htmlid":[513],"preventSubmit":[4,"prevent-submit"],"value":[1],"placeholder":[1],"autocomplete":[4],"autocompleteMinChars":[2,"autocomplete-min-chars"],"resultsCount":[2,"results-count"],"searchHelperLabel":[1,"search-helper-label"],"resultsItems":[1,"results-items"],"sortResultsItems":[4,"sort-results-items"],"showSearchButton":[4,"show-search-button"],"searchButtonIconOnly":[4,"search-button-icon-only"],"size":[1],"variant":[1],"searchString":[32],"currResultsCount":[32],"showResults":[32],"isMobile":[32]},[[4,"click","handleOutsideClick"]],{"resultsItems":["watchItems"],"resultsCount":["watchResultsCount"],"value":["watchValue"],"searchString":["watchSearchString"],"showResults":["watchShowResults"]}],[6,"z-offcanvas",{"variant":[513],"open":[1540],"transitiondirection":[513],"skipLoadAnimation":[1028,"skip-load-animation"]},null,{"open":["onOpenChanged"]}],[6,"z-tag",{"icon":[1],"expandable":[4]}],[1,"z-list",{"size":[513],"listType":[513,"list-type"],"role":[513]}],[1,"z-list-element",{"alignButton":[513,"align-button"],"clickable":[516],"dividerColor":[1,"divider-color"],"dividerType":[1,"divider-type"],"dividerSize":[1,"divider-size"],"expandable":[516],"expandableStyle":[1,"expandable-style"],"listElementId":[514,"list-element-id"],"size":[513],"color":[513],"disabled":[516],"listElementPosition":[513,"list-element-position"],"listType":[513,"list-type"],"role":[513],"htmlTabindex":[2,"html-tabindex"],"showInnerContent":[32]},[[4,"accessibleFocus","accessibleFocusHandler"]]],[1,"z-list-group",{"size":[513],"dividerType":[513,"divider-type"],"dividerSize":[513,"divider-size"],"dividerColor":[513,"divider-color"],"listType":[513,"list-type"]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"ariaExpanded":[1,"aria-expanded"],"ariaControls":[1,"aria-controls"],"ariaAutocomplete":[1,"aria-autocomplete"],"ariaActivedescendant":[1,"aria-activedescendant"],"value":[1025],"disabled":[516],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"message":[8],"labelPosition":[1,"label-position"],"autocomplete":[1],"role":[1],"hasclearicon":[4],"icon":[1],"min":[2],"minlength":[2],"max":[2],"maxlength":[2],"step":[2],"pattern":[1],"size":[513],"isTyping":[32],"passwordHidden":[32],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[6,"z-button",{"ariaLabel":[513,"aria-label"],"role":[1],"href":[1],"target":[1],"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513]}],[1,"z-input-message",{"message":[1],"status":[513],"statusRole":[32]},null,{"message":["onMessageChange"],"status":["onMessageChange"]}],[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1],"fill":[1]}]]],["p-cf2640b0",[[1,"z-app-header-deprecated",{"stuck":[516],"hero":[1],"overlay":[516],"flow":[513],"drawerOpen":[516,"drawer-open"],"enableSearch":[516,"enable-search"],"searchPlaceholder":[1,"search-placeholder"],"searchString":[1025,"search-string"],"searchPageUrl":[1,"search-page-url"],"_stuck":[32],"currentViewport":[32],"menuLength":[32]},[[9,"resize","evaluateViewport"]],{"_stuck":["onStuck"],"drawerOpen":["setMenuFloatingMode"],"stuck":["onStuckMode"]}]]],["p-f4f45044",[[2,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"ariaLabel":[1,"aria-label"],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"message":[8],"autocomplete":[4],"noresultslabel":[1],"hasGroupItems":[4,"has-group-items"],"isfixed":[4],"resetItem":[1,"reset-item"],"size":[1],"isOpen":[32],"selectedItem":[32],"focusedItemId":[32],"searchString":[32],"getSelectedItem":[64],"getValue":[64],"setValue":[64]},[[0,"ariaDescendantFocus","getFocusedItemHandler"]],{"items":["watchItems"]}]]],["p-3d3f38e9",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"disabled":[516],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"hasgroupitems":[4],"size":[1],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32],"focusedItemId":[32],"checkboxes":[32]},null,{"items":["watchItems"],"searchValue":["watchSearchValue"],"checkboxes":["watchCheckboxes"]}]]],["p-6e49f78e",[[1,"z-breadcrumb",{"pathStyle":[513,"path-style"],"homepageVariant":[1,"homepage-variant"],"maxNodesToShow":[2,"max-nodes-to-show"],"preventFollowUrl":[4,"prevent-follow-url"],"overflowMenuItemRows":[2,"overflow-menu-item-rows"],"truncateChar":[2,"truncate-char"],"viewPortWidth":[32],"hasOverflow":[32],"popoverEllipsisOpen":[32]},[[9,"resize","handleResize"]],{"maxNodesToShow":["handlePropChange"],"viewPortWidth":["handleResizeUp"]}]]],["p-4888964e",[[1,"z-myz-card-dictionary",{"name":[1],"cover":[1],"disabled":[4],"flipped":[1028],"flipbuttonlabel":[1],"hideinfobtn":[4]},[[0,"flipCard","handleFlipCard"]]]]],["p-28928bb6",[[1,"z-file-upload",{"type":[513],"buttonVariant":[1,"button-variant"],"acceptedFormat":[1,"accepted-format"],"fileMaxSize":[2,"file-max-size"],"mainTitle":[1,"main-title"],"description":[1],"uploadBtnLabel":[1,"upload-btn-label"],"dragAndDropLabel":[1,"drag-and-drop-label"],"allowedFilesMessage":[1,"allowed-files-message"],"uploadClickableMessage":[1,"upload-clickable-message"],"uploadMessage":[1,"upload-message"],"errorModalTitle":[1,"error-modal-title"],"errorModalMessage":[1,"error-modal-message"],"uploadedFilesLabel":[1,"uploaded-files-label"],"hasFileSection":[4,"has-file-section"],"files":[32],"invalidFiles":[32],"getFiles":[64],"removeFile":[64]},[[0,"removeFile","removeFileListener"],[0,"fileDropped","fileDroppedListener"]]]]],["p-88e756cd",[[0,"z-pagination",{"label":[1],"navArrows":[4,"nav-arrows"],"totalPages":[2,"total-pages"],"skip":[2],"edges":[4],"split":[2],"visiblePages":[2,"visible-pages"],"currentPage":[1026,"current-page"],"goToPage":[4,"go-to-page"],"_visiblePages":[32],"isMobile":[32],"goToPageValue":[32]},[[9,"resize","onResize"]],{"_visiblePages":["setPagesContainerWidth"],"visiblePages":["setVisiblePages"],"currentPage":["onPageChanged"],"split":["onSplitChanged"]}]]],["p-3b266de4",[[1,"z-carousel",{"isLoading":[4,"is-loading"],"label":[1],"single":[516],"arrowsPosition":[513,"arrows-position"],"progressMode":[1,"progress-mode"],"fixedArrows":[516,"fixed-arrows"],"ghostLoadingHeight":[2,"ghost-loading-height"],"infinite":[4],"current":[32],"items":[32],"highlightedIndicator":[32],"canNavigatePrev":[32],"canNavigateNext":[32]},null,{"current":["onIndexChange"],"single":["onSingleModeChange"],"infinite":["onInfiniteModeChange"]}]]],["p-12d62027",[[4,"z-date-picker",{"datePickerId":[1,"date-picker-id"],"ariaLabel":[1,"aria-label"],"label":[1],"mode":[1],"flatpickrPosition":[32],"inputError":[32]},[[18,"keydown","handleKeyDown"]],{"mode":["setupPickers"]}]]],["p-054484d4",[[2,"z-file",{"fileNumber":[2,"file-number"],"fileName":[1,"file-name"],"allowPopover":[32],"popoverVisible":[32]},[[1,"mouseover","onMouseOver"],[1,"mouseleave","onMouseLeave"],[0,"interactiveIconClick","onInteractiveIconClick"]]]]],["p-19f8c3d2",[[0,"z-range-picker",{"rangePickerId":[1,"range-picker-id"],"firstAriaLabel":[1,"first-aria-label"],"firstLabel":[1,"first-label"],"secondAriaLabel":[1,"second-aria-label"],"secondLabel":[1,"second-label"],"mode":[1],"firstPickerReadOnly":[4,"first-picker-read-only"],"lastPickerReadOnly":[4,"last-picker-read-only"],"firstPickerPlaceholder":[1,"first-picker-placeholder"],"lastPickerPlaceholder":[1,"last-picker-placeholder"],"flatpickrPosition":[32],"activeInput":[32],"firstInputError":[32],"lastInputError":[32]},[[18,"click","handleClick"],[18,"keyup","handleKeyDown"]],{"firstPickerReadOnly":["setupFirstPickersReadOnly"],"lastPickerReadOnly":["setupLastPickersReadOnly"],"mode":["setupPickers"]}]]],["p-d1a658f6",[[1,"z-td",{"colspan":[2],"sticky":[516],"showMenu":[513,"show-menu"],"popoverPosition":[1,"popover-position"],"isMenuOpen":[32]},null,{"colspan":["updateColspan"]}]]],["p-88df10c9",[[1,"z-th",{"colspan":[2],"showMenu":[513,"show-menu"],"showSorting":[513,"show-sorting"],"sticky":[516],"sortDirection":[1025,"sort-direction"],"popoverPosition":[1,"popover-position"],"isMenuOpen":[32]},null,{"colspan":["updateColspan"]}]]],["p-a887e64a",[[4,"z-anchor-navigation",{"hideUnselected":[516,"hide-unselected"],"autoCurrent":[4,"auto-current"],"collapsed":[32]}]]],["p-e5ea2279",[[1,"z-myz-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["p-e59ada26",[[1,"z-myz-card-info",{"data":[1],"htmltabindex":[2],"hiddenContent":[32],"tooltip":[32]}]]],["p-4d1827ea",[[1,"z-myz-list",{"inputrawdata":[1],"list":[1040]},null,{"inputrawdata":["oninputrawdataChange"]}]]],["p-f1b42fa3",[[1,"z-otp",{"inputNum":[2,"input-num"],"status":[1],"message":[1]}]]],["p-c4094f39",[[1,"z-accordion",{"label":[1],"icon":[1],"size":[513],"isDisabled":[516,"is-disabled"],"open":[1540],"highlight":[516],"variant":[513],"shadow":[516]},null,{"isDisabled":["onDisabledChange"]}]]],["p-16d5331a",[[1,"z-book-card",{"variant":[1],"cover":[1],"operaTitle":[1,"opera-title"],"volumeTitle":[1,"volume-title"],"authors":[1],"isbn":[1],"isbnLabel":[1,"isbn-label"],"ribbon":[1],"ribbonIcon":[1,"ribbon-icon"],"ribbonInteractive":[4,"ribbon-interactive"],"borderless":[4],"fallbackCover":[1,"fallback-cover"],"operaTitleTag":[1,"opera-title-tag"],"isMobile":[32],"hasResources":[32],"showResources":[32]}]]],["p-ad3cac33",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028],"allowTooltip":[32]}]]],["p-088a31dc",[[1,"z-card",{"variant":[513],"coverIcon":[1,"cover-icon"],"showShadow":[516,"show-shadow"],"clickable":[516],"hasCoverImage":[32]}]]],["p-67ac6b9f",[[1,"z-info-box",{"boxid":[1],"isclosable":[4]}]]],["p-1faaf16d",[[1,"z-info-reveal",{"icon":[1],"position":[513],"label":[1],"ariaLabel":[1,"aria-label"],"size":[513],"open":[32]},[[9,"resize","adjustPanelPosition"],[10,"keydown","handleEscapeKey"]],{"position":["adjustPanelPosition"],"open":["adjustPanelPosition"]}]]],["p-7fc503ef",[[1,"z-menu",{"active":[516],"floating":[516],"open":[1540],"verticalContext":[516,"vertical-context"],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"],[4,"canvasOpenStatusChanged","canvasOpenStatusChanged"],[0,"keydown","handleKeyDown"]],{"open":["onOpenChanged"]}]]],["p-8a10fec5",[[1,"z-menu-deprecated",{"active":[516],"floating":[516],"open":[1540],"verticalContext":[516,"vertical-context"],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]],{"open":["onOpenChanged"]}]]],["p-8f386b8b",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"canvasOpenStatusChanged","canvasOpenStatusChanged"],[0,"keydown","handleKeyDown"],[4,"click","handleClick"]]]]],["p-c0bdbfb5",[[1,"z-menu-section-deprecated",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["p-d9ce7691",[[1,"z-myz-card-icon",{"icon":[1],"isdisabled":[4],"ariaLabel":[1,"aria-label"]}]]],["p-1a0825e3",[[4,"z-navigation-tabs",{"ariaLabel":[1,"aria-label"],"orientation":[513],"size":[513],"selectedTab":[1026,"selected-tab"],"canNavigate":[32],"canNavigatePrev":[32],"canNavigateNext":[32]},[[0,"click","handleTabClick"],[0,"focusin","onTabFocusIn"],[0,"keydown","navigateThroughTabs"],[0,"focusout","onTabFocusOut"]],{"canNavigate":["checkScrollEnabled"],"selectedTab":["onTabSelected"]}]]],["p-1397aa99",[[1,"z-notification",{"contenticonname":[1],"actiontext":[1],"type":[513],"showclose":[4],"showshadow":[516],"sticky":[516]}]]],["p-03f14ac3",[[6,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descrSlotName":[1,"descr-slot-name"]}]]],["p-9b636084",[[1,"z-section-title",{"dividerPosition":[1,"divider-position"],"uppercase":[516]}]]],["p-99b791d1",[[1,"z-slideshow",{"slideshowid":[1],"data":[1],"device":[32],"currentSlide":[32]},null,{"data":["watchData"]}]]],["p-816500b1",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"checked":[4],"disabled":[4]}]]],["p-ee797508",[[1,"z-toast-notification",{"heading":[1],"message":[1],"closebutton":[4],"autoclose":[2],"pauseonfocusloss":[4],"type":[1],"isdraggable":[4],"draggablepercentage":[2],"transition":[1],"percentage":[32]},null,{"isdraggable":["watchPropIsdraggable"],"autoclose":["watchPropAutoclose"],"pauseonfocusloss":["watchPropPauseonfocusloss"]}]]],["p-13e5e524",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"opened":[1028],"ariaLabel":[1,"aria-label"]}]]],["p-d2544111",[[6,"z-toggle-switch",{"disabled":[516],"labelPosition":[513,"label-position"],"checked":[1028],"htmlid":[1]}]]],["p-840b267b",[[1,"z-tooltip",{"position":[513],"dark":[516],"open":[1540],"bindTo":[1,"bind-to"],"closable":[4]},[[0,"openChange","onPopoverOpenChange"]]]]],["p-57ca10b2",[[1,"z-tr",{"expandable":[516],"expanded":[32],"expandableContentId":[32]},[[0,"colspanchange","updateColumns"]],{"expandable":["updateColumns"]}]]],["p-b8e5fe52",[[4,"z-aria-alert",{"mode":[1]}]]],["p-97b0d9af",[[1,"z-avatar",{"size":[1],"text":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"image":[1025]}]]],["p-76f18b6d",[[1,"z-cover-hero",{"variant":[513],"contentPosition":[513,"content-position"],"preserveAspectRatio":[516,"preserve-aspect-ratio"]},[[2,"load","onImgLoad"]]]]],["p-04f1d3a0",[[1,"z-logo",{"width":[2],"height":[2],"imageAlt":[1,"image-alt"],"link":[1],"targetBlank":[4,"target-blank"],"mobileLogo":[4,"mobile-logo"]}]]],["p-c4b6ada9",[[1,"z-myz-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"opened":[4],"customContent":[4,"custom-content"],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["p-50141aa4",[[1,"z-myz-card-footer-sections"]]],["p-dc85021e",[[1,"z-myz-card-list",{"listdata":[1]}]]],["p-6e56ce77",[[2,"z-skip-to-content",{"variant":[513],"links":[1025],"visible":[32],"visibleLink":[32]},[[4,"focusout","handleFocusOutSkipToContent"],[4,"focusin","handleFocusSkipToContent"]]]]],["p-217b9261",[[1,"z-stepper"]]],["p-2f26fb87",[[1,"z-table",{"bordered":[516],"expandable":[32]}]]],["p-c58dc6d8",[[1,"z-tbody"]]],["p-91421a63",[[1,"z-tfoot",{"sticky":[516]}]]],["p-aedb0435",[[1,"z-thead",{"sticky":[516]}]]],["p-c7172768",[[1,"z-toast-notification-list",{"position":[513],"newestontop":[4]},null,{"newestontop":["watchPropNewestontop"]}]]],["p-82d3b0ad",[[1,"z-visually-hidden"]]],["p-2cbf1b2e",[[6,"z-chip",{"icon":[1],"type":[513],"interactiveIcon":[513,"interactive-icon"],"disabled":[516],"ariaLabel":[1,"aria-label"]}]]],["p-5598a37a",[[1,"z-alert",{"type":[1]}]]],["p-f9762109",[[1,"z-ghost-loading"]]],["p-8b348f60",[[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1],"closeButtonLabel":[1,"close-button-label"],"alertdialog":[4],"closable":[4],"scrollInside":[4,"scroll-inside"],"open":[64],"close":[64]},[[0,"keydown","handleKeyDown"]]],[1,"z-dragdrop-area",{"dragAndDropLabel":[1,"drag-and-drop-label"]}]]],["p-db831d3e",[[1,"z-myz-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]],["p-bfd03521",[[1,"z-myz-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}],[1,"z-myz-card-body"],[1,"z-myz-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}],[1,"z-myz-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["p-cd68bcb2",[[1,"z-popover",{"position":[513],"open":[1540],"bindTo":[1,"bind-to"],"showArrow":[516,"show-arrow"],"center":[516],"closable":[4],"currentPosition":[32]},[[8,"keyup","closePopoverWithKeyboard"],[18,"click","handleOutsideClick"]],{"position":["validatePosition"],"open":["onOpen"]}]]]]'),e)}));
2
- //# sourceMappingURL=web-components-library.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZButtonSortStyle0","ZButtonSort","emitButtonSortClick","this","isselected","sortasc","buttonSortClick","emit","buttonid","sortAsc","componentDidLoad","elementHasEllipsis","window","innerWidth","tabletBreakpoint","allowTooltip","setButtonTitle","label","desclabel","ellipsis","offsetWidth","scrollWidth","render","h","key","title","id","class","selected","onClick","ref","el","counter","sortlabelasc","sortlabeldesc","name","width","height"],"sources":["src/components/z-button-sort/styles.css?tag=z-button-sort&encapsulation=shadow","src/components/z-button-sort/index.tsx"],"sourcesContent":["button {\n display: flex;\n max-width: 100%;\n height: 36px;\n align-items: center;\n padding: 0 var(--space-unit);\n border: var(--border-size-medium) solid var(--color-primary01);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n color: var(--color-primary01);\n cursor: pointer;\n fill: var(--color-primary01);\n font-family: var(--font-family-sans);\n font-size: 14px;\n font-weight: var(--font-sb);\n outline: none;\n}\n\nbutton::-moz-focus-inner {\n border: 0;\n}\n\nbutton:hover {\n border-color: var(--color-hover-primary);\n color: var(--color-hover-primary);\n fill: var(--color-hover-primary);\n}\n\nbutton:focus {\n border-color: var(--color-primary01);\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n\nbutton:active {\n border-color: var(--color-pressed-primary);\n box-shadow: var(--shadow-2);\n color: var(--color-pressed-primary);\n fill: var(--color-pressed-primary);\n}\n\nbutton.selected {\n border-color: var(--color-active-primary);\n background-color: var(--color-active-primary);\n color: var(--color-text-inverse);\n fill: var(--color-text-inverse);\n}\n\nbutton > span.ellipsis {\n overflow: hidden;\n padding: 0;\n margin: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\nbutton > span.counter {\n margin-right: calc(var(--space-unit) * 2);\n margin-left: calc(var(--space-unit) / 2);\n}\n\nbutton > span.sort {\n margin-right: calc(var(--space-unit) / 2);\n white-space: nowrap;\n}\n\nbutton > span {\n margin-right: calc(var(--space-unit) / 2);\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n button {\n max-width: 325px;\n }\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n button {\n max-width: 490px;\n }\n}\n","import {Component, Event, EventEmitter, Prop, State, h} from \"@stencil/core\";\nimport {tabletBreakpoint} from \"../../constants/breakpoints\";\n@Component({\n tag: \"z-button-sort\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZButtonSort {\n /** id, should be unique */\n @Prop()\n buttonid: string;\n\n /** label content (ascending) */\n @Prop()\n label: string;\n\n /** label content (descending) */\n @Prop()\n desclabel?: string;\n\n /** occurrences counter (optional) */\n @Prop()\n counter?: number;\n\n /** sort label content (ascending) (optional) */\n @Prop()\n sortlabelasc?: string = \"A-Z\";\n\n /** sort label content (descending) (optional) */\n @Prop()\n sortlabeldesc?: string = \"Z-A\";\n\n /** selected flag (optional) */\n @Prop({mutable: true})\n isselected?: boolean = false;\n\n /** sortable flag (optional) */\n @Prop({mutable: true})\n sortasc?: boolean = true;\n\n @State()\n allowTooltip = false;\n\n private ellipsis?: HTMLSpanElement;\n\n /** sorting direction click event, returns `buttonid` and `sortAsc` */\n @Event()\n buttonSortClick: EventEmitter;\n\n private emitButtonSortClick(): void {\n if (!this.isselected) {\n this.isselected = true;\n } else {\n this.sortasc = !this.sortasc;\n }\n this.buttonSortClick.emit({\n buttonid: this.buttonid,\n sortAsc: this.sortasc,\n });\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint) {\n this.allowTooltip = true;\n }\n }\n\n private setButtonTitle(): string {\n return this.allowTooltip ? `${this.sortasc ? this.label : this.desclabel}` : \"\";\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n render(): HTMLButtonElement {\n return (\n <button\n title={this.setButtonTitle()}\n id={this.buttonid}\n class={{selected: this.isselected}}\n onClick={() => this.emitButtonSortClick()}\n >\n <span\n ref={(el) => (this.ellipsis = el as HTMLSpanElement)}\n class=\"ellipsis\"\n >\n {!this.sortasc && this.desclabel ? this.desclabel : this.label}\n </span>\n <span class=\"counter\">{this.counter && ` (${this.counter})`}</span>\n <span class=\"sort\">{this.sortasc ? this.sortlabelasc : this.sortlabeldesc}</span>\n <z-icon\n name=\"caret-up-down\"\n width={16}\n height={16}\n />\n </button>\n );\n }\n}\n"],"mappings":"iFAAA,MAAMA,EAAY,i6CAClB,MAAAC,EAAeD,E,MCMFE,EAAW,M,yLAmBE,M,mBAIC,M,gBAIF,M,aAIH,K,kBAGL,K,CAQP,mBAAAC,GACN,IAAKC,KAAKC,WAAY,CACpBD,KAAKC,WAAa,I,KACb,CACLD,KAAKE,SAAWF,KAAKE,O,CAEvBF,KAAKG,gBAAgBC,KAAK,CACxBC,SAAUL,KAAKK,SACfC,QAASN,KAAKE,S,CAIlB,gBAAAK,GACE,GAAIP,KAAKQ,sBAAwBC,OAAOC,WAAaC,EAAkB,CACrEX,KAAKY,aAAe,I,EAIhB,cAAAC,GACN,OAAOb,KAAKY,aAAe,GAAGZ,KAAKE,QAAUF,KAAKc,MAAQd,KAAKe,YAAc,E,CAGvE,kBAAAP,GACN,OAAOR,KAAKgB,SAASC,YAAcjB,KAAKgB,SAASE,W,CAGnD,MAAAC,GACE,OACEC,EAAA,UAAAC,IAAA,2CACEC,MAAOtB,KAAKa,iBACZU,GAAIvB,KAAKK,SACTmB,MAAO,CAACC,SAAUzB,KAAKC,YACvByB,QAAS,IAAM1B,KAAKD,uBAEpBqB,EAAA,QAAAC,IAAA,2CACEM,IAAMC,GAAQ5B,KAAKgB,SAAWY,EAC9BJ,MAAM,aAEJxB,KAAKE,SAAWF,KAAKe,UAAYf,KAAKe,UAAYf,KAAKc,OAE3DM,EAAA,QAAAC,IAAA,2CAAMG,MAAM,WAAWxB,KAAK6B,SAAW,KAAK7B,KAAK6B,YACjDT,EAAA,QAAAC,IAAA,2CAAMG,MAAM,QAAQxB,KAAKE,QAAUF,KAAK8B,aAAe9B,KAAK+B,eAC5DX,EAAA,UAAAC,IAAA,2CACEW,KAAK,gBACLC,MAAO,GACPC,OAAQ,K","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export{Z as z_thead}from"./p-24dc95a0.js";import"./p-cfa39bd3.js";
2
- //# sourceMappingURL=p-aedb0435.entry.js.map