@zanichelli/albe-web-components 2.34.2 → 2.34.4

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 (190) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/web-components-library.cjs.js +1 -1
  4. package/dist/cjs/z-app-header.cjs.entry.js +5 -0
  5. package/dist/cjs/z-body_14.cjs.entry.js +513 -0
  6. package/dist/collection/components/navigation/z-app-header/index.js +21 -1
  7. package/dist/collection/components/z-table/z-table-row/styles.css +1 -1
  8. package/dist/esm/{index-56ab7a69.js → index-f928c852.js} +1 -1
  9. package/dist/esm/index.js +2 -2
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/esm/{utils-cde16cf3.js → utils-a219c3d4.js} +2 -2
  12. package/dist/esm/web-components-library.js +1 -1
  13. package/dist/esm/z-app-header.entry.js +6 -1
  14. package/dist/esm/z-app-switcher.entry.js +1 -1
  15. package/dist/esm/z-app-topbar.entry.js +1 -1
  16. package/dist/esm/z-aria-alert.entry.js +1 -1
  17. package/dist/esm/z-avatar.entry.js +1 -1
  18. package/dist/esm/z-body_14.entry.js +496 -0
  19. package/dist/esm/z-button-filter_5.entry.js +2 -2
  20. package/dist/esm/z-card.entry.js +1 -1
  21. package/dist/esm/z-combobox.entry.js +2 -2
  22. package/dist/esm/z-contextual-menu.entry.js +1 -1
  23. package/dist/esm/z-cookiebar.entry.js +1 -1
  24. package/dist/esm/z-divider.entry.js +1 -1
  25. package/dist/esm/z-footer.entry.js +1 -1
  26. package/dist/esm/z-list_3.entry.js +1 -1
  27. package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
  28. package/dist/esm/z-messages-pocket.entry.js +1 -1
  29. package/dist/esm/z-modal-login.entry.js +1 -1
  30. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  31. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  32. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  33. package/dist/esm/z-myz-card-info.entry.js +2 -2
  34. package/dist/esm/z-myz-card_4.entry.js +1 -1
  35. package/dist/esm/z-myz-list-item.entry.js +2 -2
  36. package/dist/esm/z-myz-topbar.entry.js +1 -1
  37. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  38. package/dist/esm/z-notification.entry.js +1 -1
  39. package/dist/esm/z-otp.entry.js +1 -1
  40. package/dist/esm/z-pagination-bar.entry.js +2 -2
  41. package/dist/esm/z-pocket_3.entry.js +2 -2
  42. package/dist/esm/z-slideshow.entry.js +2 -2
  43. package/dist/esm/z-status-tag.entry.js +1 -1
  44. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  45. package/dist/esm/z-toast-notification.entry.js +1 -1
  46. package/dist/esm/z-tooltip.entry.js +1 -1
  47. package/dist/types/components/navigation/z-app-header/index.d.ts +6 -0
  48. package/dist/types/components.d.ts +4 -0
  49. package/dist/web-components-library/index.esm.js +1 -1
  50. package/{www/build/p-cf899f93.entry.js → dist/web-components-library/p-065c2661.entry.js} +1 -1
  51. package/dist/web-components-library/{p-ee645fca.entry.js → p-0fee9636.entry.js} +1 -1
  52. package/dist/web-components-library/{p-eface1ff.entry.js → p-19784323.entry.js} +1 -1
  53. package/dist/web-components-library/{p-a762915b.entry.js → p-2df1936a.entry.js} +1 -1
  54. package/dist/web-components-library/{p-d1896fdb.entry.js → p-306c18e8.entry.js} +1 -1
  55. package/dist/web-components-library/{p-e6aac31c.entry.js → p-33dc4f06.entry.js} +1 -1
  56. package/dist/web-components-library/{p-45261bde.js → p-3dce95ce.js} +1 -1
  57. package/{www/build/p-2b361a53.entry.js → dist/web-components-library/p-42bbbe45.entry.js} +1 -1
  58. package/dist/web-components-library/{p-ee4fa9a8.entry.js → p-44904136.entry.js} +1 -1
  59. package/dist/web-components-library/{p-de5f9244.entry.js → p-45352dbd.entry.js} +1 -1
  60. package/dist/web-components-library/{p-80d6185c.entry.js → p-46409367.entry.js} +1 -1
  61. package/dist/web-components-library/{p-3ece97c0.entry.js → p-57ca60ca.entry.js} +1 -1
  62. package/dist/web-components-library/{p-8a9199e8.entry.js → p-5ab81e9b.entry.js} +1 -1
  63. package/dist/web-components-library/{p-d0c3eac6.entry.js → p-5f30cea7.entry.js} +1 -1
  64. package/dist/web-components-library/{p-a93086bc.entry.js → p-6a555104.entry.js} +1 -1
  65. package/{www/build/p-9621d591.entry.js → dist/web-components-library/p-72768e3c.entry.js} +1 -1
  66. package/dist/web-components-library/p-795f0a47.entry.js +1 -0
  67. package/dist/web-components-library/{p-3a5fc4ef.entry.js → p-8157eea6.entry.js} +1 -1
  68. package/dist/web-components-library/{p-ac229c9e.entry.js → p-8bb0c86d.entry.js} +1 -1
  69. package/{www/build/p-0ba3401a.entry.js → dist/web-components-library/p-94a60282.entry.js} +1 -1
  70. package/dist/web-components-library/{p-be3eeede.entry.js → p-9cf0c400.entry.js} +1 -1
  71. package/dist/web-components-library/p-9f241f4c.js +1 -0
  72. package/dist/web-components-library/{p-bc7e836a.entry.js → p-a3fda8d7.entry.js} +1 -1
  73. package/dist/web-components-library/{p-7c8a52e0.entry.js → p-aba4e402.entry.js} +1 -1
  74. package/dist/web-components-library/p-b18566a3.entry.js +1 -0
  75. package/dist/web-components-library/{p-21f3b77f.entry.js → p-b36031be.entry.js} +1 -1
  76. package/dist/web-components-library/{p-7d7aee65.entry.js → p-b725af3c.entry.js} +1 -1
  77. package/dist/web-components-library/{p-df4cf5b2.entry.js → p-d41a8631.entry.js} +1 -1
  78. package/dist/web-components-library/{p-5f8b1594.entry.js → p-d4ada94b.entry.js} +1 -1
  79. package/dist/web-components-library/{p-d8bc4e21.entry.js → p-ded3311b.entry.js} +1 -1
  80. package/{www/build/p-e8615a83.entry.js → dist/web-components-library/p-dedd49a7.entry.js} +1 -1
  81. package/{www/build/p-db8f3039.entry.js → dist/web-components-library/p-e21ba6cb.entry.js} +1 -1
  82. package/dist/web-components-library/{p-38091d2a.entry.js → p-f7ac7835.entry.js} +1 -1
  83. package/dist/web-components-library/p-faf00695.entry.js +1 -0
  84. package/dist/web-components-library/p-fdfca9b7.entry.js +1 -0
  85. package/dist/web-components-library/{p-8a12e2cd.entry.js → p-fe3ab113.entry.js} +1 -1
  86. package/dist/web-components-library/web-components-library.esm.js +1 -1
  87. package/package.json +1 -1
  88. package/www/build/index.esm.js +1 -1
  89. package/{dist/web-components-library/p-cf899f93.entry.js → www/build/p-065c2661.entry.js} +1 -1
  90. package/www/build/{p-ee645fca.entry.js → p-0fee9636.entry.js} +1 -1
  91. package/www/build/{p-eface1ff.entry.js → p-19784323.entry.js} +1 -1
  92. package/www/build/{p-a762915b.entry.js → p-2df1936a.entry.js} +1 -1
  93. package/www/build/{p-d1896fdb.entry.js → p-306c18e8.entry.js} +1 -1
  94. package/www/build/{p-e6aac31c.entry.js → p-33dc4f06.entry.js} +1 -1
  95. package/www/build/{p-45261bde.js → p-3dce95ce.js} +1 -1
  96. package/{dist/web-components-library/p-2b361a53.entry.js → www/build/p-42bbbe45.entry.js} +1 -1
  97. package/www/build/{p-ee4fa9a8.entry.js → p-44904136.entry.js} +1 -1
  98. package/www/build/{p-de5f9244.entry.js → p-45352dbd.entry.js} +1 -1
  99. package/www/build/{p-80d6185c.entry.js → p-46409367.entry.js} +1 -1
  100. package/www/build/p-4bf7cdf7.js +122 -0
  101. package/www/build/{p-3ece97c0.entry.js → p-57ca60ca.entry.js} +1 -1
  102. package/www/build/{p-8a9199e8.entry.js → p-5ab81e9b.entry.js} +1 -1
  103. package/www/build/{p-d0c3eac6.entry.js → p-5f30cea7.entry.js} +1 -1
  104. package/www/build/{p-a93086bc.entry.js → p-6a555104.entry.js} +1 -1
  105. package/{dist/web-components-library/p-9621d591.entry.js → www/build/p-72768e3c.entry.js} +1 -1
  106. package/www/build/p-795f0a47.entry.js +1 -0
  107. package/www/build/{p-3a5fc4ef.entry.js → p-8157eea6.entry.js} +1 -1
  108. package/www/build/{p-ac229c9e.entry.js → p-8bb0c86d.entry.js} +1 -1
  109. package/{dist/web-components-library/p-0ba3401a.entry.js → www/build/p-94a60282.entry.js} +1 -1
  110. package/www/build/p-97a11655.css +789 -0
  111. package/www/build/{p-be3eeede.entry.js → p-9cf0c400.entry.js} +1 -1
  112. package/www/build/p-9f241f4c.js +1 -0
  113. package/www/build/{p-bc7e836a.entry.js → p-a3fda8d7.entry.js} +1 -1
  114. package/www/build/{p-7c8a52e0.entry.js → p-aba4e402.entry.js} +1 -1
  115. package/www/build/p-b18566a3.entry.js +1 -0
  116. package/www/build/{p-21f3b77f.entry.js → p-b36031be.entry.js} +1 -1
  117. package/www/build/{p-7d7aee65.entry.js → p-b725af3c.entry.js} +1 -1
  118. package/www/build/{p-df4cf5b2.entry.js → p-d41a8631.entry.js} +1 -1
  119. package/www/build/{p-5f8b1594.entry.js → p-d4ada94b.entry.js} +1 -1
  120. package/www/build/{p-d8bc4e21.entry.js → p-ded3311b.entry.js} +1 -1
  121. package/{dist/web-components-library/p-e8615a83.entry.js → www/build/p-dedd49a7.entry.js} +1 -1
  122. package/{dist/web-components-library/p-db8f3039.entry.js → www/build/p-e21ba6cb.entry.js} +1 -1
  123. package/www/build/{p-38091d2a.entry.js → p-f7ac7835.entry.js} +1 -1
  124. package/www/build/p-faf00695.entry.js +1 -0
  125. package/www/build/p-fdfca9b7.entry.js +1 -0
  126. package/www/build/{p-8a12e2cd.entry.js → p-fe3ab113.entry.js} +1 -1
  127. package/www/build/web-components-library.esm.js +1 -1
  128. package/www/index.html +2 -2
  129. package/dist/cjs/z-body_2.cjs.entry.js +0 -40
  130. package/dist/cjs/z-button.cjs.entry.js +0 -39
  131. package/dist/cjs/z-icon.cjs.entry.js +0 -28
  132. package/dist/cjs/z-popover.cjs.entry.js +0 -127
  133. package/dist/cjs/z-table-body.cjs.entry.js +0 -24
  134. package/dist/cjs/z-table-cell.cjs.entry.js +0 -36
  135. package/dist/cjs/z-table-empty-box.cjs.entry.js +0 -28
  136. package/dist/cjs/z-table-head.cjs.entry.js +0 -23
  137. package/dist/cjs/z-table-header-row.cjs.entry.js +0 -22
  138. package/dist/cjs/z-table-header.cjs.entry.js +0 -88
  139. package/dist/cjs/z-table-row.cjs.entry.js +0 -43
  140. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +0 -19
  141. package/dist/cjs/z-table.cjs.entry.js +0 -82
  142. package/dist/esm/z-body_2.entry.js +0 -35
  143. package/dist/esm/z-button.entry.js +0 -35
  144. package/dist/esm/z-icon.entry.js +0 -24
  145. package/dist/esm/z-popover.entry.js +0 -123
  146. package/dist/esm/z-table-body.entry.js +0 -20
  147. package/dist/esm/z-table-cell.entry.js +0 -32
  148. package/dist/esm/z-table-empty-box.entry.js +0 -24
  149. package/dist/esm/z-table-head.entry.js +0 -19
  150. package/dist/esm/z-table-header-row.entry.js +0 -18
  151. package/dist/esm/z-table-header.entry.js +0 -84
  152. package/dist/esm/z-table-row.entry.js +0 -39
  153. package/dist/esm/z-table-sticky-footer.entry.js +0 -15
  154. package/dist/esm/z-table.entry.js +0 -78
  155. package/dist/web-components-library/p-0f197b8e.entry.js +0 -1
  156. package/dist/web-components-library/p-1094e4de.entry.js +0 -1
  157. package/dist/web-components-library/p-1cf2c6f6.entry.js +0 -1
  158. package/dist/web-components-library/p-4665d79f.entry.js +0 -1
  159. package/dist/web-components-library/p-4c1dc891.entry.js +0 -1
  160. package/dist/web-components-library/p-568b3728.entry.js +0 -1
  161. package/dist/web-components-library/p-6384d72c.entry.js +0 -1
  162. package/dist/web-components-library/p-662b29d0.entry.js +0 -1
  163. package/dist/web-components-library/p-8ad12683.entry.js +0 -1
  164. package/dist/web-components-library/p-8ccf136e.entry.js +0 -1
  165. package/dist/web-components-library/p-8deddec7.entry.js +0 -1
  166. package/dist/web-components-library/p-aa77d746.entry.js +0 -1
  167. package/dist/web-components-library/p-d4c4b90a.entry.js +0 -1
  168. package/dist/web-components-library/p-ddc5aae2.entry.js +0 -1
  169. package/dist/web-components-library/p-ec13a382.entry.js +0 -1
  170. package/dist/web-components-library/p-f5e1d5a9.entry.js +0 -1
  171. package/dist/web-components-library/p-fcfb7e03.js +0 -1
  172. package/www/build/p-0f197b8e.entry.js +0 -1
  173. package/www/build/p-1094e4de.entry.js +0 -1
  174. package/www/build/p-1cf2c6f6.entry.js +0 -1
  175. package/www/build/p-331e0cc6.js +0 -1
  176. package/www/build/p-4665d79f.entry.js +0 -1
  177. package/www/build/p-4c1dc891.entry.js +0 -1
  178. package/www/build/p-568b3728.entry.js +0 -1
  179. package/www/build/p-6384d72c.entry.js +0 -1
  180. package/www/build/p-662b29d0.entry.js +0 -1
  181. package/www/build/p-8ad12683.entry.js +0 -1
  182. package/www/build/p-8ccf136e.entry.js +0 -1
  183. package/www/build/p-8deddec7.entry.js +0 -1
  184. package/www/build/p-aa77d746.entry.js +0 -1
  185. package/www/build/p-d4c4b90a.entry.js +0 -1
  186. package/www/build/p-ddc5aae2.entry.js +0 -1
  187. package/www/build/p-ea943cbd.css +0 -1
  188. package/www/build/p-ec13a382.entry.js +0 -1
  189. package/www/build/p-f5e1d5a9.entry.js +0 -1
  190. package/www/build/p-fcfb7e03.js +0 -1
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const index$2 = require('./index-9651dba8.js');
7
- const index$1 = require('./index-3735f277.js');
8
- require('./_commonjsHelpers-119ffc74.js');
9
-
10
- const stylesCss = ":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)}";
11
-
12
- const ZButton = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- /** HTML button disabled attribute. */
16
- this.disabled = false;
17
- /** HTML button type attribute. */
18
- this.type = index$1.ButtonTypeEnum.button;
19
- /** Graphical variant: `primary`, `secondary`, `tertiary`, `dark-bg`. Defaults to `primary`. */
20
- this.variant = index$1.ButtonVariantEnum.primary;
21
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
22
- this.size = index$1.ButtonSizeEnum.big;
23
- /** Reduce button size (deprecated).
24
- *
25
- * @deprecated Use `size` prop.
26
- * */
27
- this.issmall = false;
28
- /** Spy to render square button. */
29
- this.square = false;
30
- }
31
- render() {
32
- this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
33
- return (index.h("slot", { name: "element" }, index.h("button", { id: this.htmlid, name: this.name, type: this.type, disabled: this.disabled, class: index$2.classnames(this.variant, this.size, { issmall: this.issmall }, { square: this.square }) }, this.icon && index.h("z-icon", { name: this.icon, width: 16, height: 16 }), index.h("slot", null))));
34
- }
35
- get hostElement() { return index.getElement(this); }
36
- };
37
- ZButton.style = stylesCss;
38
-
39
- exports.z_button = ZButton;
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const icons = require('./icons-05eba7ee.js');
7
-
8
- const stylesCss = ":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)}";
9
-
10
- const ZIcon = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- }
14
- selectPathOrPolygon(iconName) {
15
- if (iconName && iconName.startsWith("M")) {
16
- return index.h("path", { d: icons.icons[this.name] });
17
- }
18
- else {
19
- return index.h("polygon", { points: icons.icons[this.name] });
20
- }
21
- }
22
- render() {
23
- return (index.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.icons[this.name])));
24
- }
25
- };
26
- ZIcon.style = stylesCss;
27
-
28
- exports.z_icon = ZIcon;
@@ -1,127 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const index$2 = require('./index-9651dba8.js');
7
- const index$1 = require('./index-3735f277.js');
8
- const utils = require('./utils-6a2c0eab.js');
9
- require('./_commonjsHelpers-119ffc74.js');
10
- require('./breakpoints-88c4fd6c.js');
11
-
12
- const stylesCss = ".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}";
13
-
14
- const ZPopover = class {
15
- /**
16
- * Constructor.
17
- */
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- /** [optional] Popover position */
21
- this.position = index$1.PopoverPosition["after-up"];
22
- /** [optional] Background color token for popover */
23
- this.backgroundColor = "color-white";
24
- /** [optional] Border radius token for popover */
25
- this.borderRadius = index$1.PopoverBorderRadius.small;
26
- /** [optional] Box shadow token for popover */
27
- this.boxShadow = index$1.PopoverShadow["shadow-1"];
28
- /** [optional] Show or hide arrow */
29
- this.showArrow = false;
30
- /** [optional] Sets padding for Popover container */
31
- this.padding = "8px";
32
- this.isVisible = false;
33
- this.handleKeyDown = this.handleKeyDown.bind(this);
34
- }
35
- componentDidLoad() {
36
- this.checkSpaceAvailable();
37
- }
38
- closePopover() {
39
- this.isVisible = false;
40
- }
41
- closePopoverWithKeyboard(e) {
42
- if (e.key === index$1.KeyboardKeys.ESC) {
43
- this.closePopover();
44
- }
45
- }
46
- handleClick(event) {
47
- this.isVisible = !this.isVisible;
48
- this.checkSpaceAvailable();
49
- event.stopPropagation();
50
- }
51
- handleKeyDown(event) {
52
- if (event.code === index$1.KeyboardKeys.ENTER) {
53
- this.isVisible = !this.isVisible;
54
- this.checkSpaceAvailable();
55
- }
56
- }
57
- handleOutsideClick(e) {
58
- const tree = utils.getElementTree(e.target);
59
- const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
60
- if (!parent) {
61
- this.isVisible = false;
62
- }
63
- }
64
- checkSpaceAvailable() {
65
- const width = document.body.clientWidth;
66
- const height = window.innerHeight;
67
- const rect = this.popoverElem.getBoundingClientRect();
68
- const l = rect.left;
69
- const r = rect.right;
70
- const t = rect.top;
71
- const b = rect.bottom;
72
- let firstSide = this.position.split("-")[0];
73
- let secondSide = this.position.split("-")[1];
74
- // If top is outside viewport
75
- if (t < 0) {
76
- if (this.position.startsWith("above")) {
77
- firstSide = "below";
78
- }
79
- else {
80
- secondSide = "down";
81
- }
82
- }
83
- // If bottom is outside viewport
84
- if (b > height) {
85
- if (this.position.startsWith("below")) {
86
- firstSide = "above";
87
- }
88
- else {
89
- secondSide = "up";
90
- }
91
- }
92
- // If right is outside viewport
93
- if (r > width) {
94
- if (this.position.startsWith("above") ||
95
- this.position.startsWith("below")) {
96
- secondSide = "left";
97
- }
98
- else {
99
- firstSide = "before";
100
- }
101
- }
102
- // If left is outside viewport
103
- if (l < 0) {
104
- if (this.position.startsWith("above") ||
105
- this.position.startsWith("below")) {
106
- secondSide = "right";
107
- }
108
- else {
109
- firstSide = "after";
110
- }
111
- }
112
- this.position = index$1.PopoverPosition[`${firstSide}-${secondSide}`];
113
- }
114
- render() {
115
- return (index.h(index.Host, { onKeyDown: this.handleKeyDown }, index.h("div", { tabindex: "0", onClick: (event) => this.handleClick(event), onKeyDown: (event) => {
116
- if (event.key === index$1.KeyboardKeys.ENTER) {
117
- this.handleClick(event);
118
- }
119
- } }, index.h("slot", { name: "trigger" })), index.h("div", { ref: (e) => (this.popoverElem = e), class: index$2.classnames("popover-content-container", this.position, `border-radius-${this.borderRadius}`, this.boxShadow, { "show-arrow": this.showArrow }, { visible: this.isVisible }), style: {
120
- backgroundColor: `var(--${this.backgroundColor})`,
121
- padding: this.padding,
122
- } }, index.h("slot", { name: "popover" }))));
123
- }
124
- };
125
- ZPopover.style = stylesCss;
126
-
127
- exports.z_popover = ZPopover;
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
-
7
- const stylesCss = ".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}";
8
-
9
- const ZTableBody = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- componentWillRender() {
14
- this.host.setAttribute("role", "rowgroup");
15
- Array.from(this.host.children).forEach((child, index) => child.setAttribute("aria-rowindex", `${index}`));
16
- }
17
- render() {
18
- return index.h("slot", null);
19
- }
20
- get host() { return index.getElement(this); }
21
- };
22
- ZTableBody.style = stylesCss;
23
-
24
- exports.z_table_body = ZTableBody;
@@ -1,36 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-3735f277.js');
7
- const index$2 = require('./index-9651dba8.js');
8
- require('./_commonjsHelpers-119ffc74.js');
9
-
10
- const stylesCss = ":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}";
11
-
12
- const ZTableCell = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- /** Set padding size of cell, if special 0px padding will be set */
16
- this.padding = index$1.Size.medium;
17
- this.isMenuOpened = false;
18
- }
19
- handleMenu() {
20
- this.isMenuOpened = !this.isMenuOpened;
21
- }
22
- componentWillRender() {
23
- this.host.setAttribute("role", "cell");
24
- }
25
- render() {
26
- return (index.h(index.Host, null, this.showButton && (index.h("div", { class: index$2.classnames("button-container", {
27
- visible: this.isMenuOpened,
28
- }) }, index.h("div", { class: "button-content" }, index.h("z-button", { icon: "contextual-menu", variant: index$1.ButtonVariantEnum.tertiary, size: index$1.ButtonSizeEnum["x-small"], onClick: () => this.handleMenu(), square: true }), index.h("div", { class: index$2.classnames("contextual-menu-container", {
29
- visible: this.isMenuOpened,
30
- }) }, index.h("slot", { name: "contextual-menu" }))))), index.h("slot", null)));
31
- }
32
- get host() { return index.getElement(this); }
33
- };
34
- ZTableCell.style = stylesCss;
35
-
36
- exports.z_table_cell = ZTableCell;
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
-
7
- const stylesCss = ".sc-z-table-empty-box-h{display:block;padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 7)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 7);background-color:var(--bg-white)}.sc-z-table-empty-box-s>*{margin-right:calc(var(--space-unit) * 2);margin-top:var(--space-unit)}div.cta.sc-z-table-empty-box{display:flex;flex-direction:row;margin-top:var(--space-unit)}@media only screen and (max-width: 768px){div.cta.sc-z-table-empty-box{flex-direction:column}}";
8
-
9
- const ZTableEmptyBox = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /** Sets main title message*/
13
- this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare.";
14
- /** Sets message */
15
- this.subtitle = "";
16
- }
17
- componentWillLoad() {
18
- this.hasCta1Slot = !!this.hostElement.querySelector('[slot="cta1"]');
19
- this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
20
- }
21
- render() {
22
- return (index.h(index.Host, null, index.h("z-body", { level: 3, variant: "semibold" }, this.message), index.h("br", null), !!this.subtitle && (index.h("z-body", { level: 4, variant: "regular" }, this.subtitle)), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (index.h("div", { class: "cta" }, index.h("slot", { name: "cta1" }), index.h("slot", { name: "cta2" })))));
23
- }
24
- get hostElement() { return index.getElement(this); }
25
- };
26
- ZTableEmptyBox.style = stylesCss;
27
-
28
- exports.z_table_empty_box = ZTableEmptyBox;
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
-
7
- const stylesCss = ".sc-z-table-head-h{display:table-header-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}";
8
-
9
- const ZTableHead = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- componentWillRender() {
14
- this.host.setAttribute("role", "rowgroup");
15
- }
16
- render() {
17
- return index.h("slot", null);
18
- }
19
- get host() { return index.getElement(this); }
20
- };
21
- ZTableHead.style = stylesCss;
22
-
23
- exports.z_table_head = ZTableHead;
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
-
7
- const stylesCss = "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}";
8
-
9
- const ZTableHeaderRow = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- _renderExpandHeader() {
14
- return index.h("z-table-header", null);
15
- }
16
- render() {
17
- return (index.h(index.Host, { role: "row" }, this.expandable && this._renderExpandHeader(), index.h("slot", null)));
18
- }
19
- };
20
- ZTableHeaderRow.style = stylesCss;
21
-
22
- exports.z_table_header_row = ZTableHeaderRow;
@@ -1,88 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const index$2 = require('./index-9651dba8.js');
7
- const index$1 = require('./index-3735f277.js');
8
- const utils = require('./utils-6a2c0eab.js');
9
- require('./_commonjsHelpers-119ffc74.js');
10
- require('./breakpoints-88c4fd6c.js');
11
-
12
- const stylesCss = ":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}";
13
-
14
- const ZTableHeader = class {
15
- constructor(hostRef) {
16
- index.registerInstance(this, hostRef);
17
- this.sort = index.createEvent(this, "sort", 7);
18
- /** Set padding size of cell, if special 0px padding will be set */
19
- this.padding = index$1.Size.medium;
20
- /** [Optional] Default sort order */
21
- this.defaultSortDirection = index$1.SortDirectionEnum.asc;
22
- this.sortDirection = index$1.SortDirectionEnum.none;
23
- this.isMenuOpened = false;
24
- this.emitOnSort = this.emitOnSort.bind(this);
25
- }
26
- emitOnSort() {
27
- this.sort.emit({
28
- columnId: this.columnId,
29
- sortDirection: this.sortDirection,
30
- });
31
- }
32
- handleSort() {
33
- if (!this.sortable) {
34
- return;
35
- }
36
- this.sortDirection = (() => {
37
- switch (this.sortDirection) {
38
- case index$1.SortDirectionEnum.asc:
39
- return index$1.SortDirectionEnum.desc;
40
- case index$1.SortDirectionEnum.desc:
41
- return index$1.SortDirectionEnum.asc;
42
- case index$1.SortDirectionEnum.none:
43
- return this.defaultSortDirection;
44
- default:
45
- return index$1.SortDirectionEnum.none;
46
- }
47
- })();
48
- this.emitOnSort();
49
- }
50
- handleMenuClick() {
51
- this.isMenuOpened = !this.isMenuOpened;
52
- }
53
- handleOutsideClick(e) {
54
- const tree = utils.getElementTree(e.target);
55
- const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
56
- if (!parent) {
57
- this.isMenuOpened = false;
58
- }
59
- }
60
- handleClickHeaders(e) {
61
- const { target } = e;
62
- const parent = utils.getElementTree(target).find((elem) => elem.nodeName.toLowerCase() === "z-table-header");
63
- if (!this.sortable || !parent) {
64
- return;
65
- }
66
- const parentColumnId = parent.attributes.getNamedItem("column-id").value;
67
- const isSortable = target.parentNode.sortable || target.sortable;
68
- if (parentColumnId !== this.columnId && isSortable) {
69
- this.sortDirection = index$1.SortDirectionEnum.none;
70
- }
71
- }
72
- componentWillRender() {
73
- this.host.setAttribute("role", "columnheader");
74
- }
75
- render() {
76
- return (index.h(index.Host, { class: index$2.classnames({
77
- sortable: this.sortable,
78
- }), onClick: () => this.handleSort() }, index.h("div", { class: index$2.classnames("container") }, index.h("slot", null), this.sortable && this.sortDirection !== index$1.SortDirectionEnum.none && (index.h("z-icon", { name: this.sortDirection === index$1.SortDirectionEnum.asc
79
- ? "arrow-up"
80
- : "arrow-down", class: "arrow" }))), this.showButton && (index.h("div", { class: index$2.classnames("popover-container", {
81
- visible: this.isMenuOpened,
82
- }) }, index.h("z-popover", { position: index$1.PopoverPosition["below-center"], "background-color": "gray200" }, index.h("z-button", { icon: "contextual-menu", variant: index$1.ButtonVariantEnum["tertiary"], size: index$1.ButtonSizeEnum["x-small"], square: true, slot: "trigger", onClick: () => this.handleMenuClick() }), index.h("div", { slot: "popover" }, index.h("slot", { name: "contextual-menu" })))))));
83
- }
84
- get host() { return index.getElement(this); }
85
- };
86
- ZTableHeader.style = stylesCss;
87
-
88
- exports.z_table_header = ZTableHeader;
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-3735f277.js');
7
-
8
- const stylesCss = "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-tale-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}";
9
-
10
- const ZTableRow = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.expand = index.createEvent(this, "expand", 7);
14
- this.expandedType = index$1.ZTableRowExpandedType.none;
15
- this.expanded = false;
16
- }
17
- emitOnExpand() {
18
- this.expand.emit({ expanded: this.expanded });
19
- }
20
- handleExpand() {
21
- this.expanded = !this.expanded;
22
- this.emitOnExpand();
23
- }
24
- renderExpandButton() {
25
- if (this.expandedType == index$1.ZTableRowExpandedType.expandable) {
26
- return (index.h("z-table-cell", { style: { borderRight: "none" } }, index.h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
27
- }
28
- return (index.h("z-table-cell", { style: { borderRight: "none" } }, index.h("div", { class: "z-icon-placeholder" })));
29
- }
30
- render() {
31
- return (index.h(index.Host, { role: "row", expanded: this.expanded, onClick: (event) => {
32
- const contextualMenuClick = event.target.nodeName === 'Z-CONTEXTUAL-MENU';
33
- const isExpandable = this.expandedType === index$1.ZTableRowExpandedType.expandable;
34
- if (isExpandable && !contextualMenuClick) {
35
- this.handleExpand();
36
- }
37
- } }, this.expandedType !== index$1.ZTableRowExpandedType.none &&
38
- this.renderExpandButton(), index.h("slot", null)));
39
- }
40
- };
41
- ZTableRow.style = stylesCss;
42
-
43
- exports.z_table_row = ZTableRow;
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
-
7
- const stylesCss = ".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)}";
8
-
9
- const ZTableStickyFooter = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- render() {
14
- return (index.h("slot", null));
15
- }
16
- };
17
- ZTableStickyFooter.style = stylesCss;
18
-
19
- exports.z_table_sticky_footer = ZTableStickyFooter;
@@ -1,82 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-3735f277.js');
7
- const breakpoints = require('./breakpoints-88c4fd6c.js');
8
-
9
- const stylesCss = "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}}";
10
-
11
- const ZTable = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.callToAction = index.createEvent(this, "callToAction", 7);
15
- this.callToActionTwo = index.createEvent(this, "callToActionTwo", 7);
16
- /** Error message */
17
- this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
18
- /** Sets table with border */
19
- this.bordered = false;
20
- /** Sets first column sticky */
21
- this.columnSticky = false;
22
- /** Sets empty table */
23
- this.empty = false;
24
- /** Set error status */
25
- this.error = false;
26
- /** Sets header sticky */
27
- this.headerSticky = false;
28
- /** Set message */
29
- this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
30
- /** Set subtitle */
31
- this.subtitle = "";
32
- }
33
- handleResize() {
34
- this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
35
- }
36
- handleOrientationChange() {
37
- this.isMobile = screen.width <= breakpoints.mobileBreakpoint;
38
- }
39
- componentWillLoad() {
40
- var _a;
41
- this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
42
- const tableBody = this.host.querySelector('[slot="table-body"]');
43
- this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
44
- if (!!tableBody && !this.hasTableBody) {
45
- tableBody.remove();
46
- }
47
- }
48
- componentWillRender() {
49
- this.host.setAttribute("role", "table");
50
- }
51
- renderError(tableClass) {
52
- const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
53
- return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-error", null, index.h("div", { class: "error-content", style: { minHeight } }, index.h("slot", { name: "error-image" }), index.h("div", { class: "text" }, index.h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), index.h("slot", { name: "error-action" }))))));
54
- }
55
- renderEmpty(tableClass) {
56
- const buttonSize = this.isMobile
57
- ? index$1.ButtonSizeEnum.small
58
- : index$1.ButtonSizeEnum.big;
59
- const tableContentClass = `${!!this.hasTableBody ? "table-content" : ""}`;
60
- if (this.hasTableBody) {
61
- return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" }), index.h("div", { class: tableContentClass }, index.h("slot", { name: "table-body" }), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (index.h("z-button", { slot: "cta2", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
62
- }
63
- return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (index.h("z-button", { slot: "cta1", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (index.h("z-button", { slot: "cta2", variant: index$1.ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
64
- }
65
- render() {
66
- const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
67
- ${this.columnSticky ? "table-column-sticky" : ""}
68
- ${this.headerSticky ? "table-header-sticky" : ""}`;
69
- if (this.error) {
70
- return this.renderError(tableClass);
71
- }
72
- if (this.empty) {
73
- return this.renderEmpty(tableClass);
74
- }
75
- return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", null)), index.h("slot", { name: "sticky-footer" })));
76
- }
77
- static get assetsDirs() { return ["assets"]; }
78
- get host() { return index.getElement(this); }
79
- };
80
- ZTable.style = stylesCss;
81
-
82
- exports.z_table = ZTable;
@@ -1,35 +0,0 @@
1
- import { r as registerInstance, h, g as getElement, H as Host } from './index-fa9e549c.js';
2
-
3
- const ZBody = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.variant = "regular";
7
- }
8
- render() {
9
- return (h("z-typography", { component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
10
- }
11
- };
12
-
13
- 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}";
14
-
15
- const ZTypography = class {
16
- constructor(hostRef) {
17
- registerInstance(this, hostRef);
18
- this.variant = "regular";
19
- }
20
- render() {
21
- const el = document.createElement(this.component || "span");
22
- el.innerHTML = `<slot />`;
23
- this.hostElement.shadowRoot.appendChild(el);
24
- return (h(Host, { class: {
25
- [this.level]: Boolean(this.level),
26
- regular: this.variant === "regular",
27
- semibold: this.variant === "semibold",
28
- light: this.variant === "light"
29
- } }));
30
- }
31
- get hostElement() { return getElement(this); }
32
- };
33
- ZTypography.style = stylesCss;
34
-
35
- export { ZBody as z_body, ZTypography as z_typography };