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,28 +1,28 @@
1
- import { slotKey as e } from "../../utilities/functions/slotKey.js";
1
+ import { useConfig as e } from "../../composables/useConfig.js";
2
2
  import { useLocale as t } from "../../composables/useLocale.js";
3
- import { toInnerValue as n, toOuterValue as r } from "../../utilities/functions/convertDateValue.js";
4
- import { last as i } from "../../utilities/functions/last.js";
5
- import { validateDateFormat as a } from "../../utilities/functions/validateDateFormat.js";
6
- import { isDateDisabled as o } from "../../utilities/functions/isDateDisabled.js";
7
- import { identity as s } from "../../utilities/functions/identity.js";
8
- import { isNotNil as c } from "../../utilities/functions/isNotNil.js";
9
- import { sort as l } from "../../utilities/functions/sort.js";
10
- import { chunk as u } from "../../utilities/functions/chunk.js";
11
- import { useTypeahead as d } from "./typeahead.js";
12
- import f from "../Transitions/Slide.vue.js";
13
- import { config as p } from "virtual:bitboss-ui/config";
3
+ import { slotKey as n } from "../../utilities/functions/slotKey.js";
4
+ import { toInnerValue as r, toOuterValue as i } from "../../utilities/functions/convertDateValue.js";
5
+ import { last as a } from "../../utilities/functions/last.js";
6
+ import { validateDateFormat as o } from "../../utilities/functions/validateDateFormat.js";
7
+ import { isDateDisabled as s } from "../../utilities/functions/isDateDisabled.js";
8
+ import { identity as c } from "../../utilities/functions/identity.js";
9
+ import { isNotNil as l } from "../../utilities/functions/isNotNil.js";
10
+ import { sort as u } from "../../utilities/functions/sort.js";
11
+ import { chunk as d } from "../../utilities/functions/chunk.js";
12
+ import { useTypeahead as f } from "./typeahead.js";
13
+ import p from "../Transitions/Slide.vue.js";
14
14
  import { Fragment as m, computed as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, watch as ee, withCtx as te, withKeys as k, withModifiers as A } from "vue";
15
15
  import j from "dayjs";
16
16
  //#region src/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue?vue&type=script&setup=true&lang.ts
