@zanichelli/albe-web-components 5.5.1-rc.1 → 5.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (693) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/cjs/_commonjsHelpers-10109b76.js +48 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  4. package/dist/cjs/css-shim-f1391d35.js +6 -0
  5. package/dist/cjs/dom-5345ed9a.js +75 -0
  6. package/dist/cjs/hammer-0741ba49.js +2651 -0
  7. package/dist/cjs/index-438f76bc.js +334 -0
  8. package/dist/cjs/index-545547ad.js +66 -0
  9. package/dist/cjs/index-6b6a3299.js +315 -0
  10. package/dist/cjs/index-fcbe2d6e.js +3093 -0
  11. package/dist/cjs/index.cjs.js +284 -2
  12. package/dist/cjs/loader.cjs.js +18 -2
  13. package/dist/cjs/shadow-css-42acdd0e.js +390 -0
  14. package/dist/cjs/utils-0a978fe0.js +118 -0
  15. package/dist/cjs/utils-56c20ead.js +118 -0
  16. package/dist/cjs/utils-69e42a14.js +2742 -0
  17. package/dist/cjs/{utils-eca6932d.js → utils-8cc414c9.js} +1 -1
  18. package/dist/cjs/{utils-21d41d92.js → utils-aca0a0b6.js} +25 -3
  19. package/dist/cjs/web-components-library.cjs.js +116 -4
  20. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  21. package/dist/cjs/z-app-header.cjs.entry.js +1 -1
  22. package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
  23. package/dist/cjs/z-app-switcher_11.cjs.entry.js +377 -0
  24. package/dist/cjs/z-app-topbar.cjs.entry.js +41 -0
  25. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  26. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  27. package/dist/cjs/z-body.cjs.entry.js +17 -0
  28. package/dist/cjs/z-button-deprecated.cjs.entry.js +4 -4
  29. package/dist/cjs/z-button-filter.cjs.entry.js +1 -1
  30. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  31. package/dist/cjs/z-button.cjs.entry.js +2 -2
  32. package/dist/cjs/z-candybar.cjs.entry.js +1 -1
  33. package/dist/cjs/z-card.cjs.entry.js +2 -2
  34. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  35. package/dist/cjs/z-chip-deprecated.cjs.entry.js +1 -1
  36. package/dist/cjs/z-chip.cjs.entry.js +5 -5
  37. package/dist/cjs/z-combobox.cjs.entry.js +3 -3
  38. package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -2
  39. package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
  40. package/dist/cjs/z-date-picker.cjs.entry.js +14 -8
  41. package/dist/cjs/z-divider.cjs.entry.js +26 -0
  42. package/dist/cjs/z-dragdrop-area.cjs.entry.js +37 -0
  43. package/dist/cjs/z-file-upload.cjs.entry.js +12 -26
  44. package/dist/cjs/z-file.cjs.entry.js +4 -4
  45. package/dist/cjs/z-footer-link.cjs.entry.js +19 -0
  46. package/dist/cjs/z-footer-section.cjs.entry.js +23 -0
  47. package/dist/cjs/z-footer-social.cjs.entry.js +19 -0
  48. package/dist/cjs/z-footer.cjs.entry.js +2 -2
  49. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  50. package/dist/cjs/z-heading.cjs.entry.js +17 -0
  51. package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
  52. package/dist/cjs/z-icon.cjs.entry.js +28 -0
  53. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  54. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  55. package/dist/cjs/z-input-deprecated.cjs.entry.js +3 -3
  56. package/dist/cjs/z-input-label.cjs.entry.js +21 -0
  57. package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
  58. package/dist/cjs/z-input-message.cjs.entry.js +24 -0
  59. package/dist/cjs/z-input.cjs.entry.js +235 -0
  60. package/dist/cjs/z-input_2.cjs.entry.js +228 -0
  61. package/dist/cjs/z-link.cjs.entry.js +71 -0
  62. package/dist/cjs/z-list-element.cjs.entry.js +154 -0
  63. package/dist/cjs/z-list-group.cjs.entry.js +2 -2
  64. package/dist/cjs/z-list.cjs.entry.js +34 -0
  65. package/dist/cjs/z-list_2.cjs.entry.js +1 -1
  66. package/dist/cjs/z-logo.cjs.entry.js +28 -0
  67. package/dist/cjs/z-menu-dropdown.cjs.entry.js +60 -0
  68. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
  69. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  70. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  71. package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
  72. package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
  73. package/dist/cjs/z-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  75. package/dist/cjs/z-myz-card-body.cjs.entry.js +19 -0
  76. package/dist/cjs/z-myz-card-cover.cjs.entry.js +22 -0
  77. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  78. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  79. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  80. package/dist/cjs/z-myz-card-header.cjs.entry.js +39 -0
  81. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  82. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  83. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  84. package/dist/cjs/z-myz-card.cjs.entry.js +43 -0
  85. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  86. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  87. package/dist/cjs/z-myz-list.cjs.entry.js +35 -0
  88. package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
  89. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +2 -2
  90. package/dist/cjs/z-navigation-tab.cjs.entry.js +2 -2
  91. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  92. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  93. package/dist/cjs/z-offcanvas.cjs.entry.js +2 -2
  94. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  95. package/dist/cjs/z-pagination-bar.cjs.entry.js +7 -5
  96. package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
  97. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  98. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  99. package/dist/cjs/z-pocket-body.cjs.entry.js +27 -0
  100. package/dist/cjs/z-pocket-header.cjs.entry.js +40 -0
  101. package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
  102. package/dist/cjs/z-pocket.cjs.entry.js +72 -0
  103. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  104. package/dist/cjs/z-popover-deprecated.cjs.entry.js +5 -5
  105. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  106. package/dist/cjs/{z-app-switcher_9.cjs.entry.js → z-range-picker.cjs.entry.js} +14 -443
  107. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  108. package/dist/cjs/z-select.cjs.entry.js +257 -0
  109. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  110. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  111. package/dist/cjs/z-status-tag.cjs.entry.js +4 -4
  112. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  113. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  114. package/dist/cjs/z-table-body.cjs.entry.js +1 -1
  115. package/dist/cjs/z-table-cell.cjs.entry.js +4 -4
  116. package/dist/cjs/z-table-empty-box.cjs.entry.js +3 -3
  117. package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
  118. package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
  119. package/dist/cjs/z-table-head.cjs.entry.js +1 -1
  120. package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
  121. package/dist/cjs/z-table-header.cjs.entry.js +5 -5
  122. package/dist/cjs/z-table-row.cjs.entry.js +2 -2
  123. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
  124. package/dist/cjs/z-table.cjs.entry.js +2 -2
  125. package/dist/cjs/z-tag.cjs.entry.js +1 -1
  126. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  127. package/dist/cjs/z-toast-notification.cjs.entry.js +4 -4
  128. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  129. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  130. package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +2 -2
  131. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  132. package/dist/cjs/z-typography.cjs.entry.js +29 -0
  133. package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
  134. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  135. package/dist/collection/components/buttons/z-chip/index.js +1 -1
  136. package/dist/collection/components/buttons/z-chip/styles.css +9 -2
  137. package/dist/collection/components/file-upload/z-file/index.js +3 -19
  138. package/dist/collection/components/file-upload/z-file-upload/index.js +11 -46
  139. package/dist/collection/components/z-date-picker/index.js +284 -0
  140. package/dist/collection/components/z-date-picker/styles.css +525 -0
  141. package/dist/collection/index.js +1 -0
  142. package/dist/esm/_commonjsHelpers-8fe71198.js +44 -0
  143. package/dist/esm/app-globals-0f993ce5.js +3 -0
  144. package/dist/esm/css-shim-10e6e2ae.js +4 -0
  145. package/dist/esm/dom-7cd9cf71.js +73 -0
  146. package/dist/esm/hammer-782a2043.js +2649 -0
  147. package/dist/esm/{index-e5e2b27f.js → index-3b53c63e.js} +1 -1
  148. package/dist/esm/index-3ee81524.js +334 -0
  149. package/dist/esm/index-46ca649a.js +315 -0
  150. package/dist/esm/index-51f075dd.js +64 -0
  151. package/dist/esm/index-81176684.js +3057 -0
  152. package/dist/esm/index.js +2 -2
  153. package/dist/esm/loader.js +18 -2
  154. package/dist/esm/shadow-css-38a1326b.js +388 -0
  155. package/dist/esm/{utils-34c0d609.js → utils-1e801ac0.js} +26 -4
  156. package/dist/esm/utils-43f2cad8.js +2736 -0
  157. package/dist/esm/{utils-9fa9c37c.js → utils-5d5963ef.js} +2 -2
  158. package/dist/esm/utils-a3134cfb.js +109 -0
  159. package/dist/esm/utils-e5940345.js +109 -0
  160. package/dist/esm/web-components-library.js +116 -4
  161. package/dist/esm/z-alert.entry.js +1 -1
  162. package/dist/esm/z-app-header.entry.js +1 -1
  163. package/dist/esm/z-app-switcher.entry.js +25 -0
  164. package/dist/esm/z-app-switcher_11.entry.js +363 -0
  165. package/dist/esm/z-app-topbar.entry.js +37 -0
  166. package/dist/esm/z-aria-alert.entry.js +2 -2
  167. package/dist/esm/z-avatar.entry.js +2 -2
  168. package/dist/esm/z-body.entry.js +13 -0
  169. package/dist/esm/z-button-deprecated.entry.js +4 -4
  170. package/dist/esm/z-button-filter.entry.js +1 -1
  171. package/dist/esm/z-button-sort.entry.js +1 -1
  172. package/dist/esm/z-button.entry.js +2 -2
  173. package/dist/esm/z-candybar.entry.js +1 -1
  174. package/dist/esm/z-card.entry.js +2 -2
  175. package/dist/esm/z-carousel.entry.js +1 -1
  176. package/dist/esm/z-chip-deprecated.entry.js +1 -1
  177. package/dist/esm/z-chip.entry.js +5 -5
  178. package/dist/esm/z-combobox.entry.js +3 -3
  179. package/dist/esm/z-contextual-menu.entry.js +2 -2
  180. package/dist/esm/z-cookiebar.entry.js +2 -2
  181. package/dist/esm/z-date-picker.entry.js +14 -8
  182. package/dist/esm/z-divider.entry.js +22 -0
  183. package/dist/esm/z-dragdrop-area.entry.js +33 -0
  184. package/dist/esm/z-file-upload.entry.js +12 -26
  185. package/dist/esm/z-file.entry.js +4 -4
  186. package/dist/esm/z-footer-link.entry.js +15 -0
  187. package/dist/esm/z-footer-section.entry.js +19 -0
  188. package/dist/esm/z-footer-social.entry.js +15 -0
  189. package/dist/esm/z-footer.entry.js +2 -2
  190. package/dist/esm/z-ghost-loading.entry.js +1 -1
  191. package/dist/esm/z-heading.entry.js +13 -0
  192. package/dist/esm/z-icon-package.entry.js +1 -1
  193. package/dist/esm/z-icon.entry.js +24 -0
  194. package/dist/esm/z-info-box.entry.js +1 -1
  195. package/dist/esm/z-info-reveal.entry.js +2 -2
  196. package/dist/esm/z-input-deprecated.entry.js +3 -3
  197. package/dist/esm/z-input-label.entry.js +17 -0
  198. package/dist/esm/z-input-label_2.entry.js +2 -2
  199. package/dist/esm/z-input-message.entry.js +20 -0
  200. package/dist/esm/z-input.entry.js +231 -0
  201. package/dist/esm/z-input_2.entry.js +223 -0
  202. package/dist/esm/z-link.entry.js +67 -0
  203. package/dist/esm/z-list-element.entry.js +150 -0
  204. package/dist/esm/z-list-group.entry.js +2 -2
  205. package/dist/esm/z-list.entry.js +30 -0
  206. package/dist/esm/z-list_2.entry.js +1 -1
  207. package/dist/esm/z-logo.entry.js +24 -0
  208. package/dist/esm/z-menu-dropdown.entry.js +56 -0
  209. package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
  210. package/dist/esm/z-menu-section.entry.js +1 -1
  211. package/dist/esm/z-menu.entry.js +1 -1
  212. package/dist/esm/z-messages-pocket.entry.js +2 -2
  213. package/dist/esm/z-modal-login.entry.js +2 -2
  214. package/dist/esm/z-modal.entry.js +1 -1
  215. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  216. package/dist/esm/z-myz-card-body.entry.js +15 -0
  217. package/dist/esm/z-myz-card-cover.entry.js +18 -0
  218. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  219. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  220. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  221. package/dist/esm/z-myz-card-header.entry.js +35 -0
  222. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  223. package/dist/esm/z-myz-card-info.entry.js +3 -3
  224. package/dist/esm/z-myz-card-list.entry.js +1 -1
  225. package/dist/esm/z-myz-card.entry.js +39 -0
  226. package/dist/esm/z-myz-card_4.entry.js +1 -1
  227. package/dist/esm/z-myz-list-item.entry.js +3 -3
  228. package/dist/esm/z-myz-list.entry.js +31 -0
  229. package/dist/esm/z-myz-topbar.entry.js +2 -2
  230. package/dist/esm/z-navigation-tab-link.entry.js +2 -2
  231. package/dist/esm/z-navigation-tab.entry.js +2 -2
  232. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  233. package/dist/esm/z-notification.entry.js +1 -1
  234. package/dist/esm/z-offcanvas.entry.js +2 -2
  235. package/dist/esm/z-otp.entry.js +2 -2
  236. package/dist/esm/z-pagination-bar.entry.js +7 -5
  237. package/dist/esm/z-pagination-page.entry.js +1 -1
  238. package/dist/esm/z-pagination.entry.js +1 -1
  239. package/dist/esm/z-panel-elem.entry.js +1 -1
  240. package/dist/esm/z-pocket-body.entry.js +23 -0
  241. package/dist/esm/z-pocket-header.entry.js +36 -0
  242. package/dist/esm/z-pocket-message.entry.js +1 -1
  243. package/dist/esm/z-pocket.entry.js +68 -0
  244. package/dist/esm/z-pocket_3.entry.js +2 -2
  245. package/dist/esm/z-popover-deprecated.entry.js +5 -5
  246. package/dist/esm/z-popover.entry.js +2 -2
  247. package/dist/esm/{z-app-switcher_9.entry.js → z-range-picker.entry.js} +5 -426
  248. package/dist/esm/z-section-title.entry.js +2 -2
  249. package/dist/esm/z-select.entry.js +253 -0
  250. package/dist/esm/z-skip-to-content.entry.js +3 -3
  251. package/dist/esm/z-slideshow.entry.js +3 -3
  252. package/dist/esm/z-status-tag.entry.js +4 -4
  253. package/dist/esm/z-stepper-item.entry.js +1 -1
  254. package/dist/esm/z-stepper.entry.js +1 -1
  255. package/dist/esm/z-table-body.entry.js +1 -1
  256. package/dist/esm/z-table-cell.entry.js +4 -4
  257. package/dist/esm/z-table-empty-box.entry.js +3 -3
  258. package/dist/esm/z-table-expanded-row.entry.js +1 -1
  259. package/dist/esm/z-table-footer.entry.js +1 -1
  260. package/dist/esm/z-table-head.entry.js +1 -1
  261. package/dist/esm/z-table-header-row.entry.js +1 -1
  262. package/dist/esm/z-table-header.entry.js +5 -5
  263. package/dist/esm/z-table-row.entry.js +2 -2
  264. package/dist/esm/z-table-sticky-footer.entry.js +1 -1
  265. package/dist/esm/z-table.entry.js +2 -2
  266. package/dist/esm/z-tag.entry.js +1 -1
  267. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  268. package/dist/esm/z-toast-notification.entry.js +4 -4
  269. package/dist/esm/z-toggle-button.entry.js +1 -1
  270. package/dist/esm/z-toggle-switch.entry.js +3 -3
  271. package/dist/esm/z-tooltip-deprecated.entry.js +2 -2
  272. package/dist/esm/z-tooltip.entry.js +2 -2
  273. package/dist/esm/z-typography.entry.js +25 -0
  274. package/dist/esm/z-user-dropdown.entry.js +1 -1
  275. package/dist/esm/z-visually-hidden.entry.js +1 -1
  276. package/dist/types/components/file-upload/z-file/index.d.ts +0 -2
  277. package/dist/types/components/file-upload/z-file-upload/index.d.ts +3 -5
  278. package/dist/types/components/z-date-picker/index.d.ts +30 -0
  279. package/dist/types/components.d.ts +0 -12
  280. package/dist/types/index.d.ts +1 -0
  281. package/dist/web-components-library/_commonjsHelpers-8fe71198.js +44 -0
  282. package/dist/web-components-library/app-globals-0f993ce5.js +3 -0
  283. package/dist/web-components-library/breakpoints-c386984e.js +4 -0
  284. package/dist/web-components-library/css-shim-10e6e2ae.js +4 -0
  285. package/dist/web-components-library/dom-7cd9cf71.js +73 -0
  286. package/dist/web-components-library/hammer-782a2043.js +2649 -0
  287. package/dist/web-components-library/icons-92a7dcde.js +511 -0
  288. package/dist/web-components-library/index-3b53c63e.js +334 -0
  289. package/dist/web-components-library/index-3ee81524.js +334 -0
  290. package/dist/web-components-library/index-51f075dd.js +64 -0
  291. package/dist/web-components-library/index-81176684.js +3057 -0
  292. package/dist/web-components-library/index.esm.js +9 -1
  293. package/{www/build/p-3ade68ff.entry.js → dist/web-components-library/p-02ea7e49.entry.js} +1 -1
  294. package/dist/web-components-library/{p-39dbb042.entry.js → p-0a0aee35.entry.js} +1 -1
  295. package/dist/web-components-library/p-0d29d851.entry.js +1 -0
  296. package/dist/web-components-library/{p-a73195b6.entry.js → p-0e256fdc.entry.js} +1 -1
  297. package/dist/web-components-library/p-0e408871.entry.js +1 -0
  298. package/dist/web-components-library/p-0ef6c549.entry.js +1 -0
  299. package/dist/web-components-library/{p-afed0692.entry.js → p-0f17db30.entry.js} +1 -1
  300. package/dist/web-components-library/{p-80f26a20.entry.js → p-1727c1c8.entry.js} +1 -1
  301. package/dist/web-components-library/p-1f73a6d8.entry.js +1 -0
  302. package/dist/web-components-library/p-20d62443.entry.js +1 -0
  303. package/dist/web-components-library/{p-2ed37f62.entry.js → p-292bc0c4.entry.js} +1 -1
  304. package/dist/web-components-library/{p-1c790896.entry.js → p-3c111c2a.entry.js} +1 -1
  305. package/{www/build/p-9504d075.entry.js → dist/web-components-library/p-3edbd35c.entry.js} +1 -1
  306. package/dist/web-components-library/{p-ac52264c.entry.js → p-43329b81.entry.js} +1 -1
  307. package/{www/build/p-96bf5b15.entry.js → dist/web-components-library/p-4af112a7.entry.js} +1 -1
  308. package/dist/web-components-library/{p-3d748f0d.entry.js → p-51cdabeb.entry.js} +1 -1
  309. package/dist/web-components-library/{p-3700ad63.entry.js → p-55ddbfe9.entry.js} +1 -1
  310. package/dist/web-components-library/p-562e2d52.entry.js +1 -0
  311. package/dist/web-components-library/{p-07ae4f7d.entry.js → p-57d1acdc.entry.js} +1 -1
  312. package/dist/web-components-library/{p-eddde828.entry.js → p-5be162d5.entry.js} +1 -1
  313. package/dist/web-components-library/p-5eacbfc7.entry.js +1 -0
  314. package/dist/web-components-library/p-6218514a.entry.js +1 -0
  315. package/dist/web-components-library/{p-27666111.entry.js → p-63ccb013.entry.js} +1 -1
  316. package/{www/build/p-ba76f52b.entry.js → dist/web-components-library/p-69ef6ddc.entry.js} +1 -1
  317. package/dist/web-components-library/{p-d4c5085b.entry.js → p-6c6b4e80.entry.js} +1 -1
  318. package/dist/web-components-library/p-71accd8e.entry.js +1 -0
  319. package/dist/web-components-library/{p-faeb0c6e.entry.js → p-7c6d4440.entry.js} +1 -1
  320. package/dist/web-components-library/{p-b621a765.entry.js → p-8fbc2ce9.entry.js} +1 -1
  321. package/dist/web-components-library/{p-7e691a4e.entry.js → p-9074e1a5.entry.js} +1 -1
  322. package/dist/web-components-library/p-99d7ab2f.entry.js +1 -0
  323. package/dist/web-components-library/p-9a5ee6c2.entry.js +1 -0
  324. package/dist/web-components-library/p-9f5d707a.js +1 -0
  325. package/dist/web-components-library/{p-977c81d3.entry.js → p-9f9e4266.entry.js} +1 -1
  326. package/dist/web-components-library/p-a8875b97.entry.js +16 -0
  327. package/dist/web-components-library/{p-cb4a854e.entry.js → p-b15efba3.entry.js} +1 -1
  328. package/dist/web-components-library/{p-5aa819f8.js → p-b9da171f.js} +1 -1
  329. package/dist/web-components-library/{p-91cbf793.entry.js → p-ba29bc12.entry.js} +1 -1
  330. package/dist/web-components-library/{p-766eb9cf.entry.js → p-bfe5693d.entry.js} +1 -1
  331. package/dist/web-components-library/{p-215adfd1.entry.js → p-ccdebe3f.entry.js} +1 -1
  332. package/dist/web-components-library/{p-e6fb8b76.entry.js → p-d33fea26.entry.js} +1 -1
  333. package/dist/web-components-library/p-d39c0372.entry.js +1 -0
  334. package/{www/build/p-e5eb1fa4.entry.js → dist/web-components-library/p-d97a2db9.entry.js} +1 -1
  335. package/dist/web-components-library/p-d995d9dc.entry.js +1 -0
  336. package/dist/web-components-library/{p-846f16e8.entry.js → p-de25c7f0.entry.js} +1 -1
  337. package/{www/build/p-818c073b.entry.js → dist/web-components-library/p-df4e963b.entry.js} +1 -1
  338. package/dist/web-components-library/{p-d5e67db8.entry.js → p-dffdf60a.entry.js} +1 -1
  339. package/{www/build/p-878e62e2.entry.js → dist/web-components-library/p-e2102da3.entry.js} +1 -1
  340. package/dist/web-components-library/p-e2431b92.entry.js +1 -0
  341. package/dist/web-components-library/{p-7f48b622.entry.js → p-edb8d2ab.entry.js} +1 -1
  342. package/dist/web-components-library/{p-cb3663e6.entry.js → p-fe927bf4.entry.js} +1 -1
  343. package/dist/web-components-library/shadow-css-38a1326b.js +388 -0
  344. package/dist/web-components-library/utils-1e801ac0.js +2736 -0
  345. package/dist/web-components-library/utils-43f2cad8.js +2736 -0
  346. package/dist/web-components-library/utils-a3134cfb.js +109 -0
  347. package/dist/web-components-library/utils-e5940345.js +109 -0
  348. package/dist/web-components-library/web-components-library.css +812 -1
  349. package/dist/web-components-library/web-components-library.esm.js +129 -1
  350. package/dist/web-components-library/z-alert.entry.js +15 -0
  351. package/dist/web-components-library/z-app-header.entry.js +127 -0
  352. package/dist/web-components-library/z-app-switcher.entry.js +25 -0
  353. package/dist/web-components-library/z-app-topbar.entry.js +37 -0
  354. package/dist/web-components-library/z-aria-alert.entry.js +14 -0
  355. package/dist/web-components-library/z-avatar.entry.js +39 -0
  356. package/dist/web-components-library/z-body.entry.js +13 -0
  357. package/dist/web-components-library/z-button-deprecated.entry.js +34 -0
  358. package/dist/web-components-library/z-button-filter.entry.js +45 -0
  359. package/dist/web-components-library/z-button-sort.entry.js +50 -0
  360. package/dist/web-components-library/z-button.entry.js +38 -0
  361. package/dist/web-components-library/z-candybar.entry.js +15 -0
  362. package/dist/web-components-library/z-card.entry.js +65 -0
  363. package/dist/web-components-library/z-carousel.entry.js +20 -0
  364. package/dist/web-components-library/z-chip-deprecated.entry.js +20 -0
  365. package/dist/web-components-library/z-chip.entry.js +33 -0
  366. package/dist/web-components-library/z-combobox.entry.js +166 -0
  367. package/dist/web-components-library/z-contextual-menu.entry.js +47 -0
  368. package/dist/web-components-library/z-cookiebar.entry.js +38 -0
  369. package/dist/web-components-library/z-date-picker.entry.js +484 -0
  370. package/dist/web-components-library/z-divider.entry.js +22 -0
  371. package/dist/web-components-library/z-dragdrop-area.entry.js +33 -0
  372. package/dist/web-components-library/z-file-upload.entry.js +168 -0
  373. package/dist/web-components-library/z-file.entry.js +44 -0
  374. package/dist/web-components-library/z-footer-link.entry.js +15 -0
  375. package/dist/web-components-library/z-footer-section.entry.js +19 -0
  376. package/dist/web-components-library/z-footer-social.entry.js +15 -0
  377. package/dist/web-components-library/z-footer.entry.js +103 -0
  378. package/dist/web-components-library/z-ghost-loading.entry.js +15 -0
  379. package/dist/web-components-library/z-heading.entry.js +13 -0
  380. package/dist/web-components-library/z-icon-package.entry.js +19 -0
  381. package/dist/web-components-library/z-icon.entry.js +24 -0
  382. package/dist/web-components-library/z-info-box.entry.js +21 -0
  383. package/dist/web-components-library/z-info-reveal.entry.js +60 -0
  384. package/dist/web-components-library/z-input-deprecated.entry.js +267 -0
  385. package/dist/web-components-library/z-input-label.entry.js +17 -0
  386. package/dist/web-components-library/z-input-message.entry.js +20 -0
  387. package/dist/web-components-library/z-input.entry.js +231 -0
  388. package/dist/web-components-library/z-link.entry.js +67 -0
  389. package/dist/web-components-library/z-list-element.entry.js +150 -0
  390. package/dist/web-components-library/z-list-group.entry.js +50 -0
  391. package/dist/web-components-library/z-list.entry.js +30 -0
  392. package/dist/web-components-library/z-logo.entry.js +24 -0
  393. package/dist/web-components-library/z-menu-dropdown.entry.js +56 -0
  394. package/dist/web-components-library/z-menu-section.entry.js +42 -0
  395. package/dist/web-components-library/z-menu.entry.js +106 -0
  396. package/dist/web-components-library/z-messages-pocket.entry.js +42 -0
  397. package/dist/web-components-library/z-modal-login.entry.js +78 -0
  398. package/dist/web-components-library/z-modal.entry.js +32 -0
  399. package/dist/web-components-library/z-myz-card-alert.entry.js +59 -0
  400. package/dist/web-components-library/z-myz-card-body.entry.js +15 -0
  401. package/dist/web-components-library/z-myz-card-cover.entry.js +18 -0
  402. package/dist/web-components-library/z-myz-card-dictionary.entry.js +32 -0
  403. package/dist/web-components-library/z-myz-card-footer-sections.entry.js +15 -0
  404. package/dist/web-components-library/z-myz-card-footer.entry.js +52 -0
  405. package/dist/web-components-library/z-myz-card-header.entry.js +35 -0
  406. package/dist/web-components-library/z-myz-card-icon.entry.js +17 -0
  407. package/dist/web-components-library/z-myz-card-info.entry.js +115 -0
  408. package/dist/web-components-library/z-myz-card-list.entry.js +33 -0
  409. package/dist/web-components-library/z-myz-card.entry.js +39 -0
  410. package/dist/web-components-library/z-myz-list-item.entry.js +33 -0
  411. package/dist/web-components-library/z-myz-list.entry.js +31 -0
  412. package/dist/web-components-library/z-myz-topbar.entry.js +190 -0
  413. package/dist/web-components-library/z-navigation-tab-link.entry.js +67 -0
  414. package/dist/web-components-library/z-navigation-tab.entry.js +69 -0
  415. package/dist/web-components-library/z-navigation-tabs.entry.js +122 -0
  416. package/dist/web-components-library/z-notification.entry.js +42 -0
  417. package/dist/web-components-library/z-offcanvas.entry.js +59 -0
  418. package/dist/web-components-library/z-otp.entry.js +37 -0
  419. package/dist/web-components-library/z-pagination-bar.entry.js +126 -0
  420. package/dist/web-components-library/z-pagination-page.entry.js +21 -0
  421. package/dist/web-components-library/z-pagination.entry.js +228 -0
  422. package/dist/web-components-library/z-panel-elem.entry.js +26 -0
  423. package/dist/web-components-library/z-pocket-body.entry.js +23 -0
  424. package/dist/web-components-library/z-pocket-header.entry.js +36 -0
  425. package/dist/web-components-library/z-pocket-message.entry.js +15 -0
  426. package/dist/web-components-library/z-pocket.entry.js +68 -0
  427. package/dist/web-components-library/z-popover-deprecated.entry.js +128 -0
  428. package/dist/web-components-library/z-popover.entry.js +332 -0
  429. package/dist/web-components-library/z-range-picker.entry.js +354 -0
  430. package/dist/web-components-library/z-section-title.entry.js +38 -0
  431. package/dist/web-components-library/z-select.entry.js +253 -0
  432. package/dist/web-components-library/z-skip-to-content.entry.js +64 -0
  433. package/dist/web-components-library/z-slideshow.entry.js +108 -0
  434. package/dist/web-components-library/z-status-tag.entry.js +25 -0
  435. package/dist/web-components-library/z-stepper-item.entry.js +18 -0
  436. package/dist/web-components-library/z-stepper.entry.js +15 -0
  437. package/dist/web-components-library/z-table-body.entry.js +20 -0
  438. package/dist/web-components-library/z-table-cell.entry.js +32 -0
  439. package/dist/web-components-library/z-table-empty-box.entry.js +28 -0
  440. package/dist/web-components-library/z-table-expanded-row.entry.js +15 -0
  441. package/dist/web-components-library/z-table-footer.entry.js +19 -0
  442. package/dist/web-components-library/z-table-head.entry.js +19 -0
  443. package/dist/web-components-library/z-table-header-row.entry.js +18 -0
  444. package/dist/web-components-library/z-table-header.entry.js +81 -0
  445. package/dist/web-components-library/z-table-row.entry.js +39 -0
  446. package/dist/web-components-library/z-table-sticky-footer.entry.js +15 -0
  447. package/dist/web-components-library/z-table.entry.js +78 -0
  448. package/dist/web-components-library/z-tag.entry.js +18 -0
  449. package/dist/web-components-library/z-toast-notification-list.entry.js +52 -0
  450. package/dist/web-components-library/z-toast-notification.entry.js +199 -0
  451. package/dist/web-components-library/z-toggle-button.entry.js +32 -0
  452. package/dist/web-components-library/z-toggle-switch.entry.js +45 -0
  453. package/dist/web-components-library/z-tooltip-deprecated.entry.js +270 -0
  454. package/dist/web-components-library/z-tooltip.entry.js +27 -0
  455. package/dist/web-components-library/z-typography.entry.js +25 -0
  456. package/dist/web-components-library/z-user-dropdown.entry.js +91 -0
  457. package/dist/web-components-library/z-visually-hidden.entry.js +15 -0
  458. package/package.json +1 -2
  459. package/react/components.d.ts +0 -4
  460. package/react/components.js +3 -7
  461. package/react/components.js.map +1 -1
  462. package/readme.md +0 -8
  463. package/www/build/_commonjsHelpers-8fe71198.js +44 -0
  464. package/www/build/app-globals-0f993ce5.js +3 -0
  465. package/www/build/breakpoints-c386984e.js +4 -0
  466. package/www/build/css-shim-10e6e2ae.js +4 -0
  467. package/www/build/dom-7cd9cf71.js +73 -0
  468. package/www/build/hammer-782a2043.js +2649 -0
  469. package/www/build/icons-92a7dcde.js +511 -0
  470. package/www/build/index-3b53c63e.js +334 -0
  471. package/www/build/index-3ee81524.js +334 -0
  472. package/www/build/index-51f075dd.js +64 -0
  473. package/www/build/index-81176684.js +3057 -0
  474. package/www/build/index.esm.js +9 -1
  475. package/{dist/web-components-library/p-3ade68ff.entry.js → www/build/p-02ea7e49.entry.js} +1 -1
  476. package/www/build/{p-39dbb042.entry.js → p-0a0aee35.entry.js} +1 -1
  477. package/www/build/p-0d29d851.entry.js +1 -0
  478. package/www/build/{p-a73195b6.entry.js → p-0e256fdc.entry.js} +1 -1
  479. package/www/build/p-0e408871.entry.js +1 -0
  480. package/www/build/p-0ef6c549.entry.js +1 -0
  481. package/www/build/{p-afed0692.entry.js → p-0f17db30.entry.js} +1 -1
  482. package/www/build/{p-80f26a20.entry.js → p-1727c1c8.entry.js} +1 -1
  483. package/www/build/p-1f73a6d8.entry.js +1 -0
  484. package/www/build/p-20d62443.entry.js +1 -0
  485. package/www/build/{p-2ed37f62.entry.js → p-292bc0c4.entry.js} +1 -1
  486. package/www/build/{p-1c790896.entry.js → p-3c111c2a.entry.js} +1 -1
  487. package/{dist/web-components-library/p-9504d075.entry.js → www/build/p-3edbd35c.entry.js} +1 -1
  488. package/www/build/{p-ac52264c.entry.js → p-43329b81.entry.js} +1 -1
  489. package/{dist/web-components-library/p-96bf5b15.entry.js → www/build/p-4af112a7.entry.js} +1 -1
  490. package/www/build/{p-3d748f0d.entry.js → p-51cdabeb.entry.js} +1 -1
  491. package/www/build/{p-3700ad63.entry.js → p-55ddbfe9.entry.js} +1 -1
  492. package/www/build/p-562e2d52.entry.js +1 -0
  493. package/www/build/{p-07ae4f7d.entry.js → p-57d1acdc.entry.js} +1 -1
  494. package/www/build/{p-eddde828.entry.js → p-5be162d5.entry.js} +1 -1
  495. package/www/build/p-5eacbfc7.entry.js +1 -0
  496. package/www/build/p-6218514a.entry.js +1 -0
  497. package/www/build/{p-27666111.entry.js → p-63ccb013.entry.js} +1 -1
  498. package/{dist/web-components-library/p-ba76f52b.entry.js → www/build/p-69ef6ddc.entry.js} +1 -1
  499. package/www/build/{p-d4c5085b.entry.js → p-6c6b4e80.entry.js} +1 -1
  500. package/www/build/p-71accd8e.entry.js +1 -0
  501. package/www/build/p-7a92487a.js +1 -0
  502. package/www/build/{p-faeb0c6e.entry.js → p-7c6d4440.entry.js} +1 -1
  503. package/www/build/p-88b56b6e.css +1 -0
  504. package/www/build/{p-b621a765.entry.js → p-8fbc2ce9.entry.js} +1 -1
  505. package/www/build/{p-7e691a4e.entry.js → p-9074e1a5.entry.js} +1 -1
  506. package/www/build/p-99d7ab2f.entry.js +1 -0
  507. package/www/build/p-9a5ee6c2.entry.js +1 -0
  508. package/www/build/p-9f5d707a.js +1 -0
  509. package/www/build/{p-977c81d3.entry.js → p-9f9e4266.entry.js} +1 -1
  510. package/www/build/p-a8875b97.entry.js +16 -0
  511. package/www/build/{p-cb4a854e.entry.js → p-b15efba3.entry.js} +1 -1
  512. package/www/build/{p-5aa819f8.js → p-b9da171f.js} +1 -1
  513. package/www/build/{p-91cbf793.entry.js → p-ba29bc12.entry.js} +1 -1
  514. package/www/build/{p-766eb9cf.entry.js → p-bfe5693d.entry.js} +1 -1
  515. package/www/build/{p-215adfd1.entry.js → p-ccdebe3f.entry.js} +1 -1
  516. package/www/build/{p-e6fb8b76.entry.js → p-d33fea26.entry.js} +1 -1
  517. package/www/build/p-d39c0372.entry.js +1 -0
  518. package/{dist/web-components-library/p-e5eb1fa4.entry.js → www/build/p-d97a2db9.entry.js} +1 -1
  519. package/www/build/p-d995d9dc.entry.js +1 -0
  520. package/www/build/{p-846f16e8.entry.js → p-de25c7f0.entry.js} +1 -1
  521. package/{dist/web-components-library/p-818c073b.entry.js → www/build/p-df4e963b.entry.js} +1 -1
  522. package/www/build/{p-d5e67db8.entry.js → p-dffdf60a.entry.js} +1 -1
  523. package/{dist/web-components-library/p-878e62e2.entry.js → www/build/p-e2102da3.entry.js} +1 -1
  524. package/www/build/p-e2431b92.entry.js +1 -0
  525. package/www/build/{p-7f48b622.entry.js → p-edb8d2ab.entry.js} +1 -1
  526. package/www/build/{p-cb3663e6.entry.js → p-fe927bf4.entry.js} +1 -1
  527. package/www/build/shadow-css-38a1326b.js +388 -0
  528. package/www/build/utils-1e801ac0.js +2736 -0
  529. package/www/build/utils-43f2cad8.js +2736 -0
  530. package/www/build/utils-a3134cfb.js +109 -0
  531. package/www/build/utils-e5940345.js +109 -0
  532. package/www/build/web-components-library.css +812 -1
  533. package/www/build/web-components-library.esm.js +129 -1
  534. package/www/build/z-alert.entry.js +15 -0
  535. package/www/build/z-app-header.entry.js +127 -0
  536. package/www/build/z-app-switcher.entry.js +25 -0
  537. package/www/build/z-app-topbar.entry.js +37 -0
  538. package/www/build/z-aria-alert.entry.js +14 -0
  539. package/www/build/z-avatar.entry.js +39 -0
  540. package/www/build/z-body.entry.js +13 -0
  541. package/www/build/z-button-deprecated.entry.js +34 -0
  542. package/www/build/z-button-filter.entry.js +45 -0
  543. package/www/build/z-button-sort.entry.js +50 -0
  544. package/www/build/z-button.entry.js +38 -0
  545. package/www/build/z-candybar.entry.js +15 -0
  546. package/www/build/z-card.entry.js +65 -0
  547. package/www/build/z-carousel.entry.js +20 -0
  548. package/www/build/z-chip-deprecated.entry.js +20 -0
  549. package/www/build/z-chip.entry.js +33 -0
  550. package/www/build/z-combobox.entry.js +166 -0
  551. package/www/build/z-contextual-menu.entry.js +47 -0
  552. package/www/build/z-cookiebar.entry.js +38 -0
  553. package/www/build/z-date-picker.entry.js +484 -0
  554. package/www/build/z-divider.entry.js +22 -0
  555. package/www/build/z-dragdrop-area.entry.js +33 -0
  556. package/www/build/z-file-upload.entry.js +168 -0
  557. package/www/build/z-file.entry.js +44 -0
  558. package/www/build/z-footer-link.entry.js +15 -0
  559. package/www/build/z-footer-section.entry.js +19 -0
  560. package/www/build/z-footer-social.entry.js +15 -0
  561. package/www/build/z-footer.entry.js +103 -0
  562. package/www/build/z-ghost-loading.entry.js +15 -0
  563. package/www/build/z-heading.entry.js +13 -0
  564. package/www/build/z-icon-package.entry.js +19 -0
  565. package/www/build/z-icon.entry.js +24 -0
  566. package/www/build/z-info-box.entry.js +21 -0
  567. package/www/build/z-info-reveal.entry.js +60 -0
  568. package/www/build/z-input-deprecated.entry.js +267 -0
  569. package/www/build/z-input-label.entry.js +17 -0
  570. package/www/build/z-input-message.entry.js +20 -0
  571. package/www/build/z-input.entry.js +231 -0
  572. package/www/build/z-link.entry.js +67 -0
  573. package/www/build/z-list-element.entry.js +150 -0
  574. package/www/build/z-list-group.entry.js +50 -0
  575. package/www/build/z-list.entry.js +30 -0
  576. package/www/build/z-logo.entry.js +24 -0
  577. package/www/build/z-menu-dropdown.entry.js +56 -0
  578. package/www/build/z-menu-section.entry.js +42 -0
  579. package/www/build/z-menu.entry.js +106 -0
  580. package/www/build/z-messages-pocket.entry.js +42 -0
  581. package/www/build/z-modal-login.entry.js +78 -0
  582. package/www/build/z-modal.entry.js +32 -0
  583. package/www/build/z-myz-card-alert.entry.js +59 -0
  584. package/www/build/z-myz-card-body.entry.js +15 -0
  585. package/www/build/z-myz-card-cover.entry.js +18 -0
  586. package/www/build/z-myz-card-dictionary.entry.js +32 -0
  587. package/www/build/z-myz-card-footer-sections.entry.js +15 -0
  588. package/www/build/z-myz-card-footer.entry.js +52 -0
  589. package/www/build/z-myz-card-header.entry.js +35 -0
  590. package/www/build/z-myz-card-icon.entry.js +17 -0
  591. package/www/build/z-myz-card-info.entry.js +115 -0
  592. package/www/build/z-myz-card-list.entry.js +33 -0
  593. package/www/build/z-myz-card.entry.js +39 -0
  594. package/www/build/z-myz-list-item.entry.js +33 -0
  595. package/www/build/z-myz-list.entry.js +31 -0
  596. package/www/build/z-myz-topbar.entry.js +190 -0
  597. package/www/build/z-navigation-tab-link.entry.js +67 -0
  598. package/www/build/z-navigation-tab.entry.js +69 -0
  599. package/www/build/z-navigation-tabs.entry.js +122 -0
  600. package/www/build/z-notification.entry.js +42 -0
  601. package/www/build/z-offcanvas.entry.js +59 -0
  602. package/www/build/z-otp.entry.js +37 -0
  603. package/www/build/z-pagination-bar.entry.js +126 -0
  604. package/www/build/z-pagination-page.entry.js +21 -0
  605. package/www/build/z-pagination.entry.js +228 -0
  606. package/www/build/z-panel-elem.entry.js +26 -0
  607. package/www/build/z-pocket-body.entry.js +23 -0
  608. package/www/build/z-pocket-header.entry.js +36 -0
  609. package/www/build/z-pocket-message.entry.js +15 -0
  610. package/www/build/z-pocket.entry.js +68 -0
  611. package/www/build/z-popover-deprecated.entry.js +128 -0
  612. package/www/build/z-popover.entry.js +332 -0
  613. package/www/build/z-range-picker.entry.js +354 -0
  614. package/www/build/z-section-title.entry.js +38 -0
  615. package/www/build/z-select.entry.js +253 -0
  616. package/www/build/z-skip-to-content.entry.js +64 -0
  617. package/www/build/z-slideshow.entry.js +108 -0
  618. package/www/build/z-status-tag.entry.js +25 -0
  619. package/www/build/z-stepper-item.entry.js +18 -0
  620. package/www/build/z-stepper.entry.js +15 -0
  621. package/www/build/z-table-body.entry.js +20 -0
  622. package/www/build/z-table-cell.entry.js +32 -0
  623. package/www/build/z-table-empty-box.entry.js +28 -0
  624. package/www/build/z-table-expanded-row.entry.js +15 -0
  625. package/www/build/z-table-footer.entry.js +19 -0
  626. package/www/build/z-table-head.entry.js +19 -0
  627. package/www/build/z-table-header-row.entry.js +18 -0
  628. package/www/build/z-table-header.entry.js +81 -0
  629. package/www/build/z-table-row.entry.js +39 -0
  630. package/www/build/z-table-sticky-footer.entry.js +15 -0
  631. package/www/build/z-table.entry.js +78 -0
  632. package/www/build/z-tag.entry.js +18 -0
  633. package/www/build/z-toast-notification-list.entry.js +52 -0
  634. package/www/build/z-toast-notification.entry.js +199 -0
  635. package/www/build/z-toggle-button.entry.js +32 -0
  636. package/www/build/z-toggle-switch.entry.js +45 -0
  637. package/www/build/z-tooltip-deprecated.entry.js +270 -0
  638. package/www/build/z-tooltip.entry.js +27 -0
  639. package/www/build/z-typography.entry.js +25 -0
  640. package/www/build/z-user-dropdown.entry.js +91 -0
  641. package/www/build/z-visually-hidden.entry.js +15 -0
  642. package/www/index.html +11 -2
  643. package/www/pages/file-upload.html +54 -97
  644. package/dist/web-components-library/p-0146081c.entry.js +0 -16
  645. package/dist/web-components-library/p-040ea013.entry.js +0 -1
  646. package/dist/web-components-library/p-0c3e7bc3.js +0 -1
  647. package/dist/web-components-library/p-0f6229b2.entry.js +0 -1
  648. package/dist/web-components-library/p-1356eb90.entry.js +0 -1
  649. package/dist/web-components-library/p-1d4545e8.entry.js +0 -1
  650. package/dist/web-components-library/p-223566d6.entry.js +0 -1
  651. package/dist/web-components-library/p-35573e0e.entry.js +0 -1
  652. package/dist/web-components-library/p-3a991f9c.entry.js +0 -1
  653. package/dist/web-components-library/p-47a55354.entry.js +0 -1
  654. package/dist/web-components-library/p-4965b6db.entry.js +0 -1
  655. package/dist/web-components-library/p-5789bbe7.entry.js +0 -1
  656. package/dist/web-components-library/p-5e3b8207.entry.js +0 -1
  657. package/dist/web-components-library/p-79408b00.entry.js +0 -1
  658. package/dist/web-components-library/p-7a5ecafb.js +0 -1
  659. package/dist/web-components-library/p-8712d63f.entry.js +0 -1
  660. package/dist/web-components-library/p-8cf3798f.entry.js +0 -1
  661. package/dist/web-components-library/p-96ed1e2f.entry.js +0 -1
  662. package/dist/web-components-library/p-97d62d2a.entry.js +0 -1
  663. package/dist/web-components-library/p-aba00527.entry.js +0 -1
  664. package/dist/web-components-library/p-b369bf2f.entry.js +0 -1
  665. package/dist/web-components-library/p-e4a2811a.entry.js +0 -1
  666. package/dist/web-components-library/p-e82cee27.entry.js +0 -1
  667. package/dist/web-components-library/p-f5f15b8e.entry.js +0 -1
  668. package/www/build/p-0146081c.entry.js +0 -16
  669. package/www/build/p-040ea013.entry.js +0 -1
  670. package/www/build/p-0c3e7bc3.js +0 -1
  671. package/www/build/p-0f6229b2.entry.js +0 -1
  672. package/www/build/p-1356eb90.entry.js +0 -1
  673. package/www/build/p-1d4545e8.entry.js +0 -1
  674. package/www/build/p-223566d6.entry.js +0 -1
  675. package/www/build/p-3224e0d3.js +0 -129
  676. package/www/build/p-35573e0e.entry.js +0 -1
  677. package/www/build/p-3a991f9c.entry.js +0 -1
  678. package/www/build/p-47a55354.entry.js +0 -1
  679. package/www/build/p-4965b6db.entry.js +0 -1
  680. package/www/build/p-5789bbe7.entry.js +0 -1
  681. package/www/build/p-5e3b8207.entry.js +0 -1
  682. package/www/build/p-79408b00.entry.js +0 -1
  683. package/www/build/p-7a5ecafb.js +0 -1
  684. package/www/build/p-8712d63f.entry.js +0 -1
  685. package/www/build/p-8cf3798f.entry.js +0 -1
  686. package/www/build/p-96ed1e2f.entry.js +0 -1
  687. package/www/build/p-97d62d2a.entry.js +0 -1
  688. package/www/build/p-9ec1421c.css +0 -816
  689. package/www/build/p-aba00527.entry.js +0 -1
  690. package/www/build/p-b369bf2f.entry.js +0 -1
  691. package/www/build/p-e4a2811a.entry.js +0 -1
  692. package/www/build/p-e82cee27.entry.js +0 -1
  693. package/www/build/p-f5f15b8e.entry.js +0 -1
