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
@@ -1,14 +1,14 @@
1
1
  import { formControlPtActive as e, pickActive as t, usePassthrough as n } from "../../composables/usePassthrough.js";
2
2
  import { isEqual as r } from "../../utilities/functions/isEqual.js";
3
3
  import i from "../CommonField/CommonField.vue.js";
4
- import { hiddenSubmitAttrs as ee, isMembershipModel as a, nextToggleModel as o, preventReadonlyClick as s, preventReadonlyKeydown as c, revertReadonlyChange as l, syncCheckedToData as u, syncIndeterminate as d, toggleInputAttrs as f, toggleInputValue as te, toggleModelChecked as p } from "../../utilities/functions/toggleInput.js";
4
+ import { hiddenSubmitAttrs as a, isMembershipModel as o, nextToggleModel as s, preventReadonlyClick as c, preventReadonlyKeydown as l, revertReadonlyChange as u, syncCheckedToData as ee, syncIndeterminate as d, toggleInputAttrs as f, toggleInputValue as te, toggleModelChecked as p } from "../../utilities/functions/toggleInput.js";
5
5
  import { usePaintedChecked as m, useToggleFocus as ne } from "../../composables/useToggleInput.js";
6
6
  import { useFormBinding as re } from "../../composables/useFormBinding.js";
7
- import h from "../BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js";
8
- import { BB_SWITCH_PT as g } from "./types.js";
9
- import { computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createVNode as C, defineComponent as w, guardReactiveProps as T, mergeProps as E, normalizeProps as D, openBlock as O, ref as k, renderSlot as A, unref as j, useAttrs as M, withCtx as N } from "vue";
7
+ import ie from "../BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js";
8
+ import { BB_SWITCH_PT as h } from "./types.js";
9
+ import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createVNode as S, defineComponent as C, guardReactiveProps as w, mergeProps as T, normalizeProps as E, openBlock as D, ref as O, renderSlot as k, unref as A, useAttrs as j, withCtx as M } from "vue";
10
10
  //#region src/components/BbSwitch/BbSwitch.vue?vue&type=script&setup=true&lang.ts
