bitboss-ui 3.0.0-beta.48 → 3.0.0-beta.49

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 (356) hide show
  1. package/README.md +24 -7
  2. package/bin/bitboss-ui-mcp.mjs +15 -3
  3. package/bin/bitboss-ui.mjs +115 -13
  4. package/dist/ai/BbAvatar.md +1 -1
  5. package/dist/ai/BbBreadcrumbs.md +65 -65
  6. package/dist/ai/BbButton.md +16 -5
  7. package/dist/ai/BbCheckbox.md +0 -2
  8. package/dist/ai/BbCheckboxGroup.md +13 -20
  9. package/dist/ai/BbDatePickerInput.md +4 -2
  10. package/dist/ai/BbDialog.md +1 -8
  11. package/dist/ai/BbDropdown.md +231 -220
  12. package/dist/ai/BbDropdownButton.md +65 -65
  13. package/dist/ai/BbDropdownGroup.md +2 -2
  14. package/dist/ai/BbDropzone.md +10 -10
  15. package/dist/ai/BbForm.md +43 -52
  16. package/dist/ai/BbHoverCard.md +4 -2
  17. package/dist/ai/BbNumberInput.md +88 -21
  18. package/dist/ai/BbPopover.md +29 -23
  19. package/dist/ai/BbProgress.md +48 -22
  20. package/dist/ai/BbRadioGroup.md +13 -19
  21. package/dist/ai/BbSelect.md +16 -36
  22. package/dist/ai/BbSelectPopover.md +14 -30
  23. package/dist/ai/BbSmoothHeight.md +0 -2
  24. package/dist/ai/BbSwitchGroup.md +13 -20
  25. package/dist/ai/BbTable.md +11 -10
  26. package/dist/ai/BbTabs.md +106 -105
  27. package/dist/ai/BbTabsList.md +2 -2
  28. package/dist/ai/BbTabsPanels.md +1 -1
  29. package/dist/ai/BbTabsRoot.md +2 -2
  30. package/dist/ai/BbTooltip.md +24 -10
  31. package/dist/ai/BbTree.md +14 -11
  32. package/dist/ai/changelog.json +256 -5
  33. package/dist/ai/components.json +36 -34
  34. package/dist/ai/composables/useBbDropdownContext.md +16 -16
  35. package/dist/ai/composables/useBbFormField.md +5 -1
  36. package/dist/ai/composables/useBbTabsContext.md +14 -14
  37. package/dist/ai/guides/agent-contract.md +27 -27
  38. package/dist/ai/guides/ai-router.md +1 -1
  39. package/dist/ai/guides/component-picker.md +3 -3
  40. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  41. package/dist/ai/guides/icons-policy.md +10 -10
  42. package/dist/ai/guides/inertia-helpers.md +120 -67
  43. package/dist/ai/guides/installation-and-plugin-setup.md +43 -15
  44. package/dist/ai/guides/migration/components/bb-breadcrumbs.md +3 -2
  45. package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -16
  46. package/dist/ai/guides/migration/components/bb-dropdown-button.md +9 -8
  47. package/dist/ai/guides/migration/components/bb-dropdown.md +15 -14
  48. package/dist/ai/guides/migration/components/bb-radio-group.md +2 -1
  49. package/dist/ai/guides/migration/components/bb-select-popover.md +6 -1
  50. package/dist/ai/guides/migration/components/bb-select.md +10 -2
  51. package/dist/ai/guides/migration/components/bb-switch-group.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-tabs.md +9 -8
  53. package/dist/ai/guides/migration/components/bb-tooltip.md +1 -1
  54. package/dist/ai/guides/migration/v2-to-v3.md +114 -17
  55. package/dist/ai/guides/migration/v3-beta-tooling.md +11 -0
  56. package/dist/ai/guides/options-items-playbook.md +30 -24
  57. package/dist/ai/guides/passthrough.md +2 -2
  58. package/dist/ai/guides/preset-components.md +18 -3
  59. package/dist/ai/guides/typescript-generic-components.md +1 -1
  60. package/dist/ai/guides/validated-forms.md +11 -22
  61. package/dist/ai/guides/validation-providers.md +4 -3
  62. package/dist/ai/helpers/inertia/manifest.json +636 -0
  63. package/dist/ai/helpers/inertia/types.ts +15 -0
  64. package/dist/ai/helpers/inertia/useAsyncFn.ts +110 -0
  65. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +102 -0
  66. package/dist/ai/helpers/inertia/useDeleteCmd.ts +30 -0
  67. package/dist/ai/helpers/inertia/useHasChanged.ts +36 -0
  68. package/dist/ai/helpers/inertia/useIndexById.ts +23 -0
  69. package/dist/ai/helpers/inertia/useLazyProp.ts +148 -0
  70. package/dist/ai/helpers/inertia/useLazyPropGetter.ts +50 -0
  71. package/dist/ai/helpers/inertia/useLoading.ts +20 -0
  72. package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +88 -0
  73. package/dist/ai/helpers/inertia/usePromiseForm.ts +62 -0
  74. package/dist/ai/helpers/inertia/useProp.ts +63 -0
  75. package/dist/ai/helpers/inertia/useQuery.ts +19 -0
  76. package/dist/ai/helpers/inertia/useQueryObject.ts +116 -0
  77. package/dist/ai/helpers/inertia/useResourceContext.ts +69 -0
  78. package/dist/ai/helpers/inertia/useRouteQuery.ts +54 -0
  79. package/dist/ai/helpers/inertia/useScreenSizes.ts +23 -0
  80. package/dist/ai/helpers/inertia/useTableContext.ts +34 -0
  81. package/dist/ai/helpers/inertia/useTableSelectionContext.ts +48 -0
  82. package/dist/ai/helpers/inertia/useUntil.ts +33 -0
  83. package/dist/ai/helpers/inertia/utils.ts +24 -0
  84. package/dist/ai/index.md +6 -6
  85. package/dist/ai/manifest/components/BbBreadcrumbs.json +10 -6
  86. package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
  87. package/dist/ai/manifest/components/BbButton.json +1 -1
  88. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  89. package/dist/ai/manifest/components/BbDropdown.json +23 -20
  90. package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
  91. package/dist/ai/manifest/components/BbDropdownButton.json +22 -19
  92. package/dist/ai/manifest/components/BbDropdownButton.tree.json +1 -1
  93. package/dist/ai/manifest/components/BbDropdownGroup.json +2 -2
  94. package/dist/ai/manifest/components/BbForm.json +1 -0
  95. package/dist/ai/manifest/components/BbNumberInput.json +6 -1
  96. package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -1
  97. package/dist/ai/manifest/components/BbPopover.json +1 -0
  98. package/dist/ai/manifest/components/BbProgress.json +6 -6
  99. package/dist/ai/manifest/components/BbProgress.tree.json +1 -0
  100. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  101. package/dist/ai/manifest/components/BbSelect.json +2 -2
  102. package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
  103. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  104. package/dist/ai/manifest/components/BbTabs.json +7 -6
  105. package/dist/ai/manifest/components/BbTabsList.json +3 -3
  106. package/dist/ai/manifest/components/BbTabsPanels.json +1 -1
  107. package/dist/ai/manifest/components/BbTabsRoot.json +5 -4
  108. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +2 -0
  111. package/dist/ai/manifest/types.advanced.json +10 -9
  112. package/dist/ai/manifest/types.api.json +5 -4
  113. package/dist/ai/recipes/inertia/approvals-inbox.md +16 -18
  114. package/dist/ai/recipes/inertia/inline-edit-workspace.md +23 -33
  115. package/dist/ai/recipes/inertia/layout-scaffold.md +16 -16
  116. package/dist/ai/recipes/inertia/onboarding.md +6 -10
  117. package/dist/ai/recipes/inertia/ownership-atlas.md +15 -18
  118. package/dist/ai/recipes/inertia/record-form.md +11 -11
  119. package/dist/ai/recipes/inertia/records-workspace.md +38 -41
  120. package/dist/ai/recipes/inertia/settings-workspace.md +26 -38
  121. package/dist/ai/recipes/inertia/upload-center.md +31 -39
  122. package/dist/ai/recipes/inertia/wizard-form.md +10 -19
  123. package/dist/ai/recipes/nuxt/approvals-inbox.md +7 -8
  124. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +14 -24
  125. package/dist/ai/recipes/nuxt/layout-scaffold.md +16 -16
  126. package/dist/ai/recipes/nuxt/onboarding.md +2 -6
  127. package/dist/ai/recipes/nuxt/ownership-atlas.md +7 -9
  128. package/dist/ai/recipes/nuxt/record-form.md +5 -5
  129. package/dist/ai/recipes/nuxt/records-workspace.md +29 -31
  130. package/dist/ai/recipes/nuxt/settings-workspace.md +22 -34
  131. package/dist/ai/recipes/nuxt/upload-center.md +22 -29
  132. package/dist/ai/recipes/nuxt/wizard-form.md +3 -11
  133. package/dist/ai/recipes/vue/approvals-inbox.md +7 -8
  134. package/dist/ai/recipes/vue/inline-edit-workspace.md +14 -24
  135. package/dist/ai/recipes/vue/layout-scaffold.md +16 -16
  136. package/dist/ai/recipes/vue/onboarding.md +2 -6
  137. package/dist/ai/recipes/vue/ownership-atlas.md +7 -9
  138. package/dist/ai/recipes/vue/record-form.md +5 -5
  139. package/dist/ai/recipes/vue/records-workspace.md +29 -31
  140. package/dist/ai/recipes/vue/settings-workspace.md +22 -34
  141. package/dist/ai/recipes/vue/upload-center.md +22 -29
  142. package/dist/ai/recipes/vue/wizard-form.md +3 -11
  143. package/dist/ai/source/BbAccordion.md +1 -1
  144. package/dist/ai/source/BbAlert.md +3 -3
  145. package/dist/ai/source/BbBadge.md +2 -2
  146. package/dist/ai/source/BbBadgeButton.md +5 -4
  147. package/dist/ai/source/BbBaseButton.md +1 -1
  148. package/dist/ai/source/BbBaseRadioIcon.md +1 -0
  149. package/dist/ai/source/BbBaseSwitchIcon.md +1 -0
  150. package/dist/ai/source/BbBreadcrumbs.md +63 -42
  151. package/dist/ai/source/BbButton.md +71 -33
  152. package/dist/ai/source/BbCalendar.md +17 -16
  153. package/dist/ai/source/BbCheckbox.md +3 -2
  154. package/dist/ai/source/BbCheckboxGroup.md +11 -4
  155. package/dist/ai/source/BbColorInput.md +10 -9
  156. package/dist/ai/source/BbConfirm.md +1 -1
  157. package/dist/ai/source/BbConfirmPortal.md +1 -1
  158. package/dist/ai/source/BbDatePicker.md +2 -2
  159. package/dist/ai/source/BbDatePickerInput.md +47 -20
  160. package/dist/ai/source/BbDialog.md +5 -5
  161. package/dist/ai/source/BbDropdown.md +230 -158
  162. package/dist/ai/source/BbDropdownButton.md +19 -12
  163. package/dist/ai/source/BbDropdownGroup.md +126 -93
  164. package/dist/ai/source/BbForm.md +25 -1
  165. package/dist/ai/source/BbIndicator.md +4 -0
  166. package/dist/ai/source/BbNumberInput.md +855 -19
  167. package/dist/ai/source/BbOffCanvas.md +27 -11
  168. package/dist/ai/source/BbPagination.md +3 -3
  169. package/dist/ai/source/BbPopover.md +152 -8
  170. package/dist/ai/source/BbPopoverPortal.md +11 -0
  171. package/dist/ai/source/BbProgress.md +82 -18
  172. package/dist/ai/source/BbRadioGroup.md +12 -5
  173. package/dist/ai/source/BbRating.md +11 -9
  174. package/dist/ai/source/BbSelect.md +16 -10
  175. package/dist/ai/source/BbSelectPopover.md +29 -23
  176. package/dist/ai/source/BbSlider.md +12 -6
  177. package/dist/ai/source/BbSwitch.md +3 -2
  178. package/dist/ai/source/BbSwitchGroup.md +5 -2
  179. package/dist/ai/source/BbTable.md +102 -18
  180. package/dist/ai/source/BbTabs.md +27 -23
  181. package/dist/ai/source/BbTabsList.md +26 -22
  182. package/dist/ai/source/BbTabsPanels.md +26 -22
  183. package/dist/ai/source/BbTabsRoot.md +25 -21
  184. package/dist/ai/source/BbTag.md +10 -9
  185. package/dist/ai/source/BbTextInput.md +5 -4
  186. package/dist/ai/source/BbTextarea.md +6 -5
  187. package/dist/ai/source/BbTimePicker.md +1 -1
  188. package/dist/ai/source/BbTimePickerInput.md +46 -9
  189. package/dist/ai/source/BbToast.md +10 -7
  190. package/dist/ai/source/BbToastPortal.md +10 -7
  191. package/dist/ai/source/BbTooltip.md +54 -8
  192. package/dist/ai/source/BbTree.md +21 -3
  193. package/dist/ai/source/CommonField.md +6 -4
  194. package/dist/ai/source/CommonFieldInput.md +15 -10
  195. package/dist/ai/source/CommonPopover.md +6 -0
  196. package/dist/ai/source/CommonTimeSelector.md +5 -4
  197. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +10 -8
  198. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +8 -8
  199. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +45 -45
  200. package/dist/components/BbBreadcrumbs/types.d.ts +25 -17
  201. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +84 -71
  202. package/dist/components/BbButton/toggleRoving.d.ts +6 -0
  203. package/dist/components/BbButton/toggleRoving.js +45 -0
  204. package/dist/components/BbButton/types.d.ts +4 -1
  205. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +178 -178
  206. package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -15
  207. package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +28 -28
  208. package/dist/components/BbCalendar/useCalendarGrid.js +141 -139
  209. package/dist/components/BbCalendar/useDayjsLocale.d.ts +38 -15
  210. package/dist/components/BbCalendar/useDayjsLocale.js +31 -30
  211. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +48 -48
  212. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +81 -80
  213. package/dist/components/BbCheckboxGroup/types.d.ts +6 -2
  214. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
  215. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +363 -349
  216. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +91 -86
  217. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +298 -289
  218. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +322 -356
  219. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +17 -15
  220. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +40 -0
  221. package/dist/components/BbDropdown/DropdownRow.vue.js +5 -0
  222. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +60 -0
  223. package/dist/components/BbDropdown/normalizeGroups.d.ts +8 -2
  224. package/dist/components/BbDropdown/normalizeGroups.js +60 -46
  225. package/dist/components/BbDropdown/types.d.ts +119 -88
  226. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +11 -2
  227. package/dist/components/BbDropdownButton/types.d.ts +2 -2
  228. package/dist/components/BbForm/BbForm.vue.d.ts +9 -0
  229. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +114 -105
  230. package/dist/components/BbForm/BbFormCustomField.js +1 -1
  231. package/dist/components/BbForm/bindFormField.js +2 -1
  232. package/dist/components/BbForm/formFields.d.ts +5 -0
  233. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +0 -1
  234. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +452 -125
  235. package/dist/components/BbNumberInput/numberDisplay.d.ts +256 -0
  236. package/dist/components/BbNumberInput/numberDisplay.js +499 -0
  237. package/dist/components/BbNumberInput/types.d.ts +54 -1
  238. package/dist/components/BbNumberInput/warroom/corpus.d.ts +58 -0
  239. package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +28 -0
  240. package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +2 -0
  241. package/dist/components/BbNumberInput/warroom/harness.d.ts +217 -0
  242. package/dist/components/BbNumberInput/warroom/oracle.d.ts +150 -0
  243. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +7 -7
  244. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -0
  245. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +207 -164
  246. package/dist/components/BbPopover/types.d.ts +11 -0
  247. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +15 -7
  248. package/dist/components/BbProgress/types.d.ts +23 -7
  249. package/dist/components/BbProgress/types.js +1 -1
  250. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +102 -101
  251. package/dist/components/BbRadioGroup/types.d.ts +6 -2
  252. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +63 -63
  253. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +156 -154
  254. package/dist/components/BbSelect/types.d.ts +6 -2
  255. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +2 -1
  256. package/dist/components/BbSelectPopover/types.d.ts +6 -2
  257. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +153 -153
  258. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +62 -62
  259. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +131 -130
  260. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +711 -676
  261. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +1 -1
  262. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
  263. package/dist/components/BbTabs/types.d.ts +25 -21
  264. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +76 -76
  265. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +58 -58
  266. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +82 -82
  267. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +246 -236
  268. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +102 -97
  269. package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
  270. package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
  271. package/dist/components/BbTooltip/types.d.ts +7 -2
  272. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +29 -21
  273. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +10 -7
  274. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +37 -36
  275. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +9 -9
  276. package/dist/composables/formSubmitLock.d.ts +6 -0
  277. package/dist/composables/formSubmitLock.js +4 -0
  278. package/dist/composables/useBaseOptions.d.ts +7 -1
  279. package/dist/composables/useBaseOptions.js +32 -32
  280. package/dist/composables/useBbDropdownContext.d.ts +8 -8
  281. package/dist/composables/useBbFormField.d.ts +9 -0
  282. package/dist/composables/useBbFormField.js +5 -3
  283. package/dist/composables/useBbTabsContext.d.ts +10 -10
  284. package/dist/composables/useBbTabsContext.js +18 -18
  285. package/dist/composables/useFormBinding.d.ts +11 -0
  286. package/dist/composables/useFormBinding.js +15 -13
  287. package/dist/composables/useItemText.d.ts +5 -1
  288. package/dist/composables/useItemText.js +8 -3
  289. package/dist/composables/useItemValue.d.ts +5 -1
  290. package/dist/composables/useItemValue.js +8 -3
  291. package/dist/composables/useLocale.js +10 -9
  292. package/dist/deprecation/ai-deprecations.json.d.ts +130 -0
  293. package/dist/deprecation/ai-deprecations.json.js +1 -1
  294. package/dist/deprecation/removedProps.js +1 -1
  295. package/dist/directives/bbDropdown.js +1 -1
  296. package/dist/i18n/index.d.ts +7 -12
  297. package/dist/i18n/locales/cs.json +11 -14
  298. package/dist/i18n/locales/da.json +13 -16
  299. package/dist/i18n/locales/de-CH.json +137 -0
  300. package/dist/i18n/locales/de.json +14 -17
  301. package/dist/i18n/locales/el.json +10 -13
  302. package/dist/i18n/locales/en-GB.json +137 -0
  303. package/dist/i18n/locales/en.json +8 -11
  304. package/dist/i18n/locales/es-MX.json +137 -0
  305. package/dist/i18n/locales/es.json +16 -19
  306. package/dist/i18n/locales/fi.json +8 -11
  307. package/dist/i18n/locales/fr.json +23 -26
  308. package/dist/i18n/locales/hu.json +8 -11
  309. package/dist/i18n/locales/it.json +12 -15
  310. package/dist/i18n/locales/ja.json +13 -16
  311. package/dist/i18n/locales/ko.json +10 -13
  312. package/dist/i18n/locales/nb.json +13 -16
  313. package/dist/i18n/locales/nl.json +21 -24
  314. package/dist/i18n/locales/pl.json +10 -13
  315. package/dist/i18n/locales/{pt.json → pt-BR.json} +19 -22
  316. package/dist/i18n/locales/pt-PT.json +137 -0
  317. package/dist/i18n/locales/ro.json +22 -25
  318. package/dist/i18n/locales/ru.json +11 -14
  319. package/dist/i18n/locales/sv.json +16 -19
  320. package/dist/i18n/locales/tr.json +14 -17
  321. package/dist/i18n/locales/uk.json +11 -14
  322. package/dist/i18n/locales/{zh-cn.json → zh-CN.json} +10 -13
  323. package/dist/i18n/locales/zh-HK.json +137 -0
  324. package/dist/i18n/locales/zh-TW.json +137 -0
  325. package/dist/i18n/regionHints.d.ts +16 -0
  326. package/dist/i18n/regionHints.js +49 -0
  327. package/dist/i18n/regions.d.ts +286 -0
  328. package/dist/i18n/regions.js +265 -0
  329. package/dist/index.d.ts +1 -1
  330. package/dist/index.js +4 -4
  331. package/dist/llms-full.txt +1785 -1637
  332. package/dist/llms-medium.txt +74 -46
  333. package/dist/llms.txt +7 -7
  334. package/dist/locale-blueprint.json +16 -13
  335. package/dist/styles.css +2 -2
  336. package/dist/types/ptComponentMap.d.ts +1 -1
  337. package/dist/utilities/functions/slotKey.d.ts +2 -2
  338. package/dist/utils/versionCheck.js +1 -1
  339. package/dist/vite-plugin.d.ts +22 -19
  340. package/dist/vite.js +309 -297
  341. package/llms.txt +7 -7
  342. package/package.json +5 -3
  343. package/scripts/lib/agent-manifest.mjs +2 -1
  344. package/scripts/lib/eslint-disable.mjs +12 -4
  345. package/scripts/lib/eslint-plugin.d.ts +5 -1
  346. package/scripts/lib/eslint-plugin.mjs +187 -6
  347. package/scripts/lib/helper-canon.mjs +176 -0
  348. package/scripts/lib/helpers-add.mjs +1303 -0
  349. package/scripts/lib/local-components.mjs +33 -4
  350. package/scripts/lib/locale-check.mjs +165 -0
  351. package/scripts/lib/redundant-item-accessor.mjs +398 -0
  352. package/scripts/lib/renamed-item-field.mjs +343 -0
  353. package/scripts/lib/slot-key.mjs +2 -2
  354. package/scripts/lib/slot-renames.mjs +1 -1
  355. package/scripts/lib/validate-bb-markup.mjs +123 -56
  356. package/dist/i18n/index.js +0 -27
