@beeq/core 1.8.3 → 1.8.4

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 (421) hide show
  1. package/dist/beeq/beeq.esm.js +1 -1
  2. package/dist/beeq/beeq.esm.js.map +1 -1
  3. package/dist/beeq/index.esm.js +1 -1
  4. package/dist/beeq/{p-b69f347d.entry.js → p-0338b2f9.entry.js} +2 -2
  5. package/dist/beeq/p-0338b2f9.entry.js.map +1 -0
  6. package/dist/beeq/{p-3806d9e3.entry.js → p-0b0a2c8a.entry.js} +2 -2
  7. package/dist/beeq/{p-803269b3.entry.js → p-0ee91951.entry.js} +2 -2
  8. package/dist/beeq/{p-3f654a12.entry.js → p-11f54320.entry.js} +2 -2
  9. package/dist/beeq/{p-66b6d69a.entry.js → p-1694f242.entry.js} +2 -2
  10. package/dist/beeq/{p-9a7af424.entry.js → p-21ef028f.entry.js} +2 -2
  11. package/dist/beeq/{p-7585f825.entry.js → p-226f3647.entry.js} +2 -2
  12. package/dist/beeq/{p-d7ce7165.js → p-260d4ca0.js} +2 -2
  13. package/dist/beeq/{p-d7ce7165.js.map → p-260d4ca0.js.map} +1 -1
  14. package/dist/beeq/{p-c42f9ac5.entry.js → p-2f55e11f.entry.js} +2 -2
  15. package/dist/beeq/{p-ee1ecb6e.entry.js → p-3ac6d599.entry.js} +2 -2
  16. package/dist/beeq/{p-a4e11bbc.entry.js → p-402449b6.entry.js} +2 -2
  17. package/dist/beeq/p-402449b6.entry.js.map +1 -0
  18. package/dist/beeq/{p-dbac0368.entry.js → p-4757fa1e.entry.js} +2 -2
  19. package/dist/beeq/p-4757fa1e.entry.js.map +1 -0
  20. package/dist/beeq/{p-3fe626f1.entry.js → p-49b40ec5.entry.js} +2 -2
  21. package/dist/beeq/p-49b40ec5.entry.js.map +1 -0
  22. package/dist/beeq/{p-a8075be3.entry.js → p-4fc0cf41.entry.js} +2 -2
  23. package/dist/beeq/{p-19f5a833.entry.js → p-5837a0ea.entry.js} +2 -2
  24. package/dist/beeq/p-5837a0ea.entry.js.map +1 -0
  25. package/dist/beeq/{p-dafa4162.entry.js → p-5e4edb8a.entry.js} +2 -2
  26. package/dist/beeq/{p-dafa4162.entry.js.map → p-5e4edb8a.entry.js.map} +1 -1
  27. package/dist/beeq/{p-7efff703.entry.js → p-5fe65f50.entry.js} +2 -2
  28. package/dist/beeq/{p-e8f147c2.entry.js → p-68944624.entry.js} +2 -2
  29. package/dist/beeq/p-68944624.entry.js.map +1 -0
  30. package/dist/beeq/{p-cb9fa154.entry.js → p-6aaa20c9.entry.js} +2 -2
  31. package/dist/beeq/p-6aaa20c9.entry.js.map +1 -0
  32. package/dist/beeq/{p-59a1b546.entry.js → p-6bc7c1e5.entry.js} +2 -2
  33. package/dist/beeq/p-6bc7c1e5.entry.js.map +1 -0
  34. package/dist/beeq/{p-bbaad491.entry.js → p-730ed434.entry.js} +2 -2
  35. package/dist/beeq/{p-4d21a49d.entry.js → p-7af08445.entry.js} +2 -2
  36. package/dist/beeq/{p-15bf8ffd.entry.js → p-7cfca18b.entry.js} +2 -2
  37. package/dist/beeq/p-7cfca18b.entry.js.map +1 -0
  38. package/dist/beeq/{p-ba1f9637.entry.js → p-7d161e60.entry.js} +2 -2
  39. package/dist/beeq/p-7d161e60.entry.js.map +1 -0
  40. package/dist/beeq/{p-19ea2c90.entry.js → p-7dda6cb9.entry.js} +2 -2
  41. package/dist/beeq/p-7dda6cb9.entry.js.map +1 -0
  42. package/dist/beeq/{p-5546f242.entry.js → p-85d7bc6c.entry.js} +2 -2
  43. package/dist/beeq/{p-4500ffe5.entry.js → p-93a3bcb5.entry.js} +2 -2
  44. package/dist/beeq/{p-90165aef.entry.js → p-96684c94.entry.js} +2 -2
  45. package/dist/beeq/{p-90165aef.entry.js.map → p-96684c94.entry.js.map} +1 -1
  46. package/dist/beeq/p-9ecdbeec.js +6 -0
  47. package/dist/beeq/p-a035d288.js +6 -0
  48. package/dist/beeq/{p-b129db1a.entry.js → p-a0b2db0b.entry.js} +2 -2
  49. package/dist/beeq/p-a52f0ff0.entry.js +6 -0
  50. package/dist/beeq/p-a52f0ff0.entry.js.map +1 -0
  51. package/dist/beeq/{p-f4e8ebd3.entry.js → p-a902a347.entry.js} +2 -2
  52. package/dist/beeq/{p-70310ac8.entry.js → p-aeb28fb3.entry.js} +2 -2
  53. package/dist/beeq/p-aeb28fb3.entry.js.map +1 -0
  54. package/dist/beeq/{p-b0d168c8.entry.js → p-af9c9769.entry.js} +2 -2
  55. package/dist/beeq/p-af9c9769.entry.js.map +1 -0
  56. package/dist/beeq/{p-b7b3f7c6.entry.js → p-b4ae4315.entry.js} +2 -2
  57. package/dist/beeq/p-c05c50bf.js +7 -0
  58. package/dist/beeq/p-c05c50bf.js.map +1 -0
  59. package/dist/beeq/{p-e655938a.entry.js → p-d04883ab.entry.js} +2 -2
  60. package/dist/beeq/{p-a8d64d1b.entry.js → p-d4676bbd.entry.js} +2 -2
  61. package/dist/beeq/{p-39a80765.entry.js → p-e29c46f5.entry.js} +2 -2
  62. package/dist/beeq/p-e29c46f5.entry.js.map +1 -0
  63. package/dist/beeq/{p-8ed41b69.entry.js → p-e827f88d.entry.js} +2 -2
  64. package/dist/beeq/{p-65d67b85.entry.js → p-f7e3eff3.entry.js} +2 -2
  65. package/dist/beeq/p-f7e3eff3.entry.js.map +1 -0
  66. package/dist/beeq/{p-ed569a61.entry.js → p-f85f1705.entry.js} +2 -2
  67. package/dist/beeq.html-custom-data.json +59 -59
  68. package/dist/cjs/{assetsPath-32c4030b.js → assetsPath-bff6e1f9.js} +2 -2
  69. package/dist/cjs/{assetsPath-32c4030b.js.map → assetsPath-bff6e1f9.js.map} +1 -1
  70. package/dist/cjs/beeq.cjs.js +3 -3
  71. package/dist/cjs/beeq.cjs.js.map +1 -1
  72. package/dist/cjs/bq-accordion-group.cjs.entry.js +1 -1
  73. package/dist/cjs/bq-accordion.cjs.entry.js +7 -8
  74. package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
  75. package/dist/cjs/bq-alert.cjs.entry.js +8 -9
  76. package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
  77. package/dist/cjs/bq-avatar.cjs.entry.js +1 -1
  78. package/dist/cjs/bq-badge.cjs.entry.js +8 -5
  79. package/dist/cjs/bq-badge.cjs.entry.js.map +1 -1
  80. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +2 -2
  81. package/dist/cjs/bq-breadcrumb.cjs.entry.js +5 -2
  82. package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
  83. package/dist/cjs/bq-button_2.cjs.entry.js +9 -6
  84. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  85. package/dist/cjs/bq-card.cjs.entry.js +1 -1
  86. package/dist/cjs/bq-checkbox.cjs.entry.js +1 -1
  87. package/dist/cjs/bq-date-picker.cjs.entry.js +97 -17
  88. package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
  89. package/dist/cjs/bq-dialog.cjs.entry.js +8 -9
  90. package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
  91. package/dist/cjs/bq-divider.cjs.entry.js +2 -2
  92. package/dist/cjs/bq-drawer.cjs.entry.js +10 -7
  93. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  94. package/dist/cjs/bq-dropdown_2.cjs.entry.js +1 -1
  95. package/dist/cjs/bq-empty-state.cjs.entry.js +10 -9
  96. package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
  97. package/dist/cjs/bq-input.cjs.entry.js +11 -14
  98. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  99. package/dist/cjs/bq-notification.cjs.entry.js +8 -7
  100. package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
  101. package/dist/cjs/bq-option-group.cjs.entry.js +1 -1
  102. package/dist/cjs/bq-option-list_2.cjs.entry.js +8 -5
  103. package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
  104. package/dist/cjs/bq-option.cjs.entry.js +10 -9
  105. package/dist/cjs/bq-option.cjs.entry.js.map +1 -1
  106. package/dist/cjs/bq-page-title.cjs.entry.js +7 -4
  107. package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
  108. package/dist/cjs/bq-progress.cjs.entry.js +1 -1
  109. package/dist/cjs/bq-radio-group.cjs.entry.js +1 -1
  110. package/dist/cjs/bq-radio.cjs.entry.js +1 -1
  111. package/dist/cjs/bq-select.cjs.entry.js +10 -15
  112. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  113. package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
  114. package/dist/cjs/bq-side-menu.cjs.entry.js +1 -1
  115. package/dist/cjs/bq-slider.cjs.entry.js +1 -1
  116. package/dist/cjs/bq-spinner.cjs.entry.js +8 -6
  117. package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
  118. package/dist/cjs/bq-status.cjs.entry.js +1 -1
  119. package/dist/cjs/bq-step-item.cjs.entry.js +1 -1
  120. package/dist/cjs/bq-steps.cjs.entry.js +1 -1
  121. package/dist/cjs/bq-switch.cjs.entry.js +2 -2
  122. package/dist/cjs/bq-tab-group.cjs.entry.js +1 -1
  123. package/dist/cjs/bq-tab.cjs.entry.js +7 -4
  124. package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
  125. package/dist/cjs/bq-textarea.cjs.entry.js +7 -8
  126. package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
  127. package/dist/cjs/bq-toast.cjs.entry.js +1 -1
  128. package/dist/cjs/bq-tooltip.cjs.entry.js +1 -1
  129. package/dist/cjs/{index-0c8d249a.js → index-6fcc2c3c.js} +56 -20
  130. package/dist/cjs/index-6fcc2c3c.js.map +1 -0
  131. package/dist/cjs/index.cjs.js +4 -4
  132. package/dist/cjs/{isDefined-5e8aae9d.js → isDefined-237b1214.js} +2 -2
  133. package/dist/cjs/{isDefined-5e8aae9d.js.map → isDefined-237b1214.js.map} +1 -1
  134. package/dist/cjs/loader.cjs.js +2 -2
  135. package/dist/cjs/{slot-2fee189a.js → slot-c3eeb29f.js} +3 -1
  136. package/dist/cjs/slot-c3eeb29f.js.map +1 -0
  137. package/dist/collection/collection-manifest.json +1 -1
  138. package/dist/collection/components/accordion/bq-accordion.js +5 -6
  139. package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
  140. package/dist/collection/components/alert/bq-alert.js +6 -7
  141. package/dist/collection/components/alert/bq-alert.js.map +1 -1
  142. package/dist/collection/components/badge/bq-badge.js +6 -3
  143. package/dist/collection/components/badge/bq-badge.js.map +1 -1
  144. package/dist/collection/components/breadcrumb/bq-breadcrumb.js +4 -1
  145. package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
  146. package/dist/collection/components/button/bq-button.js +5 -2
  147. package/dist/collection/components/button/bq-button.js.map +1 -1
  148. package/dist/collection/components/date-picker/bq-date-picker.js +27 -14
  149. package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
  150. package/dist/collection/components/date-picker/bq-date-picker.types.js.map +1 -1
  151. package/dist/collection/components/date-picker/helper/callyLibrary.js +73 -0
  152. package/dist/collection/components/date-picker/helper/callyLibrary.js.map +1 -0
  153. package/dist/collection/components/dialog/bq-dialog.js +6 -7
  154. package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
  155. package/dist/collection/components/drawer/bq-drawer.js +7 -4
  156. package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
  157. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  158. package/dist/collection/components/empty-state/bq-empty-state.js +8 -7
  159. package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
  160. package/dist/collection/components/input/bq-input.js +8 -11
  161. package/dist/collection/components/input/bq-input.js.map +1 -1
  162. package/dist/collection/components/notification/bq-notification.js +6 -5
  163. package/dist/collection/components/notification/bq-notification.js.map +1 -1
  164. package/dist/collection/components/option/bq-option.js +8 -7
  165. package/dist/collection/components/option/bq-option.js.map +1 -1
  166. package/dist/collection/components/page-title/bq-page-title.js +5 -2
  167. package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
  168. package/dist/collection/components/select/bq-select.js +6 -11
  169. package/dist/collection/components/select/bq-select.js.map +1 -1
  170. package/dist/collection/components/select/scss/bq-select.css +1 -1
  171. package/dist/collection/components/spinner/bq-spinner.js +6 -4
  172. package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
  173. package/dist/collection/components/tab/bq-tab.js +5 -2
  174. package/dist/collection/components/tab/bq-tab.js.map +1 -1
  175. package/dist/collection/components/tag/bq-tag.js +6 -3
  176. package/dist/collection/components/tag/bq-tag.js.map +1 -1
  177. package/dist/collection/components/textarea/bq-textarea.js +5 -6
  178. package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
  179. package/dist/collection/shared/utils/slot.js +2 -0
  180. package/dist/collection/shared/utils/slot.js.map +1 -1
  181. package/dist/components/bq-accordion-group.js +1 -1
  182. package/dist/components/bq-accordion.js +1 -1
  183. package/dist/components/bq-accordion.js.map +1 -1
  184. package/dist/components/bq-alert.js +1 -1
  185. package/dist/components/bq-alert.js.map +1 -1
  186. package/dist/components/bq-avatar.js +1 -1
  187. package/dist/components/bq-badge.js +1 -1
  188. package/dist/components/bq-breadcrumb-item.js +1 -1
  189. package/dist/components/bq-breadcrumb.js +1 -1
  190. package/dist/components/bq-breadcrumb.js.map +1 -1
  191. package/dist/components/bq-button.js +1 -1
  192. package/dist/components/bq-card.js +1 -1
  193. package/dist/components/bq-checkbox.js +1 -1
  194. package/dist/components/bq-date-picker.js +1 -1
  195. package/dist/components/bq-date-picker.js.map +1 -1
  196. package/dist/components/bq-dialog.js +1 -1
  197. package/dist/components/bq-dialog.js.map +1 -1
  198. package/dist/components/bq-divider.js +1 -1
  199. package/dist/components/bq-drawer.js +1 -1
  200. package/dist/components/bq-drawer.js.map +1 -1
  201. package/dist/components/bq-dropdown.js +1 -1
  202. package/dist/components/bq-empty-state.js +1 -1
  203. package/dist/components/bq-empty-state.js.map +1 -1
  204. package/dist/components/bq-icon.js +1 -1
  205. package/dist/components/bq-input.js +1 -1
  206. package/dist/components/bq-input.js.map +1 -1
  207. package/dist/components/bq-notification.js +1 -1
  208. package/dist/components/bq-notification.js.map +1 -1
  209. package/dist/components/bq-option-group.js +1 -1
  210. package/dist/components/bq-option-list.js +1 -1
  211. package/dist/components/bq-option.js +1 -1
  212. package/dist/components/bq-option.js.map +1 -1
  213. package/dist/components/bq-page-title.js +1 -1
  214. package/dist/components/bq-page-title.js.map +1 -1
  215. package/dist/components/bq-panel.js +1 -1
  216. package/dist/components/bq-progress.js +1 -1
  217. package/dist/components/bq-radio-group.js +1 -1
  218. package/dist/components/bq-radio.js +1 -1
  219. package/dist/components/bq-select.js +1 -1
  220. package/dist/components/bq-select.js.map +1 -1
  221. package/dist/components/bq-side-menu-item.js +1 -1
  222. package/dist/components/bq-side-menu.js +1 -1
  223. package/dist/components/bq-slider.js +1 -1
  224. package/dist/components/bq-spinner.js +1 -1
  225. package/dist/components/bq-spinner.js.map +1 -1
  226. package/dist/components/bq-status.js +1 -1
  227. package/dist/components/bq-step-item.js +1 -1
  228. package/dist/components/bq-steps.js +1 -1
  229. package/dist/components/bq-switch.js +1 -1
  230. package/dist/components/bq-tab-group.js +1 -1
  231. package/dist/components/bq-tab.js +1 -1
  232. package/dist/components/bq-tab.js.map +1 -1
  233. package/dist/components/bq-tag.js +1 -1
  234. package/dist/components/bq-textarea.js +1 -1
  235. package/dist/components/bq-textarea.js.map +1 -1
  236. package/dist/components/bq-toast.js +1 -1
  237. package/dist/components/bq-tooltip.js +1 -1
  238. package/dist/components/index.js +1 -1
  239. package/dist/components/{p-c58e0d87.js → p-1629a472.js} +2 -2
  240. package/dist/components/{p-ac26ffcd.js → p-242345e1.js} +2 -2
  241. package/dist/components/{p-d7ce7165.js → p-260d4ca0.js} +2 -2
  242. package/dist/components/{p-d7ce7165.js.map → p-260d4ca0.js.map} +1 -1
  243. package/dist/components/{p-a02c6b73.js → p-2aab0744.js} +2 -2
  244. package/dist/components/p-2aab0744.js.map +1 -0
  245. package/dist/components/p-39d794c1.js +6 -0
  246. package/dist/components/{p-5b34bd04.js → p-51027528.js} +2 -2
  247. package/dist/components/p-66fcce92.js +6 -0
  248. package/dist/components/p-66fcce92.js.map +1 -0
  249. package/dist/components/{p-8d8eeb62.js → p-afef286d.js} +2 -2
  250. package/dist/components/{p-f5588ccd.js → p-b5306ce3.js} +2 -2
  251. package/dist/components/p-b5306ce3.js.map +1 -0
  252. package/dist/components/{p-b50adb19.js → p-dfb2cbb5.js} +2 -2
  253. package/dist/components/p-f0fcfdea.js +6 -0
  254. package/dist/components/p-f0fcfdea.js.map +1 -0
  255. package/dist/components/{p-9a115ee5.js → p-fd965589.js} +2 -2
  256. package/dist/custom-elements.json +724 -791
  257. package/dist/esm/{assetsPath-57848212.js → assetsPath-14f18f9a.js} +2 -2
  258. package/dist/esm/{assetsPath-57848212.js.map → assetsPath-14f18f9a.js.map} +1 -1
  259. package/dist/esm/beeq.js +4 -4
  260. package/dist/esm/beeq.js.map +1 -1
  261. package/dist/esm/bq-accordion-group.entry.js +1 -1
  262. package/dist/esm/bq-accordion.entry.js +7 -8
  263. package/dist/esm/bq-accordion.entry.js.map +1 -1
  264. package/dist/esm/bq-alert.entry.js +8 -9
  265. package/dist/esm/bq-alert.entry.js.map +1 -1
  266. package/dist/esm/bq-avatar.entry.js +1 -1
  267. package/dist/esm/bq-badge.entry.js +8 -5
  268. package/dist/esm/bq-badge.entry.js.map +1 -1
  269. package/dist/esm/bq-breadcrumb-item.entry.js +2 -2
  270. package/dist/esm/bq-breadcrumb.entry.js +5 -2
  271. package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
  272. package/dist/esm/bq-button_2.entry.js +9 -6
  273. package/dist/esm/bq-button_2.entry.js.map +1 -1
  274. package/dist/esm/bq-card.entry.js +1 -1
  275. package/dist/esm/bq-checkbox.entry.js +1 -1
  276. package/dist/esm/bq-date-picker.entry.js +97 -17
  277. package/dist/esm/bq-date-picker.entry.js.map +1 -1
  278. package/dist/esm/bq-dialog.entry.js +8 -9
  279. package/dist/esm/bq-dialog.entry.js.map +1 -1
  280. package/dist/esm/bq-divider.entry.js +2 -2
  281. package/dist/esm/bq-drawer.entry.js +10 -7
  282. package/dist/esm/bq-drawer.entry.js.map +1 -1
  283. package/dist/esm/bq-dropdown_2.entry.js +1 -1
  284. package/dist/esm/bq-empty-state.entry.js +10 -9
  285. package/dist/esm/bq-empty-state.entry.js.map +1 -1
  286. package/dist/esm/bq-input.entry.js +11 -14
  287. package/dist/esm/bq-input.entry.js.map +1 -1
  288. package/dist/esm/bq-notification.entry.js +8 -7
  289. package/dist/esm/bq-notification.entry.js.map +1 -1
  290. package/dist/esm/bq-option-group.entry.js +1 -1
  291. package/dist/esm/bq-option-list_2.entry.js +8 -5
  292. package/dist/esm/bq-option-list_2.entry.js.map +1 -1
  293. package/dist/esm/bq-option.entry.js +10 -9
  294. package/dist/esm/bq-option.entry.js.map +1 -1
  295. package/dist/esm/bq-page-title.entry.js +7 -4
  296. package/dist/esm/bq-page-title.entry.js.map +1 -1
  297. package/dist/esm/bq-progress.entry.js +1 -1
  298. package/dist/esm/bq-radio-group.entry.js +1 -1
  299. package/dist/esm/bq-radio.entry.js +1 -1
  300. package/dist/esm/bq-select.entry.js +10 -15
  301. package/dist/esm/bq-select.entry.js.map +1 -1
  302. package/dist/esm/bq-side-menu-item.entry.js +2 -2
  303. package/dist/esm/bq-side-menu.entry.js +1 -1
  304. package/dist/esm/bq-slider.entry.js +1 -1
  305. package/dist/esm/bq-spinner.entry.js +8 -6
  306. package/dist/esm/bq-spinner.entry.js.map +1 -1
  307. package/dist/esm/bq-status.entry.js +1 -1
  308. package/dist/esm/bq-step-item.entry.js +1 -1
  309. package/dist/esm/bq-steps.entry.js +1 -1
  310. package/dist/esm/bq-switch.entry.js +2 -2
  311. package/dist/esm/bq-tab-group.entry.js +1 -1
  312. package/dist/esm/bq-tab.entry.js +7 -4
  313. package/dist/esm/bq-tab.entry.js.map +1 -1
  314. package/dist/esm/bq-textarea.entry.js +7 -8
  315. package/dist/esm/bq-textarea.entry.js.map +1 -1
  316. package/dist/esm/bq-toast.entry.js +1 -1
  317. package/dist/esm/bq-tooltip.entry.js +1 -1
  318. package/dist/esm/{index-59610291.js → index-4e4c39e8.js} +56 -20
  319. package/dist/esm/index-4e4c39e8.js.map +1 -0
  320. package/dist/esm/index.js +5 -5
  321. package/dist/esm/{isDefined-30b8b652.js → isDefined-7a919d19.js} +2 -2
  322. package/dist/esm/{isDefined-30b8b652.js.map → isDefined-7a919d19.js.map} +1 -1
  323. package/dist/esm/loader.js +3 -3
  324. package/dist/esm/{slot-58bfedb5.js → slot-be230a01.js} +3 -1
  325. package/dist/esm/slot-be230a01.js.map +1 -0
  326. package/dist/hydrate/index.d.ts +22 -5
  327. package/dist/hydrate/index.js +674 -1297
  328. package/dist/hydrate/index.mjs +674 -1297
  329. package/dist/stencil.config.js +20 -17
  330. package/dist/stencil.config.js.map +1 -1
  331. package/dist/types/components/accordion/bq-accordion.d.ts +1 -2
  332. package/dist/types/components/alert/bq-alert.d.ts +1 -2
  333. package/dist/types/components/badge/bq-badge.d.ts +2 -1
  334. package/dist/types/components/breadcrumb/bq-breadcrumb.d.ts +1 -0
  335. package/dist/types/components/button/bq-button.d.ts +1 -0
  336. package/dist/types/components/date-picker/bq-date-picker.d.ts +3 -4
  337. package/dist/types/components/date-picker/bq-date-picker.types.d.ts +16 -0
  338. package/dist/types/components/date-picker/helper/callyLibrary.d.ts +11 -0
  339. package/dist/types/components/dialog/bq-dialog.d.ts +1 -2
  340. package/dist/types/components/drawer/bq-drawer.d.ts +1 -0
  341. package/dist/types/components/empty-state/bq-empty-state.d.ts +2 -2
  342. package/dist/types/components/input/bq-input.d.ts +2 -4
  343. package/dist/types/components/notification/bq-notification.d.ts +2 -2
  344. package/dist/types/components/option/bq-option.d.ts +2 -2
  345. package/dist/types/components/page-title/bq-page-title.d.ts +1 -0
  346. package/dist/types/components/select/bq-select.d.ts +1 -4
  347. package/dist/types/components/tab/bq-tab.d.ts +1 -0
  348. package/dist/types/components/tag/bq-tag.d.ts +1 -0
  349. package/dist/types/components/textarea/bq-textarea.d.ts +1 -2
  350. package/dist/types/global.d.ts +0 -10
  351. package/package.json +2 -3
  352. package/dist/beeq/p-15bf8ffd.entry.js.map +0 -1
  353. package/dist/beeq/p-19ea2c90.entry.js.map +0 -1
  354. package/dist/beeq/p-19f5a833.entry.js.map +0 -1
  355. package/dist/beeq/p-34611c2f.js +0 -6
  356. package/dist/beeq/p-34611c2f.js.map +0 -1
  357. package/dist/beeq/p-39a80765.entry.js.map +0 -1
  358. package/dist/beeq/p-3fe626f1.entry.js.map +0 -1
  359. package/dist/beeq/p-4a3784e1.js +0 -7
  360. package/dist/beeq/p-4a3784e1.js.map +0 -1
  361. package/dist/beeq/p-59a1b546.entry.js.map +0 -1
  362. package/dist/beeq/p-65d67b85.entry.js.map +0 -1
  363. package/dist/beeq/p-6bea33f4.entry.js +0 -6
  364. package/dist/beeq/p-6bea33f4.entry.js.map +0 -1
  365. package/dist/beeq/p-70310ac8.entry.js.map +0 -1
  366. package/dist/beeq/p-a4e11bbc.entry.js.map +0 -1
  367. package/dist/beeq/p-b0d168c8.entry.js.map +0 -1
  368. package/dist/beeq/p-b69f347d.entry.js.map +0 -1
  369. package/dist/beeq/p-ba1f9637.entry.js.map +0 -1
  370. package/dist/beeq/p-cb9fa154.entry.js.map +0 -1
  371. package/dist/beeq/p-cf923c68.js +0 -6
  372. package/dist/beeq/p-dbac0368.entry.js.map +0 -1
  373. package/dist/beeq/p-e4dd6ff4.js +0 -6
  374. package/dist/beeq/p-e8f147c2.entry.js.map +0 -1
  375. package/dist/cjs/cally-1bde2e82.js +0 -1162
  376. package/dist/cjs/cally-1bde2e82.js.map +0 -1
  377. package/dist/cjs/index-0c8d249a.js.map +0 -1
  378. package/dist/cjs/slot-2fee189a.js.map +0 -1
  379. package/dist/components/p-34611c2f.js +0 -6
  380. package/dist/components/p-34611c2f.js.map +0 -1
  381. package/dist/components/p-37483f1c.js +0 -6
  382. package/dist/components/p-37483f1c.js.map +0 -1
  383. package/dist/components/p-6e0c7ab4.js +0 -6
  384. package/dist/components/p-a02c6b73.js.map +0 -1
  385. package/dist/components/p-d16482dc.js +0 -6
  386. package/dist/components/p-d16482dc.js.map +0 -1
  387. package/dist/components/p-f5588ccd.js.map +0 -1
  388. package/dist/esm/cally-49a83be1.js +0 -1157
  389. package/dist/esm/cally-49a83be1.js.map +0 -1
  390. package/dist/esm/index-59610291.js.map +0 -1
  391. package/dist/esm/slot-58bfedb5.js.map +0 -1
  392. /package/dist/beeq/{p-3806d9e3.entry.js.map → p-0b0a2c8a.entry.js.map} +0 -0
  393. /package/dist/beeq/{p-803269b3.entry.js.map → p-0ee91951.entry.js.map} +0 -0
  394. /package/dist/beeq/{p-3f654a12.entry.js.map → p-11f54320.entry.js.map} +0 -0
  395. /package/dist/beeq/{p-66b6d69a.entry.js.map → p-1694f242.entry.js.map} +0 -0
  396. /package/dist/beeq/{p-9a7af424.entry.js.map → p-21ef028f.entry.js.map} +0 -0
  397. /package/dist/beeq/{p-7585f825.entry.js.map → p-226f3647.entry.js.map} +0 -0
  398. /package/dist/beeq/{p-c42f9ac5.entry.js.map → p-2f55e11f.entry.js.map} +0 -0
  399. /package/dist/beeq/{p-ee1ecb6e.entry.js.map → p-3ac6d599.entry.js.map} +0 -0
  400. /package/dist/beeq/{p-a8075be3.entry.js.map → p-4fc0cf41.entry.js.map} +0 -0
  401. /package/dist/beeq/{p-7efff703.entry.js.map → p-5fe65f50.entry.js.map} +0 -0
  402. /package/dist/beeq/{p-bbaad491.entry.js.map → p-730ed434.entry.js.map} +0 -0
  403. /package/dist/beeq/{p-4d21a49d.entry.js.map → p-7af08445.entry.js.map} +0 -0
  404. /package/dist/beeq/{p-5546f242.entry.js.map → p-85d7bc6c.entry.js.map} +0 -0
  405. /package/dist/beeq/{p-4500ffe5.entry.js.map → p-93a3bcb5.entry.js.map} +0 -0
  406. /package/dist/beeq/{p-e4dd6ff4.js.map → p-9ecdbeec.js.map} +0 -0
  407. /package/dist/beeq/{p-cf923c68.js.map → p-a035d288.js.map} +0 -0
  408. /package/dist/beeq/{p-b129db1a.entry.js.map → p-a0b2db0b.entry.js.map} +0 -0
  409. /package/dist/beeq/{p-f4e8ebd3.entry.js.map → p-a902a347.entry.js.map} +0 -0
  410. /package/dist/beeq/{p-b7b3f7c6.entry.js.map → p-b4ae4315.entry.js.map} +0 -0
  411. /package/dist/beeq/{p-e655938a.entry.js.map → p-d04883ab.entry.js.map} +0 -0
  412. /package/dist/beeq/{p-a8d64d1b.entry.js.map → p-d4676bbd.entry.js.map} +0 -0
  413. /package/dist/beeq/{p-8ed41b69.entry.js.map → p-e827f88d.entry.js.map} +0 -0
  414. /package/dist/beeq/{p-ed569a61.entry.js.map → p-f85f1705.entry.js.map} +0 -0
  415. /package/dist/components/{p-c58e0d87.js.map → p-1629a472.js.map} +0 -0
  416. /package/dist/components/{p-ac26ffcd.js.map → p-242345e1.js.map} +0 -0
  417. /package/dist/components/{p-6e0c7ab4.js.map → p-39d794c1.js.map} +0 -0
  418. /package/dist/components/{p-5b34bd04.js.map → p-51027528.js.map} +0 -0
  419. /package/dist/components/{p-8d8eeb62.js.map → p-afef286d.js.map} +0 -0
  420. /package/dist/components/{p-b50adb19.js.map → p-dfb2cbb5.js.map} +0 -0
  421. /package/dist/components/{p-9a115ee5.js.map → p-fd965589.js.map} +0 -0
