@zanichelli/albe-web-components 19.2.6-RC2 → 19.2.7

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 (250) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/{iconset-Bcbz2MS1.js → iconset-oiCBBbd2.js} +15 -3
  3. package/dist/cjs/index-D_S5lGcb.js +4 -4
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/web-components-library.cjs.js +1 -1
  7. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/z-app-header_12.cjs.entry.js +127 -199
  9. package/dist/cjs/z-combobox.cjs.entry.js +5 -3
  10. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  11. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  12. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  13. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  14. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  15. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  16. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  17. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  18. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  19. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  20. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  21. package/dist/cjs/z-pagination.cjs.entry.js +2 -2
  22. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  23. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  24. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  25. package/dist/cjs/z-td.cjs.entry.js +3 -3
  26. package/dist/cjs/z-th.cjs.entry.js +5 -3
  27. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  28. package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
  29. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  30. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  31. package/dist/cjs/z-tool.cjs.entry.js +2 -2
  32. package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
  33. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  34. package/dist/collection/components/css-components/z-scrollbar/styles.css +40 -0
  35. package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -1
  36. package/dist/collection/components/table/cells/z-td/index.js +3 -3
  37. package/dist/collection/components/table/cells/z-th/index.js +3 -3
  38. package/dist/collection/components/table/cells/z-th/styles.css +0 -72
  39. package/dist/collection/components/z-combobox/index.js +3 -3
  40. package/dist/collection/components/z-combobox/styles.css +0 -12
  41. package/dist/collection/components/z-input/index.js +3 -3
  42. package/dist/collection/components/z-input/styles-checkbox-radio.css +130 -0
  43. package/dist/collection/components/z-input/styles-general.css +166 -0
  44. package/dist/collection/components/z-input/styles-text.css +87 -0
  45. package/dist/collection/components/z-input/styles-textarea.css +19 -0
  46. package/dist/collection/components/z-pagination/index.js +2 -2
  47. package/dist/collection/components/z-searchbar/index.js +111 -193
  48. package/dist/collection/components/z-searchbar/index.stories.js +3 -16
  49. package/dist/collection/components/z-searchbar/styles.css +87 -201
  50. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  51. package/dist/collection/components/z-stepper/index.js +1 -1
  52. package/dist/collection/components/z-stepper-item/index.js +1 -1
  53. package/dist/collection/components/z-toast-notification/index.js +3 -3
  54. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  55. package/dist/collection/components/z-toggle-button/index.js +2 -2
  56. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  57. package/dist/collection/components/z-tool/index.js +3 -3
  58. package/dist/collection/components/z-toolbar/index.js +1 -1
  59. package/dist/collection/components/z-tooltip/index.js +1 -1
  60. package/dist/collection/constants/iconset.js +15 -3
  61. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  62. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  63. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  64. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  65. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  66. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  67. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  68. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  69. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  70. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  71. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  72. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  73. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  74. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  75. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  76. package/dist/components/iconset.js +1 -1
  77. package/dist/components/index13.js +1 -1
  78. package/dist/components/index22.js +1 -1
  79. package/dist/components/index23.js +1 -1
  80. package/dist/components/index24.js +1 -1
  81. package/dist/components/index25.js +1 -1
  82. package/dist/components/index26.js +1 -1
  83. package/dist/components/index27.js +1 -1
  84. package/dist/components/index4.js +1 -1
  85. package/dist/components/index7.js +1 -1
  86. package/dist/components/z-combobox.js +1 -1
  87. package/dist/components/z-myz-card-alert.js +1 -1
  88. package/dist/components/z-myz-card-dictionary.js +1 -1
  89. package/dist/components/z-myz-card-footer-sections.js +1 -1
  90. package/dist/components/z-myz-card-footer.js +1 -1
  91. package/dist/components/z-myz-card-icon.js +1 -1
  92. package/dist/components/z-myz-card-info.js +1 -1
  93. package/dist/components/z-myz-card-list.js +1 -1
  94. package/dist/components/z-myz-list.js +1 -1
  95. package/dist/components/z-otp.js +1 -1
  96. package/dist/components/z-pagination.js +1 -1
  97. package/dist/components/z-skip-to-content.js +1 -1
  98. package/dist/components/z-stepper-item.js +1 -1
  99. package/dist/components/z-stepper.js +1 -1
  100. package/dist/components/z-td.js +1 -1
  101. package/dist/components/z-th.js +1 -1
  102. package/dist/components/z-toast-notification-list.js +1 -1
  103. package/dist/components/z-toast-notification.js +1 -1
  104. package/dist/components/z-toggle-button.js +1 -1
  105. package/dist/components/z-toggle-switch.js +1 -1
  106. package/dist/components/z-tool.js +1 -1
  107. package/dist/components/z-toolbar.js +1 -1
  108. package/dist/esm/{iconset-BanpkIXZ.js → iconset-CjHS9zeM.js} +15 -3
  109. package/dist/esm/index-DPdXlnVe.js +4 -4
  110. package/dist/esm/index.js +2 -2
  111. package/dist/esm/loader.js +1 -1
  112. package/dist/esm/{utils-0PByxJyN.js → utils-DYd3kO0P.js} +1 -1
  113. package/dist/esm/web-components-library.js +1 -1
  114. package/dist/esm/z-alert.entry.js +1 -1
  115. package/dist/esm/z-app-header_12.entry.js +129 -201
  116. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  117. package/dist/esm/z-breadcrumb.entry.js +1 -1
  118. package/dist/esm/z-color-picker.entry.js +1 -1
  119. package/dist/esm/z-combobox.entry.js +6 -4
  120. package/dist/esm/z-menu.entry.js +1 -1
  121. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  122. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  123. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  124. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  125. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  126. package/dist/esm/z-myz-card-info.entry.js +2 -2
  127. package/dist/esm/z-myz-card-list.entry.js +1 -1
  128. package/dist/esm/z-myz-card_4.entry.js +4 -4
  129. package/dist/esm/z-myz-list-item.entry.js +2 -2
  130. package/dist/esm/z-myz-list.entry.js +1 -1
  131. package/dist/esm/z-otp.entry.js +2 -2
  132. package/dist/esm/z-pagination.entry.js +2 -2
  133. package/dist/esm/z-popover.entry.js +1 -1
  134. package/dist/esm/z-select.entry.js +1 -1
  135. package/dist/esm/z-skip-to-content.entry.js +2 -2
  136. package/dist/esm/z-slideshow.entry.js +1 -1
  137. package/dist/esm/z-stepper-item.entry.js +1 -1
  138. package/dist/esm/z-stepper.entry.js +1 -1
  139. package/dist/esm/z-table.entry.js +1 -1
  140. package/dist/esm/z-td.entry.js +3 -3
  141. package/dist/esm/z-th.entry.js +5 -3
  142. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  143. package/dist/esm/z-toast-notification.entry.js +3 -3
  144. package/dist/esm/z-toggle-button.entry.js +2 -2
  145. package/dist/esm/z-toggle-switch.entry.js +4 -4
  146. package/dist/esm/z-tool.entry.js +3 -3
  147. package/dist/esm/z-toolbar.entry.js +1 -1
  148. package/dist/esm/z-tooltip.entry.js +1 -1
  149. package/dist/esm/z-tr.entry.js +1 -1
  150. package/dist/types/components/z-searchbar/index.d.ts +24 -28
  151. package/dist/types/components.d.ts +14 -14
  152. package/dist/types/constants/iconset.d.ts +30 -6
  153. package/dist/web-components-library/index.esm.js +1 -1
  154. package/dist/web-components-library/p-087956fa.entry.js +1 -0
  155. package/dist/web-components-library/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
  156. package/dist/web-components-library/{p-2ce3ac48.entry.js → p-14b804f9.entry.js} +1 -1
  157. package/dist/web-components-library/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
  158. package/{www/build/p-eed4e897.entry.js → dist/web-components-library/p-1d023220.entry.js} +1 -1
  159. package/dist/web-components-library/{p-de0b7109.entry.js → p-299f0f85.entry.js} +1 -1
  160. package/dist/web-components-library/{p-d11d39f5.entry.js → p-2c036e17.entry.js} +1 -1
  161. package/dist/web-components-library/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
  162. package/dist/web-components-library/{p-550ee6c3.entry.js → p-37e84b71.entry.js} +1 -1
  163. package/dist/web-components-library/{p-6fb8a984.entry.js → p-3ea03d34.entry.js} +1 -1
  164. package/dist/web-components-library/p-41584e90.entry.js +1 -0
  165. package/dist/web-components-library/p-53670be4.entry.js +1 -0
  166. package/dist/web-components-library/{p-7d9477ed.entry.js → p-583b8152.entry.js} +1 -1
  167. package/dist/web-components-library/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
  168. package/dist/web-components-library/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
  169. package/dist/web-components-library/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
  170. package/dist/web-components-library/{p-a40ae683.entry.js → p-8261c869.entry.js} +1 -1
  171. package/{www/build/p-4ae7df7f.entry.js → dist/web-components-library/p-83da1031.entry.js} +1 -1
  172. package/{www/build/p-c6920758.entry.js → dist/web-components-library/p-85cac60d.entry.js} +1 -1
  173. package/dist/web-components-library/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
  174. package/dist/web-components-library/{p-e2d94c86.entry.js → p-8a8df4f4.entry.js} +1 -1
  175. package/dist/web-components-library/{p-ab50e989.entry.js → p-8b026993.entry.js} +1 -1
  176. package/dist/web-components-library/{p-8fd25c59.entry.js → p-9d15ecdf.entry.js} +1 -1
  177. package/dist/web-components-library/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
  178. package/dist/web-components-library/p-CjHS9zeM.js +1 -0
  179. package/dist/web-components-library/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
  180. package/dist/web-components-library/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
  181. package/dist/web-components-library/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
  182. package/dist/web-components-library/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
  183. package/{www/build/p-eadf2552.entry.js → dist/web-components-library/p-c4e7bd16.entry.js} +1 -1
  184. package/dist/web-components-library/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
  185. package/dist/web-components-library/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
  186. package/dist/web-components-library/p-d10e6b1a.entry.js +1 -0
  187. package/dist/web-components-library/p-dc5ab2cc.entry.js +1 -0
  188. package/dist/web-components-library/p-e48497f0.entry.js +1 -0
  189. package/dist/web-components-library/{p-19d3a16b.entry.js → p-eddc2d19.entry.js} +1 -1
  190. package/dist/web-components-library/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
  191. package/dist/web-components-library/{p-7a9d19b8.entry.js → p-f7e46ef2.entry.js} +1 -1
  192. package/dist/web-components-library/web-components-library.esm.js +1 -1
  193. package/package.json +2 -3
  194. package/www/build/index.esm.js +1 -1
  195. package/www/build/p-087956fa.entry.js +1 -0
  196. package/www/build/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
  197. package/www/build/{p-2ce3ac48.entry.js → p-14b804f9.entry.js} +1 -1
  198. package/www/build/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
  199. package/{dist/web-components-library/p-eed4e897.entry.js → www/build/p-1d023220.entry.js} +1 -1
  200. package/www/build/{p-38f551b0.js → p-23143b48.js} +1 -1
  201. package/www/build/{p-de0b7109.entry.js → p-299f0f85.entry.js} +1 -1
  202. package/www/build/{p-d11d39f5.entry.js → p-2c036e17.entry.js} +1 -1
  203. package/www/build/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
  204. package/www/build/{p-550ee6c3.entry.js → p-37e84b71.entry.js} +1 -1
  205. package/www/build/{p-6fb8a984.entry.js → p-3ea03d34.entry.js} +1 -1
  206. package/www/build/p-41584e90.entry.js +1 -0
  207. package/www/build/p-53670be4.entry.js +1 -0
  208. package/www/build/{p-7d9477ed.entry.js → p-583b8152.entry.js} +1 -1
  209. package/www/build/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
  210. package/www/build/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
  211. package/www/build/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
  212. package/www/build/{p-a40ae683.entry.js → p-8261c869.entry.js} +1 -1
  213. package/{dist/web-components-library/p-4ae7df7f.entry.js → www/build/p-83da1031.entry.js} +1 -1
  214. package/{dist/web-components-library/p-c6920758.entry.js → www/build/p-85cac60d.entry.js} +1 -1
  215. package/www/build/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
  216. package/www/build/{p-e2d94c86.entry.js → p-8a8df4f4.entry.js} +1 -1
  217. package/www/build/{p-ab50e989.entry.js → p-8b026993.entry.js} +1 -1
  218. package/www/build/{p-8fd25c59.entry.js → p-9d15ecdf.entry.js} +1 -1
  219. package/www/build/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
  220. package/www/build/p-CjHS9zeM.js +1 -0
  221. package/www/build/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
  222. package/www/build/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
  223. package/www/build/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
  224. package/www/build/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
  225. package/{dist/web-components-library/p-eadf2552.entry.js → www/build/p-c4e7bd16.entry.js} +1 -1
  226. package/www/build/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
  227. package/www/build/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
  228. package/www/build/p-d10e6b1a.entry.js +1 -0
  229. package/www/build/p-dc5ab2cc.entry.js +1 -0
  230. package/www/build/p-e48497f0.entry.js +1 -0
  231. package/www/build/{p-19d3a16b.entry.js → p-eddc2d19.entry.js} +1 -1
  232. package/www/build/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
  233. package/www/build/{p-7a9d19b8.entry.js → p-f7e46ef2.entry.js} +1 -1
  234. package/www/build/web-components-library.esm.js +1 -1
  235. package/www/index.html +1 -1
  236. package/dist/collection/components/z-input/styles.css +0 -406
  237. package/dist/web-components-library/p-2b7ceab2.entry.js +0 -1
  238. package/dist/web-components-library/p-BanpkIXZ.js +0 -1
  239. package/dist/web-components-library/p-a9d90b04.entry.js +0 -1
  240. package/dist/web-components-library/p-a9f848ef.entry.js +0 -1
  241. package/dist/web-components-library/p-ae69bb7d.entry.js +0 -1
  242. package/dist/web-components-library/p-f3436721.entry.js +0 -1
  243. package/dist/web-components-library/p-fc15a666.entry.js +0 -1
  244. package/www/build/p-2b7ceab2.entry.js +0 -1
  245. package/www/build/p-BanpkIXZ.js +0 -1
  246. package/www/build/p-a9d90b04.entry.js +0 -1
  247. package/www/build/p-a9f848ef.entry.js +0 -1
  248. package/www/build/p-ae69bb7d.entry.js +0 -1
  249. package/www/build/p-f3436721.entry.js +0 -1
  250. package/www/build/p-fc15a666.entry.js +0 -1