@@ -13,27 +13,28 @@ import { useFormBinding as l } from "../../composables/useFormBinding.js";
13
13
  import ie from "../CommonFieldInput/CommonFieldInput.vue.js";
14
14
  import u from "../../assets/svgs/chevron_down.svg_raw.js";
15
15
  import { provideSheetChipAttrs as ae } from "../BbSelectPopover/sheetChipAttrs.js";
16
- import { BB_SELECT_POPOVER_PT as d } from "../BbSelectPopover/types.js";
17
- import oe from "../BbSelectPopover/BbSelectPopover.vue.js";
18
- import { throttle as se } from "../../utilities/functions/throttle.js";
19
- import { when as ce } from "../../utilities/functions/when.js";
20
- import { reject as le } from "../../utilities/functions/reject.js";
21
- import { BB_SELECT_PT as ue } from "./types.js";
22
- import { Fragment as f, computed as p, createBlock as de, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as fe, createVNode as v, defineComponent as pe, getCurrentInstance as me, guardReactiveProps as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeProps as C, onMounted as he, onUnmounted as ge, openBlock as w, ref as T, renderList as E, renderSlot as D, toDisplayString as O, unref as k, useAttrs as _e, watch as A, withCtx as j, withModifiers as ve } from "vue";
16
+ import { BB_SELECT_POPOVER_PT as oe } from "../BbSelectPopover/types.js";
17
+ import se from "../BbSelectPopover/BbSelectPopover.vue.js";
18
+ import { throttle as ce } from "../../utilities/functions/throttle.js";
19
+ import { when as le } from "../../utilities/functions/when.js";
20
+ import { reject as ue } from "../../utilities/functions/reject.js";
21
+ import { BB_SELECT_PT as de } from "./types.js";
22
+ import { Fragment as d, computed as f, createBlock as fe, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as pe, createVNode as _, defineComponent as me, getCurrentInstance as he, guardReactiveProps as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, onMounted as ge, onUnmounted as _e, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useAttrs as ve, watch as k, withCtx as A, withModifiers as ye } from "vue";
23
23
  //#region src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
