@zanichelli/albe-web-components 2.33.4 → 2.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/CHANGELOG.md +1229 -0
  2. package/dist/cjs/_commonjsHelpers-119ffc74.js +17 -0
  3. package/dist/cjs/{hammer-6e321f0b.js → hammer-54230951.js} +2 -15
  4. package/dist/cjs/icons-74891aae.js +477 -0
  5. package/dist/cjs/index-9651dba8.js +60 -0
  6. package/dist/cjs/{index-11a8a536.js → index-de6c491e.js} +8 -8
  7. package/dist/cjs/index.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{utils-00e14fba.js → utils-12053886.js} +1 -1
  10. package/dist/cjs/web-components-library.cjs.js +1 -1
  11. package/dist/cjs/z-alert.cjs.entry.js +19 -0
  12. package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
  13. package/dist/cjs/z-app-topbar.cjs.entry.js +41 -0
  14. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  15. package/dist/cjs/z-avatar.cjs.entry.js +43 -0
  16. package/dist/cjs/z-body_14.cjs.entry.js +513 -0
  17. package/dist/cjs/z-button-filter_5.cjs.entry.js +620 -0
  18. package/dist/cjs/z-button-sort.cjs.entry.js +54 -0
  19. package/dist/cjs/z-card.cjs.entry.js +58 -0
  20. package/dist/cjs/z-chip.cjs.entry.js +24 -0
  21. package/dist/cjs/z-combobox.cjs.entry.js +170 -0
  22. package/dist/cjs/z-contextual-menu.cjs.entry.js +40 -0
  23. package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
  24. package/dist/cjs/z-divider.cjs.entry.js +26 -0
  25. package/dist/cjs/z-footer-link_3.cjs.entry.js +49 -0
  26. package/dist/cjs/z-footer.cjs.entry.js +102 -0
  27. package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
  28. package/dist/cjs/z-icon-package.cjs.entry.js +23 -0
  29. package/dist/cjs/z-info-box.cjs.entry.js +25 -0
  30. package/dist/cjs/z-link.cjs.entry.js +71 -0
  31. package/dist/cjs/z-list_3.cjs.entry.js +226 -0
  32. package/dist/cjs/z-logo.cjs.entry.js +28 -0
  33. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +89 -0
  34. package/dist/cjs/z-menu-section.cjs.entry.js +46 -0
  35. package/dist/cjs/z-menu.cjs.entry.js +110 -0
  36. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  37. package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
  38. package/dist/cjs/z-modal.cjs.entry.js +36 -0
  39. package/dist/cjs/z-myz-card-alert.cjs.entry.js +63 -0
  40. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card-footer.cjs.entry.js +52 -0
  42. package/dist/cjs/z-myz-card-icon.cjs.entry.js +21 -0
  43. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  44. package/dist/cjs/z-myz-card-list.cjs.entry.js +37 -0
  45. package/dist/cjs/z-myz-card_4.cjs.entry.js +101 -0
  46. package/dist/cjs/z-myz-list-item.cjs.entry.js +37 -0
  47. package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
  48. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  49. package/dist/cjs/z-notification.cjs.entry.js +42 -0
  50. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  51. package/dist/cjs/z-pagination-bar.cjs.entry.js +128 -0
  52. package/dist/cjs/z-pagination-page.cjs.entry.js +25 -0
  53. package/dist/cjs/z-panel-elem.cjs.entry.js +30 -0
  54. package/dist/cjs/z-pocket_3.cjs.entry.js +4 -3
  55. package/dist/cjs/z-registro-table-expanded-row.cjs.entry.js +19 -0
  56. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  57. package/dist/cjs/z-status-tag.cjs.entry.js +29 -0
  58. package/dist/cjs/z-stepper-item.cjs.entry.js +22 -0
  59. package/dist/cjs/z-stepper.cjs.entry.js +19 -0
  60. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  61. package/dist/cjs/z-toast-notification.cjs.entry.js +3 -2
  62. package/dist/cjs/z-toggle-button.cjs.entry.js +36 -0
  63. package/dist/cjs/z-tooltip.cjs.entry.js +274 -0
  64. package/dist/cjs/z-user-dropdown.cjs.entry.js +95 -0
  65. package/dist/collection/beans/index.js +8 -8
  66. package/dist/collection/snowflakes/registro-table/z-registro-table-cell/index.js +26 -1
  67. package/dist/collection/snowflakes/registro-table/z-registro-table-cell/styles.css +19 -1
  68. package/dist/collection/snowflakes/registro-table/z-registro-table-header/index.js +22 -18
  69. package/dist/collection/snowflakes/registro-table/z-registro-table-header/styles.css +9 -13
  70. package/dist/esm/_commonjsHelpers-8b28c6fa.js +15 -0
  71. package/dist/esm/{hammer-c807d0b5.js → hammer-501342a9.js} +2 -14
  72. package/dist/esm/icons-9a191d79.js +475 -0
  73. package/dist/esm/{index-4952bfe3.js → index-09b57d95.js} +9 -9
  74. package/dist/esm/index-aa3a4feb.js +58 -0
  75. package/dist/esm/index.js +2 -2
  76. package/dist/esm/loader.js +1 -1
  77. package/dist/esm/{utils-889efe17.js → utils-f0067254.js} +2 -2
  78. package/dist/esm/web-components-library.js +1 -1
  79. package/dist/esm/z-alert.entry.js +15 -0
  80. package/dist/esm/z-app-switcher.entry.js +25 -0
  81. package/dist/esm/z-app-topbar.entry.js +37 -0
  82. package/dist/esm/z-aria-alert.entry.js +1 -1
  83. package/dist/esm/z-avatar.entry.js +39 -0
  84. package/dist/esm/z-body_14.entry.js +496 -0
  85. package/dist/esm/z-button-filter_5.entry.js +612 -0
  86. package/dist/esm/z-button-sort.entry.js +50 -0
  87. package/dist/esm/z-card.entry.js +54 -0
  88. package/dist/esm/z-chip.entry.js +20 -0
  89. package/dist/esm/z-combobox.entry.js +166 -0
  90. package/dist/esm/z-contextual-menu.entry.js +36 -0
  91. package/dist/esm/z-cookiebar.entry.js +1 -1
  92. package/dist/esm/z-divider.entry.js +22 -0
  93. package/dist/esm/z-footer-link_3.entry.js +43 -0
  94. package/dist/esm/z-footer.entry.js +98 -0
  95. package/dist/esm/z-ghost-loading.entry.js +15 -0
  96. package/dist/esm/z-icon-package.entry.js +19 -0
  97. package/dist/esm/z-info-box.entry.js +21 -0
  98. package/dist/esm/z-link.entry.js +67 -0
  99. package/dist/esm/z-list_3.entry.js +220 -0
  100. package/dist/esm/z-logo.entry.js +24 -0
  101. package/dist/esm/z-menu-dropdown_2.entry.js +84 -0
  102. package/dist/esm/z-menu-section.entry.js +42 -0
  103. package/dist/esm/z-menu.entry.js +106 -0
  104. package/dist/esm/z-messages-pocket.entry.js +1 -1
  105. package/dist/esm/z-modal-login.entry.js +1 -1
  106. package/dist/esm/z-modal.entry.js +32 -0
  107. package/dist/esm/z-myz-card-alert.entry.js +59 -0
  108. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  109. package/dist/esm/z-myz-card-footer.entry.js +48 -0
  110. package/dist/esm/z-myz-card-icon.entry.js +17 -0
  111. package/dist/esm/z-myz-card-info.entry.js +2 -2
  112. package/dist/esm/z-myz-card-list.entry.js +33 -0
  113. package/dist/esm/z-myz-card_4.entry.js +94 -0
  114. package/dist/esm/z-myz-list-item.entry.js +33 -0
  115. package/dist/esm/z-myz-topbar.entry.js +1 -1
  116. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  117. package/dist/esm/z-notification.entry.js +38 -0
  118. package/dist/esm/z-otp.entry.js +1 -1
  119. package/dist/esm/z-pagination-bar.entry.js +124 -0
  120. package/dist/esm/z-pagination-page.entry.js +21 -0
  121. package/dist/esm/z-panel-elem.entry.js +26 -0
  122. package/dist/esm/z-pocket_3.entry.js +4 -3
  123. package/dist/esm/z-registro-table-expanded-row.entry.js +15 -0
  124. package/dist/esm/z-slideshow.entry.js +2 -2
  125. package/dist/esm/z-status-tag.entry.js +25 -0
  126. package/dist/esm/z-stepper-item.entry.js +18 -0
  127. package/dist/esm/z-stepper.entry.js +15 -0
  128. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  129. package/dist/esm/z-toast-notification.entry.js +3 -2
  130. package/dist/esm/z-toggle-button.entry.js +32 -0
  131. package/dist/esm/z-tooltip.entry.js +270 -0
  132. package/dist/esm/z-user-dropdown.entry.js +91 -0
  133. package/dist/types/beans/index.d.ts +7 -7
  134. package/dist/types/components.d.ts +17 -9
  135. package/dist/types/snowflakes/registro-table/z-registro-table-cell/index.d.ts +3 -0
  136. package/dist/types/snowflakes/registro-table/z-registro-table-header/index.d.ts +3 -3
  137. package/dist/web-components-library/index.esm.js +1 -1
  138. package/dist/web-components-library/p-01d11ec3.entry.js +1 -0
  139. package/dist/web-components-library/p-0455dc43.entry.js +1 -0
  140. package/dist/web-components-library/{p-fcf19092.entry.js → p-05f4fa42.entry.js} +1 -1
  141. package/dist/web-components-library/p-08158e57.entry.js +1 -0
  142. package/dist/web-components-library/p-0ce6293a.entry.js +1 -0
  143. package/dist/web-components-library/{p-65c08b33.js → p-0e6906af.js} +1 -1
  144. package/dist/web-components-library/p-0fe60379.entry.js +1 -0
  145. package/dist/web-components-library/p-10ad64bc.entry.js +1 -0
  146. package/dist/web-components-library/p-166a212e.entry.js +1 -0
  147. package/dist/web-components-library/p-18705ae9.entry.js +1 -0
  148. package/{www/build/p-9912e411.js → dist/web-components-library/p-1d371408.js} +2 -2
  149. package/dist/web-components-library/p-250926fe.entry.js +1 -0
  150. package/dist/web-components-library/p-255c9150.entry.js +1 -0
  151. package/dist/web-components-library/p-3247dee9.js +7 -0
  152. package/dist/web-components-library/{p-40972dfd.entry.js → p-34f4e805.entry.js} +1 -1
  153. package/dist/web-components-library/p-35fd465c.entry.js +1 -0
  154. package/dist/web-components-library/{p-d1fed95b.entry.js → p-400e26c7.entry.js} +1 -1
  155. package/dist/web-components-library/p-4a414eb2.entry.js +1 -0
  156. package/dist/web-components-library/p-4ce8c176.entry.js +1 -0
  157. package/dist/web-components-library/p-4f66fee4.js +1 -0
  158. package/dist/web-components-library/p-5bbbc979.entry.js +1 -0
  159. package/dist/web-components-library/{p-e64c06a4.entry.js → p-5e2762e6.entry.js} +1 -1
  160. package/dist/web-components-library/p-5fa8dc13.entry.js +1 -0
  161. package/dist/web-components-library/p-60e40371.entry.js +1 -0
  162. package/dist/web-components-library/p-6583cbec.entry.js +1 -0
  163. package/dist/web-components-library/p-71cc7ed0.entry.js +1 -0
  164. package/dist/web-components-library/p-74fb3d69.entry.js +1 -0
  165. package/dist/web-components-library/p-7e926220.entry.js +1 -0
  166. package/dist/web-components-library/p-80589729.entry.js +1 -0
  167. package/dist/web-components-library/p-82a59ded.entry.js +1 -0
  168. package/dist/web-components-library/p-880a50a6.entry.js +1 -0
  169. package/dist/web-components-library/p-94814f44.entry.js +1 -0
  170. package/dist/web-components-library/{p-8c24ac2e.entry.js → p-957f298f.entry.js} +1 -1
  171. package/dist/web-components-library/{p-d430b1aa.entry.js → p-9959e453.entry.js} +1 -1
  172. package/dist/web-components-library/p-9d9dc98f.entry.js +1 -0
  173. package/dist/web-components-library/p-a15f8b52.entry.js +1 -0
  174. package/dist/web-components-library/p-a7733104.entry.js +1 -0
  175. package/dist/web-components-library/{p-3ea97390.entry.js → p-a82c9a77.entry.js} +1 -1
  176. package/dist/web-components-library/p-aa0f7169.entry.js +1 -0
  177. package/dist/web-components-library/p-ac3bc4c2.entry.js +1 -0
  178. package/dist/web-components-library/p-b13d5b98.entry.js +1 -0
  179. package/dist/web-components-library/{p-6e8f444c.entry.js → p-b630127d.entry.js} +1 -1
  180. package/dist/web-components-library/p-b68038b5.js +1 -0
  181. package/dist/web-components-library/p-b78fb152.entry.js +1 -0
  182. package/dist/web-components-library/p-c92c3f20.entry.js +1 -0
  183. package/dist/web-components-library/p-cc6363b9.entry.js +1 -0
  184. package/dist/web-components-library/p-cf914ea7.entry.js +1 -0
  185. package/dist/web-components-library/p-cfebc80e.entry.js +1 -0
  186. package/dist/web-components-library/{p-0bf8988b.entry.js → p-d227a145.entry.js} +1 -1
  187. package/dist/web-components-library/p-d83eee10.entry.js +1 -0
  188. package/dist/web-components-library/p-db5863cf.entry.js +1 -0
  189. package/dist/web-components-library/p-e1f1f39e.entry.js +1 -0
  190. package/dist/web-components-library/{p-798d5c2f.entry.js → p-e29fe790.entry.js} +1 -1
  191. package/dist/web-components-library/p-ebcad010.entry.js +1 -0
  192. package/dist/web-components-library/p-f3354152.entry.js +1 -0
  193. package/dist/web-components-library/p-f77f6f60.entry.js +1 -0
  194. package/dist/web-components-library/p-f8446b1e.entry.js +1 -0
  195. package/dist/web-components-library/p-f90dd488.js +1 -0
  196. package/dist/web-components-library/p-fc47897e.entry.js +1 -0
  197. package/dist/web-components-library/p-fce08912.entry.js +1 -0
  198. package/dist/web-components-library/web-components-library.esm.js +1 -1
  199. package/package.json +1 -1
  200. package/www/build/index.esm.js +1 -1
  201. package/www/build/p-01d11ec3.entry.js +1 -0
  202. package/www/build/p-0455dc43.entry.js +1 -0
  203. package/www/build/{p-fcf19092.entry.js → p-05f4fa42.entry.js} +1 -1
  204. package/www/build/p-08158e57.entry.js +1 -0
  205. package/www/build/p-0ce6293a.entry.js +1 -0
  206. package/www/build/{p-65c08b33.js → p-0e6906af.js} +1 -1
  207. package/www/build/p-0fe60379.entry.js +1 -0
  208. package/www/build/p-10ad64bc.entry.js +1 -0
  209. package/www/build/p-166a212e.entry.js +1 -0
  210. package/www/build/p-18705ae9.entry.js +1 -0
  211. package/{dist/web-components-library/p-9912e411.js → www/build/p-1d371408.js} +2 -2
  212. package/www/build/p-250926fe.entry.js +1 -0
  213. package/www/build/p-255c9150.entry.js +1 -0
  214. package/www/build/p-3247dee9.js +7 -0
  215. package/www/build/{p-40972dfd.entry.js → p-34f4e805.entry.js} +1 -1
  216. package/www/build/p-35fd465c.entry.js +1 -0
  217. package/www/build/{p-d1fed95b.entry.js → p-400e26c7.entry.js} +1 -1
  218. package/www/build/p-4a414eb2.entry.js +1 -0
  219. package/www/build/p-4ce8c176.entry.js +1 -0
  220. package/www/build/p-4f66fee4.js +1 -0
  221. package/www/build/p-5bbbc979.entry.js +1 -0
  222. package/www/build/{p-e64c06a4.entry.js → p-5e2762e6.entry.js} +1 -1
  223. package/www/build/p-5fa8dc13.entry.js +1 -0
  224. package/www/build/p-60e40371.entry.js +1 -0
  225. package/www/build/p-6583cbec.entry.js +1 -0
  226. package/www/build/p-71cc7ed0.entry.js +1 -0
  227. package/www/build/p-74fb3d69.entry.js +1 -0
  228. package/www/build/p-7e926220.entry.js +1 -0
  229. package/www/build/p-80589729.entry.js +1 -0
  230. package/www/build/p-82a59ded.entry.js +1 -0
  231. package/www/build/p-880a50a6.entry.js +1 -0
  232. package/www/build/p-94814f44.entry.js +1 -0
  233. package/www/build/{p-8c24ac2e.entry.js → p-957f298f.entry.js} +1 -1
  234. package/www/build/{p-d430b1aa.entry.js → p-9959e453.entry.js} +1 -1
  235. package/www/build/p-9d9dc98f.entry.js +1 -0
  236. package/www/build/p-a15f8b52.entry.js +1 -0
  237. package/www/build/p-a7733104.entry.js +1 -0
  238. package/www/build/{p-3ea97390.entry.js → p-a82c9a77.entry.js} +1 -1
  239. package/www/build/p-aa0f7169.entry.js +1 -0
  240. package/www/build/p-ac3bc4c2.entry.js +1 -0
  241. package/www/build/p-b13d5b98.entry.js +1 -0
  242. package/www/build/{p-6e8f444c.entry.js → p-b630127d.entry.js} +1 -1
  243. package/www/build/p-b68038b5.js +1 -0
  244. package/www/build/p-b78fb152.entry.js +1 -0
  245. package/www/build/p-c92c3f20.entry.js +1 -0
  246. package/www/build/p-cc6363b9.entry.js +1 -0
  247. package/www/build/p-cf914ea7.entry.js +1 -0
  248. package/www/build/p-cfebc80e.entry.js +1 -0
  249. package/www/build/{p-0bf8988b.entry.js → p-d227a145.entry.js} +1 -1
  250. package/www/build/p-d83eee10.entry.js +1 -0
  251. package/www/build/p-db5863cf.entry.js +1 -0
  252. package/www/build/p-e1f1f39e.entry.js +1 -0
  253. package/www/build/{p-798d5c2f.entry.js → p-e29fe790.entry.js} +1 -1
  254. package/www/build/p-eaf64f7c.js +1 -0
  255. package/www/build/p-ebcad010.entry.js +1 -0
  256. package/www/build/p-f3354152.entry.js +1 -0
  257. package/www/build/p-f77f6f60.entry.js +1 -0
  258. package/www/build/p-f8446b1e.entry.js +1 -0
  259. package/www/build/p-f90dd488.js +1 -0
  260. package/www/build/p-fc47897e.entry.js +1 -0
  261. package/www/build/p-fce08912.entry.js +1 -0
  262. package/www/build/web-components-library.esm.js +1 -1
  263. package/www/index.html +2 -454
  264. package/dist/cjs/z-alert_66.cjs.entry.js +0 -3735
  265. package/dist/esm/z-alert_66.entry.js +0 -3666
  266. package/dist/web-components-library/p-04c73ec1.entry.js +0 -1
  267. package/dist/web-components-library/p-43d00d2f.entry.js +0 -1
  268. package/dist/web-components-library/p-57ceab75.entry.js +0 -7
  269. package/dist/web-components-library/p-881b4877.js +0 -1
  270. package/dist/web-components-library/p-b4420ba3.entry.js +0 -1
  271. package/www/build/p-002ed333.js +0 -1
  272. package/www/build/p-04c73ec1.entry.js +0 -1
  273. package/www/build/p-43d00d2f.entry.js +0 -1
  274. package/www/build/p-57ceab75.entry.js +0 -7
  275. package/www/build/p-881b4877.js +0 -1
  276. package/www/build/p-b4420ba3.entry.js +0 -1
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+
7
+ const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-sb);display:inline-block}:host>button{cursor:pointer;outline:none;display:inline-block;box-sizing:border-box;margin:0;height:48px;line-height:48px;text-align:center;border:none;border-bottom:var(--border-size-large) solid transparent;color:var(--color-primary01);font-size:var(--font-size-2);font-family:var(--font-family-sans);font-weight:inherit;background:transparent;text-decoration:none;transition:border-bottom 0.2s ease, font-size 0.2s ease;min-width:56px}:host>button[disabled]{pointer-events:none;cursor:default;color:var(--color-disabled02)}:host>button:hover{border-bottom:var(--border-size-large) solid var(--color-hover-light);background-color:var(--color-background);text-decoration:none;transition:border-bottom 0.2s ease, background-color 0.2s ease}:host>button:focus{border-bottom:var(--border-size-large) solid var(--color-hover-light);box-shadow:var(--shadow-focus-primary);background-color:var(--color-background);text-decoration:none}:host>button.visited{border-color:var(--color-hover-light);text-decoration:none}:host>button.selected{border-bottom:var(--border-size-large) solid var(--color-primary01);font-size:var(--font-size-7);transition:border-bottom 0.2s ease, font-size 0.2s ease}";
8
+
9
+ const ZPaginationPage = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /** selected status flag */
13
+ this.isselected = false;
14
+ /** disabled status flag */
15
+ this.isdisabled = false;
16
+ /** visited status flag */
17
+ this.isvisited = false;
18
+ }
19
+ render() {
20
+ return (index.h("button", { id: this.pageid, "aria-label": this.ariaLabel ? this.ariaLabel : `Go to page ${this.value}`, class: { selected: this.isselected, visited: this.isvisited }, disabled: this.isdisabled, type: "button" }, this.value));
21
+ }
22
+ };
23
+ ZPaginationPage.style = stylesCss;
24
+
25
+ exports.z_pagination_page = ZPaginationPage;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+
7
+ const stylesCss = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg);width:inherit}.panel-elem-container{width:100%}.panel-elem-icon{margin:auto calc(var(--space-unit) * 3)}.panel-elem-icon img{display:block;object-fit:contain;max-width:96px;height:32px;margin:auto}.panel-elem-link{border-radius:var(--border-no-radius);margin:var(--space-unit) auto 0;text-align:center;font-size:12px}.panel-elem-link>z-link{font-weight:var(--font-sb)}.panel-elem-desc{letter-spacing:0.16px;text-align:center;margin:0;padding-top:var(--space-unit)}";
8
+
9
+ const ZPanelElem = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /** link target (optional) */
13
+ this.target = "_blank";
14
+ /** disabled status flag (optional) */
15
+ this.isdisabled = false;
16
+ }
17
+ renderIcon() {
18
+ if (this.isdisabled) {
19
+ return index.h("img", { src: this.imgurl, alt: this.imgalt });
20
+ }
21
+ return (index.h("a", { class: "elem-icon", href: this.url, target: this.target }, index.h("img", { src: this.imgurl, alt: this.imgalt })));
22
+ }
23
+ render() {
24
+ const elemId = this.elemid ? this.elemid : "";
25
+ return (index.h("div", { class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (index.h("div", { class: "panel-elem-icon" }, this.renderIcon())), index.h("div", { class: "panel-elem-link" }, index.h("z-link", { href: this.url, icon: this.linkicon, isdisabled: this.isdisabled, target: this.target, htmlid: elemId + "link_id" }, this.linklabel)), this.descr_slot_name && (index.h("div", { class: "panel-elem-desc body-long-01" }, index.h("slot", { name: this.descr_slot_name })))));
26
+ }
27
+ };
28
+ ZPanelElem.style = stylesCss;
29
+
30
+ exports.z_panel_elem = ZPanelElem;
@@ -3,10 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-11a8a536.js');
7
- const utils = require('./utils-00e14fba.js');
8
- const hammer = require('./hammer-6e321f0b.js');
6
+ const index$1 = require('./index-de6c491e.js');
7
+ const utils = require('./utils-12053886.js');
8
+ const hammer = require('./hammer-54230951.js');
9
9
  require('./breakpoints-88c4fd6c.js');
