@zanichelli/albe-web-components 14.5.1 → 14.5.2-rc-anchor-navigation

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 (1744) hide show
  1. package/dist/.storybook/elements/args-controls.js +78 -0
  2. package/dist/.storybook/elements/args-controls.js.map +1 -0
  3. package/dist/.storybook/elements/docs-template.js +11 -0
  4. package/dist/.storybook/elements/docs-template.js.map +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  7. package/dist/cjs/breakpoints-5c22092a.js.map +1 -1
  8. package/dist/cjs/index-19279b08.js +20 -0
  9. package/dist/cjs/index-19279b08.js.map +1 -0
  10. package/dist/cjs/index-1ebcef6a.js +46 -0
  11. package/dist/cjs/index-1ebcef6a.js.map +1 -0
  12. package/dist/cjs/index-42d4c304.js +65 -0
  13. package/dist/cjs/index-42d4c304.js.map +1 -0
  14. package/dist/cjs/index-5dc4a8de.js +2211 -0
  15. package/dist/cjs/index-5dc4a8de.js.map +1 -0
  16. package/dist/cjs/index-94f7957c.js +21 -0
  17. package/dist/cjs/index-94f7957c.js.map +1 -0
  18. package/dist/cjs/index-be1c71c6.js +59 -0
  19. package/dist/cjs/index-be1c71c6.js.map +1 -0
  20. package/dist/cjs/index-f31d0e66.js +21 -0
  21. package/dist/cjs/index-f31d0e66.js.map +1 -0
  22. package/dist/cjs/index.cjs.js.map +1 -1
  23. package/dist/cjs/loader.cjs.js +5 -3
  24. package/dist/cjs/loader.cjs.js.map +1 -1
  25. package/dist/cjs/utils-2b313a8e.js.map +1 -1
  26. package/dist/cjs/utils-d0b10736.js.map +1 -1
  27. package/dist/cjs/web-components-library.cjs.js +32 -32
  28. package/dist/cjs/web-components-library.cjs.js.map +1 -1
  29. package/dist/cjs/z-accordion.cjs.entry.js +3 -3
  30. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -1
  31. package/dist/cjs/z-alert.cjs.entry.js +2 -2
  32. package/dist/cjs/z-anchor-navigation.cjs.entry.js +14 -9
  33. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -1
  34. package/dist/cjs/z-app-header_12.cjs.entry.js +40 -31
  35. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  36. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  37. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  39. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -1
  40. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  41. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  42. package/dist/cjs/z-breadcrumb.cjs.entry.js +3 -3
  43. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -1
  44. package/dist/cjs/z-button-sort.cjs.entry.js +2 -2
  45. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -1
  46. package/dist/cjs/z-card.cjs.entry.js +1 -1
  47. package/dist/cjs/z-card.cjs.entry.js.map +1 -1
  48. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  49. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -1
  50. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  51. package/dist/cjs/z-chip.cjs.entry.js.map +1 -1
  52. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  53. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  54. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  55. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -1
  56. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  57. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +7 -7
  59. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  61. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -1
  62. package/dist/cjs/z-file.cjs.entry.js +2 -2
  63. package/dist/cjs/z-file.cjs.entry.js.map +1 -1
  64. package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
  65. package/dist/cjs/z-info-box.cjs.entry.js +2 -2
  66. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -1
  67. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  68. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -1
  69. package/dist/cjs/z-logo.cjs.entry.js +2 -2
  70. package/dist/cjs/z-logo.cjs.entry.js.map +1 -1
  71. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  72. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  73. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  74. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  75. package/dist/cjs/z-messages-pocket.cjs.entry.js +2 -2
  76. package/dist/cjs/z-messages-pocket.cjs.entry.js.map +1 -1
  77. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  78. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -1
  79. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
  80. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -1
  81. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  82. package/dist/cjs/z-myz-card-footer.cjs.entry.js +3 -3
  83. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -1
  84. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  85. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  86. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -1
  87. package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
  88. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  89. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  90. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -1
  91. package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
  92. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -1
  93. package/dist/cjs/z-navigation-tabs.cjs.entry.js +4 -4
  94. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  95. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  96. package/dist/cjs/z-notification.cjs.entry.js.map +1 -1
  97. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  98. package/dist/cjs/z-otp.cjs.entry.js.map +1 -1
  99. package/dist/cjs/z-pagination.cjs.entry.js +2 -2
  100. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -1
  101. package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
  102. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -1
  103. package/dist/cjs/z-pocket-message.cjs.entry.js +2 -2
  104. package/dist/cjs/z-pocket_3.cjs.entry.js +6 -6
  105. package/dist/cjs/z-pocket_3.cjs.entry.js.map +1 -1
  106. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  107. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  108. package/dist/cjs/z-range-picker.cjs.entry.js +4 -4
  109. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -1
  110. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  111. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -1
  112. package/dist/cjs/z-select.cjs.entry.js +2 -2
  113. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  114. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  115. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -1
  116. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  117. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -1
  118. package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
  119. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -1
  120. package/dist/cjs/z-stepper.cjs.entry.js +2 -2
  121. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -1
  122. package/dist/cjs/z-table.cjs.entry.js +8 -8
  123. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  124. package/dist/cjs/z-tbody.cjs.entry.js +2 -2
  125. package/dist/cjs/z-td.cjs.entry.js +2 -2
  126. package/dist/cjs/z-tfoot.cjs.entry.js +2 -2
  127. package/dist/cjs/z-th.cjs.entry.js +2 -2
  128. package/dist/cjs/z-thead.cjs.entry.js +2 -2
  129. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  130. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -1
  131. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  132. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  133. package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
  134. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -1
  135. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  136. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -1
  137. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  138. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -1
  139. package/dist/cjs/z-tr.cjs.entry.js +4 -4
  140. package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
  141. package/dist/collection/beans/index.js.map +1 -1
  142. package/dist/collection/collection-manifest.json +34 -34
  143. package/dist/collection/components/css-components/z-fab/index.stories.js +104 -0
  144. package/dist/collection/components/css-components/z-fab/index.stories.js.map +1 -0
  145. package/dist/collection/components/css-components/z-link/index.stories.js +75 -0
  146. package/dist/collection/components/css-components/z-link/index.stories.js.map +1 -0
  147. package/dist/collection/components/date-picker/utils.js.map +1 -1
  148. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  149. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
  150. package/dist/collection/components/date-picker/z-date-picker/index.spec.js.map +1 -1
  151. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +100 -0
  152. package/dist/collection/components/date-picker/z-date-picker/index.stories.js.map +1 -0
  153. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -4
  154. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -1
  155. package/dist/collection/components/date-picker/z-range-picker/index.spec.js.map +1 -1
  156. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +110 -0
  157. package/dist/collection/components/date-picker/z-range-picker/index.stories.js.map +1 -0
  158. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  159. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
  160. package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js.map +1 -1
  161. package/dist/collection/components/file-upload/z-file/index.js +2 -2
  162. package/dist/collection/components/file-upload/z-file/index.js.map +1 -1
  163. package/dist/collection/components/file-upload/z-file/index.spec.js.map +1 -1
  164. package/dist/collection/components/file-upload/z-file/index.stories.js +17 -0
  165. package/dist/collection/components/file-upload/z-file/index.stories.js.map +1 -0
  166. package/dist/collection/components/file-upload/z-file-upload/index.js +2 -2
  167. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
  168. package/dist/collection/components/file-upload/z-file-upload/index.spec.js.map +1 -1
  169. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +95 -0
  170. package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -0
  171. package/dist/collection/components/file-upload/z-file-upload/test.e2e.js.map +1 -1
  172. package/dist/collection/components/index.js.map +1 -1
  173. package/dist/collection/components/list/z-list/index.js +4 -4
  174. package/dist/collection/components/list/z-list/index.js.map +1 -1
  175. package/dist/collection/components/list/z-list/index.spec.js.map +1 -1
  176. package/dist/collection/components/list/z-list/index.stories.js +185 -0
  177. package/dist/collection/components/list/z-list/index.stories.js.map +1 -0
  178. package/dist/collection/components/list/z-list-element/index.js +3 -3
  179. package/dist/collection/components/list/z-list-element/index.js.map +1 -1
  180. package/dist/collection/components/list/z-list-element/index.spec.js.map +1 -1
  181. package/dist/collection/components/list/z-list-element/index.stories.js +128 -0
  182. package/dist/collection/components/list/z-list-element/index.stories.js.map +1 -0
  183. package/dist/collection/components/list/z-list-group/index.js +3 -3
  184. package/dist/collection/components/list/z-list-group/index.js.map +1 -1
  185. package/dist/collection/components/list/z-list-group/index.spec.js.map +1 -1
  186. package/dist/collection/components/list/z-list-group/index.stories.js +118 -0
  187. package/dist/collection/components/list/z-list-group/index.stories.js.map +1 -0
  188. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  189. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  190. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  191. package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
  192. package/dist/collection/components/table/z-table/index.js +3 -3
  193. package/dist/collection/components/table/z-table/index.js.map +1 -1
  194. package/dist/collection/components/table/z-table/index.stories.js +262 -0
  195. package/dist/collection/components/table/z-table/index.stories.js.map +1 -0
  196. package/dist/collection/components/table/z-tbody/index.js +1 -1
  197. package/dist/collection/components/table/z-tbody/index.js.map +1 -1
  198. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  199. package/dist/collection/components/table/z-tfoot/index.js.map +1 -1
  200. package/dist/collection/components/table/z-thead/index.js +1 -1
  201. package/dist/collection/components/table/z-thead/index.js.map +1 -1
  202. package/dist/collection/components/table/z-tr/index.js +1 -1
  203. package/dist/collection/components/table/z-tr/index.js.map +1 -1
  204. package/dist/collection/components/z-accordion/index.js +2 -2
  205. package/dist/collection/components/z-accordion/index.js.map +1 -1
  206. package/dist/collection/components/z-accordion/index.stories.js +165 -0
  207. package/dist/collection/components/z-accordion/index.stories.js.map +1 -0
  208. package/dist/collection/components/z-accordion/styles.css +1 -1
  209. package/dist/collection/components/z-anchor-navigation/index.js +32 -9
  210. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -1
  211. package/dist/collection/components/z-anchor-navigation/index.stories.js +332 -0
  212. package/dist/collection/components/z-anchor-navigation/index.stories.js.map +1 -0
  213. package/dist/collection/components/z-anchor-navigation/styles.css +22 -34
  214. package/dist/collection/components/z-app-header/index.js +420 -0
  215. package/dist/collection/components/z-app-header/index.js.map +1 -0
  216. package/dist/collection/components/z-app-header/index.spec.js.map +1 -0
  217. package/dist/collection/components/z-app-header/index.stories.js +635 -0
  218. package/dist/collection/components/z-app-header/index.stories.js.map +1 -0
  219. package/dist/collection/components/z-aria-alert/index.js +2 -2
  220. package/dist/collection/components/z-aria-alert/index.js.map +1 -1
  221. package/dist/collection/components/z-aria-alert/index.spec.js.map +1 -1
  222. package/dist/collection/components/z-aria-alert/index.stories.js +76 -0
  223. package/dist/collection/components/z-aria-alert/index.stories.js.map +1 -0
  224. package/dist/collection/components/z-avatar/index.js +3 -3
  225. package/dist/collection/components/z-avatar/index.js.map +1 -1
  226. package/dist/collection/components/z-avatar/index.spec.js.map +1 -1
  227. package/dist/collection/components/z-avatar/index.stories.js +51 -0
  228. package/dist/collection/components/z-avatar/index.stories.js.map +1 -0
  229. package/dist/collection/components/z-book-card/index.js +1 -1
  230. package/dist/collection/components/z-book-card/index.js.map +1 -1
  231. package/dist/collection/components/z-book-card/index.spec.js.map +1 -1
  232. package/dist/collection/components/z-book-card/index.stories.js +397 -0
  233. package/dist/collection/components/z-book-card/index.stories.js.map +1 -0
  234. package/dist/collection/components/z-breadcrumb/index.js +3 -3
  235. package/dist/collection/components/z-breadcrumb/index.js.map +1 -1
  236. package/dist/collection/components/z-breadcrumb/index.spec.js.map +1 -1
  237. package/dist/collection/components/z-breadcrumb/index.stories.js +68 -0
  238. package/dist/collection/components/z-breadcrumb/index.stories.js.map +1 -0
  239. package/dist/collection/components/z-button/index.js +269 -0
  240. package/dist/collection/components/z-button/index.js.map +1 -0
  241. package/dist/collection/components/z-button/index.spec.js +101 -0
  242. package/dist/collection/components/z-button/index.spec.js.map +1 -0
  243. package/dist/collection/components/z-button/index.stories.js +90 -0
  244. package/dist/collection/components/z-button/index.stories.js.map +1 -0
  245. package/dist/collection/components/z-button-sort/index.js +221 -0
  246. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  247. package/dist/collection/components/z-button-sort/index.spec.js.map +1 -0
  248. package/dist/collection/components/z-button-sort/index.stories.js +31 -0
  249. package/dist/collection/components/z-button-sort/index.stories.js.map +1 -0
  250. package/dist/collection/components/z-button-sort/test.e2e.js.map +1 -0
  251. package/dist/collection/components/z-card/index.js +1 -1
  252. package/dist/collection/components/z-card/index.js.map +1 -1
  253. package/dist/collection/components/z-card/index.spec.js.map +1 -1
  254. package/dist/collection/components/z-card/index.stories.js +292 -0
  255. package/dist/collection/components/z-card/index.stories.js.map +1 -0
  256. package/dist/collection/components/z-carousel/index.js +2 -2
  257. package/dist/collection/components/z-carousel/index.js.map +1 -1
  258. package/dist/collection/components/z-carousel/index.stories.js +129 -0
  259. package/dist/collection/components/z-carousel/index.stories.js.map +1 -0
  260. package/dist/collection/components/z-chip/index.js +148 -0
  261. package/dist/collection/components/z-chip/index.js.map +1 -0
  262. package/dist/collection/components/z-chip/index.spec.js.map +1 -0
  263. package/dist/collection/components/z-chip/index.stories.js +70 -0
  264. package/dist/collection/components/z-chip/index.stories.js.map +1 -0
  265. package/dist/collection/components/z-combobox/index.js +643 -0
  266. package/dist/collection/components/z-combobox/index.js.map +1 -0
  267. package/dist/collection/components/z-combobox/index.spec.js.map +1 -0
  268. package/dist/collection/components/z-combobox/index.stories.js +78 -0
  269. package/dist/collection/components/z-combobox/index.stories.js.map +1 -0
  270. package/dist/collection/components/z-cover-hero/index.js +4 -4
  271. package/dist/collection/components/z-cover-hero/index.js.map +1 -1
  272. package/dist/collection/components/z-cover-hero/index.stories.js +256 -0
  273. package/dist/collection/components/z-cover-hero/index.stories.js.map +1 -0
  274. package/dist/collection/components/z-divider/index.js +3 -3
  275. package/dist/collection/components/z-divider/index.js.map +1 -1
  276. package/dist/collection/components/z-divider/index.spec.js.map +1 -1
  277. package/dist/collection/components/z-divider/index.stories.js +45 -0
  278. package/dist/collection/components/z-divider/index.stories.js.map +1 -0
  279. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  280. package/dist/collection/components/z-ghost-loading/index.js.map +1 -1
  281. package/dist/collection/components/z-ghost-loading/index.spec.js.map +1 -1
  282. package/dist/collection/components/z-ghost-loading/index.stories.js +22 -0
  283. package/dist/collection/components/z-ghost-loading/index.stories.js.map +1 -0
  284. package/dist/collection/components/z-icon/index.js +122 -0
  285. package/dist/collection/components/z-icon/index.js.map +1 -0
  286. package/dist/collection/components/z-icon/index.spec.js +96 -0
  287. package/dist/collection/components/z-icon/index.spec.js.map +1 -0
  288. package/dist/collection/components/z-icon/index.stories.js +30 -0
  289. package/dist/collection/components/z-icon/index.stories.js.map +1 -0
  290. package/dist/collection/components/z-info-box/index.js +86 -0
  291. package/dist/collection/components/z-info-box/index.js.map +1 -0
  292. package/dist/collection/components/z-info-box/index.spec.js.map +1 -0
  293. package/dist/collection/components/z-info-box/index.stories.js +20 -0
  294. package/dist/collection/components/z-info-box/index.stories.js.map +1 -0
  295. package/dist/collection/components/z-info-reveal/index.js +2 -2
  296. package/dist/collection/components/z-info-reveal/index.js.map +1 -1
  297. package/dist/collection/components/z-info-reveal/index.stories.js +59 -0
  298. package/dist/collection/components/z-info-reveal/index.stories.js.map +1 -0
  299. package/dist/collection/components/z-input/index.js +959 -0
  300. package/dist/collection/components/z-input/index.js.map +1 -0
  301. package/dist/collection/components/z-input/index.stories.js +294 -0
  302. package/dist/collection/components/z-input/index.stories.js.map +1 -0
  303. package/dist/collection/components/z-input/styles-checkbox-radio.css +123 -0
  304. package/dist/collection/components/z-input/styles-general.css +154 -0
  305. package/dist/collection/components/z-input/styles-text.css +81 -0
  306. package/dist/collection/components/z-input/styles-textarea.css +35 -0
  307. package/dist/collection/components/z-input/test-checkbox.spec.js.map +1 -0
  308. package/dist/collection/components/z-input/test-methods.spec.js +13 -0
  309. package/dist/collection/components/z-input/test-methods.spec.js.map +1 -0
  310. package/dist/collection/components/z-input/test-radio.spec.js.map +1 -0
  311. package/dist/collection/components/z-input/test-text.spec.js +347 -0
  312. package/dist/collection/components/z-input/test-text.spec.js.map +1 -0
  313. package/dist/collection/components/z-input/test-textarea.spec.js.map +1 -0
  314. package/dist/collection/components/z-input/test.e2e.js +180 -0
  315. package/dist/collection/components/z-input/test.e2e.js.map +1 -0
  316. package/dist/collection/components/z-input-message/index.js +93 -0
  317. package/dist/collection/components/z-input-message/index.js.map +1 -0
  318. package/dist/collection/components/z-input-message/index.spec.js.map +1 -0
  319. package/dist/collection/components/z-input-message/index.stories.js +37 -0
  320. package/dist/collection/components/z-input-message/index.stories.js.map +1 -0
  321. package/dist/collection/components/z-logo/index.js +140 -0
  322. package/dist/collection/components/z-logo/index.js.map +1 -0
  323. package/dist/collection/components/z-logo/index.spec.js.map +1 -0
  324. package/dist/collection/components/z-logo/index.stories.js +26 -0
  325. package/dist/collection/components/z-logo/index.stories.js.map +1 -0
  326. package/dist/collection/components/z-logo/test.e2e.js.map +1 -0
  327. package/dist/collection/components/z-menu/index.js +244 -0
  328. package/dist/collection/components/z-menu/index.js.map +1 -0
  329. package/dist/collection/components/z-menu/index.spec.js.map +1 -0
  330. package/dist/collection/components/z-menu/index.stories.js +129 -0
  331. package/dist/collection/components/z-menu/index.stories.js.map +1 -0
  332. package/dist/collection/components/z-menu-section/index.js +131 -0
  333. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  334. package/dist/collection/components/z-menu-section/index.spec.js.map +1 -0
  335. package/dist/collection/components/z-menu-section/index.stories.js +41 -0
  336. package/dist/collection/components/z-menu-section/index.stories.js.map +1 -0
  337. package/dist/collection/components/z-modal/index.js +357 -0
  338. package/dist/collection/components/z-modal/index.js.map +1 -0
  339. package/dist/collection/components/z-modal/index.spec.js.map +1 -0
  340. package/dist/collection/components/z-modal/index.stories.js +224 -0
  341. package/dist/collection/components/z-modal/index.stories.js.map +1 -0
  342. package/dist/collection/components/z-navigation-tabs/index.js +374 -0
  343. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  344. package/dist/collection/components/z-navigation-tabs/index.stories.js +191 -0
  345. package/dist/collection/components/z-navigation-tabs/index.stories.js.map +1 -0
  346. package/dist/collection/components/z-notification/index.js +194 -0
  347. package/dist/collection/components/z-notification/index.js.map +1 -0
  348. package/dist/collection/components/z-notification/index.spec.js.map +1 -0
  349. package/dist/collection/components/z-notification/index.stories.js +147 -0
  350. package/dist/collection/components/z-notification/index.stories.js.map +1 -0
  351. package/dist/collection/components/z-notification/test.e2e.js.map +1 -0
  352. package/dist/collection/components/z-offcanvas/index.js +1 -1
  353. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  354. package/dist/collection/components/z-offcanvas/index.spec.js.map +1 -1
  355. package/dist/collection/components/z-offcanvas/index.stories.js +196 -0
  356. package/dist/collection/components/z-offcanvas/index.stories.js.map +1 -0
  357. package/dist/collection/components/z-offcanvas/styles.css +6 -2
  358. package/dist/collection/components/z-pagination/index.js +1 -1
  359. package/dist/collection/components/z-pagination/index.js.map +1 -1
  360. package/dist/collection/components/z-pagination/index.spec.js.map +1 -1
  361. package/dist/collection/components/z-pagination/index.stories.js +100 -0
  362. package/dist/collection/components/z-pagination/index.stories.js.map +1 -0
  363. package/dist/collection/components/z-pagination/styles.css +6 -2
  364. package/dist/collection/components/z-panel-elem/index.js +197 -0
  365. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  366. package/dist/collection/components/z-panel-elem/index.spec.js.map +1 -0
  367. package/dist/collection/components/z-panel-elem/index.stories.js +26 -0
  368. package/dist/collection/components/z-panel-elem/index.stories.js.map +1 -0
  369. package/dist/collection/components/z-popover/index.js +2 -2
  370. package/dist/collection/components/z-popover/index.js.map +1 -1
  371. package/dist/collection/components/z-popover/index.stories.js +103 -0
  372. package/dist/collection/components/z-popover/index.stories.js.map +1 -0
  373. package/dist/collection/components/z-searchbar/index.js +616 -0
  374. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  375. package/dist/collection/components/z-searchbar/index.spec.js.map +1 -0
  376. package/dist/collection/components/z-searchbar/index.stories.js +198 -0
  377. package/dist/collection/components/z-searchbar/index.stories.js.map +1 -0
  378. package/dist/collection/components/z-section-title/index.js +1 -1
  379. package/dist/collection/components/z-section-title/index.js.map +1 -1
  380. package/dist/collection/components/z-section-title/index.spec.js +1 -1
  381. package/dist/collection/components/z-section-title/index.spec.js.map +1 -1
  382. package/dist/collection/components/z-section-title/index.stories.js +53 -0
  383. package/dist/collection/components/z-section-title/index.stories.js.map +1 -0
  384. package/dist/collection/components/z-select/index.js +778 -0
  385. package/dist/collection/components/z-select/index.js.map +1 -0
  386. package/dist/collection/components/z-select/index.spec.js.map +1 -0
  387. package/dist/collection/components/z-select/index.stories.js +187 -0
  388. package/dist/collection/components/z-select/index.stories.js.map +1 -0
  389. package/dist/collection/components/z-skip-to-content/index.js +3 -3
  390. package/dist/collection/components/z-skip-to-content/index.js.map +1 -1
  391. package/dist/collection/components/z-skip-to-content/index.spec.js.map +1 -1
  392. package/dist/collection/components/z-skip-to-content/index.stories.js +41 -0
  393. package/dist/collection/components/z-skip-to-content/index.stories.js.map +1 -0
  394. package/dist/collection/components/z-stepper/index.js +22 -0
  395. package/dist/collection/components/z-stepper/index.js.map +1 -0
  396. package/dist/collection/components/z-stepper/index.spec.js.map +1 -0
  397. package/dist/collection/components/z-stepper/index.stories.js +38 -0
  398. package/dist/collection/components/z-stepper/index.stories.js.map +1 -0
  399. package/dist/collection/components/z-stepper-item/index.js +122 -0
  400. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  401. package/dist/collection/components/z-stepper-item/index.spec.js.map +1 -0
  402. package/dist/collection/components/z-stepper-item/index.stories.js +34 -0
  403. package/dist/collection/components/z-stepper-item/index.stories.js.map +1 -0
  404. package/dist/collection/components/z-tag/index.js +4 -4
  405. package/dist/collection/components/z-tag/index.js.map +1 -1
  406. package/dist/collection/components/z-tag/index.spec.js.map +1 -1
  407. package/dist/collection/components/z-tag/index.stories.js +60 -0
  408. package/dist/collection/components/z-tag/index.stories.js.map +1 -0
  409. package/dist/collection/components/z-toast-notification/index.js +406 -0
  410. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  411. package/dist/collection/components/z-toast-notification/index.spec.js.map +1 -0
  412. package/dist/collection/components/z-toast-notification/index.stories.js +89 -0
  413. package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -0
  414. package/dist/collection/components/z-toast-notification-list/index.js +107 -0
  415. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  416. package/dist/collection/components/z-toast-notification-list/index.spec.js.map +1 -0
  417. package/dist/collection/components/z-toast-notification-list/index.stories.js +124 -0
  418. package/dist/collection/components/z-toast-notification-list/index.stories.js.map +1 -0
  419. package/dist/collection/components/z-toast-notification-list/test.e2e.js.map +1 -0
  420. package/dist/collection/components/z-toggle-button/index.js +146 -0
  421. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  422. package/dist/collection/components/z-toggle-button/index.spec.js.map +1 -0
  423. package/dist/collection/components/z-toggle-button/index.stories.js +23 -0
  424. package/dist/collection/components/z-toggle-button/index.stories.js.map +1 -0
  425. package/dist/collection/components/z-toggle-switch/index.js +147 -0
  426. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  427. package/dist/collection/components/z-toggle-switch/index.spec.js.map +1 -0
  428. package/dist/collection/components/z-toggle-switch/index.stories.js +27 -0
  429. package/dist/collection/components/z-toggle-switch/index.stories.js.map +1 -0
  430. package/dist/collection/components/z-tooltip/index.js +151 -0
  431. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  432. package/dist/collection/components/z-tooltip/index.stories.js +123 -0
  433. package/dist/collection/components/z-tooltip/index.stories.js.map +1 -0
  434. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  435. package/dist/collection/components/z-visually-hidden/index.js.map +1 -1
  436. package/dist/collection/components/z-visually-hidden/index.spec.js.map +1 -1
  437. package/dist/collection/components/z-visually-hidden/index.stories.js +28 -0
  438. package/dist/collection/components/z-visually-hidden/index.stories.js.map +1 -0
  439. package/dist/collection/constants/breakpoints.js +1 -1
  440. package/dist/collection/constants/breakpoints.js.map +1 -1
  441. package/dist/collection/constants/icons.js.map +1 -1
  442. package/dist/collection/constants/iconset.js +873 -0
  443. package/dist/collection/constants/iconset.js.map +1 -0
  444. package/dist/collection/index.js +2 -2
  445. package/dist/collection/index.js.map +1 -1
  446. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  447. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -1
  448. package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js.map +1 -1
  449. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +72 -0
  450. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  451. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -1
  452. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js.map +1 -1
  453. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +24 -0
  454. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  455. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -1
  456. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js.map +1 -1
  457. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  458. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -1
  459. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js.map +1 -1
  460. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +24 -0
  461. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  462. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -1
  463. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js.map +1 -1
  464. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +128 -0
  465. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +6 -2
  466. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  467. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -1
  468. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js.map +1 -1
  469. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +28 -0
  470. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +9 -3
  471. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  472. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -1
  473. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js.map +1 -1
  474. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +16 -0
  475. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  476. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -1
  477. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js.map +1 -1
  478. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +22 -0
  479. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  480. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -1
  481. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js.map +1 -1
  482. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +22 -0
  483. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  484. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -1
  485. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js.map +1 -1
  486. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +18 -0
  487. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  488. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -1
  489. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js.map +1 -1
  490. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +14 -0
  491. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  492. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -1
  493. package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js.map +1 -1
  494. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +18 -0
  495. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  496. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -1
  497. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js.map +1 -1
  498. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +28 -0
  499. package/dist/collection/snowflakes/myz/list/z-myz-list-item/test.e2e.js.map +1 -1
  500. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +1 -1
  501. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js.map +1 -1
  502. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.spec.js.map +1 -1
  503. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.stories.js +47 -0
  504. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +1 -1
  505. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js.map +1 -1
  506. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.spec.js.map +1 -1
  507. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.stories.js +51 -0
  508. package/dist/collection/snowflakes/myz/pocket/z-pocket/test.e2e.js.map +1 -1
  509. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +1 -1
  510. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js.map +1 -1
  511. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.spec.js.map +1 -1
  512. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.stories.js +43 -0
  513. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +9 -3
  514. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/test.e2e.js.map +1 -1
  515. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +2 -2
  516. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js.map +1 -1
  517. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.spec.js.map +1 -1
  518. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.stories.js +15 -0
  519. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/test.e2e.js.map +1 -1
  520. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +1 -1
  521. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js.map +1 -1
  522. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.spec.js.map +1 -1
  523. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.stories.js +36 -0
  524. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  525. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -1
  526. package/dist/collection/snowflakes/myz/z-alert/index.spec.js.map +1 -1
  527. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +30 -0
  528. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  529. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -1
  530. package/dist/collection/snowflakes/myz/z-otp/index.spec.js.map +1 -1
  531. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +32 -0
  532. package/dist/collection/snowflakes/myz/z-otp/test.e2e.js.map +1 -1
  533. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -1
  534. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -1
  535. package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js.map +1 -1
  536. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +16 -0
  537. package/dist/collection/utils/storybook-utils.js +52 -11
  538. package/dist/collection/utils/storybook-utils.js.map +1 -1
  539. package/dist/collection/utils/utils.js +14 -1
  540. package/dist/collection/utils/utils.js.map +1 -1
  541. package/dist/collection/utils/utils.spec.js.map +1 -1
  542. package/dist/components/breakpoints.js.map +1 -1
  543. package/dist/components/iconset.js +876 -0
  544. package/dist/components/iconset.js.map +1 -0
  545. package/dist/components/index.d.ts +25 -25
  546. package/dist/components/index.js.map +1 -1
  547. package/dist/components/index10.js +15 -6
  548. package/dist/components/index10.js.map +1 -1
  549. package/dist/components/index11.js +1 -1
  550. package/dist/components/index11.js.map +1 -1
  551. package/dist/components/index12.js +1 -1
  552. package/dist/components/index12.js.map +1 -1
  553. package/dist/components/index13.js +1 -1
  554. package/dist/components/index13.js.map +1 -1
  555. package/dist/components/index14.js +2 -2
  556. package/dist/components/index14.js.map +1 -1
  557. package/dist/components/index15.js +4 -4
  558. package/dist/components/index15.js.map +1 -1
  559. package/dist/components/index16.js +1 -1
  560. package/dist/components/index17.js +1 -1
  561. package/dist/components/index18.js +1 -1
  562. package/dist/components/index19.js +1 -1
  563. package/dist/components/index20.js +1 -1
  564. package/dist/components/index20.js.map +1 -1
  565. package/dist/components/index21.js +2 -2
  566. package/dist/components/index21.js.map +1 -1
  567. package/dist/components/index22.js +1 -1
  568. package/dist/components/index22.js.map +1 -1
  569. package/dist/components/index23.js +2 -2
  570. package/dist/components/index23.js.map +1 -1
  571. package/dist/components/index24.js +2 -2
  572. package/dist/components/index24.js.map +1 -1
  573. package/dist/components/index25.js +1 -1
  574. package/dist/components/index25.js.map +1 -1
  575. package/dist/components/index26.js +1 -1
  576. package/dist/components/index26.js.map +1 -1
  577. package/dist/components/index27.js +2 -2
  578. package/dist/components/index27.js.map +1 -1
  579. package/dist/components/index3.js +1 -1
  580. package/dist/components/index4.js +1 -1
  581. package/dist/components/index4.js.map +1 -1
  582. package/dist/components/index5.js +2 -2
  583. package/dist/components/index5.js.map +1 -1
  584. package/dist/components/index6.js +1 -1
  585. package/dist/components/index6.js.map +1 -1
  586. package/dist/components/index7.js +2 -2
  587. package/dist/components/index7.js.map +1 -1
  588. package/dist/components/index8.js +1 -1
  589. package/dist/components/index9.js +2 -2
  590. package/dist/components/index9.js.map +1 -1
  591. package/dist/components/utils.js.map +1 -1
  592. package/dist/components/utils2.js.map +1 -1
  593. package/dist/components/z-accordion.js +2 -2
  594. package/dist/components/z-accordion.js.map +1 -1
  595. package/dist/components/z-anchor-navigation.js +14 -8
  596. package/dist/components/z-anchor-navigation.js.map +1 -1
  597. package/dist/components/z-app-header.js +1 -1
  598. package/dist/components/z-app-header.js.map +1 -1
  599. package/dist/components/z-aria-alert.js +1 -1
  600. package/dist/components/z-aria-alert.js.map +1 -1
  601. package/dist/components/z-avatar.js +2 -2
  602. package/dist/components/z-avatar.js.map +1 -1
  603. package/dist/components/z-book-card.js +1 -1
  604. package/dist/components/z-book-card.js.map +1 -1
  605. package/dist/components/z-breadcrumb.js +2 -2
  606. package/dist/components/z-breadcrumb.js.map +1 -1
  607. package/dist/components/z-button-sort.js +1 -1
  608. package/dist/components/z-button-sort.js.map +1 -1
  609. package/dist/components/z-card.js.map +1 -1
  610. package/dist/components/z-carousel.js.map +1 -1
  611. package/dist/components/z-combobox.js +1 -1
  612. package/dist/components/z-combobox.js.map +1 -1
  613. package/dist/components/z-cover-hero.js +2 -2
  614. package/dist/components/z-cover-hero.js.map +1 -1
  615. package/dist/components/z-date-picker.js +1 -1
  616. package/dist/components/z-date-picker.js.map +1 -1
  617. package/dist/components/z-file-upload.js +1 -1
  618. package/dist/components/z-file-upload.js.map +1 -1
  619. package/dist/components/z-file.js +1 -1
  620. package/dist/components/z-file.js.map +1 -1
  621. package/dist/components/z-info-box.js +1 -1
  622. package/dist/components/z-info-box.js.map +1 -1
  623. package/dist/components/z-info-reveal.js +1 -1
  624. package/dist/components/z-info-reveal.js.map +1 -1
  625. package/dist/components/z-logo.js +1 -1
  626. package/dist/components/z-logo.js.map +1 -1
  627. package/dist/components/z-menu-section.js +1 -1
  628. package/dist/components/z-menu-section.js.map +1 -1
  629. package/dist/components/z-menu.js +1 -1
  630. package/dist/components/z-menu.js.map +1 -1
  631. package/dist/components/z-messages-pocket.js +1 -1
  632. package/dist/components/z-messages-pocket.js.map +1 -1
  633. package/dist/components/z-myz-card-alert.js +1 -1
  634. package/dist/components/z-myz-card-alert.js.map +1 -1
  635. package/dist/components/z-myz-card-dictionary.js +2 -2
  636. package/dist/components/z-myz-card-dictionary.js.map +1 -1
  637. package/dist/components/z-myz-card-footer-sections.js +1 -1
  638. package/dist/components/z-myz-card-footer.js +2 -2
  639. package/dist/components/z-myz-card-footer.js.map +1 -1
  640. package/dist/components/z-myz-card-icon.js +1 -1
  641. package/dist/components/z-myz-card-info.js +1 -1
  642. package/dist/components/z-myz-card-info.js.map +1 -1
  643. package/dist/components/z-myz-card-list.js +1 -1
  644. package/dist/components/z-myz-list.js +1 -1
  645. package/dist/components/z-myz-list.js.map +1 -1
  646. package/dist/components/z-navigation-tabs.js +3 -3
  647. package/dist/components/z-navigation-tabs.js.map +1 -1
  648. package/dist/components/z-notification.js +1 -1
  649. package/dist/components/z-notification.js.map +1 -1
  650. package/dist/components/z-otp.js +2 -2
  651. package/dist/components/z-otp.js.map +1 -1
  652. package/dist/components/z-pagination.js +1 -1
  653. package/dist/components/z-pagination.js.map +1 -1
  654. package/dist/components/z-panel-elem.js +2 -2
  655. package/dist/components/z-panel-elem.js.map +1 -1
  656. package/dist/components/z-pocket-message.js +1 -1
  657. package/dist/components/z-range-picker.js +3 -3
  658. package/dist/components/z-range-picker.js.map +1 -1
  659. package/dist/components/z-section-title.js +1 -1
  660. package/dist/components/z-section-title.js.map +1 -1
  661. package/dist/components/z-select.js +1 -1
  662. package/dist/components/z-select.js.map +1 -1
  663. package/dist/components/z-skip-to-content.js +2 -2
  664. package/dist/components/z-skip-to-content.js.map +1 -1
  665. package/dist/components/z-slideshow.js.map +1 -1
  666. package/dist/components/z-stepper-item.js +1 -1
  667. package/dist/components/z-stepper-item.js.map +1 -1
  668. package/dist/components/z-stepper.js +1 -1
  669. package/dist/components/z-stepper.js.map +1 -1
  670. package/dist/components/z-table.js +2 -2
  671. package/dist/components/z-table.js.map +1 -1
  672. package/dist/components/z-tbody.js +1 -1
  673. package/dist/components/z-td.js +1 -1
  674. package/dist/components/z-td.js.map +1 -1
  675. package/dist/components/z-tfoot.js +1 -1
  676. package/dist/components/z-th.js +1 -1
  677. package/dist/components/z-th.js.map +1 -1
  678. package/dist/components/z-thead.js +1 -1
  679. package/dist/components/z-toast-notification-list.js +1 -1
  680. package/dist/components/z-toast-notification-list.js.map +1 -1
  681. package/dist/components/z-toast-notification.js +1 -1
  682. package/dist/components/z-toast-notification.js.map +1 -1
  683. package/dist/components/z-toggle-button.js +2 -2
  684. package/dist/components/z-toggle-button.js.map +1 -1
  685. package/dist/components/z-toggle-switch.js +4 -4
  686. package/dist/components/z-toggle-switch.js.map +1 -1
  687. package/dist/components/z-tooltip.js +1 -1
  688. package/dist/components/z-tooltip.js.map +1 -1
  689. package/dist/components/z-tr.js +1 -1
  690. package/dist/components/z-tr.js.map +1 -1
  691. package/dist/components/z-visually-hidden.js +1 -1
  692. package/dist/docs/grid/index.stories.js +47 -0
  693. package/dist/docs/grid/index.stories.js.map +1 -0
  694. package/dist/docs/iconset/index.stories.js +32 -0
  695. package/dist/docs/iconset/index.stories.js.map +1 -0
  696. package/dist/docs/themes/index.stories.js +87 -0
  697. package/dist/docs/themes/index.stories.js.map +1 -0
  698. package/dist/esm/app-globals-0f993ce5.js +5 -0
  699. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  700. package/dist/esm/breakpoints-680e0e56.js.map +1 -1
  701. package/dist/esm/index-2f0ea8a1.js +57 -0
  702. package/dist/esm/index-2f0ea8a1.js.map +1 -0
  703. package/dist/esm/index-41ee4016.js +18 -0
  704. package/dist/esm/index-41ee4016.js.map +1 -0
  705. package/dist/esm/index-ab5f1eaa.js +2181 -0
  706. package/dist/esm/index-ab5f1eaa.js.map +1 -0
  707. package/dist/esm/index-cfde9cec.js +19 -0
  708. package/dist/esm/index-cfde9cec.js.map +1 -0
  709. package/dist/esm/index-db930fad.js +63 -0
  710. package/dist/esm/index-db930fad.js.map +1 -0
  711. package/dist/esm/index-e194f4a7.js +44 -0
  712. package/dist/esm/index-e194f4a7.js.map +1 -0
  713. package/dist/esm/index-ea49e441.js +19 -0
  714. package/dist/esm/index-ea49e441.js.map +1 -0
  715. package/dist/esm/index.js.map +1 -1
  716. package/dist/esm/loader.js +6 -4
  717. package/dist/esm/loader.js.map +1 -1
  718. package/dist/esm/utils-7983d02c.js.map +1 -1
  719. package/dist/esm/utils-cd008fbc.js.map +1 -1
  720. package/dist/esm/web-components-library.js +33 -33
  721. package/dist/esm/web-components-library.js.map +1 -1
  722. package/dist/esm/z-accordion.entry.js +3 -3
  723. package/dist/esm/z-accordion.entry.js.map +1 -1
  724. package/dist/esm/z-alert.entry.js +2 -2
  725. package/dist/esm/z-anchor-navigation.entry.js +14 -9
  726. package/dist/esm/z-anchor-navigation.entry.js.map +1 -1
  727. package/dist/esm/z-app-header_12.entry.js +40 -31
  728. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  729. package/dist/esm/z-aria-alert.entry.js +2 -2
  730. package/dist/esm/z-aria-alert.entry.js.map +1 -1
  731. package/dist/esm/z-avatar.entry.js +3 -3
  732. package/dist/esm/z-avatar.entry.js.map +1 -1
  733. package/dist/esm/z-book-card.entry.js +2 -2
  734. package/dist/esm/z-book-card.entry.js.map +1 -1
  735. package/dist/esm/z-breadcrumb.entry.js +3 -3
  736. package/dist/esm/z-breadcrumb.entry.js.map +1 -1
  737. package/dist/esm/z-button-sort.entry.js +2 -2
  738. package/dist/esm/z-button-sort.entry.js.map +1 -1
  739. package/dist/esm/z-card.entry.js +1 -1
  740. package/dist/esm/z-card.entry.js.map +1 -1
  741. package/dist/esm/z-carousel.entry.js +1 -1
  742. package/dist/esm/z-carousel.entry.js.map +1 -1
  743. package/dist/esm/z-chip.entry.js +3 -3
  744. package/dist/esm/z-chip.entry.js.map +1 -1
  745. package/dist/esm/z-combobox.entry.js +2 -2
  746. package/dist/esm/z-combobox.entry.js.map +1 -1
  747. package/dist/esm/z-cover-hero.entry.js +3 -3
  748. package/dist/esm/z-cover-hero.entry.js.map +1 -1
  749. package/dist/esm/z-date-picker.entry.js +2 -2
  750. package/dist/esm/z-date-picker.entry.js.map +1 -1
  751. package/dist/esm/z-dragdrop-area_2.entry.js +7 -7
  752. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  753. package/dist/esm/z-file-upload.entry.js +2 -2
  754. package/dist/esm/z-file-upload.entry.js.map +1 -1
  755. package/dist/esm/z-file.entry.js +2 -2
  756. package/dist/esm/z-file.entry.js.map +1 -1
  757. package/dist/esm/z-ghost-loading.entry.js +2 -2
  758. package/dist/esm/z-info-box.entry.js +2 -2
  759. package/dist/esm/z-info-box.entry.js.map +1 -1
  760. package/dist/esm/z-info-reveal.entry.js +2 -2
  761. package/dist/esm/z-info-reveal.entry.js.map +1 -1
  762. package/dist/esm/z-logo.entry.js +2 -2
  763. package/dist/esm/z-logo.entry.js.map +1 -1
  764. package/dist/esm/z-menu-section.entry.js +2 -2
  765. package/dist/esm/z-menu-section.entry.js.map +1 -1
  766. package/dist/esm/z-menu.entry.js +2 -2
  767. package/dist/esm/z-menu.entry.js.map +1 -1
  768. package/dist/esm/z-messages-pocket.entry.js +2 -2
  769. package/dist/esm/z-messages-pocket.entry.js.map +1 -1
  770. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  771. package/dist/esm/z-myz-card-alert.entry.js.map +1 -1
  772. package/dist/esm/z-myz-card-dictionary.entry.js +3 -3
  773. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -1
  774. package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
  775. package/dist/esm/z-myz-card-footer.entry.js +3 -3
  776. package/dist/esm/z-myz-card-footer.entry.js.map +1 -1
  777. package/dist/esm/z-myz-card-icon.entry.js +2 -2
  778. package/dist/esm/z-myz-card-info.entry.js +2 -2
  779. package/dist/esm/z-myz-card-info.entry.js.map +1 -1
  780. package/dist/esm/z-myz-card-list.entry.js +2 -2
  781. package/dist/esm/z-myz-card_4.entry.js +5 -5
  782. package/dist/esm/z-myz-list-item.entry.js +2 -2
  783. package/dist/esm/z-myz-list-item.entry.js.map +1 -1
  784. package/dist/esm/z-myz-list.entry.js +2 -2
  785. package/dist/esm/z-myz-list.entry.js.map +1 -1
  786. package/dist/esm/z-navigation-tabs.entry.js +4 -4
  787. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  788. package/dist/esm/z-notification.entry.js +2 -2
  789. package/dist/esm/z-notification.entry.js.map +1 -1
  790. package/dist/esm/z-otp.entry.js +3 -3
  791. package/dist/esm/z-otp.entry.js.map +1 -1
  792. package/dist/esm/z-pagination.entry.js +2 -2
  793. package/dist/esm/z-pagination.entry.js.map +1 -1
  794. package/dist/esm/z-panel-elem.entry.js +3 -3
  795. package/dist/esm/z-panel-elem.entry.js.map +1 -1
  796. package/dist/esm/z-pocket-message.entry.js +2 -2
  797. package/dist/esm/z-pocket_3.entry.js +6 -6
  798. package/dist/esm/z-pocket_3.entry.js.map +1 -1
  799. package/dist/esm/z-popover.entry.js +2 -2
  800. package/dist/esm/z-popover.entry.js.map +1 -1
  801. package/dist/esm/z-range-picker.entry.js +4 -4
  802. package/dist/esm/z-range-picker.entry.js.map +1 -1
  803. package/dist/esm/z-section-title.entry.js +2 -2
  804. package/dist/esm/z-section-title.entry.js.map +1 -1
  805. package/dist/esm/z-select.entry.js +2 -2
  806. package/dist/esm/z-select.entry.js.map +1 -1
  807. package/dist/esm/z-skip-to-content.entry.js +3 -3
  808. package/dist/esm/z-skip-to-content.entry.js.map +1 -1
  809. package/dist/esm/z-slideshow.entry.js +1 -1
  810. package/dist/esm/z-slideshow.entry.js.map +1 -1
  811. package/dist/esm/z-stepper-item.entry.js +2 -2
  812. package/dist/esm/z-stepper-item.entry.js.map +1 -1
  813. package/dist/esm/z-stepper.entry.js +2 -2
  814. package/dist/esm/z-stepper.entry.js.map +1 -1
  815. package/dist/esm/z-table.entry.js +8 -8
  816. package/dist/esm/z-table.entry.js.map +1 -1
  817. package/dist/esm/z-tbody.entry.js +2 -2
  818. package/dist/esm/z-td.entry.js +2 -2
  819. package/dist/esm/z-tfoot.entry.js +2 -2
  820. package/dist/esm/z-th.entry.js +2 -2
  821. package/dist/esm/z-thead.entry.js +2 -2
  822. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  823. package/dist/esm/z-toast-notification-list.entry.js.map +1 -1
  824. package/dist/esm/z-toast-notification.entry.js +2 -2
  825. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  826. package/dist/esm/z-toggle-button.entry.js +3 -3
  827. package/dist/esm/z-toggle-button.entry.js.map +1 -1
  828. package/dist/esm/z-toggle-switch.entry.js +5 -5
  829. package/dist/esm/z-toggle-switch.entry.js.map +1 -1
  830. package/dist/esm/z-tooltip.entry.js +2 -2
  831. package/dist/esm/z-tooltip.entry.js.map +1 -1
  832. package/dist/esm/z-tr.entry.js +4 -4
  833. package/dist/esm/z-visually-hidden.entry.js +2 -2
  834. package/dist/types/components/css-components/z-fab/index.stories.d.ts +63 -0
  835. package/dist/types/components/css-components/z-link/index.stories.d.ts +46 -0
  836. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +33 -0
  837. package/dist/types/components/date-picker/z-range-picker/index.d.ts +1 -1
  838. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +51 -0
  839. package/dist/types/components/file-upload/z-file/index.stories.d.ts +14 -0
  840. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +42 -0
  841. package/dist/types/components/list/z-list/index.d.ts +2 -2
  842. package/dist/types/components/list/z-list/index.stories.d.ts +62 -0
  843. package/dist/types/components/list/z-list-element/index.d.ts +2 -2
  844. package/dist/types/components/list/z-list-element/index.stories.d.ts +77 -0
  845. package/dist/types/components/list/z-list-group/index.d.ts +1 -1
  846. package/dist/types/components/list/z-list-group/index.stories.d.ts +46 -0
  847. package/dist/types/components/table/z-table/index.d.ts +2 -2
  848. package/dist/types/components/table/z-table/index.stories.d.ts +82 -0
  849. package/dist/types/components/z-accordion/index.d.ts +1 -1
  850. package/dist/types/components/z-accordion/index.stories.d.ts +142 -0
  851. package/dist/types/components/z-anchor-navigation/index.d.ts +12 -4
  852. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +32 -0
  853. package/dist/types/components/z-app-header/index.d.ts +149 -0
  854. package/dist/types/components/z-app-header/index.stories.d.ts +118 -0
  855. package/dist/types/components/z-aria-alert/index.stories.d.ts +26 -0
  856. package/dist/types/components/z-avatar/index.stories.d.ts +42 -0
  857. package/dist/types/components/z-book-card/index.stories.d.ts +115 -0
  858. package/dist/types/components/z-breadcrumb/index.stories.d.ts +52 -0
  859. package/dist/types/components/z-button/index.d.ts +31 -0
  860. package/dist/types/components/z-button/index.stories.d.ts +66 -0
  861. package/dist/types/components/z-button-sort/index.d.ts +28 -0
  862. package/dist/types/components/z-button-sort/index.stories.d.ts +22 -0
  863. package/dist/types/components/z-card/index.stories.d.ts +70 -0
  864. package/dist/types/components/z-carousel/index.stories.d.ts +100 -0
  865. package/dist/types/components/z-chip/index.d.ts +18 -0
  866. package/dist/types/components/z-chip/index.stories.d.ts +46 -0
  867. package/dist/types/components/z-combobox/index.d.ts +84 -0
  868. package/dist/types/components/z-combobox/index.stories.d.ts +58 -0
  869. package/dist/types/components/z-cover-hero/index.d.ts +1 -1
  870. package/dist/types/components/z-cover-hero/index.stories.d.ts +113 -0
  871. package/dist/types/components/z-divider/index.d.ts +1 -1
  872. package/dist/types/components/z-divider/index.stories.d.ts +37 -0
  873. package/dist/types/components/z-ghost-loading/index.stories.d.ts +9 -0
  874. package/dist/types/components/z-icon/index.stories.d.ts +23 -0
  875. package/dist/types/components/z-info-box/index.d.ts +14 -0
  876. package/dist/types/components/z-info-box/index.stories.d.ts +12 -0
  877. package/dist/types/components/z-info-reveal/index.stories.d.ts +42 -0
  878. package/dist/types/components/z-input/index.d.ts +110 -0
  879. package/dist/types/components/z-input/index.stories.d.ts +126 -0
  880. package/dist/types/components/z-input-message/index.d.ts +12 -0
  881. package/dist/types/components/z-input-message/index.stories.d.ts +33 -0
  882. package/dist/types/components/z-logo/index.stories.d.ts +18 -0
  883. package/dist/types/components/z-menu/index.d.ts +61 -0
  884. package/dist/types/components/z-menu/index.stories.d.ts +27 -0
  885. package/dist/types/components/z-menu-section/index.d.ts +31 -0
  886. package/dist/types/components/z-menu-section/index.stories.d.ts +16 -0
  887. package/dist/types/components/z-modal/index.d.ts +49 -0
  888. package/dist/types/components/z-modal/index.stories.d.ts +39 -0
  889. package/dist/types/components/z-navigation-tabs/index.d.ts +114 -0
  890. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +78 -0
  891. package/dist/types/components/z-notification/index.d.ts +32 -0
  892. package/dist/types/components/z-notification/index.stories.d.ts +61 -0
  893. package/dist/types/components/z-offcanvas/index.stories.d.ts +49 -0
  894. package/dist/types/components/z-pagination/index.stories.d.ts +40 -0
  895. package/dist/types/components/z-panel-elem/index.stories.d.ts +18 -0
  896. package/dist/types/components/z-popover/index.stories.d.ts +40 -0
  897. package/dist/types/components/z-searchbar/index.d.ts +80 -0
  898. package/dist/types/components/z-searchbar/index.stories.d.ts +94 -0
  899. package/dist/types/components/z-section-title/index.stories.d.ts +37 -0
  900. package/dist/types/components/z-select/index.d.ts +84 -0
  901. package/dist/types/components/z-select/index.stories.d.ts +60 -0
  902. package/dist/types/components/z-skip-to-content/index.d.ts +1 -1
  903. package/dist/types/components/z-skip-to-content/index.stories.d.ts +31 -0
  904. package/dist/types/components/z-stepper/index.d.ts +6 -0
  905. package/dist/types/components/z-stepper/index.stories.d.ts +16 -0
  906. package/dist/types/components/z-stepper-item/index.stories.d.ts +21 -0
  907. package/dist/types/components/z-tag/index.d.ts +1 -1
  908. package/dist/types/components/z-tag/index.stories.d.ts +35 -0
  909. package/dist/types/components/z-toast-notification/index.d.ts +56 -0
  910. package/dist/types/components/z-toast-notification/index.stories.d.ts +58 -0
  911. package/dist/types/components/z-toast-notification-list/index.d.ts +14 -0
  912. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +81 -0
  913. package/dist/types/components/z-toggle-button/index.d.ts +17 -0
  914. package/dist/types/components/z-toggle-button/index.stories.d.ts +16 -0
  915. package/dist/types/components/z-toggle-switch/index.d.ts +17 -0
  916. package/dist/types/components/z-toggle-switch/index.stories.d.ts +22 -0
  917. package/dist/types/components/z-tooltip/index.d.ts +32 -0
  918. package/dist/types/components/z-tooltip/index.stories.d.ts +40 -0
  919. package/dist/types/components/z-visually-hidden/index.stories.d.ts +9 -0
  920. package/dist/types/components.d.ts +30 -22
  921. package/dist/types/constants/breakpoints.d.ts +1 -1
  922. package/dist/types/constants/iconset.d.ts +1577 -0
  923. package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/args-controls.d.ts +13 -0
  924. package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/docs-template.d.ts +5 -0
  925. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/grid/index.stories.d.ts +9 -0
  926. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/iconset/index.stories.d.ts +11 -0
  927. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +27 -0
  928. package/dist/types/index.d.ts +2 -2
  929. package/dist/types/stencil-public-runtime.d.ts +3 -8
  930. package/dist/types/utils/storybook-utils.d.ts +38 -8
  931. package/dist/types/utils/utils.d.ts +5 -0
  932. package/dist/web-components-library/index.esm.js.map +1 -1
  933. package/dist/web-components-library/p-025f494e.js.map +1 -1
  934. package/dist/web-components-library/p-060725ef.entry.js +2 -0
  935. package/dist/web-components-library/p-060725ef.entry.js.map +1 -0
  936. package/dist/web-components-library/p-0c2fdbe5.entry.js +2 -0
  937. package/dist/web-components-library/p-0c2fdbe5.entry.js.map +1 -0
  938. package/dist/web-components-library/p-17d072c7.entry.js +2 -0
  939. package/dist/web-components-library/p-17d072c7.entry.js.map +1 -0
  940. package/dist/web-components-library/p-1c5d8cac.js +2 -0
  941. package/dist/web-components-library/p-1c5d8cac.js.map +1 -0
  942. package/dist/web-components-library/p-2010d544.entry.js +2 -0
  943. package/dist/web-components-library/p-2010d544.entry.js.map +1 -0
  944. package/dist/web-components-library/p-2395b965.entry.js +2 -0
  945. package/dist/web-components-library/p-2395b965.entry.js.map +1 -0
  946. package/dist/web-components-library/p-25a85aec.js +2 -0
  947. package/dist/web-components-library/p-25a85aec.js.map +1 -0
  948. package/dist/web-components-library/p-2c886e8b.js.map +1 -1
  949. package/dist/web-components-library/p-2ed68ac5.entry.js +2 -0
  950. package/dist/web-components-library/p-2ed68ac5.entry.js.map +1 -0
  951. package/dist/web-components-library/p-36189235.entry.js +2 -0
  952. package/dist/web-components-library/p-36189235.entry.js.map +1 -0
  953. package/dist/web-components-library/p-37f05eab.entry.js +2 -0
  954. package/dist/web-components-library/p-37f05eab.entry.js.map +1 -0
  955. package/dist/web-components-library/p-39aeb320.entry.js +2 -0
  956. package/dist/web-components-library/p-39aeb320.entry.js.map +1 -0
  957. package/dist/web-components-library/p-4170f99b.entry.js +2 -0
  958. package/dist/web-components-library/p-4170f99b.entry.js.map +1 -0
  959. package/dist/web-components-library/p-493c652a.entry.js +2 -0
  960. package/dist/web-components-library/p-493c652a.entry.js.map +1 -0
  961. package/dist/web-components-library/p-49a35cf0.js.map +1 -1
  962. package/dist/web-components-library/p-4c70b69e.entry.js +2 -0
  963. package/dist/web-components-library/p-4c70b69e.entry.js.map +1 -0
  964. package/dist/web-components-library/p-54b0b04e.js.map +1 -1
  965. package/dist/web-components-library/p-5a2fddef.entry.js +2 -0
  966. package/dist/web-components-library/p-5a2fddef.entry.js.map +1 -0
  967. package/dist/web-components-library/p-5cf2fb58.js +2 -0
  968. package/dist/web-components-library/p-5cf2fb58.js.map +1 -0
  969. package/dist/web-components-library/p-5e734fd3.entry.js +2 -0
  970. package/dist/web-components-library/p-5e734fd3.entry.js.map +1 -0
  971. package/dist/web-components-library/p-5e9b3793.entry.js +2 -0
  972. package/dist/web-components-library/p-5e9b3793.entry.js.map +1 -0
  973. package/dist/web-components-library/p-62598750.entry.js +2 -0
  974. package/dist/web-components-library/p-62598750.entry.js.map +1 -0
  975. package/dist/web-components-library/p-67d49495.entry.js +2 -0
  976. package/dist/web-components-library/p-67d49495.entry.js.map +1 -0
  977. package/dist/web-components-library/p-680ee955.entry.js +2 -0
  978. package/dist/web-components-library/p-680ee955.entry.js.map +1 -0
  979. package/dist/web-components-library/p-70914d67.entry.js +2 -0
  980. package/dist/web-components-library/p-70914d67.entry.js.map +1 -0
  981. package/dist/web-components-library/p-737293b2.js +2 -0
  982. package/dist/web-components-library/p-737293b2.js.map +1 -0
  983. package/dist/web-components-library/p-7cba8558.entry.js +2 -0
  984. package/dist/web-components-library/p-7cba8558.entry.js.map +1 -0
  985. package/dist/web-components-library/p-7ce64686.entry.js +2 -0
  986. package/dist/web-components-library/p-7ce64686.entry.js.map +1 -0
  987. package/dist/web-components-library/p-7da88300.entry.js +2 -0
  988. package/dist/web-components-library/p-7da88300.entry.js.map +1 -0
  989. package/dist/web-components-library/p-810433b1.entry.js +2 -0
  990. package/dist/web-components-library/p-810433b1.entry.js.map +1 -0
  991. package/dist/web-components-library/p-8164f039.entry.js +2 -0
  992. package/dist/web-components-library/p-8164f039.entry.js.map +1 -0
  993. package/dist/web-components-library/p-82b845c3.entry.js +2 -0
  994. package/dist/web-components-library/p-82b845c3.entry.js.map +1 -0
  995. package/dist/web-components-library/p-82e3760c.entry.js +2 -0
  996. package/dist/web-components-library/p-82e3760c.entry.js.map +1 -0
  997. package/dist/web-components-library/p-85930223.entry.js +2 -0
  998. package/dist/web-components-library/p-85930223.entry.js.map +1 -0
  999. package/dist/web-components-library/p-89c1d12d.entry.js +2 -0
  1000. package/dist/web-components-library/p-89c1d12d.entry.js.map +1 -0
  1001. package/dist/web-components-library/p-8cedb801.entry.js +2 -0
  1002. package/dist/web-components-library/p-8cedb801.entry.js.map +1 -0
  1003. package/dist/web-components-library/p-93d39e70.entry.js +2 -0
  1004. package/dist/web-components-library/p-93d39e70.entry.js.map +1 -0
  1005. package/dist/web-components-library/p-955da62e.js.map +1 -1
  1006. package/dist/web-components-library/p-965094e0.entry.js +2 -0
  1007. package/dist/web-components-library/p-965094e0.entry.js.map +1 -0
  1008. package/dist/web-components-library/p-96584abb.entry.js +2 -0
  1009. package/dist/web-components-library/p-96584abb.entry.js.map +1 -0
  1010. package/dist/web-components-library/p-9c50d9cc.entry.js +2 -0
  1011. package/dist/web-components-library/p-9c50d9cc.entry.js.map +1 -0
  1012. package/dist/web-components-library/p-9dc8cdd2.entry.js +17 -0
  1013. package/dist/web-components-library/p-9dc8cdd2.entry.js.map +1 -0
  1014. package/dist/web-components-library/p-9dd4a4a5.entry.js +2 -0
  1015. package/dist/web-components-library/p-9dd4a4a5.entry.js.map +1 -0
  1016. package/dist/web-components-library/p-a0893037.entry.js +2 -0
  1017. package/dist/web-components-library/p-a0893037.entry.js.map +1 -0
  1018. package/dist/web-components-library/p-a11e1d48.entry.js +2 -0
  1019. package/dist/web-components-library/p-a11e1d48.entry.js.map +1 -0
  1020. package/dist/web-components-library/p-a789b863.entry.js +2 -0
  1021. package/dist/web-components-library/p-a789b863.entry.js.map +1 -0
  1022. package/dist/web-components-library/p-a8265231.entry.js +2 -0
  1023. package/dist/web-components-library/p-a8265231.entry.js.map +1 -0
  1024. package/dist/web-components-library/p-b064878a.entry.js +2 -0
  1025. package/dist/web-components-library/p-b064878a.entry.js.map +1 -0
  1026. package/dist/web-components-library/p-b6d2f646.entry.js +2 -0
  1027. package/dist/web-components-library/p-b6d2f646.entry.js.map +1 -0
  1028. package/dist/web-components-library/p-b72193fc.entry.js +2 -0
  1029. package/dist/web-components-library/p-b72193fc.entry.js.map +1 -0
  1030. package/dist/web-components-library/p-b741a768.entry.js +2 -0
  1031. package/dist/web-components-library/p-b741a768.entry.js.map +1 -0
  1032. package/dist/web-components-library/p-b9078348.js +2 -0
  1033. package/dist/web-components-library/p-b9078348.js.map +1 -0
  1034. package/dist/web-components-library/p-bc552513.entry.js +2 -0
  1035. package/dist/web-components-library/p-bc552513.entry.js.map +1 -0
  1036. package/dist/web-components-library/p-bf7c05a8.entry.js +2 -0
  1037. package/dist/web-components-library/p-bf7c05a8.entry.js.map +1 -0
  1038. package/dist/web-components-library/p-bfb58cca.entry.js +2 -0
  1039. package/dist/web-components-library/p-bfb58cca.entry.js.map +1 -0
  1040. package/dist/web-components-library/p-c5127319.entry.js +2 -0
  1041. package/dist/web-components-library/p-c5127319.entry.js.map +1 -0
  1042. package/dist/web-components-library/p-cc3c02fe.js +3 -0
  1043. package/dist/web-components-library/p-cc3c02fe.js.map +1 -0
  1044. package/dist/web-components-library/p-d22d5fcb.entry.js +2 -0
  1045. package/dist/web-components-library/p-d22d5fcb.entry.js.map +1 -0
  1046. package/dist/web-components-library/p-d594caea.entry.js +2 -0
  1047. package/dist/web-components-library/p-d594caea.entry.js.map +1 -0
  1048. package/dist/web-components-library/p-d73386ae.entry.js +2 -0
  1049. package/dist/web-components-library/p-d73386ae.entry.js.map +1 -0
  1050. package/dist/web-components-library/p-d8413391.entry.js +2 -0
  1051. package/dist/web-components-library/p-d8413391.entry.js.map +1 -0
  1052. package/dist/web-components-library/p-dde9f76d.entry.js +2 -0
  1053. package/dist/web-components-library/p-dde9f76d.entry.js.map +1 -0
  1054. package/dist/web-components-library/p-e1255160.js +2 -0
  1055. package/dist/web-components-library/p-e1255160.js.map +1 -0
  1056. package/dist/web-components-library/p-e43b10db.entry.js +2 -0
  1057. package/dist/web-components-library/p-e43b10db.entry.js.map +1 -0
  1058. package/dist/web-components-library/p-eac17dfe.entry.js +2 -0
  1059. package/dist/web-components-library/p-eac17dfe.entry.js.map +1 -0
  1060. package/dist/web-components-library/p-ee290d4c.entry.js +2 -0
  1061. package/dist/web-components-library/p-ee290d4c.entry.js.map +1 -0
  1062. package/dist/web-components-library/p-f12d9a47.entry.js +2 -0
  1063. package/dist/web-components-library/p-f12d9a47.entry.js.map +1 -0
  1064. package/dist/web-components-library/p-f393de28.entry.js +2 -0
  1065. package/dist/web-components-library/p-f393de28.entry.js.map +1 -0
  1066. package/dist/web-components-library/p-f625d532.entry.js +2 -0
  1067. package/dist/web-components-library/p-f625d532.entry.js.map +1 -0
  1068. package/dist/web-components-library/p-f6b886ab.entry.js +2 -0
  1069. package/dist/web-components-library/p-f6b886ab.entry.js.map +1 -0
  1070. package/dist/web-components-library/p-f7180c65.entry.js +2 -0
  1071. package/dist/web-components-library/p-f7180c65.entry.js.map +1 -0
  1072. package/dist/web-components-library/p-f978d22d.entry.js +2 -0
  1073. package/dist/web-components-library/p-f978d22d.entry.js.map +1 -0
  1074. package/dist/web-components-library/p-fbad70dd.entry.js +2 -0
  1075. package/dist/web-components-library/p-fbad70dd.entry.js.map +1 -0
  1076. package/dist/web-components-library/p-fdd176e2.entry.js +2 -0
  1077. package/dist/web-components-library/p-fdd176e2.entry.js.map +1 -0
  1078. package/dist/web-components-library/p-feca4075.js +2 -0
  1079. package/dist/web-components-library/p-feca4075.js.map +1 -0
  1080. package/dist/web-components-library/web-components-library.esm.js +1 -1
  1081. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  1082. package/loader/cdn.js +1 -3
  1083. package/loader/index.cjs.js +1 -3
  1084. package/loader/index.es2017.js +1 -3
  1085. package/loader/index.js +1 -3
  1086. package/package.json +37 -34
  1087. package/react/components.js +80 -80
  1088. package/react/components.js.map +1 -1
  1089. package/react/index.js +5 -1
  1090. package/react/index.js.map +1 -1
  1091. package/react/react-component-lib/createComponent.d.ts +1 -1
  1092. package/react/react-component-lib/createComponent.js +12 -8
  1093. package/react/react-component-lib/createComponent.js.map +1 -1
  1094. package/react/react-component-lib/createOverlayComponent.js +6 -6
  1095. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  1096. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  1097. package/react/react-component-lib/utils/attachProps.js +5 -5
  1098. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  1099. package/react/react-component-lib/utils/dev.js +1 -1
  1100. package/react/react-component-lib/utils/dev.js.map +1 -1
  1101. package/react/react-component-lib/utils/index.d.ts +3 -3
  1102. package/react/react-component-lib/utils/index.js +6 -2
  1103. package/react/react-component-lib/utils/index.js.map +1 -1
  1104. package/readme.md +8 -7
  1105. package/www/build/index.esm.js.map +1 -1
  1106. package/www/build/p-025f494e.js.map +1 -1
  1107. package/www/build/p-060725ef.entry.js +2 -0
  1108. package/www/build/p-060725ef.entry.js.map +1 -0
  1109. package/www/build/p-0c2fdbe5.entry.js +2 -0
  1110. package/www/build/p-0c2fdbe5.entry.js.map +1 -0
  1111. package/www/build/p-17d072c7.entry.js +2 -0
  1112. package/www/build/p-17d072c7.entry.js.map +1 -0
  1113. package/www/build/p-1c5d8cac.js +2 -0
  1114. package/www/build/p-1c5d8cac.js.map +1 -0
  1115. package/www/build/p-2010d544.entry.js +2 -0
  1116. package/www/build/p-2010d544.entry.js.map +1 -0
  1117. package/www/build/p-2395b965.entry.js +2 -0
  1118. package/www/build/p-2395b965.entry.js.map +1 -0
  1119. package/www/build/p-25a85aec.js +2 -0
  1120. package/www/build/p-25a85aec.js.map +1 -0
  1121. package/www/build/p-2c886e8b.js.map +1 -1
  1122. package/www/build/p-2ed68ac5.entry.js +2 -0
  1123. package/www/build/p-2ed68ac5.entry.js.map +1 -0
  1124. package/www/build/p-36189235.entry.js +2 -0
  1125. package/www/build/p-36189235.entry.js.map +1 -0
  1126. package/www/build/p-37f05eab.entry.js +2 -0
  1127. package/www/build/p-37f05eab.entry.js.map +1 -0
  1128. package/www/build/p-39aeb320.entry.js +2 -0
  1129. package/www/build/p-39aeb320.entry.js.map +1 -0
  1130. package/www/build/p-4170f99b.entry.js +2 -0
  1131. package/www/build/p-4170f99b.entry.js.map +1 -0
  1132. package/www/build/p-493c652a.entry.js +2 -0
  1133. package/www/build/p-493c652a.entry.js.map +1 -0
  1134. package/www/build/p-49a35cf0.js.map +1 -1
  1135. package/www/build/p-4c70b69e.entry.js +2 -0
  1136. package/www/build/p-4c70b69e.entry.js.map +1 -0
  1137. package/www/build/p-54b0b04e.js.map +1 -1
  1138. package/www/build/p-5a2fddef.entry.js +2 -0
  1139. package/www/build/p-5a2fddef.entry.js.map +1 -0
  1140. package/www/build/p-5cf2fb58.js +2 -0
  1141. package/www/build/p-5cf2fb58.js.map +1 -0
  1142. package/www/build/p-5e734fd3.entry.js +2 -0
  1143. package/www/build/p-5e734fd3.entry.js.map +1 -0
  1144. package/www/build/p-5e9b3793.entry.js +2 -0
  1145. package/www/build/p-5e9b3793.entry.js.map +1 -0
  1146. package/www/build/p-62598750.entry.js +2 -0
  1147. package/www/build/p-62598750.entry.js.map +1 -0
  1148. package/www/build/p-67d49495.entry.js +2 -0
  1149. package/www/build/p-67d49495.entry.js.map +1 -0
  1150. package/www/build/p-680ee955.entry.js +2 -0
  1151. package/www/build/p-680ee955.entry.js.map +1 -0
  1152. package/www/build/p-70914d67.entry.js +2 -0
  1153. package/www/build/p-70914d67.entry.js.map +1 -0
  1154. package/www/build/p-737293b2.js +2 -0
  1155. package/www/build/p-737293b2.js.map +1 -0
  1156. package/www/build/p-7cba8558.entry.js +2 -0
  1157. package/www/build/p-7cba8558.entry.js.map +1 -0
  1158. package/www/build/p-7ce64686.entry.js +2 -0
  1159. package/www/build/p-7ce64686.entry.js.map +1 -0
  1160. package/www/build/p-7da88300.entry.js +2 -0
  1161. package/www/build/p-7da88300.entry.js.map +1 -0
  1162. package/www/build/p-810433b1.entry.js +2 -0
  1163. package/www/build/p-810433b1.entry.js.map +1 -0
  1164. package/www/build/p-8164f039.entry.js +2 -0
  1165. package/www/build/p-8164f039.entry.js.map +1 -0
  1166. package/www/build/p-82b845c3.entry.js +2 -0
  1167. package/www/build/p-82b845c3.entry.js.map +1 -0
  1168. package/www/build/p-82e3760c.entry.js +2 -0
  1169. package/www/build/p-82e3760c.entry.js.map +1 -0
  1170. package/www/build/p-85930223.entry.js +2 -0
  1171. package/www/build/p-85930223.entry.js.map +1 -0
  1172. package/www/build/p-89c1d12d.entry.js +2 -0
  1173. package/www/build/p-89c1d12d.entry.js.map +1 -0
  1174. package/www/build/p-8cedb801.entry.js +2 -0
  1175. package/www/build/p-8cedb801.entry.js.map +1 -0
  1176. package/www/build/p-93d39e70.entry.js +2 -0
  1177. package/www/build/p-93d39e70.entry.js.map +1 -0
  1178. package/www/build/p-955da62e.js.map +1 -1
  1179. package/www/build/p-965094e0.entry.js +2 -0
  1180. package/www/build/p-965094e0.entry.js.map +1 -0
  1181. package/www/build/p-96584abb.entry.js +2 -0
  1182. package/www/build/p-96584abb.entry.js.map +1 -0
  1183. package/www/build/p-9c50d9cc.entry.js +2 -0
  1184. package/www/build/p-9c50d9cc.entry.js.map +1 -0
  1185. package/www/build/p-9dc8cdd2.entry.js +17 -0
  1186. package/www/build/p-9dc8cdd2.entry.js.map +1 -0
  1187. package/www/build/p-9dd4a4a5.entry.js +2 -0
  1188. package/www/build/p-9dd4a4a5.entry.js.map +1 -0
  1189. package/www/build/p-a0893037.entry.js +2 -0
  1190. package/www/build/p-a0893037.entry.js.map +1 -0
  1191. package/www/build/p-a11e1d48.entry.js +2 -0
  1192. package/www/build/p-a11e1d48.entry.js.map +1 -0
  1193. package/www/build/p-a789b863.entry.js +2 -0
  1194. package/www/build/p-a789b863.entry.js.map +1 -0
  1195. package/www/build/p-a8265231.entry.js +2 -0
  1196. package/www/build/p-a8265231.entry.js.map +1 -0
  1197. package/www/build/p-b064878a.entry.js +2 -0
  1198. package/www/build/p-b064878a.entry.js.map +1 -0
  1199. package/www/build/p-b6d2f646.entry.js +2 -0
  1200. package/www/build/p-b6d2f646.entry.js.map +1 -0
  1201. package/www/build/p-b72193fc.entry.js +2 -0
  1202. package/www/build/p-b72193fc.entry.js.map +1 -0
  1203. package/www/build/p-b741a768.entry.js +2 -0
  1204. package/www/build/p-b741a768.entry.js.map +1 -0
  1205. package/www/build/p-b9078348.js +2 -0
  1206. package/www/build/p-b9078348.js.map +1 -0
  1207. package/www/build/p-bc552513.entry.js +2 -0
  1208. package/www/build/p-bc552513.entry.js.map +1 -0
  1209. package/www/build/p-bf7c05a8.entry.js +2 -0
  1210. package/www/build/p-bf7c05a8.entry.js.map +1 -0
  1211. package/www/build/p-bfb58cca.entry.js +2 -0
  1212. package/www/build/p-bfb58cca.entry.js.map +1 -0
  1213. package/www/build/p-c5127319.entry.js +2 -0
  1214. package/www/build/p-c5127319.entry.js.map +1 -0
  1215. package/www/build/p-cc3c02fe.js +3 -0
  1216. package/www/build/p-cc3c02fe.js.map +1 -0
  1217. package/www/build/p-d22d5fcb.entry.js +2 -0
  1218. package/www/build/p-d22d5fcb.entry.js.map +1 -0
  1219. package/www/build/p-d594caea.entry.js +2 -0
  1220. package/www/build/p-d594caea.entry.js.map +1 -0
  1221. package/www/build/p-d73386ae.entry.js +2 -0
  1222. package/www/build/p-d73386ae.entry.js.map +1 -0
  1223. package/www/build/p-d8413391.entry.js +2 -0
  1224. package/www/build/p-d8413391.entry.js.map +1 -0
  1225. package/www/build/p-d97a3b56.js +2 -0
  1226. package/www/build/p-dde9f76d.entry.js +2 -0
  1227. package/www/build/p-dde9f76d.entry.js.map +1 -0
  1228. package/www/build/p-e1255160.js +2 -0
  1229. package/www/build/p-e1255160.js.map +1 -0
  1230. package/www/build/p-e43b10db.entry.js +2 -0
  1231. package/www/build/p-e43b10db.entry.js.map +1 -0
  1232. package/www/build/p-eac17dfe.entry.js +2 -0
  1233. package/www/build/p-eac17dfe.entry.js.map +1 -0
  1234. package/www/build/p-ee290d4c.entry.js +2 -0
  1235. package/www/build/p-ee290d4c.entry.js.map +1 -0
  1236. package/www/build/p-f12d9a47.entry.js +2 -0
  1237. package/www/build/p-f12d9a47.entry.js.map +1 -0
  1238. package/www/build/p-f393de28.entry.js +2 -0
  1239. package/www/build/p-f393de28.entry.js.map +1 -0
  1240. package/www/build/p-f625d532.entry.js +2 -0
  1241. package/www/build/p-f625d532.entry.js.map +1 -0
  1242. package/www/build/p-f6b886ab.entry.js +2 -0
  1243. package/www/build/p-f6b886ab.entry.js.map +1 -0
  1244. package/www/build/p-f7180c65.entry.js +2 -0
  1245. package/www/build/p-f7180c65.entry.js.map +1 -0
  1246. package/www/build/p-f978d22d.entry.js +2 -0
  1247. package/www/build/p-f978d22d.entry.js.map +1 -0
  1248. package/www/build/p-fbad70dd.entry.js +2 -0
  1249. package/www/build/p-fbad70dd.entry.js.map +1 -0
  1250. package/www/build/p-fdd176e2.entry.js +2 -0
  1251. package/www/build/p-fdd176e2.entry.js.map +1 -0
  1252. package/www/build/p-feca4075.js +2 -0
  1253. package/www/build/p-feca4075.js.map +1 -0
  1254. package/www/build/web-components-library.esm.js +1 -1
  1255. package/www/build/web-components-library.esm.js.map +1 -1
  1256. package/www/index.html +1 -1
  1257. package/www/pages/book-cards.html +1 -1
  1258. package/www/pages/file-upload.html +1 -1
  1259. package/www/pages/notification.html +1 -1
  1260. package/dist/cjs/index-178a9413.js +0 -20
  1261. package/dist/cjs/index-178a9413.js.map +0 -1
  1262. package/dist/cjs/index-3836ecee.js +0 -46
  1263. package/dist/cjs/index-3836ecee.js.map +0 -1
  1264. package/dist/cjs/index-79559e1d.js +0 -21
  1265. package/dist/cjs/index-79559e1d.js.map +0 -1
  1266. package/dist/cjs/index-7c62141b.js +0 -59
  1267. package/dist/cjs/index-7c62141b.js.map +0 -1
  1268. package/dist/cjs/index-8eae84b7.js +0 -21
  1269. package/dist/cjs/index-8eae84b7.js.map +0 -1
  1270. package/dist/cjs/index-dc60bee7.js +0 -3140
  1271. package/dist/cjs/index-dc60bee7.js.map +0 -1
  1272. package/dist/cjs/index-e5ff8fd3.js +0 -65
  1273. package/dist/cjs/index-e5ff8fd3.js.map +0 -1
  1274. package/dist/collection/components/buttons/z-button/index.js +0 -268
  1275. package/dist/collection/components/buttons/z-button/index.js.map +0 -1
  1276. package/dist/collection/components/buttons/z-button/index.spec.js +0 -101
  1277. package/dist/collection/components/buttons/z-button/index.spec.js.map +0 -1
  1278. package/dist/collection/components/buttons/z-button-sort/index.js +0 -221
  1279. package/dist/collection/components/buttons/z-button-sort/index.js.map +0 -1
  1280. package/dist/collection/components/buttons/z-button-sort/index.spec.js.map +0 -1
  1281. package/dist/collection/components/buttons/z-button-sort/test.e2e.js.map +0 -1
  1282. package/dist/collection/components/buttons/z-chip/index.js +0 -148
  1283. package/dist/collection/components/buttons/z-chip/index.js.map +0 -1
  1284. package/dist/collection/components/buttons/z-chip/index.spec.js.map +0 -1
  1285. package/dist/collection/components/buttons/z-toggle-button/index.js +0 -146
  1286. package/dist/collection/components/buttons/z-toggle-button/index.js.map +0 -1
  1287. package/dist/collection/components/buttons/z-toggle-button/index.spec.js.map +0 -1
  1288. package/dist/collection/components/buttons/z-toggle-switch/index.js +0 -147
  1289. package/dist/collection/components/buttons/z-toggle-switch/index.js.map +0 -1
  1290. package/dist/collection/components/buttons/z-toggle-switch/index.spec.js.map +0 -1
  1291. package/dist/collection/components/icons/icons.js +0 -873
  1292. package/dist/collection/components/icons/icons.js.map +0 -1
  1293. package/dist/collection/components/icons/z-icon/index.js +0 -122
  1294. package/dist/collection/components/icons/z-icon/index.js.map +0 -1
  1295. package/dist/collection/components/icons/z-icon/index.spec.js +0 -96
  1296. package/dist/collection/components/icons/z-icon/index.spec.js.map +0 -1
  1297. package/dist/collection/components/indicators/z-stepper/index.js +0 -22
  1298. package/dist/collection/components/indicators/z-stepper/index.js.map +0 -1
  1299. package/dist/collection/components/indicators/z-stepper/index.spec.js.map +0 -1
  1300. package/dist/collection/components/indicators/z-stepper-item/index.js +0 -122
  1301. package/dist/collection/components/indicators/z-stepper-item/index.js.map +0 -1
  1302. package/dist/collection/components/indicators/z-stepper-item/index.spec.js.map +0 -1
  1303. package/dist/collection/components/inputs/z-combobox/index.js +0 -643
  1304. package/dist/collection/components/inputs/z-combobox/index.js.map +0 -1
  1305. package/dist/collection/components/inputs/z-combobox/index.spec.js.map +0 -1
  1306. package/dist/collection/components/inputs/z-input/index.js +0 -957
  1307. package/dist/collection/components/inputs/z-input/index.js.map +0 -1
  1308. package/dist/collection/components/inputs/z-input/styles.css +0 -397
  1309. package/dist/collection/components/inputs/z-input/test-checkbox.spec.js.map +0 -1
  1310. package/dist/collection/components/inputs/z-input/test-methods.spec.js +0 -13
  1311. package/dist/collection/components/inputs/z-input/test-methods.spec.js.map +0 -1
  1312. package/dist/collection/components/inputs/z-input/test-radio.spec.js.map +0 -1
  1313. package/dist/collection/components/inputs/z-input/test-text.spec.js +0 -347
  1314. package/dist/collection/components/inputs/z-input/test-text.spec.js.map +0 -1
  1315. package/dist/collection/components/inputs/z-input/test-textarea.spec.js.map +0 -1
  1316. package/dist/collection/components/inputs/z-input/test.e2e.js +0 -180
  1317. package/dist/collection/components/inputs/z-input/test.e2e.js.map +0 -1
  1318. package/dist/collection/components/inputs/z-input-message/index.js +0 -93
  1319. package/dist/collection/components/inputs/z-input-message/index.js.map +0 -1
  1320. package/dist/collection/components/inputs/z-input-message/index.spec.js.map +0 -1
  1321. package/dist/collection/components/inputs/z-searchbar/index.js +0 -616
  1322. package/dist/collection/components/inputs/z-searchbar/index.js.map +0 -1
  1323. package/dist/collection/components/inputs/z-searchbar/index.spec.js.map +0 -1
  1324. package/dist/collection/components/inputs/z-select/index.js +0 -778
  1325. package/dist/collection/components/inputs/z-select/index.js.map +0 -1
  1326. package/dist/collection/components/inputs/z-select/index.spec.js.map +0 -1
  1327. package/dist/collection/components/list/z-toast-notification-list/index.js +0 -107
  1328. package/dist/collection/components/list/z-toast-notification-list/index.js.map +0 -1
  1329. package/dist/collection/components/list/z-toast-notification-list/index.spec.js.map +0 -1
  1330. package/dist/collection/components/list/z-toast-notification-list/test.e2e.js.map +0 -1
  1331. package/dist/collection/components/logo/z-logo/index.js +0 -140
  1332. package/dist/collection/components/logo/z-logo/index.js.map +0 -1
  1333. package/dist/collection/components/logo/z-logo/index.spec.js.map +0 -1
  1334. package/dist/collection/components/logo/z-logo/test.e2e.js.map +0 -1
  1335. package/dist/collection/components/modal/z-modal/index.js +0 -357
  1336. package/dist/collection/components/modal/z-modal/index.js.map +0 -1
  1337. package/dist/collection/components/modal/z-modal/index.spec.js.map +0 -1
  1338. package/dist/collection/components/navigation/z-app-header/index.js +0 -420
  1339. package/dist/collection/components/navigation/z-app-header/index.js.map +0 -1
  1340. package/dist/collection/components/navigation/z-app-header/index.spec.js.map +0 -1
  1341. package/dist/collection/components/navigation/z-app-header/index.stories.js +0 -393
  1342. package/dist/collection/components/navigation/z-menu/index.js +0 -244
  1343. package/dist/collection/components/navigation/z-menu/index.js.map +0 -1
  1344. package/dist/collection/components/navigation/z-menu/index.spec.js.map +0 -1
  1345. package/dist/collection/components/navigation/z-menu-section/index.js +0 -131
  1346. package/dist/collection/components/navigation/z-menu-section/index.js.map +0 -1
  1347. package/dist/collection/components/navigation/z-menu-section/index.spec.js.map +0 -1
  1348. package/dist/collection/components/navigation/z-navigation-tabs/index.js +0 -373
  1349. package/dist/collection/components/navigation/z-navigation-tabs/index.js.map +0 -1
  1350. package/dist/collection/components/navigation/z-navigation-tabs/index.stories.js +0 -12
  1351. package/dist/collection/components/notification/z-info-box/index.js +0 -86
  1352. package/dist/collection/components/notification/z-info-box/index.js.map +0 -1
  1353. package/dist/collection/components/notification/z-info-box/index.spec.js.map +0 -1
  1354. package/dist/collection/components/notification/z-notification/index.js +0 -194
  1355. package/dist/collection/components/notification/z-notification/index.js.map +0 -1
  1356. package/dist/collection/components/notification/z-notification/index.spec.js.map +0 -1
  1357. package/dist/collection/components/notification/z-notification/test.e2e.js.map +0 -1
  1358. package/dist/collection/components/notification/z-toast-notification/index.js +0 -406
  1359. package/dist/collection/components/notification/z-toast-notification/index.js.map +0 -1
  1360. package/dist/collection/components/notification/z-toast-notification/index.spec.js.map +0 -1
  1361. package/dist/collection/components/notification/z-tooltip/index.js +0 -151
  1362. package/dist/collection/components/notification/z-tooltip/index.js.map +0 -1
  1363. package/dist/collection/components/panel/z-panel-elem/index.js +0 -197
  1364. package/dist/collection/components/panel/z-panel-elem/index.js.map +0 -1
  1365. package/dist/collection/components/panel/z-panel-elem/index.spec.js.map +0 -1
  1366. package/dist/components/icons.js +0 -876
  1367. package/dist/components/icons.js.map +0 -1
  1368. package/dist/esm/index-076dde65.js +0 -18
  1369. package/dist/esm/index-076dde65.js.map +0 -1
  1370. package/dist/esm/index-14aee9cb.js +0 -57
  1371. package/dist/esm/index-14aee9cb.js.map +0 -1
  1372. package/dist/esm/index-2d440333.js +0 -19
  1373. package/dist/esm/index-2d440333.js.map +0 -1
  1374. package/dist/esm/index-2ee978fb.js +0 -19
  1375. package/dist/esm/index-2ee978fb.js.map +0 -1
  1376. package/dist/esm/index-8db8e65f.js +0 -63
  1377. package/dist/esm/index-8db8e65f.js.map +0 -1
  1378. package/dist/esm/index-a3d19e3a.js +0 -44
  1379. package/dist/esm/index-a3d19e3a.js.map +0 -1
  1380. package/dist/esm/index-f16bc2ca.js +0 -3110
  1381. package/dist/esm/index-f16bc2ca.js.map +0 -1
  1382. package/dist/esm/polyfills/core-js.js +0 -11
  1383. package/dist/esm/polyfills/dom.js +0 -79
  1384. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1385. package/dist/esm/polyfills/index.js +0 -34
  1386. package/dist/esm/polyfills/system.js +0 -6
  1387. package/dist/types/components/buttons/z-button/index.d.ts +0 -31
  1388. package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -28
  1389. package/dist/types/components/buttons/z-chip/index.d.ts +0 -18
  1390. package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -17
  1391. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -17
  1392. package/dist/types/components/icons/icons.d.ts +0 -1577
  1393. package/dist/types/components/indicators/z-stepper/index.d.ts +0 -6
  1394. package/dist/types/components/inputs/z-combobox/index.d.ts +0 -84
  1395. package/dist/types/components/inputs/z-input/index.d.ts +0 -110
  1396. package/dist/types/components/inputs/z-input-message/index.d.ts +0 -12
  1397. package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -80
  1398. package/dist/types/components/inputs/z-select/index.d.ts +0 -84
  1399. package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -14
  1400. package/dist/types/components/modal/z-modal/index.d.ts +0 -49
  1401. package/dist/types/components/navigation/z-app-header/index.d.ts +0 -149
  1402. package/dist/types/components/navigation/z-menu/index.d.ts +0 -61
  1403. package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -31
  1404. package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +0 -114
  1405. package/dist/types/components/notification/z-info-box/index.d.ts +0 -14
  1406. package/dist/types/components/notification/z-notification/index.d.ts +0 -32
  1407. package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -56
  1408. package/dist/types/components/notification/z-tooltip/index.d.ts +0 -32
  1409. package/dist/web-components-library/p-05849d8d.entry.js +0 -2
  1410. package/dist/web-components-library/p-05849d8d.entry.js.map +0 -1
  1411. package/dist/web-components-library/p-10589629.entry.js +0 -2
  1412. package/dist/web-components-library/p-10589629.entry.js.map +0 -1
  1413. package/dist/web-components-library/p-10bb4f4b.js +0 -3
  1414. package/dist/web-components-library/p-10bb4f4b.js.map +0 -1
  1415. package/dist/web-components-library/p-118241ec.entry.js +0 -2
  1416. package/dist/web-components-library/p-118241ec.entry.js.map +0 -1
  1417. package/dist/web-components-library/p-11b26c59.entry.js +0 -2
  1418. package/dist/web-components-library/p-11b26c59.entry.js.map +0 -1
  1419. package/dist/web-components-library/p-12d181f4.entry.js +0 -2
  1420. package/dist/web-components-library/p-12d181f4.entry.js.map +0 -1
  1421. package/dist/web-components-library/p-13e18838.entry.js +0 -2
  1422. package/dist/web-components-library/p-13e18838.entry.js.map +0 -1
  1423. package/dist/web-components-library/p-1b870733.entry.js +0 -2
  1424. package/dist/web-components-library/p-1b870733.entry.js.map +0 -1
  1425. package/dist/web-components-library/p-217291fe.entry.js +0 -2
  1426. package/dist/web-components-library/p-217291fe.entry.js.map +0 -1
  1427. package/dist/web-components-library/p-27b0663c.entry.js +0 -2
  1428. package/dist/web-components-library/p-27b0663c.entry.js.map +0 -1
  1429. package/dist/web-components-library/p-2c05849f.entry.js +0 -2
  1430. package/dist/web-components-library/p-2c05849f.entry.js.map +0 -1
  1431. package/dist/web-components-library/p-2c1cbcf2.entry.js +0 -2
  1432. package/dist/web-components-library/p-2c1cbcf2.entry.js.map +0 -1
  1433. package/dist/web-components-library/p-2df79d5c.entry.js +0 -2
  1434. package/dist/web-components-library/p-2df79d5c.entry.js.map +0 -1
  1435. package/dist/web-components-library/p-2ebf9e17.js +0 -2
  1436. package/dist/web-components-library/p-2ebf9e17.js.map +0 -1
  1437. package/dist/web-components-library/p-2f2f460a.entry.js +0 -2
  1438. package/dist/web-components-library/p-2f2f460a.entry.js.map +0 -1
  1439. package/dist/web-components-library/p-3092c82f.entry.js +0 -2
  1440. package/dist/web-components-library/p-3092c82f.entry.js.map +0 -1
  1441. package/dist/web-components-library/p-3ba8b8e1.entry.js +0 -2
  1442. package/dist/web-components-library/p-3ba8b8e1.entry.js.map +0 -1
  1443. package/dist/web-components-library/p-3bae6330.entry.js +0 -2
  1444. package/dist/web-components-library/p-3bae6330.entry.js.map +0 -1
  1445. package/dist/web-components-library/p-410ec9a2.entry.js +0 -2
  1446. package/dist/web-components-library/p-410ec9a2.entry.js.map +0 -1
  1447. package/dist/web-components-library/p-414c9659.entry.js +0 -2
  1448. package/dist/web-components-library/p-414c9659.entry.js.map +0 -1
  1449. package/dist/web-components-library/p-4574595b.entry.js +0 -2
  1450. package/dist/web-components-library/p-4574595b.entry.js.map +0 -1
  1451. package/dist/web-components-library/p-45d7e54e.entry.js +0 -2
  1452. package/dist/web-components-library/p-45d7e54e.entry.js.map +0 -1
  1453. package/dist/web-components-library/p-48c16e8f.js +0 -2
  1454. package/dist/web-components-library/p-48c16e8f.js.map +0 -1
  1455. package/dist/web-components-library/p-4bc0818d.js +0 -2
  1456. package/dist/web-components-library/p-4bc0818d.js.map +0 -1
  1457. package/dist/web-components-library/p-4d2be9e5.entry.js +0 -2
  1458. package/dist/web-components-library/p-4d2be9e5.entry.js.map +0 -1
  1459. package/dist/web-components-library/p-4d2e328d.entry.js +0 -2
  1460. package/dist/web-components-library/p-4d2e328d.entry.js.map +0 -1
  1461. package/dist/web-components-library/p-4dd8d4e8.entry.js +0 -2
  1462. package/dist/web-components-library/p-4dd8d4e8.entry.js.map +0 -1
  1463. package/dist/web-components-library/p-5441ba83.entry.js +0 -2
  1464. package/dist/web-components-library/p-5441ba83.entry.js.map +0 -1
  1465. package/dist/web-components-library/p-54681ece.entry.js +0 -2
  1466. package/dist/web-components-library/p-54681ece.entry.js.map +0 -1
  1467. package/dist/web-components-library/p-5c50cc2d.entry.js +0 -2
  1468. package/dist/web-components-library/p-5c50cc2d.entry.js.map +0 -1
  1469. package/dist/web-components-library/p-6398da61.js +0 -2
  1470. package/dist/web-components-library/p-6398da61.js.map +0 -1
  1471. package/dist/web-components-library/p-64683cca.entry.js +0 -2
  1472. package/dist/web-components-library/p-64683cca.entry.js.map +0 -1
  1473. package/dist/web-components-library/p-6e8b7c93.entry.js +0 -2
  1474. package/dist/web-components-library/p-6e8b7c93.entry.js.map +0 -1
  1475. package/dist/web-components-library/p-6f023899.entry.js +0 -2
  1476. package/dist/web-components-library/p-6f023899.entry.js.map +0 -1
  1477. package/dist/web-components-library/p-7441b8f8.entry.js +0 -2
  1478. package/dist/web-components-library/p-7441b8f8.entry.js.map +0 -1
  1479. package/dist/web-components-library/p-74b2b9a0.entry.js +0 -2
  1480. package/dist/web-components-library/p-74b2b9a0.entry.js.map +0 -1
  1481. package/dist/web-components-library/p-771a4c2f.entry.js +0 -2
  1482. package/dist/web-components-library/p-771a4c2f.entry.js.map +0 -1
  1483. package/dist/web-components-library/p-7e442c5f.entry.js +0 -2
  1484. package/dist/web-components-library/p-7e442c5f.entry.js.map +0 -1
  1485. package/dist/web-components-library/p-7ef963d4.js +0 -2
  1486. package/dist/web-components-library/p-7ef963d4.js.map +0 -1
  1487. package/dist/web-components-library/p-a2b43ed1.entry.js +0 -2
  1488. package/dist/web-components-library/p-a2b43ed1.entry.js.map +0 -1
  1489. package/dist/web-components-library/p-a402854c.entry.js +0 -2
  1490. package/dist/web-components-library/p-a402854c.entry.js.map +0 -1
  1491. package/dist/web-components-library/p-a6fcefe7.entry.js +0 -2
  1492. package/dist/web-components-library/p-a6fcefe7.entry.js.map +0 -1
  1493. package/dist/web-components-library/p-b0ef19c7.js +0 -2
  1494. package/dist/web-components-library/p-b0ef19c7.js.map +0 -1
  1495. package/dist/web-components-library/p-b4ad044a.entry.js +0 -2
  1496. package/dist/web-components-library/p-b4ad044a.entry.js.map +0 -1
  1497. package/dist/web-components-library/p-b53e9a21.entry.js +0 -2
  1498. package/dist/web-components-library/p-b53e9a21.entry.js.map +0 -1
  1499. package/dist/web-components-library/p-b67887e7.entry.js +0 -2
  1500. package/dist/web-components-library/p-b67887e7.entry.js.map +0 -1
  1501. package/dist/web-components-library/p-b93c49a8.entry.js +0 -2
  1502. package/dist/web-components-library/p-b93c49a8.entry.js.map +0 -1
  1503. package/dist/web-components-library/p-b94b71b8.entry.js +0 -2
  1504. package/dist/web-components-library/p-b94b71b8.entry.js.map +0 -1
  1505. package/dist/web-components-library/p-c19aca30.entry.js +0 -2
  1506. package/dist/web-components-library/p-c19aca30.entry.js.map +0 -1
  1507. package/dist/web-components-library/p-c49ca2a9.entry.js +0 -2
  1508. package/dist/web-components-library/p-c49ca2a9.entry.js.map +0 -1
  1509. package/dist/web-components-library/p-c4e40901.entry.js +0 -2
  1510. package/dist/web-components-library/p-c4e40901.entry.js.map +0 -1
  1511. package/dist/web-components-library/p-d02bc360.entry.js +0 -2
  1512. package/dist/web-components-library/p-d02bc360.entry.js.map +0 -1
  1513. package/dist/web-components-library/p-d8c631d6.entry.js +0 -2
  1514. package/dist/web-components-library/p-d8c631d6.entry.js.map +0 -1
  1515. package/dist/web-components-library/p-d973f170.entry.js +0 -2
  1516. package/dist/web-components-library/p-d973f170.entry.js.map +0 -1
  1517. package/dist/web-components-library/p-d9f3ae73.entry.js +0 -2
  1518. package/dist/web-components-library/p-d9f3ae73.entry.js.map +0 -1
  1519. package/dist/web-components-library/p-dcd73f91.entry.js +0 -2
  1520. package/dist/web-components-library/p-dcd73f91.entry.js.map +0 -1
  1521. package/dist/web-components-library/p-dde6c887.entry.js +0 -2
  1522. package/dist/web-components-library/p-dde6c887.entry.js.map +0 -1
  1523. package/dist/web-components-library/p-e1b99a10.entry.js +0 -2
  1524. package/dist/web-components-library/p-e1b99a10.entry.js.map +0 -1
  1525. package/dist/web-components-library/p-e338f042.entry.js +0 -2
  1526. package/dist/web-components-library/p-e338f042.entry.js.map +0 -1
  1527. package/dist/web-components-library/p-e75ca94d.entry.js +0 -2
  1528. package/dist/web-components-library/p-e75ca94d.entry.js.map +0 -1
  1529. package/dist/web-components-library/p-ed1a5ee3.entry.js +0 -2
  1530. package/dist/web-components-library/p-ed1a5ee3.entry.js.map +0 -1
  1531. package/dist/web-components-library/p-ed65d0d2.entry.js +0 -2
  1532. package/dist/web-components-library/p-ed65d0d2.entry.js.map +0 -1
  1533. package/dist/web-components-library/p-edb8975a.entry.js +0 -2
  1534. package/dist/web-components-library/p-edb8975a.entry.js.map +0 -1
  1535. package/dist/web-components-library/p-ee03249d.entry.js +0 -2
  1536. package/dist/web-components-library/p-ee03249d.entry.js.map +0 -1
  1537. package/dist/web-components-library/p-ef43ca85.entry.js +0 -2
  1538. package/dist/web-components-library/p-ef43ca85.entry.js.map +0 -1
  1539. package/dist/web-components-library/p-f41da106.entry.js +0 -2
  1540. package/dist/web-components-library/p-f41da106.entry.js.map +0 -1
  1541. package/dist/web-components-library/p-f48575f1.entry.js +0 -2
  1542. package/dist/web-components-library/p-f48575f1.entry.js.map +0 -1
  1543. package/dist/web-components-library/p-f9edfd67.entry.js +0 -2
  1544. package/dist/web-components-library/p-f9edfd67.entry.js.map +0 -1
  1545. package/dist/web-components-library/p-fc4bd856.entry.js +0 -17
  1546. package/dist/web-components-library/p-fc4bd856.entry.js.map +0 -1
  1547. package/dist/web-components-library/p-feaee92d.entry.js +0 -2
  1548. package/dist/web-components-library/p-feaee92d.entry.js.map +0 -1
  1549. package/www/build/p-05849d8d.entry.js +0 -2
  1550. package/www/build/p-05849d8d.entry.js.map +0 -1
  1551. package/www/build/p-10589629.entry.js +0 -2
  1552. package/www/build/p-10589629.entry.js.map +0 -1
  1553. package/www/build/p-10bb4f4b.js +0 -3
  1554. package/www/build/p-10bb4f4b.js.map +0 -1
  1555. package/www/build/p-118241ec.entry.js +0 -2
  1556. package/www/build/p-118241ec.entry.js.map +0 -1
  1557. package/www/build/p-11b26c59.entry.js +0 -2
  1558. package/www/build/p-11b26c59.entry.js.map +0 -1
  1559. package/www/build/p-12d181f4.entry.js +0 -2
  1560. package/www/build/p-12d181f4.entry.js.map +0 -1
  1561. package/www/build/p-13e18838.entry.js +0 -2
  1562. package/www/build/p-13e18838.entry.js.map +0 -1
  1563. package/www/build/p-1b870733.entry.js +0 -2
  1564. package/www/build/p-1b870733.entry.js.map +0 -1
  1565. package/www/build/p-217291fe.entry.js +0 -2
  1566. package/www/build/p-217291fe.entry.js.map +0 -1
  1567. package/www/build/p-27b0663c.entry.js +0 -2
  1568. package/www/build/p-27b0663c.entry.js.map +0 -1
  1569. package/www/build/p-2c05849f.entry.js +0 -2
  1570. package/www/build/p-2c05849f.entry.js.map +0 -1
  1571. package/www/build/p-2c1cbcf2.entry.js +0 -2
  1572. package/www/build/p-2c1cbcf2.entry.js.map +0 -1
  1573. package/www/build/p-2df79d5c.entry.js +0 -2
  1574. package/www/build/p-2df79d5c.entry.js.map +0 -1
  1575. package/www/build/p-2ebf9e17.js +0 -2
  1576. package/www/build/p-2ebf9e17.js.map +0 -1
  1577. package/www/build/p-2f2f460a.entry.js +0 -2
  1578. package/www/build/p-2f2f460a.entry.js.map +0 -1
  1579. package/www/build/p-304150c5.js +0 -2
  1580. package/www/build/p-3092c82f.entry.js +0 -2
  1581. package/www/build/p-3092c82f.entry.js.map +0 -1
  1582. package/www/build/p-3ba8b8e1.entry.js +0 -2
  1583. package/www/build/p-3ba8b8e1.entry.js.map +0 -1
  1584. package/www/build/p-3bae6330.entry.js +0 -2
  1585. package/www/build/p-3bae6330.entry.js.map +0 -1
  1586. package/www/build/p-410ec9a2.entry.js +0 -2
  1587. package/www/build/p-410ec9a2.entry.js.map +0 -1
  1588. package/www/build/p-414c9659.entry.js +0 -2
  1589. package/www/build/p-414c9659.entry.js.map +0 -1
  1590. package/www/build/p-4574595b.entry.js +0 -2
  1591. package/www/build/p-4574595b.entry.js.map +0 -1
  1592. package/www/build/p-45d7e54e.entry.js +0 -2
  1593. package/www/build/p-45d7e54e.entry.js.map +0 -1
  1594. package/www/build/p-48c16e8f.js +0 -2
  1595. package/www/build/p-48c16e8f.js.map +0 -1
  1596. package/www/build/p-4bc0818d.js +0 -2
  1597. package/www/build/p-4bc0818d.js.map +0 -1
  1598. package/www/build/p-4d2be9e5.entry.js +0 -2
  1599. package/www/build/p-4d2be9e5.entry.js.map +0 -1
  1600. package/www/build/p-4d2e328d.entry.js +0 -2
  1601. package/www/build/p-4d2e328d.entry.js.map +0 -1
  1602. package/www/build/p-4dd8d4e8.entry.js +0 -2
  1603. package/www/build/p-4dd8d4e8.entry.js.map +0 -1
  1604. package/www/build/p-5441ba83.entry.js +0 -2
  1605. package/www/build/p-5441ba83.entry.js.map +0 -1
  1606. package/www/build/p-54681ece.entry.js +0 -2
  1607. package/www/build/p-54681ece.entry.js.map +0 -1
  1608. package/www/build/p-5c50cc2d.entry.js +0 -2
  1609. package/www/build/p-5c50cc2d.entry.js.map +0 -1
  1610. package/www/build/p-6398da61.js +0 -2
  1611. package/www/build/p-6398da61.js.map +0 -1
  1612. package/www/build/p-64683cca.entry.js +0 -2
  1613. package/www/build/p-64683cca.entry.js.map +0 -1
  1614. package/www/build/p-6e8b7c93.entry.js +0 -2
  1615. package/www/build/p-6e8b7c93.entry.js.map +0 -1
  1616. package/www/build/p-6f023899.entry.js +0 -2
  1617. package/www/build/p-6f023899.entry.js.map +0 -1
  1618. package/www/build/p-7441b8f8.entry.js +0 -2
  1619. package/www/build/p-7441b8f8.entry.js.map +0 -1
  1620. package/www/build/p-74b2b9a0.entry.js +0 -2
  1621. package/www/build/p-74b2b9a0.entry.js.map +0 -1
  1622. package/www/build/p-771a4c2f.entry.js +0 -2
  1623. package/www/build/p-771a4c2f.entry.js.map +0 -1
  1624. package/www/build/p-7e442c5f.entry.js +0 -2
  1625. package/www/build/p-7e442c5f.entry.js.map +0 -1
  1626. package/www/build/p-7ef963d4.js +0 -2
  1627. package/www/build/p-7ef963d4.js.map +0 -1
  1628. package/www/build/p-a2b43ed1.entry.js +0 -2
  1629. package/www/build/p-a2b43ed1.entry.js.map +0 -1
  1630. package/www/build/p-a402854c.entry.js +0 -2
  1631. package/www/build/p-a402854c.entry.js.map +0 -1
  1632. package/www/build/p-a6fcefe7.entry.js +0 -2
  1633. package/www/build/p-a6fcefe7.entry.js.map +0 -1
  1634. package/www/build/p-b0ef19c7.js +0 -2
  1635. package/www/build/p-b0ef19c7.js.map +0 -1
  1636. package/www/build/p-b4ad044a.entry.js +0 -2
  1637. package/www/build/p-b4ad044a.entry.js.map +0 -1
  1638. package/www/build/p-b53e9a21.entry.js +0 -2
  1639. package/www/build/p-b53e9a21.entry.js.map +0 -1
  1640. package/www/build/p-b67887e7.entry.js +0 -2
  1641. package/www/build/p-b67887e7.entry.js.map +0 -1
  1642. package/www/build/p-b93c49a8.entry.js +0 -2
  1643. package/www/build/p-b93c49a8.entry.js.map +0 -1
  1644. package/www/build/p-b94b71b8.entry.js +0 -2
  1645. package/www/build/p-b94b71b8.entry.js.map +0 -1
  1646. package/www/build/p-c19aca30.entry.js +0 -2
  1647. package/www/build/p-c19aca30.entry.js.map +0 -1
  1648. package/www/build/p-c49ca2a9.entry.js +0 -2
  1649. package/www/build/p-c49ca2a9.entry.js.map +0 -1
  1650. package/www/build/p-c4e40901.entry.js +0 -2
  1651. package/www/build/p-c4e40901.entry.js.map +0 -1
  1652. package/www/build/p-d02bc360.entry.js +0 -2
  1653. package/www/build/p-d02bc360.entry.js.map +0 -1
  1654. package/www/build/p-d8c631d6.entry.js +0 -2
  1655. package/www/build/p-d8c631d6.entry.js.map +0 -1
  1656. package/www/build/p-d973f170.entry.js +0 -2
  1657. package/www/build/p-d973f170.entry.js.map +0 -1
  1658. package/www/build/p-d9f3ae73.entry.js +0 -2
  1659. package/www/build/p-d9f3ae73.entry.js.map +0 -1
  1660. package/www/build/p-dcd73f91.entry.js +0 -2
  1661. package/www/build/p-dcd73f91.entry.js.map +0 -1
  1662. package/www/build/p-dde6c887.entry.js +0 -2
  1663. package/www/build/p-dde6c887.entry.js.map +0 -1
  1664. package/www/build/p-e1b99a10.entry.js +0 -2
  1665. package/www/build/p-e1b99a10.entry.js.map +0 -1
  1666. package/www/build/p-e338f042.entry.js +0 -2
  1667. package/www/build/p-e338f042.entry.js.map +0 -1
  1668. package/www/build/p-e75ca94d.entry.js +0 -2
  1669. package/www/build/p-e75ca94d.entry.js.map +0 -1
  1670. package/www/build/p-ed1a5ee3.entry.js +0 -2
  1671. package/www/build/p-ed1a5ee3.entry.js.map +0 -1
  1672. package/www/build/p-ed65d0d2.entry.js +0 -2
  1673. package/www/build/p-ed65d0d2.entry.js.map +0 -1
  1674. package/www/build/p-edb8975a.entry.js +0 -2
  1675. package/www/build/p-edb8975a.entry.js.map +0 -1
  1676. package/www/build/p-ee03249d.entry.js +0 -2
  1677. package/www/build/p-ee03249d.entry.js.map +0 -1
  1678. package/www/build/p-ef43ca85.entry.js +0 -2
  1679. package/www/build/p-ef43ca85.entry.js.map +0 -1
  1680. package/www/build/p-f41da106.entry.js +0 -2
  1681. package/www/build/p-f41da106.entry.js.map +0 -1
  1682. package/www/build/p-f48575f1.entry.js +0 -2
  1683. package/www/build/p-f48575f1.entry.js.map +0 -1
  1684. package/www/build/p-f9edfd67.entry.js +0 -2
  1685. package/www/build/p-f9edfd67.entry.js.map +0 -1
  1686. package/www/build/p-fc4bd856.entry.js +0 -17
  1687. package/www/build/p-fc4bd856.entry.js.map +0 -1
  1688. package/www/build/p-feaee92d.entry.js +0 -2
  1689. package/www/build/p-feaee92d.entry.js.map +0 -1
  1690. /package/dist/collection/components/{navigation/z-app-header → z-app-header}/index.spec.js +0 -0
  1691. /package/dist/collection/components/{navigation/z-app-header → z-app-header}/styles.css +0 -0
  1692. /package/dist/collection/components/{buttons/z-button → z-button}/styles.css +0 -0
  1693. /package/dist/collection/components/{buttons/z-button-sort → z-button-sort}/index.spec.js +0 -0
  1694. /package/dist/collection/components/{buttons/z-button-sort → z-button-sort}/styles.css +0 -0
  1695. /package/dist/collection/components/{buttons/z-button-sort → z-button-sort}/test.e2e.js +0 -0
  1696. /package/dist/collection/components/{buttons/z-chip → z-chip}/index.spec.js +0 -0
  1697. /package/dist/collection/components/{buttons/z-chip → z-chip}/styles.css +0 -0
  1698. /package/dist/collection/components/{inputs/z-combobox → z-combobox}/index.spec.js +0 -0
  1699. /package/dist/collection/components/{inputs/z-combobox → z-combobox}/styles.css +0 -0
  1700. /package/dist/collection/components/{icons/z-icon → z-icon}/styles.css +0 -0
  1701. /package/dist/collection/components/{notification/z-info-box → z-info-box}/index.spec.js +0 -0
  1702. /package/dist/collection/components/{notification/z-info-box → z-info-box}/styles.css +0 -0
  1703. /package/dist/collection/components/{inputs/z-input → z-input}/test-checkbox.spec.js +0 -0
  1704. /package/dist/collection/components/{inputs/z-input → z-input}/test-radio.spec.js +0 -0
  1705. /package/dist/collection/components/{inputs/z-input → z-input}/test-textarea.spec.js +0 -0
  1706. /package/dist/collection/components/{inputs/z-input-message → z-input-message}/index.spec.js +0 -0
  1707. /package/dist/collection/components/{inputs/z-input-message → z-input-message}/styles.css +0 -0
  1708. /package/dist/collection/components/{logo/z-logo → z-logo}/index.spec.js +0 -0
  1709. /package/dist/collection/components/{logo/z-logo → z-logo}/styles.css +0 -0
  1710. /package/dist/collection/components/{logo/z-logo → z-logo}/test.e2e.js +0 -0
  1711. /package/dist/collection/components/{navigation/z-menu → z-menu}/index.spec.js +0 -0
  1712. /package/dist/collection/components/{navigation/z-menu → z-menu}/styles.css +0 -0
  1713. /package/dist/collection/components/{navigation/z-menu-section → z-menu-section}/index.spec.js +0 -0
  1714. /package/dist/collection/components/{navigation/z-menu-section → z-menu-section}/styles.css +0 -0
  1715. /package/dist/collection/components/{modal/z-modal → z-modal}/index.spec.js +0 -0
  1716. /package/dist/collection/components/{modal/z-modal → z-modal}/styles.css +0 -0
  1717. /package/dist/collection/components/{navigation/z-navigation-tabs → z-navigation-tabs}/styles.css +0 -0
  1718. /package/dist/collection/components/{notification/z-notification → z-notification}/index.spec.js +0 -0
  1719. /package/dist/collection/components/{notification/z-notification → z-notification}/styles.css +0 -0
  1720. /package/dist/collection/components/{notification/z-notification → z-notification}/test.e2e.js +0 -0
  1721. /package/dist/collection/components/{panel/z-panel-elem → z-panel-elem}/index.spec.js +0 -0
  1722. /package/dist/collection/components/{panel/z-panel-elem → z-panel-elem}/styles.css +0 -0
  1723. /package/dist/collection/components/{inputs/z-searchbar → z-searchbar}/index.spec.js +0 -0
  1724. /package/dist/collection/components/{inputs/z-searchbar → z-searchbar}/styles.css +0 -0
  1725. /package/dist/collection/components/{inputs/z-select → z-select}/index.spec.js +0 -0
  1726. /package/dist/collection/components/{inputs/z-select → z-select}/styles.css +0 -0
  1727. /package/dist/collection/components/{indicators/z-stepper → z-stepper}/index.spec.js +0 -0
  1728. /package/dist/collection/components/{indicators/z-stepper → z-stepper}/styles.css +0 -0
  1729. /package/dist/collection/components/{indicators/z-stepper-item → z-stepper-item}/index.spec.js +0 -0
  1730. /package/dist/collection/components/{indicators/z-stepper-item → z-stepper-item}/styles.css +0 -0
  1731. /package/dist/collection/components/{notification/z-toast-notification → z-toast-notification}/index.spec.js +0 -0
  1732. /package/dist/collection/components/{notification/z-toast-notification → z-toast-notification}/styles.css +0 -0
  1733. /package/dist/collection/components/{list/z-toast-notification-list → z-toast-notification-list}/index.spec.js +0 -0
  1734. /package/dist/collection/components/{list/z-toast-notification-list → z-toast-notification-list}/styles.css +0 -0
  1735. /package/dist/collection/components/{list/z-toast-notification-list → z-toast-notification-list}/test.e2e.js +0 -0
  1736. /package/dist/collection/components/{buttons/z-toggle-button → z-toggle-button}/index.spec.js +0 -0
  1737. /package/dist/collection/components/{buttons/z-toggle-button → z-toggle-button}/styles.css +0 -0
  1738. /package/dist/collection/components/{buttons/z-toggle-switch → z-toggle-switch}/index.spec.js +0 -0
  1739. /package/dist/collection/components/{buttons/z-toggle-switch → z-toggle-switch}/styles.css +0 -0
  1740. /package/dist/collection/components/{notification/z-tooltip → z-tooltip}/styles.css +0 -0
  1741. /package/dist/types/components/{icons/z-icon → z-icon}/index.d.ts +0 -0
  1742. /package/dist/types/components/{logo/z-logo → z-logo}/index.d.ts +0 -0
  1743. /package/dist/types/components/{panel/z-panel-elem → z-panel-elem}/index.d.ts +0 -0
  1744. /package/dist/types/components/{indicators/z-stepper-item → z-stepper-item}/index.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- export{Z as z_tfoot}from"./p-4bc0818d.js";import"./p-10bb4f4b.js";