@@ -10,14 +10,15 @@ import { vueOutputTarget as vue } from "@stencil/vue-output-target";
10
10
  import tailwind, { tailwindHMR } from "stencil-tailwind-plugin";
11
11
  import { angularValueAccessorBindings, generateCustomElementsJson, vueComponentModels } from "./src/tools";
12
12
  import tailwindConf from "../../tailwind.config";
13
+ const namespace = 'beeq';
14
+ const componentCorePackage = `@${namespace}/core`;
15
+ const customElementsDir = 'dist/components';
16
+ const resolvePath = (path) => resolve(__dirname, path).replace(/\\/g, '/');
13
17
  const tailwindOpts = {
14
- postcss: resolve(__dirname, '../../postcss.config.js').replace(/\\/g, '/'),
18
+ postcss: resolvePath('../../postcss.config.js'),
15
19
  tailwindConf: tailwindConf,
16
20
  stripComments: true,
17
21
  };
18
- const namespace = 'beeq';
19
- const componentCorePackage = `@${namespace}/core`;
20
- const customElementsDir = 'dist/components';
21
22
  export const config = {
22
23
  namespace,
23
24
  taskQueue: 'async',
@@ -26,14 +27,11 @@ export const config = {
26
27
  env: {
27
28
  BEEQ_ASSETS_BASE_PATH: process.env.BEEQ_ASSETS_BASE_PATH,
28
29
  },
29
- globalStyle: resolve(__dirname, './src/global/styles/default.scss').replace(/\\/g, '/'),
30
+ globalStyle: resolvePath('./src/global/styles/default.scss'),
30
31
  plugins: [
31
32
  sass({
32
- includePaths: [
33
- resolve(__dirname, '../../node_modules').replace(/\\/g, '/'),
34
- resolve(__dirname, 'src/global/styles').replace(/\\/g, '/'),
35
- ],
36
- injectGlobalPaths: [resolve(__dirname, 'src/global/styles/mixins/index.scss').replace(/\\/g, '/')],
33
+ includePaths: [resolvePath('../../node_modules'), resolvePath('src/global/styles')],
34
+ injectGlobalPaths: [resolvePath('src/global/styles/mixins/index.scss')],
37
35
  outputStyle: 'compressed',
38
36
  sourceMap: true,
39
37
  sourceMapEmbed: true,
@@ -73,34 +71,39 @@ export const config = {
73
71
  serviceWorker: null, // disable service workers
74
72
  },
75
73
  angular({
74
+ /* --------------------------- Angular output target -------------------------- */
76
75
  componentCorePackage,
77
76
  outputType: 'component', // Generate many component wrappers tied to a single Angular module (lazy/hydrated approach)
78
- directivesProxyFile: resolve(__dirname, '../beeq-angular/src/directives/components.ts').replace(/\\/g, '/'),
79
- directivesArrayFile: resolve(__dirname, '../beeq-angular/src/directives/index.ts').replace(/\\/g, '/'),
77
+ directivesProxyFile: resolvePath('../beeq-angular/src/directives/components.ts'),
78
+ directivesArrayFile: resolvePath('../beeq-angular/src/directives/index.ts'),
80
79
  valueAccessorConfigs: angularValueAccessorBindings,
81
80
  inlineProperties: true,
82
81
  customElementsDir,
83
82
  }),
84
83
  angular({
84
+ /* -------------------- Angular Standalone output target -------------------- */
85
85
  componentCorePackage,
86
86
  outputType: 'standalone', // Generate a component with the standalone flag set to true.
87
- directivesProxyFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/components.ts').replace(/\\/g, '/'),
88
- directivesArrayFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/index.ts').replace(/\\/g, '/'),
87
+ directivesProxyFile: resolvePath('../beeq-angular/standalone/src/directives/components.ts'),
88
+ directivesArrayFile: resolvePath('../beeq-angular/standalone/src/directives/index.ts'),
89
89
  valueAccessorConfigs: angularValueAccessorBindings,
90
90
  customElementsDir,
91
91
  }),
92
92
  react({
93
- outDir: resolve(__dirname, '../beeq-react/src/').replace(/\\/g, '/'),
93
+ /* --------------------------- React output target -------------------------- */
94
+ outDir: resolvePath('../beeq-react/src/'),
94
95
  customElementsDir,
95
96
  }),
96
97
  react({
97
- outDir: resolve(__dirname, '../beeq-react/ssr').replace(/\\/g, '/'),
98
+ /* ------------------------- React SSR output target ------------------------ */
99
+ outDir: resolvePath('../beeq-react/ssr'),
98
100
  hydrateModule: '@beeq/core/dist/hydrate',
99
101
  customElementsDir,
100
102
  }),
101
103
  vue({
104
+ /* ---------------------------- Vue output target --------------------------- */
102
105
  componentCorePackage,
103
- proxiesFile: resolve(__dirname, '../beeq-vue/src/components.ts').replace(/\\/g, '/'),
106
+ proxiesFile: resolvePath('../beeq-vue/src/components.ts'),
104
107
  includeImportCustomElements: true,
105
108
  includePolyfills: false,
106
109
  includeDefineCustomElements: false,
@@ -1 +1 @@
1
- {"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../../../stencil.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,E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uC;IAC1D,SAAS,EAAE;QACT,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,YAAY;KAC7B;CACF,CAAC","sourcesContent":["import { resolve } from 'path';\n\nimport { angularOutputTarget as angular } from '@stencil/angular-output-target';\nimport { Config } from '@stencil/core';\nimport { reactOutputTarget as react } from '@stencil/react-output-target';\nimport { sass } from '@stencil/sass';\nimport { vueOutputTarget as vue } from '@stencil/vue-output-target';\nimport tailwind, { PluginConfigOpts, tailwindHMR } from 'stencil-tailwind-plugin';\n\nimport { angularValueAccessorBindings, generateCustomElementsJson, vueComponentModels } from './src/tools';\nimport tailwindConf from '../../tailwind.config';\n\nconst tailwindOpts: PluginConfigOpts = {\n postcss: resolve(__dirname, '../../postcss.config.js').replace(/\\\\/g, '/'),\n tailwindConf: tailwindConf,\n stripComments: true,\n};\n\nconst namespace = 'beeq';\nconst componentCorePackage = `@${namespace}/core`;\nconst customElementsDir = 'dist/components';\n\nexport const config: Config = {\n namespace,\n taskQueue: 'async',\n buildDist: true,\n enableCache: true,\n env: {\n BEEQ_ASSETS_BASE_PATH: process.env.BEEQ_ASSETS_BASE_PATH,\n },\n globalStyle: resolve(__dirname, './src/global/styles/default.scss').replace(/\\\\/g, '/'),\n plugins: [\n sass({\n includePaths: [\n resolve(__dirname, '../../node_modules').replace(/\\\\/g, '/'),\n resolve(__dirname, 'src/global/styles').replace(/\\\\/g, '/'),\n ],\n injectGlobalPaths: [resolve(__dirname, 'src/global/styles/mixins/index.scss').replace(/\\\\/g, '/')],\n outputStyle: 'compressed',\n sourceMap: true,\n sourceMapEmbed: true,\n sourceMapContents: true,\n }),\n tailwind(tailwindOpts),\n tailwindHMR({ tailwindConf }),\n ],\n outputTargets: [\n { type: 'docs-readme' },\n /**\n * The output custom-elements.json file is used by Storybook to generate the documentation.\n * @see packages/beeq/.storybook/custom-elements.json\n */\n { type: 'docs-custom', generator: generateCustomElementsJson },\n {\n type: 'dist',\n copy: [\n { src: '../README.md', dest: '../../README.md', warn: true },\n { src: '../cem/*.*', dest: '../', warn: true },\n ],\n },\n { type: 'dist-hydrate-script', dir: 'dist/hydrate' },\n {\n type: 'dist-custom-elements',\n customElementsExportBehavior: 'single-export-module',\n externalRuntime: false,\n dir: customElementsDir,\n minify: true,\n },\n {\n type: 'www',\n copy: [\n { src: 'global/assets', dest: 'assets' },\n { src: 'global/scripts', dest: 'scripts' },\n ],\n serviceWorker: null, // disable service workers\n },\n angular({\n componentCorePackage,\n outputType: 'component', // Generate many component wrappers tied to a single Angular module (lazy/hydrated approach)\n directivesProxyFile: resolve(__dirname, '../beeq-angular/src/directives/components.ts').replace(/\\\\/g, '/'),\n directivesArrayFile: resolve(__dirname, '../beeq-angular/src/directives/index.ts').replace(/\\\\/g, '/'),\n valueAccessorConfigs: angularValueAccessorBindings,\n inlineProperties: true,\n customElementsDir,\n }),\n angular({\n componentCorePackage,\n outputType: 'standalone', // Generate a component with the standalone flag set to true.\n directivesProxyFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/components.ts').replace(\n /\\\\/g,\n '/',\n ),\n directivesArrayFile: resolve(__dirname, '../beeq-angular/standalone/src/directives/index.ts').replace(/\\\\/g, '/'),\n valueAccessorConfigs: angularValueAccessorBindings,\n customElementsDir,\n }),\n react({\n outDir: resolve(__dirname, '../beeq-react/src/').replace(/\\\\/g, '/'),\n customElementsDir,\n }),\n react({\n outDir: resolve(__dirname, '../beeq-react/ssr').replace(/\\\\/g, '/'),\n hydrateModule: '@beeq/core/dist/hydrate',\n customElementsDir,\n }),\n vue({\n componentCorePackage,\n proxiesFile: resolve(__dirname, '../beeq-vue/src/components.ts').replace(/\\\\/g, '/'),\n includeImportCustomElements: true,\n includePolyfills: false,\n includeDefineCustomElements: false,\n componentModels: vueComponentModels,\n // hydrateModule: '@beeq/core/dist/hydrate',\n customElementsDir,\n }),\n ],\n extras: {\n /**\n * Details:\n * https://stenciljs.com/docs/config-extras\n */\n enableImportInjection: true,\n experimentalScopedSlotChanges: true,\n experimentalSlotFixes: true,\n },\n testing: {\n browserHeadless: 'shell',\n },\n preamble: 'Built by Endavans\\n© https://beeq.design - Apache 2 License.',\n watchIgnoredRegex: /(custom-elements\\.)((d\\.ts)|(json))$/g,\n devServer: {\n openBrowser: false,\n port: 8001,\n reloadStrategy: 'pageReload',\n },\n};\n"]}
1
+ {"version":3,"file":"stencil.config.js","sourceRoot":"","sources":["../../../stencil.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,eAAe,IAAI,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,QAAQ,EAAE,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAElF,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC3G,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAEjD,MAAM,SAAS,GAAG,MAAM,CAAC;AACzB,MAAM,oBAAoB,GAAG,IAAI,SAAS,OAAO,CAAC;AAClD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAC5C,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAEnF,MAAM,YAAY,GAAqB;IACrC,OAAO,EAAE,WAAW,CAAC,yBAAyB,CAAC;IAC/C,YAAY,EAAE,YAAY;IAC1B,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAW;IAC5B,SAAS;IACT,SAAS,EAAE,OAAO;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EAAE,8DAA8D;IACxE,iBAAiB,EAAE,uCAAuC;IAC1D,SAAS,EAAE;QACT,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,YAAY;KAC7B;CACF,CAAC","sourcesContent":["import { resolve } from 'path';\n\nimport { angularOutputTarget as angular } from '@stencil/angular-output-target';\nimport { Config } from '@stencil/core';\nimport { reactOutputTarget as react } from '@stencil/react-output-target';\nimport { sass } from '@stencil/sass';\nimport { vueOutputTarget as vue } from '@stencil/vue-output-target';\nimport tailwind, { PluginConfigOpts, tailwindHMR } from 'stencil-tailwind-plugin';\n\nimport { angularValueAccessorBindings, generateCustomElementsJson, vueComponentModels } from './src/tools';\nimport tailwindConf from '../../tailwind.config';\n\nconst namespace = 'beeq';\nconst componentCorePackage = `@${namespace}/core`;\nconst customElementsDir = 'dist/components';\nconst resolvePath = (path: string) => resolve(__dirname, path).replace(/\\\\/g, '/');\n\nconst tailwindOpts: PluginConfigOpts = {\n postcss: resolvePath('../../postcss.config.js'),\n tailwindConf: tailwindConf,\n stripComments: true,\n};\n\nexport const config: Config = {\n namespace,\n taskQueue: 'async',\n buildDist: true,\n enableCache: true,\n env: {\n BEEQ_ASSETS_BASE_PATH: process.env.BEEQ_ASSETS_BASE_PATH,\n },\n globalStyle: resolvePath('./src/global/styles/default.scss'),\n plugins: [\n sass({\n includePaths: [resolvePath('../../node_modules'), resolvePath('src/global/styles')],\n injectGlobalPaths: [resolvePath('src/global/styles/mixins/index.scss')],\n outputStyle: 'compressed',\n sourceMap: true,\n sourceMapEmbed: true,\n sourceMapContents: true,\n }),\n tailwind(tailwindOpts),\n tailwindHMR({ tailwindConf }),\n ],\n outputTargets: [\n { type: 'docs-readme' },\n /**\n * The output custom-elements.json file is used by Storybook to generate the documentation.\n * @see packages/beeq/.storybook/custom-elements.json\n */\n { type: 'docs-custom', generator: generateCustomElementsJson },\n {\n type: 'dist',\n copy: [\n { src: '../README.md', dest: '../../README.md', warn: true },\n { src: '../cem/*.*', dest: '../', warn: true },\n ],\n },\n { type: 'dist-hydrate-script', dir: 'dist/hydrate' },\n {\n type: 'dist-custom-elements',\n customElementsExportBehavior: 'single-export-module',\n externalRuntime: false,\n dir: customElementsDir,\n minify: true,\n },\n {\n type: 'www',\n copy: [\n { src: 'global/assets', dest: 'assets' },\n { src: 'global/scripts', dest: 'scripts' },\n ],\n serviceWorker: null, // disable service workers\n },\n angular({\n /* --------------------------- Angular output target -------------------------- */\n componentCorePackage,\n outputType: 'component', // Generate many component wrappers tied to a single Angular module (lazy/hydrated approach)\n directivesProxyFile: resolvePath('../beeq-angular/src/directives/components.ts'),\n directivesArrayFile: resolvePath('../beeq-angular/src/directives/index.ts'),\n valueAccessorConfigs: angularValueAccessorBindings,\n inlineProperties: true,\n customElementsDir,\n }),\n angular({\n /* -------------------- Angular Standalone output target -------------------- */\n componentCorePackage,\n outputType: 'standalone', // Generate a component with the standalone flag set to true.\n directivesProxyFile: resolvePath('../beeq-angular/standalone/src/directives/components.ts'),\n directivesArrayFile: resolvePath('../beeq-angular/standalone/src/directives/index.ts'),\n valueAccessorConfigs: angularValueAccessorBindings,\n customElementsDir,\n }),\n react({\n /* --------------------------- React output target -------------------------- */\n outDir: resolvePath('../beeq-react/src/'),\n customElementsDir,\n }),\n react({\n /* ------------------------- React SSR output target ------------------------ */\n outDir: resolvePath('../beeq-react/ssr'),\n hydrateModule: '@beeq/core/dist/hydrate',\n customElementsDir,\n }),\n vue({\n /* ---------------------------- Vue output target --------------------------- */\n componentCorePackage,\n proxiesFile: resolvePath('../beeq-vue/src/components.ts'),\n includeImportCustomElements: true,\n includePolyfills: false,\n includeDefineCustomElements: false,\n componentModels: vueComponentModels,\n // hydrateModule: '@beeq/core/dist/hydrate',\n customElementsDir,\n }),\n ],\n extras: {\n /**\n * Details:\n * https://stenciljs.com/docs/config-extras\n */\n enableImportInjection: true,\n experimentalScopedSlotChanges: true,\n experimentalSlotFixes: true,\n },\n testing: {\n browserHeadless: 'shell',\n },\n preamble: 'Built by Endavans\\n© https://beeq.design - Apache 2 License.',\n watchIgnoredRegex: /(custom-elements\\.)((d\\.ts)|(json))$/g,\n devServer: {\n openBrowser: false,\n port: 8001,\n reloadStrategy: 'pageReload',\n },\n};\n"]}
@@ -145,8 +145,7 @@ export declare class BqAccordion {
145
145
  private handleClick;
146
146
  private handleFocus;
147
147
  private handleBlur;
148
- private handlePrefixSlotChange;
149
- private handleSuffixSlotChange;
148
+ private handleSlotChange;
150
149
  private get open();
151
150
  private get isCssInterpolateSizeSupported();
152
151
  render(): any;
@@ -129,8 +129,7 @@ export declare class BqAlert {
129
129
  private handleHide;
130
130
  private handleShow;
131
131
  private handleTransitionEnd;
132
- private handleContentSlotChange;
133
- private handleFooterSlotChange;
132
+ private handleSlotChange;
134
133
  private get iconName();
135
134
  render(): any;
136
135
  }
@@ -44,8 +44,9 @@ export declare class BqBadge {
44
44
  size?: TBadgeSize;
45
45
  handleSizePropChange(): void;
46
46
  componentWillLoad(): void;
47
+ componentDidLoad(): void;
47
48
  disconnectedCallback(): void;
48
- private onSlotChange;
49
+ private handleSlotChange;
49
50
  private get slot();
50
51
  render(): any;
51
52
  }
@@ -28,6 +28,7 @@ export declare class BqBreadcrumb {
28
28
  el: HTMLBqBreadcrumbElement;
29
29
  /** The `aria-label` attribute to describe the type of navigation */
30
30
  label: string;
31
+ componentDidLoad(): void;
31
32
  private handleSlotChange;
32
33
  private getSeparatorElem;
33
34
  private get separatorFromSlot();
@@ -104,6 +104,7 @@ export declare class BqButton {
104
104
  /** Handler to be called when button gets focus */
105
105
  bqClick: EventEmitter<HTMLBqButtonElement>;
106
106
  componentWillLoad(): void;
107
+ componentDidLoad(): void;
107
108
  private handleBlur;
108
109
  private handleFocus;
109
110
  private handleClick;
@@ -135,6 +135,7 @@ export declare class BqDatePicker {
135
135
  private readonly BUTTON_EXPORT_PARTS;
136
136
  internals: ElementInternals;
137
137
  el: HTMLBqDatePickerElement;
138
+ isCallyLoaded: boolean;
138
139
  focusedDate: string;
139
140
  displayDate: string;
140
141
  hasLabel: boolean;
@@ -236,7 +237,7 @@ export declare class BqDatePicker {
236
237
  /** Callback handler emitted when the input has received focus */
237
238
  bqFocus: EventEmitter<HTMLBqDatePickerElement>;
238
239
  connectedCallback(): Promise<void>;
239
- componentWillLoad(): void;
240
+ componentDidLoad(): Promise<void>;
240
241
  formAssociatedCallback(): void;
241
242
  formResetCallback(): void;
242
243
  handleOpenChange(ev: CustomEvent<{
@@ -258,9 +259,7 @@ export declare class BqDatePicker {
258
259
  private handleCalendarRangeStart;
259
260
  private handleCalendarRangeEnd;
260
261
  private handleClearClick;
261
- private handleLabelSlotChange;
262
- private handlePrefixSlotChange;
263
- private handleSuffixSlotChange;
262
+ private handleSlotChange;
264
263
  private generateCalendarMonth;
265
264
  /**
266
265
  * Generates an array of Elements representing the calendar months.
@@ -1,3 +1,19 @@
1
1
  export type DaysOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
2
2
  export declare const DATE_PICKER_TYPE: readonly ["single", "multi", "range"];
3
3
  export type TDatePickerType = (typeof DATE_PICKER_TYPE)[number];
4
+ export type TCalendarDate = {
5
+ focusedDate: string;
6
+ value: string;
7
+ min?: string;
8
+ max?: string;
9
+ months?: number;
10
+ tentative?: string;
11
+ pageBy?: 'single' | 'months';
12
+ firstDayOfWeek?: number;
13
+ showOutsideDays?: boolean;
14
+ isDateDisallowed?: (date: Date) => boolean;
15
+ locale?: string;
16
+ onChange?: (ev: Event) => void;
17
+ onRangestart?: (ev: CustomEvent) => void;
18
+ onRangeend?: (ev: CustomEvent) => void;
19
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Checks if the Cally library is already loaded in the document
3
+ * @returns {boolean} True if the library is loaded
4
+ */
5
+ export declare const isCallyLibraryLoaded: () => boolean;
6
+ /**
7
+ * Loads the Cally library for the date picker component
8
+ * @throws {Error} If the library fails to load
9
+ * @return {Promise<void>}
10
+ */
11
+ export declare const loadCallyLibrary: () => Promise<void>;
@@ -128,7 +128,6 @@ export declare class BqDialog {
128
128
  private handleClose;
129
129
  private handleOpen;
130
130
  private handleTransitionEnd;
131
- private handleContentSlotChange;
132
- private handleFooterSlotChange;
131
+ private handleSlotChange;
133
132
  render(): any;
134
133
  }
@@ -96,6 +96,7 @@ export declare class BqDrawer {
96
96
  /** Callback handler to be called after the drawer has been closed */
97
97
  bqAfterClose: EventEmitter;
98
98
  componentWillLoad(): void;
99
+ componentDidLoad(): void;
99
100
  handleMouseClick(event: MouseEvent): Promise<void>;
100
101
  handleKeyDown(event: KeyboardEvent): Promise<void>;
101
102
  /** Method to be called to hide the drawer component */
@@ -35,8 +35,8 @@ export declare class BqEmptyState {
35
35
  size: TEmptyStateSize;
36
36
  checkPropValues(): void;
37
37
  componentWillLoad(): void;
38
- private handleContentSlotChange;
39
- private handleFooterSlotChange;
38
+ componentDidLoad(): void;
39
+ private handleSlotChange;
40
40
  private get iconSize();
41
41
  render(): any;
42
42
  }
@@ -216,6 +216,7 @@ export declare class BqInput {
216
216
  el: HTMLBqInputElement;
217
217
  }>;
218
218
  componentWillLoad(): void;
219
+ componentDidLoad(): void;
219
220
  formAssociatedCallback(): void;
220
221
  formResetCallback(): void;
221
222
  private handleBlur;
@@ -226,9 +227,6 @@ export declare class BqInput {
226
227
  private handleClearClick;
227
228
  private setFormValue;
228
229
  private updateFormValidity;
229
- private handleLabelSlotChange;
230
- private handlePrefixSlotChange;
231
- private handleSuffixSlotChange;
232
- private handleHelperTextSlotChange;
230
+ private handleSlotChange;
233
231
  render(): any;
234
232
  }
@@ -107,6 +107,7 @@ export declare class BqNotification {
107
107
  bqAfterClose: EventEmitter;
108
108
  connectedCallback(): void;
109
109
  componentWillLoad(): void;
110
+ componentDidLoad(): void;
110
111
  afterNotificationClose(): void;
111
112
  /** Method to be called to hide the notification component */
112
113
  hide(): Promise<void>;
@@ -117,8 +118,7 @@ export declare class BqNotification {
117
118
  private handleHide;
118
119
  private handleShow;
119
120
  private handleTransitionEnd;
120
- private handleContentSlotChange;
121
- private handleFooterSlotChange;
121
+ private handleSlotChange;
122
122
  private get iconName();
123
123
  render(): any;
124
124
  }
@@ -67,12 +67,12 @@ export declare class BqOption {
67
67
  bqClick: EventEmitter<HTMLBqOptionElement>;
68
68
  /** Handler to be called on enter key press */
69
69
  bqEnter: EventEmitter<HTMLBqOptionElement>;
70
+ componentDidLoad(): void;
70
71
  onKeyDown(event: KeyboardEvent): void;
71
72
  private onBlur;
72
73
  private onFocus;
73
74
  private onClick;
74
- private onSlotChange;
75
- private handleSuffixSlotChange;
75
+ private handleSlotChange;
76
76
  private get isDisabledOrHidden();
77
77
  render(): any;
78
78
  }
@@ -52,6 +52,7 @@ export declare class BqPageTitle {
52
52
  private haveBackNavigation;
53
53
  private hasSuffix;
54
54
  private hasSubTitle;
55
+ componentDidLoad(): void;
55
56
  private handleSlotChange;
56
57
  render(): any;
57
58
  }
@@ -219,10 +219,7 @@ export declare class BqSelect {
219
219
  private handleSearchFilter;
220
220
  private handleClearClick;
221
221
  private handleTagRemove;
222
- private handleLabelSlotChange;
223
- private handlePrefixSlotChange;
224
- private handleSuffixSlotChange;
225
- private handleHelperTextSlotChange;
222
+ private handleSlotChange;
226
223
  private resetOptionsVisibility;
227
224
  private syncItemsFromValue;
228
225
  /**
@@ -79,6 +79,7 @@ export declare class BqTab {
79
79
  /** Handler to be called when the tab key is pressed */
80
80
  bqKeyDown: EventEmitter<KeyboardEvent>;
81
81
  componentWillLoad(): void;
82
+ componentDidLoad(): void;
82
83
  /**
83
84
  * Simulate a click event on the native `<button>` HTML element used under the hood.
84
85
  * Use this method instead of the global `element.click()`.
@@ -89,6 +89,7 @@ export declare class BqTag {
89
89
  /** Handler to be called when tag is focused */
90
90
  bqFocus: EventEmitter<HTMLBqTagElement>;
91
91
  componentWillLoad(): void;
92
+ componentDidLoad(): void;
92
93
  /** Method to be called to remove the tag component */
93
94
  hide(): Promise<void>;
94
95
  /** Method to be called to show the tag component */
@@ -185,8 +185,7 @@ export declare class BqTextarea {
185
185
  private handleChange;
186
186
  private handleInput;
187
187
  private autoResize;
188
- private handleLabelSlotChange;
189
- private handleHelperTextSlotChange;
188
+ private handleSlotChange;
190
189
  private setFormValue;
191
190
  private updateFormValidity;
192
191
  private clearSelection;
@@ -1,24 +1,14 @@
1
1
  import type { JSXBase } from './stencil-public-runtime';
2
- import type { CalendarDateProps, CalendarMonthProps, CalendarMultiProps, CalendarRangeProps } from 'cally';
3
2
 
4
3
  /* eslint-disable @typescript-eslint/ban-ts-comment */
5
4
  // @ts-ignore: this imported file declaration is generated by the build process
6
5
  // eslint-disable-next-line import-x/no-unresolved
7
6
  import type { CustomElements } from '../cem/beeq';
8
7
 
9
- type EventName<T> = T extends `on${infer Rest}` ? `on${Capitalize<Lowercase<Rest>>}` : T;
10
- type MapEvents<T> = {
11
- [K in keyof T as EventName<K>]: T[K];
12
- };
13
-
14
8
  declare module '@stencil/core' {
15
9
  // eslint-disable-next-line @typescript-eslint/no-namespace
16
10
  export namespace JSX {
17
11
  interface IntrinsicElements extends CustomElements {
18
- 'calendar-multi': CalendarMultiProps & JSXBase.HTMLAttributes<CalendarMultiProps>;
19
- 'calendar-range': MapEvents<CalendarRangeProps> & JSXBase.HTMLAttributes<CalendarDateProps>;
20
- 'calendar-date': CalendarDateProps & JSXBase.HTMLAttributes<CalendarDateProps>;
21
- 'calendar-month': CalendarMonthProps & JSXBase.HTMLAttributes<CalendarMonthProps>;
22
12
  // Extend the global slot HTML element to include the id and class attributes
23
13
  slot: JSXBase.SlotAttributes & { id?: string; class?: string };
24
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeq/core",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "BEEQ, a Design System components ruled by Endavan developers :)",
6
6
  "main": "./dist/index.cjs.js",
@@ -15,8 +15,7 @@
15
15
  "dependencies": {
16
16
  "@floating-ui/core": "^1.6.9",
17
17
  "@floating-ui/dom": "^1.6.13",
18
- "@stencil/core": "^4.25.1",
19
- "cally": "^0.7.2"
18
+ "@stencil/core": "^4.25.1"
20
19
  },
21
20
  "repository": {
22
21
  "type": "git",
@@ -1 +0,0 @@
1
- {"version":3,"names":["ALERT_TYPE","bqAlertCss","BqAlertStyle0","BqAlert","autoDismissDebounce","bodyElem","footerElem","alertElement","hasContent","hasFooter","autoDismiss","border","disableClose","hideIcon","open","time","type","sticky","handleTimeout","this","cancel","debounce","hide","handleOpenChange","handleHide","handleShow","checkPropValues","validatePropValue","el","bqHide","bqShow","bqAfterShow","bqAfterHide","componentWillLoad","componentDidLoad","classList","add","show","async","ev","emit","defaultPrevented","leave","handleTransitionEnd","remove","enter","handleContentSlotChange","hasSlotContent","handleFooterSlotChange","iconName","error","success","warning","render","style","h","Host","key","class","hidden","role","ref","div","part","appearance","size","onClick","bind","name","exportparts","onSlotchange"],"sources":["../../packages/beeq/src/components/alert/bq-alert.types.ts","../../packages/beeq/src/components/alert/scss/bq-alert.scss?tag=bq-alert&encapsulation=shadow","../../packages/beeq/src/components/alert/bq-alert.tsx"],"sourcesContent":["export const ALERT_TYPE = ['info', 'success', 'warning', 'error', 'default'] as const;\nexport type TAlertType = (typeof ALERT_TYPE)[number];\n\nexport const ALERT_BORDER_RADIUS = ['none', 'xs2', 'xs', 's', 'm', 'l', 'full'] as const;\nexport type TAlertBorderRadius = (typeof ALERT_BORDER_RADIUS)[number];\n","/* -------------------------------------------------------------------------- */\n/* Alert styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-alert.variables';\n\n:host {\n @apply block;\n}\n\n:host(.is-hidden) {\n @apply hidden;\n}\n\n:host(.is-sticky) {\n @apply fixed inset-0 z-[var(--bq-alert--z-index)] is-full inset-bs-0;\n\n .bq-alert {\n @apply items-center justify-center rounded-none;\n }\n}\n\n.bq-alert {\n @apply relative flex transition-all min-is-[--bq-alert--min-width] p-b-[--bq-alert--padding] p-i-[--bq-alert--padding];\n @apply rounded-[var(--bq-alert--border-radius)] border-[length:--bq-alert--border-width];\n\n border-style: var(--bq-alert--border-style);\n}\n\n/**\n * Set the alert background and border color based on the type value selected\n */\n\n.bq-alert__default {\n @apply border-[color:--bq-alert--border-default] bg-[color:--bq-alert--background-default];\n}\n\n.bq-alert__error {\n @apply border-[color:--bq-alert--border-error] bg-[color:--bq-alert--background-error];\n}\n\n.bq-alert__info {\n @apply border-[color:--bq-alert--border-info] bg-[color:--bq-alert--background-info];\n}\n\n.bq-alert__success {\n @apply border-[color:--bq-alert--border-success] bg-[color:--bq-alert--background-success];\n}\n\n.bq-alert__warning {\n @apply border-[color:--bq-alert--border-warning] bg-[color:--bq-alert--background-warning];\n}\n\n/**\n * Set the alert icon color based on the type value selected\n */\n.bq-alert__icon {\n &--default {\n @apply text-[color:--bq-alert--icon-color-default];\n }\n\n &--error {\n @apply text-[color:--bq-alert--icon-color-error];\n }\n\n &--info {\n @apply text-[color:--bq-alert--icon-color-info];\n }\n\n &--success {\n @apply text-[color:--bq-alert--icon-color-success];\n }\n\n &--warning {\n @apply text-[color:--bq-alert--icon-color-warning];\n }\n}\n\n/**\n * Tweak the close bq-button styles so it remain small without extra padding\n */\n.bq-alert__close::part(button) {\n @apply rounded-s border-0 bs-fit p-b-0 p-i-0;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\n\nimport { ALERT_TYPE, TAlertBorderRadius, TAlertType } from './bq-alert.types';\nimport { debounce, enter, hasSlotContent, leave, TDebounce, validatePropValue } from '../../shared/utils';\n\n/**\n * The Alert is a user interface component used to convey important information to the user in a clear and concise manner.\n * It can be used to notify users of success, failure, warning, or any other type of information that needs to be brought to their attention.\n *\n * @example How to use it\n * ```html\n * <bq-alert>\n * <bq-icon name=\"star\" slot=\"icon\"></bq-icon>\n * Title\n * <span slot=\"body\">\n * Description\n * <a class=\"bq-link\" href=\"https://example.com\">Link</a>\n * </span>\n * <div slot=\"footer\">\n * <bq-button appearance=\"primary\" size=\"small\">Button</bq-button>\n * <bq-button appearance=\"link\" size=\"small\">Button</bq-button>\n * </div>\n * </bq-alert>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/848a50-alert\n * @status stable\n *\n * @dependency bq-button\n * @dependency bq-icon\n *\n * @attr {boolean} [auto-dismiss=false] - If true, the alert will automatically hide after the specified amount of time\n * @attr {\"none\" | \"xs2\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"full\"} [border='s'] - The corner radius of the alert component\n * @attr {boolean} [disable-close=false] - If true, the close button at the top right of the alert won't be shown\n * @attr {boolean} [hide-icon=false] - If true, the alert icon won't be shown\n * @attr {boolean} [open=false] - If true, the alert will be shown\n * @attr {number} [time=3000] - The length of time, in milliseconds, after which the alert will close itself. Only valid if `autoDismiss=\"true\"`\n * @attr {\"info\" | \"success\" | \"warning\" | \"error\" | \"default\"} [type='default'] - Type of Alert\n * @attr {boolean} [sticky=false] - If true, the alert component will remain fixed at the top of the page, occupying the full viewport\n *\n * @event bqHide - Callback handler to be called when the alert is hidden\n * @event bqShow - Callback handler to be called when the alert is shown\n * @event bqAfterShow - Callback handler to be called after the alert has been shown\n * @event bqAfterHide - Callback handler to be called after the alert has been hidden\n *\n * @slot - The alert title content (no slot name required)\n * @slot body - The alert description content\n * @slot footer - The alert footer content\n * @slot icon - The predefined icon based on the alert type (info, success, warning, error, default)\n * @slot btn-close - The close button of the alert\n *\n * @part base - The `<div>` container of the predefined bq-icon component\n * @part body - The container `<div>` that wraps the alert description content\n * @part btn-close - The `bq-button` used to close the alert\n * @part content - The container `<div>` that wraps all the alert content (title, description, footer)\n * @part footer - The container `<div>` that wraps the alert footer content\n * @part icon - The `<bq-icon>` element used to render a predefined icon based on the alert type (info, success, warning, error, default)\n * @part icon-outline - The container `<div>` that wraps the icon element\n * @part main - The container `<div>` that wraps the alert main content (title, description)\n * @part svg - The `<svg>` element of the predefined bq-icon component\n * @part title - The container `<div>` that wraps the alert title content\n * @part wrapper - The wrapper container `<div>` of the element inside the shadow DOM\n *\n * @cssprop --bq-alert--background - The alert background color\n * @cssprop --bq-alert--border-radius - The alert border radius\n * @cssprop --bq-alert--content-footer-gap - The alert content and footer gap\n * @cssprop --bq-alert--title-body-gap - The alert title and body gap\n *\n * @cssprop --bq-alert--border-color - The alert border color\n * @cssprop --bq-alert--border-style - The alert border style\n * @cssprop --bq-alert--border-width - The alert border width\n *\n * @cssprop --bq-alert--background-info - The alert background color for info type\n * @cssprop --bq-alert--background-success - The alert background color for success type\n * @cssprop --bq-alert--background-warning - The alert background color for warning type\n * @cssprop --bq-alert--background-error - The alert background color for error type\n *\n * @cssprop --bq-alert--border-info - The alert border color for info type\n * @cssprop --bq-alert--border-success - The alert border color for success type\n * @cssprop --bq-alert--border-warning - The alert border color for warning type\n * @cssprop --bq-alert--border-error - The alert border color for error type\n *\n * @cssprop --bq-alert--icon-color-info - The alert icon color for info type\n * @cssprop --bq-alert--icon-color-success - The alert icon color for success type\n * @cssprop --bq-alert--icon-color-warning - The alert icon color for warning type\n * @cssprop --bq-alert--icon-color-error - The alert icon color for error type\n *\n * @cssprop --bq-alert--padding - The alert padding\n * @cssprop --bq-alert--min-width - The alert min width\n */\n@Component({\n tag: 'bq-alert',\n styleUrl: './scss/bq-alert.scss',\n shadow: true,\n})\nexport class BqAlert {\n // Own Properties\n // ====================\n\n private autoDismissDebounce: TDebounce<void>;\n private bodyElem: HTMLDivElement;\n private footerElem: HTMLDivElement;\n private alertElement: HTMLDivElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqAlertElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasContent = false;\n @State() private hasFooter = false;\n\n // Public Property API\n // ========================\n\n /** If true, the alert will automatically hide after the specified amount of time */\n @Prop({ reflect: true }) autoDismiss: boolean;\n\n /** The corner radius of the alert component */\n @Prop({ reflect: true }) border: TAlertBorderRadius = 's';\n\n /** If true, the close button at the top right of the alert won't be shown */\n @Prop({ reflect: true }) disableClose: boolean;\n\n /** If true, the alert icon won't be shown */\n @Prop({ reflect: true }) hideIcon: boolean;\n\n /** If true, the alert will be shown */\n @Prop({ reflect: true, mutable: true }) open: boolean;\n\n /** The length of time, in milliseconds, after which the alert will close itself. Only valid if `autoDismiss=\"true\"` */\n @Prop({ reflect: true }) time: number = 3000;\n\n /** Type of Alert */\n @Prop({ reflect: true }) type: TAlertType = 'default';\n\n /** If true, the alert component will remain fixed at the top of the page, occupying the full viewport */\n @Prop({ reflect: true }) sticky: boolean;\n\n // Prop lifecycle events\n // =======================\n @Watch('autoDismiss')\n @Watch('time')\n handleTimeout() {\n this.autoDismissDebounce?.cancel();\n if (!this.autoDismiss) return;\n\n this.autoDismissDebounce = debounce(() => {\n this.hide();\n }, this.time);\n // Make sure to autodismiss the notification if the `auto-dismiss` value changed while open\n if (this.open) this.autoDismissDebounce();\n }\n\n @Watch('open')\n handleOpenChange() {\n this.autoDismissDebounce?.cancel();\n\n if (!this.open) {\n this.handleHide();\n return;\n }\n\n this.handleShow();\n\n if (this.autoDismiss) {\n this.autoDismissDebounce();\n }\n }\n\n @Watch('type')\n checkPropValues() {\n validatePropValue(ALERT_TYPE, 'info', this.el, 'type');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the alert is hidden */\n @Event() bqHide!: EventEmitter;\n\n /** Callback handler to be called when the alert is shown */\n @Event() bqShow!: EventEmitter;\n\n /** Callback handler to be called after the alert has been shown */\n @Event() bqAfterShow!: EventEmitter;\n\n /** Callback handler to be called after the alert has been hidden */\n @Event() bqAfterHide!: EventEmitter;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkPropValues();\n this.handleTimeout();\n }\n\n componentDidLoad() {\n if (!this.open) {\n this.el.classList.add('is-hidden');\n }\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /** Method to be called to hide the alert component */\n @Method()\n async hide(): Promise<void> {\n this.open = false;\n }\n\n /** Method to be called to show the alert component */\n @Method()\n async show(): Promise<void> {\n this.open = true;\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleHide = async () => {\n const ev = this.bqHide.emit(this.el);\n if (!ev.defaultPrevented) {\n await leave(this.alertElement);\n this.el.classList.add('is-hidden');\n this.handleTransitionEnd();\n }\n };\n\n private handleShow = async () => {\n const ev = this.bqShow.emit(this.el);\n if (!ev.defaultPrevented) {\n this.el.classList.remove('is-hidden');\n await enter(this.alertElement);\n this.handleTransitionEnd();\n }\n };\n\n private handleTransitionEnd = () => {\n if (this.open) {\n this.bqAfterShow.emit();\n return;\n }\n\n this.bqAfterHide.emit();\n };\n\n private handleContentSlotChange = () => {\n this.hasContent = hasSlotContent(this.bodyElem, 'body');\n };\n\n private handleFooterSlotChange = () => {\n this.hasFooter = hasSlotContent(this.footerElem, 'footer');\n };\n\n private get iconName(): string {\n const iconName = {\n error: 'x-circle',\n success: 'check-circle',\n warning: 'warning-circle',\n };\n\n return iconName[this.type] || 'info';\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const style = {\n ...(this.border && { '--bq-alert--border-radius': `var(--bq-radius--${this.border})` }),\n };\n\n return (\n <Host\n style={style}\n class={{ 'is-sticky': this.sticky }}\n aria-hidden={!this.open ? 'true' : 'false'}\n hidden={!this.open ? 'true' : 'false'}\n role=\"alert\"\n >\n <div\n class={{\n [`bq-alert bq-alert__${this.type}`]: true,\n 'is-sticky': this.sticky,\n }}\n data-transition-enter=\"transition ease-out duration-300\"\n data-transition-enter-start=\"opacity-0\"\n data-transition-enter-end=\"opacity-100\"\n data-transition-leave=\"transition ease-in duration-200\"\n data-transition-leave-start=\"opacity-100\"\n data-transition-leave-end=\"opacity-0\"\n ref={(div) => (this.alertElement = div)}\n part=\"wrapper\"\n >\n {/* CLOSE BUTTON */}\n {!this.disableClose && (\n <bq-button\n class=\"bq-alert__close absolute end-5 focus-visible:focus [&::part(label)]:inline-flex\"\n appearance=\"text\"\n size=\"small\"\n onClick={this.hide.bind(this)}\n part=\"btn-close\"\n >\n <slot name=\"btn-close\">\n <bq-icon name=\"x\" />\n </slot>\n </bq-button>\n )}\n {/* ICON */}\n <div\n class={{\n [`bq-alert__icon--${this.type} me-s flex text-left align-top`]: true,\n '!hidden': this.hideIcon,\n }}\n part=\"icon-outline\"\n >\n <slot name=\"icon\">\n {this.type !== 'default' && <bq-icon name={this.iconName} part=\"icon\" exportparts=\"base,svg\" />}\n </slot>\n </div>\n {/* MAIN */}\n <div class=\"flex flex-col items-start gap-[--bq-alert--content-footer-gap]\" part=\"main\">\n <div class=\"flex flex-col gap-[--bq-alert--title-body-gap]\" part=\"content\">\n {/* TITLE */}\n <div\n class={{\n 'title-font font-semibold leading-regular text-primary': true,\n 'flex items-center': this.sticky,\n }}\n part=\"title\"\n >\n <slot />\n </div>\n {/* BODY */}\n <div\n class={{ 'text-s leading-regular': true, '!hidden': !this.hasContent }}\n ref={(div) => (this.bodyElem = div)}\n part=\"body\"\n >\n <slot name=\"body\" onSlotchange={this.handleContentSlotChange} />\n </div>\n </div>\n {/* FOOTER */}\n <div\n class={{ 'flex items-start gap-xs': true, '!hidden': !this.hasFooter }}\n ref={(div) => (this.footerElem = div)}\n part=\"footer\"\n >\n <slot name=\"footer\" onSlotchange={this.handleFooterSlotChange} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":";;;;0OAAO,MAAMA,EAAa,CAAC,OAAQ,UAAW,UAAW,QAAS,WCAlE,MAAMC,EAAa,6zzBACnB,MAAAC,EAAeD,E,MC8FFE,EAAO,M,yKAIVC,oBACAC,SACAC,WACAC,a,wBAWSC,WAAa,MACbC,UAAY,MAMJC,YAGAC,OAA6B,IAG7BC,aAGAC,SAGeC,KAGfC,KAAe,IAGfC,KAAmB,UAGnBC,OAMzB,aAAAC,GACEC,KAAKf,qBAAqBgB,SAC1B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OAAAE,IAAA,2CACEC,MAAO,CAAE,yBAA0B,KAAM,WAAYvC,KAAKX,YAC1DqD,IAAMC,GAAS3C,KAAKd,SAAWyD,EAC/BC,KAAK,QAELR,EAAA,QAAAE,IAAA,2CAAMW,KAAK,OAAOE,aAAcnD,KAAK2B,4BAIzCS,EAAA,OAAAE,IAAA,2CACEC,MAAO,CAAE,0BAA2B,KAAM,WAAYvC,KAAKV,WAC3DoD,IAAMC,GAAS3C,KAAKb,WAAawD,EACjCC,KAAK,UAELR,EAAA,QAAAE,IAAA,2CAAMW,KAAK,SAASE,aAAcnD,KAAK6B,4B","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["DRAWER_POSITIONS","DRAWER_PLACEMENT","bqDrawerCss","BqDrawerStyle0","BqDrawer","footerElem","drawerElem","OPEN_CSS_CLASS","hasFooter","hasIcon","enableBackdrop","closeOnClickOutside","closeOnEsc","open","placement","position","handleOpenChange","this","handleAfterHide","handleAfterShow","handlePlacementChange","isNil","console","warn","validatePropValue","el","synPositionMap","right","left","handlePositionChange","syncPlacementMap","end","start","bqClose","bqOpen","bqAfterOpen","bqAfterClose","componentWillLoad","handleMouseClick","event","button","rect","getBoundingClientRect","clientX","hide","handleKeyDown","key","ev","emit","defaultPrevented","show","handleFooterSlotChange","hasSlotContent","async","leave","handleTransitionEnd","classList","add","enter","remove","isPositionStart","isPositionEnd","render","h","Host","class","tabIndex","part","ref","div","hidden","role","id","name","appearance","size","slot","exportparts","onClick","bind","title","block","dashed","onSlotchange"],"sources":["../../packages/beeq/src/components/drawer/bq-drawer.types.ts","../../packages/beeq/src/components/drawer/scss/bq-drawer.scss?tag=bq-drawer&encapsulation=shadow","../../packages/beeq/src/components/drawer/bq-drawer.tsx"],"sourcesContent":["export const DRAWER_POSITIONS = ['start', 'end'] as const;\nexport type TDrawerPosition = (typeof DRAWER_POSITIONS)[number];\n// !TO BE REMOVED: `placement` is deprecated and it will be removed in the future\nexport const DRAWER_PLACEMENT = ['left', 'right'] as const;\nexport type TDrawerPlacement = (typeof DRAWER_PLACEMENT)[number];\n","/* -------------------------------------------------------------------------- */\n/* Drawer styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-drawer.variables';\n\n:host {\n @apply invisible #{!important};\n}\n\n:host(.bq-drawer--open) {\n @apply visible #{!important};\n}\n\n.bq-drawer {\n @apply fixed z-[--bq-drawer--zIndex] flex flex-col gap-[--bq-drawer--gap] bg-primary shadow-m is-[--bq-drawer--width] max-is-full p-b-[--bq-drawer--paddingY] p-i-[--bq-drawer--paddingX] inset-b-0;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';\n\nimport { DRAWER_PLACEMENT, DRAWER_POSITIONS, TDrawerPlacement, TDrawerPosition } from './bq-drawer.types';\nimport { enter, hasSlotContent, isNil, leave, validatePropValue } from '../../shared/utils';\n\n/**\n * The Drawer component provides a sliding panel interface commonly used for navigation or presenting additional content without taking up significant screen space.\n *\n * @example How to use it\n * ```html\n * <bq-drawer position=\"end\">\n * <div class=\"flex gap-xs\" slot=\"title\">Title</div>\n * <div class=\"...\">\n * Content\n * </div>\n * <div class=\"flex flex-1 justify-center gap-xs\" slot=\"footer\">\n * <bq-button appearance=\"primary\" block=\"\" size=\"small\">Button</bq-button>\n * <bq-button appearance=\"link\" block=\"\" size=\"small\">Button</bq-button>\n * </div>\n * </bq-drawer>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/871139-drawer\n * @status stable\n *\n * @dependency bq-button\n * @dependency bq-icon\n * @dependency bq-divider\n *\n * @attr {boolean} enable-backdrop - If true, the backdrop overlay will be shown when the drawer opens.\n * @attr {boolean} close-on-click-outside - If true, the drawer will not close when clicking outside the panel.\n * @attr {boolean} close-on-esc - If true, the drawer will not close when the [Esc] key is pressed.\n * @attr {boolean} open - If true, the drawer component will be shown.\n * @attr {\"start\" | \"end\"} position - Defines the position of the drawer.\n *\n * @method show - Method to be called to show the drawer component.\n * @method hide - Method to be called to hide the drawer component.\n *\n * @event bqClose - Callback handler to be called when the drawer is closed.\n * @event bqOpen - Callback handler to be called when the drawer is opened.\n * @event bqAfterOpen - Callback handler to be called after the drawer has been opened.\n * @event bqAfterClose - Callback handler to be called after the drawer has been closed.\n *\n * @slot title - The title content of the drawer.\n * @slot - The body content of the drawer.\n * @slot footer - The footer content of the drawer.\n * @slot button-close - The close button content of the drawer.\n * @slot footer-divider - The footer divider content of the drawer.\n *\n * @part backdrop - The `<div>` that holds the backdrop overlay.\n * @part button-close - The BqButton that closes the drawer.\n * @part button-close__btn - The native button used under the hood that closes the drawer.\n * @part button-close__label - The text inside the native button that closes the drawer.\n * @part panel - The `<div>` that holds the drawer entire content.\n * @part header - The `<header>` that holds the icon, title, and close button.\n * @part title - The `<div>` that holds the title content.\n * @part body - The `<main>` that holds the drawer body content.\n * @part footer - The `<footer>` that holds footer content.\n *\n * @cssprop --bq-drawer--backgroundBackdrop - Background color of the backdrop\n * @cssprop --bq-drawer--gap - Gap between the drawer and the viewport\n * @cssprop --bq-drawer--width - Width of the drawer\n * @cssprop --bq-drawer--paddingX - Padding left and right of the drawer\n * @cssprop --bq-drawer--paddingY - Padding top and bottom of the drawer\n * @cssprop --bq-drawer--zIndex - Z-index of the drawer component\n */\n@Component({\n tag: 'bq-drawer',\n styleUrl: './scss/bq-drawer.scss',\n shadow: true,\n})\nexport class BqDrawer {\n // Own Properties\n // ====================\n\n private footerElem: HTMLElement;\n private drawerElem: HTMLDivElement;\n private OPEN_CSS_CLASS = 'bq-drawer--open';\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqDrawerElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasFooter = false;\n @State() hasIcon: boolean = false;\n\n // Public Property API\n // ========================\n\n /** If true, the backdrop overlay will be shown when the drawer opens */\n @Prop({ reflect: true }) enableBackdrop = false;\n\n /** If true, the drawer will not close when clicking outside the panel */\n @Prop({ reflect: true }) closeOnClickOutside = false;\n\n /** If true, the dialog will not close when the [Esc] key is pressed */\n @Prop({ reflect: true }) closeOnEsc = false;\n\n /** If true, the drawer component will be shown */\n @Prop({ reflect: true, mutable: true }) open: boolean;\n\n /** @deprecated Defines the position of the drawer */\n @Prop({ reflect: true, mutable: true }) placement: TDrawerPlacement = 'right';\n\n /** Defines the position of the drawer */\n @Prop({ reflect: true, mutable: true }) position: TDrawerPosition = 'end';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('open')\n async handleOpenChange() {\n if (!this.open) {\n await this.handleAfterHide();\n return;\n }\n\n await this.handleAfterShow();\n }\n\n /**\n * !TO BE REMOVED: Delete this `@Watch()` once the deprecated `placement` property is removed\n * We need to maintain retro-compatibility with the deprecated `placement` property\n */\n @Watch('placement')\n handlePlacementChange() {\n if (!isNil(this.placement)) {\n console.warn(\n `❗️ [bq-drawer]: the 'placement' prop is deprecated and it will be removed in the future. Please use 'position' instead.`,\n );\n }\n validatePropValue(DRAWER_PLACEMENT, 'right', this.el, 'placement');\n // Sync 'position' property\n const synPositionMap = {\n right: 'end',\n left: 'start',\n };\n this.position = (synPositionMap[this.placement] as TDrawerPosition) || this.position;\n }\n\n @Watch('position')\n handlePositionChange() {\n validatePropValue(DRAWER_POSITIONS, 'start', this.el, 'position');\n /**\n * Sync 'placement' property\n * !TO BE REMOVED: Delete the code below once the deprecated `placement` property is removed\n */\n const syncPlacementMap = {\n end: 'right',\n start: 'left',\n };\n this.placement = (syncPlacementMap[this.position] as TDrawerPlacement) || this.placement;\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the drawer is closed */\n @Event() bqClose!: EventEmitter;\n\n /** Callback handler to be called when the drawer is opened */\n @Event() bqOpen!: EventEmitter;\n\n /** Callback handler to be called after the drawer has been opened */\n @Event() bqAfterOpen!: EventEmitter;\n\n /** Callback handler to be called after the drawer has been closed */\n @Event() bqAfterClose!: EventEmitter;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.handlePositionChange();\n // !TO BE REMOVED: Delete this once the deprecated `placement` property is removed\n this.handlePlacementChange();\n }\n\n // Listeners\n // ==============\n\n @Listen('mousedown', { target: 'window', capture: true })\n async handleMouseClick(event: MouseEvent) {\n if (!this.open) return;\n if (!this.drawerElem || this.closeOnClickOutside) return;\n // Skip if the mouse button is not the main button\n if (event.button !== 0) return;\n\n const rect = this.drawerElem.getBoundingClientRect();\n if (event.clientX < rect.left || event.clientX > rect.right) {\n await this.hide();\n }\n }\n\n @Listen('keydown', { target: 'window', capture: true })\n async handleKeyDown(event: KeyboardEvent) {\n if (!this.open) return;\n if (!this.drawerElem || this.closeOnEsc || !(event.key === 'Escape' || event.key === 'Esc')) return;\n\n await this.hide();\n }\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /** Method to be called to hide the drawer component */\n @Method()\n async hide(): Promise<void> {\n const ev = this.bqClose.emit();\n if (ev.defaultPrevented) return;\n\n this.open = false;\n }\n\n /** Method to be called to show the drawer component */\n @Method()\n async show(): Promise<void> {\n const ev = this.bqOpen.emit();\n if (ev.defaultPrevented) return;\n\n this.open = true;\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleFooterSlotChange = () => {\n this.hasFooter = hasSlotContent(this.footerElem, 'footer');\n };\n\n private handleAfterHide = async () => {\n if (!this.drawerElem) return;\n\n await leave(this.drawerElem);\n this.handleTransitionEnd();\n };\n\n private handleAfterShow = async () => {\n if (!this.drawerElem) return;\n\n this.el.classList.add(this.OPEN_CSS_CLASS);\n await enter(this.drawerElem);\n this.handleTransitionEnd();\n };\n\n private handleTransitionEnd = () => {\n if (this.open) {\n this.bqAfterOpen.emit();\n return;\n }\n\n this.bqAfterClose.emit();\n this.el.classList.remove(this.OPEN_CSS_CLASS);\n };\n\n private get isPositionStart() {\n // !TO BE REMOVED: `placement` is deprecated and will be removed in the future\n return this.position === 'start' || this.placement === 'left';\n }\n\n private get isPositionEnd() {\n // !TO BE REMOVED: `placement` is deprecated and will be removed in the future\n return this.position === 'end' || this.placement === 'right';\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <Host>\n {/* BACKDROP */}\n {this.enableBackdrop && (\n <div\n class={{\n 'fixed inset-0 block bg-[--bq-drawer--backgroundBackdrop] opacity-0 transition-opacity duration-300':\n true,\n 'pointer-events-none': !this.open,\n 'opacity-60': this.open,\n }}\n tabIndex={-1}\n part=\"backdrop\"\n />\n )}\n {/* DRAWER PANEL */}\n <div\n class={{\n [`bq-drawer transition-all duration-300 ease-in-out ${this.position || this.placement}`]: true,\n '-start-[--bq-drawer--width]': this.isPositionStart,\n '-end-[--bq-drawer--width]': this.isPositionEnd,\n 'start-0': this.open && this.isPositionStart,\n 'end-0': this.open && this.isPositionEnd,\n }}\n ref={(div) => (this.drawerElem = div)}\n aria-hidden={!this.open ? 'true' : 'false'}\n aria-labelledby=\"bq-drawer__title\"\n aria-modal=\"true\"\n hidden={!this.open}\n part=\"panel\"\n role=\"dialog\"\n >\n <header class=\"flex items-center\" part=\"header\">\n <h2\n class=\"flex-1 items-center justify-between font-bold leading-regular text-primary\"\n id=\"bq-drawer__title\"\n part=\"title\"\n >\n <slot name=\"title\" />\n </h2>\n <div class=\"flex\" part=\"button-close\">\n <bq-button\n class=\"[&::part(button)]:rounded-s [&::part(button)]:border-0 [&::part(button)]:bs-fit [&::part(button)]:p-b-0 [&::part(button)]:p-i-0 [&::part(label)]:inline-flex\"\n appearance=\"text\"\n size=\"small\"\n slot=\"button-close\"\n exportparts=\"button:button-close__btn,label:button-close__label\"\n onClick={this.hide.bind(this)}\n >\n <slot name=\"button-close\">\n <bq-icon name=\"x-bold\" role=\"img\" title=\"Close\" />\n </slot>\n </bq-button>\n </div>\n </header>\n <main class=\"block flex-auto overflow-auto\" part=\"body\">\n <slot />\n </main>\n <footer\n class={{\n block: true,\n '!hidden': !this.hasFooter,\n }}\n ref={(footerElem) => (this.footerElem = footerElem)}\n part=\"footer\"\n >\n <slot name=\"footer-divider\">\n <bq-divider class=\"mb-m block\" dashed />\n </slot>\n <slot name=\"footer\" onSlotchange={this.handleFooterSlotChange} />\n </footer>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":";;;;uNAAO,MAAMA,EAAmB,CAAC,QAAS,OAGnC,MAAMC,EAAmB,CAAC,OAAQ,SCHzC,MAAMC,EAAc,iqtBACpB,MAAAC,EAAeD,E,MCsEFE,EAAQ,M,6KAIXC,WACAC,WACAC,eAAiB,kB,wBAWRC,UAAY,MACpBC,QAAmB,MAMHC,eAAiB,MAGjBC,oBAAsB,MAGtBC,WAAa,MAGEC,KAGAC,UAA8B,QAG9BC,SAA4B,MAMpE,sBAAMC,GACJ,IAAKC,KAAKJ,KAAM,OACRI,KAAKC,kBACX,M,OAGID,KAAKE,iB,CAQb,qBAAAC,GACE,IAAKC,EAAMJ,KAAKH,WAAY,CAC1BQ,QAAQC,KACN,0H,CAGJC,EAAkBvB,EAAkB,QAASgB,KAAKQ,GAAI,aAEtD,MAAMC,EAAiB,CACrBC,MAAO,MACPC,KAAM,SAERX,KAAKF,SAAYW,EAAeT,KAAKH,YAAkCG,KAAKF,Q,CAI9E,oBAAAc,GACEL,EAAkBxB,EAAkB,QAASiB,KAAKQ,GAAI,YAKtD,MAAMK,EAAmB,CACvBC,IAAK,QACLC,MAAO,QAETf,KAAKH,UAAagB,EAAiBb,KAAKF,WAAkCE,KAAKH,S,CAQxEmB,QAGAC,OAGAC,YAGAC,aAMT,iBAAAC,GACEpB,KAAKY,uBAELZ,KAAKG,uB,CAOP,sBAAMkB,CAAiBC,GACrB,IAAKtB,KAAKJ,KAAM,OAChB,IAAKI,KAAKX,YAAcW,KAAKN,oBAAqB,OAElD,GAAI4B,EAAMC,SAAW,EAAG,OAExB,MAAMC,EAAOxB,KAAKX,WAAWoC,wBAC7B,GAAIH,EAAMI,QAAUF,EAAKb,M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