10
+ require('./_commonjsHelpers-119ffc74.js');
10
11
 
11
12
  const stylesCss$2 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:inherit;height:100%;margin:inherit}:host>div{width:inherit;height:100%;margin:inherit}:host>div>div.background{position:fixed;left:0;right:0;top:0;bottom:0;z-index:998;width:0;height:0}:host>div>div.background.open{height:100%;width:100%}:host>div>div.contentWrapper{position:fixed;z-index:999;bottom:0;left:0;width:inherit;margin:inherit}:host>div>div.contentWrapper>div{border-radius:var(--space-unit) var(--space-unit) 0px 0px;box-shadow:0px -2px calc(var(--space-unit) * 0.5) 0px rgba(66, 69, 72, 0.4);margin:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.5) 0 calc(var(--space-unit) * 0.5)}";
12
13
 
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+
7
+ const stylesCss = ":host{background-color:var(--gray50);display:none}:host>td>div.content-container{box-shadow:var(--shadow-2);margin-bottom:calc(var(--space-unit) / 2)}";
8
+
9
+ const ZRegistroTableExpandedRow = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ return (index.h("td", { colSpan: this.colSpan }, index.h("div", { class: "content-container" }, index.h("slot", null))));
15
+ }
16
+ };
17
+ ZRegistroTableExpandedRow.style = stylesCss;
18
+
19
+ exports.z_registro_table_expanded_row = ZRegistroTableExpandedRow;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-11a8a536.js');
7
- const utils = require('./utils-00e14fba.js');
6
+ const index$1 = require('./index-de6c491e.js');
7
+ const utils = require('./utils-12053886.js');
8
8
  require('./breakpoints-88c4fd6c.js');
