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