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,17 +1,17 @@
1
- import { useId as e } from "../../composables/useId.js";
2
- import { useLogger as t } from "../../composables/useLogger.js";
3
- import { extractDomContainer as n } from "../../utilities/functions/extractDomContainer.js";
4
- import { transitions as r } from "../../utilities/misc/transitions.js";
5
- import i from "../CommonPopover/CommonPopover.vue.js";
6
- import { useMobile as a } from "../../composables/useMobile.js";
7
- import { useLocale as o } from "../../composables/useLocale.js";
8
- import ee from "../BbOffCanvas/BbOffCanvas.vue.js";
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 { extractDomContainer as r } from "../../utilities/functions/extractDomContainer.js";
5
+ import { transitions as i } from "../../utilities/misc/transitions.js";
6
+ import a from "../CommonPopover/CommonPopover.vue.js";
7
+ import { useMobile as o } from "../../composables/useMobile.js";
8
+ import { useLocale as ee } from "../../composables/useLocale.js";
9
+ import te from "../BbOffCanvas/BbOffCanvas.vue.js";
9
10
  import { isCoarseType as s } from "../../types/DatePickerType.js";
10
- import { toInnerValue as c, toOuterValue as te } from "../../utilities/functions/convertDateValue.js";
11
- import ne from "../BbBaseDatePicker/BbBaseDatePicker.vue.js";
12
- import re from "../BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js";
13
- import { config as ie } from "virtual:bitboss-ui/config";
14
- import { Fragment as ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as oe, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as se, normalizeClass as ce, normalizeProps as _, normalizeStyle as le, onBeforeUnmount as ue, openBlock as v, ref as y, renderSlot as b, unref as x, watch as S, withCtx as C } from "vue";
11
+ import { toInnerValue as c, toOuterValue as ne } from "../../utilities/functions/convertDateValue.js";
12
+ import re from "../BbBaseDatePicker/BbBaseDatePicker.vue.js";
13
+ import ie from "../BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js";
14
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as ae, createElementVNode as oe, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as se, normalizeClass as ce, normalizeProps as _, normalizeStyle as le, onBeforeUnmount as ue, openBlock as v, ref as y, renderSlot as b, unref as x, watch as S, withCtx as C } from "vue";
15
15
  import { createReusableTemplate as de } from "@vueuse/core";
16
16
  //#region src/components/BbDatePicker/BbDatePicker.vue?vue&type=script&setup=true&lang.ts
