@zanichelli/albe-web-components 2.33.5-rc2 → 2.34.2

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 (613) hide show
  1. package/CHANGELOG.md +1238 -1221
  2. package/LICENSE +21 -21
  3. package/dist/cjs/{breakpoints-776c8868.js → breakpoints-88c4fd6c.js} +1 -1
  4. package/dist/cjs/{icons-8ecf1231.js → icons-05eba7ee.js} +473 -472
  5. package/dist/cjs/{index-21817092.js → index-3735f277.js} +253 -253
  6. package/dist/cjs/index.cjs.js +5 -5
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{utils-c3cf6ba2.js → utils-6a2c0eab.js} +63 -63
  9. package/dist/cjs/web-components-library.cjs.js +1 -1
  10. package/dist/cjs/z-alert.cjs.entry.js +8 -8
  11. package/dist/cjs/z-app-header.cjs.entry.js +133 -133
  12. package/dist/cjs/z-app-switcher.cjs.entry.js +18 -18
  13. package/dist/cjs/z-app-topbar.cjs.entry.js +30 -30
  14. package/dist/cjs/z-aria-alert.cjs.entry.js +9 -9
  15. package/dist/cjs/z-avatar.cjs.entry.js +32 -32
  16. package/dist/cjs/z-body_2.cjs.entry.js +40 -0
  17. package/dist/cjs/z-button-filter_5.cjs.entry.js +591 -591
  18. package/dist/cjs/z-button-sort.cjs.entry.js +43 -43
  19. package/dist/cjs/z-button.cjs.entry.js +39 -0
  20. package/dist/cjs/z-candybar.cjs.entry.js +8 -8
  21. package/dist/cjs/z-card.cjs.entry.js +47 -47
  22. package/dist/cjs/z-chip.cjs.entry.js +13 -13
  23. package/dist/cjs/z-combobox.cjs.entry.js +160 -160
  24. package/dist/cjs/z-contextual-menu.cjs.entry.js +29 -29
  25. package/dist/cjs/z-cookiebar.cjs.entry.js +31 -31
  26. package/dist/cjs/z-divider.cjs.entry.js +15 -15
  27. package/dist/cjs/z-footer-link_3.cjs.entry.js +28 -28
  28. package/dist/cjs/z-footer.cjs.entry.js +91 -91
  29. package/dist/cjs/z-ghost-loading.cjs.entry.js +9 -9
  30. package/dist/cjs/z-heading.cjs.entry.js +8 -8
  31. package/dist/cjs/z-icon-package.cjs.entry.js +12 -12
  32. package/dist/cjs/z-icon.cjs.entry.js +28 -0
  33. package/dist/cjs/z-info-box.cjs.entry.js +14 -14
  34. package/dist/cjs/z-link.cjs.entry.js +60 -60
  35. package/dist/cjs/z-list_3.cjs.entry.js +205 -205
  36. package/dist/cjs/z-logo.cjs.entry.js +17 -17
  37. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +73 -73
  38. package/dist/cjs/z-menu-section.cjs.entry.js +35 -35
  39. package/dist/cjs/z-menu.cjs.entry.js +99 -99
  40. package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
  41. package/dist/cjs/z-modal-login.cjs.entry.js +71 -71
  42. package/dist/cjs/z-modal.cjs.entry.js +26 -26
  43. package/dist/cjs/z-myz-card-alert.cjs.entry.js +52 -52
  44. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +25 -25
  45. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +8 -8
  46. package/dist/cjs/z-myz-card-footer.cjs.entry.js +42 -42
  47. package/dist/cjs/z-myz-card-icon.cjs.entry.js +10 -10
  48. package/dist/cjs/z-myz-card-info.cjs.entry.js +109 -109
  49. package/dist/cjs/z-myz-card-list.cjs.entry.js +26 -26
  50. package/dist/cjs/z-myz-card_4.cjs.entry.js +76 -76
  51. package/dist/cjs/z-myz-list-item.cjs.entry.js +26 -26
  52. package/dist/cjs/z-myz-topbar.cjs.entry.js +183 -183
  53. package/dist/cjs/z-navigation-tab.cjs.entry.js +34 -34
  54. package/dist/cjs/z-navigation-tabs.cjs.entry.js +90 -90
  55. package/dist/cjs/z-notification.cjs.entry.js +31 -31
  56. package/dist/cjs/z-otp.cjs.entry.js +30 -30
  57. package/dist/cjs/z-pagination-bar.cjs.entry.js +115 -115
  58. package/dist/cjs/z-pagination-page.cjs.entry.js +14 -14
  59. package/dist/cjs/z-panel-elem.cjs.entry.js +19 -19
  60. package/dist/cjs/z-pocket-message.cjs.entry.js +8 -8
  61. package/dist/cjs/z-pocket_3.cjs.entry.js +102 -102
  62. package/dist/cjs/z-popover.cjs.entry.js +127 -0
  63. package/dist/cjs/z-slideshow.cjs.entry.js +101 -101
  64. package/dist/cjs/z-status-tag.cjs.entry.js +16 -16
  65. package/dist/cjs/z-stepper-item.cjs.entry.js +11 -11
  66. package/dist/cjs/z-stepper.cjs.entry.js +8 -8
  67. package/dist/cjs/z-table-body.cjs.entry.js +24 -0
  68. package/dist/cjs/z-table-cell.cjs.entry.js +36 -0
  69. package/dist/cjs/z-table-empty-box.cjs.entry.js +28 -0
  70. package/dist/cjs/{z-registro-table-expanded-row.cjs.entry.js → z-table-expanded-row.cjs.entry.js} +10 -10
  71. package/dist/cjs/{z-registro-table-footer.cjs.entry.js → z-table-footer.cjs.entry.js} +15 -15
  72. package/dist/cjs/z-table-head.cjs.entry.js +23 -0
  73. package/dist/cjs/z-table-header-row.cjs.entry.js +22 -0
  74. package/dist/cjs/z-table-header.cjs.entry.js +88 -0
  75. package/dist/cjs/z-table-row.cjs.entry.js +43 -0
  76. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +19 -0
  77. package/dist/cjs/z-table.cjs.entry.js +82 -0
  78. package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
  79. package/dist/cjs/z-toast-notification.cjs.entry.js +190 -190
  80. package/dist/cjs/z-toggle-button.cjs.entry.js +25 -25
  81. package/dist/cjs/z-tooltip.cjs.entry.js +263 -263
  82. package/dist/cjs/z-user-dropdown.cjs.entry.js +84 -84
  83. package/dist/cjs/z-visually-hidden.cjs.entry.js +8 -8
  84. package/dist/collection/beans/index.js +254 -254
  85. package/dist/collection/collection-manifest.json +12 -12
  86. package/dist/collection/components/buttons/z-button/index.js +219 -219
  87. package/dist/collection/components/buttons/z-button/styles.css +231 -231
  88. package/dist/collection/components/buttons/z-button-filter/index.js +155 -155
  89. package/dist/collection/components/buttons/z-button-filter/styles.css +74 -74
  90. package/dist/collection/components/buttons/z-button-sort/index.js +216 -216
  91. package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
  92. package/dist/collection/components/buttons/z-chip/index.js +59 -59
  93. package/dist/collection/components/buttons/z-chip/styles.css +17 -17
  94. package/dist/collection/components/buttons/z-toggle-button/index.js +122 -122
  95. package/dist/collection/components/buttons/z-toggle-button/styles.css +62 -62
  96. package/dist/collection/components/footer/z-footer/index.js +286 -286
  97. package/dist/collection/components/footer/z-footer/styles.css +241 -241
  98. package/dist/collection/components/footer/z-footer-link/index.js +37 -37
  99. package/dist/collection/components/footer/z-footer-link/styles.css +33 -33
  100. package/dist/collection/components/footer/z-footer-section/index.js +51 -51
  101. package/dist/collection/components/footer/z-footer-section/styles.css +163 -163
  102. package/dist/collection/components/footer/z-footer-social/index.js +68 -68
  103. package/dist/collection/components/footer/z-footer-social/styles.css +23 -23
  104. package/dist/collection/components/icons/icons.js +474 -473
  105. package/dist/collection/components/icons/z-icon/index.js +110 -110
  106. package/dist/collection/components/icons/z-icon/styles.css +14 -14
  107. package/dist/collection/components/icons/z-icon-package/index.js +20 -20
  108. package/dist/collection/components/icons/z-icon-package/styles.css +16 -16
  109. package/dist/collection/components/indicators/z-stepper/index.js +17 -17
  110. package/dist/collection/components/indicators/z-stepper/styles.css +19 -19
  111. package/dist/collection/components/indicators/z-stepper-item/index.js +93 -93
  112. package/dist/collection/components/indicators/z-stepper-item/styles.css +115 -115
  113. package/dist/collection/components/inputs/z-combobox/index.js +480 -480
  114. package/dist/collection/components/inputs/z-combobox/styles.css +148 -148
  115. package/dist/collection/components/inputs/z-input/index.js +821 -821
  116. package/dist/collection/components/inputs/z-input/styles.css +304 -304
  117. package/dist/collection/components/inputs/z-input-label/index.js +72 -72
  118. package/dist/collection/components/inputs/z-input-label/styles.css +16 -16
  119. package/dist/collection/components/inputs/z-input-message/index.js +64 -64
  120. package/dist/collection/components/inputs/z-input-message/styles.css +33 -33
  121. package/dist/collection/components/inputs/z-select/index.js +647 -647
  122. package/dist/collection/components/inputs/z-select/styles.css +131 -131
  123. package/dist/collection/components/list/z-list/index.js +57 -57
  124. package/dist/collection/components/list/z-list/styles.css +7 -7
  125. package/dist/collection/components/list/z-list-element/index.js +439 -439
  126. package/dist/collection/components/list/z-list-element/styles.css +133 -133
  127. package/dist/collection/components/list/z-list-group/index.js +144 -144
  128. package/dist/collection/components/list/z-list-group/styles.css +22 -22
  129. package/dist/collection/components/list/z-toast-notification-list/index.js +97 -97
  130. package/dist/collection/components/list/z-toast-notification-list/styles.css +107 -107
  131. package/dist/collection/components/logo/z-logo/index.js +128 -128
  132. package/dist/collection/components/logo/z-logo/styles.css +28 -28
  133. package/dist/collection/components/modal/z-modal/index.js +160 -160
  134. package/dist/collection/components/modal/z-modal/styles.css +185 -185
  135. package/dist/collection/components/modal/z-modal-login/index.js +272 -272
  136. package/dist/collection/components/modal/z-modal-login/styles.css +159 -159
  137. package/dist/collection/components/navigation/z-app-header/index.js +267 -267
  138. package/dist/collection/components/navigation/z-app-header/styles.css +445 -445
  139. package/dist/collection/components/navigation/z-app-switcher/index.js +70 -70
  140. package/dist/collection/components/navigation/z-app-switcher/styles.css +35 -35
  141. package/dist/collection/components/navigation/z-app-topbar/index.js +156 -156
  142. package/dist/collection/components/navigation/z-app-topbar/styles.css +71 -71
  143. package/dist/collection/components/navigation/z-link/index.js +309 -309
  144. package/dist/collection/components/navigation/z-link/styles.css +164 -164
  145. package/dist/collection/components/navigation/z-menu/index.js +223 -223
  146. package/dist/collection/components/navigation/z-menu/styles.css +149 -149
  147. package/dist/collection/components/navigation/z-menu-dropdown/index.js +125 -125
  148. package/dist/collection/components/navigation/z-menu-dropdown/styles.css +146 -146
  149. package/dist/collection/components/navigation/z-menu-section/index.js +109 -109
  150. package/dist/collection/components/navigation/z-menu-section/styles.css +91 -91
  151. package/dist/collection/components/navigation/z-navigation-tab/index.js +151 -151
  152. package/dist/collection/components/navigation/z-navigation-tab/styles.css +113 -113
  153. package/dist/collection/components/navigation/z-navigation-tabs/index.js +179 -179
  154. package/dist/collection/components/navigation/z-navigation-tabs/styles.css +117 -117
  155. package/dist/collection/components/navigation/z-user-dropdown/index.js +252 -252
  156. package/dist/collection/components/navigation/z-user-dropdown/styles.css +315 -315
  157. package/dist/collection/components/notification/z-candybar/index.js +18 -18
  158. package/dist/collection/components/notification/z-candybar/styles.css +61 -61
  159. package/dist/collection/components/notification/z-cookiebar/index.js +111 -111
  160. package/dist/collection/components/notification/z-cookiebar/styles.css +109 -109
  161. package/dist/collection/components/notification/z-info-box/index.js +79 -79
  162. package/dist/collection/components/notification/z-info-box/styles.css +23 -23
  163. package/dist/collection/components/notification/z-notification/index.js +171 -171
  164. package/dist/collection/components/notification/z-notification/styles.css +93 -93
  165. package/dist/collection/components/notification/z-toast-notification/index.js +402 -402
  166. package/dist/collection/components/notification/z-toast-notification/styles.css +247 -247
  167. package/dist/collection/components/notification/z-tooltip/index.js +379 -379
  168. package/dist/collection/components/notification/z-tooltip/styles.css +128 -128
  169. package/dist/collection/components/pagination/z-pagination-bar/index.js +278 -278
  170. package/dist/collection/components/pagination/z-pagination-bar/styles.css +23 -23
  171. package/dist/collection/components/pagination/z-pagination-page/index.js +129 -129
  172. package/dist/collection/components/pagination/z-pagination-page/styles.css +57 -57
  173. package/dist/collection/components/panel/z-panel-elem/index.js +193 -193
  174. package/dist/collection/components/panel/z-panel-elem/styles.css +39 -39
  175. package/dist/collection/components/typography/z-body/index.js +66 -66
  176. package/dist/collection/components/typography/z-heading/index.js +66 -66
  177. package/dist/collection/components/typography/z-typography/index.js +84 -84
  178. package/dist/collection/components/typography/z-typography/styles.css +61 -61
  179. package/dist/collection/components/z-aria-alert/index.js +32 -32
  180. package/dist/collection/components/z-avatar/index.js +137 -137
  181. package/dist/collection/components/z-avatar/styles.css +35 -35
  182. package/dist/collection/components/z-card/index.js +153 -153
  183. package/dist/collection/components/z-card/styles.css +188 -188
  184. package/dist/collection/components/z-contextual-menu/index.js +122 -122
  185. package/dist/collection/components/z-contextual-menu/styles.css +45 -45
  186. package/dist/collection/components/z-divider/index.js +89 -89
  187. package/dist/collection/components/z-divider/styles.css +37 -37
  188. package/dist/collection/components/z-ghost-loading/index.js +14 -14
  189. package/dist/collection/components/z-ghost-loading/styles.css +34 -34
  190. package/dist/collection/components/z-popover/index.js +273 -273
  191. package/dist/collection/components/z-popover/styles.css +236 -236
  192. package/dist/collection/components/z-status-tag/index.js +125 -125
  193. package/dist/collection/components/z-status-tag/styles.css +133 -133
  194. package/dist/collection/{snowflakes/registro-table/z-registro-table → components/z-table/z-table}/index.js +365 -365
  195. package/dist/collection/{snowflakes/registro-table/z-registro-table → components/z-table/z-table}/styles.css +166 -166
  196. package/dist/collection/{snowflakes/registro-table/z-registro-table-body → components/z-table/z-table-body}/index.js +19 -19
  197. package/dist/collection/{snowflakes/registro-table/z-registro-table-body → components/z-table/z-table-body}/styles.css +9 -9
  198. package/dist/collection/{snowflakes/registro-table/z-registro-table-cell → components/z-table/z-table-cell}/index.js +83 -83
  199. package/dist/collection/{snowflakes/registro-table/z-registro-table-cell → components/z-table/z-table-cell}/styles.css +57 -57
  200. package/dist/collection/{snowflakes/registro-table/z-registro-table-empty-box → components/z-table/z-table-empty-box}/index.js +69 -69
  201. package/dist/collection/{snowflakes/registro-table/z-registro-table-empty-box → components/z-table/z-table-empty-box}/styles.css +24 -24
  202. package/dist/collection/{snowflakes/registro-table/z-registro-table-expanded-row → components/z-table/z-table-expanded-row}/index.js +35 -52
  203. package/dist/collection/{snowflakes/registro-table/z-registro-table-expanded-row → components/z-table/z-table-expanded-row}/styles.css +9 -9
  204. package/dist/collection/{snowflakes/registro-table/z-registro-table-head → components/z-table/z-table-footer}/index.js +18 -18
  205. package/dist/collection/{snowflakes/registro-table/z-registro-table-footer → components/z-table/z-table-footer}/styles.css +5 -5
  206. package/dist/collection/{snowflakes/registro-table/z-registro-table-footer → components/z-table/z-table-head}/index.js +18 -18
  207. package/dist/collection/{snowflakes/registro-table/z-registro-table-head → components/z-table/z-table-head}/styles.css +5 -5
  208. package/dist/collection/{snowflakes/registro-table/z-registro-table-header → components/z-table/z-table-header}/index.js +244 -244
  209. package/dist/collection/{snowflakes/registro-table/z-registro-table-header → components/z-table/z-table-header}/styles.css +63 -63
  210. package/dist/collection/{snowflakes/registro-table/z-registro-table-header-row → components/z-table/z-table-header-row}/index.js +37 -37
  211. package/dist/collection/components/z-table/z-table-header-row/styles.css +13 -0
  212. package/dist/collection/{snowflakes/registro-table/z-registro-table-row → components/z-table/z-table-row}/index.js +86 -86
  213. package/dist/collection/components/z-table/z-table-row/styles.css +54 -0
  214. package/dist/collection/{snowflakes/registro-table/z-registro-table-sticky-footer → components/z-table/z-table-sticky-footer}/index.js +17 -17
  215. package/dist/collection/{snowflakes/registro-table/z-registro-table-sticky-footer → components/z-table/z-table-sticky-footer}/styles.css +10 -10
  216. package/dist/collection/components/z-visually-hidden/index.js +14 -14
  217. package/dist/collection/components/z-visually-hidden/styles.css +12 -12
  218. package/dist/collection/constants/breakpoints.js +3 -3
  219. package/dist/collection/constants/icons.js +6 -6
  220. package/dist/collection/index.js +5 -5
  221. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +119 -119
  222. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +38 -38
  223. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +148 -148
  224. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -62
  225. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +20 -20
  226. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -13
  227. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +87 -87
  228. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -11
  229. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -177
  230. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +85 -85
  231. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +190 -190
  232. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +137 -137
  233. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +23 -23
  234. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +32 -32
  235. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +101 -101
  236. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +46 -46
  237. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +74 -74
  238. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +70 -70
  239. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +213 -213
  240. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +124 -124
  241. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +53 -53
  242. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -41
  243. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +70 -70
  244. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -4
  245. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +188 -188
  246. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +48 -48
  247. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +121 -121
  248. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +106 -106
  249. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +181 -181
  250. package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +56 -56
  251. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +77 -77
  252. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +49 -49
  253. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +86 -86
  254. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +40 -40
  255. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +23 -23
  256. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +53 -53
  257. package/dist/collection/snowflakes/myz/topbar/index.js +428 -428
  258. package/dist/collection/snowflakes/myz/topbar/styles.css +594 -594
  259. package/dist/collection/snowflakes/myz/z-alert/index.js +42 -42
  260. package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
  261. package/dist/collection/snowflakes/myz/z-otp/index.js +114 -114
  262. package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
  263. package/dist/collection/snowflakes/myz/z-slideshow/index.js +165 -165
  264. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +128 -128
  265. package/dist/collection/themes/index.story.js +18 -18
  266. package/dist/collection/utils/utils.js +82 -82
  267. package/dist/esm/{breakpoints-14432d05.js → breakpoints-c386984e.js} +1 -1
  268. package/dist/esm/{icons-c51b7576.js → icons-bceeb196.js} +473 -472
  269. package/dist/esm/{index-0821f9c7.js → index-56ab7a69.js} +254 -254
  270. package/dist/esm/index.js +5 -5
  271. package/dist/esm/loader.js +1 -1
  272. package/dist/esm/polyfills/core-js.js +0 -0
  273. package/dist/esm/polyfills/dom.js +0 -0
  274. package/dist/esm/polyfills/es5-html-element.js +0 -0
  275. package/dist/esm/polyfills/index.js +0 -0
  276. package/dist/esm/polyfills/system.js +0 -0
  277. package/dist/esm/{utils-81743fd3.js → utils-cde16cf3.js} +64 -64
  278. package/dist/esm/web-components-library.js +1 -1
  279. package/dist/esm/z-alert.entry.js +8 -8
  280. package/dist/esm/z-app-header.entry.js +133 -133
  281. package/dist/esm/z-app-switcher.entry.js +18 -18
  282. package/dist/esm/z-app-topbar.entry.js +30 -30
  283. package/dist/esm/z-aria-alert.entry.js +9 -9
  284. package/dist/esm/z-avatar.entry.js +32 -32
  285. package/dist/esm/z-body_2.entry.js +35 -0
  286. package/dist/esm/z-button-filter_5.entry.js +591 -591
  287. package/dist/esm/z-button-sort.entry.js +43 -43
  288. package/dist/esm/z-button.entry.js +35 -0
  289. package/dist/esm/z-candybar.entry.js +8 -8
  290. package/dist/esm/z-card.entry.js +47 -47
  291. package/dist/esm/z-chip.entry.js +13 -13
  292. package/dist/esm/z-combobox.entry.js +160 -160
  293. package/dist/esm/z-contextual-menu.entry.js +29 -29
  294. package/dist/esm/z-cookiebar.entry.js +31 -31
  295. package/dist/esm/z-divider.entry.js +15 -15
  296. package/dist/esm/z-footer-link_3.entry.js +28 -28
  297. package/dist/esm/z-footer.entry.js +91 -91
  298. package/dist/esm/z-ghost-loading.entry.js +9 -9
  299. package/dist/esm/z-heading.entry.js +8 -8
  300. package/dist/esm/z-icon-package.entry.js +12 -12
  301. package/dist/esm/z-icon.entry.js +24 -0
  302. package/dist/esm/z-info-box.entry.js +14 -14
  303. package/dist/esm/z-link.entry.js +60 -60
  304. package/dist/esm/z-list_3.entry.js +205 -205
  305. package/dist/esm/z-logo.entry.js +17 -17
  306. package/dist/esm/z-menu-dropdown_2.entry.js +73 -73
  307. package/dist/esm/z-menu-section.entry.js +35 -35
  308. package/dist/esm/z-menu.entry.js +99 -99
  309. package/dist/esm/z-messages-pocket.entry.js +36 -36
  310. package/dist/esm/z-modal-login.entry.js +71 -71
  311. package/dist/esm/z-modal.entry.js +26 -26
  312. package/dist/esm/z-myz-card-alert.entry.js +52 -52
  313. package/dist/esm/z-myz-card-dictionary.entry.js +25 -25
  314. package/dist/esm/z-myz-card-footer-sections.entry.js +8 -8
  315. package/dist/esm/z-myz-card-footer.entry.js +42 -42
  316. package/dist/esm/z-myz-card-icon.entry.js +10 -10
  317. package/dist/esm/z-myz-card-info.entry.js +109 -109
  318. package/dist/esm/z-myz-card-list.entry.js +26 -26
  319. package/dist/esm/z-myz-card_4.entry.js +76 -76
  320. package/dist/esm/z-myz-list-item.entry.js +26 -26
  321. package/dist/esm/z-myz-topbar.entry.js +183 -183
  322. package/dist/esm/z-navigation-tab.entry.js +34 -34
  323. package/dist/esm/z-navigation-tabs.entry.js +90 -90
  324. package/dist/esm/z-notification.entry.js +31 -31
  325. package/dist/esm/z-otp.entry.js +30 -30
  326. package/dist/esm/z-pagination-bar.entry.js +115 -115
  327. package/dist/esm/z-pagination-page.entry.js +14 -14
  328. package/dist/esm/z-panel-elem.entry.js +19 -19
  329. package/dist/esm/z-pocket-message.entry.js +8 -8
  330. package/dist/esm/z-pocket_3.entry.js +102 -102
  331. package/dist/esm/z-popover.entry.js +123 -0
  332. package/dist/esm/z-slideshow.entry.js +101 -101
  333. package/dist/esm/z-status-tag.entry.js +16 -16
  334. package/dist/esm/z-stepper-item.entry.js +11 -11
  335. package/dist/esm/z-stepper.entry.js +8 -8
  336. package/dist/esm/z-table-body.entry.js +20 -0
  337. package/dist/esm/z-table-cell.entry.js +32 -0
  338. package/dist/esm/z-table-empty-box.entry.js +24 -0
  339. package/dist/esm/{z-registro-table-expanded-row.entry.js → z-table-expanded-row.entry.js} +10 -10
  340. package/dist/esm/{z-registro-table-footer.entry.js → z-table-footer.entry.js} +15 -15
  341. package/dist/esm/z-table-head.entry.js +19 -0
  342. package/dist/esm/z-table-header-row.entry.js +18 -0
  343. package/dist/esm/z-table-header.entry.js +84 -0
  344. package/dist/esm/z-table-row.entry.js +39 -0
  345. package/dist/esm/z-table-sticky-footer.entry.js +15 -0
  346. package/dist/esm/z-table.entry.js +78 -0
  347. package/dist/esm/z-toast-notification-list.entry.js +45 -45
  348. package/dist/esm/z-toast-notification.entry.js +190 -190
  349. package/dist/esm/z-toggle-button.entry.js +25 -25
  350. package/dist/esm/z-tooltip.entry.js +263 -263
  351. package/dist/esm/z-user-dropdown.entry.js +84 -84
  352. package/dist/esm/z-visually-hidden.entry.js +8 -8
  353. package/dist/types/beans/index.d.ts +338 -338
  354. package/dist/types/components/buttons/z-button/index.d.ts +29 -29
  355. package/dist/types/components/buttons/z-button-filter/index.d.ts +22 -22
  356. package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
  357. package/dist/types/components/buttons/z-chip/index.d.ts +6 -6
  358. package/dist/types/components/buttons/z-toggle-button/index.d.ts +16 -16
  359. package/dist/types/components/footer/z-footer/index.d.ts +46 -46
  360. package/dist/types/components/footer/z-footer-link/index.d.ts +8 -8
  361. package/dist/types/components/footer/z-footer-section/index.d.ts +10 -10
  362. package/dist/types/components/footer/z-footer-social/index.d.ts +9 -9
  363. package/dist/types/components/icons/icons.d.ts +444 -443
  364. package/dist/types/components/icons/z-icon/index.d.ts +14 -14
  365. package/dist/types/components/icons/z-icon-package/index.d.ts +3 -3
  366. package/dist/types/components/indicators/z-stepper/index.d.ts +6 -6
  367. package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -19
  368. package/dist/types/components/inputs/z-combobox/index.d.ts +62 -62
  369. package/dist/types/components/inputs/z-input/index.d.ts +102 -102
  370. package/dist/types/components/inputs/z-input-label/index.d.ts +9 -9
  371. package/dist/types/components/inputs/z-input-message/index.d.ts +9 -9
  372. package/dist/types/components/inputs/z-select/index.d.ts +73 -73
  373. package/dist/types/components/list/z-list/index.d.ts +11 -11
  374. package/dist/types/components/list/z-list-element/index.d.ts +79 -79
  375. package/dist/types/components/list/z-list-group/index.d.ts +24 -24
  376. package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
  377. package/dist/types/components/logo/z-logo/index.d.ts +15 -15
  378. package/dist/types/components/modal/z-modal/index.d.ts +25 -25
  379. package/dist/types/components/modal/z-modal-login/index.d.ts +42 -42
  380. package/dist/types/components/navigation/z-app-header/index.d.ts +67 -67
  381. package/dist/types/components/navigation/z-app-switcher/index.d.ts +12 -12
  382. package/dist/types/components/navigation/z-app-topbar/index.d.ts +20 -20
  383. package/dist/types/components/navigation/z-link/index.d.ts +41 -41
  384. package/dist/types/components/navigation/z-menu/index.d.ts +52 -52
  385. package/dist/types/components/navigation/z-menu-dropdown/index.d.ts +19 -19
  386. package/dist/types/components/navigation/z-menu-section/index.d.ts +24 -24
  387. package/dist/types/components/navigation/z-navigation-tab/index.d.ts +16 -16
  388. package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +32 -32
  389. package/dist/types/components/navigation/z-user-dropdown/index.d.ts +39 -39
  390. package/dist/types/components/notification/z-candybar/index.d.ts +6 -6
  391. package/dist/types/components/notification/z-cookiebar/index.d.ts +16 -16
  392. package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
  393. package/dist/types/components/notification/z-notification/index.d.ts +24 -24
  394. package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
  395. package/dist/types/components/notification/z-tooltip/index.d.ts +41 -41
  396. package/dist/types/components/pagination/z-pagination-bar/index.d.ts +42 -42
  397. package/dist/types/components/pagination/z-pagination-page/index.d.ts +15 -15
  398. package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
  399. package/dist/types/components/typography/z-body/index.d.ts +6 -6
  400. package/dist/types/components/typography/z-heading/index.d.ts +6 -6
  401. package/dist/types/components/typography/z-typography/index.d.ts +8 -8
  402. package/dist/types/components/z-aria-alert/index.d.ts +4 -4
  403. package/dist/types/components/z-avatar/index.d.ts +16 -16
  404. package/dist/types/components/z-card/index.d.ts +29 -29
  405. package/dist/types/components/z-contextual-menu/index.d.ts +22 -22
  406. package/dist/types/components/z-divider/index.d.ts +10 -10
  407. package/dist/types/components/z-ghost-loading/index.d.ts +3 -3
  408. package/dist/types/components/z-popover/index.d.ts +29 -29
  409. package/dist/types/components/z-status-tag/index.d.ts +15 -15
  410. package/dist/types/{snowflakes/registro-table/z-registro-table → components/z-table/z-table}/index.d.ts +48 -48
  411. package/dist/types/{snowflakes/registro-table/z-registro-table-head → components/z-table/z-table-body}/index.d.ts +5 -5
  412. package/dist/types/{snowflakes/registro-table/z-registro-table-cell → components/z-table/z-table-cell}/index.d.ts +12 -12
  413. package/dist/types/{snowflakes/registro-table/z-registro-table-empty-box → components/z-table/z-table-empty-box}/index.d.ts +12 -12
  414. package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +5 -0
  415. package/dist/types/{snowflakes/registro-table/z-registro-table-body → components/z-table/z-table-footer}/index.d.ts +5 -5
  416. package/dist/types/{snowflakes/registro-table/z-registro-table-footer → components/z-table/z-table-head}/index.d.ts +5 -5
  417. package/dist/types/{snowflakes/registro-table/z-registro-table-header → components/z-table/z-table-header}/index.d.ts +27 -27
  418. package/dist/types/{snowflakes/registro-table/z-registro-table-header-row → components/z-table/z-table-header-row}/index.d.ts +5 -5
  419. package/dist/types/{snowflakes/registro-table/z-registro-table-row → components/z-table/z-table-row}/index.d.ts +11 -11
  420. package/dist/types/{snowflakes/registro-table/z-registro-table-sticky-footer → components/z-table/z-table-sticky-footer}/index.d.ts +6 -6
  421. package/dist/types/components/z-visually-hidden/index.d.ts +3 -3
  422. package/dist/types/components.d.ts +337 -339
  423. package/dist/types/constants/breakpoints.d.ts +3 -3
  424. package/dist/types/constants/icons.d.ts +6 -6
  425. package/dist/types/index.d.ts +5 -5
  426. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -16
  427. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +20 -20
  428. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -7
  429. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -12
  430. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -24
  431. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -34
  432. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -7
  433. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +23 -23
  434. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -9
  435. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -36
  436. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +10 -10
  437. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -11
  438. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -25
  439. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -16
  440. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -25
  441. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -12
  442. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -18
  443. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -7
  444. package/dist/types/snowflakes/myz/topbar/index.d.ts +61 -61
  445. package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
  446. package/dist/types/snowflakes/myz/z-otp/index.d.ts +13 -13
  447. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
  448. package/dist/types/utils/utils.d.ts +11 -11
  449. package/dist/web-components-library/index.esm.js +1 -1
  450. package/{www/build/p-9fdb83ea.entry.js → dist/web-components-library/p-0ba3401a.entry.js} +1 -1
  451. package/dist/web-components-library/p-0f197b8e.entry.js +1 -0
  452. package/dist/web-components-library/p-1094e4de.entry.js +1 -0
  453. package/dist/web-components-library/p-1cf2c6f6.entry.js +1 -0
  454. package/dist/web-components-library/{p-2119ed80.entry.js → p-21f3b77f.entry.js} +1 -1
  455. package/{www/build/p-08bc9807.entry.js → dist/web-components-library/p-2b361a53.entry.js} +1 -1
  456. package/dist/web-components-library/{p-2ce4a266.entry.js → p-38091d2a.entry.js} +1 -1
  457. package/dist/web-components-library/{p-015af05a.entry.js → p-3a5fc4ef.entry.js} +1 -1
  458. package/dist/web-components-library/{p-f7516af7.entry.js → p-3ece97c0.entry.js} +1 -1
  459. package/{www/build/p-a73e7e46.js → dist/web-components-library/p-45261bde.js} +1 -1
  460. package/dist/web-components-library/p-4665d79f.entry.js +1 -0
  461. package/dist/web-components-library/p-4a1404e2.entry.js +1 -0
  462. package/dist/web-components-library/{p-a6d50680.entry.js → p-4a414eb2.entry.js} +1 -1
  463. package/dist/web-components-library/p-4c1dc891.entry.js +1 -0
  464. package/dist/web-components-library/p-568b3728.entry.js +1 -0
  465. package/dist/web-components-library/{p-1d19c88d.entry.js → p-5f8b1594.entry.js} +1 -1
  466. package/dist/web-components-library/p-6384d72c.entry.js +1 -0
  467. package/dist/web-components-library/p-662b29d0.entry.js +1 -0
  468. package/dist/web-components-library/{p-02006641.entry.js → p-698e18cf.entry.js} +1 -1
  469. package/dist/web-components-library/{p-b1542657.entry.js → p-7c8a52e0.entry.js} +1 -1
  470. package/dist/web-components-library/{p-6041fb4f.entry.js → p-7d7aee65.entry.js} +1 -1
  471. package/dist/web-components-library/{p-110cb323.entry.js → p-80d6185c.entry.js} +1 -1
  472. package/dist/web-components-library/{p-2c8ec11d.js → p-82048c15.js} +1 -1
  473. package/dist/web-components-library/{p-c2fddaea.entry.js → p-8a12e2cd.entry.js} +1 -1
  474. package/dist/web-components-library/{p-ea4c57b6.entry.js → p-8a9199e8.entry.js} +1 -1
  475. package/dist/web-components-library/{p-30bd0f04.entry.js → p-8ad12683.entry.js} +1 -1
  476. package/dist/web-components-library/p-8ccf136e.entry.js +1 -0
  477. package/dist/web-components-library/p-8deddec7.entry.js +1 -0
  478. package/dist/web-components-library/p-8edb6b65.entry.js +1 -0
  479. package/dist/web-components-library/{p-297ca258.entry.js → p-9621d591.entry.js} +1 -1
  480. package/dist/web-components-library/p-a762915b.entry.js +1 -0
  481. package/dist/web-components-library/{p-e4578ccd.entry.js → p-a93086bc.entry.js} +1 -1
  482. package/dist/web-components-library/p-aa77d746.entry.js +1 -0
  483. package/dist/web-components-library/{p-9a57e8d0.entry.js → p-ac229c9e.entry.js} +1 -1
  484. package/dist/web-components-library/{p-90cbf584.entry.js → p-b78fb152.entry.js} +1 -1
  485. package/dist/web-components-library/{p-8e43775e.entry.js → p-bc7e836a.entry.js} +1 -1
  486. package/dist/web-components-library/{p-d6e756ad.entry.js → p-be3eeede.entry.js} +1 -1
  487. package/dist/web-components-library/{p-16a1a17c.entry.js → p-cf899f93.entry.js} +1 -1
  488. package/dist/web-components-library/{p-4aa82030.entry.js → p-d0c3eac6.entry.js} +1 -1
  489. package/dist/web-components-library/{p-ff0d54da.entry.js → p-d1896fdb.entry.js} +1 -1
  490. package/dist/web-components-library/p-d4c4b90a.entry.js +1 -0
  491. package/dist/web-components-library/{p-e35d3552.js → p-d69e14fb.js} +0 -0
  492. package/dist/web-components-library/{p-7f4d03e8.entry.js → p-d8bc4e21.entry.js} +1 -1
  493. package/{www/build/p-68946b44.entry.js → dist/web-components-library/p-db8f3039.entry.js} +1 -1
  494. package/dist/web-components-library/p-ddc5aae2.entry.js +1 -0
  495. package/dist/web-components-library/{p-33e2c404.entry.js → p-de5f9244.entry.js} +1 -1
  496. package/dist/web-components-library/{p-676f8160.entry.js → p-df4cf5b2.entry.js} +1 -1
  497. package/dist/web-components-library/{p-2381edd3.entry.js → p-e1f1f39e.entry.js} +1 -1
  498. package/dist/web-components-library/{p-c5d41e22.entry.js → p-e6aac31c.entry.js} +1 -1
  499. package/dist/web-components-library/{p-71b134e2.entry.js → p-e8615a83.entry.js} +1 -1
  500. package/dist/web-components-library/{p-c81058ce.entry.js → p-ebcad010.entry.js} +1 -1
  501. package/dist/web-components-library/p-ec13a382.entry.js +1 -0
  502. package/{www/build/p-bda07a88.entry.js → dist/web-components-library/p-ee4fa9a8.entry.js} +1 -1
  503. package/dist/web-components-library/{p-4bdbeee9.entry.js → p-ee645fca.entry.js} +1 -1
  504. package/dist/web-components-library/{p-8d62e6e4.entry.js → p-eface1ff.entry.js} +1 -1
  505. package/dist/web-components-library/p-f5e1d5a9.entry.js +1 -0
  506. package/dist/web-components-library/{p-391760fd.js → p-fcfb7e03.js} +1 -1
  507. package/dist/web-components-library/web-components-library.esm.js +1 -1
  508. package/package.json +90 -90
  509. package/react/components.d.ts +91 -91
  510. package/react/components.js +97 -97
  511. package/react/components.js.map +1 -1
  512. package/react/index.d.ts +1 -1
  513. package/react/index.js +13 -13
  514. package/react/react-component-lib/createComponent.d.ts +10 -10
  515. package/react/react-component-lib/createComponent.js +65 -65
  516. package/react/react-component-lib/createOverlayComponent.d.ts +20 -20
  517. package/react/react-component-lib/createOverlayComponent.js +95 -95
  518. package/react/react-component-lib/index.d.ts +2 -2
  519. package/react/react-component-lib/index.js +7 -7
  520. package/react/react-component-lib/interfaces.d.ts +29 -29
  521. package/react/react-component-lib/interfaces.js +2 -2
  522. package/react/react-component-lib/utils/attachProps.d.ts +12 -12
  523. package/react/react-component-lib/utils/attachProps.js +102 -102
  524. package/react/react-component-lib/utils/case.d.ts +2 -2
  525. package/react/react-component-lib/utils/case.js +11 -11
  526. package/react/react-component-lib/utils/dev.d.ts +2 -2
  527. package/react/react-component-lib/utils/dev.js +17 -17
  528. package/react/react-component-lib/utils/index.d.ts +7 -7
  529. package/react/react-component-lib/utils/index.js +38 -38
  530. package/readme.md +236 -236
  531. package/src-react/index.ts +1 -0
  532. package/www/build/index.esm.js +1 -1
  533. package/{dist/web-components-library/p-9fdb83ea.entry.js → www/build/p-0ba3401a.entry.js} +1 -1
  534. package/www/build/p-0f197b8e.entry.js +1 -0
  535. package/www/build/p-1094e4de.entry.js +1 -0
  536. package/www/build/p-1cf2c6f6.entry.js +1 -0
  537. package/www/build/{p-2119ed80.entry.js → p-21f3b77f.entry.js} +1 -1
  538. package/{dist/web-components-library/p-08bc9807.entry.js → www/build/p-2b361a53.entry.js} +1 -1
  539. package/www/build/p-331e0cc6.js +1 -0
  540. package/www/build/{p-2ce4a266.entry.js → p-38091d2a.entry.js} +1 -1
  541. package/www/build/{p-015af05a.entry.js → p-3a5fc4ef.entry.js} +1 -1
  542. package/www/build/{p-f7516af7.entry.js → p-3ece97c0.entry.js} +1 -1
  543. package/{dist/web-components-library/p-a73e7e46.js → www/build/p-45261bde.js} +1 -1
  544. package/www/build/p-4665d79f.entry.js +1 -0
  545. package/www/build/p-4a1404e2.entry.js +1 -0
  546. package/www/build/{p-a6d50680.entry.js → p-4a414eb2.entry.js} +1 -1
  547. package/www/build/p-4c1dc891.entry.js +1 -0
  548. package/www/build/p-568b3728.entry.js +1 -0
  549. package/www/build/{p-1d19c88d.entry.js → p-5f8b1594.entry.js} +1 -1
  550. package/www/build/p-6384d72c.entry.js +1 -0
  551. package/www/build/p-662b29d0.entry.js +1 -0
  552. package/www/build/{p-02006641.entry.js → p-698e18cf.entry.js} +1 -1
  553. package/www/build/{p-b1542657.entry.js → p-7c8a52e0.entry.js} +1 -1
  554. package/www/build/{p-6041fb4f.entry.js → p-7d7aee65.entry.js} +1 -1
  555. package/www/build/{p-110cb323.entry.js → p-80d6185c.entry.js} +1 -1
  556. package/www/build/{p-2c8ec11d.js → p-82048c15.js} +1 -1
  557. package/www/build/{p-c2fddaea.entry.js → p-8a12e2cd.entry.js} +1 -1
  558. package/www/build/{p-ea4c57b6.entry.js → p-8a9199e8.entry.js} +1 -1
  559. package/www/build/{p-30bd0f04.entry.js → p-8ad12683.entry.js} +1 -1
  560. package/www/build/p-8ccf136e.entry.js +1 -0
  561. package/www/build/p-8deddec7.entry.js +1 -0
  562. package/www/build/p-8edb6b65.entry.js +1 -0
  563. package/www/build/{p-297ca258.entry.js → p-9621d591.entry.js} +1 -1
  564. package/www/build/p-a762915b.entry.js +1 -0
  565. package/www/build/{p-e4578ccd.entry.js → p-a93086bc.entry.js} +1 -1
  566. package/www/build/p-aa77d746.entry.js +1 -0
  567. package/www/build/{p-9a57e8d0.entry.js → p-ac229c9e.entry.js} +1 -1
  568. package/www/build/{p-90cbf584.entry.js → p-b78fb152.entry.js} +1 -1
  569. package/www/build/{p-8e43775e.entry.js → p-bc7e836a.entry.js} +1 -1
  570. package/www/build/{p-d6e756ad.entry.js → p-be3eeede.entry.js} +1 -1
  571. package/www/build/{p-16a1a17c.entry.js → p-cf899f93.entry.js} +1 -1
  572. package/www/build/{p-4aa82030.entry.js → p-d0c3eac6.entry.js} +1 -1
  573. package/www/build/{p-ff0d54da.entry.js → p-d1896fdb.entry.js} +1 -1
  574. package/www/build/p-d4c4b90a.entry.js +1 -0
  575. package/www/build/{p-e35d3552.js → p-d69e14fb.js} +0 -0
  576. package/www/build/{p-7f4d03e8.entry.js → p-d8bc4e21.entry.js} +1 -1
  577. package/{dist/web-components-library/p-68946b44.entry.js → www/build/p-db8f3039.entry.js} +1 -1
  578. package/www/build/p-ddc5aae2.entry.js +1 -0
  579. package/www/build/{p-33e2c404.entry.js → p-de5f9244.entry.js} +1 -1
  580. package/www/build/{p-676f8160.entry.js → p-df4cf5b2.entry.js} +1 -1
  581. package/www/build/{p-2381edd3.entry.js → p-e1f1f39e.entry.js} +1 -1
  582. package/www/build/{p-c5d41e22.entry.js → p-e6aac31c.entry.js} +1 -1
  583. package/www/build/{p-71b134e2.entry.js → p-e8615a83.entry.js} +1 -1
  584. package/www/build/p-ea943cbd.css +1 -0
  585. package/www/build/{p-c81058ce.entry.js → p-ebcad010.entry.js} +1 -1
  586. package/www/build/p-ec13a382.entry.js +1 -0
  587. package/{dist/web-components-library/p-bda07a88.entry.js → www/build/p-ee4fa9a8.entry.js} +1 -1
  588. package/www/build/{p-4bdbeee9.entry.js → p-ee645fca.entry.js} +1 -1
  589. package/www/build/{p-8d62e6e4.entry.js → p-eface1ff.entry.js} +1 -1
  590. package/www/build/p-f5e1d5a9.entry.js +1 -0
  591. package/www/build/{p-391760fd.js → p-fcfb7e03.js} +1 -1
  592. package/www/build/web-components-library.esm.js +1 -1
  593. package/www/index.html +1 -1
  594. package/www/pages/notification.html +244 -244
  595. package/dist/cjs/z-body_14.cjs.entry.js +0 -513
  596. package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/styles.css +0 -13
  597. package/dist/collection/snowflakes/registro-table/z-registro-table-row/styles.css +0 -54
  598. package/dist/esm/z-body_14.entry.js +0 -496
  599. package/dist/types/snowflakes/registro-table/z-registro-table-expanded-row/index.d.ts +0 -6
  600. package/dist/web-components-library/p-017370c7.entry.js +0 -1
  601. package/dist/web-components-library/p-0b347583.entry.js +0 -1
  602. package/dist/web-components-library/p-0fe60379.entry.js +0 -1
  603. package/dist/web-components-library/p-519e2237.entry.js +0 -1
  604. package/dist/web-components-library/p-7c866bef.entry.js +0 -1
  605. package/dist/web-components-library/p-8743724e.entry.js +0 -1
  606. package/www/build/p-017370c7.entry.js +0 -1
  607. package/www/build/p-0b347583.entry.js +0 -1
  608. package/www/build/p-0fe60379.entry.js +0 -1
  609. package/www/build/p-1505df3a.js +0 -122
  610. package/www/build/p-519e2237.entry.js +0 -1
  611. package/www/build/p-7c866bef.entry.js +0 -1
  612. package/www/build/p-8743724e.entry.js +0 -1
  613. package/www/build/p-c6932a85.css +0 -789
