bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.21

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 (350) hide show
  1. package/README.md +72 -33
  2. package/dist/ai/BbAccordion.md +3 -3
  3. package/dist/ai/BbAlert.md +9 -5
  4. package/dist/ai/BbAsterisk.md +17 -0
  5. package/dist/ai/BbAvatar.md +12 -3
  6. package/dist/ai/BbBadge.md +15 -10
  7. package/dist/ai/BbBadgeButton.md +16 -16
  8. package/dist/ai/BbBaseButton.md +16 -16
  9. package/dist/ai/BbBaseCheckbox.md +8 -8
  10. package/dist/ai/BbBaseCheckboxGroup.md +13 -13
  11. package/dist/ai/BbBaseCheckboxIcon.md +26 -9
  12. package/dist/ai/BbBaseColorInput.md +11 -11
  13. package/dist/ai/BbBaseDatePicker.md +6 -6
  14. package/dist/ai/BbBaseDatePickerInput.md +15 -15
  15. package/dist/ai/BbBaseInputContainer.md +12 -12
  16. package/dist/ai/BbBaseNumberInput.md +8 -8
  17. package/dist/ai/BbBaseRadio.md +5 -5
  18. package/dist/ai/BbBaseRadioGroup.md +7 -7
  19. package/dist/ai/BbBaseRadioIcon.md +25 -9
  20. package/dist/ai/BbBaseRating.md +5 -5
  21. package/dist/ai/BbBaseSelect.md +22 -21
  22. package/dist/ai/BbBaseSlider.md +9 -9
  23. package/dist/ai/BbBaseSwitch.md +8 -8
  24. package/dist/ai/BbBaseSwitchGroup.md +13 -13
  25. package/dist/ai/BbBaseSwitchIcon.md +28 -10
  26. package/dist/ai/BbBaseTag.md +10 -10
  27. package/dist/ai/BbBaseTextInput.md +9 -9
  28. package/dist/ai/BbBaseTextarea.md +9 -9
  29. package/dist/ai/BbBaseTimePickerInput.md +13 -13
  30. package/dist/ai/BbBreadcrumbs.md +2 -2
  31. package/dist/ai/BbButton.md +15 -15
  32. package/dist/ai/BbCheckbox.md +18 -17
  33. package/dist/ai/BbCheckboxGroup.md +15 -14
  34. package/dist/ai/BbCollapsible.md +11 -9
  35. package/dist/ai/BbColorInput.md +15 -15
  36. package/dist/ai/BbColorPalette.md +12 -6
  37. package/dist/ai/BbConfirm.md +12 -5
  38. package/dist/ai/BbDatePicker.md +13 -13
  39. package/dist/ai/BbDatePickerInput.md +20 -20
  40. package/dist/ai/BbDialog.md +78 -12
  41. package/dist/ai/BbDropdown.md +132 -22
  42. package/dist/ai/BbDropdownButton.md +12 -12
  43. package/dist/ai/BbDropdownGroup.md +1 -1
  44. package/dist/ai/BbDropzone.md +4 -4
  45. package/dist/ai/BbForm.md +49 -14
  46. package/dist/ai/BbIcon.md +6 -0
  47. package/dist/ai/BbIndicator.md +5 -5
  48. package/dist/ai/BbNumberInput.md +11 -11
  49. package/dist/ai/BbOffCanvas.md +90 -20
  50. package/dist/ai/BbPagination.md +3 -3
  51. package/dist/ai/BbPopover.md +32 -17
  52. package/dist/ai/BbProgress.md +7 -4
  53. package/dist/ai/BbRadio.md +16 -15
  54. package/dist/ai/BbRadioGroup.md +20 -17
  55. package/dist/ai/BbRating.md +11 -11
  56. package/dist/ai/BbSelect.md +138 -37
  57. package/dist/ai/BbSelectPopover.md +40 -41
  58. package/dist/ai/BbSlider.md +37 -22
  59. package/dist/ai/BbSmoothHeight.md +1 -1
  60. package/dist/ai/BbSwitch.md +25 -10
  61. package/dist/ai/BbSwitchGroup.md +17 -14
  62. package/dist/ai/BbTable.md +920 -109
  63. package/dist/ai/BbTabs.md +28 -14
  64. package/dist/ai/BbTabsList.md +1 -1
  65. package/dist/ai/BbTabsPanes.md +1 -1
  66. package/dist/ai/BbTabsRoot.md +10 -10
  67. package/dist/ai/BbTag.md +14 -14
  68. package/dist/ai/BbTextInput.md +16 -15
  69. package/dist/ai/BbTextarea.md +13 -13
  70. package/dist/ai/BbTimePicker.md +10 -10
  71. package/dist/ai/BbTimePickerInput.md +17 -17
  72. package/dist/ai/BbToast.md +1 -1
  73. package/dist/ai/BbToastPortal.md +1 -1
  74. package/dist/ai/BbTooltip.md +12 -10
  75. package/dist/ai/BbTree.md +1 -1
  76. package/dist/ai/ChipsBox.md +1 -1
  77. package/dist/ai/CommonInputWrapper.md +10 -10
  78. package/dist/ai/CommonPopover.md +6 -6
  79. package/dist/ai/FlatListBox.md +5 -5
  80. package/dist/ai/GroupedListBox.md +5 -5
  81. package/dist/ai/ListBox.md +4 -4
  82. package/dist/ai/OptionsContainer.md +4 -4
  83. package/dist/ai/changelog.json +128 -2
  84. package/dist/ai/components.json +917 -100
  85. package/dist/ai/composables/useBbConfig.md +72 -11
  86. package/dist/ai/composables/useConfirm.md +5 -3
  87. package/dist/ai/guides/ai-router.md +9 -4
  88. package/dist/ai/guides/component-picker.md +18 -18
  89. package/dist/ai/guides/design-language.md +14 -14
  90. package/dist/ai/guides/design-tokens.md +25 -18
  91. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  92. package/dist/ai/guides/icons-policy.md +11 -5
  93. package/dist/ai/guides/installation-and-plugin-setup.md +85 -23
  94. package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
  95. package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
  96. package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
  97. package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
  98. package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
  99. package/dist/ai/guides/migration/components/bb-rating.md +8 -2
  100. package/dist/ai/guides/migration/components/bb-select.md +5 -2
  101. package/dist/ai/guides/migration/components/bb-table.md +560 -28
  102. package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
  103. package/dist/ai/guides/migration/v2-to-v3.md +260 -89
  104. package/dist/ai/guides/ssr-prefill.md +120 -0
  105. package/dist/ai/index.md +10 -9
  106. package/dist/ai/recipes/inertia/approvals-inbox.md +0 -1
  107. package/dist/ai/recipes/inertia/inline-edit-workspace.md +0 -1
  108. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
  109. package/dist/ai/recipes/inertia/ownership-atlas.md +49 -29
  110. package/dist/ai/recipes/inertia/record-form.md +0 -1
  111. package/dist/ai/recipes/inertia/records-workspace.md +26 -8
  112. package/dist/ai/recipes/inertia/upload-center.md +0 -1
  113. package/dist/ai/recipes/nuxt/approvals-inbox.md +0 -1
  114. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +0 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
  116. package/dist/ai/recipes/nuxt/record-form.md +0 -1
  117. package/dist/ai/recipes/nuxt/records-workspace.md +26 -8
  118. package/dist/ai/recipes/nuxt/upload-center.md +0 -1
  119. package/dist/ai/recipes/vue/approvals-inbox.md +0 -1
  120. package/dist/ai/recipes/vue/inline-edit-workspace.md +0 -1
  121. package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
  122. package/dist/ai/recipes/vue/records-workspace.md +26 -8
  123. package/dist/ai/recipes/vue/upload-center.md +0 -1
  124. package/dist/ai/source/BbAlert.md +60 -2
  125. package/dist/ai/source/BbAvatar.md +3 -3
  126. package/dist/ai/source/BbBadge.md +60 -15
  127. package/dist/ai/source/BbBadgeButton.md +8 -2
  128. package/dist/ai/source/BbBaseButton.md +3 -1
  129. package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
  130. package/dist/ai/source/BbBaseDatePicker.md +3 -1
  131. package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
  132. package/dist/ai/source/BbBaseInputContainer.md +52 -1
  133. package/dist/ai/source/BbBaseRadioGroup.md +4 -0
  134. package/dist/ai/source/BbBaseRating.md +3 -1
  135. package/dist/ai/source/BbBaseSelect.md +71 -16
  136. package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
  137. package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
  138. package/dist/ai/source/BbBreadcrumbs.md +31 -0
  139. package/dist/ai/source/BbButton.md +51 -24
  140. package/dist/ai/source/BbCheckbox.md +15 -1
  141. package/dist/ai/source/BbCheckboxGroup.md +2 -1
  142. package/dist/ai/source/BbCollapsible.md +7 -1
  143. package/dist/ai/source/BbColorInput.md +3 -4
  144. package/dist/ai/source/BbColorPalette.md +3 -4
  145. package/dist/ai/source/BbDatePicker.md +5 -1
  146. package/dist/ai/source/BbDatePickerInput.md +5 -1
  147. package/dist/ai/source/BbDialog.md +175 -19
  148. package/dist/ai/source/BbDropdown.md +376 -69
  149. package/dist/ai/source/BbDropdownGroup.md +330 -59
  150. package/dist/ai/source/BbForm.md +93 -5
  151. package/dist/ai/source/BbIcon.md +46 -36
  152. package/dist/ai/source/BbNumberInput.md +3 -4
  153. package/dist/ai/source/BbOffCanvas.md +474 -194
  154. package/dist/ai/source/BbPopover.md +24 -17
  155. package/dist/ai/source/BbProgress.md +2 -2
  156. package/dist/ai/source/BbRadio.md +15 -1
  157. package/dist/ai/source/BbRadioGroup.md +3 -1
  158. package/dist/ai/source/BbSelect.md +50 -2
  159. package/dist/ai/source/BbSelectPopover.md +171 -23
  160. package/dist/ai/source/BbSlider.md +3 -4
  161. package/dist/ai/source/BbSwitch.md +15 -1
  162. package/dist/ai/source/BbSwitchGroup.md +8 -5
  163. package/dist/ai/source/BbTable.md +5092 -1446
  164. package/dist/ai/source/BbTabs.md +6 -7
  165. package/dist/ai/source/BbTabsList.md +6 -7
  166. package/dist/ai/source/BbTabsPanes.md +6 -7
  167. package/dist/ai/source/BbTabsRoot.md +6 -7
  168. package/dist/ai/source/BbTag.md +3 -4
  169. package/dist/ai/source/BbTextInput.md +3 -4
  170. package/dist/ai/source/BbTextarea.md +3 -4
  171. package/dist/ai/source/BbTimePicker.md +4 -1
  172. package/dist/ai/source/BbTimePickerInput.md +5 -1
  173. package/dist/ai/source/BbToast.md +3 -1
  174. package/dist/ai/source/BbTooltip.md +5 -1
  175. package/dist/ai/source/CommonInputWrapper.md +4 -0
  176. package/dist/ai/source/CommonPopover.md +6 -0
  177. package/dist/ai/source/FlatListBox.md +11 -5
  178. package/dist/ai/source/GroupedListBox.md +7 -5
  179. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
  180. package/dist/components/BbAlert/types.d.ts +10 -1
  181. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
  182. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
  183. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
  184. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
  185. package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
  186. package/dist/components/BbBadge/types.d.ts +8 -2
  187. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
  188. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
  189. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
  190. package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
  191. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
  192. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
  193. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
  194. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
  195. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
  196. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
  197. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
  198. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
  199. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
  200. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
  201. package/dist/components/BbBaseSelect/types.d.ts +22 -0
  202. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
  203. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
  204. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
  205. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
  206. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
  207. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
  208. package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
  209. package/dist/components/BbCollapsible/types.d.ts +7 -1
  210. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
  211. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
  212. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
  213. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
  214. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
  215. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  216. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
  217. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
  218. package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
  219. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
  220. package/dist/components/BbDialog/types.d.ts +29 -2
  221. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
  222. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
  223. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
  224. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
  225. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
  226. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
  227. package/dist/components/BbDropdown/types.d.ts +20 -5
  228. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
  229. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
  230. package/dist/components/BbIcon/iconCache.d.ts +33 -0
  231. package/dist/components/BbIcon/iconCache.js +17 -0
  232. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  233. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
  234. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  235. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
  236. package/dist/components/BbOffCanvas/types.d.ts +30 -5
  237. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  238. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  239. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
  240. package/dist/components/BbPopover/types.d.ts +3 -2
  241. package/dist/components/BbRadioGroup/types.d.ts +3 -1
  242. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
  243. package/dist/components/BbSelect/types.d.ts +32 -0
  244. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
  245. package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
  246. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
  247. package/dist/components/BbTable/BbTable.vue.d.ts +10 -4
  248. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1433 -600
  249. package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
  250. package/dist/components/BbTable/BbTableDataRow.js +136 -0
  251. package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
  252. package/dist/components/BbTable/BbTableExpandRow.js +52 -0
  253. package/dist/components/BbTable/types.d.ts +324 -111
  254. package/dist/components/BbTable/utils.d.ts +92 -4
  255. package/dist/components/BbTable/utils.js +71 -36
  256. package/dist/components/BbTabs/types.d.ts +0 -8
  257. package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
  258. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
  259. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  260. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
  261. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  262. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
  263. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
  264. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
  265. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
  266. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
  267. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
  268. package/dist/components/BbTooltip/types.d.ts +5 -1
  269. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
  270. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
  271. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
  272. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
  273. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
  274. package/dist/composables/useBaseOptions.js +30 -20
  275. package/dist/composables/useBbConfig.d.ts +27 -6
  276. package/dist/composables/useBbConfig.js +8 -2
  277. package/dist/composables/useConfig.d.ts +59 -0
  278. package/dist/composables/useConfig.js +9 -0
  279. package/dist/composables/useItemsGetter.d.ts +11 -0
  280. package/dist/composables/useItemsGetter.js +44 -18
  281. package/dist/composables/useLocale.js +10 -7
  282. package/dist/composables/useMobile.js +5 -5
  283. package/dist/composables/usePrefill.d.ts +21 -2
  284. package/dist/composables/usePrefill.js +25 -19
  285. package/dist/composables/useSsrState.d.ts +20 -0
  286. package/dist/composables/useSsrState.js +13 -0
  287. package/dist/composables/useTableWidthContext.d.ts +24 -4
  288. package/dist/composables/useTableWidthContext.js +31 -28
  289. package/dist/composables/useToast.js +5 -5
  290. package/dist/deprecation/ai-deprecations.json.d.ts +121 -11
  291. package/dist/deprecation/ai-deprecations.json.js +1 -1
  292. package/dist/directives/bbDropdown.d.ts +15 -4
  293. package/dist/directives/bbDropdown.js +31 -9
  294. package/dist/directives/createPopoverDirective.d.ts +62 -0
  295. package/dist/directives/createPopoverDirective.js +63 -23
  296. package/dist/i18n/locales/cs.json +4 -1
  297. package/dist/i18n/locales/da.json +4 -1
  298. package/dist/i18n/locales/de.json +4 -1
  299. package/dist/i18n/locales/el.json +4 -1
  300. package/dist/i18n/locales/en.json +4 -1
  301. package/dist/i18n/locales/es.json +4 -1
  302. package/dist/i18n/locales/fi.json +4 -1
  303. package/dist/i18n/locales/fr.json +4 -1
  304. package/dist/i18n/locales/hu.json +4 -1
  305. package/dist/i18n/locales/it.json +4 -1
  306. package/dist/i18n/locales/ja.json +4 -1
  307. package/dist/i18n/locales/ko.json +4 -1
  308. package/dist/i18n/locales/nb.json +4 -1
  309. package/dist/i18n/locales/nl.json +4 -1
  310. package/dist/i18n/locales/pl.json +4 -1
  311. package/dist/i18n/locales/pt.json +4 -1
  312. package/dist/i18n/locales/ro.json +4 -1
  313. package/dist/i18n/locales/ru.json +4 -1
  314. package/dist/i18n/locales/sv.json +4 -1
  315. package/dist/i18n/locales/tr.json +4 -1
  316. package/dist/i18n/locales/uk.json +4 -1
  317. package/dist/i18n/locales/zh-cn.json +4 -1
  318. package/dist/index.d.ts +7 -2
  319. package/dist/index.js +69 -67
  320. package/dist/llms-full.txt +3997 -1458
  321. package/dist/llms-medium.txt +140 -73
  322. package/dist/llms.txt +7 -6
  323. package/dist/locale-blueprint.json +4 -1
  324. package/dist/nuxt-auto-imports.d.ts +100 -0
  325. package/dist/nuxt-auto-imports.js +55 -0
  326. package/dist/nuxt-module.d.ts +22 -1
  327. package/dist/nuxt.js +22 -8
  328. package/dist/plugin.d.ts +10 -1
  329. package/dist/plugin.js +20 -19
  330. package/dist/runtime/nuxt-plugin.js +28 -21
  331. package/dist/styles.css +1 -1
  332. package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
  333. package/dist/utilities/misc/listboxMetrics.js +2 -2
  334. package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
  335. package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
  336. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
  337. package/dist/validated/BbSelect.vue.d.ts +2 -0
  338. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
  339. package/dist/validated/useValidatedField.js +25 -23
  340. package/dist/vite.js +7 -3
  341. package/llms.txt +8 -7
  342. package/package.json +2 -2
  343. package/scripts/lib/eslint-plugin.d.ts +19 -1
  344. package/scripts/lib/eslint-plugin.mjs +155 -14
  345. package/scripts/lib/html-attributes.mjs +91 -0
  346. package/scripts/lib/validate-bb-markup.mjs +59 -11
  347. package/dist/assets/svgs/sort.svg_raw.js +0 -4
  348. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
  349. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
  350. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