24
- var ye = ["id"], be = [
24
+ var be = ["id"], xe = [
25
25
  "id",
26
26
  "aria-labelledby",
27
+ "aria-readonly",
27
28
  "aria-required",
28
29
  "autofocus",
29
30
  "disabled"
30
- ], xe = {
31
+ ], Se = {
31
32
  key: 1,
32
33
  class: "bb-select__max-reached"
33
- }, Se = {
34
+ }, Ce = {
34
35
  key: 2,
35
36
  class: "bb-select__display-value bb-select__placeholder"
36
- }, Ce = ["id"], M = /*@__PURE__*/ pe({
37
+ }, we = ["id"], Te = /*@__PURE__*/ me({
37
38
  inheritAttrs: !1,
38
39
  __name: "BbSelect",
39
40
  props: {
@@ -344,164 +345,164 @@ var ye = ["id"], be = [
344
345
  "update:modelValue",
345
346
  "option:add"
346
347
  ],
347
- setup(pe, { emit: M }) {
348
- let N = pe, { props: P, emit: F, showAsterisk: we, errors: Te, ariaRequired: Ee, required: De, model: Oe } = l(N, M, {
348
+ setup(me, { emit: Te }) {
349
+ let j = me, { props: M, emit: N, showAsterisk: Ee, errors: De, ariaRequired: Oe, required: ke, model: Ae, readonly: P } = l(j, Te, {
349
350
  componentName: "BbSelect",
350
- identifierFallback: () => N.label,
351
+ identifierFallback: () => j.label,
351
352
  leaveOn: "inactive"
352
- }), ke = p(() => Ee.value ?? (De.value ? !0 : void 0)), Ae = r(), { t: je } = s();
353
+ }), je = f(() => Oe.value ?? (ke.value ? !0 : void 0)), Me = r(), { t: Ne } = s();
353
354
  process.env.NODE_ENV !== "production" && a("BbSelect", i("BbSelect"));
354
- let I = T(!1), { isMobile: Me } = o(), Ne = p(() => P.persistentHint || I.value), L = p(() => e(P.modelValue)), Pe = p(() => !!P.clearable && L.value), Fe = p(() => P.labelMode ?? Ae.defaultInputLabelMode), R = T(!1), z = ee({
355
+ let F = w(!1), { isMobile: Pe } = o(), Fe = f(() => M.persistentHint || F.value), I = f(() => e(M.modelValue)), Ie = f(() => !!M.clearable && I.value), Le = f(() => M.labelMode ?? Me.defaultInputLabelMode), L = w(!1), R = ee({
355
356
  component: "BbSelect",
356
- attrs: _e(),
357
+ attrs: ve(),
357
358
  controlAttrs: t,
358
- props: P,
359
- parts: ue.parts,
360
- states: ue.states,
359
+ props: M,
360
+ parts: de.parts,
361
+ states: de.states,
361
362
  active: {
362
- ...n(P, () => L.value),
363
- open: () => R.value
363
+ ...n(M, () => I.value),
364
+ open: () => L.value
364
365
  }
365
366
  });
366
- ae((e) => z.part("badge", {}, e));
367
- let Ie = () => ({
368
- ...z.forward([
367
+ ae((e) => R.part("badge", {}, e));
368
+ let Re = () => ({
369
+ ...R.forward([
369
370
  "panel",
370
371
  "sheet",
371
372
  "header",
372
373
  "footer",
373
374
  "input",
374
375
  "list"
375
- ], d.states.filter((e) => e !== "disabled")),
376
- ...z.forward([
376
+ ], oe.states.filter((e) => e !== "disabled")),
377
+ ...R.forward([
377
378
  "option",
378
379
  "itemText",
379
380
  "itemIcon",
380
381
  "itemDescription"
381
- ], d.states)
382
- }), Le = [
382
+ ], oe.states)
383
+ }), ze = [
383
384
  "box",
384
385
  "icon",
385
386
  "spinner",
386
387
  "clear",
387
388
  "prefix",
388
389
  "suffix"
389
- ], Re = (e) => Object.fromEntries(Le.map((t) => [t, z.part(t, { loading: e })])), ze = p(() => ({
390
- title: P.label,
391
- ...P.offCanvasProps
392
- })), Be = p(() => P["append:icon"] === void 0 ? u : P["append:icon"]), B = p(() => P.maxSelectedLabels === void 0 ? Infinity : P.maxSelectedLabels), Ve = p(() => L.value ? !0 : P.prefill ?? "interaction"), V = T(), H = T(), U = T(), W = p(() => P.multiple ? Array.isArray(P.modelValue) ? P.modelValue.length : P.modelValue == null ? 0 : 1 : 0), He = p(() => B.value !== Infinity), G = p(() => !He.value), K = T(!1), q = T(0), J = T(!1), Y = p(() => W.value <= 1 ? !1 : He.value ? W.value > B.value : K.value), X = p(() => !P.disabled && !P.readonly), Ue = (e) => {
393
- if (X.value) if (P.multiple) {
394
- let t = le(P.modelValue, e.value);
395
- F("update:modelValue", t);
396
- } else F("update:modelValue", null);
397
- }, We = () => {
398
- (V.value?.$el)?.querySelector(".bb-select__activator")?.focus();
399
- }, Ge = p(() => P.selectedLabelsFn ? P.selectedLabelsFn(W.value) : je("select.multipleMaxReached", W.value).value), Ke = (e) => P.multiple && Y.value ? Ge.value : e || P.placeholder || "", qe = () => {
400
- J.value = !1, q.value = 0;
401
- }, Je = () => {
402
- if (J.value || !U.value) return;
403
- let e = getComputedStyle(U.value), t = Number.parseFloat(e.marginLeft || "0");
404
- q.value = Math.max(0, -t), J.value = !0;
405
- }, Z = se(() => {
406
- if (!G.value || !U.value || !H.value || W.value <= 1) {
407
- K.value = !1;
390
+ ], Be = (e) => Object.fromEntries(ze.map((t) => [t, R.part(t, { loading: e })])), Ve = f(() => ({
391
+ title: M.label,
392
+ ...M.offCanvasProps
393
+ })), He = f(() => M["append:icon"] === void 0 ? u : M["append:icon"]), z = f(() => M.maxSelectedLabels === void 0 ? Infinity : M.maxSelectedLabels), Ue = f(() => I.value ? !0 : M.prefill ?? "interaction"), B = w(), V = w(), H = w(), U = f(() => M.multiple ? Array.isArray(M.modelValue) ? M.modelValue.length : M.modelValue == null ? 0 : 1 : 0), We = f(() => z.value !== Infinity), W = f(() => !We.value), G = w(!1), K = w(0), q = w(!1), J = f(() => U.value <= 1 ? !1 : We.value ? U.value > z.value : G.value), Y = f(() => !M.disabled && !M.readonly), X = (e) => {
394
+ if (Y.value) if (M.multiple) {
395
+ let t = ue(M.modelValue, e.value);
396
+ N("update:modelValue", t);
397
+ } else N("update:modelValue", null);
398
+ }, Ge = () => {
399
+ (B.value?.$el)?.querySelector(".bb-select__activator")?.focus();
400
+ }, Ke = f(() => M.selectedLabelsFn ? M.selectedLabelsFn(U.value) : Ne("select.multipleMaxReached", U.value).value), qe = (e) => M.multiple && J.value ? Ke.value : e || M.placeholder || "", Je = () => {
401
+ q.value = !1, K.value = 0;
402
+ }, Ye = () => {
403
+ if (q.value || !H.value) return;
404
+ let e = getComputedStyle(H.value), t = Number.parseFloat(e.marginLeft || "0");
405
+ K.value = Math.max(0, -t), q.value = !0;
406
+ }, Z = ce(() => {
407
+ if (!W.value || !H.value || !V.value || U.value <= 1) {
408
+ G.value = !1;
408
409
  return;
409
410
  }
410
- Je();
411
- let e = H.value.clientWidth + q.value;
412
- K.value = U.value.scrollWidth > e + 1;
411
+ Ye();
412
+ let e = V.value.clientWidth + K.value;
413
+ G.value = H.value.scrollWidth > e + 1;
413
414
  }, 100, {
414
415
  leading: !0,
415
416
  trailing: !0
416
- }), Q = null, Ye = () => {
417
- Q?.disconnect(), Q = null, G.value && (Q = new ResizeObserver(Z), H.value && Q.observe(H.value), x(() => {
417
+ }), Q = null, Xe = () => {
418
+ Q?.disconnect(), Q = null, W.value && (Q = new ResizeObserver(Z), V.value && Q.observe(V.value), b(() => {
418
419
  Z();
419
420
  }));
420
421
  };
421
- he(Ye), A(G, Ye, { flush: "post" }), ge(() => {
422
+ ge(Xe), k(W, Xe, { flush: "post" }), _e(() => {
422
423
  Q?.disconnect(), Z.cancel();
423
- }), A(() => [P.modelValue, B.value], () => {
424
- G.value && x(() => {
424
+ }), k(() => [M.modelValue, z.value], () => {
425
+ W.value && b(() => {
425
426
  Z();
426
427
  });
427
- }), A(() => [
428
- P.compact,
429
- P.comma,
430
- P["prepend:icon"]
428
+ }), k(() => [
429
+ M.compact,
430
+ M.comma,
431
+ M["prepend:icon"]
431
432
  ], () => {
432
- G.value && (qe(), x(() => {
433
+ W.value && (Je(), b(() => {
433
434
  Z();
434
435
  }));
435
436
  });
436
- let Xe = ce((e) => typeof e != "string", JSON.stringify), Ze = p(() => (P.multiple ? [].concat(P.modelValue ?? []) : [P.modelValue]).filter((e) => e != null).map((e) => ({
437
- disabled: P.disabled,
438
- name: P.name,
439
- required: P.required,
437
+ let Ze = le((e) => typeof e != "string", JSON.stringify), Qe = f(() => (M.multiple ? [].concat(M.modelValue ?? []) : [M.modelValue]).filter((e) => e != null).map((e) => ({
438
+ disabled: M.disabled,
439
+ name: M.name,
440
+ required: M.required,
440
441
  type: "hidden",
441
- value: Xe(e)
442
+ value: Ze(e)
442
443
  }))), $ = {
443
444
  onBlur: (e) => {
444
- I.value = !1, F("blur", e);
445
+ F.value = !1, N("blur", e);
445
446
  },
446
- onChange: (e) => F("change", e),
447
- onClick: (e) => F("click", e),
447
+ onChange: (e) => N("change", e),
448
+ onClick: (e) => N("click", e),
448
449
  onFocus: (e) => {
449
- I.value = !0, F("focus", e);
450
+ F.value = !0, N("focus", e);
450
451
  },
451
452
  onActive: () => {
452
- I.value = !0, F("active");
453
+ F.value = !0, N("active");
453
454
  },
454
455
  onShow: () => {
455
- R.value = !0, F("show");
456
+ L.value = !0, N("show");
456
457
  },
457
- onShown: () => F("shown"),
458
+ onShown: () => N("shown"),
458
459
  onHide: () => {
459
- R.value = !1, F("hide");
460
+ L.value = !1, N("hide");
460
461
  },
461
- onHidden: () => F("hidden"),
462
+ onHidden: () => N("hidden"),
462
463
  onInactive: () => {
463
- I.value = !1, F("inactive");
464
+ F.value = !1, N("inactive");
464
465
  },
465
- onInput: (e) => F("input", e),
466
- "onUpdate:modelValue": (e) => F("update:modelValue", e)
467
- }, Qe = {
466
+ onInput: (e) => N("input", e),
467
+ "onUpdate:modelValue": (e) => N("update:modelValue", e)
468
+ }, $e = {
468
469
  ...$,
469
- "onOption:add": (e) => F("option:add", e)
470
- }, $e = me(), et = () => c($e, "option:add") ? Qe : $;
471
- return (e, t) => (w(), de(re, b({
470
+ "onOption:add": (e) => N("option:add", e)
471
+ }, et = he(), tt = () => c(et, "option:add") ? $e : $;
472
+ return (e, t) => (C(), fe(re, y({
472
473
  id: e.id,
473
474
  class: "bb-select",
474
- clearable: Pe.value,
475
+ clearable: Ie.value,
475
476
  compact: e.compact,
476
477
  description: e.description,
477
478
  disabled: e.disabled,
478
- errors: k(Te),
479
+ errors: O(De),
479
480
  "has-errors": e.hasErrors,
480
- "has-value": L.value,
481
+ "has-value": I.value,
481
482
  "has-warnings": e.hasWarnings,
482
483
  "hide-label": e.hideLabel,
483
484
  hint: e.hint,
484
485
  "input-align": e.inputAlign,
485
486
  label: e.label,
486
487
  "label-align": e.labelAlign,
487
- "label-mode": Fe.value,
488
+ "label-mode": Le.value,
488
489
  "label-position": e.labelPosition,
489
490
  layout: e.layout,
490
491
  loading: e.loading,
491
- mobile: k(Me),
492
+ mobile: O(Pe),
492
493
  name: e.name,
493
- passthrough: k(z),
494
- readonly: e.readonly,
494
+ passthrough: O(R),
495
+ readonly: O(P),
495
496
  reverse: e.reverse,
496
- "show-asterisk": k(we),
497
- "show-hint": Ne.value,
497
+ "show-asterisk": O(Ee),
498
+ "show-hint": Fe.value,
498
499
  warnings: e.warnings
499
- }, k(z).forwardAttrs), _({
500
- label: j((t) => [D(e.$slots, "label", C(y(t)))]),
501
- input: j(({ id: t, hasErrors: n, hasWarnings: ee, ariaDescribedby: r }) => [v(oe, b({
500
+ }, O(R).forwardAttrs), g({
501
+ label: A((t) => [E(e.$slots, "label", S(v(t)))]),
502
+ input: A(({ id: t, hasErrors: n, hasWarnings: ee, ariaDescribedby: r }) => [_(se, y({
502
503
  id: t,
503
504
  adaptive: e.adaptive,
504
- anchor: V.value,
505
+ anchor: B.value,
505
506
  "aria-describedby": r,
506
507
  "aria-invalid": n || void 0,
507
508
  autocomplete: e.autocomplete,
@@ -524,123 +525,124 @@ var ye = ["id"], be = [
524
525
  loading: e.loading,
525
526
  "loading-text": e.loadingText,
526
527
  max: e.max,
527
- "model-value": k(Oe),
528
+ "model-value": O(Ae),
528
529
  "model-value-debounce-time": e.modelValueDebounceTime,
529
530
  multiple: e.multiple,
530
- "off-canvas-props": ze.value,
531
- prefill: Ve.value,
532
- pt: Ie(),
531
+ "off-canvas-props": Ve.value,
532
+ prefill: Ue.value,
533
+ pt: Re(),
533
534
  "query-debounce-time": e.queryDebounceTime,
534
- readonly: e.readonly,
535
+ readonly: O(P),
535
536
  selectable: e.selectable,
536
537
  stash: e.stash,
537
538
  "transition-duration": e.transitionDuration,
538
539
  width: "100%"
539
- }, et()), _({
540
- activator: j(({ props: r, shown: i, loading: a, text: o, selectedOptions: s, clear: re, query: c, focus: l, close: u, toggle: ae }) => [v(ie, {
540
+ }, tt()), g({
541
+ activator: A(({ props: r, shown: i, loading: a, text: o, selectedOptions: s, clear: re, query: c, focus: l, close: u, toggle: ae }) => [_(ie, {
541
542
  ref_key: "wrapperRef",
542
- ref: V,
543
+ ref: B,
543
544
  active: i,
544
- "append:icon": Be.value,
545
- class: S(["bb-select__field", {
545
+ "append:icon": He.value,
546
+ class: x(["bb-select__field", {
546
547
  "bb-select__field--shown": i,
547
548
  "bb-select__field--disabled": e.disabled,
548
- "bb-select__field--readonly": e.readonly
549
+ "bb-select__field--readonly": O(P)
549
550
  }]),
550
551
  clearable: e.clearable,
551
552
  compact: e.compact,
552
553
  disabled: e.disabled,
553
554
  "has-errors": n,
554
- "has-value": L.value,
555
+ "has-value": I.value,
555
556
  "has-warnings": ee,
556
557
  loading: a,
557
- passthrough: Re(a),
558
- "prepend:icon": N["prepend:icon"],
559
- readonly: e.readonly,
558
+ passthrough: Be(a),
559
+ "prepend:icon": j["prepend:icon"],
560
+ readonly: O(P),
560
561
  variant: e.variant,
561
562
  "onClick:clear": () => {
562
- re(), x(We);
563
+ re(), b(Ge);
563
564
  },
564
565
  "onContainer:click": ae
565
- }, _({
566
- "append:outer": j(() => [D(e.$slots, "append:outer", C(y({
566
+ }, g({
567
+ "append:outer": A(() => [E(e.$slots, "append:outer", S(v({
567
568
  query: c,
568
569
  close: u
569
570
  })))]),
570
- append: j(() => [D(e.$slots, "append", C(y({
571
+ append: A(() => [E(e.$slots, "append", S(v({
571
572
  query: c,
572
573
  focus: l,
573
574
  close: u
574
575
  })))]),
575
- prepend: j(() => [D(e.$slots, "prepend", C(y({
576
+ prepend: A(() => [E(e.$slots, "prepend", S(v({
576
577
  query: c,
577
578
  focus: l,
578
579
  close: u
579
580
  })))]),
580
- "prepend:outer": j(() => [D(e.$slots, "prepend:outer", C(y({
581
+ "prepend:outer": A(() => [E(e.$slots, "prepend:outer", S(v({
581
582
  query: c,
582
583
  close: u
583
584
  })))]),
584
- default: j(() => [g("span", {
585
+ default: A(() => [h("span", {
585
586
  id: `${t}__value`,
586
587
  ref_key: "valueRef",
587
- ref: H,
588
+ ref: V,
588
589
  class: "bb-select__value"
589
- }, [g("input", b({
590
+ }, [h("input", y({
590
591
  id: t,
591
592
  "aria-labelledby": `${t}__label ${t}__selection`,
592
- "aria-required": ke.value,
593
+ "aria-readonly": O(P) || void 0,
594
+ "aria-required": je.value,
593
595
  autofocus: e.autofocus,
594
596
  class: "bb-select__activator",
595
597
  disabled: e.disabled,
596
598
  type: "button"
597
- }, b(r, k(z).part("activator", { loading: a }))), null, 16, be), e.multiple ? (w(), h(f, { key: 0 }, [
598
- G.value || !Y.value ? (w(), h("span", {
599
+ }, y(r, O(R).part("activator", { loading: a }))), null, 16, xe), e.multiple ? (C(), m(d, { key: 0 }, [
600
+ W.value || !J.value ? (C(), m("span", {
599
601
  key: 0,
600
602
  ref_key: "chipsContainerRef",
601
- ref: U,
602
- class: S(["bb-select__chips-row", {
603
- "bb-select__chips-row--hidden": Y.value,
603
+ ref: H,
604
+ class: x(["bb-select__chips-row", {
605
+ "bb-select__chips-row--hidden": J.value,
604
606
  "bb-select__chips-row--chips": !e.comma && !!s.length
605
607
  }])
606
- }, [e.comma ? (w(!0), h(f, { key: 0 }, E(s, (e) => (w(), h("span", b({
607
- key: k(te)(e.value),
608
+ }, [e.comma ? (C(!0), m(d, { key: 0 }, T(s, (e) => (C(), m("span", y({
609
+ key: O(te)(e.value),
608
610
  class: "bb-select__comma",
609
611
  ref_for: !0
610
- }, k(z).part("comma", {}, e.item)), O(e.text), 17))), 128)) : (w(!0), h(f, { key: 1 }, E(s, (t) => D(e.$slots, "chip", {
611
- key: k(te)(t.value),
612
- deselect: () => Ue(t),
613
- disabled: !X.value,
612
+ }, O(R).part("comma", {}, e.item)), D(e.text), 17))), 128)) : (C(!0), m(d, { key: 1 }, T(s, (t) => E(e.$slots, "chip", {
613
+ key: O(te)(t.value),
614
+ deselect: () => X(t),
615
+ disabled: !Y.value,
614
616
  item: t.item,
615
617
  text: t.text,
616
618
  value: t.value
617
- }, () => [v(ne, b({
619
+ }, () => [_(ne, y({
618
620
  class: "bb-select__badge",
619
- clearable: X.value,
621
+ clearable: Y.value,
620
622
  size: "lg",
621
623
  variant: "secondary",
622
624
  ref_for: !0
623
- }, k(z).part("badge", {}, t.item), { "onClick:clear": ve((e) => Ue(t), ["stop"]) }), {
624
- default: j(() => [fe(O(t.text), 1)]),
625
+ }, O(R).part("badge", {}, t.item), { "onClick:clear": ye((e) => X(t), ["stop"]) }), {
626
+ default: A(() => [pe(D(t.text), 1)]),
625
627
  _: 2
626
- }, 1040, ["clearable", "onClick:clear"])])), 128))], 2)) : m("", !0),
627
- Y.value ? (w(), h("span", xe, O(Ge.value), 1)) : m("", !0),
628
- !s.length && e.placeholder ? (w(), h("span", Se, O(e.placeholder), 1)) : m("", !0)
629
- ], 64)) : (w(), h("span", {
628
+ }, 1040, ["clearable", "onClick:clear"])])), 128))], 2)) : p("", !0),
629
+ J.value ? (C(), m("span", Se, D(Ke.value), 1)) : p("", !0),
630
+ !s.length && e.placeholder ? (C(), m("span", Ce, D(e.placeholder), 1)) : p("", !0)
631
+ ], 64)) : (C(), m("span", {
630
632
  key: 1,
631
- class: S(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
632
- }, O(o || e.placeholder), 3))], 8, ye), g("span", {
633
+ class: x(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
634
+ }, D(o || e.placeholder), 3))], 8, be), h("span", {
633
635
  id: `${t}__selection`,
634
636
  hidden: ""
635
- }, O(Ke(o)), 9, Ce)]),
637
+ }, D(qe(o)), 9, we)]),
636
638
  _: 2
637
639
  }, [e.$slots.prefix ? {
638
640
  name: "prefix",
639
- fn: j(() => [D(e.$slots, "prefix")]),
641
+ fn: A(() => [E(e.$slots, "prefix")]),
640
642
  key: "0"
641
643
  } : void 0, e.$slots.suffix ? {
642
644
  name: "suffix",
643
- fn: j(() => [D(e.$slots, "suffix")]),
645
+ fn: A(() => [E(e.$slots, "suffix")]),
644
646
  key: "1"
645
647
  } : void 0]), 1032, [
646
648
  "active",
@@ -659,38 +661,38 @@ var ye = ["id"], be = [
659
661
  "variant",
660
662
  "onClick:clear",
661
663
  "onContainer:click"
662
- ]), (w(!0), h(f, null, E(Ze.value, (e) => (w(), h("input", b({
664
+ ]), (C(!0), m(d, null, T(Qe.value, (e) => (C(), m("input", y({
663
665
  key: e.value,
664
666
  ref_for: !0
665
- }, b(e, k(z).controlAttrs)), null, 16))), 128))]),
666
- loading: j((t) => [D(e.$slots, "loading", C(y(t)))]),
667
- empty: j((t) => [D(e.$slots, "empty", C(y(t)))]),
668
- group: j((t) => [D(e.$slots, "group", C(y(t)))]),
667
+ }, y(e, O(R).controlAttrs)), null, 16))), 128))]),
668
+ loading: A((t) => [E(e.$slots, "loading", S(v(t)))]),
669
+ empty: A((t) => [E(e.$slots, "empty", S(v(t)))]),
670
+ group: A((t) => [E(e.$slots, "group", S(v(t)))]),
669
671
  _: 2
670
672
  }, [
671
673
  e.$slots.header ? {
672
674
  name: "header",
673
- fn: j((t) => [D(e.$slots, "header", C(y(t)))]),
675
+ fn: A((t) => [E(e.$slots, "header", S(v(t)))]),
674
676
  key: "0"
675
677
  } : void 0,
676
678
  e.$slots.footer ? {
677
679
  name: "footer",
678
- fn: j((t) => [D(e.$slots, "footer", C(y(t)))]),
680
+ fn: A((t) => [E(e.$slots, "footer", S(v(t)))]),
679
681
  key: "1"
680
682
  } : void 0,
681
683
  e.$slots.option ? {
682
684
  name: "option",
683
- fn: j((t) => [D(e.$slots, "option", b({ hasErrors: n }, t))]),
685
+ fn: A((t) => [E(e.$slots, "option", y({ hasErrors: n }, t))]),
684
686
  key: "2"
685
687
  } : void 0
686
688
  ]), 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("."))]),
687
689
  _: 2
688
690
  }, [e.$slots.description ? {
689
691
  name: "description",
690
- fn: j((t) => [D(e.$slots, "description", C(y(t)))]),
692
+ fn: A((t) => [E(e.$slots, "description", S(v(t)))]),
691
693
  key: "0"
692
694
  } : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.mobile.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
693
695
  }
694
696
  });
695
697
  //#endregion
696
- export { M as default };
698
+ export { Te as default };
@@ -303,7 +303,9 @@ export type BbSelectProps<T> = {
303
303
  * Defines a path that returns a property of the object to use as text or a function
304
304
  * that returns a string.
305
305
  *
306
- * @defaultValue `JSON.stringify(item)`
306
+ * Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
307
+ *
308
+ * @defaultValue own `label`, else `text`, else `JSON.stringify(item)`
307
309
  */
308
310
  itemText?: ItemAccessor<T, string>;
309
311
  /**
@@ -331,7 +333,9 @@ export type BbSelectProps<T> = {
331
333
  * Defines a path that returns a property of the object to use as value or a function
332
334
  * that returns any value.
333
335
  *
334
- * @defaultValue the whole item
336
+ * Unset: own `value`, even `null`.
337
+ *
338
+ * @defaultValue own `value`, else the whole item
335
339
  */
336
340
  itemValue?: ItemAccessor<T>;
337
341
  /**
@@ -407,10 +407,11 @@ var pt = {
407
407
  itemText: T.itemText,
408
408
  itemProps: y(T, "itemProps"),
409
409
  itemValue: T.itemValue,
410
+ optionDefaults: !0,
410
411
  max: y(T, "max"),
411
412
  selectable: y(T, "selectable"),
412
413
  selectedIndexedByHash: qn
413
- }), { getItemValue: Yn } = Ne();
414
+ }), { getOptionValue: Yn } = Ne();
414
415
  x(qn, (e) => {
415
416
  !T.stash || !Pn.value.length || In((t) => e[o(Yn(t, T.itemValue))] !== void 0);
416
417
  });
@@ -276,7 +276,9 @@ export type BbSelectPopoverProps<Item> = {
276
276
  /**
277
277
  * Path to item property for display text or function to extract it.
278
278
  *
279
- * @defaultValue `JSON.stringify(item)`
279
+ * Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
280
+ *
281
+ * @defaultValue own `label`, else `text`, else `JSON.stringify(item)`
280
282
  */
281
283
  itemText?: ItemAccessor<Item, string>;
282
284
  /**
@@ -303,7 +305,9 @@ export type BbSelectPopoverProps<Item> = {
303
305
  /**
304
306
  * Path to item property for value or function to extract it.
305
307
  *
306
- * @defaultValue the whole item
308
+ * Unset: own `value`, even `null`.
309
+ *
310
+ * @defaultValue own `value`, else the whole item
307
311
  */
308
312
  itemValue?: ItemAccessor<Item>;
309
313
  /**