9
9
 
10
10
  const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:inherit}:host>div{display:flex;flex-direction:column;width:inherit}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;top:50%;width:auto;cursor:pointer;transition:0.6s ease;margin:0 var(--space-unit);fill:var(--color-primary01);z-index:10}main .scroll.disabled{opacity:50%;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;transition:all 300ms;line-height:0px;overflow-y:hidden}footer{height:56px;width:100%;align-items:center;display:grid;grid-template-columns:2;grid-template-rows:2;grid-template-areas:\"center center\" \"left right\";border-top:var(--border-base) solid var(--color-surface02)}footer>div{align-items:center;width:100%}footer .footerCenter{grid-area:center}footer .footerLeft{grid-area:left}footer .footerRight{grid-area:right}footer .bulletContainer{display:flex;margin:0 auto;justify-content:center;align-items:center;min-height:60px}footer .bulletContainer .bullet{width:8px;height:8px;border-radius:50%;background-color:var(--bg-neutral-150);margin:var(--space-unit) 2px;pointer-events:none}footer .bulletContainer .bullet.selected{background-color:var(--bg-neutral-400)}@media only screen and (min-width: 768px){footer{grid-template-columns:1fr 2fr 1fr;grid-template-rows:1;grid-template-areas:\"left center right\";height:76px;border-top:var(--border-base) solid var(--color-surface02)}footer .bulletContainer .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bulletContainer .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);pointer-events:auto;cursor:pointer}}";
@@ -0,0 +1,29 @@
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-de6c491e.js');
7
+ const index$2 = require('./index-9651dba8.js');
8
+ require('./_commonjsHelpers-119ffc74.js');
9
+
10
+ const stylesCss = ":host{--z-icon-width:14px;--z-icon-height:14px;font-family:var(--font-family-sans);height:22px;border-radius:var(--border-radius);padding-right:4px;padding-left:4px;text-transform:uppercase;display:inline-flex;align-items:center}:host(.expandable)>z-icon{margin-right:0;transition:margin-right 0.3s ease-out 0.2s}:host(:not(.expandable))>z-icon:not(:last-child),:host(.expandable:hover)>z-icon:not(:last-child){margin-right:var(--space-unit);transition:margin-right 0.3s ease-out 0s}:host(.expandable)>span{max-width:0;transition:max-width 0.3s ease-out 0.2s;white-space:nowrap;overflow:hidden}:host(.expandable:hover)>span{max-width:20rem;transition:max-width 0.3s ease-out 0s}:host([status=\"warning\"]){background-color:var(--status-warning-yellow-lighter);color:var(--status-warning-yellow-dark);fill:var(--status-warning-yellow-dark)}:host([status=\"warning\"].light){background-color:transparent;color:var(--status-warning-yellow-dark);fill:var(--status-warning-yellow-dark)}:host([status=\"warning\"].dark){background-color:var(--status-warning-yellow-dark);color:var(--status-warning-yellow-lighter);fill:var(--status-warning-yellow-lighter)}:host([status=\"error\"]){background-color:var(--status-error-red-lighter);color:var(--status-error-red-dark);fill:var(--status-error-red-dark)}:host([status=\"error\"].light){background-color:transparent;color:var(--status-error-red-dark);fill:var(--status-error-red-dark)}:host([status=\"error\"].dark){background-color:var(--status-error-red-dark);color:var(--status-error-red-lighter);fill:var(--status-error-red-lighter)}:host([status=\"success\"]){background-color:var(--status-success-green-lighter);color:var(--status-success-green-dark);fill:var(--status-success-green-dark)}:host([status=\"success\"].light){background-color:transparent;color:var(--status-success-green-dark);fill:var(--status-success-green-dark)}:host([status=\"success\"].dark){background-color:var(--status-success-green-dark);color:var(--status-success-green-lighter);fill:var(--status-success-green-lighter)}:host([status=\"default\"]){background-color:var(--myz-blue-lighter);color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}:host([status=\"default\"].light){background-color:transparent;color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}:host([status=\"default\"].dark){background-color:var(--myz-blue-dark);color:var(--myz-blue-lighter);fill:var(--myz-blue-lighter)}:host([status=\"neutral\"]){background-color:var(--bg-grey-050);color:var(--text-grey-800);fill:var(--text-grey-800)}:host([status=\"neutral\"].light){background-color:transparent;color:var(--text-grey-800);fill:var(--text-grey-800)}:host([status=\"neutral\"].dark){background-color:var(--bg-grey-800);color:var(--text-white);fill:var(--text-white)}";
11
+
12
+ const ZStatusTag = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ /** [optional] Status tag color */
16
+ this.status = index$1.StatusTagStatus.default;
17
+ if (!this.icon && !this.text) {
18
+ console.warn("z-status-tag must contain at least one prop between icon and text");
19
+ }
20
+ }
21
+ render() {
22
+ return (index.h(index.Host, { class: index$2.classnames(this.variant, "body-5-sb", {
23
+ expandable: this.expandable && this.icon && this.text,
24
+ }) }, this.icon && index.h("z-icon", { name: this.icon }), this.text && index.h("span", null, this.text)));
25
+ }
26
+ };
27
+ ZStatusTag.style = stylesCss;
28
+
29
+ exports.z_status_tag = ZStatusTag;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+
7
+ const stylesCss = ":host{position:relative;width:calc(var(--space-unit) * 5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host(:not(:last-child)){flex:1}:host(:not(:last-child))::after{position:absolute;top:calc(var(--space-unit) * 4);left:calc(var(--space-unit) * 3);right:calc(var(--space-unit) * 2);z-index:1;content:'';display:block;width:auto;margin:0 calc(-1 * calc(var(--space-unit) * 2)) 0 calc(var(--space-unit) * 2);border-bottom:solid 2px var(--bg-grey-700)}.stepper-item{display:flex;flex-direction:column;align-items:center;width:calc(var(--space-unit) * 5);padding:0;color:inherit;font-family:inherit;font-size:18px;text-decoration:none;line-height:28px;background:transparent;border:0;outline:0;appearance:none}.stepper-item span{display:none;width:calc(100% + calc(var(--space-unit) * 4));text-align:center}:host(:not([disabled])) .stepper-item{cursor:pointer}:host([disabled]) .stepper-item{pointer-events:none}.indicator{content:counter(stepper);box-sizing:border-box;display:flex;justify-content:center;align-items:center;width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4);margin:calc(var(--space-unit) * 2);font-size:14px;font-weight:var(--font-sb);line-height:1;color:var(--myz-blue);background:var(--bg-white);border:2px solid var(--myz-blue);border-radius:50%}:host([pressed]:not([disabled])) .indicator{color:var(--text-white);background:var(--myz-blue-dark);border-color:var(--myz-blue-dark)}:host(:not([disabled]):focus-within) .indicator{box-shadow:0px 0px 2px 2px var(--accent-dark)}:host([disabled]) .indicator{color:var(--text-grey-700);background:var(--bg-grey-200);border-color:currentColor}@media only screen and (min-width: 768px){:host{width:calc(var(--space-unit) * 10)}:host(:not(:last-child))::after{top:calc(var(--space-unit) * 5);left:calc(var(--space-unit) * 8)}.stepper-item{width:calc(var(--space-unit) * 10)}.stepper-item span{display:block}.indicator{width:calc(var(--space-unit) * 6);height:calc(var(--space-unit) * 6);font-size:16px}}";
8
+
9
+ const ZStepperItem = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ if (this.href) {
15
+ return (index.h("a", { href: !this.disabled && this.href, class: "stepper-item" }, index.h("div", { class: "indicator" }, this.index), index.h("span", null, index.h("slot", null))));
16
+ }
17
+ return (index.h("button", { class: "stepper-item", disabled: this.disabled }, index.h("div", { class: "indicator" }, this.index), index.h("span", null, index.h("slot", null))));
18
+ }
19
+ };
20
+ ZStepperItem.style = stylesCss;
21
+
22
+ exports.z_stepper_item = ZStepperItem;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+
7
+ const stylesCss = ":host{box-sizing:border-box;position:relative;display:flex;flex-direction:row;width:100%;max-width:100%;margin:0;padding:0;font-family:var(--dashboard-font);font-weight:var(--font-rg);list-style:none}@media only screen and (min-width: 768px){:host{padding:0 calc(var(--space-unit) * 2)}}";
8
+
9
+ const ZStepper = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ return (index.h("slot", null));
15
+ }
16
+ };
17
+ ZStepper.style = stylesCss;
18
+
19
+ exports.z_stepper = ZStepper;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-11a8a536.js');
6
+ const index$1 = require('./index-de6c491e.js');
7
7
 