@@ -3,614 +3,614 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-dee3e21d.js');
6
- const index$1 = require('./index-21817092.js');
7
- const utils = require('./utils-c3cf6ba2.js');
8
- require('./breakpoints-776c8868.js');
6
+ const index$1 = require('./index-3735f277.js');
7
+ const utils = require('./utils-6a2c0eab.js');
8
+ require('./breakpoints-88c4fd6c.js');
9
9
 
10
10
  const stylesCss$4 = "button.container{min-height:32px;line-height:32px;border:var(--border-size-small) solid var(--bg-grey-200);border-radius:16px;box-shadow:0px 2px 5px 0px var(--bg-neutral-300);-webkit-box-shadow:0px 2px 5px 0px var(--bg-neutral-300);-moz-box-shadow:0px 2px 5px 0px var(--bg-neutral-300);text-align:center;padding:0 calc(var(--space-unit) * 2);cursor:pointer;letter-spacing:0.17px;font-family:var(--dashboard-font);font-size:12px;font-weight:var(--font-sb);opacity:1;transition:all 200ms linear}button.container.small{min-height:24px;line-height:24px}button.container:focus{outline:0}button.container::-moz-focus-inner{border:0}.text-container{margin-left:4px}button.container,button.container:focus,button.container:hover{background-color:var(--bg-white);color:var(--text-grey-700);fill:var(--text-grey-700)}button.container.isactive{background-color:var(--bg-white);color:var(--myz-blue);fill:var(--myz-blue)}button.container.isactive:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button.container.isactive:focus{background-color:var(--myz-blue-dark);border-color:var(--myz-blue-dark);box-shadow:0px 0px 4px 0px var(--text-grey-800);color:var(--bg-white);fill:var(--bg-white)}button z-icon{display:inline-block}";
