@zanichelli/albe-web-components 19.1.4-RC1 → 19.3.0-RC1

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 (877) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/cjs/iconset-5d47610c.js +1016 -0
  3. package/dist/cjs/iconset-5d47610c.js.map +1 -0
  4. package/dist/cjs/{index-f011b2e3.js → index-1ee051ca.js} +2 -2
  5. package/dist/cjs/{index-f011b2e3.js.map → index-1ee051ca.js.map} +1 -1
  6. package/dist/cjs/{index-09238e31.js → index-43dfc8b2.js} +3 -3
  7. package/dist/cjs/{index-09238e31.js.map → index-43dfc8b2.js.map} +1 -1
  8. package/dist/cjs/{index-805390c8.js → index-44e3cf31.js} +5 -5
  9. package/dist/cjs/{index-805390c8.js.map → index-44e3cf31.js.map} +1 -1
  10. package/dist/cjs/{index-1c7cd5df.js → index-5eb95b44.js} +2 -2
  11. package/dist/cjs/{index-1c7cd5df.js.map → index-5eb95b44.js.map} +1 -1
  12. package/dist/cjs/{index-62712250.js → index-8770e71a.js} +2 -2
  13. package/dist/cjs/{index-62712250.js.map → index-8770e71a.js.map} +1 -1
  14. package/dist/cjs/index-96af6326.js +8 -4
  15. package/dist/cjs/{index-66928615.js → index-d214a119.js} +3 -3
  16. package/dist/cjs/{index-66928615.js.map → index-d214a119.js.map} +1 -1
  17. package/dist/cjs/{index-97a4c18d.js → index-e30d0503.js} +51 -1
  18. package/dist/cjs/index-e30d0503.js.map +1 -0
  19. package/dist/cjs/index.cjs.js +5 -2
  20. package/dist/cjs/index.cjs.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/cjs/{utils-7f9d5a78.js → utils-4f7b4830.js} +2 -2
  23. package/dist/cjs/{utils-7f9d5a78.js.map → utils-4f7b4830.js.map} +1 -1
  24. package/dist/cjs/{utils-5148245a.js → utils-b1859d65.js} +41 -6
  25. package/dist/cjs/utils-b1859d65.js.map +1 -0
  26. package/dist/cjs/web-components-library.cjs.js +1 -1
  27. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  28. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  31. package/dist/cjs/z-app-header_12.cjs.entry.js +114 -1029
  32. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  33. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  34. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  35. package/dist/cjs/z-book-card-app.cjs.entry.js +2 -2
  36. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +3 -3
  37. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  38. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  39. package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
  40. package/dist/cjs/z-breadcrumb.cjs.entry.js +4 -4
  41. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  42. package/dist/cjs/z-card.cjs.entry.js +1 -1
  43. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  44. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  45. package/dist/cjs/z-color-picker.cjs.entry.js +212 -0
  46. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  47. package/dist/cjs/z-combobox.cjs.entry.js +127 -96
  48. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  49. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  50. package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
  51. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +7 -7
  52. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  53. package/dist/cjs/z-file.cjs.entry.js +2 -2
  54. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  55. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  56. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  57. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  58. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  59. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  60. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  61. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  62. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  63. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  64. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  65. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  66. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  67. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  68. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  69. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  70. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  71. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  72. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  73. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  74. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  75. package/dist/cjs/z-notification.cjs.entry.js.map +1 -1
  76. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  77. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  78. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  79. package/dist/cjs/z-popover.cjs.entry.js +20 -16
  80. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  81. package/dist/cjs/z-range-picker.cjs.entry.js +5 -5
  82. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  83. package/dist/cjs/z-select.cjs.entry.js +99 -134
  84. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  85. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  86. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  87. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  88. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  89. package/dist/cjs/z-table.cjs.entry.js +9 -9
  90. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  91. package/dist/cjs/z-td.cjs.entry.js +2 -2
  92. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  93. package/dist/cjs/z-th.cjs.entry.js +2 -2
  94. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  95. package/dist/cjs/z-toast-notification-list.cjs.entry.js +3 -2
  96. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -1
  97. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  98. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  99. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  100. package/dist/cjs/z-tool.cjs.entry.js +147 -42
  101. package/dist/cjs/z-tool.cjs.entry.js.map +1 -1
  102. package/dist/cjs/z-toolbar.cjs.entry.js +64 -66
  103. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -1
  104. package/dist/cjs/z-tooltip.cjs.entry.js +3 -2
  105. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -1
  106. package/dist/cjs/z-tr.cjs.entry.js +5 -5
  107. package/dist/cjs/z-tree-list.cjs.entry.js +2 -2
  108. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  109. package/dist/collection/beans/index.js +48 -0
  110. package/dist/collection/beans/index.js.map +1 -1
  111. package/dist/collection/collection-manifest.json +1 -0
  112. package/dist/collection/components/book-card/z-book-card/styles.css +2 -1
  113. package/dist/collection/components/book-card/z-book-card-app/index.js +1 -1
  114. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  115. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  116. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  117. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -1
  118. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
  119. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
  120. package/dist/collection/components/deprecated/z-section-title/index.js +1 -1
  121. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  122. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  123. package/dist/collection/components/list/z-list/index.js +1 -1
  124. package/dist/collection/components/list/z-list-element/index.js +1 -1
  125. package/dist/collection/components/list/z-list-group/index.js +39 -2
  126. package/dist/collection/components/list/z-list-group/index.js.map +1 -1
  127. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  128. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  129. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  130. package/dist/collection/components/table/z-table/index.js +1 -1
  131. package/dist/collection/components/table/z-tbody/index.js +1 -1
  132. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  133. package/dist/collection/components/table/z-thead/index.js +1 -1
  134. package/dist/collection/components/table/z-tr/index.js +1 -1
  135. package/dist/collection/components/z-accordion/index.js +1 -1
  136. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  137. package/dist/collection/components/z-app-header/index.js +1 -1
  138. package/dist/collection/components/z-app-header/index.js.map +1 -1
  139. package/dist/collection/components/z-app-header/index.stories.js +42 -0
  140. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  141. package/dist/collection/components/z-app-header/styles.css +8 -0
  142. package/dist/collection/components/z-aria-alert/index.js +1 -1
  143. package/dist/collection/components/z-avatar/index.js +2 -2
  144. package/dist/collection/components/z-book-cover/index.js +1 -1
  145. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  146. package/dist/collection/components/z-button-sort/index.js +1 -1
  147. package/dist/collection/components/z-chip/index.js +2 -2
  148. package/dist/collection/components/z-color-picker/index.js +367 -0
  149. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  150. package/dist/collection/components/z-color-picker/index.stories.js +34 -0
  151. package/dist/collection/components/z-color-picker/index.stories.js.map +1 -0
  152. package/dist/collection/components/z-color-picker/styles.css +74 -0
  153. package/dist/collection/components/z-combobox/index.js +142 -97
  154. package/dist/collection/components/z-combobox/index.js.map +1 -1
  155. package/dist/collection/components/z-combobox/styles.css +41 -0
  156. package/dist/collection/components/z-cover-hero/index.js +2 -2
  157. package/dist/collection/components/z-divider/index.js +1 -1
  158. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  159. package/dist/collection/components/z-icon/index.js +40 -9
  160. package/dist/collection/components/z-icon/index.js.map +1 -1
  161. package/dist/collection/components/z-icon/index.stories.js +34 -18
  162. package/dist/collection/components/z-icon/index.stories.js.map +1 -1
  163. package/dist/collection/components/z-icon/styles.css +15 -2
  164. package/dist/collection/components/z-info-box/index.js +1 -1
  165. package/dist/collection/components/z-info-reveal/index.js +1 -1
  166. package/dist/collection/components/z-input/index.js +1 -1
  167. package/dist/collection/components/z-input-message/index.js +1 -1
  168. package/dist/collection/components/z-logo/index.js +1 -1
  169. package/dist/collection/components/z-menu/index.js +1 -1
  170. package/dist/collection/components/z-menu/index.js.map +1 -1
  171. package/dist/collection/components/z-menu-section/index.js +1 -1
  172. package/dist/collection/components/z-modal/index.js +4 -4
  173. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  174. package/dist/collection/components/z-notification/index.js +1 -1
  175. package/dist/collection/components/z-notification/styles.css +2 -2
  176. package/dist/collection/components/z-offcanvas/index.js +89 -10
  177. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  178. package/dist/collection/components/z-panel-elem/index.js +2 -2
  179. package/dist/collection/components/z-popover/index.js +31 -21
  180. package/dist/collection/components/z-popover/index.js.map +1 -1
  181. package/dist/collection/components/z-popover/styles.css +18 -3
  182. package/dist/collection/components/z-searchbar/index.js +1 -1
  183. package/dist/collection/components/z-searchbar/styles.css +1 -1
  184. package/dist/collection/components/z-select/index.js +97 -141
  185. package/dist/collection/components/z-select/index.js.map +1 -1
  186. package/dist/collection/components/z-select/styles.css +9 -2
  187. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  188. package/dist/collection/components/z-stepper/index.js +1 -1
  189. package/dist/collection/components/z-stepper-item/index.js +1 -1
  190. package/dist/collection/components/z-tag/index.js +2 -2
  191. package/dist/collection/components/z-toast-notification/index.js +1 -1
  192. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  193. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -1
  194. package/dist/collection/components/z-toggle-button/index.js +2 -2
  195. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  196. package/dist/collection/components/z-tool/index.js +281 -48
  197. package/dist/collection/components/z-tool/index.js.map +1 -1
  198. package/dist/collection/components/z-tool/index.stories.js +89 -12
  199. package/dist/collection/components/z-tool/index.stories.js.map +1 -1
  200. package/dist/collection/components/z-tool/styles.css +30 -31
  201. package/dist/collection/components/z-toolbar/index.js +72 -91
  202. package/dist/collection/components/z-toolbar/index.js.map +1 -1
  203. package/dist/collection/components/z-toolbar/index.stories.js +190 -309
  204. package/dist/collection/components/z-toolbar/index.stories.js.map +1 -1
  205. package/dist/collection/components/z-toolbar/styles.css +10 -19
  206. package/dist/collection/components/z-tooltip/index.js +19 -1
  207. package/dist/collection/components/z-tooltip/index.js.map +1 -1
  208. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  209. package/dist/collection/constants/iconset.js +152 -142
  210. package/dist/collection/constants/iconset.js.map +1 -1
  211. package/dist/collection/index.js +1 -0
  212. package/dist/collection/index.js.map +1 -1
  213. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  214. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  215. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  216. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  217. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  218. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  219. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  220. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  221. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  222. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  223. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  224. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  225. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  226. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  227. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  228. package/dist/collection/utils/utils.js +38 -4
  229. package/dist/collection/utils/utils.js.map +1 -1
  230. package/dist/components/iconset.js +152 -143
  231. package/dist/components/iconset.js.map +1 -1
  232. package/dist/components/index.d.ts +2 -0
  233. package/dist/components/index.js +3 -1
  234. package/dist/components/index.js.map +1 -1
  235. package/dist/components/index10.js +17 -6
  236. package/dist/components/index10.js.map +1 -1
  237. package/dist/components/index11.js +1 -1
  238. package/dist/components/index12.js +2 -2
  239. package/dist/components/index13.js +1 -1
  240. package/dist/components/index14.js +1 -1
  241. package/dist/components/index15.js +1 -1
  242. package/dist/components/index16.js +7 -3
  243. package/dist/components/index16.js.map +1 -1
  244. package/dist/components/index17.js +4 -4
  245. package/dist/components/index18.js +1 -1
  246. package/dist/components/index19.js +1 -1
  247. package/dist/components/index2.js +49 -1
  248. package/dist/components/index2.js.map +1 -1
  249. package/dist/components/index20.js +1 -1
  250. package/dist/components/index21.js +1 -1
  251. package/dist/components/index22.js +1 -1
  252. package/dist/components/index23.js +84 -11
  253. package/dist/components/index23.js.map +1 -1
  254. package/dist/components/index24.js +20 -16
  255. package/dist/components/index24.js.map +1 -1
  256. package/dist/components/index25.js +3 -3
  257. package/dist/components/index25.js.map +1 -1
  258. package/dist/components/index26.js +2 -2
  259. package/dist/components/index27.js +55 -0
  260. package/dist/components/index27.js.map +1 -0
  261. package/dist/components/index3.js +1 -1
  262. package/dist/components/index4.js +1 -1
  263. package/dist/components/index6.js +2 -2
  264. package/dist/components/index7.js +1 -1
  265. package/dist/components/index8.js +2 -2
  266. package/dist/components/index9.js +1 -1
  267. package/dist/components/utils.js +39 -5
  268. package/dist/components/utils.js.map +1 -1
  269. package/dist/components/z-accordion.js +1 -1
  270. package/dist/components/z-anchor-navigation.js +1 -1
  271. package/dist/components/z-app-header-deprecated.js +1 -1
  272. package/dist/components/z-app-header.js +2 -2
  273. package/dist/components/z-app-header.js.map +1 -1
  274. package/dist/components/z-aria-alert.js +1 -1
  275. package/dist/components/z-avatar.js +2 -2
  276. package/dist/components/z-book-card-app.js +1 -1
  277. package/dist/components/z-book-card-deprecated.js +1 -1
  278. package/dist/components/z-book-card.js +1 -1
  279. package/dist/components/z-book-card.js.map +1 -1
  280. package/dist/components/z-breadcrumb.js +2 -2
  281. package/dist/components/z-button-sort.js +1 -1
  282. package/dist/components/z-color-picker.d.ts +11 -0
  283. package/dist/components/z-color-picker.js +234 -0
  284. package/dist/components/z-color-picker.js.map +1 -0
  285. package/dist/components/z-combobox.js +129 -99
  286. package/dist/components/z-combobox.js.map +1 -1
  287. package/dist/components/z-cover-hero.js +2 -2
  288. package/dist/components/z-date-picker.js +1 -1
  289. package/dist/components/z-file.js +1 -1
  290. package/dist/components/z-info-box.js +1 -1
  291. package/dist/components/z-logo.js +1 -1
  292. package/dist/components/z-menu-deprecated.js +1 -1
  293. package/dist/components/z-menu-section-deprecated.js +1 -1
  294. package/dist/components/z-menu-section.js +1 -1
  295. package/dist/components/z-menu.js +1 -1
  296. package/dist/components/z-menu.js.map +1 -1
  297. package/dist/components/z-myz-card-alert.js +1 -1
  298. package/dist/components/z-myz-card-dictionary.js +1 -1
  299. package/dist/components/z-myz-card-footer-sections.js +1 -1
  300. package/dist/components/z-myz-card-footer.js +1 -1
  301. package/dist/components/z-myz-card-icon.js +1 -1
  302. package/dist/components/z-myz-card-info.js +1 -1
  303. package/dist/components/z-myz-card-list.js +1 -1
  304. package/dist/components/z-myz-list.js +1 -1
  305. package/dist/components/z-navigation-tabs.js +2 -2
  306. package/dist/components/z-notification.js +2 -2
  307. package/dist/components/z-notification.js.map +1 -1
  308. package/dist/components/z-otp.js +2 -2
  309. package/dist/components/z-panel-elem.js +2 -2
  310. package/dist/components/z-range-picker.js +3 -3
  311. package/dist/components/z-section-title.js +1 -1
  312. package/dist/components/z-select.js +99 -134
  313. package/dist/components/z-select.js.map +1 -1
  314. package/dist/components/z-skip-to-content.js +2 -2
  315. package/dist/components/z-slideshow.js +1 -1
  316. package/dist/components/z-stepper-item.js +1 -1
  317. package/dist/components/z-stepper.js +1 -1
  318. package/dist/components/z-table.js +1 -1
  319. package/dist/components/z-tbody.js +1 -1
  320. package/dist/components/z-td.js +1 -1
  321. package/dist/components/z-tfoot.js +1 -1
  322. package/dist/components/z-th.js +1 -1
  323. package/dist/components/z-thead.js +1 -1
  324. package/dist/components/z-toast-notification-list.js +2 -1
  325. package/dist/components/z-toast-notification-list.js.map +1 -1
  326. package/dist/components/z-toast-notification.js +1 -1
  327. package/dist/components/z-toggle-button.js +2 -2
  328. package/dist/components/z-toggle-switch.js +3 -3
  329. package/dist/components/z-tool.js +165 -49
  330. package/dist/components/z-tool.js.map +1 -1
  331. package/dist/components/z-toolbar.js +65 -68
  332. package/dist/components/z-toolbar.js.map +1 -1
  333. package/dist/components/z-tooltip.js +1 -50
  334. package/dist/components/z-tooltip.js.map +1 -1
  335. package/dist/components/z-tr.js +1 -1
  336. package/dist/components/z-tree-list.js +1 -1
  337. package/dist/components/z-visually-hidden.js +1 -1
  338. package/dist/esm/iconset-d7823b13.js +1013 -0
  339. package/dist/esm/iconset-d7823b13.js.map +1 -0
  340. package/dist/esm/{index-2a6324f8.js → index-106473a8.js} +50 -2
  341. package/dist/esm/index-106473a8.js.map +1 -0
  342. package/dist/esm/{index-8a9f6d27.js → index-167f46ad.js} +5 -5
  343. package/dist/esm/{index-8a9f6d27.js.map → index-167f46ad.js.map} +1 -1
  344. package/dist/esm/{index-0bcacbd3.js → index-21176e80.js} +2 -2
  345. package/dist/esm/{index-0bcacbd3.js.map → index-21176e80.js.map} +1 -1
  346. package/dist/esm/{index-b64ced16.js → index-39a920c4.js} +3 -3
  347. package/dist/esm/{index-b64ced16.js.map → index-39a920c4.js.map} +1 -1
  348. package/dist/esm/{index-36122d8f.js → index-41934729.js} +2 -2
  349. package/dist/esm/{index-36122d8f.js.map → index-41934729.js.map} +1 -1
  350. package/dist/esm/{index-f20179ad.js → index-4845b32f.js} +3 -3
  351. package/dist/esm/{index-f20179ad.js.map → index-4845b32f.js.map} +1 -1
  352. package/dist/esm/{index-0ea3c7c8.js → index-599cd05a.js} +2 -2
  353. package/dist/esm/{index-0ea3c7c8.js.map → index-599cd05a.js.map} +1 -1
  354. package/dist/esm/index-c8ceadeb.js +8 -4
  355. package/dist/esm/index.js +3 -2
  356. package/dist/esm/index.js.map +1 -1
  357. package/dist/esm/loader.js +1 -1
  358. package/dist/esm/{utils-e66d94c3.js → utils-8d6ca808.js} +41 -7
  359. package/dist/esm/utils-8d6ca808.js.map +1 -0
  360. package/dist/esm/{utils-227ef1c0.js → utils-93ac0e6c.js} +2 -2
  361. package/dist/esm/{utils-227ef1c0.js.map → utils-93ac0e6c.js.map} +1 -1
  362. package/dist/esm/web-components-library.js +1 -1
  363. package/dist/esm/z-accordion.entry.js +2 -2
  364. package/dist/esm/z-alert.entry.js +1 -1
  365. package/dist/esm/z-anchor-navigation.entry.js +2 -2
  366. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  367. package/dist/esm/z-app-header_12.entry.js +114 -1029
  368. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  369. package/dist/esm/z-aria-alert.entry.js +2 -2
  370. package/dist/esm/z-avatar.entry.js +3 -3
  371. package/dist/esm/z-book-card-app.entry.js +2 -2
  372. package/dist/esm/z-book-card-deprecated.entry.js +3 -3
  373. package/dist/esm/z-book-card.entry.js +2 -2
  374. package/dist/esm/z-book-card.entry.js.map +1 -1
  375. package/dist/esm/z-book-cover.entry.js +1 -1
  376. package/dist/esm/z-breadcrumb.entry.js +4 -4
  377. package/dist/esm/z-button-sort.entry.js +1 -1
  378. package/dist/esm/z-card.entry.js +1 -1
  379. package/dist/esm/z-carousel.entry.js +1 -1
  380. package/dist/esm/z-chip.entry.js +3 -3
  381. package/dist/esm/z-color-picker.entry.js +208 -0
  382. package/dist/esm/z-color-picker.entry.js.map +1 -0
  383. package/dist/esm/z-combobox.entry.js +127 -96
  384. package/dist/esm/z-combobox.entry.js.map +1 -1
  385. package/dist/esm/z-cover-hero.entry.js +3 -3
  386. package/dist/esm/z-date-picker.entry.js +3 -3
  387. package/dist/esm/z-dragdrop-area_2.entry.js +7 -7
  388. package/dist/esm/z-file-upload.entry.js +1 -1
  389. package/dist/esm/z-file.entry.js +2 -2
  390. package/dist/esm/z-ghost-loading.entry.js +1 -1
  391. package/dist/esm/z-info-box.entry.js +1 -1
  392. package/dist/esm/z-info-reveal.entry.js +2 -2
  393. package/dist/esm/z-logo.entry.js +1 -1
  394. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  395. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  396. package/dist/esm/z-menu-section.entry.js +2 -2
  397. package/dist/esm/z-menu.entry.js +2 -2
  398. package/dist/esm/z-menu.entry.js.map +1 -1
  399. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  400. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  401. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  402. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  403. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  404. package/dist/esm/z-myz-card-info.entry.js +3 -3
  405. package/dist/esm/z-myz-card-list.entry.js +1 -1
  406. package/dist/esm/z-myz-card_4.entry.js +5 -5
  407. package/dist/esm/z-myz-list-item.entry.js +3 -3
  408. package/dist/esm/z-myz-list.entry.js +1 -1
  409. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  410. package/dist/esm/z-notification.entry.js +2 -2
  411. package/dist/esm/z-notification.entry.js.map +1 -1
  412. package/dist/esm/z-otp.entry.js +3 -3
  413. package/dist/esm/z-pagination.entry.js +1 -1
  414. package/dist/esm/z-panel-elem.entry.js +2 -2
  415. package/dist/esm/z-popover.entry.js +20 -16
  416. package/dist/esm/z-popover.entry.js.map +1 -1
  417. package/dist/esm/z-range-picker.entry.js +5 -5
  418. package/dist/esm/z-section-title.entry.js +2 -2
  419. package/dist/esm/z-select.entry.js +99 -134
  420. package/dist/esm/z-select.entry.js.map +1 -1
  421. package/dist/esm/z-skip-to-content.entry.js +3 -3
  422. package/dist/esm/z-slideshow.entry.js +2 -2
  423. package/dist/esm/z-stepper-item.entry.js +1 -1
  424. package/dist/esm/z-stepper.entry.js +1 -1
  425. package/dist/esm/z-table.entry.js +9 -9
  426. package/dist/esm/z-tbody.entry.js +1 -1
  427. package/dist/esm/z-td.entry.js +2 -2
  428. package/dist/esm/z-tfoot.entry.js +1 -1
  429. package/dist/esm/z-th.entry.js +2 -2
  430. package/dist/esm/z-thead.entry.js +1 -1
  431. package/dist/esm/z-toast-notification-list.entry.js +3 -2
  432. package/dist/esm/z-toast-notification-list.entry.js.map +1 -1
  433. package/dist/esm/z-toast-notification.entry.js +2 -2
  434. package/dist/esm/z-toggle-button.entry.js +2 -2
  435. package/dist/esm/z-toggle-switch.entry.js +5 -5
  436. package/dist/esm/z-tool.entry.js +147 -42
  437. package/dist/esm/z-tool.entry.js.map +1 -1
  438. package/dist/esm/z-toolbar.entry.js +64 -66
  439. package/dist/esm/z-toolbar.entry.js.map +1 -1
  440. package/dist/esm/z-tooltip.entry.js +4 -3
  441. package/dist/esm/z-tooltip.entry.js.map +1 -1
  442. package/dist/esm/z-tr.entry.js +5 -5
  443. package/dist/esm/z-tree-list.entry.js +2 -2
  444. package/dist/esm/z-visually-hidden.entry.js +1 -1
  445. package/dist/types/beans/index.d.ts +184 -0
  446. package/dist/types/components/list/z-list-group/index.d.ts +8 -0
  447. package/dist/types/components/z-app-header/index.stories.d.ts +16 -0
  448. package/dist/types/components/z-color-picker/index.d.ts +64 -0
  449. package/dist/types/components/z-color-picker/index.stories.d.ts +33 -0
  450. package/dist/types/components/z-combobox/index.d.ts +10 -11
  451. package/dist/types/components/z-icon/index.d.ts +19 -5
  452. package/dist/types/components/z-icon/index.stories.d.ts +23 -10
  453. package/dist/types/components/z-offcanvas/index.d.ts +24 -0
  454. package/dist/types/components/z-popover/index.d.ts +9 -4
  455. package/dist/types/components/z-select/index.d.ts +5 -7
  456. package/dist/types/components/z-tool/index.d.ts +73 -9
  457. package/dist/types/components/z-tool/index.stories.d.ts +38 -12
  458. package/dist/types/components/z-toolbar/index.d.ts +23 -6
  459. package/dist/types/components/z-toolbar/index.stories.d.ts +23 -20
  460. package/dist/types/components/z-tooltip/index.d.ts +8 -0
  461. package/dist/types/components.d.ts +213 -35
  462. package/dist/types/constants/iconset.d.ts +281 -141
  463. package/dist/types/index.d.ts +1 -0
  464. package/dist/types/utils/utils.d.ts +5 -2
  465. package/dist/web-components-library/index.esm.js +1 -1
  466. package/dist/web-components-library/index.esm.js.map +1 -1
  467. package/{www/build/p-5a24e268.entry.js → dist/web-components-library/p-03a558ef.entry.js} +2 -2
  468. package/dist/web-components-library/p-061e28d6.js +2 -0
  469. package/dist/web-components-library/p-061e28d6.js.map +1 -0
  470. package/dist/web-components-library/p-0989655c.entry.js +2 -0
  471. package/dist/web-components-library/p-0989655c.entry.js.map +1 -0
  472. package/dist/web-components-library/p-102f6e37.entry.js +2 -0
  473. package/dist/web-components-library/p-102f6e37.entry.js.map +1 -0
  474. package/dist/web-components-library/{p-d9c9de15.entry.js → p-15951fc6.entry.js} +2 -2
  475. package/dist/web-components-library/p-17e2fed2.entry.js +2 -0
  476. package/dist/web-components-library/{p-b7ec2cc4.entry.js → p-19172b2c.entry.js} +2 -2
  477. package/{www/build/p-94916bdf.entry.js → dist/web-components-library/p-1939116a.entry.js} +2 -2
  478. package/dist/web-components-library/{p-b71a3f69.entry.js → p-1e0d85d5.entry.js} +2 -2
  479. package/dist/web-components-library/{p-bdbcf353.entry.js → p-215b1fa5.entry.js} +2 -2
  480. package/dist/web-components-library/p-22b683a3.entry.js +2 -0
  481. package/dist/web-components-library/p-22b683a3.entry.js.map +1 -0
  482. package/dist/web-components-library/p-2a04c00e.entry.js +2 -0
  483. package/dist/web-components-library/{p-816fd6dc.entry.js.map → p-2a04c00e.entry.js.map} +1 -1
  484. package/{www/build/p-1fd1cf02.entry.js → dist/web-components-library/p-2bba665d.entry.js} +2 -2
  485. package/dist/web-components-library/{p-5a1f98a2.entry.js → p-2f45f1ff.entry.js} +2 -2
  486. package/dist/web-components-library/{p-86160fe3.entry.js → p-332e0361.entry.js} +2 -2
  487. package/{www/build/p-4cec3345.entry.js → dist/web-components-library/p-3d02ad75.entry.js} +2 -2
  488. package/dist/web-components-library/{p-240de9aa.entry.js → p-3f66654f.entry.js} +2 -2
  489. package/{www/build/p-8c164e0d.entry.js → dist/web-components-library/p-41891d34.entry.js} +2 -2
  490. package/{www/build/p-19f5b6a9.entry.js → dist/web-components-library/p-47b7bc63.entry.js} +2 -2
  491. package/dist/web-components-library/{p-ceeb3e2a.entry.js → p-4df66afe.entry.js} +2 -2
  492. package/{www/build/p-748fa3ae.js → dist/web-components-library/p-54cd104c.js} +2 -2
  493. package/dist/web-components-library/p-577c224d.entry.js +2 -0
  494. package/dist/web-components-library/p-577c224d.entry.js.map +1 -0
  495. package/dist/web-components-library/{p-01f941c2.entry.js → p-57dcff49.entry.js} +2 -2
  496. package/{www/build/p-2aeffcf9.entry.js → dist/web-components-library/p-5838b77c.entry.js} +2 -2
  497. package/dist/web-components-library/{p-4551b0df.entry.js → p-5cdd431e.entry.js} +2 -2
  498. package/dist/web-components-library/{p-f19f12b1.js → p-5f1e17cb.js} +2 -2
  499. package/{www/build/p-c778bf87.entry.js → dist/web-components-library/p-5fda8769.entry.js} +3 -3
  500. package/dist/web-components-library/{p-4affbb99.entry.js → p-661bce1c.entry.js} +2 -2
  501. package/dist/web-components-library/{p-ee695830.entry.js → p-66c0f993.entry.js} +2 -2
  502. package/dist/web-components-library/p-6c3d141b.entry.js +2 -0
  503. package/{www/build/p-b7b972c0.entry.js → dist/web-components-library/p-6d61933f.entry.js} +2 -2
  504. package/dist/web-components-library/{p-44459393.entry.js → p-6ef58a14.entry.js} +2 -2
  505. package/dist/web-components-library/{p-a905df88.entry.js → p-71f62226.entry.js} +2 -2
  506. package/dist/web-components-library/p-76003048.entry.js +2 -0
  507. package/dist/web-components-library/p-76003048.entry.js.map +1 -0
  508. package/dist/web-components-library/{p-d7f12672.js → p-80285500.js} +2 -2
  509. package/dist/web-components-library/p-80ddecaf.entry.js +2 -0
  510. package/dist/web-components-library/p-83a26e88.entry.js +2 -0
  511. package/{www/build/p-99210133.entry.js.map → dist/web-components-library/p-83a26e88.entry.js.map} +1 -1
  512. package/dist/web-components-library/p-8503c87a.entry.js +2 -0
  513. package/dist/web-components-library/p-8503c87a.entry.js.map +1 -0
  514. package/dist/web-components-library/p-86618221.js +2 -0
  515. package/dist/web-components-library/p-86618221.js.map +1 -0
  516. package/{www/build/p-b96900bb.entry.js → dist/web-components-library/p-87edcc75.entry.js} +2 -2
  517. package/dist/web-components-library/{p-757415e9.entry.js → p-88a9865c.entry.js} +2 -2
  518. package/dist/web-components-library/p-8aaceeed.entry.js +2 -0
  519. package/dist/web-components-library/p-8aaceeed.entry.js.map +1 -0
  520. package/dist/web-components-library/{p-d6a7b7f3.entry.js → p-8b562dca.entry.js} +2 -2
  521. package/dist/web-components-library/p-901518b8.entry.js +2 -0
  522. package/dist/web-components-library/{p-2f948bac.entry.js → p-90690d4d.entry.js} +2 -2
  523. package/dist/web-components-library/{p-0a49dd1c.entry.js → p-90babaaa.entry.js} +2 -2
  524. package/{www/build/p-0a49dd1c.entry.js.map → dist/web-components-library/p-90babaaa.entry.js.map} +1 -1
  525. package/dist/web-components-library/p-9af837bb.entry.js +2 -0
  526. package/dist/web-components-library/{p-04f80811.entry.js → p-9eba4a37.entry.js} +2 -2
  527. package/dist/web-components-library/p-a32ebcc3.entry.js +2 -0
  528. package/dist/web-components-library/{p-3f5aa623.entry.js → p-a3f9a5da.entry.js} +2 -2
  529. package/dist/web-components-library/p-a3f9a5da.entry.js.map +1 -0
  530. package/{www/build/p-1844a4f4.entry.js → dist/web-components-library/p-b0324c7d.entry.js} +2 -2
  531. package/dist/web-components-library/p-b06af2fc.js +2 -0
  532. package/{www/build/p-817689d5.entry.js → dist/web-components-library/p-b1f2388a.entry.js} +3 -3
  533. package/dist/web-components-library/{p-342b0eb0.entry.js → p-b421424f.entry.js} +2 -2
  534. package/dist/web-components-library/{p-fb232d07.entry.js → p-b4b264b1.entry.js} +2 -2
  535. package/dist/web-components-library/{p-1c7550f9.entry.js → p-b70ff542.entry.js} +2 -2
  536. package/{www/build/p-b63c8e8b.entry.js → dist/web-components-library/p-b854cc3d.entry.js} +2 -2
  537. package/dist/web-components-library/{p-e9e2ceb4.entry.js → p-bc15e1dc.entry.js} +2 -2
  538. package/dist/web-components-library/{p-4a257653.entry.js → p-c03767a4.entry.js} +2 -2
  539. package/dist/web-components-library/{p-2bdac94e.entry.js → p-c0b4f29d.entry.js} +2 -2
  540. package/dist/web-components-library/{p-7a4f6a5b.entry.js → p-c57bb632.entry.js} +2 -2
  541. package/dist/web-components-library/p-c5e032de.entry.js +2 -0
  542. package/dist/web-components-library/p-c5e032de.entry.js.map +1 -0
  543. package/{www/build/p-34975328.entry.js → dist/web-components-library/p-c645dc11.entry.js} +2 -2
  544. package/dist/web-components-library/p-c93c6135.entry.js +2 -0
  545. package/dist/web-components-library/{p-deb7f8d7.entry.js.map → p-c93c6135.entry.js.map} +1 -1
  546. package/dist/web-components-library/{p-30e42fb1.js → p-cb395500.js} +2 -2
  547. package/dist/web-components-library/{p-5989465b.entry.js → p-cc87d814.entry.js} +2 -2
  548. package/{www/build/p-e3b82454.entry.js → dist/web-components-library/p-d1fe7960.entry.js} +2 -2
  549. package/dist/web-components-library/{p-5159edb1.entry.js → p-d5ebbfdf.entry.js} +2 -2
  550. package/dist/web-components-library/p-d65aeb54.entry.js +2 -0
  551. package/dist/web-components-library/{p-e0b88075.entry.js → p-dba260f2.entry.js} +2 -2
  552. package/dist/web-components-library/{p-943db3a8.entry.js → p-ddae9016.entry.js} +2 -2
  553. package/dist/web-components-library/p-de313d96.entry.js +2 -0
  554. package/dist/web-components-library/{p-375f8542.entry.js → p-e38a5dd2.entry.js} +2 -2
  555. package/dist/web-components-library/p-eb15536d.js +2 -0
  556. package/dist/web-components-library/p-eb15536d.js.map +1 -0
  557. package/{www/build/p-f4bac89b.entry.js → dist/web-components-library/p-eb9161bc.entry.js} +2 -2
  558. package/dist/web-components-library/p-ec2a0b31.js +2 -0
  559. package/{www/build/p-030257b3.js.map → dist/web-components-library/p-ec2a0b31.js.map} +1 -1
  560. package/dist/web-components-library/p-f0022852.entry.js +2 -0
  561. package/dist/web-components-library/p-f0022852.entry.js.map +1 -0
  562. package/dist/web-components-library/{p-8687691b.entry.js → p-f0f53bb2.entry.js} +2 -2
  563. package/dist/web-components-library/p-f79010de.js +2 -0
  564. package/dist/web-components-library/p-f8e95a75.entry.js +2 -0
  565. package/dist/web-components-library/p-f8e95a75.entry.js.map +1 -0
  566. package/dist/web-components-library/web-components-library.esm.js +1 -1
  567. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  568. package/package.json +3 -3
  569. package/react/components.d.ts +1 -0
  570. package/react/components.js +3 -2
  571. package/react/components.js.map +1 -1
  572. package/www/build/index.esm.js +1 -1
  573. package/www/build/index.esm.js.map +1 -1
  574. package/{dist/web-components-library/p-5a24e268.entry.js → www/build/p-03a558ef.entry.js} +2 -2
  575. package/www/build/p-061e28d6.js +2 -0
  576. package/www/build/p-061e28d6.js.map +1 -0
  577. package/www/build/p-0989655c.entry.js +2 -0
  578. package/www/build/p-0989655c.entry.js.map +1 -0
  579. package/www/build/p-102f6e37.entry.js +2 -0
  580. package/www/build/p-102f6e37.entry.js.map +1 -0
  581. package/www/build/{p-d9c9de15.entry.js → p-15951fc6.entry.js} +2 -2
  582. package/www/build/p-17e2fed2.entry.js +2 -0
  583. package/www/build/{p-b7ec2cc4.entry.js → p-19172b2c.entry.js} +2 -2
  584. package/{dist/web-components-library/p-94916bdf.entry.js → www/build/p-1939116a.entry.js} +2 -2
  585. package/www/build/{p-b71a3f69.entry.js → p-1e0d85d5.entry.js} +2 -2
  586. package/www/build/{p-bdbcf353.entry.js → p-215b1fa5.entry.js} +2 -2
  587. package/www/build/p-22b683a3.entry.js +2 -0
  588. package/www/build/p-22b683a3.entry.js.map +1 -0
  589. package/www/build/p-2a04c00e.entry.js +2 -0
  590. package/www/build/{p-816fd6dc.entry.js.map → p-2a04c00e.entry.js.map} +1 -1
  591. package/{dist/web-components-library/p-1fd1cf02.entry.js → www/build/p-2bba665d.entry.js} +2 -2
  592. package/www/build/{p-5a1f98a2.entry.js → p-2f45f1ff.entry.js} +2 -2
  593. package/www/build/{p-86160fe3.entry.js → p-332e0361.entry.js} +2 -2
  594. package/{dist/web-components-library/p-4cec3345.entry.js → www/build/p-3d02ad75.entry.js} +2 -2
  595. package/www/build/{p-240de9aa.entry.js → p-3f66654f.entry.js} +2 -2
  596. package/{dist/web-components-library/p-8c164e0d.entry.js → www/build/p-41891d34.entry.js} +2 -2
  597. package/{dist/web-components-library/p-19f5b6a9.entry.js → www/build/p-47b7bc63.entry.js} +2 -2
  598. package/www/build/{p-ceeb3e2a.entry.js → p-4df66afe.entry.js} +2 -2
  599. package/{dist/web-components-library/p-748fa3ae.js → www/build/p-54cd104c.js} +2 -2
  600. package/www/build/p-577c224d.entry.js +2 -0
  601. package/www/build/p-577c224d.entry.js.map +1 -0
  602. package/www/build/{p-01f941c2.entry.js → p-57dcff49.entry.js} +2 -2
  603. package/{dist/web-components-library/p-2aeffcf9.entry.js → www/build/p-5838b77c.entry.js} +2 -2
  604. package/www/build/{p-4551b0df.entry.js → p-5cdd431e.entry.js} +2 -2
  605. package/www/build/{p-f19f12b1.js → p-5f1e17cb.js} +2 -2
  606. package/{dist/web-components-library/p-c778bf87.entry.js → www/build/p-5fda8769.entry.js} +3 -3
  607. package/www/build/{p-4affbb99.entry.js → p-661bce1c.entry.js} +2 -2
  608. package/www/build/{p-ee695830.entry.js → p-66c0f993.entry.js} +2 -2
  609. package/www/build/p-6c3d141b.entry.js +2 -0
  610. package/{dist/web-components-library/p-b7b972c0.entry.js → www/build/p-6d61933f.entry.js} +2 -2
  611. package/www/build/{p-44459393.entry.js → p-6ef58a14.entry.js} +2 -2
  612. package/www/build/{p-a905df88.entry.js → p-71f62226.entry.js} +2 -2
  613. package/www/build/p-76003048.entry.js +2 -0
  614. package/www/build/p-76003048.entry.js.map +1 -0
  615. package/www/build/{p-d7f12672.js → p-80285500.js} +2 -2
  616. package/www/build/p-80ddecaf.entry.js +2 -0
  617. package/www/build/p-83a26e88.entry.js +2 -0
  618. package/{dist/web-components-library/p-99210133.entry.js.map → www/build/p-83a26e88.entry.js.map} +1 -1
  619. package/www/build/p-8503c87a.entry.js +2 -0
  620. package/www/build/p-8503c87a.entry.js.map +1 -0
  621. package/www/build/p-86618221.js +2 -0
  622. package/www/build/p-86618221.js.map +1 -0
  623. package/{dist/web-components-library/p-b96900bb.entry.js → www/build/p-87edcc75.entry.js} +2 -2
  624. package/www/build/{p-757415e9.entry.js → p-88a9865c.entry.js} +2 -2
  625. package/www/build/p-8a9e2264.js +2 -0
  626. package/www/build/p-8aaceeed.entry.js +2 -0
  627. package/www/build/p-8aaceeed.entry.js.map +1 -0
  628. package/www/build/{p-d6a7b7f3.entry.js → p-8b562dca.entry.js} +2 -2
  629. package/www/build/p-901518b8.entry.js +2 -0
  630. package/www/build/{p-2f948bac.entry.js → p-90690d4d.entry.js} +2 -2
  631. package/www/build/{p-0a49dd1c.entry.js → p-90babaaa.entry.js} +2 -2
  632. package/{dist/web-components-library/p-0a49dd1c.entry.js.map → www/build/p-90babaaa.entry.js.map} +1 -1
  633. package/www/build/p-9af837bb.entry.js +2 -0
  634. package/www/build/{p-04f80811.entry.js → p-9eba4a37.entry.js} +2 -2
  635. package/www/build/p-a32ebcc3.entry.js +2 -0
  636. package/www/build/{p-3f5aa623.entry.js → p-a3f9a5da.entry.js} +2 -2
  637. package/www/build/p-a3f9a5da.entry.js.map +1 -0
  638. package/{dist/web-components-library/p-1844a4f4.entry.js → www/build/p-b0324c7d.entry.js} +2 -2
  639. package/www/build/p-b06af2fc.js +2 -0
  640. package/{dist/web-components-library/p-817689d5.entry.js → www/build/p-b1f2388a.entry.js} +3 -3
  641. package/www/build/{p-342b0eb0.entry.js → p-b421424f.entry.js} +2 -2
  642. package/www/build/{p-fb232d07.entry.js → p-b4b264b1.entry.js} +2 -2
  643. package/www/build/{p-1c7550f9.entry.js → p-b70ff542.entry.js} +2 -2
  644. package/{dist/web-components-library/p-b63c8e8b.entry.js → www/build/p-b854cc3d.entry.js} +2 -2
  645. package/www/build/{p-e9e2ceb4.entry.js → p-bc15e1dc.entry.js} +2 -2
  646. package/www/build/{p-4a257653.entry.js → p-c03767a4.entry.js} +2 -2
  647. package/www/build/{p-2bdac94e.entry.js → p-c0b4f29d.entry.js} +2 -2
  648. package/www/build/{p-7a4f6a5b.entry.js → p-c57bb632.entry.js} +2 -2
  649. package/www/build/p-c5e032de.entry.js +2 -0
  650. package/www/build/p-c5e032de.entry.js.map +1 -0
  651. package/{dist/web-components-library/p-34975328.entry.js → www/build/p-c645dc11.entry.js} +2 -2
  652. package/www/build/p-c93c6135.entry.js +2 -0
  653. package/www/build/{p-deb7f8d7.entry.js.map → p-c93c6135.entry.js.map} +1 -1
  654. package/www/build/{p-30e42fb1.js → p-cb395500.js} +2 -2
  655. package/www/build/{p-5989465b.entry.js → p-cc87d814.entry.js} +2 -2
  656. package/{dist/web-components-library/p-e3b82454.entry.js → www/build/p-d1fe7960.entry.js} +2 -2
  657. package/www/build/{p-5159edb1.entry.js → p-d5ebbfdf.entry.js} +2 -2
  658. package/www/build/p-d65aeb54.entry.js +2 -0
  659. package/www/build/{p-e0b88075.entry.js → p-dba260f2.entry.js} +2 -2
  660. package/www/build/{p-943db3a8.entry.js → p-ddae9016.entry.js} +2 -2
  661. package/www/build/p-de313d96.entry.js +2 -0
  662. package/www/build/{p-375f8542.entry.js → p-e38a5dd2.entry.js} +2 -2
  663. package/www/build/p-eb15536d.js +2 -0
  664. package/www/build/p-eb15536d.js.map +1 -0
  665. package/{dist/web-components-library/p-f4bac89b.entry.js → www/build/p-eb9161bc.entry.js} +2 -2
  666. package/www/build/p-ec2a0b31.js +2 -0
  667. package/{dist/web-components-library/p-030257b3.js.map → www/build/p-ec2a0b31.js.map} +1 -1
  668. package/www/build/p-f0022852.entry.js +2 -0
  669. package/www/build/p-f0022852.entry.js.map +1 -0
  670. package/www/build/{p-8687691b.entry.js → p-f0f53bb2.entry.js} +2 -2
  671. package/www/build/p-f79010de.js +2 -0
  672. package/www/build/p-f8e95a75.entry.js +2 -0
  673. package/www/build/p-f8e95a75.entry.js.map +1 -0
  674. package/www/build/web-components-library.esm.js +1 -1
  675. package/www/build/web-components-library.esm.js.map +1 -1
  676. package/www/index.html +1 -1
  677. package/dist/cjs/index-97a4c18d.js.map +0 -1
  678. package/dist/cjs/utils-5148245a.js.map +0 -1
  679. package/dist/esm/index-2a6324f8.js.map +0 -1
  680. package/dist/esm/utils-e66d94c3.js.map +0 -1
  681. package/dist/web-components-library/p-030257b3.js +0 -2
  682. package/dist/web-components-library/p-1170826b.js +0 -2
  683. package/dist/web-components-library/p-17af7fb2.js +0 -2
  684. package/dist/web-components-library/p-17af7fb2.js.map +0 -1
  685. package/dist/web-components-library/p-17e1abca.entry.js +0 -2
  686. package/dist/web-components-library/p-17e1abca.entry.js.map +0 -1
  687. package/dist/web-components-library/p-198b1692.entry.js +0 -2
  688. package/dist/web-components-library/p-22128478.entry.js +0 -2
  689. package/dist/web-components-library/p-22128478.entry.js.map +0 -1
  690. package/dist/web-components-library/p-22ba2a17.entry.js +0 -2
  691. package/dist/web-components-library/p-22ba2a17.entry.js.map +0 -1
  692. package/dist/web-components-library/p-237fcaa9.entry.js +0 -2
  693. package/dist/web-components-library/p-2612e3a2.entry.js +0 -2
  694. package/dist/web-components-library/p-2612e3a2.entry.js.map +0 -1
  695. package/dist/web-components-library/p-334cba5d.entry.js +0 -2
  696. package/dist/web-components-library/p-334cba5d.entry.js.map +0 -1
  697. package/dist/web-components-library/p-3f5aa623.entry.js.map +0 -1
  698. package/dist/web-components-library/p-4c9bf42d.js +0 -2
  699. package/dist/web-components-library/p-60e3fa30.entry.js +0 -2
  700. package/dist/web-components-library/p-6cffbabc.entry.js +0 -2
  701. package/dist/web-components-library/p-6cffbabc.entry.js.map +0 -1
  702. package/dist/web-components-library/p-816fd6dc.entry.js +0 -2
  703. package/dist/web-components-library/p-99210133.entry.js +0 -2
  704. package/dist/web-components-library/p-9e3da0b7.entry.js +0 -2
  705. package/dist/web-components-library/p-bc7fd8af.entry.js +0 -2
  706. package/dist/web-components-library/p-bc7fd8af.entry.js.map +0 -1
  707. package/dist/web-components-library/p-cc18a2b7.entry.js +0 -2
  708. package/dist/web-components-library/p-cc18a2b7.entry.js.map +0 -1
  709. package/dist/web-components-library/p-d2035d26.entry.js +0 -2
  710. package/dist/web-components-library/p-d75f8bbb.entry.js +0 -2
  711. package/dist/web-components-library/p-d90d2698.entry.js +0 -2
  712. package/dist/web-components-library/p-deb7f8d7.entry.js +0 -2
  713. package/dist/web-components-library/p-e5407cc1.entry.js +0 -2
  714. package/dist/web-components-library/p-e6778114.js +0 -2
  715. package/dist/web-components-library/p-e6778114.js.map +0 -1
  716. package/dist/web-components-library/p-f5dfd04d.entry.js +0 -2
  717. package/dist/web-components-library/p-f5dfd04d.entry.js.map +0 -1
  718. package/www/build/p-030257b3.js +0 -2
  719. package/www/build/p-0aba9c42.js +0 -2
  720. package/www/build/p-1170826b.js +0 -2
  721. package/www/build/p-17af7fb2.js +0 -2
  722. package/www/build/p-17af7fb2.js.map +0 -1
  723. package/www/build/p-17e1abca.entry.js +0 -2
  724. package/www/build/p-17e1abca.entry.js.map +0 -1
  725. package/www/build/p-198b1692.entry.js +0 -2
  726. package/www/build/p-22128478.entry.js +0 -2
  727. package/www/build/p-22128478.entry.js.map +0 -1
  728. package/www/build/p-22ba2a17.entry.js +0 -2
  729. package/www/build/p-22ba2a17.entry.js.map +0 -1
  730. package/www/build/p-237fcaa9.entry.js +0 -2
  731. package/www/build/p-2612e3a2.entry.js +0 -2
  732. package/www/build/p-2612e3a2.entry.js.map +0 -1
  733. package/www/build/p-334cba5d.entry.js +0 -2
  734. package/www/build/p-334cba5d.entry.js.map +0 -1
  735. package/www/build/p-3f5aa623.entry.js.map +0 -1
  736. package/www/build/p-4c9bf42d.js +0 -2
  737. package/www/build/p-60e3fa30.entry.js +0 -2
  738. package/www/build/p-6cffbabc.entry.js +0 -2
  739. package/www/build/p-6cffbabc.entry.js.map +0 -1
  740. package/www/build/p-816fd6dc.entry.js +0 -2
  741. package/www/build/p-99210133.entry.js +0 -2
  742. package/www/build/p-9e3da0b7.entry.js +0 -2
  743. package/www/build/p-bc7fd8af.entry.js +0 -2
  744. package/www/build/p-bc7fd8af.entry.js.map +0 -1
  745. package/www/build/p-cc18a2b7.entry.js +0 -2
  746. package/www/build/p-cc18a2b7.entry.js.map +0 -1
  747. package/www/build/p-d2035d26.entry.js +0 -2
  748. package/www/build/p-d75f8bbb.entry.js +0 -2
  749. package/www/build/p-d90d2698.entry.js +0 -2
  750. package/www/build/p-deb7f8d7.entry.js +0 -2
  751. package/www/build/p-e5407cc1.entry.js +0 -2
  752. package/www/build/p-e6778114.js +0 -2
  753. package/www/build/p-e6778114.js.map +0 -1
  754. package/www/build/p-f5dfd04d.entry.js +0 -2
  755. package/www/build/p-f5dfd04d.entry.js.map +0 -1
  756. /package/dist/web-components-library/{p-5a24e268.entry.js.map → p-03a558ef.entry.js.map} +0 -0
  757. /package/dist/web-components-library/{p-d9c9de15.entry.js.map → p-15951fc6.entry.js.map} +0 -0
  758. /package/dist/web-components-library/{p-237fcaa9.entry.js.map → p-17e2fed2.entry.js.map} +0 -0
  759. /package/dist/web-components-library/{p-b7ec2cc4.entry.js.map → p-19172b2c.entry.js.map} +0 -0
  760. /package/dist/web-components-library/{p-94916bdf.entry.js.map → p-1939116a.entry.js.map} +0 -0
  761. /package/dist/web-components-library/{p-b71a3f69.entry.js.map → p-1e0d85d5.entry.js.map} +0 -0
  762. /package/dist/web-components-library/{p-bdbcf353.entry.js.map → p-215b1fa5.entry.js.map} +0 -0
  763. /package/dist/web-components-library/{p-1fd1cf02.entry.js.map → p-2bba665d.entry.js.map} +0 -0
  764. /package/dist/web-components-library/{p-5a1f98a2.entry.js.map → p-2f45f1ff.entry.js.map} +0 -0
  765. /package/dist/web-components-library/{p-86160fe3.entry.js.map → p-332e0361.entry.js.map} +0 -0
  766. /package/dist/web-components-library/{p-4cec3345.entry.js.map → p-3d02ad75.entry.js.map} +0 -0
  767. /package/dist/web-components-library/{p-240de9aa.entry.js.map → p-3f66654f.entry.js.map} +0 -0
  768. /package/dist/web-components-library/{p-8c164e0d.entry.js.map → p-41891d34.entry.js.map} +0 -0
  769. /package/dist/web-components-library/{p-19f5b6a9.entry.js.map → p-47b7bc63.entry.js.map} +0 -0
  770. /package/dist/web-components-library/{p-ceeb3e2a.entry.js.map → p-4df66afe.entry.js.map} +0 -0
  771. /package/dist/web-components-library/{p-748fa3ae.js.map → p-54cd104c.js.map} +0 -0
  772. /package/dist/web-components-library/{p-01f941c2.entry.js.map → p-57dcff49.entry.js.map} +0 -0
  773. /package/dist/web-components-library/{p-2aeffcf9.entry.js.map → p-5838b77c.entry.js.map} +0 -0
  774. /package/dist/web-components-library/{p-4551b0df.entry.js.map → p-5cdd431e.entry.js.map} +0 -0
  775. /package/dist/web-components-library/{p-f19f12b1.js.map → p-5f1e17cb.js.map} +0 -0
  776. /package/dist/web-components-library/{p-c778bf87.entry.js.map → p-5fda8769.entry.js.map} +0 -0
  777. /package/dist/web-components-library/{p-4affbb99.entry.js.map → p-661bce1c.entry.js.map} +0 -0
  778. /package/dist/web-components-library/{p-ee695830.entry.js.map → p-66c0f993.entry.js.map} +0 -0
  779. /package/dist/web-components-library/{p-9e3da0b7.entry.js.map → p-6c3d141b.entry.js.map} +0 -0
  780. /package/dist/web-components-library/{p-b7b972c0.entry.js.map → p-6d61933f.entry.js.map} +0 -0
  781. /package/dist/web-components-library/{p-44459393.entry.js.map → p-6ef58a14.entry.js.map} +0 -0
  782. /package/dist/web-components-library/{p-a905df88.entry.js.map → p-71f62226.entry.js.map} +0 -0
  783. /package/dist/web-components-library/{p-d7f12672.js.map → p-80285500.js.map} +0 -0
  784. /package/dist/web-components-library/{p-198b1692.entry.js.map → p-80ddecaf.entry.js.map} +0 -0
  785. /package/dist/web-components-library/{p-b96900bb.entry.js.map → p-87edcc75.entry.js.map} +0 -0
  786. /package/dist/web-components-library/{p-757415e9.entry.js.map → p-88a9865c.entry.js.map} +0 -0
  787. /package/dist/web-components-library/{p-d6a7b7f3.entry.js.map → p-8b562dca.entry.js.map} +0 -0
  788. /package/dist/web-components-library/{p-d2035d26.entry.js.map → p-901518b8.entry.js.map} +0 -0
  789. /package/dist/web-components-library/{p-2f948bac.entry.js.map → p-90690d4d.entry.js.map} +0 -0
  790. /package/dist/web-components-library/{p-d75f8bbb.entry.js.map → p-9af837bb.entry.js.map} +0 -0
  791. /package/dist/web-components-library/{p-04f80811.entry.js.map → p-9eba4a37.entry.js.map} +0 -0
  792. /package/dist/web-components-library/{p-d90d2698.entry.js.map → p-a32ebcc3.entry.js.map} +0 -0
  793. /package/dist/web-components-library/{p-1844a4f4.entry.js.map → p-b0324c7d.entry.js.map} +0 -0
  794. /package/dist/web-components-library/{p-4c9bf42d.js.map → p-b06af2fc.js.map} +0 -0
  795. /package/dist/web-components-library/{p-817689d5.entry.js.map → p-b1f2388a.entry.js.map} +0 -0
  796. /package/dist/web-components-library/{p-342b0eb0.entry.js.map → p-b421424f.entry.js.map} +0 -0
  797. /package/dist/web-components-library/{p-fb232d07.entry.js.map → p-b4b264b1.entry.js.map} +0 -0
  798. /package/dist/web-components-library/{p-1c7550f9.entry.js.map → p-b70ff542.entry.js.map} +0 -0
  799. /package/dist/web-components-library/{p-b63c8e8b.entry.js.map → p-b854cc3d.entry.js.map} +0 -0
  800. /package/dist/web-components-library/{p-e9e2ceb4.entry.js.map → p-bc15e1dc.entry.js.map} +0 -0
  801. /package/dist/web-components-library/{p-4a257653.entry.js.map → p-c03767a4.entry.js.map} +0 -0
  802. /package/dist/web-components-library/{p-2bdac94e.entry.js.map → p-c0b4f29d.entry.js.map} +0 -0
  803. /package/dist/web-components-library/{p-7a4f6a5b.entry.js.map → p-c57bb632.entry.js.map} +0 -0
  804. /package/dist/web-components-library/{p-34975328.entry.js.map → p-c645dc11.entry.js.map} +0 -0
  805. /package/dist/web-components-library/{p-30e42fb1.js.map → p-cb395500.js.map} +0 -0
  806. /package/dist/web-components-library/{p-5989465b.entry.js.map → p-cc87d814.entry.js.map} +0 -0
  807. /package/dist/web-components-library/{p-e3b82454.entry.js.map → p-d1fe7960.entry.js.map} +0 -0
  808. /package/dist/web-components-library/{p-5159edb1.entry.js.map → p-d5ebbfdf.entry.js.map} +0 -0
  809. /package/dist/web-components-library/{p-e5407cc1.entry.js.map → p-d65aeb54.entry.js.map} +0 -0
  810. /package/dist/web-components-library/{p-e0b88075.entry.js.map → p-dba260f2.entry.js.map} +0 -0
  811. /package/dist/web-components-library/{p-943db3a8.entry.js.map → p-ddae9016.entry.js.map} +0 -0
  812. /package/dist/web-components-library/{p-60e3fa30.entry.js.map → p-de313d96.entry.js.map} +0 -0
  813. /package/dist/web-components-library/{p-375f8542.entry.js.map → p-e38a5dd2.entry.js.map} +0 -0
  814. /package/dist/web-components-library/{p-f4bac89b.entry.js.map → p-eb9161bc.entry.js.map} +0 -0
  815. /package/dist/web-components-library/{p-8687691b.entry.js.map → p-f0f53bb2.entry.js.map} +0 -0
  816. /package/dist/web-components-library/{p-1170826b.js.map → p-f79010de.js.map} +0 -0
  817. /package/www/build/{p-5a24e268.entry.js.map → p-03a558ef.entry.js.map} +0 -0
  818. /package/www/build/{p-d9c9de15.entry.js.map → p-15951fc6.entry.js.map} +0 -0
  819. /package/www/build/{p-237fcaa9.entry.js.map → p-17e2fed2.entry.js.map} +0 -0
  820. /package/www/build/{p-b7ec2cc4.entry.js.map → p-19172b2c.entry.js.map} +0 -0
  821. /package/www/build/{p-94916bdf.entry.js.map → p-1939116a.entry.js.map} +0 -0
  822. /package/www/build/{p-b71a3f69.entry.js.map → p-1e0d85d5.entry.js.map} +0 -0
  823. /package/www/build/{p-bdbcf353.entry.js.map → p-215b1fa5.entry.js.map} +0 -0
  824. /package/www/build/{p-1fd1cf02.entry.js.map → p-2bba665d.entry.js.map} +0 -0
  825. /package/www/build/{p-5a1f98a2.entry.js.map → p-2f45f1ff.entry.js.map} +0 -0
  826. /package/www/build/{p-86160fe3.entry.js.map → p-332e0361.entry.js.map} +0 -0
  827. /package/www/build/{p-4cec3345.entry.js.map → p-3d02ad75.entry.js.map} +0 -0
  828. /package/www/build/{p-240de9aa.entry.js.map → p-3f66654f.entry.js.map} +0 -0
  829. /package/www/build/{p-8c164e0d.entry.js.map → p-41891d34.entry.js.map} +0 -0
  830. /package/www/build/{p-19f5b6a9.entry.js.map → p-47b7bc63.entry.js.map} +0 -0
  831. /package/www/build/{p-ceeb3e2a.entry.js.map → p-4df66afe.entry.js.map} +0 -0
  832. /package/www/build/{p-748fa3ae.js.map → p-54cd104c.js.map} +0 -0
  833. /package/www/build/{p-01f941c2.entry.js.map → p-57dcff49.entry.js.map} +0 -0
  834. /package/www/build/{p-2aeffcf9.entry.js.map → p-5838b77c.entry.js.map} +0 -0
  835. /package/www/build/{p-4551b0df.entry.js.map → p-5cdd431e.entry.js.map} +0 -0
  836. /package/www/build/{p-f19f12b1.js.map → p-5f1e17cb.js.map} +0 -0
  837. /package/www/build/{p-c778bf87.entry.js.map → p-5fda8769.entry.js.map} +0 -0
  838. /package/www/build/{p-4affbb99.entry.js.map → p-661bce1c.entry.js.map} +0 -0
  839. /package/www/build/{p-ee695830.entry.js.map → p-66c0f993.entry.js.map} +0 -0
  840. /package/www/build/{p-9e3da0b7.entry.js.map → p-6c3d141b.entry.js.map} +0 -0
  841. /package/www/build/{p-b7b972c0.entry.js.map → p-6d61933f.entry.js.map} +0 -0
  842. /package/www/build/{p-44459393.entry.js.map → p-6ef58a14.entry.js.map} +0 -0
  843. /package/www/build/{p-a905df88.entry.js.map → p-71f62226.entry.js.map} +0 -0
  844. /package/www/build/{p-d7f12672.js.map → p-80285500.js.map} +0 -0
  845. /package/www/build/{p-198b1692.entry.js.map → p-80ddecaf.entry.js.map} +0 -0
  846. /package/www/build/{p-b96900bb.entry.js.map → p-87edcc75.entry.js.map} +0 -0
  847. /package/www/build/{p-757415e9.entry.js.map → p-88a9865c.entry.js.map} +0 -0
  848. /package/www/build/{p-d6a7b7f3.entry.js.map → p-8b562dca.entry.js.map} +0 -0
  849. /package/www/build/{p-d2035d26.entry.js.map → p-901518b8.entry.js.map} +0 -0
  850. /package/www/build/{p-2f948bac.entry.js.map → p-90690d4d.entry.js.map} +0 -0
  851. /package/www/build/{p-d75f8bbb.entry.js.map → p-9af837bb.entry.js.map} +0 -0
  852. /package/www/build/{p-04f80811.entry.js.map → p-9eba4a37.entry.js.map} +0 -0
  853. /package/www/build/{p-d90d2698.entry.js.map → p-a32ebcc3.entry.js.map} +0 -0
  854. /package/www/build/{p-1844a4f4.entry.js.map → p-b0324c7d.entry.js.map} +0 -0
  855. /package/www/build/{p-4c9bf42d.js.map → p-b06af2fc.js.map} +0 -0
  856. /package/www/build/{p-817689d5.entry.js.map → p-b1f2388a.entry.js.map} +0 -0
  857. /package/www/build/{p-342b0eb0.entry.js.map → p-b421424f.entry.js.map} +0 -0
  858. /package/www/build/{p-fb232d07.entry.js.map → p-b4b264b1.entry.js.map} +0 -0
  859. /package/www/build/{p-1c7550f9.entry.js.map → p-b70ff542.entry.js.map} +0 -0
  860. /package/www/build/{p-b63c8e8b.entry.js.map → p-b854cc3d.entry.js.map} +0 -0
  861. /package/www/build/{p-e9e2ceb4.entry.js.map → p-bc15e1dc.entry.js.map} +0 -0
  862. /package/www/build/{p-4a257653.entry.js.map → p-c03767a4.entry.js.map} +0 -0
  863. /package/www/build/{p-2bdac94e.entry.js.map → p-c0b4f29d.entry.js.map} +0 -0
  864. /package/www/build/{p-7a4f6a5b.entry.js.map → p-c57bb632.entry.js.map} +0 -0
  865. /package/www/build/{p-34975328.entry.js.map → p-c645dc11.entry.js.map} +0 -0
  866. /package/www/build/{p-30e42fb1.js.map → p-cb395500.js.map} +0 -0
  867. /package/www/build/{p-5989465b.entry.js.map → p-cc87d814.entry.js.map} +0 -0
  868. /package/www/build/{p-e3b82454.entry.js.map → p-d1fe7960.entry.js.map} +0 -0
  869. /package/www/build/{p-5159edb1.entry.js.map → p-d5ebbfdf.entry.js.map} +0 -0
  870. /package/www/build/{p-e5407cc1.entry.js.map → p-d65aeb54.entry.js.map} +0 -0
  871. /package/www/build/{p-e0b88075.entry.js.map → p-dba260f2.entry.js.map} +0 -0
  872. /package/www/build/{p-943db3a8.entry.js.map → p-ddae9016.entry.js.map} +0 -0
  873. /package/www/build/{p-60e3fa30.entry.js.map → p-de313d96.entry.js.map} +0 -0
  874. /package/www/build/{p-375f8542.entry.js.map → p-e38a5dd2.entry.js.map} +0 -0
  875. /package/www/build/{p-f4bac89b.entry.js.map → p-eb9161bc.entry.js.map} +0 -0
  876. /package/www/build/{p-8687691b.entry.js.map → p-f0f53bb2.entry.js.map} +0 -0
  877. /package/www/build/{p-1170826b.js.map → p-f79010de.js.map} +0 -0
