bitboss-ui 3.0.0-beta.47 → 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 (398) hide show
  1. package/README.md +24 -7
  2. package/bin/bitboss-ui-mcp.mjs +15 -3
  3. package/bin/bitboss-ui.mjs +167 -14
  4. package/dist/ai/BbAccordion.md +1 -1
  5. package/dist/ai/BbAvatar.md +1 -1
  6. package/dist/ai/BbBreadcrumbs.md +65 -65
  7. package/dist/ai/BbButton.md +28 -8
  8. package/dist/ai/BbCheckbox.md +0 -2
  9. package/dist/ai/BbCheckboxGroup.md +13 -20
  10. package/dist/ai/BbCollapsible.md +1 -1
  11. package/dist/ai/BbColorPalette.md +1 -1
  12. package/dist/ai/BbConfirm.md +8 -0
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePickerInput.md +4 -2
  15. package/dist/ai/BbDialog.md +1 -8
  16. package/dist/ai/BbDropdown.md +231 -220
  17. package/dist/ai/BbDropdownButton.md +65 -65
  18. package/dist/ai/BbDropdownGroup.md +2 -2
  19. package/dist/ai/BbDropzone.md +10 -10
  20. package/dist/ai/BbForm.md +43 -52
  21. package/dist/ai/BbHoverCard.md +19 -7
  22. package/dist/ai/BbHoverCardPortal.md +1 -1
  23. package/dist/ai/BbNumberInput.md +88 -21
  24. package/dist/ai/BbPopover.md +47 -40
  25. package/dist/ai/BbPopoverPortal.md +1 -1
  26. package/dist/ai/BbProgress.md +48 -22
  27. package/dist/ai/BbRadioGroup.md +13 -19
  28. package/dist/ai/BbSelect.md +16 -36
  29. package/dist/ai/BbSelectPopover.md +14 -30
  30. package/dist/ai/BbSmoothHeight.md +0 -2
  31. package/dist/ai/BbSwitchGroup.md +13 -20
  32. package/dist/ai/BbTable.md +11 -10
  33. package/dist/ai/BbTabs.md +107 -106
  34. package/dist/ai/BbTabsList.md +2 -2
  35. package/dist/ai/BbTabsPanels.md +1 -1
  36. package/dist/ai/BbTabsRoot.md +3 -3
  37. package/dist/ai/BbTooltip.md +29 -13
  38. package/dist/ai/BbTree.md +14 -11
  39. package/dist/ai/CommonPopover.md +1 -1
  40. package/dist/ai/changelog.json +297 -6
  41. package/dist/ai/components.json +50 -45
  42. package/dist/ai/composables/useBbDropdownContext.md +16 -16
  43. package/dist/ai/composables/useBbFormField.md +5 -1
  44. package/dist/ai/composables/useBbTabsContext.md +14 -14
  45. package/dist/ai/guides/agent-contract.md +27 -27
  46. package/dist/ai/guides/ai-router.md +1 -1
  47. package/dist/ai/guides/component-picker.md +3 -3
  48. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  49. package/dist/ai/guides/icons-policy.md +10 -10
  50. package/dist/ai/guides/inertia-helpers.md +120 -67
  51. package/dist/ai/guides/installation-and-plugin-setup.md +45 -15
  52. package/dist/ai/guides/migration/components/bb-breadcrumbs.md +3 -2
  53. package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -16
  54. package/dist/ai/guides/migration/components/bb-dropdown-button.md +9 -8
  55. package/dist/ai/guides/migration/components/bb-dropdown.md +15 -14
  56. package/dist/ai/guides/migration/components/bb-radio-group.md +2 -1
  57. package/dist/ai/guides/migration/components/bb-select-popover.md +6 -1
  58. package/dist/ai/guides/migration/components/bb-select.md +10 -2
  59. package/dist/ai/guides/migration/components/bb-switch-group.md +2 -1
  60. package/dist/ai/guides/migration/components/bb-tabs.md +9 -8
  61. package/dist/ai/guides/migration/components/bb-tooltip.md +1 -1
  62. package/dist/ai/guides/migration/v2-to-v3.md +143 -28
  63. package/dist/ai/guides/migration/v3-beta-css-classes.md +29 -27
  64. package/dist/ai/guides/migration/v3-beta-tooling.md +11 -0
  65. package/dist/ai/guides/options-items-playbook.md +30 -24
  66. package/dist/ai/guides/passthrough.md +4 -4
  67. package/dist/ai/guides/preset-components.md +18 -3
  68. package/dist/ai/guides/typescript-generic-components.md +1 -1
  69. package/dist/ai/guides/validated-forms.md +11 -22
  70. package/dist/ai/guides/validation-providers.md +4 -3
  71. package/dist/ai/helpers/inertia/manifest.json +636 -0
  72. package/dist/ai/helpers/inertia/types.ts +15 -0
  73. package/dist/ai/helpers/inertia/useAsyncFn.ts +110 -0
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +102 -0
  75. package/dist/ai/helpers/inertia/useDeleteCmd.ts +30 -0
  76. package/dist/ai/helpers/inertia/useHasChanged.ts +36 -0
  77. package/dist/ai/helpers/inertia/useIndexById.ts +23 -0
  78. package/dist/ai/helpers/inertia/useLazyProp.ts +148 -0
  79. package/dist/ai/helpers/inertia/useLazyPropGetter.ts +50 -0
  80. package/dist/ai/helpers/inertia/useLoading.ts +20 -0
  81. package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +88 -0
  82. package/dist/ai/helpers/inertia/usePromiseForm.ts +62 -0
  83. package/dist/ai/helpers/inertia/useProp.ts +63 -0
  84. package/dist/ai/helpers/inertia/useQuery.ts +19 -0
  85. package/dist/ai/helpers/inertia/useQueryObject.ts +116 -0
  86. package/dist/ai/helpers/inertia/useResourceContext.ts +69 -0
  87. package/dist/ai/helpers/inertia/useRouteQuery.ts +54 -0
  88. package/dist/ai/helpers/inertia/useScreenSizes.ts +23 -0
  89. package/dist/ai/helpers/inertia/useTableContext.ts +34 -0
  90. package/dist/ai/helpers/inertia/useTableSelectionContext.ts +48 -0
  91. package/dist/ai/helpers/inertia/useUntil.ts +33 -0
  92. package/dist/ai/helpers/inertia/utils.ts +24 -0
  93. package/dist/ai/index.md +6 -6
  94. package/dist/ai/manifest/components/BbAccordion.json +1 -1
  95. package/dist/ai/manifest/components/BbBreadcrumbs.json +10 -6
  96. package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
  97. package/dist/ai/manifest/components/BbButton.json +2 -1
  98. package/dist/ai/manifest/components/BbButton.tree.json +1 -1
  99. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  100. package/dist/ai/manifest/components/BbCollapsible.json +1 -1
  101. package/dist/ai/manifest/components/BbColorPalette.json +1 -1
  102. package/dist/ai/manifest/components/BbConfirmPortal.json +5 -2
  103. package/dist/ai/manifest/components/BbDropdown.json +23 -20
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
  105. package/dist/ai/manifest/components/BbDropdownButton.json +22 -19
  106. package/dist/ai/manifest/components/BbDropdownButton.tree.json +1 -1
  107. package/dist/ai/manifest/components/BbDropdownGroup.json +2 -2
  108. package/dist/ai/manifest/components/BbForm.json +1 -0
  109. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  110. package/dist/ai/manifest/components/BbHoverCardPortal.json +2 -2
  111. package/dist/ai/manifest/components/BbNumberInput.json +6 -1
  112. package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -1
  113. package/dist/ai/manifest/components/BbPopover.json +2 -1
  114. package/dist/ai/manifest/components/BbPopoverPortal.json +2 -2
  115. package/dist/ai/manifest/components/BbProgress.json +6 -6
  116. package/dist/ai/manifest/components/BbProgress.tree.json +1 -0
  117. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  118. package/dist/ai/manifest/components/BbSelect.json +2 -2
  119. package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
  120. package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
  121. package/dist/ai/manifest/components/BbSelectPopover.tree.json +1 -1
  122. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  123. package/dist/ai/manifest/components/BbTabs.json +8 -7
  124. package/dist/ai/manifest/components/BbTabsList.json +3 -3
  125. package/dist/ai/manifest/components/BbTabsPanels.json +1 -1
  126. package/dist/ai/manifest/components/BbTabsRoot.json +6 -5
  127. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  128. package/dist/ai/manifest/components/BbTooltip.json +2 -2
  129. package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
  130. package/dist/ai/manifest/components/CommonPopover.json +1 -1
  131. package/dist/ai/manifest/index.json +2 -2
  132. package/dist/ai/manifest/meta.json +5 -0
  133. package/dist/ai/manifest/types.advanced.json +10 -9
  134. package/dist/ai/manifest/types.api.json +8 -5
  135. package/dist/ai/manifest/types.wrapper.json +1 -0
  136. package/dist/ai/recipes/inertia/approvals-inbox.md +16 -18
  137. package/dist/ai/recipes/inertia/inline-edit-workspace.md +23 -33
  138. package/dist/ai/recipes/inertia/layout-scaffold.md +16 -16
  139. package/dist/ai/recipes/inertia/onboarding.md +6 -10
  140. package/dist/ai/recipes/inertia/ownership-atlas.md +15 -18
  141. package/dist/ai/recipes/inertia/record-form.md +11 -11
  142. package/dist/ai/recipes/inertia/records-workspace.md +38 -41
  143. package/dist/ai/recipes/inertia/settings-workspace.md +26 -38
  144. package/dist/ai/recipes/inertia/upload-center.md +31 -39
  145. package/dist/ai/recipes/inertia/wizard-form.md +10 -19
  146. package/dist/ai/recipes/nuxt/approvals-inbox.md +7 -8
  147. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +14 -24
  148. package/dist/ai/recipes/nuxt/layout-scaffold.md +16 -16
  149. package/dist/ai/recipes/nuxt/onboarding.md +2 -6
  150. package/dist/ai/recipes/nuxt/ownership-atlas.md +7 -9
  151. package/dist/ai/recipes/nuxt/record-form.md +5 -5
  152. package/dist/ai/recipes/nuxt/records-workspace.md +29 -31
  153. package/dist/ai/recipes/nuxt/settings-workspace.md +22 -34
  154. package/dist/ai/recipes/nuxt/upload-center.md +22 -29
  155. package/dist/ai/recipes/nuxt/wizard-form.md +3 -11
  156. package/dist/ai/recipes/vue/approvals-inbox.md +7 -8
  157. package/dist/ai/recipes/vue/inline-edit-workspace.md +14 -24
  158. package/dist/ai/recipes/vue/layout-scaffold.md +16 -16
  159. package/dist/ai/recipes/vue/onboarding.md +2 -6
  160. package/dist/ai/recipes/vue/ownership-atlas.md +7 -9
  161. package/dist/ai/recipes/vue/record-form.md +5 -5
  162. package/dist/ai/recipes/vue/records-workspace.md +29 -31
  163. package/dist/ai/recipes/vue/settings-workspace.md +22 -34
  164. package/dist/ai/recipes/vue/upload-center.md +22 -29
  165. package/dist/ai/recipes/vue/wizard-form.md +3 -11
  166. package/dist/ai/source/BbAccordion.md +1 -1
  167. package/dist/ai/source/BbAlert.md +3 -3
  168. package/dist/ai/source/BbBadge.md +14 -10
  169. package/dist/ai/source/BbBadgeButton.md +17 -12
  170. package/dist/ai/source/BbBaseButton.md +1 -1
  171. package/dist/ai/source/BbBaseRadioIcon.md +1 -0
  172. package/dist/ai/source/BbBaseSwitchIcon.md +1 -0
  173. package/dist/ai/source/BbBreadcrumbs.md +63 -42
  174. package/dist/ai/source/BbButton.md +84 -38
  175. package/dist/ai/source/BbCalendar.md +17 -16
  176. package/dist/ai/source/BbCheckbox.md +3 -2
  177. package/dist/ai/source/BbCheckboxGroup.md +11 -4
  178. package/dist/ai/source/BbCollapsible.md +2 -1
  179. package/dist/ai/source/BbColorInput.md +10 -9
  180. package/dist/ai/source/BbColorPalette.md +2 -1
  181. package/dist/ai/source/BbConfirm.md +18 -1
  182. package/dist/ai/source/BbConfirmPortal.md +20 -6
  183. package/dist/ai/source/BbDatePicker.md +2 -2
  184. package/dist/ai/source/BbDatePickerInput.md +47 -20
  185. package/dist/ai/source/BbDialog.md +5 -5
  186. package/dist/ai/source/BbDropdown.md +231 -158
  187. package/dist/ai/source/BbDropdownButton.md +19 -12
  188. package/dist/ai/source/BbDropdownGroup.md +127 -93
  189. package/dist/ai/source/BbForm.md +25 -1
  190. package/dist/ai/source/BbHoverCard.md +30 -3
  191. package/dist/ai/source/BbHoverCardPortal.md +18 -3
  192. package/dist/ai/source/BbIndicator.md +4 -0
  193. package/dist/ai/source/BbNumberInput.md +855 -19
  194. package/dist/ai/source/BbOffCanvas.md +27 -11
  195. package/dist/ai/source/BbPagination.md +3 -3
  196. package/dist/ai/source/BbPopover.md +185 -12
  197. package/dist/ai/source/BbPopoverPortal.md +30 -3
  198. package/dist/ai/source/BbProgress.md +82 -18
  199. package/dist/ai/source/BbRadioGroup.md +12 -5
  200. package/dist/ai/source/BbRating.md +11 -9
  201. package/dist/ai/source/BbSelect.md +16 -10
  202. package/dist/ai/source/BbSelectPopover.md +29 -23
  203. package/dist/ai/source/BbSlider.md +12 -6
  204. package/dist/ai/source/BbSwitch.md +3 -2
  205. package/dist/ai/source/BbSwitchGroup.md +5 -2
  206. package/dist/ai/source/BbTable.md +102 -18
  207. package/dist/ai/source/BbTabs.md +30 -24
  208. package/dist/ai/source/BbTabsList.md +29 -23
  209. package/dist/ai/source/BbTabsPanels.md +29 -23
  210. package/dist/ai/source/BbTabsRoot.md +28 -22
  211. package/dist/ai/source/BbTag.md +10 -9
  212. package/dist/ai/source/BbTextInput.md +5 -4
  213. package/dist/ai/source/BbTextarea.md +6 -5
  214. package/dist/ai/source/BbTimePicker.md +1 -1
  215. package/dist/ai/source/BbTimePickerInput.md +46 -9
  216. package/dist/ai/source/BbToast.md +10 -7
  217. package/dist/ai/source/BbToastPortal.md +10 -7
  218. package/dist/ai/source/BbTooltip.md +88 -11
  219. package/dist/ai/source/BbTree.md +21 -3
  220. package/dist/ai/source/CommonField.md +6 -4
  221. package/dist/ai/source/CommonFieldInput.md +15 -10
  222. package/dist/ai/source/CommonPopover.md +8 -1
  223. package/dist/ai/source/CommonTimeSelector.md +5 -4
  224. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +10 -8
  225. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +8 -8
  226. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +45 -45
  227. package/dist/components/BbBreadcrumbs/types.d.ts +25 -17
  228. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +88 -70
  229. package/dist/components/BbButton/toggleRoving.d.ts +6 -0
  230. package/dist/components/BbButton/toggleRoving.js +45 -0
  231. package/dist/components/BbButton/types.d.ts +12 -4
  232. package/dist/components/BbButton/types.js +5 -1
  233. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +178 -178
  234. package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -15
  235. package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +28 -28
  236. package/dist/components/BbCalendar/useCalendarGrid.js +141 -139
  237. package/dist/components/BbCalendar/useDayjsLocale.d.ts +38 -15
  238. package/dist/components/BbCalendar/useDayjsLocale.js +31 -30
  239. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +48 -48
  240. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +81 -80
  241. package/dist/components/BbCheckboxGroup/types.d.ts +6 -2
  242. package/dist/components/BbCollapsible/types.d.ts +2 -1
  243. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
  244. package/dist/components/BbColorPalette/types.d.ts +2 -1
  245. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -5
  246. package/dist/components/BbConfirm/types.d.ts +15 -0
  247. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +363 -349
  248. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +91 -86
  249. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +298 -289
  250. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +322 -356
  251. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +17 -15
  252. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +40 -0
  253. package/dist/components/BbDropdown/DropdownRow.vue.js +5 -0
  254. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +60 -0
  255. package/dist/components/BbDropdown/normalizeGroups.d.ts +8 -2
  256. package/dist/components/BbDropdown/normalizeGroups.js +60 -46
  257. package/dist/components/BbDropdown/types.d.ts +120 -88
  258. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +11 -2
  259. package/dist/components/BbDropdownButton/types.d.ts +2 -2
  260. package/dist/components/BbForm/BbForm.vue.d.ts +9 -0
  261. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +114 -105
  262. package/dist/components/BbForm/BbFormCustomField.js +1 -1
  263. package/dist/components/BbForm/bindFormField.js +2 -1
  264. package/dist/components/BbForm/formFields.d.ts +5 -0
  265. package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +145 -142
  266. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -2
  267. package/dist/components/BbHoverCard/types.d.ts +14 -1
  268. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +0 -1
  269. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +452 -125
  270. package/dist/components/BbNumberInput/numberDisplay.d.ts +256 -0
  271. package/dist/components/BbNumberInput/numberDisplay.js +499 -0
  272. package/dist/components/BbNumberInput/types.d.ts +54 -1
  273. package/dist/components/BbNumberInput/warroom/corpus.d.ts +58 -0
  274. package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +28 -0
  275. package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +2 -0
  276. package/dist/components/BbNumberInput/warroom/harness.d.ts +217 -0
  277. package/dist/components/BbNumberInput/warroom/oracle.d.ts +150 -0
  278. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +7 -7
  279. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -0
  280. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +207 -162
  281. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -2
  282. package/dist/components/BbPopover/types.d.ts +26 -1
  283. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +15 -7
  284. package/dist/components/BbProgress/types.d.ts +23 -7
  285. package/dist/components/BbProgress/types.js +1 -1
  286. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +102 -101
  287. package/dist/components/BbRadioGroup/types.d.ts +6 -2
  288. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +63 -63
  289. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +156 -154
  290. package/dist/components/BbSelect/types.d.ts +6 -2
  291. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +2 -1
  292. package/dist/components/BbSelectPopover/types.d.ts +6 -2
  293. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +153 -153
  294. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +62 -62
  295. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +131 -130
  296. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +711 -676
  297. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +1 -1
  298. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
  299. package/dist/components/BbTabs/types.d.ts +28 -22
  300. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +76 -76
  301. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +58 -58
  302. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +82 -82
  303. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +246 -236
  304. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -86
  305. package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
  306. package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
  307. package/dist/components/BbTooltip/types.d.ts +10 -3
  308. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +29 -21
  309. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +10 -7
  310. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +37 -36
  311. package/dist/components/CommonPopover/types.d.ts +2 -1
  312. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +9 -9
  313. package/dist/composables/formSubmitLock.d.ts +6 -0
  314. package/dist/composables/formSubmitLock.js +4 -0
  315. package/dist/composables/useBaseOptions.d.ts +7 -1
  316. package/dist/composables/useBaseOptions.js +32 -32
  317. package/dist/composables/useBbDropdownContext.d.ts +8 -8
  318. package/dist/composables/useBbFormField.d.ts +9 -0
  319. package/dist/composables/useBbFormField.js +5 -3
  320. package/dist/composables/useBbTabsContext.d.ts +10 -10
  321. package/dist/composables/useBbTabsContext.js +18 -18
  322. package/dist/composables/useFormBinding.d.ts +11 -0
  323. package/dist/composables/useFormBinding.js +15 -13
  324. package/dist/composables/useItemText.d.ts +5 -1
  325. package/dist/composables/useItemText.js +8 -3
  326. package/dist/composables/useItemValue.d.ts +5 -1
  327. package/dist/composables/useItemValue.js +8 -3
  328. package/dist/composables/useLocale.js +10 -9
  329. package/dist/deprecation/ai-deprecations.json.d.ts +130 -0
  330. package/dist/deprecation/ai-deprecations.json.js +1 -1
  331. package/dist/deprecation/removedProps.js +1 -1
  332. package/dist/directives/bbDropdown.js +1 -1
  333. package/dist/directives/directivePortal.d.ts +13 -7
  334. package/dist/directives/directivePortal.js +1 -4
  335. package/dist/i18n/index.d.ts +7 -12
  336. package/dist/i18n/locales/cs.json +11 -14
  337. package/dist/i18n/locales/da.json +13 -16
  338. package/dist/i18n/locales/de-CH.json +137 -0
  339. package/dist/i18n/locales/de.json +14 -17
  340. package/dist/i18n/locales/el.json +10 -13
  341. package/dist/i18n/locales/en-GB.json +137 -0
  342. package/dist/i18n/locales/en.json +8 -11
  343. package/dist/i18n/locales/es-MX.json +137 -0
  344. package/dist/i18n/locales/es.json +16 -19
  345. package/dist/i18n/locales/fi.json +8 -11
  346. package/dist/i18n/locales/fr.json +23 -26
  347. package/dist/i18n/locales/hu.json +8 -11
  348. package/dist/i18n/locales/it.json +12 -15
  349. package/dist/i18n/locales/ja.json +13 -16
  350. package/dist/i18n/locales/ko.json +10 -13
  351. package/dist/i18n/locales/nb.json +13 -16
  352. package/dist/i18n/locales/nl.json +21 -24
  353. package/dist/i18n/locales/pl.json +10 -13
  354. package/dist/i18n/locales/{pt.json → pt-BR.json} +19 -22
  355. package/dist/i18n/locales/pt-PT.json +137 -0
  356. package/dist/i18n/locales/ro.json +22 -25
  357. package/dist/i18n/locales/ru.json +11 -14
  358. package/dist/i18n/locales/sv.json +16 -19
  359. package/dist/i18n/locales/tr.json +14 -17
  360. package/dist/i18n/locales/uk.json +11 -14
  361. package/dist/i18n/locales/{zh-cn.json → zh-CN.json} +10 -13
  362. package/dist/i18n/locales/zh-HK.json +137 -0
  363. package/dist/i18n/locales/zh-TW.json +137 -0
  364. package/dist/i18n/regionHints.d.ts +16 -0
  365. package/dist/i18n/regionHints.js +49 -0
  366. package/dist/i18n/regions.d.ts +286 -0
  367. package/dist/i18n/regions.js +265 -0
  368. package/dist/index.d.ts +4 -4
  369. package/dist/index.js +4 -4
  370. package/dist/llms-full.txt +1914 -1714
  371. package/dist/llms-medium.txt +76 -46
  372. package/dist/llms.txt +7 -7
  373. package/dist/locale-blueprint.json +16 -13
  374. package/dist/styles.css +2 -2
  375. package/dist/types/passthrough.d.ts +1 -1
  376. package/dist/types/ptComponentMap.d.ts +2 -2
  377. package/dist/utilities/functions/slotKey.d.ts +2 -2
  378. package/dist/utils/versionCheck.js +1 -1
  379. package/dist/vite-plugin.d.ts +22 -19
  380. package/dist/vite.js +309 -297
  381. package/llms.txt +7 -7
  382. package/package.json +5 -3
  383. package/scripts/lib/agent-manifest.mjs +2 -1
  384. package/scripts/lib/eslint-disable.mjs +17 -4
  385. package/scripts/lib/eslint-plugin.d.ts +9 -1
  386. package/scripts/lib/eslint-plugin.mjs +256 -6
  387. package/scripts/lib/helper-canon.mjs +176 -0
  388. package/scripts/lib/helpers-add.mjs +1303 -0
  389. package/scripts/lib/local-components.mjs +33 -4
  390. package/scripts/lib/locale-check.mjs +165 -0
  391. package/scripts/lib/portal-names.mjs +458 -0
  392. package/scripts/lib/redundant-item-accessor.mjs +398 -0
  393. package/scripts/lib/renamed-item-field.mjs +343 -0
  394. package/scripts/lib/slot-key.mjs +2 -2
  395. package/scripts/lib/slot-renames.mjs +1 -1
  396. package/scripts/lib/unimported-components.mjs +5 -2
  397. package/scripts/lib/validate-bb-markup.mjs +123 -56
  398. package/dist/i18n/index.js +0 -27
