@zanichelli/albe-web-components 7.6.0-RC1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/cjs/{index-10e0d8b7.js → index-b7c319f2.js} +0 -6
  2. package/dist/cjs/index-e3299e0a.js +4 -8
  3. package/dist/cjs/index.cjs.js +2 -8
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-dd90aed2.js → utils-38f8555a.js} +1 -1
  6. package/dist/cjs/{utils-3b4947cd.js → utils-938e5834.js} +1 -1
  7. package/dist/cjs/web-components-library.cjs.js +1 -1
  8. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  9. package/dist/cjs/z-app-header_11.cjs.entry.js +2 -2
  10. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  11. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  12. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  13. package/dist/cjs/z-card.cjs.entry.js +1 -1
  14. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  15. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  16. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  17. package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
  18. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  19. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  20. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
  21. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  22. package/dist/cjs/z-file.cjs.entry.js +1 -1
  23. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  24. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  25. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  26. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  27. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  28. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  29. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  30. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  31. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  32. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  33. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  34. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  35. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  36. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  37. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  38. package/dist/cjs/z-range-picker.cjs.entry.js +2 -2
  39. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  40. package/dist/cjs/z-select.cjs.entry.js +2 -2
  41. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  42. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  43. package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
  44. package/dist/cjs/z-table-header.cjs.entry.js +2 -2
  45. package/dist/cjs/z-table-row.cjs.entry.js +1 -1
  46. package/dist/cjs/z-table.cjs.entry.js +1 -1
  47. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  48. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  49. package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
  50. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  51. package/dist/collection/beans/index.js +0 -6
  52. package/dist/collection/collection-manifest.json +0 -1
  53. package/dist/esm/{index-c53ca6bc.js → index-7e4df1be.js} +1 -7
  54. package/dist/esm/index-a2ca4b97.js +4 -8
  55. package/dist/esm/index.js +2 -2
  56. package/dist/esm/loader.js +1 -1
  57. package/dist/esm/{utils-4db4ed1f.js → utils-825aed23.js} +1 -1
  58. package/dist/esm/{utils-412ebe25.js → utils-af924ea4.js} +1 -1
  59. package/dist/esm/web-components-library.js +1 -1
  60. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  61. package/dist/esm/z-app-header_11.entry.js +2 -2
  62. package/dist/esm/z-aria-alert.entry.js +1 -1
  63. package/dist/esm/z-avatar.entry.js +1 -1
  64. package/dist/esm/z-breadcrumb.entry.js +2 -2
  65. package/dist/esm/z-card.entry.js +1 -1
  66. package/dist/esm/z-carousel.entry.js +1 -1
  67. package/dist/esm/z-chip.entry.js +2 -2
  68. package/dist/esm/z-combobox.entry.js +2 -2
  69. package/dist/esm/z-contextual-menu.entry.js +1 -1
  70. package/dist/esm/z-cover-hero.entry.js +1 -1
  71. package/dist/esm/z-date-picker.entry.js +2 -2
  72. package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
  73. package/dist/esm/z-file-upload.entry.js +2 -2
  74. package/dist/esm/z-file.entry.js +1 -1
  75. package/dist/esm/z-info-reveal.entry.js +1 -1
  76. package/dist/esm/z-messages-pocket.entry.js +1 -1
  77. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  78. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  79. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  80. package/dist/esm/z-myz-card-info.entry.js +2 -2
  81. package/dist/esm/z-myz-card_4.entry.js +1 -1
  82. package/dist/esm/z-myz-list-item.entry.js +2 -2
  83. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  84. package/dist/esm/z-navigation-tab.entry.js +1 -1
  85. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  86. package/dist/esm/z-otp.entry.js +1 -1
  87. package/dist/esm/z-pagination.entry.js +1 -1
  88. package/dist/esm/z-pocket_3.entry.js +2 -2
  89. package/dist/esm/z-popover.entry.js +1 -1
  90. package/dist/esm/z-range-picker.entry.js +2 -2
  91. package/dist/esm/z-section-title.entry.js +1 -1
  92. package/dist/esm/z-select.entry.js +2 -2
  93. package/dist/esm/z-skip-to-content.entry.js +2 -2
  94. package/dist/esm/z-slideshow.entry.js +2 -2
  95. package/dist/esm/z-table-cell.entry.js +1 -1
  96. package/dist/esm/z-table-header.entry.js +2 -2
  97. package/dist/esm/z-table-row.entry.js +1 -1
  98. package/dist/esm/z-table.entry.js +1 -1
  99. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  100. package/dist/esm/z-toast-notification.entry.js +1 -1
  101. package/dist/esm/z-toggle-switch.entry.js +2 -2
  102. package/dist/esm/z-tooltip.entry.js +1 -1
  103. package/dist/types/beans/index.d.ts +0 -5
  104. package/dist/types/components/buttons/z-button/index.d.ts +0 -0
  105. package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -0
  106. package/dist/types/components/buttons/z-chip/index.d.ts +0 -0
  107. package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -0
  108. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
  109. package/dist/types/components/date-picker/utils.d.ts +0 -0
  110. package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
  111. package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
  112. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
  113. package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
  114. package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
  115. package/dist/types/components/icons/icons.d.ts +0 -0
  116. package/dist/types/components/icons/z-icon/index.d.ts +0 -0
  117. package/dist/types/components/index.d.ts +0 -0
  118. package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
  119. package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
  120. package/dist/types/components/inputs/z-combobox/index.d.ts +0 -0
  121. package/dist/types/components/inputs/z-input/index.d.ts +0 -0
  122. package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
  123. package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -0
  124. package/dist/types/components/inputs/z-select/index.d.ts +0 -0
  125. package/dist/types/components/list/z-list/index.d.ts +0 -0
  126. package/dist/types/components/list/z-list-element/index.d.ts +0 -0
  127. package/dist/types/components/list/z-list-group/index.d.ts +0 -0
  128. package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
  129. package/dist/types/components/logo/z-logo/index.d.ts +0 -0
  130. package/dist/types/components/modal/z-modal/index.d.ts +0 -0
  131. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
  132. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
  133. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
  134. package/dist/types/components/navigation/z-app-header/index.d.ts +0 -0
  135. package/dist/types/components/navigation/z-link/index.d.ts +0 -0
  136. package/dist/types/components/navigation/z-menu/index.d.ts +0 -0
  137. package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -0
  138. package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
  139. package/dist/types/components/notification/z-notification/index.d.ts +0 -0
  140. package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -0
  141. package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
  142. package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
  143. package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
  144. package/dist/types/components/z-aria-alert/index.d.ts +0 -0
  145. package/dist/types/components/z-avatar/index.d.ts +0 -0
  146. package/dist/types/components/z-card/index.d.ts +0 -0
  147. package/dist/types/components/z-carousel/index.d.ts +0 -0
  148. package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
  149. package/dist/types/components/z-cover-hero/index.d.ts +0 -0
  150. package/dist/types/components/z-divider/index.d.ts +0 -0
  151. package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
  152. package/dist/types/components/z-info-reveal/index.d.ts +0 -0
  153. package/dist/types/components/z-offcanvas/index.d.ts +0 -0
  154. package/dist/types/components/z-pagination/index.d.ts +0 -0
  155. package/dist/types/components/z-popover/index.d.ts +0 -0
  156. package/dist/types/components/z-section-title/index.d.ts +0 -0
  157. package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
  158. package/dist/types/components/z-table/z-table/index.d.ts +0 -0
  159. package/dist/types/components/z-table/z-table-body/index.d.ts +0 -0
  160. package/dist/types/components/z-table/z-table-cell/index.d.ts +0 -0
  161. package/dist/types/components/z-table/z-table-empty-box/index.d.ts +0 -0
  162. package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +0 -0
  163. package/dist/types/components/z-table/z-table-footer/index.d.ts +0 -0
  164. package/dist/types/components/z-table/z-table-head/index.d.ts +0 -0
  165. package/dist/types/components/z-table/z-table-header/index.d.ts +0 -0
  166. package/dist/types/components/z-table/z-table-header-row/index.d.ts +0 -0
  167. package/dist/types/components/z-table/z-table-row/index.d.ts +0 -0
  168. package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +0 -0
  169. package/dist/types/components/z-tag/index.d.ts +0 -0
  170. package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
  171. package/dist/types/components.d.ts +1 -86
  172. package/dist/types/constants/breakpoints.d.ts +0 -0
  173. package/dist/types/constants/icons.d.ts +0 -0
  174. package/dist/types/index.d.ts +0 -0
  175. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
  176. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
  177. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
  178. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
  179. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
  180. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -0
  181. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
  182. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
  183. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
  184. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
  185. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
  186. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
  187. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
  188. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
  189. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
  190. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
  191. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
  192. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
  193. package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
  194. package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
  195. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
  196. package/dist/types/stencil-public-runtime.d.ts +0 -0
  197. package/dist/types/utils/utils.d.ts +0 -0
  198. package/dist/web-components-library/index.esm.js +1 -1
  199. package/dist/web-components-library/{p-e4d78452.entry.js → p-022854df.entry.js} +1 -1
  200. package/dist/web-components-library/{p-0aa025fa.entry.js → p-0418f9fb.entry.js} +1 -1
  201. package/dist/web-components-library/{p-47c095c2.entry.js → p-073f24c9.entry.js} +1 -1
  202. package/dist/web-components-library/{p-29426408.entry.js → p-079357ba.entry.js} +1 -1
  203. package/dist/web-components-library/{p-dd515f64.entry.js → p-0b822ad0.entry.js} +1 -1
  204. package/dist/web-components-library/{p-fed42db6.entry.js → p-0b942851.entry.js} +1 -1
  205. package/{www/build/p-d8ea70ed.entry.js → dist/web-components-library/p-0c0735e5.entry.js} +1 -1
  206. package/dist/web-components-library/{p-661905c0.entry.js → p-0eb7cb35.entry.js} +1 -1
  207. package/{www/build/p-095ce6ef.entry.js → dist/web-components-library/p-0fd40ac5.entry.js} +1 -1
  208. package/dist/web-components-library/p-14c2c56c.js +1 -0
  209. package/dist/web-components-library/p-1cc1a418.js +1 -0
  210. package/dist/web-components-library/{p-89d048ff.entry.js → p-227667b6.entry.js} +1 -1
  211. package/dist/web-components-library/{p-b0141c4d.entry.js → p-27100ea1.entry.js} +1 -1
  212. package/{www/build/p-78c5f1a4.entry.js → dist/web-components-library/p-2e7da553.entry.js} +1 -1
  213. package/{www/build/p-c59c6c78.entry.js → dist/web-components-library/p-2f547970.entry.js} +1 -1
  214. package/dist/web-components-library/{p-3ea868e0.entry.js → p-39595f7a.entry.js} +1 -1
  215. package/dist/web-components-library/{p-81e6e4c8.entry.js → p-39863e41.entry.js} +1 -1
  216. package/dist/web-components-library/{p-8ff9de86.entry.js → p-447a7c51.entry.js} +1 -1
  217. package/dist/web-components-library/{p-03ee7c14.entry.js → p-4610db36.entry.js} +1 -1
  218. package/dist/web-components-library/{p-a0345d42.entry.js → p-4b9882b3.entry.js} +1 -1
  219. package/dist/web-components-library/{p-0f8f488c.entry.js → p-5825ef19.entry.js} +1 -1
  220. package/dist/web-components-library/{p-5aee5484.entry.js → p-613d6de7.entry.js} +1 -1
  221. package/dist/web-components-library/{p-e7c7ac3d.entry.js → p-6be6a2f4.entry.js} +1 -1
  222. package/{www/build/p-bee6bf99.entry.js → dist/web-components-library/p-7ac431a5.entry.js} +1 -1
  223. package/dist/web-components-library/{p-aa228ddb.entry.js → p-8f7680ef.entry.js} +1 -1
  224. package/dist/web-components-library/{p-64fa04a0.entry.js → p-910ca14c.entry.js} +1 -1
  225. package/dist/web-components-library/p-98dcf178.entry.js +1 -0
  226. package/dist/web-components-library/{p-757c4b4d.entry.js → p-98df8460.entry.js} +1 -1
  227. package/{www/build/p-482c478a.entry.js → dist/web-components-library/p-9a1b8000.entry.js} +1 -1
  228. package/{www/build/p-d00cf0ff.entry.js → dist/web-components-library/p-9e400a11.entry.js} +1 -1
  229. package/dist/web-components-library/{p-9b4b0fbb.entry.js → p-9fee86aa.entry.js} +1 -1
  230. package/dist/web-components-library/{p-0e92e0d9.entry.js → p-a19a70a0.entry.js} +1 -1
  231. package/{www/build/p-e663af8b.entry.js → dist/web-components-library/p-b44030d0.entry.js} +1 -1
  232. package/dist/web-components-library/{p-ab1799fe.entry.js → p-cd456854.entry.js} +1 -1
  233. package/dist/web-components-library/{p-d4afc10f.entry.js → p-cfc9cf52.entry.js} +1 -1
  234. package/{www/build/p-856c6f33.entry.js → dist/web-components-library/p-d966a1b9.entry.js} +1 -1
  235. package/dist/web-components-library/{p-800ca36a.entry.js → p-d98d3cf1.entry.js} +1 -1
  236. package/dist/web-components-library/{p-374d6f57.entry.js → p-dcad3493.entry.js} +1 -1
  237. package/dist/web-components-library/{p-d9c76001.entry.js → p-e606b019.entry.js} +1 -1
  238. package/dist/web-components-library/{p-6a459468.entry.js → p-ec5242da.entry.js} +1 -1
  239. package/{www/build/p-c18b8fb3.js → dist/web-components-library/p-ee918c17.js} +1 -1
  240. package/{www/build/p-f3fce575.entry.js → dist/web-components-library/p-f5a247b9.entry.js} +1 -1
  241. package/dist/web-components-library/{p-e4e5a652.entry.js → p-f8f862f9.entry.js} +1 -1
  242. package/{www/build/p-a2d11471.entry.js → dist/web-components-library/p-fa7a11fd.entry.js} +1 -1
  243. package/dist/web-components-library/{p-e41e28f7.entry.js → p-fd8eae32.entry.js} +1 -1
  244. package/dist/web-components-library/{p-d96d4f30.entry.js → p-ff838f90.entry.js} +1 -1
  245. package/dist/web-components-library/web-components-library.css +0 -0
  246. package/dist/web-components-library/web-components-library.esm.js +1 -1
  247. package/loader/cdn.js +0 -0
  248. package/loader/index.cjs.js +0 -0
  249. package/loader/index.d.ts +0 -0
  250. package/loader/index.es2017.js +0 -0
  251. package/loader/index.js +0 -0
  252. package/loader/package.json +0 -0
  253. package/package.json +1 -1
  254. package/react/components.d.ts +0 -1
  255. package/react/components.js +2 -3
  256. package/react/components.js.map +1 -1
  257. package/www/build/index.esm.js +1 -1
  258. package/www/build/{p-e4d78452.entry.js → p-022854df.entry.js} +1 -1
  259. package/www/build/{p-0aa025fa.entry.js → p-0418f9fb.entry.js} +1 -1
  260. package/www/build/{p-47c095c2.entry.js → p-073f24c9.entry.js} +1 -1
  261. package/www/build/{p-29426408.entry.js → p-079357ba.entry.js} +1 -1
  262. package/www/build/{p-dd515f64.entry.js → p-0b822ad0.entry.js} +1 -1
  263. package/www/build/{p-fed42db6.entry.js → p-0b942851.entry.js} +1 -1
  264. package/{dist/web-components-library/p-d8ea70ed.entry.js → www/build/p-0c0735e5.entry.js} +1 -1
  265. package/www/build/{p-661905c0.entry.js → p-0eb7cb35.entry.js} +1 -1
  266. package/{dist/web-components-library/p-095ce6ef.entry.js → www/build/p-0fd40ac5.entry.js} +1 -1
  267. package/www/build/p-14c2c56c.js +1 -0
  268. package/www/build/p-1cc1a418.js +1 -0
  269. package/www/build/{p-89d048ff.entry.js → p-227667b6.entry.js} +1 -1
  270. package/www/build/{p-b0141c4d.entry.js → p-27100ea1.entry.js} +1 -1
  271. package/{dist/web-components-library/p-78c5f1a4.entry.js → www/build/p-2e7da553.entry.js} +1 -1
  272. package/{dist/web-components-library/p-c59c6c78.entry.js → www/build/p-2f547970.entry.js} +1 -1
  273. package/www/build/{p-3ea868e0.entry.js → p-39595f7a.entry.js} +1 -1
  274. package/www/build/{p-81e6e4c8.entry.js → p-39863e41.entry.js} +1 -1
  275. package/www/build/{p-8ff9de86.entry.js → p-447a7c51.entry.js} +1 -1
  276. package/www/build/{p-03ee7c14.entry.js → p-4610db36.entry.js} +1 -1
  277. package/www/build/{p-a0345d42.entry.js → p-4b9882b3.entry.js} +1 -1
  278. package/www/build/{p-0f8f488c.entry.js → p-5825ef19.entry.js} +1 -1
  279. package/www/build/{p-5aee5484.entry.js → p-613d6de7.entry.js} +1 -1
  280. package/www/build/{p-e7c7ac3d.entry.js → p-6be6a2f4.entry.js} +1 -1
  281. package/{dist/web-components-library/p-bee6bf99.entry.js → www/build/p-7ac431a5.entry.js} +1 -1
  282. package/www/build/{p-aa228ddb.entry.js → p-8f7680ef.entry.js} +1 -1
  283. package/www/build/{p-64fa04a0.entry.js → p-910ca14c.entry.js} +1 -1
  284. package/www/build/p-98dcf178.entry.js +1 -0
  285. package/www/build/{p-757c4b4d.entry.js → p-98df8460.entry.js} +1 -1
  286. package/{dist/web-components-library/p-482c478a.entry.js → www/build/p-9a1b8000.entry.js} +1 -1
  287. package/{dist/web-components-library/p-d00cf0ff.entry.js → www/build/p-9e400a11.entry.js} +1 -1
  288. package/www/build/{p-9b4b0fbb.entry.js → p-9fee86aa.entry.js} +1 -1
  289. package/www/build/{p-0e92e0d9.entry.js → p-a19a70a0.entry.js} +1 -1
  290. package/{dist/web-components-library/p-e663af8b.entry.js → www/build/p-b44030d0.entry.js} +1 -1
  291. package/www/build/p-cb047349.js +1 -0
  292. package/www/build/{p-ab1799fe.entry.js → p-cd456854.entry.js} +1 -1
  293. package/www/build/{p-d4afc10f.entry.js → p-cfc9cf52.entry.js} +1 -1
  294. package/{dist/web-components-library/p-856c6f33.entry.js → www/build/p-d966a1b9.entry.js} +1 -1
  295. package/www/build/{p-800ca36a.entry.js → p-d98d3cf1.entry.js} +1 -1
  296. package/www/build/{p-374d6f57.entry.js → p-dcad3493.entry.js} +1 -1
  297. package/www/build/{p-d9c76001.entry.js → p-e606b019.entry.js} +1 -1
  298. package/www/build/{p-6a459468.entry.js → p-ec5242da.entry.js} +1 -1
  299. package/{dist/web-components-library/p-c18b8fb3.js → www/build/p-ee918c17.js} +1 -1
  300. package/www/build/p-f39bb490.css +2 -0
  301. package/{dist/web-components-library/p-f3fce575.entry.js → www/build/p-f5a247b9.entry.js} +1 -1
  302. package/www/build/{p-e4e5a652.entry.js → p-f8f862f9.entry.js} +1 -1
  303. package/{dist/web-components-library/p-a2d11471.entry.js → www/build/p-fa7a11fd.entry.js} +1 -1
  304. package/www/build/{p-e41e28f7.entry.js → p-fd8eae32.entry.js} +1 -1
  305. package/www/build/{p-d96d4f30.entry.js → p-ff838f90.entry.js} +1 -1
  306. package/www/build/web-components-library.css +0 -0
  307. package/www/build/web-components-library.esm.js +1 -1
  308. package/www/build/web-components-library.js +0 -0
  309. package/www/host.config.json +0 -0
  310. package/www/index.html +1 -1
  311. package/CHANGELOG.md +0 -2575
  312. package/dist/cjs/z-book-card.cjs.entry.js +0 -115
  313. package/dist/collection/components/z-book-card/index.js +0 -308
  314. package/dist/collection/components/z-book-card/styles.css +0 -337
  315. package/dist/esm/z-book-card.entry.js +0 -111
  316. package/dist/types/components/z-book-card/index.d.ts +0 -75
  317. package/dist/web-components-library/p-8c3eeb55.js +0 -1
  318. package/dist/web-components-library/p-e0fb4e05.entry.js +0 -1
  319. package/dist/web-components-library/p-e936bf5f.entry.js +0 -1
  320. package/dist/web-components-library/p-f0cd78f2.js +0 -1
  321. package/src-react/index.ts +0 -1
  322. package/www/build/p-8c3eeb55.js +0 -1
  323. package/www/build/p-9e1e6212.js +0 -129
  324. package/www/build/p-bc2bd463.css +0 -1617
  325. package/www/build/p-e0fb4e05.entry.js +0 -1
  326. package/www/build/p-e936bf5f.entry.js +0 -1
  327. package/www/build/p-f0cd78f2.js +0 -1
  328. package/www/pages/book-cards.html +0 -269
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { AlertType, LicenseType } from "./beans/index";
9
- import { AvatarSize, BookCardVariant, BreadcrumbHomepageVariant, BreadcrumbPathStyle, ButtonSize, ButtonType, ButtonVariant, CardVariant, CarouselArrowsPosition, CarouselProgressMode, ComboItem, ControlSize, CoverHeroContentPosition, CoverHeroVariant, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, InfoRevealPosition, InputStatus, InputType, LabelPosition, ListDividerType, ListSize, ListType, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariant, PocketStatus, PopoverPosition, SearchbarItem, SelectItem, Size, SkipToContentLink, SortDirection, ThemeVariant, ToastNotification, ToastNotificationPosition, ToastNotificationTransition, TransitionDirection, ZAriaAlertMode, ZChipType, ZDatePickerMode, ZFileUploadType, ZRangePickerMode, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
9
+ import { AvatarSize, BreadcrumbHomepageVariant, BreadcrumbPathStyle, ButtonSize, ButtonType, ButtonVariant, CardVariant, CarouselArrowsPosition, CarouselProgressMode, ComboItem, ControlSize, CoverHeroContentPosition, CoverHeroVariant, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, InfoRevealPosition, InputStatus, InputType, LabelPosition, ListDividerType, ListSize, ListType, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariant, PocketStatus, PopoverPosition, SearchbarItem, SelectItem, Size, SkipToContentLink, SortDirection, ThemeVariant, ToastNotification, ToastNotificationPosition, ToastNotificationTransition, TransitionDirection, ZAriaAlertMode, ZChipType, ZDatePickerMode, ZFileUploadType, ZRangePickerMode, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
10
10
  import { ListItem } from "./beans/index.js";
11
11
  import { ZTypographyLevels } from "./deprecated/typography/z-typography/index";
12
12
  export namespace Components {
@@ -98,44 +98,6 @@ export namespace Components {
98
98
  */
99
99
  "variant": "regular" | "semibold";
100
100
  }
101
- interface ZBookCard {
102
- /**
103
- * [optional] Authors
104
- */
105
- "authors"?: string;
106
- /**
107
- * Cover URL
108
- */
109
- "cover": string;
110
- /**
111
- * [optional] Fallback cover URL
112
- */
113
- "fallbackCover"?: string;
114
- /**
115
- * [optional] Main ISBN
116
- */
117
- "isbn"?: string;
118
- /**
119
- * Card main title
120
- */
121
- "operaTitle": string;
122
- /**
123
- * [optional] [accessibility] Card title HTML tag
124
- */
125
- "operaTitleTag"?: string;
126
- /**
127
- * [optional] Ribbon label
128
- */
129
- "ribbon"?: string;
130
- /**
131
- * Card variant: expanded, compact, search
132
- */
133
- "variant": BookCardVariant;
134
- /**
135
- * [optional] Card subtitle
136
- */
137
- "volumeTitle"?: string;
138
- }
139
101
  interface ZBreadcrumb {
140
102
  /**
141
103
  * [optional] Variant of first node
@@ -2051,12 +2013,6 @@ declare global {
2051
2013
  prototype: HTMLZBodyElement;
2052
2014
  new (): HTMLZBodyElement;
2053
2015
  };
2054
- interface HTMLZBookCardElement extends Components.ZBookCard, HTMLStencilElement {
2055
- }
2056
- var HTMLZBookCardElement: {
2057
- prototype: HTMLZBookCardElement;
2058
- new (): HTMLZBookCardElement;
2059
- };
2060
2016
  interface HTMLZBreadcrumbElement extends Components.ZBreadcrumb, HTMLStencilElement {
2061
2017
  }
2062
2018
  var HTMLZBreadcrumbElement: {
@@ -2562,7 +2518,6 @@ declare global {
2562
2518
  "z-aria-alert": HTMLZAriaAlertElement;
2563
2519
  "z-avatar": HTMLZAvatarElement;
2564
2520
  "z-body": HTMLZBodyElement;
2565
- "z-book-card": HTMLZBookCardElement;
2566
2521
  "z-breadcrumb": HTMLZBreadcrumbElement;
2567
2522
  "z-button": HTMLZButtonElement;
2568
2523
  "z-button-sort": HTMLZButtonSortElement;
@@ -2741,44 +2696,6 @@ declare namespace LocalJSX {
2741
2696
  */
2742
2697
  "variant"?: "regular" | "semibold";
2743
2698
  }
2744
- interface ZBookCard {
2745
- /**
2746
- * [optional] Authors
2747
- */
2748
- "authors"?: string;
2749
- /**
2750
- * Cover URL
2751
- */
2752
- "cover"?: string;
2753
- /**
2754
- * [optional] Fallback cover URL
2755
- */
2756
- "fallbackCover"?: string;
2757
- /**
2758
- * [optional] Main ISBN
2759
- */
2760
- "isbn"?: string;
2761
- /**
2762
- * Card main title
2763
- */
2764
- "operaTitle"?: string;
2765
- /**
2766
- * [optional] [accessibility] Card title HTML tag
2767
- */
2768
- "operaTitleTag"?: string;
2769
- /**
2770
- * [optional] Ribbon label
2771
- */
2772
- "ribbon"?: string;
2773
- /**
2774
- * Card variant: expanded, compact, search
2775
- */
2776
- "variant"?: BookCardVariant;
2777
- /**
2778
- * [optional] Card subtitle
2779
- */
2780
- "volumeTitle"?: string;
2781
- }
2782
2699
  interface ZBreadcrumb {
2783
2700
  /**
2784
2701
  * [optional] Variant of first node
@@ -4687,7 +4604,6 @@ declare namespace LocalJSX {
4687
4604
  "z-aria-alert": ZAriaAlert;
4688
4605
  "z-avatar": ZAvatar;
4689
4606
  "z-body": ZBody;
4690
- "z-book-card": ZBookCard;
4691
4607
  "z-breadcrumb": ZBreadcrumb;
4692
4608
  "z-button": ZButton;
4693
4609
  "z-button-sort": ZButtonSort;
@@ -4783,7 +4699,6 @@ declare module "@stencil/core" {
4783
4699
  "z-aria-alert": LocalJSX.ZAriaAlert & JSXBase.HTMLAttributes<HTMLZAriaAlertElement>;
4784
4700
  "z-avatar": LocalJSX.ZAvatar & JSXBase.HTMLAttributes<HTMLZAvatarElement>;
4785
4701
  "z-body": LocalJSX.ZBody & JSXBase.HTMLAttributes<HTMLZBodyElement>;
4786
- "z-book-card": LocalJSX.ZBookCard & JSXBase.HTMLAttributes<HTMLZBookCardElement>;
4787
4702
  "z-breadcrumb": LocalJSX.ZBreadcrumb & JSXBase.HTMLAttributes<HTMLZBreadcrumbElement>;
4788
4703
  "z-button": LocalJSX.ZButton & JSXBase.HTMLAttributes<HTMLZButtonElement>;
4789
4704
  "z-button-sort": LocalJSX.ZButtonSort & JSXBase.HTMLAttributes<HTMLZButtonSortElement>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- import{c as $}from"./p-f0cd78f2.js";export{p as AlertType,A as AvatarSize,Y as BookCardVariant,X as BreadcrumbHomepageVariant,W as BreadcrumbPathStyle,d as ButtonSize,c as ButtonType,B as ButtonVariant,C as CardVariant,U as CarouselArrowsPosition,V as CarouselProgressMode,e as ControlSize,R as CoverHeroContentPosition,Q as CoverHeroVariant,q as Device,h as DividerOrientation,D as DividerSize,k as ExpandableListButtonAlign,E as ExpandableListStyle,M as InfoRevealPosition,f as InputStatus,I as InputType,g as KeyboardCode,K as KeyboardKeyCode,l as LabelPosition,L as LicenseType,m as ListDividerType,i as ListSize,n as ListType,b as NavigationTabsKeyboardEvents,N as NavigationTabsOrientation,a as NavigationTabsSize,o as NotificationType,O as OffCanvasVariant,r as PocketStatus,P as PopoverPosition,j as Size,S as SortDirection,T as ThemeVariant,s as ToastNotification,u as ToastNotificationPosition,t as ToastNotificationTransition,w as TransitionDirection,v as ZAriaAlertMode,y as ZChipType,F as ZDatePickerMode,G as ZDatePickerModeValue,H as ZDatePickerPosition,x as ZFileUploadType,J as ZRangePickerMode,z as ZSectionTitleDividerPosition,Z as ZTableRowExpandedType}from"./p-8c3eeb55.js";import"./p-b497e33e.js";const _={colorFromId:$};export{_ as Utils}
1
+ import{c as Y}from"./p-14c2c56c.js";export{p as AlertType,A as AvatarSize,X as BreadcrumbHomepageVariant,W as BreadcrumbPathStyle,d as ButtonSize,c as ButtonType,B as ButtonVariant,C as CardVariant,U as CarouselArrowsPosition,V as CarouselProgressMode,e as ControlSize,R as CoverHeroContentPosition,Q as CoverHeroVariant,q as Device,h as DividerOrientation,D as DividerSize,k as ExpandableListButtonAlign,E as ExpandableListStyle,M as InfoRevealPosition,f as InputStatus,I as InputType,g as KeyboardCode,K as KeyboardKeyCode,l as LabelPosition,L as LicenseType,m as ListDividerType,i as ListSize,n as ListType,b as NavigationTabsKeyboardEvents,N as NavigationTabsOrientation,a as NavigationTabsSize,o as NotificationType,O as OffCanvasVariant,r as PocketStatus,P as PopoverPosition,j as Size,S as SortDirection,T as ThemeVariant,s as ToastNotification,u as ToastNotificationPosition,t as ToastNotificationTransition,w as TransitionDirection,v as ZAriaAlertMode,y as ZChipType,F as ZDatePickerMode,G as ZDatePickerModeValue,H as ZDatePickerPosition,x as ZFileUploadType,J as ZRangePickerMode,z as ZSectionTitleDividerPosition,Z as ZTableRowExpandedType}from"./p-1cc1a418.js";import"./p-b497e33e.js";const $={colorFromId:Y};export{$ as Utils}
@@ -1 +1 @@
1
- import{r as t,h as o,H as a,g as e}from"./p-d17ebc2f.js";import{C as r}from"./p-8c3eeb55.js";const i=class{constructor(o){t(this,o),this.showShadow=!1,this.clickable=!1}componentWillLoad(){this.hasCoverImage=null!==this.host.querySelector('[slot="cover"]')}renderColorCoverCard(){return[o("div",{class:"cover-container"},o("div",{class:"color-cover"},o("div",{class:"cover-content"},o("slot",{name:"metadata"}),o("slot",{name:"title"})))),o("div",{class:"content"},o("slot",{name:"text"}),o("div",{class:"actions"},o("slot",{name:"action"})))]}renderContentDiv(){return o("div",{class:"content"},o("slot",{name:"metadata"}),o("slot",{name:"title"}),o("slot",{name:"text"}),o("div",{class:"actions"},o("slot",{name:"action"})))}render(){return this.variant===r.TEXT?o(a,null,this.renderContentDiv()):this.variant===r.OVERLAY||this.hasCoverImage?o(a,null,o("div",{class:"cover-container"},this.hasCoverImage&&[o("slot",{name:"cover"}),this.variant!==r.OVERLAY&&this.coverIcon&&o("z-icon",{name:this.coverIcon})],!this.hasCoverImage&&o("div",{class:"color-cover"})),this.renderContentDiv()):o(a,null,this.renderColorCoverCard())}get host(){return e(this)}};i.style=':host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;--z-card--text-padding:calc(var(--space-unit) * 2) var(--space-unit);position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant="overlay"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot="cover"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot="metadata"]),::slotted([slot="title"]),::slotted([slot="text"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot="title"]:not(:last-child)),::slotted([slot="text"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot="title"])::before{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;content:""}::slotted([slot="metadata"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot="title"]){margin:0;color:inherit;font-size:inherit;font-weight:var(--font-sb);-webkit-line-clamp:2;text-decoration:none}::slotted([slot="text"]){margin:0;-webkit-line-clamp:3}.actions{position:relative;z-index:2;display:flex;width:fit-content;flex-direction:row;align-items:center}::slotted([slot="action"]:not(:last-child)){margin-right:calc(var(--space-unit) * 2)}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible)::before{box-shadow:var(--shadow-focus-primary)}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible){outline:none}:host([variant="text"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([show-shadow])>.content,:host([variant="border"])>.content,:host([variant="shadow"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant="text"])>.content{padding:var(--z-card--text-padding)}:host([variant="border"]) .actions,:host([variant="shadow"]) .actions{margin-top:auto}:host([variant="border"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant="border"][clickable]:hover)>.content{background:var(--color-background)}:host([variant="border"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="border"][clickable]:active){border-color:transparent}:host([variant="shadow"]),:host([show-shadow]){box-shadow:var(--shadow-2)}:host([variant="shadow"][clickable]:hover),:host([clickable][show-shadow]:hover){box-shadow:var(--shadow-4)}:host([variant="shadow"][clickable]:focus:focus-visible),:host([clickable][show-shadow]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="shadow"][clickable]:active),:host([clickable][show-shadow]:active){box-shadow:none}:host([variant="overlay"]) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}';export{i as z_card}
1
+ import{r as t,h as o,H as a,g as e}from"./p-d17ebc2f.js";import{C as r}from"./p-1cc1a418.js";const i=class{constructor(o){t(this,o),this.showShadow=!1,this.clickable=!1}componentWillLoad(){this.hasCoverImage=null!==this.host.querySelector('[slot="cover"]')}renderColorCoverCard(){return[o("div",{class:"cover-container"},o("div",{class:"color-cover"},o("div",{class:"cover-content"},o("slot",{name:"metadata"}),o("slot",{name:"title"})))),o("div",{class:"content"},o("slot",{name:"text"}),o("div",{class:"actions"},o("slot",{name:"action"})))]}renderContentDiv(){return o("div",{class:"content"},o("slot",{name:"metadata"}),o("slot",{name:"title"}),o("slot",{name:"text"}),o("div",{class:"actions"},o("slot",{name:"action"})))}render(){return this.variant===r.TEXT?o(a,null,this.renderContentDiv()):this.variant===r.OVERLAY||this.hasCoverImage?o(a,null,o("div",{class:"cover-container"},this.hasCoverImage&&[o("slot",{name:"cover"}),this.variant!==r.OVERLAY&&this.coverIcon&&o("z-icon",{name:this.coverIcon})],!this.hasCoverImage&&o("div",{class:"color-cover"})),this.renderContentDiv()):o(a,null,this.renderColorCoverCard())}get host(){return e(this)}};i.style=':host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;--z-card--text-padding:calc(var(--space-unit) * 2) var(--space-unit);position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant="overlay"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot="cover"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot="metadata"]),::slotted([slot="title"]),::slotted([slot="text"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot="title"]:not(:last-child)),::slotted([slot="text"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot="title"])::before{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;content:""}::slotted([slot="metadata"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot="title"]){margin:0;color:inherit;font-size:inherit;font-weight:var(--font-sb);-webkit-line-clamp:2;text-decoration:none}::slotted([slot="text"]){margin:0;-webkit-line-clamp:3}.actions{position:relative;z-index:2;display:flex;width:fit-content;flex-direction:row;align-items:center}::slotted([slot="action"]:not(:last-child)){margin-right:calc(var(--space-unit) * 2)}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible)::before{box-shadow:var(--shadow-focus-primary)}:host([clickable]) ::slotted([slot="title"]:focus:focus-visible){outline:none}:host([variant="text"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([show-shadow])>.content,:host([variant="border"])>.content,:host([variant="shadow"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant="text"])>.content{padding:var(--z-card--text-padding)}:host([variant="border"]) .actions,:host([variant="shadow"]) .actions{margin-top:auto}:host([variant="border"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant="border"][clickable]:hover)>.content{background:var(--color-background)}:host([variant="border"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="border"][clickable]:active){border-color:transparent}:host([variant="shadow"]),:host([show-shadow]){box-shadow:var(--shadow-2)}:host([variant="shadow"][clickable]:hover),:host([clickable][show-shadow]:hover){box-shadow:var(--shadow-4)}:host([variant="shadow"][clickable]:focus:focus-visible),:host([clickable][show-shadow]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant="shadow"][clickable]:active),:host([clickable][show-shadow]:active){box-shadow:none}:host([variant="overlay"]) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}';export{i as z_card}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i}from"./p-d17ebc2f.js";import{A as a}from"./p-8c3eeb55.js";const e=class{constructor(s){var i,e;t(this,s),this.size=a.MEDIUM,this.textColor="text-white",this.backgroundColor="bg-grey-700",0===(null===(i=this.text)||void 0===i?void 0:i.length)&&0===(null===(e=this.image)||void 0===e?void 0:e.length)&&console.warn("z-avatar must contain at least one prop between text and image")}getTextSize(){return this.size===a.SMALL?"5":this.size===a.MEDIUM?"4":this.size===a.LARGE?"2":void 0}render(){return s(i,{class:{[this.size]:!0,[`body-${this.getTextSize()}-sb`]:!0},style:{color:`var(--${this.textColor})`,backgroundColor:`var(--${this.backgroundColor})`}},this.text&&!this.image&&s("span",null,this.text.substring(0,2)),this.image&&s("img",{src:this.image,onError:()=>this.image=""}))}};e.style=":host{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background-color:var(--bg-grey-700);border-radius:50%;font-family:var(--font-family-sans);text-transform:uppercase}:host(.small),:host(.small)>img{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3)}:host(.medium),:host(.medium)>img{width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4)}:host(.large),:host(.large)>img{width:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 5)}:host>img{object-fit:cover}";export{e as z_avatar}
1
+ import{r as t,h as s,H as i}from"./p-d17ebc2f.js";import{A as a}from"./p-1cc1a418.js";const e=class{constructor(s){var i,e;t(this,s),this.size=a.MEDIUM,this.textColor="text-white",this.backgroundColor="bg-grey-700",0===(null===(i=this.text)||void 0===i?void 0:i.length)&&0===(null===(e=this.image)||void 0===e?void 0:e.length)&&console.warn("z-avatar must contain at least one prop between text and image")}getTextSize(){return this.size===a.SMALL?"5":this.size===a.MEDIUM?"4":this.size===a.LARGE?"2":void 0}render(){return s(i,{class:{[this.size]:!0,[`body-${this.getTextSize()}-sb`]:!0},style:{color:`var(--${this.textColor})`,backgroundColor:`var(--${this.backgroundColor})`}},this.text&&!this.image&&s("span",null,this.text.substring(0,2)),this.image&&s("img",{src:this.image,onError:()=>this.image=""}))}};e.style=":host{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background-color:var(--bg-grey-700);border-radius:50%;font-family:var(--font-family-sans);text-transform:uppercase}:host(.small),:host(.small)>img{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3)}:host(.medium),:host(.medium)>img{width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4)}:host(.large),:host(.large)>img{width:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 5)}:host>img{object-fit:cover}";export{e as z_avatar}
@@ -1 +1 @@
1
- import{r as t,h as e,H as i,g as o}from"./p-d17ebc2f.js";import{z as s,D as r}from"./p-8c3eeb55.js";const l=class{constructor(e){t(this,e),this.dividerPosition=s.BEFORE,this.uppercase=!0}componentWillRender(){this.hasSecondaryTitle=!!this.host.querySelector("[slot=secondary-title]")}render(){return e(i,null,e("slot",{name:"secondary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.BEFORE&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}),e("slot",{name:"primary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.AFTER&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}))}get host(){return o(this)}};l.style=':host{--z-section-title--divider-color:var(--red500);display:flex;width:fit-content;flex-direction:column;align-items:flex-start;font-family:var(--font-family-sans)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot="secondary-title"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5rem;text-transform:uppercase}::slotted([slot="primary-title"]){font-size:var(--font-size-6);font-weight:var(--font-sb);line-height:2rem}:host([uppercase]:not([uppercase="false"])) ::slotted([slot="primary-title"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot="primary-title"]){font-size:var(--font-size-7);line-height:2.25rem}}';export{l as z_section_title}
1
+ import{r as t,h as e,H as i,g as o}from"./p-d17ebc2f.js";import{z as s,D as r}from"./p-1cc1a418.js";const l=class{constructor(e){t(this,e),this.dividerPosition=s.BEFORE,this.uppercase=!0}componentWillRender(){this.hasSecondaryTitle=!!this.host.querySelector("[slot=secondary-title]")}render(){return e(i,null,e("slot",{name:"secondary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.BEFORE&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}),e("slot",{name:"primary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.AFTER&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}))}get host(){return o(this)}};l.style=':host{--z-section-title--divider-color:var(--red500);display:flex;width:fit-content;flex-direction:column;align-items:flex-start;font-family:var(--font-family-sans)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot="secondary-title"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5rem;text-transform:uppercase}::slotted([slot="primary-title"]){font-size:var(--font-size-6);font-weight:var(--font-sb);line-height:2rem}:host([uppercase]:not([uppercase="false"])) ::slotted([slot="primary-title"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot="primary-title"]){font-size:var(--font-size-7);line-height:2.25rem}}';export{l as z_section_title}
@@ -1 +1 @@
1
- import{r as t,h as o,g as s}from"./p-d17ebc2f.js";import{u as i}from"./p-8c3eeb55.js";const n=class{constructor(o){t(this,o),this.position=i.TOP_RIGHT,this.newestontop=!0}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse()),t?this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler):this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}componentWillLoad(){this.newestontop&&this.handleNewestOnTop()}handleNewestOnTop(){this.notificationArray=Array.from(this.hostElement.children),this.hostElement.append(...this.notificationArray.reverse()),this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler)}slotChangeHandler(){const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));t&&t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove(),this.hostElement.prepend(o)}))}render(){return o("slot",{name:"toasts"})}get hostElement(){return s(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};n.style=':host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position="bottom-centre"]),:host([position="bottom-right"]),:host([position="bottom-left"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="top-left"]),:host([position="top-right"]),:host([position="top-centre"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position="top-centre"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position="top-left"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position="top-right"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position="bottom-centre"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position="bottom-right"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="bottom-left"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}';export{n as z_toast_notification_list}
1
+ import{r as t,h as o,g as s}from"./p-d17ebc2f.js";import{u as i}from"./p-1cc1a418.js";const n=class{constructor(o){t(this,o),this.position=i.TOP_RIGHT,this.newestontop=!0}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse()),t?this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler):this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}componentWillLoad(){this.newestontop&&this.handleNewestOnTop()}handleNewestOnTop(){this.notificationArray=Array.from(this.hostElement.children),this.hostElement.append(...this.notificationArray.reverse()),this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler)}slotChangeHandler(){const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));t&&t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove(),this.hostElement.prepend(o)}))}render(){return o("slot",{name:"toasts"})}get hostElement(){return s(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};n.style=':host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position="bottom-centre"]),:host([position="bottom-right"]),:host([position="bottom-left"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="top-left"]),:host([position="top-right"]),:host([position="top-centre"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position="top-centre"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position="top-left"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position="top-right"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position="bottom-centre"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position="bottom-right"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="bottom-left"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}';export{n as z_toast_notification_list}
@@ -1 +1 @@
1
- import{r as o,h as n,H as a}from"./p-d17ebc2f.js";import{B as i}from"./p-8c3eeb55.js";const t=class{constructor(n){o(this,n),this.hideUnselected=!1,this.collapsed=!1}setAriaCurrent(){Array.from(this.nav.children).forEach((o=>{const n=o instanceof HTMLAnchorElement?o:o.querySelector("a"),a=window.location.href===n.href;n.setAttribute("aria-current",a.toString()),o.toggleAttribute("current",a)}))}toggleCollapsed(){this.collapsed=!this.collapsed}componentDidLoad(){window.addEventListener("hashchange",this.setAriaCurrent.bind(this)),this.setAriaCurrent()}disconnectedCallback(){window.removeEventListener("hashchange",this.setAriaCurrent)}render(){return n(a,{collapsed:this.collapsed},n("z-button",{class:"toggle",variant:i.SECONDARY,icon:this.collapsed?"chevron-up":"chevron-down",onClick:this.toggleCollapsed.bind(this)},"salta a"),n("nav",{ref:o=>this.nav=o},n("slot",null)))}};t.style="html{scroll-behavior:smooth}z-anchor-navigation nav{display:none;flex-direction:column;justify-content:flex-start;row-gap:calc(var(--space-unit) / 2)}z-anchor-navigation[collapsed] nav{display:flex;margin-top:var(--space-unit)}z-anchor-navigation nav a{display:-webkit-box;overflow:clip;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);-webkit-box-orient:vertical;color:inherit;font-weight:inherit;-webkit-line-clamp:2;overflow-clip-margin:content-box;text-decoration:none}z-anchor-navigation nav * a:not(:only-child){padding-right:calc(var(--space-unit) * 5)}@supports not (overflow-clip-margin: content-box){z-anchor-navigation nav a{display:inline-block;overflow:hidden;-webkit-line-clamp:none;text-overflow:ellipsis;white-space:nowrap}}z-anchor-navigation nav>*{position:relative;border-left:var(--border-size-large) solid var(--color-surface04);color:var(--color-text01);font-family:var(--font-family-sans);transition:background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out}z-anchor-navigation nav>[current]{border-left-color:var(--color-primary01);color:var(--color-link-primary);font-weight:var(--font-sb)}z-anchor-navigation nav>*>*:is(z-button,button,z-icon){position:absolute;top:50%;right:0;transform:translateY(-50%);transition:opacity 0.3s ease-in-out}z-anchor-navigation nav button{padding:0;border:none;margin:0;background-color:transparent}z-anchor-navigation nav z-icon{--z-icon-width:16px;--z-icon-height:16px;display:flex;padding:calc(var(--space-unit) * 1.5);fill:var(--color-icon02)}@media (min-width: 768px){z-anchor-navigation z-button.toggle{display:none !important}z-anchor-navigation nav{display:flex}z-anchor-navigation nav a{outline:none}@media (hover: hover){z-anchor-navigation nav>*:hover{border-left-color:var(--color-hover-secondary);background-color:var(--color-hover-surface);color:var(--color-hover-link)}}z-anchor-navigation nav>*:is(:focus,:focus-within),z-anchor-navigation nav :is(z-icon,button):focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-anchor-navigation[hide-unselected] nav>*:not([current],:hover,:focus,:focus-within){color:transparent}z-anchor-navigation nav>*:not([current],:hover,:focus,:focus-within)>*:is(z-button,button,z-icon):not(:focus:focus-visible){opacity:0;pointer-events:none}@media (hover: none){z-anchor-navigation:not([hide-unselected]) nav>*>*:is(z-button,button,z-icon){opacity:1;pointer-events:all}}}";export{t as z_anchor_navigation}
1
+ import{r as o,h as n,H as a}from"./p-d17ebc2f.js";import{B as i}from"./p-1cc1a418.js";const t=class{constructor(n){o(this,n),this.hideUnselected=!1,this.collapsed=!1}setAriaCurrent(){Array.from(this.nav.children).forEach((o=>{const n=o instanceof HTMLAnchorElement?o:o.querySelector("a"),a=window.location.href===n.href;n.setAttribute("aria-current",a.toString()),o.toggleAttribute("current",a)}))}toggleCollapsed(){this.collapsed=!this.collapsed}componentDidLoad(){window.addEventListener("hashchange",this.setAriaCurrent.bind(this)),this.setAriaCurrent()}disconnectedCallback(){window.removeEventListener("hashchange",this.setAriaCurrent)}render(){return n(a,{collapsed:this.collapsed},n("z-button",{class:"toggle",variant:i.SECONDARY,icon:this.collapsed?"chevron-up":"chevron-down",onClick:this.toggleCollapsed.bind(this)},"salta a"),n("nav",{ref:o=>this.nav=o},n("slot",null)))}};t.style="html{scroll-behavior:smooth}z-anchor-navigation nav{display:none;flex-direction:column;justify-content:flex-start;row-gap:calc(var(--space-unit) / 2)}z-anchor-navigation[collapsed] nav{display:flex;margin-top:var(--space-unit)}z-anchor-navigation nav a{display:-webkit-box;overflow:clip;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);-webkit-box-orient:vertical;color:inherit;font-weight:inherit;-webkit-line-clamp:2;overflow-clip-margin:content-box;text-decoration:none}z-anchor-navigation nav * a:not(:only-child){padding-right:calc(var(--space-unit) * 5)}@supports not (overflow-clip-margin: content-box){z-anchor-navigation nav a{display:inline-block;overflow:hidden;-webkit-line-clamp:none;text-overflow:ellipsis;white-space:nowrap}}z-anchor-navigation nav>*{position:relative;border-left:var(--border-size-large) solid var(--color-surface04);color:var(--color-text01);font-family:var(--font-family-sans);transition:background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out}z-anchor-navigation nav>[current]{border-left-color:var(--color-primary01);color:var(--color-link-primary);font-weight:var(--font-sb)}z-anchor-navigation nav>*>*:is(z-button,button,z-icon){position:absolute;top:50%;right:0;transform:translateY(-50%);transition:opacity 0.3s ease-in-out}z-anchor-navigation nav button{padding:0;border:none;margin:0;background-color:transparent}z-anchor-navigation nav z-icon{--z-icon-width:16px;--z-icon-height:16px;display:flex;padding:calc(var(--space-unit) * 1.5);fill:var(--color-icon02)}@media (min-width: 768px){z-anchor-navigation z-button.toggle{display:none !important}z-anchor-navigation nav{display:flex}z-anchor-navigation nav a{outline:none}@media (hover: hover){z-anchor-navigation nav>*:hover{border-left-color:var(--color-hover-secondary);background-color:var(--color-hover-surface);color:var(--color-hover-link)}}z-anchor-navigation nav>*:is(:focus,:focus-within),z-anchor-navigation nav :is(z-icon,button):focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-anchor-navigation[hide-unselected] nav>*:not([current],:hover,:focus,:focus-within){color:transparent}z-anchor-navigation nav>*:not([current],:hover,:focus,:focus-within)>*:is(z-button,button,z-icon):not(:focus:focus-visible){opacity:0;pointer-events:none}@media (hover: none){z-anchor-navigation:not([hide-unselected]) nav>*>*:is(z-button,button,z-icon){opacity:1;pointer-events:all}}}";export{t as z_anchor_navigation}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as a,g as e}from"./p-d17ebc2f.js";import{j as o,S as r,B as n,d as l,P as c}from"./p-8c3eeb55.js";import{d as p}from"./p-f0cd78f2.js";import"./p-b497e33e.js";const d=class{constructor(i){t(this,i),this.sort=s(this,"sort",7),this.padding=o.MEDIUM,this.defaultSortDirection=r.ASC,this.sortDirection=r.NONE,this.emitOnSort=this.emitOnSort.bind(this)}emitOnSort(){this.sort.emit({columnId:this.columnId,sortDirection:this.sortDirection})}handleSort(){this.sortable&&(this.sortDirection=(()=>{switch(this.sortDirection){case r.ASC:return r.DESC;case r.DESC:return r.ASC;case r.NONE:return this.defaultSortDirection;default:return r.NONE}})(),this.emitOnSort())}handleMenuClick(){this.popover.open=!this.popover.open}handleOutsideClick(t){!p(t.target).find((t=>"z-popover"===t.nodeName.toLowerCase()))&&this.popover&&(this.popover.open=!1)}handleClickHeaders(t){const s=t.target,i=p(s).find((t=>"z-table-header"===t.nodeName.toLowerCase()));this.sortable&&i&&i.attributes.getNamedItem("column-id").value!==this.columnId&&(s.parentNode.sortable||s.sortable)&&(this.sortDirection=r.NONE)}componentWillRender(){this.host.setAttribute("role","columnheader")}render(){return i(a,{class:{sortable:this.sortable},onClick:()=>this.handleSort()},i("div",{class:"container"},i("slot",null),this.sortable&&this.sortDirection!==r.NONE&&i("z-icon",{name:this.sortDirection===r.ASC?"arrow-up":"arrow-down",class:"arrow"})),this.showButton&&i("div",{class:"popover-container"},i("z-button",{ref:t=>this.triggerButton=t,class:"contextual-popover-button",icon:"contextual-menu",variant:n.TERTIARY,size:l.X_SMALL,onClick:()=>this.handleMenuClick()}),i("z-popover",{ref:t=>this.popover=t,position:c.BOTTOM,center:!0,bindTo:this.triggerButton},i("div",null,i("slot",{name:"contextual-menu"})))))}get host(){return e(this)}};d.style=':host{position:relative;display:table-cell;border-bottom:var(--border-size-medium) solid var(--gray200);background-color:var(--gray50);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding="x-small"]){padding:calc(var(--space-unit) * 0.5)}:host([padding="small"]){padding:calc(var(--space-unit))}:host([padding="medium"]){padding:calc(var(--space-unit) * 2)}:host([padding="large"]){padding:calc(var(--space-unit) * 2.5)}:host([padding="special"]){padding:0}.arrow{padding-left:var(--space-unit);opacity:1}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}';export{d as z_table_header}
1
+ import{r as t,c as s,h as i,H as a,g as o}from"./p-d17ebc2f.js";import{j as e,S as r,B as n,d as c,P as l}from"./p-1cc1a418.js";import{d as p}from"./p-14c2c56c.js";import"./p-b497e33e.js";const d=class{constructor(i){t(this,i),this.sort=s(this,"sort",7),this.padding=e.MEDIUM,this.defaultSortDirection=r.ASC,this.sortDirection=r.NONE,this.emitOnSort=this.emitOnSort.bind(this)}emitOnSort(){this.sort.emit({columnId:this.columnId,sortDirection:this.sortDirection})}handleSort(){this.sortable&&(this.sortDirection=(()=>{switch(this.sortDirection){case r.ASC:return r.DESC;case r.DESC:return r.ASC;case r.NONE:return this.defaultSortDirection;default:return r.NONE}})(),this.emitOnSort())}handleMenuClick(){this.popover.open=!this.popover.open}handleOutsideClick(t){!p(t.target).find((t=>"z-popover"===t.nodeName.toLowerCase()))&&this.popover&&(this.popover.open=!1)}handleClickHeaders(t){const s=t.target,i=p(s).find((t=>"z-table-header"===t.nodeName.toLowerCase()));this.sortable&&i&&i.attributes.getNamedItem("column-id").value!==this.columnId&&(s.parentNode.sortable||s.sortable)&&(this.sortDirection=r.NONE)}componentWillRender(){this.host.setAttribute("role","columnheader")}render(){return i(a,{class:{sortable:this.sortable},onClick:()=>this.handleSort()},i("div",{class:"container"},i("slot",null),this.sortable&&this.sortDirection!==r.NONE&&i("z-icon",{name:this.sortDirection===r.ASC?"arrow-up":"arrow-down",class:"arrow"})),this.showButton&&i("div",{class:"popover-container"},i("z-button",{ref:t=>this.triggerButton=t,class:"contextual-popover-button",icon:"contextual-menu",variant:n.TERTIARY,size:c.X_SMALL,onClick:()=>this.handleMenuClick()}),i("z-popover",{ref:t=>this.popover=t,position:l.BOTTOM,center:!0,bindTo:this.triggerButton},i("div",null,i("slot",{name:"contextual-menu"})))))}get host(){return o(this)}};d.style=':host{position:relative;display:table-cell;border-bottom:var(--border-size-medium) solid var(--gray200);background-color:var(--gray50);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding="x-small"]){padding:calc(var(--space-unit) * 0.5)}:host([padding="small"]){padding:calc(var(--space-unit))}:host([padding="medium"]){padding:calc(var(--space-unit) * 2)}:host([padding="large"]){padding:calc(var(--space-unit) * 2.5)}:host([padding="special"]){padding:0}.arrow{padding-left:var(--space-unit);opacity:1}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}';export{d as z_table_header}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as a,g as s}from"./p-d17ebc2f.js";import{t as n}from"./p-8c3eeb55.js";import{m as r}from"./p-b497e33e.js";import{h as o}from"./p-e43e61ac.js";import"./p-112455b1.js";const l=class{constructor(i){t(this,i),this.toastClose=e(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}emitToastClose(t){this.timeoutHandle=null,this.elapsedTime=null,this.hostElement.classList.add(t),this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=r,this.validateAutoclose(),this.percentage=0}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20,this.startTime=Date.now(),this.autoclose&&this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}mapSlideOutClass(){switch(this.transition){case n.SLIDE_IN_DOWN:return n.SLIDE_OUT_UP;case n.SLIDE_IN_UP:return n.SLIDE_OUT_DOWN;case n.SLIDE_IN_LEFT:return n.SLIDE_OUT_RIGHT;case n.SLIDE_IN_RIGHT:return n.SLIDE_OUT_LEFT}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new o(this.hostElement),this.sliderManager.get("pan").set({direction:o.DIRECTION_HORIZONTAL}),this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t),this.hostElement.style.transition="none",this.hostElement.classList.remove(this.transition);const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=100-Math.abs(this.percentage)+"%",t.eventType!==o.DIRECTION_LEFT&&t.eventType!==o.DIRECTION_RIGHT||(this.hostElement.style.transform=e.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.emitToastClose(t.direction===o.DIRECTION_LEFT?"slide-out-left":"slide-out-right"))),t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage&&(this.hostElement.style.transform=e.translateBack,this.hostElement.style.transition="all 1s",this.hostElement.style.opacity="100%",this.percentage=0)}))}onFocus(){let t=this.autoclose;this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth,e=this.container.children;let i=0;for(let t=0;t<e.length;t++)i+=e[t].offsetWidth;return i>t}renderText(){return i("div",{id:"text",ref:t=>this.toastText=t},i("span",{class:"title"},this.heading),i("span",{class:"message"},this.message))}renderButton(){return i("div",{id:"button"},i("slot",{name:"button"}))}renderCloseIcon(){if(this.closebutton)return i("div",{id:"icon"},i("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{32!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),this.emitToastClose(this.mapSlideOutClass()))}}))}renderContainer(){return i("div",{tabIndex:0,id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong},ref:t=>this.container=t},this.renderText(),this.renderButton(),this.renderCloseIcon())}renderMobileContainer(){return i("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},i("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return i(a,{style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:n.SLIDE_IN_DOWN,onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return s(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};l.style=":host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}:host>#external-container{display:flex;min-height:52px;box-sizing:border-box;align-items:center;justify-content:space-between;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);border-radius:4px;box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;width:100%;flex-wrap:wrap;align-items:center;justify-content:space-between}:host>#external-container #text{margin-right:calc(var(--space-unit) * 2);color:var(--color-white);letter-spacing:0.16px;line-height:20px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-white)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--gray800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";export{l as z_toast_notification}
1
+ import{r as t,c as e,h as i,H as a,g as s}from"./p-d17ebc2f.js";import{t as n}from"./p-1cc1a418.js";import{m as r}from"./p-b497e33e.js";import{h as o}from"./p-e43e61ac.js";import"./p-112455b1.js";const l=class{constructor(i){t(this,i),this.toastClose=e(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}emitToastClose(t){this.timeoutHandle=null,this.elapsedTime=null,this.hostElement.classList.add(t),this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=r,this.validateAutoclose(),this.percentage=0}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20,this.startTime=Date.now(),this.autoclose&&this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}mapSlideOutClass(){switch(this.transition){case n.SLIDE_IN_DOWN:return n.SLIDE_OUT_UP;case n.SLIDE_IN_UP:return n.SLIDE_OUT_DOWN;case n.SLIDE_IN_LEFT:return n.SLIDE_OUT_RIGHT;case n.SLIDE_IN_RIGHT:return n.SLIDE_OUT_LEFT}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new o(this.hostElement),this.sliderManager.get("pan").set({direction:o.DIRECTION_HORIZONTAL}),this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t),this.hostElement.style.transition="none",this.hostElement.classList.remove(this.transition);const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=100-Math.abs(this.percentage)+"%",t.eventType!==o.DIRECTION_LEFT&&t.eventType!==o.DIRECTION_RIGHT||(this.hostElement.style.transform=e.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.emitToastClose(t.direction===o.DIRECTION_LEFT?"slide-out-left":"slide-out-right"))),t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage&&(this.hostElement.style.transform=e.translateBack,this.hostElement.style.transition="all 1s",this.hostElement.style.opacity="100%",this.percentage=0)}))}onFocus(){let t=this.autoclose;this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth,e=this.container.children;let i=0;for(let t=0;t<e.length;t++)i+=e[t].offsetWidth;return i>t}renderText(){return i("div",{id:"text",ref:t=>this.toastText=t},i("span",{class:"title"},this.heading),i("span",{class:"message"},this.message))}renderButton(){return i("div",{id:"button"},i("slot",{name:"button"}))}renderCloseIcon(){if(this.closebutton)return i("div",{id:"icon"},i("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{32!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),this.emitToastClose(this.mapSlideOutClass()))}}))}renderContainer(){return i("div",{tabIndex:0,id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong},ref:t=>this.container=t},this.renderText(),this.renderButton(),this.renderCloseIcon())}renderMobileContainer(){return i("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},i("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return i(a,{style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:n.SLIDE_IN_DOWN,onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return s(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};l.style=":host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}:host>#external-container{display:flex;min-height:52px;box-sizing:border-box;align-items:center;justify-content:space-between;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);border-radius:4px;box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;width:100%;flex-wrap:wrap;align-items:center;justify-content:space-between}:host>#external-container #text{margin-right:calc(var(--space-unit) * 2);color:var(--color-white);letter-spacing:0.16px;line-height:20px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-white)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--gray800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";export{l as z_toast_notification}
@@ -1 +1 @@
1
- import{r as t,h as i,H as n,g as o}from"./p-d17ebc2f.js";import{d as s,a as e}from"./p-f0cd78f2.js";import{T as c}from"./p-8c3eeb55.js";import"./p-b497e33e.js";const l=class{constructor(i){t(this,i),this.links=[],this.visible=!1,this.visibleLink=""}handleFocusOutSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!1)}handleFocusSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!0)}componentDidLoad(){this.showFirstChild()}componentWillRender(){this.links&&(this.links="string"==typeof this.links?JSON.parse(this.links):this.links)}isInSkipToContent(t){return!!s(t).find((t=>"z-skip-to-content"===t.nodeName.toLowerCase()))}showFirstChild(){var t;const i=null===(t=this.hostElement.children)||void 0===t?void 0:t[0];i&&(this.visibleLink=i.id)}handleLinkClick(){this.visible=!1}render(){return i(n,{class:{[this.variant]:!0,"skip-to-content-visible":this.visible}},this.links.map(((t,n)=>{const o=`skip-to-content-${n}`;return i("z-link",{id:o,underline:!0,"aria-label":t.ariaLabel||t.label,class:"body-1-sb "+(o==this.visibleLink?"link-visible":"link-invisible"),href:t.href,textcolor:this.variant===c.DARK?"white":"black",onFocus:()=>this.visibleLink=o,onClick:()=>this.handleLinkClick(),onKeyUp:t=>e(t,this.handleLinkClick.bind(this))},t.label)})))}get hostElement(){return o(this)}};l.style=".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{overflow:hidden;width:0;height:0}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{width:initial;height:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{border:2px solid var(--text-grey-800);background-color:var(--bg-white);color:var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{overflow:initial;width:initial;height:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{padding-right:0;border-right:none}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";export{l as z_skip_to_content}
1
+ import{r as t,h as i,H as n,g as o}from"./p-d17ebc2f.js";import{d as s,a as c}from"./p-14c2c56c.js";import{T as e}from"./p-1cc1a418.js";import"./p-b497e33e.js";const l=class{constructor(i){t(this,i),this.links=[],this.visible=!1,this.visibleLink=""}handleFocusOutSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!1)}handleFocusSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!0)}componentDidLoad(){this.showFirstChild()}componentWillRender(){this.links&&(this.links="string"==typeof this.links?JSON.parse(this.links):this.links)}isInSkipToContent(t){return!!s(t).find((t=>"z-skip-to-content"===t.nodeName.toLowerCase()))}showFirstChild(){var t;const i=null===(t=this.hostElement.children)||void 0===t?void 0:t[0];i&&(this.visibleLink=i.id)}handleLinkClick(){this.visible=!1}render(){return i(n,{class:{[this.variant]:!0,"skip-to-content-visible":this.visible}},this.links.map(((t,n)=>{const o=`skip-to-content-${n}`;return i("z-link",{id:o,underline:!0,"aria-label":t.ariaLabel||t.label,class:"body-1-sb "+(o==this.visibleLink?"link-visible":"link-invisible"),href:t.href,textcolor:this.variant===e.DARK?"white":"black",onFocus:()=>this.visibleLink=o,onClick:()=>this.handleLinkClick(),onKeyUp:t=>c(t,this.handleLinkClick.bind(this))},t.label)})))}get hostElement(){return o(this)}};l.style=".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{overflow:hidden;width:0;height:0}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{width:initial;height:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{border:2px solid var(--text-grey-800);background-color:var(--bg-white);color:var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{overflow:initial;width:initial;height:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{padding-right:0;border-right:none}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";export{l as z_skip_to_content}