@@ -1,40 +1,40 @@
1
- import { useId as e } from "../../composables/useId.js";
2
- import { useLogger as t } from "../../composables/useLogger.js";
3
- import n from "../BbBaseButton/BbBaseButton.vue.js";
4
- import { useLocale as r } from "../../composables/useLocale.js";
5
- import { hash as i } from "../../utilities/functions/hash.js";
6
- import { isCoarseType as a, unitOfType as o } from "../../types/DatePickerType.js";
7
- import { toInnerValue as s, toOuterValue as c } from "../../utilities/functions/convertDateValue.js";
8
- import { last as l } from "../../utilities/functions/last.js";
9
- import { validateDateFormat as u } from "../../utilities/functions/validateDateFormat.js";
10
- import { normalizeDateBound as ee } from "../../utilities/functions/normalizeDateBound.js";
11
- import { isDateDisabled as te } from "../../utilities/functions/isDateDisabled.js";
12
- import { identity as ne } from "../../utilities/functions/identity.js";
13
- import { isNotNil as re } from "../../utilities/functions/isNotNil.js";
14
- import { sort as ie } from "../../utilities/functions/sort.js";
15
- import { normalizeSearchToken as ae, useTypeahead as oe } from "./typeahead.js";
16
- import se from "./BbBaseDatePickerInputDaySelector.vue.js";
17
- import { provideDatePickerContext as ce } from "./useDatePickerContext.js";
18
- import le from "./BbBaseDatePickerMonthSelector.vue.js";
19
- import ue from "../Transitions/ScaleFade.vue.js";
20
- import de from "./BbBaseDatePickerYearSelector.vue.js";
21
- import { config as d } from "virtual:bitboss-ui/config";
22
- import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as fe, createElementVNode as h, createSlots as pe, createTextVNode as me, createVNode as g, defineComponent as he, guardReactiveProps as ge, nextTick as _e, normalizeClass as _, normalizeProps as ve, normalizeStyle as ye, openBlock as v, ref as y, renderList as be, renderSlot as xe, toDisplayString as b, unref as x, watch as S, withCtx as C } from "vue";
23
- import w from "dayjs";
24
- import Se from "dayjs/plugin/isSameOrAfter";
25
- import Ce from "dayjs/plugin/isSameOrBefore";
26
- import we from "dayjs/plugin/weekOfYear";
1
+ import { useConfig as e } from "../../composables/useConfig.js";
2
+ import { useId as t } from "../../composables/useId.js";
3
+ import { useLogger as n } from "../../composables/useLogger.js";
4
+ import r from "../BbBaseButton/BbBaseButton.vue.js";
5
+ import { useLocale as i } from "../../composables/useLocale.js";
6
+ import { hash as a } from "../../utilities/functions/hash.js";
7
+ import { isCoarseType as o, unitOfType as s } from "../../types/DatePickerType.js";
8
+ import { toInnerValue as c, toOuterValue as l } from "../../utilities/functions/convertDateValue.js";
9
+ import { last as u } from "../../utilities/functions/last.js";
10
+ import { validateDateFormat as ee } from "../../utilities/functions/validateDateFormat.js";
11
+ import { normalizeDateBound as te } from "../../utilities/functions/normalizeDateBound.js";
12
+ import { isDateDisabled as ne } from "../../utilities/functions/isDateDisabled.js";
13
+ import { identity as re } from "../../utilities/functions/identity.js";
14
+ import { isNotNil as ie } from "../../utilities/functions/isNotNil.js";
15
+ import { sort as ae } from "../../utilities/functions/sort.js";
16
+ import { normalizeSearchToken as oe, useTypeahead as se } from "./typeahead.js";
17
+ import ce from "./BbBaseDatePickerInputDaySelector.vue.js";
18
+ import { provideDatePickerContext as le } from "./useDatePickerContext.js";
19
+ import ue from "./BbBaseDatePickerMonthSelector.vue.js";
20
+ import de from "../Transitions/ScaleFade.vue.js";
21
+ import fe from "./BbBaseDatePickerYearSelector.vue.js";
22
+ import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as pe, createElementVNode as m, createSlots as me, createTextVNode as he, createVNode as h, defineComponent as ge, guardReactiveProps as _e, nextTick as ve, normalizeClass as g, normalizeProps as ye, normalizeStyle as be, openBlock as _, ref as v, renderList as xe, renderSlot as Se, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
23
+ import C from "dayjs";
24
+ import Ce from "dayjs/plugin/isSameOrAfter";
25
+ import we from "dayjs/plugin/isSameOrBefore";
26
+ import Te from "dayjs/plugin/weekOfYear";
27
27
  //#region src/components/BbBaseDatePicker/BbBaseDatePicker.vue?vue&type=script&setup=true&lang.ts