17
17
  var w = /*@__PURE__*/ m({
@@ -41,7 +41,7 @@ var w = /*@__PURE__*/ m({
41
41
  default: void 0
42
42
  },
43
43
  offCanvasProps: {},
44
- transitionDuration: { default: r.medium },
44
+ transitionDuration: { default: i.medium },
45
45
  placement: {},
46
46
  offset: { default: 4 },
47
47
  padding: {},
@@ -57,78 +57,78 @@ var w = /*@__PURE__*/ m({
57
57
  "grid-pick",
58
58
  "time-pick"
59
59
  ],
60
- setup(r, { expose: m, emit: w }) {
61
- let T = r, E = w, D = l(() => T.type === "datetime"), fe = l(() => T.floating || s(T.type));
62
- T.multiple && T.range && t().throw("BbDatePicker: cannot be both multiple and range — they are two different selection models. Pick one."), T.multiple && T.type === "datetime" && t().throw("BbDatePicker: `multiple` cannot be combined with type=\"datetime\" — the time rail edits a single value. Drop one of the two.");
63
- let { t: pe } = o(), { isMobile: O } = a(), me = `bdp-${e().id.value}`, [he, k] = de(), A = y(null), j = y(null), M = l(() => T.activeSegment ?? N.value), N = y("start"), ge = (e) => {
60
+ setup(i, { expose: m, emit: w }) {
61
+ let T = i, E = w, fe = e(), D = u(() => T.type === "datetime"), pe = u(() => T.floating || s(T.type));
62
+ T.multiple && T.range && n().throw("BbDatePicker: cannot be both multiple and range — they are two different selection models. Pick one."), T.multiple && T.type === "datetime" && n().throw("BbDatePicker: `multiple` cannot be combined with type=\"datetime\" — the time rail edits a single value. Drop one of the two.");
63
+ let { t: me } = ee(), { isMobile: O } = o(), he = `bdp-${t().id.value}`, [ge, k] = de(), A = y(null), j = y(null), M = u(() => T.activeSegment ?? N.value), N = y("start"), _e = (e) => {
64
64
  N.value = e, E("update:activeSegment", e);
65
- }, P = y(), F = y(), I = l(() => T.activator != null), L = (e) => {
66
- P.value = n(e) ?? void 0;
67
- }, _e = (e) => {
68
- F.value = n(e) ?? void 0;
65
+ }, P = y(), F = y(), I = u(() => T.activator != null), ve = (e) => {
66
+ P.value = r(e) ?? void 0;
67
+ }, ye = (e) => {
68
+ F.value = r(e) ?? void 0;
69
69
  };
70
70
  S(() => T.activator, (e) => {
71
- P.value = n(e) ?? void 0;
71
+ P.value = r(e) ?? void 0;
72
72
  }, { immediate: !0 }), S(() => T.anchor, (e) => {
73
- F.value = e == null ? void 0 : n(e) ?? void 0;
73
+ F.value = e == null ? void 0 : r(e) ?? void 0;
74
74
  }, { immediate: !0 });
75
- let ve = l(() => F.value ?? P.value), R = y(!1), z = null, B = (e) => {
76
- T.disabled || T.readonly || (e.stopPropagation(), R.value = !R.value);
77
- }, V = (e) => {
78
- e.target instanceof HTMLDialogElement && (R.value = !1);
75
+ let be = u(() => F.value ?? P.value), L = y(!1), R = null, z = (e) => {
76
+ T.disabled || T.readonly || (e.stopPropagation(), L.value = !L.value);
77
+ }, B = (e) => {
78
+ e.target instanceof HTMLDialogElement && (L.value = !1);
79
79
  };
80
- S(R, async (e) => {
81
- e ? (z = document.activeElement instanceof HTMLElement ? document.activeElement : null, K.value || document.addEventListener("click", V, { passive: !0 }), await se(), A.value?.querySelector("[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", V), j.value?.resetStatus(), z?.focus(), z = null);
80
+ S(L, async (e) => {
81
+ e ? (R = document.activeElement instanceof HTMLElement ? document.activeElement : null, G.value || document.addEventListener("click", B, { passive: !0 }), await se(), A.value?.querySelector("[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", B), j.value?.resetStatus(), R?.focus(), R = null);
82
82
  });
83
- let H = null;
83
+ let V = null;
84
84
  S(P, (e) => {
85
- H?.(), H = null, e && (e.addEventListener("click", B), H = () => {
86
- e.removeEventListener("click", B), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-label");
85
+ V?.(), V = null, e && (e.addEventListener("click", z), V = () => {
86
+ e.removeEventListener("click", z), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-label");
87
87
  });
88
88
  }, { immediate: !0 });
89
- let U = l(() => T.label ?? pe("datePicker.openPicker").value);
89
+ let H = u(() => T.label ?? me("datePicker.openPicker").value);
90
90
  S([
91
91
  P,
92
- R,
93
- U
92
+ L,
93
+ H
94
94
  ], ([e, t, n]) => {
95
95
  e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-label", n));
96
96
  }, { immediate: !0 }), ue(() => {
97
- H?.(), document.removeEventListener("click", V);
97
+ V?.(), document.removeEventListener("click", B);
98
98
  });
99
- let W = () => (T.adaptive ?? ie.adaptive) && O.value ? "canvas" : "popover", G = y(W()), K = l(() => G.value === "canvas");
99
+ let U = () => (T.adaptive ?? fe.adaptive) && O.value ? "canvas" : "popover", W = y(U()), G = u(() => W.value === "canvas");
100
100
  S([
101
101
  () => T.adaptive,
102
102
  O,
103
- R
103
+ L
104
104
  ], () => {
105
- R.value || (G.value = W());
105
+ L.value || (W.value = U());
106
106
  });
107
- let ye = l(() => ({
107
+ let xe = u(() => ({
108
108
  side: "bottom",
109
109
  size: "auto",
110
110
  draggable: !0,
111
111
  disabled: T.disabled,
112
112
  transitionDuration: T.transitionDuration,
113
113
  ...T.offCanvasProps
114
- })), be = () => {
114
+ })), Se = () => {
115
115
  P.value?.focus();
116
- }, xe = l(() => s(T.type) ? T.min : T.min?.slice(0, 10)), Se = l(() => s(T.type) ? T.max : T.max?.slice(0, 10)), Ce = l(() => (T.range || T.multiple) && !Array.isArray(T.modelValue) ? [] : T.modelValue), we = (e) => T.multiple ? !1 : T.range ? Array.isArray(e) && e.length === 2 : !!e, q = (e) => +(e === "end"), J = (e) => {
116
+ }, Ce = u(() => s(T.type) ? T.min : T.min?.slice(0, 10)), we = u(() => s(T.type) ? T.max : T.max?.slice(0, 10)), Te = u(() => (T.range || T.multiple) && !Array.isArray(T.modelValue) ? [] : T.modelValue), Ee = (e) => T.multiple ? !1 : T.range ? Array.isArray(e) && e.length === 2 : !!e, K = (e) => +(e === "end"), q = (e) => {
117
117
  let t = T.modelValue;
118
- return t == null ? null : Array.isArray(t) ? t[q(e)] ?? null : e === "start" ? t : null;
119
- }, Te = (e) => {
118
+ return t == null ? null : Array.isArray(t) ? t[K(e)] ?? null : e === "start" ? t : null;
119
+ }, De = (e) => {
120
120
  let t = T.time;
121
121
  if (t != null) {
122
- if (Array.isArray(t)) return t[q(e)] ?? null;
122
+ if (Array.isArray(t)) return t[K(e)] ?? null;
123
123
  if (e === "start" && typeof t == "string") return t;
124
124
  }
125
125
  if (T.floating) return null;
126
- let n = J(e);
126
+ let n = q(e);
127
127
  if (!n) return null;
128
128
  let r = c(n);
129
129
  return r.isValid() ? r.format(T.seconds ? "HH:mm:ss" : "HH:mm") : null;
130
- }, Y = (e) => {
131
- let t = Te(e);
130
+ }, J = (e) => {
131
+ let t = De(e);
132
132
  if (!t) return null;
133
133
  let [n = "", r = "", i = ""] = t.split(":");
134
134
  return {
@@ -136,33 +136,33 @@ var w = /*@__PURE__*/ m({
136
136
  minute: r,
137
137
  second: i
138
138
  };
139
- }, X = (e, t) => {
139
+ }, Y = (e, t) => {
140
140
  let n = c(e, { floating: T.floating });
141
141
  if (!n.isValid()) return null;
142
142
  let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a = T.seconds && t?.second ? parseInt(t.second, 10) : 0, o = n.hour(r).minute(i).second(a).millisecond(0);
143
143
  return {
144
- value: te(o, {
144
+ value: ne(o, {
145
145
  floating: T.floating,
146
146
  utc: T.utc
147
147
  }),
148
148
  time: T.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
149
149
  };
150
- }, Z = () => ({
150
+ }, X = () => ({
151
151
  start: {
152
- date: J("start"),
153
- time: Y("start")
152
+ date: q("start"),
153
+ time: J("start")
154
154
  },
155
155
  end: {
156
- date: J("end"),
157
- time: Y("end")
156
+ date: q("end"),
157
+ time: J("end")
158
158
  }
159
- }), Q = (e) => {
159
+ }), Z = (e) => {
160
160
  if (T.range) {
161
161
  let t = [], n = [];
162
162
  for (let r of ["start", "end"]) {
163
163
  let i = e[r];
164
164
  if (!i.date) continue;
165
- let a = X(i.date, i.time);
165
+ let a = Y(i.date, i.time);
166
166
  a && (t.push(a.value), n.push(a.time));
167
167
  }
168
168
  E("update:modelValue", t.length ? t : null), E("update:time", n.length ? n : null);
@@ -173,22 +173,22 @@ var w = /*@__PURE__*/ m({
173
173
  E("update:modelValue", null), E("update:time", null);
174
174
  return;
175
175
  }
176
- let n = X(t.date, t.time);
176
+ let n = Y(t.date, t.time);
177
177
  E("update:modelValue", n ? n.value : null), E("update:time", n ? n.time : null);
178
- }, Ee = (e) => {
178
+ }, Oe = (e) => {
179
179
  if (E("grid-pick", e), !D.value) {
180
- E("update:modelValue", e), we(e) && (R.value = !1);
180
+ E("update:modelValue", e), Ee(e) && (L.value = !1);
181
181
  return;
182
182
  }
183
183
  if (e === null) {
184
184
  E("update:modelValue", null), E("update:time", null);
185
185
  return;
186
186
  }
187
- let t = Z();
188
- Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e, Q(t);
189
- }, De = l(() => !!J(M.value)), $ = l(() => Y(M.value)), Oe = l(() => $.value?.hour ?? ""), ke = l(() => $.value?.minute ?? ""), Ae = l(() => $.value?.second ?? ""), je = l(() => ""), Me = (e) => {
187
+ let t = X();
188
+ Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e, Z(t);
189
+ }, ke = u(() => !!q(M.value)), Q = u(() => J(M.value)), Ae = u(() => Q.value?.hour ?? ""), $ = u(() => Q.value?.minute ?? ""), je = u(() => Q.value?.second ?? ""), Me = u(() => ""), Ne = (e) => {
190
190
  if (E("time-pick", e), !D.value) return;
191
- let t = M.value, n = Z();
191
+ let t = M.value, n = X();
192
192
  if (!n[t].date) return;
193
193
  let r = n[t].time ? { ...n[t].time } : {
194
194
  hour: "",
@@ -199,49 +199,49 @@ var w = /*@__PURE__*/ m({
199
199
  let t = r.hour ? parseInt(r.hour, 10) : 0, n = e.value === "PM";
200
200
  n && t < 12 && (t += 12), !n && t >= 12 && (t -= 12), r.hour = String(t).padStart(2, "0");
201
201
  } else r[e.unit] = e.value;
202
- r.hour ||= "00", r.minute ||= "00", T.seconds && !r.second && (r.second = "00"), n[t].time = r, Q(n);
203
- }, Ne = l(() => {
202
+ r.hour ||= "00", r.minute ||= "00", T.seconds && !r.second && (r.second = "00"), n[t].time = r, Z(n);
203
+ }, Pe = u(() => {
204
204
  if (!D.value) return;
205
205
  let e = [44, 44];
206
206
  return T.seconds && e.push(44), T.ampm && e.push(48), { "--rail-w": `${33 + e.reduce((e, t) => e + t, 0) + (e.length - 1) * 6}px` };
207
207
  });
208
208
  return S(() => T.modelValue, (e) => {
209
- !T.range || !D.value || T.activeSegment != null || Array.isArray(e) && e.length === 2 && ge("end");
210
- }), m({ calendarEl: A }), (e, t) => (v(), f(ae, null, [
211
- I.value ? d("", !0) : b(e.$slots, "activator", _(g({ key: 0 }, {
212
- props: { ref: L },
213
- anchorProps: { ref: _e },
214
- open: R.value,
209
+ !T.range || !D.value || T.activeSegment != null || Array.isArray(e) && e.length === 2 && _e("end");
210
+ }), m({ calendarEl: A }), (e, t) => (v(), ae(l, null, [
211
+ I.value ? f("", !0) : b(e.$slots, "activator", _(g({ key: 0 }, {
212
+ props: { ref: ve },
213
+ anchorProps: { ref: ye },
214
+ open: L.value,
215
215
  value: e.modelValue,
216
216
  disabled: !!e.disabled
217
217
  }))),
218
- p(x(he), null, {
218
+ p(x(ge), null, {
219
219
  default: C(() => [oe("div", {
220
220
  ref_key: "calendarRef",
221
221
  ref: A,
222
222
  class: ce(["bb-date-picker__calendar", {
223
223
  "bb-date-picker__calendar--datetime": D.value,
224
- "bb-date-picker__calendar--sheet": K.value
224
+ "bb-date-picker__calendar--sheet": G.value
225
225
  }]),
226
- style: le(Ne.value)
227
- }, [p(ne, {
228
- id: me,
226
+ style: le(Pe.value)
227
+ }, [p(re, {
228
+ id: he,
229
229
  ref_key: "gridRef",
230
230
  ref: j,
231
231
  disabled: e.disabled,
232
232
  "first-day-of-week": e.firstDayOfWeek,
233
- floating: fe.value,
233
+ floating: pe.value,
234
234
  header: "",
235
- max: Se.value,
236
- min: xe.value,
237
- "model-value": Ce.value,
235
+ max: we.value,
236
+ min: Ce.value,
237
+ "model-value": Te.value,
238
238
  multiple: e.multiple,
239
239
  range: e.range,
240
240
  readonly: e.readonly,
241
241
  selectable: e.selectable,
242
242
  type: e.type,
243
243
  utc: e.utc,
244
- "onUpdate:modelValue": Ee
244
+ "onUpdate:modelValue": Oe
245
245
  }, {
246
246
  day: C((t) => [b(e.$slots, "day", _(h(t)))]),
247
247
  "append:day": C((t) => [b(e.$slots, "append:day", _(h(t)))]),
@@ -259,17 +259,17 @@ var w = /*@__PURE__*/ m({
259
259
  "selectable",
260
260
  "type",
261
261
  "utc"
262
- ]), D.value ? (v(), u(re, {
262
+ ]), D.value ? (v(), d(ie, {
263
263
  key: 0,
264
264
  ampm: e.ampm,
265
- disabled: e.disabled || e.readonly || !De.value,
266
- hour: Oe.value,
267
- meridiem: je.value,
268
- minute: ke.value,
269
- second: Ae.value,
265
+ disabled: e.disabled || e.readonly || !ke.value,
266
+ hour: Ae.value,
267
+ meridiem: Me.value,
268
+ minute: $.value,
269
+ second: je.value,
270
270
  seconds: e.seconds,
271
271
  step: e.step,
272
- onSelect: Me
272
+ onSelect: Ne
273
273
  }, null, 8, [
274
274
  "ampm",
275
275
  "disabled",
@@ -279,23 +279,23 @@ var w = /*@__PURE__*/ m({
279
279
  "second",
280
280
  "seconds",
281
281
  "step"
282
- ])) : d("", !0)], 6)]),
282
+ ])) : f("", !0)], 6)]),
283
283
  _: 3
284
284
  }),
285
- K.value ? (v(), u(ee, g({
285
+ G.value ? (v(), d(te, g({
286
286
  key: 1,
287
- modelValue: R.value,
288
- "onUpdate:modelValue": t[0] ||= (e) => R.value = e,
287
+ modelValue: L.value,
288
+ "onUpdate:modelValue": t[0] ||= (e) => L.value = e,
289
289
  class: "bb-date-picker-offcanvas"
290
- }, ye.value, { onHidden: be }), {
290
+ }, xe.value, { onHidden: Se }), {
291
291
  default: C(() => [p(x(k))]),
292
292
  _: 1
293
- }, 16, ["modelValue"])) : (v(), u(i, {
293
+ }, 16, ["modelValue"])) : (v(), d(a, {
294
294
  key: 2,
295
- modelValue: R.value,
296
- "onUpdate:modelValue": t[1] ||= (e) => R.value = e,
297
- anchor: ve.value,
298
- "aria-label": U.value,
295
+ modelValue: L.value,
296
+ "onUpdate:modelValue": t[1] ||= (e) => L.value = e,
297
+ anchor: be.value,
298
+ "aria-label": H.value,
299
299
  boundary: e.boundary,
300
300
  class: "bb-date-picker__popover",
301
301
  dialog: "",
@@ -1,9 +1,9 @@
1
- import { removedPropsFor as e } from "../../deprecation/removedProps.js";
2
- import { warnRemovedAttrs as t } from "../../utilities/functions/warnRemovedAttrs.js";
3
- import n from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
4
- import { isNotEmpty as r } from "../../utilities/functions/isNotEmpty.js";
5
- import i from "../BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js";
6
- import { config as a } from "virtual:bitboss-ui/config";
1
+ import { useConfig as e } from "../../composables/useConfig.js";
2
+ import { removedPropsFor as t } from "../../deprecation/removedProps.js";
3
+ import { warnRemovedAttrs as n } from "../../utilities/functions/warnRemovedAttrs.js";
4
+ import r from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
5
+ import { isNotEmpty as i } from "../../utilities/functions/isNotEmpty.js";
6
+ import a from "../BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js";
7
7
  import { computed as o, createBlock as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, onBeforeUnmount as p, onDeactivated as m, openBlock as h, ref as g, renderSlot as _, withCtx as v } from "vue";
8
8
  //#region src/components/BbDatePickerInput/BbDatePickerInput.vue?vue&type=script&setup=true&lang.ts
9
9
  var y = /*@__PURE__*/ l({
@@ -66,25 +66,25 @@ var y = /*@__PURE__*/ l({
66
66
  "update:time"
67
67
  ],
68
68
  setup(l, { emit: y }) {
69
- let b = l, x = y;
70
- process.env.NODE_ENV !== "production" && t("BbDatePickerInput", e("BbDatePickerInput"));
71
- let S = g(!1), C = o(() => b.persistentHint || S.value), w = o(() => r(b.modelValue)), T = o(() => b.labelMode ?? a.defaultInputLabelMode), E = () => {
72
- S.value = !1;
69
+ let b = l, x = y, S = e();
70
+ process.env.NODE_ENV !== "production" && n("BbDatePickerInput", t("BbDatePickerInput"));
71
+ let C = g(!1), w = o(() => b.persistentHint || C.value), T = o(() => i(b.modelValue)), E = o(() => b.labelMode ?? S.defaultInputLabelMode), D = () => {
72
+ C.value = !1;
73
73
  };
74
- m(E), p(E);
75
- let D = {
74
+ m(D), p(D);
75
+ let O = {
76
76
  onError: (e) => x("error", e),
77
77
  onFocus: (e) => x("focus", e),
78
78
  onActive: () => {
79
- S.value = !0, x("active");
79
+ C.value = !0, x("active");
80
80
  },
81
81
  onInactive: () => {
82
- E(), x("inactive");
82
+ D(), x("inactive");
83
83
  },
84
84
  "onUpdate:modelValue": (e) => x("update:modelValue", e),
85
85
  "onUpdate:time": (e) => x("update:time", e)
86
86
  };
87
- return (e, t) => (h(), s(n, {
87
+ return (e, t) => (h(), s(r, {
88
88
  id: e.id,
89
89
  class: "bb-date-picker-input",
90
90
  compact: e.compact,
@@ -92,26 +92,26 @@ var y = /*@__PURE__*/ l({
92
92
  direction: e.direction,
93
93
  errors: e.errors,
94
94
  "has-errors": e.hasErrors,
95
- "has-value": w.value,
95
+ "has-value": T.value,
96
96
  "has-warning": e.hasWarning,
97
97
  "hide-label": e.hideLabel,
98
98
  hint: e.hint,
99
99
  label: e.label,
100
- "label-mode": T.value,
100
+ "label-mode": E.value,
101
101
  "label-position": e.labelPosition,
102
102
  "model-value": e.modelValue,
103
103
  name: e.name,
104
104
  reverse: e.reverse,
105
- "show-hint": C.value,
105
+ "show-hint": w.value,
106
106
  warnings: e.warnings
107
107
  }, {
108
108
  label: v((t) => [_(e.$slots, "label", f(u(t)))]),
109
- input: v(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: a }) => [c(i, d({
109
+ input: v(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: i }) => [c(a, d({
110
110
  id: t,
111
111
  adaptive: e.adaptive,
112
112
  ampm: e.ampm,
113
113
  "append:icon": b["append:icon"],
114
- "aria-describedby": a,
114
+ "aria-describedby": i,
115
115
  autocomplete: e.autocomplete,
116
116
  autofocus: e.autofocus,
117
117
  clearable: e.clearable,
@@ -141,7 +141,7 @@ var y = /*@__PURE__*/ l({
141
141
  "transition-duration": e.transitionDuration,
142
142
  type: e.type,
143
143
  utc: e.utc
144
- }, D), {
144
+ }, O), {
145
145
  "prepend-outer": v(() => [_(e.$slots, "prepend-outer")]),
146
146
  prepend: v(() => [_(e.$slots, "prepend")]),
147
147
  prefix: v(() => [_(e.$slots, "prefix")]),
@@ -26,8 +26,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
26
26
  onHidden?: (() => any) | undefined;
27
27
  }>, {
28
28
  size: import('../..').Responsive<NonNullable<import('../../types/CommonProps').Size<import('./types').Sizes>["size"]>>;
29
- transitionDuration: number;
30
29
  adaptive: boolean;
30
+ transitionDuration: number;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
33
  declare const _default: typeof __VLS_export;