@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 +1,2 @@
1
- import{r as e,c as a,h as t,a as i,g as r}from"./p-cfa39bd3.js";import{O as n,u as h,B as o,e as s}from"./p-6037cdf3.js";const p=':host{--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-content-max-width:100%;--app-header-height:auto;--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-surface01);--app-header-stucked-bg:var(--color-surface01);--app-header-text-color:var(--color-default-text);--app-header-title-font-size:var(--app-header-typography-3-size);--app-header-title-lineheight:var(--app-header-typography-3-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-3-tracking);--app-header-stucked-text-color:var(--color-default-text);position:relative;display:block;height:var(--app-header-height);color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5)}.hero-container+.heading-panel{background:transparent}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:flex-start;column-gap:calc(var(--space-unit) * 2)}::slotted([slot="title"]),.heading-stuck .heading-title>*,::slotted([slot="stucked-title"]){margin:0;font-family:"IBM Plex Serif", serif;font-weight:var(--font-bd)}::slotted([slot="title"]){font-size:var(--app-header-title-font-size);letter-spacing:var(--app-header-title-letter-spacing);line-height:var(--app-header-title-lineheight)}.heading-stuck .heading-title>*,::slotted([slot="stucked-title"]){font-size:var(--app-header-typography-3-size);letter-spacing:var(--app-header-typography-3-tracking);line-height:var(--app-header-typography-3-lineheight)}:host(:not([menu-length="0"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2))}::slotted([slot="top-subtitle"]),::slotted([slot="subtitle"]){margin:0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;line-height:26px}::slotted([slot="subtitle"]){font-weight:500}::slotted([slot="top-subtitle"]){font-weight:400}.menu-container{display:flex;width:100%;flex:1 auto;flex-flow:row wrap}:host([menu-length="0"]:not([enable-search])) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}z-searchbar{z-index:0;display:flex;width:auto;min-width:calc(var(--space-unit) * 32);flex:1 auto;align-items:center;margin-left:auto}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto;column-gap:calc(var(--space-unit) * 2)}.heading-stuck .heading-title{overflow:hidden}.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot="stucked-title"]){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-stuck-content z-button{margin-left:auto}.drawer-trigger{padding:0;border:0;margin:0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.heading-container :is(.drawer-trigger,z-button.search-page-button){display:flex;height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));align-items:center}.heading-container z-button.search-page-button{margin-left:auto}.drawer-content{display:none}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column;row-gap:calc(var(--space-unit) * 2.5)}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu){--z-menu-label-color:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:"";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host{--app-header-title-font-size:var(--app-header-typography-6-size);--app-header-title-lineheight:var(--app-header-typography-6-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-6-tracking)}.heading-panel{flex-flow:row wrap;align-items:center;padding-bottom:calc(var(--space-unit) * 2)}.heading-container{margin-right:auto}:host(:is([flow="offcanvas"],[menu-length="0"])) :is(.heading-container,.menu-container){width:auto}:host(:not([flow="offcanvas"])) .heading-subtitle{padding-left:0}.menu-container{flex:initial;align-items:center}:host([menu-length="0"]) .menu-container:not(:empty){height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight))}:host(:not([flow="offcanvas"])) .menu-container{gap:var(--space-unit) calc(var(--space-unit) * 5)}:host(:not([flow="offcanvas"])) .heading-container .drawer-trigger{display:none}}@media (min-width: 1152px){:host{--app-header-title-font-size:var(--app-header-typography-7-size);--app-header-title-lineheight:var(--app-header-typography-7-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-7-tracking)}.heading-panel{justify-content:flex-start;padding-bottom:calc(var(--space-unit) * 3)}.heading-container,.menu-container{width:auto}:host([flow="stack"]) .heading-panel{flex-flow:column;align-items:flex-start}:host([flow="stack"]) .menu-container{width:100%}:host(:not([flow="offcanvas"],[menu-length="0"])) .heading-panel{row-gap:calc(var(--space-unit) * 3)}z-searchbar{min-width:calc(var(--space-unit) * 45);flex:initial}}@media (min-width: 1366px){:host{--app-header-title-font-size:var(--app-header-typography-9-size);--app-header-title-lineheight:var(--app-header-typography-9-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-9-tracking)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}';const d=p;const c=typeof IntersectionObserver!=="undefined";const l=class{constructor(t){e(this,t);this.sticking=a(this,"sticking",7);this.observer=c&&new IntersectionObserver((([e])=>{this._stuck=!e.isIntersecting}),{threshold:.5});this.stuck=false;this.hero=undefined;this.overlay=false;this.flow="auto";this.drawerOpen=false;this.enableSearch=false;this.searchPlaceholder="Cerca";this.searchString="";this.searchPageUrl=undefined;this._stuck=false;this.currentViewport="mobile";this.menuLength=undefined;this.openDrawer=this.openDrawer.bind(this);this.closeDrawer=this.closeDrawer.bind(this);this.collectMenuElements=this.collectMenuElements.bind(this)}evaluateViewport(){if(window.innerWidth<768){this.currentViewport="mobile"}else if(window.innerWidth>=768&&window.innerWidth<1152){this.currentViewport="tablet"}else{this.currentViewport="desktop"}}onStuck(){const e=this.scrollParent;if(!e){return}this.sticking.emit(this._stuck)}setMenuFloatingMode(){if(this.menuElements.length===0){return}const e=this.menuElements;e.forEach((e=>{e.open=false;e.floating=!this.drawerOpen;e.verticalContext=this.drawerOpen}))}get title(){const e=this.hostElement.querySelector('[slot="title"]');if(e===null){return""}return e.textContent.trim()}get scrollParent(){const e=this.hostElement.offsetParent;if(e===document.body||e===document.documentElement){return window}return e}get canShowMenu(){return this.flow!=="offcanvas"&&this.currentViewport!=="mobile"&&!this.drawerOpen}get canShowSearchbar(){if(!this.enableSearch){return false}if(this.searchPageUrl){return this.currentViewport==="desktop"}return true}get hasHero(){return!!this.hero||this.hostElement.querySelector("[slot=hero]")!==null}openDrawer(){this.drawerOpen=true}closeDrawer(){this.drawerOpen=false}collectMenuElements(){const e=this.menuElements=this.hostElement.querySelectorAll('[slot="menu"]');this.menuLength=e.length;this.setMenuFloatingMode()}enableStuckObserver(){if(this.observer){this.observer.observe(this.container)}}disableStuckMode(){this._stuck=false;if(this.observer){this.observer.unobserve(this.container)}}onStuckMode(){if(this.stuck){this.enableStuckObserver()}else{this.disableStuckMode()}}renderSearchLinkButton(){if(!this.enableSearch||!this.searchPageUrl||this.currentViewport==="desktop"){return null}return t("z-button",{class:"search-page-button",variant:o.SECONDARY,href:this.searchPageUrl,icon:"search",size:s.X_SMALL})}renderSeachbar(e){return t("z-searchbar",{value:this.searchString,placeholder:this.searchPlaceholder,showSearchButton:true,searchButtonIconOnly:e,size:s.X_SMALL,variant:o.SECONDARY,preventSubmit:this.searchString.length<3,onSearchTyping:e=>this.searchString=e.detail})}componentDidLoad(){this.collectMenuElements();this.onStuckMode();this.evaluateViewport()}render(){return t(i,{key:"a0e0fe7e06eac6328fe819c95e40b549be76efdb","menu-length":this.menuLength},this.hasHero&&t("div",{key:"f05ae37dd21db654e107d8c8c7b16afe1634a062",class:"hero-container"},t("slot",{key:"2d1cd14c6ae3c346ef2c3339c3368eecb2f5ace2",name:"hero"},this.hero&&t("img",{key:"3cd447465d2fea783a84ece16c20a01c8c64087b",alt:"",src:this.hero}))),t("div",{key:"095041a82c5b894e683eb010fb1665bc3e9808ca",class:"heading-panel",ref:e=>this.container=e},t("div",{key:"c62badbae3fb60d2af0dc05b85f7dd1754298eff",class:"heading-container"},t("div",{key:"a78bf688652b80e35a89cb23dd010e90d9e84d09",class:"heading-subtitle"},t("slot",{key:"8e9ac3667e178e6d44ca9811b99be0e9c0f9467e",name:"top-subtitle"})),t("div",{key:"ef04ba5c9c7504e38ae1082db57e590a8b489296",class:"heading-title"},this.menuLength>0&&t("button",{key:"6b47bef41f5c52346649aa0fdce31885631ff266",class:"drawer-trigger","aria-label":"Apri menu",onClick:this.openDrawer},t("z-icon",{key:"8d2fb8ee514986190eeaeaffe127b195741f2e15",name:"burger-menu"})),t("slot",{key:"50e39ea522561a8e5e8ce1e5edf90a292003dac1",name:"title"}),this.renderSearchLinkButton()),t("div",{key:"7c20788bc0a3ffe2108716644bfcfd90e68a4fcb",class:"heading-subtitle"},t("slot",{key:"b97ba96e2d2d1723079007336304faacb9f1e3f4",name:"subtitle"}))),(this.canShowMenu||this.canShowSearchbar)&&t("div",{key:"d2c80e708c8d306089362deee79c870df3533672",class:"menu-container"},this.canShowMenu&&t("slot",{key:"48e564c8879affc0d139ce3a18182d0ff4822efe",name:"menu",onSlotchange:this.collectMenuElements}),this.canShowSearchbar&&this.renderSeachbar(this.currentViewport!=="desktop"))),t("z-offcanvas",{key:"061ccba1ec1b09800121ab6af51c5dd3f039d3d0",variant:n.OVERLAY,transitiondirection:h.RIGHT,open:this.drawerOpen,onCanvasOpenStatusChanged:e=>this.drawerOpen=e.detail},t("button",{key:"f65855e3863088f5f9c60a8df424dc4b3636d51d",class:"drawer-close","aria-label":"Chiudi menu",onClick:this.closeDrawer,slot:"canvasContent","aria-hidden":`${!this.drawerOpen}`,disabled:!this.drawerOpen},t("z-icon",{key:"503fd5b98a1f39bba2e1b5e7ad4078defe2b4813",name:"close"})),t("div",{key:"f60ff11c45faa831bd9fb9de70fecb655621fc43",class:"drawer-content",slot:"canvasContent","aria-hidden":`${!this.drawerOpen}`},t("slot",{key:"5022e0eb82b49a812422dc87efc106a0b34f2d8c",name:"menu",onSlotchange:this.collectMenuElements}))),this._stuck&&t("div",{key:"c7476e1b005c85e62ea0b1bd859229a9fe46aa34",class:"heading-stuck"},t("div",{key:"8b399a8ac01c3a4c4fadb7c462d93125d39110e2",class:"heading-stuck-content"},this.menuLength>0&&t("button",{key:"6f8eaf8b1cacf80630e1ee8f3b5027939d0469b4",class:"drawer-trigger","aria-label":"Apri menu",onClick:this.openDrawer},t("z-icon",{key:"255dd9fec44a6fea5f0fd8158e2c921d6e50c7f2",name:"burger-menu"})),t("div",{key:"0d5c56f43942a7a456651903bd88128403177180",class:"heading-title"},t("slot",{key:"75977d8c47b692f4b5c6cc98b9d4fffd219fa360",name:"stucked-title"},this.title)),this.renderSearchLinkButton(),this.canShowSearchbar&&this.currentViewport==="desktop"&&this.renderSeachbar(false))))}get hostElement(){return r(this)}static get watchers(){return{_stuck:["onStuck"],drawerOpen:["setMenuFloatingMode"],stuck:["onStuckMode"]}}};l.style=d;export{l as z_app_header_deprecated};
2
- //# sourceMappingURL=p-cf2640b0.entry.js.map
1
+ import{r as e,c as a,h as t,a as i,g as r}from"./p-75c4a726.js";import{O as n,u as h,B as o,e as s}from"./p-6037cdf3.js";const p=':host{--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-content-max-width:100%;--app-header-height:auto;--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-surface01);--app-header-stucked-bg:var(--color-surface01);--app-header-text-color:var(--color-default-text);--app-header-title-font-size:var(--app-header-typography-3-size);--app-header-title-lineheight:var(--app-header-typography-3-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-3-tracking);--app-header-stucked-text-color:var(--color-default-text);position:relative;display:block;height:var(--app-header-height);color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5)}.hero-container+.heading-panel{background:transparent}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:flex-start;column-gap:calc(var(--space-unit) * 2)}::slotted([slot="title"]),.heading-stuck .heading-title>*,::slotted([slot="stucked-title"]){margin:0;font-family:"IBM Plex Serif", serif;font-weight:var(--font-bd)}::slotted([slot="title"]){font-size:var(--app-header-title-font-size);letter-spacing:var(--app-header-title-letter-spacing);line-height:var(--app-header-title-lineheight)}.heading-stuck .heading-title>*,::slotted([slot="stucked-title"]){font-size:var(--app-header-typography-3-size);letter-spacing:var(--app-header-typography-3-tracking);line-height:var(--app-header-typography-3-lineheight)}:host(:not([menu-length="0"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2))}::slotted([slot="top-subtitle"]),::slotted([slot="subtitle"]){margin:0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;line-height:26px}::slotted([slot="subtitle"]){font-weight:500}::slotted([slot="top-subtitle"]){font-weight:400}.menu-container{display:flex;width:100%;flex:1 auto;flex-flow:row wrap}:host([menu-length="0"]:not([enable-search])) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}z-searchbar{z-index:0;display:flex;width:auto;min-width:calc(var(--space-unit) * 32);flex:1 auto;align-items:center;margin-left:auto}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto;column-gap:calc(var(--space-unit) * 2)}.heading-stuck .heading-title{overflow:hidden}.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot="stucked-title"]){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-stuck-content z-button{margin-left:auto}.drawer-trigger{padding:0;border:0;margin:0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.heading-container :is(.drawer-trigger,z-button.search-page-button){display:flex;height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));align-items:center}.heading-container z-button.search-page-button{margin-left:auto}.drawer-content{display:none}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column;row-gap:calc(var(--space-unit) * 2.5)}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu){--z-menu-label-color:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:"";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host{--app-header-title-font-size:var(--app-header-typography-6-size);--app-header-title-lineheight:var(--app-header-typography-6-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-6-tracking)}.heading-panel{flex-flow:row wrap;align-items:center;padding-bottom:calc(var(--space-unit) * 2)}.heading-container{margin-right:auto}:host(:is([flow="offcanvas"],[menu-length="0"])) :is(.heading-container,.menu-container){width:auto}:host(:not([flow="offcanvas"])) .heading-subtitle{padding-left:0}.menu-container{flex:initial;align-items:center}:host([menu-length="0"]) .menu-container:not(:empty){height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight))}:host(:not([flow="offcanvas"])) .menu-container{gap:var(--space-unit) calc(var(--space-unit) * 5)}:host(:not([flow="offcanvas"])) .heading-container .drawer-trigger{display:none}}@media (min-width: 1152px){:host{--app-header-title-font-size:var(--app-header-typography-7-size);--app-header-title-lineheight:var(--app-header-typography-7-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-7-tracking)}.heading-panel{justify-content:flex-start;padding-bottom:calc(var(--space-unit) * 3)}.heading-container,.menu-container{width:auto}:host([flow="stack"]) .heading-panel{flex-flow:column;align-items:flex-start}:host([flow="stack"]) .menu-container{width:100%}:host(:not([flow="offcanvas"],[menu-length="0"])) .heading-panel{row-gap:calc(var(--space-unit) * 3)}z-searchbar{min-width:calc(var(--space-unit) * 45);flex:initial}}@media (min-width: 1366px){:host{--app-header-title-font-size:var(--app-header-typography-9-size);--app-header-title-lineheight:var(--app-header-typography-9-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-9-tracking)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}';const d=p;const c=typeof IntersectionObserver!=="undefined";const l=class{constructor(t){e(this,t);this.sticking=a(this,"sticking",7);this.observer=c&&new IntersectionObserver((([e])=>{this._stuck=!e.isIntersecting}),{threshold:.5});this.stuck=false;this.hero=undefined;this.overlay=false;this.flow="auto";this.drawerOpen=false;this.enableSearch=false;this.searchPlaceholder="Cerca";this.searchString="";this.searchPageUrl=undefined;this._stuck=false;this.currentViewport="mobile";this.menuLength=undefined;this.openDrawer=this.openDrawer.bind(this);this.closeDrawer=this.closeDrawer.bind(this);this.collectMenuElements=this.collectMenuElements.bind(this)}evaluateViewport(){if(window.innerWidth<768){this.currentViewport="mobile"}else if(window.innerWidth>=768&&window.innerWidth<1152){this.currentViewport="tablet"}else{this.currentViewport="desktop"}}onStuck(){const e=this.scrollParent;if(!e){return}this.sticking.emit(this._stuck)}setMenuFloatingMode(){if(this.menuElements.length===0){return}const e=this.menuElements;e.forEach((e=>{e.open=false;e.floating=!this.drawerOpen;e.verticalContext=this.drawerOpen}))}get title(){const e=this.hostElement.querySelector('[slot="title"]');if(e===null){return""}return e.textContent.trim()}get scrollParent(){const e=this.hostElement.offsetParent;if(e===document.body||e===document.documentElement){return window}return e}get canShowMenu(){return this.flow!=="offcanvas"&&this.currentViewport!=="mobile"&&!this.drawerOpen}get canShowSearchbar(){if(!this.enableSearch){return false}if(this.searchPageUrl){return this.currentViewport==="desktop"}return true}get hasHero(){return!!this.hero||this.hostElement.querySelector("[slot=hero]")!==null}openDrawer(){this.drawerOpen=true}closeDrawer(){this.drawerOpen=false}collectMenuElements(){const e=this.menuElements=this.hostElement.querySelectorAll('[slot="menu"]');this.menuLength=e.length;this.setMenuFloatingMode()}enableStuckObserver(){if(this.observer){this.observer.observe(this.container)}}disableStuckMode(){this._stuck=false;if(this.observer){this.observer.unobserve(this.container)}}onStuckMode(){if(this.stuck){this.enableStuckObserver()}else{this.disableStuckMode()}}renderSearchLinkButton(){if(!this.enableSearch||!this.searchPageUrl||this.currentViewport==="desktop"){return null}return t("z-button",{class:"search-page-button",variant:o.SECONDARY,href:this.searchPageUrl,icon:"search",size:s.X_SMALL})}renderSeachbar(e){return t("z-searchbar",{value:this.searchString,placeholder:this.searchPlaceholder,showSearchButton:true,searchButtonIconOnly:e,size:s.X_SMALL,variant:o.SECONDARY,preventSubmit:this.searchString.length<3,onSearchTyping:e=>this.searchString=e.detail})}componentDidLoad(){this.collectMenuElements();this.onStuckMode();this.evaluateViewport()}render(){return t(i,{key:"248c788e09761ea940575f856285bd48df83efbf","menu-length":this.menuLength},this.hasHero&&t("div",{key:"834d8da46e3fcd43f1e6f082eae1b82a0114df7d",class:"hero-container"},t("slot",{key:"89f3a1034411572bdf4dbe4b1e02c7ea78b7972f",name:"hero"},this.hero&&t("img",{key:"8ba742bf809c529e7a56d85457c544e79d347b8c",alt:"",src:this.hero}))),t("div",{key:"3b6e06d3ea80fae0adfbbf81566d4c26087e4f61",class:"heading-panel",ref:e=>this.container=e},t("div",{key:"f0e9e6c8e652227cfed385e2fc90b67d0cf56af1",class:"heading-container"},t("div",{key:"38e541c297c3925bd2bb1e2bced92f14b92f2642",class:"heading-subtitle"},t("slot",{key:"bcf70e94c3bcaafb22114de70f8f7eef47d3d23d",name:"top-subtitle"})),t("div",{key:"bc4944c4819e423c9e18461dd92ba3c29421cf1a",class:"heading-title"},this.menuLength>0&&t("button",{key:"e9dab16f601d16c4efa08d1bb670a624d900753e",class:"drawer-trigger","aria-label":"Apri menu",onClick:this.openDrawer},t("z-icon",{key:"ed29253cc6327a76387d29c811e2e5a533f39766",name:"burger-menu"})),t("slot",{key:"edbd5ef824affe20c9d2df7046e836040206adb1",name:"title"}),this.renderSearchLinkButton()),t("div",{key:"5786332ce6b9969686592e1be7785009c613dda6",class:"heading-subtitle"},t("slot",{key:"8b66f6d034492d96276ed97e71c5e0450ad2b22a",name:"subtitle"}))),(this.canShowMenu||this.canShowSearchbar)&&t("div",{key:"1b9e781b2d706d3ef48c43251198739453e59918",class:"menu-container"},this.canShowMenu&&t("slot",{key:"d0138f4d3f480a28962e1bccf1f60456feb76a82",name:"menu",onSlotchange:this.collectMenuElements}),this.canShowSearchbar&&this.renderSeachbar(this.currentViewport!=="desktop"))),t("z-offcanvas",{key:"bd233aac91c1ae4018b65dc40e1b6b23f64b3257",variant:n.OVERLAY,transitiondirection:h.RIGHT,open:this.drawerOpen,onCanvasOpenStatusChanged:e=>this.drawerOpen=e.detail},t("button",{key:"7072dd5083f928b3f85ec1c67cdd116699455f75",class:"drawer-close","aria-label":"Chiudi menu",onClick:this.closeDrawer,slot:"canvasContent","aria-hidden":`${!this.drawerOpen}`,disabled:!this.drawerOpen},t("z-icon",{key:"b0eaedd3f7b480d207e2f59d28d9fca7b716f6a1",name:"close"})),t("div",{key:"5338f6b648e465eda415f6c2df6042e4fed4afc7",class:"drawer-content",slot:"canvasContent","aria-hidden":`${!this.drawerOpen}`},t("slot",{key:"6bc7914138ff4accd2a7181b309267a652e8ec9f",name:"menu",onSlotchange:this.collectMenuElements}))),this._stuck&&t("div",{key:"52111f4a943e3bb0aeb2b598c691b0a0dba7cad6",class:"heading-stuck"},t("div",{key:"7b83fe01b6d813ec488cd047b110651bcf68a842",class:"heading-stuck-content"},this.menuLength>0&&t("button",{key:"980a5644ad87b850a3617a7647cf91112e0269d3",class:"drawer-trigger","aria-label":"Apri menu",onClick:this.openDrawer},t("z-icon",{key:"fa1eb36c53f6984510f4c4e25d6a99c4d0a30bcc",name:"burger-menu"})),t("div",{key:"3888a5e1305a386756a307630d8435ff8cf2ef89",class:"heading-title"},t("slot",{key:"6f7e6d23496af75d2a5f36540fa6a8928d391848",name:"stucked-title"},this.title)),this.renderSearchLinkButton(),this.canShowSearchbar&&this.currentViewport==="desktop"&&this.renderSeachbar(false))))}get hostElement(){return r(this)}static get watchers(){return{_stuck:["onStuck"],drawerOpen:["setMenuFloatingMode"],stuck:["onStuckMode"]}}};l.style=d;export{l as z_app_header_deprecated};
2
+ //# sourceMappingURL=p-608c35ba.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["stylesCss","ZAppHeaderDeprecatedStyle0","SUPPORT_INTERSECTION_OBSERVER","IntersectionObserver","ZAppHeaderDeprecated","constructor","hostRef","this","observer","entry","_stuck","isIntersecting","threshold","openDrawer","bind","closeDrawer","collectMenuElements","evaluateViewport","window","innerWidth","currentViewport","onStuck","scrollParent","sticking","emit","setMenuFloatingMode","menuElements","length","elements","forEach","element","open","floating","drawerOpen","verticalContext","title","titleElement","hostElement","querySelector","textContent","trim","parent","offsetParent","document","body","documentElement","canShowMenu","flow","canShowSearchbar","enableSearch","searchPageUrl","hasHero","hero","querySelectorAll","menuLength","enableStuckObserver","observe","container","disableStuckMode","unobserve","onStuckMode","stuck","renderSearchLinkButton","h","class","variant","ButtonVariant","SECONDARY","href","icon","size","ControlSize","X_SMALL","renderSeachbar","searchButtonIconOnly","value","searchString","placeholder","searchPlaceholder","showSearchButton","preventSubmit","onSearchTyping","e","detail","componentDidLoad","render","Host","key","name","alt","src","ref","el","onClick","onSlotchange","OffCanvasVariant","OVERLAY","transitiondirection","TransitionDirection","RIGHT","onCanvasOpenStatusChanged","ev","slot","disabled"],"sources":["src/components/deprecated/z-app-header-deprecated/styles.css?tag=z-app-header-deprecated&encapsulation=shadow","src/components/deprecated/z-app-header-deprecated/index.tsx"],"sourcesContent":[":host {\n --app-header-typography-1-size: 24px;\n --app-header-typography-2-size: 28px;\n --app-header-typography-3-size: 32px;\n --app-header-typography-4-size: 36px;\n --app-header-typography-5-size: 42px;\n --app-header-typography-6-size: 48px;\n --app-header-typography-7-size: 54px;\n --app-header-typography-8-size: 60px;\n --app-header-typography-9-size: 68px;\n --app-header-typography-10-size: 76px;\n --app-header-typography-11-size: 84px;\n --app-header-typography-12-size: 92px;\n --app-header-typography-1-lineheight: 1.33;\n --app-header-typography-2-lineheight: 1.29;\n --app-header-typography-3-lineheight: 1.25;\n --app-header-typography-4-lineheight: 1.24;\n --app-header-typography-5-lineheight: 1.24;\n --app-header-typography-6-lineheight: 1.25;\n --app-header-typography-7-lineheight: 1.2;\n --app-header-typography-8-lineheight: 1.26;\n --app-header-typography-9-lineheight: 1.24;\n --app-header-typography-10-lineheight: 1.26;\n --app-header-typography-11-lineheight: 1.2;\n --app-header-typography-12-lineheight: 1.2;\n --app-header-typography-1-tracking: calc(-0.2 / 1em);\n --app-header-typography-2-tracking: calc(-0.4 / 1em);\n --app-header-typography-3-tracking: calc(-0.6 / 1em);\n --app-header-typography-4-tracking: calc(-0.8 / 1em);\n --app-header-typography-5-tracking: calc(-1 / 1em);\n --app-header-typography-6-tracking: calc(-1.2 / 1em);\n --app-header-typography-7-tracking: calc(-1.4 / 1em);\n --app-header-typography-8-tracking: calc(-1.6 / 1em);\n --app-header-typography-9-tracking: calc(-1.8 / 1em);\n --app-header-typography-10-tracking: calc(-2 / 1em);\n --app-header-typography-11-tracking: calc(-2.2 / 1em);\n --app-header-typography-12-tracking: calc(-2.4 / 1em);\n --app-header-content-max-width: 100%;\n --app-header-height: auto;\n\n /* Variable to set stuck header and drawer's top offset.\n Useful when something is absolutely positioned above the header. */\n --app-header-top-offset: 48px;\n --app-header-drawer-trigger-size: calc(var(--space-unit) * 4);\n\n /* Variable to customize header background color. */\n --app-header-bg: var(--color-surface01);\n\n /* Variable to customize stuck header background color. */\n --app-header-stucked-bg: var(--color-surface01);\n\n /* Variable to customize text and icon color. */\n --app-header-text-color: var(--color-default-text);\n\n /* Variable to customize the title's font size.\n NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. */\n --app-header-title-font-size: var(--app-header-typography-3-size);\n\n /* Variable to customize the title's line-height.\n NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value\n and use the same level as the one of the font size. */\n --app-header-title-lineheight: var(--app-header-typography-3-lineheight);\n\n /* Variable to customize the title's letter-spacing.\n NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value\n and use the same level as the one of the font size. */\n --app-header-title-letter-spacing: var(--app-header-typography-3-tracking);\n\n /* Variable to customize stuck header's text and icon color. */\n --app-header-stucked-text-color: var(--color-default-text);\n\n position: relative;\n display: block;\n height: var(--app-header-height);\n color: var(--app-header-text-color);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n.heading-panel {\n position: relative;\n display: flex;\n width: 100%;\n max-width: var(--app-header-content-max-width);\n flex-direction: column;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: baseline;\n padding: var(--grid-margin);\n margin: 0 auto;\n background: var(--app-header-bg);\n gap: calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);\n}\n\n.hero-container + .heading-panel {\n background: transparent;\n}\n\n:host(:empty) .heading-panel {\n padding: 0;\n}\n\n.heading-container {\n position: relative;\n z-index: 1;\n display: flex;\n width: 100%;\n max-width: 100%;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n}\n\n.heading-title {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n align-items: flex-start;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n::slotted([slot=\"title\"]),\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n margin: 0;\n font-family: \"IBM Plex Serif\", serif;\n font-weight: var(--font-bd);\n}\n\n::slotted([slot=\"title\"]) {\n font-size: var(--app-header-title-font-size);\n letter-spacing: var(--app-header-title-letter-spacing);\n line-height: var(--app-header-title-lineheight);\n}\n\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n font-size: var(--app-header-typography-3-size);\n letter-spacing: var(--app-header-typography-3-tracking);\n line-height: var(--app-header-typography-3-lineheight);\n}\n\n:host(:not([menu-length=\"0\"])) .heading-subtitle {\n padding-left: calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2));\n}\n\n::slotted([slot=\"top-subtitle\"]),\n::slotted([slot=\"subtitle\"]) {\n margin: 0;\n font-family: var(--font-family-sans);\n font-size: 20px;\n font-style: italic;\n line-height: 26px;\n}\n\n::slotted([slot=\"subtitle\"]) {\n font-weight: 500;\n}\n\n::slotted([slot=\"top-subtitle\"]) {\n font-weight: 400;\n}\n\n.menu-container {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-flow: row wrap;\n}\n\n:host([menu-length=\"0\"]:not([enable-search])) .menu-container,\n.menu-container:empty {\n display: none;\n}\n\n.menu-container ::slotted([open]) {\n position: relative;\n z-index: 3;\n}\n\nz-searchbar {\n z-index: 0;\n display: flex;\n width: auto;\n min-width: calc(var(--space-unit) * 32);\n flex: 1 auto;\n align-items: center;\n margin-left: auto;\n}\n\n.heading-stuck {\n position: fixed;\n z-index: 20;\n top: var(--app-header-top-offset);\n left: 0;\n width: 100%;\n max-width: 100%;\n animation: slide-stuck-heading-in 250ms ease-out;\n background: var(--app-header-stucked-bg);\n box-shadow: var(--shadow-2);\n color: var(--app-header-stucked-text-color);\n}\n\n.heading-stuck-content {\n display: flex;\n max-width: var(--app-header-content-max-width);\n align-items: center;\n padding: var(--space-unit) var(--grid-margin);\n margin: 0 auto;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n.heading-stuck .heading-title {\n overflow: hidden;\n}\n\n.heading-stuck .heading-title > *,\n.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.heading-stuck-content z-button {\n margin-left: auto;\n}\n\n.drawer-trigger {\n padding: 0;\n border: 0;\n margin: 0;\n appearance: none;\n background: none;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n}\n\n.drawer-trigger z-icon {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n fill: currentcolor;\n}\n\n/* Simulate the height of the first line of text,\nto correctly align drawer icon and search page button with the title */\n.heading-container :is(.drawer-trigger, z-button.search-page-button) {\n display: flex;\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n align-items: center;\n}\n\n.heading-container z-button.search-page-button {\n margin-left: auto;\n}\n\n.drawer-content {\n display: none;\n}\n\nz-offcanvas[open] .drawer-content {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-direction: column;\n row-gap: calc(var(--space-unit) * 2.5);\n}\n\nz-offcanvas[open] .drawer-content ::slotted(z-menu) {\n width: 100%;\n}\n\n.drawer-close {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n padding: 0;\n border: 0;\n margin: var(--space-unit) 0 calc(var(--space-unit) * 2.5);\n appearance: none;\n background: transparent;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n fill: currentcolor;\n font-size: inherit;\n outline: none;\n}\n\n.drawer-close:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.hero-container {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n:host([overlay]) .heading-panel .drawer-trigger z-icon,\n:host([overlay]) .heading-panel .heading-container,\n:host([overlay]) .heading-panel .menu-container {\n color: var(--color-white);\n fill: var(--color-white);\n}\n\n:host([overlay]) .heading-panel .menu-container ::slotted(z-menu) {\n --z-menu-label-color: var(--color-white);\n}\n\n:host([overlay]) .hero-container::after {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--color-black);\n content: \"\";\n opacity: 0.5;\n}\n\n.hero-container img,\n.hero-container ::slotted(*) {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: top center;\n -webkit-user-drag: none;\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-6-size);\n --app-header-title-lineheight: var(--app-header-typography-6-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-6-tracking);\n }\n\n .heading-panel {\n flex-flow: row wrap;\n align-items: center;\n padding-bottom: calc(var(--space-unit) * 2);\n }\n\n .heading-container {\n margin-right: auto;\n }\n\n :host(:is([flow=\"offcanvas\"], [menu-length=\"0\"])) :is(.heading-container, .menu-container) {\n width: auto;\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-subtitle {\n padding-left: 0;\n }\n\n .menu-container {\n flex: initial;\n align-items: center;\n }\n\n :host([menu-length=\"0\"]) .menu-container:not(:empty) {\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n }\n\n :host(:not([flow=\"offcanvas\"])) .menu-container {\n gap: var(--space-unit) calc(var(--space-unit) * 5);\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger {\n display: none;\n }\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-7-size);\n --app-header-title-lineheight: var(--app-header-typography-7-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-7-tracking);\n }\n\n .heading-panel {\n justify-content: flex-start;\n padding-bottom: calc(var(--space-unit) * 3);\n }\n\n .heading-container,\n .menu-container {\n width: auto;\n }\n\n :host([flow=\"stack\"]) .heading-panel {\n flex-flow: column;\n align-items: flex-start;\n }\n\n :host([flow=\"stack\"]) .menu-container {\n width: 100%;\n }\n\n :host(:not([flow=\"offcanvas\"], [menu-length=\"0\"])) .heading-panel {\n row-gap: calc(var(--space-unit) * 3);\n }\n\n z-searchbar {\n min-width: calc(var(--space-unit) * 45);\n flex: initial;\n }\n}\n\n/* Wide breakpoint */\n@media (min-width: 1366px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-9-size);\n --app-header-title-lineheight: var(--app-header-typography-9-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-9-tracking);\n }\n}\n\n@keyframes slide-stuck-heading-in {\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n\n 100% {\n transform: none;\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, OffCanvasVariant, TransitionDirection} from \"../../../beans\";\n\nconst SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== \"undefined\";\n\n/**\n * @slot title - Slot for the main title\n * @slot subtitle - Slot for the bottom subtitle. It will not appear in stuck header.\n * @slot top-subtitle - Slot for the top subtitle. It will not appear in stuck header.\n * @slot stucked-title - Title for the stuck header. By default it uses the text from the `title` slot.\n * @cssprop --app-header-typography-1-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `24px`.\n * @cssprop --app-header-typography-2-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `28px`.\n * @cssprop --app-header-typography-3-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `32px`.\n * @cssprop --app-header-typography-4-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `36px`.\n * @cssprop --app-header-typography-5-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `42px`.\n * @cssprop --app-header-typography-6-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `48px`.\n * @cssprop --app-header-typography-7-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `54px`.\n * @cssprop --app-header-typography-8-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `60px`.\n * @cssprop --app-header-typography-9-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `68px`.\n * @cssprop --app-header-typography-10-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `76px`.\n * @cssprop --app-header-typography-11-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `84px`.\n * @cssprop --app-header-typography-12-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `92px`.\n * @cssprop --app-header-typography-1-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.33`.\n * @cssprop --app-header-typography-2-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.29`.\n * @cssprop --app-header-typography-3-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @cssprop --app-header-typography-4-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @cssprop --app-header-typography-5-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @cssprop --app-header-typography-6-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @cssprop --app-header-typography-7-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @cssprop --app-header-typography-8-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @cssprop --app-header-typography-9-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @cssprop --app-header-typography-10-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @cssprop --app-header-typography-11-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @cssprop --app-header-typography-12-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @cssprop --app-header-typography-1-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.2 / 1em)`.\n * @cssprop --app-header-typography-2-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.4 / 1em)`.\n * @cssprop --app-header-typography-3-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.6 / 1em)`.\n * @cssprop --app-header-typography-4-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.8 / 1em)`.\n * @cssprop --app-header-typography-5-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1 / 1em)`.\n * @cssprop --app-header-typography-6-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.2 / 1em)`.\n * @cssprop --app-header-typography-7-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.4 / 1em)`.\n * @cssprop --app-header-typography-8-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.6 / 1em)`.\n * @cssprop --app-header-typography-9-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.8 / 1em)`.\n * @cssprop --app-header-typography-10-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2 / 1em)`.\n * @cssprop --app-header-typography-11-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.2 / 1em)`.\n * @cssprop --app-header-typography-12-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.4 / 1em)`.\n * @cssprop --app-header-content-max-width - Use it to set header's content max width. Useful when the project use a fixed width layout. Defaults to `100%`.\n * @cssprop --app-header-height - Defaults to `auto`.\n * @cssprop --app-header-top-offset - Top offset for the stuck header. Useful when there are other fixed elements above the header. Defaults to `48px` (the height of the main topbar).\n * @cssprop --app-header-drawer-trigger-size - The size of the drawer icon. Defaults to `--space-unit * 4`.\n * @cssprop --app-header-bg - Header background color. Defaults to `--color-surface01`.\n * @cssprop --app-header-stucked-bg - Stuck header background color. Defaults to `--color-surface01`.\n * @cssprop --app-header-text-color - Text color. Useful on `hero` variant to set text color based on the colors of the background image. Defaults to `--color-default-text`.\n * @cssprop --app-header-title-font-size - Variable to customize the title's font size.\n * NOTE: Only use one of the exported `--app-header-typography-*-size` as a value.\n * Defaults to `--app-header-typography-3-size`.\n * @cssprop --app-header-title-lineheight - Variable to customize the title's line-height.\n * NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value and use the same level as the one of the font size.\n * Defaults to `--app-header-typography-3-lineheight`.\n * @cssprop --app-header-title-letter-spacing - Variable to customize the title's letter-spacing.\n * NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value and use the same level as the one of the font size.\n * Defaults to `--app-header-typography-3-tracking`.\n * @cssprop --app-header-stucked-text-color - Stuck header text color. Defaults to `--color-default-text`.\n */\n@Component({\n tag: \"z-app-header-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAppHeaderDeprecated {\n @Element() hostElement: HTMLZAppHeaderDeprecatedElement;\n\n /**\n * Stuck mode for the header.\n * You can programmatically set it using an IntersectionObserver.\n */\n @Prop({reflect: true})\n stuck = false;\n\n /**\n * Set the hero image source for the header.\n * You can also use a [slot=\"hero\"] node for advanced customization.\n */\n @Prop()\n hero: string;\n\n /**\n * Should place an overlay over the hero image.\n * Useful for legibility purpose.\n */\n @Prop({reflect: true})\n overlay = false;\n\n /**\n * Control menu bar position in the header.\n * - auto: the menu bar is positioned near the title\n * - stack: the menu bar is positioned below the title\n * - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu\n */\n @Prop({reflect: true})\n flow: \"auto\" | \"stack\" | \"offcanvas\" = \"auto\";\n\n /**\n * The opening state of the drawer.\n */\n @Prop({reflect: true})\n drawerOpen = false;\n\n /**\n * Enable the search bar.\n */\n @Prop({reflect: true})\n enableSearch = false;\n\n /**\n * Placeholder text for the search bar.\n */\n @Prop()\n searchPlaceholder = \"Cerca\";\n\n /**\n * Search string for the search bar.\n */\n @Prop({mutable: true})\n searchString = \"\";\n\n /**\n * Url to the search page.\n * Set this prop and `enableSearch` to show a link-button on mobile and tablet viewports, instead of the normal searchbar.\n * The link will also appear on the sticky header.\n */\n @Prop()\n searchPageUrl: string;\n\n /**\n * The stuck state of the bar.\n */\n @State()\n private _stuck = false;\n\n /**\n * Current viewport.\n * Used to change the aspect of the search button (icon only) on mobile and tablet.\n */\n @State()\n private currentViewport: \"mobile\" | \"tablet\" | \"desktop\" = \"mobile\";\n\n /**\n * Current count of menu items.\n */\n @State()\n menuLength: number;\n\n /**\n * Emitted when the `stuck` state of the header changes\n */\n @Event()\n sticking: EventEmitter;\n\n private container?: HTMLDivElement;\n\n private menuElements?: NodeListOf<HTMLElement>;\n\n private observer?: IntersectionObserver =\n SUPPORT_INTERSECTION_OBSERVER &&\n new IntersectionObserver(\n ([entry]) => {\n this._stuck = !entry.isIntersecting;\n },\n {\n threshold: 0.5,\n }\n );\n\n constructor() {\n this.openDrawer = this.openDrawer.bind(this);\n this.closeDrawer = this.closeDrawer.bind(this);\n this.collectMenuElements = this.collectMenuElements.bind(this);\n }\n\n @Listen(\"resize\", {target: \"window\", passive: true})\n evaluateViewport(): void {\n if (window.innerWidth < 768) {\n this.currentViewport = \"mobile\";\n } else if (window.innerWidth >= 768 && window.innerWidth < 1152) {\n this.currentViewport = \"tablet\";\n } else {\n this.currentViewport = \"desktop\";\n }\n }\n\n @Watch(\"_stuck\")\n onStuck(): void {\n const scrollParent = this.scrollParent;\n if (!scrollParent) {\n return;\n }\n\n this.sticking.emit(this._stuck);\n }\n\n @Watch(\"drawerOpen\")\n setMenuFloatingMode(): void {\n if (this.menuElements.length === 0) {\n return;\n }\n\n const elements = this.menuElements;\n elements.forEach((element) => {\n (element as HTMLZMenuElement).open = false;\n (element as HTMLZMenuElement).floating = !this.drawerOpen;\n (element as HTMLZMenuElement).verticalContext = this.drawerOpen;\n });\n }\n\n private get title(): string {\n const titleElement = this.hostElement.querySelector('[slot=\"title\"]');\n if (titleElement === null) {\n return \"\";\n }\n\n return titleElement.textContent.trim();\n }\n\n private get scrollParent(): Window | Element {\n const parent = this.hostElement.offsetParent;\n if (parent === document.body || parent === document.documentElement) {\n return window;\n }\n\n return parent;\n }\n\n private get canShowMenu(): boolean {\n return this.flow !== \"offcanvas\" && this.currentViewport !== \"mobile\" && !this.drawerOpen;\n }\n\n private get canShowSearchbar(): boolean {\n if (!this.enableSearch) {\n return false;\n }\n\n // Always show the searchbar on desktop, even if a searchPageUrl is set\n if (this.searchPageUrl) {\n return this.currentViewport === \"desktop\";\n }\n\n return true;\n }\n\n /**\n * Whether the header has a hero image, either as a prop or as a slot.\n */\n private get hasHero(): boolean {\n return !!this.hero || this.hostElement.querySelector(\"[slot=hero]\") !== null;\n }\n\n private openDrawer(): void {\n this.drawerOpen = true;\n }\n\n private closeDrawer(): void {\n this.drawerOpen = false;\n }\n\n private collectMenuElements(): void {\n const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot=\"menu\"]'));\n this.menuLength = menuElements.length;\n this.setMenuFloatingMode();\n }\n\n private enableStuckObserver(): void {\n if (this.observer) {\n this.observer.observe(this.container);\n }\n }\n\n private disableStuckMode(): void {\n this._stuck = false;\n if (this.observer) {\n this.observer.unobserve(this.container);\n }\n }\n\n @Watch(\"stuck\")\n onStuckMode(): void {\n if (this.stuck) {\n this.enableStuckObserver();\n } else {\n this.disableStuckMode();\n }\n }\n\n private renderSearchLinkButton(): HTMLZButtonElement | null {\n if (!this.enableSearch || !this.searchPageUrl || this.currentViewport === \"desktop\") {\n return null;\n }\n\n return (\n <z-button\n class=\"search-page-button\"\n variant={ButtonVariant.SECONDARY}\n href={this.searchPageUrl}\n icon=\"search\"\n size={ControlSize.X_SMALL}\n ></z-button>\n );\n }\n\n private renderSeachbar(searchButtonIconOnly: boolean): HTMLZSearchbarElement {\n return (\n <z-searchbar\n value={this.searchString}\n placeholder={this.searchPlaceholder}\n showSearchButton={true}\n searchButtonIconOnly={searchButtonIconOnly}\n size={ControlSize.X_SMALL}\n variant={ButtonVariant.SECONDARY}\n preventSubmit={this.searchString.length < 3}\n onSearchTyping={(e) => (this.searchString = e.detail)}\n />\n );\n }\n\n componentDidLoad(): void {\n this.collectMenuElements();\n this.onStuckMode();\n this.evaluateViewport();\n }\n\n render(): HTMLZAppHeaderElement {\n return (\n <Host menu-length={this.menuLength}>\n {this.hasHero && (\n <div class=\"hero-container\">\n <slot name=\"hero\">\n {this.hero && (\n <img\n alt=\"\"\n src={this.hero}\n />\n )}\n </slot>\n </div>\n )}\n\n <div\n class=\"heading-panel\"\n ref={(el) => (this.container = el)}\n >\n <div class=\"heading-container\">\n <div class=\"heading-subtitle\">\n <slot name=\"top-subtitle\"></slot>\n </div>\n <div class=\"heading-title\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <slot name=\"title\"></slot>\n\n {this.renderSearchLinkButton()}\n </div>\n\n <div class=\"heading-subtitle\">\n <slot name=\"subtitle\"></slot>\n </div>\n </div>\n\n {(this.canShowMenu || this.canShowSearchbar) && (\n <div class=\"menu-container\">\n {this.canShowMenu && (\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n )}\n\n {this.canShowSearchbar && this.renderSeachbar(this.currentViewport !== \"desktop\")}\n </div>\n )}\n </div>\n\n <z-offcanvas\n variant={OffCanvasVariant.OVERLAY}\n transitiondirection={TransitionDirection.RIGHT}\n open={this.drawerOpen}\n onCanvasOpenStatusChanged={(ev) => (this.drawerOpen = ev.detail)}\n >\n <button\n class=\"drawer-close\"\n aria-label=\"Chiudi menu\"\n onClick={this.closeDrawer}\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n disabled={!this.drawerOpen}\n >\n <z-icon name=\"close\"></z-icon>\n </button>\n\n <div\n class=\"drawer-content\"\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n >\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n </div>\n </z-offcanvas>\n\n {this._stuck && (\n <div class=\"heading-stuck\">\n <div class=\"heading-stuck-content\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <div class=\"heading-title\">\n <slot name=\"stucked-title\">{this.title}</slot>\n </div>\n\n {this.renderSearchLinkButton()}\n {this.canShowSearchbar && this.currentViewport === \"desktop\" && this.renderSeachbar(false)}\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"yHAAA,MAAMA,EAAY,4gRAClB,MAAAC,EAAeD,ECEf,MAAME,SAAuCC,uBAAyB,Y,MAkEzDC,EAAoB,MAyG/B,WAAAC,CAAAC,G,6CAXQC,KAAAC,SACNN,GACA,IAAIC,sBACF,EAAEM,MACAF,KAAKG,QAAUD,EAAME,cAAc,GAErC,CACEC,UAAW,K,WA7FT,M,iCAcE,M,UAS6B,O,gBAM1B,M,kBAME,M,uBAMK,Q,kBAML,G,yCAcE,M,qBAO0C,S,0BA8BzDL,KAAKM,WAAaN,KAAKM,WAAWC,KAAKP,MACvCA,KAAKQ,YAAcR,KAAKQ,YAAYD,KAAKP,MACzCA,KAAKS,oBAAsBT,KAAKS,oBAAoBF,KAAKP,K,CAI3D,gBAAAU,GACE,GAAIC,OAAOC,WAAa,IAAK,CAC3BZ,KAAKa,gBAAkB,Q,MAClB,GAAIF,OAAOC,YAAc,KAAOD,OAAOC,WAAa,KAAM,CAC/DZ,KAAKa,gBAAkB,Q,KAClB,CACLb,KAAKa,gBAAkB,S,EAK3B,OAAAC,GACE,MAAMC,EAAef,KAAKe,aAC1B,IAAKA,EAAc,CACjB,M,CAGFf,KAAKgB,SAASC,KAAKjB,KAAKG,O,CAI1B,mBAAAe,GACE,GAAIlB,KAAKmB,aAAaC,SAAW,EAAG,CAClC,M,CAGF,MAAMC,EAAWrB,KAAKmB,aACtBE,EAASC,SAASC,IACfA,EAA6BC,KAAO,MACpCD,EAA6BE,UAAYzB,KAAK0B,WAC9CH,EAA6BI,gBAAkB3B,KAAK0B,UAAU,G,CAInE,SAAYE,GACV,MAAMC,EAAe7B,KAAK8B,YAAYC,cAAc,kBACpD,GAAIF,IAAiB,KAAM,CACzB,MAAO,E,CAGT,OAAOA,EAAaG,YAAYC,M,CAGlC,gBAAYlB,GACV,MAAMmB,EAASlC,KAAK8B,YAAYK,aAChC,GAAID,IAAWE,SAASC,MAAQH,IAAWE,SAASE,gBAAiB,CACnE,OAAO3B,M,CAGT,OAAOuB,C,CAGT,eAAYK,GACV,OAAOvC,KAAKwC,OAAS,aAAexC,KAAKa,kBAAoB,WAAab,KAAK0B,U,CAGjF,oBAAYe,GACV,IAAKzC,KAAK0C,aAAc,CACtB,OAAO,K,CAIT,GAAI1C,KAAK2C,cAAe,CACtB,OAAO3C,KAAKa,kBAAoB,S,CAGlC,OAAO,I,CAMT,WAAY+B,GACV,QAAS5C,KAAK6C,MAAQ7C,KAAK8B,YAAYC,cAAc,iBAAmB,I,CAGlE,UAAAzB,GACNN,KAAK0B,WAAa,I,CAGZ,WAAAlB,GACNR,KAAK0B,WAAa,K,CAGZ,mBAAAjB,GACN,MAAMU,EAAgBnB,KAAKmB,aAAenB,KAAK8B,YAAYgB,iBAAiB,iBAC5E9C,KAAK+C,WAAa5B,EAAaC,OAC/BpB,KAAKkB,qB,CAGC,mBAAA8B,GACN,GAAIhD,KAAKC,SAAU,CACjBD,KAAKC,SAASgD,QAAQjD,KAAKkD,U,EAIvB,gBAAAC,GACNnD,KAAKG,OAAS,MACd,GAAIH,KAAKC,SAAU,CACjBD,KAAKC,SAASmD,UAAUpD,KAAKkD,U,EAKjC,WAAAG,GACE,GAAIrD,KAAKsD,MAAO,CACdtD,KAAKgD,qB,KACA,CACLhD,KAAKmD,kB,EAID,sBAAAI,GACN,IAAKvD,KAAK0C,eAAiB1C,KAAK2C,eAAiB3C,KAAKa,kBAAoB,UAAW,CACnF,OAAO,I,CAGT,OACE2C,EAAA,YACEC,MAAM,qBACNC,QAASC,EAAcC,UACvBC,KAAM7D,KAAK2C,cACXmB,KAAK,SACLC,KAAMC,EAAYC,S,CAKhB,cAAAC,CAAeC,GACrB,OACEX,EAAA,eACEY,MAAOpE,KAAKqE,aACZC,YAAatE,KAAKuE,kBAClBC,iBAAkB,KAClBL,qBAAsBA,EACtBJ,KAAMC,EAAYC,QAClBP,QAASC,EAAcC,UACvBa,cAAezE,KAAKqE,aAAajD,OAAS,EAC1CsD,eAAiBC,GAAO3E,KAAKqE,aAAeM,EAAEC,Q,CAKpD,gBAAAC,GACE7E,KAAKS,sBACLT,KAAKqD,cACLrD,KAAKU,kB,CAGP,MAAAoE,GACE,OACEtB,EAACuB,EAAI,CAAAC,IAAA,yDAAchF,KAAK+C,YACrB/C,KAAK4C,SACJY,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,kBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,QACRjF,KAAK6C,MACJW,EAAA,OAAAwB,IAAA,2CACEE,IAAI,GACJC,IAAKnF,KAAK6C,SAOpBW,EAAA,OAAAwB,IAAA,2CACEvB,MAAM,gBACN2B,IAAMC,GAAQrF,KAAKkD,UAAYmC,GAE/B7B,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,qBACTD,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,oBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,kBAEbzB,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,iBACRzD,KAAK+C,WAAa,GACjBS,EAAA,UAAAwB,IAAA,2CACEvB,MAAM,iBAAgB,aACX,YACX6B,QAAStF,KAAKM,YAEdkD,EAAA,UAAAwB,IAAA,2CAAQC,KAAK,iBAIjBzB,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,UAEVjF,KAAKuD,0BAGRC,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,oBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,gBAIbjF,KAAKuC,aAAevC,KAAKyC,mBACzBe,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,kBACRzD,KAAKuC,aACJiB,EAAA,QAAAwB,IAAA,2CACEC,KAAK,OACLM,aAAcvF,KAAKS,sBAItBT,KAAKyC,kBAAoBzC,KAAKkE,eAAelE,KAAKa,kBAAoB,aAK7E2C,EAAA,eAAAwB,IAAA,2CACEtB,QAAS8B,EAAiBC,QAC1BC,oBAAqBC,EAAoBC,MACzCpE,KAAMxB,KAAK0B,WACXmE,0BAA4BC,GAAQ9F,KAAK0B,WAAaoE,EAAGlB,QAEzDpB,EAAA,UAAAwB,IAAA,2CACEvB,MAAM,eAAc,aACT,cACX6B,QAAStF,KAAKQ,YACduF,KAAK,gBAAe,cACP,IAAI/F,KAAK0B,aACtBsE,UAAWhG,KAAK0B,YAEhB8B,EAAA,UAAAwB,IAAA,2CAAQC,KAAK,WAGfzB,EAAA,OAAAwB,IAAA,2CACEvB,MAAM,iBACNsC,KAAK,gBAAe,cACP,IAAI/F,KAAK0B,cAEtB8B,EAAA,QAAAwB,IAAA,2CACEC,KAAK,OACLM,aAAcvF,KAAKS,wBAKxBT,KAAKG,QACJqD,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,iBACTD,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,yBACRzD,KAAK+C,WAAa,GACjBS,EAAA,UAAAwB,IAAA,2CACEvB,MAAM,iBAAgB,aACX,YACX6B,QAAStF,KAAKM,YAEdkD,EAAA,UAAAwB,IAAA,2CAAQC,KAAK,iBAIjBzB,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,iBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,iBAAiBjF,KAAK4B,QAGlC5B,KAAKuD,yBACLvD,KAAKyC,kBAAoBzC,KAAKa,kBAAoB,WAAab,KAAKkE,eAAe,S","ignoreList":[]}
1
+ {"version":3,"names":["stylesCss","ZAppHeaderDeprecatedStyle0","SUPPORT_INTERSECTION_OBSERVER","IntersectionObserver","ZAppHeaderDeprecated","constructor","hostRef","this","observer","entry","_stuck","isIntersecting","threshold","openDrawer","bind","closeDrawer","collectMenuElements","evaluateViewport","window","innerWidth","currentViewport","onStuck","scrollParent","sticking","emit","setMenuFloatingMode","menuElements","length","elements","forEach","element","open","floating","drawerOpen","verticalContext","title","titleElement","hostElement","querySelector","textContent","trim","parent","offsetParent","document","body","documentElement","canShowMenu","flow","canShowSearchbar","enableSearch","searchPageUrl","hasHero","hero","querySelectorAll","menuLength","enableStuckObserver","observe","container","disableStuckMode","unobserve","onStuckMode","stuck","renderSearchLinkButton","h","class","variant","ButtonVariant","SECONDARY","href","icon","size","ControlSize","X_SMALL","renderSeachbar","searchButtonIconOnly","value","searchString","placeholder","searchPlaceholder","showSearchButton","preventSubmit","onSearchTyping","e","detail","componentDidLoad","render","Host","key","name","alt","src","ref","el","onClick","onSlotchange","OffCanvasVariant","OVERLAY","transitiondirection","TransitionDirection","RIGHT","onCanvasOpenStatusChanged","ev","slot","disabled"],"sources":["src/components/deprecated/z-app-header-deprecated/styles.css?tag=z-app-header-deprecated&encapsulation=shadow","src/components/deprecated/z-app-header-deprecated/index.tsx"],"sourcesContent":[":host {\n --app-header-typography-1-size: 24px;\n --app-header-typography-2-size: 28px;\n --app-header-typography-3-size: 32px;\n --app-header-typography-4-size: 36px;\n --app-header-typography-5-size: 42px;\n --app-header-typography-6-size: 48px;\n --app-header-typography-7-size: 54px;\n --app-header-typography-8-size: 60px;\n --app-header-typography-9-size: 68px;\n --app-header-typography-10-size: 76px;\n --app-header-typography-11-size: 84px;\n --app-header-typography-12-size: 92px;\n --app-header-typography-1-lineheight: 1.33;\n --app-header-typography-2-lineheight: 1.29;\n --app-header-typography-3-lineheight: 1.25;\n --app-header-typography-4-lineheight: 1.24;\n --app-header-typography-5-lineheight: 1.24;\n --app-header-typography-6-lineheight: 1.25;\n --app-header-typography-7-lineheight: 1.2;\n --app-header-typography-8-lineheight: 1.26;\n --app-header-typography-9-lineheight: 1.24;\n --app-header-typography-10-lineheight: 1.26;\n --app-header-typography-11-lineheight: 1.2;\n --app-header-typography-12-lineheight: 1.2;\n --app-header-typography-1-tracking: calc(-0.2 / 1em);\n --app-header-typography-2-tracking: calc(-0.4 / 1em);\n --app-header-typography-3-tracking: calc(-0.6 / 1em);\n --app-header-typography-4-tracking: calc(-0.8 / 1em);\n --app-header-typography-5-tracking: calc(-1 / 1em);\n --app-header-typography-6-tracking: calc(-1.2 / 1em);\n --app-header-typography-7-tracking: calc(-1.4 / 1em);\n --app-header-typography-8-tracking: calc(-1.6 / 1em);\n --app-header-typography-9-tracking: calc(-1.8 / 1em);\n --app-header-typography-10-tracking: calc(-2 / 1em);\n --app-header-typography-11-tracking: calc(-2.2 / 1em);\n --app-header-typography-12-tracking: calc(-2.4 / 1em);\n --app-header-content-max-width: 100%;\n --app-header-height: auto;\n\n /* Variable to set stuck header and drawer's top offset.\n Useful when something is absolutely positioned above the header. */\n --app-header-top-offset: 48px;\n --app-header-drawer-trigger-size: calc(var(--space-unit) * 4);\n\n /* Variable to customize header background color. */\n --app-header-bg: var(--color-surface01);\n\n /* Variable to customize stuck header background color. */\n --app-header-stucked-bg: var(--color-surface01);\n\n /* Variable to customize text and icon color. */\n --app-header-text-color: var(--color-default-text);\n\n /* Variable to customize the title's font size.\n NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. */\n --app-header-title-font-size: var(--app-header-typography-3-size);\n\n /* Variable to customize the title's line-height.\n NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value\n and use the same level as the one of the font size. */\n --app-header-title-lineheight: var(--app-header-typography-3-lineheight);\n\n /* Variable to customize the title's letter-spacing.\n NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value\n and use the same level as the one of the font size. */\n --app-header-title-letter-spacing: var(--app-header-typography-3-tracking);\n\n /* Variable to customize stuck header's text and icon color. */\n --app-header-stucked-text-color: var(--color-default-text);\n\n position: relative;\n display: block;\n height: var(--app-header-height);\n color: var(--app-header-text-color);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n.heading-panel {\n position: relative;\n display: flex;\n width: 100%;\n max-width: var(--app-header-content-max-width);\n flex-direction: column;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: baseline;\n padding: var(--grid-margin);\n margin: 0 auto;\n background: var(--app-header-bg);\n gap: calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);\n}\n\n.hero-container + .heading-panel {\n background: transparent;\n}\n\n:host(:empty) .heading-panel {\n padding: 0;\n}\n\n.heading-container {\n position: relative;\n z-index: 1;\n display: flex;\n width: 100%;\n max-width: 100%;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n}\n\n.heading-title {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n align-items: flex-start;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n::slotted([slot=\"title\"]),\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n margin: 0;\n font-family: \"IBM Plex Serif\", serif;\n font-weight: var(--font-bd);\n}\n\n::slotted([slot=\"title\"]) {\n font-size: var(--app-header-title-font-size);\n letter-spacing: var(--app-header-title-letter-spacing);\n line-height: var(--app-header-title-lineheight);\n}\n\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n font-size: var(--app-header-typography-3-size);\n letter-spacing: var(--app-header-typography-3-tracking);\n line-height: var(--app-header-typography-3-lineheight);\n}\n\n:host(:not([menu-length=\"0\"])) .heading-subtitle {\n padding-left: calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2));\n}\n\n::slotted([slot=\"top-subtitle\"]),\n::slotted([slot=\"subtitle\"]) {\n margin: 0;\n font-family: var(--font-family-sans);\n font-size: 20px;\n font-style: italic;\n line-height: 26px;\n}\n\n::slotted([slot=\"subtitle\"]) {\n font-weight: 500;\n}\n\n::slotted([slot=\"top-subtitle\"]) {\n font-weight: 400;\n}\n\n.menu-container {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-flow: row wrap;\n}\n\n:host([menu-length=\"0\"]:not([enable-search])) .menu-container,\n.menu-container:empty {\n display: none;\n}\n\n.menu-container ::slotted([open]) {\n position: relative;\n z-index: 3;\n}\n\nz-searchbar {\n z-index: 0;\n display: flex;\n width: auto;\n min-width: calc(var(--space-unit) * 32);\n flex: 1 auto;\n align-items: center;\n margin-left: auto;\n}\n\n.heading-stuck {\n position: fixed;\n z-index: 20;\n top: var(--app-header-top-offset);\n left: 0;\n width: 100%;\n max-width: 100%;\n animation: slide-stuck-heading-in 250ms ease-out;\n background: var(--app-header-stucked-bg);\n box-shadow: var(--shadow-2);\n color: var(--app-header-stucked-text-color);\n}\n\n.heading-stuck-content {\n display: flex;\n max-width: var(--app-header-content-max-width);\n align-items: center;\n padding: var(--space-unit) var(--grid-margin);\n margin: 0 auto;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n.heading-stuck .heading-title {\n overflow: hidden;\n}\n\n.heading-stuck .heading-title > *,\n.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.heading-stuck-content z-button {\n margin-left: auto;\n}\n\n.drawer-trigger {\n padding: 0;\n border: 0;\n margin: 0;\n appearance: none;\n background: none;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n}\n\n.drawer-trigger z-icon {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n fill: currentcolor;\n}\n\n/* Simulate the height of the first line of text,\nto correctly align drawer icon and search page button with the title */\n.heading-container :is(.drawer-trigger, z-button.search-page-button) {\n display: flex;\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n align-items: center;\n}\n\n.heading-container z-button.search-page-button {\n margin-left: auto;\n}\n\n.drawer-content {\n display: none;\n}\n\nz-offcanvas[open] .drawer-content {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-direction: column;\n row-gap: calc(var(--space-unit) * 2.5);\n}\n\nz-offcanvas[open] .drawer-content ::slotted(z-menu) {\n width: 100%;\n}\n\n.drawer-close {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n padding: 0;\n border: 0;\n margin: var(--space-unit) 0 calc(var(--space-unit) * 2.5);\n appearance: none;\n background: transparent;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n fill: currentcolor;\n font-size: inherit;\n outline: none;\n}\n\n.drawer-close:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.hero-container {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n:host([overlay]) .heading-panel .drawer-trigger z-icon,\n:host([overlay]) .heading-panel .heading-container,\n:host([overlay]) .heading-panel .menu-container {\n color: var(--color-white);\n fill: var(--color-white);\n}\n\n:host([overlay]) .heading-panel .menu-container ::slotted(z-menu) {\n --z-menu-label-color: var(--color-white);\n}\n\n:host([overlay]) .hero-container::after {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--color-black);\n content: \"\";\n opacity: 0.5;\n}\n\n.hero-container img,\n.hero-container ::slotted(*) {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: top center;\n -webkit-user-drag: none;\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-6-size);\n --app-header-title-lineheight: var(--app-header-typography-6-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-6-tracking);\n }\n\n .heading-panel {\n flex-flow: row wrap;\n align-items: center;\n padding-bottom: calc(var(--space-unit) * 2);\n }\n\n .heading-container {\n margin-right: auto;\n }\n\n :host(:is([flow=\"offcanvas\"], [menu-length=\"0\"])) :is(.heading-container, .menu-container) {\n width: auto;\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-subtitle {\n padding-left: 0;\n }\n\n .menu-container {\n flex: initial;\n align-items: center;\n }\n\n :host([menu-length=\"0\"]) .menu-container:not(:empty) {\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n }\n\n :host(:not([flow=\"offcanvas\"])) .menu-container {\n gap: var(--space-unit) calc(var(--space-unit) * 5);\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger {\n display: none;\n }\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-7-size);\n --app-header-title-lineheight: var(--app-header-typography-7-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-7-tracking);\n }\n\n .heading-panel {\n justify-content: flex-start;\n padding-bottom: calc(var(--space-unit) * 3);\n }\n\n .heading-container,\n .menu-container {\n width: auto;\n }\n\n :host([flow=\"stack\"]) .heading-panel {\n flex-flow: column;\n align-items: flex-start;\n }\n\n :host([flow=\"stack\"]) .menu-container {\n width: 100%;\n }\n\n :host(:not([flow=\"offcanvas\"], [menu-length=\"0\"])) .heading-panel {\n row-gap: calc(var(--space-unit) * 3);\n }\n\n z-searchbar {\n min-width: calc(var(--space-unit) * 45);\n flex: initial;\n }\n}\n\n/* Wide breakpoint */\n@media (min-width: 1366px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-9-size);\n --app-header-title-lineheight: var(--app-header-typography-9-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-9-tracking);\n }\n}\n\n@keyframes slide-stuck-heading-in {\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n\n 100% {\n transform: none;\n }\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, OffCanvasVariant, TransitionDirection} from \"../../../beans\";\n\nconst SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== \"undefined\";\n\n/**\n * @slot title - Slot for the main title\n * @slot subtitle - Slot for the bottom subtitle. It will not appear in stuck header.\n * @slot top-subtitle - Slot for the top subtitle. It will not appear in stuck header.\n * @slot stucked-title - Title for the stuck header. By default it uses the text from the `title` slot.\n * @cssprop --app-header-typography-1-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `24px`.\n * @cssprop --app-header-typography-2-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `28px`.\n * @cssprop --app-header-typography-3-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `32px`.\n * @cssprop --app-header-typography-4-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `36px`.\n * @cssprop --app-header-typography-5-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `42px`.\n * @cssprop --app-header-typography-6-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `48px`.\n * @cssprop --app-header-typography-7-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `54px`.\n * @cssprop --app-header-typography-8-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `60px`.\n * @cssprop --app-header-typography-9-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `68px`.\n * @cssprop --app-header-typography-10-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `76px`.\n * @cssprop --app-header-typography-11-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `84px`.\n * @cssprop --app-header-typography-12-size - Part of the heading typography's scale. Use it if you have to override the default value. Value: `92px`.\n * @cssprop --app-header-typography-1-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.33`.\n * @cssprop --app-header-typography-2-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.29`.\n * @cssprop --app-header-typography-3-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @cssprop --app-header-typography-4-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @cssprop --app-header-typography-5-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @cssprop --app-header-typography-6-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @cssprop --app-header-typography-7-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @cssprop --app-header-typography-8-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @cssprop --app-header-typography-9-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @cssprop --app-header-typography-10-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @cssprop --app-header-typography-11-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @cssprop --app-header-typography-12-lineheight - Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @cssprop --app-header-typography-1-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.2 / 1em)`.\n * @cssprop --app-header-typography-2-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.4 / 1em)`.\n * @cssprop --app-header-typography-3-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.6 / 1em)`.\n * @cssprop --app-header-typography-4-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.8 / 1em)`.\n * @cssprop --app-header-typography-5-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1 / 1em)`.\n * @cssprop --app-header-typography-6-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.2 / 1em)`.\n * @cssprop --app-header-typography-7-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.4 / 1em)`.\n * @cssprop --app-header-typography-8-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.6 / 1em)`.\n * @cssprop --app-header-typography-9-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.8 / 1em)`.\n * @cssprop --app-header-typography-10-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2 / 1em)`.\n * @cssprop --app-header-typography-11-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.2 / 1em)`.\n * @cssprop --app-header-typography-12-tracking - Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.4 / 1em)`.\n * @cssprop --app-header-content-max-width - Use it to set header's content max width. Useful when the project use a fixed width layout. Defaults to `100%`.\n * @cssprop --app-header-height - Defaults to `auto`.\n * @cssprop --app-header-top-offset - Top offset for the stuck header. Useful when there are other fixed elements above the header. Defaults to `48px` (the height of the main topbar).\n * @cssprop --app-header-drawer-trigger-size - The size of the drawer icon. Defaults to `--space-unit * 4`.\n * @cssprop --app-header-bg - Header background color. Defaults to `--color-surface01`.\n * @cssprop --app-header-stucked-bg - Stuck header background color. Defaults to `--color-surface01`.\n * @cssprop --app-header-text-color - Text color. Useful on `hero` variant to set text color based on the colors of the background image. Defaults to `--color-default-text`.\n * @cssprop --app-header-title-font-size - Variable to customize the title's font size.\n * NOTE: Only use one of the exported `--app-header-typography-*-size` as a value.\n * Defaults to `--app-header-typography-3-size`.\n * @cssprop --app-header-title-lineheight - Variable to customize the title's line-height.\n * NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value and use the same level as the one of the font size.\n * Defaults to `--app-header-typography-3-lineheight`.\n * @cssprop --app-header-title-letter-spacing - Variable to customize the title's letter-spacing.\n * NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value and use the same level as the one of the font size.\n * Defaults to `--app-header-typography-3-tracking`.\n * @cssprop --app-header-stucked-text-color - Stuck header text color. Defaults to `--color-default-text`.\n */\n@Component({\n tag: \"z-app-header-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAppHeaderDeprecated {\n @Element() hostElement: HTMLZAppHeaderDeprecatedElement;\n\n /**\n * Stuck mode for the header.\n * You can programmatically set it using an IntersectionObserver.\n */\n @Prop({reflect: true})\n stuck = false;\n\n /**\n * Set the hero image source for the header.\n * You can also use a [slot=\"hero\"] node for advanced customization.\n */\n @Prop()\n hero: string;\n\n /**\n * Should place an overlay over the hero image.\n * Useful for legibility purpose.\n */\n @Prop({reflect: true})\n overlay = false;\n\n /**\n * Control menu bar position in the header.\n * - auto: the menu bar is positioned near the title\n * - stack: the menu bar is positioned below the title\n * - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu\n */\n @Prop({reflect: true})\n flow: \"auto\" | \"stack\" | \"offcanvas\" = \"auto\";\n\n /**\n * The opening state of the drawer.\n */\n @Prop({reflect: true})\n drawerOpen = false;\n\n /**\n * Enable the search bar.\n */\n @Prop({reflect: true})\n enableSearch = false;\n\n /**\n * Placeholder text for the search bar.\n */\n @Prop()\n searchPlaceholder = \"Cerca\";\n\n /**\n * Search string for the search bar.\n */\n @Prop({mutable: true})\n searchString = \"\";\n\n /**\n * Url to the search page.\n * Set this prop and `enableSearch` to show a link-button on mobile and tablet viewports, instead of the normal searchbar.\n * The link will also appear on the sticky header.\n */\n @Prop()\n searchPageUrl: string;\n\n /**\n * The stuck state of the bar.\n */\n @State()\n private _stuck = false;\n\n /**\n * Current viewport.\n * Used to change the aspect of the search button (icon only) on mobile and tablet.\n */\n @State()\n private currentViewport: \"mobile\" | \"tablet\" | \"desktop\" = \"mobile\";\n\n /**\n * Current count of menu items.\n */\n @State()\n menuLength: number;\n\n /**\n * Emitted when the `stuck` state of the header changes\n */\n @Event()\n sticking: EventEmitter;\n\n private container?: HTMLDivElement;\n\n private menuElements?: NodeListOf<HTMLElement>;\n\n private observer?: IntersectionObserver =\n SUPPORT_INTERSECTION_OBSERVER &&\n new IntersectionObserver(\n ([entry]) => {\n this._stuck = !entry.isIntersecting;\n },\n {\n threshold: 0.5,\n }\n );\n\n constructor() {\n this.openDrawer = this.openDrawer.bind(this);\n this.closeDrawer = this.closeDrawer.bind(this);\n this.collectMenuElements = this.collectMenuElements.bind(this);\n }\n\n @Listen(\"resize\", {target: \"window\", passive: true})\n evaluateViewport(): void {\n if (window.innerWidth < 768) {\n this.currentViewport = \"mobile\";\n } else if (window.innerWidth >= 768 && window.innerWidth < 1152) {\n this.currentViewport = \"tablet\";\n } else {\n this.currentViewport = \"desktop\";\n }\n }\n\n @Watch(\"_stuck\")\n onStuck(): void {\n const scrollParent = this.scrollParent;\n if (!scrollParent) {\n return;\n }\n\n this.sticking.emit(this._stuck);\n }\n\n @Watch(\"drawerOpen\")\n setMenuFloatingMode(): void {\n if (this.menuElements.length === 0) {\n return;\n }\n\n const elements = this.menuElements;\n elements.forEach((element) => {\n (element as HTMLZMenuDeprecatedElement).open = false;\n (element as HTMLZMenuDeprecatedElement).floating = !this.drawerOpen;\n (element as HTMLZMenuDeprecatedElement).verticalContext = this.drawerOpen;\n });\n }\n\n private get title(): string {\n const titleElement = this.hostElement.querySelector('[slot=\"title\"]');\n if (titleElement === null) {\n return \"\";\n }\n\n return titleElement.textContent.trim();\n }\n\n private get scrollParent(): Window | Element {\n const parent = this.hostElement.offsetParent;\n if (parent === document.body || parent === document.documentElement) {\n return window;\n }\n\n return parent;\n }\n\n private get canShowMenu(): boolean {\n return this.flow !== \"offcanvas\" && this.currentViewport !== \"mobile\" && !this.drawerOpen;\n }\n\n private get canShowSearchbar(): boolean {\n if (!this.enableSearch) {\n return false;\n }\n\n // Always show the searchbar on desktop, even if a searchPageUrl is set\n if (this.searchPageUrl) {\n return this.currentViewport === \"desktop\";\n }\n\n return true;\n }\n\n /**\n * Whether the header has a hero image, either as a prop or as a slot.\n */\n private get hasHero(): boolean {\n return !!this.hero || this.hostElement.querySelector(\"[slot=hero]\") !== null;\n }\n\n private openDrawer(): void {\n this.drawerOpen = true;\n }\n\n private closeDrawer(): void {\n this.drawerOpen = false;\n }\n\n private collectMenuElements(): void {\n const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot=\"menu\"]'));\n this.menuLength = menuElements.length;\n this.setMenuFloatingMode();\n }\n\n private enableStuckObserver(): void {\n if (this.observer) {\n this.observer.observe(this.container);\n }\n }\n\n private disableStuckMode(): void {\n this._stuck = false;\n if (this.observer) {\n this.observer.unobserve(this.container);\n }\n }\n\n @Watch(\"stuck\")\n onStuckMode(): void {\n if (this.stuck) {\n this.enableStuckObserver();\n } else {\n this.disableStuckMode();\n }\n }\n\n private renderSearchLinkButton(): HTMLZButtonElement | null {\n if (!this.enableSearch || !this.searchPageUrl || this.currentViewport === \"desktop\") {\n return null;\n }\n\n return (\n <z-button\n class=\"search-page-button\"\n variant={ButtonVariant.SECONDARY}\n href={this.searchPageUrl}\n icon=\"search\"\n size={ControlSize.X_SMALL}\n ></z-button>\n );\n }\n\n private renderSeachbar(searchButtonIconOnly: boolean): HTMLZSearchbarElement {\n return (\n <z-searchbar\n value={this.searchString}\n placeholder={this.searchPlaceholder}\n showSearchButton={true}\n searchButtonIconOnly={searchButtonIconOnly}\n size={ControlSize.X_SMALL}\n variant={ButtonVariant.SECONDARY}\n preventSubmit={this.searchString.length < 3}\n onSearchTyping={(e) => (this.searchString = e.detail)}\n />\n );\n }\n\n componentDidLoad(): void {\n this.collectMenuElements();\n this.onStuckMode();\n this.evaluateViewport();\n }\n\n render(): HTMLZAppHeaderElement {\n return (\n <Host menu-length={this.menuLength}>\n {this.hasHero && (\n <div class=\"hero-container\">\n <slot name=\"hero\">\n {this.hero && (\n <img\n alt=\"\"\n src={this.hero}\n />\n )}\n </slot>\n </div>\n )}\n\n <div\n class=\"heading-panel\"\n ref={(el) => (this.container = el)}\n >\n <div class=\"heading-container\">\n <div class=\"heading-subtitle\">\n <slot name=\"top-subtitle\"></slot>\n </div>\n <div class=\"heading-title\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <slot name=\"title\"></slot>\n\n {this.renderSearchLinkButton()}\n </div>\n\n <div class=\"heading-subtitle\">\n <slot name=\"subtitle\"></slot>\n </div>\n </div>\n\n {(this.canShowMenu || this.canShowSearchbar) && (\n <div class=\"menu-container\">\n {this.canShowMenu && (\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n )}\n\n {this.canShowSearchbar && this.renderSeachbar(this.currentViewport !== \"desktop\")}\n </div>\n )}\n </div>\n\n <z-offcanvas\n variant={OffCanvasVariant.OVERLAY}\n transitiondirection={TransitionDirection.RIGHT}\n open={this.drawerOpen}\n onCanvasOpenStatusChanged={(ev) => (this.drawerOpen = ev.detail)}\n >\n <button\n class=\"drawer-close\"\n aria-label=\"Chiudi menu\"\n onClick={this.closeDrawer}\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n disabled={!this.drawerOpen}\n >\n <z-icon name=\"close\"></z-icon>\n </button>\n\n <div\n class=\"drawer-content\"\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n >\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n </div>\n </z-offcanvas>\n\n {this._stuck && (\n <div class=\"heading-stuck\">\n <div class=\"heading-stuck-content\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <div class=\"heading-title\">\n <slot name=\"stucked-title\">{this.title}</slot>\n </div>\n\n {this.renderSearchLinkButton()}\n {this.canShowSearchbar && this.currentViewport === \"desktop\" && this.renderSeachbar(false)}\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"yHAAA,MAAMA,EAAY,4gRAClB,MAAAC,EAAeD,ECEf,MAAME,SAAuCC,uBAAyB,Y,MAkEzDC,EAAoB,MAyG/B,WAAAC,CAAAC,G,6CAXQC,KAAAC,SACNN,GACA,IAAIC,sBACF,EAAEM,MACAF,KAAKG,QAAUD,EAAME,cAAc,GAErC,CACEC,UAAW,K,WA7FT,M,iCAcE,M,UAS6B,O,gBAM1B,M,kBAME,M,uBAMK,Q,kBAML,G,yCAcE,M,qBAO0C,S,0BA8BzDL,KAAKM,WAAaN,KAAKM,WAAWC,KAAKP,MACvCA,KAAKQ,YAAcR,KAAKQ,YAAYD,KAAKP,MACzCA,KAAKS,oBAAsBT,KAAKS,oBAAoBF,KAAKP,K,CAI3D,gBAAAU,GACE,GAAIC,OAAOC,WAAa,IAAK,CAC3BZ,KAAKa,gBAAkB,Q,MAClB,GAAIF,OAAOC,YAAc,KAAOD,OAAOC,WAAa,KAAM,CAC/DZ,KAAKa,gBAAkB,Q,KAClB,CACLb,KAAKa,gBAAkB,S,EAK3B,OAAAC,GACE,MAAMC,EAAef,KAAKe,aAC1B,IAAKA,EAAc,CACjB,M,CAGFf,KAAKgB,SAASC,KAAKjB,KAAKG,O,CAI1B,mBAAAe,GACE,GAAIlB,KAAKmB,aAAaC,SAAW,EAAG,CAClC,M,CAGF,MAAMC,EAAWrB,KAAKmB,aACtBE,EAASC,SAASC,IACfA,EAAuCC,KAAO,MAC9CD,EAAuCE,UAAYzB,KAAK0B,WACxDH,EAAuCI,gBAAkB3B,KAAK0B,UAAU,G,CAI7E,SAAYE,GACV,MAAMC,EAAe7B,KAAK8B,YAAYC,cAAc,kBACpD,GAAIF,IAAiB,KAAM,CACzB,MAAO,E,CAGT,OAAOA,EAAaG,YAAYC,M,CAGlC,gBAAYlB,GACV,MAAMmB,EAASlC,KAAK8B,YAAYK,aAChC,GAAID,IAAWE,SAASC,MAAQH,IAAWE,SAASE,gBAAiB,CACnE,OAAO3B,M,CAGT,OAAOuB,C,CAGT,eAAYK,GACV,OAAOvC,KAAKwC,OAAS,aAAexC,KAAKa,kBAAoB,WAAab,KAAK0B,U,CAGjF,oBAAYe,GACV,IAAKzC,KAAK0C,aAAc,CACtB,OAAO,K,CAIT,GAAI1C,KAAK2C,cAAe,CACtB,OAAO3C,KAAKa,kBAAoB,S,CAGlC,OAAO,I,CAMT,WAAY+B,GACV,QAAS5C,KAAK6C,MAAQ7C,KAAK8B,YAAYC,cAAc,iBAAmB,I,CAGlE,UAAAzB,GACNN,KAAK0B,WAAa,I,CAGZ,WAAAlB,GACNR,KAAK0B,WAAa,K,CAGZ,mBAAAjB,GACN,MAAMU,EAAgBnB,KAAKmB,aAAenB,KAAK8B,YAAYgB,iBAAiB,iBAC5E9C,KAAK+C,WAAa5B,EAAaC,OAC/BpB,KAAKkB,qB,CAGC,mBAAA8B,GACN,GAAIhD,KAAKC,SAAU,CACjBD,KAAKC,SAASgD,QAAQjD,KAAKkD,U,EAIvB,gBAAAC,GACNnD,KAAKG,OAAS,MACd,GAAIH,KAAKC,SAAU,CACjBD,KAAKC,SAASmD,UAAUpD,KAAKkD,U,EAKjC,WAAAG,GACE,GAAIrD,KAAKsD,MAAO,CACdtD,KAAKgD,qB,KACA,CACLhD,KAAKmD,kB,EAID,sBAAAI,GACN,IAAKvD,KAAK0C,eAAiB1C,KAAK2C,eAAiB3C,KAAKa,kBAAoB,UAAW,CACnF,OAAO,I,CAGT,OACE2C,EAAA,YACEC,MAAM,qBACNC,QAASC,EAAcC,UACvBC,KAAM7D,KAAK2C,cACXmB,KAAK,SACLC,KAAMC,EAAYC,S,CAKhB,cAAAC,CAAeC,GACrB,OACEX,EAAA,eACEY,MAAOpE,KAAKqE,aACZC,YAAatE,KAAKuE,kBAClBC,iBAAkB,KAClBL,qBAAsBA,EACtBJ,KAAMC,EAAYC,QAClBP,QAASC,EAAcC,UACvBa,cAAezE,KAAKqE,aAAajD,OAAS,EAC1CsD,eAAiBC,GAAO3E,KAAKqE,aAAeM,EAAEC,Q,CAKpD,gBAAAC,GACE7E,KAAKS,sBACLT,KAAKqD,cACLrD,KAAKU,kB,CAGP,MAAAoE,GACE,OACEtB,EAACuB,EAAI,CAAAC,IAAA,yDAAchF,KAAK+C,YACrB/C,KAAK4C,SACJY,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,kBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,QACRjF,KAAK6C,MACJW,EAAA,OAAAwB,IAAA,2CACEE,IAAI,GACJC,IAAKnF,KAAK6C,SAOpBW,EAAA,OAAAwB,IAAA,2CACEvB,MAAM,gBACN2B,IAAMC,GAAQrF,KAAKkD,UAAYmC,GAE/B7B,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,qBACTD,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,oBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,kBAEbzB,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,iBACRzD,KAAK+C,WAAa,GACjBS,EAAA,UAAAwB,IAAA,2CACEvB,MAAM,iBAAgB,aACX,YACX6B,QAAStF,KAAKM,YAEdkD,EAAA,UAAAwB,IAAA,2CAAQC,KAAK,iBAIjBzB,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,UAEVjF,KAAKuD,0BAGRC,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,oBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,gBAIbjF,KAAKuC,aAAevC,KAAKyC,mBACzBe,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,kBACRzD,KAAKuC,aACJiB,EAAA,QAAAwB,IAAA,2CACEC,KAAK,OACLM,aAAcvF,KAAKS,sBAItBT,KAAKyC,kBAAoBzC,KAAKkE,eAAelE,KAAKa,kBAAoB,aAK7E2C,EAAA,eAAAwB,IAAA,2CACEtB,QAAS8B,EAAiBC,QAC1BC,oBAAqBC,EAAoBC,MACzCpE,KAAMxB,KAAK0B,WACXmE,0BAA4BC,GAAQ9F,KAAK0B,WAAaoE,EAAGlB,QAEzDpB,EAAA,UAAAwB,IAAA,2CACEvB,MAAM,eAAc,aACT,cACX6B,QAAStF,KAAKQ,YACduF,KAAK,gBAAe,cACP,IAAI/F,KAAK0B,aACtBsE,UAAWhG,KAAK0B,YAEhB8B,EAAA,UAAAwB,IAAA,2CAAQC,KAAK,WAGfzB,EAAA,OAAAwB,IAAA,2CACEvB,MAAM,iBACNsC,KAAK,gBAAe,cACP,IAAI/F,KAAK0B,cAEtB8B,EAAA,QAAAwB,IAAA,2CACEC,KAAK,OACLM,aAAcvF,KAAKS,wBAKxBT,KAAKG,QACJqD,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,iBACTD,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,yBACRzD,KAAK+C,WAAa,GACjBS,EAAA,UAAAwB,IAAA,2CACEvB,MAAM,iBAAgB,aACX,YACX6B,QAAStF,KAAKM,YAEdkD,EAAA,UAAAwB,IAAA,2CAAQC,KAAK,iBAIjBzB,EAAA,OAAAwB,IAAA,2CAAKvB,MAAM,iBACTD,EAAA,QAAAwB,IAAA,2CAAMC,KAAK,iBAAiBjF,KAAK4B,QAGlC5B,KAAKuD,yBACLvD,KAAKyC,kBAAoBzC,KAAKa,kBAAoB,WAAab,KAAKkE,eAAe,S","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as e,h as n,a as o,g as s}from"./p-75c4a726.js";import{P as i,S as a,B as r,e as c}from"./p-6037cdf3.js";const h=':host{position:relative;display:flex;min-width:128px;box-sizing:border-box;align-items:center;padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([show-menu])::after{display:inline-block;height:100%;margin-right:calc(var(--space-unit) * 4);background:transparent;content:"";user-select:none}.cell--menu-container{position:absolute;z-index:1;top:var(--space-unit);right:var(--space-unit)}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{opacity:1;pointer-events:all}:host .cell-popover{z-index:100}@media (min-width: 768px) and (hover: hover){:host([show-menu="hover"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu="hover"]:hover) .cell--menu-container{opacity:1;pointer-events:all}}:host{background-color:var(--color-surface02);font-weight:var(--font-sb)}:host([sortable]){cursor:pointer}.z-th--sort-button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin-top:auto;background-color:transparent;cursor:pointer}.z-th--sort-button:focus{box-shadow:var(--shadow-focus-primary);outline:none}';const d=h;const l=class{constructor(n){t(this,n);this.sort=e(this,"sort",7);this.colspan=undefined;this.showMenu=null;this.sticky=false;this.sortDirection=undefined;this.popoverPosition=i.AUTO;this.isMenuOpen=false}get ariaSortDirection(){if(!this.sortDirection){return null}return this.sortDirection===a.ASC?"ascending":"descending"}handleSort(){if(!this.sortDirection){return}this.sortDirection=this.sortDirection===a.ASC?a.DESC:a.ASC;this.sort.emit({sortDirection:this.sortDirection})}updateColspan(){if(this.colspan){this.host.style.gridColumn=`span ${this.colspan}`}else{this.host.style.removeProperty("grid-column")}}componentWillLoad(){this.updateColspan()}render(){return n(o,{key:"222509e3075cd7a6668301f8b54cebd3af7bd843",role:"columnheader","menu-open":this.isMenuOpen,"aria-sort":this.ariaSortDirection},n("slot",{key:"728dffd6851b3b9f6647a136c0d84d0da10c894b"}),this.sortDirection&&n("button",{key:"a75b468b0057f404fdfcafd77cf63f10999f274a",class:"z-th--sort-button",type:"button",onClick:this.handleSort.bind(this)},n("z-icon",{key:"9d4ac199ba40228afd8b4ac087effde4ae37f55b",name:this.sortDirection===a.ASC?"arrow-simple-up":"arrow-simple-down",width:14,height:14})),this.showMenu&&n("div",{key:"4769a6dfa1e6222448b1d409746dbe1f6420cc5d",class:"cell--menu-container"},n("z-button",{key:"90951859a7fdcaddec8769e95d8a65de5c7e5ff7",variant:r.TERTIARY,icon:"contextual-menu",size:c.X_SMALL,ref:t=>this.menuTrigger=t,onClick:()=>this.popoverEl.open=!this.popoverEl.open}),n("z-popover",{key:"3066d766feab4b810d41b78a5f3801cbffa5688d",ref:t=>this.popoverEl=t,bindTo:this.menuTrigger,onOpenChange:t=>this.isMenuOpen=t.detail.open,position:this.popoverPosition},n("slot",{key:"9bf90081ba6d5c82cdd9c69f0dd536bda756b8af",name:"contextual-menu"}))))}get host(){return s(this)}static get watchers(){return{colspan:["updateColspan"]}}};l.style=d;export{l as Z};
2
+ //# sourceMappingURL=p-60f410df.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZThStyle0","ZTh","PopoverPosition","AUTO","ariaSortDirection","this","sortDirection","SortDirection","ASC","handleSort","DESC","sort","emit","updateColspan","colspan","host","style","gridColumn","removeProperty","componentWillLoad","render","h","Host","key","role","isMenuOpen","class","type","onClick","bind","name","width","height","showMenu","variant","ButtonVariant","TERTIARY","icon","size","ControlSize","X_SMALL","ref","el","menuTrigger","popoverEl","open","bindTo","onOpenChange","event","detail","position","popoverPosition"],"sources":["src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n\n:host {\n background-color: var(--color-surface02);\n font-weight: var(--font-sb);\n}\n\n/* :host([sticky]) {\n background-color: var(--color-surface02);\n} */\n\n:host([sortable]) {\n cursor: pointer;\n}\n\n.z-th--sort-button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin-top: auto;\n background-color: transparent;\n cursor: pointer;\n}\n\n.z-th--sort-button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, SortDirection, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTh component.\n * @slot - ZTh content.\n * @slot contextual-menu - Contextual menu content. Only visible when `showMenu` is true.\n */\n@Component({\n tag: \"z-th\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTh {\n @Element() host: HTMLZThElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Current sorting direction.\n * Set `SortDirection.ASC` or `SortDirection.DESC` to show the sort icon.\n */\n @Prop({mutable: true})\n sortDirection?: SortDirection;\n\n /**\n * Set popover position.\n */\n @Prop()\n popoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n /**\n * Sort event fired when the user clicks on the sort button.\n * The sorting logic must be implemented by the app.\n * You can set an `id` on the `z-th` to easly identify the column in the event listener.\n */\n @Event()\n private sort: EventEmitter;\n\n private menuTrigger: HTMLElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Get the value to set to the `aria-sort` attribute based on the current sort direction.\n */\n private get ariaSortDirection(): string {\n if (!this.sortDirection) {\n return null;\n }\n\n return this.sortDirection === SortDirection.ASC ? \"ascending\" : \"descending\";\n }\n\n /**\n * Handle the click on the sort button.\n * @fires sort\n */\n private handleSort(): void {\n if (!this.sortDirection) {\n return;\n }\n\n this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;\n this.sort.emit({\n sortDirection: this.sortDirection,\n });\n }\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZThElement {\n return (\n <Host\n role=\"columnheader\"\n menu-open={this.isMenuOpen}\n aria-sort={this.ariaSortDirection}\n >\n <slot></slot>\n {this.sortDirection && (\n <button\n class=\"z-th--sort-button\"\n type=\"button\"\n onClick={this.handleSort.bind(this)}\n >\n <z-icon\n name={this.sortDirection === SortDirection.ASC ? \"arrow-simple-up\" : \"arrow-simple-down\"}\n width={14}\n height={14}\n />\n </button>\n )}\n {this.showMenu && (\n <div class=\"cell--menu-container\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLElement)}\n onClick={() => (this.popoverEl.open = !this.popoverEl.open)}\n />\n <z-popover\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"yHAAA,MAAMA,EAAY,83CAClB,MAAAC,EAAeD,E,MCYFE,EAAG,M,yFAekB,K,YAMvB,M,kDAaSC,EAAgBC,K,gBAMrB,K,CAiBb,qBAAYC,GACV,IAAKC,KAAKC,cAAe,CACvB,OAAO,I,CAGT,OAAOD,KAAKC,gBAAkBC,EAAcC,IAAM,YAAc,Y,CAO1D,UAAAC,GACN,IAAKJ,KAAKC,cAAe,CACvB,M,CAGFD,KAAKC,cAAgBD,KAAKC,gBAAkBC,EAAcC,IAAMD,EAAcG,KAAOH,EAAcC,IACnGH,KAAKM,KAAKC,KAAK,CACbN,cAAeD,KAAKC,e,CAKd,aAAAO,GACR,GAAIR,KAAKS,QAAS,CAChBT,KAAKU,KAAKC,MAAMC,WAAa,QAAQZ,KAAKS,S,KACrC,CACLT,KAAKU,KAAKC,MAAME,eAAe,c,EAInC,iBAAAC,GACEd,KAAKQ,e,CAGP,MAAAO,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,eAAc,YACRnB,KAAKoB,WAAU,YACfpB,KAAKD,mBAEhBiB,EAAA,QAAAE,IAAA,6CACClB,KAAKC,eACJe,EAAA,UAAAE,IAAA,2CACEG,MAAM,oBACNC,KAAK,SACLC,QAASvB,KAAKI,WAAWoB,KAAKxB,OAE9BgB,EAAA,UAAAE,IAAA,2CACEO,KAAMzB,KAAKC,gBAAkBC,EAAcC,IAAM,kBAAoB,oBACrEuB,MAAO,GACPC,OAAQ,MAIb3B,KAAK4B,UACJZ,EAAA,OAAAE,IAAA,2CAAKG,MAAM,wBACTL,EAAA,YAAAE,IAAA,2CACEW,QAASC,EAAcC,SACvBC,KAAK,kBACLC,KAAMC,EAAYC,QAClBC,IAAMC,GAAQrC,KAAKsC,YAAcD,EACjCd,QAAS,IAAOvB,KAAKuC,UAAUC,MAAQxC,KAAKuC,UAAUC,OAExDxB,EAAA,aAAAE,IAAA,2CACEkB,IAAMC,GAAQrC,KAAKuC,UAAYF,EAC/BI,OAAQzC,KAAKsC,YACbI,aAAeC,GAAW3C,KAAKoB,WAAauB,EAAMC,OAAOJ,KACzDK,SAAU7C,KAAK8C,iBAEf9B,EAAA,QAAAE,IAAA,2CAAMO,KAAK,sB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export{Z as z_thead}from"./p-95cb8701.js";import"./p-75c4a726.js";
2
+ //# sourceMappingURL=p-63ec7bad.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as i,h as s,a as t,g as o}from"./p-75c4a726.js";import{w as a,P as n}from"./p-6037cdf3.js";import{B as c}from"./p-5145a606.js";const l=".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";const r=l;const f=class{constructor(s){e(this,s);this.removeFile=i(this,"removeFile",7);this.fileNumber=undefined;this.fileName=undefined;this.allowPopover=false;this.popoverVisible=false}removeFileHandler(){this.removeFile.emit({fileName:this.fileName});this.el.remove()}onMouseOver(){this.popoverVisible=true}onMouseLeave(){this.popoverVisible=false}onInteractiveIconClick(){this.removeFileHandler()}componentDidLoad(){var e,i;if(this.elementHasEllipsis()&&window.innerWidth>c.TABLET){this.allowPopover=true}(i=(e=this.icon)===null||e===void 0?void 0:e.focus)===null||i===void 0?void 0:i.call(e)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}render(){return s(t,{key:"0d6f3522b4d6be820d8b96a3cd96fc4abb38d41c"},this.allowPopover&&s("z-popover",{key:"da950fcf5b1be6fc291895aeb0e2223275cab8fa",open:this.popoverVisible,position:n.AUTO,bindTo:this.chip},s("span",{key:"54363fac4eb3b6a723c7841bb29415b0bd763e9a",class:"body-5 tooltip-content"},this.ellipsis.innerText)),s("z-chip",{key:"2842d206ffa531c93838e885ba545176554dd7e3",ref:e=>this.chip=e,id:`chip-${this.fileNumber}`,interactiveIcon:"multiply-circled",type:a.DEFAULT},s("span",{key:"e6d0322525bf9ae3d2d09d4110a5414c25ab211b",ref:e=>this.ellipsis=e,tabIndex:-1},this.fileName)))}get el(){return o(this)}};f.style=r;export{f as z_file};
2
+ //# sourceMappingURL=p-64364cbf.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZFileStyle0","ZFile","removeFileHandler","this","removeFile","emit","fileName","el","remove","onMouseOver","popoverVisible","onMouseLeave","onInteractiveIconClick","componentDidLoad","elementHasEllipsis","window","innerWidth","Breakpoints","TABLET","allowPopover","_b","_a","icon","focus","call","ellipsis","offsetWidth","scrollWidth","render","h","Host","key","open","position","PopoverPosition","AUTO","bindTo","chip","class","innerText","ref","id","fileNumber","interactiveIcon","type","ZChipType","DEFAULT","tabIndex"],"sources":["src/components/file-upload/z-file/styles.css?tag=z-file&encapsulation=scoped","src/components/file-upload/z-file/index.tsx"],"sourcesContent":[":host {\n position: relative;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-popover {\n z-index: 10;\n}\n\n:host > z-popover > .tooltip-content {\n white-space: nowrap;\n}\n\n:host > z-chip span {\n display: block;\n overflow: hidden;\n max-width: 250px;\n letter-spacing: 0.32px;\n line-height: 1.33;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, h} from \"@stencil/core\";\nimport {PopoverPosition, ZChipType} from \"../../../beans\";\nimport {Breakpoints} from \"../../../constants/breakpoints\";\n\n@Component({\n tag: \"z-file\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZFile {\n private icon: HTMLElement;\n\n private ellipsis?: HTMLSpanElement;\n\n private chip?: HTMLZChipElement;\n\n /** File chip id */\n @Prop()\n fileNumber: number;\n\n /** File name */\n @Prop()\n fileName: string;\n\n @State()\n allowPopover = false;\n\n @State()\n popoverVisible = false;\n\n @Element() el: HTMLZFileElement;\n\n /** Emitted when a z-file component is removed from the DOM */\n @Event()\n removeFile: EventEmitter;\n\n private removeFileHandler(): void {\n this.removeFile.emit({fileName: this.fileName});\n this.el.remove();\n }\n\n @Listen(\"mouseover\")\n onMouseOver(): void {\n this.popoverVisible = true;\n }\n\n @Listen(\"mouseleave\")\n onMouseLeave(): void {\n this.popoverVisible = false;\n }\n\n @Listen(\"interactiveIconClick\")\n onInteractiveIconClick(): void {\n this.removeFileHandler();\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis() && window.innerWidth > Breakpoints.TABLET) {\n this.allowPopover = true;\n }\n\n this.icon?.focus?.();\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n render(): HTMLZFileElement {\n return (\n <Host>\n {this.allowPopover && (\n <z-popover\n open={this.popoverVisible}\n position={PopoverPosition.AUTO}\n bindTo={this.chip}\n >\n <span class=\"body-5 tooltip-content\">{this.ellipsis.innerText}</span>\n </z-popover>\n )}\n <z-chip\n ref={(el) => (this.chip = el as HTMLZChipElement)}\n id={`chip-${this.fileNumber}`}\n interactiveIcon=\"multiply-circled\"\n type={ZChipType.DEFAULT}\n >\n <span\n ref={(el) => (this.ellipsis = el as HTMLSpanElement)}\n tabIndex={-1}\n >\n {this.fileName}\n </span>\n </z-chip>\n </Host>\n );\n }\n}\n"],"mappings":"+IAAA,MAAMA,EAAY,wYAClB,MAAAC,EAAeD,E,MCSFE,EAAK,M,oIAgBD,M,oBAGE,K,CAQT,iBAAAC,GACNC,KAAKC,WAAWC,KAAK,CAACC,SAAUH,KAAKG,WACrCH,KAAKI,GAAGC,Q,CAIV,WAAAC,GACEN,KAAKO,eAAiB,I,CAIxB,YAAAC,GACER,KAAKO,eAAiB,K,CAIxB,sBAAAE,GACET,KAAKD,mB,CAGP,gBAAAW,G,QACE,GAAIV,KAAKW,sBAAwBC,OAAOC,WAAaC,EAAYC,OAAQ,CACvEf,KAAKgB,aAAe,I,EAGtBC,GAAAC,EAAAlB,KAAKmB,QAAI,MAAAD,SAAA,SAAAA,EAAEE,SAAK,MAAAH,SAAA,SAAAA,EAAAI,KAAAH,E,CAGV,kBAAAP,GACN,OAAOX,KAAKsB,SAASC,YAAcvB,KAAKsB,SAASE,W,CAGnD,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACF5B,KAAKgB,cACJU,EAAA,aAAAE,IAAA,2CACEC,KAAM7B,KAAKO,eACXuB,SAAUC,EAAgBC,KAC1BC,OAAQjC,KAAKkC,MAEbR,EAAA,QAAAE,IAAA,2CAAMO,MAAM,0BAA0BnC,KAAKsB,SAASc,YAGxDV,EAAA,UAAAE,IAAA,2CACES,IAAMjC,GAAQJ,KAAKkC,KAAO9B,EAC1BkC,GAAI,QAAQtC,KAAKuC,aACjBC,gBAAgB,mBAChBC,KAAMC,EAAUC,SAEhBjB,EAAA,QAAAE,IAAA,2CACES,IAAMjC,GAAQJ,KAAKsB,SAAWlB,EAC9BwC,UAAW,GAEV5C,KAAKG,W","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,a as s}from"./p-75c4a726.js";const a=":host{display:block;box-sizing:border-box}";const c=a;const e=class{constructor(r){o(this,r)}render(){return r(s,{key:"f3e13d724ae83c0117eafa2bd141a1b9319f0331",role:"rowgroup"},r("slot",{key:"f84d2b79230cb6b8305c0b01f4a48f8811634421"}))}};e.style=c;export{e as Z};
2
+ //# sourceMappingURL=p-64aab82f.js.map
@@ -0,0 +1,2 @@
1
+ import{g as e,p as t}from"./p-6037cdf3.js";import{B as n}from"./p-5145a606.js";function r(e){switch(e){case true:case"true":case 1:case"1":case"on":case"yes":return true;case false:case"false":case 0:case"0":case"off":case"no":return false;default:return e}}function a(){return Math.random().toString(36).replace("0.","")}function s(t,n,...r){if(t.code===e.ENTER||t.code===e.SPACE){t.preventDefault();n(...r)}}function u(t,n,...r){if(t.code===e.ENTER){t.preventDefault();n(...r)}}function c(e=null){if(!e){e=document.activeElement}if(e&&e.shadowRoot&&e.shadowRoot.activeElement){e=e.shadowRoot.activeElement;return c(e)}return e}function f(e,t=[]){t.push(e);if(e.parentElement){e=e.parentElement;return f(e,t)}else if(e.parentNode&&e.parentNode.host){e=e.parentNode.host;return f(e,t)}return t}function o(){switch(true){case window.innerWidth<=n.MOBILE:return t.MOBILE;case window.innerWidth<=n.TABLET:return t.TABLET;case window.innerWidth<=n.DESKTOP:return t.DESKTOP;default:return t.DESKTOP_WIDE}}function i(e){try{return JSON.parse(e)}catch(e){return false}}function l(e){const t="avatar-C";const n=19;const r=Math.ceil(2**31-1)*parseFloat(`0.${e}`);let a=Math.ceil(n*(r%1));if(a===0){a=1}return`${t}${a.toString().padStart(2,"0")}`}function d(e,t){var n;return e.contains(t)||!!((n=e.shadowRoot)===null||n===void 0?void 0:n.contains(t))}export{d as a,r as b,l as c,s as d,f as e,c as f,o as g,u as h,i,a as r};
2
+ //# sourceMappingURL=p-67e5e8ed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["boolean","value","randomId","Math","random","toString","replace","handleKeyboardSubmit","ev","callback","args","code","KeyboardCode","ENTER","SPACE","preventDefault","handleEnterKeydSubmit","getClickedElement","elem","document","activeElement","shadowRoot","getElementTree","tree","push","parentElement","parentNode","host","getDevice","window","innerWidth","Breakpoints","MOBILE","Device","TABLET","DESKTOP","DESKTOP_WIDE","convertJson","data","JSON","parse","_a","colorFromId","id","prefix","colorsCount","seed","ceil","parseFloat","color","padStart","containsElement","ancestor","descendant","contains"],"sources":["src/utils/utils.ts"],"sourcesContent":["import {ChildNode} from \"@stencil/core\";\nimport {Device, KeyboardCode} from \"../beans/index\";\nimport {Breakpoints} from \"../constants/breakpoints\";\n\n/**\n * Return boolean value for passed value if a boolean corresponding value is found\n * Return passed value otherwise\n */\nexport function boolean(value: string | number | boolean): boolean | string | number {\n switch (value) {\n case true:\n case \"true\":\n case 1:\n case \"1\":\n case \"on\":\n case \"yes\":\n return true;\n case false:\n case \"false\":\n case 0:\n case \"0\":\n case \"off\":\n case \"no\":\n return false;\n default:\n return value;\n }\n}\n\nexport function retrieveAsset(assetName: string): string {\n return assetName && \"assets/images/png/\" + assetName;\n}\n\nexport function randomId(): string {\n return Math.random().toString(36).replace(\"0.\", \"\");\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function handleKeyboardSubmit(ev: KeyboardEvent, callback: (...args) => void, ...args: any[]): void {\n if (ev.code === KeyboardCode.ENTER || ev.code === KeyboardCode.SPACE) {\n ev.preventDefault();\n callback(...args);\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function handleEnterKeydSubmit(ev: KeyboardEvent, callback: (...args) => void, ...args: any[]): void {\n if (ev.code === KeyboardCode.ENTER) {\n ev.preventDefault();\n callback(...args);\n }\n}\n\nexport function getClickedElement(elem: null | Element = null): null | Element {\n if (!elem) {\n elem = document.activeElement;\n }\n\n if (elem && elem.shadowRoot && elem.shadowRoot.activeElement) {\n elem = elem.shadowRoot.activeElement;\n\n return getClickedElement(elem);\n }\n\n return elem;\n}\n\nexport function getElementTree(elem: Element, tree: Element[] = []): null | Element[] {\n tree.push(elem);\n\n if (elem.parentElement) {\n elem = elem.parentElement;\n\n return getElementTree(elem, tree);\n } else if (elem.parentNode && (elem.parentNode as ShadowRoot).host) {\n elem = (elem.parentNode as ShadowRoot).host;\n\n return getElementTree(elem, tree);\n }\n\n return tree;\n}\n\nexport function getSiblings(elem: HTMLElement): ChildNode[] {\n const siblings = [];\n if (!elem || !elem.parentNode || !elem.parentNode.childNodes) {\n return siblings;\n }\n\n elem.parentNode.childNodes.forEach((child) => {\n if (child.nodeType === 1 && child !== elem) {\n siblings.push(child);\n }\n });\n\n return siblings;\n}\n\n/**\n * Get the current device type based on the window width.\n * @returns {Device} - The current device type\n */\nexport function getDevice(): Device {\n switch (true) {\n case window.innerWidth <= Breakpoints.MOBILE:\n return Device.MOBILE;\n case window.innerWidth <= Breakpoints.TABLET:\n return Device.TABLET;\n case window.innerWidth <= Breakpoints.DESKTOP:\n return Device.DESKTOP;\n default:\n return Device.DESKTOP_WIDE;\n }\n}\n\ntype JSONValue = string | number | boolean | JSONObject | JSONArray;\ninterface JSONObject {\n [x: string]: JSONValue;\n}\ntype JSONArray = JSONValue[];\n\nexport function convertJson(data: string): JSONValue {\n try {\n return JSON.parse(data);\n } catch {\n return false;\n }\n}\n\nexport function colorFromId(id: number): string {\n const prefix = \"avatar-C\"; // prefix for color vars name\n const colorsCount = 19; // available colors\n const seed = Math.ceil(2 ** 31 - 1) * parseFloat(`0.${id}`);\n let color = Math.ceil(colorsCount * (seed % 1));\n\n // if result of mc is 0\n // es.: 3895229\n if (color === 0) {\n color = 1;\n }\n\n return `${prefix}${color.toString().padStart(2, \"0\")}`;\n}\n\n/**\n * Check if the passed CSS selector is valid.\n * @param selector CSS selector to validate\n */\nexport function isSelectorValid(selector: string): boolean {\n try {\n document.createDocumentFragment().querySelector(selector);\n\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Check if an element contains another element, checking both light and shadow DOM.\n * @param ancestor Ancestor element\n * @param descendant Descendant element\n */\nexport function containsElement(ancestor: HTMLElement, descendant: Node): boolean {\n return ancestor.contains(descendant) || !!ancestor.shadowRoot?.contains(descendant);\n}\n"],"mappings":"wFAQgBA,EAAQC,GACtB,OAAQA,GACN,KAAK,KACL,IAAK,OACL,KAAK,EACL,IAAK,IACL,IAAK,KACL,IAAK,MACH,OAAO,KACT,KAAK,MACL,IAAK,QACL,KAAK,EACL,IAAK,IACL,IAAK,MACL,IAAK,KACH,OAAO,MACT,QACE,OAAOA,EAEb,C,SAMgBC,IACd,OAAOC,KAAKC,SAASC,SAAS,IAAIC,QAAQ,KAAM,GAClD,C,SAGgBC,EAAqBC,EAAmBC,KAAgCC,GACtF,GAAIF,EAAGG,OAASC,EAAaC,OAASL,EAAGG,OAASC,EAAaE,MAAO,CACpEN,EAAGO,iBACHN,KAAYC,E,CAEhB,C,SAGgBM,EAAsBR,EAAmBC,KAAgCC,GACvF,GAAIF,EAAGG,OAASC,EAAaC,MAAO,CAClCL,EAAGO,iBACHN,KAAYC,E,CAEhB,C,SAEgBO,EAAkBC,EAAuB,MACvD,IAAKA,EAAM,CACTA,EAAOC,SAASC,a,CAGlB,GAAIF,GAAQA,EAAKG,YAAcH,EAAKG,WAAWD,cAAe,CAC5DF,EAAOA,EAAKG,WAAWD,cAEvB,OAAOH,EAAkBC,E,CAG3B,OAAOA,CACT,C,SAEgBI,EAAeJ,EAAeK,EAAkB,IAC9DA,EAAKC,KAAKN,GAEV,GAAIA,EAAKO,cAAe,CACtBP,EAAOA,EAAKO,cAEZ,OAAOH,EAAeJ,EAAMK,E,MACvB,GAAIL,EAAKQ,YAAeR,EAAKQ,WAA0BC,KAAM,CAClET,EAAQA,EAAKQ,WAA0BC,KAEvC,OAAOL,EAAeJ,EAAMK,E,CAG9B,OAAOA,CACT,C,SAqBgBK,IACd,OAAQ,MACN,KAAKC,OAAOC,YAAcC,EAAYC,OACpC,OAAOC,EAAOD,OAChB,KAAKH,OAAOC,YAAcC,EAAYG,OACpC,OAAOD,EAAOC,OAChB,KAAKL,OAAOC,YAAcC,EAAYI,QACpC,OAAOF,EAAOE,QAChB,QACE,OAAOF,EAAOG,aAEpB,C,SAQgBC,EAAYC,GAC1B,IACE,OAAOC,KAAKC,MAAMF,E,CAClB,MAAAG,GACA,OAAO,K,CAEX,C,SAEgBC,EAAYC,GAC1B,MAAMC,EAAS,WACf,MAAMC,EAAc,GACpB,MAAMC,EAAO3C,KAAK4C,KAAK,GAAK,GAAK,GAAKC,WAAW,KAAKL,KACtD,IAAIM,EAAQ9C,KAAK4C,KAAKF,GAAeC,EAAO,IAI5C,GAAIG,IAAU,EAAG,CACfA,EAAQ,C,CAGV,MAAO,GAAGL,IAASK,EAAM5C,WAAW6C,SAAS,EAAG,MAClD,C,SAqBgBC,EAAgBC,EAAuBC,G,MACrD,OAAOD,EAASE,SAASD,QAAiBZ,EAAAW,EAAS/B,cAAU,MAAAoB,SAAA,SAAAA,EAAEa,SAASD,GAC1E,Q","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c,h as t,a as s}from"./p-75c4a726.js";import{k as i}from"./p-6037cdf3.js";import{r as a}from"./p-67e5e8ed.js";import"./p-5145a606.js";const l='.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}';const o=l;const r=class{constructor(t){e(this,t);this.toggleClick=c(this,"toggleClick",7);this.disabled=false;this.labelPosition=i.LEFT;this.checked=false;this.htmlid=`toggle-switch-id-${a()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){if(this.disabled){return}this.checked=e.target.checked;this.emitToggleClick()}render(){return t(s,{key:"17bcfee6b1fcfcd715d5d2e8686d5227dc3b16cd"},t("input",{key:"682e25a434a34c9e814103e30cc42cf769f74953",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),t("label",{key:"e0fb9679dded13e315aefaaf6c105e124a46c967",htmlFor:this.htmlid,class:{[this.labelPosition]:true,disabled:this.disabled}},t("span",{key:"9a5ff289a9e7faa3d1354ca8522833415fcdb517"},t("slot",{key:"cae4d0ba661998799cc549ef5c21398175aa8d0f"})),t("span",{key:"8f27fe985dec52b128c6635a0502fd76417f202d",class:{container:true,disabled:this.disabled,checked:this.checked}},t("span",{key:"a68c0fe55df17f133325eb51a2efbd757842eb97",class:"circle"},this.checked&&t("z-icon",{key:"6e7168d8c6c88771a20381e31b995bc2ebcd89cd",width:12,height:12,name:"checkmark"})))))}};r.style=o;export{r as z_toggle_switch};
2
+ //# sourceMappingURL=p-68f4fbc8.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["stylesCss","ZToggleSwitchStyle0","ZToggleSwitch","LabelPosition","LEFT","randomId","emitToggleClick","this","toggleClick","emit","id","htmlid","checked","handleClick","ev","disabled","target","render","h","Host","key","type","onChange","bind","htmlFor","class","labelPosition","container","width","height","name"],"sources":["src/components/z-toggle-switch/styles.css?tag=z-toggle-switch&encapsulation=scoped","src/components/z-toggle-switch/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: inline-flex;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\nlabel {\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n}\n\nlabel.disabled {\n cursor: default;\n}\n\nlabel.right {\n flex-direction: row-reverse;\n}\n\nlabel > span:first-child {\n color: var(--color-default-text);\n letter-spacing: 0;\n}\n\nlabel.left > span:first-child {\n margin-right: var(--space-unit);\n}\n\nlabel.right > span:first-child {\n margin-left: var(--space-unit);\n}\n\nlabel > span.container {\n position: relative;\n top: 1px;\n left: 1px;\n display: flex;\n width: calc(var(--space-unit) * 4);\n height: 18px;\n align-items: center;\n background-color: var(--gray500);\n border-radius: var(--space-unit);\n color: var(--gray500);\n cursor: pointer;\n}\n\nlabel > span.container.disabled,\nlabel > span.container.checked.disabled {\n background-color: var(--color-disabled01);\n cursor: default;\n}\n\nlabel > span.container.checked.disabled > span.circle > z-icon {\n fill: var(--color-disabled01);\n}\n\nlabel > span.container.checked {\n background-color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n\ninput:focus:focus-visible + label > span.container:not(.disabled) {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\ninput:focus:focus-visible + label > span.container.disabled {\n outline: none;\n}\n\nlabel > span.container:not(.disabled):hover {\n background-color: var(--color-hover-primary);\n fill: var(--color-hover-primary);\n}\n\nlabel > span.container > span.circle {\n position: absolute;\n top: 1px;\n left: 1px;\n display: flex;\n width: calc(var(--space-unit) * 2);\n height: calc(var(--space-unit) * 2);\n align-items: center;\n justify-content: center;\n margin: 0;\n background-color: var(--color-white);\n border-radius: 7px;\n box-shadow: var(--shadow-1);\n transition: transform 0.3s ease;\n}\n\nlabel > span.container.checked > span.circle {\n transform: translateX(calc(100% - 2px));\n}\n\ninput[type=\"checkbox\"] {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none;\n}\n","import {Component, Event, EventEmitter, Host, Prop, h} from \"@stencil/core\";\nimport {LabelPosition} from \"../../beans\";\nimport {randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-toggle-switch\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZToggleSwitch {\n /** Disabled flag */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** Label position */\n @Prop({reflect: true})\n labelPosition? = LabelPosition.LEFT;\n\n /** Checked state */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** HTML id attribute to set to the internal checkbox */\n @Prop()\n htmlid = `toggle-switch-id-${randomId()}`;\n\n /** Toggle click event */\n @Event()\n toggleClick: EventEmitter;\n\n private emitToggleClick(): void {\n this.toggleClick.emit({\n id: this.htmlid,\n checked: this.checked,\n });\n }\n\n private handleClick(ev): void {\n if (this.disabled) {\n return;\n }\n\n this.checked = ev.target.checked;\n this.emitToggleClick();\n }\n\n render(): HTMLZToggleSwitchElement {\n return (\n <Host>\n <input\n id={this.htmlid}\n type=\"checkbox\"\n checked={this.checked}\n disabled={this.disabled}\n onChange={this.handleClick.bind(this)}\n />\n <label\n htmlFor={this.htmlid}\n class={{\n [this.labelPosition]: true,\n disabled: this.disabled,\n }}\n >\n <span>\n <slot />\n </span>\n <span\n class={{\n container: true,\n disabled: this.disabled,\n checked: this.checked,\n }}\n >\n <span class=\"circle\">\n {this.checked && (\n <z-icon\n width={12}\n height={12}\n name=\"checkmark\"\n ></z-icon>\n )}\n </span>\n </span>\n </label>\n </Host>\n );\n }\n}\n"],"mappings":"yJAAA,MAAMA,EAAY,05EAClB,MAAAC,EAAeD,E,MCSFE,EAAa,M,gFAGH,M,mBAIJC,EAAcC,K,aAIX,M,YAIX,oBAAoBC,K,CAMrB,eAAAC,GACNC,KAAKC,YAAYC,KAAK,CACpBC,GAAIH,KAAKI,OACTC,QAASL,KAAKK,S,CAIV,WAAAC,CAAYC,GAClB,GAAIP,KAAKQ,SAAU,CACjB,M,CAGFR,KAAKK,QAAUE,EAAGE,OAAOJ,QACzBL,KAAKD,iB,CAGP,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,SAAAE,IAAA,2CACEV,GAAIH,KAAKI,OACTU,KAAK,WACLT,QAASL,KAAKK,QACdG,SAAUR,KAAKQ,SACfO,SAAUf,KAAKM,YAAYU,KAAKhB,QAElCW,EAAA,SAAAE,IAAA,2CACEI,QAASjB,KAAKI,OACdc,MAAO,CACL,CAAClB,KAAKmB,eAAgB,KACtBX,SAAUR,KAAKQ,WAGjBG,EAAA,QAAAE,IAAA,4CACEF,EAAA,QAAAE,IAAA,8CAEFF,EAAA,QAAAE,IAAA,2CACEK,MAAO,CACLE,UAAW,KACXZ,SAAUR,KAAKQ,SACfH,QAASL,KAAKK,UAGhBM,EAAA,QAAAE,IAAA,2CAAMK,MAAM,UACTlB,KAAKK,SACJM,EAAA,UAAAE,IAAA,2CACEQ,MAAO,GACPC,OAAQ,GACRC,KAAK,iB","ignoreList":[]}
1
+ {"version":3,"names":["stylesCss","ZToggleSwitchStyle0","ZToggleSwitch","LabelPosition","LEFT","randomId","emitToggleClick","this","toggleClick","emit","id","htmlid","checked","handleClick","ev","disabled","target","render","h","Host","key","type","onChange","bind","htmlFor","class","labelPosition","container","width","height","name"],"sources":["src/components/z-toggle-switch/styles.css?tag=z-toggle-switch&encapsulation=scoped","src/components/z-toggle-switch/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: inline-flex;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\nlabel {\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n}\n\nlabel.disabled {\n cursor: default;\n}\n\nlabel.right {\n flex-direction: row-reverse;\n}\n\nlabel > span:first-child {\n color: var(--color-default-text);\n letter-spacing: 0;\n}\n\nlabel.left > span:first-child {\n margin-right: var(--space-unit);\n}\n\nlabel.right > span:first-child {\n margin-left: var(--space-unit);\n}\n\nlabel > span.container {\n position: relative;\n top: 1px;\n left: 1px;\n display: flex;\n width: calc(var(--space-unit) * 4);\n height: 18px;\n align-items: center;\n background-color: var(--gray500);\n border-radius: var(--space-unit);\n color: var(--gray500);\n cursor: pointer;\n}\n\nlabel > span.container.disabled,\nlabel > span.container.checked.disabled {\n background-color: var(--color-disabled01);\n cursor: default;\n}\n\nlabel > span.container.checked.disabled > span.circle > z-icon {\n fill: var(--color-disabled01);\n}\n\nlabel > span.container.checked {\n background-color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n\ninput:focus:focus-visible + label > span.container:not(.disabled) {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\ninput:focus:focus-visible + label > span.container.disabled {\n outline: none;\n}\n\nlabel > span.container:not(.disabled):hover {\n background-color: var(--color-hover-primary);\n fill: var(--color-hover-primary);\n}\n\nlabel > span.container > span.circle {\n position: absolute;\n top: 1px;\n left: 1px;\n display: flex;\n width: calc(var(--space-unit) * 2);\n height: calc(var(--space-unit) * 2);\n align-items: center;\n justify-content: center;\n margin: 0;\n background-color: var(--color-white);\n border-radius: 7px;\n box-shadow: var(--shadow-1);\n transition: transform 0.3s ease;\n}\n\nlabel > span.container.checked > span.circle {\n transform: translateX(calc(100% - 2px));\n}\n\ninput[type=\"checkbox\"] {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none;\n}\n","import {Component, Event, EventEmitter, Host, Prop, h} from \"@stencil/core\";\nimport {LabelPosition} from \"../../beans\";\nimport {randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-toggle-switch\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZToggleSwitch {\n /** Disabled flag */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** Label position */\n @Prop({reflect: true})\n labelPosition? = LabelPosition.LEFT;\n\n /** Checked state */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** HTML id attribute to set to the internal checkbox */\n @Prop()\n htmlid = `toggle-switch-id-${randomId()}`;\n\n /** Toggle click event */\n @Event()\n toggleClick: EventEmitter;\n\n private emitToggleClick(): void {\n this.toggleClick.emit({\n id: this.htmlid,\n checked: this.checked,\n });\n }\n\n private handleClick(ev): void {\n if (this.disabled) {\n return;\n }\n\n this.checked = ev.target.checked;\n this.emitToggleClick();\n }\n\n render(): HTMLZToggleSwitchElement {\n return (\n <Host>\n <input\n id={this.htmlid}\n type=\"checkbox\"\n checked={this.checked}\n disabled={this.disabled}\n onChange={this.handleClick.bind(this)}\n />\n <label\n htmlFor={this.htmlid}\n class={{\n [this.labelPosition]: true,\n disabled: this.disabled,\n }}\n >\n <span>\n <slot />\n </span>\n <span\n class={{\n container: true,\n disabled: this.disabled,\n checked: this.checked,\n }}\n >\n <span class=\"circle\">\n {this.checked && (\n <z-icon\n width={12}\n height={12}\n name=\"checkmark\"\n ></z-icon>\n )}\n </span>\n </span>\n </label>\n </Host>\n );\n }\n}\n"],"mappings":"oJAAA,MAAMA,EAAY,05EAClB,MAAAC,EAAeD,E,MCSFE,EAAa,M,gFAGH,M,mBAIJC,EAAcC,K,aAIX,M,YAIX,oBAAoBC,K,CAMrB,eAAAC,GACNC,KAAKC,YAAYC,KAAK,CACpBC,GAAIH,KAAKI,OACTC,QAASL,KAAKK,S,CAIV,WAAAC,CAAYC,GAClB,GAAIP,KAAKQ,SAAU,CACjB,M,CAGFR,KAAKK,QAAUE,EAAGE,OAAOJ,QACzBL,KAAKD,iB,CAGP,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,SAAAE,IAAA,2CACEV,GAAIH,KAAKI,OACTU,KAAK,WACLT,QAASL,KAAKK,QACdG,SAAUR,KAAKQ,SACfO,SAAUf,KAAKM,YAAYU,KAAKhB,QAElCW,EAAA,SAAAE,IAAA,2CACEI,QAASjB,KAAKI,OACdc,MAAO,CACL,CAAClB,KAAKmB,eAAgB,KACtBX,SAAUR,KAAKQ,WAGjBG,EAAA,QAAAE,IAAA,4CACEF,EAAA,QAAAE,IAAA,8CAEFF,EAAA,QAAAE,IAAA,2CACEK,MAAO,CACLE,UAAW,KACXZ,SAAUR,KAAKQ,SACfH,QAASL,KAAKK,UAGhBM,EAAA,QAAAE,IAAA,2CAAMK,MAAM,UACTlB,KAAKK,SACJM,EAAA,UAAAE,IAAA,2CACEQ,MAAO,GACPC,OAAQ,GACRC,KAAK,iB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as o,h as e,g as r}from"./p-cfa39bd3.js";import{P as i,g as s}from"./p-6037cdf3.js";const n=':host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-default-text);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}:host([open][current-position]),:host([open="true"][current-position]){display:flex}:host([center][current-position="top"]),:host([center][current-position="bottom"]){transform:translateX(-50%)}:host([center][current-position="right"]),:host([center][current-position="left"]){transform:translateY(-50%)}:host([current-position^="top"]){margin:0 0 var(--space-unit)}:host([current-position^="bottom"]){margin:var(--space-unit) 0 0}:host([current-position^="left"]){margin:0 var(--space-unit) 0 0}:host([current-position^="right"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);content:"";transform:rotate(45deg)}:host([show-arrow="false"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^="top"])::before{top:var(--arrow-center-y-offset)}:host([current-position^="bottom"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position="top"])::before,:host([current-position="bottom"])::before{right:var(--arrow-edge-offset)}:host([current-position="right"])::before,:host([current-position="left"])::before{bottom:var(--arrow-edge-offset)}:host([current-position="right"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left"])::before{left:var(--arrow-center-y-offset)}:host([current-position="top_right"])::before,:host([current-position="bottom_right"])::before{right:var(--arrow-edge-offset)}:host([current-position="top_left"])::before,:host([current-position="bottom_left"])::before{left:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="left_top"])::before{top:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="right_bottom"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left_top"])::before,:host([current-position="left_bottom"])::before{left:var(--arrow-center-y-offset)}:host([current-position="right_bottom"])::before,:host([current-position="left_bottom"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position="top"])::before,:host([center][current-position="bottom"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position="right"])::before,:host([center][current-position="left"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}';const a=n;const c=document.documentElement;function f(t){if(t.parentNode===t.shadowRoot){return t.shadowRoot.host}return t.parentElement}function h(t){let o=f(t);while(o&&o!==c){const{overflow:t,overflowX:e,overflowY:r}=window.getComputedStyle(o);if(t==="hidden"||r==="hidden"||e==="hidden"){return o}if(o.scrollHeight>o.clientHeight&&t!=="visible"&&r!=="visible"||o.scrollWidth>o.clientWidth&&t!=="visible"&&e!=="visible"){return o}o=f(o)}return c}function p(t,o){const e=t.getBoundingClientRect();const r=e.width;const i=e.height;let s=0;let n=0;let a=t;while(a&&a!=o){n+=a.offsetLeft;if(a===document.body){s+=a.getBoundingClientRect().top+window.scrollY}else{s+=a.offsetTop}if(window.DOMMatrix){const t=window.getComputedStyle(a);const o=t.transform||t.webkitTransform;const e=new DOMMatrix(o);if(e){n+=e.m41;if(a!==document.body){s+=e.m42}}}if(!a.offsetParent){break}a=a.offsetParent}let c;let f;if(a===document.body){c=window.innerWidth;f=window.innerHeight}else{c=a.offsetWidth;f=a.offsetHeight}const h=c-n-e.width;const p=f-s-e.height;return{top:s,right:h,bottom:p,left:n,width:r,height:i}}const l=class{constructor(e){t(this,e);this.positionChange=o(this,"positionChange",7);this.openChange=o(this,"openChange",7);this.position=i.AUTO;this.open=false;this.bindTo=undefined;this.showArrow=false;this.center=false;this.closable=true;this.currentPosition=undefined}closePopoverWithKeyboard(t){if(this.closable&&t.key===s.ESC){this.open=false}}handleOutsideClick(t){if(!this.closable||!this.open){return}if(!t.composedPath().includes(this.host)){const o=t.target;const e=this.bindTo instanceof HTMLElement?this.bindTo.contains(o):o.closest(this.bindTo);if(e){t.stopPropagation()}this.open=false;this.positionChange.emit({position:this.currentPosition})}}validatePosition(t){if(t&&!Object.values(i).includes(t)){this.position=i.AUTO}this.currentPosition=this.position;this.positionChange.emit({position:this.currentPosition})}onOpen(){cancelAnimationFrame(this.animationFrameRequestId);if(this.open){const t=()=>{if(this.open){this.setPosition();this.animationFrameRequestId=requestAnimationFrame(t)}};t()}else if(this.host.hasAttribute("current-position")){this.host.removeAttribute("current-position");this.currentPosition=undefined}this.openChange.emit({open:this.open})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}setPosition(){let t;if(typeof this.bindTo==="string"){t=this.host.ownerDocument.querySelector(this.bindTo)}else if(this.bindTo){t=this.bindTo}else{t=this.host.parentElement}if(!t){return}const o=h(t);const e=o.getBoundingClientRect();const r=this.host.offsetParent;const s=r?p(r,o):{top:0,right:0,bottom:0,left:0};const n=p(t,o);const a=n.top-o.scrollTop;const c=e.height-(n.top+n.height)+o.scrollTop;const f=n.left-o.scrollLeft;const l=e.width-(n.left+n.width)+o.scrollLeft;const u=Math.max(0,e.top+e.height-window.innerHeight);const d=Math.max(0,e.left+e.width-window.innerWidth);const b=Math.min(a,a+e.top);const v=Math.min(c,c-u);const w=Math.min(f,f+e.left);const m=Math.min(l,l-d);const g=b+v+n.height;const x=w+m+n.width;let $=this.currentPosition;const y=[];if(this.position===i.AUTO){if(w/x>.6){y.push(i.LEFT)}else if(w/x<.4){y.push(i.RIGHT)}if(b/g>.9){y.unshift(i.TOP)}else if(b/g>.6){y.push(i.TOP)}else if(b/g<.1){y.unshift(i.BOTTOM)}else{y.push(i.BOTTOM)}$=y.join("_")}const z=this.host.style;z.position="absolute";const _=n.top-s.top;const M=n.right-s.right;const k=n.bottom-s.bottom;const O=n.left-s.left;const P=this.center?.5:0;const j=this.center?.5:0;if($===i.TOP||$===i.TOP_RIGHT){z.top="auto";z.right="auto";z.bottom=`${k+n.height}px`;z.left=`${O+n.width*P}px`;z.maxHeight=`${b}px`;if($===i.TOP_RIGHT){z.maxWidth=`${m+n.width*j}px`}}else if($===i.TOP_LEFT){z.top="auto";z.right=`${M+n.width*P}px`;z.bottom=`${k+n.height}px`;z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${b}px`}else if($===i.BOTTOM||$===i.BOTTOM_RIGHT){z.top=`${_+n.height}px`;z.right="auto";z.bottom="auto";z.left=`${O+n.width*P}px`;z.maxHeight=`${v}px`;if($===i.BOTTOM_RIGHT){z.maxWidth=`${m+n.width*j}px`}}else if($===i.BOTTOM_LEFT){z.top=`${_+n.height}px`;z.right=`${M+n.width*P}px`;z.bottom="auto";z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${v}px`}else if($===i.RIGHT||$===i.RIGHT_BOTTOM){z.top=`${_+n.height*P}px`;z.right="auto";z.bottom="auto";z.left=`${O+n.width}px`;z.maxWidth=`${m}px`;z.maxHeight=`${v+n.height*j}px`}else if($===i.RIGHT_TOP){z.top="auto";z.right="auto";z.bottom=`${k+n.height*P}px`;z.left=`${O+n.width}px`;z.maxWidth=`${m}px`;z.maxHeight=`${b+n.height*j}px`}else if($===i.LEFT||$===i.LEFT_BOTTOM){z.top=`${_+n.height*P}px`;z.right=`${M+n.width}px`;z.bottom="auto";z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${v+n.height*j}px`}else if($===i.LEFT_TOP){z.top="auto";z.right=`${M+n.width}px`;z.bottom=`${k+n.height*P}px`;z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${b+n.height*j}px`}this.currentPosition=$||this.position;this.host.setAttribute("current-position",this.currentPosition)}componentWillLoad(){this.validatePosition(this.position);this.onOpen()}render(){return e("slot",{key:"1f4365b6b42a465af2a167933028dd63430d765f"})}get host(){return r(this)}static get watchers(){return{position:["validatePosition"],open:["onOpen"]}}};l.style=a;export{l as z_popover};
2
- //# sourceMappingURL=p-cd68bcb2.entry.js.map
1
+ import{r as t,c as o,h as e,g as r}from"./p-75c4a726.js";import{P as i,g as s}from"./p-6037cdf3.js";const n=':host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-default-text);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}:host([open][current-position]),:host([open="true"][current-position]){display:flex}:host([center][current-position="top"]),:host([center][current-position="bottom"]){transform:translateX(-50%)}:host([center][current-position="right"]),:host([center][current-position="left"]){transform:translateY(-50%)}:host([current-position^="top"]){margin:0 0 var(--space-unit)}:host([current-position^="bottom"]){margin:var(--space-unit) 0 0}:host([current-position^="left"]){margin:0 var(--space-unit) 0 0}:host([current-position^="right"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);content:"";transform:rotate(45deg)}:host([show-arrow="false"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^="top"])::before{top:var(--arrow-center-y-offset)}:host([current-position^="bottom"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position="top"])::before,:host([current-position="bottom"])::before{right:var(--arrow-edge-offset)}:host([current-position="right"])::before,:host([current-position="left"])::before{bottom:var(--arrow-edge-offset)}:host([current-position="right"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left"])::before{left:var(--arrow-center-y-offset)}:host([current-position="top_right"])::before,:host([current-position="bottom_right"])::before{right:var(--arrow-edge-offset)}:host([current-position="top_left"])::before,:host([current-position="bottom_left"])::before{left:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="left_top"])::before{top:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="right_bottom"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left_top"])::before,:host([current-position="left_bottom"])::before{left:var(--arrow-center-y-offset)}:host([current-position="right_bottom"])::before,:host([current-position="left_bottom"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position="top"])::before,:host([center][current-position="bottom"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position="right"])::before,:host([center][current-position="left"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}';const a=n;const c=document.documentElement;function f(t){if(t.parentNode===t.shadowRoot){return t.shadowRoot.host}return t.parentElement}function h(t){let o=f(t);while(o&&o!==c){const{overflow:t,overflowX:e,overflowY:r}=window.getComputedStyle(o);if(t==="hidden"||r==="hidden"||e==="hidden"){return o}if(o.scrollHeight>o.clientHeight&&t!=="visible"&&r!=="visible"||o.scrollWidth>o.clientWidth&&t!=="visible"&&e!=="visible"){return o}o=f(o)}return c}function p(t,o){const e=t.getBoundingClientRect();const r=e.width;const i=e.height;let s=0;let n=0;let a=t;while(a&&a!=o){n+=a.offsetLeft;if(a===document.body){s+=a.getBoundingClientRect().top+window.scrollY}else{s+=a.offsetTop}if(window.DOMMatrix){const t=window.getComputedStyle(a);const o=t.transform||t.webkitTransform;const e=new DOMMatrix(o);if(e){n+=e.m41;if(a!==document.body){s+=e.m42}}}if(!a.offsetParent){break}a=a.offsetParent}let c;let f;if(a===document.body){c=window.innerWidth;f=window.innerHeight}else{c=a.offsetWidth;f=a.offsetHeight}const h=c-n-e.width;const p=f-s-e.height;return{top:s,right:h,bottom:p,left:n,width:r,height:i}}const l=class{constructor(e){t(this,e);this.positionChange=o(this,"positionChange",7);this.openChange=o(this,"openChange",7);this.position=i.AUTO;this.open=false;this.bindTo=undefined;this.showArrow=false;this.center=false;this.closable=true;this.currentPosition=undefined}closePopoverWithKeyboard(t){if(this.closable&&t.key===s.ESC){this.open=false}}handleOutsideClick(t){if(!this.closable||!this.open){return}if(!t.composedPath().includes(this.host)){const o=t.target;const e=this.bindTo instanceof HTMLElement?this.bindTo.contains(o):o.closest(this.bindTo);if(e){t.stopPropagation()}this.open=false;this.positionChange.emit({position:this.currentPosition})}}validatePosition(t){if(t&&!Object.values(i).includes(t)){this.position=i.AUTO}this.currentPosition=this.position;this.positionChange.emit({position:this.currentPosition})}onOpen(){cancelAnimationFrame(this.animationFrameRequestId);if(this.open){const t=()=>{if(this.open){this.setPosition();this.animationFrameRequestId=requestAnimationFrame(t)}};t()}else if(this.host.hasAttribute("current-position")){this.host.removeAttribute("current-position");this.currentPosition=undefined}this.openChange.emit({open:this.open})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}setPosition(){let t;if(typeof this.bindTo==="string"){t=this.host.ownerDocument.querySelector(this.bindTo)}else if(this.bindTo){t=this.bindTo}else{t=this.host.parentElement}if(!t){return}const o=h(t);const e=o.getBoundingClientRect();const r=this.host.offsetParent;const s=r?p(r,o):{top:0,right:0,bottom:0,left:0};const n=p(t,o);const a=n.top-o.scrollTop;const c=e.height-(n.top+n.height)+o.scrollTop;const f=n.left-o.scrollLeft;const l=e.width-(n.left+n.width)+o.scrollLeft;const u=Math.max(0,e.top+e.height-window.innerHeight);const d=Math.max(0,e.left+e.width-window.innerWidth);const b=Math.min(a,a+e.top);const v=Math.min(c,c-u);const w=Math.min(f,f+e.left);const m=Math.min(l,l-d);const g=b+v+n.height;const x=w+m+n.width;let $=this.currentPosition;const y=[];if(this.position===i.AUTO){if(w/x>.6){y.push(i.LEFT)}else if(w/x<.4){y.push(i.RIGHT)}if(b/g>.9){y.unshift(i.TOP)}else if(b/g>.6){y.push(i.TOP)}else if(b/g<.1){y.unshift(i.BOTTOM)}else{y.push(i.BOTTOM)}$=y.join("_")}const z=this.host.style;z.position="absolute";const _=n.top-s.top;const M=n.right-s.right;const k=n.bottom-s.bottom;const O=n.left-s.left;const P=this.center?.5:0;const j=this.center?.5:0;if($===i.TOP||$===i.TOP_RIGHT){z.top="auto";z.right="auto";z.bottom=`${k+n.height}px`;z.left=`${O+n.width*P}px`;z.maxHeight=`${b}px`;if($===i.TOP_RIGHT){z.maxWidth=`${m+n.width*j}px`}}else if($===i.TOP_LEFT){z.top="auto";z.right=`${M+n.width*P}px`;z.bottom=`${k+n.height}px`;z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${b}px`}else if($===i.BOTTOM||$===i.BOTTOM_RIGHT){z.top=`${_+n.height}px`;z.right="auto";z.bottom="auto";z.left=`${O+n.width*P}px`;z.maxHeight=`${v}px`;if($===i.BOTTOM_RIGHT){z.maxWidth=`${m+n.width*j}px`}}else if($===i.BOTTOM_LEFT){z.top=`${_+n.height}px`;z.right=`${M+n.width*P}px`;z.bottom="auto";z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${v}px`}else if($===i.RIGHT||$===i.RIGHT_BOTTOM){z.top=`${_+n.height*P}px`;z.right="auto";z.bottom="auto";z.left=`${O+n.width}px`;z.maxWidth=`${m}px`;z.maxHeight=`${v+n.height*j}px`}else if($===i.RIGHT_TOP){z.top="auto";z.right="auto";z.bottom=`${k+n.height*P}px`;z.left=`${O+n.width}px`;z.maxWidth=`${m}px`;z.maxHeight=`${b+n.height*j}px`}else if($===i.LEFT||$===i.LEFT_BOTTOM){z.top=`${_+n.height*P}px`;z.right=`${M+n.width}px`;z.bottom="auto";z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${v+n.height*j}px`}else if($===i.LEFT_TOP){z.top="auto";z.right=`${M+n.width}px`;z.bottom=`${k+n.height*P}px`;z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${b+n.height*j}px`}this.currentPosition=$||this.position;this.host.setAttribute("current-position",this.currentPosition)}componentWillLoad(){this.validatePosition(this.position);this.onOpen()}render(){return e("slot",{key:"d2b7ba2d7b41538ab1a5d711507fa31b8f8d6c80"})}get host(){return r(this)}static get watchers(){return{position:["validatePosition"],open:["onOpen"]}}};l.style=a;export{l as z_popover};
2
+ //# sourceMappingURL=p-6a1b3e86.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as a,a as n,g as e}from"./p-cfa39bd3.js";import{N as o,a as s,b as r}from"./p-6037cdf3.js";const l='z-navigation-tabs{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-navigation-tabs,z-navigation-tabs *{box-sizing:border-box}z-navigation-tabs>nav::-webkit-scrollbar{display:none}z-navigation-tabs .navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--z-navigation-tabs-nav-buttons-bg, var(--color-surface01));border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px var(--shadow-color-base);cursor:pointer;fill:var(--z-navigation-tabs-nav-buttons-fg, var(--color-primary01));outline:none}z-navigation-tabs .navigation-button:disabled{display:none}z-navigation-tabs>nav{z-index:0;display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}z-navigation-tabs[orientation="horizontal"]>nav{width:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button:first-child{left:0}z-navigation-tabs[orientation="horizontal"] .navigation-button:last-child{right:0}z-navigation-tabs[orientation="vertical"]{width:fit-content;flex-direction:column}z-navigation-tabs[orientation="vertical"]>nav{height:100%;flex-direction:column;align-items:stretch}z-navigation-tabs[orientation="vertical"] .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}z-navigation-tabs[orientation="vertical"] .navigation-button:first-child{top:0}z-navigation-tabs[orientation="vertical"] .navigation-button:last-child{bottom:0}z-navigation-tabs[size="small"][orientation="vertical"] .navigation-button{height:calc(var(--space-unit) * 4)}z-navigation-tabs>nav>*{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;gap:var(--space-unit);letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tabs>nav>a{text-decoration:none}z-navigation-tabs>nav>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--blue800)}z-navigation-tabs>nav>:not([disabled]):hover{background-color:var(--color-surface02)}z-navigation-tabs>nav>button[disabled]{color:var(--color-disabled03);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tabs>nav>:not([disabled]):hover,nav>[aria-selected="true"]{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tabs>nav>:not([disabled]):hover::after,nav>[aria-selected="true"]::after{position:absolute;background-color:var(--color-hover-secondary);content:""}z-navigation-tabs[orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="horizontal"]>nav>[aria-selected="true"]::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tabs>nav>* z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[size="small"][orientation="horizontal"]>nav>[aria-selected="true"]::after{height:var(--border-size-medium)}z-navigation-tabs[size="small"]:not([orientation="vertical"])>nav>* z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tabs[orientation="vertical"]>nav>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tabs[orientation="vertical"]>nav>*>:not(z-icon){display:none}z-navigation-tabs[orientation="vertical"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="vertical"]>nav>[aria-selected="true"]::after{top:0;right:0;width:var(--border-size-large);height:100%}';const h=l;const c=class{constructor(a){t(this,a);this.selected=i(this,"selected",7);this.focusedTab=undefined;this.ariaLabel="";this.orientation=o.HORIZONTAL;this.size=s.BIG;this.selectedTab=undefined;this.canNavigate=undefined;this.canNavigatePrev=undefined;this.canNavigateNext=undefined}get direction(){return this.orientation==o.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==o.HORIZONTAL?"Width":"Height"}get tabs(){return Array.from(this.nav.children)}scrollToTab(t){const i=this.orientation===o.HORIZONTAL?{block:"nearest",inline:"center"}:{block:"center",inline:"nearest"};t.scrollIntoView(Object.assign({behavior:"smooth"},i))}navigateBackwards(){this.nav.scrollBy({[this.direction.toLowerCase()]:0-this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.nav.scrollBy({[this.direction.toLowerCase()]:this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}isArrowNavigation(t){return Object.values(r).includes(t.key)}checkScrollVisible(){if(!this.nav){return}this.canNavigate=this.nav[`scroll${this.dimension}`]>this.nav[`client${this.dimension}`]}checkScrollEnabled(){if(!this.nav){return}this.canNavigateNext=this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]<this.nav[`scroll${this.dimension}`];this.canNavigatePrev=this.nav[`scroll${this.direction}`]>0}onTabSelected(){this.tabs.forEach(((t,i)=>{const a=t.querySelector("z-icon");const n=a===null||a===void 0?void 0:a.getAttribute("name").replace("-filled","");if(i!==this.selectedTab){t.setAttribute("aria-selected","false");t.tabIndex=-1;a===null||a===void 0?void 0:a.setAttribute("name",n);return}a===null||a===void 0?void 0:a.setAttribute("name",`${n}-filled`);t.setAttribute("aria-selected","true")}));this.selected.emit(this.selectedTab);if(this.selectedTab!==undefined){this.scrollToTab(this.tabs[this.selectedTab])}}handleTabClick(t){const i=t.target.closest("[role='tab']");if(!this.tabs.some((t=>t.contains(i)))){return}this.selectedTab=this.tabs.indexOf(i)}onTabFocusIn(t){const i=this.tabs.findIndex((i=>i.contains(t.target)));if(i===-1){return}if(this.selectedTab!==undefined){this.tabs[this.selectedTab].tabIndex=-1}this.focusedTab=i;this.tabs[this.focusedTab].tabIndex=-1;this.scrollToTab(this.tabs[this.focusedTab])}navigateThroughTabs(t){if(!this.tabs.some((i=>i.contains(t.target)))||!this.isArrowNavigation(t)){return true}t.preventDefault();if(t.key===r.RIGHT&&this.orientation==o.HORIZONTAL||t.key===r.DOWN&&this.orientation==o.VERTICAL){this.focusedTab++;if(this.focusedTab>=this.tabs.length){this.focusedTab=0}}else if(t.key===r.LEFT&&this.orientation==o.HORIZONTAL||t.key===r.UP&&this.orientation==o.VERTICAL){this.focusedTab--;if(this.focusedTab<0){this.focusedTab=this.tabs.length-1}}if(this.tabs[this.focusedTab].hasAttribute("disabled")&&this.tabs[this.focusedTab].getAttribute("disabled")!=="false"){return this.navigateThroughTabs(t)}this.tabs[this.focusedTab].focus();this.scrollToTab(this.tabs[this.focusedTab])}onTabFocusOut(t){var i;if(!this.tabs.some((i=>i.contains(t.relatedTarget)))){this.tabs[(i=this.selectedTab)!==null&&i!==void 0?i:0].tabIndex=0;this.focusedTab=undefined}}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>this.checkScrollVisible()))}componentDidLoad(){var t;this.tabs.forEach((t=>{t.setAttribute("role","tab");t.tabIndex=-1}));const i=(t=this.selectedTab)!==null&&t!==void 0?t:this.tabs.findIndex((t=>t.ariaSelected==="true"));if(i!==-1){this.selectedTab=i;this.tabs[i].tabIndex=0;this.onTabSelected()}else{this.tabs[0].tabIndex=0}this.resizeObserver.observe(this.nav)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){return a(n,{key:"ae7391eaa15885cd386f3f827d37aa4ce0731953",class:{"interactive-2":this.size===s.SMALL,"interactive-1":this.size!==s.SMALL},scrollable:this.canNavigate},a("button",{key:"28bb7a93ec75f0fc2222c850942051923ab1d3fd",class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabIndex:-1,disabled:!this.canNavigatePrev,"aria-label":"Mostra elementi precedenti",hidden:!this.canNavigate},a("z-icon",{key:"de86cb71cc1872e6682becab4e4f622545cf9196",name:this.orientation===o.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),a("nav",{key:"ad94db8f78f2a309be068ba03a95fcca7638fe4f",role:"tablist","aria-label":this.ariaLabel,ref:t=>this.nav=t!==null&&t!==void 0?t:this.nav,onScroll:this.checkScrollEnabled.bind(this),"aria-orientation":this.orientation},a("slot",{key:"e9fcd5ffce6dd6dffd395bec1360484237729b5b"})),a("button",{key:"3a4e9adc13675fd42e73697a524485de7c9bc979",class:"navigation-button",onClick:this.navigateForward.bind(this),tabIndex:-1,disabled:!this.canNavigateNext,"aria-label":"Mostra elementi successivi",hidden:!this.canNavigate},a("z-icon",{key:"b29ee5895abebd8b57f318844382f4c3f9976f8d",name:this.orientation===o.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return e(this)}static get watchers(){return{canNavigate:["checkScrollEnabled"],selectedTab:["onTabSelected"]}}};c.style=h;export{c as z_navigation_tabs};
2
- //# sourceMappingURL=p-1a0825e3.entry.js.map
1
+ import{r as t,c as i,h as a,a as n,g as e}from"./p-75c4a726.js";import{N as o,a as s,b as r}from"./p-6037cdf3.js";const l='z-navigation-tabs{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-navigation-tabs,z-navigation-tabs *{box-sizing:border-box}z-navigation-tabs>nav::-webkit-scrollbar{display:none}z-navigation-tabs .navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--z-navigation-tabs-nav-buttons-bg, var(--color-surface01));border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px var(--shadow-color-base);cursor:pointer;fill:var(--z-navigation-tabs-nav-buttons-fg, var(--color-primary01));outline:none}z-navigation-tabs .navigation-button:disabled{display:none}z-navigation-tabs>nav{z-index:0;display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}z-navigation-tabs[orientation="horizontal"]>nav{width:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button:first-child{left:0}z-navigation-tabs[orientation="horizontal"] .navigation-button:last-child{right:0}z-navigation-tabs[orientation="vertical"]{width:fit-content;flex-direction:column}z-navigation-tabs[orientation="vertical"]>nav{height:100%;flex-direction:column;align-items:stretch}z-navigation-tabs[orientation="vertical"] .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}z-navigation-tabs[orientation="vertical"] .navigation-button:first-child{top:0}z-navigation-tabs[orientation="vertical"] .navigation-button:last-child{bottom:0}z-navigation-tabs[size="small"][orientation="vertical"] .navigation-button{height:calc(var(--space-unit) * 4)}z-navigation-tabs>nav>*{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;gap:var(--space-unit);letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tabs>nav>a{text-decoration:none}z-navigation-tabs>nav>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--blue800)}z-navigation-tabs>nav>:not([disabled]):hover{background-color:var(--color-surface02)}z-navigation-tabs>nav>button[disabled]{color:var(--color-disabled03);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tabs>nav>:not([disabled]):hover,nav>[aria-selected="true"]{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tabs>nav>:not([disabled]):hover::after,nav>[aria-selected="true"]::after{position:absolute;background-color:var(--color-hover-secondary);content:""}z-navigation-tabs[orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="horizontal"]>nav>[aria-selected="true"]::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tabs>nav>* z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[size="small"][orientation="horizontal"]>nav>[aria-selected="true"]::after{height:var(--border-size-medium)}z-navigation-tabs[size="small"]:not([orientation="vertical"])>nav>* z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tabs[orientation="vertical"]>nav>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tabs[orientation="vertical"]>nav>*>:not(z-icon){display:none}z-navigation-tabs[orientation="vertical"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="vertical"]>nav>[aria-selected="true"]::after{top:0;right:0;width:var(--border-size-large);height:100%}';const h=l;const c=class{constructor(a){t(this,a);this.selected=i(this,"selected",7);this.focusedTab=undefined;this.ariaLabel="";this.orientation=o.HORIZONTAL;this.size=s.BIG;this.selectedTab=undefined;this.canNavigate=undefined;this.canNavigatePrev=undefined;this.canNavigateNext=undefined}get direction(){return this.orientation==o.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==o.HORIZONTAL?"Width":"Height"}get tabs(){return Array.from(this.nav.children)}scrollToTab(t){const i=this.orientation===o.HORIZONTAL?{block:"nearest",inline:"center"}:{block:"center",inline:"nearest"};t.scrollIntoView(Object.assign({behavior:"smooth"},i))}navigateBackwards(){this.nav.scrollBy({[this.direction.toLowerCase()]:0-this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.nav.scrollBy({[this.direction.toLowerCase()]:this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}isArrowNavigation(t){return Object.values(r).includes(t.key)}checkScrollVisible(){if(!this.nav){return}this.canNavigate=this.nav[`scroll${this.dimension}`]>this.nav[`client${this.dimension}`]}checkScrollEnabled(){if(!this.nav){return}this.canNavigateNext=this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]<this.nav[`scroll${this.dimension}`];this.canNavigatePrev=this.nav[`scroll${this.direction}`]>0}onTabSelected(){this.tabs.forEach(((t,i)=>{const a=t.querySelector("z-icon");const n=a===null||a===void 0?void 0:a.getAttribute("name").replace("-filled","");if(i!==this.selectedTab){t.setAttribute("aria-selected","false");t.tabIndex=-1;a===null||a===void 0?void 0:a.setAttribute("name",n);return}a===null||a===void 0?void 0:a.setAttribute("name",`${n}-filled`);t.setAttribute("aria-selected","true")}));this.selected.emit(this.selectedTab);if(this.selectedTab!==undefined){this.scrollToTab(this.tabs[this.selectedTab])}}handleTabClick(t){const i=t.target.closest("[role='tab']");if(!this.tabs.some((t=>t.contains(i)))){return}this.selectedTab=this.tabs.indexOf(i)}onTabFocusIn(t){const i=this.tabs.findIndex((i=>i.contains(t.target)));if(i===-1){return}if(this.selectedTab!==undefined){this.tabs[this.selectedTab].tabIndex=-1}this.focusedTab=i;this.tabs[this.focusedTab].tabIndex=-1;this.scrollToTab(this.tabs[this.focusedTab])}navigateThroughTabs(t){if(!this.tabs.some((i=>i.contains(t.target)))||!this.isArrowNavigation(t)){return true}t.preventDefault();if(t.key===r.RIGHT&&this.orientation==o.HORIZONTAL||t.key===r.DOWN&&this.orientation==o.VERTICAL){this.focusedTab++;if(this.focusedTab>=this.tabs.length){this.focusedTab=0}}else if(t.key===r.LEFT&&this.orientation==o.HORIZONTAL||t.key===r.UP&&this.orientation==o.VERTICAL){this.focusedTab--;if(this.focusedTab<0){this.focusedTab=this.tabs.length-1}}if(this.tabs[this.focusedTab].hasAttribute("disabled")&&this.tabs[this.focusedTab].getAttribute("disabled")!=="false"){return this.navigateThroughTabs(t)}this.tabs[this.focusedTab].focus();this.scrollToTab(this.tabs[this.focusedTab])}onTabFocusOut(t){var i;if(!this.tabs.some((i=>i.contains(t.relatedTarget)))){this.tabs[(i=this.selectedTab)!==null&&i!==void 0?i:0].tabIndex=0;this.focusedTab=undefined}}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>this.checkScrollVisible()))}componentDidLoad(){var t;this.tabs.forEach((t=>{t.setAttribute("role","tab");t.tabIndex=-1}));const i=(t=this.selectedTab)!==null&&t!==void 0?t:this.tabs.findIndex((t=>t.ariaSelected==="true"));if(i!==-1){this.selectedTab=i;this.tabs[i].tabIndex=0;this.onTabSelected()}else{this.tabs[0].tabIndex=0}this.resizeObserver.observe(this.nav)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){return a(n,{key:"ddfa52ab8c585f3502004479d43b9cd0768284df",class:{"interactive-2":this.size===s.SMALL,"interactive-1":this.size!==s.SMALL},scrollable:this.canNavigate},a("button",{key:"15c0e811c33f4479e1889a510c3ec63bd36e1bc6",class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabIndex:-1,disabled:!this.canNavigatePrev,"aria-label":"Mostra elementi precedenti",hidden:!this.canNavigate},a("z-icon",{key:"b960014b0fb670473bd159aaab7bfbf772e7bd15",name:this.orientation===o.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),a("nav",{key:"032fd5f8b6ef9a507af18dc2e886f13e8d25bb5f",role:"tablist","aria-label":this.ariaLabel,ref:t=>this.nav=t!==null&&t!==void 0?t:this.nav,onScroll:this.checkScrollEnabled.bind(this),"aria-orientation":this.orientation},a("slot",{key:"e29f63dd956a46981607b7c7d771d97803a7cc8e"})),a("button",{key:"66a60588ccd80220b7ec5f063c4ccb664185e5d8",class:"navigation-button",onClick:this.navigateForward.bind(this),tabIndex:-1,disabled:!this.canNavigateNext,"aria-label":"Mostra elementi successivi",hidden:!this.canNavigate},a("z-icon",{key:"90f9cd71eb2bdf8dec8d18e41113b00b3e647c4d",name:this.orientation===o.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return e(this)}static get watchers(){return{canNavigate:["checkScrollEnabled"],selectedTab:["onTabSelected"]}}};c.style=h;export{c as z_navigation_tabs};
2
+ //# sourceMappingURL=p-6db2fd46.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,h as e}from"./p-cfa39bd3.js";import{P as n}from"./p-6037cdf3.js";import{a as s}from"./p-2c184714.js";import"./p-2c886e8b.js";const o=':host{width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:relative;display:grid;width:calc(100% + calc(var(--space-unit) * 2));height:402px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--color-primary01);margin-left:calc(-1 * var(--space-unit));background:var(--color-surface01);border-radius:0;box-shadow:0 2px 4px 0 rgb(66 69 72 / 35%)}:host>div>z-icon{position:absolute;top:var(--space-unit);right:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}:host>div>div.cta-wrapper{display:flex;flex-flow:column nowrap;align-self:end;justify-content:space-between}:host>div>div.content-wrapper{position:relative;overflow:hidden;align-self:stretch}:host>div>div.content-wrapper>section{box-sizing:border-box;padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);font-size:14px;line-height:20px}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden::after{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg, rgb(255 0 0 / 0%), rgb(255 0 0 / 0%) 60%, white);content:"";pointer-events:none}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-popover{position:absolute;top:0;left:calc(var(--space-unit) * 4)}';const r=o;const a=class{emitFlipCard(i=false){this.flipCard.emit(i)}constructor(e){i(this,e);this.flipCard=t(this,"flipCard",7);this.data=undefined;this.htmltabindex=0;this.hiddenContent=false;this.tooltip=false;this.emitFlipCard=this.emitFlipCard.bind(this)}componentWillLoad(){this.setStringOrArray()}componentWillUpdate(){this.setStringOrArray()}componentDidRender(){this.handleContentHeight()}handleContentHeight(){if(!this.contentWrapper&&!this.infoWrapper){this.hiddenContent=false;return}if(this.contentWrapper.scrollHeight>this.contentWrapper.offsetHeight||this.infoWrapper.scrollHeight>this.infoWrapper.offsetHeight){const i=this.contentWrapper.offsetHeight-this.onlineLicenseWrapper.offsetHeight-this.offlineLicenseWrapper.offsetHeight;this.infoWrapper.style.height=`${i}px`;this.hiddenContent=true;return}this.hiddenContent=false}setStringOrArray(){if(typeof this.data==="string"){this.cardData=JSON.parse(this.data)}else{this.cardData=this.data}}renderCloseIcon(){return e("z-icon",{name:"multiply-circled-filled",height:18,width:18,onClick:()=>this.emitFlipCard(false),tabindex:this.htmltabindex,onKeyUp:i=>{s(i,this.emitFlipCard,false)}})}renderGeneralSection(){var i,t;const n=(i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.title;const s=(t=this===null||this===void 0?void 0:this.cardData)===null||t===void 0?void 0:t.description;return e("section",{class:`info-wrapper ${this.hiddenContent?"hidden":""}`,onClick:()=>{if(this.hiddenContent){this.tooltip=!this.tooltip}},ref:i=>this.infoWrapper=i},this.renderAuthor(),this.renderYear(),n,e("br",null),s)}renderAuthor(){var i;const t=(i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.author;if(!t){return null}return e("span",null,"Autore: ",e("b",null,t),e("br",null))}renderYear(){var i;const t=(i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.year;if(!t){return null}return e("span",null,"Anno: ",e("b",null,t),e("br",null))}renderTooltip(){if(!this.tooltip){return}if(!this.cardData){return}const{title:i,year:t,author:s,description:o}=this.cardData;return e("z-popover",{position:n.RIGHT,onClick:()=>this.tooltip=false},`${i} ${t} ${s} ${o}`)}setExpirationLicenseMessage(i){if(i==="online"&&this.cardData.onlineLicense.expired||i==="offline"&&this.cardData.offlineLicense.expired){return e("span",{class:"expired"},"SCADUTA")}if(i==="online"&&this.cardData.onlineLicense.expiring||i==="offline"&&this.cardData.offlineLicense.expiring){return e("span",{class:"expiring"},"IN SCADENZA")}}renderOnlineLicenseSection(){var i;if(!((i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.onlineLicense)){return}return e("section",{ref:i=>this.onlineLicenseWrapper=i},e("span",{class:"license-heading"},e("span",null,"Licenza online"),this.setExpirationLicenseMessage("online")),"Scadenza il ",e("b",null,this.cardData.onlineLicense.expiration),e("br",null))}renderOfflineLicenseSection(){var i;if(!((i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.offlineLicense)){return}return e("section",{ref:i=>this.offlineLicenseWrapper=i},e("span",{class:"license-heading"},e("span",null,"Licenza offline"),this.setExpirationLicenseMessage("offline")),"Scadenza il ",e("b",null,this.cardData.offlineLicense.expiration),e("br",null),"Installazioni disponibili: ",e("b",null,this.cardData.offlineLicense.installations))}render(){return e("div",{key:"bbc031c0b25ed265ce4f1482b481f0bdf440ba0e"},this.renderCloseIcon(),e("div",{key:"4d6c29ed3d543bab884c665bbb9534b521669aa8",class:"content-wrapper",ref:i=>this.contentWrapper=i},this.renderGeneralSection(),this.renderTooltip(),this.renderOnlineLicenseSection(),this.renderOfflineLicenseSection()),e("div",{key:"f4268601df60464521aa2d5bda3a0968821a8f0b",class:"cta-wrapper"},e("slot",{key:"eebe7be8dde8a696c4bd0bf0f674fbcb1e32ba72"})))}};a.style=r;export{a as z_myz_card_info};
2
- //# sourceMappingURL=p-e59ada26.entry.js.map
1
+ import{r as i,c as t,h as e}from"./p-75c4a726.js";import{P as n}from"./p-6037cdf3.js";import{d as s}from"./p-67e5e8ed.js";import"./p-5145a606.js";const o=':host{width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:relative;display:grid;width:calc(100% + calc(var(--space-unit) * 2));height:402px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--color-primary01);margin-left:calc(-1 * var(--space-unit));background:var(--color-surface01);border-radius:0;box-shadow:0 2px 4px 0 rgb(66 69 72 / 35%)}:host>div>z-icon{position:absolute;top:var(--space-unit);right:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}:host>div>div.cta-wrapper{display:flex;flex-flow:column nowrap;align-self:end;justify-content:space-between}:host>div>div.content-wrapper{position:relative;overflow:hidden;align-self:stretch}:host>div>div.content-wrapper>section{box-sizing:border-box;padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);font-size:14px;line-height:20px}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden::after{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg, rgb(255 0 0 / 0%), rgb(255 0 0 / 0%) 60%, white);content:"";pointer-events:none}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-popover{position:absolute;top:0;left:calc(var(--space-unit) * 4)}';const r=o;const a=class{emitFlipCard(i=false){this.flipCard.emit(i)}constructor(e){i(this,e);this.flipCard=t(this,"flipCard",7);this.data=undefined;this.htmltabindex=0;this.hiddenContent=false;this.tooltip=false;this.emitFlipCard=this.emitFlipCard.bind(this)}componentWillLoad(){this.setStringOrArray()}componentWillUpdate(){this.setStringOrArray()}componentDidRender(){this.handleContentHeight()}handleContentHeight(){if(!this.contentWrapper&&!this.infoWrapper){this.hiddenContent=false;return}if(this.contentWrapper.scrollHeight>this.contentWrapper.offsetHeight||this.infoWrapper.scrollHeight>this.infoWrapper.offsetHeight){const i=this.contentWrapper.offsetHeight-this.onlineLicenseWrapper.offsetHeight-this.offlineLicenseWrapper.offsetHeight;this.infoWrapper.style.height=`${i}px`;this.hiddenContent=true;return}this.hiddenContent=false}setStringOrArray(){if(typeof this.data==="string"){this.cardData=JSON.parse(this.data)}else{this.cardData=this.data}}renderCloseIcon(){return e("z-icon",{name:"multiply-circled-filled",height:18,width:18,onClick:()=>this.emitFlipCard(false),tabindex:this.htmltabindex,onKeyUp:i=>{s(i,this.emitFlipCard,false)}})}renderGeneralSection(){var i,t;const n=(i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.title;const s=(t=this===null||this===void 0?void 0:this.cardData)===null||t===void 0?void 0:t.description;return e("section",{class:`info-wrapper ${this.hiddenContent?"hidden":""}`,onClick:()=>{if(this.hiddenContent){this.tooltip=!this.tooltip}},ref:i=>this.infoWrapper=i},this.renderAuthor(),this.renderYear(),n,e("br",null),s)}renderAuthor(){var i;const t=(i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.author;if(!t){return null}return e("span",null,"Autore: ",e("b",null,t),e("br",null))}renderYear(){var i;const t=(i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.year;if(!t){return null}return e("span",null,"Anno: ",e("b",null,t),e("br",null))}renderTooltip(){if(!this.tooltip){return}if(!this.cardData){return}const{title:i,year:t,author:s,description:o}=this.cardData;return e("z-popover",{position:n.RIGHT,onClick:()=>this.tooltip=false},`${i} ${t} ${s} ${o}`)}setExpirationLicenseMessage(i){if(i==="online"&&this.cardData.onlineLicense.expired||i==="offline"&&this.cardData.offlineLicense.expired){return e("span",{class:"expired"},"SCADUTA")}if(i==="online"&&this.cardData.onlineLicense.expiring||i==="offline"&&this.cardData.offlineLicense.expiring){return e("span",{class:"expiring"},"IN SCADENZA")}}renderOnlineLicenseSection(){var i;if(!((i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.onlineLicense)){return}return e("section",{ref:i=>this.onlineLicenseWrapper=i},e("span",{class:"license-heading"},e("span",null,"Licenza online"),this.setExpirationLicenseMessage("online")),"Scadenza il ",e("b",null,this.cardData.onlineLicense.expiration),e("br",null))}renderOfflineLicenseSection(){var i;if(!((i=this===null||this===void 0?void 0:this.cardData)===null||i===void 0?void 0:i.offlineLicense)){return}return e("section",{ref:i=>this.offlineLicenseWrapper=i},e("span",{class:"license-heading"},e("span",null,"Licenza offline"),this.setExpirationLicenseMessage("offline")),"Scadenza il ",e("b",null,this.cardData.offlineLicense.expiration),e("br",null),"Installazioni disponibili: ",e("b",null,this.cardData.offlineLicense.installations))}render(){return e("div",{key:"2a05ddeb716ce41cc96f39719f485fcf717f52e6"},this.renderCloseIcon(),e("div",{key:"d657573cb16fc4f79a7803a78f24ab5bd398d4c9",class:"content-wrapper",ref:i=>this.contentWrapper=i},this.renderGeneralSection(),this.renderTooltip(),this.renderOnlineLicenseSection(),this.renderOfflineLicenseSection()),e("div",{key:"30c4c278f935dee8e281a357ac292962cdaa71c3",class:"cta-wrapper"},e("slot",{key:"af3c4fd43855806fe5a018eb02beec2493f9743f"})))}};a.style=r;export{a as z_myz_card_info};
2
+ //# sourceMappingURL=p-707e5f91.entry.js.map