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
@@ -5,10 +5,98 @@ export type FixedColumnConfig = number | {
5
5
  position: 'left' | 'right';
6
6
  };
7
7
  /**
8
- * Applies sticky positioning to fixed table columns.
9
- * Call after DOM updates (e.g. in watch with flush: 'post') to read layout.
8
+ * Splits the grid root's *resolved* `grid-template-columns` (one
9
+ * `getComputedStyle` read) into its px tokens, verbatim. Returns `null` when
10
+ * any token is not a px length: a table hidden by `display: none` reports its
11
+ * SPECIFIED template (`max-content auto …`) instead of used values, and the
12
+ * caller must keep its last good measurement rather than publish keywords.
13
+ *
14
+ * Read the root only — a subgrid box reports the literal `subgrid [] [] …`.
10
15
  */
11
- export declare const applyFixedTableColumns: (table: HTMLTableElement, fixedColumns: FixedColumnConfig[]) => void;
16
+ export declare const readResolvedTracks: (root: Element) => string[] | null;
17
+ /**
18
+ * Applies sticky positioning to fixed table columns — a RECONCILE pass, not a
19
+ * set-only one: every cell of every processed row ends up with exactly the
20
+ * inline `position`/`left`/`right` its slot calls for, and nothing else.
21
+ *
22
+ * `root` is the grid root (`.bb-table__table`). Offsets are prefix sums of the
23
+ * resolved track list, so they hold to the subpixel regardless of what sized
24
+ * the track (frozen width, inherited parent track, content). Call after DOM
25
+ * updates (e.g. in a `flush: 'post'` watch) and after every re-measure so the
26
+ * offsets follow the tracks.
27
+ *
28
+ * The pass is POSITIONAL (indices into the rendered track list, `select`
29
+ * included); the table resolves them from `column.fixed` / `fixed-select` /
30
+ * `fixed-actions` against the RENDERED column list on every change, so the
31
+ * pin follows the column. Cells are keyed by column, so a reorder MOVES the
32
+ * cell element — inline styles travel with it. A cell that stops being pinned
33
+ * (its column un-pinned, hidden, or another column moved into the slot it
34
+ * used to hold) would keep `position: sticky; left: 0px` and, once the
35
+ * container scrolls, paint over its neighbours (a stale `left` on a
36
+ * right-pinned cell would linger too), which is why every non-pinned cell is
37
+ * cleared and every pinned cell has its opposite side cleared. Clearing an
38
+ * absent inline property is mutation-free, so the pass is idempotent and
39
+ * cheap.
40
+ */
41
+ export declare const applyFixedTableColumns: (root: HTMLElement, fixedColumns: FixedColumnConfig[],
42
+ /**
43
+ * The resolved tracks when the caller already holds them (the measure path
44
+ * just read them; a `virtual` window change moves no track): skips the
45
+ * `getComputedStyle` read, which forces style on every call.
46
+ */
47
+ resolvedTracks?: string[] | null,
48
+ /**
49
+ * Skip rows whose inline styles were already written for this exact track
50
+ * list and pin config — the caller opting in to the row stamp below. Only
51
+ * safe when the CELL ORDER cannot have changed since the last pass, which
52
+ * is the caller's knowledge, not ours: a reorder can leave the track list
53
+ * and the config byte-identical while every cell has moved to a different
54
+ * track. `virtual`'s window-move pass is exactly that case (the rows
55
+ * change, the columns do not).
56
+ */
57
+ memoize?: boolean) => void;
58
+ /**
59
+ * Completes an `order` model against the declared column keys: the
60
+ * model's keys first (duplicates dropped, first occurrence wins), then every
61
+ * declared key the model omits, in declaration order. Unknown keys (columns
62
+ * the consumer currently hides) are kept in place.
63
+ */
64
+ export declare const completeColumnOrder: (model: readonly string[], declared: readonly string[]) => string[];
65
+ /**
66
+ * Declared columns in render order — the completed model restricted to the
67
+ * declared keys. A key declared twice keeps both columns (parity with the
68
+ * unordered render), adjacent, in declaration order.
69
+ */
70
+ export declare const orderColumns: <C extends {
71
+ key: string;
72
+ }>(columns: readonly C[], model: readonly string[]) => C[];
73
+ /**
74
+ * The write-back. Moves `key` to render index `toIndex` among the RENDERED
75
+ * columns (the declared keys minus `hidden`) and returns the complete model
76
+ * to emit: the completed model with exactly ONE entry relocated — what
77
+ * dragging that entry in a panel listing the complete order (hidden columns
78
+ * included) would produce. `hidden` is the set of declared keys that render
79
+ * nothing (`column.hidden`); a key the consumer dropped from `columns`
80
+ * altogether is simply undeclared and behaves the same way.
81
+ *
82
+ * Invariants (each pinned by a unit test):
83
+ * 1. completeness — a permutation of `completeColumnOrder(model, declared)`,
84
+ * no duplicates;
85
+ * 2. single relocation — `result` without `key` equals the completed model
86
+ * without `key`: every other key, hidden ones included, keeps its
87
+ * relative order (this IS the "hidden columns keep their slot" guarantee);
88
+ * 3. render index — among the rendered keys, `key` sits at
89
+ * `clamp(toIndex, 0, N - 1)`;
90
+ * 4. adjacency — `key` lands right AFTER (moving right) / right BEFORE
91
+ * (moving left) the visible column it displaces, so a hidden key is never
92
+ * caught between the mover and its new neighbour;
93
+ * 5. stability — an unknown or hidden `key`, or `toIndex` equal to the
94
+ * current index, returns the completed model unchanged (callers compare
95
+ * against the completed model and emit nothing).
96
+ */
97
+ export declare const moveColumnKey: (model: readonly string[], declared: readonly string[], key: string, toIndex: number, hidden?: ReadonlySet<string>) => string[];
98
+ /** Sequence equality for the commit guard. */
99
+ export declare const sameColumnOrder: (a: readonly string[], b: readonly string[]) => boolean;
12
100
  /**
13
101
  * Converts a column key (e.g. "address.nested.value") to a slot-safe name (e.g. "address_nested_value").
14
102
  * Thin alias over the shared {@link slotKey} normalizer used across every
@@ -20,7 +108,7 @@ export declare const columnKeyToSlotName: (key: string) => string;
20
108
  */