@@ -0,0 +1,267 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-81176684.js';
2
+ import { I as InputTypeEnum } from './index-3ee81524.js';
3
+ import { r as randomId } from './utils-a3134cfb.js';
4
+ import './breakpoints-c386984e.js';
5
+
6
+ const stylesCss = ".sc-z-input-deprecated-h{display:inline-block;width:inherit}input.sc-z-input-deprecated::-ms-clear,input.sc-z-input-deprecated::-ms-reveal{display:none}.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-clear,.sc-z-input-deprecated-h input.sc-z-input-deprecated::-ms-reveal{display:none}input.sc-z-input-deprecated,textarea.sc-z-input-deprecated,.textareaWrapper.sc-z-input-deprecated,ul[role=\"listbox\"].sc-z-input-deprecated{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input-deprecated:focus:focus-visible,li[role=\"option\"].sc-z-input-deprecated:focus:focus-visible,.focus.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input-deprecated{border-color:var(--color-surface05)}.input_success.sc-z-input-deprecated,.input_success.sc-z-input-deprecated:hover,.input_success.hover.sc-z-input-deprecated{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input-deprecated,.input_error.sc-z-input-deprecated:hover,.input_error.hover.sc-z-input-deprecated{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input-deprecated,.input_warning.sc-z-input-deprecated:hover,.input_warning.hover.sc-z-input-deprecated{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input[readonly].sc-z-input-deprecated,.readonly.sc-z-input-deprecated{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input-deprecated:disabled,.disabled.sc-z-input-deprecated,.filled.sc-z-input-deprecated:disabled{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}input.sc-z-input-deprecated::placeholder,textarea.sc-z-input-deprecated::placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-webkit-input-placeholder,.sc-z-input-deprecated::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-ms-input-placeholder,.sc-z-input-deprecated:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input-deprecated::-moz-placeholder{color:var(--color-text05)}.sc-z-input-deprecated:-moz-placeholder{color:var(--color-text05)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{fill:var(--color-icon02)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasIcon.sc-z-input-deprecated,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasClearIcon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 4)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.hasIcon.hasClearIcon.sc-z-input-deprecated{padding-right:calc(var(--space-unit) * 7)}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated{position:relative;z-index:1}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);display:flex;z-index:2}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.resetIcon.sc-z-input-deprecated,.textWrapper.sc-z-input-deprecated .iconsWrapper.sc-z-input-deprecated>z-icon.showHidePasswordIcon.sc-z-input-deprecated{cursor:pointer}.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:hover,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:focus,.textWrapper.sc-z-input-deprecated>div.sc-z-input-deprecated>input.sc-z-input-deprecated:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input-deprecated{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input-deprecated::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input-deprecated{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input-deprecated:hover,.checkboxWrapper.sc-z-input-deprecated:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input-deprecated .radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.sc-z-input-deprecated{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated input.sc-z-input-deprecated:not(:disabled)+.checkboxLabel.sc-z-input-deprecated{cursor:pointer}.radioWrapper.sc-z-input-deprecated .radioLabel.sc-z-input-deprecated z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.sc-z-input-deprecated z-icon.sc-z-input-deprecated{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input-deprecated .radioLabel.after.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.after.sc-z-input-deprecated{flex-direction:row}.radioWrapper.sc-z-input-deprecated .radioLabel.before.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.before.sc-z-input-deprecated{flex-direction:row-reverse}.radioWrapper.sc-z-input-deprecated .radioLabel.after.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.after.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-left:var(--space-unit)}.radioWrapper.sc-z-input-deprecated .radioLabel.before.sc-z-input-deprecated>span.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated .checkboxLabel.before.sc-z-input-deprecated>span.sc-z-input-deprecated{margin-right:var(--space-unit)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.radioLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:focus:focus-visible+.checkboxLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radioLabel.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkboxLabel.sc-z-input-deprecated{color:var(--color-disabled02)}.radioWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.radioLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated,.checkboxWrapper.sc-z-input-deprecated>input.sc-z-input-deprecated:disabled+.checkboxLabel.sc-z-input-deprecated>z-icon.sc-z-input-deprecated{fill:var(--color-disabled01);cursor:default}";
7
+
8
+ const ZInputDeprecated = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.inputChange = createEvent(this, "inputChange", 7);
12
+ this.startTyping = createEvent(this, "startTyping", 7);
13
+ this.stopTyping = createEvent(this, "stopTyping", 7);
14
+ this.inputCheck = createEvent(this, "inputCheck", 7);
15
+ this.optionSelect = createEvent(this, "optionSelect", 7);
16
+ /** the id of the input element */
17
+ this.htmlid = `id-${randomId()}`;
18
+ /** the input is disabled */
19
+ this.disabled = false;
20
+ /** the input is readonly */
21
+ this.readonly = false;
22
+ /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
23
+ this.required = false;
24
+ /** checked: available for checkbox, radio */
25
+ this.checked = false;
26
+ /** show input helper message (optional): available for text, password, number, email, textarea, select */
27
+ this.hasmessage = true;
28
+ /** the input label position: available for checkbox, radio */
29
+ this.labelafter = true;
30
+ /** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
31
+ this.typingtimeout = 300;
32
+ /** multiple options can be selected (optional): available for select */
33
+ this.multiple = false;
34
+ /** render clear icon when typing (optional): available for text */
35
+ this.hasclearicon = true;
36
+ this.isTyping = false;
37
+ this.textareaWrapperHover = "";
38
+ this.textareaWrapperFocus = "";
39
+ this.passwordHidden = true;
40
+ }
41
+ inputCheckListener(e) {
42
+ const data = e.detail;
43
+ switch (this.type) {
44
+ case InputTypeEnum.radio:
45
+ if (data.type === InputTypeEnum.radio &&
46
+ data.name === this.name &&
47
+ data.id !== this.htmlid) {
48
+ this.checked = false;
49
+ }
50
+ default:
51
+ return;
52
+ }
53
+ }
54
+ /** get the input value */
55
+ async getValue() {
56
+ switch (this.type) {
57
+ // @ts-ignore
58
+ case "select":
59
+ return this.selectElem.getValue();
60
+ default:
61
+ return this.value;
62
+ }
63
+ }
64
+ /** set the input value */
65
+ async setValue(value) {
66
+ switch (this.type) {
67
+ // @ts-ignore
68
+ case "select":
69
+ this.selectElem.setValue(value);
70
+ break;
71
+ default:
72
+ if (typeof value === "string")
73
+ this.value = value;
74
+ break;
75
+ }
76
+ }
77
+ /** get checked status */
78
+ async isChecked() {
79
+ switch (this.type) {
80
+ case InputTypeEnum.checkbox:
81
+ case InputTypeEnum.radio:
82
+ return this.checked;
83
+ default:
84
+ return false;
85
+ }
86
+ }
87
+ emitInputChange(value, keycode) {
88
+ if (!this.isTyping) {
89
+ this.emitStartTyping();
90
+ }
91
+ let validity = {};
92
+ if (this.type === InputTypeEnum.textarea) {
93
+ validity = this.getValidity("textarea");
94
+ }
95
+ else {
96
+ validity = this.getValidity("input");
97
+ }
98
+ this.value = value;
99
+ this.inputChange.emit({ value, keycode, validity });
100
+ clearTimeout(this.timer);
101
+ this.timer = setTimeout(() => {
102
+ this.emitStopTyping(this.value, validity);
103
+ }, this.typingtimeout);
104
+ }
105
+ emitStartTyping() {
106
+ this.isTyping = true;
107
+ this.startTyping.emit();
108
+ }
109
+ emitStopTyping(value, validity) {
110
+ this.isTyping = false;
111
+ this.stopTyping.emit({
112
+ value: value,
113
+ validity: validity,
114
+ });
115
+ }
116
+ emitInputCheck(checked) {
117
+ this.inputCheck.emit({
118
+ id: this.htmlid,
119
+ checked: checked,
120
+ type: this.type,
121
+ name: this.name,
122
+ value: this.value,
123
+ validity: this.getValidity("input"),
124
+ });
125
+ }
126
+ getValidity(type) {
127
+ const input = this.hostElement.querySelector(type);
128
+ return input.validity;
129
+ }
130
+ /* START text/password/email/number */
131
+ getTextAttributes() {
132
+ const attr = {
133
+ id: this.htmlid,
134
+ name: this.name,
135
+ placeholder: this.placeholder,
136
+ value: this.value,
137
+ disabled: this.disabled,
138
+ readonly: this.readonly,
139
+ required: this.required,
140
+ title: this.htmltitle,
141
+ class: [
142
+ `input_${this.status || "default"}`,
143
+ this.isTyping && "istyping",
144
+ !this.isTyping && this.value && "filled",
145
+ ]
146
+ .filter(Boolean)
147
+ .join(" "),
148
+ onInput: (e) => this.emitInputChange(e.target.value, e.keyCode),
149
+ };
150
+ if (this.autocomplete) {
151
+ attr["autocomplete"] = this.autocomplete;
152
+ }
153
+ return attr;
154
+ }
155
+ renderInputText(type = InputTypeEnum.text) {
156
+ const attr = this.getTextAttributes();
157
+ if (this.icon || type === InputTypeEnum.password) {
158
+ attr.class += " hasIcon";
159
+ }
160
+ if (this.hasclearicon) {
161
+ attr.class += " hasClearIcon";
162
+ }
163
+ return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputTypeEnum.password && !this.passwordHidden
164
+ ? InputTypeEnum.text
165
+ : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
166
+ }
167
+ renderLabel() {
168
+ if (!this.label)
169
+ return;
170
+ return (h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_label` }));
171
+ }
172
+ renderIcons() {
173
+ return (h("span", { class: {
174
+ iconsWrapper: true,
175
+ disabled: this.disabled,
176
+ } }, this.renderResetIcon(), this.renderIcon()));
177
+ }
178
+ renderIcon() {
179
+ if (this.type === InputTypeEnum.password) {
180
+ return this.renderShowHidePassword();
181
+ }
182
+ if (!this.icon)
183
+ return;
184
+ return h("z-icon", { class: "inputIcon", name: this.icon });
185
+ }
186
+ renderResetIcon() {
187
+ if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
188
+ return;
189
+ return (h("z-icon", { class: "resetIcon", name: "multiply", onClick: (e) => this.emitInputChange("", e.keyCode) }));
190
+ }
191
+ renderShowHidePassword() {
192
+ return (h("z-icon", { class: "showHidePasswordIcon", name: this.passwordHidden ? "view-filled" : "view-off-filled", onClick: () => (this.passwordHidden = !this.passwordHidden) }));
193
+ }
194
+ renderMessage() {
195
+ if (!this.hasmessage)
196
+ return;
197
+ return h("z-input-message", { message: this.message, status: this.status });
198
+ }
199
+ /* END text/password/email/number */
200
+ /* START textarea */
201
+ renderTextarea() {
202
+ const attributes = this.getTextAttributes();
203
+ return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", { class: [
204
+ "textareaWrapper",
205
+ attributes.class,
206
+ attributes.disabled && "disabled",
207
+ attributes.readonly && "readonly",
208
+ this.isTyping && "istyping",
209
+ this.textareaWrapperFocus,
210
+ this.textareaWrapperHover,
211
+ ]
212
+ .filter(Boolean)
213
+ .join(" ") }, h("textarea", Object.assign({}, attributes, { onFocus: () => (this.textareaWrapperFocus = "focus"), onBlur: () => (this.textareaWrapperFocus = ""), onMouseOver: () => (this.textareaWrapperHover = "hover"), onMouseOut: () => (this.textareaWrapperHover = ""), "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
214
+ }
215
+ /* END textarea */
216
+ handleCheck(ev) {
217
+ this.checked = ev.target.checked;
218
+ this.emitInputCheck(this.checked);
219
+ }
220
+ /* START checkbox */
221
+ renderCheckbox() {
222
+ return (h("div", { class: "checkboxWrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
223
+ checkboxLabel: true,
224
+ after: this.labelafter,
225
+ before: !this.labelafter,
226
+ } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
227
+ }
228
+ /* END checkbox */
229
+ /* START radio */
230
+ renderRadio() {
231
+ return (h("div", { class: "radioWrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
232
+ radioLabel: true,
233
+ after: this.labelafter,
234
+ before: !this.labelafter,
235
+ } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
236
+ }
237
+ /* END radio */
238
+ /* START select */
239
+ renderSelect() {
240
+ return (h("z-select", { htmlid: this.htmlid, items: this.items, name: this.name, label: this.label, "aria-label": this.ariaLabel, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, htmltitle: this.htmltitle, status: this.status, message: !this.hasmessage ? false : this.message, autocomplete: this.autocomplete, ref: (el) => (this.selectElem = el) }));
241
+ }
242
+ /* END select */
243
+ render() {
244
+ switch (this.type) {
245
+ case InputTypeEnum.text:
246
+ case InputTypeEnum.password:
247
+ case InputTypeEnum.number:
248
+ case InputTypeEnum.email:
249
+ return this.renderInputText(this.type);
250
+ case InputTypeEnum.textarea:
251
+ return this.renderTextarea();
252
+ case InputTypeEnum.checkbox:
253
+ return this.renderCheckbox();
254
+ case InputTypeEnum.radio:
255
+ return this.renderRadio();
256
+ // @ts-ignore
257
+ case "select":
258
+ return this.renderSelect();
259
+ default:
260
+ return this.renderInputText();
261
+ }
262
+ }
263
+ get hostElement() { return getElement(this); }
264
+ };
265
+ ZInputDeprecated.style = stylesCss;
266
+
267
+ export { ZInputDeprecated as z_input_deprecated };
@@ -0,0 +1,17 @@
1
+ import { r as registerInstance, h } from './index-81176684.js';
2
+
3
+ const stylesCss = "label{display:block;margin:var(--space-unit) 0;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);line-height:1.33;letter-spacing:0.32px;text-transform:uppercase;text-align:left}label.disabled{color:var(--color-disabled02)}";
4
+
5
+ const ZInputLabel = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /** the label is disabled */
9
+ this.disabled = false;
10
+ }
11
+ render() {
12
+ return h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value);
13
+ }
14
+ };
15
+ ZInputLabel.style = stylesCss;
16
+
17
+ export { ZInputLabel as z_input_label };
@@ -0,0 +1,20 @@
1
+ import { r as registerInstance, h, f as Host } from './index-81176684.js';
2
+
3
+ const stylesCss = ":host{display:flex;align-items:start;min-height:calc(var(--space-unit) * 2);margin-top:var(--space-unit);color:var(--color-text05);fill:currentColor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status='success']){color:var(--color-text-success)}:host([status='error']){color:var(--color-text-error)}:host([status='warning']){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:calc(var(--space-unit) / 3) var(--space-unit) 0 0}";
4
+
5
+ const ZInputMessage = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.statusIcons = {
9
+ success: "checkmark-circle",
10
+ error: "multiply-circled",
11
+ warning: "exclamation-circle",
12
+ };
13
+ }
14
+ render() {
15
+ return (h(Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (h("z-icon", { name: this.statusIcons[this.status] })), h("span", { innerHTML: this.message })));
16
+ }
17
+ };
18
+ ZInputMessage.style = stylesCss;
19
+
20
+ export { ZInputMessage as z_input_message };
@@ -0,0 +1,231 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-81176684.js';
2
+ import { n as LabelPositions, I as InputTypeEnum } from './index-3ee81524.js';
3
+ import { r as randomId, e as boolean } from './utils-a3134cfb.js';
4
+ import './breakpoints-c386984e.js';
5
+
6
+ const stylesCss = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textareaWrapper.sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,.textareaWrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-primary01)}.filled.sc-z-input{border-color:var(--color-surface05)}.input_success.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input.sc-z-input:hover,.textareaWrapper.sc-z-input:hover{border-width:var(--border-size-medium)}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textareaWrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}label.inputLabel.sc-z-input{display:block;margin-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-transform:uppercase;text-align:left}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.inputLabel.sc-z-input{color:var(--color-disabled02)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;right:calc(var(--space-unit) * 1.5);top:50%;transform:translateY(-50%);display:flex;z-index:2;pointer-events:none}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input{background:none;color:inherit;border:0;padding:0;font:inherit;pointer-events:initial}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input+button.iconButton.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
7
+
8
+ const ZInput = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.inputChange = createEvent(this, "inputChange", 7);
12
+ this.startTyping = createEvent(this, "startTyping", 7);
13
+ this.stopTyping = createEvent(this, "stopTyping", 7);
14
+ this.inputCheck = createEvent(this, "inputCheck", 7);
15
+ /** the id of the input element */
16
+ this.htmlid = `id-${randomId()}`;
17
+ /** the input is disabled */
18
+ this.disabled = false;
19
+ /** the input is readonly */
20
+ this.readonly = false;
21
+ /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
22
+ this.required = false;
23
+ /** checked: available for checkbox, radio */
24
+ this.checked = false;
25
+ /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
26
+ this.message = true;
27
+ /** the input label position: available for checkbox, radio */
28
+ this.labelPosition = LabelPositions.right;
29
+ /** render clear icon when typing (optional): available for text */
30
+ this.hasclearicon = true;
31
+ this.isTyping = false;
32
+ this.passwordHidden = true;
33
+ this.typingtimeout = 300;
34
+ }
35
+ inputCheckListener(e) {
36
+ const data = e.detail;
37
+ switch (this.type) {
38
+ case InputTypeEnum.radio:
39
+ if (data.type === InputTypeEnum.radio &&
40
+ data.name === this.name &&
41
+ data.id !== this.htmlid) {
42
+ this.checked = false;
43
+ }
44
+ default:
45
+ return;
46
+ }
47
+ }
48
+ /** get checked status */
49
+ async isChecked() {
50
+ switch (this.type) {
51
+ case InputTypeEnum.checkbox:
52
+ case InputTypeEnum.radio:
53
+ return this.checked;
54
+ default:
55
+ console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
56
+ return false;
57
+ }
58
+ }
59
+ emitInputChange(value) {
60
+ if (!this.isTyping)
61
+ this.emitStartTyping();
62
+ let validity = {};
63
+ if (this.type === InputTypeEnum.textarea) {
64
+ validity = this.getValidity("textarea");
65
+ }
66
+ else {
67
+ validity = this.getValidity("input");
68
+ }
69
+ this.value = value;
70
+ this.inputChange.emit({ value, validity });
71
+ clearTimeout(this.timer);
72
+ this.timer = setTimeout(() => {
73
+ this.emitStopTyping(this.value, validity);
74
+ }, this.typingtimeout);
75
+ }
76
+ emitStartTyping() {
77
+ this.isTyping = true;
78
+ this.startTyping.emit();
79
+ }
80
+ emitStopTyping(value, validity) {
81
+ this.isTyping = false;
82
+ this.stopTyping.emit({
83
+ value: value,
84
+ validity: validity,
85
+ });
86
+ }
87
+ emitInputCheck(checked) {
88
+ this.inputCheck.emit({
89
+ id: this.htmlid,
90
+ checked: checked,
91
+ type: this.type,
92
+ name: this.name,
93
+ value: this.value,
94
+ validity: this.getValidity("input"),
95
+ });
96
+ }
97
+ getValidity(type) {
98
+ const input = this.hostElement.querySelector(type);
99
+ return input.validity;
100
+ }
101
+ /* START text/password/email/number */
102
+ getTextAttributes() {
103
+ return {
104
+ id: this.htmlid,
105
+ name: this.name,
106
+ placeholder: this.placeholder,
107
+ value: this.value,
108
+ disabled: this.disabled,
109
+ readonly: this.readonly,
110
+ required: this.required,
111
+ title: this.htmltitle,
112
+ class: {
113
+ [`input_${this.status || "default"}`]: true,
114
+ filled: !!this.value,
115
+ },
116
+ autocomplete: this.autocomplete,
117
+ onInput: (e) => this.emitInputChange(e.target.value),
118
+ };
119
+ }
120
+ getNumberAttributes(type) {
121
+ if (type != InputTypeEnum.number)
122
+ return;
123
+ return {
124
+ min: this.min,
125
+ max: this.max,
126
+ step: this.step,
127
+ };
128
+ }
129
+ getPatternAttribute(type) {
130
+ if (type != InputTypeEnum.password &&
131
+ type != InputTypeEnum.text &&
132
+ type != InputTypeEnum.tel &&
133
+ type != InputTypeEnum.search &&
134
+ type != InputTypeEnum.url &&
135
+ type != InputTypeEnum.email)
136
+ return;
137
+ return {
138
+ pattern: this.pattern,
139
+ };
140
+ }
141
+ renderInputText(type = InputTypeEnum.text) {
142
+ const attr = Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type));
143
+ if (this.icon || type === InputTypeEnum.password) {
144
+ attr.class = Object.assign(Object.assign({}, attr.class), { hasIcon: true });
145
+ }
146
+ if (this.hasclearicon && type != InputTypeEnum.number) {
147
+ attr.class = Object.assign(Object.assign({}, attr.class), { hasClearIcon: true });
148
+ }
149
+ return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputTypeEnum.password && !this.passwordHidden
150
+ ? InputTypeEnum.text
151
+ : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
152
+ }
153
+ renderLabel() {
154
+ if (!this.label)
155
+ return;
156
+ return (h("label", { class: "inputLabel body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
157
+ }
158
+ renderIcons() {
159
+ return (h("span", { class: "iconsWrapper" }, this.renderResetIcon(), this.renderIcon()));
160
+ }
161
+ renderIcon() {
162
+ if (this.type === InputTypeEnum.password) {
163
+ return this.renderShowHidePassword();
164
+ }
165
+ if (!this.icon)
166
+ return;
167
+ return (h("button", { type: "button", class: "iconButton inputIcon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
168
+ }
169
+ renderResetIcon() {
170
+ if (!this.hasclearicon ||
171
+ !this.value ||
172
+ this.disabled ||
173
+ this.readonly ||
174
+ this.type == InputTypeEnum.number)
175
+ return;
176
+ return (h("button", { type: "button", class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
177
+ }
178
+ renderShowHidePassword() {
179
+ return (h("button", { type: "button", class: "iconButton showHidePasswordIcon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
180
+ }
181
+ renderMessage() {
182
+ if (boolean(this.message) === false)
183
+ return;
184
+ return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
185
+ }
186
+ /* END text/password/email/number */
187
+ /* START textarea */
188
+ renderTextarea() {
189
+ const attributes = this.getTextAttributes();
190
+ return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { textareaWrapper: true, readonly: attributes.readonly }) }, h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
191
+ }
192
+ /* END textarea */
193
+ handleCheck(ev) {
194
+ this.checked = ev.target.checked;
195
+ this.emitInputCheck(this.checked);
196
+ }
197
+ /* START checkbox */
198
+ renderCheckbox() {
199
+ return (h("div", { class: "checkboxWrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
200
+ checkboxLabel: true,
201
+ after: this.labelPosition === LabelPositions.right,
202
+ before: this.labelPosition === LabelPositions.left,
203
+ } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
204
+ }
205
+ /* END checkbox */
206
+ /* START radio */
207
+ renderRadio() {
208
+ return (h("div", { class: "radioWrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
209
+ radioLabel: true,
210
+ after: this.labelPosition === LabelPositions.right,
211
+ before: this.labelPosition === LabelPositions.left,
212
+ } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
213
+ }
214
+ /* END radio */
215
+ render() {
216
+ switch (this.type) {
217
+ case InputTypeEnum.textarea:
218
+ return this.renderTextarea();
219
+ case InputTypeEnum.checkbox:
220
+ return this.renderCheckbox();
221
+ case InputTypeEnum.radio:
222
+ return this.renderRadio();
223
+ default:
224
+ return this.renderInputText(this.type);
225
+ }
226
+ }
227
+ get hostElement() { return getElement(this); }
228
+ };
229
+ ZInput.style = stylesCss;
230
+
231
+ export { ZInput as z_input };
@@ -0,0 +1,67 @@
1
+ import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-81176684.js';
2
+
3
+ const stylesCss = ":host{--font-size-link:inherit;--font-weight-link:inherit}:host{font-family:var(--dashboard-font);font-weight:var(--font-weight-link);font-size:var(--font-size-link);line-height:inherit;outline:none}a{cursor:pointer;color:var(--color-link-primary);fill:var(--color-link-primary);display:inline-flex;align-items:center;text-decoration:none;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{cursor:default;pointer-events:none;color:var(--color-disabled03);fill:var(--color-disabled03)}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:8px}a>z-icon:last-child{margin-left:8px}";
4
+
5
+ const ZLink = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.zLinkClick = createEvent(this, "zLinkClick", 7);
9
+ /** link target (optional) */
10
+ this.target = "_self";
11
+ /** tabindex link attribute (optional) */
12
+ this.htmltabindex = 0;
13
+ /** disable link flag (optional) */
14
+ this.isdisabled = false;
15
+ /** active link flag (optional) */
16
+ this.isactive = false;
17
+ /** white variant flag (optional) */
18
+ this.iswhite = false;
19
+ /** link text variant (optional) */
20
+ this.textcolor = "primary";
21
+ /** big link version */
22
+ this.big = false;
23
+ /** link icon position (optional) */
24
+ this.iconposition = "left";
25
+ /** draw underline on text (optional) */
26
+ this.underline = false;
27
+ this.iconSize = 18;
28
+ this.emitZLinkClick = this.emitZLinkClick.bind(this);
29
+ this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
30
+ }
31
+ componentWillRender() {
32
+ if (this.iswhite) {
33
+ console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
34
+ }
35
+ if (this.big) {
36
+ console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
37
+ }
38
+ }
39
+ emitZLinkClick(e, linkId) {
40
+ this.emitZLinkInteraction(e, linkId);
41
+ }
42
+ emitZLinkInteraction(e, linkId) {
43
+ this.zLinkClick.emit({ e, linkId });
44
+ }
45
+ componentDidRender() {
46
+ if (this.icon) {
47
+ const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
48
+ const currentSize = this.big ? 18 : Math.round(height * 1.125);
49
+ if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
50
+ this.iconSize = currentSize;
51
+ }
52
+ }
53
+ }
54
+ render() {
55
+ const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
56
+ return (h(Host, { style: style }, h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
57
+ ${this.isactive ? "active" : ""}
58
+ ${this.textcolor}
59
+ ${this.iswhite ? "white" : ""}
60
+ ${this.underline ? "underline" : ""}`, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon &&
61
+ h("z-icon", { style: { "--z-icon-width": this.iconSize.toString(), "--z-icon-height": this.iconSize.toString() }, name: this.icon, height: this.iconSize, width: this.iconSize }), this.iconposition === "left" && h("slot", null))));
62
+ }
63
+ get hostElement() { return getElement(this); }
64
+ };
65
+ ZLink.style = stylesCss;
66
+
67
+ export { ZLink as z_link };