8
8
  const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
9
9
 
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-11a8a536.js');
6
+ const index$1 = require('./index-de6c491e.js');
7
7
  const breakpoints = require('./breakpoints-88c4fd6c.js');
8
- const hammer = require('./hammer-6e321f0b.js');
8
+ const hammer = require('./hammer-54230951.js');
9
+ require('./_commonjsHelpers-119ffc74.js');
9
10
 
10
11
  const stylesCss = ":host{display:inline-block;min-width:200px;width:100vw}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideindown{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(0);opacity:100%}}@keyframes slideoutleft{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(-100%);opacity:0%}}@keyframes slideoutright{0%{transform:translateX(var(--percentuale));opacity:calc(100-var(--percentuale))}100%{transform:translateX(100%);opacity:0%}}@keyframes slideoutup{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(-100%);opacity:0}}@keyframes slideoutdown{0%{transform:translateY(var(--percentuale));opacity:100%}100%{transform:translateY(100%);opacity:0}}:host>#external-container{font-family:var(--font-family-sans);font-weight:var(--font-rg);border-radius:4px;font-size:14px;letter-spacing:0.16px;box-sizing:border-box;min-height:52px;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-3)}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}:host>#external-container #text{color:var(--color-white);line-height:20px;margin-right:calc(var(--space-unit) * 2);letter-spacing:0.16px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{cursor:pointer;fill:var(--color-white);margin-left:calc(var(--space-unit) * 2)}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-icon01)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--grey800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";
