@zanichelli/albe-web-components 19.5.0 → 19.6.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 (410) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/web-components-library.cjs.js +1 -1
  4. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  6. package/dist/cjs/z-app-header_12.cjs.entry.js +24 -21
  7. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  8. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  10. package/dist/cjs/z-book-cover.cjs.entry.js +2 -1
  11. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -1
  12. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  13. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  14. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
  16. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  17. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  18. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +6 -6
  19. package/dist/cjs/z-file.cjs.entry.js +1 -1
  20. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  21. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  22. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  23. package/dist/cjs/z-input-range.cjs.entry.js +1 -1
  24. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  25. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  26. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  27. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  28. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  29. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  30. package/dist/cjs/z-result-card.cjs.entry.js +1 -1
  31. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/z-select.cjs.entry.js +4 -2
  33. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  34. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  35. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  36. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  37. package/dist/cjs/z-table.cjs.entry.js +1 -1
  38. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  39. package/dist/cjs/z-td.cjs.entry.js +1 -1
  40. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  41. package/dist/cjs/z-th.cjs.entry.js +1 -1
  42. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  43. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  44. package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
  45. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  46. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -1
  47. package/dist/cjs/z-tr.cjs.entry.js +1 -1
  48. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  49. package/dist/collection/collection-manifest.json +1 -1
  50. package/dist/collection/components/{z-toggle-button → deprecated/z-toggle-button}/index.js +2 -2
  51. package/dist/collection/components/deprecated/z-toggle-button/index.js.map +1 -0
  52. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  53. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  54. package/dist/collection/components/list/z-list/index.js +1 -1
  55. package/dist/collection/components/list/z-list-element/index.js +1 -1
  56. package/dist/collection/components/list/z-list-group/index.js +2 -2
  57. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  58. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  59. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  60. package/dist/collection/components/table/z-table/index.js +1 -1
  61. package/dist/collection/components/table/z-tbody/index.js +1 -1
  62. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  63. package/dist/collection/components/table/z-thead/index.js +1 -1
  64. package/dist/collection/components/table/z-tr/index.js +1 -1
  65. package/dist/collection/components/z-accordion/index.js +1 -1
  66. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  67. package/dist/collection/components/z-app-header/index.js +1 -1
  68. package/dist/collection/components/z-aria-alert/index.js +1 -1
  69. package/dist/collection/components/z-avatar/index.js +2 -2
  70. package/dist/collection/components/z-book-cover/index.js +21 -1
  71. package/dist/collection/components/z-book-cover/index.js.map +1 -1
  72. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  73. package/dist/collection/components/z-button-sort/index.js +1 -1
  74. package/dist/collection/components/z-chip/index.js +2 -2
  75. package/dist/collection/components/z-color-picker/index.js +1 -1
  76. package/dist/collection/components/z-combobox/index.js +1 -1
  77. package/dist/collection/components/z-cover-hero/index.js +2 -2
  78. package/dist/collection/components/z-divider/index.js +1 -1
  79. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  80. package/dist/collection/components/z-icon/index.js +1 -1
  81. package/dist/collection/components/z-info-box/index.js +1 -1
  82. package/dist/collection/components/z-info-reveal/index.js +1 -1
  83. package/dist/collection/components/z-input/index.js +8 -5
  84. package/dist/collection/components/z-input/index.js.map +1 -1
  85. package/dist/collection/components/z-input-message/index.js +1 -1
  86. package/dist/collection/components/z-input-message/index.js.map +1 -1
  87. package/dist/collection/components/z-input-range/index.js +1 -1
  88. package/dist/collection/components/z-logo/index.js +1 -1
  89. package/dist/collection/components/z-menu-section/index.js +1 -1
  90. package/dist/collection/components/z-modal/index.js +4 -4
  91. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  92. package/dist/collection/components/z-notification/index.js +1 -1
  93. package/dist/collection/components/z-offcanvas/index.js +2 -2
  94. package/dist/collection/components/z-panel-elem/index.js +2 -2
  95. package/dist/collection/components/z-popover/index.js +1 -1
  96. package/dist/collection/components/z-result-card/index.js +20 -1
  97. package/dist/collection/components/z-result-card/index.js.map +1 -1
  98. package/dist/collection/components/z-searchbar/index.js +3 -3
  99. package/dist/collection/components/z-searchbar/styles.css +1 -0
  100. package/dist/collection/components/z-select/index.js +24 -2
  101. package/dist/collection/components/z-select/index.js.map +1 -1
  102. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  103. package/dist/collection/components/z-stepper/index.js +1 -1
  104. package/dist/collection/components/z-stepper-item/index.js +1 -1
  105. package/dist/collection/components/z-tag/index.js +2 -2
  106. package/dist/collection/components/z-toast-notification/index.js +3 -3
  107. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  108. package/dist/components/index.d.ts +1 -1
  109. package/dist/components/index10.js +1 -1
  110. package/dist/components/index11.js +1 -1
  111. package/dist/components/index12.js +1 -1
  112. package/dist/components/index13.js +1 -1
  113. package/dist/components/index13.js.map +1 -1
  114. package/dist/components/index14.js +1 -1
  115. package/dist/components/index15.js +1 -1
  116. package/dist/components/index15.js.map +1 -1
  117. package/dist/components/index16.js +1 -1
  118. package/dist/components/index17.js +1 -1
  119. package/dist/components/index18.js +1 -1
  120. package/dist/components/index19.js +1 -1
  121. package/dist/components/index20.js +1 -1
  122. package/dist/components/index21.js +1 -1
  123. package/dist/components/index3.js +1 -1
  124. package/dist/components/index6.js +1 -1
  125. package/dist/components/index7.js +1 -1
  126. package/dist/components/index7.js.map +1 -1
  127. package/dist/components/index8.js +1 -1
  128. package/dist/components/index8.js.map +1 -1
  129. package/dist/components/index9.js +1 -1
  130. package/dist/components/z-accordion.js +1 -1
  131. package/dist/components/z-anchor-navigation.js +1 -1
  132. package/dist/components/z-app-header.js +1 -1
  133. package/dist/components/z-aria-alert.js +1 -1
  134. package/dist/components/z-avatar.js +1 -1
  135. package/dist/components/z-breadcrumb.js +1 -1
  136. package/dist/components/z-button-sort.js +1 -1
  137. package/dist/components/z-color-picker.js +1 -1
  138. package/dist/components/z-combobox.js +1 -1
  139. package/dist/components/z-cover-hero.js +1 -1
  140. package/dist/components/z-file.js +1 -1
  141. package/dist/components/z-info-box.js +1 -1
  142. package/dist/components/z-input-range.js +1 -1
  143. package/dist/components/z-logo.js +1 -1
  144. package/dist/components/z-menu-section.js +1 -1
  145. package/dist/components/z-navigation-tabs.js +1 -1
  146. package/dist/components/z-notification.js +1 -1
  147. package/dist/components/z-panel-elem.js +1 -1
  148. package/dist/components/z-result-card.js +1 -1
  149. package/dist/components/z-result-card.js.map +1 -1
  150. package/dist/components/z-select.js +1 -1
  151. package/dist/components/z-select.js.map +1 -1
  152. package/dist/components/z-skip-to-content.js +1 -1
  153. package/dist/components/z-stepper-item.js +1 -1
  154. package/dist/components/z-stepper.js +1 -1
  155. package/dist/components/z-table.js +1 -1
  156. package/dist/components/z-tbody.js +1 -1
  157. package/dist/components/z-td.js +1 -1
  158. package/dist/components/z-tfoot.js +1 -1
  159. package/dist/components/z-th.js +1 -1
  160. package/dist/components/z-thead.js +1 -1
  161. package/dist/components/z-toast-notification-list.js +1 -1
  162. package/dist/components/z-toast-notification.js +2 -2
  163. package/dist/components/z-toggle-button.js +1 -1
  164. package/dist/components/z-toggle-button.js.map +1 -1
  165. package/dist/components/z-tr.js +1 -1
  166. package/dist/components/z-tree-list.js +1 -1
  167. package/dist/esm/loader.js +1 -1
  168. package/dist/esm/web-components-library.js +1 -1
  169. package/dist/esm/z-accordion.entry.js +1 -1
  170. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  171. package/dist/esm/z-app-header_12.entry.js +24 -21
  172. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  173. package/dist/esm/z-aria-alert.entry.js +1 -1
  174. package/dist/esm/z-avatar.entry.js +2 -2
  175. package/dist/esm/z-book-cover.entry.js +2 -1
  176. package/dist/esm/z-book-cover.entry.js.map +1 -1
  177. package/dist/esm/z-breadcrumb.entry.js +2 -2
  178. package/dist/esm/z-button-sort.entry.js +1 -1
  179. package/dist/esm/z-chip.entry.js +2 -2
  180. package/dist/esm/z-color-picker.entry.js +1 -1
  181. package/dist/esm/z-combobox.entry.js +1 -1
  182. package/dist/esm/z-cover-hero.entry.js +2 -2
  183. package/dist/esm/z-dragdrop-area_2.entry.js +6 -6
  184. package/dist/esm/z-file.entry.js +1 -1
  185. package/dist/esm/z-ghost-loading.entry.js +1 -1
  186. package/dist/esm/z-info-box.entry.js +1 -1
  187. package/dist/esm/z-info-reveal.entry.js +1 -1
  188. package/dist/esm/z-input-range.entry.js +1 -1
  189. package/dist/esm/z-logo.entry.js +1 -1
  190. package/dist/esm/z-menu-section.entry.js +1 -1
  191. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  192. package/dist/esm/z-notification.entry.js +1 -1
  193. package/dist/esm/z-panel-elem.entry.js +2 -2
  194. package/dist/esm/z-popover.entry.js +1 -1
  195. package/dist/esm/z-result-card.entry.js +1 -1
  196. package/dist/esm/z-result-card.entry.js.map +1 -1
  197. package/dist/esm/z-select.entry.js +4 -2
  198. package/dist/esm/z-select.entry.js.map +1 -1
  199. package/dist/esm/z-skip-to-content.entry.js +1 -1
  200. package/dist/esm/z-stepper-item.entry.js +1 -1
  201. package/dist/esm/z-stepper.entry.js +1 -1
  202. package/dist/esm/z-table.entry.js +1 -1
  203. package/dist/esm/z-tbody.entry.js +1 -1
  204. package/dist/esm/z-td.entry.js +1 -1
  205. package/dist/esm/z-tfoot.entry.js +1 -1
  206. package/dist/esm/z-th.entry.js +1 -1
  207. package/dist/esm/z-thead.entry.js +1 -1
  208. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  209. package/dist/esm/z-toast-notification.entry.js +3 -3
  210. package/dist/esm/z-toggle-button.entry.js +2 -2
  211. package/dist/esm/z-toggle-button.entry.js.map +1 -1
  212. package/dist/esm/z-tr.entry.js +1 -1
  213. package/dist/esm/z-tree-list.entry.js +1 -1
  214. package/dist/types/components/{z-toggle-button → deprecated/z-toggle-button}/index.d.ts +1 -1
  215. package/dist/types/components/z-book-cover/index.d.ts +2 -0
  216. package/dist/types/components/z-result-card/index.d.ts +2 -0
  217. package/dist/types/components/z-select/index.d.ts +2 -0
  218. package/dist/types/components.d.ts +29 -0
  219. package/dist/web-components-library/{p-257be457.entry.js → p-0251d009.entry.js} +2 -2
  220. package/{www/build/p-9f9c4296.entry.js → dist/web-components-library/p-136f336a.entry.js} +2 -2
  221. package/dist/web-components-library/{p-62485d56.entry.js → p-1a13cd9b.entry.js} +2 -2
  222. package/dist/web-components-library/{p-e88048b8.entry.js → p-22cb956c.entry.js} +2 -2
  223. package/dist/web-components-library/{p-6f58880c.entry.js → p-315ca31f.entry.js} +2 -2
  224. package/dist/web-components-library/p-315ca31f.entry.js.map +1 -0
  225. package/dist/web-components-library/p-35d62356.entry.js +2 -0
  226. package/dist/web-components-library/p-35d62356.entry.js.map +1 -0
  227. package/dist/web-components-library/{p-8dbf7843.entry.js → p-39b91bfa.entry.js} +2 -2
  228. package/{www/build/p-e59a5539.entry.js → dist/web-components-library/p-4085be9a.entry.js} +2 -2
  229. package/dist/web-components-library/p-41f63f0e.entry.js +2 -0
  230. package/dist/web-components-library/{p-3f2658a0.entry.js → p-487e3fca.entry.js} +2 -2
  231. package/dist/web-components-library/{p-54e5d76e.entry.js → p-4a7431f6.entry.js} +2 -2
  232. package/dist/web-components-library/{p-b2811bbb.entry.js → p-5af96c6f.entry.js} +2 -2
  233. package/dist/web-components-library/{p-f31f04b9.entry.js → p-5b3cfc2e.entry.js} +2 -2
  234. package/dist/web-components-library/p-5c012917.entry.js +2 -0
  235. package/{www/build/p-c2e2c6be.entry.js.map → dist/web-components-library/p-5c012917.entry.js.map} +1 -1
  236. package/dist/web-components-library/{p-a6ffb921.entry.js → p-67476a7c.entry.js} +2 -2
  237. package/dist/web-components-library/{p-c30b2384.entry.js → p-7313c22c.entry.js} +2 -2
  238. package/dist/web-components-library/{p-3fe7c6e3.entry.js → p-7965766c.entry.js} +2 -2
  239. package/dist/web-components-library/{p-c40d0776.entry.js → p-7b4f5936.entry.js} +2 -2
  240. package/{www/build/p-40065476.entry.js → dist/web-components-library/p-817630e4.entry.js} +2 -2
  241. package/dist/web-components-library/{p-101efb38.entry.js → p-82e87326.entry.js} +2 -2
  242. package/dist/web-components-library/{p-98089231.entry.js → p-869ba2b5.entry.js} +2 -2
  243. package/dist/web-components-library/{p-418a7ee5.entry.js → p-87ea0b0a.entry.js} +2 -2
  244. package/dist/web-components-library/{p-dd361d13.entry.js → p-88c45ed6.entry.js} +2 -2
  245. package/{www/build/p-c7046a20.entry.js → dist/web-components-library/p-8f6ff78c.entry.js} +2 -2
  246. package/dist/web-components-library/p-9b181758.entry.js +2 -0
  247. package/dist/web-components-library/p-9b181758.entry.js.map +1 -0
  248. package/dist/web-components-library/{p-1e25b55b.entry.js → p-a09646a9.entry.js} +2 -2
  249. package/dist/web-components-library/p-a09646a9.entry.js.map +1 -0
  250. package/dist/web-components-library/{p-372e83b1.entry.js → p-a2eb700b.entry.js} +2 -2
  251. package/{www/build/p-91d2c110.entry.js → dist/web-components-library/p-ab221eac.entry.js} +3 -3
  252. package/dist/web-components-library/{p-99b169c7.entry.js → p-aba618c3.entry.js} +2 -2
  253. package/dist/web-components-library/{p-f9e5a0aa.entry.js → p-b15d006f.entry.js} +2 -2
  254. package/dist/web-components-library/p-b15d006f.entry.js.map +1 -0
  255. package/dist/web-components-library/{p-3210fd43.entry.js → p-b7d4b886.entry.js} +2 -2
  256. package/dist/web-components-library/{p-24743ceb.entry.js → p-bb610386.entry.js} +2 -2
  257. package/{www/build/p-d9d80082.entry.js → dist/web-components-library/p-c39e4a49.entry.js} +2 -2
  258. package/dist/web-components-library/p-cb7381a0.entry.js +2 -0
  259. package/dist/web-components-library/{p-c8663ffd.entry.js → p-cdfbcb3b.entry.js} +2 -2
  260. package/dist/web-components-library/{p-2adbfd30.entry.js → p-e1081a2f.entry.js} +2 -2
  261. package/{www/build/p-d0d950e1.entry.js → dist/web-components-library/p-f36e7e6b.entry.js} +2 -2
  262. package/dist/web-components-library/p-f6138bf7.entry.js +2 -0
  263. package/dist/web-components-library/p-f8bc8ed9.entry.js +2 -0
  264. package/dist/web-components-library/{p-9b1a9044.entry.js → p-fa02ba25.entry.js} +2 -2
  265. package/dist/web-components-library/web-components-library.esm.js +1 -1
  266. package/package.json +1 -1
  267. package/www/build/{p-257be457.entry.js → p-0251d009.entry.js} +2 -2
  268. package/{dist/web-components-library/p-9f9c4296.entry.js → www/build/p-136f336a.entry.js} +2 -2
  269. package/www/build/{p-62485d56.entry.js → p-1a13cd9b.entry.js} +2 -2
  270. package/www/build/{p-e88048b8.entry.js → p-22cb956c.entry.js} +2 -2
  271. package/www/build/{p-6f58880c.entry.js → p-315ca31f.entry.js} +2 -2
  272. package/www/build/p-315ca31f.entry.js.map +1 -0
  273. package/www/build/p-35d62356.entry.js +2 -0
  274. package/www/build/p-35d62356.entry.js.map +1 -0
  275. package/www/build/{p-8dbf7843.entry.js → p-39b91bfa.entry.js} +2 -2
  276. package/{dist/web-components-library/p-e59a5539.entry.js → www/build/p-4085be9a.entry.js} +2 -2
  277. package/www/build/p-41f63f0e.entry.js +2 -0
  278. package/www/build/p-472fe240.js +2 -0
  279. package/www/build/{p-3f2658a0.entry.js → p-487e3fca.entry.js} +2 -2
  280. package/www/build/{p-54e5d76e.entry.js → p-4a7431f6.entry.js} +2 -2
  281. package/www/build/{p-b2811bbb.entry.js → p-5af96c6f.entry.js} +2 -2
  282. package/www/build/{p-f31f04b9.entry.js → p-5b3cfc2e.entry.js} +2 -2
  283. package/www/build/p-5c012917.entry.js +2 -0
  284. package/{dist/web-components-library/p-c2e2c6be.entry.js.map → www/build/p-5c012917.entry.js.map} +1 -1
  285. package/www/build/{p-a6ffb921.entry.js → p-67476a7c.entry.js} +2 -2
  286. package/www/build/{p-c30b2384.entry.js → p-7313c22c.entry.js} +2 -2
  287. package/www/build/{p-3fe7c6e3.entry.js → p-7965766c.entry.js} +2 -2
  288. package/www/build/{p-c40d0776.entry.js → p-7b4f5936.entry.js} +2 -2
  289. package/{dist/web-components-library/p-40065476.entry.js → www/build/p-817630e4.entry.js} +2 -2
  290. package/www/build/{p-101efb38.entry.js → p-82e87326.entry.js} +2 -2
  291. package/www/build/{p-98089231.entry.js → p-869ba2b5.entry.js} +2 -2
  292. package/www/build/{p-418a7ee5.entry.js → p-87ea0b0a.entry.js} +2 -2
  293. package/www/build/{p-dd361d13.entry.js → p-88c45ed6.entry.js} +2 -2
  294. package/{dist/web-components-library/p-c7046a20.entry.js → www/build/p-8f6ff78c.entry.js} +2 -2
  295. package/www/build/p-9b181758.entry.js +2 -0
  296. package/www/build/p-9b181758.entry.js.map +1 -0
  297. package/www/build/{p-1e25b55b.entry.js → p-a09646a9.entry.js} +2 -2
  298. package/www/build/p-a09646a9.entry.js.map +1 -0
  299. package/www/build/{p-372e83b1.entry.js → p-a2eb700b.entry.js} +2 -2
  300. package/{dist/web-components-library/p-91d2c110.entry.js → www/build/p-ab221eac.entry.js} +3 -3
  301. package/www/build/{p-99b169c7.entry.js → p-aba618c3.entry.js} +2 -2
  302. package/www/build/{p-f9e5a0aa.entry.js → p-b15d006f.entry.js} +2 -2
  303. package/www/build/p-b15d006f.entry.js.map +1 -0
  304. package/www/build/{p-3210fd43.entry.js → p-b7d4b886.entry.js} +2 -2
  305. package/www/build/{p-24743ceb.entry.js → p-bb610386.entry.js} +2 -2
  306. package/{dist/web-components-library/p-d9d80082.entry.js → www/build/p-c39e4a49.entry.js} +2 -2
  307. package/www/build/p-cb7381a0.entry.js +2 -0
  308. package/www/build/{p-c8663ffd.entry.js → p-cdfbcb3b.entry.js} +2 -2
  309. package/www/build/{p-2adbfd30.entry.js → p-e1081a2f.entry.js} +2 -2
  310. package/{dist/web-components-library/p-d0d950e1.entry.js → www/build/p-f36e7e6b.entry.js} +2 -2
  311. package/www/build/p-f6138bf7.entry.js +2 -0
  312. package/www/build/p-f8bc8ed9.entry.js +2 -0
  313. package/www/build/{p-9b1a9044.entry.js → p-fa02ba25.entry.js} +2 -2
  314. package/www/build/web-components-library.esm.js +1 -1
  315. package/www/index.html +1 -1
  316. package/dist/collection/components/z-toggle-button/index.js.map +0 -1
  317. package/dist/web-components-library/p-06aba4ff.entry.js +0 -2
  318. package/dist/web-components-library/p-1e25b55b.entry.js.map +0 -1
  319. package/dist/web-components-library/p-2f6f0c08.entry.js +0 -2
  320. package/dist/web-components-library/p-55468801.entry.js +0 -2
  321. package/dist/web-components-library/p-6f58880c.entry.js.map +0 -1
  322. package/dist/web-components-library/p-c20730b2.entry.js +0 -2
  323. package/dist/web-components-library/p-c2e2c6be.entry.js +0 -2
  324. package/dist/web-components-library/p-d33dcac5.entry.js +0 -2
  325. package/dist/web-components-library/p-d33dcac5.entry.js.map +0 -1
  326. package/dist/web-components-library/p-eb22ba82.entry.js +0 -2
  327. package/dist/web-components-library/p-eb22ba82.entry.js.map +0 -1
  328. package/dist/web-components-library/p-f9e5a0aa.entry.js.map +0 -1
  329. package/www/build/p-06aba4ff.entry.js +0 -2
  330. package/www/build/p-1e25b55b.entry.js.map +0 -1
  331. package/www/build/p-2f6f0c08.entry.js +0 -2
  332. package/www/build/p-54ce4fe9.js +0 -2
  333. package/www/build/p-55468801.entry.js +0 -2
  334. package/www/build/p-6f58880c.entry.js.map +0 -1
  335. package/www/build/p-c20730b2.entry.js +0 -2
  336. package/www/build/p-c2e2c6be.entry.js +0 -2
  337. package/www/build/p-d33dcac5.entry.js +0 -2
  338. package/www/build/p-d33dcac5.entry.js.map +0 -1
  339. package/www/build/p-eb22ba82.entry.js +0 -2
  340. package/www/build/p-eb22ba82.entry.js.map +0 -1
  341. package/www/build/p-f9e5a0aa.entry.js.map +0 -1
  342. /package/dist/collection/components/{z-toggle-button → deprecated/z-toggle-button}/styles.css +0 -0
  343. /package/dist/web-components-library/{p-257be457.entry.js.map → p-0251d009.entry.js.map} +0 -0
  344. /package/dist/web-components-library/{p-9f9c4296.entry.js.map → p-136f336a.entry.js.map} +0 -0
  345. /package/dist/web-components-library/{p-62485d56.entry.js.map → p-1a13cd9b.entry.js.map} +0 -0
  346. /package/dist/web-components-library/{p-e88048b8.entry.js.map → p-22cb956c.entry.js.map} +0 -0
  347. /package/dist/web-components-library/{p-8dbf7843.entry.js.map → p-39b91bfa.entry.js.map} +0 -0
  348. /package/dist/web-components-library/{p-e59a5539.entry.js.map → p-4085be9a.entry.js.map} +0 -0
  349. /package/dist/web-components-library/{p-2f6f0c08.entry.js.map → p-41f63f0e.entry.js.map} +0 -0
  350. /package/dist/web-components-library/{p-3f2658a0.entry.js.map → p-487e3fca.entry.js.map} +0 -0
  351. /package/dist/web-components-library/{p-54e5d76e.entry.js.map → p-4a7431f6.entry.js.map} +0 -0
  352. /package/dist/web-components-library/{p-b2811bbb.entry.js.map → p-5af96c6f.entry.js.map} +0 -0
  353. /package/dist/web-components-library/{p-f31f04b9.entry.js.map → p-5b3cfc2e.entry.js.map} +0 -0
  354. /package/dist/web-components-library/{p-a6ffb921.entry.js.map → p-67476a7c.entry.js.map} +0 -0
  355. /package/dist/web-components-library/{p-c30b2384.entry.js.map → p-7313c22c.entry.js.map} +0 -0
  356. /package/dist/web-components-library/{p-3fe7c6e3.entry.js.map → p-7965766c.entry.js.map} +0 -0
  357. /package/dist/web-components-library/{p-c40d0776.entry.js.map → p-7b4f5936.entry.js.map} +0 -0
  358. /package/dist/web-components-library/{p-40065476.entry.js.map → p-817630e4.entry.js.map} +0 -0
  359. /package/dist/web-components-library/{p-101efb38.entry.js.map → p-82e87326.entry.js.map} +0 -0
  360. /package/dist/web-components-library/{p-98089231.entry.js.map → p-869ba2b5.entry.js.map} +0 -0
  361. /package/dist/web-components-library/{p-418a7ee5.entry.js.map → p-87ea0b0a.entry.js.map} +0 -0
  362. /package/dist/web-components-library/{p-dd361d13.entry.js.map → p-88c45ed6.entry.js.map} +0 -0
  363. /package/dist/web-components-library/{p-c7046a20.entry.js.map → p-8f6ff78c.entry.js.map} +0 -0
  364. /package/dist/web-components-library/{p-372e83b1.entry.js.map → p-a2eb700b.entry.js.map} +0 -0
  365. /package/dist/web-components-library/{p-91d2c110.entry.js.map → p-ab221eac.entry.js.map} +0 -0
  366. /package/dist/web-components-library/{p-99b169c7.entry.js.map → p-aba618c3.entry.js.map} +0 -0
  367. /package/dist/web-components-library/{p-3210fd43.entry.js.map → p-b7d4b886.entry.js.map} +0 -0
  368. /package/dist/web-components-library/{p-24743ceb.entry.js.map → p-bb610386.entry.js.map} +0 -0
  369. /package/dist/web-components-library/{p-d9d80082.entry.js.map → p-c39e4a49.entry.js.map} +0 -0
  370. /package/dist/web-components-library/{p-c20730b2.entry.js.map → p-cb7381a0.entry.js.map} +0 -0
  371. /package/dist/web-components-library/{p-c8663ffd.entry.js.map → p-cdfbcb3b.entry.js.map} +0 -0
  372. /package/dist/web-components-library/{p-2adbfd30.entry.js.map → p-e1081a2f.entry.js.map} +0 -0
  373. /package/dist/web-components-library/{p-d0d950e1.entry.js.map → p-f36e7e6b.entry.js.map} +0 -0
  374. /package/dist/web-components-library/{p-55468801.entry.js.map → p-f6138bf7.entry.js.map} +0 -0
  375. /package/dist/web-components-library/{p-06aba4ff.entry.js.map → p-f8bc8ed9.entry.js.map} +0 -0
  376. /package/dist/web-components-library/{p-9b1a9044.entry.js.map → p-fa02ba25.entry.js.map} +0 -0
  377. /package/www/build/{p-257be457.entry.js.map → p-0251d009.entry.js.map} +0 -0
  378. /package/www/build/{p-9f9c4296.entry.js.map → p-136f336a.entry.js.map} +0 -0
  379. /package/www/build/{p-62485d56.entry.js.map → p-1a13cd9b.entry.js.map} +0 -0
  380. /package/www/build/{p-e88048b8.entry.js.map → p-22cb956c.entry.js.map} +0 -0
  381. /package/www/build/{p-8dbf7843.entry.js.map → p-39b91bfa.entry.js.map} +0 -0
  382. /package/www/build/{p-e59a5539.entry.js.map → p-4085be9a.entry.js.map} +0 -0
  383. /package/www/build/{p-2f6f0c08.entry.js.map → p-41f63f0e.entry.js.map} +0 -0
  384. /package/www/build/{p-3f2658a0.entry.js.map → p-487e3fca.entry.js.map} +0 -0
  385. /package/www/build/{p-54e5d76e.entry.js.map → p-4a7431f6.entry.js.map} +0 -0
  386. /package/www/build/{p-b2811bbb.entry.js.map → p-5af96c6f.entry.js.map} +0 -0
  387. /package/www/build/{p-f31f04b9.entry.js.map → p-5b3cfc2e.entry.js.map} +0 -0
  388. /package/www/build/{p-a6ffb921.entry.js.map → p-67476a7c.entry.js.map} +0 -0
  389. /package/www/build/{p-c30b2384.entry.js.map → p-7313c22c.entry.js.map} +0 -0
  390. /package/www/build/{p-3fe7c6e3.entry.js.map → p-7965766c.entry.js.map} +0 -0
  391. /package/www/build/{p-c40d0776.entry.js.map → p-7b4f5936.entry.js.map} +0 -0
  392. /package/www/build/{p-40065476.entry.js.map → p-817630e4.entry.js.map} +0 -0
  393. /package/www/build/{p-101efb38.entry.js.map → p-82e87326.entry.js.map} +0 -0
  394. /package/www/build/{p-98089231.entry.js.map → p-869ba2b5.entry.js.map} +0 -0
  395. /package/www/build/{p-418a7ee5.entry.js.map → p-87ea0b0a.entry.js.map} +0 -0
  396. /package/www/build/{p-dd361d13.entry.js.map → p-88c45ed6.entry.js.map} +0 -0
  397. /package/www/build/{p-c7046a20.entry.js.map → p-8f6ff78c.entry.js.map} +0 -0
  398. /package/www/build/{p-372e83b1.entry.js.map → p-a2eb700b.entry.js.map} +0 -0
  399. /package/www/build/{p-91d2c110.entry.js.map → p-ab221eac.entry.js.map} +0 -0
  400. /package/www/build/{p-99b169c7.entry.js.map → p-aba618c3.entry.js.map} +0 -0
  401. /package/www/build/{p-3210fd43.entry.js.map → p-b7d4b886.entry.js.map} +0 -0
  402. /package/www/build/{p-24743ceb.entry.js.map → p-bb610386.entry.js.map} +0 -0
  403. /package/www/build/{p-d9d80082.entry.js.map → p-c39e4a49.entry.js.map} +0 -0
  404. /package/www/build/{p-c20730b2.entry.js.map → p-cb7381a0.entry.js.map} +0 -0
  405. /package/www/build/{p-c8663ffd.entry.js.map → p-cdfbcb3b.entry.js.map} +0 -0
  406. /package/www/build/{p-2adbfd30.entry.js.map → p-e1081a2f.entry.js.map} +0 -0
  407. /package/www/build/{p-d0d950e1.entry.js.map → p-f36e7e6b.entry.js.map} +0 -0
  408. /package/www/build/{p-55468801.entry.js.map → p-f6138bf7.entry.js.map} +0 -0
  409. /package/www/build/{p-06aba4ff.entry.js.map → p-f8bc8ed9.entry.js.map} +0 -0
  410. /package/www/build/{p-9b1a9044.entry.js.map → p-fa02ba25.entry.js.map} +0 -0