@@ -3,19 +3,28 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-96af6326.js');
6
- const index$1 = require('./index-97a4c18d.js');
6
+ const index$1 = require('./index-e30d0503.js');
7
+ const utils = require('./utils-b1859d65.js');
8
+ require('./breakpoints-8a1e87e0.js');
7
9
 
8
- const stylesCss = ":host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host([active]) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}@media (hover: hover){:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}.z-tool:focus-visible{box-shadow:inset 0 0 0 2px var(--color-primary01);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-popover-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse);--z-popover-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));z-index:2;font-family:var(--font-family-sans)}@media (max-width: 767px){.z-tool-tooltip{display:none !important}}:host{position:var(--z-tool-host-position, relative)}.z-tool-submenu{position:var(--z-tool-submenu-position, absolute);z-index:1;top:var(--z-tool-submenu-top, calc(100% + 4px));bottom:var(--z-tool-submenu-bottom, auto);left:var(--z-tool-submenu-left, 50%);display:none;transform:var(--z-tool-submenu-transform, translateX(-50%))}.z-tool-submenu-open{display:block}";
10
+ const stylesCss = ":host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}";
9
11
  const ZToolStyle0 = stylesCss;
10
12
 
13
+ const typographyCss = ":root{--font-family-sans:\"IBM Plex Sans\", sans-serif;--font-family-serif:\"IBM Plex Serif\", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}";
14
+ const ZToolStyle1 = typographyCss;
15
+
11
16
  const ZTool = class {
12
17
  constructor(hostRef) {
13
18
  index.registerInstance(this, hostRef);
14
19
  this.toggleSubmenu = index.createEvent(this, "toggleSubmenu", 7);
15
- this.handleTooltipOpen = () => {
16
- //This.isNested check prevents tooltips from showing on nested tools, e.g. inside submenus
17
- //This control will be removed in future versions when nested tooltips will be supported
18
- if (!this.tooltip || this.isNested) {
20
+ this.toggleTooltip = index.createEvent(this, "toggleTooltip", 7);
21
+ /** Indicates if the tool is nested inside another tool. */
22
+ this.isNested = false;
23
+ /**
24
+ * Opens the tooltip with a delay when the button is hovered or focused, and if the tool's content isn't already visible.
25
+ */
26
+ this.handleTooltipOpen = (ev) => {
27
+ if (!this.tooltip || this.open || !this.buttonRef.contains(ev.target)) {
19
28
  return;
20
29
  }
21
30
  clearTimeout(this.hoverDelay);
@@ -23,23 +32,46 @@ const ZTool = class {
23
32
  this.tooltipOpen = true;
24
33
  }, 1000);
25
34
  };
26
- this.handleTooltipClose = () => {
27
- if (!this.tooltip) {
35
+ /**
36
+ * Closes the tooltip immediately on button blur or when the mouse leaves the button or the tooltip, clearing any pending hover delay.
37
+ */
38
+ this.handleTooltipClose = (ev) => {
39
+ var _a;
40
+ if (!this.tooltip || ((_a = ev.relatedTarget) === null || _a === void 0 ? void 0 : _a.closest("z-tooltip")) === this.tooltipRef) {
28
41
  return;
29
42
  }
30
43
  clearTimeout(this.hoverDelay);
31
44
  this.tooltipOpen = false;
32
45
  };
46
+ /**
47
+ * Handles click events on the tool's button element.
48
+ * If the tool has slotted content, toggles the open state and focuses the active/selected item in the nested toolbar or color picker,
49
+ * or the first item if no active/selected item is found.
50
+ */
33
51
  this.handleClick = () => {
34
- if (this.disabled) {
52
+ if (this.disabled || !this.hasSlottedContent) {
35
53
  return;
36
54
  }
37
- if (this.hasSlottedContent) {
38
- this.open = !this.open;
39
- if (this.open) {
40
- this.focusNestedToolbar();
55
+ this.open = !this.open;
56
+ if (this.open) {
57
+ const colorPicker = this.hostElement.querySelector(":scope > z-color-picker");
58
+ if (colorPicker) {
59
+ colorPicker.setFocus();
60
+ return;
41
61
  }
62
+ // Focus the first active tool in the nested toolbar, or the first enabled if no active tool is found.
63
+ const firstActiveOrEnabledNestedTool = (this.hostElement.querySelector(":scope > z-toolbar z-tool[active]:not(:disabled)") || this.hostElement.querySelector(":scope > z-toolbar z-tool:not(:disabled)"));
64
+ firstActiveOrEnabledNestedTool === null || firstActiveOrEnabledNestedTool === void 0 ? void 0 : firstActiveOrEnabledNestedTool.setFocus();
65
+ }
66
+ };
67
+ /**
68
+ * Handles `openChange` events from the tooltip popover to keep the `tooltipOpen` state in sync, but only if the event is coming from this tool's tooltip (and not from nested tools' tooltips).
69
+ */
70
+ this.onTooltipOpenChange = (event) => {
71
+ if (event.target === this.tooltipRef) {
72
+ return;
42
73
  }
74
+ this.tooltipOpen = event.detail.open;
43
75
  };
44
76
  this.icon = undefined;
45
77
  this.tooltip = undefined;
@@ -48,57 +80,130 @@ const ZTool = class {
48
80
  this.active = false;
49
81
  this.disabled = false;
50
82
  this.open = false;
83
+ this.indicatorColor = undefined;
51
84
  this.tooltipOpen = false;
52
85
  this.hasSlottedContent = false;
53
- this.isNested = false;
86
+ this.isMobile = false;
87
+ this.hasNestedOpenTools = false;
54
88
  }
55
89
  handleOpenChange() {
56
90
  this.toggleSubmenu.emit(this.open);
57
91
  }
58
- focusNestedToolbar() {
59
- requestAnimationFrame(() => {
60
- var _a;
61
- const nestedToolbar = this.hostElement.querySelector("z-toolbar");
62
- if (nestedToolbar) {
63
- const firstTool = nestedToolbar.querySelector("z-tool");
64
- if (firstTool) {
65
- const button = (_a = firstTool.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
66
- if (button) {
67
- button.focus();
68
- }
92
+ handleTooltipOpenChange() {
93
+ this.toggleTooltip.emit(this.tooltipOpen);
94
+ }
95
+ /**
96
+ * Handle `ESC` and `shift+TAB` to close the submenu and move focus back to the button.
97
+ */
98
+ handleKeyDown(event) {
99
+ if (!this.open || this.hasNestedOpenTools) {
100
+ return;
101
+ }
102
+ switch (event.key) {
103
+ case index$1.KeyboardCode.ESC:
104
+ event.stopPropagation();
105
+ this.open = false;
106
+ this.setFocus();
107
+ break;
108
+ case index$1.KeyboardCode.TAB:
109
+ if (event.shiftKey && event.target.closest("z-tool:not(:scope)") === this.hostElement) {
110
+ this.open = false;
69
111
  }
70
- }
71
- });
112
+ break;
113
+ }
72
114
  }
73
- checkIfNested() {
74
- let parent = this.hostElement.parentElement;
75
- while (parent) {
76
- if (parent.tagName.toLowerCase() === "z-tool") {
77
- return true;
78
- }
79
- parent = parent.parentElement;
115
+ /**
116
+ * Close the popover on clicks outside the component, only if there are no nested open tools.
117
+ * In that case any outside click should close the nested submenu(s) first.
118
+ */
119
+ onOutsideClick(event) {
120
+ const target = event.composedPath()[0];
121
+ if (!this.open || utils.containsElement(this.hostElement, target) || this.hasNestedOpenTools) {
122
+ return;
123
+ }
124
+ this.open = false;
125
+ }
126
+ onNestedToolToggle(ev) {
127
+ if (ev.target === this.hostElement) {
128
+ return;
129
+ }
130
+ if (ev.detail === true) {
131
+ this.hasNestedOpenTools = true;
132
+ return;
133
+ }
134
+ this.hasNestedOpenTools = Array.from(this.hostElement.querySelectorAll("z-tool")).some((tool) => tool.open);
135
+ }
136
+ /**
137
+ * Handles the `colorSelected` event from a nested `z-color-picker` component.
138
+ * Updates the `indicatorColor` and closes the tool's popover.
139
+ */
140
+ handleColorSelected(event) {
141
+ if (!Array.from(this.hostElement.children).includes(event.target)) {
142
+ return;
80
143
  }
81
- return false;
144
+ this.indicatorColor = event.detail;
145
+ this.open = false;
146
+ this.setFocus();
147
+ }
148
+ /**
149
+ * Close the submenu when focus moves outside the tool.
150
+ */
151
+ handleExternalFocusin(ev) {
152
+ const target = ev.target;
153
+ if (!utils.containsElement(this.hostElement, target)) {
154
+ this.open = false;
155
+ }
156
+ }
157
+ /** Focuses the tool's button element. */
158
+ async setFocus() {
159
+ if (this.disabled) {
160
+ return;
161
+ }
162
+ setTimeout(() => {
163
+ var _a;
164
+ (_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
165
+ }, 50);
166
+ }
167
+ /** Sets the tab index of the tool's internal button element. */
168
+ async setTabIndex(value) {
169
+ if (!this.buttonRef) {
170
+ return;
171
+ }
172
+ this.buttonRef.tabIndex = this.disabled ? -1 : value;
173
+ }
174
+ /** Closes the tooltip. */
175
+ async closeTooltip() {
176
+ clearTimeout(this.hoverDelay);
177
+ this.tooltipOpen = false;
82
178
  }
83
179
  componentWillLoad() {
84
180
  this.hasSlottedContent = this.hostElement.children.length > 0;
85
- this.isNested = this.checkIfNested();
181
+ this.isNested = !!this.hostElement.closest("z-tool:not(:scope)");
182
+ this.mainToolbar = this.hostElement.closest("z-toolbar:not(z-toolbar z-toolbar)");
183
+ this.hasNestedOpenTools = !!this.hostElement.querySelector("z-tool[open]");
184
+ this.mql = matchMedia("(max-width: 767px)");
185
+ this.onMobileViewChange = (e) => (this.isMobile = e.matches);
186
+ this.mql.addEventListener("change", this.onMobileViewChange);
187
+ this.isMobile = this.mql.matches;
86
188
  }
87
189
  disconnectedCallback() {
190
+ var _a;
88
191
  clearTimeout(this.hoverDelay);
192
+ (_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.onMobileViewChange);
89
193
  }
90
194
  render() {
91
- return (index.h(index.Host, { key: '29475c2061b8031c6d742e0b67bdcaa657acf269', nested: this.isNested }, index.h("button", { key: '7b2c77c12e7d62a0560a8c71d8660e45927d4024', class: "z-tool", type: "button", "aria-pressed": this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, index.h("z-icon", { key: '4c4b2d93bb5d8869cff58970f6c1a52ae82041e9', ref: (el) => (this.iconRef = el), name: this.icon })), this.tooltip && !this.isNested && (index.h("z-popover", { key: '87078924f19cbd8ec1efeaa460fad64d3d45701d', class: "z-tool-tooltip", bindTo: this.iconRef, open: this.tooltipOpen, position: this.tooltipPosition, showArrow: true, center: true, closable: false }, index.h("span", { key: 'a11623609058d4106f18ed8d523e32ee102afaa7', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (index.h("div", { key: 'c22cf9f4ffe622afc11be4e94722d5232df7dd58', class: {
92
- "z-tool-submenu": true,
93
- "z-tool-submenu-open": this.open,
94
- } }, index.h("slot", { key: '0e789c315bbcdc50c6ffbb32d225be7f12b9cd59' })))));
195
+ return (index.h(index.Host, { key: '81b929ee3738e7533405c8ea47535d7fb52bfb92', class: { "z-tool-tooltip-open": this.tooltipOpen } }, index.h("button", { key: '1b68af441ac69dbdf805b823b852c093b944e586', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "aria-pressed": this.hasSlottedContent ? undefined : this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-haspopup": this.hasSlottedContent ? "true" : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, index.h("z-icon", { key: '580cf2210393974cb2300ea6e50018149f6ef123', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (index.h("z-tooltip", { key: '9b0e197d25135e1a0016fbbdca48751e8350be7b', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? index$1.PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, index.h("span", { key: 'd6580708f0b79853cc3644cb6ea61b64cbe73a21', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (index.h("z-popover", { key: '121b6662678738de67739beb733edfe94a6df3f6', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
196
+ /* disable auto-close to prevent unwanted close behaviors on mobile,
197
+ when the bound element is the main toolbar */
198
+ closable: false, position: this.isMobile ? index$1.PopoverPosition.TOP : index$1.PopoverPosition.BOTTOM }, index.h("slot", { key: '6bb4815374940bd0ce6dc21bf38a1372454bf830' })))));
95
199
  }
96
200
  get hostElement() { return index.getElement(this); }
97
201
  static get watchers() { return {
98
- "open": ["handleOpenChange"]
202
+ "open": ["handleOpenChange"],
203
+ "tooltipOpen": ["handleTooltipOpenChange"]
99
204
  }; }
100
205
  };
101
- ZTool.style = ZToolStyle0;
206
+ ZTool.style = ZToolStyle0 + ZToolStyle1;
102
207
 
103
208
  exports.z_tool = ZTool;
104
209
 
@@ -1 +1 @@
1
- {"file":"z-tool.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,krDAAkrD,CAAC;AACrsD,oBAAe,SAAS;;MCWX,KAAK;;;;QAqDR,sBAAiB,GAAG;;;YAG1B,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;gBAClC,OAAO;aACR;YACD,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC9B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;gBAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;aACzB,EAAE,IAAI,CAAC,CAAC;SACV,CAAC;QAEM,uBAAkB,GAAG;YAC3B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;gBACjB,OAAO;aACR;YACD,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B,CAAC;QAEM,gBAAW,GAAG;YACpB,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,OAAO;aACR;YAED,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;gBACvB,IAAI,IAAI,CAAC,IAAI,EAAE;oBACb,IAAI,CAAC,kBAAkB,EAAE,CAAC;iBAC3B;aACF;SACF,CAAC;;;+BAvEiCA,uBAAe,CAAC,GAAG;;sBAQ7C,KAAK;wBAIH,KAAK;oBAIT,KAAK;2BAGE,KAAK;iCAGC,KAAK;wBAGd,KAAK;;IAWhB,gBAAgB;QACd,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpC;IAmCO,kBAAkB;QACxB,qBAAqB,CAAC;;YACpB,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;YAClE,IAAI,aAAa,EAAE;gBACjB,MAAM,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;gBACxD,IAAI,SAAS,EAAE;oBACb,MAAM,MAAM,GAAG,MAAA,SAAS,CAAC,UAAU,0CAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;oBAC7D,IAAI,MAAM,EAAE;wBACV,MAAM,CAAC,KAAK,EAAE,CAAC;qBAChB;iBACF;aACF;SACF,CAAC,CAAC;KACJ;IAEO,aAAa;QACnB,IAAI,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC;QAC5C,OAAO,MAAM,EAAE;YACb,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,QAAQ,EAAE;gBAC7C,OAAO,IAAI,CAAC;aACb;YACD,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;SAC/B;QAED,OAAO,KAAK,CAAC;KACd;IAED,iBAAiB;QACf,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;KACtC;IAED,oBAAoB;QAClB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAC/B;IAED,MAAM;QACJ,QACEC,QAACC,UAAI,qDAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,IACzBD,qEACE,KAAK,EAAC,QAAQ,EACd,IAAI,EAAC,QAAQ,kBACC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,mBAC7B,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,OAAO,IAAI,SAAS,gBACtE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,IAAI,SAAS,EAC3D,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,YAAY,EAAE,IAAI,CAAC,iBAAiB,EACpC,YAAY,EAAE,IAAI,CAAC,kBAAkB,EACrC,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAC/B,MAAM,EAAE,IAAI,CAAC,kBAAkB,IAE/BA,qEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,EAChC,IAAI,EAAE,IAAI,CAAC,IAAI,GACP,CACH,EACR,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,KAC7BA,wEACE,KAAK,EAAC,gBAAgB,EACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EACpB,IAAI,EAAE,IAAI,CAAC,WAAW,EACtB,QAAQ,EAAE,IAAI,CAAC,eAAe,EAC9B,SAAS,QACT,MAAM,QACN,QAAQ,EAAE,KAAK,IAEfA,mEAAM,KAAK,EAAC,QAAQ,IAAE,IAAI,CAAC,OAAO,CAAQ,CAChC,CACb,EACA,IAAI,CAAC,iBAAiB,KACrBA,kEACE,KAAK,EAAE;gBACL,gBAAgB,EAAE,IAAI;gBACtB,qBAAqB,EAAE,IAAI,CAAC,IAAI;aACjC,IAEDA,oEAAa,CACT,CACP,CACI,EACP;KACH;;;;;;;;;;","names":["PopoverPosition","h","Host"],"sources":["src/components/z-tool/styles.css?tag=z-tool&encapsulation=shadow","src/components/z-tool/index.tsx"],"sourcesContent":[":host,\n* {\n box-sizing: border-box;\n}\n\n.z-tool {\n --z-tool-size: calc(var(--space-unit) * 5.5);\n --z-tool-icon-size: calc(var(--space-unit) * 2.5);\n\n display: inline-flex;\n width: var(--z-tool-size);\n height: var(--z-tool-size);\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: 0;\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n\n:host([active]) .z-tool {\n box-shadow: inset 0 0 0 2px var(--color-primary01);\n}\n\n:host([open]) .z-tool {\n box-shadow: inset 0 0 0 2px var(--color-primary01);\n}\n\n@media (hover: hover) {\n :host(:not([disabled])) .z-tool:hover {\n background-color: var(--color-primary03);\n }\n}\n\n:host([disabled]) .z-tool {\n color: var(--color-disabled01-icon);\n cursor: not-allowed;\n}\n\n.z-tool:focus-visible {\n box-shadow: inset 0 0 0 2px var(--color-primary01);\n outline: none;\n}\n\nz-icon {\n --z-icon-width: var(--z-tool-icon-size);\n --z-icon-height: var(--z-tool-icon-size);\n\n display: block;\n fill: var(--color-default-icon);\n}\n\n:host([disabled]) z-icon {\n fill: var(--color-disabled01-icon);\n}\n\n.z-tool-tooltip {\n --z-popover-padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);\n --z-popover-theme--surface: var(--color-surface05);\n --z-popover-theme--text: var(--color-text-inverse);\n --z-popover-shadow-filter: drop-shadow(0 4px 8px var(--shadow-color-base));\n\n z-index: 2;\n font-family: var(--font-family-sans);\n}\n\n@media (max-width: 767px) {\n .z-tool-tooltip {\n display: none !important;\n }\n}\n\n:host {\n position: var(--z-tool-host-position, relative);\n}\n\n.z-tool-submenu {\n position: var(--z-tool-submenu-position, absolute);\n z-index: 1;\n top: var(--z-tool-submenu-top, calc(100% + 4px));\n bottom: var(--z-tool-submenu-bottom, auto);\n left: var(--z-tool-submenu-left, 50%);\n display: none;\n transform: var(--z-tool-submenu-transform, translateX(-50%));\n}\n\n.z-tool-submenu-open {\n display: block;\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {PopoverPosition} from \"../../beans\";\n\n/**\n * ZTool component.\n * @slot - Optional slot for nested content (e.g., a secondary z-toolbar) that appears when the tool is open/clicked.\n */\n@Component({\n tag: \"z-tool\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTool {\n @Element() hostElement: HTMLZToolElement;\n\n /** Tool icon */\n @Prop()\n icon: string;\n\n /** Text displayed inside the tooltip. */\n @Prop()\n tooltip?: string;\n\n /** Preferred tooltip position. Defaults to true. */\n @Prop()\n tooltipPosition: PopoverPosition = PopoverPosition.TOP;\n\n /** Accessible label for the tool trigger. Falls back to tooltip content. */\n @Prop()\n htmlAriaLabel?: string;\n\n /** Visual selected state. */\n @Prop({reflect: true})\n active = false;\n\n /** Disabled state. */\n @Prop({reflect: true})\n disabled = false;\n\n /** Open state. */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n @State()\n tooltipOpen = false;\n\n @State()\n hasSlottedContent = false;\n\n @State()\n isNested = false;\n\n /** Emitted when the open state changes. */\n @Event()\n toggleSubmenu: EventEmitter;\n\n private iconRef?: HTMLElement;\n\n private hoverDelay?: ReturnType<typeof setTimeout>;\n\n @Watch(\"open\")\n handleOpenChange(): void {\n this.toggleSubmenu.emit(this.open);\n }\n\n private handleTooltipOpen = (): void => {\n //This.isNested check prevents tooltips from showing on nested tools, e.g. inside submenus\n //This control will be removed in future versions when nested tooltips will be supported\n if (!this.tooltip || this.isNested) {\n return;\n }\n clearTimeout(this.hoverDelay);\n this.hoverDelay = setTimeout(() => {\n this.tooltipOpen = true;\n }, 1000);\n };\n\n private handleTooltipClose = (): void => {\n if (!this.tooltip) {\n return;\n }\n clearTimeout(this.hoverDelay);\n this.tooltipOpen = false;\n };\n\n private handleClick = (): void => {\n if (this.disabled) {\n return;\n }\n\n if (this.hasSlottedContent) {\n this.open = !this.open;\n if (this.open) {\n this.focusNestedToolbar();\n }\n }\n };\n\n private focusNestedToolbar(): void {\n requestAnimationFrame(() => {\n const nestedToolbar = this.hostElement.querySelector(\"z-toolbar\");\n if (nestedToolbar) {\n const firstTool = nestedToolbar.querySelector(\"z-tool\");\n if (firstTool) {\n const button = firstTool.shadowRoot?.querySelector(\"button\");\n if (button) {\n button.focus();\n }\n }\n }\n });\n }\n\n private checkIfNested(): boolean {\n let parent = this.hostElement.parentElement;\n while (parent) {\n if (parent.tagName.toLowerCase() === \"z-tool\") {\n return true;\n }\n parent = parent.parentElement;\n }\n\n return false;\n }\n\n componentWillLoad(): void {\n this.hasSlottedContent = this.hostElement.children.length > 0;\n this.isNested = this.checkIfNested();\n }\n\n disconnectedCallback(): void {\n clearTimeout(this.hoverDelay);\n }\n\n render(): HTMLZToolElement {\n return (\n <Host nested={this.isNested}>\n <button\n class=\"z-tool\"\n type=\"button\"\n aria-pressed={this.active ? \"true\" : \"false\"}\n aria-expanded={this.hasSlottedContent ? (this.open ? \"true\" : \"false\") : undefined}\n aria-label={this.htmlAriaLabel || this.tooltip || undefined}\n disabled={this.disabled}\n onClick={this.handleClick}\n onMouseEnter={this.handleTooltipOpen}\n onMouseLeave={this.handleTooltipClose}\n onFocus={this.handleTooltipOpen}\n onBlur={this.handleTooltipClose}\n >\n <z-icon\n ref={(el) => (this.iconRef = el)}\n name={this.icon}\n ></z-icon>\n </button>\n {this.tooltip && !this.isNested && (\n <z-popover\n class=\"z-tool-tooltip\"\n bindTo={this.iconRef}\n open={this.tooltipOpen}\n position={this.tooltipPosition}\n showArrow\n center\n closable={false}\n >\n <span class=\"body-4\">{this.tooltip}</span>\n </z-popover>\n )}\n {this.hasSlottedContent && (\n <div\n class={{\n \"z-tool-submenu\": true,\n \"z-tool-submenu-open\": this.open,\n }}\n >\n <slot></slot>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-tool.entry.cjs.js","mappings":"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","names":["PopoverPosition","KeyboardCode","containsElement","h","Host"],"sources":["src/components/z-tool/styles.css?tag=z-tool&encapsulation=shadow","src/tokens/typography.css?tag=z-tool&encapsulation=shadow","src/components/z-tool/index.tsx"],"sourcesContent":[":host,\n* {\n box-sizing: border-box;\n}\n\n.z-tool {\n --z-tool-size: calc(var(--space-unit) * 5.5);\n --z-tool-icon-size: calc(var(--space-unit) * 2.5);\n\n position: relative;\n display: inline-flex;\n width: var(--z-tool-size);\n height: var(--z-tool-size);\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: 0;\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n\n:host(:is([active], [open])) .z-tool {\n box-shadow: inset 0 0 0 2px var(--color-primary01);\n}\n\n:host([open]) .z-tool {\n background: var(--color-primary03);\n}\n\n@media (hover: hover) {\n :host(:hover),\n :host(.z-tool-tooltip-open) {\n /* ensure any open tooltip is shown over sibling elements */\n z-index: 1;\n }\n\n :host(:not([disabled])) .z-tool:hover {\n background-color: var(--color-primary03);\n }\n}\n\n.z-tool:focus:focus-visible {\n background-color: var(--color-primary03);\n outline: none;\n}\n\nz-icon {\n --z-icon-width: var(--z-tool-icon-size);\n --z-icon-height: var(--z-tool-icon-size);\n\n display: block;\n fill: var(--color-default-icon);\n}\n\n:host([disabled]) .z-tool {\n color: var(--color-disabled01-icon);\n cursor: not-allowed;\n}\n\n:host([disabled]) z-icon {\n fill: var(--color-disabled01-icon);\n}\n\n.z-tool-tooltip {\n --z-tooltip-padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);\n --z-tooltip-shadow-filter: drop-shadow(0 4px 8px var(--shadow-color-base));\n\n position: relative;\n z-index: 2;\n font-family: var(--font-family-sans);\n white-space: nowrap;\n}\n\n.z-tool-submenu {\n z-index: 3;\n border-radius: calc(var(--border-radius) + var(--border-size-small));\n}\n\n.z-tool-submenu ::slotted(z-color-picker) {\n border: var(--border-size-small) solid var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n@media (max-width: 767px) and (hover: none) {\n .z-tool-tooltip {\n display: none !important;\n }\n}\n",":root {\n /* font-family */\n --font-family-sans: \"IBM Plex Sans\", sans-serif;\n --font-family-serif: \"IBM Plex Serif\", serif;\n\n /* font-weight */\n --font-lt: 300;\n --font-rg: 400;\n --font-sb: 600;\n --font-bd: 700;\n\n /* font-size type scale */\n --font-size-1: 0.75rem; /* 12px */\n --font-size-2: 0.875rem; /* 14px */\n --font-size-3: 1rem; /* assuming 16px */\n --font-size-4: 1.125rem; /* 18px */\n --font-size-5: 1.25rem; /* 20px */\n --font-size-6: 1.5rem; /* 24px */\n --font-size-7: 1.75rem; /* 28px */\n --font-size-8: 2rem; /* 32px */\n --font-size-9: 2.25rem; /* 36px */\n --font-size-10: 2.625rem; /* 42px */\n --font-size-11: 3rem; /* 48px */\n --font-size-12: 3.375rem; /* 54px */\n --font-size-13: 3.75rem; /* 60px */\n --font-size-14: 4.25rem; /* 68px */\n --font-size-15: 4.75rem; /* 76px */\n --font-size-16: 5.25rem; /* 84px */\n --font-size-17: 5.75rem; /* 92px */\n\n /* cssprops to use with `font` shorthand property */\n --section-title-1: var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);\n --section-title-2: var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);\n --section-title-3: var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);\n --section-title-4: var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);\n --section-title-5: var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);\n --section-title-6: var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif);\n}\n\n/* Typography classes */\n.heading-1,\n.heading-1-sb,\n.heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n}\n\n.heading-2,\n.heading-2-sb,\n.heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-3,\n.heading-3-sb,\n.heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-4,\n.heading-4-sb,\n.heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-1,\n.body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-2,\n.body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-3,\n.body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-4,\n.body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.body-5,\n.body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.interactive-1,\n.interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.interactive-2,\n.interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.interactive-3,\n.interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.helper,\n.helper-sb {\n font-size: var(--font-size-1);\n font-style: italic;\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n/* section title */\n.section-title-1 {\n font: var(--section-title-1);\n}\n\n.section-title-2 {\n font: var(--section-title-2);\n}\n\n.section-title-3 {\n font: var(--section-title-3);\n}\n\n.section-title-4 {\n font: var(--section-title-4);\n}\n\n.section-title-5 {\n font: var(--section-title-5);\n}\n\n.section-title-6 {\n font: var(--section-title-6);\n}\n\n/* heading-1/2 for desktop and wide viewports */\n@media (min-width: 1152px) {\n .heading-1,\n .heading-1-sb,\n .heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .heading-2,\n .heading-2-sb,\n .heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n}\n\n/* viewport classes */\n@media (max-width: 767px) {\n .mobile-heading-1,\n .mobile-heading-1-sb,\n .mobile-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .mobile-heading-2,\n .mobile-heading-2-sb,\n .mobile-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-3,\n .mobile-heading-3-sb,\n .mobile-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-4,\n .mobile-heading-4-sb,\n .mobile-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-1,\n .mobile-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-2,\n .mobile-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-3,\n .mobile-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-4,\n .mobile-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-body-5,\n .mobile-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-interactive-1,\n .mobile-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-interactive-2,\n .mobile-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-interactive-3,\n .mobile-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-section-title-1 {\n font: var(--section-title-1);\n }\n\n .mobile-section-title-2 {\n font: var(--section-title-2);\n }\n\n .mobile-section-title-3 {\n font: var(--section-title-3);\n }\n\n .mobile-section-title-4 {\n font: var(--section-title-4);\n }\n\n .mobile-section-title-5 {\n font: var(--section-title-5);\n }\n\n .mobile-section-title-6 {\n font: var(--section-title-6);\n }\n\n .mobile-heading-1-lt,\n .mobile-heading-2-lt,\n .mobile-heading-3-lt,\n .mobile-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .mobile-heading-1-sb,\n .mobile-heading-2-sb,\n .mobile-heading-3-sb,\n .mobile-heading-4-sb,\n .mobile-body-1-sb,\n .mobile-body-2-sb,\n .mobile-body-3-sb,\n .mobile-body-4-sb,\n .mobile-body-5-sb,\n .mobile-interactive-1-sb,\n .mobile-interactive-2-sb,\n .mobile-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 768px) and (max-width: 1151px) {\n .tablet-heading-1,\n .tablet-heading-1-sb,\n .tablet-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .tablet-heading-2,\n .tablet-heading-2-sb,\n .tablet-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-3,\n .tablet-heading-3-sb,\n .tablet-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-4,\n .tablet-heading-4-sb,\n .tablet-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-1,\n .tablet-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-2,\n .tablet-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-3,\n .tablet-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-4,\n .tablet-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-body-5,\n .tablet-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-interactive-1,\n .tablet-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-interactive-2,\n .tablet-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-interactive-3,\n .tablet-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-section-title-1 {\n font: var(--section-title-1);\n }\n\n .tablet-section-title-2 {\n font: var(--section-title-2);\n }\n\n .tablet-section-title-3 {\n font: var(--section-title-3);\n }\n\n .tablet-section-title-4 {\n font: var(--section-title-4);\n }\n\n .tablet-section-title-5 {\n font: var(--section-title-5);\n }\n\n .tablet-section-title-6 {\n font: var(--section-title-6);\n }\n\n .tablet-heading-1-lt,\n .tablet-heading-2-lt,\n .tablet-heading-3-lt,\n .tablet-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .tablet-heading-1-sb,\n .tablet-heading-2-sb,\n .tablet-heading-3-sb,\n .tablet-heading-4-sb,\n .tablet-body-1-sb,\n .tablet-body-2-sb,\n .tablet-body-3-sb,\n .tablet-body-4-sb,\n .tablet-body-5-sb,\n .tablet-interactive-1-sb,\n .tablet-interactive-2-sb,\n .tablet-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1152px) and (max-width: 1365px) {\n .desktop-heading-1,\n .desktop-heading-1-sb,\n .desktop-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .desktop-heading-2,\n .desktop-heading-2-sb,\n .desktop-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .desktop-heading-3,\n .desktop-heading-3-sb,\n .desktop-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .desktop-heading-4,\n .desktop-heading-4-sb,\n .desktop-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-1,\n .desktop-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-2,\n .desktop-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-3,\n .desktop-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-4,\n .desktop-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-body-5,\n .desktop-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-interactive-1,\n .desktop-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-interactive-2,\n .desktop-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-interactive-3,\n .desktop-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-section-title-1 {\n font: var(--section-title-1);\n }\n\n .desktop-section-title-2 {\n font: var(--section-title-2);\n }\n\n .desktop-section-title-3 {\n font: var(--section-title-3);\n }\n\n .desktop-section-title-4 {\n font: var(--section-title-4);\n }\n\n .desktop-section-title-5 {\n font: var(--section-title-5);\n }\n\n .desktop-section-title-6 {\n font: var(--section-title-6);\n }\n\n .desktop-heading-1-lt,\n .desktop-heading-2-lt,\n .desktop-heading-3-lt,\n .desktop-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .desktop-heading-1-sb,\n .desktop-heading-2-sb,\n .desktop-heading-3-sb,\n .desktop-heading-4-sb,\n .desktop-body-1-sb,\n .desktop-body-2-sb,\n .desktop-body-3-sb,\n .desktop-body-4-sb,\n .desktop-body-5-sb,\n .desktop-interactive-1-sb,\n .desktop-interactive-2-sb,\n .desktop-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1366px) {\n .wide-heading-1,\n .wide-heading-1-sb,\n .wide-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .wide-heading-2,\n .wide-heading-2-sb,\n .wide-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .wide-heading-3,\n .wide-heading-3-sb,\n .wide-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .wide-heading-4,\n .wide-heading-4-sb,\n .wide-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-1,\n .wide-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-2,\n .wide-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-3,\n .wide-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-4,\n .wide-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-body-5,\n .wide-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-interactive-1,\n .wide-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-interactive-2,\n .wide-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-interactive-3,\n .wide-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-section-title-1 {\n font: var(--section-title-1);\n }\n\n .wide-section-title-2 {\n font: var(--section-title-2);\n }\n\n .wide-section-title-3 {\n font: var(--section-title-3);\n }\n\n .wide-section-title-4 {\n font: var(--section-title-4);\n }\n\n .wide-section-title-5 {\n font: var(--section-title-5);\n }\n\n .wide-section-title-6 {\n font: var(--section-title-6);\n }\n\n .wide-heading-1-lt,\n .wide-heading-2-lt,\n .wide-heading-3-lt,\n .wide-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .wide-heading-1-sb,\n .wide-heading-2-sb,\n .wide-heading-3-sb,\n .wide-heading-4-sb,\n .wide-body-1-sb,\n .wide-body-2-sb,\n .wide-body-3-sb,\n .wide-body-4-sb,\n .wide-body-5-sb,\n .wide-interactive-1-sb,\n .wide-interactive-2-sb,\n .wide-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n/* font-weight variants */\n.heading-1-lt,\n.heading-2-lt,\n.heading-3-lt,\n.heading-4-lt {\n font-weight: var(--font-lt);\n}\n\n.heading-1-sb,\n.heading-2-sb,\n.heading-3-sb,\n.heading-4-sb,\n.body-1-sb,\n.body-2-sb,\n.body-3-sb,\n.body-4-sb,\n.body-5-sb,\n.interactive-1-sb,\n.interactive-2-sb,\n.interactive-3-sb,\n.helper-sb {\n font-weight: var(--font-sb);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ColorPickerPalette, KeyboardCode, PopoverPosition} from \"../../beans\";\nimport {ZColorPickerCustomEvent, ZToolCustomEvent, ZTooltipCustomEvent} from \"../../components\";\nimport {IconName} from \"../../constants/iconset\";\nimport {containsElement} from \"../../utils/utils\";\n\n/**\n * ZTool component. Can display an icon, an optional tooltip (mainly for hints about the tool's functionality), and can contain a nested `z-toolbar` as a submenu that opens on click.\n * @slot - Optional slot for nested content (e.g., a secondary `z-toolbar`) that appears when the tool is open/clicked.\n */\n@Component({\n tag: \"z-tool\",\n styleUrls: [\"styles.css\", \"../../tokens/typography.css\"],\n shadow: true,\n})\nexport class ZTool {\n @Element() hostElement: HTMLZToolElement;\n\n /** Tool icon */\n @Prop()\n icon: IconName;\n\n /** Text displayed inside the tooltip. */\n @Prop()\n tooltip?: string;\n\n /** Preferred tooltip position. Defaults to true. */\n @Prop()\n tooltipPosition: PopoverPosition = PopoverPosition.TOP;\n\n /** Accessible label for the tool trigger. Falls back to tooltip content. */\n @Prop()\n htmlAriaLabel?: string;\n\n /** Visual active state. */\n @Prop({reflect: true})\n active = false;\n\n /** Disabled state. */\n @Prop({reflect: true})\n disabled = false;\n\n /** Open state. */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Color to use to fill the icon's color indicator, if it has one.\n * Can be any valid value for the `fill` svg attribute.\n * The value of this prop is passed down to the `z-icon` component inside the tool.\n *\n * If `z-color-picker` component is used inside the tool's slot, its `colorSelected` event is listened\n * to automatically update `indicatorColor` and change the color of the icon indicator accordingly.\n */\n @Prop({mutable: true})\n indicatorColor?: string;\n\n @State()\n tooltipOpen = false;\n\n @State()\n hasSlottedContent = false;\n\n @State()\n isMobile = false;\n\n /** Indicates if the tool has nested open tools. Used to decide whether to auto-close the submenu. */\n @State()\n hasNestedOpenTools = false;\n\n /** Emitted when the open state changes. */\n @Event()\n toggleSubmenu: EventEmitter;\n\n /** Emitted when the tooltip open state changes. */\n @Event()\n toggleTooltip: EventEmitter;\n\n private buttonRef?: HTMLButtonElement;\n\n private iconRef?: HTMLElement;\n\n private tooltipRef?: HTMLZTooltipElement;\n\n private hoverDelay?: ReturnType<typeof setTimeout>;\n\n /** Indicates if the tool is nested inside another tool. */\n private isNested = false;\n\n /** Main `z-toolbar` ancestor element, meant to be the top-level toolbar not nested inside another tool. */\n private mainToolbar?: HTMLZToolbarElement;\n\n /** Media query list for detecting mobile view. */\n private mql?: MediaQueryList;\n\n /** Listener for changes in the mobile view media query. */\n private onMobileViewChange?: (e: MediaQueryListEvent) => void;\n\n /**\n * Opens the tooltip with a delay when the button is hovered or focused, and if the tool's content isn't already visible.\n */\n private handleTooltipOpen = (ev: FocusEvent | MouseEvent): void => {\n if (!this.tooltip || this.open || !this.buttonRef.contains(ev.target as Node)) {\n return;\n }\n\n clearTimeout(this.hoverDelay);\n this.hoverDelay = setTimeout(() => {\n this.tooltipOpen = true;\n }, 1000);\n };\n\n /**\n * Closes the tooltip immediately on button blur or when the mouse leaves the button or the tooltip, clearing any pending hover delay.\n */\n private handleTooltipClose = (ev: FocusEvent | MouseEvent): void => {\n if (!this.tooltip || (ev.relatedTarget as HTMLElement)?.closest(\"z-tooltip\") === this.tooltipRef) {\n return;\n }\n\n clearTimeout(this.hoverDelay);\n this.tooltipOpen = false;\n };\n\n /**\n * Handles click events on the tool's button element.\n * If the tool has slotted content, toggles the open state and focuses the active/selected item in the nested toolbar or color picker,\n * or the first item if no active/selected item is found.\n */\n private handleClick = (): void => {\n if (this.disabled || !this.hasSlottedContent) {\n return;\n }\n\n this.open = !this.open;\n if (this.open) {\n const colorPicker = this.hostElement.querySelector(\":scope > z-color-picker\") as HTMLZColorPickerElement | null;\n if (colorPicker) {\n colorPicker.setFocus();\n\n return;\n }\n\n // Focus the first active tool in the nested toolbar, or the first enabled if no active tool is found.\n const firstActiveOrEnabledNestedTool = (this.hostElement.querySelector(\n \":scope > z-toolbar z-tool[active]:not(:disabled)\"\n ) || this.hostElement.querySelector(\":scope > z-toolbar z-tool:not(:disabled)\")) as HTMLZToolElement | null;\n\n firstActiveOrEnabledNestedTool?.setFocus();\n }\n };\n\n /**\n * Handles `openChange` events from the tooltip popover to keep the `tooltipOpen` state in sync, but only if the event is coming from this tool's tooltip (and not from nested tools' tooltips).\n */\n private onTooltipOpenChange = (event: ZTooltipCustomEvent<{open: boolean}>): void => {\n if ((event.target as HTMLElement) === this.tooltipRef) {\n return;\n }\n\n this.tooltipOpen = event.detail.open;\n };\n\n @Watch(\"open\")\n handleOpenChange(): void {\n this.toggleSubmenu.emit(this.open);\n }\n\n @Watch(\"tooltipOpen\")\n handleTooltipOpenChange(): void {\n this.toggleTooltip.emit(this.tooltipOpen);\n }\n\n /**\n * Handle `ESC` and `shift+TAB` to close the submenu and move focus back to the button.\n */\n @Listen(\"keydown\")\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.open || this.hasNestedOpenTools) {\n return;\n }\n\n switch (event.key) {\n case KeyboardCode.ESC:\n event.stopPropagation();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.TAB:\n if (event.shiftKey && (event.target as Element).closest(\"z-tool:not(:scope)\") === this.hostElement) {\n this.open = false;\n }\n break;\n }\n }\n\n /**\n * Close the popover on clicks outside the component, only if there are no nested open tools.\n * In that case any outside click should close the nested submenu(s) first.\n */\n @Listen(\"click\", {target: \"body\"})\n onOutsideClick(event: MouseEvent): void {\n const target = event.composedPath()[0] as HTMLElement;\n if (!this.open || containsElement(this.hostElement, target) || this.hasNestedOpenTools) {\n return;\n }\n\n this.open = false;\n }\n\n @Listen(\"toggleSubmenu\")\n onNestedToolToggle(ev: ZToolCustomEvent<boolean>): void {\n if (ev.target === this.hostElement) {\n return;\n }\n\n if (ev.detail === true) {\n this.hasNestedOpenTools = true;\n\n return;\n }\n\n this.hasNestedOpenTools = Array.from(this.hostElement.querySelectorAll(\"z-tool\")).some((tool) => tool.open);\n }\n\n /**\n * Handles the `colorSelected` event from a nested `z-color-picker` component.\n * Updates the `indicatorColor` and closes the tool's popover.\n */\n @Listen(\"colorSelected\")\n handleColorSelected(event: ZColorPickerCustomEvent<ColorPickerPalette>): void {\n if (!Array.from(this.hostElement.children).includes(event.target as Element)) {\n return;\n }\n\n this.indicatorColor = event.detail;\n this.open = false;\n this.setFocus();\n }\n\n /**\n * Close the submenu when focus moves outside the tool.\n */\n @Listen(\"focusin\", {target: \"body\", passive: true})\n handleExternalFocusin(ev: FocusEvent): void {\n const target = ev.target as Node;\n if (!containsElement(this.hostElement, target)) {\n this.open = false;\n }\n }\n\n /** Focuses the tool's button element. */\n @Method()\n async setFocus(): Promise<void> {\n if (this.disabled) {\n return;\n }\n\n setTimeout(() => {\n this.buttonRef?.focus();\n }, 50);\n }\n\n /** Sets the tab index of the tool's internal button element. */\n @Method()\n async setTabIndex(value: number): Promise<void> {\n if (!this.buttonRef) {\n return;\n }\n\n this.buttonRef.tabIndex = this.disabled ? -1 : value;\n }\n\n /** Closes the tooltip. */\n @Method()\n async closeTooltip(): Promise<void> {\n clearTimeout(this.hoverDelay);\n this.tooltipOpen = false;\n }\n\n componentWillLoad(): void {\n this.hasSlottedContent = this.hostElement.children.length > 0;\n this.isNested = !!this.hostElement.closest(\"z-tool:not(:scope)\");\n this.mainToolbar = this.hostElement.closest(\"z-toolbar:not(z-toolbar z-toolbar)\");\n this.hasNestedOpenTools = !!this.hostElement.querySelector(\"z-tool[open]\");\n\n this.mql = matchMedia(\"(max-width: 767px)\");\n this.onMobileViewChange = (e: MediaQueryListEvent) => (this.isMobile = e.matches);\n this.mql.addEventListener(\"change\", this.onMobileViewChange);\n this.isMobile = this.mql.matches;\n }\n\n disconnectedCallback(): void {\n clearTimeout(this.hoverDelay);\n this.mql?.removeEventListener(\"change\", this.onMobileViewChange);\n }\n\n render(): HTMLZToolElement {\n return (\n <Host class={{\"z-tool-tooltip-open\": this.tooltipOpen}}>\n <button\n class=\"z-tool\"\n type=\"button\"\n ref={(el) => (this.buttonRef = el)}\n aria-pressed={this.hasSlottedContent ? undefined : this.active ? \"true\" : \"false\"}\n aria-expanded={this.hasSlottedContent ? (this.open ? \"true\" : \"false\") : undefined}\n aria-haspopup={this.hasSlottedContent ? \"true\" : undefined}\n aria-label={this.htmlAriaLabel || this.tooltip || undefined}\n disabled={this.disabled}\n onClick={this.handleClick}\n onMouseEnter={this.handleTooltipOpen}\n onMouseLeave={this.handleTooltipClose}\n onFocus={this.handleTooltipOpen}\n onBlur={this.handleTooltipClose}\n >\n <z-icon\n ref={(el) => (this.iconRef = el)}\n name={this.icon}\n indicatorColor={this.indicatorColor}\n ></z-icon>\n </button>\n {this.tooltip && (\n <z-tooltip\n class=\"z-tool-tooltip\"\n ref={(el) => (this.tooltipRef = el)}\n bindTo={this.iconRef}\n open={this.tooltipOpen && !this.open}\n position={this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition}\n dark\n onMouseLeave={this.handleTooltipClose}\n onBlur={this.handleTooltipClose}\n onOpenChange={this.onTooltipOpenChange}\n >\n <span class=\"body-4\">{this.tooltip}</span>\n </z-tooltip>\n )}\n {this.hasSlottedContent && (\n <z-popover\n class=\"z-tool-submenu\"\n open={this.open}\n bindTo={this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement}\n center\n /* disable auto-close to prevent unwanted close behaviors on mobile,\n when the bound element is the main toolbar */\n closable={false}\n position={this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM}\n >\n <slot></slot>\n </z-popover>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-96af6326.js');
6
- const index$1 = require('./index-97a4c18d.js');
6
+ const index$1 = require('./index-e30d0503.js');
7
7
 
8
- const stylesCss = ":host,*{box-sizing:border-box}:host{display:inline-flex;align-items:center;padding:0;border:var(--border-size-small) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-4);gap:calc(var(--space-unit) / 2)}::slotted(z-divider){height:calc(var(--space-unit) * 4.5) !important}@media (max-width: 767px){:host{--z-toolbar-columns:8;position:relative;display:inline-grid;align-items:stretch;background:repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent calc(var(--space-unit) * 5.5),\n var(--color-surface03) calc(var(--space-unit) * 5.5),\n var(--color-surface03) calc(var(--space-unit) * 5.5 + 1px)\n )\n center / calc(100% - var(--space-unit)) 100% no-repeat var(--color-surface01);column-gap:calc(var(--space-unit) / 2);grid-template-columns:repeat(var(--z-toolbar-columns, auto-fill), auto);row-gap:var(--border-size-small);--z-tool-host-position:static;--z-tool-submenu-top:auto;--z-tool-submenu-bottom:calc(100% + calc(var(--space-unit) / 2));--z-tool-submenu-left:0;--z-tool-submenu-transform:none}::slotted(z-divider){display:none !important}::slotted(z-tool){border-radius:var(--border-radius)}}";
8
+ const stylesCss = ":host,*{box-sizing:border-box}:host{display:flex;width:fit-content;align-items:center;padding:0;border:var(--border-size-small) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:calc(var(--border-radius) + var(--border-size-small));box-shadow:var(--shadow-4);gap:calc(var(--space-unit) / 2)}::slotted(z-divider){height:calc(var(--space-unit) * 4.5) !important}@media (max-width: 767px){:host{--z-toolbar-columns:6;position:relative;display:grid;max-width:100%;background:repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent calc(var(--space-unit) * 5.5),\n var(--color-surface03) calc(var(--space-unit) * 5.5),\n var(--color-surface03) calc(var(--space-unit) * 5.5 + 1px)\n )\n center / calc(100% - var(--space-unit)) 100% no-repeat var(--color-surface01);gap:var(--border-size-small) calc(var(--space-unit) / 2);grid-template-columns:repeat(var(--z-toolbar-columns, auto-fill), minmax(44px, auto))}::slotted(z-divider){display:none !important}}";
9
9
  const ZToolbarStyle0 = stylesCss;
10
10
 
11
11
  const ZToolbar = class {
@@ -19,42 +19,40 @@ const ZToolbar = class {
19
19
  componentDidLoad() {
20
20
  this.collectToolItems();
21
21
  this.updateTabIndexes();
22
- //set css variable --z-toolbar-columns based on the number of tools in the toolbar, so that the background pattern can adapt to the number of rows
23
- let colBreakpoint = parseInt(getComputedStyle(this.hostElement).getPropertyValue("--z-toolbar-columns") || "8");
24
- colBreakpoint = this.toolItems.length <= colBreakpoint ? this.toolItems.length : colBreakpoint;
25
- this.hostElement.style.setProperty("--z-toolbar-columns", colBreakpoint.toString());
22
+ // set css variable `--z-toolbar-columns` based on the number of tools in the toolbar, so that the background pattern can adapt to the number of rows
23
+ let mobileColumnCount = parseInt(getComputedStyle(this.hostElement).getPropertyValue("--z-toolbar-columns") || "6");
24
+ mobileColumnCount = this.toolItems.length <= mobileColumnCount ? this.toolItems.length : mobileColumnCount;
25
+ this.hostElement.style.setProperty("--z-toolbar-columns", mobileColumnCount.toString());
26
26
  }
27
- /** Collect all z-tool elements in the toolbar (not nested ones). */
27
+ /** Collect first level children `z-tool` elements in the toolbar (not nested ones). */
28
28
  collectToolItems() {
29
29
  this.toolItems = Array.from(this.hostElement.querySelectorAll("z-tool:not(:scope z-tool z-tool)"));
30
30
  }
31
+ /**
32
+ * Update the `tabindex` of all children tools based on the current focus index,
33
+ * so that only the currently focusable tool is in the tab order (tabindex="0") and all others are not focusable via keyboard (tabindex="-1").
34
+ */
31
35
  updateTabIndexes() {
32
36
  this.toolItems.forEach((tool, index) => {
33
- var _a;
34
- const button = (_a = tool.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
35
- if (button) {
36
- button.tabIndex = index === this.currentFocusIndex ? 0 : -1;
37
- }
37
+ tool.setTabIndex(index === this.currentFocusIndex ? 0 : -1);
38
38
  });
39
39
  }
40
40
  focusToolAt(index, fallback = "next") {
41
- var _a;
42
41
  const tool = this.toolItems[index];
43
- if (tool) {
44
- const button = (_a = tool.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
45
- this.currentFocusIndex = index;
46
- if (button.disabled || !button) {
47
- if (fallback === "next") {
48
- this.focusNextTool();
49
- }
50
- else {
51
- this.focusPreviousTool();
52
- }
53
- }
54
- else if (button) {
55
- button.focus();
56
- this.updateTabIndexes();
57
- }
42
+ if (!tool) {
43
+ return;
44
+ }
45
+ this.currentFocusIndex = index;
46
+ if (!tool.disabled) {
47
+ tool.setFocus();
48
+ this.updateTabIndexes();
49
+ return;
50
+ }
51
+ if (fallback === "next") {
52
+ this.focusNextTool();
53
+ }
54
+ else {
55
+ this.focusPreviousTool();
58
56
  }
59
57
  }
60
58
  focusNextTool() {
@@ -65,40 +63,43 @@ const ZToolbar = class {
65
63
  const prevIndex = (this.currentFocusIndex - 1 + this.toolItems.length) % this.toolItems.length;
66
64
  this.focusToolAt(prevIndex, "previous");
67
65
  }
68
- focusParentTool(event) {
69
- var _a;
70
- const parentTool = this.hostElement.closest("z-tool");
71
- if (parentTool) {
72
- event.preventDefault();
73
- event.stopPropagation();
74
- parentTool.open = false;
75
- const parentButton = (_a = parentTool.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
76
- if (parentButton) {
77
- parentButton.focus();
78
- }
66
+ /**
67
+ * Listen for custom "toggleSubmenu" events from child tools and close sibling submenus when one is opened,
68
+ * to prevent multiple submenus from being open at the same time.
69
+ */
70
+ closeSiblingSubmenusOnOpen(event) {
71
+ if (event.detail !== true) {
72
+ return;
79
73
  }
80
- }
81
- /** Close all open submenus in the toolbar. */
82
- async closeSubmenus() {
83
- const tools = this.hostElement.querySelectorAll(":scope > z-tool");
84
- tools.forEach((tool) => {
85
- if (tool.open) {
74
+ const targetTool = event.target.closest("z-tool");
75
+ if (!targetTool || !this.toolItems.includes(targetTool)) {
76
+ return;
77
+ }
78
+ this.toolItems.forEach((tool) => {
79
+ if (tool !== targetTool && tool.open) {
86
80
  tool.open = false;
87
81
  }
88
82
  });
89
83
  }
90
- closeSibilingSubmenusOnOpen(event) {
91
- if (event.detail === true) {
92
- const tools = this.hostElement.querySelectorAll(":scope > z-tool");
93
- tools.forEach((tool) => {
94
- if (tool !== event.target.closest("z-tool") && tool.open) {
95
- tool.open = false;
96
- }
97
- });
84
+ /**
85
+ * Listen for custom "toggleTooltip" events from child tools and close sibling tooltips when one is opened,
86
+ * to prevent multiple tooltips from being open at the same time.
87
+ */
88
+ closeSiblingTooltipsOnOpen(event) {
89
+ if (event.detail !== true) {
90
+ return;
98
91
  }
92
+ const targetTool = event.target;
93
+ if (!this.toolItems.includes(targetTool)) {
94
+ return;
95
+ }
96
+ this.toolItems.forEach((tool) => {
97
+ if (tool !== targetTool) {
98
+ tool.closeTooltip();
99
+ }
100
+ });
99
101
  }
100
102
  handleKeyDown(event) {
101
- this.collectToolItems();
102
103
  const target = event.target;
103
104
  const toolElement = target.closest("z-tool");
104
105
  if (!toolElement || !this.toolItems.includes(toolElement)) {
@@ -117,26 +118,23 @@ const ZToolbar = class {
117
118
  event.preventDefault();
118
119
  this.focusPreviousTool();
119
120
  break;
120
- case index$1.KeyboardCode.ESC:
121
- case index$1.KeyboardCode.TAB:
122
- this.focusParentTool(event);
123
- break;
124
121
  }
125
122
  }
123
+ /**
124
+ * When focus enters the toolbar, update the current focus index to match the focused tool,
125
+ * so that roving tabindex is in sync with actual focus.
126
+ */
126
127
  handleFocusIn(event) {
127
- // When focus enters the toolbar, update the current focus index
128
128
  const target = event.target;
129
129
  const toolElement = target.closest("z-tool");
130
- if (toolElement && this.toolItems.includes(toolElement)) {
131
- const index = this.toolItems.indexOf(toolElement);
132
- if (index !== -1 && index !== this.currentFocusIndex) {
133
- this.currentFocusIndex = index;
134
- this.updateTabIndexes();
135
- }
130
+ const index = this.toolItems.indexOf(toolElement);
131
+ if (index !== -1 && index !== this.currentFocusIndex) {
132
+ this.currentFocusIndex = index;
133
+ this.updateTabIndexes();
136
134
  }
137
135
  }
138
136
  render() {
139
- return (index.h(index.Host, { key: 'b03b77a808c6e0c1724e6765210e83bad3a7c4dc', role: "toolbar", "aria-label": this.htmlAriaLabel }, index.h("slot", { key: '448035bb2842a93ed4e0bb433d1e506007b93519', onSlotchange: () => {
137
+ return (index.h(index.Host, { key: 'eb195bd6bb7d19e7958492c96761572838e2a881', role: "toolbar", "aria-label": this.htmlAriaLabel }, index.h("slot", { key: '6283d32e6e5568a890ff9c404d152800269cda99', onSlotchange: () => {
140
138
  this.collectToolItems();
141
139
  this.updateTabIndexes();
142
140
  } })));