17
17
  var ne = ["aria-label", "onKeydown"], re = {
18
18
  class: "bb-base-date-picker__header-container",
19
19
  role: "row"
20
- }, ie = ["abbr", "aria-label"], ae = ["aria-current", "aria-selected"], M = [
20
+ }, ie = ["abbr", "aria-label"], ae = ["aria-current", "aria-selected"], oe = [
21
21
  "aria-label",
22
22
  "data-date",
23
23
  "disabled",
24
24
  "tabindex"
25
- ], N = { class: "bb-base-date-picker__date-append" }, oe = {
25
+ ], M = { class: "bb-base-date-picker__date-append" }, N = {
26
26
  "aria-live": "polite",
27
27
  class: "sr-only",
28
28
  role: "status"
@@ -46,45 +46,45 @@ var ne = ["aria-label", "onKeydown"], re = {
46
46
  },
47
47
  emits: ["update:modelValue", "update:cursor"],
48
48
  setup(b, { emit: P }) {
49
- let F = b, I = P, { t: L } = t(), R = h(() => ({
49
+ let F = b, I = P, L = e(), { t: R } = t(), z = h(() => ({
50
50
  floating: F.floating,
51
51
  utc: F.utc,
52
52
  type: F.type
53
- })), z = w(null), ce = j().startOf("day");
54
- F.min && a(F.min, "Min"), F.max && a(F.max, "Max");
53
+ })), B = w(null), ce = j().startOf("day");
54
+ F.min && o(F.min, "Min"), F.max && o(F.max, "Max");
55
55
  let le = h(() => {
56
- let e = Infinity, t = -Infinity, r = {};
57
- return F.modelValue && [].concat(F.modelValue).filter(s).map((e) => n(e, R.value)).map((e) => e.startOf("day").valueOf()).forEach((n, i) => {
58
- n < e && (e = n), n > t && (t = n), r[n] = i;
56
+ let e = Infinity, t = -Infinity, n = {};
57
+ return F.modelValue && [].concat(F.modelValue).filter(c).map((e) => r(e, z.value)).map((e) => e.startOf("day").valueOf()).forEach((r, i) => {
58
+ r < e && (e = r), r > t && (t = r), n[r] = i;
59
59
  }), {
60
60
  min: e,
61
61
  max: t,
62
- index: (e) => r[e.valueOf()],
63
- selected: (e) => c(r[e.valueOf()]),
62
+ index: (e) => n[e.valueOf()],
63
+ selected: (e) => l(n[e.valueOf()]),
64
64
  isFirstOfRange: (t) => t.valueOf() === e,
65
65
  isLastOfRange: (e) => e.valueOf() === t,
66
66
  isBetween: (n) => n.valueOf() > e && n.valueOf() < t
67
67
  };
68
- }), B = h(() => Array(7).fill("").map((e, t) => j().day((t + F.firstDayOfWeek) % 7).locale(p.locale)).map((e) => ({
68
+ }), V = h(() => Array(7).fill("").map((e, t) => j().day((t + F.firstDayOfWeek) % 7).locale(L.locale)).map((e) => ({
69
69
  accessibleLabel: e.format("dddd"),
70
70
  label: e.format("dd").slice(0, 1).toUpperCase(),
71
71
  id: e.toISOString(),
72
72
  original: e
73
- }))), V = h(() => !!F.range && Array.isArray(F.modelValue) && F.modelValue.length === 1), H = w(null), U = (e) => {
74
- if (!V.value) return;
73
+ }))), H = h(() => !!F.range && Array.isArray(F.modelValue) && F.modelValue.length === 1), U = w(null), ue = (e) => {
74
+ if (!H.value) return;
75
75
  let t = e.target;
76
76
  if (!(t instanceof Element)) return;
77
77
  let n = t.closest("[data-date]");
78
- n?.dataset.date && (H.value = j(n.dataset.date).startOf("day").valueOf());
79
- }, ue = () => {
80
- H.value = null;
78
+ n?.dataset.date && (U.value = j(n.dataset.date).startOf("day").valueOf());
79
+ }, de = () => {
80
+ U.value = null;
81
81
  }, W = h(() => {
82
- let t = F.cursor.year().toString(), n = F.cursor.month().toString(), r = F.firstDayOfWeek, i = F.cursor.clone().startOf("month"), a = (i.day() - r + 7) % 7, o = i.subtract(a, "day"), s = F.cursor.clone().endOf("month"), c = ((r + 6) % 7 - s.day() + 7) % 7 + 1, l = s.startOf("day").add(c, "day"), d = j(F.cursor).startOf("day"), f = le.value, p = F.range, m = V.value ? f.min : null, h = V.value ? H.value ?? d.valueOf() : null, g = m !== null && h !== null ? Math.min(m, h) : null, _ = m !== null && h !== null ? Math.max(m, h) : null, v = [];
82
+ let e = F.cursor.year().toString(), t = F.cursor.month().toString(), r = F.firstDayOfWeek, i = F.cursor.clone().startOf("month"), a = (i.day() - r + 7) % 7, o = i.subtract(a, "day"), s = F.cursor.clone().endOf("month"), c = ((r + 6) % 7 - s.day() + 7) % 7 + 1, l = s.startOf("day").add(c, "day"), u = j(F.cursor).startOf("day"), f = le.value, p = F.range, m = H.value ? f.min : null, h = H.value ? U.value ?? u.valueOf() : null, g = m !== null && h !== null ? Math.min(m, h) : null, _ = m !== null && h !== null ? Math.max(m, h) : null, v = [];
83
83
  for (let e = o; e.isBefore(l); e = e.add(1, "day")) v.push(e.clone());
84
- return u(v.map((r) => {
85
- let i = r.format("YYYY-MM-DD"), a = r.week().toString(), o = f.selected(r), s = p && f.isFirstOfRange(r), c = p && f.isLastOfRange(r), l = p && !s && !c && f.isBetween(r), u = r.valueOf(), h = g !== null && _ !== null && g !== _ && u > g && u <= _ && !f.selected(r), v = h && u === _ && _ !== m, y = g !== null && g !== m && u === g && g !== _, b = r.month().toString() === n && r.year().toString() === t, x = r.isSame(ce);
84
+ return d(v.map((r) => {
85
+ let i = r.format("YYYY-MM-DD"), a = r.week().toString(), o = f.selected(r), s = p && f.isFirstOfRange(r), c = p && f.isLastOfRange(r), l = p && !s && !c && f.isBetween(r), d = r.valueOf(), h = g !== null && _ !== null && g !== _ && d > g && d <= _ && !f.selected(r), v = h && d === _ && _ !== m, y = g !== null && g !== m && d === g && g !== _, b = r.month().toString() === t && r.year().toString() === e, x = r.isSame(ce);
86
86
  return {
87
- current: r.isSame(d),
87
+ current: r.isSame(u),
88
88
  disabled: G(r),
89
89
  first: s,
90
90
  highlighted: b,
@@ -97,19 +97,19 @@ var ne = ["aria-label", "onKeydown"], re = {
97
97
  previewEnd: v,
98
98
  previewStart: y,
99
99
  selected: o,
100
- slotName: e(i),
100
+ slotName: n(i),
101
101
  today: x,
102
102
  week: a
103
103
  };
104
104
  }), 7);
105
- }), G = (e) => o(e, {
105
+ }), G = (e) => s(e, {
106
106
  min: F.min,
107
107
  max: F.max,
108
108
  selectable: F.selectable,
109
109
  floating: F.floating,
110
110
  type: F.type,
111
111
  utc: F.utc
112
- }), K = h(() => W.value.flat().filter((e) => e.highlighted && !e.disabled)), { onKeydown: q } = d({
112
+ }), K = h(() => W.value.flat().filter((e) => e.highlighted && !e.disabled)), { onKeydown: q } = f({
113
113
  candidates: () => K.value,
114
114
  getTokens: (e) => {
115
115
  let t = e.original.date();
@@ -125,18 +125,18 @@ var ne = ["aria-label", "onKeydown"], re = {
125
125
  onCommit: (e) => {
126
126
  e.disabled || Z(e);
127
127
  }
128
- }), J = w("left"), de = (e, t) => {
128
+ }), J = w("left"), fe = (e, t) => {
129
129
  e && t && (J.value = e.isBefore(t) ? "left" : "right");
130
130
  };
131
131
  ee(() => F.cursor, (e, t) => {
132
- de(e, t);
132
+ fe(e, t);
133
133
  });
134
134
  let Y = (e) => I("update:cursor", e), X = async () => {
135
- if (!z.value) return;
135
+ if (!B.value) return;
136
136
  await x();
137
- let e = i([...z.value.querySelectorAll(".bb-base-date-picker__date--current button")]);
137
+ let e = a([...B.value.querySelectorAll(".bb-base-date-picker__date--current button")]);
138
138
  e instanceof HTMLElement && e.focus();
139
- }, fe = (e) => {
139
+ }, pe = (e) => {
140
140
  if (F.readonly) return;
141
141
  let t = e.currentTarget instanceof HTMLButtonElement ? e.currentTarget : null;
142
142
  if (!t) return;
@@ -150,48 +150,48 @@ var ne = ["aria-label", "onKeydown"], re = {
150
150
  let i = W.value.flat().find((e) => e.id === n);
151
151
  !i || i.disabled || (Y(r), Z(i));
152
152
  }, Z = (e) => {
153
- F.range ? pe(e) : F.multiple ? me(e) : Q(e);
154
- }, pe = (e) => {
153
+ F.range ? me(e) : F.multiple ? he(e) : ge(e);
154
+ }, me = (e) => {
155
155
  if (Array.isArray(F.modelValue)) if (F.modelValue.length !== 1) {
156
- let t = [r(e.original, R.value)];
156
+ let t = [i(e.original, z.value)];
157
157
  I("update:modelValue", t);
158
158
  } else {
159
- let t = l([F.modelValue[0], r(e.original, R.value)]);
159
+ let t = u([F.modelValue[0], i(e.original, z.value)]);
160
160
  I("update:modelValue", t);
161
161
  }
162
- }, me = (e) => {
162
+ }, he = (e) => {
163
163
  if (Array.isArray(F.modelValue)) if (e.selected) {
164
- let t = r(e.original, R.value), n = F.modelValue.filter((e) => e !== t);
164
+ let t = i(e.original, z.value), n = F.modelValue.filter((e) => e !== t);
165
165
  I("update:modelValue", n);
166
166
  } else {
167
- let t = l([...F.modelValue, r(e.original, R.value)]);
167
+ let t = u([...F.modelValue, i(e.original, z.value)]);
168
168
  I("update:modelValue", t);
169
169
  }
170
- }, Q = (e) => {
171
- e.selected ? I("update:modelValue", null) : I("update:modelValue", r(e.original, R.value));
172
- }, $ = (e, t) => {
170
+ }, ge = (e) => {
171
+ e.selected ? I("update:modelValue", null) : I("update:modelValue", i(e.original, z.value));
172
+ }, Q = (e, t) => {
173
173
  let n = F.cursor.clone();
174
174
  for (let r = 0; r < se; r++) if (n = n.add(e, t), !G(n)) return n;
175
175
  return null;
176
- }, he = () => {
177
- let e = $(1, "day");
178
- e && (I("update:cursor", e), X());
179
- }, ge = () => {
180
- let e = $(-1, "day");
176
+ }, $ = () => {
177
+ let e = Q(1, "day");
181
178
  e && (I("update:cursor", e), X());
182
179
  }, _e = () => {
183
- let e = $(-1, "week");
180
+ let e = Q(-1, "day");
184
181
  e && (I("update:cursor", e), X());
185
182
  }, ve = () => {
186
- let e = $(1, "week");
183
+ let e = Q(-1, "week");
187
184
  e && (I("update:cursor", e), X());
188
185
  }, ye = () => {
186
+ let e = Q(1, "week");
187
+ e && (I("update:cursor", e), X());
188
+ }, be = () => {
189
189
  let e = F.cursor.clone().endOf("week");
190
190
  G(e) || (I("update:cursor", e), X());
191
- }, be = () => {
191
+ }, xe = () => {
192
192
  let e = F.cursor.clone().startOf("week");
193
193
  G(e) || (I("update:cursor", e), X());
194
- }, xe = (e) => {
194
+ }, Se = (e) => {
195
195
  if (e.shiftKey) {
196
196
  let e = F.cursor.clone().subtract(1, "year");
197
197
  if (G(e)) return;
@@ -202,7 +202,7 @@ var ne = ["aria-label", "onKeydown"], re = {
202
202
  I("update:cursor", e);
203
203
  }
204
204
  X();
205
- }, Se = (e) => {
205
+ }, Ce = (e) => {
206
206
  if (e.shiftKey) {
207
207
  let e = F.cursor.clone().add(1, "year");
208
208
  if (G(e)) return;
@@ -216,24 +216,24 @@ var ne = ["aria-label", "onKeydown"], re = {
216
216
  };
217
217
  return (e, t) => (C(), g("div", {
218
218
  ref_key: "calendar",
219
- ref: z,
220
- "aria-label": O(L)("datePicker.calendarLabel").value,
219
+ ref: B,
220
+ "aria-label": O(R)("datePicker.calendarLabel").value,
221
221
  class: S(["bb-base-date-picker__days-selector", { "bb-base-date-picker__days-selector--hidden": !e.current }]),
222
222
  role: "grid",
223
223
  onKeydown: [
224
224
  t[0] ||= (...e) => O(q) && O(q)(...e),
225
- k(A(ve, ["prevent"]), ["down"]),
226
- k(A(ye, ["prevent"]), ["end"]),
227
- k(A(be, ["prevent"]), ["home"]),
228
- k(A(ge, ["prevent"]), ["left"]),
229
- k(A(Se, ["prevent"]), ["page-down"]),
230
- k(A(xe, ["prevent"]), ["page-up"]),
231
- k(A(he, ["prevent"]), ["right"]),
232
- k(A(_e, ["prevent"]), ["up"])
225
+ k(A(ye, ["prevent"]), ["down"]),
226
+ k(A(be, ["prevent"]), ["end"]),
227
+ k(A(xe, ["prevent"]), ["home"]),
228
+ k(A(_e, ["prevent"]), ["left"]),
229
+ k(A(Ce, ["prevent"]), ["page-down"]),
230
+ k(A(Se, ["prevent"]), ["page-up"]),
231
+ k(A($, ["prevent"]), ["right"]),
232
+ k(A(ve, ["prevent"]), ["up"])
233
233
  ],
234
- onMouseleave: ue,
235
- onMouseover: U
236
- }, [y(f, {
234
+ onMouseleave: de,
235
+ onMouseover: ue
236
+ }, [y(p, {
237
237
  direction: J.value,
238
238
  gap: 30
239
239
  }, {
@@ -241,7 +241,7 @@ var ne = ["aria-label", "onKeydown"], re = {
241
241
  key: e.cursor.month().toString(),
242
242
  class: "bb-base-date-picker__month",
243
243
  role: "none"
244
- }, [_("div", re, [(C(!0), g(m, null, T(B.value, (e) => (C(), g("div", {
244
+ }, [_("div", re, [(C(!0), g(m, null, T(V.value, (e) => (C(), g("div", {
245
245
  key: e.id,
246
246
  abbr: e.accessibleLabel,
247
247
  "aria-label": e.accessibleLabel,
@@ -270,13 +270,13 @@ var ne = ["aria-label", "onKeydown"], re = {
270
270
  }]),
271
271
  role: "gridcell"
272
272
  }, [_("button", {
273
- "aria-label": `${t.original.locale(O(p).locale).format("dddd, MMMM D, YYYY")}${t.selected ? `, ${O(L)("datePicker.selectedLabel").value}` : ""}`,
273
+ "aria-label": `${t.original.locale(O(L).locale).format("dddd, MMMM D, YYYY")}${t.selected ? `, ${O(R)("datePicker.selectedLabel").value}` : ""}`,
274
274
  class: "bb-base-date-picker__date-button",
275
275
  "data-date": t.id,
276
276
  disabled: e.disabled || t.disabled,
277
277
  tabindex: Number(t.current) - 1,
278
278
  type: "button",
279
- onClick: fe
279
+ onClick: pe
280
280
  }, [E(e.$slots, t.slotName, {
281
281
  first: t.first,
282
282
  highlighted: t.highlighted,
@@ -293,7 +293,7 @@ var ne = ["aria-label", "onKeydown"], re = {
293
293
  last: t.last,
294
294
  middle: t.middle,
295
295
  selected: t.selected
296
- }, () => [v(D(t.label), 1)])])], 8, M), _("div", N, [E(e.$slots, `append:${t.slotName}`, {
296
+ }, () => [v(D(t.label), 1)])])], 8, oe), _("div", M, [E(e.$slots, `append:${t.slotName}`, {
297
297
  first: t.first,
298
298
  highlighted: t.highlighted,
299
299
  item: t.original,
@@ -311,7 +311,7 @@ var ne = ["aria-label", "onKeydown"], re = {
311
311
  selected: t.selected
312
312
  })])])], 10, ae))), 128))]))), 128))]))]),
313
313
  _: 3
314
- }, 8, ["direction"]), _("div", oe, D(V.value ? O(L)("datePicker.selectEndDate").value : ""), 1)], 42, ne));
314
+ }, 8, ["direction"]), _("div", N, D(H.value ? O(R)("datePicker.selectEndDate").value : ""), 1)], 42, ne));
315
315
  }
316
316
  });
