bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76

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 (321) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbAvatar.md +86 -58
  5. package/dist/ai/BbBadge.md +1 -1
  6. package/dist/ai/BbBreadcrumbs.md +3 -3
  7. package/dist/ai/BbButton.md +4 -4
  8. package/dist/ai/BbCalendar.md +5 -2
  9. package/dist/ai/BbCheckboxGroup.md +5 -4
  10. package/dist/ai/BbColorInput.md +13 -1
  11. package/dist/ai/BbColorPalette.md +12 -7
  12. package/dist/ai/BbConfirm.md +1 -1
  13. package/dist/ai/BbDatePicker.md +13 -1
  14. package/dist/ai/BbDatePickerInput.md +18 -2
  15. package/dist/ai/BbDialog.md +6 -3
  16. package/dist/ai/BbDropdown.md +174 -77
  17. package/dist/ai/BbDropdownButton.md +37 -16
  18. package/dist/ai/BbGallery.md +3 -2
  19. package/dist/ai/BbIcon.md +10 -10
  20. package/dist/ai/BbNumberInput.md +3 -1
  21. package/dist/ai/BbOffCanvas.md +3 -2
  22. package/dist/ai/BbPopover.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +227 -105
  25. package/dist/ai/BbSelectPopover.md +139 -14
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +18 -17
  28. package/dist/ai/BbTimePicker.md +13 -1
  29. package/dist/ai/BbTimePickerInput.md +16 -2
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbTree.md +5 -1
  32. package/dist/ai/CommonPopover.md +1 -0
  33. package/dist/ai/FlatListBox.md +1 -0
  34. package/dist/ai/GroupedListBox.md +3 -2
  35. package/dist/ai/ListBox.md +4 -2
  36. package/dist/ai/OptionsContainer.md +4 -4
  37. package/dist/ai/changelog.json +310 -7
  38. package/dist/ai/components.json +33 -35
  39. package/dist/ai/composables/useToast.md +2 -2
  40. package/dist/ai/design-tokens.json +60 -0
  41. package/dist/ai/guides/agent-contract.md +9 -5
  42. package/dist/ai/guides/calendars-and-digits.md +1 -1
  43. package/dist/ai/guides/design-tokens.md +13 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/icons-policy.md +32 -11
  47. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  48. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  49. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  50. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  52. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  53. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  54. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  55. package/dist/ai/guides/migration/v2-to-v3.md +70 -24
  56. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  57. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  58. package/dist/ai/guides/passthrough.md +58 -58
  59. package/dist/ai/helpers/inertia/manifest.json +1 -1
  60. package/dist/ai/index.md +1 -1
  61. package/dist/ai/manifest/common.json +1 -0
  62. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  63. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  64. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  65. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  68. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  69. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  70. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  71. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  72. package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
  73. package/dist/ai/manifest/components/BbDropdown.json +36 -28
  74. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  75. package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
  76. package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
  77. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  78. package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
  79. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  80. package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
  81. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  82. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  83. package/dist/ai/manifest/components/BbSelect.json +47 -40
  84. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  85. package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
  86. package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
  87. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  88. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbTable.json +6 -6
  90. package/dist/ai/manifest/components/BbTable.tree.json +9 -1
  91. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  92. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  93. package/dist/ai/manifest/components/BbTree.json +1 -1
  94. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  95. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  96. package/dist/ai/manifest/components/GroupedListBox.json +3 -2
  97. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  98. package/dist/ai/manifest/components/ListBox.json +3 -2
  99. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  100. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  101. package/dist/ai/manifest/index.json +2 -2
  102. package/dist/ai/manifest/meta.json +0 -3
  103. package/dist/ai/manifest/types.advanced.json +6 -6
  104. package/dist/ai/manifest/types.api.json +1 -3
  105. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  106. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  107. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  108. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  109. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  110. package/dist/ai/recipes/vue/onboarding.md +2 -2
  111. package/dist/ai/source/BbAccordion.md +4 -5
  112. package/dist/ai/source/BbAvatar.md +128 -11
  113. package/dist/ai/source/BbBadge.md +18 -7
  114. package/dist/ai/source/BbBreadcrumbs.md +57 -56
  115. package/dist/ai/source/BbButton.md +41 -25
  116. package/dist/ai/source/BbCalendar.md +8 -6
  117. package/dist/ai/source/BbCarousel.md +41 -34
  118. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  119. package/dist/ai/source/BbColorInput.md +19 -0
  120. package/dist/ai/source/BbColorPalette.md +23 -2
  121. package/dist/ai/source/BbDatePicker.md +18 -0
  122. package/dist/ai/source/BbDatePickerInput.md +47 -3
  123. package/dist/ai/source/BbDialog.md +14 -1
  124. package/dist/ai/source/BbDropdown.md +296 -99
  125. package/dist/ai/source/BbDropdownButton.md +61 -19
  126. package/dist/ai/source/BbDropdownGroup.md +189 -98
  127. package/dist/ai/source/BbGallery.md +82 -60
  128. package/dist/ai/source/BbHost.md +12 -0
  129. package/dist/ai/source/BbNumberInput.md +17 -10
  130. package/dist/ai/source/BbOffCanvas.md +14 -1
  131. package/dist/ai/source/BbPagination.md +12 -28
  132. package/dist/ai/source/BbRadioGroup.md +12 -5
  133. package/dist/ai/source/BbRating.md +4 -4
  134. package/dist/ai/source/BbSelect.md +151 -112
  135. package/dist/ai/source/BbSelectPopover.md +244 -29
  136. package/dist/ai/source/BbSwitchGroup.md +11 -4
  137. package/dist/ai/source/BbTable.md +114 -35
  138. package/dist/ai/source/BbTimePicker.md +19 -0
  139. package/dist/ai/source/BbTimePickerInput.md +21 -2
  140. package/dist/ai/source/BbToast.md +2 -2
  141. package/dist/ai/source/BbToastPortal.md +2 -2
  142. package/dist/ai/source/BbTree.md +1 -1
  143. package/dist/ai/source/ClearableButton.md +4 -2
  144. package/dist/ai/source/CommonPopover.md +24 -1
  145. package/dist/ai/source/ErrorIcon.md +4 -3
  146. package/dist/ai/source/FlatListBox.md +33 -7
  147. package/dist/ai/source/GroupedListBox.md +85 -14
  148. package/dist/ai/source/ListBox.md +11 -1
  149. package/dist/ai/source/OptionsContainer.md +29 -11
  150. package/dist/ai/source/WarningIcon.md +4 -3
  151. package/dist/assets/svgs/close.svg_raw.js +1 -1
  152. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  153. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  154. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  155. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
  156. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  157. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  158. package/dist/components/BbAvatar/types.d.ts +24 -5
  159. package/dist/components/BbAvatar/types.js +5 -1
  160. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  161. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
  162. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
  163. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  164. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  165. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  166. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  167. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
  168. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  169. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  170. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  171. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  172. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  173. package/dist/components/BbColorInput/types.d.ts +7 -0
  174. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  175. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
  176. package/dist/components/BbColorPalette/types.d.ts +7 -0
  177. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  178. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  179. package/dist/components/BbDatePicker/types.d.ts +7 -0
  180. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
  181. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
  182. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  183. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  184. package/dist/components/BbDialog/leaveGhost.js +22 -17
  185. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
  186. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  187. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
  188. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
  189. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  190. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  191. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  192. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
  193. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  194. package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
  195. package/dist/components/BbDropdown/types.d.ts +109 -87
  196. package/dist/components/BbDropdown/types.js +3 -0
  197. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
  198. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
  199. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
  200. package/dist/components/BbDropdownButton/types.d.ts +23 -10
  201. package/dist/components/BbDropdownButton/types.js +4 -0
  202. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  203. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
  204. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  205. package/dist/components/BbIcon/iconCache.js +1 -1
  206. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  207. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  208. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  209. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  210. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  211. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  212. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  213. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  214. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  215. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  216. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  217. package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
  218. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
  219. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  220. package/dist/components/BbSelect/types.d.ts +110 -111
  221. package/dist/components/BbSelect/types.js +1 -27
  222. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
  223. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
  224. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  225. package/dist/components/BbSelectPopover/types.d.ts +32 -17
  226. package/dist/components/BbSelectPopover/types.js +3 -1
  227. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  228. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  229. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  230. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  231. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
  232. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  233. package/dist/components/BbTable/types.d.ts +11 -10
  234. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  235. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  236. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  237. package/dist/components/BbTimePicker/types.d.ts +7 -0
  238. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
  239. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
  240. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  241. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
  242. package/dist/components/BbToast/types.d.ts +2 -2
  243. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  244. package/dist/components/BbTree/types.d.ts +1 -1
  245. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  246. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  247. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  248. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  249. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  250. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
  251. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
  252. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  253. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  254. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  255. package/dist/composables/useInternalIcon.js +25 -0
  256. package/dist/composables/useItemsGetter.js +34 -32
  257. package/dist/composables/useOpenModel.js +20 -0
  258. package/dist/deprecation/ai-deprecations.json.js +1 -1
  259. package/dist/i18n/locales/ar.json +2 -0
  260. package/dist/i18n/locales/cs.json +2 -0
  261. package/dist/i18n/locales/da.json +2 -0
  262. package/dist/i18n/locales/de-CH.json +2 -0
  263. package/dist/i18n/locales/de.json +2 -0
  264. package/dist/i18n/locales/el.json +2 -0
  265. package/dist/i18n/locales/en-GB.json +2 -0
  266. package/dist/i18n/locales/en.json +2 -0
  267. package/dist/i18n/locales/es-MX.json +2 -0
  268. package/dist/i18n/locales/es.json +2 -0
  269. package/dist/i18n/locales/fa.json +2 -0
  270. package/dist/i18n/locales/fi.json +2 -0
  271. package/dist/i18n/locales/fr.json +2 -0
  272. package/dist/i18n/locales/he.json +2 -0
  273. package/dist/i18n/locales/hu.json +2 -0
  274. package/dist/i18n/locales/it.json +2 -0
  275. package/dist/i18n/locales/ja.json +2 -0
  276. package/dist/i18n/locales/ko.json +2 -0
  277. package/dist/i18n/locales/nb.json +2 -0
  278. package/dist/i18n/locales/nl.json +2 -0
  279. package/dist/i18n/locales/pl.json +2 -0
  280. package/dist/i18n/locales/pt-BR.json +2 -0
  281. package/dist/i18n/locales/pt-PT.json +2 -0
  282. package/dist/i18n/locales/ro.json +2 -0
  283. package/dist/i18n/locales/ru.json +2 -0
  284. package/dist/i18n/locales/sv.json +2 -0
  285. package/dist/i18n/locales/tr.json +2 -0
  286. package/dist/i18n/locales/uk.json +2 -0
  287. package/dist/i18n/locales/zh-CN.json +2 -0
  288. package/dist/i18n/locales/zh-HK.json +2 -0
  289. package/dist/i18n/locales/zh-TW.json +2 -0
  290. package/dist/icon-scan.d.ts +1 -1
  291. package/dist/icon-scan.js +68 -61
  292. package/dist/index.d.ts +2 -2
  293. package/dist/llms-full.txt +1038 -451
  294. package/dist/llms-medium.txt +33 -28
  295. package/dist/llms.txt +2 -2
  296. package/dist/locale-blueprint.json +2 -0
  297. package/dist/nuxt.js +1 -1
  298. package/dist/styles.css +2 -2
  299. package/dist/types/ActionButton.d.ts +2 -3
  300. package/dist/types/Config.d.ts +8 -1
  301. package/dist/types/ConfigDefaults.d.ts +10 -2
  302. package/dist/types/Option.d.ts +10 -0
  303. package/dist/types/internalIcons.d.ts +89 -0
  304. package/dist/types/internalIcons.js +158 -0
  305. package/dist/types/ptComponentMap.d.ts +5 -5
  306. package/dist/utilities/functions/slotContent.js +19 -0
  307. package/dist/utils/configDefaults.js +75 -64
  308. package/dist/utils/iconsOption.js +48 -0
  309. package/dist/utils/loadRetry.js +8 -0
  310. package/dist/utils/versionCheck.js +1 -1
  311. package/dist/vite-plugin.d.ts +10 -16
  312. package/dist/vite.js +323 -307
  313. package/llms.txt +2 -2
  314. package/package.json +3 -1
  315. package/scripts/README.md +2 -0
  316. package/scripts/lib/adoption-checklist.json +1 -1
  317. package/scripts/lib/agent-setup.mjs +44 -26
  318. package/scripts/lib/update-install.mjs +48 -0
  319. package/scripts/lib/validate-bb-markup.mjs +93 -12
  320. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
  321. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -6,71 +6,72 @@ import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttr
6
6
  import { useConfig as a } from "../../composables/useConfig.js";
7
7
  import { slotKey as o } from "../../utilities/functions/slotKey.js";
8
8
  import { toInnerValue as s, toOuterValue as ee } from "../../utilities/functions/convertDateValue.js";
9
- import { isCoarseType as te, isLabelType as ne } from "../../types/DatePickerType.js";
10
- import { useId as re } from "../../composables/useId.js";
11
- import { useOwnModel as ie } from "../../composables/useOwnModel.js";
12
- import { useLocale as ae } from "../../composables/useLocale.js";
13
- import { usePassthrough as oe } from "../../composables/usePassthrough.js";
14
- import c from "../BbBaseButton/BbBaseButton.vue.js";
15
- import se from "../CommonTimeSelector/CommonTimeSelector.vue.js";
16
- import ce from "../Transitions/ScaleFade.vue.js";
17
- import le from "../Transitions/Slide.vue.js";
18
- import ue from "./CalendarMonthPanel.vue.js";
19
- import de from "./CalendarYearPanel.vue.js";
20
- import { checkCalendarProps as fe, useCalendarHost as pe } from "./calendarHost.js";
21
- import { CALENDAR_GRID as l, useCalendarGrid as me } from "./useCalendarGrid.js";
22
- import { useDayGrid as he } from "./useDayGrid.js";
23
- import { longDateOf as ge, useDayjsLocale as _e, weekSpanOf as ve, weekStartOf as ye } from "./useDayjsLocale.js";
24
- import { isoMondayOf as be, isoWeekOf as xe, weekBoundAsDay as Se } from "../../utilities/functions/isoWeek.js";
25
- import { BB_CALENDAR_PT as u } from "./types.js";
26
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, inject as Ce, mergeProps as b, normalizeClass as x, openBlock as S, provide as we, proxyRefs as Te, ref as Ee, renderList as C, renderSlot as w, resolveDynamicComponent as De, toDisplayString as T, unref as E, useAttrs as Oe, watch as ke, withCtx as D, withKeys as O, withModifiers as k } from "vue";
9
+ import { isCoarseType as c, isLabelType as te } from "../../types/DatePickerType.js";
10
+ import { useId as ne } from "../../composables/useId.js";
11
+ import { useOwnModel as re } from "../../composables/useOwnModel.js";
12
+ import { useLocale as ie } from "../../composables/useLocale.js";
13
+ import { usePassthrough as ae } from "../../composables/usePassthrough.js";
14
+ import l from "../BbBaseButton/BbBaseButton.vue.js";
15
+ import oe from "../CommonTimeSelector/CommonTimeSelector.vue.js";
16
+ import se from "../Transitions/ScaleFade.vue.js";
17
+ import ce from "../Transitions/Slide.vue.js";
18
+ import le from "./CalendarMonthPanel.vue.js";
19
+ import ue from "./CalendarYearPanel.vue.js";
20
+ import { checkCalendarProps as de, useCalendarHost as fe } from "./calendarHost.js";
21
+ import { CALENDAR_GRID as u, useCalendarGrid as pe } from "./useCalendarGrid.js";
22
+ import { useDayGrid as me } from "./useDayGrid.js";
23
+ import { longDateOf as he, useDayjsLocale as ge, weekSpanOf as _e, weekStartOf as ve } from "./useDayjsLocale.js";
24
+ import { isoMondayOf as ye, isoWeekOf as be, weekBoundAsDay as xe } from "../../utilities/functions/isoWeek.js";
25
+ import { BB_CALENDAR_PT as Se } from "./types.js";
26
+ import { useInternalIcon as d } from "../../composables/useInternalIcon.js";
27
+ import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, inject as Ce, mergeProps as x, normalizeClass as S, openBlock as C, provide as we, proxyRefs as Te, ref as Ee, renderList as w, renderSlot as T, resolveDynamicComponent as De, toDisplayString as E, unref as D, useAttrs as Oe, watch as O, withCtx as k, withKeys as A, withModifiers as j } from "vue";
27
28
  // src/components/BbCalendar/BbCalendar.vue?vue&type=script&setup=true&lang.ts