@@ -1,406 +0,0 @@
1
- :host {
2
- display: inline-block;
3
- width: inherit;
4
- }
5
-
6
- :host * {
7
- box-sizing: border-box;
8
- }
9
-
10
- /* GENERAL */
11
- input::-ms-clear,
12
- input::-ms-reveal {
13
- display: none;
14
- }
15
-
16
- input[type="search"]::-webkit-search-decoration,
17
- input[type="search"]::-webkit-search-cancel-button,
18
- input[type="search"]::-webkit-search-results-button,
19
- input[type="search"]::-webkit-search-results-decoration {
20
- display: none;
21
- }
22
-
23
- input,
24
- textarea {
25
- background: var(--color-form-background);
26
- fill: var(--color-form-default-icon);
27
- font-family: var(--font-family-sans);
28
- font-size: var(--font-size-3);
29
- font-weight: var(--font-rg);
30
- outline: none;
31
- }
32
-
33
- input,
34
- .textarea-wrapper {
35
- border: var(--border-size-small) solid var(--color-form-surface04);
36
- border-radius: var(--border-radius-small);
37
- color: var(--color-form-default-text);
38
- }
39
-
40
- :host([size="small"]) input,
41
- :host([size="small"]) textarea,
42
- :host([size="x-small"]) input,
43
- :host([size="x-small"]) textarea {
44
- font-size: var(--font-size-2);
45
- }
46
-
47
- :host.cursor-select input {
48
- cursor: pointer;
49
- }
50
-
51
- /* HOVER */
52
- input:not([readonly]):hover,
53
- .textarea-wrapper:not(.readonly):hover {
54
- outline: var(--border-size-medium) solid var(--color-surface04);
55
- outline-offset: -2px;
56
- }
57
-
58
- /* FOCUS */
59
- :host:not(.active-select) input:focus:focus-visible,
60
- :host:not([readonly="true"]) .textarea-wrapper:focus-within {
61
- border-color: var(--color-form-active-primary);
62
- box-shadow: var(--shadow-focus-primary);
63
- color: var(--color-form-active-primary);
64
- }
65
-
66
- :host input:focus:focus-visible:hover,
67
- .textarea-wrapper:not(.readonly):focus-within:hover {
68
- outline-color: var(--color-form-active-primary);
69
- }
70
-
71
- :host input:focus:focus-visible + .icons-wrapper {
72
- fill: var(--color-form-active-primary);
73
- }
74
-
75
- :host.active-select input {
76
- border: var(--border-size-small) solid var(--color-form-active-primary);
77
- }
78
-
79
- :host.cursor-select input:focus:focus-visible {
80
- box-shadow: var(--shadow-focus-primary);
81
- }
82
-
83
- :host input[readonly]:focus:focus-visible {
84
- border-color: var(--color-form-surface03);
85
- box-shadow: none;
86
- }
87
-
88
- /* STATUSES (success, warning, error) */
89
- .input-success {
90
- border-color: var(--color-form-success01);
91
- background: var(--color-form-inverse-success);
92
- }
93
-
94
- .input-success:focus:focus-visible + .icons-wrapper,
95
- .input-success + .icons-wrapper {
96
- fill: var(--color-form-success01);
97
- }
98
-
99
- .input-error {
100
- border-color: var(--color-form-hover-error);
101
- background: var(--color-form-inverse-error);
102
- }
103
-
104
- .input-error:focus:focus-visible + .icons-wrapper,
105
- .input-error + .icons-wrapper {
106
- fill: var(--color-form-hover-error);
107
- }
108
-
109
- .input-warning {
110
- border-color: var(--color-form-hover-warning);
111
- background: var(--color-form-inverse-warning);
112
- }
113
-
114
- .input-warning:focus:focus-visible + .icons-wrapper,
115
- .input-warning + .icons-wrapper {
116
- fill: var(--color-form-hover-warning);
117
- }
118
-
119
- :is(.input-success, .input-error, .input-warning):focus:focus-visible {
120
- color: var(--color-form-default-text);
121
- }
122
-
123
- /* READONLY */
124
- :host:not(.active-select) input[readonly],
125
- .textarea-wrapper.readonly {
126
- border-color: var(--color-form-surface03);
127
- fill: var(--color-form-disabled01-icon);
128
- pointer-events: none;
129
- }
130
-
131
- /* DISABLED */
132
- :host([disabled]:not([disabled="false"])) input,
133
- :host([disabled]:not([disabled="false"])) .textarea-wrapper,
134
- :host([disabled]:not([disabled="false"])) z-icon {
135
- border-color: var(--color-form-disabled03);
136
- box-shadow: none;
137
- color: var(--color-form-disabled-text);
138
- fill: var(--color-form-disabled01-icon);
139
- pointer-events: none;
140
- }
141
-
142
- :host([disabled]:not([disabled="false"])) input:hover {
143
- border-width: var(--border-size-small);
144
- }
145
-
146
- /* PLACEHOLDER */
147
- input::placeholder,
148
- textarea::placeholder {
149
- color: var(--color-form-placeholder-text);
150
- }
151
-
152
- ::-webkit-textarea-placeholder {
153
- color: var(--color-form-placeholder-text);
154
- }
155
-
156
- :-ms-textarea-placeholder {
157
- color: var(--color-form-placeholder-text);
158
- }
159
-
160
- ::placeholder {
161
- color: var(--color-form-placeholder-text);
162
- }
163
-
164
- :host([disabled]:not([disabled="false"])) label.z-label {
165
- color: var(--color-disabled03);
166
- }
167
-
168
- .text-wrapper > div {
169
- position: relative;
170
- z-index: 1;
171
- fill: var(--color-form-default-icon);
172
- }
173
-
174
- .text-wrapper > div > input {
175
- width: 100%;
176
- height: calc(var(--space-unit) * 5.5);
177
- box-sizing: border-box;
178
- padding: 0 calc(var(--space-unit) * 1.5);
179
- margin: 0;
180
- }
181
-
182
- :host([size="small"]) .text-wrapper > div > input {
183
- height: calc(var(--space-unit) * 4.5);
184
- }
185
-
186
- :host([size="x-small"]) .text-wrapper > div > input {
187
- height: calc(var(--space-unit) * 4);
188
- }
189
-
190
- .text-wrapper > div > input.has-icon,
191
- .text-wrapper > div > input.has-clear-icon {
192
- padding-right: calc(var(--space-unit) * 5.25);
193
- }
194
-
195
- .text-wrapper > div > input.has-icon.has-clear-icon {
196
- padding-right: calc(var(--space-unit) * 8);
197
- }
198
-
199
- .text-wrapper .icons-wrapper {
200
- position: absolute;
201
- z-index: 2;
202
- top: 50%;
203
- right: calc(var(--space-unit) * 1.5);
204
- display: flex;
205
- pointer-events: none;
206
- transform: translateY(-50%);
207
- }
208
-
209
- .text-wrapper .icons-wrapper > button.input-icon {
210
- display: flex;
211
- padding: 0;
212
- border: 0;
213
- background: none;
214
- color: inherit;
215
- font: inherit;
216
- pointer-events: initial;
217
- }
218
-
219
- .text-wrapper .icons-wrapper > .input-icon + .input-icon {
220
- margin-left: calc(var(--space-unit) * 0.5);
221
- }
222
-
223
- .text-wrapper .icons-wrapper > button.input-icon.hidden {
224
- display: none;
225
- }
226
-
227
- .text-wrapper .icons-wrapper > button.reset-icon,
228
- .text-wrapper .icons-wrapper > button.toggle-password-icon {
229
- cursor: pointer;
230
- }
231
-
232
- .text-wrapper .icons-wrapper > .input-icon {
233
- --z-icon-width: 18px;
234
- --z-icon-height: 18px;
235
-
236
- display: block;
237
- }
238
-
239
- .text-wrapper .icons-wrapper > .input-icon.small,
240
- .text-wrapper .icons-wrapper > .input-icon.x-small {
241
- --z-icon-width: 16px;
242
- --z-icon-height: 16px;
243
- }
244
-
245
- .text-wrapper .icons-wrapper > button.input-icon:focus {
246
- box-shadow: var(--shadow-focus-primary);
247
- outline: none !important;
248
- }
249
-
250
- /* stylelint-disable property-no-vendor-prefix */
251
- .text-wrapper > div > input:-webkit-autofill {
252
- -webkit-box-shadow: 0 0 0 1000px #fff inset;
253
- -webkit-text-fill-color: currentcolor;
254
- }
255
-
256
- .textarea-wrapper {
257
- width: 100%;
258
- height: 100%;
259
- padding: calc(var(--space-unit) * 1.5);
260
- }
261
-
262
- .textarea-wrapper:not(.input-error, .input-success, .input-warning) {
263
- background-color: var(--color-form-background);
264
- }
265
-
266
- textarea {
267
- width: 100%;
268
- min-height: 132px;
269
- padding: 0;
270
- border: none;
271
- margin: 0;
272
- color: currentcolor;
273
- resize: none;
274
- }
275
-
276
- .radio-wrapper,
277
- .checkbox-wrapper {
278
- position: relative;
279
- display: inline-flex;
280
- flex-direction: row;
281
- align-items: center;
282
- color: var(--color-default-text);
283
- fill: var(--color-primary01);
284
- font-family: var(--font-family-sans);
285
- }
286
-
287
- .radio-wrapper:hover,
288
- .checkbox-wrapper:hover {
289
- color: var(--color-hover-primary);
290
- fill: var(--color-hover-primary-icon);
291
- }
292
-
293
- .radio-wrapper > input,
294
- .checkbox-wrapper > input {
295
- position: absolute;
296
- z-index: -1;
297
- opacity: 0;
298
- pointer-events: none;
299
- }
300
-
301
- .radio-wrapper .radio-label,
302
- .checkbox-wrapper .checkbox-label {
303
- display: inline-flex;
304
- align-items: center;
305
- margin: 0;
306
- color: inherit;
307
- font-family: inherit;
308
- font-size: inherit;
309
- font-weight: inherit;
310
- line-height: 1;
311
- text-transform: inherit;
312
- }
313
-
314
- .radio-wrapper input:not(:disabled) + .radio-label,
315
- .checkbox-wrapper input:not(:disabled) + .checkbox-label {
316
- cursor: pointer;
317
- }
318
-
319
- .radio-wrapper .radio-label z-icon,
320
- .checkbox-wrapper .checkbox-label z-icon {
321
- cursor: pointer;
322
- fill: inherit;
323
- }
324
-
325
- :host([size="small"]) .radio-wrapper .radio-label z-icon,
326
- :host([size="small"]) .checkbox-wrapper .checkbox-label z-icon {
327
- --z-icon-width: 16px;
328
- --z-icon-height: 16px;
329
- }
330
-
331
- :host([size="small"]) .radio-wrapper .radio-label,
332
- :host([size="small"]) .checkbox-wrapper .checkbox-label {
333
- font-size: var(--font-size-2);
334
- }
335
-
336
- :host([size="x-small"]) .radio-wrapper .radio-label z-icon,
337
- :host([size="x-small"]) .checkbox-wrapper .checkbox-label z-icon {
338
- --z-icon-width: 14px;
339
- --z-icon-height: 14px;
340
- }
341
-
342
- :host([size="x-small"]) .radio-wrapper .radio-label,
343
- :host([size="x-small"]) .checkbox-wrapper .checkbox-label {
344
- font-size: var(--font-size-1);
345
- }
346
-
347
- .radio-wrapper .radio-label.after,
348
- .checkbox-wrapper .checkbox-label.after {
349
- flex-direction: row;
350
- }
351
-
352
- .radio-wrapper .radio-label.before,
353
- .checkbox-wrapper .checkbox-label.before {
354
- flex-direction: row-reverse;
355
- }
356
-
357
- .radio-wrapper .radio-label.after > span,
358
- .checkbox-wrapper .checkbox-label.after > span {
359
- margin-left: var(--space-unit);
360
- }
361
-
362
- .radio-wrapper .radio-label.before > span,
363
- .checkbox-wrapper .checkbox-label.before > span {
364
- margin-right: var(--space-unit);
365
- }
366
-
367
- :host([size="small"]) .radio-wrapper .radio-label.after > span,
368
- :host([size="small"]) .checkbox-wrapper .checkbox-label.after > span,
369
- :host([size="x-small"]) .radio-wrapper .radio-label.after > span,
370
- :host([size="x-small"]) .checkbox-wrapper .checkbox-label.after > span {
371
- margin-left: calc(var(--space-unit) * 0.5);
372
- }
373
-
374
- :host([size="small"]) .radio-wrapper .radio-label.before > span,
375
- :host([size="small"]) .checkbox-wrapper .checkbox-label.before > span,
376
- :host([size="x-small"]) .radio-wrapper .radio-label.before > span,
377
- :host([size="x-small"]) .checkbox-wrapper .checkbox-label.before > span {
378
- margin-right: calc(var(--space-unit) * 0.5);
379
- }
380
-
381
- /* focus */
382
- .radio-wrapper > input:focus:focus-visible + .radio-label > z-icon {
383
- border-radius: 50%;
384
- }
385
-
386
- .checkbox-wrapper > input:focus:focus-visible + .checkbox-label > z-icon {
387
- border-radius: var(--border-radius-small);
388
- }
389
-
390
- .radio-wrapper > input:focus:focus-visible + .radio-label > z-icon,
391
- .checkbox-wrapper > input:focus:focus-visible + .checkbox-label > z-icon {
392
- box-shadow: var(--shadow-focus-primary);
393
- }
394
-
395
- /* disabled */
396
- .radio-wrapper > input:disabled + .radio-label,
397
- .checkbox-wrapper > input:disabled + .checkbox-label {
398
- color: var(--color-disabled03);
399
- }
400
-
401
- .radio-wrapper > input:disabled + .radio-label > z-icon,
402
- .checkbox-wrapper > input:disabled + .checkbox-label > z-icon {
403
- cursor: default;
404
- fill: var(--color-disabled01);
405
- }
406
-
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as a,H as n,d as o}from"./p-DPdXlnVe.js";import{I as s}from"./p-BKCj6NR2.js";const e=class{constructor(a){t(this,a),this.pageChanged=i(this,"pageChanged",7),this.navArrows=!0,this.skip=0,this.edges=!1,this.currentPage=1,this._visiblePages=this.visiblePages,this.isMobile=!1,this.goToPageValue=null}setPagesContainerWidth(){if(!this._visiblePages||this.split)return void this.host.style.setProperty("--z-pagination--pages-container-max-width","100%");const t=window.getComputedStyle(this.host).getPropertyValue("--z-pagination--page-button-width");this.host.style.setProperty("--z-pagination--pages-container-max-width",`calc(${t} * ${this._visiblePages})`)}setVisiblePages(){this._visiblePages=Math.min(this.visiblePages||this.totalPages,this.totalPages)}onPageChanged(){this.pageChanged.emit(this.currentPage),this.scrollToPage()}onSplitChanged(){this.split&&(this.edges=!1)}onResize(){this.setMobile()}setMobile(){this.isMobile=window.matchMedia("screen and (max-width: 767px)").matches}getPagesChunks(){const t=Array.from({length:this.totalPages},((t,i)=>i+1)),i=[],a=Math.ceil(t.length/this._visiblePages);for(let n=0;n<a;n++)i.push(t.slice(n*this._visiblePages,(n+1)*this._visiblePages));return i}scrollToPage(){var t,i;const a=this.host.querySelector(".pages-container"),n=this.host.querySelector(`[data-page="${this.currentPage}"]`),o=this.host.querySelector(".navigation-button");if(!n||!a)return;const s=a.getBoundingClientRect().width,e=n.getBoundingClientRect().width,r=null!==(i=null===(t=null==o?void 0:o.getBoundingClientRect())||void 0===t?void 0:t.width)&&void 0!==i?i:0;a.scrollLeft=this.currentPage*e-r-s/2}selectPage(t){this.currentPage=Math.min(Math.max(t,1),this.totalPages)}renderPage(t){return a("button",{class:"page-button",type:"button","aria-current":this.currentPage===t?"page":"false",title:`Vai alla pagina ${t}`,"data-page":t,"data-current":this.currentPage===t,onClick:()=>this.selectPage(t)},t)}renderEllipsisButton(t){return a("button",{class:"ellipsis-button",type:"button",title:`Vai alla pagina ${t}`,onClick:()=>this.selectPage(t)},"…")}renderPages(){const t=this.getPagesChunks();if(!(t.length<=0))return t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))}renderSplitPages(){return this.totalPages<=2*this.split+5?Array.from({length:this.totalPages},((t,i)=>this.renderPage(i+1))):this.currentPage<=2*this.split+2?[...Array.from({length:2*this.split+3},((t,i)=>this.renderPage(i+1))),this.renderEllipsisButton(2*this.split+4),this.renderPage(this.totalPages)]:this.currentPage>2*this.split+2&&this.currentPage<this.totalPages-2*this.split-1?[this.renderPage(1),this.renderEllipsisButton(this.currentPage-this.split-1),...Array.from({length:2*this.split+1},((t,i)=>this.renderPage(this.currentPage-this.split+i))),this.renderEllipsisButton(this.currentPage+this.split+1),this.renderPage(this.totalPages)]:[this.renderPage(1),this.renderEllipsisButton(this.totalPages-2*this.split-3),...Array.from({length:2*this.split+3},((t,i)=>this.renderPage(this.totalPages-2*this.split-2+i)))]}renderBackButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla pagina precedente",disabled:1===this.currentPage,onClick:()=>this.selectPage(this.currentPage-1)},a("z-icon",{name:"chevron-left"}))}renderForwardButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla prossima pagina",disabled:this.currentPage===this.totalPages,onClick:()=>this.selectPage(this.currentPage+1)},a("z-icon",{name:"chevron-right"}))}renderMobile(){const t=this.getPagesChunks();return[this.label&&a("span",{class:"page-label body-1-sb"},this.label),a("div",{class:"pagination-bar"},this.renderBackButton(),!this.goToPage&&a("div",{class:"pages-container",role:"navigation",tabIndex:-1},t.length>0&&t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))),this.goToPage&&a("form",{class:"mobile-go-to-page",onSubmit:t=>{t.preventDefault(),this.selectPage(this.goToPageValue)}},a("z-input",{class:"go-to-page-input",type:s.NUMBER,min:1,max:this.totalPages,message:!1,onInput:t=>{this.goToPageValue=t.target.value},placeholder:this.currentPage.toString(),hasclearicon:!1}),a("span",null,`/${this.totalPages}`)),this.renderForwardButton())]}componentDidLoad(){this.setVisiblePages()}componentDidRender(){this.split&&(this.edges=!1),this.setPagesContainerWidth(),this.setMobile(),this.scrollToPage()}render(){return this.isMobile?a(n,null,this.renderMobile()):a(n,null,a("div",{class:"pagination-bar"},this.label&&a("span",{class:"page-label body-1-sb"},this.label),this.edges&&a("button",{class:"pagination-button",type:"button",title:"Vai alla pagina 1",disabled:1===this.currentPage,onClick:()=>this.selectPage(1)},"Pagina 1"),this.skip<this.totalPages&&this.skip>1&&a("button",{class:"pagination-button",type:"button",title:"Vai alla pagina "+(this.currentPage-this.skip),disabled:this.currentPage<=this.skip,onClick:()=>this.selectPage(this.currentPage-this.skip)},"-",this.skip),this.navArrows&&this.renderBackButton(),a("div",{class:"pages-container",role:"navigation",tabIndex:-1},this.split?this.renderSplitPages():this.renderPages()),this.navArrows&&this.renderForwardButton(),this.skip<this.totalPages&&this.skip>1&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.currentPage+this.skip}`,disabled:this.currentPage>this.totalPages-this.skip,onClick:()=>this.selectPage(this.currentPage+this.skip)},"+",this.skip),this.edges&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.totalPages}`,disabled:this.currentPage===this.totalPages,onClick:()=>this.selectPage(this.totalPages)},"Pagina ",this.totalPages)),this.goToPage&&a("div",{class:"go-to-page"},a("span",{class:"z-label body-5-sb"},"Vai a pagina:"),a("div",{class:"inputs"},a("z-input",{class:"go-to-page-input",type:s.NUMBER,min:1,max:this.totalPages,message:!1,placeholder:"2",hasclearicon:!1,onInput:t=>{this.goToPageValue=t.target.value},onKeyDown:t=>"Enter"===t.key&&this.selectPage(this.goToPageValue)}),a("z-button",{disabled:!this.goToPageValue,title:"Vai alla pagina inserita",onClick:()=>this.selectPage(this.goToPageValue)},"vai"))))}get host(){return o(this)}static get watchers(){return{_visiblePages:[{setPagesContainerWidth:0}],visiblePages:[{setVisiblePages:0}],currentPage:[{onPageChanged:0}],split:[{onSplitChanged:0}]}}};e.style="z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;--z-pagination-background-color:var(--color-background);--z-pagination-background-color-hover:var(--color-surface01);display:flex;max-width:100%;flex-flow:column wrap;font-family:var(--font-family-sans);font-weight:var(--font-rg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}z-pagination,z-pagination *{box-sizing:border-box}z-pagination button{height:100%}z-pagination z-icon{fill:var(--color-primary01-icon)}z-pagination *:disabled z-icon{fill:var(--color-disabled03)}z-pagination .page-label{margin-right:calc(var(--space-unit) * 3);color:var(--color-default-text)}z-pagination .pagination-bar{display:flex;max-width:100%;height:48px;align-items:center}z-pagination .pagination-bar button{display:flex;align-items:center;justify-content:center;border:none;margin:0;background-color:var(--z-pagination-background-color);color:var(--color-primary01);cursor:pointer;font-family:inherit;font-weight:inherit;transition:background-color 0.15s ease-out, color 0.15s ease-out, border-bottom-color 0.15s ease-out, font-size 0.15s ease-in-out, font-weight 0.15s ease-in-out}z-pagination .pagination-bar button:focus-visible{background-color:var(--color-surface01);outline:none}z-pagination .pagination-bar .pagination-button{padding:calc(var(--space-unit) * 2);font-weight:var(--font-sb);text-transform:uppercase;white-space:nowrap}z-pagination .pagination-bar .navigation-button{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5)}z-pagination .pagination-bar .pagination-button:disabled,z-pagination .pagination-bar .navigation-button:disabled{color:var(--color-disabled03);cursor:default;fill:var(--color-disabled03);pointer-events:none}z-pagination .pagination-bar .page-button,z-pagination .pagination-bar .ellipsis-button{width:var(--z-pagination--page-button-width)}z-pagination .pages-container{position:relative;display:inline-flex;max-width:100%;height:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-align:center;scrollbar-width:none}z-pagination .pages-container::-webkit-scrollbar{display:none}z-pagination .pages-chunk{display:flex;scroll-snap-align:center}z-pagination .pagination-bar .page-button{padding-top:var(--border-size-large) solid transparent;border-bottom:var(--border-size-large) solid transparent;font-size:var(--font-size-2);font-weight:var(--font-sb)}z-pagination .pagination-bar .page-button[data-current]{border-bottom-color:var(--color-primary01);font-size:var(--font-size-7)}z-pagination .go-to-page{display:flex;flex-direction:column}z-pagination .go-to-page .inputs{display:flex;column-gap:var(--space-unit)}z-pagination .go-to-page .inputs z-input{width:calc(var(--space-unit) * 11)}z-pagination .go-to-page .inputs z-input input,z-pagination .mobile-go-to-page z-input input{padding:0 calc(var(--space-unit) * 1.5) !important;appearance:none}z-pagination .mobile-go-to-page{display:flex;height:100%;flex:1 auto;align-items:center;justify-content:center;background-color:var(--color-surface02)}z-pagination .mobile-go-to-page z-input{width:var(--z-pagination--page-button-width);margin-right:var(--space-unit)}z-pagination .mobile-go-to-page z-input input{text-align:center}z-pagination .mobile-go-to-page z-input input::-webkit-outer-spin-button,z-pagination .mobile-go-to-page z-input input::-webkit-inner-spin-button{appearance:none}z-pagination .mobile-go-to-page>span{font-size:var(--font-size-2)}@media (hover: hover){z-pagination .pagination-bar button:hover{background-color:var(--z-pagination-background-color-hover)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-primary);color:var(--color-hover-primary)}}@media (min-width: 768px){z-pagination{--z-pagination--page-button-width:88px;flex-direction:row;align-items:flex-end}z-pagination .pages-container{max-width:var(--z-pagination--pages-container-max-width)}}";export{e as z_pagination}