@@ -93,7 +93,7 @@ export class ZTreeList {
93
93
  }
94
94
  render() {
95
95
  const hasClickableItems = this.parsedItems.some((item) => !!item.url);
96
- return (h(Host, { key: '68d06fd53ad0f4bce01853b95aef0f7482f3304a', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '6b8010ae9caf73ec0a43b09f5d9610247110d1a6', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
96
+ return (h(Host, { key: 'f8d5b24a7d7dab5b6dba9c06b363c4015448f982', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: 'e793e18b4d75c537cb5faeb5f839ad5bda28e60b', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
97
97
  }
98
98
  static get is() { return "z-tree-list"; }
99
99
  static get encapsulation() { return "shadow"; }
@@ -42,7 +42,7 @@ export class ZTd {
42
42
  this.updateColspan();
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: '2c3552c5c30611595ac619e6ca3a1e93b3d37366', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: 'd13012a1f16aaa6ab44b4eea1dafa63cf1ebbd3a', class: "cell--content" }, h("slot", { key: 'b4571116c24bb99dc6ec76486fc948da89a5393b' }), this.showMenu && (h("div", { key: '6ebd3bfc1fcf8dce3afb91931309c4644efc2e49', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '3d01c8956127276eb765c3a9f4aabb4ed710b404', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'd04c06677e2e8efb5d80bfbfd7cc91c9cbff7231', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'c389c6fdf131aeef86eae687df9c2f7fb6fbc3be', name: "contextual-menu" })))))));
45
+ return (h(Host, { key: 'd48c0f41f353bf19a650973a10cd9f8bfb72aedf', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: '823e804797fc316c820332a7bc7a6af1fdf80c3e', class: "cell--content" }, h("slot", { key: 'bfb42239a9e8af8330f6e561e1c0d40d04d373f4' }), this.showMenu && (h("div", { key: 'b6cf943ad3891ae50989d28f73dd0870dd9de49d', class: "cell--menu-container prevent-expand" }, h("z-button", { key: 'b8cfdfdaa770c92309dc53c8cb3fc9e5cd1f7606', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'c3f967afca1266c59228d66e209b8a51ed438944', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '3081db49642adc7df0abb8b018023803a1fe4892', name: "contextual-menu" })))))));
46
46
  }