11
11
 
12
- const ZButtonFilter = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- this.removefilter = index.createEvent(this, "removefilter", 7);
16
- /** disable action on button */
17
- this.isfixed = false;
18
- /** add icon to button */
19
- this.hasicon = true;
20
- /** reduce button size (optional) */
21
- this.issmall = false;
22
- this.handleRemovingFilterClick = this.handleRemovingFilterClick.bind(this);
23
- }
24
- handleRemovingFilterClick() {
25
- this.removefilter.emit({
26
- filterid: this.filterid,
27
- });
28
- }
29
- renderFixedPillow(filtername) {
30
- return (index.h("button", { class: `container ${this.issmall ? "small" : ""}` }, this.renderIcon(), this.renderContent(filtername)));
31
- }
32
- renderDynamicPillow(filtername) {
33
- return (index.h("button", { class: `container isactive ${this.issmall ? "small" : ""}`, onClick: this.handleRemovingFilterClick }, this.renderIcon(), this.renderContent(filtername)));
34
- }
35
- renderIcon() {
36
- if (!this.hasicon)
37
- return null;
38
- return (index.h("z-icon", { class: "close-icon-container", name: "multiply", height: 12, width: 12 }));
39
- }
40
- renderContent(filtername) {
41
- return index.h("span", { class: "text-container" }, filtername);
42
- }
43
- render() {
44
- if (this.isfixed) {
45
- return this.renderFixedPillow(this.filtername);
46
- }
47
- return this.renderDynamicPillow(this.filtername);
48
- }
49
- };
12
+ const ZButtonFilter = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.removefilter = index.createEvent(this, "removefilter", 7);
16
+ /** disable action on button */
17
+ this.isfixed = false;
18
+ /** add icon to button */
19
+ this.hasicon = true;
20
+ /** reduce button size (optional) */
21
+ this.issmall = false;
22
+ this.handleRemovingFilterClick = this.handleRemovingFilterClick.bind(this);
23
+ }
24
+ handleRemovingFilterClick() {
25
+ this.removefilter.emit({
26
+ filterid: this.filterid,
27
+ });
28
+ }
29
+ renderFixedPillow(filtername) {
30
+ return (index.h("button", { class: `container ${this.issmall ? "small" : ""}` }, this.renderIcon(), this.renderContent(filtername)));
31
+ }
32
+ renderDynamicPillow(filtername) {
33
+ return (index.h("button", { class: `container isactive ${this.issmall ? "small" : ""}`, onClick: this.handleRemovingFilterClick }, this.renderIcon(), this.renderContent(filtername)));
34
+ }
35
+ renderIcon() {
36
+ if (!this.hasicon)
37
+ return null;
38
+ return (index.h("z-icon", { class: "close-icon-container", name: "multiply", height: 12, width: 12 }));
39
+ }
40
+ renderContent(filtername) {
41
+ return index.h("span", { class: "text-container" }, filtername);
42
+ }
43
+ render() {
44
+ if (this.isfixed) {
45
+ return this.renderFixedPillow(this.filtername);
46
+ }
47
+ return this.renderDynamicPillow(this.filtername);
48
+ }
49
+ };
50
50
  ZButtonFilter.style = stylesCss$4;