28
- var Te = {
28
+ var Ee = {
29
29
  "aria-live": "polite",
30
30
  class: "sr-only"
31
- }, Ee = {
31
+ }, De = {
32
32
  "aria-live": "polite",
33
33
  class: "sr-only"
34
- }, De = { class: "bb-base-date-picker__body" }, Oe = {
34
+ }, Oe = { class: "bb-base-date-picker__body" }, ke = {
35
35
  key: 0,
36
36
  class: "bb-base-date-picker__controls"
37
- }, ke = { class: "sr-only" }, Ae = { class: "bb-base-date-picker__nav-center" }, je = { class: "sr-only" }, Me = { class: "bb-base-date-picker__content" }, Ne = ["id"], T = /*@__PURE__*/ he({
37
+ }, Ae = { class: "sr-only" }, je = { class: "bb-base-date-picker__nav-center" }, Me = { class: "sr-only" }, Ne = { class: "bb-base-date-picker__content" }, Pe = ["id"], w = /*@__PURE__*/ ge({
38
38
  __name: "BbBaseDatePicker",
39
39
  props: {
40
40
  disabled: { type: Boolean },
@@ -52,69 +52,69 @@ var Te = {
52
52
  utc: { type: Boolean }
53
53
  },
54
54
  emits: ["update:modelValue"],
55
- setup(he, { expose: T, emit: Pe }) {
56
- let E = he, Fe = Pe;
57
- w.extend(we), w.extend(Se), w.extend(Ce);
58
- let { t: D } = r(), Ie = E.id || e().id, O = t();
59
- E.multiple && E.range && O.throw("Date picker cannot be both multiple and range."), (E.multiple || E.range) && (Array.isArray(E.modelValue) || O.throw("Date picker is set to select multiple dates but modelValue is not an array."));
60
- let k = f(() => a(E.type)), A = f(() => o(E.type)), j = f(() => ee(E.min, E.type, "min", (e) => O.warn(`Date picker: ${e}`))), M = f(() => ee(E.max, E.type, "max", (e) => O.warn(`Date picker: ${e}`)));
61
- k.value || (E.min && u(E.min, "Min"), E.max && u(E.max, "Max"));
62
- let Le = f(() => ({
63
- floating: E.floating,
64
- utc: E.utc,
65
- type: E.type
66
- })), N = (e) => s(e, Le.value), P = y(w()), F = (e) => {
55
+ setup(ge, { expose: w, emit: Fe }) {
56
+ let T = ge, Ie = Fe;
57
+ C.extend(Te), C.extend(Ce), C.extend(we);
58
+ let E = e(), { t: D } = i(), Le = T.id || t().id, O = n();
59
+ T.multiple && T.range && O.throw("Date picker cannot be both multiple and range."), (T.multiple || T.range) && (Array.isArray(T.modelValue) || O.throw("Date picker is set to select multiple dates but modelValue is not an array."));
60
+ let k = d(() => o(T.type)), A = d(() => s(T.type)), j = d(() => te(T.min, T.type, "min", (e) => O.warn(`Date picker: ${e}`))), M = d(() => te(T.max, T.type, "max", (e) => O.warn(`Date picker: ${e}`)));
61
+ k.value || (T.min && ee(T.min, "Min"), T.max && ee(T.max, "Max"));
62
+ let Re = d(() => ({
63
+ floating: T.floating,
64
+ utc: T.utc,
65
+ type: T.type
66
+ })), N = (e) => c(e, Re.value), P = v(C()), F = (e) => {
67
67
  if (!e) return null;
68
68
  let t = N(e);
69
69
  return t.isValid() ? t : null;
70
- }, Re = () => {
71
- let e = w().startOf("day"), t = F(j.value), n = F(M.value);
70
+ }, ze = () => {
71
+ let e = C().startOf("day"), t = F(j.value), n = F(M.value);
72
72
  return t && e.isBefore(t, A.value) ? t.startOf(A.value) : n && e.isAfter(n, A.value) ? n.startOf(A.value) : e;
73
- }, ze = (e) => {
73
+ }, I = (e) => {
74
74
  if (!e) {
75
- P.value = Re();
75
+ P.value = ze();
76
76
  return;
77
77
  }
78
78
  if (Array.isArray(e)) {
79
79
  if (e.length === 0) {
80
- P.value = Re();
80
+ P.value = ze();
81
81
  return;
82
82
  }
83
83
  let t = e.map((e) => N(e).startOf(A.value).valueOf()), n = P.value.valueOf();
84
84
  if (t.includes(n)) return;
85
- P.value = N(l(e) ?? "").startOf(A.value);
85
+ P.value = N(u(e) ?? "").startOf(A.value);
86
86
  return;
87
87
  }
88
88
  P.value = N(e).startOf(A.value);
89
89
  };
90
- ze(E.modelValue);
91
- let I = f(() => k.value ? A.value : "day"), L = y(I.value);
92
- S(I, (e) => {
93
- L.value = e;
90
+ I(T.modelValue);
91
+ let L = d(() => k.value ? A.value : "day"), R = v(L.value);
92
+ x(L, (e) => {
93
+ R.value = e;
94
94
  });
95
- let R = y(null), z = y(null), B = y(0), V = () => {
96
- B.value += 1;
95
+ let z = v(null), B = v(null), V = v(0), H = () => {
96
+ V.value += 1;
97
97
  }, Be = (e) => {
98
- e === I.value || E.type === "year" || (L.value = L.value === e ? I.value : e, V());
99
- }, H = f(() => P.value.locale(d.locale).format("MMMM")), U = f(() => P.value.format("YYYY")), Ve = f(() => `${H.value}, ${D("datePicker.monthLabel").value}`), He = f(() => `${U.value}, ${D("datePicker.yearLabel").value}`), Ue = f(() => {
100
- let e = P.value.startOf("month"), t = P.value.endOf("month"), n = (e.day() - E.firstDayOfWeek + 7) % 7, r = ((E.firstDayOfWeek + 6) % 7 - t.day() + 7) % 7 + 1;
98
+ e === L.value || T.type === "year" || (R.value = R.value === e ? L.value : e, H());
99
+ }, U = d(() => P.value.locale(E.locale).format("MMMM")), W = d(() => P.value.format("YYYY")), Ve = d(() => `${U.value}, ${D("datePicker.monthLabel").value}`), He = d(() => `${W.value}, ${D("datePicker.yearLabel").value}`), Ue = d(() => {
100
+ let e = P.value.startOf("month"), t = P.value.endOf("month"), n = (e.day() - T.firstDayOfWeek + 7) % 7, r = ((T.firstDayOfWeek + 6) % 7 - t.day() + 7) % 7 + 1;
101
101
  return (P.value.daysInMonth() - 1 + n + r) / 7;
102
- }), We = f(() => L.value === "month" ? D("datePicker.selectingMonth").value : L.value === "year" ? D("datePicker.selectingYear").value : ""), Ge = f(() => E.type === "year" ? U.value : E.type === "month" ? `${H.value} ${U.value}` : `${P.value.format("ddd")}, ${P.value.format("D")} ${H.value}`), W = (e) => {
102
+ }), We = d(() => R.value === "month" ? D("datePicker.selectingMonth").value : R.value === "year" ? D("datePicker.selectingYear").value : ""), Ge = d(() => T.type === "year" ? W.value : T.type === "month" ? `${U.value} ${W.value}` : `${P.value.format("ddd")}, ${P.value.format("D")} ${U.value}`), G = (e) => {
103
103
  P.value = P.value.set("month", e);
104
- }, G = f(() => E.type === "month" ? "year" : "month"), Ke = () => {
105
- Y.value = null, P.value = P.value.subtract(1, G.value);
104
+ }, K = d(() => T.type === "month" ? "year" : "month"), Ke = () => {
105
+ X.value = null, P.value = P.value.subtract(1, K.value);
106
106
  }, qe = () => {
107
- Y.value = null, P.value = P.value.add(1, G.value);
107
+ X.value = null, P.value = P.value.add(1, K.value);
108
108
  }, Je = (e) => {
109
109
  let t = F(j.value);
110
110
  return !t || t.isBefore(P.value.startOf(e));
111
111
  }, Ye = (e) => {
112
112
  let t = F(M.value);
113
113
  return !t || t.isAfter(P.value.endOf(e));
114
- }, Xe = f(() => Je(G.value)), Ze = f(() => Ye(G.value)), Qe = f(() => Je("year") || Ye("year")), $e = f(() => k.value ? D("datePicker.previousYearLabel").value : D("datePicker.previousMonthLabel").value), et = f(() => k.value ? D("datePicker.nextYearLabel").value : D("datePicker.nextMonthLabel").value), K = (e) => {
114
+ }, Xe = d(() => Je(K.value)), Ze = d(() => Ye(K.value)), Qe = d(() => Je("year") || Ye("year")), $e = d(() => k.value ? D("datePicker.previousYearLabel").value : D("datePicker.previousMonthLabel").value), et = d(() => k.value ? D("datePicker.nextYearLabel").value : D("datePicker.nextMonthLabel").value), q = (e) => {
115
115
  P.value = P.value.set("year", e);
116
- }, q = f(() => {
117
- let e = P.value.startOf("year"), t = d.locale;
116
+ }, J = d(() => {
117
+ let e = P.value.startOf("year"), t = E.locale;
118
118
  return Array.from({ length: 12 }, (n, r) => {
119
119
  let i = e.add(r, "month"), a = i.locale(t).format("MMMM"), o = i.locale(t).format("MMM");
120
120
  return {
@@ -126,84 +126,84 @@ var Te = {
126
126
  o,
127
127
  String(r + 1),
128
128
  String(r + 1).padStart(2, "0")
129
- ].map((e) => ae(e, t)),
129
+ ].map((e) => oe(e, t)),
130
130
  value: r
131
131
  };
132
132
  });
133
- }), tt = (e) => ae(String(e), "en"), nt = f(() => {
134
- let e = [].concat(E.modelValue).filter(ne).map((e) => N(e).startOf(A.value).valueOf()), t = e.length ? Math.min(...e) : Infinity, n = e.length ? Math.max(...e) : -Infinity, r = {};
133
+ }), tt = (e) => oe(String(e), "en"), nt = d(() => {
134
+ let e = [].concat(T.modelValue).filter(re).map((e) => N(e).startOf(A.value).valueOf()), t = e.length ? Math.min(...e) : Infinity, n = e.length ? Math.max(...e) : -Infinity, r = {};
135
135
  return e.forEach((e, t) => {
136
136
  r[e] = t;
137
137
  }), {
138
138
  min: t,
139
139
  max: n,
140
- selected: (e) => re(r[e.valueOf()]),
140
+ selected: (e) => ie(r[e.valueOf()]),
141
141
  isFirst: (e) => e.valueOf() === t,
142
142
  isLast: (e) => e.valueOf() === n,
143
143
  isBetween: (e) => e.valueOf() > t && e.valueOf() < n
144
144
  };
145
- }), J = f(() => !!E.range && Array.isArray(E.modelValue) && E.modelValue.length === 1), Y = y(null), rt = (e) => {
146
- Y.value = J.value && e ? e.valueOf() : null;
147
- }, it = (e) => te(e, {
145
+ }), Y = d(() => !!T.range && Array.isArray(T.modelValue) && T.modelValue.length === 1), X = v(null), rt = (e) => {
146
+ X.value = Y.value && e ? e.valueOf() : null;
147
+ }, it = (e) => ne(e, {
148
148
  min: j.value,
149
149
  max: M.value,
150
- selectable: E.selectable,
151
- floating: E.floating,
152
- utc: E.utc,
153
- type: E.type
154
- }), X = (e) => {
155
- let t = e.startOf(A.value), n = nt.value, r = t.valueOf(), i = n.selected(t), a = !!E.range && n.isFirst(t), o = !!E.range && n.isLast(t), s = J.value ? n.min : null, c = J.value ? Y.value : null, l = s !== null && c !== null ? Math.min(s, c) : null, u = s !== null && c !== null ? Math.max(s, c) : null;
150
+ selectable: T.selectable,
151
+ floating: T.floating,
152
+ utc: T.utc,
153
+ type: T.type
154
+ }), at = (e) => {
155
+ let t = e.startOf(A.value), n = nt.value, r = t.valueOf(), i = n.selected(t), a = !!T.range && n.isFirst(t), o = !!T.range && n.isLast(t), s = Y.value ? n.min : null, c = Y.value ? X.value : null, l = s !== null && c !== null ? Math.min(s, c) : null, u = s !== null && c !== null ? Math.max(s, c) : null;
156
156
  return {
157
157
  selected: i,
158
158
  first: a,
159
159
  last: o,
160
- middle: !!E.range && !a && !o && n.isBetween(t),
160
+ middle: !!T.range && !a && !o && n.isBetween(t),
161
161
  preview: l !== null && u !== null && l !== u && r >= l && r <= u,
162
- disabled: E.disabled === !0 || it(t)
162
+ disabled: T.disabled === !0 || it(t)
163
163
  };
164
- }, at = (e) => {
165
- if (E.readonly) return;
164
+ }, ot = (e) => {
165
+ if (T.readonly) return;
166
166
  let t = e.startOf(A.value);
167
167
  if (it(t)) return;
168
- let n = c(t, Le.value), r = X(t);
169
- if (E.range) {
170
- if (!Array.isArray(E.modelValue)) return;
171
- E.modelValue.length === 1 ? $(ie([E.modelValue[0], n])) : $([n]), Y.value = null;
168
+ let n = l(t, Re.value), r = at(t);
169
+ if (T.range) {
170
+ if (!Array.isArray(T.modelValue)) return;
171
+ T.modelValue.length === 1 ? $(ae([T.modelValue[0], n])) : $([n]), X.value = null;
172
172
  return;
173
173
  }
174
- if (E.multiple) {
175
- if (!Array.isArray(E.modelValue)) return;
176
- $(r.selected ? E.modelValue.filter((e) => e !== n) : ie([...E.modelValue, n]));
174
+ if (T.multiple) {
175
+ if (!Array.isArray(T.modelValue)) return;
176
+ $(r.selected ? T.modelValue.filter((e) => e !== n) : ae([...T.modelValue, n]));
177
177
  return;
178
178
  }
179
179
  $(r.selected ? null : n);
180
180
  };
181
- ce({
181
+ le({
182
182
  cursor: P,
183
- disabled: f(() => E.disabled === !0),
184
- monthOptions: q,
183
+ disabled: d(() => T.disabled === !0),
184
+ monthOptions: J,
185
185
  yearToken: tt,
186
- typeaheadResetKey: B,
186
+ typeaheadResetKey: V,
187
187
  selectMonth: (e) => {
188
188
  if (k.value) {
189
- at(P.value.set("month", e)), W(e);
189
+ ot(P.value.set("month", e)), G(e);
190
190
  return;
191
191
  }
192
- W(e), V(), L.value = I.value, _e(() => {
193
- R.value?.$el instanceof HTMLElement && R.value.$el.focus();
192
+ G(e), H(), R.value = L.value, ve(() => {
193
+ z.value?.$el instanceof HTMLElement && z.value.$el.focus();
194
194
  });
195
195
  },
196
196
  selectYear: (e) => {
197
- if (E.type === "year") {
198
- at(P.value.set("year", e)), K(e);
197
+ if (T.type === "year") {
198
+ ot(P.value.set("year", e)), q(e);
199
199
  return;
200
200
  }
201
- K(e), V(), L.value = I.value, _e(() => {
202
- z.value?.$el instanceof HTMLElement && z.value.$el.focus();
201
+ q(e), H(), R.value = L.value, ve(() => {
202
+ B.value?.$el instanceof HTMLElement && B.value.$el.focus();
203
203
  });
204
204
  },
205
- terminalUnit: f(() => E.type === "month" || E.type === "year" ? E.type : null),
206
- boundYears: f(() => {
205
+ terminalUnit: d(() => T.type === "month" || T.type === "year" ? T.type : null),
206
+ boundYears: d(() => {
207
207
  let e = (e) => {
208
208
  if (!e) return null;
209
209
  let t = N(e);
@@ -214,106 +214,106 @@ var Te = {
214
214
  max: e(M.value)
215
215
  };
216
216
  }),
217
- unitState: X,
217
+ unitState: at,
218
218
  setHoveredUnit: rt
219
219
  });
220
- let { onKeydown: ot, reset: st } = oe({
221
- candidates: () => q.value,
220
+ let { onKeydown: st, reset: ct } = se({
221
+ candidates: () => J.value,
222
222
  getTokens: (e) => e.tokens,
223
- getCurrent: () => q.value.find((e) => e.value === P.value.month()),
223
+ getCurrent: () => J.value.find((e) => e.value === P.value.month()),
224
224
  onMatch: () => {},
225
- onCommit: (e) => W(e.value),
225
+ onCommit: (e) => G(e.value),
226
226
  autoCommit: !0,
227
- locale: () => d.locale
228
- }), ct = (e) => {
229
- e.key === "Enter" || L.value !== I.value || ot(e);
230
- }, Z = f(() => {
227
+ locale: () => E.locale
228
+ }), lt = (e) => {
229
+ e.key === "Enter" || R.value !== L.value || st(e);
230
+ }, Z = d(() => {
231
231
  let e = P.value.year(), t = [];
232
232
  for (let n = e - 100; n <= e + 100; n++) t.push({
233
233
  value: n,
234
234
  token: tt(n)
235
235
  });
236
236
  return t;
237
- }), { onKeydown: lt, reset: ut } = oe({
237
+ }), { onKeydown: ut, reset: dt } = se({
238
238
  candidates: () => Z.value,
239
239
  getTokens: (e) => [e.token],
240
240
  getCurrent: () => Z.value.find((e) => e.value === P.value.year()),
241
241
  onMatch: () => {},
242
- onCommit: (e) => K(e.value),
242
+ onCommit: (e) => q(e.value),
243
243
  autoCommit: !0,
244
244
  locale: () => "en"
245
- }), dt = (e) => {
246
- e.key === "Enter" || L.value !== I.value || lt(e);
245
+ }), ft = (e) => {
246
+ e.key === "Enter" || R.value !== L.value || ut(e);
247
247
  };
248
- S(B, () => {
249
- st(), ut();
248
+ x(V, () => {
249
+ ct(), dt();
250
250
  });
251
- let ft = (e) => {
251
+ let pt = (e) => {
252
252
  P.value = e;
253
- }, Q = y(E.modelValue), $ = (e) => {
254
- Q.value = e, Fe("update:modelValue", e);
253
+ }, Q = v(T.modelValue), $ = (e) => {
254
+ Q.value = e, Ie("update:modelValue", e);
255
255
  };
256
- return S(() => E.modelValue, () => {
257
- i(E.modelValue) !== i(Q.value) && (Q.value = E.modelValue, ze(E.modelValue));
258
- }), T({ resetStatus: () => {
259
- L.value = I.value;
260
- } }), (e, t) => (v(), fe("div", {
261
- class: _(["bb-base-date-picker", k.value ? `bb-base-date-picker--unit-${I.value}` : void 0]),
262
- style: ye({ "--weeks": Ue.value })
256
+ return x(() => T.modelValue, () => {
257
+ a(T.modelValue) !== a(Q.value) && (Q.value = T.modelValue, I(T.modelValue));
258
+ }), w({ resetStatus: () => {
259
+ R.value = L.value;
260
+ } }), (e, t) => (_(), pe("div", {
261
+ class: g(["bb-base-date-picker", k.value ? `bb-base-date-picker--unit-${L.value}` : void 0]),
262
+ style: be({ "--weeks": Ue.value })
263
263
  }, [
264
- h("span", Te, b(U.value), 1),
265
- h("div", Ee, b(Ge.value), 1),
266
- h("div", De, [e.type === "year" ? m("", !0) : (v(), fe("div", Oe, [
267
- g(x(n), {
264
+ m("span", Ee, y(W.value), 1),
265
+ m("div", De, y(Ge.value), 1),
266
+ m("div", Oe, [e.type === "year" ? p("", !0) : (_(), pe("div", ke, [
267
+ h(b(r), {
268
268
  "aria-label": $e.value,
269
269
  class: "bb-base-date-picker__nav-btn",
270
- disabled: e.disabled || L.value !== I.value || !Xe.value,
270
+ disabled: e.disabled || R.value !== L.value || !Xe.value,
271
271
  onClick: Ke
272
272
  }, {
273
- default: C(() => [t[2] ||= h("svg", {
273
+ default: S(() => [t[2] ||= m("svg", {
274
274
  fill: "none",
275
275
  height: "16",
276
276
  viewBox: "0 0 16 16",
277
277
  width: "16",
278
278
  xmlns: "http://www.w3.org/2000/svg"
279
- }, [h("path", {
279
+ }, [m("path", {
280
280
  d: "M10 12 6 8l4-4",
281
281
  stroke: "currentColor",
282
282
  "stroke-linecap": "round",
283
283
  "stroke-linejoin": "round",
284
284
  "stroke-width": "1.5"
285
- })], -1), h("span", ke, b($e.value), 1)]),
285
+ })], -1), m("span", Ae, y($e.value), 1)]),
286
286
  _: 1
287
287
  }, 8, ["aria-label", "disabled"]),
288
- h("div", Ae, [e.type === "month" ? m("", !0) : (v(), p(x(n), {
288
+ m("div", je, [e.type === "month" ? p("", !0) : (_(), f(b(r), {
289
289
  key: 0,
290
290
  ref_key: "monthHeadingButton",
291
- ref: R,
292
- "aria-expanded": L.value === "month",
291
+ ref: z,
292
+ "aria-expanded": R.value === "month",
293
293
  "aria-label": Ve.value,
294
- class: _(["bb-base-date-picker__heading-btn", { "bb-base-date-picker__heading-btn--active": L.value === "month" }]),
294
+ class: g(["bb-base-date-picker__heading-btn", { "bb-base-date-picker__heading-btn--active": R.value === "month" }]),
295
295
  disabled: e.disabled,
296
296
  onClick: t[0] ||= (e) => Be("month"),
297
- onKeydown: ct
297
+ onKeydown: lt
298
298
  }, {
299
- default: C(() => [me(b(H.value), 1)]),
299
+ default: S(() => [he(y(U.value), 1)]),
300
300
  _: 1
301
301
  }, 8, [
302
302
  "aria-expanded",
303
303
  "aria-label",
304
304
  "class",
305
305
  "disabled"
306
- ])), g(x(n), {
306
+ ])), h(b(r), {
307
307
  ref_key: "yearHeadingButton",
308
- ref: z,
309
- "aria-expanded": L.value === "year",
308
+ ref: B,
309
+ "aria-expanded": R.value === "year",
310
310
  "aria-label": He.value,
311
- class: _(["bb-base-date-picker__heading-btn", { "bb-base-date-picker__heading-btn--active": L.value === "year" }]),
311
+ class: g(["bb-base-date-picker__heading-btn", { "bb-base-date-picker__heading-btn--active": R.value === "year" }]),
312
312
  disabled: e.disabled || !Qe.value,
313
313
  onClick: t[1] ||= (e) => Be("year"),
314
- onKeydown: dt
314
+ onKeydown: ft
315
315
  }, {
316
- default: C(() => [me(b(U.value), 1)]),
316
+ default: S(() => [he(y(W.value), 1)]),
317
317
  _: 1
318
318
  }, 8, [
319
319
  "aria-expanded",
@@ -321,37 +321,37 @@ var Te = {
321
321
  "class",
322
322
  "disabled"
323
323
  ])]),
324
- g(x(n), {
324
+ h(b(r), {
325
325
  "aria-label": et.value,
326
326
  class: "bb-base-date-picker__nav-btn",
327
- disabled: e.disabled || L.value !== I.value || !Ze.value,
327
+ disabled: e.disabled || R.value !== L.value || !Ze.value,
328
328
  onClick: qe
329
329
  }, {
330
- default: C(() => [t[3] ||= h("svg", {
330
+ default: S(() => [t[3] ||= m("svg", {
331
331
  fill: "none",
332
332
  height: "16",
333
333
  viewBox: "0 0 16 16",
334
334
  width: "16",
335
335
  xmlns: "http://www.w3.org/2000/svg"
336
- }, [h("path", {
336
+ }, [m("path", {
337
337
  d: "M6 12l4-4-4-4",
338
338
  stroke: "currentColor",
339
339
  "stroke-linecap": "round",
340
340
  "stroke-linejoin": "round",
341
341
  "stroke-width": "1.5"
342
- })], -1), h("span", je, b(et.value), 1)]),
342
+ })], -1), m("span", Me, y(et.value), 1)]),
343
343
  _: 1
344
344
  }, 8, ["aria-label", "disabled"])
345
- ])), h("div", Me, [
346
- k.value ? m("", !0) : (v(), p(se, {
345
+ ])), m("div", Ne, [
346
+ k.value ? p("", !0) : (_(), f(ce, {
347
347
  key: 0,
348
- id: x(Ie),
349
- current: L.value === "day",
348
+ id: b(Le),
349
+ current: R.value === "day",
350
350
  cursor: P.value,
351
351
  disabled: e.disabled,
352
352
  "first-day-of-week": e.firstDayOfWeek,
353
353
  floating: e.floating,
354
- inert: L.value !== "day",
354
+ inert: R.value !== "day",
355
355
  max: e.max,
356
356
  min: e.min,
357
357
  "model-value": e.modelValue,
@@ -361,11 +361,11 @@ var Te = {
361
361
  selectable: e.selectable,
362
362
  type: e.type,
363
363
  utc: e.utc,
364
- "onUpdate:cursor": ft,
364
+ "onUpdate:cursor": pt,
365
365
  "onUpdate:modelValue": $
366
- }, pe({ _: 2 }, [be(e.$slots, (t, n) => ({
366
+ }, me({ _: 2 }, [xe(e.$slots, (t, n) => ({
367
367
  name: n,
368
- fn: C((t) => [xe(e.$slots, n, ve(ge(t)))])
368
+ fn: S((t) => [Se(e.$slots, n, ye(_e(t)))])
369
369
  }))]), 1032, [
370
370
  "id",
371
371
  "current",
@@ -384,24 +384,24 @@ var Te = {
384
384
  "type",
385
385
  "utc"
386
386
  ])),
387
- g(ue, { duration: 150 }, {
388
- default: C(() => [L.value === "month" ? (v(), p(le, { key: 0 })) : m("", !0)]),
387
+ h(de, { duration: 150 }, {
388
+ default: S(() => [R.value === "month" ? (_(), f(ue, { key: 0 })) : p("", !0)]),
389
389
  _: 1
390
390
  }),
391
- g(ue, { duration: 150 }, {
392
- default: C(() => [L.value === "year" ? (v(), p(de, { key: 0 })) : m("", !0)]),
391
+ h(de, { duration: 150 }, {
392
+ default: S(() => [R.value === "year" ? (_(), f(fe, { key: 0 })) : p("", !0)]),
393
393
  _: 1
394
394
  })
395
395
  ])]),
396
- h("div", {
397
- id: `${x(Ie)}-status`,
396
+ m("div", {
397
+ id: `${b(Le)}-status`,
398
398
  "aria-atomic": "true",
399
399
  "aria-live": "polite",
400
400
  class: "sr-only",
401
401
  role: "status"
402
- }, b(We.value), 9, Ne)
402
+ }, y(We.value), 9, Pe)
403
403
  ], 6));
404
404
  }
405
405
  });
406
406
  //#endregion
407
- export { T as default };
407
+ export { w as default };
@@ -1,5 +1,14 @@
1
1
  import { default as dayjs, Dayjs } from 'dayjs';
2
2
  import { DatePickerType } from '../../types/DatePickerType';
3
+ type __VLS_Slots = Record<string, (props: {
4
+ first: boolean;
5
+ highlighted: boolean;
6
+ item: Dayjs;
7
+ label: string;
8
+ last: boolean;
9
+ middle: boolean;
10
+ selected: boolean;
11
+ }) => any>;
3
12
  type Props = {
4
13
  cursor: Dayjs;
5
14
  current: boolean;
@@ -20,15 +29,6 @@ type Props = {
20
29
  type?: DatePickerType;
21
30
  utc?: boolean;
22
31
  };
23
- type __VLS_Slots = Record<string, (props: {
24
- first: boolean;
25
- highlighted: boolean;
26
- item: Dayjs;
27
- label: string;
28
- last: boolean;
29
- middle: boolean;
30
- selected: boolean;
31
- }) => any>;
32
32
  type DateValue = string | string[] | null;
33
33
  declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
34
34
  "update:modelValue": (value: DateValue) => any;