28
- var Ae = ["role"], je = {
29
+ var ke = ["role"], Ae = {
29
30
  "aria-live": "polite",
30
31
  class: "bb-sr-only"
31
- }, Me = {
32
+ }, je = {
32
33
  "aria-live": "polite",
33
34
  class: "bb-sr-only"
34
- }, Ne = { class: "bb-calendar__body" }, Pe = { class: "bb-calendar__panes" }, Fe = ["inert"], Ie = { class: "bb-sr-only" }, Le = {
35
+ }, Me = { class: "bb-calendar__body" }, Ne = { class: "bb-calendar__panes" }, Pe = ["inert"], Fe = { class: "bb-sr-only" }, Ie = {
35
36
  key: 1,
36
37
  "aria-hidden": "true",
37
38
  class: "bb-calendar__arrow-spacer"
38
- }, Re = {
39
+ }, Le = {
39
40
  key: 2,
40
41
  class: "bb-calendar__nav-center"
41
- }, ze = {
42
+ }, Re = {
42
43
  key: 3,
43
44
  class: "bb-calendar__caption"
44
- }, Be = { class: "bb-sr-only" }, Ve = {
45
+ }, ze = { class: "bb-sr-only" }, Be = {
45
46
  key: 5,
46
47
  "aria-hidden": "true",
47
48
  class: "bb-calendar__arrow-spacer"
48
- }, He = { class: "bb-calendar__content" }, Ue = [
49
+ }, Ve = { class: "bb-calendar__content" }, He = [
49
50
  "id",
50
51
  "aria-label",
51
52
  "inert",
52
53
  "onKeydown",
53
54
  "onMouseleave",
54
55
  "onMouseover"
55
- ], We = {
56
+ ], Ue = {
56
57
  class: "bb-calendar__header-container",
57
58
  role: "row"
58
- }, Ge = {
59
+ }, We = {
59
60
  key: 0,
60
61
  class: "bb-calendar__cell-column-header bb-calendar__week-number-header",
61
62
  role: "columnheader"
62
- }, Ke = { class: "bb-sr-only" }, qe = ["aria-label"], Je = ["aria-label"], Ye = ["aria-current", "aria-selected"], Xe = [
63
+ }, Ge = { class: "bb-sr-only" }, Ke = ["aria-label"], qe = ["aria-label"], Je = ["aria-current", "aria-selected"], Ye = [
63
64
  "aria-label",
64
65
  "data-date",
65
66
  "disabled",
66
67
  "tabindex",
67
68
  "onClick"
68
- ], Ze = { class: "bb-calendar__day-append" }, Qe = {
69
+ ], Xe = { class: "bb-calendar__day-append" }, Ze = {
69
70
  key: 0,
70
71
  "aria-live": "polite",
71
72
  class: "bb-sr-only",
72
73
  role: "status"
73
- }, $e = ["id"], A = /*@__PURE__*/ y({
74
+ }, Qe = ["id"], M = /*@__PURE__*/ b({
74
75
  inheritAttrs: !1,
75
76
  __name: "BbCalendar",
76
77
  props: {
@@ -163,34 +164,34 @@ var Ae = ["role"], je = {
163
164
  "grid-pick",
164
165
  "time-pick"
165
166
  ],
166
- setup(A, { emit: et }) {
167
- let tt = A, nt = et, j = tt, M = nt, { model: N, set: P } = ie(j, "modelValue", (e, t) => M(e, t), () => j.range || j.multiple ? [] : null);
167
+ setup(M, { emit: $e }) {
168
+ let et = M, tt = $e, nt = d("next", n), rt = d("prev", t), N = et, P = tt, { model: F, set: I } = re(N, "modelValue", (e, t) => P(e, t), () => N.range || N.multiple ? [] : null);
168
169
  process.env.NODE_ENV !== "production" && i("BbCalendar", r("BbCalendar"));
169
- let F = Oe(), rt = (e, t = "") => `${o(e)}${t}`, I = oe({
170
+ let L = Oe(), R = (e, t = "") => `${o(e)}${t}`, z = ae({
170
171
  component: "BbCalendar",
171
- props: j,
172
- parts: u.parts,
173
- states: u.states,
174
- active: { disabled: () => !!j.disabled },
175
- attrs: F
176
- }), it = f(() => F["aria-label"] != null || F["aria-labelledby"] != null), L = (e) => ({
172
+ props: N,
173
+ parts: Se.parts,
174
+ states: Se.states,
175
+ active: { disabled: () => !!N.disabled },
176
+ attrs: L
177
+ }), it = p(() => L["aria-label"] != null || L["aria-labelledby"] != null), B = (e) => ({
177
178
  outside: e.outside,
178
179
  today: e.today,
179
180
  inRange: e.middle,
180
181
  selected: e.selected,
181
182
  rangeStart: e.first,
182
183
  rangeEnd: e.last,
183
- disabled: j.disabled || e.disabled || void 0,
184
+ disabled: N.disabled || e.disabled || void 0,
184
185
  highlighted: e.current
185
- }), R = a();
186
- _e();
187
- let z = f(() => j.type === "datetime"), at = f(() => j.floating || ne(j.type)), B = f(() => j.type === "week"), ot = (e) => {
188
- let t = ge(e.original, R.locale);
189
- if (B.value) {
190
- let n = be(e.original);
191
- t += `, ${H("datePicker.weekSpan", String(xe(n).week), ve(n, R.locale)).value}`;
186
+ }), V = a();
187
+ ge();
188
+ let H = p(() => N.type === "datetime"), at = p(() => N.floating || te(N.type)), U = p(() => N.type === "week"), ot = (e) => {
189
+ let t = he(e.original, V.locale);
190
+ if (U.value) {
191
+ let n = ye(e.original);
192
+ t += `, ${G("datePicker.weekSpan", String(be(n).week), _e(n, V.locale)).value}`;
192
193
  }
193
- return e.selected && (t += `, ${H("datePicker.selectedLabel").value}`), t;
194
+ return e.selected && (t += `, ${G("datePicker.selectedLabel").value}`), t;
194
195
  }, st = (e) => {
195
196
  let t = e[0];
196
197
  return {
@@ -202,34 +203,34 @@ var Ae = ["role"], je = {
202
203
  }, ct = (e) => {
203
204
  let t = e[0];
204
205
  return {
205
- "bb-calendar__week--selected": t.selected && !j.range,
206
+ "bb-calendar__week--selected": t.selected && !N.range,
206
207
  "bb-calendar__week--range-start": t.first,
207
208
  "bb-calendar__week--range-end": t.last,
208
209
  "bb-calendar__week--in-range": t.middle,
209
210
  "bb-calendar__week--preview": t.preview,
210
211
  "bb-calendar__week--preview-end": t.previewEnd,
211
- "bb-calendar__week--disabled": j.disabled || e.every((e) => e.disabled)
212
+ "bb-calendar__week--disabled": N.disabled || e.every((e) => e.disabled)
212
213
  };
213
- }, V = pe();
214
- V || fe("BbCalendar", j);
215
- let { t: H } = ae(), U = `bcal-${re().id.value}`, W = f(() => j.activeSegment ?? G.value), G = Ee("start"), lt = (e) => {
216
- G.value = e, M("update:activeSegment", e);
217
- }, ut = f(() => te(j.type) ? j.min : B.value ? Se(j.min, "min") : j.min?.slice(0, 10)), dt = f(() => te(j.type) ? j.max : B.value ? Se(j.max, "max") : j.max?.slice(0, 10)), ft = f(() => (j.range || j.multiple) && !Array.isArray(N.value) ? [] : N.value), K = (e) => +(e === "end"), q = (e) => {
218
- let t = N.value;
219
- return t == null ? null : Array.isArray(t) ? t[K(e)] ?? null : e === "start" ? t : null;
220
- }, pt = (e) => {
221
- let t = j.time;
214
+ }, W = fe();
215
+ W || de("BbCalendar", N);
216
+ let { t: G } = ie(), K = `bcal-${ne().id.value}`, q = p(() => N.activeSegment ?? lt.value), lt = Ee("start"), ut = (e) => {
217
+ lt.value = e, P("update:activeSegment", e);
218
+ }, dt = p(() => c(N.type) ? N.min : U.value ? xe(N.min, "min") : N.min?.slice(0, 10)), ft = p(() => c(N.type) ? N.max : U.value ? xe(N.max, "max") : N.max?.slice(0, 10)), pt = p(() => (N.range || N.multiple) && !Array.isArray(F.value) ? [] : F.value), mt = (e) => +(e === "end"), J = (e) => {
219
+ let t = F.value;
220
+ return t == null ? null : Array.isArray(t) ? t[mt(e)] ?? null : e === "start" ? t : null;
221
+ }, ht = (e) => {
222
+ let t = N.time;
222
223
  if (t != null) {
223
- if (Array.isArray(t)) return t[K(e)] ?? null;
224
+ if (Array.isArray(t)) return t[mt(e)] ?? null;
224
225
  if (e === "start" && typeof t == "string") return t;
225
226
  }
226
- if (j.floating) return null;
227
- let n = q(e);
227
+ if (N.floating) return null;
228
+ let n = J(e);
228
229
  if (!n) return null;
229
230
  let r = s(n);
230
- return r.isValid() ? r.format(j.seconds ? "HH:mm:ss" : "HH:mm") : null;
231
- }, J = (e) => {
232
- let t = pt(e);
231
+ return r.isValid() ? r.format(N.seconds ? "HH:mm:ss" : "HH:mm") : null;
232
+ }, Y = (e) => {
233
+ let t = ht(e);
233
234
  if (!t) return null;
234
235
  let [n = "", r = "", i = ""] = t.split(":");
235
236
  return {
@@ -237,59 +238,59 @@ var Ae = ["role"], je = {
237
238
  minute: r,
238
239
  second: i
239
240
  };
240
- }, mt = (e, t) => {
241
- let n = s(e, { floating: j.floating });
241
+ }, gt = (e, t) => {
242
+ let n = s(e, { floating: N.floating });
242
243
  if (!n.isValid()) return null;
243
- let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a = j.seconds && t?.second ? parseInt(t.second, 10) : 0, o = n.hour(r).minute(i).second(a).millisecond(0);
244
+ let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a = N.seconds && t?.second ? parseInt(t.second, 10) : 0, o = n.hour(r).minute(i).second(a).millisecond(0);
244
245
  return {
245
246
  value: ee(o, {
246
- floating: j.floating,
247
- utc: j.utc
247
+ floating: N.floating,
248
+ utc: N.utc
248
249
  }),
249
- time: j.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
250
+ time: N.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
250
251
  };
251
- }, ht = () => ({
252
+ }, _t = () => ({
252
253
  start: {
253
- date: q("start"),
254
- time: J("start")
254
+ date: J("start"),
255
+ time: Y("start")
255
256
  },
256
257
  end: {
257
- date: q("end"),
258
- time: J("end")
258
+ date: J("end"),
259
+ time: Y("end")
259
260
  }
260
- }), Y = (e) => {
261
- if (j.range) {
261
+ }), vt = (e) => {
262
+ if (N.range) {
262
263
  let t = [], n = [];
263
264
  for (let r of ["start", "end"]) {
264
265
  let i = e[r];
265
266
  if (!i.date) continue;
266
- let a = mt(i.date, i.time);
267
+ let a = gt(i.date, i.time);
267
268
  a && (t.push(a.value), n.push(a.time));
268
269
  }
269
- P(t), M("update:time", n);
270
+ I(t), P("update:time", n);
270
271
  return;
271
272
  }
272
273
  let t = e.start;
273
274
  if (!t.date) {
274
- P(null), M("update:time", null);
275
+ I(null), P("update:time", null);
275
276
  return;
276
277
  }
277
- let n = mt(t.date, t.time);
278
- P(n ? n.value : null), M("update:time", n ? n.time : null);
279
- }, gt = (e) => {
280
- if (j.range && e === null && (e = []), M("grid-pick", e), !z.value) {
281
- P(e);
278
+ let n = gt(t.date, t.time);
279
+ I(n ? n.value : null), P("update:time", n ? n.time : null);
280
+ }, yt = (e) => {
281
+ if (N.range && e === null && (e = []), P("grid-pick", e), !H.value) {
282
+ I(e);
282
283
  return;
283
284
  }
284
285
  if (e === null) {
285
- P(null), M("update:time", null);
286
+ I(null), P("update:time", null);
286
287
  return;
287
288
  }
288
- let t = ht();
289
- Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e, Y(t);
290
- }, _t = f(() => !!q(W.value)), X = f(() => J(W.value)), vt = f(() => X.value?.hour ?? ""), yt = f(() => X.value?.minute ?? ""), bt = f(() => X.value?.second ?? ""), xt = f(() => ""), St = (e) => parseInt(e.slice(0, 2), 10) * 60 + parseInt(e.slice(3, 5), 10), Z = f(() => {
291
- if (!z.value) return {};
292
- let e = q(W.value);
289
+ let t = _t();
290
+ Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e, vt(t);
291
+ }, bt = p(() => !!J(q.value)), X = p(() => Y(q.value)), xt = p(() => X.value?.hour ?? ""), St = p(() => X.value?.minute ?? ""), Ct = p(() => X.value?.second ?? ""), wt = p(() => ""), Tt = (e) => parseInt(e.slice(0, 2), 10) * 60 + parseInt(e.slice(3, 5), 10), Z = p(() => {
292
+ if (!H.value) return {};
293
+ let e = J(q.value);
293
294
  if (!e) return {};
294
295
  let t = s(e).format("YYYY-MM-DD"), n = (e) => {
295
296
  if (!e || e.length <= 10) return;
@@ -297,12 +298,12 @@ var Ae = ["role"], je = {
297
298
  return n.isValid() && n.format("YYYY-MM-DD") === t ? n.format("HH:mm") : void 0;
298
299
  };
299
300
  return {
300
- min: n(j.min),
301
- max: n(j.max)
301
+ min: n(N.min),
302
+ max: n(N.max)
302
303
  };
303
- }), Ct = (e) => {
304
- if (M("time-pick", e), !z.value) return;
305
- let t = W.value, n = ht();
304
+ }), Et = (e) => {
305
+ if (P("time-pick", e), !H.value) return;
306
+ let t = q.value, n = _t();
306
307
  if (!n[t].date) return;
307
308
  let r = n[t].time ? { ...n[t].time } : {
308
309
  hour: "",
@@ -313,39 +314,39 @@ var Ae = ["role"], je = {
313
314
  let t = r.hour ? parseInt(r.hour, 10) : 0, n = e.value === "PM";
314
315
  n && t < 12 && (t += 12), !n && t >= 12 && (t -= 12), r.hour = String(t).padStart(2, "0");
315
316
  } else r[e.unit] = e.value;
316
- r.hour ||= "00", r.minute ||= "00", j.seconds && !r.second && (r.second = "00");
317
- let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } = Z.value, s = a && i < St(a) ? a : o && i > St(o) ? o : null;
318
- s && ([r.hour, r.minute] = s.split(":"), j.seconds && (r.second = "00")), n[t].time = r, Y(n);
319
- }, wt = f(() => {
320
- if (!z.value) return;
317
+ r.hour ||= "00", r.minute ||= "00", N.seconds && !r.second && (r.second = "00");
318
+ let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } = Z.value, s = a && i < Tt(a) ? a : o && i > Tt(o) ? o : null;
319
+ s && ([r.hour, r.minute] = s.split(":"), N.seconds && (r.second = "00")), n[t].time = r, vt(n);
320
+ }, Dt = p(() => {
321
+ if (!H.value) return;
321
322
  let e = [44, 44];
322
- return j.seconds && e.push(44), j.ampm && e.push(48), { "--rail-w": `${33 + e.reduce((e, t) => e + t, 0) + (e.length - 1) * 6}px` };
323
+ return N.seconds && e.push(44), N.ampm && e.push(48), { "--rail-w": `${33 + e.reduce((e, t) => e + t, 0) + (e.length - 1) * 6}px` };
323
324
  });
324
- ke(() => N.value, (e) => {
325
- j.range && z.value && j.activeSegment == null && Array.isArray(e) && e.length === 2 && lt("end");
325
+ O(() => F.value, (e) => {
326
+ N.range && H.value && N.activeSegment == null && Array.isArray(e) && e.length === 2 && ut("end");
326
327
  });
327
- let Tt = {
328
- props: j,
329
- passthrough: I,
330
- firstDayOfWeek: () => B.value ? 1 : j.firstDayOfWeek ?? ye(R.locale),
328
+ let Ot = {
329
+ props: N,
330
+ passthrough: z,
331
+ firstDayOfWeek: () => U.value ? 1 : N.firstDayOfWeek ?? ve(V.locale),
331
332
  floating: () => at.value,
332
- min: () => ut.value,
333
- max: () => dt.value,
334
- modelValue: () => ft.value,
335
- pick: (e) => gt(e)
336
- }, Q = me(Tt);
337
- we(l, Q);
333
+ min: () => dt.value,
334
+ max: () => ft.value,
335
+ modelValue: () => pt.value,
336
+ pick: (e) => yt(e)
337
+ }, Q = pe(Ot);
338
+ we(u, Q);
338
339
  let $ = Te(Q);
339
- V && ke(V.open, (e) => {
340
+ W && O(W.open, (e) => {
340
341
  e || Q.resetStatus();
341
342
  });
342
- let Et = y({
343
+ let kt = b({
343
344
  name: "BbCalendarDayGridScope",
344
345
  slots: Object,
345
346
  setup() {
346
- let e = Ce(l);
347
- return { days: Te(he({
348
- ...Tt,
347
+ let e = Ce(u);
348
+ return { days: Te(me({
349
+ ...Ot,
349
350
  cursor: e.cursor,
350
351
  panes: e.panes,
351
352
  system: e.system,
@@ -357,68 +358,68 @@ var Ae = ["role"], je = {
357
358
  render() {
358
359
  return this.$slots.default?.({ days: this.days });
359
360
  }
360
- }), Dt = y({
361
+ }), At = b({
361
362
  name: "BbCalendarNoDayGrid",
362
363
  slots: Object,
363
364
  render() {
364
365
  return this.$slots.default?.({ days: null });
365
366
  }
366
367
  });
367
- return (r, i) => (S(), h("div", b({
368
+ return (t, n) => (C(), g("div", x({
368
369
  class: ["bb-calendar", {
369
- "bb-calendar--datetime": z.value,
370
- "bb-calendar--seconds": z.value && A.seconds,
371
- "bb-calendar--ampm": z.value && A.ampm,
372
- "bb-calendar--disabled": A.disabled,
373
- "bb-calendar--months": E($).monthCount > 1,
374
- "bb-calendar--week": B.value
370
+ "bb-calendar--datetime": H.value,
371
+ "bb-calendar--seconds": H.value && M.seconds,
372
+ "bb-calendar--ampm": H.value && M.ampm,
373
+ "bb-calendar--disabled": M.disabled,
374
+ "bb-calendar--months": D($).monthCount > 1,
375
+ "bb-calendar--week": U.value
375
376
  }],
376
377
  role: it.value ? "group" : void 0,
377
- style: wt.value
378
- }, E(I).rootAttrs), [g("div", { class: x(["bb-calendar__grid", E($).isCoarse ? `bb-calendar__grid--unit-${E($).homeMode}` : void 0]) }, [
379
- g("span", je, T(E($).formattedYear), 1),
380
- g("div", Me, T(E($).cursorAnnouncement), 1),
381
- g("div", Ne, [(S(), p(De(E($).isCoarse ? E(Dt) : E(Et)), null, {
382
- default: D(({ days: a }) => [g("div", Pe, [(S(!0), h(d, null, C(E($).panes, (o, s) => (S(), h("div", {
383
- key: s,
384
- class: x(["bb-calendar__pane", { "bb-calendar__pane--idle": s > 0 && E($).mode !== "day" }]),
385
- inert: s > 0 && E($).mode !== "day" || void 0
386
- }, [A.type === "year" ? m("", !0) : (S(), h("div", b({
378
+ style: Dt.value
379
+ }, D(z).rootAttrs), [_("div", { class: S(["bb-calendar__grid", D($).isCoarse ? `bb-calendar__grid--unit-${D($).homeMode}` : void 0]) }, [
380
+ _("span", Ae, E(D($).formattedYear), 1),
381
+ _("div", je, E(D($).cursorAnnouncement), 1),
382
+ _("div", Me, [(C(), m(De(D($).isCoarse ? D(At) : D(kt)), null, {
383
+ default: k(({ days: r }) => [_("div", Ne, [(C(!0), g(f, null, w(D($).panes, (i, a) => (C(), g("div", {
384
+ key: a,
385
+ class: S(["bb-calendar__pane", { "bb-calendar__pane--idle": a > 0 && D($).mode !== "day" }]),
386
+ inert: a > 0 && D($).mode !== "day" || void 0
387
+ }, [M.type === "year" ? h("", !0) : (C(), g("div", x({
387
388
  key: 0,
388
389
  class: "bb-calendar__header"
389
- }, { ref_for: !0 }, E(I).header), [
390
- s === 0 ? (S(), p(c, b({
390
+ }, { ref_for: !0 }, D(z).header), [
391
+ a === 0 ? (C(), m(l, x({
391
392
  key: 0,
392
- "aria-label": E($).previousPageLabel,
393
+ "aria-label": D($).previousPageLabel,
393
394
  class: "bb-calendar__arrow",
394
- disabled: A.disabled || E($).mode !== E($).homeMode || !E($).canPagePrevious,
395
- onClick: E($).goToPreviousPage
396
- }, { ref_for: !0 }, E(I).part("arrow", { disabled: A.disabled || E($).mode !== E($).homeMode || !E($).canPagePrevious || void 0 })), {
397
- default: D(() => [v(e, {
398
- icon: E(t),
395
+ disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPagePrevious,
396
+ onClick: D($).goToPreviousPage
397
+ }, { ref_for: !0 }, D(z).part("arrow", { disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPagePrevious || void 0 })), {
398
+ default: k(() => [y(e, {
399
+ icon: D(rt),
399
400
  size: "16"
400
- }, null, 8, ["icon"]), g("span", Ie, T(E($).previousPageLabel), 1)]),
401
+ }, null, 8, ["icon"]), _("span", Fe, E(D($).previousPageLabel), 1)]),
401
402
  _: 1
402
403
  }, 16, [
403
404
  "aria-label",
404
405
  "disabled",
405
406
  "onClick"
406
- ])) : (S(), h("span", Le)),
407
- s === 0 ? (S(), h("div", Re, [A.type === "month" ? m("", !0) : (S(), p(c, b({
407
+ ])) : (C(), g("span", Ie)),
408
+ a === 0 ? (C(), g("div", Le, [M.type === "month" ? h("", !0) : (C(), m(l, x({
408
409
  key: 0,
409
410
  ref_for: !0,
410
- ref: E($).setMonthHeadingButton,
411
- "aria-expanded": E($).mode === "month",
412
- "aria-label": E($).monthHeadingLabel,
413
- class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": E($).mode === "month" }],
414
- disabled: A.disabled,
415
- onClick: i[0] ||= (e) => E($).toggleMode("month"),
416
- onKeydown: E($).onMonthHeadingKeydown
417
- }, { ref_for: !0 }, E(I).part("month", {
418
- active: E($).mode === "month",
419
- disabled: A.disabled || void 0
411
+ ref: D($).setMonthHeadingButton,
412
+ "aria-expanded": D($).mode === "month",
413
+ "aria-label": D($).monthHeadingLabel,
414
+ class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": D($).mode === "month" }],
415
+ disabled: M.disabled,
416
+ onClick: n[0] ||= (e) => D($).toggleMode("month"),
417
+ onKeydown: D($).onMonthHeadingKeydown
418
+ }, { ref_for: !0 }, D(z).part("month", {
419
+ active: D($).mode === "month",
420
+ disabled: M.disabled || void 0
420
421
  })), {
421
- default: D(() => [_(T(E($).formattedMonth), 1)]),
422
+ default: k(() => [v(E(D($).formattedMonth), 1)]),
422
423
  _: 1
423
424
  }, 16, [
424
425
  "aria-expanded",
@@ -426,20 +427,20 @@ var Ae = ["role"], je = {
426
427
  "class",
427
428
  "disabled",
428
429
  "onKeydown"
429
- ])), v(c, b({
430
+ ])), y(l, x({
430
431
  ref_for: !0,
431
- ref: E($).setYearHeadingButton,
432
- "aria-expanded": E($).mode === "year",
433
- "aria-label": E($).yearHeadingLabel,
434
- class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": E($).mode === "year" }],
435
- disabled: A.disabled || !E($).canOpenYearPanel,
436
- onClick: i[1] ||= (e) => E($).toggleMode("year"),
437
- onKeydown: E($).onYearHeadingKeydown
438
- }, { ref_for: !0 }, E(I).part("year", {
439
- active: E($).mode === "year",
440
- disabled: A.disabled || !E($).canOpenYearPanel || void 0
432
+ ref: D($).setYearHeadingButton,
433
+ "aria-expanded": D($).mode === "year",
434
+ "aria-label": D($).yearHeadingLabel,
435
+ class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": D($).mode === "year" }],
436
+ disabled: M.disabled || !D($).canOpenYearPanel,
437
+ onClick: n[1] ||= (e) => D($).toggleMode("year"),
438
+ onKeydown: D($).onYearHeadingKeydown
439
+ }, { ref_for: !0 }, D(z).part("year", {
440
+ active: D($).mode === "year",
441
+ disabled: M.disabled || !D($).canOpenYearPanel || void 0
441
442
  })), {
442
- default: D(() => [_(T(E($).formattedYear), 1)]),
443
+ default: k(() => [v(E(D($).formattedYear), 1)]),
443
444
  _: 1
444
445
  }, 16, [
445
446
  "aria-expanded",
@@ -447,74 +448,74 @@ var Ae = ["role"], je = {
447
448
  "class",
448
449
  "disabled",
449
450
  "onKeydown"
450
- ])])) : (S(), h("span", ze, T(E($).monthYearOf(o)), 1)),
451
- s === E($).monthCount - 1 ? (S(), p(c, b({
451
+ ])])) : (C(), g("span", Re, E(D($).monthYearOf(i)), 1)),
452
+ a === D($).monthCount - 1 ? (C(), m(l, x({
452
453
  key: 4,
453
- "aria-label": E($).nextPageLabel,
454
+ "aria-label": D($).nextPageLabel,
454
455
  class: "bb-calendar__arrow",
455
- disabled: A.disabled || E($).mode !== E($).homeMode || !E($).canPageNext,
456
- onClick: E($).goToNextPage
457
- }, { ref_for: !0 }, E(I).part("arrow", { disabled: A.disabled || E($).mode !== E($).homeMode || !E($).canPageNext || void 0 })), {
458
- default: D(() => [v(e, {
459
- icon: E(n),
456
+ disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPageNext,
457
+ onClick: D($).goToNextPage
458
+ }, { ref_for: !0 }, D(z).part("arrow", { disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPageNext || void 0 })), {
459
+ default: k(() => [y(e, {
460
+ icon: D(nt),
460
461
  size: "16"
461
- }, null, 8, ["icon"]), g("span", Be, T(E($).nextPageLabel), 1)]),
462
+ }, null, 8, ["icon"]), _("span", ze, E(D($).nextPageLabel), 1)]),
462
463
  _: 1
463
464
  }, 16, [
464
465
  "aria-label",
465
466
  "disabled",
466
467
  "onClick"
467
- ])) : (S(), h("span", Ve))
468
- ], 16)), g("div", He, [a ? (S(), h("div", {
468
+ ])) : (C(), g("span", Be))
469
+ ], 16)), _("div", Ve, [r ? (C(), g("div", {
469
470
  key: 0,
470
- id: s === 0 ? U : `${U}-${s}`,
471
+ id: a === 0 ? K : `${K}-${a}`,
471
472
  ref_for: !0,
472
- ref: s === 0 ? a.setCalendarEl : void 0,
473
- "aria-label": E($).monthCount > 1 ? E($).monthYearOf(o) : E(H)("datePicker.calendarLabel").value,
474
- class: x(["bb-calendar__days-selector", { "bb-calendar__days-selector--hidden": E($).mode !== "day" }]),
475
- inert: E($).mode !== "day",
473
+ ref: a === 0 ? r.setCalendarEl : void 0,
474
+ "aria-label": D($).monthCount > 1 ? D($).monthYearOf(i) : D(G)("datePicker.calendarLabel").value,
475
+ class: S(["bb-calendar__days-selector", { "bb-calendar__days-selector--hidden": D($).mode !== "day" }]),
476
+ inert: D($).mode !== "day",
476
477
  role: "grid",
477
478
  onKeydown: [
478
- a.onDayTypeaheadKeydown,
479
- O(k(a.onArrowDown, ["prevent"]), ["down"]),
480
- O(k(a.onEnd, ["prevent"]), ["end"]),
481
- O(k(a.onHome, ["prevent"]), ["home"]),
482
- O(k(a.onInlineArrow, ["prevent"]), ["left"]),
483
- O(k(a.onPageDown, ["prevent"]), ["page-down"]),
484
- O(k(a.onPageUp, ["prevent"]), ["page-up"]),
485
- O(k(a.onInlineArrow, ["prevent"]), ["right"]),
486
- O(k(a.onArrowUp, ["prevent"]), ["up"])
479
+ r.onDayTypeaheadKeydown,
480
+ A(j(r.onArrowDown, ["prevent"]), ["down"]),
481
+ A(j(r.onEnd, ["prevent"]), ["end"]),
482
+ A(j(r.onHome, ["prevent"]), ["home"]),
483
+ A(j(r.onInlineArrow, ["prevent"]), ["left"]),
484
+ A(j(r.onPageDown, ["prevent"]), ["page-down"]),
485
+ A(j(r.onPageUp, ["prevent"]), ["page-up"]),
486
+ A(j(r.onInlineArrow, ["prevent"]), ["right"]),
487
+ A(j(r.onArrowUp, ["prevent"]), ["up"])
487
488
  ],
488
- onMouseleave: a.onGridMouseleave,
489
- onMouseover: a.onGridMouseover
490
- }, [v(le, {
491
- direction: a.direction,
489
+ onMouseleave: r.onGridMouseleave,
490
+ onMouseover: r.onGridMouseover
491
+ }, [y(ce, {
492
+ direction: r.direction,
492
493
  gap: 30
493
494
  }, {
494
- default: D(() => [(S(), h("div", {
495
- key: E($).system ? o.format("YYYY-MM-DD") : o.month(),
495
+ default: k(() => [(C(), g("div", {
496
+ key: D($).system ? i.format("YYYY-MM-DD") : i.month(),
496
497
  class: "bb-calendar__month-grid",
497
498
  role: "none"
498
- }, [g("div", We, [B.value ? (S(), h("div", Ge, [g("span", Ke, T(E(H)("datePicker.weekColumnLabel").value), 1)])) : m("", !0), (S(!0), h(d, null, C(a.mappedHeaders, (e) => (S(), h("div", b({
499
+ }, [_("div", Ue, [U.value ? (C(), g("div", We, [_("span", Ge, E(D(G)("datePicker.weekColumnLabel").value), 1)])) : h("", !0), (C(!0), g(f, null, w(r.mappedHeaders, (e) => (C(), g("div", x({
499
500
  key: e.id,
500
501
  "aria-label": e.accessibleLabel,
501
502
  class: "bb-calendar__cell-column-header",
502
503
  role: "columnheader"
503
- }, { ref_for: !0 }, E(I).cellColumnHeader), T(e.label), 17, qe))), 128))]), (S(!0), h(d, null, C(a.months[s].weeks, (e) => (S(), h("div", b({
504
+ }, { ref_for: !0 }, D(z).cellColumnHeader), E(e.label), 17, Ke))), 128))]), (C(!0), g(f, null, w(r.months[a].weeks, (e) => (C(), g("div", x({
504
505
  key: e[0].id,
505
- class: ["bb-calendar__week", B.value ? ct(e) : void 0],
506
+ class: ["bb-calendar__week", U.value ? ct(e) : void 0],
506
507
  role: "row"
507
- }, { ref_for: !0 }, B.value ? E(I).part("week", st(e)) : void 0), [B.value ? (S(), h("div", b({
508
+ }, { ref_for: !0 }, U.value ? D(z).part("week", st(e)) : void 0), [U.value ? (C(), g("div", x({
508
509
  key: 0,
509
- "aria-label": E(H)("datePicker.weekNumber", String(a.weekNumberOf(e))).value,
510
+ "aria-label": D(G)("datePicker.weekNumber", String(r.weekNumberOf(e))).value,
510
511
  class: "bb-calendar__week-number",
511
512
  role: "rowheader"
512
- }, { ref_for: !0 }, E(I).part("weekNumber", st(e))), T(a.weekNumberOf(e)), 17, Je)) : m("", !0), (S(!0), h(d, null, C(e, (e) => (S(), h("div", b({
513
+ }, { ref_for: !0 }, D(z).part("weekNumber", st(e))), E(r.weekNumberOf(e)), 17, qe)) : h("", !0), (C(!0), g(f, null, w(e, (e) => (C(), g("div", x({
513
514
  key: e.id,
514
515
  "aria-current": e.today ? "date" : void 0,
515
516
  "aria-selected": e.selected,
516
517
  class: ["bb-calendar__day", {
517
- "bb-calendar__day--disabled": A.disabled || e.disabled,
518
+ "bb-calendar__day--disabled": M.disabled || e.disabled,
518
519
  "bb-calendar__day--first": e.first,
519
520
  "bb-calendar__day--highlighted": e.current,
520
521
  "bb-calendar__day--last": e.last,
@@ -527,15 +528,15 @@ var Ae = ["role"], je = {
527
528
  "bb-calendar__day--today": e.today
528
529
  }],
529
530
  role: "gridcell"
530
- }, { ref_for: !0 }, E(I).part("day", L(e))), [!e.void && !(e.outside && E($).monthCount > 1) ? (S(), h(d, { key: 0 }, [g("button", b({
531
+ }, { ref_for: !0 }, D(z).part("day", B(e))), [!e.void && !(e.outside && D($).monthCount > 1) ? (C(), g(f, { key: 0 }, [_("button", x({
531
532
  "aria-label": ot(e),
532
533
  class: "bb-calendar__day-button",
533
534
  "data-date": e.id,
534
- disabled: A.disabled || e.disabled,
535
+ disabled: M.disabled || e.disabled,
535
536
  tabindex: Number(e.current) - 1,
536
537
  type: "button",
537
- onClick: a.onButtonClick
538
- }, { ref_for: !0 }, E(I).part("dayButton", L(e))), [w(r.$slots, rt(e.id), {
538
+ onClick: r.onButtonClick
539
+ }, { ref_for: !0 }, D(z).part("dayButton", B(e))), [T(t.$slots, R(e.id), {
539
540
  first: e.first,
540
541
  item: e.id,
541
542
  label: e.label,
@@ -543,7 +544,7 @@ var Ae = ["role"], je = {
543
544
  middle: e.middle,
544
545
  outside: e.outside,
545
546
  selected: e.selected
546
- }, () => [w(r.$slots, "day", {
547
+ }, () => [T(t.$slots, "day", {
547
548
  first: e.first,
548
549
  item: e.id,
549
550
  label: e.label,
@@ -551,7 +552,7 @@ var Ae = ["role"], je = {
551
552
  middle: e.middle,
552
553
  outside: e.outside,
553
554
  selected: e.selected
554
- }, () => [_(T(e.label), 1)])])], 16, Xe), g("div", Ze, [w(r.$slots, rt(e.id, ":append"), {
555
+ }, () => [v(E(e.label), 1)])])], 16, Ye), _("div", Xe, [T(t.$slots, R(e.id, ":append"), {
555
556
  first: e.first,
556
557
  item: e.id,
557
558
  label: e.label,
@@ -559,7 +560,7 @@ var Ae = ["role"], je = {
559
560
  middle: e.middle,
560
561
  outside: e.outside,
561
562
  selected: e.selected
562
- }, () => [w(r.$slots, "day:append", {
563
+ }, () => [T(t.$slots, "day:append", {
563
564
  first: e.first,
564
565
  item: e.id,
565
566
  label: e.label,
@@ -567,38 +568,38 @@ var Ae = ["role"], je = {
567
568
  middle: e.middle,
568
569
  outside: e.outside,
569
570
  selected: e.selected
570
- })])])], 64)) : m("", !0)], 16, Ye))), 128))], 16))), 128))]))]),
571
+ })])])], 64)) : h("", !0)], 16, Je))), 128))], 16))), 128))]))]),
571
572
  _: 2
572
- }, 1032, ["direction"]), s === 0 ? (S(), h("div", Qe, T(a.rangePending ? E(H)("datePicker.selectEndDate").value : ""), 1)) : m("", !0)], 42, Ue)) : m("", !0), s === 0 ? (S(), h(d, { key: 1 }, [v(ce, { duration: 150 }, {
573
- default: D(() => [E($).mode === "month" ? (S(), p(ue, { key: 0 })) : m("", !0)]),
573
+ }, 1032, ["direction"]), a === 0 ? (C(), g("div", Ze, E(r.rangePending ? D(G)("datePicker.selectEndDate").value : ""), 1)) : h("", !0)], 42, He)) : h("", !0), a === 0 ? (C(), g(f, { key: 1 }, [y(se, { duration: 150 }, {
574
+ default: k(() => [D($).mode === "month" ? (C(), m(le, { key: 0 })) : h("", !0)]),
574
575
  _: 1
575
- }), v(ce, { duration: 150 }, {
576
- default: D(() => [E($).mode === "year" ? (S(), p(de, { key: 0 })) : m("", !0)]),
576
+ }), y(se, { duration: 150 }, {
577
+ default: k(() => [D($).mode === "year" ? (C(), m(ue, { key: 0 })) : h("", !0)]),
577
578
  _: 1
578
- })], 64)) : m("", !0)])], 10, Fe))), 128))])]),
579
+ })], 64)) : h("", !0)])], 10, Pe))), 128))])]),
579
580
  _: 3
580
581
  }))]),
581
- g("div", {
582
- id: `${U}-status`,
582
+ _("div", {
583
+ id: `${K}-status`,
583
584
  "aria-atomic": "true",
584
585
  "aria-live": "polite",
585
586
  class: "bb-sr-only",
586
587
  role: "status"
587
- }, T(E($).modeAnnouncement), 9, $e)
588
- ], 2), z.value ? (S(), p(se, {
588
+ }, E(D($).modeAnnouncement), 9, Qe)
589
+ ], 2), H.value ? (C(), m(oe, {
589
590
  key: 0,
590
- ampm: A.ampm,
591
- disabled: A.disabled || A.readonly || !_t.value,
592
- hour: vt.value,
591
+ ampm: M.ampm,
592
+ disabled: M.disabled || M.readonly || !bt.value,
593
+ hour: xt.value,
593
594
  max: Z.value.max,
594
- meridiem: xt.value,
595
+ meridiem: wt.value,
595
596
  min: Z.value.min,
596
- minute: yt.value,
597
- passthrough: E(I),
598
- second: bt.value,
599
- seconds: A.seconds,
600
- step: A.step,
601
- onSelect: Ct
597
+ minute: St.value,
598
+ passthrough: D(z),
599
+ second: Ct.value,
600
+ seconds: M.seconds,
601
+ step: M.step,
602
+ onSelect: Et
602
603
  }, null, 8, [
603
604
  "ampm",
604
605
  "disabled",
@@ -611,7 +612,7 @@ var Ae = ["role"], je = {
611
612
  "second",
612
613
  "seconds",
613
614
  "step"
614
- ])) : m("", !0)], 16, Ae));
615
+ ])) : h("", !0)], 16, ke));
615
616
  }
616
617
  });
617
- export { A as default };
618
+ export { M as default };