317
317
  //#endregion
@@ -1,101 +1,101 @@
1
- import e from "../BbBaseButton/BbBaseButton.vue.js";
2
- import { useLocale as t } from "../../composables/useLocale.js";
3
- import { chunk as n } from "../../utilities/functions/chunk.js";
4
- import { useTypeahead as r } from "./typeahead.js";
5
- import { useDatePickerContext as i } from "./useDatePickerContext.js";
6
- import { config as a } from "virtual:bitboss-ui/config";
1
+ import { useConfig as e } from "../../composables/useConfig.js";
2
+ import t from "../BbBaseButton/BbBaseButton.vue.js";
3
+ import { useLocale as n } from "../../composables/useLocale.js";
4
+ import { chunk as r } from "../../utilities/functions/chunk.js";
5
+ import { useTypeahead as i } from "./typeahead.js";
6
+ import { useDatePickerContext as a } from "./useDatePickerContext.js";
7
7
  import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, watch as S, withCtx as C, withKeys as w, withModifiers as T } from "vue";
8
8
  //#region src/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue?vue&type=script&setup=true&lang.ts
9
9
  var E = ["aria-label", "role"], D = ["role"], O = ["role"], k = 3, A = /*@__PURE__*/ f({
10
10
  __name: "BbBaseDatePickerMonthSelector",
11
11
  setup(f, { expose: A }) {
12
- let j = i(), { t: M } = t(), { cursor: N, disabled: P, monthOptions: F, typeaheadResetKey: I } = j, L = s(() => N.value.month()), R = s(() => j.terminalUnit.value === "month"), z = (e) => N.value.set("month", e), B = v(null), V = s(() => F.value.map((e) => {
13
- if (!R.value) return {
12
+ let j = e(), M = a(), { t: N } = n(), { cursor: P, disabled: F, monthOptions: I, typeaheadResetKey: L } = M, R = s(() => P.value.month()), z = s(() => M.terminalUnit.value === "month"), B = (e) => P.value.set("month", e), V = v(null), H = s(() => I.value.map((e) => {
13
+ if (!z.value) return {
14
14
  ...e,
15
- selected: e.value === (B.value ?? L.value),
16
- cursored: e.value === L.value,
15
+ selected: e.value === (V.value ?? R.value),
16
+ cursored: e.value === R.value,
17
17
  first: !1,
18
18
  last: !1,
19
19
  middle: !1,
20
20
  preview: !1,
21
21
  disabled: !1
22
22
  };
23
- let t = j.unitState(z(e.value));
23
+ let t = M.unitState(B(e.value));
24
24
  return {
25
25
  ...e,
26
26
  ...t,
27
- cursored: e.value === (B.value ?? L.value)
27
+ cursored: e.value === (V.value ?? R.value)
28
28
  };
29
- })), H = s(() => n(V.value, k)), U = v(), W = (e) => {
30
- (U.value?.querySelector(`[data-month="${e}"]`))?.focus();
31
- }, G = (e) => {
32
- let t = B.value ?? L.value, n = Math.min(11, Math.max(0, t + e));
33
- n !== t && (B.value = n, R.value && j.setHoveredUnit(z(n)), W(n));
29
+ })), U = s(() => r(H.value, k)), W = v(), G = (e) => {
30
+ (W.value?.querySelector(`[data-month="${e}"]`))?.focus();
34
31
  }, K = (e) => {
35
- N.value = N.value.add(e, "year"), p(() => W(B.value ?? L.value));
36
- }, { onKeydown: q, reset: J } = r({
37
- candidates: () => V.value,
32
+ let t = V.value ?? R.value, n = Math.min(11, Math.max(0, t + e));
33
+ n !== t && (V.value = n, z.value && M.setHoveredUnit(B(n)), G(n));
34
+ }, q = (e) => {
35
+ P.value = P.value.add(e, "year"), p(() => G(V.value ?? R.value));
36
+ }, { onKeydown: J, reset: Y } = i({
37
+ candidates: () => H.value,
38
38
  getTokens: (e) => e.tokens,
39
- getCurrent: () => V.value.find((e) => e.value === L.value),
39
+ getCurrent: () => H.value.find((e) => e.value === R.value),
40
40
  onMatch: (e) => {
41
- B.value = e.value, R.value && j.setHoveredUnit(z(e.value)), W(e.value);
41
+ V.value = e.value, z.value && M.setHoveredUnit(B(e.value)), G(e.value);
42
42
  },
43
43
  onCommit: (e) => {
44
- j.selectMonth(e.value);
44
+ M.selectMonth(e.value);
45
45
  },
46
- locale: () => a.locale
46
+ locale: () => j.locale
47
47
  });
48
- return S(I, () => {
49
- B.value = null, J();
48
+ return S(L, () => {
49
+ V.value = null, Y();
50
50
  }), g(async () => {
51
- await p(), R.value || W(L.value);
51
+ await p(), z.value || G(R.value);
52
52
  }), h(() => {
53
- J();
54
- }), A({ processKey: q }), (t, n) => (_(), l("div", {
53
+ Y();
54
+ }), A({ processKey: J }), (e, n) => (_(), l("div", {
55
55
  ref_key: "container",
56
- ref: U,
57
- "aria-label": x(M)("datePicker.monthSelectorLabel").value,
58
- class: m(["bb-base-date-picker__button-menu bb-base-date-picker__month-selector", { "bb-base-date-picker__button-menu--terminal": R.value }]),
59
- role: R.value ? "grid" : "group",
60
- onKeydownCapture: n[0] ||= (...e) => x(q) && x(q)(...e),
56
+ ref: W,
57
+ "aria-label": x(N)("datePicker.monthSelectorLabel").value,
58
+ class: m(["bb-base-date-picker__button-menu bb-base-date-picker__month-selector", { "bb-base-date-picker__button-menu--terminal": z.value }]),
59
+ role: z.value ? "grid" : "group",
60
+ onKeydownCapture: n[0] ||= (...e) => x(J) && x(J)(...e),
61
61
  onKeydown: [
62
- n[1] ||= w(T((e) => R.value && G(3), ["prevent"]), ["down"]),
63
- n[2] ||= w(T((e) => R.value && W(11), ["prevent"]), ["end"]),
64
- n[3] ||= w(T((e) => R.value && W(0), ["prevent"]), ["home"]),
65
- n[4] ||= w(T((e) => R.value && G(-1), ["prevent"]), ["left"]),
66
- n[5] ||= w(T((e) => R.value && K(1), ["prevent"]), ["page-down"]),
67
- n[6] ||= w(T((e) => R.value && K(-1), ["prevent"]), ["page-up"]),
68
- n[7] ||= w(T((e) => R.value && G(1), ["prevent"]), ["right"]),
69
- n[8] ||= w(T((e) => R.value && G(-3), ["prevent"]), ["up"])
62
+ n[1] ||= w(T((e) => z.value && K(3), ["prevent"]), ["down"]),
63
+ n[2] ||= w(T((e) => z.value && G(11), ["prevent"]), ["end"]),
64
+ n[3] ||= w(T((e) => z.value && G(0), ["prevent"]), ["home"]),
65
+ n[4] ||= w(T((e) => z.value && K(-1), ["prevent"]), ["left"]),
66
+ n[5] ||= w(T((e) => z.value && q(1), ["prevent"]), ["page-down"]),
67
+ n[6] ||= w(T((e) => z.value && q(-1), ["prevent"]), ["page-up"]),
68
+ n[7] ||= w(T((e) => z.value && K(1), ["prevent"]), ["right"]),
69
+ n[8] ||= w(T((e) => z.value && K(-3), ["prevent"]), ["up"])
70
70
  ],
71
- onMouseleave: n[9] ||= (e) => R.value && x(j).setHoveredUnit(null)
71
+ onMouseleave: n[9] ||= (e) => z.value && x(M).setHoveredUnit(null)
72
72
  }, [u("div", {
73
73
  class: "content",
74
- role: R.value ? "none" : void 0
75
- }, [(_(!0), l(o, null, y(H.value, (t) => (_(), l("div", {
76
- key: t[0].key,
74
+ role: z.value ? "none" : void 0
75
+ }, [(_(!0), l(o, null, y(U.value, (e) => (_(), l("div", {
76
+ key: e[0].key,
77
77
  class: "content__row",
78
- role: R.value ? "row" : void 0
79
- }, [(_(!0), l(o, null, y(t, (t) => (_(), c(e, {
80
- key: t.key,
81
- "aria-current": t.cursored ? "date" : void 0,
82
- "aria-label": t.ariaLabel,
83
- "aria-pressed": R.value ? void 0 : t.selected,
84
- "aria-selected": R.value ? t.selected : void 0,
78
+ role: z.value ? "row" : void 0
79
+ }, [(_(!0), l(o, null, y(e, (e) => (_(), c(t, {
80
+ key: e.key,
81
+ "aria-current": e.cursored ? "date" : void 0,
82
+ "aria-label": e.ariaLabel,
83
+ "aria-pressed": z.value ? void 0 : e.selected,
84
+ "aria-selected": z.value ? e.selected : void 0,
85
85
  class: m(["content__btn", {
86
- "content__btn--selected": t.selected,
87
- "content__btn--first": t.first,
88
- "content__btn--last": t.last,
89
- "content__btn--middle": t.middle,
90
- "content__btn--preview": t.preview
86
+ "content__btn--selected": e.selected,
87
+ "content__btn--first": e.first,
88
+ "content__btn--last": e.last,
89
+ "content__btn--middle": e.middle,
90
+ "content__btn--preview": e.preview
91
91
  }]),
92
- "data-month": t.value,
93
- disabled: x(P) || t.disabled,
94
- role: R.value ? "gridcell" : void 0,
95
- onClick: (e) => x(j).selectMonth(t.value),
96
- onMouseenter: (e) => R.value && x(j).setHoveredUnit(z(t.value))
92
+ "data-month": e.value,
93
+ disabled: x(F) || e.disabled,
94
+ role: z.value ? "gridcell" : void 0,
95
+ onClick: (t) => x(M).selectMonth(e.value),
96
+ onMouseenter: (t) => z.value && x(M).setHoveredUnit(B(e.value))
97
97
  }, {
98
- default: C(() => [d(b(t.text), 1)]),
98
+ default: C(() => [d(b(e.text), 1)]),
99
99
  _: 2
100
100
  }, 1032, [
101
101
  "aria-current",
@@ -15,10 +15,10 @@ declare const __VLS_base: import('vue').DefineComponent<BaseDatePickerInputProps
15
15
  "onUpdate:time"?: ((value: string | string[] | null) => any) | undefined;
16
16
  onInactive?: (() => any) | undefined;
17
17
  }>, {
18
+ adaptive: boolean;
18
19
  type: import('../../types/DatePickerType').DatePickerType;
19
20
  disableWriting: boolean | "mobile" | "desktop";
20
21
  disableCalendar: boolean | "mobile" | "desktop";
21
- adaptive: boolean;
22
22
  autocomplete: string;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;