@zanichelli/albe-web-components 2.37.0 → 2.38.1

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 (240) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/{index-73c33cf4.js → index-dcab1bda.js} +5 -0
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-95a9a879.js → utils-971854fc.js} +1 -1
  6. package/dist/cjs/web-components-library.cjs.js +1 -1
  7. package/dist/cjs/z-app-switcher.cjs.entry.js +1 -1
  8. package/dist/cjs/z-app-topbar.cjs.entry.js +1 -1
  9. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/z-body_2.cjs.entry.js +40 -0
  12. package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
  13. package/dist/cjs/z-button.cjs.entry.js +39 -0
  14. package/dist/cjs/z-card.cjs.entry.js +69 -0
  15. package/dist/cjs/z-carousel.cjs.entry.js +19 -0
  16. package/dist/cjs/z-chip.cjs.entry.js +15 -5
  17. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  18. package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
  19. package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
  20. package/dist/cjs/z-divider.cjs.entry.js +1 -1
  21. package/dist/cjs/z-footer.cjs.entry.js +1 -1
  22. package/dist/cjs/z-icon.cjs.entry.js +28 -0
  23. package/dist/cjs/z-list_3.cjs.entry.js +1 -1
  24. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
  25. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  26. package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
  27. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  28. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  29. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  30. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  31. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  32. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  33. package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
  34. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  35. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  36. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  37. package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
  38. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  39. package/dist/cjs/z-popover.cjs.entry.js +125 -0
  40. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  41. package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
  42. package/dist/cjs/z-table-body.cjs.entry.js +24 -0
  43. package/dist/cjs/z-table-cell.cjs.entry.js +36 -0
  44. package/dist/cjs/z-table-empty-box.cjs.entry.js +32 -0
  45. package/dist/cjs/z-table-head.cjs.entry.js +23 -0
  46. package/dist/cjs/z-table-header-row.cjs.entry.js +22 -0
  47. package/dist/cjs/z-table-header.cjs.entry.js +88 -0
  48. package/dist/cjs/z-table-row.cjs.entry.js +43 -0
  49. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +19 -0
  50. package/dist/cjs/z-table.cjs.entry.js +82 -0
  51. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  52. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  53. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  54. package/dist/collection/beans/index.js +5 -0
  55. package/dist/collection/collection-manifest.json +1 -0
  56. package/dist/collection/components/buttons/z-chip/index.js +78 -7
  57. package/dist/collection/components/buttons/z-chip/styles.css +66 -0
  58. package/dist/collection/components/z-carousel/index.js +19 -0
  59. package/dist/collection/components/z-carousel/styles.css +27 -0
  60. package/dist/esm/{index-a4f73ed9.js → index-6b86a3f1.js} +6 -1
  61. package/dist/esm/index.js +2 -2
  62. package/dist/esm/loader.js +1 -1
  63. package/dist/esm/{utils-7032aa6d.js → utils-351595e0.js} +2 -2
  64. package/dist/esm/web-components-library.js +1 -1
  65. package/dist/esm/z-app-switcher.entry.js +1 -1
  66. package/dist/esm/z-app-topbar.entry.js +1 -1
  67. package/dist/esm/z-aria-alert.entry.js +1 -1
  68. package/dist/esm/z-avatar.entry.js +1 -1
  69. package/dist/esm/z-body_2.entry.js +35 -0
  70. package/dist/esm/z-button-filter_5.entry.js +2 -2
  71. package/dist/esm/z-button.entry.js +35 -0
  72. package/dist/esm/z-card.entry.js +65 -0
  73. package/dist/esm/z-carousel.entry.js +15 -0
  74. package/dist/esm/z-chip.entry.js +16 -6
  75. package/dist/esm/z-combobox.entry.js +2 -2
  76. package/dist/esm/z-contextual-menu.entry.js +1 -1
  77. package/dist/esm/z-cookiebar.entry.js +1 -1
  78. package/dist/esm/z-divider.entry.js +1 -1
  79. package/dist/esm/z-footer.entry.js +1 -1
  80. package/dist/esm/z-icon.entry.js +24 -0
  81. package/dist/esm/z-list_3.entry.js +1 -1
  82. package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
  83. package/dist/esm/z-messages-pocket.entry.js +1 -1
  84. package/dist/esm/z-modal-login.entry.js +1 -1
  85. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  86. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  87. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  88. package/dist/esm/z-myz-card-info.entry.js +2 -2
  89. package/dist/esm/z-myz-card_4.entry.js +1 -1
  90. package/dist/esm/z-myz-list-item.entry.js +2 -2
  91. package/dist/esm/z-myz-topbar.entry.js +1 -1
  92. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  93. package/dist/esm/z-notification.entry.js +1 -1
  94. package/dist/esm/z-otp.entry.js +1 -1
  95. package/dist/esm/z-pagination-bar.entry.js +2 -2
  96. package/dist/esm/z-pocket_3.entry.js +2 -2
  97. package/dist/esm/z-popover.entry.js +121 -0
  98. package/dist/esm/z-slideshow.entry.js +2 -2
  99. package/dist/esm/z-status-tag.entry.js +1 -1
  100. package/dist/esm/z-table-body.entry.js +20 -0
  101. package/dist/esm/z-table-cell.entry.js +32 -0
  102. package/dist/esm/z-table-empty-box.entry.js +28 -0
  103. package/dist/esm/z-table-head.entry.js +19 -0
  104. package/dist/esm/z-table-header-row.entry.js +18 -0
  105. package/dist/esm/z-table-header.entry.js +84 -0
  106. package/dist/esm/z-table-row.entry.js +39 -0
  107. package/dist/esm/z-table-sticky-footer.entry.js +15 -0
  108. package/dist/esm/z-table.entry.js +78 -0
  109. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  110. package/dist/esm/z-toast-notification.entry.js +1 -1
  111. package/dist/esm/z-tooltip.entry.js +1 -1
  112. package/dist/types/beans/index.d.ts +4 -0
  113. package/dist/types/components/buttons/z-chip/index.d.ts +6 -0
  114. package/dist/types/components/z-carousel/index.d.ts +8 -0
  115. package/dist/types/components.d.ts +20 -1
  116. package/dist/web-components-library/index.esm.js +1 -1
  117. package/dist/web-components-library/{p-e27b9cba.entry.js → p-02796506.entry.js} +1 -1
  118. package/dist/web-components-library/p-1094e4de.entry.js +1 -0
  119. package/dist/web-components-library/{p-9c8aac51.entry.js → p-209cc06f.entry.js} +1 -1
  120. package/dist/web-components-library/{p-25cfbd3a.entry.js → p-28b18ca4.entry.js} +1 -1
  121. package/dist/web-components-library/p-3241471c.entry.js +1 -0
  122. package/dist/web-components-library/p-3b3cb18b.entry.js +1 -0
  123. package/dist/web-components-library/{p-7595ed18.entry.js → p-3d8b00fd.entry.js} +1 -1
  124. package/dist/web-components-library/{p-7e9a16c8.entry.js → p-41f6c8c4.entry.js} +1 -1
  125. package/dist/web-components-library/p-4665d79f.entry.js +1 -0
  126. package/dist/web-components-library/p-48e0a763.entry.js +1 -0
  127. package/dist/web-components-library/p-4c1dc891.entry.js +1 -0
  128. package/dist/web-components-library/{p-21a50621.entry.js → p-4c8e6232.entry.js} +1 -1
  129. package/dist/web-components-library/{p-efeecbb7.entry.js → p-509408f3.entry.js} +1 -1
  130. package/dist/web-components-library/p-597e767a.entry.js +1 -0
  131. package/dist/web-components-library/{p-fd60b041.entry.js → p-5d4bb66b.entry.js} +1 -1
  132. package/dist/web-components-library/{p-346db6a6.entry.js → p-5ee63e7f.entry.js} +1 -1
  133. package/dist/web-components-library/p-6934ea47.js +1 -0
  134. package/dist/web-components-library/{p-06e7159b.entry.js → p-71bb86a8.entry.js} +1 -1
  135. package/dist/web-components-library/p-733ba674.entry.js +1 -0
  136. package/dist/web-components-library/{p-d329ffe4.entry.js → p-74217d44.entry.js} +1 -1
  137. package/dist/web-components-library/{p-4fef4307.entry.js → p-7ce4db78.entry.js} +1 -1
  138. package/dist/web-components-library/{p-3543cfd5.entry.js → p-8923f36d.entry.js} +1 -1
  139. package/dist/web-components-library/{p-2b94e667.entry.js → p-89dbe6e9.entry.js} +1 -1
  140. package/dist/web-components-library/p-8c9e3bb8.entry.js +1 -0
  141. package/dist/web-components-library/p-8deddec7.entry.js +1 -0
  142. package/dist/web-components-library/{p-e40bf20d.entry.js → p-913cd0da.entry.js} +1 -1
  143. package/dist/web-components-library/{p-0c7427ec.entry.js → p-98a7eedb.entry.js} +1 -1
  144. package/dist/web-components-library/p-9af1322d.entry.js +1 -0
  145. package/dist/web-components-library/{p-0ab6a465.entry.js → p-9b2f8028.entry.js} +1 -1
  146. package/{www/build/p-8aaba07d.entry.js → dist/web-components-library/p-a0b11f65.entry.js} +1 -1
  147. package/dist/web-components-library/p-a3a64dc8.entry.js +1 -0
  148. package/dist/web-components-library/{p-44dc89cf.entry.js → p-a4fe497a.entry.js} +1 -1
  149. package/{www/build/p-c3e5e43e.entry.js → dist/web-components-library/p-ba1db0fc.entry.js} +1 -1
  150. package/dist/web-components-library/{p-819b5d17.entry.js → p-bd717ced.entry.js} +1 -1
  151. package/dist/web-components-library/{p-ecac657b.entry.js → p-beda87c3.entry.js} +1 -1
  152. package/dist/web-components-library/{p-453af930.entry.js → p-bf4539a7.entry.js} +1 -1
  153. package/dist/web-components-library/{p-29e389cb.entry.js → p-c6265fbb.entry.js} +1 -1
  154. package/dist/web-components-library/p-c8f19ca8.entry.js +1 -0
  155. package/dist/web-components-library/{p-b85f7e9a.entry.js → p-d1a52660.entry.js} +1 -1
  156. package/dist/web-components-library/p-d4c4b90a.entry.js +1 -0
  157. package/dist/web-components-library/p-d945c8d2.js +1 -0
  158. package/dist/web-components-library/p-ddc3c8c2.entry.js +1 -0
  159. package/dist/web-components-library/{p-f552b72d.entry.js → p-ded374d7.entry.js} +1 -1
  160. package/dist/web-components-library/{p-4081b879.entry.js → p-e55fc434.entry.js} +1 -1
  161. package/dist/web-components-library/{p-1ce5ea61.entry.js → p-e6b971b9.entry.js} +1 -1
  162. package/dist/web-components-library/p-e84d871b.entry.js +1 -0
  163. package/dist/web-components-library/p-e9be115a.entry.js +1 -0
  164. package/dist/web-components-library/{p-6252d20b.entry.js → p-ea84969a.entry.js} +1 -1
  165. package/dist/web-components-library/p-f7b1dc68.entry.js +1 -0
  166. package/dist/web-components-library/web-components-library.esm.js +1 -1
  167. package/package.json +1 -1
  168. package/react/components.d.ts +1 -0
  169. package/react/components.js +3 -2
  170. package/react/components.js.map +1 -1
  171. package/www/build/index.esm.js +1 -1
  172. package/www/build/{p-e27b9cba.entry.js → p-02796506.entry.js} +1 -1
  173. package/www/build/p-1094e4de.entry.js +1 -0
  174. package/www/build/{p-9c8aac51.entry.js → p-209cc06f.entry.js} +1 -1
  175. package/www/build/{p-25cfbd3a.entry.js → p-28b18ca4.entry.js} +1 -1
  176. package/www/build/p-3241471c.entry.js +1 -0
  177. package/www/build/p-3b3cb18b.entry.js +1 -0
  178. package/www/build/{p-7595ed18.entry.js → p-3d8b00fd.entry.js} +1 -1
  179. package/www/build/{p-7e9a16c8.entry.js → p-41f6c8c4.entry.js} +1 -1
  180. package/www/build/p-4665d79f.entry.js +1 -0
  181. package/www/build/p-48e0a763.entry.js +1 -0
  182. package/www/build/p-4c1dc891.entry.js +1 -0
  183. package/www/build/{p-21a50621.entry.js → p-4c8e6232.entry.js} +1 -1
  184. package/www/build/{p-efeecbb7.entry.js → p-509408f3.entry.js} +1 -1
  185. package/www/build/p-597e767a.entry.js +1 -0
  186. package/www/build/{p-fd60b041.entry.js → p-5d4bb66b.entry.js} +1 -1
  187. package/www/build/{p-346db6a6.entry.js → p-5ee63e7f.entry.js} +1 -1
  188. package/www/build/p-6934ea47.js +1 -0
  189. package/www/build/p-69f277e5.js +1 -0
  190. package/www/build/{p-06e7159b.entry.js → p-71bb86a8.entry.js} +1 -1
  191. package/www/build/p-733ba674.entry.js +1 -0
  192. package/www/build/{p-d329ffe4.entry.js → p-74217d44.entry.js} +1 -1
  193. package/www/build/{p-4fef4307.entry.js → p-7ce4db78.entry.js} +1 -1
  194. package/www/build/{p-3543cfd5.entry.js → p-8923f36d.entry.js} +1 -1
  195. package/www/build/{p-2b94e667.entry.js → p-89dbe6e9.entry.js} +1 -1
  196. package/www/build/p-8c9e3bb8.entry.js +1 -0
  197. package/www/build/p-8deddec7.entry.js +1 -0
  198. package/www/build/{p-e40bf20d.entry.js → p-913cd0da.entry.js} +1 -1
  199. package/www/build/{p-0c7427ec.entry.js → p-98a7eedb.entry.js} +1 -1
  200. package/www/build/p-9af1322d.entry.js +1 -0
  201. package/www/build/{p-0ab6a465.entry.js → p-9b2f8028.entry.js} +1 -1
  202. package/{dist/web-components-library/p-8aaba07d.entry.js → www/build/p-a0b11f65.entry.js} +1 -1
  203. package/www/build/p-a3a64dc8.entry.js +1 -0
  204. package/www/build/{p-44dc89cf.entry.js → p-a4fe497a.entry.js} +1 -1
  205. package/{dist/web-components-library/p-c3e5e43e.entry.js → www/build/p-ba1db0fc.entry.js} +1 -1
  206. package/www/build/{p-819b5d17.entry.js → p-bd717ced.entry.js} +1 -1
  207. package/www/build/{p-ecac657b.entry.js → p-beda87c3.entry.js} +1 -1
  208. package/www/build/{p-453af930.entry.js → p-bf4539a7.entry.js} +1 -1
  209. package/www/build/{p-29e389cb.entry.js → p-c6265fbb.entry.js} +1 -1
  210. package/www/build/p-c8f19ca8.entry.js +1 -0
  211. package/www/build/{p-b85f7e9a.entry.js → p-d1a52660.entry.js} +1 -1
  212. package/www/build/p-d4c4b90a.entry.js +1 -0
  213. package/www/build/p-d945c8d2.js +1 -0
  214. package/www/build/p-ddc3c8c2.entry.js +1 -0
  215. package/www/build/{p-f552b72d.entry.js → p-ded374d7.entry.js} +1 -1
  216. package/www/build/{p-4081b879.entry.js → p-e55fc434.entry.js} +1 -1
  217. package/www/build/{p-1ce5ea61.entry.js → p-e6b971b9.entry.js} +1 -1
  218. package/www/build/p-e84d871b.entry.js +1 -0
  219. package/www/build/p-e9be115a.entry.js +1 -0
  220. package/www/build/{p-6252d20b.entry.js → p-ea84969a.entry.js} +1 -1
  221. package/www/build/p-ea943cbd.css +1 -0
  222. package/www/build/p-f7b1dc68.entry.js +1 -0
  223. package/www/build/web-components-library.esm.js +1 -1
  224. package/www/index.html +2 -4
  225. package/dist/cjs/z-body_15.cjs.entry.js +0 -575
  226. package/dist/esm/z-body_15.entry.js +0 -557
  227. package/dist/web-components-library/p-0af2894e.js +0 -1
  228. package/dist/web-components-library/p-29c08c91.js +0 -1
  229. package/dist/web-components-library/p-3355b667.entry.js +0 -1
  230. package/dist/web-components-library/p-5d34d798.entry.js +0 -1
  231. package/dist/web-components-library/p-976cdbfa.entry.js +0 -1
  232. package/dist/web-components-library/p-f8446b1e.entry.js +0 -1
  233. package/www/build/p-053e68f0.js +0 -122
  234. package/www/build/p-0af2894e.js +0 -1
  235. package/www/build/p-29c08c91.js +0 -1
  236. package/www/build/p-3355b667.entry.js +0 -1
  237. package/www/build/p-5d34d798.entry.js +0 -1
  238. package/www/build/p-976cdbfa.entry.js +0 -1
  239. package/www/build/p-97a11655.css +0 -789
  240. package/www/build/p-f8446b1e.entry.js +0 -1