@@ -15,18 +15,18 @@ import { resolveEnumProp as ce } from "../../utilities/functions/resolveEnumProp
15
15
  import { snapToStep as l } from "../../utilities/functions/snapToStep.js";
16
16
  import { transpose as le } from "../../utilities/functions/transpose.js";
17
17
  import { BB_SLIDER_PT as ue } from "./types.js";
18
- import { Fragment as de, computed as u, createBlock as fe, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as pe, defineComponent as m, guardReactiveProps as h, mergeProps as g, normalizeClass as me, normalizeProps as _, onBeforeUnmount as he, onDeactivated as ge, onMounted as _e, openBlock as v, ref as y, renderList as ve, renderSlot as b, toDisplayString as ye, unref as x, useAttrs as be, watch as xe, withCtx as S } from "vue";
18
+ import { Fragment as de, computed as u, createBlock as fe, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as pe, defineComponent as me, guardReactiveProps as m, mergeProps as h, normalizeClass as he, normalizeProps as g, onBeforeUnmount as ge, onDeactivated as _e, onMounted as ve, openBlock as _, ref as v, renderList as ye, renderSlot as y, toDisplayString as be, unref as b, useAttrs as xe, watch as Se, withCtx as x } from "vue";
19
19
  //#region src/components/BbSlider/BbSlider.vue?vue&type=script&setup=true&lang.ts