47
47
  static get is() { return "z-td"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -70,7 +70,7 @@ export class ZTh {
70
70
  this.updateColspan();
71
71
  }
72
72
  render() {
73
- return (h(Host, { key: 'aef115e04b8a8c37c749a568bcb24250e062008b', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: '5b78767c1d65440363c06d5e4b7137598e74d8b4', class: "cell--content" }, h("slot", { key: '340210db9182785b89ed01a26d6dc60558aa9f4f' }), this.showSorting && (h("button", { key: '2c6f42cbf3a2c1d37af04182731503accfe67362', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'ad73a2838da75772e84e431c36256e77bdf39157', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: 'd4c23d3a5b05ccea94a03efa6b10efc65e4a0cf4', class: "cell--menu-container" }, h("z-button", { key: 'fb0930c50cd3ac363e764ded3d7be227678a5d2d', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'b720485c31c2070d77e33bceacd5be582516ae38', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '7372fa0d1ca9773ebbf8b6c8ec581133967aafdf', name: "contextual-menu" })))))));
73
+ return (h(Host, { key: '25ff71c64f855e0245527ad385b724d28ddfa08c', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'adaf75e819e1692cd89903665e8e04d81500fbd6', class: "cell--content" }, h("slot", { key: '6d7b2ed1bc4c4aeedc75af807fddd1478fe460eb' }), this.showSorting && (h("button", { key: 'a6d100b0cebfb956df0b8b052867ab05e0f0f268', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'e2d0cb1d16ca0160266cbff0eb3d1f0e7e8da99e', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '7b2c8be782cd2e06bec91068b5f4e0c0d15fcf06', class: "cell--menu-container" }, h("z-button", { key: '76881e9c6280fa0eeca09ea062850afc10ce87af', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'e9eb5e63d106dc3d0785fe2986caf9fa70105134', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '3a8aa0c828cabbdc7ffac2cc33f8fba5508652ae', name: "contextual-menu" })))))));
74
74
  }