2
- //# sourceMappingURL=p-118241ec.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{r as t,c as i,h as e,g as s}from"./p-10bb4f4b.js";import{I as o,e as r,i as a,g as n,l as h}from"./p-025f494e.js";import{r as d,a as l}from"./p-955da62e.js";import"./p-2c886e8b.js";const c=':host{display:block;font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-surface04);margin:0;background-color:var(--color-input-field01);border-radius:var(--border-radius-small);cursor:pointer}:host([size="small"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header p.body-3{padding:calc(var(--space-unit) * 0.5) 0}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}:host>div.open>div.header:focus:focus-visible{box-shadow:none}:host>div>div.header:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>p.body-3{padding:var(--space-unit) 0;margin:0;color:var(--color-default-text)}:host>div>.header>p.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-primary01);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-disabled01);fill:var(--color-disabled01)}:host>div.disabled .header>p.body-3{color:var(--color-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-disabled01)}:host>div.open>.header>z-icon{fill:var(--color-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div.open>div.open-combo-data{position:relative;z-index:12;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--gray200);border-top:0;background-color:var(--color-input-field01);border-radius:0}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;scrollbar-color:var(--color-primary01) transparent}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 3px;margin:0}::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-primary01)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:auto;margin-top:0;box-shadow:1px 1px 4px 2px rgb(217 222 227 / 50%)}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2);scrollbar-color:var(--color-primary01) transparent}:host>div.open>div.open-combo-data>div>div.search>div{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search>div>a{display:inline-block;height:44px;color:var(--color-primary01);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);text-align:left}:host([size="small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size="x-small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}';const p=c;const u=class{watchItems(){this.itemsList=typeof this.items==="string"?JSON.parse(this.items):this.items;this.selectedCounter=this.itemsList.filter((t=>t.checked)).length;this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}watchCheckboxes(){this.checkboxes.forEach(((t,i)=>t.setAttribute("tabindex",i===0?"0":"-1")))}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}constructor(e){t(this,e);this.comboboxChange=i(this,"comboboxChange",7);this.itemsList=[];this.inputType=o.TEXT;this.inputid=`combo-${d()}`;this.items=undefined;this.label=undefined;this.disabled=false;this.hassearch=false;this.searchlabel=undefined;this.searchplaceholder=undefined;this.searchtitle=undefined;this.noresultslabel="Nessun risultato";this.isopen=false;this.isfixed=false;this.closesearchtext="Chiudi";this.hascheckall=false;this.checkalltext="Seleziona tutti";this.uncheckalltext="Deseleziona tutti";this.maxcheckableitems=0;this.hasgroupitems=undefined;this.size=r.BIG;this.searchValue=undefined;this.selectedCounter=undefined;this.renderItemsList=[];this.focusedItemId=undefined;this.checkboxes=[];this.toggleComboBox=this.toggleComboBox.bind(this);this.closeFilterItems=this.closeFilterItems.bind(this)}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((t=>t.checked)).length}componentDidRender(){const t=this.getAllCheckboxes();if(JSON.stringify(t)!==JSON.stringify(this.checkboxes)){this.checkboxes=t}}getItemId(t){return`combo-checkbox-${this.inputid}-${t.id}`}getCheckboxClass(){return`combo-item-checkbox-input-${this.inputid}`}getAllCheckboxes(){return Array.from(this.element.shadowRoot.querySelectorAll(`.${this.getCheckboxClass()} input:not([disabled])`))}getControlToListSize(){switch(this.size){case r.X_SMALL:return a.SMALL;case r.SMALL:return a.MEDIUM;default:return a.LARGE}}handleSelectArrowsNavigation(t,i){if(![n.ARROW_DOWN,n.ARROW_UP].includes(t.key)||!this.isopen){return}t.preventDefault();t.stopPropagation();const e=this.element.shadowRoot.querySelector(`#${i}`);if(!e){return}const s=this.checkboxes;if(!s.length){return}const o=s.indexOf(e);const r=0;const a=s.length-1;let h=null;if(t.key===n.ARROW_DOWN){h=o===a?s[r]:s[o+1]}else if(t.key===n.ARROW_UP){h=o===r?s[a]:s[o-1]}this.focusComboboxItem(h)}handleHeaderKeyboardEvent(t){if(t.key===n.SPACE){t.preventDefault()}if(t.key===n.ARROW_DOWN&&!this.isopen||t.key===n.ARROW_UP&&this.isopen){this.toggleComboBox()}}handleCheckboxFocus(t){this.focusedItemId=t}focusComboboxItem(t){this.checkboxes.forEach((function(t){t.setAttribute("tabindex","-1")}));t.setAttribute("tabindex","0");t.focus()}updateRenderItemsList(){if(this.searchValue){this.filterItems(this.searchValue)}else{this.resetRenderItemsList()}}resetRenderItemsList(){const t=[];this.itemsList.forEach((i=>{t.push(Object.assign({},i))}));this.renderItemsList=t}filterItems(t){if(!t){return this.closeFilterItems()}this.resetRenderItemsList();this.renderItemsList=this.renderItemsList.filter((i=>{const e=i.name.toUpperCase().indexOf(t.toUpperCase());const s=e+t.length;const o=i.name.substring(0,e)+"<strong>"+i.name.substring(e,s)+"</strong>"+i.name.substring(s,i.name.length);i.name=o;return e>=0}))}checkAll(t=true){this.itemsList=this.itemsList.map((i=>Object.assign(Object.assign({},i),{checked:t})));this.resetRenderItemsList();this.emitComboboxChange()}closeFilterItems(){this.searchValue="";this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}getComboboxA11yAttributes(){return{role:"combobox","aria-label":this.label,"aria-expanded":this.isopen?"true":"false","aria-activedescendant":this.isopen?this.focusedItemId:"","aria-controls":`${this.inputid}_list`}}renderHeader(){return e("div",{class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:t=>{this.handleHeaderKeyboardEvent(t)},onKeyUp:t=>l(t,this.toggleComboBox),role:"button",tabindex:0,"aria-expanded":this.isopen?"true":"false"},e("p",{class:"body-3"},this.label,e("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),e("z-icon",{name:"caret-down",class:this.size}))}renderContent(){if(!this.isopen){return}return e("div",{class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),!this.hassearch?e("span",Object.assign({},this.getComboboxA11yAttributes())):null,e("div",{role:"listbox","aria-label":this.label,"aria-multiselectable":true,id:`${this.inputid}_list`,"aria-owns":`${this.checkboxes.map((t=>t.id)).join(" ")}`},this.hascheckall&&this.renderCheckAll(),this.renderItems()))}renderItems(){return e("div",{class:this.searchValue&&"search"},this.renderList(this.renderItemsList),this.searchValue&&this.renderCloseButton())}renderItem(t,i,s){return e("z-list-element",{id:t.id,htmlTabindex:null,dividerType:i!==s-1?h.ELEMENT:h.NONE,size:this.getControlToListSize()},e("z-input",{type:o.CHECKBOX,checked:t.checked,htmlid:this.getItemId(t),label:t.name,class:this.getCheckboxClass(),disabled:!t.checked&&this.maxcheckableitems&&this.selectedCounter>=this.maxcheckableitems,size:this.size===r.X_SMALL?r.SMALL:this.size,role:"option","aria-selected":t.checked?"true":"false",onKeyDown:i=>this.handleSelectArrowsNavigation(i,this.getItemId(t)),onInputCheck:i=>{this.itemsList=this.itemsList.map((e=>{if(t.id===e.id){e.checked=i.detail.checked}return e}));this.updateRenderItemsList();this.emitComboboxChange()},onInputFocus:t=>this.handleCheckboxFocus(t.detail.id)}))}renderList(t){if(!t){return}if(!t.length&&this.searchValue){return this.renderNoSearchResults()}if(this.hasgroupitems){return this.renderGroups(t)}return e("ul",{role:"none"},t.map(((i,e)=>this.renderItem(i,e,t.length))))}renderGroups(t){const i=t.reduce(((i,e,s)=>{var o;const{category:r}=e;const a=this.renderItem(e,s,t.length);i[r]=(o=i[r])!==null&&o!==void 0?o:[];i[r].push(a);return i}),{});const s=Object.entries(i).map((([t,i])=>e("z-list-group",{"divider-type":h.ELEMENT},e("span",{class:"body-3-sb z-list-group-title",slot:"header-title"},t),i.map((t=>t)))));return e("ul",{role:"none"},s)}renderNoSearchResults(){return e("ul",{role:"none"},e("z-myz-list-item",{id:"no-results",text:this.noresultslabel,listitemid:"no-results",icon:"multiply-circle",class:this.size}))}renderCloseButton(){return e("div",null,e("a",{onClick:()=>this.closeFilterItems(),onKeyUp:t=>l(t,this.closeFilterItems),role:"button",tabindex:0},this.closesearchtext))}renderSearchInput(){return e("z-input",Object.assign({htmlid:`${this.inputid}_search`,label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:false,size:this.size,"aria-autocomplete":"list"},this.getComboboxA11yAttributes(),{onKeyUp:t=>{if(t.key===n.ESC){this.closeFilterItems()}},onInputChange:t=>{this.searchValue=t.detail.value}}))}renderCheckAll(){if(this.searchValue){return}const t=`combo-checkbox-${this.inputid}-check-all`;const i=this.selectedCounter===this.itemsList.length;return e("div",{class:"check-all-wrapper"},e("z-input",{type:o.CHECKBOX,checked:i,htmlid:t,class:this.getCheckboxClass(),label:i?this.uncheckalltext:this.checkalltext,disabled:this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length,size:this.size===r.X_SMALL?r.SMALL:this.size,role:"option","aria-selected":i?"true":"false",onKeyDown:i=>this.handleSelectArrowsNavigation(i,t),onInputCheck:t=>this.checkAll(t.detail.checked),onInputFocus:t=>this.handleCheckboxFocus(t.detail.id)}))}render(){return e("div",{key:"9844f86b698bf44ddedcfd410ee185bd7c9bbfe3","data-action":`combo-${this.inputid}`,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}get element(){return s(this)}static get watchers(){return{items:["watchItems"],searchValue:["watchSearchValue"],checkboxes:["watchCheckboxes"]}}};u.style=p;export{u as z_combobox};
2
- //# sourceMappingURL=p-11b26c59.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZComboboxStyle0","ZCombobox","watchItems","this","itemsList","items","JSON","parse","selectedCounter","filter","item","checked","length","updateRenderItemsList","watchSearchValue","filterItems","searchValue","watchCheckboxes","checkboxes","forEach","index","setAttribute","emitComboboxChange","comboboxChange","emit","id","inputid","constructor","hostRef","inputType","InputType","TEXT","randomId","ControlSize","BIG","toggleComboBox","bind","closeFilterItems","componentWillLoad","componentWillRender","componentDidRender","getAllCheckboxes","stringify","getItemId","getCheckboxClass","Array","from","element","shadowRoot","querySelectorAll","getControlToListSize","size","X_SMALL","ListSize","SMALL","MEDIUM","LARGE","handleSelectArrowsNavigation","e","currId","KeyboardCode","ARROW_DOWN","ARROW_UP","includes","key","isopen","preventDefault","stopPropagation","currElem","querySelector","currElemIndex","indexOf","firstElemIndex","lastElemIndex","nextElem","focusComboboxItem","handleHeaderKeyboardEvent","ev","SPACE","handleCheckboxFocus","focusedItemId","elem","focus","resetRenderItemsList","renderItemsList","push","Object","assign","value","start","name","toUpperCase","end","newName","substring","checkAll","map","getComboboxA11yAttributes","role","label","renderHeader","h","class","onClick","onKeyDown","onKeyUp","handleKeyboardSubmit","tabindex","renderContent","hassearch","renderSearchInput","join","hascheckall","renderCheckAll","renderItems","renderList","renderCloseButton","renderItem","htmlTabindex","dividerType","ListDividerType","ELEMENT","NONE","type","CHECKBOX","htmlid","disabled","maxcheckableitems","onInputCheck","i","detail","onInputFocus","renderNoSearchResults","hasgroupitems","renderGroups","newData","reduce","group","category","zListItem","_a","listGroups","entries","slot","text","noresultslabel","listitemid","icon","closesearchtext","searchlabel","placeholder","searchplaceholder","htmltitle","searchtitle","message","ESC","onInputChange","checkAllId","allChecked","uncheckalltext","checkalltext","render","open","fixed","isfixed"],"sources":["src/components/inputs/z-combobox/styles.css?tag=z-combobox&encapsulation=shadow","src/components/inputs/z-combobox/index.tsx"],"sourcesContent":[":host {\n display: block;\n font-family: var(--font-family-sans);\n}\n\n:host > div.fixed {\n position: relative;\n}\n\n:host > div > .header {\n position: relative;\n z-index: 10;\n display: flex;\n min-height: 42px;\n align-items: center;\n justify-content: space-between;\n padding: 0 calc(var(--space-unit) * 1.5);\n border: var(--border-size-small) solid var(--color-surface04);\n margin: 0;\n background-color: var(--color-input-field01);\n border-radius: var(--border-radius-small);\n cursor: pointer;\n}\n\n:host([size=\"small\"]) > div > .header {\n min-height: 34px;\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) > div > .header {\n min-height: 30px;\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) > div > .header p.body-3 {\n padding: calc(var(--space-unit) * 0.5) 0;\n}\n\n:host > div > .header:hover {\n outline: var(--border-size-medium) solid var(--color-surface04);\n outline-offset: -2px;\n}\n\n:host > div.open > div.header:focus:focus-visible {\n box-shadow: none;\n}\n\n:host > div > div.header:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host > div > .header > p.body-3 {\n padding: var(--space-unit) 0;\n margin: 0;\n color: var(--color-default-text);\n}\n\n:host > div > .header > p.body-3 > span {\n font-weight: var(--font-sb);\n}\n\n:host > div > .header > z-icon {\n fill: var(--color-default-icon);\n transform: rotate(360deg);\n transition: all 200ms linear;\n}\n\n:host > div > .header > z-icon.small,\n:host > div > .header > z-icon.x-small {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n:host > div.open > .header {\n border: var(--border-size-small) solid var(--color-primary01);\n border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;\n}\n\n:host > div.disabled {\n pointer-events: none;\n}\n\n:host > div.disabled .header {\n border-color: var(--color-disabled01);\n fill: var(--color-disabled01);\n}\n\n:host > div.disabled .header > p.body-3 {\n color: var(--color-disabled03);\n}\n\n:host > div.disabled .header > z-icon:last-child {\n fill: var(--color-disabled01);\n}\n\n:host > div.open > .header > z-icon {\n fill: var(--color-default-icon);\n transform: rotate(180deg);\n transition: all 200ms linear;\n}\n\n:host > div.open > div.open-combo-data {\n position: relative;\n z-index: 12;\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n border: var(--border-size-small) solid var(--gray200);\n border-top: 0;\n background-color: var(--color-input-field01);\n border-radius: 0;\n}\n\n:host > div.open > div.open-combo-data > div > div {\n overflow: auto;\n max-height: 235px;\n padding: 0;\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n:host > div.open > div.open-combo-data > z-input {\n width: 100%;\n margin-bottom: calc(var(--space-unit) * 2);\n}\n\n:host > div.open > div.open-combo-data > div > div > ul {\n max-height: 235px;\n padding: 0 3px; /* needed for checkbox focus shadow */\n margin: 0;\n}\n\n::-webkit-scrollbar {\n width: 10px;\n background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);\n border-radius: var(--border-radius);\n}\n\n::-webkit-scrollbar-thumb {\n width: 10px;\n background-color: var(--color-primary01);\n}\n\n:host > div.open > z-input {\n position: relative;\n z-index: 1;\n width: 238px;\n margin: 0 calc(var(--space-unit) * 2);\n color: var(--color-primary01);\n}\n\n:host > div.open > div.open-combo-data > div > div.search {\n overflow: hidden;\n max-height: auto;\n margin-top: 0;\n box-shadow: 1px 1px 4px 2px rgb(217 222 227 / 50%);\n}\n\n:host > div.open > div.open-combo-data > div > div.search > ul {\n overflow: auto;\n max-height: 180px;\n padding: var(--space-unit) calc(var(--space-unit) * 2);\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n:host > div.open > div.open-combo-data > div > div.search > div {\n display: flex;\n justify-content: center;\n}\n\n:host > div.open > div.open-combo-data > div > div.search > div > a {\n display: inline-block;\n height: 44px;\n color: var(--color-primary01);\n cursor: pointer;\n font-size: 14px;\n font-weight: var(--font-sb);\n line-height: 44px;\n text-align: center;\n text-transform: uppercase;\n}\n\n:host > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);\n border-bottom: var(--border-size-small) solid var(--gray800);\n margin-bottom: var(--space-unit);\n text-align: left;\n}\n\n:host([size=\"small\"]) > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5);\n}\n\n:host([size=\"x-small\"]) > div.open > div.open-combo-data > div > div.check-all-wrapper {\n padding: var(--space-unit) calc(var(--space-unit) * 0.5);\n}\n","import {Component, Prop, h, State, Watch, Event, Element, EventEmitter} from \"@stencil/core\";\nimport {ComboItem, InputType, ListDividerType, ControlSize, KeyboardCode, ListSize} from \"../../../beans\";\nimport {ZInput} from \"../z-input\";\nimport {handleKeyboardSubmit, randomId} from \"../../../utils/utils\";\nimport {ZMyzListItem} from \"../../../snowflakes/myz/list/z-myz-list-item\";\n\n@Component({\n tag: \"z-combobox\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCombobox {\n @Element() element: HTMLZComboboxElement;\n\n /** input unique id */\n @Prop()\n inputid = `combo-${randomId()}`;\n\n /** list items array */\n @Prop()\n items: ComboItem[] | string;\n\n /** label text */\n @Prop()\n label: string;\n\n /** the combobox is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** show search input flag (optional) */\n @Prop()\n hassearch?: boolean = false;\n\n /** search input label text (optional) */\n @Prop()\n searchlabel?: string;\n\n /** search input placeholder text (optional) */\n @Prop()\n searchplaceholder?: string;\n\n /** search input title text (optional) */\n @Prop()\n searchtitle?: string;\n\n /** no result text message */\n @Prop()\n noresultslabel?: string = \"Nessun risultato\";\n\n /** toggle combo list opening flag */\n @Prop({mutable: true})\n isopen = false;\n\n /** fixed style flag */\n @Prop()\n isfixed = false;\n\n /** close combobox list text */\n @Prop()\n closesearchtext?: string = \"Chiudi\";\n\n /** show \"check all\" checkbox (optional) */\n @Prop()\n hascheckall?: boolean = false;\n\n /** check all label (optional) */\n @Prop()\n checkalltext?: string = \"Seleziona tutti\";\n\n /** uncheck all label (optional) */\n @Prop()\n uncheckalltext?: string = \"Deseleziona tutti\";\n\n /** max number of checkable items (0 = unlimited) */\n @Prop()\n maxcheckableitems = 0;\n\n /** group items by category */\n @Prop()\n hasgroupitems?: boolean;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop()\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n searchValue: string;\n\n @State()\n selectedCounter: number;\n\n @State()\n renderItemsList: ComboItem[] = []; // used for render only\n\n @State()\n focusedItemId: string;\n\n @State()\n checkboxes: HTMLInputElement[] = [];\n\n private itemsList: ComboItem[] = [];\n\n private inputType: InputType = InputType.TEXT;\n\n @Watch(\"items\")\n watchItems(): void {\n this.itemsList = typeof this.items === \"string\" ? JSON.parse(this.items) : this.items;\n this.selectedCounter = this.itemsList.filter((item) => item.checked).length;\n this.updateRenderItemsList();\n }\n\n @Watch(\"searchValue\")\n watchSearchValue(): void {\n this.filterItems(this.searchValue);\n }\n\n @Watch(\"checkboxes\")\n watchCheckboxes(): void {\n this.checkboxes.forEach((item, index) => item.setAttribute(\"tabindex\", index === 0 ? \"0\" : \"-1\"));\n }\n\n /** Emitted when value is checked/unchecked. Returns id, items. */\n @Event()\n comboboxChange: EventEmitter;\n\n private emitComboboxChange(): void {\n this.comboboxChange.emit({id: this.inputid, items: this.itemsList});\n }\n\n constructor() {\n this.toggleComboBox = this.toggleComboBox.bind(this);\n this.closeFilterItems = this.closeFilterItems.bind(this);\n }\n\n componentWillLoad(): void {\n this.watchItems();\n }\n\n componentWillRender(): void {\n this.selectedCounter = this.itemsList.filter((item) => item.checked).length;\n }\n\n componentDidRender(): void {\n const checkboxes = this.getAllCheckboxes();\n if (JSON.stringify(checkboxes) !== JSON.stringify(this.checkboxes)) {\n this.checkboxes = checkboxes;\n }\n }\n\n private getItemId(item: ComboItem): string {\n return `combo-checkbox-${this.inputid}-${item.id}`;\n }\n\n private getCheckboxClass(): string {\n return `combo-item-checkbox-input-${this.inputid}`;\n }\n\n private getAllCheckboxes(): HTMLInputElement[] {\n return Array.from(\n this.element.shadowRoot.querySelectorAll(`.${this.getCheckboxClass()} input:not([disabled])`)\n ) as HTMLInputElement[];\n }\n\n private getControlToListSize(): ListSize {\n switch (this.size) {\n case ControlSize.X_SMALL:\n return ListSize.SMALL;\n case ControlSize.SMALL:\n return ListSize.MEDIUM;\n default:\n return ListSize.LARGE;\n }\n }\n\n private handleSelectArrowsNavigation(e: KeyboardEvent, currId: string): void {\n if (![KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP].includes(e.key as KeyboardCode) || !this.isopen) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n\n const currElem = this.element.shadowRoot.querySelector(`#${currId}`) as HTMLInputElement;\n if (!currElem) {\n return;\n }\n\n const checkboxes = this.checkboxes;\n if (!checkboxes.length) {\n return;\n }\n\n const currElemIndex = checkboxes.indexOf(currElem);\n const firstElemIndex = 0;\n const lastElemIndex = checkboxes.length - 1;\n\n let nextElem = null;\n if (e.key === KeyboardCode.ARROW_DOWN) {\n nextElem = currElemIndex === lastElemIndex ? checkboxes[firstElemIndex] : checkboxes[currElemIndex + 1];\n } else if (e.key === KeyboardCode.ARROW_UP) {\n nextElem = currElemIndex === firstElemIndex ? checkboxes[lastElemIndex] : checkboxes[currElemIndex - 1];\n }\n\n this.focusComboboxItem(nextElem);\n }\n\n private handleHeaderKeyboardEvent(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n }\n if ((ev.key === KeyboardCode.ARROW_DOWN && !this.isopen) || (ev.key === KeyboardCode.ARROW_UP && this.isopen)) {\n this.toggleComboBox();\n }\n }\n\n private handleCheckboxFocus(id: string): void {\n this.focusedItemId = id;\n }\n\n private focusComboboxItem(elem): void {\n this.checkboxes.forEach(function (item) {\n item.setAttribute(\"tabindex\", \"-1\");\n });\n\n elem.setAttribute(\"tabindex\", \"0\");\n elem.focus();\n }\n\n private updateRenderItemsList(): void {\n if (this.searchValue) {\n this.filterItems(this.searchValue);\n } else {\n this.resetRenderItemsList();\n }\n }\n\n private resetRenderItemsList(): void {\n const renderItemsList = [];\n this.itemsList.forEach((item: ComboItem) => {\n renderItemsList.push({...item});\n });\n this.renderItemsList = renderItemsList;\n }\n\n private filterItems(value: string): void {\n if (!value) {\n return this.closeFilterItems();\n }\n\n this.resetRenderItemsList();\n this.renderItemsList = this.renderItemsList.filter((item) => {\n const start = item.name.toUpperCase().indexOf(value.toUpperCase());\n const end = start + value.length;\n const newName =\n item.name.substring(0, start) +\n \"<strong>\" +\n item.name.substring(start, end) +\n \"</strong>\" +\n item.name.substring(end, item.name.length);\n\n item.name = newName;\n\n return start >= 0;\n });\n }\n\n private checkAll(checked = true): void {\n this.itemsList = this.itemsList.map((item: ComboItem) => ({\n ...item,\n checked: checked,\n }));\n this.resetRenderItemsList();\n this.emitComboboxChange();\n }\n\n private closeFilterItems(): void {\n this.searchValue = \"\";\n this.resetRenderItemsList();\n }\n\n private toggleComboBox(): void {\n this.isopen = !this.isopen;\n }\n\n private getComboboxA11yAttributes(): Record<string, unknown> {\n return {\n \"role\": \"combobox\",\n \"aria-label\": this.label,\n \"aria-expanded\": this.isopen ? \"true\" : \"false\",\n \"aria-activedescendant\": this.isopen ? this.focusedItemId : \"\",\n \"aria-controls\": `${this.inputid}_list`,\n };\n }\n\n private renderHeader(): HTMLDivElement {\n return (\n <div\n class=\"header\"\n onClick={() => this.toggleComboBox()}\n onKeyDown={(ev: KeyboardEvent) => {\n this.handleHeaderKeyboardEvent(ev);\n }}\n onKeyUp={(ev: KeyboardEvent) => handleKeyboardSubmit(ev, this.toggleComboBox)}\n role=\"button\"\n tabindex={0}\n aria-expanded={this.isopen ? \"true\" : \"false\"}\n >\n <p class=\"body-3\">\n {this.label}\n <span>{this.selectedCounter > 0 && ` (${this.selectedCounter})`}</span>\n </p>\n <z-icon\n name=\"caret-down\"\n class={this.size}\n />\n </div>\n );\n }\n\n private renderContent(): HTMLDivElement {\n if (!this.isopen) {\n return;\n }\n\n return (\n <div class=\"open-combo-data\">\n {this.hassearch && this.renderSearchInput()}\n {!this.hassearch ? <span {...this.getComboboxA11yAttributes()} /> : null}\n <div\n role=\"listbox\"\n aria-label={this.label}\n aria-multiselectable={true}\n id={`${this.inputid}_list`}\n aria-owns={`${this.checkboxes.map((item) => item.id).join(\" \")}`}\n >\n {this.hascheckall && this.renderCheckAll()}\n {this.renderItems()}\n </div>\n </div>\n );\n }\n\n private renderItems(): HTMLDivElement {\n return (\n <div class={this.searchValue && \"search\"}>\n {this.renderList(this.renderItemsList)}\n {this.searchValue && this.renderCloseButton()}\n </div>\n );\n }\n\n private renderItem(item: ComboItem, index: number, length: number): ZMyzListItem {\n return (\n <z-list-element\n id={item.id}\n htmlTabindex={null}\n dividerType={index !== length - 1 ? ListDividerType.ELEMENT : ListDividerType.NONE}\n size={this.getControlToListSize()}\n >\n <z-input\n type={InputType.CHECKBOX}\n checked={item.checked}\n htmlid={this.getItemId(item)}\n label={item.name}\n class={this.getCheckboxClass()}\n disabled={!item.checked && this.maxcheckableitems && this.selectedCounter >= this.maxcheckableitems}\n size={this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size}\n role=\"option\"\n aria-selected={item.checked ? \"true\" : \"false\"}\n onKeyDown={(e: KeyboardEvent) => this.handleSelectArrowsNavigation(e, this.getItemId(item))}\n onInputCheck={(e: CustomEvent) => {\n this.itemsList = this.itemsList.map((i: ComboItem) => {\n if (item.id === i.id) {\n i.checked = e.detail.checked;\n }\n\n return i;\n });\n this.updateRenderItemsList();\n this.emitComboboxChange();\n }}\n onInputFocus={(e: CustomEvent) => this.handleCheckboxFocus(e.detail.id)}\n />\n </z-list-element>\n );\n }\n\n private renderList(items: ComboItem[]): HTMLUListElement {\n if (!items) {\n return;\n }\n if (!items.length && this.searchValue) {\n return this.renderNoSearchResults();\n }\n\n if (this.hasgroupitems) {\n return this.renderGroups(items);\n }\n\n return (\n <ul role=\"none\">\n {items.map((item, i) => {\n return this.renderItem(item, i, items.length);\n })}\n </ul>\n );\n }\n\n private renderGroups(items: ComboItem[]): HTMLUListElement {\n const newData = items.reduce((group, item, index) => {\n const {category} = item;\n const zListItem = this.renderItem(item, index, items.length);\n\n group[category] = group[category] ?? [];\n group[category].push(zListItem);\n\n return group;\n }, {});\n\n const listGroups = Object.entries(newData as {[key: string]: HTMLZListElementElement[]}).map(([key, value]) => {\n return (\n <z-list-group divider-type={ListDividerType.ELEMENT}>\n <span\n class=\"body-3-sb z-list-group-title\"\n slot=\"header-title\"\n >\n {key}\n </span>\n {value.map((item) => item)}\n </z-list-group>\n );\n });\n\n return <ul role=\"none\">{listGroups}</ul>;\n }\n\n private renderNoSearchResults(): HTMLUListElement {\n return (\n <ul role=\"none\">\n <z-myz-list-item\n id=\"no-results\"\n text={this.noresultslabel}\n listitemid=\"no-results\"\n icon=\"multiply-circle\"\n class={this.size}\n />\n </ul>\n );\n }\n\n private renderCloseButton(): HTMLDivElement {\n return (\n <div>\n <a\n onClick={() => this.closeFilterItems()}\n onKeyUp={(e: KeyboardEvent) => handleKeyboardSubmit(e, this.closeFilterItems)}\n role=\"button\"\n tabindex={0}\n >\n {this.closesearchtext}\n </a>\n </div>\n );\n }\n\n private renderSearchInput(): ZInput {\n return (\n <z-input\n htmlid={`${this.inputid}_search`}\n label={this.searchlabel}\n placeholder={this.searchplaceholder}\n htmltitle={this.searchtitle}\n type={this.inputType}\n value={this.searchValue}\n message={false}\n size={this.size}\n aria-autocomplete=\"list\"\n {...this.getComboboxA11yAttributes()}\n onKeyUp={(e: KeyboardEvent) => {\n if (e.key === KeyboardCode.ESC) {\n this.closeFilterItems();\n }\n }}\n onInputChange={(e: CustomEvent) => {\n this.searchValue = e.detail.value;\n }}\n />\n );\n }\n\n private renderCheckAll(): HTMLDivElement {\n if (this.searchValue) {\n return;\n }\n\n const checkAllId = `combo-checkbox-${this.inputid}-check-all`;\n const allChecked = this.selectedCounter === this.itemsList.length;\n\n return (\n <div class=\"check-all-wrapper\">\n <z-input\n type={InputType.CHECKBOX}\n checked={allChecked}\n htmlid={checkAllId}\n class={this.getCheckboxClass()}\n label={allChecked ? this.uncheckalltext : this.checkalltext}\n disabled={this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length}\n size={this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size}\n role=\"option\"\n aria-selected={allChecked ? \"true\" : \"false\"}\n onKeyDown={(e: KeyboardEvent) => this.handleSelectArrowsNavigation(e, checkAllId)}\n onInputCheck={(e: CustomEvent) => this.checkAll(e.detail.checked)}\n onInputFocus={(e: CustomEvent) => this.handleCheckboxFocus(e.detail.id)}\n />\n </div>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div\n data-action={`combo-${this.inputid}`}\n class={{open: this.isopen, fixed: this.isfixed, disabled: this.disabled}}\n id={this.inputid}\n >\n {this.renderHeader()}\n {!this.disabled && this.renderContent()}\n </div>\n );\n }\n}\n"],"mappings":"4LAAA,MAAMA,EAAY,m3HAClB,MAAAC,EAAeD,E,MCUFE,EAAS,MA+FpB,UAAAC,GACEC,KAAKC,iBAAmBD,KAAKE,QAAU,SAAWC,KAAKC,MAAMJ,KAAKE,OAASF,KAAKE,MAChFF,KAAKK,gBAAkBL,KAAKC,UAAUK,QAAQC,GAASA,EAAKC,UAASC,OACrET,KAAKU,uB,CAIP,gBAAAC,GACEX,KAAKY,YAAYZ,KAAKa,Y,CAIxB,eAAAC,GACEd,KAAKe,WAAWC,SAAQ,CAACT,EAAMU,IAAUV,EAAKW,aAAa,WAAYD,IAAU,EAAI,IAAM,O,CAOrF,kBAAAE,GACNnB,KAAKoB,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,SAAS7D,KAAKuB,UAC3B4E,MAAO,CAAC4D,KAAM/J,KAAK8D,OAAQkG,MAAOhK,KAAKiK,QAAStC,SAAU3H,KAAK2H,UAC/DrG,GAAItB,KAAKuB,SAERvB,KAAKiG,gBACJjG,KAAK2H,UAAY3H,KAAKyG,gB"}
@@ -1,2 +0,0 @@
1
- import{r,h as o}from"./p-10bb4f4b.js";const s=":host{display:block;box-sizing:border-box;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-rg);line-height:calc(var(--space-unit) * 2)}:host>div{padding:calc(var(--space-unit) * 2)}:host>.success{background:var(--color-success-inverse);fill:var(--color-success01)}:host>.warning{background:var(--color-warning-inverse);fill:var(--color-warning01)}:host>.error{background:var(--color-error-inverse);fill:var(--color-error01)}";const a=s;const e=class{constructor(o){r(this,o);this.type=undefined}render(){return o("div",{key:"613583f9f9d6686e8c1fce89174dc7b6051623e3",class:this.type},o("slot",{key:"fd1884ab9eddfb1da4a0b7d952a48870eade1de7"}))}};e.style=a;export{e as z_alert};
2
- //# sourceMappingURL=p-12d181f4.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZAlertStyle0","ZAlert","render","h","key","class","this","type"],"sources":["src/snowflakes/myz/z-alert/styles.css?tag=z-alert&encapsulation=shadow","src/snowflakes/myz/z-alert/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n color: var(--color-surface05);\n font-family: var(--font-family-sans);\n font-size: 14px;\n font-weight: var(--font-rg);\n line-height: calc(var(--space-unit) * 2);\n}\n\n:host > div {\n padding: calc(var(--space-unit) * 2);\n}\n\n:host > .success {\n background: var(--color-success-inverse);\n fill: var(--color-success01);\n}\n\n:host > .warning {\n background: var(--color-warning-inverse);\n fill: var(--color-warning01);\n}\n\n:host > .error {\n background: var(--color-error-inverse);\n fill: var(--color-error01);\n}\n","import {Component, Prop, h} from \"@stencil/core\";\nimport {AlertType} from \"../../../beans/index\";\n\n/**\n * @slot - alert content\n */\n\n@Component({\n tag: \"z-alert\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAlert {\n /** alert variant type */\n @Prop()\n type: AlertType;\n\n render(): HTMLDivElement {\n return (\n <div class={this.type}>\n <slot />\n </div>\n );\n }\n}\n"],"mappings":"sCAAA,MAAMA,EAAY,ieAClB,MAAAC,EAAeD,E,MCWFE,EAAM,M,6CAKjB,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAOC,KAAKC,MACfJ,EAAA,QAAAC,IAAA,6C"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as i,g as o}from"./p-10bb4f4b.js";import{g as n}from"./p-025f494e.js";const r=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.dragdrop{position:relative;display:flex;height:228px;flex-direction:column;padding:calc(var(--space-unit) * 2);border-color:var(--color-surface04);background-color:var(--color-surface02);background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;color:var(--color-default-text)}:host>.dragdrop.dragover *{pointer-events:none}:host>.dragdrop .dragover-container{position:absolute;z-index:10;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}:host>.dragdrop .dragover-container .dragover-message{padding:10px 28px;background-color:var(--color-link-primary);color:var(--color-text-inverse)}:host>.dragdrop.dragover .dragover-container{display:flex;align-items:center;justify-content:center}";const a=r;const s=class{constructor(i){t(this,i);this.fileDropped=e(this,"fileDropped",7);this.dragAndDropLabel=undefined}fileDroppedHandler(t){this.fileDropped.emit(t)}renderOnDragOverMessage(){return i("div",{class:"dragover-container"},i("div",{class:"dragover-message"},i("span",{class:"body-2-sb"},this.dragAndDropLabel)))}render(){return i("div",{key:"8bd841a6a59b438bd0e794a842aa6326dd88ef04",tabIndex:0,ref:t=>this.dragDropContainer=t,class:"dragdrop",onDragOver:t=>{t.preventDefault();this.dragDropContainer.classList.add("dragover")},onDragLeave:()=>{this.dragDropContainer.classList.remove("dragover")},onDrop:t=>{t.preventDefault();if(t.dataTransfer.files.length){this.dragDropContainer.classList.remove("dragover");this.fileDroppedHandler(t.dataTransfer.files)}}},this.renderOnDragOverMessage(),i("slot",{key:"d99944c1db4408ff5028f628e35c9d5225a37055"}))}};s.style=a;var d=window.CustomEvent;if(!d||typeof d==="object"){d=function t(e,i){i=i||{};var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!!i.bubbles,!!i.cancelable,i.detail||null);return o};d.prototype=window.Event.prototype}function l(t,e){var i="on"+e.type.toLowerCase();if(typeof t[i]==="function"){t[i](e)}return t.dispatchEvent(e)}function c(t){while(t&&t!==document.body){var e=window.getComputedStyle(t);var i=function(t,i){return!(e[t]===undefined||e[t]===i)};if(e.opacity<1||i("zIndex","auto")||i("transform","none")||i("mixBlendMode","normal")||i("filter","none")||i("perspective","none")||e["isolation"]==="isolate"||e.position==="fixed"||e.webkitOverflowScrolling==="touch"){return true}t=t.parentElement}return false}function h(t){while(t){if(t.localName==="dialog"){return t}if(t.parentElement){t=t.parentElement}else if(t.parentNode){t=t.parentNode.host}else{t=null}}return null}function u(t){while(t&&t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}if(t&&t.blur&&t!==document.body){t.blur()}}function f(t,e){for(var i=0;i<t.length;++i){if(t[i]===e){return true}}return false}function m(t){if(!t||!t.hasAttribute("method")){return false}return t.getAttribute("method").toLowerCase()==="dialog"}function v(t){var e=["button","input","keygen","select","textarea"];var i=e.map((function(t){return t+":not([disabled])"}));i.push('[tabindex]:not([disabled]):not([tabindex=""])');var o=t.querySelector(i.join(", "));if(!o&&"attachShadow"in Element.prototype){var n=t.querySelectorAll("*");for(var r=0;r<n.length;r++){if(n[r].tagName&&n[r].shadowRoot){o=v(n[r].shadowRoot);if(o){break}}}}return o}function b(t){return t.isConnected||document.body.contains(t)}function p(t){if(t.submitter){return t.submitter}var e=t.target;if(!(e instanceof HTMLFormElement)){return null}var i=y.formSubmitter;if(!i){var o=t.target;var n="getRootNode"in o&&o.getRootNode()||document;i=n.activeElement}if(!i||i.form!==e){return null}return i}function g(t){if(t.defaultPrevented){return}var e=t.target;var i=y.imagemapUseValue;var o=p(t);if(i===null&&o){i=o.value}var n=h(e);if(!n){return}var r=o&&o.getAttribute("formmethod")||e.getAttribute("method");if(r!=="dialog"){return}t.preventDefault();if(i!=null){n.close(i)}else{n.close()}}function w(t){this.dialog_=t;this.replacedStyleTop_=false;this.openAsModal_=false;if(!t.hasAttribute("role")){t.setAttribute("role","dialog")}t.show=this.show.bind(this);t.showModal=this.showModal.bind(this);t.close=this.close.bind(this);t.addEventListener("submit",g,false);if(!("returnValue"in t)){t.returnValue=""}if("MutationObserver"in window){var e=new MutationObserver(this.maybeHideModal.bind(this));e.observe(t,{attributes:true,attributeFilter:["open"]})}else{var i=false;var o=function(){i?this.downgradeModal():this.maybeHideModal();i=false}.bind(this);var n;var r=function(e){if(e.target!==t){return}var r="DOMNodeRemoved";i|=e.type.substr(0,r.length)===r;window.clearTimeout(n);n=window.setTimeout(o,0)};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach((function(e){t.addEventListener(e,r)}))}Object.defineProperty(t,"open",{set:this.setOpen.bind(this),get:t.hasAttribute.bind(t,"open")});this.backdrop_=document.createElement("div");this.backdrop_.className="backdrop";this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this));this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this));this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}w.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){if(this.dialog_.hasAttribute("open")&&b(this.dialog_)){return}this.downgradeModal()},downgradeModal:function(){if(!this.openAsModal_){return}this.openAsModal_=false;this.dialog_.style.zIndex="";if(this.replacedStyleTop_){this.dialog_.style.top="";this.replacedStyleTop_=false}this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_);y.dm.removeDialog(this)},setOpen:function(t){if(t){this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open","")}else{this.dialog_.removeAttribute("open");this.maybeHideModal()}},backdropMouseEvent_:function(t){if(!this.dialog_.hasAttribute("tabindex")){var e=document.createElement("div");this.dialog_.insertBefore(e,this.dialog_.firstChild);e.tabIndex=-1;e.focus();this.dialog_.removeChild(e)}else{this.dialog_.focus()}var i=document.createEvent("MouseEvents");i.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget);this.dialog_.dispatchEvent(i);t.stopPropagation()},focus_:function(){var t=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!t&&this.dialog_.tabIndex>=0){t=this.dialog_}if(!t){t=v(this.dialog_)}u(document.activeElement);t&&t.focus()},updateZIndex:function(t,e){if(t<e){throw new Error("dialogZ should never be < backdropZ")}this.dialog_.style.zIndex=t;this.backdrop_.style.zIndex=e},show:function(){if(!this.dialog_.open){this.setOpen(true);this.focus_()}},showModal:function(){if(this.dialog_.hasAttribute("open")){throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.")}if(!b(this.dialog_)){throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.")}if(!y.dm.pushDialog(this)){throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.")}if(c(this.dialog_.parentElement)){console.warn("A dialog is being shown inside a stacking context. "+"This may cause it to be unusable. For more information, see this link: "+"https://github.com/GoogleChrome/dialog-polyfill/#stacking-context")}this.setOpen(true);this.openAsModal_=true;if(y.needsCentering(this.dialog_)){y.reposition(this.dialog_);this.replacedStyleTop_=true}else{this.replacedStyleTop_=false}this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling);this.focus_()},close:function(t){if(!this.dialog_.hasAttribute("open")){throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.")}this.setOpen(false);if(t!==undefined){this.dialog_.returnValue=t}var e=new d("close",{bubbles:false,cancelable:false});l(this.dialog_,e)}};var y={};y.reposition=function(t){var e=document.body.scrollTop||document.documentElement.scrollTop;var i=e+(window.innerHeight-t.offsetHeight)/2;t.style.top=Math.max(e,i)+"px"};y.isInlinePositionSetByStylesheet=function(t){for(var e=0;e<document.styleSheets.length;++e){var i=document.styleSheets[e];var o=null;try{o=i.cssRules}catch(t){}if(!o){continue}for(var n=0;n<o.length;++n){var r=o[n];var a=null;try{a=document.querySelectorAll(r.selectorText)}catch(t){}if(!a||!f(a,t)){continue}var s=r.style.getPropertyValue("top");var d=r.style.getPropertyValue("bottom");if(s&&s!=="auto"||d&&d!=="auto"){return true}}}return false};y.needsCentering=function(t){var e=window.getComputedStyle(t);if(e.position!=="absolute"){return false}if(t.style.top!=="auto"&&t.style.top!==""||t.style.bottom!=="auto"&&t.style.bottom!==""){return false}return!y.isInlinePositionSetByStylesheet(t)};y.forceRegisterDialog=function(t){if(window.HTMLDialogElement||t.showModal){console.warn("This browser already supports <dialog>, the polyfill "+"may not work correctly",t)}if(t.localName!=="dialog"){throw new Error("Failed to register dialog: The element is not a dialog.")}new w(t)};y.registerDialog=function(t){if(!t.showModal){y.forceRegisterDialog(t)}};y.DialogManager=function(){this.pendingDialogStack=[];var t=this.checkDOM_.bind(this);this.overlay=document.createElement("div");this.overlay.className="_dialog_overlay";this.overlay.addEventListener("click",function(e){this.forwardTab_=undefined;e.stopPropagation();t([])}.bind(this));this.handleKey_=this.handleKey_.bind(this);this.handleFocus_=this.handleFocus_.bind(this);this.zIndexLow_=1e5;this.zIndexHigh_=1e5+150;this.forwardTab_=undefined;if("MutationObserver"in window){this.mo_=new MutationObserver((function(e){var i=[];e.forEach((function(t){for(var e=0,o;o=t.removedNodes[e];++e){if(!(o instanceof Element)){continue}else if(o.localName==="dialog"){i.push(o)}i=i.concat(o.querySelectorAll("dialog"))}}));i.length&&t(i)}))}};y.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,true);document.addEventListener("keydown",this.handleKey_);this.mo_&&this.mo_.observe(document,{childList:true,subtree:true})};y.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,true);document.removeEventListener("keydown",this.handleKey_);this.mo_&&this.mo_.disconnect()};y.DialogManager.prototype.updateStacking=function(){var t=this.zIndexHigh_;for(var e=0,i;i=this.pendingDialogStack[e];++e){i.updateZIndex(--t,--t);if(e===0){this.overlay.style.zIndex=--t}}var o=this.pendingDialogStack[0];if(o){var n=o.dialog.parentNode||document.body;n.appendChild(this.overlay)}else if(this.overlay.parentNode){this.overlay.parentNode.removeChild(this.overlay)}};y.DialogManager.prototype.containedByTopDialog_=function(t){while(t=h(t)){for(var e=0,i;i=this.pendingDialogStack[e];++e){if(i.dialog===t){return e===0}}t=t.parentElement}return false};y.DialogManager.prototype.handleFocus_=function(t){var e=t.composedPath?t.composedPath()[0]:t.target;if(this.containedByTopDialog_(e)){return}if(document.activeElement===document.documentElement){return}t.preventDefault();t.stopPropagation();u(e);if(this.forwardTab_===undefined){return}var i=this.pendingDialogStack[0];var o=i.dialog;var n=o.compareDocumentPosition(e);if(n&Node.DOCUMENT_POSITION_PRECEDING){if(this.forwardTab_){i.focus_()}else if(e!==document.documentElement){document.documentElement.focus()}}return false};y.DialogManager.prototype.handleKey_=function(t){this.forwardTab_=undefined;if(t.keyCode===27){t.preventDefault();t.stopPropagation();var e=new d("cancel",{bubbles:false,cancelable:true});var i=this.pendingDialogStack[0];if(i&&l(i.dialog,e)){i.dialog.close()}}else if(t.keyCode===9){this.forwardTab_=!t.shiftKey}};y.DialogManager.prototype.checkDOM_=function(t){var e=this.pendingDialogStack.slice();e.forEach((function(e){if(t.indexOf(e.dialog)!==-1){e.downgradeModal()}else{e.maybeHideModal()}}))};y.DialogManager.prototype.pushDialog=function(t){var e=(this.zIndexHigh_-this.zIndexLow_)/2-1;if(this.pendingDialogStack.length>=e){return false}if(this.pendingDialogStack.unshift(t)===1){this.blockDocument()}this.updateStacking();return true};y.DialogManager.prototype.removeDialog=function(t){var e=this.pendingDialogStack.indexOf(t);if(e===-1){return}this.pendingDialogStack.splice(e,1);if(this.pendingDialogStack.length===0){this.unblockDocument()}this.updateStacking()};y.dm=new y.DialogManager;y.formSubmitter=null;y.imagemapUseValue=null;if(window.HTMLDialogElement===undefined){var k=document.createElement("form");k.setAttribute("method","dialog");if(k.method!=="dialog"){var x=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(x){var M=x.get;x.get=function(){if(m(this)){return"dialog"}return M.call(this)};var z=x.set;x.set=function(t){if(typeof t==="string"&&t.toLowerCase()==="dialog"){return this.setAttribute("method",t)}return z.call(this,t)};Object.defineProperty(HTMLFormElement.prototype,"method",x)}}document.addEventListener("click",(function(t){y.formSubmitter=null;y.imagemapUseValue=null;if(t.defaultPrevented){return}var e=t.target;if("composedPath"in t){var i=t.composedPath();e=i.shift()||e}if(!e||!m(e.form)){return}var o=e.type==="submit"&&["button","input"].indexOf(e.localName)>-1;if(!o){if(!(e.localName==="input"&&e.type==="image")){return}y.imagemapUseValue=t.offsetX+","+t.offsetY}var n=h(e);if(!n){return}y.formSubmitter=e}),false);document.addEventListener("submit",(function(t){var e=t.target;var i=h(e);if(i){return}var o=p(t);var n=o&&o.getAttribute("formmethod")||e.getAttribute("method");if(n==="dialog"){t.preventDefault()}}));var E=HTMLFormElement.prototype.submit;var C=function(){if(!m(this)){return E.call(this)}var t=h(this);t&&t.close()};HTMLFormElement.prototype.submit=C}const O=':host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>dialog{padding:0;border:none;margin:0;background-color:transparent}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::backdrop{display:none}:host>dialog+.backdrop{display:none}:host>dialog:not([open]){display:none}:host>dialog[open]{display:block}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;width:100%;height:100vh;flex-direction:column}.modal-container>.modal-content-scroll-outside{overflow:auto;background:var(--color-surface01)}.modal-container>header{padding:calc(var(--space-unit) * 2 - 2px) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-primary01-icon)}.modal-container>header>div{display:flex;width:100%;align-items:center;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header .subtitle{padding:0;margin:0;color:var(--color-default-text);font-weight:var(--font-rg)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header .subtitle{font-size:var(--font-size-3);letter-spacing:0;line-height:1.5}.modal-container>header>div>h1 *:empty{display:none}.modal-container>header h1+.subtitle{margin-top:calc(var(--space-unit) * 0.5)}.modal-container-scroll-inside>.modal-content-scroll-inside{overflow:hidden auto;flex:1 auto;background:var(--color-surface01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container-scroll-inside .modal-content-scroll-inside,.modal-container-scroll-outside .modal-content-scroll-outside{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-background{position:fixed;top:0;left:0;overflow:hidden;width:100vw;height:100vh;background-color:var(--gray900);opacity:0.7}.modal-background.modal-background-scroll-outside{position:sticky}.modal-container-scroll-inside{position:fixed;top:calc(var(--space-unit) * 6);left:50%;overflow:hidden;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container-scroll-outside{position:absolute;top:calc(var(--space-unit) * 6);left:50%;display:block;overflow:initial;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));transform:translateX(-50%)}.modal-container>.modal-content-scroll-outside{overflow:initial}.modal-container-scroll-outside>header,.modal-container-scroll-inside>header{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.modal-container-scroll-outside::after{display:block;height:calc(var(--space-unit) * 6);content:" "}.modal-dialog{position:fixed;top:0;left:0;height:auto;overflow-x:hidden;overflow-y:auto}.modal-content-scroll-outside{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.modal-dialog::-webkit-scrollbar{display:none}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 3 - 2px) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 4 - 4px) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);letter-spacing:0;line-height:1.33}.modal-container>header .subtitle{font-size:var(--font-size-4);letter-spacing:0;line-height:1.5}.modal-container>header h1+.subtitle{margin-top:0}}';const F=O;const D=':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';const T=class{constructor(i){t(this,i);this.modalClose=e(this,"modalClose",7);this.modalHeaderActive=e(this,"modalHeaderActive",7);this.modalBackgroundClick=e(this,"modalBackgroundClick",7);this.modalid=undefined;this.modaltitle=undefined;this.modalsubtitle=undefined;this.closeButtonLabel="chiudi modale";this.alertdialog=false;this.closable=true;this.scrollInside=true}emitModalClose(){if(this.closable){this.modalClose.emit({modalid:this.modalid})}}emitModalHeaderActive(){this.modalHeaderActive.emit({modalid:this.modalid})}emitBackgroundClick(){if(this.closable){this.modalBackgroundClick.emit({modalid:this.modalid})}}componentDidLoad(){if(typeof window.HTMLDialogElement!=="function"){if(!this.dialog.localName){Object.defineProperty(this.dialog,"localName",{value:"dialog"})}y.registerDialog(this.dialog);this.dialog.setAttribute("open","true")}else{this.open()}}async open(){var t;(t=this.dialog)===null||t===void 0?void 0:t.showModal()}async close(){var t;if(this.closable){(t=this.dialog)===null||t===void 0?void 0:t.close()}}get focusableElements(){return[...Array.from(this.host.shadowRoot.querySelectorAll(D)),...Array.from(this.host.querySelectorAll(D))].filter((t=>getComputedStyle(t).display!=="none"))}handleKeyDown(t){if(t.code!==n.TAB){return}const e=this.focusableElements;const i=this.host.shadowRoot.activeElement;const o=this.host.ownerDocument.activeElement;const r=e[0];const a=e[e.length-1];if(t.shiftKey&&(i==r||o==r)){t.preventDefault();a.focus()}else if(!t.shiftKey&&(i==a||o==a)){t.preventDefault();r.focus()}}closeButtonSlot(){if(this.closable){return i("slot",{name:"modalCloseButton"},i("button",{"aria-label":this.closeButtonLabel,onClick:()=>this.close()},i("z-icon",{name:"multiply-circle-filled"})))}}handleEscape(t){if(this.closable){return}t.preventDefault()}render(){return i("dialog",{key:"e2e7b6cf379e4d8a0636b926901047a752184ac8",class:{"modal-dialog":!this.scrollInside},"aria-labelledby":"modal-title","aria-describedby":"modal-content",role:this.alertdialog?"alertdialog":undefined,ref:t=>this.dialog=t,onClose:()=>this.emitModalClose(),onCancel:t=>this.handleEscape(t)},i("div",{key:"fc3170c92b4b0bb67f23fd8b00a9540b64f9583a",class:{"modal-container":true,"modal-container-scroll-inside":this.scrollInside,"modal-container-scroll-outside":!this.scrollInside},id:this.modalid},i("header",{key:"268f689959051dc304efd99dd64a4eb5ac47aa17",onClick:this.emitModalHeaderActive.bind(this)},i("div",{key:"5651d45bddad36999eddf25863a7d398cc87cf91"},this.modaltitle&&i("h1",{id:"modal-title"},this.modaltitle),this.closeButtonSlot()),this.modalsubtitle&&i("div",{class:"subtitle",id:"modal-subtitle"},this.modalsubtitle)),i("div",{key:"375fa8c15cc53534fae53912cb353b1f93190946",class:{"modal-content-scroll-inside":this.scrollInside,"modal-content-scroll-outside":!this.scrollInside},id:"modal-content"},i("slot",{key:"cb32585b3159f2acc9c15ab45635b4600ae97696",name:"modalContent"}))),i("div",{key:"8439bcbbbfe0307b31a22b1c674e3080b63e507a",class:{"modal-background":true,"modal-background-scroll-outside":!this.scrollInside},"data-action":"modalBackground","data-modal":this.modalid,onClick:()=>{this.emitBackgroundClick();this.close()}}))}get host(){return o(this)}};T.style=F;export{s as z_dragdrop_area,T as z_modal};
2
- //# sourceMappingURL=p-13e18838.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZDragdropAreaStyle0","ZDragdropArea","fileDroppedHandler","files","this","fileDropped","emit","renderOnDragOverMessage","h","class","dragAndDropLabel","render","key","tabIndex","ref","val","dragDropContainer","onDragOver","e","preventDefault","classList","add","onDragLeave","remove","onDrop","dataTransfer","length","supportCustomEvent","window","CustomEvent","event","x","ev","document","createEvent","initCustomEvent","bubbles","cancelable","detail","prototype","Event","safeDispatchEvent","target","check","type","toLowerCase","dispatchEvent","createsStackingContext","el","body","s","getComputedStyle","invalid","k","ok","undefined","opacity","position","webkitOverflowScrolling","parentElement","findNearestDialog","localName","parentNode","host","safeBlur","shadowRoot","activeElement","blur","inNodeList","nodeList","node","i","isFormMethodDialog","hasAttribute","getAttribute","findFocusableElementWithin","hostElement","opts","query","map","push","querySelector","join","Element","elems","querySelectorAll","tagName","isConnected","element","contains","findFormSubmitter","submitter","form","HTMLFormElement","dialogPolyfill","formSubmitter","root","getRootNode","maybeHandleSubmit","defaultPrevented","value","imagemapUseValue","dialog","formmethod","close","dialogPolyfillInfo","dialog_","replacedStyleTop_","openAsModal_","setAttribute","show","bind","showModal","addEventListener","returnValue","mo","MutationObserver","maybeHideModal","observe","attributes","attributeFilter","removed","cb","downgradeModal","timeout","delayModel","cand","substr","clearTimeout","setTimeout","forEach","name","Object","defineProperty","set","setOpen","get","backdrop_","createElement","className","backdropMouseEvent_","style","zIndex","top","removeChild","dm","removeDialog","removeAttribute","fake","insertBefore","firstChild","focus","redirectedEvent","initMouseEvent","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","stopPropagation","focus_","updateZIndex","dialogZ","backdropZ","Error","open","pushDialog","console","warn","needsCentering","reposition","nextSibling","opt_returnValue","closeEvent","scrollTop","documentElement","topValue","innerHeight","offsetHeight","Math","max","isInlinePositionSetByStylesheet","styleSheets","styleSheet","cssRules","j","rule","selectedNodes","selectorText","cssTop","getPropertyValue","cssBottom","computedStyle","bottom","forceRegisterDialog","HTMLDialogElement","registerDialog","DialogManager","pendingDialogStack","checkDOM","checkDOM_","overlay","forwardTab_","handleKey_","handleFocus_","zIndexLow_","zIndexHigh_","mo_","records","rec","c","removedNodes","concat","blockDocument","childList","subtree","unblockDocument","removeEventListener","disconnect","updateStacking","dpi","last","p","appendChild","containedByTopDialog_","candidate","composedPath","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","keyCode","cancelEvent","clone","slice","indexOf","allowed","unshift","index","splice","testForm","method","methodDescriptor","getOwnPropertyDescriptor","realGet","call","realSet","v","path","shift","valid","offsetX","offsetY","nativeFormSubmit","submit","replacementFormSubmit","ZModalStyle0","FOCUSABLE_ELEMENTS_SELECTOR","ZModal","emitModalClose","closable","modalClose","modalid","emitModalHeaderActive","modalHeaderActive","emitBackgroundClick","modalBackgroundClick","componentDidLoad","_a","focusableElements","Array","from","filter","display","handleKeyDown","code","KeyboardCode","TAB","shadowActiveElement","ownerDocument","firstFocusableElement","lastFocusableElement","closeButtonSlot","closeButtonLabel","onClick","handleEscape","scrollInside","role","alertdialog","onClose","onCancel","id","modaltitle","modalsubtitle"],"sources":["src/components/file-upload/z-dragdrop-area/styles.css?tag=z-dragdrop-area&encapsulation=shadow","src/components/file-upload/z-dragdrop-area/index.tsx","node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js","src/components/modal/z-modal/styles.css?tag=z-modal&encapsulation=shadow","src/components/modal/z-modal/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > .dragdrop {\n position: relative;\n display: flex;\n height: 228px;\n flex-direction: column;\n padding: calc(var(--space-unit) * 2);\n border-color: var(--color-surface04);\n background-color: var(--color-surface02);\n\n /* Native CSS properties don't support the customization of border-style.\n Therefore, we use a trick with an SVG image inside background-image property.\n The SVG features give us the ability to change the distance between dashed lines, set custom pattern, add dash offset or even change a line cap.\n Generated SVG image is vector and it fills width and height of elements by 100%, so it doesn't matter what size elements have. */\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");\n border-radius: 2px;\n color: var(--color-default-text);\n}\n\n/* https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element */\n:host > .dragdrop.dragover * {\n pointer-events: none;\n}\n\n:host > .dragdrop .dragover-container {\n position: absolute;\n z-index: 10;\n top: 0;\n left: 0;\n display: none;\n width: 100%;\n height: 100%;\n background-color: var(--color-primary03);\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host > .dragdrop .dragover-container .dragover-message {\n padding: 10px 28px;\n background-color: var(--color-link-primary);\n color: var(--color-text-inverse);\n}\n\n:host > .dragdrop.dragover .dragover-container {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n","import {Component, h, Event, EventEmitter, Prop} from \"@stencil/core\";\n\n@Component({\n tag: \"z-dragdrop-area\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZDragdropArea {\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel: string;\n\n /** Emitted when user drop one or more files */\n @Event()\n fileDropped: EventEmitter;\n\n private fileDroppedHandler(files: FileList): void {\n this.fileDropped.emit(files);\n }\n\n private dragDropContainer: HTMLDivElement;\n\n private renderOnDragOverMessage(): HTMLDivElement {\n return (\n <div class=\"dragover-container\">\n <div class=\"dragover-message\">\n <span class=\"body-2-sb\">{this.dragAndDropLabel}</span>\n </div>\n </div>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div\n tabIndex={0}\n ref={(val) => (this.dragDropContainer = val)}\n class=\"dragdrop\"\n onDragOver={(e) => {\n e.preventDefault();\n this.dragDropContainer.classList.add(\"dragover\");\n }}\n onDragLeave={() => {\n this.dragDropContainer.classList.remove(\"dragover\");\n }}\n onDrop={(e) => {\n e.preventDefault();\n if (e.dataTransfer.files.length) {\n this.dragDropContainer.classList.remove(\"dragover\");\n this.fileDroppedHandler(e.dataTransfer.files);\n }\n }}\n >\n {this.renderOnDragOverMessage()}\n <slot />\n </div>\n );\n }\n}\n","// nb. This is for IE10 and lower _only_.\nvar supportCustomEvent = window.CustomEvent;\nif (!supportCustomEvent || typeof supportCustomEvent === 'object') {\n supportCustomEvent = function CustomEvent(event, x) {\n x = x || {};\n var ev = document.createEvent('CustomEvent');\n ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);\n return ev;\n };\n supportCustomEvent.prototype = window.Event.prototype;\n}\n\n/**\n * Dispatches the passed event to both an \"on<type>\" handler as well as via the\n * normal dispatch operation. Does not bubble.\n *\n * @param {!EventTarget} target\n * @param {!Event} event\n * @return {boolean}\n */\nfunction safeDispatchEvent(target, event) {\n var check = 'on' + event.type.toLowerCase();\n if (typeof target[check] === 'function') {\n target[check](event);\n }\n return target.dispatchEvent(event);\n}\n\n/**\n * @param {Element} el to check for stacking context\n * @return {boolean} whether this el or its parents creates a stacking context\n */\nfunction createsStackingContext(el) {\n while (el && el !== document.body) {\n var s = window.getComputedStyle(el);\n var invalid = function(k, ok) {\n return !(s[k] === undefined || s[k] === ok);\n };\n\n if (s.opacity < 1 ||\n invalid('zIndex', 'auto') ||\n invalid('transform', 'none') ||\n invalid('mixBlendMode', 'normal') ||\n invalid('filter', 'none') ||\n invalid('perspective', 'none') ||\n s['isolation'] === 'isolate' ||\n s.position === 'fixed' ||\n s.webkitOverflowScrolling === 'touch') {\n return true;\n }\n el = el.parentElement;\n }\n return false;\n}\n\n/**\n * Finds the nearest <dialog> from the passed element.\n *\n * @param {Element} el to search from\n * @return {HTMLDialogElement} dialog found\n */\nfunction findNearestDialog(el) {\n while (el) {\n if (el.localName === 'dialog') {\n return /** @type {HTMLDialogElement} */ (el);\n }\n if (el.parentElement) {\n el = el.parentElement;\n } else if (el.parentNode) {\n el = el.parentNode.host;\n } else {\n el = null;\n }\n }\n return null;\n}\n\n/**\n * Blur the specified element, as long as it's not the HTML body element.\n * This works around an IE9/10 bug - blurring the body causes Windows to\n * blur the whole application.\n *\n * @param {Element} el to blur\n */\nfunction safeBlur(el) {\n // Find the actual focused element when the active element is inside a shadow root\n while (el && el.shadowRoot && el.shadowRoot.activeElement) {\n el = el.shadowRoot.activeElement;\n }\n\n if (el && el.blur && el !== document.body) {\n el.blur();\n }\n}\n\n/**\n * @param {!NodeList} nodeList to search\n * @param {Node} node to find\n * @return {boolean} whether node is inside nodeList\n */\nfunction inNodeList(nodeList, node) {\n for (var i = 0; i < nodeList.length; ++i) {\n if (nodeList[i] === node) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * @param {HTMLFormElement} el to check\n * @return {boolean} whether this form has method=\"dialog\"\n */\nfunction isFormMethodDialog(el) {\n if (!el || !el.hasAttribute('method')) {\n return false;\n }\n return el.getAttribute('method').toLowerCase() === 'dialog';\n}\n\n/**\n * @param {!DocumentFragment|!Element} hostElement\n * @return {?Element}\n */\nfunction findFocusableElementWithin(hostElement) {\n // Note that this is 'any focusable area'. This list is probably not exhaustive, but the\n // alternative involves stepping through and trying to focus everything.\n var opts = ['button', 'input', 'keygen', 'select', 'textarea'];\n var query = opts.map(function(el) {\n return el + ':not([disabled])';\n });\n // TODO(samthor): tabindex values that are not numeric are not focusable.\n query.push('[tabindex]:not([disabled]):not([tabindex=\"\"])'); // tabindex != \"\", not disabled\n var target = hostElement.querySelector(query.join(', '));\n\n if (!target && 'attachShadow' in Element.prototype) {\n // If we haven't found a focusable target, see if the host element contains an element\n // which has a shadowRoot.\n // Recursively search for the first focusable item in shadow roots.\n var elems = hostElement.querySelectorAll('*');\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].tagName && elems[i].shadowRoot) {\n target = findFocusableElementWithin(elems[i].shadowRoot);\n if (target) {\n break;\n }\n }\n }\n }\n return target;\n}\n\n/**\n * Determines if an element is attached to the DOM.\n * @param {Element} element to check\n * @return {boolean} whether the element is in DOM\n */\nfunction isConnected(element) {\n return element.isConnected || document.body.contains(element);\n}\n\n/**\n * @param {!Event} event\n * @return {?Element}\n */\nfunction findFormSubmitter(event) {\n if (event.submitter) {\n return event.submitter;\n }\n\n var form = event.target;\n if (!(form instanceof HTMLFormElement)) {\n return null;\n }\n\n var submitter = dialogPolyfill.formSubmitter;\n if (!submitter) {\n var target = event.target;\n var root = ('getRootNode' in target && target.getRootNode() || document);\n submitter = root.activeElement;\n }\n\n if (!submitter || submitter.form !== form) {\n return null;\n }\n return submitter;\n}\n\n/**\n * @param {!Event} event\n */\nfunction maybeHandleSubmit(event) {\n if (event.defaultPrevented) {\n return;\n }\n var form = /** @type {!HTMLFormElement} */ (event.target);\n\n // We'd have a value if we clicked on an imagemap.\n var value = dialogPolyfill.imagemapUseValue;\n var submitter = findFormSubmitter(event);\n if (value === null && submitter) {\n value = submitter.value;\n }\n\n // There should always be a dialog as this handler is added specifically on them, but check just\n // in case.\n var dialog = findNearestDialog(form);\n if (!dialog) {\n return;\n }\n\n // Prefer formmethod on the button.\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod !== 'dialog') {\n return;\n }\n event.preventDefault();\n\n if (value != null) {\n // nb. we explicitly check against null/undefined\n dialog.close(value);\n } else {\n dialog.close();\n }\n}\n\n/**\n * @param {!HTMLDialogElement} dialog to upgrade\n * @constructor\n */\nfunction dialogPolyfillInfo(dialog) {\n this.dialog_ = dialog;\n this.replacedStyleTop_ = false;\n this.openAsModal_ = false;\n\n // Set a11y role. Browsers that support dialog implicitly know this already.\n if (!dialog.hasAttribute('role')) {\n dialog.setAttribute('role', 'dialog');\n }\n\n dialog.show = this.show.bind(this);\n dialog.showModal = this.showModal.bind(this);\n dialog.close = this.close.bind(this);\n\n dialog.addEventListener('submit', maybeHandleSubmit, false);\n\n if (!('returnValue' in dialog)) {\n dialog.returnValue = '';\n }\n\n if ('MutationObserver' in window) {\n var mo = new MutationObserver(this.maybeHideModal.bind(this));\n mo.observe(dialog, {attributes: true, attributeFilter: ['open']});\n } else {\n // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also\n // seem to fire even if the element was removed as part of a parent removal. Use the removed\n // events to force downgrade (useful if removed/immediately added).\n var removed = false;\n var cb = function() {\n removed ? this.downgradeModal() : this.maybeHideModal();\n removed = false;\n }.bind(this);\n var timeout;\n var delayModel = function(ev) {\n if (ev.target !== dialog) { return; } // not for a child element\n var cand = 'DOMNodeRemoved';\n removed |= (ev.type.substr(0, cand.length) === cand);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(cb, 0);\n };\n ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {\n dialog.addEventListener(name, delayModel);\n });\n }\n // Note that the DOM is observed inside DialogManager while any dialog\n // is being displayed as a modal, to catch modal removal from the DOM.\n\n Object.defineProperty(dialog, 'open', {\n set: this.setOpen.bind(this),\n get: dialog.hasAttribute.bind(dialog, 'open')\n });\n\n this.backdrop_ = document.createElement('div');\n this.backdrop_.className = 'backdrop';\n this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));\n}\n\ndialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({\n\n get dialog() {\n return this.dialog_;\n },\n\n /**\n * Maybe remove this dialog from the modal top layer. This is called when\n * a modal dialog may no longer be tenable, e.g., when the dialog is no\n * longer open or is no longer part of the DOM.\n */\n maybeHideModal: function() {\n if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }\n this.downgradeModal();\n },\n\n /**\n * Remove this dialog from the modal top layer, leaving it as a non-modal.\n */\n downgradeModal: function() {\n if (!this.openAsModal_) { return; }\n this.openAsModal_ = false;\n this.dialog_.style.zIndex = '';\n\n // This won't match the native <dialog> exactly because if the user set top on a centered\n // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's\n // possible to polyfill this perfectly.\n if (this.replacedStyleTop_) {\n this.dialog_.style.top = '';\n this.replacedStyleTop_ = false;\n }\n\n // Clear the backdrop and remove from the manager.\n this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);\n dialogPolyfill.dm.removeDialog(this);\n },\n\n /**\n * @param {boolean} value whether to open or close this dialog\n */\n setOpen: function(value) {\n if (value) {\n this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');\n } else {\n this.dialog_.removeAttribute('open');\n this.maybeHideModal(); // nb. redundant with MutationObserver\n }\n },\n\n /**\n * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if\n * they were on the dialog itself.\n *\n * @param {!Event} e to redirect\n */\n backdropMouseEvent_: function(e) {\n if (!this.dialog_.hasAttribute('tabindex')) {\n // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be\n // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this\n // would not be needed - clicks would move the implicit cursor there.\n var fake = document.createElement('div');\n this.dialog_.insertBefore(fake, this.dialog_.firstChild);\n fake.tabIndex = -1;\n fake.focus();\n this.dialog_.removeChild(fake);\n } else {\n this.dialog_.focus();\n }\n\n var redirectedEvent = document.createEvent('MouseEvents');\n redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,\n e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,\n e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);\n this.dialog_.dispatchEvent(redirectedEvent);\n e.stopPropagation();\n },\n\n /**\n * Focuses on the first focusable element within the dialog. This will always blur the current\n * focus, even if nothing within the dialog is found.\n */\n focus_: function() {\n // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.\n var target = this.dialog_.querySelector('[autofocus]:not([disabled])');\n if (!target && this.dialog_.tabIndex >= 0) {\n target = this.dialog_;\n }\n if (!target) {\n target = findFocusableElementWithin(this.dialog_);\n }\n safeBlur(document.activeElement);\n target && target.focus();\n },\n\n /**\n * Sets the zIndex for the backdrop and dialog.\n *\n * @param {number} dialogZ\n * @param {number} backdropZ\n */\n updateZIndex: function(dialogZ, backdropZ) {\n if (dialogZ < backdropZ) {\n throw new Error('dialogZ should never be < backdropZ');\n }\n this.dialog_.style.zIndex = dialogZ;\n this.backdrop_.style.zIndex = backdropZ;\n },\n\n /**\n * Shows the dialog. If the dialog is already open, this does nothing.\n */\n show: function() {\n if (!this.dialog_.open) {\n this.setOpen(true);\n this.focus_();\n }\n },\n\n /**\n * Show this dialog modally.\n */\n showModal: function() {\n if (this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is already open, and therefore cannot be opened modally.');\n }\n if (!isConnected(this.dialog_)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is not in a Document.');\n }\n if (!dialogPolyfill.dm.pushDialog(this)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: There are too many open modal dialogs.');\n }\n\n if (createsStackingContext(this.dialog_.parentElement)) {\n console.warn('A dialog is being shown inside a stacking context. ' +\n 'This may cause it to be unusable. For more information, see this link: ' +\n 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');\n }\n\n this.setOpen(true);\n this.openAsModal_ = true;\n\n // Optionally center vertically, relative to the current viewport.\n if (dialogPolyfill.needsCentering(this.dialog_)) {\n dialogPolyfill.reposition(this.dialog_);\n this.replacedStyleTop_ = true;\n } else {\n this.replacedStyleTop_ = false;\n }\n\n // Insert backdrop.\n this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);\n\n // Focus on whatever inside the dialog.\n this.focus_();\n },\n\n /**\n * Closes this HTMLDialogElement. This is optional vs clearing the open\n * attribute, however this fires a 'close' event.\n *\n * @param {string=} opt_returnValue to use as the returnValue\n */\n close: function(opt_returnValue) {\n if (!this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'close\\' on dialog: The element does not have an \\'open\\' attribute, and therefore cannot be closed.');\n }\n this.setOpen(false);\n\n // Leave returnValue untouched in case it was set directly on the element\n if (opt_returnValue !== undefined) {\n this.dialog_.returnValue = opt_returnValue;\n }\n\n // Triggering \"close\" event for any attached listeners on the <dialog>.\n var closeEvent = new supportCustomEvent('close', {\n bubbles: false,\n cancelable: false\n });\n safeDispatchEvent(this.dialog_, closeEvent);\n }\n\n});\n\nvar dialogPolyfill = {};\n\ndialogPolyfill.reposition = function(element) {\n var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;\n var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;\n element.style.top = Math.max(scrollTop, topValue) + 'px';\n};\n\ndialogPolyfill.isInlinePositionSetByStylesheet = function(element) {\n for (var i = 0; i < document.styleSheets.length; ++i) {\n var styleSheet = document.styleSheets[i];\n var cssRules = null;\n // Some browsers throw on cssRules.\n try {\n cssRules = styleSheet.cssRules;\n } catch (e) {}\n if (!cssRules) { continue; }\n for (var j = 0; j < cssRules.length; ++j) {\n var rule = cssRules[j];\n var selectedNodes = null;\n // Ignore errors on invalid selector texts.\n try {\n selectedNodes = document.querySelectorAll(rule.selectorText);\n } catch(e) {}\n if (!selectedNodes || !inNodeList(selectedNodes, element)) {\n continue;\n }\n var cssTop = rule.style.getPropertyValue('top');\n var cssBottom = rule.style.getPropertyValue('bottom');\n if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {\n return true;\n }\n }\n }\n return false;\n};\n\ndialogPolyfill.needsCentering = function(dialog) {\n var computedStyle = window.getComputedStyle(dialog);\n if (computedStyle.position !== 'absolute') {\n return false;\n }\n\n // We must determine whether the top/bottom specified value is non-auto. In\n // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but\n // Firefox returns the used value. So we do this crazy thing instead: check\n // the inline style and then go through CSS rules.\n if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||\n (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {\n return false;\n }\n return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);\n};\n\n/**\n * @param {!Element} element to force upgrade\n */\ndialogPolyfill.forceRegisterDialog = function(element) {\n if (window.HTMLDialogElement || element.showModal) {\n console.warn('This browser already supports <dialog>, the polyfill ' +\n 'may not work correctly', element);\n }\n if (element.localName !== 'dialog') {\n throw new Error('Failed to register dialog: The element is not a dialog.');\n }\n new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));\n};\n\n/**\n * @param {!Element} element to upgrade, if necessary\n */\ndialogPolyfill.registerDialog = function(element) {\n if (!element.showModal) {\n dialogPolyfill.forceRegisterDialog(element);\n }\n};\n\n/**\n * @constructor\n */\ndialogPolyfill.DialogManager = function() {\n /** @type {!Array<!dialogPolyfillInfo>} */\n this.pendingDialogStack = [];\n\n var checkDOM = this.checkDOM_.bind(this);\n\n // The overlay is used to simulate how a modal dialog blocks the document.\n // The blocking dialog is positioned on top of the overlay, and the rest of\n // the dialogs on the pending dialog stack are positioned below it. In the\n // actual implementation, the modal dialog stacking is controlled by the\n // top layer, where z-index has no effect.\n this.overlay = document.createElement('div');\n this.overlay.className = '_dialog_overlay';\n this.overlay.addEventListener('click', function(e) {\n this.forwardTab_ = undefined;\n e.stopPropagation();\n checkDOM([]); // sanity-check DOM\n }.bind(this));\n\n this.handleKey_ = this.handleKey_.bind(this);\n this.handleFocus_ = this.handleFocus_.bind(this);\n\n this.zIndexLow_ = 100000;\n this.zIndexHigh_ = 100000 + 150;\n\n this.forwardTab_ = undefined;\n\n if ('MutationObserver' in window) {\n this.mo_ = new MutationObserver(function(records) {\n var removed = [];\n records.forEach(function(rec) {\n for (var i = 0, c; c = rec.removedNodes[i]; ++i) {\n if (!(c instanceof Element)) {\n continue;\n } else if (c.localName === 'dialog') {\n removed.push(c);\n }\n removed = removed.concat(c.querySelectorAll('dialog'));\n }\n });\n removed.length && checkDOM(removed);\n });\n }\n};\n\n/**\n * Called on the first modal dialog being shown. Adds the overlay and related\n * handlers.\n */\ndialogPolyfill.DialogManager.prototype.blockDocument = function() {\n document.documentElement.addEventListener('focus', this.handleFocus_, true);\n document.addEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});\n};\n\n/**\n * Called on the first modal dialog being removed, i.e., when no more modal\n * dialogs are visible.\n */\ndialogPolyfill.DialogManager.prototype.unblockDocument = function() {\n document.documentElement.removeEventListener('focus', this.handleFocus_, true);\n document.removeEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.disconnect();\n};\n\n/**\n * Updates the stacking of all known dialogs.\n */\ndialogPolyfill.DialogManager.prototype.updateStacking = function() {\n var zIndex = this.zIndexHigh_;\n\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n dpi.updateZIndex(--zIndex, --zIndex);\n if (i === 0) {\n this.overlay.style.zIndex = --zIndex;\n }\n }\n\n // Make the overlay a sibling of the dialog itself.\n var last = this.pendingDialogStack[0];\n if (last) {\n var p = last.dialog.parentNode || document.body;\n p.appendChild(this.overlay);\n } else if (this.overlay.parentNode) {\n this.overlay.parentNode.removeChild(this.overlay);\n }\n};\n\n/**\n * @param {Element} candidate to check if contained or is the top-most modal dialog\n * @return {boolean} whether candidate is contained in top dialog\n */\ndialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {\n while (candidate = findNearestDialog(candidate)) {\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n if (dpi.dialog === candidate) {\n return i === 0; // only valid if top-most\n }\n }\n candidate = candidate.parentElement;\n }\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n\n if (this.containedByTopDialog_(target)) { return; }\n\n if (document.activeElement === document.documentElement) { return; }\n\n event.preventDefault();\n event.stopPropagation();\n safeBlur(/** @type {Element} */ (target));\n\n if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key\n\n var dpi = this.pendingDialogStack[0];\n var dialog = dpi.dialog;\n var position = dialog.compareDocumentPosition(target);\n if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n if (this.forwardTab_) {\n // forward\n dpi.focus_();\n } else if (target !== document.documentElement) {\n // backwards if we're not already focused on <html>\n document.documentElement.focus();\n }\n }\n\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {\n this.forwardTab_ = undefined;\n if (event.keyCode === 27) {\n event.preventDefault();\n event.stopPropagation();\n var cancelEvent = new supportCustomEvent('cancel', {\n bubbles: false,\n cancelable: true\n });\n var dpi = this.pendingDialogStack[0];\n if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {\n dpi.dialog.close();\n }\n } else if (event.keyCode === 9) {\n this.forwardTab_ = !event.shiftKey;\n }\n};\n\n/**\n * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are\n * removed and immediately readded don't stay modal, they become normal.\n *\n * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed\n */\ndialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {\n // This operates on a clone because it may cause it to change. Each change also calls\n // updateStacking, which only actually needs to happen once. But who removes many modal dialogs\n // at a time?!\n var clone = this.pendingDialogStack.slice();\n clone.forEach(function(dpi) {\n if (removed.indexOf(dpi.dialog) !== -1) {\n dpi.downgradeModal();\n } else {\n dpi.maybeHideModal();\n }\n });\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n * @return {boolean} whether the dialog was allowed\n */\ndialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {\n var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;\n if (this.pendingDialogStack.length >= allowed) {\n return false;\n }\n if (this.pendingDialogStack.unshift(dpi) === 1) {\n this.blockDocument();\n }\n this.updateStacking();\n return true;\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n */\ndialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {\n var index = this.pendingDialogStack.indexOf(dpi);\n if (index === -1) { return; }\n\n this.pendingDialogStack.splice(index, 1);\n if (this.pendingDialogStack.length === 0) {\n this.unblockDocument();\n }\n this.updateStacking();\n};\n\ndialogPolyfill.dm = new dialogPolyfill.DialogManager();\ndialogPolyfill.formSubmitter = null;\ndialogPolyfill.imagemapUseValue = null;\n\n/**\n * Installs global handlers, such as click listers and native method overrides. These are needed\n * even if a no dialog is registered, as they deal with <form method=\"dialog\">.\n */\nif (window.HTMLDialogElement === undefined) {\n\n /**\n * If HTMLFormElement translates method=\"DIALOG\" into 'get', then replace the descriptor with\n * one that returns the correct value.\n */\n var testForm = document.createElement('form');\n testForm.setAttribute('method', 'dialog');\n if (testForm.method !== 'dialog') {\n var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');\n if (methodDescriptor) {\n // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything\n // and don't bother to update the element.\n var realGet = methodDescriptor.get;\n methodDescriptor.get = function() {\n if (isFormMethodDialog(this)) {\n return 'dialog';\n }\n return realGet.call(this);\n };\n var realSet = methodDescriptor.set;\n /** @this {HTMLElement} */\n methodDescriptor.set = function(v) {\n if (typeof v === 'string' && v.toLowerCase() === 'dialog') {\n return this.setAttribute('method', v);\n }\n return realSet.call(this, v);\n };\n Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);\n }\n }\n\n /**\n * Global 'click' handler, to capture the <input type=\"submit\"> or <button> element which has\n * submitted a <form method=\"dialog\">. Needed as Safari and others don't report this inside\n * document.activeElement.\n */\n document.addEventListener('click', function(ev) {\n dialogPolyfill.formSubmitter = null;\n dialogPolyfill.imagemapUseValue = null;\n if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission\n\n var target = /** @type {Element} */ (ev.target);\n if ('composedPath' in ev) {\n var path = ev.composedPath();\n target = path.shift() || target;\n }\n if (!target || !isFormMethodDialog(target.form)) { return; }\n\n var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);\n if (!valid) {\n if (!(target.localName === 'input' && target.type === 'image')) { return; }\n // this is a <input type=\"image\">, which can submit forms\n dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;\n }\n\n var dialog = findNearestDialog(target);\n if (!dialog) { return; }\n\n dialogPolyfill.formSubmitter = target;\n\n }, false);\n\n /**\n * Global 'submit' handler. This handles submits of `method=\"dialog\"` which are invalid, i.e.,\n * outside a dialog. They get prevented.\n */\n document.addEventListener('submit', function(ev) {\n var form = ev.target;\n var dialog = findNearestDialog(form);\n if (dialog) {\n return; // ignore, handle there\n }\n\n var submitter = findFormSubmitter(ev);\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod === 'dialog') {\n ev.preventDefault();\n }\n });\n\n /**\n * Replace the native HTMLFormElement.submit() method, as it won't fire the\n * submit event and give us a chance to respond.\n */\n var nativeFormSubmit = HTMLFormElement.prototype.submit;\n var replacementFormSubmit = function () {\n if (!isFormMethodDialog(this)) {\n return nativeFormSubmit.call(this);\n }\n var dialog = findNearestDialog(this);\n dialog && dialog.close();\n };\n HTMLFormElement.prototype.submit = replacementFormSubmit;\n}\n\nexport default dialogPolyfill;\n",":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > dialog {\n padding: 0;\n border: none;\n margin: 0;\n background-color: transparent;\n}\n\n/* stylelint-disable selector-pseudo-class-no-unknown */\n:host > dialog:modal {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n}\n\n:host > dialog::backdrop {\n display: none;\n}\n\n/* polyfill style */\n:host > dialog + .backdrop {\n display: none;\n}\n\n:host > dialog:not([open]) {\n display: none;\n}\n\n:host > dialog[open] {\n display: block;\n}\n\n.modal-container {\n z-index: 1010;\n display: flex;\n overflow: -moz-scrollbars-none;\n width: 100%;\n height: 100vh;\n flex-direction: column;\n}\n\n.modal-container > .modal-content-scroll-outside {\n overflow: auto;\n background: var(--color-surface01);\n}\n\n.modal-container > header {\n padding: calc(var(--space-unit) * 2 - 2px) calc(var(--space-unit) * 2);\n background: var(--color-surface02);\n}\n\n.modal-container > header button {\n padding: 0;\n border: none;\n margin: 0;\n margin-left: auto;\n background: transparent;\n cursor: pointer;\n}\n\n.modal-container > header z-icon {\n --z-icon-width: calc(var(--space-unit) * 2.5);\n --z-icon-height: calc(var(--space-unit) * 2.5);\n\n display: flex;\n fill: var(--color-primary01-icon);\n}\n\n.modal-container > header > div {\n display: flex;\n width: 100%;\n align-items: center;\n margin-right: calc(var(--space-unit) * 2);\n}\n\n.modal-container > header h1,\n.modal-container > header .subtitle {\n padding: 0;\n margin: 0;\n color: var(--color-default-text);\n font-weight: var(--font-rg);\n}\n\n.modal-container > header h1 {\n font-size: var(--font-size-5);\n letter-spacing: 0;\n line-height: 1.4;\n}\n\n.modal-container > header .subtitle {\n font-size: var(--font-size-3);\n letter-spacing: 0;\n line-height: 1.5;\n}\n\n.modal-container > header > div > h1 *:empty {\n display: none;\n}\n\n.modal-container > header h1 + .subtitle {\n margin-top: calc(var(--space-unit) * 0.5);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside {\n overflow: hidden auto;\n flex: 1 auto;\n background: var(--color-surface01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar {\n width: 10px;\n background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);\n border-radius: var(--border-radius);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb {\n width: 10px;\n background-color: var(--color-primary01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-hover-primary);\n}\n\n/* Firefox */\n.modal-container-scroll-inside .modal-content-scroll-inside,\n.modal-container-scroll-outside .modal-content-scroll-outside {\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n/* Tablet / Desktop */\n@media only screen and (min-width: 768px) {\n .modal-background {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n width: 100vw;\n height: 100vh;\n background-color: var(--gray900);\n opacity: 0.7;\n }\n\n .modal-background.modal-background-scroll-outside {\n position: sticky;\n }\n\n .modal-container-scroll-inside {\n position: fixed;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n overflow: hidden;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n border-radius: var(--border-radius);\n transform: translateX(-50%);\n }\n\n .modal-container-scroll-outside {\n position: absolute;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n display: block;\n overflow: initial;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n transform: translateX(-50%);\n }\n\n .modal-container > .modal-content-scroll-outside {\n overflow: initial;\n }\n\n .modal-container-scroll-outside > header,\n .modal-container-scroll-inside > header {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n\n .modal-container-scroll-outside::after {\n display: block;\n height: calc(var(--space-unit) * 6);\n content: \" \";\n }\n\n .modal-dialog {\n position: fixed;\n top: 0;\n left: 0;\n height: auto;\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .modal-content-scroll-outside {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n\n .modal-dialog::-webkit-scrollbar {\n display: none;\n }\n\n .modal-container > header z-icon {\n --z-icon-width: calc(var(--space-unit) * 3);\n --z-icon-height: calc(var(--space-unit) * 3);\n }\n}\n\n/* Tablet */\n@media only screen and (min-width: 768px) and (max-width: 1151px) {\n .modal-container > header {\n padding: calc(var(--space-unit) * 3 - 2px) calc(var(--space-unit) * 3);\n }\n}\n\n/* Desktop */\n@media only screen and (min-width: 1152px) {\n .modal-container > header {\n padding: calc(var(--space-unit) * 4 - 4px) calc(var(--space-unit) * 4);\n }\n\n .modal-container > header h1 {\n font-size: var(--font-size-6);\n letter-spacing: 0;\n line-height: 1.33;\n }\n\n .modal-container > header .subtitle {\n font-size: var(--font-size-4);\n letter-spacing: 0;\n line-height: 1.5;\n }\n\n .modal-container > header h1 + .subtitle {\n margin-top: 0;\n }\n}\n","import {Component, Prop, h, Event, EventEmitter, Method, Element, Listen} from \"@stencil/core\";\nimport dialogPolyfill from \"dialog-polyfill\";\nimport {KeyboardCode} from \"../../../beans\";\n\nconst FOCUSABLE_ELEMENTS_SELECTOR =\n ':is(button, input, select, textarea, [contenteditable=\"\"], [contenteditable=\"true\"], a[href], [tabindex], summary):not([disabled], [disabled=\"\"], [tabindex=\"-1\"], [aria-hidden=\"true\"], [hidden])';\n\n/**\n * @slot modalCloseButton - accept custom close button\n * @slot modalContent - set the content of the modal\n */\n@Component({\n tag: \"z-modal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZModal {\n /** unique id */\n @Prop()\n modalid: string;\n\n /** title text (optional) */\n @Prop()\n modaltitle?: string;\n\n /** subtitle (optional) */\n @Prop()\n modalsubtitle?: string;\n\n /** aria-label for close button (optional) */\n @Prop()\n closeButtonLabel = \"chiudi modale\";\n\n /** add role \"alertdialog\" to dialog (optional, default is false) */\n @Prop()\n alertdialog?: boolean = false;\n\n /** if true, the modal is closable (optional, default is true) */\n @Prop()\n closable?: boolean = true;\n\n /** if true, the modal can scroll inside, if false the viewport can scroll */\n @Prop()\n scrollInside?: boolean = true;\n\n private dialog: HTMLDialogElement;\n\n @Element() host: HTMLZModalElement;\n\n /** emitted on close button click, returns modalid */\n @Event()\n modalClose: EventEmitter;\n\n private emitModalClose(): void {\n if (this.closable) {\n this.modalClose.emit({modalid: this.modalid});\n }\n }\n\n /** emitted on modal header click, returns modalid */\n @Event()\n modalHeaderActive: EventEmitter;\n\n private emitModalHeaderActive(): void {\n this.modalHeaderActive.emit({modalid: this.modalid});\n }\n\n /** emitted on background click, returns modalid */\n @Event()\n modalBackgroundClick: EventEmitter;\n\n private emitBackgroundClick(): void {\n if (this.closable) {\n this.modalBackgroundClick.emit({modalid: this.modalid});\n }\n }\n\n componentDidLoad(): void {\n if (typeof window.HTMLDialogElement !== \"function\") {\n /* workaround to fix `registerDialog` in test environment:\n stencil converts html elements to MockHTMLElement but this element is missing the `localName` property,\n which is used by `registerDialog` to recognize the element as dialog */\n if (!this.dialog.localName) {\n Object.defineProperty(this.dialog, \"localName\", {value: \"dialog\"});\n }\n dialogPolyfill.registerDialog(this.dialog);\n this.dialog.setAttribute(\"open\", \"true\");\n } else {\n this.open();\n }\n }\n\n /** open modal */\n @Method()\n async open(): Promise<void> {\n this.dialog?.showModal();\n }\n\n /** close modal */\n @Method()\n async close(): Promise<void> {\n if (this.closable) {\n this.dialog?.close();\n }\n }\n\n /**\n * Get a list of focusable elements in the dialog.\n * Remove elements with `display: none` from the list, because they're not focusable.\n *\n * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.\n * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.\n */\n private get focusableElements(): HTMLElement[] {\n return [\n ...Array.from(this.host.shadowRoot.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ...Array.from(this.host.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ].filter((element) => getComputedStyle(element).display !== \"none\");\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code !== KeyboardCode.TAB) {\n return;\n }\n\n const focusableElements = this.focusableElements;\n const shadowActiveElement = this.host.shadowRoot.activeElement;\n const activeElement = this.host.ownerDocument.activeElement;\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n lastFocusableElement.focus();\n } else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n firstFocusableElement.focus();\n }\n }\n\n private closeButtonSlot(): HTMLElement | void {\n if (this.closable) {\n return (\n <slot name=\"modalCloseButton\">\n <button\n aria-label={this.closeButtonLabel}\n onClick={() => this.close()}\n >\n <z-icon name=\"multiply-circle-filled\"></z-icon>\n </button>\n </slot>\n );\n }\n }\n\n private handleEscape(e: Event): void {\n if (this.closable) {\n return;\n }\n e.preventDefault();\n }\n\n render(): HTMLZModalElement {\n return (\n <dialog\n class={{\n \"modal-dialog\": !this.scrollInside,\n }}\n aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\"\n role={this.alertdialog ? \"alertdialog\" : undefined}\n ref={(el) => (this.dialog = el as HTMLDialogElement)}\n onClose={() => this.emitModalClose()}\n onCancel={(e) => this.handleEscape(e)}\n >\n <div\n class={{\n \"modal-container\": true,\n \"modal-container-scroll-inside\": this.scrollInside,\n \"modal-container-scroll-outside\": !this.scrollInside,\n }}\n id={this.modalid}\n >\n <header onClick={this.emitModalHeaderActive.bind(this)}>\n <div>\n {this.modaltitle && <h1 id=\"modal-title\">{this.modaltitle}</h1>}\n {this.closeButtonSlot()}\n </div>\n {this.modalsubtitle && (\n <div\n class=\"subtitle\"\n id=\"modal-subtitle\"\n >\n {this.modalsubtitle}\n </div>\n )}\n </header>\n\n <div\n class={{\n \"modal-content-scroll-inside\": this.scrollInside,\n \"modal-content-scroll-outside\": !this.scrollInside,\n }}\n id=\"modal-content\"\n >\n <slot name=\"modalContent\"></slot>\n </div>\n </div>\n <div\n class={{\n \"modal-background\": true,\n \"modal-background-scroll-outside\": !this.scrollInside,\n }}\n data-action=\"modalBackground\"\n data-modal={this.modalid}\n onClick={() => {\n this.emitBackgroundClick();\n this.close();\n }}\n ></div>\n </dialog>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAY,smCAClB,MAAAC,EAAeD,E,MCMFE,EAAa,M,kGAShB,kBAAAC,CAAmBC,GACzBC,KAAKC,YAAYC,KAAKH,E,CAKhB,uBAAAI,GACN,OACEC,EAAA,OAAKC,MAAM,sBACTD,EAAA,OAAKC,MAAM,oBACTD,EAAA,QAAMC,MAAM,aAAaL,KAAKM,mB,CAMtC,MAAAC,GACE,OACEH,EAAA,OAAAI,IAAA,2CACEC,SAAU,EACVC,IAAMC,GAASX,KAAKY,kBAAoBD,EACxCN,MAAM,WACNQ,WAAaC,IACXA,EAAEC,iBACFf,KAAKY,kBAAkBI,UAAUC,IAAI,WAAW,EAElDC,YAAa,KACXlB,KAAKY,kBAAkBI,UAAUG,OAAO,WAAW,EAErDC,OAASN,IACP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,eAAenS,KAAKoS,YAC9CpS,KAAK0R,mBAEP1R,KAAKqS,eACJjS,EAAA,OACEC,MAAM,WACN8R,GAAG,kBAEFnS,KAAKqS,gBAKZjS,EAAA,OAAAI,IAAA,2CACEH,MAAO,CACL,8BAA+BL,KAAK8R,aACpC,gCAAiC9R,KAAK8R,cAExCK,GAAG,iBAEH/R,EAAA,QAAAI,IAAA,2CAAMuH,KAAK,mBAGf3H,EAAA,OAAAI,IAAA,2CACEH,MAAO,CACL,mBAAoB,KACpB,mCAAoCL,KAAK8R,cAC1C,cACW,kBAAiB,aACjB9R,KAAKsQ,QACjBsB,QAAS,KACP5R,KAAKyQ,sBACLzQ,KAAKoG,OAAO,I"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as o,h as e,g as r}from"./p-10bb4f4b.js";import{P as i,g as s}from"./p-025f494e.js";const n=':host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-default-text);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}:host([open][current-position]),:host([open="true"][current-position]){display:flex}:host([center][current-position="top"]),:host([center][current-position="bottom"]){transform:translateX(-50%)}:host([center][current-position="right"]),:host([center][current-position="left"]){transform:translateY(-50%)}:host([current-position^="top"]){margin:0 0 var(--space-unit)}:host([current-position^="bottom"]){margin:var(--space-unit) 0 0}:host([current-position^="left"]){margin:0 var(--space-unit) 0 0}:host([current-position^="right"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);content:"";transform:rotate(45deg)}:host([show-arrow="false"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^="top"])::before{top:var(--arrow-center-y-offset)}:host([current-position^="bottom"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position="top"])::before,:host([current-position="bottom"])::before{right:var(--arrow-edge-offset)}:host([current-position="right"])::before,:host([current-position="left"])::before{bottom:var(--arrow-edge-offset)}:host([current-position="right"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left"])::before{left:var(--arrow-center-y-offset)}:host([current-position="top_right"])::before,:host([current-position="bottom_right"])::before{right:var(--arrow-edge-offset)}:host([current-position="top_left"])::before,:host([current-position="bottom_left"])::before{left:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="left_top"])::before{top:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="right_bottom"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left_top"])::before,:host([current-position="left_bottom"])::before{left:var(--arrow-center-y-offset)}:host([current-position="right_bottom"])::before,:host([current-position="left_bottom"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position="top"])::before,:host([center][current-position="bottom"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position="right"])::before,:host([center][current-position="left"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}';const a=n;const f=document.documentElement;function c(t){if(t.parentNode.host){return t.parentNode.host}return t.parentNode}function h(t){let o=c(t);while(o&&o!==f){const{overflow:t,overflowX:e,overflowY:r}=window.getComputedStyle(o);if(t==="hidden"||r==="hidden"||e==="hidden"){return o}if(o.scrollHeight>o.clientHeight&&t!=="visible"&&r!=="visible"||o.scrollWidth>o.clientWidth&&t!=="visible"&&e!=="visible"){return o}o=c(o)}return f}function p(t,o){const e=t.getBoundingClientRect();const r=e.width;const i=e.height;let s=0;let n=0;let a=t;while(a&&a!=o){n+=a.offsetLeft;if(a===document.body){s+=a.getBoundingClientRect().top+window.scrollY}else{s+=a.offsetTop}if(window.DOMMatrix){const t=window.getComputedStyle(a);const o=t.transform||t.webkitTransform;const e=new DOMMatrix(o);if(e){n+=e.m41;if(a!==document.body){s+=e.m42}}}if(!a.offsetParent){break}a=a.offsetParent}let f;let c;if(a===document.body){f=window.innerWidth;c=window.innerHeight}else{f=a.offsetWidth;c=a.offsetHeight}const h=f-n-e.width;const p=c-s-e.height;return{top:s,right:h,bottom:p,left:n,width:r,height:i}}const l=class{constructor(e){t(this,e);this.positionChange=o(this,"positionChange",7);this.openChange=o(this,"openChange",7);this.position=i.AUTO;this.open=false;this.bindTo=undefined;this.showArrow=false;this.center=false;this.closable=true;this.currentPosition=undefined}closePopoverWithKeyboard(t){if(this.closable&&t.key===s.ESC){this.open=false}}handleOutsideClick(t){if(!this.closable||!this.open){return}if(!t.composedPath().includes(this.host)){const o=t.target;const e=this.bindTo instanceof HTMLElement?this.bindTo.contains(o):o.closest(this.bindTo);if(e){t.stopPropagation()}this.open=false;this.positionChange.emit({position:this.currentPosition})}}validatePosition(t){if(t&&!Object.values(i).includes(t)){this.position=i.AUTO}this.currentPosition=this.position;this.positionChange.emit({position:this.currentPosition})}onOpen(){cancelAnimationFrame(this.animationFrameRequestId);if(this.open){const t=()=>{if(this.open){this.setPosition();this.animationFrameRequestId=requestAnimationFrame(t)}};t()}else if(this.host.hasAttribute("current-position")){this.host.removeAttribute("current-position");this.currentPosition=undefined}this.openChange.emit({open:this.open})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}setPosition(){let t;if(typeof this.bindTo==="string"){t=this.host.ownerDocument.querySelector(this.bindTo)}else if(this.bindTo){t=this.bindTo}else{t=this.host.parentElement}if(!t){return}const o=h(t);const e=o.getBoundingClientRect();const r=this.host.offsetParent;const s=r?p(r,o):{top:0,right:0,bottom:0,left:0};const n=p(t,o);const a=n.top-o.scrollTop;const f=e.height-(n.top+n.height)+o.scrollTop;const c=n.left-o.scrollLeft;const l=e.width-(n.left+n.width)+o.scrollLeft;const u=Math.max(0,e.top+e.height-window.innerHeight);const d=Math.max(0,e.left+e.width-window.innerWidth);const b=Math.min(a,a+e.top);const v=Math.min(f,f-u);const w=Math.min(c,c+e.left);const m=Math.min(l,l-d);const g=b+v+n.height;const x=w+m+n.width;let $=this.currentPosition;const y=[];if(this.position===i.AUTO){if(w/x>.6){y.push(i.LEFT)}else if(w/x<.4){y.push(i.RIGHT)}if(b/g>.9){y.unshift(i.TOP)}else if(b/g>.6){y.push(i.TOP)}else if(b/g<.1){y.unshift(i.BOTTOM)}else{y.push(i.BOTTOM)}$=y.join("_")}const z=this.host.style;z.position="absolute";const _=n.top-s.top;const M=n.right-s.right;const k=n.bottom-s.bottom;const O=n.left-s.left;const P=this.center?.5:0;const j=this.center?.5:0;if($===i.TOP||$===i.TOP_RIGHT){z.top="auto";z.right="auto";z.bottom=`${k+n.height}px`;z.left=`${O+n.width*P}px`;z.maxHeight=`${b}px`;if($===i.TOP_RIGHT){z.maxWidth=`${m+n.width*j}px`}}else if($===i.TOP_LEFT){z.top="auto";z.right=`${M+n.width*P}px`;z.bottom=`${k+n.height}px`;z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${b}px`}else if($===i.BOTTOM||$===i.BOTTOM_RIGHT){z.top=`${_+n.height}px`;z.right="auto";z.bottom="auto";z.left=`${O+n.width*P}px`;z.maxHeight=`${v}px`;if($===i.BOTTOM_RIGHT){z.maxWidth=`${m+n.width*j}px`}}else if($===i.BOTTOM_LEFT){z.top=`${_+n.height}px`;z.right=`${M+n.width*P}px`;z.bottom="auto";z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${v}px`}else if($===i.RIGHT||$===i.RIGHT_BOTTOM){z.top=`${_+n.height*P}px`;z.right="auto";z.bottom="auto";z.left=`${O+n.width}px`;z.maxWidth=`${m}px`;z.maxHeight=`${v+n.height*j}px`}else if($===i.RIGHT_TOP){z.top="auto";z.right="auto";z.bottom=`${k+n.height*P}px`;z.left=`${O+n.width}px`;z.maxWidth=`${m}px`;z.maxHeight=`${b+n.height*j}px`}else if($===i.LEFT||$===i.LEFT_BOTTOM){z.top=`${_+n.height*P}px`;z.right=`${M+n.width}px`;z.bottom="auto";z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${v+n.height*j}px`}else if($===i.LEFT_TOP){z.top="auto";z.right=`${M+n.width}px`;z.bottom=`${k+n.height*P}px`;z.left="auto";z.maxWidth=`${w}px`;z.maxHeight=`${b+n.height*j}px`}this.currentPosition=$||this.position;this.host.setAttribute("current-position",this.currentPosition)}componentWillLoad(){this.validatePosition(this.position);this.onOpen()}render(){return e("slot",{key:"fc1d26a6af4fb99ea37da14628dfe730f4a5fd94"})}get host(){return r(this)}static get watchers(){return{position:["validatePosition"],open:["onOpen"]}}};l.style=a;export{l as z_popover};
2
- //# sourceMappingURL=p-1b870733.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZPopoverStyle0","DOCUMENT_ELEMENT","document","documentElement","getParentElement","element","parentNode","host","findScrollableParent","parent","overflow","overflowX","overflowY","window","getComputedStyle","scrollHeight","clientHeight","scrollWidth","clientWidth","computeOffset","targetParentOffset","rect","getBoundingClientRect","width","height","top","left","offsetParent","offsetLeft","body","scrollY","offsetTop","DOMMatrix","style","transform","webkitTransform","domMatrix","m41","m42","parentWidth","parentHeight","innerWidth","innerHeight","offsetWidth","offsetHeight","right","bottom","ZPopover","PopoverPosition","AUTO","closePopoverWithKeyboard","e","this","closable","key","KeyboardCode","ESC","open","handleOutsideClick","composedPath","includes","target","triggerElemClicked","bindTo","HTMLElement","contains","closest","stopPropagation","positionChange","emit","position","currentPosition","validatePosition","newValue","Object","values","onOpen","cancelAnimationFrame","animationFrameRequestId","setPosition","requestAnimationFrame","hasAttribute","removeAttribute","undefined","openChange","disconnectedCallback","ownerDocument","querySelector","parentElement","scrollContainer","scrollingBoundingRect","offsetContainer","relativeBoundingRect","boundingRect","scrollTop","scrollLeft","overflowBottom","Math","max","overflowRight","availableTop","min","availableBottom","availableLeft","availableRight","availableHeight","availableWidth","positions","push","LEFT","RIGHT","unshift","TOP","BOTTOM","join","offsetRight","offsetBottom","offsetModifier","center","sizeModifier","TOP_RIGHT","maxHeight","maxWidth","TOP_LEFT","BOTTOM_RIGHT","BOTTOM_LEFT","RIGHT_BOTTOM","RIGHT_TOP","LEFT_BOTTOM","LEFT_TOP","setAttribute","componentWillLoad","render","h"],"sources":["src/components/z-popover/styles.css?tag=z-popover&encapsulation=shadow","src/components/z-popover/index.tsx"],"sourcesContent":[":host {\n --z-popover-theme--surface: var(--color-surface01);\n --z-popover-theme--text: var(--color-default-text);\n --z-popover-padding: 0;\n --z-popover-shadow-filter: drop-shadow(0 1px 2px var(--shadow-color-base));\n\n position: relative;\n display: none;\n min-width: calc(var(--space-unit) * 8);\n min-height: calc(var(--space-unit) * 4);\n align-items: center;\n justify-content: center;\n padding: var(--z-popover-padding);\n background: var(--z-popover-theme--surface);\n border-radius: var(--border-radius-small);\n color: var(--z-popover-theme--text);\n fill: currentcolor;\n filter: var(--z-popover-shadow-filter);\n font-family: var(--font-family-sans);\n text-align: center;\n}\n\n:host([open][current-position]),\n:host([open=\"true\"][current-position]) {\n display: flex;\n}\n\n:host([center][current-position=\"top\"]),\n:host([center][current-position=\"bottom\"]) {\n transform: translateX(-50%);\n}\n\n:host([center][current-position=\"right\"]),\n:host([center][current-position=\"left\"]) {\n transform: translateY(-50%);\n}\n\n:host([current-position^=\"top\"]) {\n margin: 0 0 var(--space-unit);\n}\n\n:host([current-position^=\"bottom\"]) {\n margin: var(--space-unit) 0 0;\n}\n\n:host([current-position^=\"left\"]) {\n margin: 0 var(--space-unit) 0 0;\n}\n\n:host([current-position^=\"right\"]) {\n margin: 0 0 0 var(--space-unit);\n}\n\n/* Arrow style */\n\n:host([current-position])::before {\n --arrow-size: 6px;\n --arrow-edge-offset: calc(100% - var(--space-unit) - (var(--arrow-size) / 2));\n --arrow-center-x-offset: calc(50% - (var(--arrow-size) / 2));\n --arrow-center-y-offset: calc(100% - (var(--arrow-size) / 2));\n\n position: absolute;\n display: block;\n width: var(--arrow-size);\n height: var(--arrow-size);\n background: var(--z-popover-theme--surface);\n content: \"\";\n transform: rotate(45deg);\n}\n\n:host([show-arrow=\"false\"])::before,\n:host(:not([show-arrow]))::before {\n display: none;\n}\n\n:host([current-position^=\"top\"])::before {\n top: var(--arrow-center-y-offset);\n}\n\n:host([current-position^=\"bottom\"])::before {\n bottom: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"top\"])::before,\n:host([current-position=\"bottom\"])::before {\n right: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right\"])::before,\n:host([current-position=\"left\"])::before {\n bottom: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right\"])::before {\n right: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"left\"])::before {\n left: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"top_right\"])::before,\n:host([current-position=\"bottom_right\"])::before {\n right: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"top_left\"])::before,\n:host([current-position=\"bottom_left\"])::before {\n left: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right_top\"])::before,\n:host([current-position=\"left_top\"])::before {\n top: var(--arrow-edge-offset);\n}\n\n:host([current-position=\"right_top\"])::before,\n:host([current-position=\"right_bottom\"])::before {\n right: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"left_top\"])::before,\n:host([current-position=\"left_bottom\"])::before {\n left: var(--arrow-center-y-offset);\n}\n\n:host([current-position=\"right_bottom\"])::before,\n:host([current-position=\"left_bottom\"])::before {\n bottom: var(--arrow-edge-offset);\n}\n\n:host([center][current-position=\"top\"])::before,\n:host([center][current-position=\"bottom\"])::before {\n right: auto;\n left: var(--arrow-center-x-offset);\n}\n\n:host([center][current-position=\"right\"])::before,\n:host([center][current-position=\"left\"])::before {\n top: var(--arrow-center-x-offset);\n bottom: auto;\n}\n\n::slotted(*) {\n overflow: auto;\n flex: 1 auto;\n}\n","import {Component, Prop, h, Watch, Listen, Element, State, Event, EventEmitter} from \"@stencil/core\";\nimport {PopoverPosition, KeyboardCode} from \"../../beans\";\n\nconst DOCUMENT_ELEMENT = document.documentElement;\n\nfunction getParentElement(element: Element): ShadowRoot[\"host\"] {\n if ((element.parentNode as ShadowRoot).host) {\n return (element.parentNode as ShadowRoot).host;\n }\n\n return element.parentNode as Element;\n}\n\n/**\n * Find the closest scrollable parent of a node.\n *\n * @param {Element} element The node\n */\nfunction findScrollableParent(element: Element): Element {\n let parent = getParentElement(element);\n\n while (parent && parent !== DOCUMENT_ELEMENT) {\n const {overflow, overflowX, overflowY} = window.getComputedStyle(parent);\n if (overflow === \"hidden\" || overflowY === \"hidden\" || overflowX === \"hidden\") {\n return parent;\n }\n\n if (\n (parent.scrollHeight > parent.clientHeight && overflow !== \"visible\" && overflowY !== \"visible\") ||\n (parent.scrollWidth > parent.clientWidth && overflow !== \"visible\" && overflowX !== \"visible\")\n ) {\n return parent;\n }\n\n parent = getParentElement(parent);\n }\n\n return DOCUMENT_ELEMENT;\n}\n\n/**\n * Calculate computed offset.\n * It includes matrix transformations.\n * @param element The target element.\n * @param targetParentOffset The relative offset parent.\n * @return A client rect object.\n */\nfunction computeOffset(element: HTMLElement, targetParentOffset?: HTMLElement): Record<string, number> {\n const rect = element.getBoundingClientRect();\n const width = rect.width;\n const height = rect.height;\n\n let top = 0;\n let left = 0;\n let offsetParent = element;\n while (offsetParent && offsetParent != targetParentOffset) {\n left += offsetParent.offsetLeft;\n\n // document.body sometimes has offsetTop == 0 but still has an\n // offset because of children margins!\n if (offsetParent === document.body) {\n top += offsetParent.getBoundingClientRect().top + window.scrollY;\n } else {\n top += offsetParent.offsetTop;\n }\n\n if (window.DOMMatrix) {\n const style = window.getComputedStyle(offsetParent);\n const transform = style.transform || style.webkitTransform;\n const domMatrix = new DOMMatrix(transform);\n if (domMatrix) {\n left += domMatrix.m41;\n if (offsetParent !== document.body) {\n top += domMatrix.m42;\n }\n }\n }\n\n if (!offsetParent.offsetParent) {\n break;\n }\n\n offsetParent = offsetParent.offsetParent as HTMLElement;\n }\n\n let parentWidth: number;\n let parentHeight: number;\n if (offsetParent === document.body) {\n parentWidth = window.innerWidth;\n parentHeight = window.innerHeight;\n } else {\n parentWidth = offsetParent.offsetWidth;\n parentHeight = offsetParent.offsetHeight;\n }\n\n const right = parentWidth - left - rect.width;\n const bottom = parentHeight - top - rect.height;\n\n return {top, right, bottom, left, width, height};\n}\n\n/**\n * Popover component.\n *\n * @cssprop --z-popover-theme--surface - background color of the popover.\n * @cssprop --z-popover-theme--text - foreground color of the popover.\n * @cssprop --z-popover-padding - padding of the popover.\n * @cssprop --z-popover-shadow-filter - drop-shadow filter of the popover. Defaults to `drop-shadow(0 1px 2px var(--shadow-color-base))`.\n */\n@Component({\n tag: \"z-popover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZPopover {\n /** Popover position. */\n @Prop({reflect: true})\n position: PopoverPosition = PopoverPosition.AUTO;\n\n /**\n * The open state of the popover.\n */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * The selector or the element bound with the popover.\n * If string css selector is provided make sure to use a valid selector.\n */\n @Prop()\n bindTo?: string | HTMLElement;\n\n /**\n * Whether to show popover's arrow.\n */\n @Prop({reflect: true})\n showArrow = false;\n\n /**\n * Whether to center the popup on the main side (according to \"position\").\n */\n @Prop({reflect: true})\n center = false;\n\n /**\n * If true, the popover can be closed by clicking outside of it or pressing the escape key.\n * Otherwise, it will be closed only programmatically (by setting `open` to `false`).\n */\n @Prop()\n closable = true;\n\n /**\n * The current position of the popover.\n */\n @State()\n currentPosition?: PopoverPosition;\n\n /**\n * Position change event.\n */\n @Event()\n positionChange: EventEmitter;\n\n /**\n * Open change event.\n */\n @Event()\n openChange: EventEmitter;\n\n @Element() host: HTMLZPopoverElement;\n\n private animationFrameRequestId?: number;\n\n @Listen(\"keyup\", {target: \"window\"})\n closePopoverWithKeyboard(e: KeyboardEvent): void {\n if (this.closable && e.key === KeyboardCode.ESC) {\n this.open = false;\n }\n }\n\n /**\n * Close the popover when clicking outside of its content.\n * Stop event propagation if the click was fired by popover's trigger element,\n * to prevent close and reopen glitches.\n * @param {MouseEvent} e\n */\n @Listen(\"click\", {target: \"body\", capture: true})\n handleOutsideClick(e: MouseEvent): void {\n if (!this.closable || !this.open) {\n return;\n }\n\n if (!e.composedPath().includes(this.host)) {\n const target = e.target as HTMLElement;\n const triggerElemClicked =\n this.bindTo instanceof HTMLElement ? this.bindTo.contains(target) : target.closest(this.bindTo);\n if (triggerElemClicked) {\n e.stopPropagation();\n }\n\n this.open = false;\n this.positionChange.emit({position: this.currentPosition});\n }\n }\n\n @Watch(\"position\")\n validatePosition(newValue: PopoverPosition): void {\n if (newValue && !Object.values(PopoverPosition).includes(newValue as PopoverPosition)) {\n this.position = PopoverPosition.AUTO;\n }\n\n this.currentPosition = this.position;\n this.positionChange.emit({position: this.currentPosition});\n }\n\n /**\n * Setup popover behaviors on opening.\n */\n @Watch(\"open\")\n onOpen(): void {\n cancelAnimationFrame(this.animationFrameRequestId);\n if (this.open) {\n const setPosition = (): void => {\n if (this.open) {\n this.setPosition();\n this.animationFrameRequestId = requestAnimationFrame(setPosition);\n }\n };\n\n setPosition();\n } else if (this.host.hasAttribute(\"current-position\")) {\n this.host.removeAttribute(\"current-position\");\n this.currentPosition = undefined;\n }\n\n this.openChange.emit({open: this.open});\n }\n\n disconnectedCallback(): void {\n cancelAnimationFrame(this.animationFrameRequestId);\n }\n\n /**\n * Set the position of the popover.\n */\n private setPosition(): void {\n let element: HTMLElement;\n if (typeof this.bindTo === \"string\") {\n element = this.host.ownerDocument.querySelector(this.bindTo) as HTMLElement;\n } else if (this.bindTo) {\n element = this.bindTo;\n } else {\n element = this.host.parentElement as HTMLElement;\n }\n\n if (!element) {\n return;\n }\n\n const scrollContainer = findScrollableParent(element) as HTMLElement;\n const scrollingBoundingRect = scrollContainer.getBoundingClientRect();\n const offsetContainer = this.host.offsetParent as HTMLElement;\n\n const relativeBoundingRect = offsetContainer\n ? computeOffset(offsetContainer, scrollContainer)\n : {top: 0, right: 0, bottom: 0, left: 0};\n const boundingRect = computeOffset(element, scrollContainer);\n\n const top = boundingRect.top - scrollContainer.scrollTop;\n const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;\n const left = boundingRect.left - scrollContainer.scrollLeft;\n const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;\n\n const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);\n const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);\n\n const availableTop = Math.min(top, top + scrollingBoundingRect.top);\n const availableBottom = Math.min(bottom, bottom - overflowBottom);\n const availableLeft = Math.min(left, left + scrollingBoundingRect.left);\n const availableRight = Math.min(right, right - overflowRight);\n\n const availableHeight = availableTop + availableBottom + boundingRect.height;\n const availableWidth = availableLeft + availableRight + boundingRect.width;\n\n let position = this.currentPosition;\n const positions: PopoverPosition[] = [];\n if (this.position === PopoverPosition.AUTO) {\n /**\n * The `AUTO` position tries to place the popover in the 'safest' area,\n * where there's more space available.\n */\n if (availableLeft / availableWidth > 0.6) {\n positions.push(PopoverPosition.LEFT);\n } else if (availableLeft / availableWidth < 0.4) {\n positions.push(PopoverPosition.RIGHT);\n }\n\n if (availableTop / availableHeight > 0.9) {\n positions.unshift(PopoverPosition.TOP);\n } else if (availableTop / availableHeight > 0.6) {\n positions.push(PopoverPosition.TOP);\n } else if (availableTop / availableHeight < 0.1) {\n positions.unshift(PopoverPosition.BOTTOM);\n } else {\n positions.push(PopoverPosition.BOTTOM);\n }\n\n position = positions.join(\"_\") as PopoverPosition;\n }\n\n const style = this.host.style;\n style.position = \"absolute\";\n\n const offsetTop = boundingRect.top - relativeBoundingRect.top;\n const offsetRight = boundingRect.right - relativeBoundingRect.right;\n const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;\n const offsetLeft = boundingRect.left - relativeBoundingRect.left;\n const offsetModifier = this.center ? 0.5 : 0;\n const sizeModifier = this.center ? 0.5 : 0;\n\n if (position === PopoverPosition.TOP || position === PopoverPosition.TOP_RIGHT) {\n style.top = \"auto\";\n style.right = \"auto\";\n style.bottom = `${offsetBottom + boundingRect.height}px`;\n\n style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;\n style.maxHeight = `${availableTop}px`;\n if (position === PopoverPosition.TOP_RIGHT) {\n style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;\n }\n } else if (position === PopoverPosition.TOP_LEFT) {\n style.top = \"auto\";\n style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;\n style.bottom = `${offsetBottom + boundingRect.height}px`;\n style.left = \"auto\";\n style.maxWidth = `${availableLeft}px`;\n style.maxHeight = `${availableTop}px`;\n } else if (position === PopoverPosition.BOTTOM || position === PopoverPosition.BOTTOM_RIGHT) {\n style.top = `${offsetTop + boundingRect.height}px`;\n style.right = \"auto\";\n style.bottom = \"auto\";\n style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;\n style.maxHeight = `${availableBottom}px`;\n if (position === PopoverPosition.BOTTOM_RIGHT) {\n style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;\n }\n } else if (position === PopoverPosition.BOTTOM_LEFT) {\n style.top = `${offsetTop + boundingRect.height}px`;\n style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;\n style.bottom = \"auto\";\n style.left = \"auto\";\n style.maxWidth = `${availableLeft}px`;\n style.maxHeight = `${availableBottom}px`;\n } else if (position === PopoverPosition.RIGHT || position === PopoverPosition.RIGHT_BOTTOM) {\n style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;\n style.right = \"auto\";\n style.bottom = \"auto\";\n style.left = `${offsetLeft + boundingRect.width}px`;\n style.maxWidth = `${availableRight}px`;\n style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;\n } else if (position === PopoverPosition.RIGHT_TOP) {\n style.top = \"auto\";\n style.right = \"auto\";\n style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;\n style.left = `${offsetLeft + boundingRect.width}px`;\n style.maxWidth = `${availableRight}px`;\n style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;\n } else if (position === PopoverPosition.LEFT || position === PopoverPosition.LEFT_BOTTOM) {\n style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;\n style.right = `${offsetRight + boundingRect.width}px`;\n style.bottom = \"auto\";\n style.left = \"auto\";\n style.maxWidth = `${availableLeft}px`;\n style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;\n } else if (position === PopoverPosition.LEFT_TOP) {\n style.top = \"auto\";\n style.right = `${offsetRight + boundingRect.width}px`;\n style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;\n style.left = \"auto\";\n style.maxWidth = `${availableLeft}px`;\n style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;\n }\n\n this.currentPosition = position || this.position;\n this.host.setAttribute(\"current-position\", this.currentPosition);\n }\n\n componentWillLoad(): void {\n this.validatePosition(this.position);\n this.onOpen();\n }\n\n render(): HTMLSlotElement {\n return <slot></slot>;\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAY,utGAClB,MAAAC,EAAeD,ECEf,MAAME,EAAmBC,SAASC,gBAElC,SAASC,EAAiBC,GACxB,GAAKA,EAAQC,WAA0BC,KAAM,CAC3C,OAAQF,EAAQC,WAA0BC,I,CAG5C,OAAOF,EAAQC,UACjB,CAOA,SAASE,EAAqBH,GAC5B,IAAII,EAASL,EAAiBC,GAE9B,MAAOI,GAAUA,IAAWR,EAAkB,CAC5C,MAAMS,SAACA,EAAQC,UAAEA,EAASC,UAAEA,GAAaC,OAAOC,iBAAiBL,GACjE,GAAIC,IAAa,UAAYE,IAAc,UAAYD,IAAc,SAAU,CAC7E,OAAOF,C,CAGT,GACG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,MAAQvC,IAAatB,EAAgBgF,YAAa,CACxF/F,EAAMR,IAAM,GAAGM,EAAY8D,EAAarE,OAAS6F,MACjDpF,EAAMY,MAAQ,GAAGsE,EAActB,EAAatE,UAC5CU,EAAMa,OAAS,OACfb,EAAMP,KAAO,OACbO,EAAMyF,SAAW,GAAGnB,MACpBtE,EAAMwF,UAAY,GAAGnB,EAAkBT,EAAarE,OAAS+F,K,MACxD,GAAIjD,IAAatB,EAAgBiF,SAAU,CAChDhG,EAAMR,IAAM,OACZQ,EAAMY,MAAQ,GAAGsE,EAActB,EAAatE,UAC5CU,EAAMa,OAAS,GAAGsE,EAAevB,EAAarE,OAAS6F,MACvDpF,EAAMP,KAAO,OACbO,EAAMyF,SAAW,GAAGnB,MACpBtE,EAAMwF,UAAY,GAAGrB,EAAeP,EAAarE,OAAS+F,K,CAG5DnE,KAAKmB,gBAAkBD,GAAYlB,KAAKkB,SACxClB,KAAK7C,KAAK2H,aAAa,mBAAoB9E,KAAKmB,gB,CAGlD,iBAAA4D,GACE/E,KAAKoB,iBAAiBpB,KAAKkB,UAC3BlB,KAAKwB,Q,CAGP,MAAAwD,GACE,OAAOC,EAAA,QAAA/E,IAAA,4C"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as o,a as i,g as s}from"./p-10bb4f4b.js";const a=':host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-secondary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}';const n=a;const l=class{constructor(o){t(this,o);this.opened=e(this,"opened",7);this.closed=e(this,"closed",7);this.active=undefined;this.open=undefined;this.hasContent=undefined}toggle(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():this.closed.emit()}handleClick(t){if(!this.open||this.hostElement.contains(t.target)){return}this.open=false;this.closed.emit()}checkContent(){this.hasContent=this.hostElement.querySelectorAll('[slot="item"]').length>0}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=(e===null||e===void 0?void 0:e.innerText)||null}componentWillLoad(){this.checkContent()}render(){return o(i,{key:"9afac5c30a1a957eca75b6c0b0efee330d9ea2ec",role:"menu",open:this.open},o("button",{key:"9f0c3438436d4b035a37473f0f147d26ca4abc3c",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this)},o("slot",{key:"918f29cb6a6ea8e47d5460c907686ec80930b2fd",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&o("z-icon",{name:this.open?"chevron-up":"chevron-down"})),this.open&&o("div",{class:"items"},o("slot",{name:"item",onSlotchange:this.checkContent.bind(this)})))}get hostElement(){return s(this)}};l.style=n;export{l as z_menu_section};
2
- //# sourceMappingURL=p-217291fe.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["stylesCss","ZMenuSectionStyle0","ZMenuSection","toggle","this","hasContent","open","opened","emit","closed","handleClick","ev","hostElement","contains","target","checkContent","querySelectorAll","length","onLabelSlotChange","labelElement","assignedElements","dataset","text","innerText","componentWillLoad","render","h","Host","key","role","class","onClick","bind","onSlotchange","name"],"sources":["src/components/navigation/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/navigation/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host(:is([active], [open])) .label,\n.label:hover {\n border-color: var(--color-secondary01);\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface05);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.25;\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items > ::slotted([slot=\"item\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-2);\n line-height: 1.4;\n outline: none;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-secondary01);\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"][active]) {\n color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, h, Prop, State, Event, EventEmitter, Element, Listen, Host} from \"@stencil/core\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection {\n @Element() hostElement: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n @State()\n open: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n this.open ? this.opened.emit() : this.closed.emit();\n }\n\n /** Close the list when a click is performed outside of this Element. */\n @Listen(\"click\", {target: \"document\"})\n handleClick(ev: MouseEvent): void {\n if (!this.open || this.hostElement.contains(ev.target as Node)) {\n return;\n }\n\n this.open = false;\n this.closed.emit();\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasContent = this.hostElement.querySelectorAll('[slot=\"item\"]').length > 0;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.innerText || null;\n }\n\n componentWillLoad(): void {\n this.checkContent();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host\n role=\"menu\"\n open={this.open}\n >\n <button\n class=\"label\"\n aria-pressed={this.open ? \"true\" : \"false\"}\n onClick={this.toggle.bind(this)}\n >\n <slot onSlotchange={this.onLabelSlotChange.bind(this)}></slot>\n {this.hasContent && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n {this.open && (\n <div class=\"items\">\n <slot\n name=\"item\"\n onSlotchange={this.checkContent.bind(this)}\n ></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAY,m8DAClB,MAAAC,EAAeD,E,MCWFE,EAAY,M,2JAqBf,MAAAC,GACN,IAAKC,KAAKC,WAAY,CACpB,M,CAGFD,KAAKE,MAAQF,KAAKE,KAClBF,KAAKE,KAAOF,KAAKG,OAAOC,OAASJ,KAAKK,OAAOD,M,CAK/C,WAAAE,CAAYC,GACV,IAAKP,KAAKE,MAAQF,KAAKQ,YAAYC,SAASF,EAAGG,QAAiB,CAC9D,M,CAGFV,KAAKE,KAAO,MACZF,KAAKK,OAAOD,M,CAMN,YAAAO,GACNX,KAAKC,WAAaD,KAAKQ,YAAYI,iBAAiB,iBAAiBC,OAAS,C,CAOxE,iBAAAC,CAAkBP,GACxB,MAAMQ,EAAgBR,EAAGG,OAA2BM,mBAAmB,GACvED,EAAaE,QAAQC,MAAOH,IAAY,MAAZA,SAAY,SAAZA,EAAcI,YAAa,I,CAGzD,iBAAAC,GACEpB,KAAKW,c,CAGP,MAAAU,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,KAAK,OACLvB,KAAMF,KAAKE,MAEXoB,EAAA,UAAAE,IAAA,2CACEE,MAAM,QAAO,eACC1B,KAAKE,KAAO,OAAS,QACnCyB,QAAS3B,KAAKD,OAAO6B,KAAK5B,OAE1BsB,EAAA,QAAAE,IAAA,2CAAMK,aAAc7B,KAAKc,kBAAkBc,KAAK5B,QAC/CA,KAAKC,YAAcqB,EAAA,UAAQQ,KAAM9B,KAAKE,KAAO,aAAe,kBAE9DF,KAAKE,MACJoB,EAAA,OAAKI,MAAM,SACTJ,EAAA,QACEQ,KAAK,OACLD,aAAc7B,KAAKW,aAAaiB,KAAK5B,S"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as i,g as r}from"./p-10bb4f4b.js";import{Y as a}from"./p-025f494e.js";import{m as o}from"./p-2c886e8b.js";import{r as s}from"./p-955da62e.js";const n=':host{--z-book-card-ribbon-background-color:var(--avatar-C08);--z-book-card-ribbon-shadow-color:var(--green950);--z-book-card-compact-width:262px;--z-book-card-compact-height:568px}:host>article{display:block;width:100%;max-width:360px;box-sizing:border-box;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>article div.cover{position:relative}:host>article div.cover div.img-wrapper{display:flex;overflow:hidden;border:var(--border-size-small) solid var(--color-surface03);line-height:0}:host>article div.cover div.img-wrapper img{width:auto;max-width:100%;height:auto;max-height:100%;align-self:flex-end}:host>article div.cover .ribbon{position:absolute;z-index:10;top:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * -2);display:flex;max-width:100%;height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;padding:0 calc(var(--space-unit) * 2);border:var(--border-size-medium) solid var(--color-surface01);background:var(--z-book-card-ribbon-background-color);border-radius:0 var(--border-radius) var(--border-radius) 0;box-shadow:var(--shadow-2);color:var(--color-text-inverse);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-sb);line-height:initial}:host>article div.cover .ribbon.interactive:hover{cursor:pointer}:host>article div.cover .ribbon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.cover .ribbon::before{position:absolute;bottom:-12px;left:-2px;width:0;height:0;border-top:10px solid var(--z-book-card-ribbon-shadow-color);border-left:16px solid transparent;content:""}:host>article div.cover .ribbon z-icon{margin-right:var(--space-unit)}:host>article div.content{margin:var(--space-unit) 0;border-radius:var(--border-radius)}:host>article .title{display:flex;height:100%;align-self:center;color:var(--color-default-text);font-size:var(--font-size-4);font-weight:var(--font-sb);line-height:1.5}:host>article .title *{all:unset}:host>article div.subtitle{color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:1.4}:host>article div.authors{color:var(--color-default-text);font-size:var(--font-size-1);font-weight:var(--font-rg);line-height:1.33}:host>article div.isbn{overflow:hidden;color:var(--color-default-text);font-size:var(--font-size-2);line-height:1.33;text-overflow:ellipsis;white-space:nowrap;word-wrap:nowrap}:host>article div.isbn>.code{font-weight:var(--font-sb)}:host>article div.tags{display:flex;overflow:hidden;max-height:32px;flex-flow:row wrap;align-content:stretch;align-items:stretch;justify-content:flex-start;gap:calc(var(--space-unit) / 2)}:host>article ::slotted([slot="tags"]){margin-bottom:var(--space-unit)}:host>article ::slotted([slot="header-cta"]){--z-icon-width:20px;--z-icon-height:20px;padding:var(--space-unit);cursor:pointer;fill:var(--color-primary01-icon)}:host>article.expanded{width:100%;min-width:328px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.header{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:top;justify-content:space-between;margin-bottom:var(--space-unit);white-space:nowrap}:host>article.expanded div.cover div.img-wrapper{border-radius:var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:100%}:host>article.expanded .title,:host>article.expanded .subtitle,:host>article.expanded .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}:host>article.expanded div.footer{border-top:var(--border-size-small) solid var(--color-surface03);margin-bottom:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open{padding-top:calc(var(--space-unit) * 1.5)}:host>article.expanded div.footer.open div.resources{display:initial}:host>article.expanded div.footer.close div.resources{display:none}:host>article.expanded button.show-resources{--z-icon-height:16px;--z-icon-width:16px;all:unset;display:flex;width:100%;flex-flow:row nowrap;align-content:center;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 1) 0;color:var(--color-link-primary);cursor:pointer;fill:var(--color-link-primary);font-size:var(--font-size-2);font-weight:var(--font-sb);gap:var(--space-unit)}:host>article.expanded button.show-resources:focus{box-shadow:var(--shadow-focus-primary)}:host>article.search{width:262px;height:616px;padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.search .wrapper-container{display:flex;height:100%;flex-direction:column;justify-content:space-between}:host>article.search .wrapper-container .wrapper{height:451px}:host>article.search .wrapper-container .action-container{padding-bottom:calc(var(--space-unit) * 2)}:host>article.search div.header{display:flex;height:24px;flex-flow:row nowrap;align-content:stretch;align-items:center;justify-content:space-between;margin-bottom:calc(var(--space-unit) * 1.5);white-space:nowrap}:host>article.search div.cover div.img-wrapper{height:314px;border-radius:var(--border-radius)}:host>article.search .title{display:block;height:initial;align-self:unset;font-size:var(--font-size-3)}:host>article.search .title,:host>article.search .subtitle,:host>article.search .authors{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host>article.compact{width:var(--z-book-card-compact-width);height:var(--z-book-card-compact-height)}:host>article.compact.borderless{border:none}:host>article.compact div.cover div.img-wrapper{width:100%;height:calc(var(--z-book-card-compact-width) * 1.36);box-sizing:border-box;border:none;background:var(--color-white);border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--shadow-2)}:host>article.compact div.wrapper{display:flex;height:100%;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.compact div.content{display:flex;box-sizing:border-box;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;padding:calc(var(--space-unit) * 2);padding-top:var(--space-unit);margin:0}:host>article.compact div.action-container{padding:calc(var(--space-unit) * 2);padding-top:0;margin-top:auto}:host>article.compact.borderless div.cover div.img-wrapper{width:var(--z-book-card-compact-width)}:host>article.compact.borderless div.content{padding:0;padding-top:var(--space-unit)}:host>article.compact.borderless div.action-container{padding:0;padding-bottom:calc(var(--space-unit) * 2)}:host>article.compact .title{display:block;height:initial;align-self:unset}:host>article.compact .title,:host>article.compact .subtitle,:host>article.compact .authors{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:initial}@media (min-width: 768px){:host>article{width:100%;max-width:initial}:host>article .title{display:block;height:initial;align-self:unset}:host>article.expanded{width:100%;min-width:initial;max-width:initial;height:360px;padding:0;border:0}:host>article.expanded div.wrapper{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start}:host>article.expanded div.cover div.img-wrapper{width:262px;height:356px;border:0;border:var(--border-size-medium) solid var(--color-surface03);border-right:none;background:var(--color-surface01);border-radius:var(--border-radius) 0 0 var(--border-radius)}:host>article.expanded div.cover div.img-wrapper img{width:auto;border-radius:0}:host>article.expanded div.content{display:flex;overflow:hidden;width:100%;height:356px;flex-flow:column nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;border:var(--border-size-medium) solid var(--color-surface03);border-left:none;margin:0;background:var(--color-surface01);border-radius:0 var(--border-radius) var(--border-radius) 0}:host>article.expanded div.content div.top{padding:calc(var(--space-unit) * 2);padding-bottom:0}:host>article.expanded div.content div.top div.info{display:flex;flex-flow:row nowrap;align-content:stretch;align-items:stretch;justify-content:space-between;margin-bottom:calc(var(--space-unit) / 2)}:host>article.expanded div.content div.top div.info>div.left{width:100%}:host>article.expanded div.content div.bottom{padding:calc(var(--space-unit) * 2);padding-bottom:0}}@media (min-width: 1152px){:host>article{width:fit-content;max-width:initial}}@media (min-width: 1366px){:host>article.expanded{width:635px}:host>article.expanded div.content{width:369px}}';const d=n;const c=class{constructor(i){t(this,i);this.ribbonClick=e(this,"ribbonClick",7);this.variant=undefined;this.cover=undefined;this.operaTitle=undefined;this.volumeTitle=undefined;this.authors=undefined;this.isbn=undefined;this.isbnLabel="";this.ribbon=undefined;this.ribbonIcon=undefined;this.ribbonInteractive=undefined;this.borderless=undefined;this.fallbackCover=undefined;this.operaTitleTag=undefined;this.isMobile=false;this.hasResources=false;this.showResources=false}emitRibbonClick(){this.ribbonClick.emit()}componentWillLoad(){this.id=`id-${s()}`;const t=window.matchMedia(`(max-width: ${o}px)`);this.isMobile=t.matches;t.onchange=t=>this.isMobile=t.matches}componentDidLoad(){this.handleResources()}handleResources(){var t;if(this.variant!==a.EXPANDED||!this.isMobile){return}this.hasResources=((t=this.hostElement.querySelectorAll("[slot=resources]"))===null||t===void 0?void 0:t.length)>0}toggleResources(){this.showResources=!this.showResources}renderCard(){switch(this.variant){case a.EXPANDED:return this.isMobile?this.renderMobileExpandedCard():this.renderExpandedCard();case a.COMPACT:return this.renderCompactCard();case a.SEARCH:return this.renderSearchCard()}}renderExpandedCard(){return i("div",{class:"wrapper"},this.renderCover(),i("div",{class:"content"},i("div",{class:"top"},i("div",{class:"info"},i("div",{class:"left"},this.renderAuthors(),this.renderOperaTitle(),this.renderVolumeTitle(),this.renderIsbn()),i("div",{class:"right"},this.renderHeaderCtaSlot())),this.renderTagsSlot()),i("div",{class:"bottom"},this.renderResourcesSlot())))}renderMobileExpandedCard(){return i("div",{class:"wrapper"},i("div",{class:"header"},this.renderOperaTitle(),this.renderHeaderCtaSlot()),this.renderCover(),i("div",{class:"content"},this.renderTagsSlot(),this.renderAuthors(),this.renderVolumeTitle(),this.renderIsbn()),this.hasResources&&i("div",{class:{footer:true,open:this.showResources,close:!this.showResources}},!this.showResources&&this.renderShowResources(),this.renderResourcesSlot(),this.showResources&&this.renderShowResources()))}renderSearchCard(){return i("div",{class:"wrapper-container"},i("div",{class:"wrapper"},i("div",{class:"header"},this.renderOperaTitle(),this.renderHeaderCtaSlot()),this.renderCover(),i("div",{class:"content"},this.renderTagsSlot(),this.renderAuthors(),this.renderVolumeTitle(),this.renderIsbn())),this.renderFooterCtaSlot())}renderCompactCard(){return i("div",{class:"wrapper"},this.renderCover(),i("div",{class:"content"},this.renderAuthors(),this.renderOperaTitle(),this.renderVolumeTitle(),this.renderIsbn()),this.renderFooterCtaSlot())}renderCover(){return i("div",{class:"cover"},this.ribbon&&this.variant!==a.COMPACT&&this.renderRibbon(),i("div",{class:"img-wrapper"},i("img",{src:this.cover,onError:()=>{if(this.fallbackCover){this.cover=this.fallbackCover}},"aria-hidden":"true"})))}renderRibbon(){const t=[this.ribbonIcon&&i("z-icon",{name:this.ribbonIcon,width:16,height:16,fill:"color-inverse-icon"}),i("span",null,this.ribbon)];return this.ribbonInteractive?i("button",{class:"ribbon interactive",onClick:()=>this.emitRibbonClick()},t):i("div",{class:"ribbon"},t)}renderOperaTitle(){const t=this.operaTitleTag?`<${this.operaTitleTag}>${this.operaTitle}</${this.operaTitleTag}>`:this.operaTitle;return i("div",{class:"title",innerHTML:t})}renderVolumeTitle(){return this.volumeTitle?i("div",{class:"subtitle"},this.volumeTitle):null}renderAuthors(){return this.authors?i("div",{class:"authors","aria-description":"Autori"},this.authors):null}renderIsbn(){return this.isbn?i("div",{class:"isbn"},i("span",{class:"code","aria-description":`ISBN ${this.isbnLabel}`},this.isbn),this.isbnLabel?i("span",{class:"label"}," ",this.isbnLabel):null):null}renderShowResources(){return i("button",{class:"show-resources","aria-label":`Risorse del libro ${this.operaTitle}`,"aria-expanded":this.showResources.toString(),"aria-controls":`resources-${this.id}`,onClick:()=>this.toggleResources()},this.showResources?"Chiudi":"Vedi tutto",i("z-icon",{name:this.showResources?"chevron-up":"chevron-down"}))}renderTagsSlot(){return i("div",{class:"tags"},i("slot",{name:"tags"}))}renderHeaderCtaSlot(){return i("slot",{name:"header-cta"})}renderResourcesSlot(){return i("div",{id:`resources-${this.id}`,class:"resources"},i("slot",{name:"resources",onSlotchange:()=>this.handleResources()}))}renderFooterCtaSlot(){return i("div",{class:"action-container"},i("slot",{name:"footer-cta"}))}render(){return i("article",{key:"5bdf53790a65a448b54994ac6d88bb333f23db33",class:{[this.variant]:true,borderless:!!this.borderless}},this.renderCard())}get hostElement(){return r(this)}};c.style=d;export{c as z_book_card};
2
- //# sourceMappingURL=p-27b0663c.entry.js.map