20
- var Se = [
20
+ var Ce = [
21
21
  "id",
22
22
  "disabled",
23
23
  "name",
24
24
  "value"
25
- ], Ce = [
25
+ ], we = [
26
26
  "disabled",
27
27
  "name",
28
28
  "value"
29
- ], we = [
29
+ ], Te = [
30
30
  "aria-describedby",
31
31
  "aria-disabled",
32
32
  "aria-labelledby",
@@ -35,7 +35,7 @@ var Se = [
35
35
  "aria-valuemin",
36
36
  "aria-valuenow",
37
37
  "tabindex"
38
- ], Te = [
38
+ ], Ee = [
39
39
  "aria-describedby",
40
40
  "aria-disabled",
41
41
  "aria-labelledby",
@@ -44,7 +44,7 @@ var Se = [
44
44
  "aria-valuemin",
45
45
  "aria-valuenow",
46
46
  "tabindex"
47
- ], Ee = ["id"], De = ["id"], C = /*@__PURE__*/ m({
47
+ ], De = ["id"], Oe = ["id"], S = /*@__PURE__*/ me({
48
48
  inheritAttrs: !1,
49
49
  __name: "BbSlider",
50
50
  props: {
@@ -170,29 +170,29 @@ var Se = [
170
170
  "pointerup",
171
171
  "update:modelValue"
172
172
  ],
173
- setup(m, { emit: C }) {
174
- let w = m, { props: T, emit: E, showAsterisk: Oe, errors: ke } = oe(w, C, {
173
+ setup(me, { emit: S }) {
174
+ let C = me, { props: w, emit: T, showAsterisk: ke, errors: Ae, readonly: E } = oe(C, S, {
175
175
  componentName: "BbSlider",
176
- identifierFallback: () => w.label,
176
+ identifierFallback: () => C.label,
177
177
  emptyValue: () => 0,
178
178
  leaveOn: "inactive"
179
- }), Ae = a();
179
+ }), je = a();
180
180
  process.env.NODE_ENV !== "production" && te("BbSlider", ee("BbSlider"));
181
- let je = ["outside", "inside"], Me = u(() => {
182
- if (T.labelMode != null) return ce(T.labelMode, je, "outside", {
181
+ let Me = ["outside", "inside"], Ne = u(() => {
182
+ if (w.labelMode != null) return ce(w.labelMode, Me, "outside", {
183
183
  prop: "labelMode",
184
184
  component: "BbSlider"
185
185
  });
186
- let e = Ae.defaultInputLabelMode;
186
+ let e = je.defaultInputLabelMode;
187
187
  return e === "floating" ? "outside" : e;
188
- }), D = y(!1), Ne = u(() => T.persistentHint || D.value), O = i({
188
+ }), D = v(!1), Pe = u(() => w.persistentHint || D.value), O = i({
189
189
  component: "BbSlider",
190
- attrs: be(),
191
- props: T,
190
+ attrs: xe(),
191
+ props: w,
192
192
  parts: ue.parts,
193
193
  states: ue.states,
194
194
  active: {
195
- ...r(n(T), [
195
+ ...r(n(w), [
196
196
  "errors",
197
197
  "warnings",
198
198
  "disabled",
@@ -200,54 +200,54 @@ var Se = [
200
200
  ]),
201
201
  active: () => D.value
202
202
  }
203
- }), k = e(), { t: A } = ne(), j = (e, t) => T.range ? `${e}__label ${e}__thumb_label_${t}` : `${e}__label`;
204
- (T.min < -(2 ** 53 - 1) || T.max > 2 ** 53 - 1) && k.throw("BbSlider min or max is too large"), (!Number.isFinite(T.min) || !Number.isFinite(T.max)) && k.throw("BbSlider min and max must be finite numbers", TypeError), T.max <= T.min && k.throw("BbSlider max must be greater than min", RangeError), (!Number.isFinite(T.step) || T.step <= 0) && k.throw("BbSlider step must be a finite number greater than 0", RangeError), (!Number.isFinite(T.maxPrecision) || T.maxPrecision < 0) && k.throw("BbSlider maxPrecision must be a non-negative number", RangeError);
205
- let M = y(), N = y(), P = y(), F = y(), I = y(), L = y(0), R = y(0), z = u(() => Array.isArray(T.modelValue) ? se(T.modelValue) ?? void 0 : t(T.modelValue) ? void 0 : Number(T.modelValue)), B = u(() => Array.isArray(T.modelValue) ? re(T.modelValue) ?? void 0 : t(T.modelValue) ? void 0 : Number(T.modelValue)), V = u(() => [L.value, R.value].sort((e, t) => e - t));
206
- T.range && !Array.isArray(T.modelValue) && k.throw("BbSlider mode is set as range but modelValue is not an array", TypeError), !T.range && Array.isArray(T.modelValue) && k.throw("BbSlider mode is not set as range but modelValue is an array — add `range` for two thumbs, or bind a number", TypeError), _e(() => {
207
- T.autofocus && Pe();
203
+ }), k = e(), { t: A } = ne(), j = (e, t) => w.range ? `${e}__label ${e}__thumb_label_${t}` : `${e}__label`;
204
+ (w.min < -(2 ** 53 - 1) || w.max > 2 ** 53 - 1) && k.throw("BbSlider min or max is too large"), (!Number.isFinite(w.min) || !Number.isFinite(w.max)) && k.throw("BbSlider min and max must be finite numbers", TypeError), w.max <= w.min && k.throw("BbSlider max must be greater than min", RangeError), (!Number.isFinite(w.step) || w.step <= 0) && k.throw("BbSlider step must be a finite number greater than 0", RangeError), (!Number.isFinite(w.maxPrecision) || w.maxPrecision < 0) && k.throw("BbSlider maxPrecision must be a non-negative number", RangeError);
205
+ let M = v(), N = v(), P = v(), F = v(), I = v(), L = v(0), R = v(0), z = u(() => Array.isArray(w.modelValue) ? se(w.modelValue) ?? void 0 : t(w.modelValue) ? void 0 : Number(w.modelValue)), B = u(() => Array.isArray(w.modelValue) ? re(w.modelValue) ?? void 0 : t(w.modelValue) ? void 0 : Number(w.modelValue)), V = u(() => [L.value, R.value].sort((e, t) => e - t));
206
+ w.range && !Array.isArray(w.modelValue) && k.throw("BbSlider mode is set as range but modelValue is not an array", TypeError), !w.range && Array.isArray(w.modelValue) && k.throw("BbSlider mode is not set as range but modelValue is an array — add `range` for two thumbs, or bind a number", TypeError), ve(() => {
207
+ w.autofocus && Fe();
208
208
  });
209
- let H = y(!1), U = y(null), Pe = () => {
210
- if (!T.disabled) {
211
- if (T.range) {
209
+ let H = v(!1), U = v(null), Fe = () => {
210
+ if (!w.disabled) {
211
+ if (w.range) {
212
212
  (P.value ?? F.value)?.focus();
213
213
  return;
214
214
  }
215
215
  F.value?.focus();
216
216
  }
217
- }, Fe = () => {
218
- document.activeElement === I.value && Pe();
219
- }, Ie = (e) => `calc(var(--track-inset) + (100% - (var(--track-inset) * 2)) * ${e} / 100)`, Le = (e) => F.value && F.value.contains(e.target) ? "higher" : P.value && P.value.contains(e.target) ? "lower" : k.throw("Could not identify target thumb"), W = () => {
220
- document.removeEventListener("pointermove", G), document.removeEventListener("pointerup", J), document.removeEventListener("pointercancel", Y);
221
- }, Re = () => {
217
+ }, Ie = () => {
218
+ document.activeElement === I.value && Fe();
219
+ }, Le = (e) => `calc(var(--track-inset) + (100% - (var(--track-inset) * 2)) * ${e} / 100)`, Re = (e) => F.value && F.value.contains(e.target) ? "higher" : P.value && P.value.contains(e.target) ? "lower" : k.throw("Could not identify target thumb"), W = () => {
220
+ document.removeEventListener("pointermove", G), document.removeEventListener("pointerup", q), document.removeEventListener("pointercancel", J);
221
+ }, ze = () => {
222
222
  document.removeEventListener("focusin", Q), document.removeEventListener("click", Q);
223
- }, ze = (e) => {
224
- T.disabled || T.readonly || (U.value ||= Le(e), H.value = !0, document.addEventListener("pointermove", G), document.addEventListener("pointerup", J), document.addEventListener("pointercancel", Y), E("pointerdown", e));
225
- }, Be = u(() => H.value ? {} : { onPointerdown: ze }), G = (e) => {
226
- if (!(T.disabled || T.readonly) && N.value) {
227
- E("pointermove", e);
228
- let t = N.value.getBoundingClientRect(), n = e.clientX, r = t.left, i = t.width, a = o(s(l(le(n, r, r + i, T.min, T.max), T.min, T.max, T.step), T.min, T.max), 0, 100);
229
- U.value === "higher" ? R.value = a : U.value === "lower" && (L.value = a), E("update:modelValue", He());
223
+ }, Be = (e) => {
224
+ w.disabled || w.readonly || (U.value ||= Re(e), H.value = !0, document.addEventListener("pointermove", G), document.addEventListener("pointerup", q), document.addEventListener("pointercancel", J), T("pointerdown", e));
225
+ }, Ve = u(() => H.value ? {} : { onPointerdown: Be }), G = (e) => {
226
+ if (!(w.disabled || w.readonly) && N.value) {
227
+ T("pointermove", e);
228
+ let t = N.value.getBoundingClientRect(), n = e.clientX, r = t.left, i = t.width, a = o(s(l(le(n, r, r + i, w.min, w.max), w.min, w.max, w.step), w.min, w.max), 0, 100);
229
+ U.value === "higher" ? R.value = a : U.value === "lower" && (L.value = a), T("update:modelValue", Ue());
230
230
  }
231
231
  }, K = u(() => {
232
- let e = T.modelValue;
233
- return T.range ? Array.isArray(e) && e.length === 2 ? e : [null] : [typeof e == "number" ? e : null];
234
- }), Ve = (e) => e == null ? "" : typeof e == "string" ? e : JSON.stringify(e), He = () => {
235
- if (T.range) return [c(L.value, T.min, T.max), c(R.value, T.min, T.max)].sort((e, t) => e - t).map((e) => Number(e.toFixed(T.maxPrecision)));
232
+ let e = w.modelValue;
233
+ return w.range ? Array.isArray(e) && e.length === 2 ? e : [null] : [typeof e == "number" ? e : null];
234
+ }), He = (e) => e == null ? "" : typeof e == "string" ? e : JSON.stringify(e), Ue = () => {
235
+ if (w.range) return [c(L.value, w.min, w.max), c(R.value, w.min, w.max)].sort((e, t) => e - t).map((e) => Number(e.toFixed(w.maxPrecision)));
236
236
  {
237
- let e = c(R.value, T.min, T.max);
238
- return Number(e.toFixed(T.maxPrecision));
237
+ let e = c(R.value, w.min, w.max);
238
+ return Number(e.toFixed(w.maxPrecision));
239
239
  }
240
- }, Ue = () => {
241
- if (T.disabled || T.readonly || T.range) return;
242
- let e = l((T.modelValue ?? 0) + T.step, T.min, T.max, T.step);
243
- E("update:modelValue", Number(e.toFixed(T.maxPrecision)));
244
- }, q = () => {
245
- if (T.disabled || T.readonly || T.range) return;
246
- let e = l((T.modelValue ?? 0) - T.step, T.min, T.max, T.step);
247
- E("update:modelValue", Number(e.toFixed(T.maxPrecision)));
240
+ }, We = () => {
241
+ if (w.disabled || w.readonly || w.range) return;
242
+ let e = l((w.modelValue ?? 0) + w.step, w.min, w.max, w.step);
243
+ T("update:modelValue", Number(e.toFixed(w.maxPrecision)));
244
+ }, Ge = () => {
245
+ if (w.disabled || w.readonly || w.range) return;
246
+ let e = l((w.modelValue ?? 0) - w.step, w.min, w.max, w.step);
247
+ T("update:modelValue", Number(e.toFixed(w.maxPrecision)));
248
248
  };
249
- xe(() => T.modelValue, (e) => {
250
- if (T.range) {
249
+ Se(() => w.modelValue, (e) => {
250
+ if (w.range) {
251
251
  let t = Array.isArray(e) ? e : null;
252
252
  if (!t) {
253
253
  k.throw("BbSlider modelValue must be an array");
@@ -257,99 +257,99 @@ var Se = [
257
257
  L.value = 0, R.value = 100;
258
258
  return;
259
259
  }
260
- let n = [...t].sort((e, t) => e - t).map((e) => o(s(e, T.min, T.max), 0, 100));
260
+ let n = [...t].sort((e, t) => e - t).map((e) => o(s(e, w.min, w.max), 0, 100));
261
261
  L.value > R.value ? (L.value = n[1], R.value = n[0]) : (L.value = n[0], R.value = n[1]);
262
262
  } else {
263
- let t = o(le(e ?? T.min, T.min, T.max, 0, 100), 0, 100);
263
+ let t = o(le(e ?? w.min, w.min, w.max, 0, 100), 0, 100);
264
264
  R.value = t;
265
265
  }
266
266
  }, { immediate: !0 });
267
- let J = (e) => {
268
- H.value = !1, U.value = null, W(), E("pointerup", e);
269
- }, Y = () => {
267
+ let q = (e) => {
268
+ H.value = !1, U.value = null, W(), T("pointerup", e);
269
+ }, J = () => {
270
270
  H.value = !1, U.value = null, W();
271
- }, X = u(() => ie(T.step, T.max - T.min)), We = (e) => U.value === "higher" || document.activeElement === F.value || e.target === F.value ? "higher" : "lower", Ge = (e) => s(l(c(o(e, 0, 100), T.min, T.max), T.min, T.max, T.step), T.min, T.max), Z = (e, t) => {
272
- let n = Ge(t);
271
+ }, Y = u(() => ie(w.step, w.max - w.min)), Ke = (e) => U.value === "higher" || document.activeElement === F.value || e.target === F.value ? "higher" : "lower", qe = (e) => s(l(c(o(e, 0, 100), w.min, w.max), w.min, w.max, w.step), w.min, w.max), X = (e, t) => {
272
+ let n = qe(t);
273
273
  if (e === "higher") {
274
274
  R.value = n;
275
275
  return;
276
276
  }
277
277
  L.value = n;
278
- }, Ke = (e) => {
279
- if (E("keydown", e), T.disabled || T.readonly) return;
280
- let t = We(e), n = X.value * 10, r = {
281
- ArrowLeft: () => Z(t, (t === "higher" ? R.value : L.value) - X.value),
282
- ArrowDown: () => Z(t, (t === "higher" ? R.value : L.value) - X.value),
283
- ArrowRight: () => Z(t, (t === "higher" ? R.value : L.value) + X.value),
284
- ArrowUp: () => Z(t, (t === "higher" ? R.value : L.value) + X.value),
285
- PageDown: () => Z(t, (t === "higher" ? R.value : L.value) - n),
286
- PageUp: () => Z(t, (t === "higher" ? R.value : L.value) + n),
287
- Home: () => Z(t, 0),
288
- End: () => Z(t, 100)
278
+ }, Je = (e) => {
279
+ if (T("keydown", e), w.disabled || w.readonly) return;
280
+ let t = Ke(e), n = Y.value * 10, r = {
281
+ ArrowLeft: () => X(t, (t === "higher" ? R.value : L.value) - Y.value),
282
+ ArrowDown: () => X(t, (t === "higher" ? R.value : L.value) - Y.value),
283
+ ArrowRight: () => X(t, (t === "higher" ? R.value : L.value) + Y.value),
284
+ ArrowUp: () => X(t, (t === "higher" ? R.value : L.value) + Y.value),
285
+ PageDown: () => X(t, (t === "higher" ? R.value : L.value) - n),
286
+ PageUp: () => X(t, (t === "higher" ? R.value : L.value) + n),
287
+ Home: () => X(t, 0),
288
+ End: () => X(t, 100)
289
289
  }[e.key];
290
- r && (e.preventDefault(), r(), E("update:modelValue", He()));
291
- }, qe = (e) => {
292
- if (T.disabled) {
290
+ r && (e.preventDefault(), r(), T("update:modelValue", Ue()));
291
+ }, Z = (e) => {
292
+ if (w.disabled) {
293
293
  e.target instanceof HTMLElement && e.target.blur();
294
294
  return;
295
295
  }
296
- E("focus", e);
297
- let t = Le(e);
298
- t && (U.value = t), D.value || (D.value = !0, E("active"), document.addEventListener("focusin", Q), document.addEventListener("click", Q));
296
+ T("focus", e);
297
+ let t = Re(e);
298
+ t && (U.value = t), D.value || (D.value = !0, T("active"), document.addEventListener("focusin", Q), document.addEventListener("click", Q));
299
299
  }, Q = (e) => {
300
300
  if (e.target instanceof HTMLElement) {
301
301
  let t = !!M.value?.contains(e.target), n = document.activeElement, r = n instanceof HTMLElement && !!M.value?.contains(n);
302
- !t && !r && (D.value = !1, U.value = null, E("inactive"), Re());
302
+ !t && !r && (D.value = !1, U.value = null, T("inactive"), ze());
303
303
  }
304
- }, Je = () => {
305
- H.value = !1, W(), D.value && (D.value = !1, U.value = null, E("inactive")), Re();
304
+ }, Ye = () => {
305
+ H.value = !1, W(), D.value && (D.value = !1, U.value = null, T("inactive")), ze();
306
306
  };
307
- ge(Je), he(Je);
308
- let Ye = (e) => {
307
+ _e(Ye), ge(Ye);
308
+ let Xe = (e) => {
309
309
  if (!N.value) return null;
310
310
  let t = N.value.getBoundingClientRect();
311
311
  return t.width === 0 ? null : o((e.clientX - t.left) / t.width * 100, 0, 100);
312
- }, Xe = (e) => {
312
+ }, Ze = (e) => {
313
313
  let t = Math.abs(e - L.value), n = Math.abs(e - R.value);
314
314
  return t === n ? e < L.value ? "lower" : "higher" : t < n ? "lower" : "higher";
315
- }, Ze = { onPointerdown: (e) => {
316
- if (T.disabled || T.readonly) return;
317
- let t = Ye(e);
318
- t !== null && (T.range ? (U.value = Xe(t), (U.value === "lower" ? P.value : F.value)?.focus()) : F.value?.focus(), G(e), document.addEventListener("pointermove", G), document.addEventListener("pointerup", J), document.addEventListener("pointercancel", Y));
319
- } }, Qe = u(() => ({
315
+ }, Qe = { onPointerdown: (e) => {
316
+ if (w.disabled || w.readonly) return;
317
+ let t = Xe(e);
318
+ t !== null && (w.range ? (U.value = Ze(t), (U.value === "lower" ? P.value : F.value)?.focus()) : F.value?.focus(), G(e), document.addEventListener("pointermove", G), document.addEventListener("pointerup", q), document.addEventListener("pointercancel", J));
319
+ } }, $e = u(() => ({
320
320
  class: "bb-slider__bar",
321
321
  style: {
322
322
  width: `${V.value[1] - V.value[0]}%`,
323
323
  left: `${V.value[0]}%`
324
324
  }
325
- })), $e = (e) => {
326
- if (t(T.modelValue)) return !1;
327
- if (Array.isArray(T.modelValue)) {
328
- if (T.modelValue.length === 0) return !1;
329
- let t = [...T.modelValue].sort((e, t) => e - t);
325
+ })), et = (e) => {
326
+ if (t(w.modelValue)) return !1;
327
+ if (Array.isArray(w.modelValue)) {
328
+ if (w.modelValue.length === 0) return !1;
329
+ let t = [...w.modelValue].sort((e, t) => e - t);
330
330
  return t[0] <= e && t[1] >= e;
331
331
  }
332
- return e <= Number(T.modelValue);
332
+ return e <= Number(w.modelValue);
333
333
  }, $ = u(() => {
334
- if (!T.ticks || !Number.isFinite(T.step) || T.step <= 0) return [];
335
- let e = [], t = T.min;
336
- for (; t <= T.max;) {
337
- let n = t, r = s(n, T.min, T.max), i = $e(n);
334
+ if (!w.ticks || !Number.isFinite(w.step) || w.step <= 0) return [];
335
+ let e = [], t = w.min;
336
+ for (; t <= w.max;) {
337
+ let n = t, r = s(n, w.min, w.max), i = et(n);
338
338
  e.push({
339
339
  value: n,
340
340
  percent: r,
341
341
  active: i
342
- }), t += T.step;
342
+ }), t += w.step;
343
343
  }
344
344
  return e;
345
345
  });
346
- return (e, t) => (v(), fe(ae, g({
346
+ return (e, t) => (_(), fe(ae, h({
347
347
  id: e.id,
348
348
  class: "bb-slider",
349
349
  compact: e.compact,
350
350
  description: e.description,
351
351
  disabled: e.disabled,
352
- errors: x(ke),
352
+ errors: b(Ae),
353
353
  "has-errors": e.hasErrors,
354
354
  "has-warnings": e.hasWarnings,
355
355
  "hide-label": e.hideLabel,
@@ -357,44 +357,44 @@ var Se = [
357
357
  "input-align": e.inputAlign,
358
358
  label: e.label,
359
359
  "label-align": e.labelAlign,
360
- "label-mode": Me.value,
360
+ "label-mode": Ne.value,
361
361
  "label-position": e.labelPosition,
362
362
  layout: e.layout,
363
363
  name: e.name,
364
- passthrough: x(O),
365
- readonly: e.readonly,
364
+ passthrough: b(O),
365
+ readonly: b(E),
366
366
  reverse: e.reverse,
367
- "show-asterisk": x(Oe),
368
- "show-hint": Ne.value,
367
+ "show-asterisk": b(ke),
368
+ "show-hint": Pe.value,
369
369
  warnings: e.warnings
370
- }, x(O).forwardAttrs), pe({
371
- label: S((t) => [b(e.$slots, "label", _(h(t)))]),
372
- input: S(({ id: t, hasErrors: n, hasWarnings: r, ariaDescribedby: i }) => [p("span", { class: me(["bb-slider__body", {
370
+ }, b(O).forwardAttrs), pe({
371
+ label: x((t) => [y(e.$slots, "label", g(m(t)))]),
372
+ input: x(({ id: t, hasErrors: n, hasWarnings: r, ariaDescribedby: i }) => [p("span", { class: he(["bb-slider__body", {
373
373
  "bb-slider__body--compact": e.compact,
374
374
  "bb-slider__body--disabled": e.disabled,
375
375
  "bb-slider__body--errors": n,
376
376
  "bb-slider__body--warnings": !!r && !n,
377
- "bb-slider__body--readonly": e.readonly
377
+ "bb-slider__body--readonly": b(E)
378
378
  }]) }, [
379
- b(e.$slots, "prepend", {
380
- decrease: q,
381
- increase: Ue
379
+ y(e.$slots, "prepend", {
380
+ decrease: Ge,
381
+ increase: We
382
382
  }),
383
- p("span", g({
383
+ p("span", h({
384
384
  ref_key: "container",
385
385
  ref: M
386
- }, g(Ze, x(O).box), {
386
+ }, h(Qe, b(O).box), {
387
387
  class: "bb-slider__box",
388
388
  "data-bb-no-drag": ""
389
389
  }), [
390
- $.value.length ? (v(), f("span", g({
390
+ $.value.length ? (_(), f("span", h({
391
391
  key: 0,
392
392
  class: "bb-slider__ticks"
393
- }, x(O).ticks), [(v(!0), f(de, null, ve($.value, (t) => (v(), f("span", g({
393
+ }, b(O).ticks), [(_(!0), f(de, null, ye($.value, (t) => (_(), f("span", h({
394
394
  key: t.value,
395
395
  class: ["bb-slider__tick", { "bb-slider__tick--in-range": t.active }],
396
396
  ref_for: !0
397
- }, x(O).part("tick", { inRange: t.active })), [b(e.$slots, "tick", {
397
+ }, b(O).part("tick", { inRange: t.active })), [y(e.$slots, "tick", {
398
398
  active: t.active,
399
399
  percent: t.percent,
400
400
  value: t.value
@@ -410,10 +410,10 @@ var Se = [
410
410
  readonly: !0,
411
411
  tabindex: -1,
412
412
  type: "text",
413
- value: Ve(K.value[0]),
414
- onFocus: Fe
415
- }, null, 40, Se),
416
- K.value.length > 1 ? (v(), f("input", {
413
+ value: He(K.value[0]),
414
+ onFocus: Ie
415
+ }, null, 40, Ce),
416
+ K.value.length > 1 ? (_(), f("input", {
417
417
  key: 1,
418
418
  "aria-hidden": "true",
419
419
  class: "bb-sr-only",
@@ -422,15 +422,15 @@ var Se = [
422
422
  readonly: !0,
423
423
  tabindex: -1,
424
424
  type: "text",
425
- value: Ve(K.value[1]),
426
- onFocus: Fe
427
- }, null, 40, Ce)) : d("", !0),
428
- p("span", g({
425
+ value: He(K.value[1]),
426
+ onFocus: Ie
427
+ }, null, 40, we)) : d("", !0),
428
+ p("span", h({
429
429
  ref_key: "track",
430
430
  ref: N,
431
431
  class: "bb-slider__track"
432
- }, x(O).track), [p("span", _(h(g(Qe.value, x(O).bar))), null, 16)], 16),
433
- x(T).range ? (v(), f("span", g({ key: 2 }, Be.value, {
432
+ }, b(O).track), [p("span", g(m(h($e.value, b(O).bar))), null, 16)], 16),
433
+ b(w).range ? (_(), f("span", h({ key: 2 }, Ve.value, {
434
434
  key: "thumblower",
435
435
  ref_key: "thumblower",
436
436
  ref: P,
@@ -438,33 +438,33 @@ var Se = [
438
438
  "aria-disabled": e.disabled ? "true" : void 0,
439
439
  "aria-labelledby": j(t, "lower"),
440
440
  "aria-orientation": "horizontal",
441
- "aria-readonly": e.readonly ? "true" : void 0,
441
+ "aria-readonly": b(E) ? "true" : void 0,
442
442
  "aria-valuemax": e.max,
443
443
  "aria-valuemin": e.min,
444
444
  "aria-valuenow": z.value,
445
445
  class: "bb-slider__thumb-container",
446
446
  "data-thumb": "lower",
447
447
  role: "slider",
448
- style: { left: Ie(L.value) },
448
+ style: { left: Le(L.value) },
449
449
  tabindex: e.disabled ? -1 : 0,
450
- onFocus: qe,
451
- onKeydown: Ke
452
- }), [p("span", g({
450
+ onFocus: Z,
451
+ onKeydown: Je
452
+ }), [p("span", h({
453
453
  class: ["bb-slider__thumb bb-slider__thumb--lower", { "bb-slider__thumb--focused": U.value === "lower" }],
454
454
  style: {
455
455
  transform: `translateY(-50%) ${e.disableThumbTranslate ? "translateX(-50%)" : `translateX(-${L.value}%)`}`,
456
456
  left: "0"
457
457
  }
458
- }, x(O).thumb), [b(e.$slots, "thumb:lower", {
458
+ }, b(O).thumb), [y(e.$slots, "thumb:lower", {
459
459
  focused: U.value === "lower",
460
460
  percent: L.value,
461
461
  value: z.value
462
- }, () => [b(e.$slots, "thumb", {
462
+ }, () => [y(e.$slots, "thumb", {
463
463
  focused: U.value === "lower",
464
464
  percent: L.value,
465
465
  value: z.value
466
- })])], 16)], 16, we)) : d("", !0),
467
- p("span", g(Be.value, {
466
+ })])], 16)], 16, Te)) : d("", !0),
467
+ p("span", h(Ve.value, {
468
468
  key: "thumbhigher",
469
469
  ref_key: "thumbhigher",
470
470
  ref: F,
@@ -472,49 +472,49 @@ var Se = [
472
472
  "aria-disabled": e.disabled ? "true" : void 0,
473
473
  "aria-labelledby": j(t, "higher"),
474
474
  "aria-orientation": "horizontal",
475
- "aria-readonly": e.readonly ? "true" : void 0,
475
+ "aria-readonly": b(E) ? "true" : void 0,
476
476
  "aria-valuemax": e.max,
477
477
  "aria-valuemin": e.min,
478
478
  "aria-valuenow": B.value,
479
479
  class: "bb-slider__thumb-container",
480
480
  "data-thumb": "higher",
481
481
  role: "slider",
482
- style: { left: Ie(R.value) },
482
+ style: { left: Le(R.value) },
483
483
  tabindex: e.disabled ? -1 : 0,
484
- onFocus: qe,
485
- onKeydown: Ke
486
- }), [p("span", g({
484
+ onFocus: Z,
485
+ onKeydown: Je
486
+ }), [p("span", h({
487
487
  class: ["bb-slider__thumb bb-slider__thumb--higher", { "bb-slider__thumb--focused": U.value === "higher" }],
488
488
  style: {
489
489
  transform: `translateY(-50%) ${e.disableThumbTranslate ? "translateX(-50%)" : `translateX(-${R.value}%)`}`,
490
490
  left: "0"
491
491
  }
492
- }, x(O).thumb), [b(e.$slots, "thumb:higher", {
492
+ }, b(O).thumb), [y(e.$slots, "thumb:higher", {
493
493
  focused: U.value === "higher",
494
494
  percent: R.value,
495
495
  value: B.value
496
- }, () => [b(e.$slots, "thumb", {
496
+ }, () => [y(e.$slots, "thumb", {
497
497
  focused: U.value === "higher",
498
498
  percent: R.value,
499
499
  value: B.value
500
- })])], 16)], 16, Te)
500
+ })])], 16)], 16, Ee)
501
501
  ], 16),
502
- b(e.$slots, "append", {
503
- decrease: q,
504
- increase: Ue
502
+ y(e.$slots, "append", {
503
+ decrease: Ge,
504
+ increase: We
505
505
  }),
506
- x(T).range ? (v(), f(de, { key: 0 }, [p("span", {
506
+ b(w).range ? (_(), f(de, { key: 0 }, [p("span", {
507
507
  id: `${t}__thumb_label_lower`,
508
508
  hidden: ""
509
- }, ye(x(A)("slider.minimumThumb").value), 9, Ee), p("span", {
509
+ }, be(b(A)("slider.minimumThumb").value), 9, De), p("span", {
510
510
  id: `${t}__thumb_label_higher`,
511
511
  hidden: ""
512
- }, ye(x(A)("slider.maximumThumb").value), 9, De)], 64)) : d("", !0)
512
+ }, be(b(A)("slider.maximumThumb").value), 9, Oe)], 64)) : d("", !0)
513
513
  ], 2)]),
514
514
  _: 2
515
515
  }, [e.$slots.description ? {
516
516
  name: "description",
517
- fn: S((t) => [b(e.$slots, "description", _(h(t)))]),
517
+ fn: x((t) => [y(e.$slots, "description", g(m(t)))]),
518
518
  key: "0"
519
519
  } : void 0]), 1040, [
520
520
  "id",
@@ -543,4 +543,4 @@ var Se = [
543
543
  }
544
544
  });
545
545
  //#endregion
546
- export { C as default };
546
+ export { S as default };