75
75
  static get is() { return "z-th"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -41,7 +41,7 @@ export class ZTable {
41
41
  (_a = this.expandableMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
42
42
  }
43
43
  render() {
44
- return (h(Host, { key: 'e6312c6e3bc53f74407f70eca34f9d0ede44b40d', expandable: this.expandable }, h("div", { key: 'e1009eab29f0b6a02533ee7b542095f6cd83e1a0', class: "table", role: "table" }, h("slot", { key: '6f3dbd3fdf96dec314a441c046333c1ab9f67cc1' }))));
44
+ return (h(Host, { key: '049f897c8de91812feb63d2c21a37f0bd3cee57f', expandable: this.expandable }, h("div", { key: '50dbde44d7ce839bdfbab7cf449dd4167c13c7e2', class: "table", role: "table" }, h("slot", { key: 'f624fab82612a01e4703d9096c6903208a4501b7' }))));
45
45
  }
46
46
  static get is() { return "z-table"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
5
5
  */
6
6
  export class ZTbody {
7
7
  render() {
8
- return (h(Host, { key: 'ff5da26d4d754ab4da901422be45d9cd546807b9', role: "rowgroup" }, h("slot", { key: 'fe0a17ad217ca1eb372f9f176df75534a3971aa9' })));
8
+ return (h(Host, { key: '52f0046b724886e17a26bcde69958a67d61341ad', role: "rowgroup" }, h("slot", { key: '811484333a52617d5ae272967e8927c6c310ff95' })));
9
9
  }
10
10
  static get is() { return "z-tbody"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ export class ZTfoot {
11
11
  this.sticky = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: 'cdd4d2841caada167b8818ff534744445e0d8979', role: "rowgroup", tabIndex: -1 }, h("slot", { key: '5cf911121ea09dcc13744e9d1d730be92f20cbf4' })));
14
+ return (h(Host, { key: 'd16ef7f2814892fcef9c2a76266965965611ec42', role: "rowgroup", tabIndex: -1 }, h("slot", { key: '35422d2506d32edf1668487bdd1974b9a92ad4fe' })));
15
15
  }
16
16
  static get is() { return "z-tfoot"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class ZThead {
15
15
  this.isFocusable = false;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '0e43e10373817b9ee5e4f1574fb0d46b232c510d', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, h("slot", { key: 'aefd2ed2698efb7deabd11284f3d6cae95800e50' })));
18
+ return (h(Host, { key: 'da659da3d9e19e184e1aa6549daedabb101ce389', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, h("slot", { key: '8f2f180a4a539234d6c29f1f8266eae3b5f3d21a' })));
19
19
  }
20
20
  static get is() { return "z-thead"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class ZTr {
65
65
  this.updateColumns();
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: 'ffd8e071015ace61e51c603988d84dae42a047bb', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, h("div", { key: '49539d360bab6d865958910fd21f5c407fc0a16b', class: "z-tr--focus-overlay", "aria-hidden": "true" }), h("div", { key: '94c5f36a5f220a7403d0c6057faf41cf0509f68e', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: 'ee46bd7dd59d27c6be18716fc3a46092cdac5eb6', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: 'ce6fc941625f48f13edc7df3a43da159cf6f064d', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: 'c41ca74f6026dda7813605940e6910a56cd576fb', onSlotchange: this.updateColumns.bind(this) })));
68
+ return (h(Host, { key: '554aceba8b99d8655ecc8a94af9db10d031b10af', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, h("div", { key: '43b0dea34f2a462e2f0f0eb3412cbde4cb68685c', class: "z-tr--focus-overlay", "aria-hidden": "true" }), h("div", { key: 'b9dbe2ceeae6650956992c47e605928108597541', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: '49adad5b59d11110633b82d3880f5c91392034f1', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: '47d28d342352b04c53c3e9f4e770c2a919571150', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '3cb8eca4fb990d843d1f811b8274196123aa5937', onSlotchange: this.updateColumns.bind(this) })));
69
69
  }
70
70
  static get is() { return "z-tr"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -63,7 +63,7 @@ export class ZAccordion {
63
63
  this.checkSlottedTags();
64
64
  }
65
65
  render() {
66
- return (h("details", { key: '677f29eb9a981a8444c6de2966101caa04063bdc', ref: (elm) => (this.detailsElm = elm), onToggle: this.onDetailsToggle.bind(this), open: this.open }, h("summary", { key: '498a94e2aec123598bcf6b4cd7d755b72726d9e9', tabIndex: this.isDisabled ? -1 : null, part: "summary" }, this.icon && (h("z-icon", { key: '09eec9beaa82d2a2f81de5c0ea2d5ebee856b190', class: "z-accordion-label-icon", name: this.icon })), h("span", { key: 'dbf0026bd5a832300e17ec30da2cfaf7946d1c5e', class: "z-accordion-label" }, this.label), this.hasSlottedTags && (h("span", { key: '21b3f6c772537d97100d593d5415f7d73bdaeab6', class: "z-accordion-tags" }, h("slot", { key: '676b85cf03540aad8a2797073e0376d23816635a', name: "tag", onSlotchange: () => this.checkSlottedTags() }))), h("z-icon", { key: '45341fe9e93b6ceafb938b4345d065d684c40246', class: "z-accordion-chevron", name: this.open ? "chevron-up" : "chevron-down" })), !this.isDisabled && (h("div", { key: 'dea671e91b2ddd6e2666304452cc2b60b7b8fda4', class: "z-accordion-content", part: "content" }, h("slot", { key: '382274fc573c359786db1a5cc986b1cc400e2960' })))));
66
+ return (h("details", { key: 'e957004c881c5d6d78ef08e2e0e2e5d6a24c89b7', ref: (elm) => (this.detailsElm = elm), onToggle: this.onDetailsToggle.bind(this), open: this.open }, h("summary", { key: '2aee81012aa94c58ef08c9a6095523efb00b8c9c', tabIndex: this.isDisabled ? -1 : null, part: "summary" }, this.icon && (h("z-icon", { key: '6a09efbc17df94ff2141ae999904e281ff9d6136', class: "z-accordion-label-icon", name: this.icon })), h("span", { key: '6b925bf04adee74c040cbcf09488a4e58d2b5c02', class: "z-accordion-label" }, this.label), this.hasSlottedTags && (h("span", { key: '95a6cd60ebf18ffc2d7a94c9b0204225b932a810', class: "z-accordion-tags" }, h("slot", { key: '179c326ffd592f16947999151b08ebc968e46cf5', name: "tag", onSlotchange: () => this.checkSlottedTags() }))), h("z-icon", { key: '88a53ab505c15735e911d27fd89676de76b488cc', class: "z-accordion-chevron", name: this.open ? "chevron-up" : "chevron-down" })), !this.isDisabled && (h("div", { key: '327a2c6da908bb660b0e2301a1e345ab1eafbe15', class: "z-accordion-content", part: "content" }, h("slot", { key: '950f8a2c6c44d1e3e4411a940e4bee191cc6b3a6' })))));
67
67
  }
68
68
  static get is() { return "z-accordion"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -71,7 +71,7 @@ export class ZAnchorNavigation {
71
71
  window.removeEventListener("hashchange", this.setCurrent);
72
72
  }
73
73
  render() {
74
- return (h(Host, { key: 'c7b47d775e9e264fa5b7b6f4496fcf1dccd5f28c', collapsed: this.collapsed, class: "z-scrollbar" }, h("z-button", { key: '3651fe999b1f8ed710a43e01034e57759001e614', class: "toggle", size: ControlSize.SMALL, variant: ButtonVariant.SECONDARY, icon: this.collapsed ? "chevron-up" : "chevron-down", onClick: this.toggleCollapsed.bind(this) }, this.collapsedLabel), h("nav", { key: 'beb6bb3d1f77451e63213dbc638b209ab6d34c17', ref: (el) => (this.nav = el) }, h("slot", { key: '1b35a2604b89a924ebb029affec3bb33d8193f81' }))));
74
+ return (h(Host, { key: 'b059600c9eaada10a4ed37e0a5c39c2ba373a9f3', collapsed: this.collapsed, class: "z-scrollbar" }, h("z-button", { key: '4bcc1d04ad8f6666eba33c20200dd9fdd57e4fd4', class: "toggle", size: ControlSize.SMALL, variant: ButtonVariant.SECONDARY, icon: this.collapsed ? "chevron-up" : "chevron-down", onClick: this.toggleCollapsed.bind(this) }, this.collapsedLabel), h("nav", { key: 'eb0da78055d1e8af036032ea6dcc70e7d6f52702', ref: (el) => (this.nav = el) }, h("slot", { key: '8d938246f34f89d9aa36196c1be2df7c8ab0b1d2' }))));
75
75
  }
76
76
  static get is() { return "z-anchor-navigation"; }
77
77
  static get originalStyleUrls() {
@@ -274,7 +274,7 @@ export class ZAppHeader {
274
274
  }
275
275
  render() {
276
276
  const hasTopSubtitle = this.hasSlot("top-subtitle");
277
- return (h(Host, { key: 'a48e907303247432d294871a6810e996cc6f48f4', "menu-length": this.menuLength }, h("div", { key: '094aee9d0964cdcec17acde3ec7eaa1767b8ae31', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, h("div", { key: '0635f1f529b2f3e25db7bfc55579c3c3bd8995cb', class: { "heading-container": true, "has-top-subtitle": hasTopSubtitle } }, ((!this.enableSearch && this.isMobile) || !this.isMobile) && (h("div", { key: 'a2104e8dd013fca97b2af2e57e95e108b423ecbd', class: { "top-subtitle": true, "has-product-logo": hasTopSubtitle && this.hasSlot("product-logo") } }, h("slot", { key: 'a6a7899aba37a27e24982567bc1b7242f4b9bf1b', name: "top-subtitle" }))), h("div", { key: 'e47339a0a8d9aaee0bd87c0cdf1434e553051030', class: "heading-title" }, h("slot", { key: '1212a43bb3d52591a53aea6fb587723750204578', name: "menu-button" }, this.renderMenuButton()), !this._stuck && this.renderProductLogos(), h("slot", { key: '9166a624ad670c914d630b3b5bb46877d46883c8', name: "title" }), this.enableSearch && !this.isMobile && this.renderSeachbar()), this.enableSearch && this.isMobile && this.renderSeachbar()), h("nav", { key: 'a39bc8d9020b6243e4b6ce885f0cfc52d8bd8d95', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (h("div", { key: 'b58bbc10d6385c6b9404a47c512e912c22650d85', role: "menubar", "aria-label": this.title || undefined }, h("slot", { key: 'c50f81c40e06360ca293172752095155f2f574d4', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
277
+ return (h(Host, { key: '6ea43dd25c57ed4292a243326d7c8af37e88175a', "menu-length": this.menuLength }, h("div", { key: '2909e033b13f3c3703ba3402dddd58ab93de9d83', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, h("div", { key: 'f4db1b9e05adb9ec6abfc5be7d7eb03d23cdadeb', class: { "heading-container": true, "has-top-subtitle": hasTopSubtitle } }, ((!this.enableSearch && this.isMobile) || !this.isMobile) && (h("div", { key: 'd654db6c1f20676c702ffd55896f74dc83b008ae', class: { "top-subtitle": true, "has-product-logo": hasTopSubtitle && this.hasSlot("product-logo") } }, h("slot", { key: '9baf1c16220364d06665b2e77f3f40c22abf9312', name: "top-subtitle" }))), h("div", { key: 'cd2665cc5b5e3528080ae049ff5c1b1b259387f8', class: "heading-title" }, h("slot", { key: 'b52786726e900d20c4f7251650fe828075e656ca', name: "menu-button" }, this.renderMenuButton()), !this._stuck && this.renderProductLogos(), h("slot", { key: 'fbb0a8b9d580ffef099072782f9efded6ae448ba', name: "title" }), this.enableSearch && !this.isMobile && this.renderSeachbar()), this.enableSearch && this.isMobile && this.renderSeachbar()), h("nav", { key: 'e4d4bc464bcb11330a096582abf0ad7b4f95aed0', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (h("div", { key: 'eb712a6bd2324625dbb4647aa3e91e3c1bf21340', role: "menubar", "aria-label": this.title || undefined }, h("slot", { key: '90d4f9eb7b361eb8e394a504d3779ea80241bc32', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
278
278
  }
279
279
  static get is() { return "z-app-header"; }
280
280
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class ZAriaAlert {
6
6
  this.mode = ZAriaAlertMode.POLITE;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '93bfcc69e5d7d76af5deec0c12cee5db73788a5c', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", { key: '7dcfd72ecc06605e78ae738f837cec969997ef7d' })));
9
+ return (h(Host, { key: '14114aba44f89912d75d4dbc41a92e2401528579', "aria-live": this.mode, "aria-atomic": "true", "aria-relevant": "additions" }, h("slot", { key: '1246d14d076ae5642666e7edb8416125bbe97eb4' })));
10
10
  }
11
11
  static get is() { return "z-aria-alert"; }
12
12
  static get properties() {
@@ -25,10 +25,10 @@ export class ZAvatar {
25
25
  }
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '3543824c05f276cddcc91263350962015dc2beb8', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
28
+ return (h(Host, { key: '4416af5640de2f1c6dbcdf5b5370ef35359ff25c', class: { [this.size]: true, [`body-${this.getTextSize()}-sb`]: true }, style: {
29
29
  color: `var(--${this.textColor})`,
30
30
  backgroundColor: `var(--${this.backgroundColor})`,
31
- } }, this.text && !this.image && h("span", { key: '4a143ab81b55fae15ab40e3847c6c911c861f13b' }, this.text.substring(0, 2)), this.image && (h("img", { key: '2e37f8abd25c574371fe1a0f7d08af028fc1b342', src: this.image, onError: () => (this.image = "") }))));
31
+ } }, this.text && !this.image && h("span", { key: 'ee5a7db56e171e0ba4b9f124d4a3794628b7eff9' }, this.text.substring(0, 2)), this.image && (h("img", { key: '899ef0de0537c7bd4d68f5656114ba0fd2cf9881', src: this.image, onError: () => (this.image = "") }))));
32
32
  }
33
33
  static get is() { return "z-avatar"; }
34
34
  static get encapsulation() { return "shadow"; }
@@ -17,7 +17,8 @@ export class ZBookCover {
17
17
  }
18
18
  render() {
19
19
  var _a;
20
- return (h(Host, { key: '407e954f3f8cb933aff3b404b7f3e1643798cf67' }, this.multiple && (h(Fragment, { key: 'c0c1e4caa27986a9c6e28733f4f8fe62e4dbea77' }, h("div", { key: 'dcaeeb60be98ce88fad97775307a5a339c0b47f9', class: "shifted-stack-cover stack-cover-2" }), h("div", { key: 'b56848110f5c895b9d3301daba51d6d01659a63c', class: "shifted-stack-cover stack-cover-1" }))), h("div", { key: '019936f586e758c4f5c0f6694d5c2291c222869b', class: "cover-container" }, h("img", { key: 'f0e6af812e6b1575396c16470090969cf19571aa', src: (_a = this.cover) !== null && _a !== void 0 ? _a : defaultFallbackCover, "aria-hidden": "true", alt: "", onError: () => (this.cover = this.fallbackCover || defaultFallbackCover) }), h("slot", { key: '6556420f0cba2f2cac412b1386124c0b8e72db52', name: "coverOverlay" }))));
20
+ const hasAlt = !!this.coverAlt;
21
+ return (h(Host, { key: '4959777b26c741f28dda69863f49c0397caff9fb' }, this.multiple && (h(Fragment, { key: '8c233e819266fb48ace0ea12609edc99aaa1ae09' }, h("div", { key: '1bdffd9c1c61c2622bc805a2dafa0889c9363cea', class: "shifted-stack-cover stack-cover-2" }), h("div", { key: '4f5deda96190fd73cb0682bc696c9248bbe80642', class: "shifted-stack-cover stack-cover-1" }))), h("div", { key: 'ee5aefb424d44af9bb74a02325c19e337a144d29', class: "cover-container" }, h("img", { key: 'c5e44fb85106ba31f0b00ce4a878c36c19da37a3', src: (_a = this.cover) !== null && _a !== void 0 ? _a : defaultFallbackCover, "aria-hidden": hasAlt ? undefined : "true", alt: hasAlt ? this.coverAlt : "", onError: () => (this.cover = this.fallbackCover || defaultFallbackCover) }), h("slot", { key: '9db828601df2de1c0dec697d5796bfb47abdf2f6', name: "coverOverlay" }))));
21
22
  }
22
23
  static get is() { return "z-book-cover"; }
23
24
  static get encapsulation() { return "shadow"; }
@@ -110,6 +111,25 @@ export class ZBookCover {
110
111
  "reflect": true,
111
112
  "attribute": "bordered",
112
113
  "defaultValue": "false"
114
+ },
115
+ "coverAlt": {
116
+ "type": "string",
117
+ "mutable": false,
118
+ "complexType": {
119
+ "original": "string",
120
+ "resolved": "string",
121
+ "references": {}
122
+ },
123
+ "required": false,
124
+ "optional": true,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": "[optional] Alt text for the cover image. When provided, the image is exposed to assistive technologies."
128
+ },
129
+ "getter": false,
130
+ "setter": false,
131
+ "reflect": false,
132
+ "attribute": "cover-alt"
113
133
  }
114
134
  };
115
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-book-cover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACrF,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AAEjF;;;;;;;GAOG;AAMH,MAAM,OAAO,UAAU;IALvB;QAcE,qEAAqE;QAErE,aAAQ,GAAG,KAAK,CAAC;QAEjB,oGAAoG;QAEpG,aAAQ,GAAG,KAAK,CAAC;KAuBlB;IArBC,MAAM;;QACJ,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,QAAQ,IAAI,CAChB,EAAC,QAAQ;gBACP,4DAAK,KAAK,EAAC,mCAAmC,GAAO;gBACrD,4DAAK,KAAK,EAAC,mCAAmC,GAAO,CAC5C,CACZ;YACD,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,4DACE,GAAG,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,oBAAoB,iBAC3B,MAAM,EAClB,GAAG,EAAC,EAAE,EACN,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,IAAI,oBAAoB,CAAC,GACxE;gBACF,6DAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Fragment, Host, Prop, h} from \"@stencil/core\";\nimport defaultFallbackCover from \"../../assets/images/png/placeholder-cover.png\";\n\n/**\n * This component displays a book cover image,\n * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.\n * The aspect ratio of the cover image is preserved.\n * Alignment of the image inside the container can be customized via CSS properties.\n *\n * @slot coverOverlay - Content to be displayed over the cover image (e.g. a label). The overlay is positioned at the bottom of the cover. Has some default styling (such as the colored background) that can be customized via CSS.\n */\n@Component({\n tag: \"z-book-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBookCover implements ComponentInterface {\n /** URL of the cover image. */\n @Prop()\n cover: string;\n\n /** URL of the fallback cover image. */\n @Prop()\n fallbackCover: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop({reflect: true})\n multiple = false;\n\n /** Whether to apply a border around the cover image (always applied when `multiple` is enabled). */\n @Prop({reflect: true})\n bordered = false;\n\n render(): HTMLZBookCoverElement {\n return (\n <Host>\n {this.multiple && (\n <Fragment>\n <div class=\"shifted-stack-cover stack-cover-2\"></div>\n <div class=\"shifted-stack-cover stack-cover-1\"></div>\n </Fragment>\n )}\n <div class=\"cover-container\">\n <img\n src={this.cover ?? defaultFallbackCover}\n aria-hidden=\"true\"\n alt=\"\"\n onError={() => (this.cover = this.fallbackCover || defaultFallbackCover)}\n />\n <slot name=\"coverOverlay\"></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-book-cover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACrF,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AAEjF;;;;;;;GAOG;AAMH,MAAM,OAAO,UAAU;IALvB;QAcE,qEAAqE;QAErE,aAAQ,GAAG,KAAK,CAAC;QAEjB,oGAAoG;QAEpG,aAAQ,GAAG,KAAK,CAAC;KA6BlB;IAvBC,MAAM;;QACJ,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAE/B,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,QAAQ,IAAI,CAChB,EAAC,QAAQ;gBACP,4DAAK,KAAK,EAAC,mCAAmC,GAAO;gBACrD,4DAAK,KAAK,EAAC,mCAAmC,GAAO,CAC5C,CACZ;YACD,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,4DACE,GAAG,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,oBAAoB,iBAC1B,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EACxC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,IAAI,oBAAoB,CAAC,GACxE;gBACF,6DAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Fragment, Host, Prop, h} from \"@stencil/core\";\nimport defaultFallbackCover from \"../../assets/images/png/placeholder-cover.png\";\n\n/**\n * This component displays a book cover image,\n * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.\n * The aspect ratio of the cover image is preserved.\n * Alignment of the image inside the container can be customized via CSS properties.\n *\n * @slot coverOverlay - Content to be displayed over the cover image (e.g. a label). The overlay is positioned at the bottom of the cover. Has some default styling (such as the colored background) that can be customized via CSS.\n */\n@Component({\n tag: \"z-book-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBookCover implements ComponentInterface {\n /** URL of the cover image. */\n @Prop()\n cover: string;\n\n /** URL of the fallback cover image. */\n @Prop()\n fallbackCover: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop({reflect: true})\n multiple = false;\n\n /** Whether to apply a border around the cover image (always applied when `multiple` is enabled). */\n @Prop({reflect: true})\n bordered = false;\n\n /** [optional] Alt text for the cover image. When provided, the image is exposed to assistive technologies. */\n @Prop()\n coverAlt?: string;\n\n render(): HTMLZBookCoverElement {\n const hasAlt = !!this.coverAlt;\n\n return (\n <Host>\n {this.multiple && (\n <Fragment>\n <div class=\"shifted-stack-cover stack-cover-2\"></div>\n <div class=\"shifted-stack-cover stack-cover-1\"></div>\n </Fragment>\n )}\n <div class=\"cover-container\">\n <img\n src={this.cover ?? defaultFallbackCover}\n aria-hidden={hasAlt ? undefined : \"true\"}\n alt={hasAlt ? this.coverAlt : \"\"}\n onError={() => (this.cover = this.fallbackCover || defaultFallbackCover)}\n />\n <slot name=\"coverOverlay\"></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -205,10 +205,10 @@ export class ZBreadcrumb {
205
205
  ];
206
206
  }
207
207
  render() {
208
- return (h(Host, { key: '84c8968de32dd42b1c186c3e21ef455ed3419b1b', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: 'a33b0ec178cf876482c3c598be9b08f3af192e74', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
208
+ return (h(Host, { key: 'ea18e6bec466825e194807d80ecf0c132915b8a4', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: '080ce8ea0bc8dd13d94e1ded21878f61a8e1f09e', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
209
209
  semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
210
210
  underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
211
- } }, h("ol", { key: 'b73a28050ec43c5441b675b497236ae0210b6657' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
211
+ } }, h("ol", { key: 'ebced04e4063e2db12f1ab2a5fa39fdb447973fa' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
212
212
  }
213
213
  static get is() { return "z-breadcrumb"; }
214
214
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class ZButtonSort {
36
36
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
37
37
  }
38
38
  render() {
39
- return (h("button", { key: '8bb124d8ffcce4ac1d7c01bc31f9256da769a90b', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '6ab1b449e4d9c539683353cdcf8a4c8b3bdfa578', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'd67c255b32c814e0b6afec14c79ba422b8b2a57d', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '77ea4b67643b28db4737dc301bc416595581b93f', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '098881514d797b081e36f7ad66c9f60ea2423b27', name: "caret-up-down", width: 16, height: 16 })));
39
+ return (h("button", { key: '269e2d1a959dde597965561177dde2374d92a27b', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: 'e33cb753f6c120cdd12f5ea4251ca626cfc28711', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'c852c01e557ca5245352ddcc7e35a9fe2d9710fb', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: 'abc484df3ccc4a976831c3664e1e451620741419', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: 'f6325a573dd1f8f2208fb3edd70d176a2b7ad141', name: "caret-up-down", width: 16, height: 16 })));
40
40
  }
41
41
  static get is() { return "z-button-sort"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -12,12 +12,12 @@ export class ZChip {
12
12
  this.ariaLabel = "";
13
13
  }
14
14
  render() {
15
- return (h("div", { key: '82e7b420794008dd46a89c207a6d72510a28d562', class: {
15
+ return (h("div", { key: '9a098f7915cfbb84e2290a853fe59b7e30c6f555', class: {
16
16
  "z-chip-container": true,
17
17
  "z-chip-interactive": !!this.interactiveIcon,
18
18
  [this.type]: true,
19
19
  [this.variant]: true,
20
- }, "aria-disabled": this.disabled ? "true" : undefined }, this.icon && h("z-icon", { key: 'c66f7b3473c3f7f2af628645e59a6b9a75eafa8a', name: this.icon }), h("slot", { key: 'a5fbe9ef849681546a521531f0a69ef29fc2bc63' }), this.interactiveIcon && (h("button", { key: 'f4adbbb6472e8a04498811dd0ffa077784cbcba6', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: '690dc0bed21c44a3d20628192b0cc99665d90b24', class: "interactive-icon", name: this.interactiveIcon })))));
20
+ }, "aria-disabled": this.disabled ? "true" : undefined }, this.icon && h("z-icon", { key: 'e563c31c093f46beeda6e658c5c05e7c16a56204', name: this.icon }), h("slot", { key: '9b186a85b090df0ab12c030ee3a517ef253e62d6' }), this.interactiveIcon && (h("button", { key: '4a5dd47a8ec40062d0b564f165adb81b11a3b4a5', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: '092864aef71920ba68f9d778797489e476c51971', class: "interactive-icon", name: this.interactiveIcon })))));
21
21
  }
22
22
  static get is() { return "z-chip"; }
23
23
  static get encapsulation() { return "scoped"; }
@@ -192,7 +192,7 @@ export class ZColorPicker {
192
192
  this.colorKeysByRow = this.sortColorKeysByRow();
193
193
  }
194
194
  render() {
195
- return (h(Host, { key: '8ab27c4b68bd295e1bda15e78f1f41bfbfc66b47', role: "listbox", "aria-label": this.htmlAriaLabel || LOCALES[this.lng]["Select a color"], tabIndex: 0 }, this.colorKeysByRow.map((colorKey) => {
195
+ return (h(Host, { key: 'ea14b99e379cb85851c041edc4c4136afd693ba1', role: "listbox", "aria-label": this.htmlAriaLabel || LOCALES[this.lng]["Select a color"], tabIndex: 0 }, this.colorKeysByRow.map((colorKey) => {
196
196
  var _a;
197
197
  return (h("button", { class: "color-swatch", "data-color": colorKey, role: "option", "aria-selected": ((_a = this.selectedColor) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === colorKey.toUpperCase() ? "true" : "false", tabIndex: -1, onClick: () => (this.selectedColor = colorKey), disabled: this.disableTransparent && colorKey === "#FFFFFF00" }, h("div", { class: "color-swatch", role: "img", "aria-roledescription": LOCALES[this.lng]["Color swatch"], "aria-label": ColorPickerPalette[colorKey][this.lng], title: ColorPickerPalette[colorKey][this.lng], style: { backgroundColor: colorKey } })));
198
198
  })));
@@ -297,7 +297,7 @@ export class ZCombobox {
297
297
  return (h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
298
298
  }
299
299
  render() {
300
- return (h("div", { key: '6ada0f3dc9aebeb5c97843c18935199f6c981e28', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
300
+ return (h("div", { key: 'a2df3543d11b1e568d1aa397a0cc4acd78496a1b', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
301
301
  }
302
302
  static get is() { return "z-combobox"; }
303
303
  static get encapsulation() { return "shadow"; }
@@ -44,9 +44,9 @@ export class ZCoverHero {
44
44
  return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'bb147f3b614268218fba165360012031572ec76b' }, this.variant === CoverHeroVariant.STACKED &&
47
+ return (h(Host, { key: '94a8612be36a5b2b14c93e68b8b6ecbf2cfb47c9' }, this.variant === CoverHeroVariant.STACKED &&
48
48
  this.contentPosition === CoverHeroContentPosition.TOP &&
49
- this.renderContent(), h("div", { key: '94c697c41b4d98ea9f5be00634a3de1fd214ea72', class: "main-container" }, h("div", { key: 'e1a181735381dbc2472085c7e1d7082e1564185a', class: "cover-container" }, h("slot", { key: '1692cfa7f6a9ee926a262e04e8912a72f5a95cca', name: "cover" })), h("slot", { key: 'c13a059c162d85e46d3f116a8b1fd9e3a6e363f7', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
49
+ this.renderContent(), h("div", { key: '7b57691247bc581f9c43f36c475892cf7927abbf', class: "main-container" }, h("div", { key: '46ff0b8886b5450e2a2d3a5df5cc4fd3adf5962b', class: "cover-container" }, h("slot", { key: 'c84a53350c2077d1201cd938745cb2e5c797b76b', name: "cover" })), h("slot", { key: '6debb9704761c43ed9c485b66e1e97e41f7780da', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
50
50
  this.contentPosition === CoverHeroContentPosition.BOTTOM &&
51
51
  this.renderContent()));
52
52
  }
@@ -10,7 +10,7 @@ export class ZDivider {
10
10
  this.orientation = DividerOrientation.HORIZONTAL;
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: 'ad8d9a15195becf87ba4a03e73a279ecee4d4b93', class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
13
+ return (h(Host, { key: '43a290ca09c39c630779133fa5fd9912fca785e0', class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
14
14
  }
15
15
  static get is() { return "z-divider"; }
16
16
  static get encapsulation() { return "scoped"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class ZGhostLoading {
3
3
  render() {
4
- return h(Host, { key: '36459896003d9c65cc0e969a184987ddcac8c962' });
4
+ return h(Host, { key: '15c0d5cc4985a23bd1cba510e6c1d323ac0be0c4' });
5
5
  }
6
6
  static get is() { return "z-ghost-loading"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class ZIcon {
48
48
  return (h("svg", { id: this.iconid || undefined, fill: this.fill ? `var(--${this.fill})` : undefined, viewBox: "0 0 1000 1000", width: this.width, height: this.height, "aria-hidden": "true" }, this.selectPathOrPolygon(ICONS[this.getTransparentIndicatorIconIfNeeded()])));
49
49
  }
50
50
  render() {
51
- return (h(Host, { key: 'a25f6701cc68dc9fbf9d14b4e8747d4ead9ee44b', "aria-hidden": "true" }, this.hasColorIndicator && !this.needsTransparentIndicator ? (h("div", { class: "icon-wrapper" }, this.renderColorIndicator(), this.renderBaseIcon())) : (this.renderBaseIcon())));
51
+ return (h(Host, { key: '7c57cd059787e6ec7d12b0aceb02f8b6bb5b79a2', "aria-hidden": "true" }, this.hasColorIndicator && !this.needsTransparentIndicator ? (h("div", { class: "icon-wrapper" }, this.renderColorIndicator(), this.renderBaseIcon())) : (this.renderBaseIcon())));
52
52
  }
53
53
  static get is() { return "z-icon"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ export class ZInfoBox {
11
11
  this.infoBoxClose.emit({ boxid: this.boxid });
12
12
  }
13
13
  render() {
14
- return (h("div", { key: 'c3062d082fff5558ebcc44b6c15feaa9d4fdf9f9', id: this.boxid }, h("slot", { key: 'd4d4b0bdb644a777c22489afa52c990748bf1da7', name: "content" }), this.isclosable && (h("z-icon", { key: '4b02226c9a11e800ad1ac956471683f4546d39c3', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
14
+ return (h("div", { key: '3cc569ffebd21d03c33f5764291fca612caae620', id: this.boxid }, h("slot", { key: 'a4110163e695bbbfa7e291771e3b531f3f678a3b', name: "content" }), this.isclosable && (h("z-icon", { key: 'bb3ec9d56fa2c52b38ceea0cfaf70a5c04dffd65', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
15
15
  }
16
16
  static get is() { return "z-info-box"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -54,7 +54,7 @@ export class ZInfoReveal {
54
54
  }
55
55
  }
56
56
  render() {
57
- return (h(Host, { key: 'f9bc69d9bdbc9b2e30687f54877b241b51df3e45', open: this.open }, h("button", { key: 'f0dc5ceaf6f24d5597699b3158074403bac8f641', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '5cddcacfd8d9e5f3dc8a1c171aa50621d6e2b044', name: this.icon }), this.label && h("span", { key: '5417e101306098a399a9f8e6a39d1637be4f8901', class: "z-info-reveal-label" }, this.label)), h("div", { key: 'bd57a9686560c17c5d670a6fa87396a509ffb50a', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'bd5fd2a1cf9c2a95fbb9ea966a0f09ec1940c9f9' }), h("button", { key: '73a9178e3ea240abad5d91f2fd82879313d2df24', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: 'de404809d5ea1fd51b36abc74518448c7502927e', name: "multiply" })))));
57
+ return (h(Host, { key: '062623399b8e6d19274dd482570f4ae1649ef23b', open: this.open }, h("button", { key: '1fc4f3951ad4055943e7ef8fc61d94cc425e70c2', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '67d263d17b3a238af33c7fd5785a4409b3817eb7', name: this.icon }), this.label && h("span", { key: '8de421e649b240588bd11a87a4f241ddd7bee004', class: "z-info-reveal-label" }, this.label)), h("div", { key: 'd588ee526e87e72712a00b78c9090ed40b6473c9', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'd6739b3a91ba44106ee1f72abd185bf2a7bc5727' }), h("button", { key: '978742081a1d1f51b0e05d99989e0bfc5c7cf276', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: 'bef98b8858f38d06099d94a33bb8b97c588a8465', name: "multiply" })))));
58
58
  }
59
59
  static get is() { return "z-info-reveal"; }
60
60
  static get encapsulation() { return "shadow"; }
@@ -165,7 +165,8 @@ export class ZInput {
165
165
  ? { "aria-describedby": this.htmlAriaDescribedBy || `${this.htmlid}-message` }
166
166
  : {};
167
167
  const ariaInvalid = this.status === InputStatus.ERROR ? { "aria-invalid": "true" } : {};
168
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getAriaAttributes()), expanded), controls), autocomplete), activedescendant), ariaDescribedby), ariaInvalid);
168
+ const required = this.required ? { "aria-required": "true" } : {};
169
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getAriaAttributes()), expanded), controls), autocomplete), activedescendant), ariaDescribedby), ariaInvalid), required);
169
170
  }
170
171
  getFocusBlurAttributes() {
171
172
  return {
@@ -214,7 +215,7 @@ export class ZInput {
214
215
  } }, h("z-icon", { name: "multiply", class: this.size })));
215
216
  }
216
217
  renderShowHidePassword() {
217
- return (h("button", { type: "button", class: "input-icon toggle-password-icon", 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", class: this.size })));
218
+ return (h("button", { type: "button", class: "input-icon toggle-password-icon", disabled: this.disabled, "aria-label": "mostra password", "aria-pressed": !this.passwordHidden ? "true" : "false", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
218
219
  }
219
220
  renderMessage() {
220
221
  if (boolean(this.message) === false) {
@@ -236,7 +237,8 @@ export class ZInput {
236
237
  }
237
238
  /* START checkbox */
238
239
  renderCheckbox() {
239
- return (h("div", { class: "checkbox-wrapper" }, h("input", Object.assign({ 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 }, this.getAriaAttributes(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
240
+ const ariaRequired = this.required ? { "aria-required": "true" } : {};
241
+ return (h("div", { class: "checkbox-wrapper" }, h("input", Object.assign({ 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 }, ariaRequired, this.getAriaAttributes(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
240
242
  "checkbox-label": true,
241
243
  "after": this.labelPosition === LabelPosition.RIGHT,
242
244
  "before": this.labelPosition === LabelPosition.LEFT,
@@ -245,7 +247,8 @@ export class ZInput {
245
247
  /* END checkbox */
246
248
  /* START radio */
247
249
  renderRadio() {
248
- return (h("div", { class: "radio-wrapper" }, h("input", Object.assign({ 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 }, this.getAriaAttributes(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
250
+ const ariaRequired = this.required ? { "aria-required": "true" } : {};
251
+ return (h("div", { class: "radio-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }, this.getAriaAttributes(), this.getFocusBlurAttributes(), ariaRequired)), h("label", { htmlFor: this.htmlid, class: {
249
252
  "radio-label": true,
250
253
  "after": this.labelPosition === LabelPosition.RIGHT,
251
254
  "before": this.labelPosition === LabelPosition.LEFT,
@@ -267,7 +270,7 @@ export class ZInput {
267
270
  default:
268
271
  input = this.renderInputText(this.type);
269
272
  }
270
- return h(Host, { key: '2536f6387f2325190522fc8cc4f788147bead800' }, input);
273
+ return h(Host, { key: '7a98a32f222c422a2f253f0cadd78cf27e0c8913' }, input);
271
274
  }
272
275
  static get is() { return "z-input"; }
273
276
  static get encapsulation() { return "scoped"; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-input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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Listen,\n Method,\n Prop,\n State,\n h,\n} from \"@stencil/core\";\nimport {Fragment, Host, JSXBase} from \"@stencil/core/internal\";\nimport {ControlSize, InputStatus, InputType, LabelPosition} from \"../../beans\";\nimport {boolean, randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-input\",\n styleUrls: [\"styles-general.css\", \"styles-text.css\", \"styles-textarea.css\", \"styles-checkbox-radio.css\"],\n shadow: false,\n scoped: true,\n})\nexport class ZInput implements ComponentInterface {\n @Element() hostElement: HTMLZInputElement;\n\n /** the id of the input element */\n @Prop()\n htmlid = `id-${randomId()}`;\n\n /** input types */\n @Prop()\n type: InputType;\n\n /** the input name */\n @Prop()\n name?: string;\n\n /** the input label */\n @Prop()\n label?: string;\n\n /** the input aria-label */\n @Prop()\n ariaLabel = \"\";\n\n /** the input aria-expaded: available for text, password, number, email */\n @Prop()\n htmlAriaExpanded = \"\";\n\n /** the input aria-controls (optional): available for text, password, number, email */\n @Prop()\n htmlAriaControls?: string;\n\n /** the input aria-autocomplete (optional): available for text, password, number, email */\n @Prop()\n htmlAriaAutocomplete?: string;\n\n /** the input aria-activedescendant (optional): available for text, password, number, email */\n @Prop()\n htmlAriaActivedescendant?: string;\n\n /** the input aria-describedby (optional) */\n @Prop()\n htmlAriaDescribedBy?: string;\n\n /** the input aria-labelledby (optional) */\n @Prop()\n htmlAriaLabelledby?: string;\n\n /** the input value */\n @Prop({mutable: true})\n value?: string;\n\n /** the input is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** the input is readonly */\n @Prop()\n readonly?: boolean = false;\n\n /** the input is required (optional): available for text, password, number, email, textarea, checkbox */\n @Prop()\n required?: boolean = false;\n\n /** checked: available for checkbox, radio */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** the input placeholder (optional) */\n @Prop()\n placeholder?: string;\n\n /** the input html title (optional) */\n @Prop()\n htmltitle?: string;\n\n /** the input status (optional): available for text, password, number, email, textarea */\n @Prop()\n status?: InputStatus;\n\n /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */\n @Prop()\n message?: string | boolean = true;\n\n /** the input label position: available for checkbox, radio */\n @Prop()\n labelPosition?: LabelPosition = LabelPosition.RIGHT;\n\n /** the input has autocomplete option (optional): available for text, password, number, email */\n @Prop()\n autocomplete?: string;\n\n /** the input role */\n @Prop()\n role = \"\";\n\n /** render clear icon when typing (optional): available for text */\n @Prop()\n hasclearicon?: boolean = true;\n\n /** render icon (optional): available for text */\n @Prop()\n icon?: string;\n\n /** min number value (optional): available for number */\n @Prop()\n min?: number;\n\n /** Min length value (optional): available for text */\n @Prop()\n minlength?: number;\n\n /** max number value (optional): available for number */\n @Prop()\n max?: number;\n\n /** Max length value (optional): available for text */\n @Prop()\n maxlength?: number;\n\n /** step number value (optional): available for number */\n @Prop()\n step?: number;\n\n /** pattern value (optional): available for tel, text, search, url, email, password*/\n @Prop()\n pattern?: string;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n isTyping = false;\n\n @State()\n passwordHidden = true;\n\n private timer;\n\n private typingtimeout = 300;\n\n private inputRef: HTMLInputElement;\n\n @Listen(\"inputCheck\", {target: \"document\"})\n inputCheckListener(e: CustomEvent): void {\n const data = e.detail;\n switch (this.type) {\n case InputType.RADIO:\n if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {\n this.checked = false;\n }\n break;\n }\n }\n\n /** get checked status */\n @Method()\n async isChecked(): Promise<boolean> {\n switch (this.type) {\n case InputType.CHECKBOX:\n case InputType.RADIO:\n return this.checked;\n default:\n console.warn(\"`isChecked` method is only available for type `checkbox` and `radio`\");\n\n return false;\n }\n }\n\n /** Emitted on input value change, returns value, validity */\n @Event()\n inputChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n if (!this.isTyping) {\n this.emitStartTyping();\n }\n\n let validity: ValidityState;\n if (this.type === InputType.TEXTAREA) {\n validity = this.getValidity(\"textarea\");\n } else {\n validity = this.getValidity(\"input\");\n }\n this.value = value;\n this.inputChange.emit({value, validity});\n\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.emitStopTyping(this.value, validity);\n }, this.typingtimeout);\n }\n\n /** Emitted when user starts typing */\n @Event()\n startTyping: EventEmitter;\n\n private emitStartTyping(): void {\n this.isTyping = true;\n this.startTyping.emit();\n }\n\n /** Emitted when user stops typing, returns value, validity */\n @Event()\n stopTyping: EventEmitter;\n\n private emitStopTyping(value: string, validity: ValidityState): void {\n this.isTyping = false;\n this.stopTyping.emit({\n value: value,\n validity: validity,\n });\n }\n\n /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */\n @Event()\n inputCheck: EventEmitter;\n\n private emitInputCheck(checked: boolean): void {\n this.inputCheck.emit({\n id: this.htmlid,\n checked: checked,\n type: this.type,\n name: this.name,\n value: this.value,\n validity: this.getValidity(\"input\"),\n });\n }\n\n /** Emitted on input focus */\n @Event()\n inputFocus: EventEmitter;\n\n private emitInputFocus(): void {\n this.inputFocus.emit({id: this.htmlid});\n }\n\n /** Emitted on input blur */\n @Event()\n inputBlur: EventEmitter;\n\n private emitInputBlur(): void {\n this.inputBlur.emit({id: this.htmlid});\n }\n\n private getValidity(type: string): ValidityState {\n const input = this.hostElement.querySelector(type) as HTMLInputElement;\n\n return input.validity;\n }\n\n /* START text/password/email/number */\n\n private getTextAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n id: this.htmlid,\n name: this.name,\n placeholder: this.placeholder,\n value: this.value,\n disabled: this.disabled,\n readonly: this.readonly,\n required: this.required,\n title: this.htmltitle,\n minlength: this.minlength,\n maxlength: this.maxlength,\n class: {\n [`input-${this.status}`]: !!this.status,\n },\n autocomplete: this.autocomplete,\n onInput: (e: InputEvent) => this.emitInputChange((e.target as HTMLInputElement).value),\n };\n }\n\n private getNumberAttributes(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (type != InputType.NUMBER) {\n return;\n }\n\n return {\n min: this.min,\n max: this.max,\n step: this.step,\n };\n }\n\n private getPatternAttribute(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (\n type != InputType.PASSWORD &&\n type != InputType.TEXT &&\n type != InputType.TEL &&\n type != InputType.SEARCH &&\n type != InputType.URL &&\n type != InputType.EMAIL\n ) {\n return;\n }\n\n return {\n pattern: this.pattern,\n };\n }\n\n private inputHasMessage(): boolean {\n if (boolean(this.message) === false || boolean(this.message) === true) {\n return false;\n }\n\n return true;\n }\n\n private getAriaAttributes(): Record<string, unknown> {\n return {\n ...(this.role ? {role: this.role} : {}),\n ...(this.htmlAriaDescribedBy ? {\"aria-describedby\": this.htmlAriaDescribedBy} : {}),\n ...(this.htmlAriaLabelledby ? {\"aria-labelledby\": this.htmlAriaLabelledby} : {}),\n };\n }\n\n private getTextAriaAttributes(): Record<string, unknown> {\n const expanded = this.htmlAriaExpanded ? {\"aria-expanded\": this.htmlAriaExpanded} : {};\n const controls = this.htmlAriaControls ? {\"aria-controls\": this.htmlAriaControls} : {};\n const autocomplete = this.htmlAriaAutocomplete ? {\"aria-autocomplete\": this.htmlAriaAutocomplete} : {};\n const activedescendant = this.htmlAriaActivedescendant\n ? {\"aria-activedescendant\": this.htmlAriaActivedescendant}\n : {};\n const ariaDescribedby =\n this.htmlAriaDescribedBy || this.inputHasMessage()\n ? {\"aria-describedby\": this.htmlAriaDescribedBy || `${this.htmlid}-message`}\n : {};\n\n const ariaInvalid = this.status === InputStatus.ERROR ? {\"aria-invalid\": \"true\"} : {};\n\n return {\n ...this.getAriaAttributes(),\n ...expanded,\n ...controls,\n ...autocomplete,\n ...activedescendant,\n ...ariaDescribedby,\n ...ariaInvalid,\n };\n }\n\n private getFocusBlurAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n onFocus: () => this.emitInputFocus(),\n onBlur: () => this.emitInputBlur(),\n };\n }\n\n private renderInputText(type: InputType = InputType.TEXT): HTMLDivElement {\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n const attr = {\n ...this.getTextAttributes(),\n ...this.getNumberAttributes(type),\n ...this.getPatternAttribute(type),\n ...ariaLabel,\n ...this.getTextAriaAttributes(),\n ...this.getFocusBlurAttributes(),\n };\n if (this.icon || type === InputType.PASSWORD) {\n Object.assign(attr.class, {\"has-icon\": true});\n }\n if (this.hasclearicon && type != InputType.NUMBER) {\n Object.assign(attr.class, {\"has-clear-icon\": true});\n }\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div>\n <input\n type={type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type}\n {...attr}\n ref={(el) => (this.inputRef = el)}\n />\n {this.renderIcons()}\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n private renderLabel(): HTMLLabelElement {\n if (!this.label) {\n return;\n }\n\n return (\n <label\n class=\"z-label body-5-sb\"\n id={`${this.htmlid}_label`}\n htmlFor={this.htmlid}\n >\n {this.label}\n </label>\n );\n }\n\n private renderIcons(): HTMLSpanElement {\n return (\n <span class=\"icons-wrapper\">\n {this.renderResetIcon()}\n {this.renderIcon()}\n </span>\n );\n }\n\n private renderIcon(): HTMLButtonElement {\n if (this.type === InputType.PASSWORD) {\n return this.renderShowHidePassword();\n }\n\n if (!this.icon) {\n return;\n }\n\n return (\n <z-icon\n name={this.icon}\n class={{[this.size]: true, \"input-icon\": true}}\n />\n );\n }\n\n private renderResetIcon(): HTMLButtonElement {\n let hidden = false;\n if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {\n hidden = true;\n }\n\n return (\n <button\n type=\"button\"\n class={{\"reset-icon\": true, \"input-icon\": true, hidden}}\n aria-label=\"cancella il contenuto dell'input\"\n onClick={() => {\n this.inputRef.value = \"\";\n this.emitInputChange(\"\");\n this.inputRef.focus();\n }}\n >\n <z-icon\n name=\"multiply\"\n class={this.size}\n />\n </button>\n );\n }\n\n private renderShowHidePassword(): HTMLButtonElement {\n return (\n <button\n type=\"button\"\n class=\"input-icon toggle-password-icon\"\n disabled={this.disabled}\n aria-label={this.passwordHidden ? \"mostra password\" : \"nascondi password\"}\n onClick={() => (this.passwordHidden = !this.passwordHidden)}\n >\n <z-icon\n name={this.passwordHidden ? \"view-filled\" : \"view-off-filled\"}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderMessage(): HTMLZInputMessageElement {\n if (boolean(this.message) === false) {\n return;\n }\n\n return (\n <z-input-message\n html-id={`${this.htmlid}-message`}\n message={boolean(this.message) === true ? undefined : (this.message as string)}\n status={this.status}\n class={this.size}\n disabled={this.disabled}\n />\n );\n }\n\n /* END text/password/email/number */\n\n /* START textarea */\n\n private renderTextarea(): HTMLDivElement {\n const attributes = this.getTextAttributes();\n const ariaAttributes = this.getTextAriaAttributes();\n\n return (\n <Fragment>\n {this.renderLabel()}\n <div\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"textarea-wrapper\": true,\n \"readonly\": !!attributes.readonly,\n }}\n >\n <textarea\n {...attributes}\n {...ariaAttributes}\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"z-scrollbar\": true,\n }}\n aria-label={this.ariaLabel || undefined}\n ></textarea>\n </div>\n {this.renderMessage()}\n </Fragment>\n );\n }\n\n /* END textarea */\n\n private handleCheck(ev: Event): void {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.emitInputCheck(this.checked);\n }\n\n /* START checkbox */\n private renderCheckbox(): HTMLDivElement {\n return (\n <div class=\"checkbox-wrapper\">\n <input\n id={this.htmlid}\n type=\"checkbox\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getAriaAttributes()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"checkbox-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"checkbox-checked\" : \"checkbox\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label}></span>}\n </label>\n </div>\n );\n }\n\n /* END checkbox */\n\n /* START radio */\n private renderRadio(): HTMLDivElement {\n return (\n <div class=\"radio-wrapper\">\n <input\n id={this.htmlid}\n type=\"radio\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getAriaAttributes()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"radio-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"radio-button-checked\" : \"radio-button\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label} />}\n </label>\n </div>\n );\n }\n /* END radio */\n\n render(): HTMLInputElement | HTMLDivElement {\n let input;\n switch (this.type) {\n case InputType.TEXTAREA:\n input = this.renderTextarea();\n break;\n case InputType.CHECKBOX:\n input = this.renderCheckbox();\n break;\n case InputType.RADIO:\n input = this.renderRadio();\n break;\n default:\n input = this.renderInputText(this.type);\n }\n\n return <Host>{input}</Host>;\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAU,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQpD,MAAM,OAAO,MAAM;IANnB;QASE,kCAAkC;QAElC,WAAM,GAAG,MAAM,QAAQ,EAAE,EAAE,CAAC;QAc5B,2BAA2B;QAE3B,cAAS,GAAG,EAAE,CAAC;QAEf,0EAA0E;QAE1E,qBAAgB,GAAG,EAAE,CAAC;QA0BtB,4BAA4B;QAE5B,aAAQ,GAAa,KAAK,CAAC;QAE3B,4BAA4B;QAE5B,aAAQ,GAAa,KAAK,CAAC;QAE3B,wGAAwG;QAExG,aAAQ,GAAa,KAAK,CAAC;QAE3B,6CAA6C;QAE7C,YAAO,GAAa,KAAK,CAAC;QAc1B,4IAA4I;QAE5I,YA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Listen,\n Method,\n Prop,\n State,\n h,\n} from \"@stencil/core\";\nimport {Fragment, Host, JSXBase} from \"@stencil/core/internal\";\nimport {ControlSize, InputStatus, InputType, LabelPosition} from \"../../beans\";\nimport {boolean, randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-input\",\n styleUrls: [\"styles-general.css\", \"styles-text.css\", \"styles-textarea.css\", \"styles-checkbox-radio.css\"],\n shadow: false,\n scoped: true,\n})\nexport class ZInput implements ComponentInterface {\n @Element() hostElement: HTMLZInputElement;\n\n /** the id of the input element */\n @Prop()\n htmlid = `id-${randomId()}`;\n\n /** input types */\n @Prop()\n type: InputType;\n\n /** the input name */\n @Prop()\n name?: string;\n\n /** the input label */\n @Prop()\n label?: string;\n\n /** the input aria-label */\n @Prop()\n ariaLabel = \"\";\n\n /** the input aria-expaded: available for text, password, number, email */\n @Prop()\n htmlAriaExpanded = \"\";\n\n /** the input aria-controls (optional): available for text, password, number, email */\n @Prop()\n htmlAriaControls?: string;\n\n /** the input aria-autocomplete (optional): available for text, password, number, email */\n @Prop()\n htmlAriaAutocomplete?: string;\n\n /** the input aria-activedescendant (optional): available for text, password, number, email */\n @Prop()\n htmlAriaActivedescendant?: string;\n\n /** the input aria-describedby (optional) */\n @Prop()\n htmlAriaDescribedBy?: string;\n\n /** the input aria-labelledby (optional) */\n @Prop()\n htmlAriaLabelledby?: string;\n\n /** the input value */\n @Prop({mutable: true})\n value?: string;\n\n /** the input is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** the input is readonly */\n @Prop()\n readonly?: boolean = false;\n\n /** the input is required (optional): available for text, password, number, email, textarea, checkbox */\n @Prop()\n required?: boolean = false;\n\n /** checked: available for checkbox, radio */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** the input placeholder (optional) */\n @Prop()\n placeholder?: string;\n\n /** the input html title (optional) */\n @Prop()\n htmltitle?: string;\n\n /** the input status (optional): available for text, password, number, email, textarea */\n @Prop()\n status?: InputStatus;\n\n /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */\n @Prop()\n message?: string | boolean = true;\n\n /** the input label position: available for checkbox, radio */\n @Prop()\n labelPosition?: LabelPosition = LabelPosition.RIGHT;\n\n /** the input has autocomplete option (optional): available for text, password, number, email */\n @Prop()\n autocomplete?: string;\n\n /** the input role */\n @Prop()\n role = \"\";\n\n /** render clear icon when typing (optional): available for text */\n @Prop()\n hasclearicon?: boolean = true;\n\n /** render icon (optional): available for text */\n @Prop()\n icon?: string;\n\n /** min number value (optional): available for number */\n @Prop()\n min?: number;\n\n /** Min length value (optional): available for text */\n @Prop()\n minlength?: number;\n\n /** max number value (optional): available for number */\n @Prop()\n max?: number;\n\n /** Max length value (optional): available for text */\n @Prop()\n maxlength?: number;\n\n /** step number value (optional): available for number */\n @Prop()\n step?: number;\n\n /** pattern value (optional): available for tel, text, search, url, email, password*/\n @Prop()\n pattern?: string;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n isTyping = false;\n\n @State()\n passwordHidden = true;\n\n private timer;\n\n private typingtimeout = 300;\n\n private inputRef: HTMLInputElement;\n\n @Listen(\"inputCheck\", {target: \"document\"})\n inputCheckListener(e: CustomEvent): void {\n const data = e.detail;\n switch (this.type) {\n case InputType.RADIO:\n if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {\n this.checked = false;\n }\n break;\n }\n }\n\n /** get checked status */\n @Method()\n async isChecked(): Promise<boolean> {\n switch (this.type) {\n case InputType.CHECKBOX:\n case InputType.RADIO:\n return this.checked;\n default:\n console.warn(\"`isChecked` method is only available for type `checkbox` and `radio`\");\n\n return false;\n }\n }\n\n /** Emitted on input value change, returns value, validity */\n @Event()\n inputChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n if (!this.isTyping) {\n this.emitStartTyping();\n }\n\n let validity: ValidityState;\n if (this.type === InputType.TEXTAREA) {\n validity = this.getValidity(\"textarea\");\n } else {\n validity = this.getValidity(\"input\");\n }\n this.value = value;\n this.inputChange.emit({value, validity});\n\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.emitStopTyping(this.value, validity);\n }, this.typingtimeout);\n }\n\n /** Emitted when user starts typing */\n @Event()\n startTyping: EventEmitter;\n\n private emitStartTyping(): void {\n this.isTyping = true;\n this.startTyping.emit();\n }\n\n /** Emitted when user stops typing, returns value, validity */\n @Event()\n stopTyping: EventEmitter;\n\n private emitStopTyping(value: string, validity: ValidityState): void {\n this.isTyping = false;\n this.stopTyping.emit({\n value: value,\n validity: validity,\n });\n }\n\n /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */\n @Event()\n inputCheck: EventEmitter;\n\n private emitInputCheck(checked: boolean): void {\n this.inputCheck.emit({\n id: this.htmlid,\n checked: checked,\n type: this.type,\n name: this.name,\n value: this.value,\n validity: this.getValidity(\"input\"),\n });\n }\n\n /** Emitted on input focus */\n @Event()\n inputFocus: EventEmitter;\n\n private emitInputFocus(): void {\n this.inputFocus.emit({id: this.htmlid});\n }\n\n /** Emitted on input blur */\n @Event()\n inputBlur: EventEmitter;\n\n private emitInputBlur(): void {\n this.inputBlur.emit({id: this.htmlid});\n }\n\n private getValidity(type: string): ValidityState {\n const input = this.hostElement.querySelector(type) as HTMLInputElement;\n\n return input.validity;\n }\n\n /* START text/password/email/number */\n\n private getTextAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n id: this.htmlid,\n name: this.name,\n placeholder: this.placeholder,\n value: this.value,\n disabled: this.disabled,\n readonly: this.readonly,\n required: this.required,\n title: this.htmltitle,\n minlength: this.minlength,\n maxlength: this.maxlength,\n class: {\n [`input-${this.status}`]: !!this.status,\n },\n autocomplete: this.autocomplete,\n onInput: (e: InputEvent) => this.emitInputChange((e.target as HTMLInputElement).value),\n };\n }\n\n private getNumberAttributes(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (type != InputType.NUMBER) {\n return;\n }\n\n return {\n min: this.min,\n max: this.max,\n step: this.step,\n };\n }\n\n private getPatternAttribute(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (\n type != InputType.PASSWORD &&\n type != InputType.TEXT &&\n type != InputType.TEL &&\n type != InputType.SEARCH &&\n type != InputType.URL &&\n type != InputType.EMAIL\n ) {\n return;\n }\n\n return {\n pattern: this.pattern,\n };\n }\n\n private inputHasMessage(): boolean {\n if (boolean(this.message) === false || boolean(this.message) === true) {\n return false;\n }\n\n return true;\n }\n\n private getAriaAttributes(): Record<string, unknown> {\n return {\n ...(this.role ? {role: this.role} : {}),\n ...(this.htmlAriaDescribedBy ? {\"aria-describedby\": this.htmlAriaDescribedBy} : {}),\n ...(this.htmlAriaLabelledby ? {\"aria-labelledby\": this.htmlAriaLabelledby} : {}),\n };\n }\n\n private getTextAriaAttributes(): Record<string, unknown> {\n const expanded = this.htmlAriaExpanded ? {\"aria-expanded\": this.htmlAriaExpanded} : {};\n const controls = this.htmlAriaControls ? {\"aria-controls\": this.htmlAriaControls} : {};\n const autocomplete = this.htmlAriaAutocomplete ? {\"aria-autocomplete\": this.htmlAriaAutocomplete} : {};\n const activedescendant = this.htmlAriaActivedescendant\n ? {\"aria-activedescendant\": this.htmlAriaActivedescendant}\n : {};\n const ariaDescribedby =\n this.htmlAriaDescribedBy || this.inputHasMessage()\n ? {\"aria-describedby\": this.htmlAriaDescribedBy || `${this.htmlid}-message`}\n : {};\n\n const ariaInvalid = this.status === InputStatus.ERROR ? {\"aria-invalid\": \"true\"} : {};\n const required = this.required ? {\"aria-required\": \"true\"} : {};\n\n return {\n ...this.getAriaAttributes(),\n ...expanded,\n ...controls,\n ...autocomplete,\n ...activedescendant,\n ...ariaDescribedby,\n ...ariaInvalid,\n ...required,\n };\n }\n\n private getFocusBlurAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n onFocus: () => this.emitInputFocus(),\n onBlur: () => this.emitInputBlur(),\n };\n }\n\n private renderInputText(type: InputType = InputType.TEXT): HTMLDivElement {\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n const attr = {\n ...this.getTextAttributes(),\n ...this.getNumberAttributes(type),\n ...this.getPatternAttribute(type),\n ...ariaLabel,\n ...this.getTextAriaAttributes(),\n ...this.getFocusBlurAttributes(),\n };\n if (this.icon || type === InputType.PASSWORD) {\n Object.assign(attr.class, {\"has-icon\": true});\n }\n if (this.hasclearicon && type != InputType.NUMBER) {\n Object.assign(attr.class, {\"has-clear-icon\": true});\n }\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div>\n <input\n type={type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type}\n {...attr}\n ref={(el) => (this.inputRef = el)}\n />\n {this.renderIcons()}\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n private renderLabel(): HTMLLabelElement {\n if (!this.label) {\n return;\n }\n\n return (\n <label\n class=\"z-label body-5-sb\"\n id={`${this.htmlid}_label`}\n htmlFor={this.htmlid}\n >\n {this.label}\n </label>\n );\n }\n\n private renderIcons(): HTMLSpanElement {\n return (\n <span class=\"icons-wrapper\">\n {this.renderResetIcon()}\n {this.renderIcon()}\n </span>\n );\n }\n\n private renderIcon(): HTMLButtonElement {\n if (this.type === InputType.PASSWORD) {\n return this.renderShowHidePassword();\n }\n\n if (!this.icon) {\n return;\n }\n\n return (\n <z-icon\n name={this.icon}\n class={{[this.size]: true, \"input-icon\": true}}\n />\n );\n }\n\n private renderResetIcon(): HTMLButtonElement {\n let hidden = false;\n if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {\n hidden = true;\n }\n\n return (\n <button\n type=\"button\"\n class={{\"reset-icon\": true, \"input-icon\": true, hidden}}\n aria-label=\"cancella il contenuto dell'input\"\n onClick={() => {\n this.inputRef.value = \"\";\n this.emitInputChange(\"\");\n this.inputRef.focus();\n }}\n >\n <z-icon\n name=\"multiply\"\n class={this.size}\n />\n </button>\n );\n }\n\n private renderShowHidePassword(): HTMLButtonElement {\n return (\n <button\n type=\"button\"\n class=\"input-icon toggle-password-icon\"\n disabled={this.disabled}\n aria-label=\"mostra password\"\n aria-pressed={!this.passwordHidden ? \"true\" : \"false\"}\n onClick={() => (this.passwordHidden = !this.passwordHidden)}\n >\n <z-icon\n name={this.passwordHidden ? \"view-filled\" : \"view-off-filled\"}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderMessage(): HTMLZInputMessageElement {\n if (boolean(this.message) === false) {\n return;\n }\n\n return (\n <z-input-message\n html-id={`${this.htmlid}-message`}\n message={boolean(this.message) === true ? undefined : (this.message as string)}\n status={this.status}\n class={this.size}\n disabled={this.disabled}\n />\n );\n }\n\n /* END text/password/email/number */\n\n /* START textarea */\n\n private renderTextarea(): HTMLDivElement {\n const attributes = this.getTextAttributes();\n const ariaAttributes = this.getTextAriaAttributes();\n\n return (\n <Fragment>\n {this.renderLabel()}\n <div\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"textarea-wrapper\": true,\n \"readonly\": !!attributes.readonly,\n }}\n >\n <textarea\n {...attributes}\n {...ariaAttributes}\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"z-scrollbar\": true,\n }}\n aria-label={this.ariaLabel || undefined}\n ></textarea>\n </div>\n {this.renderMessage()}\n </Fragment>\n );\n }\n\n /* END textarea */\n\n private handleCheck(ev: Event): void {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.emitInputCheck(this.checked);\n }\n\n /* START checkbox */\n private renderCheckbox(): HTMLDivElement {\n const ariaRequired = this.required ? {\"aria-required\": \"true\"} : {};\n\n return (\n <div class=\"checkbox-wrapper\">\n <input\n id={this.htmlid}\n type=\"checkbox\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...ariaRequired}\n {...this.getAriaAttributes()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"checkbox-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"checkbox-checked\" : \"checkbox\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label}></span>}\n </label>\n </div>\n );\n }\n\n /* END checkbox */\n\n /* START radio */\n private renderRadio(): HTMLDivElement {\n const ariaRequired = this.required ? {\"aria-required\": \"true\"} : {};\n\n return (\n <div class=\"radio-wrapper\">\n <input\n id={this.htmlid}\n type=\"radio\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getAriaAttributes()}\n {...this.getFocusBlurAttributes()}\n {...ariaRequired}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"radio-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"radio-button-checked\" : \"radio-button\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label} />}\n </label>\n </div>\n );\n }\n /* END radio */\n\n render(): HTMLInputElement | HTMLDivElement {\n let input;\n switch (this.type) {\n case InputType.TEXTAREA:\n input = this.renderTextarea();\n break;\n case InputType.CHECKBOX:\n input = this.renderCheckbox();\n break;\n case InputType.RADIO:\n input = this.renderRadio();\n break;\n default:\n input = this.renderInputText(this.type);\n }\n\n return <Host>{input}</Host>;\n }\n}\n"]}
@@ -20,7 +20,7 @@ export class ZInputMessage {
20
20
  this.onMessageChange();
21
21
  }
22
22
  render() {
23
- return (h(Host, Object.assign({ key: '575ca29cba9f2d617b8b2c65bb054204e7aa411c' }, this.statusRole), this.statusIcons[this.status] && this.message && h("z-icon", { key: '6b9a19626fac468cdf5773aebd66cba90489eaa3', name: this.statusIcons[this.status] }), h("span", { key: 'c951a0146f5fe8def8428aee39ce923b24aa23bb', id: this.htmlId, innerHTML: this.message })));
23
+ return (h(Host, Object.assign({ key: 'a35cc36ee979d11215b973a0f11e2c8f59105a50' }, this.statusRole, { id: this.htmlId }), this.statusIcons[this.status] && this.message && h("z-icon", { key: 'be5aa19afcdddefe15f252b8ea175b0615a5e983', name: this.statusIcons[this.status] }), h("span", { key: 'b1d11a0a9694e604b6aa252c2d8a77143288ad99', innerHTML: this.message })));
24
24
  }
25
25
  static get is() { return "z-input-message"; }
26
26
  static get encapsulation() { return "shadow"; }