@beeq/core 1.8.3-beta.1 → 1.8.4-beta.0

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 (420) 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-959c3d05.entry.js → p-01b3d2a5.entry.js} +2 -2
  5. package/dist/beeq/p-01b3d2a5.entry.js.map +1 -0
  6. package/dist/beeq/{p-e655938a.entry.js → p-0ac37ff8.entry.js} +2 -2
  7. package/dist/beeq/{p-803269b3.entry.js → p-1a8f376a.entry.js} +2 -2
  8. package/dist/beeq/{p-a941b0bb.entry.js → p-22188233.entry.js} +2 -2
  9. package/dist/beeq/p-22188233.entry.js.map +1 -0
  10. package/dist/beeq/{p-3806d9e3.entry.js → p-24135e46.entry.js} +2 -2
  11. package/dist/beeq/{p-90165aef.entry.js → p-260877e5.entry.js} +2 -2
  12. package/dist/beeq/{p-90165aef.entry.js.map → p-260877e5.entry.js.map} +1 -1
  13. package/dist/beeq/{p-d7ce7165.js → p-260d4ca0.js} +2 -2
  14. package/dist/beeq/{p-d7ce7165.js.map → p-260d4ca0.js.map} +1 -1
  15. package/dist/beeq/{p-dafa4162.entry.js → p-28adda86.entry.js} +2 -2
  16. package/dist/beeq/{p-dafa4162.entry.js.map → p-28adda86.entry.js.map} +1 -1
  17. package/dist/beeq/{p-e4dd6ff4.js → p-2b530ad4.js} +2 -2
  18. package/dist/beeq/{p-cb9fa154.entry.js → p-2f9fc4d4.entry.js} +2 -2
  19. package/dist/beeq/p-2f9fc4d4.entry.js.map +1 -0
  20. package/dist/beeq/{p-b067c558.entry.js → p-34f25f24.entry.js} +2 -2
  21. package/dist/beeq/p-34f25f24.entry.js.map +1 -0
  22. package/dist/beeq/{p-c42f9ac5.entry.js → p-38ee4c02.entry.js} +2 -2
  23. package/dist/beeq/{p-b7b3f7c6.entry.js → p-3f5865c0.entry.js} +2 -2
  24. package/dist/beeq/{p-9a7af424.entry.js → p-45bfda93.entry.js} +2 -2
  25. package/dist/beeq/p-4a5c07f9.js +7 -0
  26. package/dist/beeq/p-4a5c07f9.js.map +1 -0
  27. package/dist/beeq/{p-a4e11bbc.entry.js → p-4ddb6bdb.entry.js} +2 -2
  28. package/dist/beeq/p-4ddb6bdb.entry.js.map +1 -0
  29. package/dist/beeq/{p-19f5a833.entry.js → p-6195e6e5.entry.js} +2 -2
  30. package/dist/beeq/p-6195e6e5.entry.js.map +1 -0
  31. package/dist/beeq/{p-a8075be3.entry.js → p-63b4f8f9.entry.js} +2 -2
  32. package/dist/beeq/{p-4d21a49d.entry.js → p-648da701.entry.js} +2 -2
  33. package/dist/beeq/{p-3fe626f1.entry.js → p-6764f11f.entry.js} +2 -2
  34. package/dist/beeq/p-6764f11f.entry.js.map +1 -0
  35. package/dist/beeq/{p-b69f347d.entry.js → p-7478cf0a.entry.js} +2 -2
  36. package/dist/beeq/p-7478cf0a.entry.js.map +1 -0
  37. package/dist/beeq/{p-a8d64d1b.entry.js → p-7bb8664c.entry.js} +2 -2
  38. package/dist/beeq/{p-7585f825.entry.js → p-7ff775a3.entry.js} +2 -2
  39. package/dist/beeq/{p-5546f242.entry.js → p-801f7b25.entry.js} +2 -2
  40. package/dist/beeq/p-852225bc.js +6 -0
  41. package/dist/beeq/{p-ba1f9637.entry.js → p-8b63d8fc.entry.js} +2 -2
  42. package/dist/beeq/p-8b63d8fc.entry.js.map +1 -0
  43. package/dist/beeq/{p-e8f147c2.entry.js → p-8c011151.entry.js} +2 -2
  44. package/dist/beeq/p-8c011151.entry.js.map +1 -0
  45. package/dist/beeq/{p-70310ac8.entry.js → p-8d9f797d.entry.js} +2 -2
  46. package/dist/beeq/p-8d9f797d.entry.js.map +1 -0
  47. package/dist/beeq/{p-7efff703.entry.js → p-9a803ecf.entry.js} +2 -2
  48. package/dist/beeq/{p-b129db1a.entry.js → p-9eea4f4f.entry.js} +2 -2
  49. package/dist/beeq/{p-ed569a61.entry.js → p-a3c36d6c.entry.js} +2 -2
  50. package/dist/beeq/{p-bbaad491.entry.js → p-a620392e.entry.js} +2 -2
  51. package/dist/beeq/{p-66b6d69a.entry.js → p-a661454e.entry.js} +2 -2
  52. package/dist/beeq/{p-4500ffe5.entry.js → p-a7c4f022.entry.js} +2 -2
  53. package/dist/beeq/p-abda6f6c.entry.js +6 -0
  54. package/dist/beeq/p-abda6f6c.entry.js.map +1 -0
  55. package/dist/beeq/{p-65d67b85.entry.js → p-abf83b5c.entry.js} +2 -2
  56. package/dist/beeq/p-abf83b5c.entry.js.map +1 -0
  57. package/dist/beeq/{p-39a80765.entry.js → p-b044c5f6.entry.js} +2 -2
  58. package/dist/beeq/p-b044c5f6.entry.js.map +1 -0
  59. package/dist/beeq/{p-3f654a12.entry.js → p-b1ab6b7f.entry.js} +2 -2
  60. package/dist/beeq/{p-dbac0368.entry.js → p-b89dcf37.entry.js} +2 -2
  61. package/dist/beeq/p-b89dcf37.entry.js.map +1 -0
  62. package/dist/beeq/{p-f4e8ebd3.entry.js → p-ba8b92f1.entry.js} +2 -2
  63. package/dist/beeq/{p-8ed41b69.entry.js → p-bc1980d8.entry.js} +2 -2
  64. package/dist/beeq/{p-59a1b546.entry.js → p-c63ee3df.entry.js} +2 -2
  65. package/dist/beeq/p-c63ee3df.entry.js.map +1 -0
  66. package/dist/beeq/{p-ee1ecb6e.entry.js → p-f48c3ca7.entry.js} +2 -2
  67. package/dist/beeq.html-custom-data.json +311 -311
  68. package/dist/cjs/{assetsPath-32c4030b.js → assetsPath-95e7f5ab.js} +2 -2
  69. package/dist/cjs/{assetsPath-32c4030b.js.map → assetsPath-95e7f5ab.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 +9 -10
  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-d734f710.js} +13 -11
  130. package/dist/cjs/index-d734f710.js.map +1 -0
  131. package/dist/cjs/index.cjs.js +4 -4
  132. package/dist/cjs/{isDefined-5e8aae9d.js → isDefined-642f676a.js} +2 -2
  133. package/dist/cjs/{isDefined-5e8aae9d.js.map → isDefined-642f676a.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/alert/scss/bq-alert.css +1 -1
  143. package/dist/collection/components/badge/bq-badge.js +6 -3
  144. package/dist/collection/components/badge/bq-badge.js.map +1 -1
  145. package/dist/collection/components/breadcrumb/bq-breadcrumb.js +4 -1
  146. package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
  147. package/dist/collection/components/button/bq-button.js +5 -2
  148. package/dist/collection/components/button/bq-button.js.map +1 -1
  149. package/dist/collection/components/date-picker/bq-date-picker.js +27 -14
  150. package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
  151. package/dist/collection/components/date-picker/bq-date-picker.types.js.map +1 -1
  152. package/dist/collection/components/date-picker/helper/callyLibrary.js +73 -0
  153. package/dist/collection/components/date-picker/helper/callyLibrary.js.map +1 -0
  154. package/dist/collection/components/dialog/bq-dialog.js +6 -7
  155. package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
  156. package/dist/collection/components/drawer/bq-drawer.js +7 -4
  157. package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
  158. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  159. package/dist/collection/components/empty-state/bq-empty-state.js +8 -7
  160. package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
  161. package/dist/collection/components/input/bq-input.js +8 -11
  162. package/dist/collection/components/input/bq-input.js.map +1 -1
  163. package/dist/collection/components/notification/bq-notification.js +6 -5
  164. package/dist/collection/components/notification/bq-notification.js.map +1 -1
  165. package/dist/collection/components/option/bq-option.js +8 -7
  166. package/dist/collection/components/option/bq-option.js.map +1 -1
  167. package/dist/collection/components/page-title/bq-page-title.js +5 -2
  168. package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
  169. package/dist/collection/components/select/bq-select.js +6 -11
  170. package/dist/collection/components/select/bq-select.js.map +1 -1
  171. package/dist/collection/components/select/scss/bq-select.css +1 -1
  172. package/dist/collection/components/spinner/bq-spinner.js +6 -4
  173. package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
  174. package/dist/collection/components/tab/bq-tab.js +5 -2
  175. package/dist/collection/components/tab/bq-tab.js.map +1 -1
  176. package/dist/collection/components/tag/bq-tag.js +6 -3
  177. package/dist/collection/components/tag/bq-tag.js.map +1 -1
  178. package/dist/collection/components/textarea/bq-textarea.js +5 -6
  179. package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
  180. package/dist/collection/shared/utils/slot.js +2 -0
  181. package/dist/collection/shared/utils/slot.js.map +1 -1
  182. package/dist/components/bq-accordion-group.js +1 -1
  183. package/dist/components/bq-accordion.js +1 -1
  184. package/dist/components/bq-accordion.js.map +1 -1
  185. package/dist/components/bq-alert.js +1 -1
  186. package/dist/components/bq-alert.js.map +1 -1
  187. package/dist/components/bq-avatar.js +1 -1
  188. package/dist/components/bq-badge.js +1 -1
  189. package/dist/components/bq-breadcrumb-item.js +1 -1
  190. package/dist/components/bq-breadcrumb.js +1 -1
  191. package/dist/components/bq-breadcrumb.js.map +1 -1
  192. package/dist/components/bq-button.js +1 -1
  193. package/dist/components/bq-card.js +1 -1
  194. package/dist/components/bq-checkbox.js +1 -1
  195. package/dist/components/bq-date-picker.js +1 -1
  196. package/dist/components/bq-date-picker.js.map +1 -1
  197. package/dist/components/bq-dialog.js +1 -1
  198. package/dist/components/bq-dialog.js.map +1 -1
  199. package/dist/components/bq-divider.js +1 -1
  200. package/dist/components/bq-drawer.js +1 -1
  201. package/dist/components/bq-drawer.js.map +1 -1
  202. package/dist/components/bq-dropdown.js +1 -1
  203. package/dist/components/bq-empty-state.js +1 -1
  204. package/dist/components/bq-empty-state.js.map +1 -1
  205. package/dist/components/bq-icon.js +1 -1
  206. package/dist/components/bq-input.js +1 -1
  207. package/dist/components/bq-input.js.map +1 -1
  208. package/dist/components/bq-notification.js +1 -1
  209. package/dist/components/bq-notification.js.map +1 -1
  210. package/dist/components/bq-option-group.js +1 -1
  211. package/dist/components/bq-option-list.js +1 -1
  212. package/dist/components/bq-option.js +1 -1
  213. package/dist/components/bq-option.js.map +1 -1
  214. package/dist/components/bq-page-title.js +1 -1
  215. package/dist/components/bq-page-title.js.map +1 -1
  216. package/dist/components/bq-panel.js +1 -1
  217. package/dist/components/bq-progress.js +1 -1
  218. package/dist/components/bq-radio-group.js +1 -1
  219. package/dist/components/bq-radio.js +1 -1
  220. package/dist/components/bq-select.js +1 -1
  221. package/dist/components/bq-select.js.map +1 -1
  222. package/dist/components/bq-side-menu-item.js +1 -1
  223. package/dist/components/bq-side-menu.js +1 -1
  224. package/dist/components/bq-slider.js +1 -1
  225. package/dist/components/bq-spinner.js +1 -1
  226. package/dist/components/bq-spinner.js.map +1 -1
  227. package/dist/components/bq-status.js +1 -1
  228. package/dist/components/bq-step-item.js +1 -1
  229. package/dist/components/bq-steps.js +1 -1
  230. package/dist/components/bq-switch.js +1 -1
  231. package/dist/components/bq-tab-group.js +1 -1
  232. package/dist/components/bq-tab.js +1 -1
  233. package/dist/components/bq-tab.js.map +1 -1
  234. package/dist/components/bq-tag.js +1 -1
  235. package/dist/components/bq-textarea.js +1 -1
  236. package/dist/components/bq-textarea.js.map +1 -1
  237. package/dist/components/bq-toast.js +1 -1
  238. package/dist/components/bq-tooltip.js +1 -1
  239. package/dist/components/index.js +1 -1
  240. package/dist/components/{p-d7ce7165.js → p-260d4ca0.js} +2 -2
  241. package/dist/components/{p-d7ce7165.js.map → p-260d4ca0.js.map} +1 -1
  242. package/dist/components/{p-9a115ee5.js → p-263a1cc6.js} +2 -2
  243. package/dist/components/{p-5b34bd04.js → p-33faef06.js} +2 -2
  244. package/dist/components/p-46f7e0e3.js +6 -0
  245. package/dist/components/p-46f7e0e3.js.map +1 -0
  246. package/dist/components/{p-ac26ffcd.js → p-5c61f1f5.js} +2 -2
  247. package/dist/components/p-6078fd87.js +6 -0
  248. package/dist/components/{p-8d8eeb62.js → p-6478d24c.js} +2 -2
  249. package/dist/components/{p-f5588ccd.js → p-6c1e486c.js} +2 -2
  250. package/dist/components/p-6c1e486c.js.map +1 -0
  251. package/dist/components/{p-a02c6b73.js → p-71751caa.js} +2 -2
  252. package/dist/components/p-71751caa.js.map +1 -0
  253. package/dist/components/{p-b50adb19.js → p-8d04a487.js} +2 -2
  254. package/dist/components/p-a731ba87.js +6 -0
  255. package/dist/components/p-a731ba87.js.map +1 -0
  256. package/dist/components/{p-c58e0d87.js → p-f7c2d883.js} +2 -2
  257. package/dist/custom-elements.json +5881 -5948
  258. package/dist/esm/{assetsPath-57848212.js → assetsPath-060da522.js} +2 -2
  259. package/dist/esm/{assetsPath-57848212.js.map → assetsPath-060da522.js.map} +1 -1
  260. package/dist/esm/beeq.js +4 -4
  261. package/dist/esm/beeq.js.map +1 -1
  262. package/dist/esm/bq-accordion-group.entry.js +1 -1
  263. package/dist/esm/bq-accordion.entry.js +7 -8
  264. package/dist/esm/bq-accordion.entry.js.map +1 -1
  265. package/dist/esm/bq-alert.entry.js +9 -10
  266. package/dist/esm/bq-alert.entry.js.map +1 -1
  267. package/dist/esm/bq-avatar.entry.js +1 -1
  268. package/dist/esm/bq-badge.entry.js +8 -5
  269. package/dist/esm/bq-badge.entry.js.map +1 -1
  270. package/dist/esm/bq-breadcrumb-item.entry.js +2 -2
  271. package/dist/esm/bq-breadcrumb.entry.js +5 -2
  272. package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
  273. package/dist/esm/bq-button_2.entry.js +9 -6
  274. package/dist/esm/bq-button_2.entry.js.map +1 -1
  275. package/dist/esm/bq-card.entry.js +1 -1
  276. package/dist/esm/bq-checkbox.entry.js +1 -1
  277. package/dist/esm/bq-date-picker.entry.js +97 -17
  278. package/dist/esm/bq-date-picker.entry.js.map +1 -1
  279. package/dist/esm/bq-dialog.entry.js +8 -9
  280. package/dist/esm/bq-dialog.entry.js.map +1 -1
  281. package/dist/esm/bq-divider.entry.js +2 -2
  282. package/dist/esm/bq-drawer.entry.js +10 -7
  283. package/dist/esm/bq-drawer.entry.js.map +1 -1
  284. package/dist/esm/bq-dropdown_2.entry.js +1 -1
  285. package/dist/esm/bq-empty-state.entry.js +10 -9
  286. package/dist/esm/bq-empty-state.entry.js.map +1 -1
  287. package/dist/esm/bq-input.entry.js +11 -14
  288. package/dist/esm/bq-input.entry.js.map +1 -1
  289. package/dist/esm/bq-notification.entry.js +8 -7
  290. package/dist/esm/bq-notification.entry.js.map +1 -1
  291. package/dist/esm/bq-option-group.entry.js +1 -1
  292. package/dist/esm/bq-option-list_2.entry.js +8 -5
  293. package/dist/esm/bq-option-list_2.entry.js.map +1 -1
  294. package/dist/esm/bq-option.entry.js +10 -9
  295. package/dist/esm/bq-option.entry.js.map +1 -1
  296. package/dist/esm/bq-page-title.entry.js +7 -4
  297. package/dist/esm/bq-page-title.entry.js.map +1 -1
  298. package/dist/esm/bq-progress.entry.js +1 -1
  299. package/dist/esm/bq-radio-group.entry.js +1 -1
  300. package/dist/esm/bq-radio.entry.js +1 -1
  301. package/dist/esm/bq-select.entry.js +10 -15
  302. package/dist/esm/bq-select.entry.js.map +1 -1
  303. package/dist/esm/bq-side-menu-item.entry.js +2 -2
  304. package/dist/esm/bq-side-menu.entry.js +1 -1
  305. package/dist/esm/bq-slider.entry.js +1 -1
  306. package/dist/esm/bq-spinner.entry.js +8 -6
  307. package/dist/esm/bq-spinner.entry.js.map +1 -1
  308. package/dist/esm/bq-status.entry.js +1 -1
  309. package/dist/esm/bq-step-item.entry.js +1 -1
  310. package/dist/esm/bq-steps.entry.js +1 -1
  311. package/dist/esm/bq-switch.entry.js +2 -2
  312. package/dist/esm/bq-tab-group.entry.js +1 -1
  313. package/dist/esm/bq-tab.entry.js +7 -4
  314. package/dist/esm/bq-tab.entry.js.map +1 -1
  315. package/dist/esm/bq-textarea.entry.js +7 -8
  316. package/dist/esm/bq-textarea.entry.js.map +1 -1
  317. package/dist/esm/bq-toast.entry.js +1 -1
  318. package/dist/esm/bq-tooltip.entry.js +1 -1
  319. package/dist/esm/{index-59610291.js → index-46823bdb.js} +13 -11
  320. package/dist/esm/index-46823bdb.js.map +1 -0
  321. package/dist/esm/index.js +5 -5
  322. package/dist/esm/{isDefined-30b8b652.js → isDefined-8bdbf6b8.js} +2 -2
  323. package/dist/esm/{isDefined-30b8b652.js.map → isDefined-8bdbf6b8.js.map} +1 -1
  324. package/dist/esm/loader.js +3 -3
  325. package/dist/esm/{slot-58bfedb5.js → slot-be230a01.js} +3 -1
  326. package/dist/esm/slot-be230a01.js.map +1 -0
  327. package/dist/hydrate/index.js +227 -1284
  328. package/dist/hydrate/index.mjs +227 -1284
  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-19f5a833.entry.js.map +0 -1
  353. package/dist/beeq/p-34611c2f.js +0 -6
  354. package/dist/beeq/p-34611c2f.js.map +0 -1
  355. package/dist/beeq/p-39a80765.entry.js.map +0 -1
  356. package/dist/beeq/p-3fe626f1.entry.js.map +0 -1
  357. package/dist/beeq/p-4a3784e1.js +0 -7
  358. package/dist/beeq/p-4a3784e1.js.map +0 -1
  359. package/dist/beeq/p-59a1b546.entry.js.map +0 -1
  360. package/dist/beeq/p-65d67b85.entry.js.map +0 -1
  361. package/dist/beeq/p-6bea33f4.entry.js +0 -6
  362. package/dist/beeq/p-6bea33f4.entry.js.map +0 -1
  363. package/dist/beeq/p-70310ac8.entry.js.map +0 -1
  364. package/dist/beeq/p-959c3d05.entry.js.map +0 -1
  365. package/dist/beeq/p-a4e11bbc.entry.js.map +0 -1
  366. package/dist/beeq/p-a941b0bb.entry.js.map +0 -1
  367. package/dist/beeq/p-b067c558.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-e8f147c2.entry.js.map +0 -1
  374. package/dist/cjs/cally-1bde2e82.js +0 -1162
  375. package/dist/cjs/cally-1bde2e82.js.map +0 -1
  376. package/dist/cjs/index-0c8d249a.js.map +0 -1
  377. package/dist/cjs/slot-2fee189a.js.map +0 -1
  378. package/dist/components/p-34611c2f.js +0 -6
  379. package/dist/components/p-34611c2f.js.map +0 -1
  380. package/dist/components/p-37483f1c.js +0 -6
  381. package/dist/components/p-37483f1c.js.map +0 -1
  382. package/dist/components/p-6e0c7ab4.js +0 -6
  383. package/dist/components/p-a02c6b73.js.map +0 -1
  384. package/dist/components/p-d16482dc.js +0 -6
  385. package/dist/components/p-d16482dc.js.map +0 -1
  386. package/dist/components/p-f5588ccd.js.map +0 -1
  387. package/dist/esm/cally-49a83be1.js +0 -1157
  388. package/dist/esm/cally-49a83be1.js.map +0 -1
  389. package/dist/esm/index-59610291.js.map +0 -1
  390. package/dist/esm/slot-58bfedb5.js.map +0 -1
  391. /package/dist/beeq/{p-e655938a.entry.js.map → p-0ac37ff8.entry.js.map} +0 -0
  392. /package/dist/beeq/{p-803269b3.entry.js.map → p-1a8f376a.entry.js.map} +0 -0
  393. /package/dist/beeq/{p-3806d9e3.entry.js.map → p-24135e46.entry.js.map} +0 -0
  394. /package/dist/beeq/{p-e4dd6ff4.js.map → p-2b530ad4.js.map} +0 -0
  395. /package/dist/beeq/{p-c42f9ac5.entry.js.map → p-38ee4c02.entry.js.map} +0 -0
  396. /package/dist/beeq/{p-b7b3f7c6.entry.js.map → p-3f5865c0.entry.js.map} +0 -0
  397. /package/dist/beeq/{p-9a7af424.entry.js.map → p-45bfda93.entry.js.map} +0 -0
  398. /package/dist/beeq/{p-a8075be3.entry.js.map → p-63b4f8f9.entry.js.map} +0 -0
  399. /package/dist/beeq/{p-4d21a49d.entry.js.map → p-648da701.entry.js.map} +0 -0
  400. /package/dist/beeq/{p-a8d64d1b.entry.js.map → p-7bb8664c.entry.js.map} +0 -0
  401. /package/dist/beeq/{p-7585f825.entry.js.map → p-7ff775a3.entry.js.map} +0 -0
  402. /package/dist/beeq/{p-5546f242.entry.js.map → p-801f7b25.entry.js.map} +0 -0
  403. /package/dist/beeq/{p-cf923c68.js.map → p-852225bc.js.map} +0 -0
  404. /package/dist/beeq/{p-7efff703.entry.js.map → p-9a803ecf.entry.js.map} +0 -0
  405. /package/dist/beeq/{p-b129db1a.entry.js.map → p-9eea4f4f.entry.js.map} +0 -0
  406. /package/dist/beeq/{p-ed569a61.entry.js.map → p-a3c36d6c.entry.js.map} +0 -0
  407. /package/dist/beeq/{p-bbaad491.entry.js.map → p-a620392e.entry.js.map} +0 -0
  408. /package/dist/beeq/{p-66b6d69a.entry.js.map → p-a661454e.entry.js.map} +0 -0
  409. /package/dist/beeq/{p-4500ffe5.entry.js.map → p-a7c4f022.entry.js.map} +0 -0
  410. /package/dist/beeq/{p-3f654a12.entry.js.map → p-b1ab6b7f.entry.js.map} +0 -0
  411. /package/dist/beeq/{p-f4e8ebd3.entry.js.map → p-ba8b92f1.entry.js.map} +0 -0
  412. /package/dist/beeq/{p-8ed41b69.entry.js.map → p-bc1980d8.entry.js.map} +0 -0
  413. /package/dist/beeq/{p-ee1ecb6e.entry.js.map → p-f48c3ca7.entry.js.map} +0 -0
  414. /package/dist/components/{p-9a115ee5.js.map → p-263a1cc6.js.map} +0 -0
  415. /package/dist/components/{p-5b34bd04.js.map → p-33faef06.js.map} +0 -0
  416. /package/dist/components/{p-ac26ffcd.js.map → p-5c61f1f5.js.map} +0 -0
  417. /package/dist/components/{p-6e0c7ab4.js.map → p-6078fd87.js.map} +0 -0
  418. /package/dist/components/{p-8d8eeb62.js.map → p-6478d24c.js.map} +0 -0
  419. /package/dist/components/{p-b50adb19.js.map → p-8d04a487.js.map} +0 -0
  420. /package/dist/components/{p-c58e0d87.js.map → p-f7c2d883.js.map} +0 -0
@@ -1,1162 +0,0 @@
1
- /*!
2
- * Built by Endavans
3
- * © https://beeq.design - Apache 2 License.
4
- */
5
- 'use strict';
6
-
7
- class te {
8
- /**
9
- * @type {T}
10
- */
11
- #t;
12
- #e = /* @__PURE__ */ new Set();
13
- /**
14
- * @param {T} current
15
- */
16
- constructor(t) {
17
- this.#t = t;
18
- }
19
- /**
20
- * @return {T}
21
- */
22
- get current() {
23
- return this.#t;
24
- }
25
- /**
26
- * @param {T} value
27
- */
28
- set current(t) {
29
- this.#t != t && (this.#t = t, this.#e.forEach((n) => n(t)));
30
- }
31
- /**
32
- * @type {import("hooks").Ref["on"]}
33
- */
34
- on(t) {
35
- return this.#e.add(t), () => this.#e.delete(t);
36
- }
37
- }
38
- const Mt = (e) => new te(e), tt = Symbol.for("atomico.hooks");
39
- globalThis[tt] = globalThis[tt] || {};
40
- let k = globalThis[tt];
41
- const ee = Symbol.for("Atomico.suspense"), At = Symbol.for("Atomico.effect"), ne = Symbol.for("Atomico.layoutEffect"), Ft = Symbol.for("Atomico.insertionEffect"), O = (e, t, n) => {
42
- const { i: s, hooks: r } = k.c, o = r[s] = r[s] || {};
43
- return o.value = e(o.value), o.effect = t, o.tag = n, k.c.i++, r[s].value;
44
- }, se = (e) => O((t = Mt(e)) => t), _ = () => O((e = Mt(k.c.host)) => e), Rt = () => k.c.update, oe = (e, t, n = 0) => {
45
- let s = {}, r = !1;
46
- const o = () => r, c = (i, f) => {
47
- for (const d in s) {
48
- const l = s[d];
49
- l.effect && l.tag === i && (l.value = l.effect(l.value, f));
50
- }
51
- };
52
- return { load: (i) => {
53
- k.c = { host: t, hooks: s, update: e, i: 0, id: n };
54
- let f;
55
- try {
56
- r = !1, f = i();
57
- } catch (d) {
58
- if (d !== ee)
59
- throw d;
60
- r = !0;
61
- } finally {
62
- k.c = null;
63
- }
64
- return f;
65
- }, cleanEffects: (i) => (c(Ft, i), () => (c(ne, i), () => {
66
- c(At, i);
67
- })), isSuspense: o };
68
- }, M = Symbol.for;
69
- function It(e, t) {
70
- const n = e.length;
71
- if (n !== t.length)
72
- return !1;
73
- for (let s = 0; s < n; s++) {
74
- let r = e[s], o = t[s];
75
- if (r !== o)
76
- return !1;
77
- }
78
- return !0;
79
- }
80
- const w = (e) => typeof e == "function", R = (e) => typeof e == "object", { isArray: re } = Array, et = (e, t) => (t ? e instanceof HTMLStyleElement : !0) && "hydrate" in (e?.dataset || {});
81
- function Ut(e, t) {
82
- let n;
83
- const s = (r) => {
84
- let { length: o } = r;
85
- for (let c = 0; c < o; c++) {
86
- const u = r[c];
87
- if (u && Array.isArray(u))
88
- s(u);
89
- else {
90
- const a = typeof u;
91
- if (u == null || a === "function" || a === "boolean")
92
- continue;
93
- a === "string" || a === "number" ? (n == null && (n = ""), n += u) : (n != null && (t(n), n = null), t(u));
94
- }
95
- }
96
- };
97
- s(e), n != null && t(n);
98
- }
99
- const $t = (e, t, n) => (e.addEventListener(t, n), () => e.removeEventListener(t, n));
100
- class Lt {
101
- /**
102
- *
103
- * @param {HTMLElement} target
104
- * @param {string} message
105
- * @param {string} value
106
- */
107
- constructor(t, n, s) {
108
- this.message = n, this.target = t, this.value = s;
109
- }
110
- }
111
- class _t extends Lt {
112
- }
113
- class ce extends Lt {
114
- }
115
- const q = "Custom", ie = null, ae = { true: 1, "": 1, 1: 1 };
116
- function le(e, t, n, s, r) {
117
- const {
118
- type: o,
119
- reflect: c,
120
- event: u,
121
- value: a,
122
- attr: i = ue(t)
123
- } = n?.name != q && R(n) && n != ie ? n : { type: n }, f = o?.name === q && o.map, d = a != null ? o == Function || !w(a) ? () => a : a : null;
124
- Object.defineProperty(e, t, {
125
- configurable: !0,
126
- /**
127
- * @this {import("dom").AtomicoThisInternal}
128
- * @param {any} newValue
129
- */
130
- set(l) {
131
- const m = this[t];
132
- d && o != Boolean && l == null && (l = d());
133
- const { error: v, value: p } = (f ? he : me)(
134
- o,
135
- l
136
- );
137
- if (v && p != null)
138
- throw new _t(
139
- this,
140
- `The value defined for prop '${t}' must be of type '${o.name}'`,
141
- p
142
- );
143
- m != p && (this._props[t] = p ?? void 0, this.update(), u && jt(this, u), this.updated.then(() => {
144
- c && (this._ignoreAttr = i, fe(this, o, i, this[t]), this._ignoreAttr = null);
145
- }));
146
- },
147
- /**
148
- * @this {import("dom").AtomicoThisInternal}
149
- */
150
- get() {
151
- return this._props[t];
152
- }
153
- }), d && (r[t] = d()), s[i] = { prop: t, type: o };
154
- }
155
- const jt = (e, { type: t, base: n = CustomEvent, ...s }) => e.dispatchEvent(new n(t, s)), ue = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase(), fe = (e, t, n, s) => s == null || t == Boolean && !s ? e.removeAttribute(n) : e.setAttribute(
156
- n,
157
- t?.name === q && t?.serialize ? t?.serialize(s) : R(s) ? JSON.stringify(s) : t == Boolean ? "" : s
158
- ), de = (e, t) => e == Boolean ? !!ae[t] : e == Number ? Number(t) : e == String ? t : e == Array || e == Object ? JSON.parse(t) : e.name == q ? t : (
159
- // TODO: If when defining reflect the prop can also be of type string?
160
- new e(t)
161
- ), he = ({ map: e }, t) => {
162
- try {
163
- return { value: e(t), error: !1 };
164
- } catch {
165
- return { value: t, error: !0 };
166
- }
167
- }, me = (e, t) => e == null || t == null ? { value: t, error: !1 } : e != String && t === "" ? { value: void 0, error: !1 } : e == Object || e == Array || e == Symbol ? {
168
- value: t,
169
- error: {}.toString.call(t) !== `[object ${e.name}]`
170
- } : t instanceof e ? {
171
- value: t,
172
- error: e == Number && Number.isNaN(t.valueOf())
173
- } : e == String || e == Number || e == Boolean ? {
174
- value: t,
175
- error: e == Number ? typeof t != "number" ? !0 : Number.isNaN(t) : e == String ? typeof t != "string" : typeof t != "boolean"
176
- } : { value: t, error: !0 };
177
- let ye = 0;
178
- const pe = (e) => {
179
- const t = (e?.dataset || {})?.hydrate || "";
180
- return t || "c" + ye++;
181
- }, j = (e, t = HTMLElement) => {
182
- const n = {}, s = {}, r = "prototype" in t && t.prototype instanceof Element, o = r ? t : "base" in t ? t.base : HTMLElement, { props: c, styles: u } = r ? e : t;
183
- class a extends o {
184
- constructor() {
185
- super(), this._setup(), this._render = () => e({ ...this._props });
186
- for (const f in s)
187
- this[f] = s[f];
188
- }
189
- /**
190
- * @returns {import("core").Sheets[]}
191
- */
192
- static get styles() {
193
- return [super.styles, u];
194
- }
195
- async _setup() {
196
- if (this._props)
197
- return;
198
- this._props = {};
199
- let f, d;
200
- this.mounted = new Promise(
201
- (h) => this.mount = () => {
202
- h(), f != this.parentNode && (d != f ? this.unmounted.then(this.update) : this.update()), f = this.parentNode;
203
- }
204
- ), this.unmounted = new Promise(
205
- (h) => this.unmount = () => {
206
- h(), (f != this.parentNode || !this.isConnected) && (l.cleanEffects(!0)()(), d = this.parentNode, f = null);
207
- }
208
- ), this.symbolId = this.symbolId || Symbol(), this.symbolIdParent = Symbol();
209
- const l = oe(
210
- () => this.update(),
211
- this,
212
- pe(this)
213
- );
214
- let m, v = !0;
215
- const p = et(this);
216
- this.update = () => (m || (m = !0, this.updated = (this.updated || this.mounted).then(() => {
217
- try {
218
- const h = l.load(this._render), b = l.cleanEffects();
219
- return h && //@ts-ignore
220
- h.render(this, this.symbolId, p), m = !1, v && !l.isSuspense() && (v = !1, !p && be(this)), b();
221
- } finally {
222
- m = !1;
223
- }
224
- }).then(
225
- /**
226
- * @param {import("internal/hooks.js").CleanUseEffects} [cleanUseEffect]
227
- */
228
- (h) => {
229
- h && h();
230
- }
231
- )), this.updated), this.update();
232
- }
233
- connectedCallback() {
234
- this.mount(), super.connectedCallback && super.connectedCallback();
235
- }
236
- disconnectedCallback() {
237
- super.disconnectedCallback && super.disconnectedCallback(), this.unmount();
238
- }
239
- /**
240
- * @this {import("dom").AtomicoThisInternal}
241
- * @param {string} attr
242
- * @param {(string|null)} oldValue
243
- * @param {(string|null)} value
244
- */
245
- attributeChangedCallback(f, d, l) {
246
- if (n[f]) {
247
- if (f === this._ignoreAttr || d === l)
248
- return;
249
- const { prop: m, type: v } = n[f];
250
- try {
251
- this[m] = de(v, l);
252
- } catch {
253
- throw new ce(
254
- this,
255
- `The value defined as attr '${f}' cannot be parsed by type '${v.name}'`,
256
- l
257
- );
258
- }
259
- } else
260
- super.attributeChangedCallback(f, d, l);
261
- }
262
- static get props() {
263
- return { ...super.props, ...c };
264
- }
265
- static get observedAttributes() {
266
- const f = super.observedAttributes || [];
267
- for (const d in c)
268
- le(this.prototype, d, c[d], n, s);
269
- return Object.keys(n).concat(f);
270
- }
271
- }
272
- return a;
273
- };
274
- function be(e) {
275
- const { styles: t } = e.constructor, { shadowRoot: n } = e;
276
- if (n && t.length) {
277
- const s = [];
278
- Ut(t, (r) => {
279
- r && (r instanceof Element ? n.appendChild(r.cloneNode(!0)) : s.push(r));
280
- }), s.length && (n.adoptedStyleSheets = s);
281
- }
282
- }
283
- const Yt = (e) => (t, n) => {
284
- O(
285
- /**
286
- * Clean the effect hook
287
- * @type {import("internal/hooks.js").CollectorEffect}
288
- */
289
- ([s, r] = []) => ((r || !r) && (r && It(r, n) ? s = s || !0 : (w(s) && s(), s = null)), [s, n]),
290
- /**
291
- * @returns {any}
292
- */
293
- ([s, r], o) => o ? (w(s) && s(), []) : [s || t(), r],
294
- e
295
- );
296
- }, $ = Yt(At), ge = Yt(Ft);
297
- class Bt extends Array {
298
- /**
299
- *
300
- * @param {any} initialState
301
- * @param {(nextState: any, state:any[], mount: boolean )=>void} mapState
302
- */
303
- constructor(t, n) {
304
- let s = !0;
305
- const r = (o) => {
306
- try {
307
- n(o, this, s);
308
- } finally {
309
- s = !1;
310
- }
311
- };
312
- super(void 0, r, n), r(t);
313
- }
314
- /**
315
- * The following code allows a mutable approach to useState
316
- * and useProp this with the idea of allowing an alternative
317
- * approach similar to Vue or Qwik of state management
318
- * @todo pending review with the community
319
- */
320
- // get value() {
321
- // return this[0];
322
- // }
323
- // set value(nextState) {
324
- // this[2](nextState, this);
325
- // }
326
- }
327
- const rt = (e) => {
328
- const t = Rt();
329
- return O(
330
- (n = new Bt(e, (s, r, o) => {
331
- s = w(s) ? s(r[0]) : s, s !== r[0] && (r[0] = s, o || t());
332
- })) => n
333
- );
334
- }, T = (e, t) => {
335
- const [n] = O(([s, r, o = 0] = []) => ((!r || r && !It(r, t)) && (s = e()), [s, t, o]));
336
- return n;
337
- }, ct = (e) => {
338
- const { current: t } = _();
339
- if (!(e in t))
340
- throw new _t(
341
- t,
342
- `For useProp("${e}"), the prop does not exist on the host.`,
343
- e
344
- );
345
- return O(
346
- (n = new Bt(t[e], (s, r) => {
347
- s = w(s) ? s(t[e]) : s, t[e] = s;
348
- })) => (n[0] = t[e], n)
349
- );
350
- }, C = (e, t = {}) => {
351
- const n = _();
352
- return n[e] || (n[e] = (s = t.detail) => jt(n.current, {
353
- type: e,
354
- ...t,
355
- detail: s
356
- })), n[e];
357
- }, nt = M("atomico/options");
358
- globalThis[nt] = globalThis[nt] || {
359
- sheet: !!document.adoptedStyleSheets
360
- };
361
- const qt = globalThis[nt], Ee = {
362
- checked: 1,
363
- value: 1,
364
- selected: 1
365
- }, ve = {
366
- list: 1,
367
- type: 1,
368
- size: 1,
369
- form: 1,
370
- width: 1,
371
- height: 1,
372
- src: 1,
373
- href: 1,
374
- slot: 1
375
- }, De = {
376
- shadowDom: 1,
377
- staticNode: 1,
378
- cloneNode: 1,
379
- children: 1,
380
- key: 1
381
- }, B = {}, st = [];
382
- class ot extends Text {
383
- }
384
- const Se = M("atomico/id"), I = M("atomico/type"), Z = M("atomico/ref"), xt = M("atomico/vnode"), we = () => {
385
- };
386
- function Ce(e, t, n) {
387
- return Ht(this, e, t, n);
388
- }
389
- const zt = (e, t, ...n) => {
390
- const s = t || B;
391
- let { children: r } = s;
392
- if (r = r ?? (n.length ? n : st), e === we)
393
- return r;
394
- const o = e ? e instanceof Node ? 1 : (
395
- //@ts-ignore
396
- e.prototype instanceof HTMLElement && 2
397
- ) : 0;
398
- if (o === !1 && e instanceof Function)
399
- return e(
400
- r != st ? { children: r, ...s } : s
401
- );
402
- const c = qt.render || Ce;
403
- return {
404
- [I]: xt,
405
- type: e,
406
- props: s,
407
- children: r,
408
- key: s.key,
409
- // key for lists by keys
410
- // define if the node declares its shadowDom
411
- shadow: s.shadowDom,
412
- // allows renderings to run only once
413
- static: s.staticNode,
414
- // defines whether the type is a childNode `1` or a constructor `2`
415
- raw: o,
416
- // defines whether to use the second parameter for document.createElement
417
- is: s.is,
418
- // clone the node if it comes from a reference
419
- clone: s.cloneNode,
420
- render: c
421
- };
422
- };
423
- function Ht(e, t, n = Se, s, r) {
424
- let o;
425
- if (t && t[n] && t[n].vnode == e || e[I] != xt)
426
- return t;
427
- (e || !t) && (r = r || e.type == "svg", o = e.type != "host" && (e.raw == 1 ? (t && e.clone ? t[Z] : t) != e.type : e.raw == 2 ? !(t instanceof e.type) : t ? t[Z] || t.localName != e.type : !t), o && e.type != null && (e.raw == 1 && e.clone ? (s = !0, t = e.type.cloneNode(!0), t[Z] = e.type) : t = e.raw == 1 ? e.type : e.raw == 2 ? new e.type() : r ? document.createElementNS(
428
- "http://www.w3.org/2000/svg",
429
- e.type
430
- ) : document.createElement(
431
- e.type,
432
- e.is ? { is: e.is } : void 0
433
- )));
434
- const c = t[n] ? t[n] : B, { vnode: u = B, cycle: a = 0 } = c;
435
- let { fragment: i, handlers: f } = c;
436
- const { children: d = st, props: l = B } = u;
437
- if (f = o ? {} : f || {}, e.static && !o)
438
- return t;
439
- if (e.shadow && !t.shadowRoot && // @ts-ignore
440
- t.attachShadow({ mode: "open", ...e.shadow }), e.props != l && Ne(t, l, e.props, f, r), e.children !== d) {
441
- const m = e.shadow ? t.shadowRoot : t;
442
- i = Pe(
443
- e.children,
444
- /**
445
- * @todo for hydration use attribute and send childNodes
446
- */
447
- i,
448
- m,
449
- n,
450
- // add support to foreignObject, children will escape from svg
451
- !a && s,
452
- r && e.type == "foreignObject" ? !1 : r
453
- );
454
- }
455
- return t[n] = { vnode: e, handlers: f, fragment: i, cycle: a + 1 }, t;
456
- }
457
- function Te(e, t) {
458
- const n = new ot(""), s = new ot("");
459
- let r;
460
- if (e[t ? "prepend" : "append"](n), t) {
461
- let { lastElementChild: o } = e;
462
- for (; o; ) {
463
- const { previousElementSibling: c } = o;
464
- if (et(o, !0) && !et(c, !0)) {
465
- r = o;
466
- break;
467
- }
468
- o = c;
469
- }
470
- }
471
- return r ? r.before(s) : e.append(s), {
472
- markStart: n,
473
- markEnd: s
474
- };
475
- }
476
- function Pe(e, t, n, s, r, o) {
477
- e = e == null ? null : re(e) ? e : [e];
478
- const c = t || Te(n, r), { markStart: u, markEnd: a, keyes: i } = c;
479
- let f;
480
- const d = i && /* @__PURE__ */ new Set();
481
- let l = u;
482
- if (e && Ut(e, (m) => {
483
- if (typeof m == "object" && !m[I])
484
- return;
485
- const v = m[I] && m.key, p = i && v != null && i.get(v);
486
- l != a && l === p ? d.delete(l) : l = l == a ? a : l.nextSibling;
487
- const h = i ? p : l;
488
- let b = h;
489
- if (m[I])
490
- b = Ht(m, h, s, r, o);
491
- else {
492
- const A = m + "";
493
- !(b instanceof Text) || b instanceof ot ? b = new Text(A) : b.data != A && (b.data = A);
494
- }
495
- b != l && (i && d.delete(b), !h || i ? (n.insertBefore(b, l), i && l != a && d.add(l)) : h == a ? n.insertBefore(b, a) : (n.replaceChild(b, h), l = b)), v != null && (f = f || /* @__PURE__ */ new Map(), f.set(v, b));
496
- }), l = l == a ? a : l.nextSibling, t && l != a)
497
- for (; l != a; ) {
498
- const m = l;
499
- l = l.nextSibling, m.remove();
500
- }
501
- return d && d.forEach((m) => m.remove()), c.keyes = f, c;
502
- }
503
- function Ne(e, t, n, s, r) {
504
- for (const o in t)
505
- !(o in n) && Dt(e, o, t[o], null, r, s);
506
- for (const o in n)
507
- Dt(e, o, t[o], n[o], r, s);
508
- }
509
- function Dt(e, t, n, s, r, o) {
510
- if (t = t == "class" && !r ? "className" : t, n = n ?? null, s = s ?? null, t in e && Ee[t] && (n = e[t]), !(s === n || De[t] || t[0] == "_"))
511
- if (t[0] == "o" && t[1] == "n" && (w(s) || w(n)))
512
- ke(e, t.slice(2), s, o);
513
- else if (t == "ref")
514
- s && (w(s) ? s(e) : s.current = e);
515
- else if (t == "style") {
516
- const { style: c } = e;
517
- n = n || "", s = s || "";
518
- const u = R(n), a = R(s);
519
- if (u)
520
- for (const i in n)
521
- if (a)
522
- !(i in s) && St(c, i, null);
523
- else
524
- break;
525
- if (a)
526
- for (const i in s) {
527
- const f = s[i];
528
- u && n[i] === f || St(c, i, f);
529
- }
530
- else
531
- c.cssText = s;
532
- } else {
533
- const c = t[0] == "$" ? t.slice(1) : t;
534
- c === t && (!r && !ve[t] && t in e || w(s) || w(n)) ? e[t] = s ?? "" : s == null ? e.removeAttribute(c) : e.setAttribute(
535
- c,
536
- R(s) ? JSON.stringify(s) : s
537
- );
538
- }
539
- }
540
- function ke(e, t, n, s) {
541
- if (s.handleEvent || (s.handleEvent = (r) => s[r.type].call(e, r)), n) {
542
- if (!s[t]) {
543
- const r = n.capture || n.once || n.passive ? Object.assign({}, n) : null;
544
- e.addEventListener(t, s, r);
545
- }
546
- s[t] = n;
547
- } else
548
- s[t] && (e.removeEventListener(t, s), delete s[t]);
549
- }
550
- function St(e, t, n) {
551
- let s = "setProperty";
552
- n == null && (s = "removeProperty", n = null), ~t.indexOf("-") ? e[s](t, n) : e[t] = n;
553
- }
554
- const wt = {};
555
- function z(e, ...t) {
556
- const n = (e.raw || e).reduce(
557
- (s, r, o) => s + r + (t[o] || ""),
558
- ""
559
- );
560
- return wt[n] = wt[n] || Oe(n);
561
- }
562
- function Oe(e) {
563
- if (qt.sheet) {
564
- const t = new CSSStyleSheet();
565
- return t.replaceSync(e), t;
566
- } else {
567
- const t = document.createElement("style");
568
- return t.textContent = e, t;
569
- }
570
- }
571
- const Me = zt("host", { style: "display: contents" }), W = M("atomico/context"), Ae = (e, t) => {
572
- const n = _();
573
- ge(
574
- () => $t(
575
- n.current,
576
- "ConnectContext",
577
- /**
578
- * @param {CustomEvent<import("context").DetailConnectContext>} event
579
- */
580
- (s) => {
581
- e === s.detail.id && (s.stopPropagation(), s.detail.connect(t));
582
- }
583
- ),
584
- [e]
585
- );
586
- }, Fe = (e) => {
587
- const t = C("ConnectContext", {
588
- bubbles: !0,
589
- composed: !0
590
- }), n = () => {
591
- let o;
592
- return t({
593
- id: e,
594
- connect(c) {
595
- o = c;
596
- }
597
- }), o;
598
- }, [s, r] = rt(
599
- n
600
- );
601
- return $(() => {
602
- s || (e[W] || (e[W] = customElements.whenDefined(
603
- new e().localName
604
- )), e[W].then(
605
- () => r(n)
606
- ));
607
- }, [e]), s;
608
- }, Re = (e) => {
609
- const t = Fe(e), n = Rt();
610
- return $(() => {
611
- if (t)
612
- return $t(t, "UpdatedValue", n);
613
- }, [t]), (t || e).value;
614
- }, Ie = (e) => {
615
- const t = j(
616
- () => (Ae(t, _().current), Me),
617
- {
618
- props: {
619
- value: {
620
- type: Object,
621
- event: { type: "UpdatedValue" },
622
- value: () => e
623
- }
624
- }
625
- }
626
- );
627
- return t.value = e, t;
628
- }, y = (e, t, n) => (t == null ? t = { key: n } : t.key = n, zt(e, t)), U = y, Kt = z`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`, Jt = z`.vh{position:absolute;transform:scale(0)}`;
629
- function it() {
630
- const e = /* @__PURE__ */ new Date();
631
- return new E(e.getFullYear(), e.getMonth() + 1, e.getDate());
632
- }
633
- function at(e, t = 0) {
634
- const n = S(e), s = n.getUTCDay(), r = (s < t ? 7 : 0) + s - t;
635
- return n.setUTCDate(n.getUTCDate() - r), E.from(n);
636
- }
637
- function Zt(e, t = 0) {
638
- return at(e, t).add({ days: 6 });
639
- }
640
- function Wt(e) {
641
- return E.from(new Date(Date.UTC(e.year, e.month, 0)));
642
- }
643
- function H(e, t, n) {
644
- return t && E.compare(e, t) < 0 ? t : n && E.compare(e, n) > 0 ? n : e;
645
- }
646
- const Ue = { days: 1 };
647
- function $e(e, t = 0) {
648
- let n = at(e.toPlainDate(), t);
649
- const s = Zt(Wt(e), t), r = [];
650
- for (; E.compare(n, s) < 0; ) {
651
- const o = [];
652
- for (let c = 0; c < 7; c++)
653
- o.push(n), n = n.add(Ue);
654
- r.push(o);
655
- }
656
- return r;
657
- }
658
- function S(e) {
659
- return new Date(Date.UTC(e.year, e.month - 1, e.day ?? 1));
660
- }
661
- const Le = /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/, X = (e, t) => e.toString().padStart(t, "0");
662
- class E {
663
- constructor(t, n, s) {
664
- this.year = t, this.month = n, this.day = s;
665
- }
666
- // this is an incomplete implementation that only handles arithmetic on a single unit at a time.
667
- // i didn't want to get into more complex arithmetic since it get tricky fast
668
- // this is enough to serve my needs and will still be a drop-in replacement when actual Temporal API lands
669
- add(t) {
670
- const n = S(this);
671
- if ("days" in t)
672
- return n.setUTCDate(this.day + t.days), E.from(n);
673
- let { year: s, month: r } = this;
674
- "months" in t ? (r = this.month + t.months, n.setUTCMonth(r - 1)) : (s = this.year + t.years, n.setUTCFullYear(s));
675
- const o = E.from(S({ year: s, month: r, day: 1 }));
676
- return H(E.from(n), o, Wt(o));
677
- }
678
- toString() {
679
- return `${X(this.year, 4)}-${X(this.month, 2)}-${X(this.day, 2)}`;
680
- }
681
- toPlainYearMonth() {
682
- return new K(this.year, this.month);
683
- }
684
- equals(t) {
685
- return E.compare(this, t) === 0;
686
- }
687
- static compare(t, n) {
688
- return t.year < n.year ? -1 : t.year > n.year ? 1 : t.month < n.month ? -1 : t.month > n.month ? 1 : t.day < n.day ? -1 : t.day > n.day ? 1 : 0;
689
- }
690
- static from(t) {
691
- if (typeof t == "string") {
692
- const n = t.match(Le);
693
- if (!n)
694
- throw new TypeError(t);
695
- const [, s, r, o] = n;
696
- return new E(
697
- parseInt(s, 10),
698
- parseInt(r, 10),
699
- parseInt(o, 10)
700
- );
701
- }
702
- return new E(
703
- t.getUTCFullYear(),
704
- t.getUTCMonth() + 1,
705
- t.getUTCDate()
706
- );
707
- }
708
- }
709
- class K {
710
- constructor(t, n) {
711
- this.year = t, this.month = n;
712
- }
713
- add(t) {
714
- const n = S(this), s = (t.months ?? 0) + (t.years ?? 0) * 12;
715
- return n.setUTCMonth(n.getUTCMonth() + s), new K(n.getUTCFullYear(), n.getUTCMonth() + 1);
716
- }
717
- equals(t) {
718
- return this.year === t.year && this.month === t.month;
719
- }
720
- toPlainDate() {
721
- return new E(this.year, this.month, 1);
722
- }
723
- }
724
- function x(e, t) {
725
- if (t)
726
- try {
727
- return e.from(t);
728
- } catch {
729
- }
730
- }
731
- function P(e) {
732
- const [t, n] = ct(e);
733
- return [T(() => x(E, t), [t]), (o) => n(o?.toString())];
734
- }
735
- function _e(e) {
736
- const [t = "", n] = ct(e);
737
- return [T(() => {
738
- const [o, c] = t.split("/"), u = x(E, o), a = x(E, c);
739
- return u && a ? [u, a] : [];
740
- }, [t]), (o) => n(`${o[0]}/${o[1]}`)];
741
- }
742
- function je(e) {
743
- const [t = "", n] = ct(e);
744
- return [T(() => {
745
- const o = [];
746
- for (const c of t.trim().split(/\s+/)) {
747
- const u = x(E, c);
748
- u && o.push(u);
749
- }
750
- return o;
751
- }, [t]), (o) => n(o.join(" "))];
752
- }
753
- function L(e, t) {
754
- return T(
755
- () => new Intl.DateTimeFormat(t, { timeZone: "UTC", ...e }),
756
- [t, e]
757
- );
758
- }
759
- function Ct(e, t, n) {
760
- const s = L(e, n);
761
- return T(() => {
762
- const r = [], o = /* @__PURE__ */ new Date();
763
- for (var c = 0; c < 7; c++) {
764
- const u = (o.getUTCDay() - t + 7) % 7;
765
- r[u] = s.format(o), o.setUTCDate(o.getUTCDate() + 1);
766
- }
767
- return r;
768
- }, [t, s]);
769
- }
770
- const Tt = (e, t, n) => H(e, t, n) === e, Pt = (e) => e.target.matches(":dir(ltr)"), Ye = { month: "long", day: "numeric" }, Be = { month: "long" }, qe = { weekday: "narrow" }, xe = { weekday: "long" }, G = { bubbles: !0 };
771
- function ze({ props: e, context: t }) {
772
- const { offset: n } = e, {
773
- firstDayOfWeek: s,
774
- isDateDisallowed: r,
775
- min: o,
776
- max: c,
777
- page: u,
778
- locale: a,
779
- focusedDate: i
780
- } = t, f = it(), d = Ct(xe, s, a), l = Ct(qe, s, a), m = L(Ye, a), v = L(Be, a), p = T(
781
- () => u.start.add({ months: n }),
782
- [u, n]
783
- ), h = T(
784
- () => $e(p, s),
785
- [p, s]
786
- ), b = C("focusday", G), A = C("selectday", G), Xt = C("hoverday", G);
787
- function mt(g) {
788
- b(H(g, o, c));
789
- }
790
- function Gt(g) {
791
- let D;
792
- switch (g.key) {
793
- case "ArrowRight":
794
- D = i.add({ days: Pt(g) ? 1 : -1 });
795
- break;
796
- case "ArrowLeft":
797
- D = i.add({ days: Pt(g) ? -1 : 1 });
798
- break;
799
- case "ArrowDown":
800
- D = i.add({ days: 7 });
801
- break;
802
- case "ArrowUp":
803
- D = i.add({ days: -7 });
804
- break;
805
- case "PageUp":
806
- D = i.add(g.shiftKey ? { years: -1 } : { months: -1 });
807
- break;
808
- case "PageDown":
809
- D = i.add(g.shiftKey ? { years: 1 } : { months: 1 });
810
- break;
811
- case "Home":
812
- D = at(i, s);
813
- break;
814
- case "End":
815
- D = Zt(i, s);
816
- break;
817
- default:
818
- return;
819
- }
820
- mt(D), g.preventDefault();
821
- }
822
- function Qt(g) {
823
- const D = p.equals(g);
824
- if (!t.showOutsideDays && !D)
825
- return;
826
- const Vt = g.equals(i), yt = g.equals(f), pt = S(g), Y = r?.(pt), bt = !Tt(g, o, c);
827
- let gt = "", N;
828
- if (t.type === "range") {
829
- const [F, J] = t.value, Et = F?.equals(g), vt = J?.equals(g);
830
- N = F && J && Tt(g, F, J), gt = `${Et ? "range-start" : ""} ${vt ? "range-end" : ""} ${N && !Et && !vt ? "range-inner" : ""}`;
831
- } else
832
- t.type === "multi" ? N = t.value.some((F) => F.equals(g)) : N = t.value?.equals(g);
833
- return {
834
- part: `${`button day ${// we don't want outside days to ever be shown as selected
835
- D ? N ? "selected" : "" : "outside"} ${Y ? "disallowed" : ""} ${yt ? "today" : ""}`} ${gt}`,
836
- tabindex: D && Vt ? 0 : -1,
837
- disabled: bt,
838
- "aria-disabled": Y ? "true" : void 0,
839
- "aria-pressed": D && N,
840
- "aria-current": yt ? "date" : void 0,
841
- "aria-label": m.format(pt),
842
- onkeydown: Gt,
843
- onclick() {
844
- Y || A(g), mt(g);
845
- },
846
- onmouseover() {
847
- !Y && !bt && Xt(g);
848
- }
849
- };
850
- }
851
- return {
852
- weeks: h,
853
- yearMonth: p,
854
- daysLong: d,
855
- daysShort: l,
856
- formatter: v,
857
- getDayProps: Qt
858
- };
859
- }
860
- const Q = it(), lt = Ie({
861
- type: "date",
862
- firstDayOfWeek: 1,
863
- isDateDisallowed: () => !1,
864
- focusedDate: Q,
865
- page: { start: Q.toPlainYearMonth(), end: Q.toPlainYearMonth() }
866
- });
867
- customElements.define("calendar-month-ctx", lt);
868
- const He = j(
869
- (e) => {
870
- const t = Re(lt), n = se(), s = ze({ props: e, context: t });
871
- function r() {
872
- n.current.querySelector("button[tabindex='0']")?.focus();
873
- }
874
- return /* @__PURE__ */ U("host", { shadowDom: !0, focus: r, children: [
875
- /* @__PURE__ */ y("div", { id: "h", part: "heading", children: s.formatter.format(S(s.yearMonth)) }),
876
- /* @__PURE__ */ U("table", { ref: n, "aria-labelledby": "h", part: "table", children: [
877
- /* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { part: "tr head", children: s.daysLong.map((o, c) => /* @__PURE__ */ U("th", { part: "th", scope: "col", children: [
878
- /* @__PURE__ */ y("span", { class: "vh", children: o }),
879
- /* @__PURE__ */ y("span", { "aria-hidden": "true", children: s.daysShort[c] })
880
- ] })) }) }),
881
- /* @__PURE__ */ y("tbody", { children: s.weeks.map((o, c) => /* @__PURE__ */ y("tr", { part: "tr week", children: o.map((u, a) => {
882
- const i = s.getDayProps(u);
883
- return /* @__PURE__ */ y("td", { part: "td", children: i && /* @__PURE__ */ y("button", { ...i, children: u.day }) }, a);
884
- }) }, c)) })
885
- ] })
886
- ] });
887
- },
888
- {
889
- props: {
890
- offset: {
891
- type: Number,
892
- value: 0
893
- }
894
- },
895
- styles: [
896
- Kt,
897
- Jt,
898
- z`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`
899
- ]
900
- }
901
- );
902
- customElements.define("calendar-month", He);
903
- function Nt(e) {
904
- return /* @__PURE__ */ y(
905
- "button",
906
- {
907
- part: `button ${e.name} ${e.onclick ? "" : "disabled"}`,
908
- onclick: e.onclick,
909
- "aria-disabled": e.onclick ? null : "true",
910
- children: /* @__PURE__ */ y("slot", { name: e.name, children: e.children })
911
- }
912
- );
913
- }
914
- function ut(e) {
915
- const t = S(e.page.start), n = S(e.page.end);
916
- return /* @__PURE__ */ U("div", { role: "group", "aria-labelledby": "h", part: "container", children: [
917
- /* @__PURE__ */ y("div", { id: "h", class: "vh", "aria-live": "polite", "aria-atomic": "true", children: e.formatVerbose.formatRange(t, n) }),
918
- /* @__PURE__ */ U("div", { part: "header", children: [
919
- /* @__PURE__ */ y(Nt, { name: "previous", onclick: e.previous, children: "Previous" }),
920
- /* @__PURE__ */ y("slot", { part: "heading", name: "heading", children: /* @__PURE__ */ y("div", { "aria-hidden": "true", children: e.format.formatRange(t, n) }) }),
921
- /* @__PURE__ */ y(Nt, { name: "next", onclick: e.next, children: "Next" })
922
- ] }),
923
- /* @__PURE__ */ y(
924
- lt,
925
- {
926
- value: e,
927
- onselectday: e.onSelect,
928
- onfocusday: e.onFocus,
929
- onhoverday: e.onHover,
930
- children: /* @__PURE__ */ y("slot", {})
931
- }
932
- )
933
- ] });
934
- }
935
- const ft = {
936
- value: {
937
- type: String,
938
- value: ""
939
- },
940
- min: {
941
- type: String,
942
- value: ""
943
- },
944
- max: {
945
- type: String,
946
- value: ""
947
- },
948
- isDateDisallowed: {
949
- type: Function,
950
- value: (e) => !1
951
- },
952
- firstDayOfWeek: {
953
- type: Number,
954
- value: () => 1
955
- },
956
- showOutsideDays: {
957
- type: Boolean,
958
- value: !1
959
- },
960
- locale: {
961
- type: String,
962
- value: () => {
963
- }
964
- },
965
- months: {
966
- type: Number,
967
- value: 1
968
- },
969
- focusedDate: {
970
- type: String,
971
- value: () => {
972
- }
973
- },
974
- pageBy: {
975
- type: String,
976
- value: () => "months"
977
- }
978
- }, dt = [
979
- Kt,
980
- Jt,
981
- z`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`
982
- ], Ke = { year: "numeric" }, Je = { year: "numeric", month: "long" };
983
- function V(e, t) {
984
- return (t.year - e.year) * 12 + t.month - e.month;
985
- }
986
- const kt = (e, t) => (e = t === 12 ? new K(e.year, 1) : e, {
987
- start: e,
988
- end: e.add({ months: t - 1 })
989
- });
990
- function Ze({
991
- pageBy: e,
992
- focusedDate: t,
993
- months: n,
994
- max: s,
995
- min: r,
996
- goto: o
997
- }) {
998
- const c = e === "single" ? 1 : n, [u, a] = rt(
999
- () => kt(t.toPlainYearMonth(), n)
1000
- ), i = (d) => a(kt(u.start.add({ months: d }), n)), f = (d) => {
1001
- const l = V(u.start, d.toPlainYearMonth());
1002
- return l >= 0 && l < n;
1003
- };
1004
- return $(() => {
1005
- if (f(t))
1006
- return;
1007
- const d = V(t.toPlainYearMonth(), u.start);
1008
- o(t.add({ months: d }));
1009
- }, [u.start]), $(() => {
1010
- if (f(t))
1011
- return;
1012
- const d = V(u.start, t.toPlainYearMonth());
1013
- i(d === -1 ? -c : d === n ? c : Math.floor(d / n) * n);
1014
- }, [t, c, n]), {
1015
- page: u,
1016
- previous: !r || !f(r) ? () => i(-c) : void 0,
1017
- next: !s || !f(s) ? () => i(c) : void 0
1018
- };
1019
- }
1020
- function ht({
1021
- months: e,
1022
- pageBy: t,
1023
- locale: n,
1024
- focusedDate: s,
1025
- setFocusedDate: r
1026
- }) {
1027
- const [o] = P("min"), [c] = P("max"), u = C("focusday"), a = C("change"), i = T(
1028
- () => H(s ?? it(), o, c),
1029
- [s, o, c]
1030
- );
1031
- function f(h) {
1032
- r(h), u(S(h));
1033
- }
1034
- const { next: d, previous: l, page: m } = Ze({
1035
- pageBy: t,
1036
- focusedDate: i,
1037
- months: e,
1038
- min: o,
1039
- max: c,
1040
- goto: f
1041
- }), v = _();
1042
- function p() {
1043
- v.current.querySelectorAll("calendar-month").forEach((h) => h.focus());
1044
- }
1045
- return {
1046
- format: L(Ke, n),
1047
- formatVerbose: L(Je, n),
1048
- page: m,
1049
- focusedDate: i,
1050
- dispatch: a,
1051
- onFocus(h) {
1052
- h.stopPropagation(), f(h.detail), setTimeout(p);
1053
- },
1054
- min: o,
1055
- max: c,
1056
- next: d,
1057
- previous: l,
1058
- focus: p
1059
- };
1060
- }
1061
- const We = j(
1062
- (e) => {
1063
- const [t, n] = P("value"), [s = t, r] = P("focusedDate"), o = ht({
1064
- ...e,
1065
- focusedDate: s,
1066
- setFocusedDate: r
1067
- });
1068
- function c(u) {
1069
- n(u.detail), o.dispatch();
1070
- }
1071
- return /* @__PURE__ */ y("host", { shadowDom: !0, focus: o.focus, children: /* @__PURE__ */ y(
1072
- ut,
1073
- {
1074
- ...e,
1075
- ...o,
1076
- type: "date",
1077
- value: t,
1078
- onSelect: c
1079
- }
1080
- ) });
1081
- },
1082
- { props: ft, styles: dt }
1083
- );
1084
- customElements.define("calendar-date", We);
1085
- const Ot = (e, t) => E.compare(e, t) < 0 ? [e, t] : [t, e], Xe = j(
1086
- (e) => {
1087
- const [t, n] = _e("value"), [s = t[0], r] = P("focusedDate"), o = ht({
1088
- ...e,
1089
- focusedDate: s,
1090
- setFocusedDate: r
1091
- }), c = C("rangestart"), u = C("rangeend"), [a, i] = P(
1092
- "tentative"
1093
- ), [f, d] = rt();
1094
- $(() => d(void 0), [a]);
1095
- function l(h) {
1096
- o.onFocus(h), m(h);
1097
- }
1098
- function m(h) {
1099
- h.stopPropagation(), a && d(h.detail);
1100
- }
1101
- function v(h) {
1102
- const b = h.detail;
1103
- h.stopPropagation(), a ? (n(Ot(a, b)), i(void 0), u(S(b)), o.dispatch()) : (i(b), c(S(b)));
1104
- }
1105
- const p = a ? Ot(a, f ?? a) : t;
1106
- return /* @__PURE__ */ y("host", { shadowDom: !0, focus: o.focus, children: /* @__PURE__ */ y(
1107
- ut,
1108
- {
1109
- ...e,
1110
- ...o,
1111
- type: "range",
1112
- value: p,
1113
- onFocus: l,
1114
- onHover: m,
1115
- onSelect: v
1116
- }
1117
- ) });
1118
- },
1119
- {
1120
- props: {
1121
- ...ft,
1122
- tentative: {
1123
- type: String,
1124
- value: ""
1125
- }
1126
- },
1127
- styles: dt
1128
- }
1129
- );
1130
- customElements.define("calendar-range", Xe);
1131
- const Ge = j(
1132
- (e) => {
1133
- const [t, n] = je("value"), [s = t[0], r] = P("focusedDate"), o = ht({
1134
- ...e,
1135
- focusedDate: s,
1136
- setFocusedDate: r
1137
- });
1138
- function c(u) {
1139
- const a = [...t], i = t.findIndex((f) => f.equals(u.detail));
1140
- i < 0 ? a.push(u.detail) : a.splice(i, 1), n(a), o.dispatch();
1141
- }
1142
- return /* @__PURE__ */ y("host", { shadowDom: !0, focus: o.focus, children: /* @__PURE__ */ y(
1143
- ut,
1144
- {
1145
- ...e,
1146
- ...o,
1147
- type: "multi",
1148
- value: t,
1149
- onSelect: c
1150
- }
1151
- ) });
1152
- },
1153
- { props: ft, styles: dt }
1154
- );
1155
- customElements.define("calendar-multi", Ge);
1156
-
1157
- exports.CalendarDate = We;
1158
- exports.CalendarMonth = He;
1159
- exports.CalendarMulti = Ge;
1160
- exports.CalendarRange = Xe;
1161
-
1162
- //# sourceMappingURL=cally-1bde2e82.js.map