11
12
 
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+
7
+ const stylesCss = "button{font-family:var(--dashboard-font);font-weight:var(--font-sb);height:36px;border:var(--border-size-medium) solid;border-color:transparent;border-radius:var(--border-radius);color:var(--myz-blue);fill:var(--myz-blue);background-color:var(--bg-white);box-shadow:0px 0px 4px 0px rgba(0, 0, 0, 0.2);text-transform:uppercase;font-size:14px;outline:none;padding-left:0px;padding-right:calc(var(--space-unit) * 2);transition:all 200ms linear;cursor:pointer}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);color:var(--myz-blue);fill:var(--myz-blue);box-shadow:0px 0px 2px 2px var(--accent-dark)}button:active{border-color:var(--myz-blue-light);color:var(--myz-blue-light);fill:var(--myz-blue-light);box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.4)}button:disabled{color:var(--text-grey-700);fill:var(--text-grey-700)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}";
8
+
9
+ const ZToggleButton = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.toggleClick = index.createEvent(this, "toggleClick", 7);
13
+ /** disabled status flag (optional) */
14
+ this.isdisabled = false;
15
+ /** open by default (optional) */
16
+ this.opened = false;
17
+ }
18
+ emitToggleClick() {
19
+ if (this.isdisabled)
20
+ return;
21
+ this.opened = !this.opened;
22
+ this.toggleClick.emit(this.opened);
23
+ }
24
+ retrieveButtonClass() {
25
+ let className = this.opened && "isopen";
26
+ if (this.avoidclick)
27
+ className = className + " avoid-clicks";
28
+ return className;
29
+ }
30
+ render() {
31
+ return (index.h("button", { tabindex: this.avoidclick ? "-1" : "0", class: this.retrieveButtonClass(), disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, index.h("z-icon", { name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
32
+ }
33
+ };
34
+ ZToggleButton.style = stylesCss;
35
+
36
+ exports.z_toggle_button = ZToggleButton;
@@ -0,0 +1,274 @@
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-de6c491e.js');
7
+
8
+ const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
9
+
10
+ const documentElement = document.documentElement;
11
+ /**
12
+ * Find the closest scrollable parent of a node.
13
+ *
14
+ * @param {Element} element The node
15
+ */
16
+ function findScrollableParent(element) {
17
+ let parent = element.parentNode;
18
+ while (parent && parent !== documentElement) {
19
+ const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
20
+ if (overflow === 'hidden' ||
21
+ overflowY === 'hidden' ||
22
+ overflowX === 'hidden') {
23
+ return parent;
24
+ }
25
+ if ((parent.scrollHeight > parent.clientHeight && overflow !== 'visible' && overflowY !== 'visible') ||
26
+ (parent.scrollWidth > parent.clientWidth && overflow !== 'visible' && overflowX !== 'visible')) {
27
+ return parent;
28
+ }
29
+ parent = parent.parentNode;
30
+ }
31
+ return documentElement;
32
+ }
33
+ /**
34
+ * Calculate computed offset.
35
+ * It includes matrix transformations.
36
+ * @param element The target element.
37
+ * @param targetParentOffset The relative offset parent.
38
+ * @return A client rect object.
39
+ */
40
+ function computeOffset(element, targetParentOffset) {
41
+ const rect = element.getBoundingClientRect();
42
+ const width = rect.width;
43
+ const height = rect.height;
44
+ let top = 0;
45
+ let left = 0;
46
+ let offsetParent = element;
47
+ while (offsetParent && offsetParent != targetParentOffset) {
48
+ left += offsetParent.offsetLeft;
49
+ // document.body sometimes has offsetTop == 0 but still has an
50
+ // offset because of children margins!
51
+ if (offsetParent === document.body) {
52
+ top += offsetParent.getBoundingClientRect().top + window.scrollY;
53
+ }
54
+ else {
55
+ top += offsetParent.offsetTop;
56
+ }
57
+ if (window.DOMMatrix) {
58
+ const style = window.getComputedStyle(offsetParent);
59
+ const transform = style.transform || style.webkitTransform;
60
+ const domMatrix = new DOMMatrix(transform);
61
+ if (domMatrix) {
62
+ left += domMatrix.m41;
63
+ if (offsetParent !== document.body) {
64
+ top += domMatrix.m42;
65
+ }
66
+ }
67
+ }
68
+ if (!offsetParent.offsetParent) {
69
+ break;
70
+ }
71
+ offsetParent = offsetParent.offsetParent;
72
+ }
73
+ let parentWidth;
74
+ let parentHeight;
75
+ if (offsetParent === document.body) {
76
+ parentWidth = window.innerWidth;
77
+ parentHeight = window.innerHeight;
78
+ }
79
+ else {
80
+ parentWidth = offsetParent.offsetWidth;
81
+ parentHeight = offsetParent.offsetHeight;
82
+ }
83
+ const right = parentWidth - left - rect.width;
84
+ const bottom = parentHeight - top - rect.height;
85
+ return { top, right, bottom, left, width, height };
86
+ }
87
+ const ZTooltip = class {
88
+ constructor(hostRef) {
89
+ index.registerInstance(this, hostRef);
90
+ this.positionChange = index.createEvent(this, "positionChange", 7);
91
+ /** Tooltip position. */
92
+ this.type = index$1.TooltipPosition.AUTO;
93
+ /**
94
+ * The open state of the tooltip.
95
+ */
96
+ this.open = false;
97
+ }
98
+ validateType(newValue) {
99
+ if (newValue &&
100
+ Object
101
+ .values(index$1.TooltipPosition)
102
+ .every((position) => newValue !== position)) {
103
+ this.type = index$1.TooltipPosition.AUTO;
104
+ }
105
+ }
106
+ onPositionChange() {
107
+ this.positionChange.emit({ position: this.position });
108
+ }
109
+ disconnectedCallback() {
110
+ cancelAnimationFrame(this.animationFrameRequestId);
111
+ }
112
+ /**
113
+ * Setup tooltip behaviors on opening.
114
+ */
115
+ onOpen() {
116
+ cancelAnimationFrame(this.animationFrameRequestId);
117
+ if (this.content) {
118
+ return;
119
+ }
120
+ if (this.open) {
121
+ const setPosition = () => {
122
+ if (this.open) {
123
+ this.setPosition();
124
+ this.animationFrameRequestId = requestAnimationFrame(setPosition);
125
+ }
126
+ };
127
+ setPosition();
128
+ }
129
+ else {
130
+ const style = this.host.style;
131
+ style.removeProperty("top");
132
+ style.removeProperty("right");
133
+ style.removeProperty("bottom");
134
+ style.removeProperty("left");
135
+ }
136
+ }
137
+ /**
138
+ * Set the position of the tooltip.
139
+ */
140
+ setPosition() {
141
+ let element;
142
+ if (typeof this.bindTo === "string") {
143
+ element = this.host.ownerDocument.querySelector(this.bindTo);
144
+ }
145
+ else if (this.bindTo) {
146
+ element = this.bindTo;
147
+ }
148
+ else {
149
+ element = this.host.parentElement;
150
+ }
151
+ if (!element) {
152
+ return;
153
+ }
154
+ const scrollContainer = findScrollableParent(element);
155
+ const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
156
+ const offsetContainer = this.host.offsetParent;
157
+ const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
158
+ const boundingRect = computeOffset(element, scrollContainer);
159
+ const top = boundingRect.top - scrollContainer.scrollTop;
160
+ const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
161
+ const left = boundingRect.left - scrollContainer.scrollLeft;
162
+ const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
163
+ const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
164
+ const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
165
+ const availableTop = Math.min(top, top + scrollingBoundingRect.top);
166
+ const availableBottom = Math.min(bottom, bottom - overflowBottom);
167
+ const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
168
+ const availableRight = Math.min(right, right - overflowRight);
169
+ const availableHeight = availableTop + availableBottom + boundingRect.height;
170
+ const availableWidth = availableLeft + availableRight + boundingRect.width;
171
+ let position = this.type;
172
+ if (position === index$1.TooltipPosition.AUTO) {
173
+ /**
174
+ * The `AUTO` position tries to place the tooltip in the "safest" area,
175
+ * where there's more space available.
176
+ */
177
+ const positions = [];
178
+ if (availableTop / availableHeight > 0.9) {
179
+ positions.unshift(index$1.TooltipPosition.TOP);
180
+ }
181
+ else if (availableTop / availableHeight > 0.6) {
182
+ positions.push(index$1.TooltipPosition.TOP);
183
+ }
184
+ else if (availableTop / availableHeight < 0.1) {
185
+ positions.unshift(index$1.TooltipPosition.BOTTOM);
186
+ }
187
+ else {
188
+ positions.push(index$1.TooltipPosition.BOTTOM);
189
+ }
190
+ if (availableLeft / availableWidth > 0.6) {
191
+ positions.push(index$1.TooltipPosition.LEFT);
192
+ }
193
+ else if (availableLeft / availableWidth < 0.4) {
194
+ positions.push(index$1.TooltipPosition.RIGHT);
195
+ }
196
+ position = positions.join("_");
197
+ }
198
+ const style = this.host.style;
199
+ if (!this.content) {
200
+ style.position = "absolute";
201
+ }
202
+ const offsetTop = boundingRect.top - relativeBoundingRect.top;
203
+ const offsetRight = boundingRect.right - relativeBoundingRect.right;
204
+ const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
205
+ const offsetLeft = boundingRect.left - relativeBoundingRect.left;
206
+ if (position === index$1.TooltipPosition.TOP ||
207
+ position === index$1.TooltipPosition.TOP_RIGHT ||
208
+ position === index$1.TooltipPosition.TOP_LEFT) {
209
+ style.top = "auto";
210
+ style.bottom = `${offsetBottom + boundingRect.height}px`;
211
+ }
212
+ if (position === index$1.TooltipPosition.BOTTOM ||
213
+ position === index$1.TooltipPosition.BOTTOM_RIGHT ||
214
+ position === index$1.TooltipPosition.BOTTOM_LEFT) {
215
+ style.top = `${offsetTop + boundingRect.height}px`;
216
+ style.bottom = "auto";
217
+ }
218
+ if (position === index$1.TooltipPosition.TOP ||
219
+ position === index$1.TooltipPosition.BOTTOM) {
220
+ style.left = `${offsetLeft +
221
+ (boundingRect.width / 2) -
222
+ (this.host.clientWidth / 2)}px`;
223
+ }
224
+ if (position === index$1.TooltipPosition.TOP_RIGHT ||
225
+ position === index$1.TooltipPosition.BOTTOM_RIGHT) {
226
+ style.right = "auto";
227
+ style.left = `${offsetLeft + boundingRect.width}px`;
228
+ }
229
+ if (position === index$1.TooltipPosition.TOP_LEFT ||
230
+ position === index$1.TooltipPosition.BOTTOM_LEFT) {
231
+ style.left = "auto";
232
+ style.right = `${offsetRight + boundingRect.width}px`;
233
+ }
234
+ if (position === index$1.TooltipPosition.RIGHT ||
235
+ position === index$1.TooltipPosition.LEFT) {
236
+ style.top = `${offsetTop +
237
+ (boundingRect.height / 2) -
238
+ (this.host.clientHeight / 2)}px`;
239
+ style.bottom = "auto";
240
+ }
241
+ if (position === index$1.TooltipPosition.RIGHT) {
242
+ style.right = "auto";
243
+ style.left = `${offsetLeft + boundingRect.width}px`;
244
+ }
245
+ if (position === index$1.TooltipPosition.LEFT) {
246
+ style.left = "auto";
247
+ style.right = `${offsetRight + boundingRect.width}px`;
248
+ }
249
+ this.position = position;
250
+ }
251
+ componentWillLoad() {
252
+ // Keep backward compatibility
253
+ if (this.content) {
254
+ this.open = true;
255
+ }
256
+ this.validateType(this.type);
257
+ this.onOpen();
258
+ }
259
+ render() {
260
+ if (this.content) {
261
+ return (index.h(index.Host, { class: "legacy", position: this.type }, this.content));
262
+ }
263
+ return (index.h(index.Host, { position: this.position }, index.h("slot", null)));
264
+ }
265
+ get host() { return index.getElement(this); }
266
+ static get watchers() { return {
267
+ "type": ["validateType"],
268
+ "position": ["onPositionChange"],
269
+ "open": ["onOpen"]
270
+ }; }
271
+ };
272
+ ZTooltip.style = stylesCss;
273
+
274
+ exports.z_tooltip = ZTooltip;
@@ -0,0 +1,95 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-dee3e21d.js');
6
+ const breakpoints = require('./breakpoints-88c4fd6c.js');
7
+
8
+ const stylesCss = ":host{background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}button{cursor:pointer;display:flex;flex-direction:column;width:100%;margin:0;background-color:var(--gray900);border:none;padding:0;letter-spacing:0.16px;white-space:nowrap}button.inverse{background-color:var(--color-white)}button div.firstline{display:flex;justify-content:flex-end;align-items:center;max-width:200px}button.open div.firstline{max-width:none}z-icon{padding:0 2px;fill:var(--color-white)}z-icon.inverse{fill:var(--gray900)}ul{box-sizing:border-box;position:absolute;left:0;padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 2);width:100%;margin:calc(var(--space-unit) * 1.5) 0 0 0;background-color:var(--gray900);font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}ul.inverse{background-color:var(--color-white)}ul>li{display:flex;justify-content:flex-end;white-space:nowrap;padding:calc(var(--space-unit) * 1.5 - 1px) 0;margin:0;border-bottom:var(--border-base) solid var(--gray700)}ul>li.inverse{border-bottom-color:var(--gray400)}ul>li:first-child{border-top:none;padding-top:0;padding-bottom:calc(var(--space-unit) + 6px);flex-direction:column;align-items:end}ul>li:last-child{border-bottom:none;margin-bottom:0}#guestbutton{box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:100%;font-family:var(--font-family-sans);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;outline:none;fill:currentColor;height:32px;min-width:32px;padding:0 calc(var(--space-unit) * 2);background-color:var(--color-white);border-color:var(--color-white);color:var(--gray800)}#guestbutton.inverse{background-color:var(--gray800);border-color:var(--gray800);color:var(--color-white)}.userfullname{padding:0;overflow:hidden;max-width:250px;text-overflow:ellipsis;width:100%;color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:16px;line-height:24px;letter-spacing:0;text-align:right}.userfullname.inverse{color:var(--gray800)}.useremail{color:var(--color-white);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:12px;line-height:16px;letter-spacing:0.32px;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:right}.useremail.inverse{color:var(--gray800)}@media only screen and (min-width: 768px){:host{height:calc(var(--space-unit) * 4);background-color:var(--gray900)}:host(.inverse){background-color:var(--color-white)}:host>div{position:relative;top:50%;transform:translateY(-50%)}:host>div.open{top:auto;transform:none}:host>div>div{padding:0}:host>div>div.open{position:absolute;right:calc(var(--space-unit) * -1);box-shadow:0px 2px calc(var(--space-unit) * .5) 0px rgba(0, 0, 0, 0.5);background-color:var(--color-white);margin-top:calc(var(--space-unit) / 2);padding:calc(var(--space-unit) / 2 + 1px) var(--space-unit) 0 var(--space-unit);transform:translate(0, -4px)}:host>div>div.inverse.open{background-color:var(--gray800)}button{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:end;align-content:center}button.open{background-color:var(--color-white);border-top:var(--border-size-small) solid var(--color-white);border-top-left-radius:calc(var(--space-unit) * .5);border-top-right-radius:calc(var(--space-unit) * .5);max-width:initial;margin-left:var(--space-unit);padding-right:var(--space-unit)}button.open.inverse{border-top-color:var(--gray800);background-color:var(--gray800)}button:not(.open) z-icon{fill:var(--color-white)}button:not(.open) z-icon.inverse{fill:var(--gray800)}button.open z-icon{fill:var(--gray800)}button.open z-icon.inverse{fill:var(--color-white)}.userfullname{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.16px;padding:0 calc(var(--space-unit) - 6px) 0 calc(var(--space-unit) - 2px);width:auto}.userfullname.inverse{color:var(--gray800)}button.open div.userfullname{color:var(--gray800);max-width:none;text-overflow:clip}button.open div.userfullname.inverse{color:var(--color-white)}.useremail{padding-right:calc(var(--space-unit) * 3 - 2px);box-sizing:border-box}button.open div.useremail{color:var(--gray800)}button.open div.useremail.inverse{color:var(--color-white)}ul{position:initial;left:initial;padding:0;width:100%;background-color:var(--color-white)}ul.inverse{border-bottom-color:var(--gray800);background-color:var(--gray800)}ul>li{color:var(--gray800);border-bottom:var(--border-base) solid var(--gray400);margin:0 var(--space-unit)}ul>li.inverse{color:var(--color-white)}ul>li:first-child{border-top:var(--border-base) solid var(--gray400);padding-top:calc(var(--space-unit) + 3px);padding-bottom:calc(var(--space-unit) + 5px)}}";
9
+
10
+ const ZUserDropdown = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.userButtonClick = index.createEvent(this, "userButtonClick", 7);
14
+ this.dropdownMenuLinkClick = index.createEvent(this, "dropdownMenuLinkClick", 7);
15
+ /** if inner components colors are inverted, or not, default false */
16
+ this.useInverseColors = false;
17
+ this.isMenuOpen = false;
18
+ this.handleLoggedButtonClick = this.handleLoggedButtonClick.bind(this);
19
+ this.emitDropdownMenuLinkClick = this.emitDropdownMenuLinkClick.bind(this);
20
+ }
21
+ componentDidLoad() {
22
+ this.setMobileAndDivToResizeWidth();
23
+ }
24
+ componentWillUpdate() {
25
+ this.setMobileAndDivToResizeWidth();
26
+ }
27
+ componentWillRender() {
28
+ if (this.menuContent) {
29
+ this.linkArray = typeof this.menuContent === "string" ? JSON.parse(this.menuContent) : this.menuContent;
30
+ }
31
+ }
32
+ setMobileAndDivToResizeWidth() {
33
+ var _a;
34
+ if (this.divToResize) {
35
+ this.isMobile = window.screen.width <= breakpoints.mobileBreakpoint || window.innerWidth <= breakpoints.mobileBreakpoint;
36
+ if (this.logged && !this.isMobile && this.isMenuOpen) {
37
+ this.divToResize.style.width = `${(_a = this.userButton) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
38
+ }
39
+ else {
40
+ this.divToResize.removeAttribute('style');
41
+ }
42
+ }
43
+ }
44
+ emitUserButtonClick() {
45
+ this.userButtonClick.emit(this.isMenuOpen);
46
+ }
47
+ emitDropdownMenuLinkClick(e) {
48
+ this.isMenuOpen = false;
49
+ this.dropdownMenuLinkClick.emit({ e, linkId: e.detail.linkId });
50
+ }
51
+ handleResize() {
52
+ this.isMobile = window.innerWidth <= breakpoints.mobileBreakpoint;
53
+ }
54
+ handleOrientationChange() {
55
+ this.isMobile = screen.width <= breakpoints.mobileBreakpoint;
56
+ }
57
+ handleClickOutside(e) {
58
+ if (e.target.nodeName !== "Z-USER-DROPDOWN") {
59
+ this.isMenuOpen = false;
60
+ }
61
+ }
62
+ handleLoggedButtonClick() {
63
+ this.isMenuOpen = !this.isMenuOpen;
64
+ this.emitUserButtonClick();
65
+ }
66
+ renderGuestButton() {
67
+ return (index.h("button", { id: "guestbutton", class: this.useInverseColors ? "inverse" : "", onClick: () => this.emitUserButtonClick() }, "ENTRA"));
68
+ }
69
+ renderLoggedButton() {
70
+ const direction = this.isMenuOpen ? "up" : "down";
71
+ const colorClass = this.useInverseColors ? "inverse" : "";
72
+ return (index.h("button", { ref: (el) => (this.userButton = el), title: this.userFullName, class: `${colorClass} ${this.isMenuOpen ? "open" : ""}`, onClick: this.handleLoggedButtonClick }, index.h("div", null, index.h("div", { class: "firstline" }, index.h("z-icon", { class: colorClass, name: "user-avatar-filled", height: 16, width: 16 }), !this.isMobile && index.h("div", { class: `userfullname ${colorClass}` }, this.userFullName), index.h("z-icon", { class: colorClass, name: `caret-${direction}-filled`, height: 16, width: 16 })), !this.isMobile && this.isMenuOpen && index.h("div", { class: `useremail ${colorClass}` }, this.userEmail))));
73
+ }
74
+ getZLinkTextcolor() {
75
+ if (this.isMobile) {
76
+ return this.useInverseColors ? "black" : "white";
77
+ }
78
+ else {
79
+ return this.useInverseColors ? "white" : "black";
80
+ }
81
+ }
82
+ renderDropdownMenu() {
83
+ const colorClass = this.useInverseColors ? "inverse" : "";
84
+ return (this.isMenuOpen && (index.h("ul", { class: colorClass }, this.isMobile &&
85
+ index.h("li", { class: colorClass }, index.h("div", { class: `userfullname ${colorClass}` }, this.userFullName), index.h("div", { class: `useremail ${colorClass}` }, this.userEmail)), this.linkArray && this.linkArray.map((link) => index.h("li", { id: link.id, class: colorClass }, index.h("z-link", { textcolor: this.getZLinkTextcolor(), href: link.link, htmlid: link.id, target: link.target, icon: link.icon, onZLinkClick: this.emitDropdownMenuLinkClick }, link.label))))));
86
+ }
87
+ render() {
88
+ const openClass = `${this.logged && this.isMenuOpen ? "open" : ""}`;
89
+ const colorClass = this.useInverseColors ? "inverse" : "";
90
+ return (index.h(index.Host, { class: colorClass }, index.h("div", { ref: (el) => (this.divToResize = el), class: openClass }, index.h("div", { class: `${colorClass} ${openClass}` }, this.logged ? this.renderLoggedButton() : this.renderGuestButton(), this.logged && this.renderDropdownMenu()))));
91
+ }
92
+ };
93
+ ZUserDropdown.style = stylesCss;
94
+
95
+ exports.z_user_dropdown = ZUserDropdown;