51
51
 
52
- const stylesCss$3 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textareaWrapper.sc-z-input,ul[role=\"listbox\"].sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,li[role=\"option\"].sc-z-input:focus:focus-visible,.focus.sc-z-input{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input{border-color:var(--color-surface05)}.istyping.sc-z-input,.focus.istyping.sc-z-input,.input_selecting.sc-z-input{border-color:var(--color-primary01);color:var(--color-primary01)}.input_success.sc-z-input,.input_success.sc-z-input:hover,.input_success.hover.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input,.input_error.sc-z-input:hover,.input_error.hover.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input,.input_warning.sc-z-input:hover,.input_warning.hover.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input:disabled,.disabled.sc-z-input,.filled.sc-z-input:disabled{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 4)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 7)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);display:flex;z-index:2}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{background:linear-gradient(\r\n to right,\r\n transparent 0 3px,\r\n var(--gray200) 3px 7px,\r\n transparent 7px 10px\r\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
52
+ const stylesCss$3 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textareaWrapper.sc-z-input,ul[role=\"listbox\"].sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,li[role=\"option\"].sc-z-input:focus:focus-visible,.focus.sc-z-input{box-shadow:var(--shadow-focus-primary)}.filled.sc-z-input{border-color:var(--color-surface05)}.istyping.sc-z-input,.focus.istyping.sc-z-input,.input_selecting.sc-z-input{border-color:var(--color-primary01);color:var(--color-primary01)}.input_success.sc-z-input,.input_success.sc-z-input:hover,.input_success.hover.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input,.input_error.sc-z-input:hover,.input_error.hover.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input,.input_warning.sc-z-input:hover,.input_warning.hover.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}input.sc-z-input:disabled,.disabled.sc-z-input,.filled.sc-z-input:disabled{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 4.5) 0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 4)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 7)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;bottom:calc(var(--space-unit) * 1.5);right:calc(var(--space-unit) * 1.5);display:flex;z-index:2}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block;margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>z-icon.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
53
53
 
54
- const ZInput = class {
55
- constructor(hostRef) {
56
- index.registerInstance(this, hostRef);
57
- this.inputChange = index.createEvent(this, "inputChange", 7);
58
- this.startTyping = index.createEvent(this, "startTyping", 7);
59
- this.stopTyping = index.createEvent(this, "stopTyping", 7);
60
- this.inputCheck = index.createEvent(this, "inputCheck", 7);
61
- this.optionSelect = index.createEvent(this, "optionSelect", 7);
62
- /** the id of the input element */
63
- this.htmlid = `id-${utils.randomId()}`;
64
- /** the input is disabled */
65
- this.disabled = false;
66
- /** the input is readonly */
67
- this.readonly = false;
68
- /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
69
- this.required = false;
70
- /** checked: available for checkbox, radio */
71
- this.checked = false;
72
- /** show input helper message (optional): available for text, password, number, email, textarea, select */
73
- this.hasmessage = true;
74
- /** the input label position: available for checkbox, radio */
75
- this.labelafter = true;
76
- /** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
77
- this.typingtimeout = 300;
78
- /** multiple options can be selected (optional): available for select */
79
- this.multiple = false;
80
- /** render clear icon when typing (optional): available for text */
81
- this.hasclearicon = true;
82
- this.isTyping = false;
83
- this.textareaWrapperHover = "";
84
- this.textareaWrapperFocus = "";
85
- this.passwordHidden = true;
86
- }
87
- inputCheckListener(e) {
88
- const data = e.detail;
89
- switch (this.type) {
90
- case index$1.InputTypeEnum.radio:
91
- if (data.type === index$1.InputTypeEnum.radio &&
92
- data.name === this.name &&
93
- data.id !== this.htmlid) {
94
- this.checked = false;
95
- }
96
- default:
97
- return;
98
- }
99
- }
100
- /** get the input value */
101
- async getValue() {
102
- switch (this.type) {
103
- case index$1.InputTypeEnum.select:
104
- return this.selectElem.getValue();
105
- default:
106
- return this.value;
107
- }
108
- }
109
- /** set the input value */
110
- async setValue(value) {
111
- switch (this.type) {
112
- case index$1.InputTypeEnum.select:
113
- this.selectElem.setValue(value);
114
- break;
115
- default:
116
- if (typeof value === "string")
117
- this.value = value;
118
- break;
119
- }
120
- }
121
- /** get checked status */
122
- async isChecked() {
123
- switch (this.type) {
124
- case index$1.InputTypeEnum.checkbox:
125
- case index$1.InputTypeEnum.radio:
126
- return this.checked;
127
- default:
128
- return false;
129
- }
130
- }
131
- emitInputChange(value, keycode) {
132
- if (!this.isTyping) {
133
- this.emitStartTyping();
134
- }
135
- let validity = {};
136
- if (this.type === index$1.InputTypeEnum.textarea) {
137
- validity = this.getValidity("textarea");
138
- }
139
- else {
140
- validity = this.getValidity("input");
141
- }
142
- this.value = value;
143
- this.inputChange.emit({ value, keycode, validity });
144
- clearTimeout(this.timer);
145
- this.timer = setTimeout(() => {
146
- this.emitStopTyping(this.value, validity);
147
- }, this.typingtimeout);
148
- }
149
- emitStartTyping() {
150
- this.isTyping = true;
151
- this.startTyping.emit();
152
- }
153
- emitStopTyping(value, validity) {
154
- this.isTyping = false;
155
- this.stopTyping.emit({
156
- value: value,
157
- validity: validity,
158
- });
159
- }
160
- emitInputCheck(checked) {
161
- this.inputCheck.emit({
162
- id: this.htmlid,
163
- checked: checked,
164
- type: this.type,
165
- name: this.name,
166
- value: this.value,
167
- validity: this.getValidity("input"),
168
- });
169
- }
170
- getValidity(type) {
171
- const input = this.hostElement.querySelector(type);
172
- return input.validity;
173
- }
174
- /* START text/password/email/number */
175
- getTextAttributes() {
176
- const attr = {
177
- id: this.htmlid,
178
- name: this.name,
179
- placeholder: this.placeholder,
180
- value: this.value,
181
- disabled: this.disabled,
182
- readonly: this.readonly,
183
- required: this.required,
184
- title: this.htmltitle,
185
- class: [
186
- `input_${this.status || "default"}`,
187
- this.isTyping && "istyping",
188
- !this.isTyping && this.value && "filled",
189
- ]
190
- .filter(Boolean)
191
- .join(" "),
192
- onInput: (e) => this.emitInputChange(e.target.value, e.keyCode),
193
- };
194
- if (this.autocomplete) {
195
- attr["autocomplete"] = this.autocomplete;
196
- }
197
- return attr;
198
- }
199
- renderInputText(type = index$1.InputTypeEnum.text) {
200
- const attr = this.getTextAttributes();
201
- if (this.icon || type === index$1.InputTypeEnum.password) {
202
- attr.class += " hasIcon";
203
- }
204
- if (this.hasclearicon) {
205
- attr.class += " hasClearIcon";
206
- }
207
- return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", null, index.h("input", Object.assign({ type: type === index$1.InputTypeEnum.password && !this.passwordHidden
208
- ? index$1.InputTypeEnum.text
209
- : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
210
- }
211
- renderLabel() {
212
- if (!this.label)
213
- return;
214
- return (index.h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_label` }));
215
- }
216
- renderIcons() {
217
- return (index.h("span", { class: {
218
- iconsWrapper: true,
219
- disabled: this.disabled,
220
- } }, this.renderResetIcon(), this.renderIcon()));
221
- }
222
- renderIcon() {
223
- if (this.type === index$1.InputTypeEnum.password) {
224
- return this.renderShowHidePassword();
225
- }
226
- if (!this.icon)
227
- return;
228
- return index.h("z-icon", { class: "inputIcon", name: this.icon });
229
- }
230
- renderResetIcon() {
231
- if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
232
- return;
233
- return (index.h("z-icon", { class: "resetIcon", name: "multiply", onClick: (e) => this.emitInputChange("", e.keyCode) }));
234
- }
235
- renderShowHidePassword() {
236
- return (index.h("z-icon", { class: "showHidePasswordIcon", name: this.passwordHidden ? "view-filled" : "view-off-filled", onClick: () => (this.passwordHidden = !this.passwordHidden) }));
237
- }
238
- renderMessage() {
239
- if (!this.hasmessage)
240
- return;
241
- return index.h("z-input-message", { message: this.message, status: this.status });
242
- }
243
- /* END text/password/email/number */
244
- /* START textarea */
245
- renderTextarea() {
246
- const attributes = this.getTextAttributes();
247
- return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", { class: [
248
- "textareaWrapper",
249
- attributes.class,
250
- attributes.disabled && "disabled",
251
- attributes.readonly && "readonly",
252
- this.isTyping && "istyping",
253
- this.textareaWrapperFocus,
254
- this.textareaWrapperHover,
255
- ]
256
- .filter(Boolean)
257
- .join(" ") }, index.h("textarea", Object.assign({}, attributes, { onFocus: () => (this.textareaWrapperFocus = "focus"), onBlur: () => (this.textareaWrapperFocus = ""), onMouseOver: () => (this.textareaWrapperHover = "hover"), onMouseOut: () => (this.textareaWrapperHover = ""), "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
258
- }
259
- /* END textarea */
260
- handleCheck(ev) {
261
- this.checked = ev.target.checked;
262
- this.emitInputCheck(this.checked);
263
- }
264
- /* START checkbox */
265
- renderCheckbox() {
266
- return (index.h("div", { class: "checkboxWrapper" }, index.h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
267
- checkboxLabel: true,
268
- after: this.labelafter,
269
- before: !this.labelafter,
270
- } }, index.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
271
- }
272
- /* END checkbox */
273
- /* START radio */
274
- renderRadio() {
275
- return (index.h("div", { class: "radioWrapper" }, index.h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
276
- radioLabel: true,
277
- after: this.labelafter,
278
- before: !this.labelafter,
279
- } }, index.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
280
- }
281
- /* END radio */
282
- /* START select */
283
- renderSelect() {
284
- return (index.h("z-select", { htmlid: this.htmlid, items: this.items, name: this.name, label: this.label, "aria-label": this.ariaLabel, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, htmltitle: this.htmltitle, status: this.status, hasmessage: this.hasmessage, message: this.message, autocomplete: this.autocomplete, multiple: this.multiple, ref: (el) => (this.selectElem = el) }));
285
- }
286
- /* END select */
287
- render() {
288
- switch (this.type) {
289
- case index$1.InputTypeEnum.text:
290
- case index$1.InputTypeEnum.password:
291
- case index$1.InputTypeEnum.number:
292
- case index$1.InputTypeEnum.email:
293
- return this.renderInputText(this.type);
294
- case index$1.InputTypeEnum.textarea:
295
- return this.renderTextarea();
296
- case index$1.InputTypeEnum.checkbox:
297
- return this.renderCheckbox();
298
- case index$1.InputTypeEnum.radio:
299
- return this.renderRadio();
300
- case index$1.InputTypeEnum.select:
301
- return this.renderSelect();
302
- default:
303
- return this.renderInputText();
304
- }
305
- }
306
- get hostElement() { return index.getElement(this); }
307
- };
54
+ const ZInput = class {
55
+ constructor(hostRef) {
56
+ index.registerInstance(this, hostRef);
57
+ this.inputChange = index.createEvent(this, "inputChange", 7);
58
+ this.startTyping = index.createEvent(this, "startTyping", 7);
59
+ this.stopTyping = index.createEvent(this, "stopTyping", 7);
60
+ this.inputCheck = index.createEvent(this, "inputCheck", 7);
61
+ this.optionSelect = index.createEvent(this, "optionSelect", 7);
62
+ /** the id of the input element */
63
+ this.htmlid = `id-${utils.randomId()}`;
64
+ /** the input is disabled */
65
+ this.disabled = false;
66
+ /** the input is readonly */
67
+ this.readonly = false;
68
+ /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
69
+ this.required = false;
70
+ /** checked: available for checkbox, radio */
71
+ this.checked = false;
72
+ /** show input helper message (optional): available for text, password, number, email, textarea, select */
73
+ this.hasmessage = true;
74
+ /** the input label position: available for checkbox, radio */
75
+ this.labelafter = true;
76
+ /** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
77
+ this.typingtimeout = 300;
78
+ /** multiple options can be selected (optional): available for select */
79
+ this.multiple = false;
80
+ /** render clear icon when typing (optional): available for text */
81
+ this.hasclearicon = true;
82
+ this.isTyping = false;
83
+ this.textareaWrapperHover = "";
84
+ this.textareaWrapperFocus = "";
85
+ this.passwordHidden = true;
86
+ }
87
+ inputCheckListener(e) {
88
+ const data = e.detail;
89
+ switch (this.type) {
90
+ case index$1.InputTypeEnum.radio:
91
+ if (data.type === index$1.InputTypeEnum.radio &&
92
+ data.name === this.name &&
93
+ data.id !== this.htmlid) {
94
+ this.checked = false;
95
+ }
96
+ default:
97
+ return;
98
+ }
99
+ }
100
+ /** get the input value */
101
+ async getValue() {
102
+ switch (this.type) {
103
+ case index$1.InputTypeEnum.select:
104
+ return this.selectElem.getValue();
105
+ default:
106
+ return this.value;
107
+ }
108
+ }
109
+ /** set the input value */
110
+ async setValue(value) {
111
+ switch (this.type) {
112
+ case index$1.InputTypeEnum.select:
113
+ this.selectElem.setValue(value);
114
+ break;
115
+ default:
116
+ if (typeof value === "string")
117
+ this.value = value;
118
+ break;
119
+ }
120
+ }
121
+ /** get checked status */
122
+ async isChecked() {
123
+ switch (this.type) {
124
+ case index$1.InputTypeEnum.checkbox:
125
+ case index$1.InputTypeEnum.radio:
126
+ return this.checked;
127
+ default:
128
+ return false;
129
+ }
130
+ }
131
+ emitInputChange(value, keycode) {
132
+ if (!this.isTyping) {
133
+ this.emitStartTyping();
134
+ }
135
+ let validity = {};
136
+ if (this.type === index$1.InputTypeEnum.textarea) {
137
+ validity = this.getValidity("textarea");
138
+ }
139
+ else {
140
+ validity = this.getValidity("input");
141
+ }
142
+ this.value = value;
143
+ this.inputChange.emit({ value, keycode, validity });
144
+ clearTimeout(this.timer);
145
+ this.timer = setTimeout(() => {
146
+ this.emitStopTyping(this.value, validity);
147
+ }, this.typingtimeout);
148
+ }
149
+ emitStartTyping() {
150
+ this.isTyping = true;
151
+ this.startTyping.emit();
152
+ }
153
+ emitStopTyping(value, validity) {
154
+ this.isTyping = false;
155
+ this.stopTyping.emit({
156
+ value: value,
157
+ validity: validity,
158
+ });
159
+ }
160
+ emitInputCheck(checked) {
161
+ this.inputCheck.emit({
162
+ id: this.htmlid,
163
+ checked: checked,
164
+ type: this.type,
165
+ name: this.name,
166
+ value: this.value,
167
+ validity: this.getValidity("input"),
168
+ });
169
+ }
170
+ getValidity(type) {
171
+ const input = this.hostElement.querySelector(type);
172
+ return input.validity;
173
+ }
174
+ /* START text/password/email/number */
175
+ getTextAttributes() {
176
+ const attr = {
177
+ id: this.htmlid,
178
+ name: this.name,
179
+ placeholder: this.placeholder,
180
+ value: this.value,
181
+ disabled: this.disabled,
182
+ readonly: this.readonly,
183
+ required: this.required,
184
+ title: this.htmltitle,
185
+ class: [
186
+ `input_${this.status || "default"}`,
187
+ this.isTyping && "istyping",
188
+ !this.isTyping && this.value && "filled",
189
+ ]
190
+ .filter(Boolean)
191
+ .join(" "),
192
+ onInput: (e) => this.emitInputChange(e.target.value, e.keyCode),
193
+ };
194
+ if (this.autocomplete) {
195
+ attr["autocomplete"] = this.autocomplete;
196
+ }
197
+ return attr;
198
+ }
199
+ renderInputText(type = index$1.InputTypeEnum.text) {
200
+ const attr = this.getTextAttributes();
201
+ if (this.icon || type === index$1.InputTypeEnum.password) {
202
+ attr.class += " hasIcon";
203
+ }
204
+ if (this.hasclearicon) {
205
+ attr.class += " hasClearIcon";
206
+ }
207
+ return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", null, index.h("input", Object.assign({ type: type === index$1.InputTypeEnum.password && !this.passwordHidden
208
+ ? index$1.InputTypeEnum.text
209
+ : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
210
+ }
211
+ renderLabel() {
212
+ if (!this.label)
213
+ return;
214
+ return (index.h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_label` }));
215
+ }
216
+ renderIcons() {
217
+ return (index.h("span", { class: {
218
+ iconsWrapper: true,
219
+ disabled: this.disabled,
220
+ } }, this.renderResetIcon(), this.renderIcon()));
221
+ }
222
+ renderIcon() {
223
+ if (this.type === index$1.InputTypeEnum.password) {
224
+ return this.renderShowHidePassword();
225
+ }
226
+ if (!this.icon)
227
+ return;
228
+ return index.h("z-icon", { class: "inputIcon", name: this.icon });
229
+ }
230
+ renderResetIcon() {
231
+ if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
232
+ return;
233
+ return (index.h("z-icon", { class: "resetIcon", name: "multiply", onClick: (e) => this.emitInputChange("", e.keyCode) }));
234
+ }
235
+ renderShowHidePassword() {
236
+ return (index.h("z-icon", { class: "showHidePasswordIcon", name: this.passwordHidden ? "view-filled" : "view-off-filled", onClick: () => (this.passwordHidden = !this.passwordHidden) }));
237
+ }
238
+ renderMessage() {
239
+ if (!this.hasmessage)
240
+ return;
241
+ return index.h("z-input-message", { message: this.message, status: this.status });
242
+ }
243
+ /* END text/password/email/number */
244
+ /* START textarea */
245
+ renderTextarea() {
246
+ const attributes = this.getTextAttributes();
247
+ return (index.h("div", { class: "textWrapper" }, this.renderLabel(), index.h("div", { class: [
248
+ "textareaWrapper",
249
+ attributes.class,
250
+ attributes.disabled && "disabled",
251
+ attributes.readonly && "readonly",
252
+ this.isTyping && "istyping",
253
+ this.textareaWrapperFocus,
254
+ this.textareaWrapperHover,
255
+ ]
256
+ .filter(Boolean)
257
+ .join(" ") }, index.h("textarea", Object.assign({}, attributes, { onFocus: () => (this.textareaWrapperFocus = "focus"), onBlur: () => (this.textareaWrapperFocus = ""), onMouseOver: () => (this.textareaWrapperHover = "hover"), onMouseOut: () => (this.textareaWrapperHover = ""), "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
258
+ }
259
+ /* END textarea */
260
+ handleCheck(ev) {
261
+ this.checked = ev.target.checked;
262
+ this.emitInputCheck(this.checked);
263
+ }
264
+ /* START checkbox */
265
+ renderCheckbox() {
266
+ return (index.h("div", { class: "checkboxWrapper" }, index.h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
267
+ checkboxLabel: true,
268
+ after: this.labelafter,
269
+ before: !this.labelafter,
270
+ } }, index.h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
271
+ }
272
+ /* END checkbox */
273
+ /* START radio */
274
+ renderRadio() {
275
+ return (index.h("div", { class: "radioWrapper" }, index.h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), index.h("label", { htmlFor: this.htmlid, class: {
276
+ radioLabel: true,
277
+ after: this.labelafter,
278
+ before: !this.labelafter,
279
+ } }, index.h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && index.h("span", { innerHTML: this.label }))));
280
+ }
281
+ /* END radio */
282
+ /* START select */
283
+ renderSelect() {
284
+ return (index.h("z-select", { htmlid: this.htmlid, items: this.items, name: this.name, label: this.label, "aria-label": this.ariaLabel, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, htmltitle: this.htmltitle, status: this.status, hasmessage: this.hasmessage, message: this.message, autocomplete: this.autocomplete, multiple: this.multiple, ref: (el) => (this.selectElem = el) }));
285
+ }
286
+ /* END select */
287
+ render() {
288
+ switch (this.type) {
289
+ case index$1.InputTypeEnum.text:
290
+ case index$1.InputTypeEnum.password:
291
+ case index$1.InputTypeEnum.number:
292
+ case index$1.InputTypeEnum.email:
293
+ return this.renderInputText(this.type);
294
+ case index$1.InputTypeEnum.textarea:
295
+ return this.renderTextarea();
296
+ case index$1.InputTypeEnum.checkbox:
297
+ return this.renderCheckbox();
298
+ case index$1.InputTypeEnum.radio:
299
+ return this.renderRadio();
300
+ case index$1.InputTypeEnum.select:
301
+ return this.renderSelect();
302
+ default:
303
+ return this.renderInputText();
304
+ }
305
+ }
306
+ get hostElement() { return index.getElement(this); }
307
+ };
308
308
  ZInput.style = stylesCss$3;
309
309
 
310
310
  const stylesCss$2 = "label{display:block;margin:var(--space-unit) 0;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);line-height:1.33;letter-spacing:0.32px;text-transform:uppercase;text-align:left}label.disabled{color:var(--color-disabled02)}";
311
311
 
312
- const ZInputLabel = class {
313
- constructor(hostRef) {
314
- index.registerInstance(this, hostRef);
315
- /** the label is disabled */
316
- this.disabled = false;
317
- }
318
- render() {
319
- return index.h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value);
320
- }
321
- };
312
+ const ZInputLabel = class {
313
+ constructor(hostRef) {
314
+ index.registerInstance(this, hostRef);
315
+ /** the label is disabled */
316
+ this.disabled = false;
317
+ }
318
+ render() {
319
+ return index.h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value);
320
+ }
321
+ };
322
322
  ZInputLabel.style = stylesCss$2;
323
323
 
324
324
  const stylesCss$1 = ":host{display:flex;align-items:start;min-height:calc(var(--space-unit) * 2);margin-top:var(--space-unit);color:var(--color-text05);fill:currentColor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status='success']){color:var(--color-text-success)}:host([status='error']){color:var(--color-text-error)}:host([status='warning']){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:calc(var(--space-unit) / 3) var(--space-unit) 0 0}";
325
325
 
326
- const ZInputMessage = class {
327
- constructor(hostRef) {
328
- index.registerInstance(this, hostRef);
329
- this.statusIcons = {
330
- success: "checkmark-circle",
331
- error: "multiply-circled",
332
- warning: "exclamation-circle",
333
- };
334
- }
335
- render() {
336
- return (index.h(index.Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (index.h("z-icon", { name: this.statusIcons[this.status] })), index.h("span", { innerHTML: this.message })));
337
- }
338
- };
326
+ const ZInputMessage = class {
327
+ constructor(hostRef) {
328
+ index.registerInstance(this, hostRef);
329
+ this.statusIcons = {
330
+ success: "checkmark-circle",
331
+ error: "multiply-circled",
332
+ warning: "exclamation-circle",
333
+ };
334
+ }
335
+ render() {
336
+ return (index.h(index.Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (index.h("z-icon", { name: this.statusIcons[this.status] })), index.h("span", { innerHTML: this.message })));
337
+ }
338
+ };
339
339
  ZInputMessage.style = stylesCss$1;
340
340
 
341
- const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit}li[role=\"option\"].sc-z-select:focus:focus-visible{border-color:transparent;box-shadow:var(--shadow-focus-primary);outline:none}.selectWrapper.sc-z-select>z-input.sc-z-select{width:100%}.selectWrapper.sc-z-select>div.sc-z-select{position:relative}.selectWrapper.sc-z-select>div.closed.sc-z-select{height:0;overflow:hidden}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select{background:var(--color-surface01);position:absolute;padding:calc(var(--space-unit) * .5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;width:100%;box-sizing:border-box;outline:none}.selectWrapper.sc-z-select .closed.sc-z-select .ulScrollWrapper.sc-z-select{z-index:10}.selectWrapper.sc-z-select .open.sc-z-select .ulScrollWrapper.sc-z-select{z-index:20}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select{position:relative;margin:0;padding:0;list-style:none;border:0;max-height:240px;overflow:auto;outline:none;scrollbar-color:var(--color-primary01) transparent}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar{background:linear-gradient(\r\n to right,\r\n transparent 0 3px,\r\n var(--gray200) 3px 7px,\r\n transparent 7px 10px\r\n );width:10px;border-radius:var(--border-radius)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.sc-z-select{display:flex;align-items:center;min-height:calc(var(--space-unit) * 5.5);padding:calc(var(--space-unit) * 1.5);box-sizing:border-box;border-bottom:var(--border-size-small) solid var(--gray200);text-align:left;cursor:pointer}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.sc-z-select:hover{color:var(--color-hover-primary);background:var(--color-surface02)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.sc-z-select:focus:focus-visible{margin:2px}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li[aria-selected=\"\"].sc-z-select{font-weight:var(--font-sb)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.disabled.sc-z-select{color:var(--color-disabled02);cursor:default;pointer-events:none}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.noResults.sc-z-select{color:var(--color-primary01);fill:currentColor;border:none}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select .noResults.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.selectWrapper.sc-z-select .chipsWrapper.sc-z-select{padding-bottom:var(--space-unit)}.selectWrapper.sc-z-select .chipsWrapper.sc-z-select z-button-filter.sc-z-select{display:inline-block;margin:calc(var(--space-unit) * 0.5)}";
341
+ const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit}li[role=\"option\"].sc-z-select:focus:focus-visible{border-color:transparent;box-shadow:var(--shadow-focus-primary);outline:none}.selectWrapper.sc-z-select>z-input.sc-z-select{width:100%}.selectWrapper.sc-z-select>div.sc-z-select{position:relative}.selectWrapper.sc-z-select>div.closed.sc-z-select{height:0;overflow:hidden}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select{background:var(--color-surface01);position:absolute;padding:calc(var(--space-unit) * .5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;width:100%;box-sizing:border-box;outline:none}.selectWrapper.sc-z-select .closed.sc-z-select .ulScrollWrapper.sc-z-select{z-index:10}.selectWrapper.sc-z-select .open.sc-z-select .ulScrollWrapper.sc-z-select{z-index:20}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select{position:relative;margin:0;padding:0;list-style:none;border:0;max-height:240px;overflow:auto;outline:none;scrollbar-color:var(--color-primary01) transparent}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select>ul.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.sc-z-select{display:flex;align-items:center;min-height:calc(var(--space-unit) * 5.5);padding:calc(var(--space-unit) * 1.5);box-sizing:border-box;border-bottom:var(--border-size-small) solid var(--gray200);text-align:left;cursor:pointer}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.sc-z-select:hover{color:var(--color-hover-primary);background:var(--color-surface02)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.sc-z-select:focus:focus-visible{margin:2px}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li[aria-selected=\"\"].sc-z-select{font-weight:var(--font-sb)}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.disabled.sc-z-select{color:var(--color-disabled02);cursor:default;pointer-events:none}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select ul.sc-z-select li.noResults.sc-z-select{color:var(--color-primary01);fill:currentColor;border:none}.selectWrapper.sc-z-select .ulScrollWrapper.sc-z-select .noResults.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.selectWrapper.sc-z-select .chipsWrapper.sc-z-select{padding-bottom:var(--space-unit)}.selectWrapper.sc-z-select .chipsWrapper.sc-z-select z-button-filter.sc-z-select{display:inline-block;margin:calc(var(--space-unit) * 0.5)}";
342
342
 
343
- const ZSelect = class {
344
- constructor(hostRef) {
345
- index.registerInstance(this, hostRef);
346
- this.optionSelect = index.createEvent(this, "optionSelect", 7);
347
- /** the id of the input element */
348
- this.htmlid = `id-${utils.randomId()}`;
349
- /** the input is disabled */
350
- this.disabled = false;
351
- /** the input is readonly */
352
- this.readonly = false;
353
- /** show input helper message (optional): available for text, password, number, email, textarea, select */
354
- this.hasmessage = true;
355
- /** the input has autocomplete option */
356
- this.autocomplete = false;
357
- /** multiple options can be selected */
358
- this.multiple = false;
359
- /** no result text message */
360
- this.noresultslabel = "Nessun risultato";
361
- this.isOpen = false;
362
- this.itemsList = [];
363
- this.toggleSelectUl = this.toggleSelectUl.bind(this);
364
- this.selectItem = this.selectItem.bind(this);
365
- this.handleSelectFocus = this.handleSelectFocus.bind(this);
366
- }
367
- watchItems() {
368
- this.itemsList = this.getInitialItemsArray();
369
- this.selectedItems = this.itemsList.filter((item) => item.selected);
370
- }
371
- /** get the input selected options */
372
- async getSelectedItems() {
373
- return this.selectedItems;
374
- }
375
- /** get the input value */
376
- async getValue() {
377
- return this.getSelectedValues();
378
- }
379
- /** set the input value */
380
- async setValue(value) {
381
- let values = [];
382
- if (typeof value === "string") {
383
- values.push(value);
384
- }
385
- else {
386
- values = value;
387
- }
388
- this.selectedItems = this.itemsList.filter((item) => values.includes(item.id));
389
- }
390
- emitOptionSelect() {
391
- this.optionSelect.emit({
392
- id: this.htmlid,
393
- selected: this.getSelectedValues(),
394
- });
395
- }
396
- componentWillLoad() {
397
- this.watchItems();
398
- }
399
- componentWillRender() {
400
- this.filterItems(this.searchString);
401
- }
402
- getInitialItemsArray() {
403
- return typeof this.items === "string" ? JSON.parse(this.items) : this.items;
404
- }
405
- mapSelectedItemsToItemsArray() {
406
- const initialItemsList = this.getInitialItemsArray();
407
- return initialItemsList.map((item) => {
408
- const found = this.selectedItems.find((selected) => selected.id === item.id);
409
- item.selected = !!found;
410
- return item;
411
- });
412
- }
413
- getSelectedValues() {
414
- if (this.multiple) {
415
- return this.selectedItems.map((item) => item.id);
416
- }
417
- if (!this.multiple && this.selectedItems.length) {
418
- return this.selectedItems[0].id;
419
- }
420
- return null;
421
- }
422
- filterItems(searchString) {
423
- const prevList = this.mapSelectedItemsToItemsArray();
424
- if (!(searchString === null || searchString === void 0 ? void 0 : searchString.length)) {
425
- this.itemsList = prevList;
426
- }
427
- else {
428
- this.itemsList = prevList
429
- .filter((item) => {
430
- return item.name.toUpperCase().includes(searchString.toUpperCase());
431
- })
432
- .map((item) => {
433
- const start = item.name
434
- .toUpperCase()
435
- .indexOf(searchString.toUpperCase());
436
- const end = start + searchString.length;
437
- const newName = item.name.substring(0, start) +
438
- item.name.substring(start, end).bold() +
439
- item.name.substring(end, item.name.length);
440
- item.name = newName;
441
- return item;
442
- });
443
- }
444
- }
445
- hasAutcomplete() {
446
- return (this.autocomplete === true ||
447
- this.autocomplete === "true" ||
448
- this.autocomplete === "on");
449
- }
450
- handleInputChange(e) {
451
- this.searchString = e.detail.value;
452
- if (!this.isOpen)
453
- this.toggleSelectUl();
454
- }
455
- selectItem(item, selected) {
456
- if (item && item.disabled)
457
- return;
458
- this.itemsList = this.mapSelectedItemsToItemsArray();
459
- this.itemsList = this.itemsList.map((i) => {
460
- if (!this.multiple)
461
- i.selected = false;
462
- if (i.id === (item ? item.id : null))
463
- i.selected = selected;
464
- return i;
465
- });
466
- this.selectedItems = this.itemsList.filter((item) => item.selected);
467
- this.emitOptionSelect();
468
- if (this.searchString)
469
- this.searchString = null;
470
- }
471
- arrowsSelectNav(e, key) {
472
- const arrows = [index$1.keybordKeyCodeEnum.ARROW_DOWN, index$1.keybordKeyCodeEnum.ARROW_UP];
473
- if (!arrows.includes(e.keyCode))
474
- return;
475
- e.preventDefault();
476
- e.stopPropagation();
477
- if (!this.isOpen)
478
- this.toggleSelectUl();
479
- let index;
480
- if (e.keyCode === index$1.keybordKeyCodeEnum.ARROW_DOWN) {
481
- index = key + 1 === this.itemsList.length ? 0 : key + 1;
482
- }
483
- else if (e.keyCode === index$1.keybordKeyCodeEnum.ARROW_UP) {
484
- index = key <= 0 ? this.itemsList.length - 1 : key - 1;
485
- }
486
- this.focusSelectItem(index);
487
- }
488
- focusSelectItem(index) {
489
- const focusElem = this.element.querySelector(`#${this.htmlid}_${index}`);
490
- if (focusElem)
491
- focusElem.focus();
492
- }
493
- toggleSelectUl(selfFocusOnClose = false) {
494
- if (this.disabled || this.readonly)
495
- return;
496
- if (!this.isOpen) {
497
- document.addEventListener("click", this.handleSelectFocus);
498
- document.addEventListener("keyup", this.handleSelectFocus);
499
- }
500
- else {
501
- document.removeEventListener("click", this.handleSelectFocus);
502
- document.removeEventListener("keyup", this.handleSelectFocus);
503
- if (selfFocusOnClose) {
504
- this.element
505
- .querySelector(`#${this.htmlid}_input`)
506
- .focus();
507
- }
508
- }
509
- this.isOpen = !this.isOpen;
510
- }
511
- handleInputClick(e) {
512
- const cp = e.composedPath();
513
- const clearIcon = cp.find((item) => item.classList && item.classList.contains("resetIcon"));
514
- if (clearIcon) {
515
- e.stopPropagation();
516
- return;
517
- }
518
- this.toggleSelectUl();
519
- }
520
- handleSelectFocus(e) {
521
- if (e instanceof KeyboardEvent && e.keyCode === index$1.keybordKeyCodeEnum.ESC) {
522
- e.stopPropagation();
523
- return this.toggleSelectUl(true);
524
- }
525
- if (e instanceof KeyboardEvent &&
526
- e.keyCode !== index$1.keybordKeyCodeEnum.TAB &&
527
- e.keyCode !== index$1.keybordKeyCodeEnum.ENTER) {
528
- return;
529
- }
530
- const tree = utils.getElementTree(utils.getClickedElement());
531
- const parent = tree.find((elem) => {
532
- return ((elem.nodeName.toLowerCase() === "z-input" &&
533
- elem.id === `${this.htmlid}_input`) ||
534
- (this.multiple &&
535
- elem.nodeName.toLowerCase() === "ul" &&
536
- elem.id === this.htmlid));
537
- });
538
- if (!parent) {
539
- this.toggleSelectUl(e instanceof MouseEvent ? true : false);
540
- }
541
- }
542
- scrollToLetter(letter) {
543
- const foundItem = this.itemsList.find((item) => item.name.charAt(0) === letter);
544
- if (foundItem)
545
- this.focusSelectItem(this.itemsList.indexOf(foundItem));
546
- }
547
- renderLabel() {
548
- if (!this.label)
549
- return;
550
- return (index.h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_input_label` }));
551
- }
552
- renderInput() {
553
- return (index.h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && !this.multiple && this.selectedItems.length
554
- ? this.selectedItems[0].name.replace(/<[^>]+>/g, "")
555
- : null, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutcomplete(), hasmessage: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutcomplete() && this.isOpen), status: this.isOpen ? index$1.InputStatusEnum.selecting : this.status, onClick: (e) => {
556
- this.handleInputClick(e);
557
- }, onKeyUp: (e) => {
558
- if (e.keyCode !== 13)
559
- e.preventDefault();
560
- utils.handleKeyboardSubmit(e, this.toggleSelectUl);
561
- }, onKeyDown: (e) => {
562
- return this.arrowsSelectNav(e, this.selectedItems.length
563
- ? this.itemsList.indexOf(this.selectedItems[0])
564
- : -1);
565
- }, onInputChange: (e) => {
566
- this.handleInputChange(e);
567
- }, onKeyPress: (e) => {
568
- if (!this.hasAutcomplete()) {
569
- e.preventDefault();
570
- this.scrollToLetter(String.fromCharCode(e.keyCode));
571
- }
572
- } }));
573
- }
574
- renderChips() {
575
- if (!this.multiple || !this.selectedItems.length)
576
- return;
577
- return (index.h("div", { class: `chipsWrapper ${this.isOpen ? "open" : ""}` }, this.selectedItems.map((item) => (index.h("z-button-filter", { filterid: item.id, filtername: item.name.replace(/<[^>]+>/g, ""), issmall: true, onRemovefilter: () => this.selectItem(item, false) })))));
578
- }
579
- renderSelectUl() {
580
- return (index.h("div", { class: this.isOpen ? "open" : "closed", tabindex: "-1" }, index.h("div", { class: "ulScrollWrapper", tabindex: "-1" }, index.h("ul", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": !this.multiple && this.selectedItems.length
581
- ? this.selectedItems[0].id
582
- : null, "aria-multiselectable": !!this.multiple, class: `
583
- ${this.disabled ? " disabled" : ""}
584
- ${this.readonly ? " readonly" : ""}
585
- ${!this.isOpen && this.status
586
- ? " input_" + this.status
587
- : " input_default"}
588
- ${this.selectedItems.length ? " filled" : ""}
589
- ` }, this.renderSelectUlItems()))));
590
- }
591
- renderSelectUlItems() {
592
- if (!this.itemsList.length)
593
- return this.renderNoSearchResults();
594
- return this.itemsList.map((item, key) => {
595
- return (index.h("li", { role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, class: item.disabled && "disabled", id: `${this.htmlid}_${key}`, onClick: () => this.selectItem(item, true), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.selectItem, item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, index.h("span", { innerHTML: item.name })));
596
- });
597
- }
598
- renderNoSearchResults() {
599
- return (index.h("li", { class: "noResults" }, index.h("z-icon", { name: "multiply-circle" }), this.noresultslabel));
600
- }
601
- renderMessage() {
602
- if (!this.hasmessage)
603
- return;
604
- return index.h("z-input-message", { message: this.message, status: this.status });
605
- }
606
- render() {
607
- return (index.h("div", { class: "selectWrapper" }, this.renderLabel(), this.renderChips(), this.renderInput(), this.renderSelectUl(), this.renderMessage()));
608
- }
609
- get element() { return index.getElement(this); }
610
- static get watchers() { return {
611
- "items": ["watchItems"]
612
- }; }
613
- };
343
+ const ZSelect = class {
344
+ constructor(hostRef) {
345
+ index.registerInstance(this, hostRef);
346
+ this.optionSelect = index.createEvent(this, "optionSelect", 7);
347
+ /** the id of the input element */
348
+ this.htmlid = `id-${utils.randomId()}`;
349
+ /** the input is disabled */
350
+ this.disabled = false;
351
+ /** the input is readonly */
352
+ this.readonly = false;
353
+ /** show input helper message (optional): available for text, password, number, email, textarea, select */
354
+ this.hasmessage = true;
355
+ /** the input has autocomplete option */
356
+ this.autocomplete = false;
357
+ /** multiple options can be selected */
358
+ this.multiple = false;
359
+ /** no result text message */
360
+ this.noresultslabel = "Nessun risultato";
361
+ this.isOpen = false;
362
+ this.itemsList = [];
363
+ this.toggleSelectUl = this.toggleSelectUl.bind(this);
364
+ this.selectItem = this.selectItem.bind(this);
365
+ this.handleSelectFocus = this.handleSelectFocus.bind(this);
366
+ }
367
+ watchItems() {
368
+ this.itemsList = this.getInitialItemsArray();
369
+ this.selectedItems = this.itemsList.filter((item) => item.selected);
370
+ }
371
+ /** get the input selected options */
372
+ async getSelectedItems() {
373
+ return this.selectedItems;
374
+ }
375
+ /** get the input value */
376
+ async getValue() {
377
+ return this.getSelectedValues();
378
+ }
379
+ /** set the input value */
380
+ async setValue(value) {
381
+ let values = [];
382
+ if (typeof value === "string") {
383
+ values.push(value);
384
+ }
385
+ else {
386
+ values = value;
387
+ }
388
+ this.selectedItems = this.itemsList.filter((item) => values.includes(item.id));
389
+ }
390
+ emitOptionSelect() {
391
+ this.optionSelect.emit({
392
+ id: this.htmlid,
393
+ selected: this.getSelectedValues(),
394
+ });
395
+ }
396
+ componentWillLoad() {
397
+ this.watchItems();
398
+ }
399
+ componentWillRender() {
400
+ this.filterItems(this.searchString);
401
+ }
402
+ getInitialItemsArray() {
403
+ return typeof this.items === "string" ? JSON.parse(this.items) : this.items;
404
+ }
405
+ mapSelectedItemsToItemsArray() {
406
+ const initialItemsList = this.getInitialItemsArray();
407
+ return initialItemsList.map((item) => {
408
+ const found = this.selectedItems.find((selected) => selected.id === item.id);
409
+ item.selected = !!found;
410
+ return item;
411
+ });
412
+ }
413
+ getSelectedValues() {
414
+ if (this.multiple) {
415
+ return this.selectedItems.map((item) => item.id);
416
+ }
417
+ if (!this.multiple && this.selectedItems.length) {
418
+ return this.selectedItems[0].id;
419
+ }
420
+ return null;
421
+ }
422
+ filterItems(searchString) {
423
+ const prevList = this.mapSelectedItemsToItemsArray();
424
+ if (!(searchString === null || searchString === void 0 ? void 0 : searchString.length)) {
425
+ this.itemsList = prevList;
426
+ }
427
+ else {
428
+ this.itemsList = prevList
429
+ .filter((item) => {
430
+ return item.name.toUpperCase().includes(searchString.toUpperCase());
431
+ })
432
+ .map((item) => {
433
+ const start = item.name
434
+ .toUpperCase()
435
+ .indexOf(searchString.toUpperCase());
436
+ const end = start + searchString.length;
437
+ const newName = item.name.substring(0, start) +
438
+ item.name.substring(start, end).bold() +
439
+ item.name.substring(end, item.name.length);
440
+ item.name = newName;
441
+ return item;
442
+ });
443
+ }
444
+ }
445
+ hasAutcomplete() {
446
+ return (this.autocomplete === true ||
447
+ this.autocomplete === "true" ||
448
+ this.autocomplete === "on");
449
+ }
450
+ handleInputChange(e) {
451
+ this.searchString = e.detail.value;
452
+ if (!this.isOpen)
453
+ this.toggleSelectUl();
454
+ }
455
+ selectItem(item, selected) {
456
+ if (item && item.disabled)
457
+ return;
458
+ this.itemsList = this.mapSelectedItemsToItemsArray();
459
+ this.itemsList = this.itemsList.map((i) => {
460
+ if (!this.multiple)
461
+ i.selected = false;
462
+ if (i.id === (item ? item.id : null))
463
+ i.selected = selected;
464
+ return i;
465
+ });
466
+ this.selectedItems = this.itemsList.filter((item) => item.selected);
467
+ this.emitOptionSelect();
468
+ if (this.searchString)
469
+ this.searchString = null;
470
+ }
471
+ arrowsSelectNav(e, key) {
472
+ const arrows = [index$1.keybordKeyCodeEnum.ARROW_DOWN, index$1.keybordKeyCodeEnum.ARROW_UP];
473
+ if (!arrows.includes(e.keyCode))
474
+ return;
475
+ e.preventDefault();
476
+ e.stopPropagation();
477
+ if (!this.isOpen)
478
+ this.toggleSelectUl();
479
+ let index;
480
+ if (e.keyCode === index$1.keybordKeyCodeEnum.ARROW_DOWN) {
481
+ index = key + 1 === this.itemsList.length ? 0 : key + 1;
482
+ }
483
+ else if (e.keyCode === index$1.keybordKeyCodeEnum.ARROW_UP) {
484
+ index = key <= 0 ? this.itemsList.length - 1 : key - 1;
485
+ }
486
+ this.focusSelectItem(index);
487
+ }
488
+ focusSelectItem(index) {
489
+ const focusElem = this.element.querySelector(`#${this.htmlid}_${index}`);
490
+ if (focusElem)
491
+ focusElem.focus();
492
+ }
493
+ toggleSelectUl(selfFocusOnClose = false) {
494
+ if (this.disabled || this.readonly)
495
+ return;
496
+ if (!this.isOpen) {
497
+ document.addEventListener("click", this.handleSelectFocus);
498
+ document.addEventListener("keyup", this.handleSelectFocus);
499
+ }
500
+ else {
501
+ document.removeEventListener("click", this.handleSelectFocus);
502
+ document.removeEventListener("keyup", this.handleSelectFocus);
503
+ if (selfFocusOnClose) {
504
+ this.element
505
+ .querySelector(`#${this.htmlid}_input`)
506
+ .focus();
507
+ }
508
+ }
509
+ this.isOpen = !this.isOpen;
510
+ }
511
+ handleInputClick(e) {
512
+ const cp = e.composedPath();
513
+ const clearIcon = cp.find((item) => item.classList && item.classList.contains("resetIcon"));
514
+ if (clearIcon) {
515
+ e.stopPropagation();
516
+ return;
517
+ }
518
+ this.toggleSelectUl();
519
+ }
520
+ handleSelectFocus(e) {
521
+ if (e instanceof KeyboardEvent && e.keyCode === index$1.keybordKeyCodeEnum.ESC) {
522
+ e.stopPropagation();
523
+ return this.toggleSelectUl(true);
524
+ }
525
+ if (e instanceof KeyboardEvent &&
526
+ e.keyCode !== index$1.keybordKeyCodeEnum.TAB &&
527
+ e.keyCode !== index$1.keybordKeyCodeEnum.ENTER) {
528
+ return;
529
+ }
530
+ const tree = utils.getElementTree(utils.getClickedElement());
531
+ const parent = tree.find((elem) => {
532
+ return ((elem.nodeName.toLowerCase() === "z-input" &&
533
+ elem.id === `${this.htmlid}_input`) ||
534
+ (this.multiple &&
535
+ elem.nodeName.toLowerCase() === "ul" &&
536
+ elem.id === this.htmlid));
537
+ });
538
+ if (!parent) {
539
+ this.toggleSelectUl(e instanceof MouseEvent ? true : false);
540
+ }
541
+ }
542
+ scrollToLetter(letter) {
543
+ const foundItem = this.itemsList.find((item) => item.name.charAt(0) === letter);
544
+ if (foundItem)
545
+ this.focusSelectItem(this.itemsList.indexOf(foundItem));
546
+ }
547
+ renderLabel() {
548
+ if (!this.label)
549
+ return;
550
+ return (index.h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_input_label` }));
551
+ }
552
+ renderInput() {
553
+ return (index.h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && !this.multiple && this.selectedItems.length
554
+ ? this.selectedItems[0].name.replace(/<[^>]+>/g, "")
555
+ : null, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutcomplete(), hasmessage: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutcomplete() && this.isOpen), status: this.isOpen ? index$1.InputStatusEnum.selecting : this.status, onClick: (e) => {
556
+ this.handleInputClick(e);
557
+ }, onKeyUp: (e) => {
558
+ if (e.keyCode !== 13)
559
+ e.preventDefault();
560
+ utils.handleKeyboardSubmit(e, this.toggleSelectUl);
561
+ }, onKeyDown: (e) => {
562
+ return this.arrowsSelectNav(e, this.selectedItems.length
563
+ ? this.itemsList.indexOf(this.selectedItems[0])
564
+ : -1);
565
+ }, onInputChange: (e) => {
566
+ this.handleInputChange(e);
567
+ }, onKeyPress: (e) => {
568
+ if (!this.hasAutcomplete()) {
569
+ e.preventDefault();
570
+ this.scrollToLetter(String.fromCharCode(e.keyCode));
571
+ }
572
+ } }));
573
+ }
574
+ renderChips() {
575
+ if (!this.multiple || !this.selectedItems.length)
576
+ return;
577
+ return (index.h("div", { class: `chipsWrapper ${this.isOpen ? "open" : ""}` }, this.selectedItems.map((item) => (index.h("z-button-filter", { filterid: item.id, filtername: item.name.replace(/<[^>]+>/g, ""), issmall: true, onRemovefilter: () => this.selectItem(item, false) })))));
578
+ }
579
+ renderSelectUl() {
580
+ return (index.h("div", { class: this.isOpen ? "open" : "closed", tabindex: "-1" }, index.h("div", { class: "ulScrollWrapper", tabindex: "-1" }, index.h("ul", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": !this.multiple && this.selectedItems.length
581
+ ? this.selectedItems[0].id
582
+ : null, "aria-multiselectable": !!this.multiple, class: `
583
+ ${this.disabled ? " disabled" : ""}
584
+ ${this.readonly ? " readonly" : ""}
585
+ ${!this.isOpen && this.status
586
+ ? " input_" + this.status
587
+ : " input_default"}
588
+ ${this.selectedItems.length ? " filled" : ""}
589
+ ` }, this.renderSelectUlItems()))));
590
+ }
591
+ renderSelectUlItems() {
592
+ if (!this.itemsList.length)
593
+ return this.renderNoSearchResults();
594
+ return this.itemsList.map((item, key) => {
595
+ return (index.h("li", { role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, class: item.disabled && "disabled", id: `${this.htmlid}_${key}`, onClick: () => this.selectItem(item, true), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.selectItem, item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, index.h("span", { innerHTML: item.name })));
596
+ });
597
+ }
598
+ renderNoSearchResults() {
599
+ return (index.h("li", { class: "noResults" }, index.h("z-icon", { name: "multiply-circle" }), this.noresultslabel));
600
+ }
601
+ renderMessage() {
602
+ if (!this.hasmessage)
603
+ return;
604
+ return index.h("z-input-message", { message: this.message, status: this.status });
605
+ }
606
+ render() {
607
+ return (index.h("div", { class: "selectWrapper" }, this.renderLabel(), this.renderChips(), this.renderInput(), this.renderSelectUl(), this.renderMessage()));
608
+ }
609
+ get element() { return index.getElement(this); }
610
+ static get watchers() { return {
611
+ "items": ["watchItems"]
612
+ }; }
613
+ };
614
614
  ZSelect.style = stylesCss;
615
615
 
616
616
  exports.z_button_filter = ZButtonFilter;