bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73

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 (363) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +9 -3
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +1 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckboxGroup.md +2 -1
  10. package/dist/ai/BbColorInput.md +1 -1
  11. package/dist/ai/BbConfirm.md +65 -81
  12. package/dist/ai/BbConfirmPortal.md +2 -2
  13. package/dist/ai/BbDatePicker.md +1 -6
  14. package/dist/ai/BbDatePickerInput.md +2 -2
  15. package/dist/ai/BbDialog.md +233 -164
  16. package/dist/ai/BbDropdown.md +52 -16
  17. package/dist/ai/BbDropdownButton.md +11 -12
  18. package/dist/ai/BbDropzone.md +12 -8
  19. package/dist/ai/BbForm.md +100 -13
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCardPortal.md +1 -1
  22. package/dist/ai/BbIcon.md +1 -1
  23. package/dist/ai/BbIndicator.md +17 -15
  24. package/dist/ai/BbNumberInput.md +7 -5
  25. package/dist/ai/BbOffCanvas.md +29 -7
  26. package/dist/ai/BbPagination.md +2 -2
  27. package/dist/ai/BbPopover.md +15 -9
  28. package/dist/ai/BbPopoverPortal.md +1 -1
  29. package/dist/ai/BbRadioGroup.md +29 -7
  30. package/dist/ai/BbRating.md +8 -7
  31. package/dist/ai/BbSelect.md +29 -8
  32. package/dist/ai/BbSelectPopover.md +9 -3
  33. package/dist/ai/BbSlider.md +12 -8
  34. package/dist/ai/BbSpinner.md +3 -2
  35. package/dist/ai/BbSwitch.md +3 -3
  36. package/dist/ai/BbSwitchGroup.md +7 -6
  37. package/dist/ai/BbTable.md +205 -82
  38. package/dist/ai/BbTabs.md +29 -4
  39. package/dist/ai/BbTag.md +1 -1
  40. package/dist/ai/BbTextInput.md +7 -5
  41. package/dist/ai/BbTextarea.md +4 -3
  42. package/dist/ai/BbTimePickerInput.md +1 -1
  43. package/dist/ai/BbToast.md +3 -2
  44. package/dist/ai/BbTooltip.md +22 -17
  45. package/dist/ai/BbTree.md +49 -24
  46. package/dist/ai/CommonFieldInput.md +1 -1
  47. package/dist/ai/changelog.json +242 -9
  48. package/dist/ai/components.json +52 -51
  49. package/dist/ai/composables/useBbDialog.md +5 -8
  50. package/dist/ai/composables/useBbForm.md +3 -0
  51. package/dist/ai/composables/useConfirm.md +65 -56
  52. package/dist/ai/composables/useToast.md +2 -1
  53. package/dist/ai/guides/agent-contract.md +3 -3
  54. package/dist/ai/guides/app-layout.md +3 -2
  55. package/dist/ai/guides/eslint-rules.md +3 -1
  56. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  57. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  58. package/dist/ai/guides/icons-policy.md +7 -5
  59. package/dist/ai/guides/inertia-helpers.md +35 -30
  60. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  61. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  62. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  63. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  64. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  65. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  67. package/dist/ai/guides/migration/components/use-confirm.md +72 -26
  68. package/dist/ai/guides/migration/v2-to-v3.md +52 -10
  69. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  70. package/dist/ai/guides/options-items-playbook.md +4 -3
  71. package/dist/ai/guides/passthrough.md +2 -2
  72. package/dist/ai/helpers/inertia/manifest.json +28 -15
  73. package/dist/ai/helpers/inertia/messages.ts +3 -3
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  75. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  76. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  77. package/dist/ai/index.md +3 -3
  78. package/dist/ai/manifest/common.json +3 -3
  79. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  80. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  81. package/dist/ai/manifest/components/BbBadge.json +8 -7
  82. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  83. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  84. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  85. package/dist/ai/manifest/components/BbButton.json +5 -6
  86. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  87. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  88. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  89. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  90. package/dist/ai/manifest/components/BbColorInput.json +1 -1
  91. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  92. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  93. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  94. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  95. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  96. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  97. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  98. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  99. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  100. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  101. package/dist/ai/manifest/components/BbDialog.json +6 -1
  102. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  103. package/dist/ai/manifest/components/BbDropdown.json +9 -8
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  105. package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
  106. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  107. package/dist/ai/manifest/components/BbForm.json +3 -1
  108. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  109. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  111. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  112. package/dist/ai/manifest/components/BbPagination.json +1 -1
  113. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  114. package/dist/ai/manifest/components/BbRating.json +2 -2
  115. package/dist/ai/manifest/components/BbSelect.json +16 -15
  116. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  117. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  118. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  119. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  120. package/dist/ai/manifest/components/BbTable.json +15 -14
  121. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  122. package/dist/ai/manifest/components/BbTabs.json +3 -3
  123. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  124. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  125. package/dist/ai/manifest/components/BbTag.json +1 -1
  126. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  127. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  128. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  129. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  130. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  131. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  132. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  133. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  135. package/dist/ai/manifest/components/BbTree.json +2 -2
  136. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  137. package/dist/ai/manifest/index.json +4 -4
  138. package/dist/ai/manifest/meta.json +5 -1
  139. package/dist/ai/manifest/types.advanced.json +9 -9
  140. package/dist/ai/manifest/types.api.json +6 -5
  141. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  142. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  143. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  144. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  145. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  146. package/dist/ai/recipes/inertia/record-form.md +12 -8
  147. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  148. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  149. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  150. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  151. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  152. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  153. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  154. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  155. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  156. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  157. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  158. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  159. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  160. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  161. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/vue/onboarding.md +5 -4
  165. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/vue/record-form.md +14 -10
  167. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  168. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  169. package/dist/ai/recipes/vue/upload-center.md +17 -9
  170. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  171. package/dist/ai/source/BbAccordion.md +50 -16
  172. package/dist/ai/source/BbBadge.md +420 -26
  173. package/dist/ai/source/BbBadgeButton.md +378 -12
  174. package/dist/ai/source/BbButton.md +205 -55
  175. package/dist/ai/source/BbCalendar.md +5 -0
  176. package/dist/ai/source/BbCheckboxGroup.md +38 -13
  177. package/dist/ai/source/BbConfigScope.md +19 -2
  178. package/dist/ai/source/BbConfirm.md +74 -80
  179. package/dist/ai/source/BbConfirmPortal.md +6 -6
  180. package/dist/ai/source/BbDatePicker.md +9 -2
  181. package/dist/ai/source/BbDatePickerInput.md +3 -1
  182. package/dist/ai/source/BbDialog.md +53 -2
  183. package/dist/ai/source/BbDropdown.md +350 -98
  184. package/dist/ai/source/BbDropdownButton.md +20 -12
  185. package/dist/ai/source/BbDropdownGroup.md +136 -58
  186. package/dist/ai/source/BbForm.md +152 -11
  187. package/dist/ai/source/BbOffCanvas.md +53 -2
  188. package/dist/ai/source/BbPagination.md +1 -1
  189. package/dist/ai/source/BbRadioGroup.md +72 -10
  190. package/dist/ai/source/BbRating.md +30 -22
  191. package/dist/ai/source/BbSelect.md +11 -1
  192. package/dist/ai/source/BbSelectPopover.md +105 -34
  193. package/dist/ai/source/BbSwitch.md +23 -8
  194. package/dist/ai/source/BbSwitchGroup.md +67 -21
  195. package/dist/ai/source/BbTable.md +359 -48
  196. package/dist/ai/source/BbTabs.md +6 -0
  197. package/dist/ai/source/BbTabsList.md +10 -0
  198. package/dist/ai/source/BbTabsPanels.md +6 -0
  199. package/dist/ai/source/BbTabsRoot.md +6 -0
  200. package/dist/ai/source/BbTree.md +14 -4
  201. package/dist/ai/source/CommonFieldInput.md +2 -1
  202. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  203. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  204. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  205. package/dist/components/BbAccordion/types.d.ts +21 -7
  206. package/dist/components/BbAccordion/types.js +1 -1
  207. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  208. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  209. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  210. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  211. package/dist/components/BbBadge/types.d.ts +15 -12
  212. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  213. package/dist/components/BbButton/types.d.ts +7 -6
  214. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  215. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  216. package/dist/components/BbCalendar/types.d.ts +5 -0
  217. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  218. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  219. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  220. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
  222. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  223. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  224. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  225. package/dist/components/BbConfirm/types.d.ts +5 -5
  226. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  227. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  228. package/dist/components/BbDatePicker/types.d.ts +5 -0
  229. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  230. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  231. package/dist/components/BbDatePickerInput/types.d.ts +2 -1
  232. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  233. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  234. package/dist/components/BbDialog/overlayActions.js +94 -0
  235. package/dist/components/BbDialog/types.d.ts +24 -0
  236. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  237. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
  238. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  239. package/dist/components/BbDropdown/normalizeGroups.js +58 -48
  240. package/dist/components/BbDropdown/types.d.ts +107 -48
  241. package/dist/components/BbDropdown/types.js +2 -2
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
  243. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  244. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  245. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
  246. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  247. package/dist/components/BbForm/recognizeValidation.js +55 -0
  248. package/dist/components/BbForm/validationError.d.ts +10 -0
  249. package/dist/components/BbForm/validationError.js +11 -0
  250. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  251. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  252. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  253. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  254. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  255. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  256. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  257. package/dist/components/BbRadioGroup/types.d.ts +9 -3
  258. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
  259. package/dist/components/BbRating/types.d.ts +3 -2
  260. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
  261. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  262. package/dist/components/BbSelect/types.d.ts +8 -0
  263. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  264. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  265. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  266. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  267. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  268. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  269. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  270. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  271. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  272. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  273. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  274. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  275. package/dist/components/BbTable/types.d.ts +32 -17
  276. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  277. package/dist/components/BbTabs/types.d.ts +6 -0
  278. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  279. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  280. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  281. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  282. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  284. package/dist/components/BbTree/types.d.ts +8 -2
  285. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  286. package/dist/composables/formSubmitLock.js +15 -8
  287. package/dist/composables/overlayRegistry.d.ts +5 -0
  288. package/dist/composables/overlayRegistry.js +154 -148
  289. package/dist/composables/useBbDropdown.d.ts +8 -0
  290. package/dist/composables/useBbDropdown.js +3 -1
  291. package/dist/composables/useBbTabs.js +138 -138
  292. package/dist/composables/useConfirm.d.ts +63 -52
  293. package/dist/composables/useConfirm.js +22 -18
  294. package/dist/deprecation/ai-deprecations.json.js +1 -1
  295. package/dist/directives/bbDropdown.d.ts +7 -7
  296. package/dist/directives/bbDropdown.js +21 -14
  297. package/dist/directives/bbTooltip.d.ts +3 -3
  298. package/dist/directives/createPopoverDirective.js +57 -35
  299. package/dist/i18n/locales/ar.json +5 -1
  300. package/dist/i18n/locales/cs.json +5 -1
  301. package/dist/i18n/locales/da.json +5 -1
  302. package/dist/i18n/locales/de-CH.json +5 -1
  303. package/dist/i18n/locales/de.json +5 -1
  304. package/dist/i18n/locales/el.json +5 -1
  305. package/dist/i18n/locales/en-GB.json +5 -1
  306. package/dist/i18n/locales/en.json +5 -1
  307. package/dist/i18n/locales/es-MX.json +5 -1
  308. package/dist/i18n/locales/es.json +5 -1
  309. package/dist/i18n/locales/fa.json +5 -1
  310. package/dist/i18n/locales/fi.json +5 -1
  311. package/dist/i18n/locales/fr.json +5 -1
  312. package/dist/i18n/locales/he.json +5 -1
  313. package/dist/i18n/locales/hu.json +5 -1
  314. package/dist/i18n/locales/it.json +5 -1
  315. package/dist/i18n/locales/ja.json +5 -1
  316. package/dist/i18n/locales/ko.json +5 -1
  317. package/dist/i18n/locales/nb.json +5 -1
  318. package/dist/i18n/locales/nl.json +5 -1
  319. package/dist/i18n/locales/pl.json +5 -1
  320. package/dist/i18n/locales/pt-BR.json +5 -1
  321. package/dist/i18n/locales/pt-PT.json +5 -1
  322. package/dist/i18n/locales/ro.json +5 -1
  323. package/dist/i18n/locales/ru.json +5 -1
  324. package/dist/i18n/locales/sv.json +5 -1
  325. package/dist/i18n/locales/tr.json +5 -1
  326. package/dist/i18n/locales/uk.json +5 -1
  327. package/dist/i18n/locales/zh-CN.json +5 -1
  328. package/dist/i18n/locales/zh-HK.json +5 -1
  329. package/dist/i18n/locales/zh-TW.json +5 -1
  330. package/dist/index.d.ts +2 -0
  331. package/dist/index.js +4 -3
  332. package/dist/llms-full.txt +1997 -1151
  333. package/dist/llms-medium.txt +21 -18
  334. package/dist/llms.txt +2 -2
  335. package/dist/locale-blueprint.json +5 -1
  336. package/dist/plugin.js +17 -40
  337. package/dist/pluginCore.js +30 -0
  338. package/dist/styles.css +2 -2
  339. package/dist/types/ActionButton.d.ts +26 -5
  340. package/dist/types/ActionButton.js +11 -0
  341. package/dist/types/ConfigDefaults.d.ts +34 -3
  342. package/dist/types/ConfigDefaults.js +14 -8
  343. package/dist/types/ItemPath.d.ts +33 -4
  344. package/dist/types/ptComponentMap.d.ts +1 -1
  345. package/dist/utilities/functions/clickCount.js +14 -0
  346. package/dist/utilities/functions/hash.js +90 -3
  347. package/dist/utilities/functions/isEqual.js +61 -3
  348. package/dist/utils/versionCheck.js +1 -1
  349. package/dist/vite.js +0 -1
  350. package/llms.txt +2 -2
  351. package/package.json +12 -2
  352. package/scripts/README.md +43 -39
  353. package/scripts/lib/adoption-checklist.json +2 -2
  354. package/scripts/lib/eslint-disable.mjs +5 -3
  355. package/scripts/lib/eslint-plugin.d.ts +2 -0
  356. package/scripts/lib/eslint-plugin.mjs +213 -1
  357. package/scripts/lib/helpers-add.mjs +21 -2
  358. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  359. package/scripts/lib/release-results.mjs +180 -5
  360. package/scripts/lib/renamed-item-field.mjs +4 -1
  361. package/scripts/lib/tab-links.mjs +4 -1
  362. package/scripts/lib/tree-default-expandable.mjs +53 -0
  363. package/scripts/lib/validate-bb-markup.mjs +536 -52