21
109
  export declare const mergeHeaderClasses: (base: Classes, global?: Classes, column?: Classes) => Classes;
22
110
  /**
23
- * Accumulates every row-class source for a row's `<tr>`: the table-level
111
+ * Accumulates every row-class source for a data row: the table-level
24
112
  * `rowClass` prop (item function or static), then each column's `rowClass`
25
113
  * (resolved with that column's cell content, like `tdClass`), in column order.
26
114
  */
@@ -1,53 +1,88 @@
1
1
  import { useLogger as e } from "../../composables/useLogger.js";
2
2
  import { slotKey as t } from "../../utilities/functions/slotKey.js";
3
3
  //#region src/components/BbTable/utils.ts
4
- var n = (t, n) => {
5
- if (!n.length) return;
6
- let r = Array.from(t.querySelectorAll(":scope > thead th"));
7
- if (!r.length) return;
8
- let { error: i } = e(), a = r.length, o = n.map((e) => ({
4
+ var n = /^-?\d*\.?\d+px$/, r = (e) => {
5
+ let t = getComputedStyle(e).gridTemplateColumns;
6
+ if (!t || t === "none") return null;
7
+ let r = t.trim().split(/\s+/);
8
+ return r.every((e) => n.test(e)) ? r : null;
9
+ }, i = [
10
+ "bb-table-expand__row",
11
+ "bb-table-no-data__row",
12
+ "bb-table-spacer__row",
13
+ "bb-table-placeholder__row"
14
+ ], a = (t, n, a, o = !1) => {
15
+ let s = a ?? r(t);
16
+ if (!s) return;
17
+ let { error: c } = e(), l = s.length, u = s.map((e) => parseFloat(e)), d = n.map((e) => ({
9
18
  index: typeof e == "number" ? e : e.index,
10
19
  position: typeof e == "number" ? "left" : e.position
11
- })).sort((e, t) => e.position === t.position ? e.position === "left" ? e.index - t.index : t.index - e.index : e.position === "left" ? -1 : 1).reduce((e, t) => {
12
- let n = r[t.index];
13
- if (!n) return i(`BbTable fixedColumns: Cannot affix column at index ${t.index}. Table has ${a} columns (valid indices: 0–${a - 1}).`), e;
14
- let { width: o } = n.getBoundingClientRect(), s = e.filter((e) => e.position === t.position).reduce((e, t) => e + t.width, 0);
20
+ })).sort((e, t) => e.position === t.position ? e.position === "left" ? e.index - t.index : t.index - e.index : e.position === "left" ? -1 : 1), f = d.reduce((e, t) => {
21
+ let n = u[t.index];
22
+ if (n === void 0) return c(`BbTable fixed columns: cannot affix the column at rendered index ${t.index}. Table has ${l} columns (valid indices: 0–${l - 1}).`), e;
23
+ let r = e.filter((e) => e.position === t.position).reduce((e, t) => e + t.width, 0);
15
24
  return e.push({
16
25
  index: t.index,
17
26
  position: t.position,
18
- width: Math.floor(o),
19
- offset: s
27
+ width: n,
28
+ offset: r
20
29
  }), e;
21
- }, []);
22
- Array.from(t.querySelectorAll(":scope > thead > tr, :scope > tbody > tr")).forEach((e) => {
23
- let t = e.querySelectorAll(":scope > td, :scope > th");
24
- Array.from(t).some((e) => e.colSpan > 1) || t.length < a || o.forEach((t) => {
25
- let n = e.querySelector(`:scope > :nth-child(${t.index + 1})`);
26
- n && (n.style.position = "sticky", n.style[t.position] = `${t.offset}px`);
27
- });
30
+ }, []), p = Array.from(t.querySelectorAll(":scope > .bb-table__head > [role=\"row\"], :scope > .bb-table__body > [role=\"row\"]")), m = new Map(f.map((e) => [e.index, e])), h = `${s.join(" ")}|${JSON.stringify(d)}`;
31
+ p.forEach((e) => {
32
+ if (!i.some((t) => e.classList.contains(t)) && !(e.children.length < l) && !(o && e.__bbFixedStamp === h)) {
33
+ for (let t = 0; t < l; t++) {
34
+ let n = e.children[t];
35
+ if (!n) continue;
36
+ let r = m.get(t);
37
+ if (!r) {
38
+ n.style.position === "sticky" && (n.style.removeProperty("position"), n.style.removeProperty("left"), n.style.removeProperty("right"));
39
+ continue;
40
+ }
41
+ n.style.position = "sticky", n.style[r.position] = `${r.offset}px`, n.style.removeProperty(r.position === "left" ? "right" : "left");
42
+ }
43
+ e.__bbFixedStamp = h;
44
+ }
28
45
  });
29
- }, r = (e) => Array.isArray(e) ? e : [e], i = t, a = (e, t, n) => {
30
- let i = [...r(e)];
31
- return t && i.push(...r(t)), n && i.push(...r(n)), i;
32
- }, o = (e, t, n, i) => {
33
- let a = [], o = (e) => {
34
- e && a.push(...r(e));
46
+ }, o = (e, t) => {
47
+ let n = /* @__PURE__ */ new Set(), r = [];
48
+ for (let i of [...e, ...t]) n.has(i) || (n.add(i), r.push(i));
49
+ return r;
50
+ }, s = (e, t) => {
51
+ let n = /* @__PURE__ */ new Map();
52
+ for (let t of e) {
53
+ let e = String(t.key), r = n.get(e);
54
+ r ? r.push(t) : n.set(e, [t]);
55
+ }
56
+ return o(t, [...n.keys()]).flatMap((e) => n.get(e) ?? []);
57
+ }, c = (e, t, n, r, i = /* @__PURE__ */ new Set()) => {
58
+ let a = new Set(t), s = o(e, t), c = s.filter((e) => a.has(e) && !i.has(e)), l = c.indexOf(n);
59
+ if (l < 0) return s;
60
+ let u = Math.max(0, Math.min(c.length - 1, r));
61
+ if (u === l) return s;
62
+ let d = c[u], f = s.filter((e) => e !== n);
63
+ return f.splice(f.indexOf(d) + +(u > l), 0, n), f;
64
+ }, l = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), u = (e) => Array.isArray(e) ? e : [e], d = t, f = (e, t, n) => {
65
+ let r = [...u(e)];
66
+ return t && r.push(...u(t)), n && r.push(...u(n)), r;
67
+ }, p = (e, t, n, r) => {
68
+ let i = [], a = (e) => {
69
+ e && i.push(...u(e));
35
70
  };
36
- return o(typeof e == "function" ? e(i) : e), t.forEach((e, t) => {
37
- let r = e.rowClass;
38
- r && o(typeof r == "function" ? r(n[t]?.content, String(e.key), i) : r);
39
- }), a;
40
- }, s = (e, t, n, i, a, o) => {
41
- let s = [...r(e)], c = (e) => typeof e == "function" ? e(i, a, o) : e;
71
+ return a(typeof e == "function" ? e(r) : e), t.forEach((e, t) => {
72
+ let i = e.rowClass;
73
+ i && a(typeof i == "function" ? i(n[t]?.content, String(e.key), r) : i);
74
+ }), i;
75
+ }, m = (e, t, n, r, i, a) => {
76
+ let o = [...u(e)], s = (e) => typeof e == "function" ? e(r, i, a) : e;
42
77
  if (t) {
43
- let e = c(t);
44
- e && s.push(...r(e));
78
+ let e = s(t);
79
+ e && o.push(...u(e));
45
80
  }
46
81
  if (n) {
47
- let e = c(n);
48
- e && s.push(...r(e));
82
+ let e = s(n);
83
+ e && o.push(...u(e));
49
84
  }
50
- return s;
85
+ return o;
51
86
  };
52
87
  //#endregion
53
- export { n as applyFixedTableColumns, i as columnKeyToSlotName, s as mergeCellClasses, a as mergeHeaderClasses, o as mergeRowClasses };
88
+ export { a as applyFixedTableColumns, d as columnKeyToSlotName, o as completeColumnOrder, m as mergeCellClasses, f as mergeHeaderClasses, p as mergeRowClasses, c as moveColumnKey, s as orderColumns, r as readResolvedTracks, l as sameColumnOrder };
@@ -54,14 +54,6 @@ export type BbTabsInertiaOptions = {
54
54
  * Only meaningful in an Inertia context.
55
55
  */
56
56
  preserveState?: boolean | ((props: Record<string, unknown>) => boolean) | null;
57
- /**
58
- * Uses history replacement instead of push navigation.
59
- *
60
- * Prefer `replace` whenever `navigation` is on: the URL still carries the
61
- * active tab (deep-linkable, survives reload), but switching tabs does not
62
- * stack a history entry per click, so Back leaves the page instead of
63
- * walking the user backwards through every tab they visited.
64
- */
65
57
  replace?: boolean;
66
58
  };
67
59
  export type BbTabsEvents<K extends string = string> =
@@ -1,6 +1,6 @@
1
1
  import { BbTagProps, BbTagEvents, BbTagSlots } from './types';
2
- export type { BbTagProps, BbTagEvents, BbTagSlots };
3
2
  type __VLS_Slots = BbTagSlots;
3
+ export type { BbTagProps, BbTagEvents, BbTagSlots };
4
4
  declare const __VLS_base: import('vue').DefineComponent<BbTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
5
  input: (event: Event) => any;
6
6
  click: (event: MouseEvent) => any;
@@ -1,8 +1,8 @@
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 r from "../BbBaseTag/BbBaseTag.vue.js";
5
- import { config as i } 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 i from "../BbBaseTag/BbBaseTag.vue.js";
6
6
  import { computed as a, createBlock as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, ref as p, renderSlot as m, withCtx as h } from "vue";
7
7
  //#region src/components/BbTag/BbTag.vue?vue&type=script&setup=true&lang.ts
8
8
  var g = /*@__PURE__*/ c({
@@ -60,21 +60,21 @@ var g = /*@__PURE__*/ c({
60
60
  "update:modelValue"
61
61
  ],
62
62
  setup(c, { emit: g }) {
63
- let _ = c, v = g;
64
- process.env.NODE_ENV !== "production" && t("BbTag", e("BbTag"));
65
- let y = p(!1), b = a(() => _.persistentHint || y.value), x = a(() => (_.modelValue?.length ?? 0) > 0), S = a(() => _.labelMode ?? i.defaultInputLabelMode), C = {
63
+ let _ = c, v = g, y = e();
64
+ process.env.NODE_ENV !== "production" && n("BbTag", t("BbTag"));
65
+ let b = p(!1), x = a(() => _.persistentHint || b.value), S = a(() => (_.modelValue?.length ?? 0) > 0), C = a(() => _.labelMode ?? y.defaultInputLabelMode), w = {
66
66
  onBlur: (e) => v("blur", e),
67
67
  onChange: (e) => v("change", e),
68
68
  onClick: (e) => v("click", e),
69
69
  onDuplicate: (e) => v("duplicate", e),
70
70
  onFocus: (e) => {
71
- y.value = !0, v("focus", e);
71
+ b.value = !0, v("focus", e);
72
72
  },
73
73
  onActive: () => {
74
- y.value = !0, v("active");
74
+ b.value = !0, v("active");
75
75
  },
76
76
  onInactive: () => {
77
- y.value = !1, v("inactive");
77
+ b.value = !1, v("inactive");
78
78
  },
79
79
  onInput: (e) => v("input", e),
80
80
  onKeydown: (e) => v("keydown", e),
@@ -87,7 +87,7 @@ var g = /*@__PURE__*/ c({
87
87
  onMax: (e) => v("max", e),
88
88
  "onUpdate:modelValue": (e) => v("update:modelValue", e)
89
89
  };
90
- return (e, t) => (f(), o(n, {
90
+ return (e, t) => (f(), o(r, {
91
91
  id: e.id,
92
92
  class: "bb-tag",
93
93
  compact: e.compact,
@@ -95,21 +95,21 @@ var g = /*@__PURE__*/ c({
95
95
  direction: e.direction,
96
96
  errors: e.errors,
97
97
  "has-errors": e.hasErrors,
98
- "has-value": x.value,
98
+ "has-value": S.value,
99
99
  "has-warning": e.hasWarning,
100
100
  "hide-label": e.hideLabel,
101
101
  hint: e.hint,
102
102
  label: e.label,
103
- "label-mode": S.value,
103
+ "label-mode": C.value,
104
104
  "label-position": e.labelPosition,
105
105
  "model-value": e.modelValue,
106
106
  name: e.name,
107
107
  reverse: e.reverse,
108
- "show-hint": b.value,
108
+ "show-hint": x.value,
109
109
  warnings: e.warnings
110
110
  }, {
111
111
  label: h((t) => [m(e.$slots, "label", d(l(t)))]),
112
- input: h(({ id: t, hasErrors: n, hasWarning: i, ariaDescribedby: a }) => [s(r, u({
112
+ input: h(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: a }) => [s(i, u({
113
113
  id: t,
114
114
  "append:icon": _["append:icon"],
115
115
  "aria-describedby": a,
@@ -122,7 +122,7 @@ var g = /*@__PURE__*/ c({
122
122
  disabled: e.disabled,
123
123
  divider: e.divider,
124
124
  "has-errors": n,
125
- "has-warning": i,
125
+ "has-warning": r,
126
126
  loading: e.loading,
127
127
  max: e.max,
128
128
  "model-value": e.modelValue,
@@ -131,7 +131,7 @@ var g = /*@__PURE__*/ c({
131
131
  "prepend:icon": _["prepend:icon"],
132
132
  readonly: e.readonly,
133
133
  required: e.required
134
- }, C), {
134
+ }, w), {
135
135
  "prepend-outer": h((t) => [m(e.$slots, "prepend-outer", d(l(t)))]),
136
136
  prepend: h((t) => [m(e.$slots, "prepend", d(l(t)))]),
137
137
  prefix: h((t) => [m(e.$slots, "prefix", d(l(t)))]),
@@ -1,6 +1,6 @@
1
1
  import { BbTextInputProps, BbTextInputEvents, BbTextInputSlots } from './types';
2
- export type { BbTextInputProps, BbTextInputEvents, BbTextInputSlots };
3
2
  type __VLS_Slots = BbTextInputSlots;
3
+ export type { BbTextInputProps, BbTextInputEvents, BbTextInputSlots };
4
4
  declare const __VLS_base: import('vue').DefineComponent<BbTextInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
5
  input: (event: Event) => any;
6
6
  click: (event: MouseEvent) => any;
@@ -1,8 +1,8 @@
1
- import { useMobile as e } from "../../composables/useMobile.js";
2
- import t from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
3
- import { isNotEmpty as n } from "../../utilities/functions/isNotEmpty.js";
4
- import r from "../BbBaseTextInput/BbBaseTextInput.vue.js";
5
- import { config as i } from "virtual:bitboss-ui/config";
1
+ import { useConfig as e } from "../../composables/useConfig.js";
2
+ import { useMobile as t } from "../../composables/useMobile.js";
3
+ import n from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
4
+ import { isNotEmpty as r } from "../../utilities/functions/isNotEmpty.js";
5
+ import i from "../BbBaseTextInput/BbBaseTextInput.vue.js";
6
6
  import { computed as a, createBlock as o, createSlots as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, openBlock as p, ref as m, renderSlot as h, unref as g, withCtx as _ } from "vue";
7
7
  //#region src/components/BbTextInput/BbTextInput.vue?vue&type=script&setup=true&lang.ts
8
8
  var v = /*@__PURE__*/ l({
@@ -56,14 +56,14 @@ var v = /*@__PURE__*/ l({
56
56
  "update:modelValue"
57
57
  ],
58
58
  setup(l, { emit: v }) {
59
- let y = l, b = v, x = m(!1), S = a(() => y.persistentHint || x.value), { isMobile: C } = e(), w = a(() => !!y.clearable && n(y.modelValue)), T = a(() => n(y.modelValue)), E = a(() => y.labelMode ?? i.defaultInputLabelMode), D = {
59
+ let y = l, b = v, x = e(), S = m(!1), C = a(() => y.persistentHint || S.value), { isMobile: w } = t(), T = a(() => !!y.clearable && r(y.modelValue)), E = a(() => r(y.modelValue)), D = a(() => y.labelMode ?? x.defaultInputLabelMode), O = {
60
60
  onBlur: (e) => {
61
- x.value = !1, b("blur", e);
61
+ S.value = !1, b("blur", e);
62
62
  },
63
63
  onChange: (e) => b("change", e),
64
64
  onClick: (e) => b("click", e),
65
65
  onFocus: (e) => {
66
- x.value = !0, b("focus", e);
66
+ S.value = !0, b("focus", e);
67
67
  },
68
68
  onInput: (e) => b("input", e),
69
69
  onKeydown: (e) => b("keydown", e),
@@ -75,34 +75,34 @@ var v = /*@__PURE__*/ l({
75
75
  onCompositionend: (e) => b("compositionend", e),
76
76
  "onUpdate:modelValue": (e) => b("update:modelValue", e)
77
77
  };
78
- return (e, n) => (p(), o(t, {
78
+ return (e, t) => (p(), o(n, {
79
79
  id: e.id,
80
80
  class: "bb-text-input",
81
- clearable: w.value,
81
+ clearable: T.value,
82
82
  compact: e.compact,
83
83
  description: e.description,
84
84
  direction: e.direction,
85
85
  disabled: e.disabled,
86
86
  errors: e.errors,
87
87
  "has-errors": e.hasErrors,
88
- "has-value": T.value,
88
+ "has-value": E.value,
89
89
  "has-warning": e.hasWarning,
90
90
  "hide-label": e.hideLabel,
91
91
  hint: e.hint,
92
92
  label: e.label,
93
- "label-mode": E.value,
93
+ "label-mode": D.value,
94
94
  "label-position": e.labelPosition,
95
95
  loading: e.loading,
96
- mobile: g(C),
96
+ mobile: g(w),
97
97
  "model-value": e.modelValue,
98
98
  name: e.name,
99
99
  readonly: e.readonly,
100
100
  reverse: e.reverse,
101
- "show-hint": S.value,
101
+ "show-hint": C.value,
102
102
  warnings: e.warnings
103
103
  }, {
104
104
  label: _((t) => [h(e.$slots, "label", f(u(t)))]),
105
- input: _(({ id: t, hasErrors: n, hasWarning: i, ariaDescribedby: a }) => [c(r, d({
105
+ input: _(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: a }) => [c(i, d({
106
106
  id: t,
107
107
  "append:icon": y["append:icon"],
108
108
  "aria-describedby": a,
@@ -113,9 +113,9 @@ var v = /*@__PURE__*/ l({
113
113
  disabled: e.disabled,
114
114
  "emit-masked": e.emitMasked,
115
115
  "has-errors": n,
116
- "has-warning": i,
116
+ "has-warning": r,
117
117
  "input-mode": e.inputMode,
118
- "label-mode": E.value,
118
+ "label-mode": D.value,
119
119
  loading: e.loading,
120
120
  mask: e.mask,
121
121
  "model-value": e.modelValue,
@@ -125,7 +125,7 @@ var v = /*@__PURE__*/ l({
125
125
  readonly: e.readonly,
126
126
  required: e.required,
127
127
  type: e.type
128
- }, D), s({
128
+ }, O), s({
129
129
  "append-outer": _(() => [h(e.$slots, "append-outer")]),
130
130
  append: _(() => [h(e.$slots, "append")]),
131
131
  prepend: _(() => [h(e.$slots, "prepend")]),
@@ -1,6 +1,6 @@
1
1
  import { BbTextareaProps, BbTextareaEvents, BbTextareaSlots } from './types';
2
- export type { BbTextareaProps, BbTextareaEvents, BbTextareaSlots };
3
2
  type __VLS_Slots = BbTextareaSlots;
3
+ export type { BbTextareaProps, BbTextareaEvents, BbTextareaSlots };
4
4
  declare const __VLS_base: import('vue').DefineComponent<BbTextareaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
5
  input: (event: Event) => any;
6
6
  click: (event: MouseEvent) => any;
@@ -1,7 +1,7 @@
1
- import e from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
2
- import { isNotEmpty as t } from "../../utilities/functions/isNotEmpty.js";
3
- import n from "../BbBaseTextarea/BbBaseTextarea.vue.js";
4
- import { config as r } from "virtual:bitboss-ui/config";
1
+ import { useConfig as e } from "../../composables/useConfig.js";
2
+ import t from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
3
+ import { isNotEmpty as n } from "../../utilities/functions/isNotEmpty.js";
4
+ import r from "../BbBaseTextarea/BbBaseTextarea.vue.js";
5
5
  import { computed as i, createBlock as a, createVNode as o, defineComponent as s, guardReactiveProps as c, mergeProps as l, normalizeProps as u, openBlock as d, ref as f, renderSlot as p, withCtx as m } from "vue";
6
6
  //#region src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts
7
7
  var h = /*@__PURE__*/ s({
@@ -53,14 +53,14 @@ var h = /*@__PURE__*/ s({
53
53
  "update:modelValue"
54
54
  ],
55
55
  setup(s, { emit: h }) {
56
- let g = s, _ = h, v = f(!1), y = i(() => g.persistentHint || v.value), b = i(() => !!g.clearable && t(g.modelValue)), x = i(() => t(g.modelValue)), S = i(() => g.labelMode ?? r.defaultInputLabelMode), C = {
56
+ let g = s, _ = h, v = e(), y = f(!1), b = i(() => g.persistentHint || y.value), x = i(() => !!g.clearable && n(g.modelValue)), S = i(() => n(g.modelValue)), C = i(() => g.labelMode ?? v.defaultInputLabelMode), w = {
57
57
  onBlur: (e) => {
58
- v.value = !1, _("blur", e);
58
+ y.value = !1, _("blur", e);
59
59
  },
60
60
  onChange: (e) => _("change", e),
61
61
  onClick: (e) => _("click", e),
62
62
  onFocus: (e) => {
63
- v.value = !0, _("focus", e);
63
+ y.value = !0, _("focus", e);
64
64
  },
65
65
  onInput: (e) => _("input", e),
66
66
  onKeydown: (e) => _("keydown", e),
@@ -72,59 +72,59 @@ var h = /*@__PURE__*/ s({
72
72
  onCompositionend: (e) => _("compositionend", e),
73
73
  "onUpdate:modelValue": (e) => _("update:modelValue", e)
74
74
  };
75
- return (t, r) => (d(), a(e, {
76
- id: t.id,
75
+ return (e, n) => (d(), a(t, {
76
+ id: e.id,
77
77
  class: "bb-textarea",
78
- clearable: b.value,
79
- compact: t.compact,
80
- description: t.description,
81
- direction: t.direction,
82
- disabled: t.disabled,
83
- errors: t.errors,
84
- "has-errors": t.hasErrors,
85
- "has-value": x.value,
86
- "has-warning": t.hasWarning,
87
- "hide-label": t.hideLabel,
88
- hint: t.hint,
89
- label: t.label,
90
- "label-mode": S.value,
91
- "label-position": t.labelPosition,
92
- loading: t.loading,
93
- "model-value": t.modelValue,
94
- name: t.name,
95
- readonly: t.readonly,
96
- reverse: t.reverse,
97
- "show-hint": y.value,
98
- warnings: t.warnings
78
+ clearable: x.value,
79
+ compact: e.compact,
80
+ description: e.description,
81
+ direction: e.direction,
82
+ disabled: e.disabled,
83
+ errors: e.errors,
84
+ "has-errors": e.hasErrors,
85
+ "has-value": S.value,
86
+ "has-warning": e.hasWarning,
87
+ "hide-label": e.hideLabel,
88
+ hint: e.hint,
89
+ label: e.label,
90
+ "label-mode": C.value,
91
+ "label-position": e.labelPosition,
92
+ loading: e.loading,
93
+ "model-value": e.modelValue,
94
+ name: e.name,
95
+ readonly: e.readonly,
96
+ reverse: e.reverse,
97
+ "show-hint": b.value,
98
+ warnings: e.warnings
99
99
  }, {
100
- label: m((e) => [p(t.$slots, "label", u(c(e)))]),
101
- input: m(({ id: e, hasErrors: r, hasWarning: i, ariaDescribedby: a }) => [o(n, l({
102
- id: e,
100
+ label: m((t) => [p(e.$slots, "label", u(c(t)))]),
101
+ input: m(({ id: t, hasErrors: n, hasWarning: i, ariaDescribedby: a }) => [o(r, l({
102
+ id: t,
103
103
  "append:icon": g["append:icon"],
104
104
  "aria-describedby": a,
105
- "auto-grow": t.autoGrow,
106
- autocomplete: t.autocomplete,
107
- autofocus: t.autofocus,
108
- clearable: t.clearable,
109
- compact: t.compact,
110
- disabled: t.disabled,
111
- "has-errors": r,
105
+ "auto-grow": e.autoGrow,
106
+ autocomplete: e.autocomplete,
107
+ autofocus: e.autofocus,
108
+ clearable: e.clearable,
109
+ compact: e.compact,
110
+ disabled: e.disabled,
111
+ "has-errors": n,
112
112
  "has-warning": i,
113
- loading: t.loading,
114
- "model-value": t.modelValue,
115
- name: t.name,
116
- placeholder: t.placeholder,
113
+ loading: e.loading,
114
+ "model-value": e.modelValue,
115
+ name: e.name,
116
+ placeholder: e.placeholder,
117
117
  "prepend:icon": g["prepend:icon"],
118
- readonly: t.readonly,
119
- required: t.required,
120
- rows: t.rows
121
- }, C), {
122
- "append-outer": m(() => [p(t.$slots, "append-outer")]),
123
- append: m(() => [p(t.$slots, "append")]),
124
- prepend: m(() => [p(t.$slots, "prepend")]),
125
- "prepend-outer": m(() => [p(t.$slots, "prepend-outer")]),
126
- prefix: m((e) => [p(t.$slots, "prefix", u(c(e)))]),
127
- suffix: m((e) => [p(t.$slots, "suffix", u(c(e)))]),
118
+ readonly: e.readonly,
119
+ required: e.required,
120
+ rows: e.rows
121
+ }, w), {
122
+ "append-outer": m(() => [p(e.$slots, "append-outer")]),
123
+ append: m(() => [p(e.$slots, "append")]),
124
+ prepend: m(() => [p(e.$slots, "prepend")]),
125
+ "prepend-outer": m(() => [p(e.$slots, "prepend-outer")]),
126
+ prefix: m((t) => [p(e.$slots, "prefix", u(c(t)))]),
127
+ suffix: m((t) => [p(e.$slots, "suffix", u(c(t)))]),
128
128
  _: 2
129
129
  }, 1040, [
130
130
  "id",
@@ -19,9 +19,9 @@ declare const __VLS_base: import('vue').DefineComponent<BbTimePickerProps, {}, {
19
19
  value: string;
20
20
  }) => any) | undefined;
21
21
  }>, {
22
+ adaptive: boolean;
22
23
  offset: number;
23
24
  transitionDuration: number;
24
- adaptive: boolean;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
27
  declare const _default: typeof __VLS_export;