@@ -1,557 +0,0 @@
1
- import { r as registerInstance, h, g as getElement, c as createEvent, H as Host } from './index-fa9e549c.js';
2
- import { c as classnames } from './index-aa3a4feb.js';
3
- import { B as ButtonTypeEnum, a as ButtonVariantEnum, b as ButtonSizeEnum, C as CardVariants, P as PopoverPosition, c as PopoverBorderRadius, d as PopoverShadow, K as KeyboardKeys, S as Size, e as SortDirectionEnum, Z as ZTableRowExpandedType } from './index-a4f73ed9.js';
4
- import { i as icons } from './icons-bceeb196.js';
5
- import { g as getElementTree } from './utils-7032aa6d.js';
6
- import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
7
- import './_commonjsHelpers-8b28c6fa.js';
8
-
9
- const ZBody = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- this.variant = "regular";
13
- }
14
- render() {
15
- return (h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
16
- }
17
- };
18
-
19
- const stylesCss$d = ":host{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:var(--space-unit);--rgb-white:240, 240, 240}button:disabled,::slotted(button:disabled){pointer-events:none}button,::slotted(button),::slotted(a){box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);vertical-align:middle;text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap;outline:none;fill:currentColor}button.big,:host([size=\"big\"]) ::slotted(button),:host([size=\"big\"]) ::slotted(a){height:44px;min-width:44px}button.small,:host([size=\"small\"]) ::slotted(button),:host([size=\"small\"]) ::slotted(a){height:36px;min-width:36px}button.issmall,:host([issmall]) ::slotted(button),:host([issmall]) ::slotted(a){height:36px;min-width:36px}button.x-small,:host([size=\"x-small\"]) ::slotted(button),:host([size=\"x-small\"]) ::slotted(a){height:32px;min-width:32px}button:not(.square),:host(:not([square])) ::slotted(button),:host(:not([square])) ::slotted(a){min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}button.square,:host([square]){--z-icon-right-margin:0}button.primary,:host([variant=\"primary\"]) ::slotted(button),:host([variant=\"primary\"]) ::slotted(a){background-color:var(--color-primary01);border-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){button.primary:hover,:host([variant=\"primary\"]) ::slotted(button:hover),:host([variant=\"primary\"]) ::slotted(a:hover){background-color:var(--color-hover-primary);border-color:var(--color-hover-primary);color:var(--color-text-inverse)}}button:focus:focus-visible,::slotted(button:focus:focus-visible),::slotted(a:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}button.primary:active,:host([variant=\"primary\"]) ::slotted(button:active),:host([variant=\"primary\"]) ::slotted(a:active){background-color:var(--color-pressed-primary);border-color:var(--color-pressed-primary);color:var(--color-text-inverse);box-shadow:var(--shadow-2)}button.primary:disabled,:host([variant=\"primary\"]) ::slotted(button:disabled){background-color:var(--color-disabled01);border-color:var(--color-disabled01);color:var(--color-disabled02)}button.secondary,:host([variant=\"secondary\"]) ::slotted(button),:host([variant=\"secondary\"]) ::slotted(a){background-color:var(--color-surface01);border-color:var(--color-primary01);color:var(--color-primary01)}@media (hover: hover){button.secondary:hover,:host([variant=\"secondary\"]) ::slotted(button:hover),:host([variant=\"secondary\"]) ::slotted(a:hover){background-color:var(--color-surface01);border-color:var(--color-hover-primary);color:var(--color-hover-primary)}}button.secondary:active,:host([variant=\"secondary\"]) ::slotted(button:active),:host([variant=\"secondary\"]) ::slotted(a:active){background-color:var(--color-surface01);border-color:var(--color-pressed-primary);color:var(--color-pressed-primary);box-shadow:var(--shadow-2)}button.secondary:disabled,:host([variant=\"secondary\"]) ::slotted(button:disabled){background-color:var(--color-surface01);border-color:var(--color-disabled01);color:var(--color-disabled02)}button.tertiary,:host([variant=\"tertiary\"]) ::slotted(button),:host([variant=\"tertiary\"]) ::slotted(a){background-color:transparent;border-color:transparent;color:var(--color-primary01)}button.tertiary.hasContent{padding:0 var(--space-unit)}@media (hover: hover){button.tertiary:hover,:host([variant=\"tertiary\"]) ::slotted(button:hover),:host([variant=\"tertiary\"]) ::slotted(a:hover){background-color:var(--color-primary03);border-color:var(--color-primary03);color:var(--color-hover-primary)}}button.tertiary:focus:focus-visible,:host([variant=\"tertiary\"]) ::slotted(button:focus:focus-visible),:host([variant=\"tertiary\"]) ::slotted(a:focus:focus-visible){background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01)}button.tertiary:active,:host([variant=\"tertiary\"]) ::slotted(button:active),:host([variant=\"tertiary\"]) ::slotted(a:active){background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01);box-shadow:var(--shadow-2)}button.tertiary:disabled,:host([variant=\"tertiary\"]) ::slotted(button:disabled){background-color:transparent;border-color:transparent;color:var(--color-disabled02)}button.dark-bg,:host([variant=\"dark-bg\"]) ::slotted(button),:host([variant=\"dark-bg\"]) ::slotted(a){background-color:rgba(var(--rgb-white), 0.2);border-color:transparent;color:var(--color-text04)}button.dark-bg.hasContent{padding:0 var(--space-unit)}@media (hover: hover){button.dark-bg:hover,:host([variant=\"dark-bg\"]) ::slotted(button:hover),:host([variant=\"dark-bg\"]) ::slotted(a:hover){background-color:rgba(var(--rgb-white), 0.1)}}button.dark-bg:active,:host([variant=\"dark-bg\"]) ::slotted(button:active),:host([variant=\"dark-bg\"]) ::slotted(a:active){background-color:rgba(var(--rgb-white), 0.3)}button.dark-bg:disabled,:host([variant=\"dark-bg\"]) ::slotted(button:disabled){color:var(--color-disabled03);background-color:rgba(var(--rgb-white), 0.05)}";
20
-
21
- const ZButton = class {
22
- constructor(hostRef) {
23
- registerInstance(this, hostRef);
24
- /** HTML button disabled attribute. */
25
- this.disabled = false;
26
- /** HTML button type attribute. */
27
- this.type = ButtonTypeEnum.button;
28
- /** Graphical variant: `primary`, `secondary`, `tertiary`, `dark-bg`. Defaults to `primary`. */
29
- this.variant = ButtonVariantEnum.primary;
30
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
31
- this.size = ButtonSizeEnum.big;
32
- /** Reduce button size (deprecated).
33
- *
34
- * @deprecated Use `size` prop.
35
- * */
36
- this.issmall = false;
37
- /** Spy to render square button. */
38
- this.square = false;
39
- }
40
- render() {
41
- this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
42
- return (h("slot", { name: "element" }, h("button", { id: this.htmlid, name: this.name, type: this.type, disabled: this.disabled, class: classnames(this.variant, this.size, { issmall: this.issmall }, { square: this.square }) }, this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }), h("slot", null))));
43
- }
44
- get hostElement() { return getElement(this); }
45
- };
46
- ZButton.style = stylesCss$d;
47
-
48
- const stylesCss$c = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;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;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--space-unit)}::slotted([slot='metadata']),::slotted([slot='title']),::slotted([slot='text']){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}::slotted([slot='title']:not(:last-child)),::slotted([slot='text']:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot='text']),::slotted([slot='actions']){margin:0}::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;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot='text']){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot='action']:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant='text']){background-color:var(--z-card--text-background);border:var(--z-card--text-border);border-radius:var(--z-card--text-border-radius)}:host([showshadow])>.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:calc(var(--space-unit) * 2) var(--space-unit)}: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([showshadow]){box-shadow:var(--shadow-2)}:host([variant='shadow'][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:active),:host([clickable][showshadow]: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, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
49
-
50
- const ZCard = class {
51
- constructor(hostRef) {
52
- registerInstance(this, hostRef);
53
- this.cardClicked = createEvent(this, "cardClicked", 7);
54
- /** Enable click interactions on the card. Default: false */
55
- this.clickable = false;
56
- /** Enable shadow. Default: false. */
57
- this.showshadow = false;
58
- }
59
- onClick(ev) {
60
- // Do nothing for clicks on actions.
61
- if (ev.target.getAttribute('slot') === 'action') {
62
- return;
63
- }
64
- if (!this.clickable) {
65
- ev.preventDefault();
66
- ev.stopPropagation();
67
- return;
68
- }
69
- this.cardClicked.emit();
70
- }
71
- componentWillLoad() {
72
- this.hasCoverImage = !!this.host.querySelector('[slot="cover"]');
73
- }
74
- /**
75
- * Template for a card without image cover.
76
- * A colored background replaces the image and some data is moved over it.
77
- */
78
- renderColorCoverCard() {
79
- return [
80
- h("div", { class: "cover-container" }, h("div", { class: "color-cover" }, h("div", { class: "cover-content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" })))),
81
- h("div", { class: "content" }, h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" })))
82
- ];
83
- }
84
- /**
85
- * Template for the content div.
86
- */
87
- renderContentDiv() {
88
- return (h("div", { class: "content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" }), h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" }))));
89
- }
90
- render() {
91
- if (this.variant === CardVariants.text) {
92
- return this.renderContentDiv();
93
- }
94
- if (this.variant === CardVariants.overlay || this.hasCoverImage) {
95
- return [
96
- h("div", { class: "cover-container" }, this.hasCoverImage && [
97
- h("slot", { name: "cover" }),
98
- (this.variant !== CardVariants.overlay) && this.coverIcon && h("z-icon", { name: this.coverIcon })
99
- ], !this.hasCoverImage && h("div", { class: "color-cover" })),
100
- this.renderContentDiv()
101
- ];
102
- }
103
- return this.renderColorCoverCard();
104
- }
105
- get host() { return getElement(this); }
106
- };
107
- ZCard.style = stylesCss$c;
108
-
109
- const stylesCss$b = ":host{line-height:0;vertical-align:middle;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0)}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
110
-
111
- const ZIcon = class {
112
- constructor(hostRef) {
113
- registerInstance(this, hostRef);
114
- }
115
- selectPathOrPolygon(iconName) {
116
- if (iconName && iconName.startsWith("M")) {
117
- return h("path", { d: icons[this.name] });
118
- }
119
- else {
120
- return h("polygon", { points: icons[this.name] });
121
- }
122
- }
123
- render() {
124
- return (h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(icons[this.name])));
125
- }
126
- };
127
- ZIcon.style = stylesCss$b;
128
-
129
- const stylesCss$a = ".sc-z-popover-h{font-family:var(--dashboard-font);font-weight:var(--font-rg);position:relative;display:inline-block;--shadow-arrow-color:rgba(66, 69, 72, 0.2);--shadow-arrow-below-color:rgba(66, 69, 72, 0.1)}.popover-content-container.sc-z-popover{box-sizing:border-box;visibility:hidden;position:absolute;min-width:64px;min-height:32px;z-index:999}.popover-content-container.visible.sc-z-popover{visibility:visible}.popover-content-container.border-radius-none.sc-z-popover{border-radius:0}.popover-content-container.border-radius-small.sc-z-popover{border-radius:var(--border-radius-small)}.popover-content-container.border-radius-medium.sc-z-popover{border-radius:var(--border-radius)}.popover-content-container.shadow-1.sc-z-popover{box-shadow:var(--shadow-1)}.popover-content-container.shadow-2.sc-z-popover{box-shadow:var(--shadow-2)}.popover-content-container.shadow-3.sc-z-popover{box-shadow:var(--shadow-3)}.popover-content-container.shadow-4.sc-z-popover{box-shadow:var(--shadow-4)}.popover-content-container.shadow-6.sc-z-popover{box-shadow:var(--shadow-6)}.popover-content-container.shadow-8.sc-z-popover{box-shadow:var(--shadow-8)}.popover-content-container.shadow-12.sc-z-popover{box-shadow:var(--shadow-12)}.popover-content-container.shadow-16.sc-z-popover{box-shadow:var(--shadow-16)}.popover-content-container.shadow-24.sc-z-popover{box-shadow:var(--shadow-24)}.popover-content-container.after-down.sc-z-popover{top:0;left:calc(100% + var(--space-unit))}.popover-content-container.after-center.sc-z-popover{top:50%;left:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.after-up.sc-z-popover{bottom:0;left:calc(100% + var(--space-unit))}.popover-content-container.below-right.sc-z-popover{left:0;top:calc(100% + var(--space-unit))}.popover-content-container.below-center.sc-z-popover{left:50%;top:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.below-left.sc-z-popover{right:0;top:calc(100% + var(--space-unit))}.popover-content-container.before-down.sc-z-popover{top:0;right:calc(100% + var(--space-unit))}.popover-content-container.before-center.sc-z-popover{top:50%;right:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.before-up.sc-z-popover{bottom:0;right:calc(100% + var(--space-unit))}.popover-content-container.above-right.sc-z-popover{left:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.above-center.sc-z-popover{left:50%;bottom:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.above-left.sc-z-popover{right:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.sc-z-popover:before{display:none;position:absolute;content:\"\";width:8px;height:8px;z-index:-1;background-color:inherit;transform:rotate(45deg)}.popover-content-container.after-down.sc-z-popover:before{top:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-center.sc-z-popover:before{top:calc(50% - 4px);left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-up.sc-z-popover:before{bottom:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.below-right.sc-z-popover:before{left:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-center.sc-z-popover:before{left:calc(50% - 4px);top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-left.sc-z-popover:before{right:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.before-down.sc-z-popover:before{top:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-center.sc-z-popover:before{top:calc(50% - 4px);right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-up.sc-z-popover:before{bottom:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-right.sc-z-popover:before{left:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-center.sc-z-popover:before{left:calc(50% - 4px);bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-left.sc-z-popover:before{right:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.show-arrow.sc-z-popover:before{display:block}";
130
-
131
- const ZPopover = class {
132
- /**
133
- * Constructor.
134
- */
135
- constructor(hostRef) {
136
- registerInstance(this, hostRef);
137
- /** [optional] Popover position */
138
- this.position = PopoverPosition["after-up"];
139
- /** [optional] Background color token for popover */
140
- this.backgroundColor = "color-white";
141
- /** [optional] Border radius token for popover */
142
- this.borderRadius = PopoverBorderRadius.small;
143
- /** [optional] Box shadow token for popover */
144
- this.boxShadow = PopoverShadow["shadow-1"];
145
- /** [optional] Show or hide arrow */
146
- this.showArrow = false;
147
- /** [optional] Sets padding for Popover container */
148
- this.padding = "8px";
149
- this.isVisible = false;
150
- this.popoverPosition = this.position;
151
- this.handleKeyDown = this.handleKeyDown.bind(this);
152
- }
153
- openPopover() {
154
- const width = document.body.clientWidth;
155
- const height = window.innerHeight;
156
- const rect = this.popoverElem.getBoundingClientRect();
157
- const l = rect.left;
158
- const r = rect.right;
159
- const t = rect.top;
160
- const b = rect.bottom;
161
- let firstSide = this.position.split("-")[0];
162
- let secondSide = this.position.split("-")[1];
163
- // If top is outside viewport
164
- if (t < 0) {
165
- if (this.position.startsWith("above")) {
166
- firstSide = "below";
167
- }
168
- else {
169
- secondSide = "down";
170
- }
171
- }
172
- // If bottom is outside viewport
173
- if (b > height) {
174
- if (this.position.startsWith("below")) {
175
- firstSide = "above";
176
- }
177
- else {
178
- secondSide = "up";
179
- }
180
- }
181
- // If right is outside viewport
182
- if (r > width) {
183
- if (this.position.startsWith("above") ||
184
- this.position.startsWith("below")) {
185
- secondSide = "left";
186
- }
187
- else {
188
- firstSide = "before";
189
- }
190
- }
191
- // If left is outside viewport
192
- if (l < 0) {
193
- if (this.position.startsWith("above") ||
194
- this.position.startsWith("below")) {
195
- secondSide = "right";
196
- }
197
- else {
198
- firstSide = "after";
199
- }
200
- }
201
- this.popoverPosition = PopoverPosition[`${firstSide}-${secondSide}`];
202
- this.isVisible = true;
203
- }
204
- closePopover() {
205
- this.popoverPosition = this.position;
206
- this.isVisible = false;
207
- }
208
- closePopoverWithKeyboard(e) {
209
- if (e.key === KeyboardKeys.ESC) {
210
- this.closePopover();
211
- }
212
- }
213
- handleClick(event) {
214
- this.isVisible ? this.closePopover() : this.openPopover();
215
- event.stopPropagation();
216
- }
217
- handleKeyDown(event) {
218
- if (event.code === KeyboardKeys.ENTER) {
219
- this.isVisible ? this.closePopover() : this.openPopover();
220
- }
221
- }
222
- handleOutsideClick(e) {
223
- const tree = getElementTree(e.target);
224
- const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
225
- if (!parent) {
226
- this.closePopover();
227
- }
228
- }
229
- render() {
230
- return (h(Host, { onKeyDown: this.handleKeyDown }, h("div", { tabindex: "0", onClick: (event) => this.handleClick(event), onKeyDown: (event) => {
231
- if (event.key === KeyboardKeys.ENTER) {
232
- this.handleClick(event);
233
- }
234
- } }, h("slot", { name: "trigger" })), h("div", { ref: (e) => (this.popoverElem = e), class: classnames("popover-content-container", this.popoverPosition, `border-radius-${this.borderRadius}`, this.boxShadow, { "show-arrow": this.showArrow }, { visible: this.isVisible }), style: {
235
- backgroundColor: `var(--${this.backgroundColor})`,
236
- padding: this.padding,
237
- } }, h("slot", { name: "popover" }))));
238
- }
239
- };
240
- ZPopover.style = stylesCss$a;
241
-
242
- const stylesCss$9 = "z-table{overflow-x:auto;display:block;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-rg);background-color:var(--color-white)}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;left:0;box-shadow:1px 0 4px -1px rgba(66, 69, 72, 0.4);z-index:1}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;top:0;box-shadow:0 2px 3px -3px rgba(66, 69, 72, 0.4)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{z-index:2}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;flex-direction:row;width:100%}.error-content{font-family:var(--dashboard-font);padding:calc(var(--space-unit) * 3);display:flex}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
243
-
244
- const ZTable = class {
245
- constructor(hostRef) {
246
- registerInstance(this, hostRef);
247
- this.callToAction = createEvent(this, "callToAction", 7);
248
- this.callToActionTwo = createEvent(this, "callToActionTwo", 7);
249
- /** Error message */
250
- this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
251
- /** Sets table with border */
252
- this.bordered = false;
253
- /** Sets first column sticky */
254
- this.columnSticky = false;
255
- /** Sets empty table */
256
- this.empty = false;
257
- /** Set error status */
258
- this.error = false;
259
- /** Sets header sticky */
260
- this.headerSticky = false;
261
- /** Set message */
262
- this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
263
- /** Set subtitle */
264
- this.subtitle = "";
265
- }
266
- handleResize() {
267
- this.isMobile = window.innerWidth <= mobileBreakpoint;
268
- }
269
- handleOrientationChange() {
270
- this.isMobile = screen.width <= mobileBreakpoint;
271
- }
272
- componentWillLoad() {
273
- var _a;
274
- this.isMobile = window.innerWidth <= mobileBreakpoint;
275
- const tableBody = this.host.querySelector('[slot="table-body"]');
276
- this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
277
- if (!!tableBody && !this.hasTableBody) {
278
- tableBody.remove();
279
- }
280
- }
281
- componentWillRender() {
282
- this.host.setAttribute("role", "table");
283
- }
284
- renderError(tableClass) {
285
- const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
286
- return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), h("slot", { name: "error-action" }))))));
287
- }
288
- renderEmpty(tableClass) {
289
- const buttonSize = this.isMobile
290
- ? ButtonSizeEnum.small
291
- : ButtonSizeEnum.big;
292
- const tableContentClass = `${!!this.hasTableBody ? "table-content" : ""}`;
293
- if (this.hasTableBody) {
294
- return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
295
- }
296
- return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
297
- }
298
- render() {
299
- const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
300
- ${this.columnSticky ? "table-column-sticky" : ""}
301
- ${this.headerSticky ? "table-header-sticky" : ""}`;
302
- if (this.error) {
303
- return this.renderError(tableClass);
304
- }
305
- if (this.empty) {
306
- return this.renderEmpty(tableClass);
307
- }
308
- return (h(Host, null, h("div", { class: tableClass }, h("slot", null)), h("slot", { name: "sticky-footer" })));
309
- }
310
- static get assetsDirs() { return ["assets"]; }
311
- get host() { return getElement(this); }
312
- };
313
- ZTable.style = stylesCss$9;
314
-
315
- const stylesCss$8 = ".sc-z-table-body-h{display:table-row-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-table-body-h>z-table-row[expanded].sc-z-table-body+z-table-expanded-row.sc-z-table-body{display:table-row}";
316
-
317
- const ZTableBody = class {
318
- constructor(hostRef) {
319
- registerInstance(this, hostRef);
320
- }
321
- componentWillRender() {
322
- this.host.setAttribute("role", "rowgroup");
323
- Array.from(this.host.children).forEach((child, index) => child.setAttribute("aria-rowindex", `${index}`));
324
- }
325
- render() {
326
- return h("slot", null);
327
- }
328
- get host() { return getElement(this); }
329
- };
330
- ZTableBody.style = stylesCss$8;
331
-
332
- const stylesCss$7 = ":host{display:table-cell;background-color:var(--color-white);border-bottom:var(--border-size-small) solid var(--bg-grey-200);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>.button-container{display:none}:host:hover>.button-container{display:initial}.button-container{position:absolute;right:8px;top:8px;z-index:5}.button-content{position:relative}.contextual-menu-container{display:none;position:absolute;top:calc(100% - var(--space-unit));right:0}.button-container.visible,.contextual-menu-container.visible{display:initial}: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}";
333
-
334
- const ZTableCell = class {
335
- constructor(hostRef) {
336
- registerInstance(this, hostRef);
337
- /** Set padding size of cell, if special 0px padding will be set */
338
- this.padding = Size.medium;
339
- this.isMenuOpened = false;
340
- }
341
- handleMenu() {
342
- this.isMenuOpened = !this.isMenuOpened;
343
- }
344
- componentWillRender() {
345
- this.host.setAttribute("role", "cell");
346
- }
347
- render() {
348
- return (h(Host, null, this.showButton && (h("div", { class: classnames("button-container", {
349
- visible: this.isMenuOpened,
350
- }) }, h("div", { class: "button-content" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum.tertiary, size: ButtonSizeEnum["x-small"], onClick: () => this.handleMenu(), square: true }), h("div", { class: classnames("contextual-menu-container", {
351
- visible: this.isMenuOpened,
352
- }) }, h("slot", { name: "contextual-menu" }))))), h("slot", null)));
353
- }
354
- get host() { return getElement(this); }
355
- };
356
- ZTableCell.style = stylesCss$7;
357
-
358
- const stylesCss$6 = ".sc-z-table-empty-box-h{display:block;padding:calc(var(--space-unit)) calc(var(--space-unit) * 3)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 3);background-color:var(--bg-white)}.sc-z-table-empty-box-s>*{margin-top:var(--space-unit)}.cta.sc-z-table-empty-box{display:flex;flex-direction:row;margin-top:calc(var(--space-unit) / 2)}.cta.has2Cta.sc-z-table-empty-box{flex-direction:column}@media only screen and (min-width: 768px){.sc-z-table-empty-box-h{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 7)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 7)}.sc-z-table-empty-box-s>*{margin-right:calc(var(--space-unit) * 2)}.cta.sc-z-table-empty-box{margin-top:var(--space-unit)}.cta.has2Cta.sc-z-table-empty-box{flex-direction:row}}";
359
-
360
- const ZTableEmptyBox = class {
361
- constructor(hostRef) {
362
- registerInstance(this, hostRef);
363
- /** Sets main title message*/
364
- this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare.";
365
- /** Sets message */
366
- this.subtitle = "";
367
- }
368
- componentWillLoad() {
369
- this.hasCta1Slot = !!this.hostElement.querySelector('[slot="cta1"]');
370
- this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
371
- }
372
- render() {
373
- return (h(Host, null, h("z-body", { level: 3, variant: "semibold" }, this.message), h("br", null), !!this.subtitle && (h("z-body", { level: 4, variant: "regular" }, this.subtitle)), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (h("div", { class: classnames("cta", {
374
- has2Cta: !!this.hasCta1Slot && !!this.hasCta2Slot
375
- }) }, h("slot", { name: "cta1" }), h("slot", { name: "cta2" })))));
376
- }
377
- get hostElement() { return getElement(this); }
378
- };
379
- ZTableEmptyBox.style = stylesCss$6;
380
-
381
- const stylesCss$5 = ".sc-z-table-head-h{display:table-header-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}";
382
-
383
- const ZTableHead = class {
384
- constructor(hostRef) {
385
- registerInstance(this, hostRef);
386
- }
387
- componentWillRender() {
388
- this.host.setAttribute("role", "rowgroup");
389
- }
390
- render() {
391
- return h("slot", null);
392
- }
393
- get host() { return getElement(this); }
394
- };
395
- ZTableHead.style = stylesCss$5;
396
-
397
- const stylesCss$4 = ":host{display:table-cell;background-color:var(--gray50);border-bottom:var(--border-size-medium) solid var(--gray200);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start;position:relative}.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{opacity:1;padding-left:var(--space-unit)}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
398
-
399
- const ZTableHeader = class {
400
- constructor(hostRef) {
401
- registerInstance(this, hostRef);
402
- this.sort = createEvent(this, "sort", 7);
403
- /** Set padding size of cell, if special 0px padding will be set */
404
- this.padding = Size.medium;
405
- /** [Optional] Default sort order */
406
- this.defaultSortDirection = SortDirectionEnum.asc;
407
- this.sortDirection = SortDirectionEnum.none;
408
- this.isMenuOpened = false;
409
- this.emitOnSort = this.emitOnSort.bind(this);
410
- }
411
- emitOnSort() {
412
- this.sort.emit({
413
- columnId: this.columnId,
414
- sortDirection: this.sortDirection,
415
- });
416
- }
417
- handleSort() {
418
- if (!this.sortable) {
419
- return;
420
- }
421
- this.sortDirection = (() => {
422
- switch (this.sortDirection) {
423
- case SortDirectionEnum.asc:
424
- return SortDirectionEnum.desc;
425
- case SortDirectionEnum.desc:
426
- return SortDirectionEnum.asc;
427
- case SortDirectionEnum.none:
428
- return this.defaultSortDirection;
429
- default:
430
- return SortDirectionEnum.none;
431
- }
432
- })();
433
- this.emitOnSort();
434
- }
435
- handleMenuClick() {
436
- this.isMenuOpened = !this.isMenuOpened;
437
- }
438
- handleOutsideClick(e) {
439
- const tree = getElementTree(e.target);
440
- const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
441
- if (!parent) {
442
- this.isMenuOpened = false;
443
- }
444
- }
445
- handleClickHeaders(e) {
446
- const { target } = e;
447
- const parent = getElementTree(target).find((elem) => elem.nodeName.toLowerCase() === "z-table-header");
448
- if (!this.sortable || !parent) {
449
- return;
450
- }
451
- const parentColumnId = parent.attributes.getNamedItem("column-id").value;
452
- const isSortable = target.parentNode.sortable || target.sortable;
453
- if (parentColumnId !== this.columnId && isSortable) {
454
- this.sortDirection = SortDirectionEnum.none;
455
- }
456
- }
457
- componentWillRender() {
458
- this.host.setAttribute("role", "columnheader");
459
- }
460
- render() {
461
- return (h(Host, { class: classnames({
462
- sortable: this.sortable,
463
- }), onClick: () => this.handleSort() }, h("div", { class: classnames("container") }, h("slot", null), this.sortable && this.sortDirection !== SortDirectionEnum.none && (h("z-icon", { name: this.sortDirection === SortDirectionEnum.asc
464
- ? "arrow-up"
465
- : "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: classnames("popover-container", {
466
- visible: this.isMenuOpened,
467
- }) }, h("z-popover", { position: PopoverPosition["below-center"], "background-color": "gray200" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariantEnum["tertiary"], size: ButtonSizeEnum["x-small"], square: true, slot: "trigger", onClick: () => this.handleMenuClick() }), h("div", { slot: "popover" }, h("slot", { name: "contextual-menu" })))))));
468
- }
469
- get host() { return getElement(this); }
470
- };
471
- ZTableHeader.style = stylesCss$4;
472
-
473
- const stylesCss$3 = "z-table-header-row{display:table-row}z-table-header-row[expandable]>z-table-header:first-child{width:40px;user-select:none;box-sizing:border-box}z-table-header-row[expandable]>z-table-header:nth-child(2){padding-left:8px}";
474
-
475
- const ZTableHeaderRow = class {
476
- constructor(hostRef) {
477
- registerInstance(this, hostRef);
478
- }
479
- _renderExpandHeader() {
480
- return h("z-table-header", null);
481
- }
482
- render() {
483
- return (h(Host, { role: "row" }, this.expandable && this._renderExpandHeader(), h("slot", null)));
484
- }
485
- };
486
- ZTableHeaderRow.style = stylesCss$3;
487
-
488
- const stylesCss$2 = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;padding-left:16px;padding-right:0px;box-sizing:border-box;text-align:center;fill:var(--gray800);user-select:none}.z-icon-placeholder{width:24px;padding-right:0px}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}z-table-row[expanded]>z-table-cell{border-bottom:none}";
489
-
490
- const ZTableRow = class {
491
- constructor(hostRef) {
492
- registerInstance(this, hostRef);
493
- this.expand = createEvent(this, "expand", 7);
494
- this.expandedType = ZTableRowExpandedType.none;
495
- this.expanded = false;
496
- }
497
- emitOnExpand() {
498
- this.expand.emit({ expanded: this.expanded });
499
- }
500
- handleExpand() {
501
- this.expanded = !this.expanded;
502
- this.emitOnExpand();
503
- }
504
- renderExpandButton() {
505
- if (this.expandedType == ZTableRowExpandedType.expandable) {
506
- return (h("z-table-cell", { style: { borderRight: "none" } }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
507
- }
508
- return (h("z-table-cell", { style: { borderRight: "none" } }, h("div", { class: "z-icon-placeholder" })));
509
- }
510
- render() {
511
- return (h(Host, { role: "row", expanded: this.expanded, onClick: (event) => {
512
- const contextualMenuClick = event.target.nodeName === 'Z-CONTEXTUAL-MENU';
513
- const isExpandable = this.expandedType === ZTableRowExpandedType.expandable;
514
- if (isExpandable && !contextualMenuClick) {
515
- this.handleExpand();
516
- }
517
- } }, this.expandedType !== ZTableRowExpandedType.none &&
518
- this.renderExpandButton(), h("slot", null)));
519
- }
520
- };
521
- ZTableRow.style = stylesCss$2;
522
-
523
- const stylesCss$1 = ".sc-z-table-sticky-footer-h{display:block;position:sticky;left:0;padding:var(--basex2);background-color:var(--bg-white);border-style:solid;border-color:var(--gray200);border-width:var(--border-size-small) 0 var(--border-base);font-weight:var(--font-rg)}";
524
-
525
- const ZTableStickyFooter = class {
526
- constructor(hostRef) {
527
- registerInstance(this, hostRef);
528
- }
529
- render() {
530
- return (h("slot", null));
531
- }
532
- };
533
- ZTableStickyFooter.style = stylesCss$1;
534
-
535
- const stylesCss = ":host>*{font-family:var(--dashboard-font);margin:0}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
536
-
537
- const ZTypography = class {
538
- constructor(hostRef) {
539
- registerInstance(this, hostRef);
540
- this.variant = "regular";
541
- }
542
- render() {
543
- const el = document.createElement(this.component || "span");
544
- el.innerHTML = `<slot />`;
545
- this.hostElement.shadowRoot.appendChild(el);
546
- return (h(Host, { class: {
547
- [this.level]: Boolean(this.level),
548
- regular: this.variant === "regular",
549
- semibold: this.variant === "semibold",
550
- light: this.variant === "light"
551
- } }));
552
- }
553
- get hostElement() { return getElement(this); }
554
- };
555
- ZTypography.style = stylesCss;
556
-
557
- export { ZBody as z_body, ZButton as z_button, ZCard as z_card, ZIcon as z_icon, ZPopover as z_popover, ZTable as z_table, ZTableBody as z_table_body, ZTableCell as z_table_cell, ZTableEmptyBox as z_table_empty_box, ZTableHead as z_table_head, ZTableHeader as z_table_header, ZTableHeaderRow as z_table_header_row, ZTableRow as z_table_row, ZTableStickyFooter as z_table_sticky_footer, ZTypography as z_typography };
@@ -1 +0,0 @@
1
- var t,e,n,o,a,s,i,r,c,l,u,f,d,m,g,b,h,w,p,E,v,x,A,k,_,C,R,S,y,D,P,T,B,N,O;!function(t){t.real="reale",t.virtual="virtuale",t.trial="saggio"}(t||(t={})),function(t){t.border="border",t.shadow="shadow",t.overlay="overlay",t.text="text"}(e||(e={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(n||(n={})),function(t){t.big="big",t.small="small"}(o||(o={})),function(t){t.primary="primary",t.secondary="secondary",t.tertiary="tertiary",t["dark-bg"]="dark-bg"}(a||(a={})),function(t){t.submit="submit",t.reset="reset",t.button="button"}(s||(s={})),function(t){t.big="big",t.small="small",t["x-small"]="x-small"}(i||(i={})),function(t){t.text="text",t.password="password",t.number="number",t.email="email",t.textarea="textarea",t.checkbox="checkbox",t.radio="radio",t.select="select"}(r||(r={})),function(t){t.success="success",t.error="error",t.warning="warning",t.selecting="selecting"}(c||(c={})),function(t){t.AUTO="auto",t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t.TOP_RIGHT="top_right",t.TOP_LEFT="top_left",t.BOTTOM_RIGHT="bottom_right",t.BOTTOM_LEFT="bottom_left"}(l||(l={})),function(t){t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.ESC=27]="ESC",t[t.ENTER=13]="ENTER",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.BACKSPACE=8]="BACKSPACE",t[t.DELETE=46]="DELETE"}(u||(u={})),function(t){t.ARROW_DOWN="ArrowDown",t.ARROW_UP="ArrowUp",t.ENTER="Enter",t.ESC="Escape",t.SPACE="Space"}(f||(f={})),function(t){t.dark="dark",t.light="light"}(d||(d={})),function(t){t["after-down"]="after-down",t["after-center"]="after-center",t["after-up"]="after-up",t["below-right"]="below-right",t["below-center"]="below-center",t["below-left"]="below-left",t["before-down"]="before-down",t["before-center"]="before-center",t["before-up"]="before-up",t["above-right"]="above-right",t["above-center"]="above-center",t["above-left"]="above-left"}(m||(m={})),function(t){t.none="none",t.small="small",t.medium="medium"}(g||(g={})),function(t){t["shadow-1"]="shadow-1",t["shadow-2"]="shadow-2",t["shadow-3"]="shadow-3",t["shadow-4"]="shadow-4",t["shadow-6"]="shadow-6",t["shadow-8"]="shadow-8",t["shadow-12"]="shadow-12",t["shadow-16"]="shadow-16",t["shadow-24"]="shadow-24"}(b||(b={})),function(t){t.small="small",t.medium="medium",t.large="large"}(h||(h={})),function(t){t.horizontal="horizontal",t.vertical="vertical"}(w||(w={})),function(t){t.asc="asc",t.desc="desc",t.none="none"}(p||(p={})),function(t){t.small="small",t.medium="medium",t.large="large"}(E||(E={})),function(t){t.warning="warning",t.error="error",t.success="success",t.neutral="neutral",t.default="default"}(v||(v={})),function(t){t.small="small",t.medium="medium",t.large="large",t["x-large"]="x-large"}(x||(x={})),function(t){t["x-small"]="x-small",t.small="small",t.medium="medium",t.large="large",t.special="special"}(A||(A={})),function(t){t.accordion="accordion",t.menu="menu"}(k||(k={})),function(t){t.right="right",t.left="left"}(_||(_={})),function(t){t.none="none",t.header="header",t.element="element"}(C||(C={})),function(t){t.success="success",t.warning="warning",t.error="error"}(R||(R={})),function(t){t.success="success",t.warning="warning",t.error="error"}(S||(S={})),function(t){t.mobile="mobile",t.tablet="tablet",t.desktop="desktop"}(y||(y={})),function(t){t.preview="preview",t.open="open",t.closed="closed"}(D||(D={})),function(t){t.dark="dark",t.light="light",t.accent="accent",t.error="error",t.success="success",t.warning="warning"}(P||(P={})),function(t){t.slideInLeft="slide-in-left",t.slideInRight="slide-in-right",t.slideInDown="slide-in-down",t.slideInUp="slide-in-up",t.slideOutLeft="slide-out-left",t.slideOutRight="slide-out-right",t.slideOutDown="slide-out-down",t.slideOutUp="slide-out-up"}(T||(T={})),function(t){t.topRight="top-right",t.topLeft="top-left",t.topCentre="top-centre",t.bottomRight="bottom-right",t.bottomLeft="bottom-left",t.bottomCentre="bottom-centre"}(B||(B={})),function(t){t.expandable="expandable",t.padding="padding",t.none="none"}(N||(N={})),function(t){t.polite="polite",t.assertive="assertive"}(O||(O={}));export{E as A,s as B,e as C,y as D,_ as E,r as I,f as K,t as L,R as N,m as P,A as S,d as T,N as Z,a,i as b,g as c,b as d,p as e,w as f,O as g,D as h,c as i,S as j,u as k,l,n as m,o as n,v as o,T as p,B as q,x as r,C as s,h as t,k as u}
@@ -1 +0,0 @@
1
- import{k as t,D as n}from"./p-0af2894e.js";import{t as r,m as a}from"./p-d69e14fb.js";function u(){return Math.random().toString(36).replace("0.","")}function e(n,r,...a){n.keyCode!==t.ENTER&&n.keyCode!==t.SPACE||(n.preventDefault(),r(...a))}function s(t=null){return t||(t=document.activeElement),t&&t.shadowRoot&&t.shadowRoot.activeElement?s(t=t.shadowRoot.activeElement):t}function o(t,n=[]){return n.push(t),t.parentElement?o(t=t.parentElement,n):t.parentNode&&t.parentNode.host?o(t=t.parentNode.host,n):n}function c(){switch(!0){case window.innerWidth<=a:return n.mobile;case window.innerWidth<=r:return n.tablet;default:return n.desktop}}function f(t){try{return JSON.parse(t)}catch(t){return!1}}function i(t){const n=Math.ceil(2**31-1)*parseFloat(`0.${t}`);let r=Math.ceil(n%1*19);return 0===r&&(r=1),`avatar-C${r.toString().padStart(2,"0")}`}export{f as a,c as b,i as c,s as d,o as g,e as h,u as r}