@@ -3,27 +3,28 @@ import t from "../BbIcon/BbIcon.vue.js";
3
3
  import n from "../CommonField/CommonField.vue.js";
4
4
  import ee from "../../assets/svgs/star.svg_raw.js";
5
5
  import { aliasParts as r, formControlPtActive as i, pickActive as a, usePassthrough as o } from "../../composables/usePassthrough.js";
6
- import { useActiveInactiveState as te } from "../../composables/useActiveInactiveState.js";
7
- import { useConfigDefaults as s, useSizeMap as ne } from "../../composables/useConfigDefaults.js";
8
- import { ICON_SIZES as re } from "../../types/SizeScale.js";
9
- import { useFormBinding as ie } from "../../composables/useFormBinding.js";
10
- import { useId as c } from "../../composables/useId.js";
11
- import { useLocale as l } from "../../composables/useLocale.js";
12
- import { useLogger as u } from "../../composables/useLogger.js";
13
- import { useOnFalsy as d } from "../../composables/useOnFalsy.js";
14
- import { useOnTruthy as ae } from "../../composables/useOnTruthy.js";
15
- import { removedPropsFor as oe } from "../../deprecation/removedProps.js";
16
- import { parseSize as se } from "../../utilities/functions/parseSize.js";
17
- import { warnRemovedAttrs as ce } from "../../utilities/functions/warnRemovedAttrs.js";
18
- import { BB_RATING_PT as f } from "./types.js";
19
- import { Fragment as le, computed as p, createBlock as ue, createCommentVNode as de, createElementBlock as m, createElementVNode as h, createSlots as fe, createVNode as pe, defineComponent as g, guardReactiveProps as _, mergeProps as v, normalizeClass as me, normalizeProps as y, normalizeStyle as he, openBlock as b, ref as x, renderList as ge, renderSlot as S, toDisplayString as C, unref as w, useAttrs as T, useSlots as E, useTemplateRef as D, withCtx as O, withDirectives as k } from "vue";
6
+ import { useActiveInactiveState as s } from "../../composables/useActiveInactiveState.js";
7
+ import { useConfigDefaults as c, useSizeMap as l } from "../../composables/useConfigDefaults.js";
8
+ import { ICON_SIZES as te } from "../../types/SizeScale.js";
9
+ import { useFormBinding as ne } from "../../composables/useFormBinding.js";
10
+ import { useId as u } from "../../composables/useId.js";
11
+ import { useLocale as re } from "../../composables/useLocale.js";
12
+ import { useLogger as ie } from "../../composables/useLogger.js";
13
+ import { useOnFalsy as ae } from "../../composables/useOnFalsy.js";
14
+ import { useOnTruthy as oe } from "../../composables/useOnTruthy.js";
15
+ import { removedPropsFor as se } from "../../deprecation/removedProps.js";
16
+ import { parseSize as ce } from "../../utilities/functions/parseSize.js";
17
+ import { createClickCount as le } from "../../utilities/functions/clickCount.js";
18
+ import { warnRemovedAttrs as ue } from "../../utilities/functions/warnRemovedAttrs.js";
19
+ import { BB_RATING_PT as d } from "./types.js";
20
+ import { Fragment as f, computed as p, createBlock as de, createCommentVNode as fe, createElementBlock as m, createElementVNode as h, createSlots as pe, createVNode as me, defineComponent as g, guardReactiveProps as _, mergeProps as v, normalizeClass as he, normalizeProps as y, normalizeStyle as ge, openBlock as b, ref as x, renderList as _e, renderSlot as S, toDisplayString as C, unref as w, useAttrs as ve, useSlots as ye, useTemplateRef as T, withCtx as E, withDirectives as D } from "vue";
20
21
  // src/components/BbRating/BbRating.vue?vue&type=script&setup=true&lang.ts