11
- var P = /*@__PURE__*/ w({
11
+ var N = /*@__PURE__*/ C({
12
12
  inheritAttrs: !1,
13
13
  __name: "BbSwitch",
14
14
  props: {
@@ -114,26 +114,26 @@ var P = /*@__PURE__*/ w({
114
114
  "mouseup",
115
115
  "update:modelValue"
116
116
  ],
117
- setup(w, { emit: P }) {
118
- let F = w, { props: I, emit: L, showAsterisk: R, errors: z, ariaRequired: B } = re(F, P, {
117
+ setup(C, { emit: N }) {
118
+ let P = C, { props: F, emit: I, showAsterisk: L, errors: R, ariaRequired: z, readonly: B } = re(P, N, {
119
119
  componentName: "BbSwitch",
120
- identifierFallback: () => F.label,
120
+ identifierFallback: () => P.label,
121
121
  leaveOn: "blur",
122
122
  commits: !0
123
- }), V = _(() => I.trueValue === void 0 || I.trueValue), H = _(() => I.falseValue !== void 0 && I.falseValue), U = k(null), { focused: W, focusVisible: G, onFocus: K, onBlur: q } = ne(), J = _(() => I.persistentHint || W.value), Y = _(() => !I.reverse), X = _(() => ({
123
+ }), V = g(() => F.trueValue === void 0 || F.trueValue), H = g(() => F.falseValue !== void 0 && F.falseValue), U = O(null), { focused: W, focusVisible: G, onFocus: K, onBlur: q } = ne(), J = g(() => F.persistentHint || W.value), Y = g(() => !F.reverse), X = g(() => ({
124
124
  trueValue: V.value,
125
125
  falseValue: H.value
126
- })), ie = _(() => a(I.modelValue, X.value)), Z = _(() => I.checked !== void 0 || I.modelValue !== void 0), Q = m(() => I.checked === void 0 ? p(I.modelValue, X.value, r) : I.checked, {
127
- indeterminate: () => I.indeterminate,
126
+ })), ae = g(() => o(F.modelValue, X.value)), Z = g(() => F.checked !== void 0 || F.modelValue !== void 0), Q = m(() => F.checked === void 0 ? p(F.modelValue, X.value, r) : F.checked, {
127
+ indeterminate: () => F.indeterminate,
128
128
  input: U
129
129
  }), $ = n({
130
130
  component: "BbSwitch",
131
- attrs: M(),
132
- props: I,
133
- parts: g.parts,
134
- states: g.states,
131
+ attrs: j(),
132
+ props: F,
133
+ parts: h.parts,
134
+ states: h.states,
135
135
  active: {
136
- ...t(e(I), [
136
+ ...t(e(F), [
137
137
  "errors",
138
138
  "warnings",
139
139
  "disabled",
@@ -142,72 +142,72 @@ var P = /*@__PURE__*/ w({
142
142
  checked: () => Q.value,
143
143
  focused: () => W.value,
144
144
  focusVisible: () => G.value,
145
- indeterminate: () => !!I.indeterminate
145
+ indeterminate: () => !!F.indeterminate
146
146
  }
147
- }), ae = {
147
+ }), oe = {
148
148
  onBlur: (e) => {
149
- q(), L("blur", e);
149
+ q(), I("blur", e);
150
150
  },
151
151
  onChange: (e) => {
152
152
  if (e.target instanceof HTMLInputElement) {
153
- if (l(e.target, I.readonly, Q.value)) {
154
- d(U.value, I.indeterminate);
153
+ if (u(e.target, F.readonly, Q.value)) {
154
+ d(U.value, F.indeterminate);
155
155
  return;
156
156
  }
157
- Z.value || (Q.value = e.target.checked), d(U.value, I.indeterminate), L("change", e), L("update:modelValue", o(I.modelValue, e.target.checked, X.value, r)), Z.value && u(() => U.value, () => Q.value, () => I.indeterminate);
157
+ Z.value || (Q.value = e.target.checked), d(U.value, F.indeterminate), I("change", e), I("update:modelValue", s(F.modelValue, e.target.checked, X.value, r)), Z.value && ee(() => U.value, () => Q.value, () => F.indeterminate);
158
158
  }
159
159
  },
160
160
  onFocus: (e) => {
161
- K(e), L("focus", e);
161
+ K(e), I("focus", e);
162
162
  },
163
163
  onClick: (e) => {
164
- s(e, I.readonly), L("click", e);
164
+ c(e, F.readonly), I("click", e);
165
165
  },
166
- onInput: (e) => L("input", e),
166
+ onInput: (e) => I("input", e),
167
167
  onKeydown: (e) => {
168
- c(e, I.readonly), L("keydown", e);
168
+ l(e, F.readonly), I("keydown", e);
169
169
  },
170
- onMousedown: (e) => L("mousedown", e),
171
- onMouseup: (e) => L("mouseup", e)
172
- }, oe = (e, t, n) => ({
170
+ onMousedown: (e) => I("mousedown", e),
171
+ onMouseup: (e) => I("mouseup", e)
172
+ }, se = (e, t, n) => ({
173
173
  ...f("switch", {
174
174
  ariaDescribedby: t,
175
175
  ariaLabelledby: n,
176
- autofocus: I.autofocus,
176
+ autofocus: F.autofocus,
177
177
  checked: Q.value,
178
- disabled: I.disabled,
178
+ disabled: F.disabled,
179
179
  id: e,
180
- indeterminate: I.indeterminate,
181
- name: I.name,
182
- readonly: I.readonly,
183
- required: I.required,
184
- ariaRequired: B.value,
180
+ indeterminate: F.indeterminate,
181
+ name: F.name,
182
+ readonly: F.readonly,
183
+ required: F.required,
184
+ ariaRequired: z.value,
185
185
  value: V.value
186
186
  }),
187
- ...ae
188
- }), se = (e, t, n) => ({
187
+ ...oe
188
+ }), ce = (e, t, n) => ({
189
189
  checked: Q.value,
190
- disabled: !!I.disabled,
190
+ disabled: !!F.disabled,
191
191
  falseValue: H.value,
192
192
  focused: W.value,
193
193
  focusVisible: G.value,
194
194
  hasErrors: !!t,
195
195
  hasWarnings: !!n && !t,
196
196
  id: e,
197
- indeterminate: I.indeterminate,
198
- name: I.name,
197
+ indeterminate: F.indeterminate,
198
+ name: F.name,
199
199
  parsedValue: te("switch", V.value),
200
- readonly: !!I.readonly,
200
+ readonly: !!F.readonly,
201
201
  trueValue: V.value,
202
202
  value: Q.value ? V.value : H.value
203
203
  });
204
- return (e, t) => (O(), v(i, E({
204
+ return (e, t) => (D(), _(i, T({
205
205
  id: e.id,
206
206
  class: "bb-switch",
207
207
  compact: e.compact,
208
208
  description: e.description,
209
209
  disabled: e.disabled,
210
- errors: j(z),
210
+ errors: A(R),
211
211
  "has-errors": e.hasErrors,
212
212
  "has-warnings": e.hasWarnings,
213
213
  "hide-label": e.hideLabel,
@@ -220,35 +220,35 @@ var P = /*@__PURE__*/ w({
220
220
  "label-tag": "span",
221
221
  layout: e.layout,
222
222
  name: e.name,
223
- passthrough: j($),
224
- readonly: e.readonly,
223
+ passthrough: A($),
224
+ readonly: A(B),
225
225
  reverse: Y.value,
226
- "show-asterisk": j(R),
226
+ "show-asterisk": A(L),
227
227
  "show-hint": J.value,
228
228
  tag: "label",
229
229
  warnings: e.warnings
230
- }, j($).forwardAttrs), S({
231
- label: N((t) => [A(e.$slots, "label", D(T(t)))]),
232
- input: N(({ id: t, hasErrors: n, hasWarnings: r, ariaDescribedby: i, ariaLabelledby: a }) => [
233
- !j(Q) && e.submitWhenFalse && !ie.value ? (O(), b("input", D(E({ key: 0 }, j(ee)({
230
+ }, A($).forwardAttrs), x({
231
+ label: M((t) => [k(e.$slots, "label", E(w(t)))]),
232
+ input: M(({ id: t, hasErrors: n, hasWarnings: r, ariaDescribedby: i, ariaLabelledby: o }) => [
233
+ !A(Q) && e.submitWhenFalse && !ae.value ? (D(), y("input", E(T({ key: 0 }, A(a)({
234
234
  disabled: e.disabled,
235
235
  falseValue: H.value,
236
236
  name: e.name
237
- }))), null, 16)) : y("", !0),
238
- x("input", E({
237
+ }))), null, 16)) : v("", !0),
238
+ b("input", T({
239
239
  ref_key: "switchInput",
240
240
  ref: U
241
- }, oe(t, i, a)), null, 16),
242
- A(e.$slots, "icon", E(se(t, n, r), { text: e.label }), () => [C(h, E({
243
- checked: j(Q),
241
+ }, se(t, i, o)), null, 16),
242
+ k(e.$slots, "icon", T(ce(t, n, r), { text: e.label }), () => [S(ie, T({
243
+ checked: A(Q),
244
244
  disabled: !!e.disabled,
245
- "focus-visible": j(G),
246
- focused: j(W),
245
+ "focus-visible": A(G),
246
+ focused: A(W),
247
247
  "has-errors": !!n,
248
248
  "has-warnings": !!r && !n,
249
249
  indeterminate: !!e.indeterminate,
250
- readonly: !!e.readonly
251
- }, j($).icon), null, 16, [
250
+ readonly: !!A(B)
251
+ }, A($).icon), null, 16, [
252
252
  "checked",
253
253
  "disabled",
254
254
  "focus-visible",
@@ -262,7 +262,7 @@ var P = /*@__PURE__*/ w({
262
262
  _: 2
263
263
  }, [e.$slots.description ? {
264
264
  name: "description",
265
- fn: N((t) => [A(e.$slots, "description", D(T(t)))]),
265
+ fn: M((t) => [k(e.$slots, "description", E(w(t)))]),
266
266
  key: "0"
267
267
  } : void 0]), 1040, [
268
268
  "id",
@@ -291,4 +291,4 @@ var P = /*@__PURE__*/ w({
291
291
  }
292
292
  });
293
293
  //#endregion
294
- export { P as default };
294
+ export { N as default };
@@ -8,22 +8,22 @@ import { useItemsGetter as l } from "../../composables/useItemsGetter.js";
8
8
  import { withItemDescribedby as ee } from "../../utilities/functions/itemProps.js";
9
9
  import { useHashedWatcher as u } from "../../composables/useHashedWatcher.js";
10
10
  import te from "../CommonField/CommonField.vue.js";
11
- import { preventReadonlyClick as d, preventReadonlyKeydown as f, revertReadonlyChange as p, syncCheckedToData as m, syncIndeterminate as h, toggleInputAttrs as ne, toggleInputValue as re } from "../../utilities/functions/toggleInput.js";
12
- import { useToggleListFocus as ie } from "../../composables/useToggleInput.js";
13
- import { useFormBinding as ae } from "../../composables/useFormBinding.js";
14
- import oe from "../OptionsContainer/OptionsContainer.vue.js";
15
- import { useIndexById as g } from "../../composables/useIndexById.js";
16
- import { useBaseOptions as _ } from "../../composables/useBaseOptions.js";
17
- import { useCoherence as se } from "../../composables/useCoherence.js";
18
- import { usePrefill as ce } from "../../composables/usePrefill.js";
19
- import { useActiveInactiveState as le } from "../../composables/useActiveInactiveState.js";
20
- import { useOnFalsy as ue } from "../../composables/useOnFalsy.js";
21
- import { useOnTruthy as de } from "../../composables/useOnTruthy.js";
22
- import v from "../BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js";
23
- import { BB_SWITCH_GROUP_PT as y } from "./types.js";
24
- import { computed as b, createBlock as fe, createElementVNode as pe, createSlots as me, createVNode as x, defineComponent as S, guardReactiveProps as C, mergeProps as w, normalizeProps as T, onBeforeMount as he, openBlock as ge, ref as _e, renderSlot as E, shallowRef as ve, toRef as D, unref as O, useAttrs as k, withCtx as A } from "vue";
11
+ import { preventReadonlyClick as d, preventReadonlyKeydown as f, revertReadonlyChange as p, syncCheckedToData as ne, syncIndeterminate as m, toggleInputAttrs as re, toggleInputValue as ie } from "../../utilities/functions/toggleInput.js";
12
+ import { useToggleListFocus as ae } from "../../composables/useToggleInput.js";
13
+ import { useFormBinding as oe } from "../../composables/useFormBinding.js";
14
+ import se from "../OptionsContainer/OptionsContainer.vue.js";
15
+ import { useIndexById as h } from "../../composables/useIndexById.js";
16
+ import { useBaseOptions as ce } from "../../composables/useBaseOptions.js";
17
+ import { useCoherence as le } from "../../composables/useCoherence.js";
18
+ import { usePrefill as ue } from "../../composables/usePrefill.js";
19
+ import { useActiveInactiveState as de } from "../../composables/useActiveInactiveState.js";
20
+ import { useOnFalsy as g } from "../../composables/useOnFalsy.js";
21
+ import { useOnTruthy as fe } from "../../composables/useOnTruthy.js";
22
+ import _ from "../BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js";
23
+ import { BB_SWITCH_GROUP_PT as v } from "./types.js";
24
+ import { computed as y, createBlock as pe, createElementVNode as me, createSlots as he, createVNode as b, defineComponent as x, guardReactiveProps as S, mergeProps as C, normalizeProps as w, onBeforeMount as ge, openBlock as _e, ref as ve, renderSlot as T, shallowRef as ye, toRef as E, unref as D, useAttrs as be, withCtx as O } from "vue";
25
25
  //#region src/components/BbSwitchGroup/BbSwitchGroup.vue?vue&type=script&setup=true&lang.ts
26
- var j = /*@__PURE__*/ S({
26
+ var k = /*@__PURE__*/ x({
27
27
  inheritAttrs: !1,
28
28
  __name: "BbSwitchGroup",
29
29
  props: {
@@ -177,137 +177,138 @@ var j = /*@__PURE__*/ S({
177
177
  "mouseup",
178
178
  "update:modelValue"
179
179
  ],
180
- setup(S, { emit: j }) {
181
- let M = S, { props: N, emit: P, showAsterisk: F, errors: ye } = ae(M, j, {
180
+ setup(x, { emit: k }) {
181
+ let A = x, { props: j, emit: M, showAsterisk: N, errors: xe, readonly: P } = oe(A, k, {
182
182
  componentName: "BbSwitchGroup",
183
- identifierFallback: () => M.legend,
183
+ identifierFallback: () => A.legend,
184
184
  emptyValue: () => [],
185
185
  leaveOn: "inactive"
186
186
  });
187
187
  process.env.NODE_ENV !== "production" && c("BbSwitchGroup", s("BbSwitchGroup"));
188
- let be = e();
189
- he(() => {
190
- N.multiple && !Array.isArray(N.modelValue) && be.throw("BbSwitchGroup: multiple is set to \"true\" but modelValue is not an array.");
188
+ let Se = e();
189
+ ge(() => {
190
+ j.multiple && !Array.isArray(j.modelValue) && Se.throw("BbSwitchGroup: multiple is set to \"true\" but modelValue is not an array.");
191
191
  });
192
- let xe = [], I = b(() => N.items === void 0 ? xe : N.items), L = ve(null), Se = (e) => {
193
- L.value = e?.$el ?? null;
194
- }, { active: R } = le(L), z = _e(!1), Ce = b(() => N.persistentHint || z.value);
195
- ue(R, () => {
196
- z.value = !1, P("inactive");
197
- }), de(R, () => {
198
- z.value = !0, P("active");
192
+ let Ce = [], F = y(() => j.items === void 0 ? Ce : j.items), I = ye(null), we = (e) => {
193
+ I.value = e?.$el ?? null;
194
+ }, { active: L } = de(I), R = ve(!1), Te = y(() => j.persistentHint || R.value);
195
+ g(L, () => {
196
+ R.value = !1, M("inactive");
197
+ }), fe(L, () => {
198
+ R.value = !0, M("active");
199
199
  });
200
- let { getter: B, clientReproducible: we, hydratedFromSsr: Te, items: Ee, loading: V, error: De, ssrMarker: Oe } = l({
201
- items: I,
200
+ let { getter: z, clientReproducible: Ee, hydratedFromSsr: De, items: Oe, loading: B, error: ke, ssrMarker: Ae } = l({
201
+ items: F,
202
202
  marker: !0
203
- }), H = () => {
204
- N.enforceCoherence && !q.value && P("update:modelValue", Ne.value);
205
- }, { hasPrefilled: U, whenPrefilled: ke } = ce({
206
- alreadyLoaded: Te,
207
- clientReproducible: we,
203
+ }), V = () => {
204
+ j.enforceCoherence && !K.value && M("update:modelValue", Fe.value);
205
+ }, { hasPrefilled: H, whenPrefilled: je } = ue({
206
+ alreadyLoaded: De,
207
+ clientReproducible: Ee,
208
208
  trigger: !0,
209
- currentValue: N.modelValue,
210
- multiple: N.multiple,
209
+ currentValue: j.modelValue,
210
+ multiple: j.multiple,
211
211
  fn: async () => {
212
- await B(void 0, "initial", N.modelValue) === "applied" && H();
212
+ await z(void 0, "initial", j.modelValue) === "applied" && V();
213
213
  }
214
- }), W = b(() => N.multiple ? [].concat(N.modelValue) : [N.modelValue]), { data: G } = g({ items: W }), { options: K } = _({
215
- disabled: D(N, "disabled"),
216
- items: Ee,
217
- itemText: N.itemText,
218
- itemProps: D(N, "itemProps"),
219
- itemValue: N.itemValue,
220
- max: D(N, "max"),
221
- selectable: D(N, "selectable"),
222
- selectedIndexedByHash: G
223
- }), Ae = (e) => {
224
- if (N.multiple) {
225
- P("update:modelValue", [...W.value, e.value]);
214
+ }), U = y(() => j.multiple ? [].concat(j.modelValue) : [j.modelValue]), { data: W } = h({ items: U }), { options: G } = ce({
215
+ disabled: E(j, "disabled"),
216
+ items: Oe,
217
+ itemText: j.itemText,
218
+ itemProps: E(j, "itemProps"),
219
+ itemValue: j.itemValue,
220
+ optionDefaults: !0,
221
+ max: E(j, "max"),
222
+ selectable: E(j, "selectable"),
223
+ selectedIndexedByHash: W
224
+ }), Me = (e) => {
225
+ if (j.multiple) {
226
+ M("update:modelValue", [...U.value, e.value]);
226
227
  return;
227
228
  }
228
- P("update:modelValue", e.value);
229
- }, je = (e) => {
230
- if (!N.multiple) {
231
- P("update:modelValue", null);
229
+ M("update:modelValue", e.value);
230
+ }, Ne = (e) => {
231
+ if (!j.multiple) {
232
+ M("update:modelValue", null);
232
233
  return;
233
234
  }
234
- let t = { ...G.value };
235
- delete t[e.valueHash], P("update:modelValue", Object.values(t));
236
- }, { data: Me } = g({
237
- items: K,
235
+ let t = { ...W.value };
236
+ delete t[e.valueHash], M("update:modelValue", Object.values(t));
237
+ }, { data: Pe } = h({
238
+ items: G,
238
239
  key: "valueHash"
239
- }), { coherent: q, coherentValue: Ne } = se({
240
- modelValue: D(N, "modelValue"),
241
- multiple: N.multiple,
242
- iteratee: (e) => !!Me.value[o(e)]
243
- }), J = 0;
244
- u(() => N.modelValue, async () => {
245
- J++, q.value || await B(void 0, "model", N.modelValue) === "applied" && H(), J--;
246
- }, { debounce: N.modelValueDebounceTime === void 0 ? 0 : N.modelValueDebounceTime }), u(() => [N.dependencies, I.value], async () => {
247
- U.value || await ke(), U.value && (J++, await B(void 0, "dependencies", N.modelValue) === "applied" && J === 1 && H(), J--);
248
- }, { debounce: N.depsDebounceTime === void 0 ? 0 : N.depsDebounceTime });
249
- let Y = b(() => t(N.modelValue)), X = a({
240
+ }), { coherent: K, coherentValue: Fe } = le({
241
+ modelValue: E(j, "modelValue"),
242
+ multiple: j.multiple,
243
+ iteratee: (e) => !!Pe.value[o(e)]
244
+ }), q = 0;
245
+ u(() => j.modelValue, async () => {
246
+ q++, K.value || await z(void 0, "model", j.modelValue) === "applied" && V(), q--;
247
+ }, { debounce: j.modelValueDebounceTime === void 0 ? 0 : j.modelValueDebounceTime }), u(() => [j.dependencies, F.value], async () => {
248
+ H.value || await je(), H.value && (q++, await z(void 0, "dependencies", j.modelValue) === "applied" && q === 1 && V(), q--);
249
+ }, { debounce: j.depsDebounceTime === void 0 ? 0 : j.depsDebounceTime });
250
+ let J = y(() => t(j.modelValue)), Y = a({
250
251
  component: "BbSwitchGroup",
251
- attrs: k(),
252
- props: N,
253
- parts: y.parts,
254
- states: y.states,
252
+ attrs: be(),
253
+ props: j,
254
+ parts: v.parts,
255
+ states: v.states,
255
256
  active: {
256
- ...i(r(N, () => Y.value), [
257
+ ...i(r(j, () => J.value), [
257
258
  "errors",
258
259
  "warnings",
259
260
  "disabled",
260
261
  "readonly",
261
262
  "hasValue"
262
263
  ]),
263
- loading: () => V.value
264
+ loading: () => B.value
264
265
  }
265
- }), Pe = n(X, { label: "legend" }), Z = ie(), Q = (e) => e.value === void 0 || e.value, $ = (e, t) => {
266
+ }), X = n(Y, { label: "legend" }), Z = ae(), Q = (e) => e.value === void 0 || e.value, $ = (e, t) => {
266
267
  if (t) return [t, e.valueHash].filter(Boolean).join("-");
267
- }, Fe = (e, t) => {
268
- P("change", e), t.selected ? je(t) : Ae(t);
269
- }, Ie = (e) => ({
268
+ }, Ie = (e, t) => {
269
+ M("change", e), t.selected ? Ne(t) : Me(t);
270
+ }, Le = (e) => ({
270
271
  onBlur: (t) => {
271
- Z.onBlur(e.valueHash), P("blur", t);
272
+ Z.onBlur(e.valueHash), M("blur", t);
272
273
  },
273
274
  onChange: (t) => {
274
275
  if (!(t.target instanceof HTMLInputElement)) return;
275
- if (p(t.target, N.readonly, !!e.selected)) {
276
- h(t.target, !1);
276
+ if (p(t.target, j.readonly, !!e.selected)) {
277
+ m(t.target, !1);
277
278
  return;
278
279
  }
279
- h(t.target, !1), Fe(t, e);
280
+ m(t.target, !1), Ie(t, e);
280
281
  let n = t.target;
281
- m(() => n, () => !!K.value.find((t) => t.valueHash === e.valueHash)?.selected);
282
+ ne(() => n, () => !!G.value.find((t) => t.valueHash === e.valueHash)?.selected);
282
283
  },
283
284
  onFocus: (t) => {
284
- Z.onFocus(e.valueHash, t), z.value = !0, P("focus", t);
285
+ Z.onFocus(e.valueHash, t), R.value = !0, M("focus", t);
285
286
  },
286
287
  onClick: (e) => {
287
- d(e, N.readonly), P("click", e);
288
+ d(e, j.readonly), M("click", e);
288
289
  },
289
- onInput: (e) => P("input", e),
290
+ onInput: (e) => M("input", e),
290
291
  onKeydown: (e) => {
291
- f(e, N.readonly), P("keydown", e);
292
+ f(e, j.readonly), M("keydown", e);
292
293
  },
293
- onMousedown: (e) => P("mousedown", e),
294
- onMouseup: (e) => P("mouseup", e)
295
- }), Le = (e, t, n, r, i, a) => ({
296
- ...ne("switch", {
294
+ onMousedown: (e) => M("mousedown", e),
295
+ onMouseup: (e) => M("mouseup", e)
296
+ }), Re = (e, t, n, r, i, a) => ({
297
+ ...re("switch", {
297
298
  ariaDescribedby: ee(r, a),
298
299
  ariaLabelledby: i,
299
- autofocus: N.autofocus && !t,
300
+ autofocus: j.autofocus && !t,
300
301
  checked: !!e.selected,
301
302
  disabled: e.disabled,
302
303
  id: $(e, n),
303
304
  indeterminate: !1,
304
- name: N.name,
305
- readonly: N.readonly,
305
+ name: j.name,
306
+ readonly: j.readonly,
306
307
  required: !1,
307
308
  value: Q(e)
308
309
  }),
309
- ...Ie(e)
310
- }), Re = (e, t, n, r) => {
310
+ ...Le(e)
311
+ }), ze = (e, t, n, r) => {
311
312
  let i = !!e.selected;
312
313
  return {
313
314
  checked: i,
@@ -319,22 +320,22 @@ var j = /*@__PURE__*/ S({
319
320
  hasWarnings: !!r && !n,
320
321
  id: $(e, t),
321
322
  indeterminate: !1,
322
- name: N.name,
323
- parsedValue: re("switch", Q(e)),
324
- readonly: !!N.readonly,
323
+ name: j.name,
324
+ parsedValue: ie("switch", Q(e)),
325
+ readonly: !!j.readonly,
325
326
  trueValue: Q(e),
326
327
  value: i ? Q(e) : !1
327
328
  };
328
329
  };
329
- return (e, t) => (ge(), fe(te, w({
330
+ return (e, t) => (_e(), pe(te, C({
330
331
  id: e.id,
331
332
  class: "bb-switch-group",
332
333
  compact: e.compact,
333
334
  description: e.description,
334
335
  disabled: e.disabled,
335
- errors: O(ye),
336
+ errors: D(xe),
336
337
  "has-errors": e.hasErrors,
337
- "has-value": Y.value,
338
+ "has-value": J.value,
338
339
  "has-warnings": e.hasWarnings,
339
340
  "hide-label": e.hideLegend,
340
341
  hint: e.hint,
@@ -346,23 +347,23 @@ var j = /*@__PURE__*/ S({
346
347
  "label-position": e.legendPosition,
347
348
  "label-tag": "legend",
348
349
  layout: e.layout,
349
- loading: O(V),
350
+ loading: D(B),
350
351
  name: e.name,
351
- passthrough: O(Pe),
352
- readonly: e.readonly,
352
+ passthrough: D(X),
353
+ readonly: D(P),
353
354
  reverse: e.reverse,
354
- "show-asterisk": O(F),
355
- "show-hint": Ce.value,
356
- "ssr-marker": O(Oe),
355
+ "show-asterisk": D(N),
356
+ "show-hint": Te.value,
357
+ "ssr-marker": D(Ae),
357
358
  tag: "fieldset",
358
359
  warnings: e.warnings
359
- }, O(X).forwardAttrs), me({
360
- label: A((t) => [E(e.$slots, "legend", T(C(t)))]),
361
- input: A(({ id: t, hasErrors: n, hasWarnings: r, ariaDescribedby: i }) => [x(oe, {
362
- ref: Se,
360
+ }, D(Y).forwardAttrs), he({
361
+ label: O((t) => [T(e.$slots, "legend", w(S(t)))]),
362
+ input: O(({ id: t, hasErrors: n, hasWarnings: r, ariaDescribedby: i }) => [b(se, {
363
+ ref: we,
363
364
  block: "bb-switch-group",
364
365
  "empty-text": e.emptyText,
365
- error: O(De),
366
+ error: D(ke),
366
367
  "failed-text": e.failedText,
367
368
  "has-errors": n,
368
369
  "has-warnings": r,
@@ -372,28 +373,28 @@ var j = /*@__PURE__*/ S({
372
373
  "item-layout": e.itemLayout,
373
374
  "item-reverse": e.itemReverse,
374
375
  "list-layout": e.listLayout,
375
- loading: !!O(V),
376
+ loading: !!D(B),
376
377
  "loading-text": e.loadingText,
377
- options: O(K),
378
- passthrough: O(X)
378
+ options: D(G),
379
+ passthrough: D(Y)
379
380
  }, {
380
- prepend: A(() => [E(e.$slots, "prepend")]),
381
- loading: A(() => [E(e.$slots, "loading")]),
382
- empty: A((t) => [E(e.$slots, "empty", T(C(t)))]),
383
- label: A((t) => [E(e.$slots, "label", T(C(t)))]),
384
- input: A(({ option: a, index: o, labelId: s, descriptionId: c, rowStates: l }) => [pe("input", T(C(Le(a, o, t, i, s, c))), null, 16), E(e.$slots, "icon", w({
381
+ prepend: O(() => [T(e.$slots, "prepend")]),
382
+ loading: O(() => [T(e.$slots, "loading")]),
383
+ empty: O((t) => [T(e.$slots, "empty", w(S(t)))]),
384
+ label: O((t) => [T(e.$slots, "label", w(S(t)))]),
385
+ input: O(({ option: a, index: o, labelId: s, descriptionId: c, rowStates: l }) => [me("input", w(S(Re(a, o, t, i, s, c))), null, 16), T(e.$slots, "icon", C({
385
386
  item: a.item,
386
387
  text: a.text
387
- }, Re(a, t, n, r)), () => [x(v, w({
388
+ }, ze(a, t, n, r)), () => [b(_, C({
388
389
  checked: !!a.selected,
389
390
  disabled: !!a.disabled,
390
- "focus-visible": O(Z).focusVisible(a.valueHash),
391
- focused: O(Z).focused(a.valueHash),
391
+ "focus-visible": D(Z).focusVisible(a.valueHash),
392
+ focused: D(Z).focused(a.valueHash),
392
393
  "has-errors": !!n,
393
394
  "has-warnings": !!r && !n,
394
395
  indeterminate: !1,
395
- readonly: !!e.readonly
396
- }, O(X).part("icon", l, a.item)), null, 16, [
396
+ readonly: !!D(P)
397
+ }, D(Y).part("icon", l, a.item)), null, 16, [
397
398
  "checked",
398
399
  "disabled",
399
400
  "focus-visible",
@@ -402,7 +403,7 @@ var j = /*@__PURE__*/ S({
402
403
  "has-warnings",
403
404
  "readonly"
404
405
  ])])]),
405
- append: A(() => [E(e.$slots, "append")]),
406
+ append: O(() => [T(e.$slots, "append")]),
406
407
  _: 2
407
408
  }, 1032, [
408
409
  "empty-text",
@@ -424,10 +425,10 @@ var j = /*@__PURE__*/ S({
424
425
  _: 2
425
426
  }, [e.$slots.description ? {
426
427
  name: "description",
427
- fn: A((t) => [E(e.$slots, "description", T(C(t)))]),
428
+ fn: O((t) => [T(e.$slots, "description", w(S(t)))]),
428
429
  key: "0"
429
430
  } : void 0]), 1040, /* @__PURE__ */ "id.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.input-position.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.ssr-marker.warnings".split(".")));
430
431
  }
431
432
  });
432
433
  //#endregion
433
- export { j as default };
434
+ export { k as default };