21
- var A = [
22
+ var O = [
22
23
  "aria-labelledby",
23
24
  "aria-readonly",
24
25
  "aria-required",
25
26
  "role"
26
- ], j = ["id"], M = { class: "bb-rating__label-text bb-sr-only" }, N = [
27
+ ], k = ["id"], A = { class: "bb-rating__label-text bb-sr-only" }, j = [
27
28
  "id",
28
29
  "aria-describedby",
29
30
  "autofocus",
@@ -32,7 +33,7 @@ var A = [
32
33
  "name",
33
34
  "required",
34
35
  "value"
35
- ], P = /*@__PURE__*/ g({
36
+ ], M = /*@__PURE__*/ g({
36
37
  inheritAttrs: !1,
37
38
  __name: "BbRating",
38
39
  props: {
@@ -128,55 +129,61 @@ var A = [
128
129
  "mouseup",
129
130
  "update:modelValue"
130
131
  ],
131
- setup(g, { emit: P }) {
132
- let F = g, I = P, L = E(), R = s("BbRating", F, {
132
+ setup(g, { emit: M }) {
133
+ let N = g, P = M, be = ye(), F = c("BbRating", N, {
133
134
  inputPosition: "start",
134
135
  compact: !1,
135
136
  reverse: !1
136
- }), { props: z, emit: B, showAsterisk: _e, errors: ve, required: ye, ariaRequired: be, model: xe, readonly: V } = ie(F, I, {
137
+ }), { props: I, emit: L, showAsterisk: xe, errors: Se, required: Ce, ariaRequired: we, model: Te, readonly: R } = ne(N, P, {
137
138
  componentName: "BbRating",
138
- identifierFallback: () => F.legend,
139
+ identifierFallback: () => N.legend,
139
140
  leaveOn: "inactive"
140
- }), Se = ne("BbRating", re), { t: H } = l(), Ce = u(), U = () => !!z.legend || !!L.legend;
141
- process.env.NODE_ENV !== "production" && ce("BbRating", oe("BbRating"));
142
- let W = x(!1), we = p(() => z.persistentHint || W.value), Te = c().id, G = p(() => z.name || Te.value), K = c().id, q = o({
141
+ }), Ee = l("BbRating", te), { t: z } = re(), De = ie(), B = () => !!I.legend || !!be.legend;
142
+ process.env.NODE_ENV !== "production" && ue("BbRating", se("BbRating"));
143
+ let V = x(!1), Oe = p(() => I.persistentHint || V.value), ke = u().id, H = p(() => I.name || ke.value), U = u().id, W = o({
143
144
  component: "BbRating",
144
- attrs: T(),
145
- props: z,
146
- parts: f.parts,
147
- states: f.states,
148
- active: a(i(z, () => !!z.modelValue), [
145
+ attrs: ve(),
146
+ props: I,
147
+ parts: d.parts,
148
+ states: d.states,
149
+ active: a(i(I, () => !!I.modelValue), [
149
150
  "errors",
150
151
  "warnings",
151
152
  "disabled",
152
153
  "readonly",
153
154
  "hasValue"
154
155
  ])
155
- }), Ee = r(q, { label: "legend" }), De = D("container-el"), { active: J } = te(De);
156
- d(J, () => {
157
- W.value = !1, B("inactive");
158
- }), ae(J, () => {
159
- W.value = !0, B("active");
156
+ }), Ae = r(W, { label: "legend" }), je = T("container-el"), { active: G } = s(je);
157
+ ae(G, () => {
158
+ V.value = !1, L("inactive");
159
+ }), oe(G, () => {
160
+ V.value = !0, L("active");
160
161
  });
161
- let Y = x(!1), X = () => U() ? "radiogroup" : void 0, Z = p(() => z.clearable && !z.disabled && !z.readonly), Oe = H("rating.clearHint"), Q = (e, t) => `${e}_${t}`, ke = (e) => {
162
- let t = [e, Z.value ? K.value : void 0].filter(Boolean);
162
+ let K = x(!1), q = () => B() ? "radiogroup" : void 0, J = p(() => I.clearable && !I.disabled && !I.readonly), Me = z("rating.clearHint"), Y = (e, t) => `${e}_${t}`, Ne = (e) => {
163
+ let t = [e, J.value ? U.value : void 0].filter(Boolean);
163
164
  return t.length ? t.join(" ") : void 0;
164
- }, Ae = (e) => {
165
- z.readonly ? e.target instanceof HTMLInputElement && (e.target.checked = +e.target.value === z.modelValue) : (B("change", e), e.target instanceof HTMLInputElement && e.target.checked && B("update:modelValue", +e.target.value));
166
- }, je = (e) => {
167
- z.readonly && e.preventDefault(), B("click", e), z.readonly || e.target instanceof HTMLInputElement && z.clearable && e.target.checked && +e.target.value === z.modelValue && (Y.value = !0, B("update:modelValue", null));
168
- }, Me = () => {
169
- Y.value &&= !1;
170
- }, Ne = {
171
- onBlur: (e) => B("blur", e),
172
- onChange: Ae,
173
- onClick: je,
165
+ }, X = (e) => {
166
+ I.readonly ? e.target instanceof HTMLInputElement && (e.target.checked = +e.target.value === I.modelValue) : (L("change", e), e.target instanceof HTMLInputElement && e.target.checked && L("update:modelValue", +e.target.value));
167
+ }, Z = le(), Q = (e) => {
168
+ if (I.readonly || !I.clearable) return !1;
169
+ let t = e.target;
170
+ return !(t instanceof HTMLInputElement) || !t.checked || +t.value !== I.modelValue ? !1 : (K.value = !0, L("update:modelValue", null), !0);
171
+ }, Pe = (e) => {
172
+ I.readonly && e.preventDefault(), L("click", e), Z.count(e) <= 1 && Q(e);
173
+ }, Fe = (e) => {
174
+ e.key === " " && Q(e) && e.preventDefault();
175
+ }, Ie = () => {
176
+ K.value &&= !1;
177
+ }, Le = {
178
+ onBlur: (e) => L("blur", e),
179
+ onChange: X,
180
+ onClick: Pe,
174
181
  onFocus: (e) => {
175
- W.value = !0, B("focus", e);
182
+ V.value = !0, L("focus", e);
176
183
  },
177
- onInput: (e) => B("input", e),
184
+ onInput: (e) => L("input", e),
178
185
  onKeydown: (e) => {
179
- !z.readonly && z.clearable && ["Delete", "Backspace"].includes(e.key) && e.target instanceof HTMLInputElement && +e.target.value === z.modelValue && (e.preventDefault(), B("update:modelValue", null)), z.readonly && [
186
+ I.readonly && [
180
187
  " ",
181
188
  "Spacebar",
182
189
  "Enter",
@@ -188,128 +195,130 @@ var A = [
188
195
  "ArrowDown",
189
196
  "Home",
190
197
  "End"
191
- ].includes(e.key) && e.preventDefault(), B("keydown", e);
198
+ ].includes(e.key) && e.preventDefault(), L("keydown", e);
192
199
  },
193
- onMousedown: (e) => B("mousedown", e),
194
- onMouseup: (e) => B("mouseup", e)
200
+ onKeyup: Fe,
201
+ onMousedown: (e) => L("mousedown", e),
202
+ onMouseup: (e) => L("mouseup", e)
195
203
  }, $ = p(() => {
196
- if (z.size != null) try {
197
- return se(z.size, Se.value);
204
+ if (I.size != null) try {
205
+ return ce(I.size, Ee.value);
198
206
  } catch {
199
- Ce.warn(`Invalid size: "${z.size}" in BbRating. Falling back to the default star size.`);
207
+ De.warn(`Invalid size: "${I.size}" in BbRating. Falling back to the default star size.`);
200
208
  return;
201
209
  }
202
- }), Pe = p(() => Array.from({ length: z.stars }, (e, t) => t + 1).map((e) => {
203
- let t = e === z.modelValue, n = e <= (z.modelValue ?? 0);
210
+ }), Re = p(() => Array.from({ length: I.stars }, (e, t) => t + 1).map((e) => {
211
+ let t = e === I.modelValue, n = e <= (I.modelValue ?? 0);
204
212
  return {
205
213
  checked: t,
206
- disabled: !!z.disabled,
214
+ disabled: !!I.disabled,
207
215
  filled: n,
208
- name: G.value,
216
+ name: H.value,
209
217
  size: $.value,
210
218
  value: e
211
219
  };
212
- })), Fe = p(() => {
220
+ })), ze = p(() => {
213
221
  let e = {};
214
222
  return $.value && (e["--size"] = $.value), e;
215
223
  });
216
- return (r, i) => (b(), ue(n, v({
224
+ return (r, i) => (b(), de(n, v({
217
225
  id: g.id,
218
226
  class: "bb-rating",
219
- compact: w(R).compact,
227
+ compact: w(F).compact,
220
228
  description: g.description,
221
229
  disabled: g.disabled,
222
- errors: w(ve),
230
+ errors: w(Se),
223
231
  "has-errors": g.hasErrors,
224
232
  "has-warnings": g.hasWarnings,
225
233
  "hide-label": g.hideLegend,
226
234
  hint: g.hint,
227
235
  "input-align": g.inputAlign,
228
- "input-position": w(R).inputPosition,
236
+ "input-position": w(F).inputPosition,
229
237
  label: g.legend,
230
238
  "label-align": g.labelAlign,
231
239
  "label-mode": g.legendMode,
232
240
  "label-position": g.legendPosition,
233
241
  "label-tag": "legend",
234
- layout: w(R).layout,
235
- name: G.value,
236
- passthrough: w(Ee),
237
- readonly: w(V),
238
- reverse: w(R).reverse,
239
- "show-asterisk": w(_e),
240
- "show-hint": we.value,
242
+ layout: w(F).layout,
243
+ name: H.value,
244
+ passthrough: w(Ae),
245
+ readonly: w(R),
246
+ reverse: w(F).reverse,
247
+ "show-asterisk": w(xe),
248
+ "show-hint": Oe.value,
241
249
  tag: "fieldset",
242
250
  warnings: g.warnings
243
- }, w(q).forwardAttrs), fe({
244
- label: O((e) => [S(r.$slots, "legend", y(_(e)))]),
245
- input: O(({ id: n, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [h("span", {
251
+ }, w(W).forwardAttrs), pe({
252
+ label: E((e) => [S(r.$slots, "legend", y(_(e)))]),
253
+ input: E(({ id: n, hasErrors: a, hasWarnings: o, ariaDescribedby: s }) => [h("span", {
246
254
  ref: "container-el",
247
- class: me(["bb-rating__stars", {
248
- "bb-rating__stars--has-value": w(xe),
255
+ class: he(["bb-rating__stars", {
256
+ "bb-rating__stars--has-value": w(Te),
249
257
  "bb-rating__stars--disabled": g.disabled,
250
- "bb-rating__stars--errors": i,
251
- "bb-rating__stars--warnings": !!a && !i,
252
- "bb-rating__stars--readonly": w(V),
253
- "bb-rating__stars--forced-clear": Y.value
258
+ "bb-rating__stars--errors": a,
259
+ "bb-rating__stars--warnings": !!o && !a,
260
+ "bb-rating__stars--readonly": w(R),
261
+ "bb-rating__stars--forced-clear": K.value
254
262
  }]),
255
263
  "data-bb-no-drag": "",
256
- style: he(Fe.value),
257
- onPointermove: Me
264
+ style: ge(ze.value),
265
+ onMousedownCapture: i[0] ||= (...e) => w(Z).onPress && w(Z).onPress(...e),
266
+ onPointermove: Ie
258
267
  }, [h("span", {
259
- "aria-labelledby": U() ? `${n}__label` : void 0,
260
- "aria-readonly": X() && w(V) ? !0 : void 0,
261
- "aria-required": X() ? w(be) : void 0,
268
+ "aria-labelledby": B() ? `${n}__label` : void 0,
269
+ "aria-readonly": q() && w(R) ? !0 : void 0,
270
+ "aria-required": q() ? w(we) : void 0,
262
271
  class: "bb-rating__options",
263
- role: X()
272
+ role: q()
264
273
  }, [
265
274
  S(r.$slots, "prepend"),
266
- Z.value ? (b(), m("span", {
275
+ J.value ? (b(), m("span", {
267
276
  key: 0,
268
- id: w(K),
277
+ id: w(U),
269
278
  hidden: ""
270
- }, C(w(Oe)), 9, j)) : de("", !0),
271
- (b(!0), m(le, null, ge(Pe.value, (i, a) => (b(), m("label", v({
279
+ }, C(w(Me)), 9, k)) : fe("", !0),
280
+ (b(!0), m(f, null, _e(Re.value, (i, a) => (b(), m("label", v({
272
281
  key: i.value,
273
282
  class: ["bb-rating__item", {
274
283
  "bb-rating__item--filled": i.filled,
275
284
  "bb-rating__item--empty": !i.filled,
276
285
  "bb-rating__item--disabled": i.disabled,
277
- "bb-rating__item--readonly": w(V)
286
+ "bb-rating__item--readonly": w(R)
278
287
  }]
279
- }, { ref_for: !0 }, w(q).part("item", {
288
+ }, { ref_for: !0 }, w(W).part("item", {
280
289
  selected: i.filled,
281
290
  disabled: i.disabled || void 0
282
291
  })), [
283
- h("span", M, C(i.value == 1 ? w(H)("rating.singleStar", i.value, w(z).stars).value : w(H)("rating.multipleStars", i.value, w(z).stars).value), 1),
284
- k(h("input", v({
285
- id: Q(n, i.value),
286
- "aria-describedby": ke(o),
292
+ h("span", A, C(i.value == 1 ? w(z)("rating.singleStar", i.value, w(I).stars).value : w(z)("rating.multipleStars", i.value, w(I).stars).value), 1),
293
+ D(h("input", v({
294
+ id: Y(n, i.value),
295
+ "aria-describedby": Ne(s),
287
296
  autofocus: g.autofocus && !a,
288
297
  checked: i.checked,
289
298
  class: "bb-sr-only",
290
299
  disabled: i.disabled,
291
300
  name: i.name,
292
- required: w(V) ? void 0 : w(ye) || void 0,
301
+ required: w(R) ? void 0 : w(Ce) || void 0,
293
302
  type: "radio",
294
303
  value: i.value
295
- }, { ref_for: !0 }, Ne), null, 16, N), [[w(e)]]),
304
+ }, { ref_for: !0 }, Le), null, 16, j), [[w(e)]]),
296
305
  S(r.$slots, "icon", {
297
- id: Q(n, i.value),
306
+ id: Y(n, i.value),
298
307
  checked: i.filled,
299
308
  disabled: i.disabled,
300
309
  size: i.size,
301
310
  value: i.value
302
- }, () => [pe(t, {
311
+ }, () => [me(t, {
303
312
  class: "bb-rating__icon",
304
313
  icon: w(ee)
305
314
  }, null, 8, ["icon"])])
306
315
  ], 16))), 128)),
307
316
  S(r.$slots, "append")
308
- ], 8, A)], 38)]),
317
+ ], 8, O)], 38)]),
309
318
  _: 2
310
319
  }, [r.$slots.description ? {
311
320
  name: "description",
312
- fn: O((e) => [S(r.$slots, "description", y(_(e)))]),
321
+ fn: E((e) => [S(r.$slots, "description", y(_(e)))]),
313
322
  key: "0"
314
323
  } : void 0]), 1040, [
315
324
  "id",
@@ -338,4 +347,4 @@ var A = [
338
347
  ]));
339
348
  }
340
349
  });
341
- export { P as default };
350
+ export { M as default };
@@ -90,7 +90,7 @@ export type BbRatingProps = BbRatingPtProps & {
90
90
  */
91
91
  disabled?: boolean;
92
92
  /**
93
- * Allows clearing the selected rating by clicking the current value.
93
+ * Allows clearing the selected rating: click the selected star, or Space on it.
94
94
  * @defaultValue `false`
95
95
  */
96
96
  clearable?: boolean;
@@ -253,7 +253,8 @@ export type BbRatingEvents = {
253
253
  (e: 'mouseup', event: MouseEvent): void;
254
254
  /**
255
255
  * Emitted with the selected rating (1 to `stars`) when clicked. Emits `null`
256
- * only when `clearable` is enabled and the already-selected star is clicked.
256
+ * only when `clearable` is enabled and the already-selected star is clicked
257
+ * (or gets Space).
257
258
  */
258
259
  (e: 'update:modelValue', value: number | null): void;
259
260
  };
@@ -3,7 +3,7 @@ import { ItemGetter } from '../../types/ItemAccessor.js';
3
3
  import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
4
4
  import { BbSelectKnownItems, BbSelectSlotRow } from '../BbSelectPopover/types.js';
5
5
  import { BbSelectEvents, BbSelectSlots } from './types.js';
6
- declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefined = undefined, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ declare const __VLS_export: <const T = any, Known extends BbSelectKnownItems | undefined = undefined, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
7
  props: import('vue').PublicProps & __VLS_PrettifyLocal<({
8
8
  [x: `pt:${string}&${string}`]: unknown;
9
9
  } & {
@@ -100,6 +100,7 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
100
100
  "itemDescription:loading"?: import('../../types/passthrough.js').PtValue | undefined;
101
101
  "spinner:disabled"?: import('../../types/passthrough.js').PtValue | undefined;
102
102
  "spinner:loading"?: import('../../types/passthrough.js').PtValue | undefined;
103
+ header?: import('../../types/passthrough.js').PtValue | undefined;
103
104
  "clear:loading"?: import('../../types/passthrough.js').PtValue | undefined;
104
105
  panel?: import('../../types/passthrough.js').PtValue | undefined;
105
106
  sheet?: import('../../types/passthrough.js').PtValue | undefined;
@@ -161,9 +162,13 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
161
162
  "sheet:open"?: import('../../types/passthrough.js').PtValue | undefined;
162
163
  "sheet:loading"?: import('../../types/passthrough.js').PtValue | undefined;
163
164
  activator?: import('../../types/passthrough.js').PtValue | undefined;
164
- header?: import('../../types/passthrough.js').PtValue | undefined;
165
165
  "header:disabled"?: import('../../types/passthrough.js').PtValue | undefined;
166
166
  "header:open"?: import('../../types/passthrough.js').PtValue | undefined;
167
+ "header:hasValue"?: import('../../types/passthrough.js').PtValue | undefined;
168
+ "header:readonly"?: import('../../types/passthrough.js').PtValue | undefined;
169
+ "header:warnings"?: import('../../types/passthrough.js').PtValue | undefined;
170
+ "header:errors"?: import('../../types/passthrough.js').PtValue | undefined;
171
+ "header:loading"?: import('../../types/passthrough.js').PtValue | undefined;
167
172
  "activator:hasValue"?: import('../../types/passthrough.js').PtValue | undefined;
168
173
  "activator:readonly"?: import('../../types/passthrough.js').PtValue | undefined;
169
174
  "activator:disabled"?: import('../../types/passthrough.js').PtValue | undefined;
@@ -171,11 +176,6 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
171
176
  "activator:errors"?: import('../../types/passthrough.js').PtValue | undefined;
172
177
  "activator:open"?: import('../../types/passthrough.js').PtValue | undefined;
173
178
  "activator:loading"?: import('../../types/passthrough.js').PtValue | undefined;
174
- "header:hasValue"?: import('../../types/passthrough.js').PtValue | undefined;
175
- "header:readonly"?: import('../../types/passthrough.js').PtValue | undefined;
176
- "header:warnings"?: import('../../types/passthrough.js').PtValue | undefined;
177
- "header:errors"?: import('../../types/passthrough.js').PtValue | undefined;
178
- "header:loading"?: import('../../types/passthrough.js').PtValue | undefined;
179
179
  footer?: import('../../types/passthrough.js').PtValue | undefined;
180
180
  "footer:open"?: import('../../types/passthrough.js').PtValue | undefined;
181
181
  "list:open"?: import('../../types/passthrough.js').PtValue | undefined;
@@ -320,6 +320,7 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
320
320
  loadingText?: string;
321
321
  max?: number;
322
322
  maxSelectedLabels?: number;
323
+ minQueryLength?: number;
323
324
  modelValue?: any;
324
325
  modelValueDebounceTime?: number;
325
326
  multiple?: boolean;
@@ -342,7 +343,7 @@ declare const __VLS_export: <T = any, Known extends BbSelectKnownItems | undefin
342
343
  itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
343
344
  itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
344
345
  multiple?: MultipleInput<M>;
345
- } & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt" | "prepend:icon" | "append:icon" | "dependencies" | "variant" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "disableWriting" | "queryDebounceTime" | "comma" | keyof import('./ptKeys.generated.js').BbSelectPtKeys | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "maxSelectedLabels" | "prefill" | "selectedLabelsFn" | "stash" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onClick"> & {} & ControlAttrs<"input", "form">) & {
346
+ } & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "pt" | "onClick" | "variant" | "prepend:icon" | "append:icon" | "dependencies" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "disableWriting" | "queryDebounceTime" | "comma" | keyof import('./ptKeys.generated.js').BbSelectPtKeys | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "maxSelectedLabels" | "minQueryLength" | "prefill" | "selectedLabelsFn" | "stash" | "onFocus" | "onBlur" | "onChange" | "onInput"> & {} & ControlAttrs<"input", "form">) & {
346
347
  onActive?: (() => any) | undefined;
347
348
  onInput?: ((event: Event) => any) | undefined;
348
349
  "onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
@@ -335,6 +335,7 @@ var Te = ["id"], Ee = [
335
335
  loadingText: {},
336
336
  max: {},
337
337
  maxSelectedLabels: {},
338
+ minQueryLength: {},
338
339
  modelValue: {},
339
340
  modelValueDebounceTime: {},
340
341
  multiple: { type: Boolean },
@@ -569,6 +570,7 @@ var Te = ["id"], Ee = [
569
570
  loading: c.loading,
570
571
  "loading-text": c.loadingText,
571
572
  max: c.max,
573
+ "min-query-length": c.minQueryLength,
572
574
  "model-value": A(Pe),
573
575
  "model-value-debounce-time": c.modelValueDebounceTime,
574
576
  multiple: c.multiple,
@@ -723,7 +725,7 @@ var Te = ["id"], Ee = [
723
725
  fn: M((e) => [O(n.$slots, "option", x({ hasErrors: r }, e))]),
724
726
  key: "2"
725
727
  } : void 0
726
- ]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
728
+ ]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.min-query-length.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
727
729
  _: 2
728
730
  }, 1024)]),
729
731
  _: 2
@@ -372,6 +372,14 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
372
372
  * @defaultValue `Infinity`
373
373
  */
374
374
  maxSelectedLabels?: number;
375
+ /**
376
+ * Characters to type (trimmed) before the query searches. Below it the
377
+ * query counts as empty: no `'search'` call, no filtering, and the panel
378
+ * says how many characters to type. Slots still get the typed `query`.
379
+ *
380
+ * @defaultValue `0`
381
+ */
382
+ minQueryLength?: number;
375
383
  /**
376
384
  * Used by v-model. Can be any serializable type.
377
385
  */
@@ -1,5 +1,7 @@
1
+ import { ItemGetter } from '../../types/ItemAccessor.js';
2
+ import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
1
3
  import { BbSelectKnownItems, BbSelectPopoverEvents, BbSelectPopoverSlots } from './types.js';
2
- declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems | undefined = undefined, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
5
  props: import('vue').PublicProps & __VLS_PrettifyLocal<({
4
6
  [x: `pt:${string}&${string}`]: unknown;
5
7
  } & {
@@ -54,6 +56,7 @@ declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | unde
54
56
  loading?: boolean;
55
57
  loadingText?: string;
56
58
  max?: number;
59
+ minQueryLength?: number;
57
60
  modelValue: any;
58
61
  modelValueDebounceTime?: number;
59
62
  multiple?: boolean;
@@ -70,13 +73,17 @@ declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | unde
70
73
  stash?: boolean;
71
74
  transitionDuration?: number;
72
75
  width?: number | string;
73
- } & Omit<import('vue').DialogHTMLAttributes & import('vue').HTMLAttributes, `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "loading" | "pt" | "dependencies" | "compact" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "hasErrors" | "hasWarnings" | "id" | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "offset" | "padding" | "placement" | "disableWriting" | "queryDebounceTime" | "width" | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "prefill" | "stash" | keyof import('./ptKeys.generated.js').BbSelectPopoverPtKeys | "ariaDescribedby" | "ariaInvalid" | "searchInputAriaLabel" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onClick" | "aria-describedby" | "aria-invalid"> & {
76
+ } & {
77
+ itemValue?: ItemKeyInput<Item, A> | ItemGetter<Item, any>;
78
+ itemText?: ItemKeyInput<Item, Tx> | ItemGetter<Item, string>;
79
+ multiple?: MultipleInput<M>;
80
+ } & Omit<import('vue').DialogHTMLAttributes & import('vue').HTMLAttributes, `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "loading" | "pt" | "onClick" | "dependencies" | "compact" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "hasErrors" | "hasWarnings" | "id" | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "offset" | "padding" | "placement" | "disableWriting" | "queryDebounceTime" | "width" | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "minQueryLength" | "prefill" | "stash" | keyof import('./ptKeys.generated.js').BbSelectPopoverPtKeys | "ariaDescribedby" | "ariaInvalid" | "searchInputAriaLabel" | "onFocus" | "onBlur" | "onChange" | "onInput" | "aria-describedby" | "aria-invalid"> & {
74
81
  "aria-describedby"?: string | string[] | undefined;
75
82
  "aria-invalid"?: boolean | undefined;
76
83
  }) & {
77
84
  onActive?: (() => any) | undefined;
78
85
  onInput?: ((event: Event) => any) | undefined;
79
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
86
+ "onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<Item, A>, M>) => any) | undefined;
80
87
  onBlur?: ((event: FocusEvent) => any) | undefined;
81
88
  onInactive?: (() => any) | undefined;
82
89
  onChange?: ((event: Event) => any) | undefined;
@@ -93,7 +100,7 @@ declare const __VLS_export: <Item = any, Known extends BbSelectKnownItems | unde
93
100
  expose: (exposed: {}) => void;
94
101
  attrs: any;
95
102
  slots: BbSelectPopoverSlots<Item, Known>;
96
- emit: BbSelectPopoverEvents;
103
+ emit: BbSelectPopoverEvents<SelectModelOf<OptionValueOf<Item, A>, M>>;
97
104
  }>) => import('vue').VNode & {
98
105
  __ctx?: Awaited<typeof __VLS_setup>;
99
106
  };