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

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 (345) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbAvatar.md +86 -58
  6. package/dist/ai/BbBadge.md +5 -5
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +2 -2
  9. package/dist/ai/BbCalendar.md +9 -5
  10. package/dist/ai/BbCheckboxGroup.md +5 -4
  11. package/dist/ai/BbColorInput.md +12 -0
  12. package/dist/ai/BbColorPalette.md +19 -15
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePicker.md +16 -3
  15. package/dist/ai/BbDatePickerInput.md +17 -1
  16. package/dist/ai/BbDialog.md +16 -4
  17. package/dist/ai/BbDropdown.md +175 -67
  18. package/dist/ai/BbDropdownButton.md +27 -8
  19. package/dist/ai/BbForm.md +4 -1
  20. package/dist/ai/BbHoverCardPortal.md +1 -1
  21. package/dist/ai/BbNumberInput.md +8 -4
  22. package/dist/ai/BbPopoverPortal.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +79 -67
  25. package/dist/ai/BbSelectPopover.md +24 -5
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +59 -34
  28. package/dist/ai/BbTimePicker.md +16 -3
  29. package/dist/ai/BbTimePickerInput.md +15 -1
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbToastPortal.md +1 -1
  32. package/dist/ai/BbTree.md +5 -1
  33. package/dist/ai/CommonPopover.md +1 -0
  34. package/dist/ai/FlatListBox.md +1 -0
  35. package/dist/ai/GroupedListBox.md +1 -0
  36. package/dist/ai/ListBox.md +1 -0
  37. package/dist/ai/OptionsContainer.md +4 -4
  38. package/dist/ai/changelog.json +215 -6
  39. package/dist/ai/components.json +77 -43
  40. package/dist/ai/composables/useToast.md +2 -2
  41. package/dist/ai/design-tokens.json +60 -0
  42. package/dist/ai/guides/agent-contract.md +8 -4
  43. package/dist/ai/guides/design-tokens.md +33 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/inertia-helpers.md +613 -53
  47. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  48. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  49. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  50. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  53. package/dist/ai/guides/migration/v2-to-v3.md +46 -5
  54. package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
  55. package/dist/ai/guides/passthrough.md +3 -3
  56. package/dist/ai/guides/preset-components.md +15 -2
  57. package/dist/ai/guides/reporting.md +49 -0
  58. package/dist/ai/helpers/inertia/manifest.json +33 -38
  59. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  60. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  61. package/dist/ai/helpers/inertia/utils.ts +552 -3
  62. package/dist/ai/index.md +2 -1
  63. package/dist/ai/manifest/common.json +1 -0
  64. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  65. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  66. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  67. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  68. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  69. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  70. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  71. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  72. package/dist/ai/manifest/components/BbColorPalette.json +7 -4
  73. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  74. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  75. package/dist/ai/manifest/components/BbDatePicker.json +6 -3
  76. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  77. package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
  78. package/dist/ai/manifest/components/BbDropdown.json +23 -17
  79. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  80. package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
  81. package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
  82. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  83. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  84. package/dist/ai/manifest/components/BbForm.json +1 -1
  85. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  86. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  87. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  88. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbPopover.json +1 -1
  90. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  91. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  92. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  93. package/dist/ai/manifest/components/BbSelect.json +10 -7
  94. package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
  95. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  96. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  97. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  98. package/dist/ai/manifest/components/BbTable.json +6 -6
  99. package/dist/ai/manifest/components/BbTable.tree.json +16 -6
  100. package/dist/ai/manifest/components/BbTimePicker.json +7 -4
  101. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  102. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  103. package/dist/ai/manifest/components/BbTree.json +1 -1
  104. package/dist/ai/manifest/components/CommonPopover.json +2 -1
  105. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  106. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  107. package/dist/ai/manifest/components/ListBox.json +2 -1
  108. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +36 -3
  111. package/dist/ai/manifest/types.advanced.json +81 -80
  112. package/dist/ai/manifest/types.api.json +64 -65
  113. package/dist/ai/manifest/types.wrapper.json +155 -118
  114. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  116. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  117. package/dist/ai/source/BbAlert.md +16 -4
  118. package/dist/ai/source/BbAvatar.md +121 -9
  119. package/dist/ai/source/BbBadge.md +12 -5
  120. package/dist/ai/source/BbBreadcrumbs.md +56 -55
  121. package/dist/ai/source/BbButton.md +41 -25
  122. package/dist/ai/source/BbCalendar.md +22 -12
  123. package/dist/ai/source/BbCarousel.md +31 -28
  124. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  125. package/dist/ai/source/BbColorInput.md +19 -0
  126. package/dist/ai/source/BbColorPalette.md +59 -12
  127. package/dist/ai/source/BbConfirm.md +7 -0
  128. package/dist/ai/source/BbConfirmPortal.md +9 -4
  129. package/dist/ai/source/BbDatePicker.md +71 -22
  130. package/dist/ai/source/BbDatePickerInput.md +72 -9
  131. package/dist/ai/source/BbDialog.md +45 -2
  132. package/dist/ai/source/BbDropdown.md +263 -63
  133. package/dist/ai/source/BbDropdownButton.md +27 -2
  134. package/dist/ai/source/BbDropdownGroup.md +121 -59
  135. package/dist/ai/source/BbForm.md +73 -6
  136. package/dist/ai/source/BbGallery.md +76 -55
  137. package/dist/ai/source/BbHost.md +12 -0
  138. package/dist/ai/source/BbHoverCard.md +7 -0
  139. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  140. package/dist/ai/source/BbNumberInput.md +22 -16
  141. package/dist/ai/source/BbOffCanvas.md +48 -2
  142. package/dist/ai/source/BbPopover.md +7 -0
  143. package/dist/ai/source/BbPopoverPortal.md +9 -5
  144. package/dist/ai/source/BbRadio.md +4 -3
  145. package/dist/ai/source/BbRadioGroup.md +19 -10
  146. package/dist/ai/source/BbSelect.md +35 -20
  147. package/dist/ai/source/BbSelectPopover.md +116 -8
  148. package/dist/ai/source/BbSwitchGroup.md +11 -4
  149. package/dist/ai/source/BbTable.md +126 -32
  150. package/dist/ai/source/BbTag.md +10 -3
  151. package/dist/ai/source/BbTimePicker.md +69 -15
  152. package/dist/ai/source/BbTimePickerInput.md +45 -7
  153. package/dist/ai/source/BbToast.md +16 -2
  154. package/dist/ai/source/BbToastPortal.md +18 -6
  155. package/dist/ai/source/BbTree.md +1 -1
  156. package/dist/ai/source/CommonFieldInput.md +11 -5
  157. package/dist/ai/source/CommonPopover.md +28 -2
  158. package/dist/ai/source/FlatListBox.md +26 -5
  159. package/dist/ai/source/GroupedListBox.md +63 -11
  160. package/dist/ai/source/ListBox.md +4 -0
  161. package/dist/ai/source/OptionsContainer.md +29 -11
  162. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  163. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  164. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  165. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  166. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  167. package/dist/components/BbAvatar/types.d.ts +24 -5
  168. package/dist/components/BbAvatar/types.js +5 -1
  169. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  170. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  171. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  172. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  173. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  174. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  175. package/dist/components/BbCalendar/types.d.ts +2 -2
  176. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  177. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  178. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  180. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  181. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  182. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  183. package/dist/components/BbColorInput/types.d.ts +7 -0
  184. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  185. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
  186. package/dist/components/BbColorPalette/types.d.ts +8 -1
  187. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  188. package/dist/components/BbConfirm/types.d.ts +5 -0
  189. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
  190. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
  191. package/dist/components/BbDatePicker/types.d.ts +9 -2
  192. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  193. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
  194. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  195. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
  196. package/dist/components/BbDialog/leaveGhost.js +38 -0
  197. package/dist/components/BbDialog/overlayActions.js +34 -20
  198. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  199. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  200. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
  201. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
  202. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  203. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  204. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
  205. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  206. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  207. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  208. package/dist/components/BbDropdown/types.d.ts +73 -58
  209. package/dist/components/BbDropdown/types.js +1 -0
  210. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  211. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  212. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  213. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  214. package/dist/components/BbDropdownButton/types.js +2 -0
  215. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  216. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  217. package/dist/components/BbForm/types.d.ts +31 -0
  218. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  219. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  220. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  221. package/dist/components/BbHoverCard/types.d.ts +5 -0
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
  223. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  224. package/dist/components/BbNumberInput/types.d.ts +4 -3
  225. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
  226. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  227. package/dist/components/BbPopover/types.d.ts +5 -0
  228. package/dist/components/BbRadio/types.d.ts +4 -3
  229. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
  230. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  231. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  232. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  233. package/dist/components/BbSelect/types.d.ts +23 -20
  234. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  235. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  236. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  237. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  238. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  239. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  240. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
  241. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  242. package/dist/components/BbTable/types.d.ts +11 -10
  243. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  244. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  245. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
  246. package/dist/components/BbTimePicker/types.d.ts +9 -2
  247. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  248. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
  249. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  250. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  251. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  252. package/dist/components/BbToast/types.d.ts +7 -2
  253. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  254. package/dist/components/BbTree/types.d.ts +1 -1
  255. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  256. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
  257. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  258. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  259. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  260. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  261. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  262. package/dist/composables/formSubmitLock.js +2 -1
  263. package/dist/composables/overlayRegistry.js +52 -42
  264. package/dist/composables/useActiveInactiveState.js +8 -4
  265. package/dist/composables/useBbDialog.js +5 -5
  266. package/dist/composables/useItemsGetter.js +34 -32
  267. package/dist/composables/useOpenModel.js +20 -0
  268. package/dist/composables/useOwnModel.js +16 -0
  269. package/dist/composables/useSegmentedFields.js +31 -20
  270. package/dist/deprecation/ai-deprecations.json.js +1 -1
  271. package/dist/i18n/currencyDigits.js +58 -0
  272. package/dist/i18n/locales/ar.json +2 -0
  273. package/dist/i18n/locales/cs.json +2 -0
  274. package/dist/i18n/locales/da.json +2 -0
  275. package/dist/i18n/locales/de-CH.json +2 -0
  276. package/dist/i18n/locales/de.json +2 -0
  277. package/dist/i18n/locales/el.json +2 -0
  278. package/dist/i18n/locales/en-GB.json +2 -0
  279. package/dist/i18n/locales/en.json +2 -0
  280. package/dist/i18n/locales/es-MX.json +2 -0
  281. package/dist/i18n/locales/es.json +2 -0
  282. package/dist/i18n/locales/fa.json +2 -0
  283. package/dist/i18n/locales/fi.json +2 -0
  284. package/dist/i18n/locales/fr.json +2 -0
  285. package/dist/i18n/locales/he.json +2 -0
  286. package/dist/i18n/locales/hu.json +2 -0
  287. package/dist/i18n/locales/it.json +2 -0
  288. package/dist/i18n/locales/ja.json +2 -0
  289. package/dist/i18n/locales/ko.json +2 -0
  290. package/dist/i18n/locales/nb.json +2 -0
  291. package/dist/i18n/locales/nl.json +2 -0
  292. package/dist/i18n/locales/pl.json +2 -0
  293. package/dist/i18n/locales/pt-BR.json +2 -0
  294. package/dist/i18n/locales/pt-PT.json +2 -0
  295. package/dist/i18n/locales/ro.json +2 -0
  296. package/dist/i18n/locales/ru.json +2 -0
  297. package/dist/i18n/locales/sv.json +2 -0
  298. package/dist/i18n/locales/tr.json +2 -0
  299. package/dist/i18n/locales/uk.json +2 -0
  300. package/dist/i18n/locales/zh-CN.json +2 -0
  301. package/dist/i18n/locales/zh-HK.json +2 -0
  302. package/dist/i18n/locales/zh-TW.json +2 -0
  303. package/dist/i18n/regionDates.js +250 -0
  304. package/dist/i18n/regionHints.js +30 -41
  305. package/dist/icon-scan.js +68 -61
  306. package/dist/index.d.ts +35 -31
  307. package/dist/llms-full.txt +1428 -400
  308. package/dist/llms-medium.txt +8 -4
  309. package/dist/llms.txt +4 -2
  310. package/dist/locale-blueprint.json +2 -0
  311. package/dist/styles.css +2 -2
  312. package/dist/types/ActionButton.d.ts +2 -1
  313. package/dist/types/CommonProps.d.ts +8 -0
  314. package/dist/types/Option.d.ts +10 -0
  315. package/dist/types/ptComponentMap.d.ts +3 -3
  316. package/dist/utilities/functions/hash.js +97 -64
  317. package/dist/utilities/functions/isEqual.js +33 -25
  318. package/dist/utilities/functions/slotContent.js +19 -0
  319. package/dist/utils/loadRetry.js +8 -0
  320. package/dist/utils/versionCheck.js +1 -1
  321. package/dist/vite-plugin.d.ts +2 -1
  322. package/dist/vite.js +11 -4
  323. package/llms.txt +4 -2
  324. package/package.json +3 -2
  325. package/scripts/README.md +3 -1
  326. package/scripts/lib/adoption-checklist.json +6 -5
  327. package/scripts/lib/agent-manifest.mjs +33 -6
  328. package/scripts/lib/agent-setup.mjs +90 -24
  329. package/scripts/lib/cldr-pins.ts +182 -0
  330. package/scripts/lib/engines-include.d.mts +5 -0
  331. package/scripts/lib/engines-include.mjs +40 -0
  332. package/scripts/lib/eslint-plugin.mjs +8 -2
  333. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  334. package/scripts/lib/idiom-scan.mjs +30 -3
  335. package/scripts/lib/legacy-agent-files.json +152 -0
  336. package/scripts/lib/mcp-config.mjs +74 -7
  337. package/scripts/lib/portal-names.mjs +78 -8
  338. package/scripts/lib/release-results.mjs +5 -2
  339. package/scripts/lib/report.mjs +340 -0
  340. package/scripts/lib/run-beat.mjs +14 -0
  341. package/scripts/lib/run-records.mjs +313 -0
  342. package/scripts/lib/selector-log.mjs +98 -0
  343. package/scripts/lib/ticket-beat.mjs +30 -0
  344. package/scripts/lib/validate-bb-markup.mjs +37 -2
  345. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -10,7 +10,13 @@ var w = /*@__PURE__*/ g({
10
10
  name: "BbHost",
11
11
  __name: "BbHost",
12
12
  setup(g) {
13
- let w = _(), T = t(w.appContext), E = S(!1), D = d(() => E.value && T.owner.value === w), O = T.openings, k;
13
+ let w = _();
14
+ n(w) && (w.ids = [
15
+ `h${w.uid}-`,
16
+ 0,
17
+ 0
18
+ ]);
19
+ let T = t(w.appContext), E = S(!1), D = d(() => E.value && T.owner.value === w), O = T.openings, k;
14
20
  return y(() => {
15
21
  let t = r(T, w);
16
22
  k = t.unregister, E.value = !0, t.owns && o(T), process.env.NODE_ENV !== "production" && !t.owns && !n(w) && e().warn("A second <BbHost /> is mounted; it renders nothing while the first one is mounted. The plugin already renders one: place a <BbHost /> only where an area needs its own (inside its <BbConfigScope>), one at a time.");
@@ -1,4 +1,4 @@
1
- import { BbHoverCardPortalSlotProps } from './types.js';
1
+ import { BbHoverCardPortalSlots } from './types.js';
2
2
  /**
3
3
  * Content for `v-bb-hover-card="'<name>'"` (or `{ portal: '<name>' }`),
4
4
  * declared once in a template. Renders nothing in place: the card renders the
@@ -8,10 +8,7 @@ type __VLS_Props = {
8
8
  /** The name a `v-bb-hover-card` passes as its value (`"'name'"`) or as `portal: 'name'`. */
9
9
  name: string;
10
10
  };
11
- type __VLS_Slots = {
12
- /** The card's body. `data` is the directive's `data`; `close` closes the card. */
13
- default?: (scope: BbHoverCardPortalSlotProps) => any;
14
- };
11
+ type __VLS_Slots = BbHoverCardPortalSlots;
15
12
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
14
  declare const _default: typeof __VLS_export;
@@ -184,3 +184,8 @@ export type BbHoverCardPortalSlotProps<P = any> = {
184
184
  /** Closes the card. */
185
185
  close: () => void;
186
186
  };
187
+ /** BbHoverCardPortal's slots; index it for one slot's type: `BbHoverCardPortalSlots<MyData>['default']`. */
188
+ export type BbHoverCardPortalSlots<P = any> = {
189
+ /** The card's body. `data` is the directive's `data`; `close` closes the card. */
190
+ default?: (scope: BbHoverCardPortalSlotProps<P>) => any;
191
+ };
@@ -262,7 +262,7 @@ var Re = [
262
262
  ...p.variant,
263
263
  current: () => C.variant ?? "outline"
264
264
  }
265
- }), M = v(null), N = m(() => A.value ? null : le(oe(Ge.locale), C.currency, C.unit)), Ye = m(() => N.value?.kind === "currency" ? de(N.value.code, N.value.tag) : null), P = m(() => k.maxPrecision ?? (Ye.value ? Math.max(Ye.value.max, C.minPrecision ?? 0) : 8)), Xe = m(() => C.minPrecision ?? Ye.value?.min ?? 0), F = m(() => A.value && !(Xe.value > 0)), I = m(() => A.value ? ce : he(oe(Ge.locale), N.value?.kind === "currency" ? N.value.code : void 0)), L = m(() => Math.max(0, Math.min(Xe.value, P.value))), Ze = () => ({
265
+ }), M = v(null), N = m(() => A.value ? null : le(oe(Ge.locale), C.currency, C.unit)), Ye = m(() => N.value?.kind === "currency" ? de(N.value.code) : null), P = m(() => k.maxPrecision ?? (Ye.value ? Math.max(Ye.value.max, C.minPrecision ?? 0) : 8)), Xe = m(() => C.minPrecision ?? Ye.value?.min ?? 0), F = m(() => A.value && !(Xe.value > 0)), I = m(() => A.value ? ce : he(oe(Ge.locale), N.value?.kind === "currency" ? N.value.code : void 0)), L = m(() => Math.max(0, Math.min(Xe.value, P.value))), Ze = () => ({
266
266
  maxPrecision: P.value,
267
267
  minPrecision: Xe.value,
268
268
  max: C.max,
@@ -522,16 +522,20 @@ var Re = [
522
522
  return ne(n, t ? C.min : -Infinity, C.max);
523
523
  }, jt = () => {
524
524
  if (D.value) return;
525
+ let e = (e) => e < C.min ? C.min : e > C.max ? C.max : e;
525
526
  if (!F.value) {
526
527
  Z();
527
- let e = xe(z.raw);
528
- if (typeof e != "number" || e >= C.min) return;
529
- K(ge(C.min, P.value)), G.value = C.min, J(q() ? z.raw.length : void 0), w("update:modelValue", C.min);
528
+ let t = xe(z.raw);
529
+ if (typeof t != "number" || e(t) === t) return;
530
+ let n = e(t);
531
+ K(ge(n, P.value)), G.value = n, J(q() ? z.raw.length : void 0), w("update:modelValue", n);
530
532
  return;
531
533
  }
532
534
  if (!M.value?.value) return;
533
- let e = Number(Ut(M.value.value));
534
- !Number.isFinite(e) || e >= C.min || (M.value.value = C.min.toString(), w("update:modelValue", C.min));
535
+ let t = Number(Ut(M.value.value));
536
+ if (!Number.isFinite(t) || e(t) === t) return;
537
+ let n = e(t);
538
+ M.value.value = n.toString(), w("update:modelValue", n);
535
539
  }, Mt = (e) => {
536
540
  let t = Number(C.modelValue || 0);
537
541
  return At(t + e);
@@ -1,5 +1,6 @@
1
+ import { CURRENCY_DIGITS as e } from "../../i18n/currencyDigits.js";
1
2
  // src/components/BbNumberInput/numberDisplay.ts
2
- var e = {
3
+ var t = {
3
4
  tag: "en",
4
5
  decimal: ".",
5
6
  group: "",
@@ -7,33 +8,33 @@ var e = {
7
8
  secondary: 3,
8
9
  groupInt: null,
9
10
  minusPrefix: "-"
10
- }, t = /[\u200e\u200f\u061c]/g, n = " \xA0   ", r = "'’ʼ", i = "٫", a = "-−﹣-", o = /* @__PURE__ */ new Map(), s = (e, n) => {
11
- let r = n ? `${e}|${n}` : e, i = o.get(r);
11
+ }, n = /[\u200e\u200f\u061c]/g, r = " \xA0               ", i = "'’‘ʼʹ´`′", a = "٫", o = "-−﹣-", s = /* @__PURE__ */ new Map(), c = (e, t) => {
12
+ let r = t ? `${e}|${t}` : e, i = s.get(r);
12
13
  if (i) return i;
13
- let a, c = null;
14
+ let a, o = null;
14
15
  try {
15
16
  a = new Intl.NumberFormat(e, {
16
17
  maximumFractionDigits: 0,
17
18
  numberingSystem: "latn",
18
19
  useGrouping: "auto"
19
- }), n && (c = new Intl.NumberFormat(e, {
20
+ }), t && (o = new Intl.NumberFormat(e, {
20
21
  style: "currency",
21
- currency: n,
22
+ currency: t,
22
23
  maximumFractionDigits: 0,
23
24
  numberingSystem: "latn",
24
25
  useGrouping: "auto"
25
26
  }));
26
27
  } catch {
27
- return s(n ? e : "en");
28
+ return c(t ? e : "en");
28
29
  }
29
30
  let l = new Intl.NumberFormat(e, {
30
- ...n ? {
31
+ ...t ? {
31
32
  style: "currency",
32
- currency: n
33
+ currency: t
33
34
  } : {},
34
35
  numberingSystem: "latn",
35
36
  useGrouping: "always"
36
- }).formatToParts(1234567890.5), u = l.find((e) => e.type === "decimal")?.value ?? (n ? s(e).decimal : "."), d = l.find((e) => e.type === "group")?.value ?? "", f = l.filter((e) => e.type === "integer").map((e) => e.value), p = f.length > 1 ? f[f.length - 1].length : 3, m = f.length > 2 ? f[f.length - 2].length : p, h = "";
37
+ }).formatToParts(1234567890.5), u = l.find((e) => e.type === "decimal")?.value ?? (t ? c(e).decimal : "."), d = l.find((e) => e.type === "group")?.value ?? "", f = l.filter((e) => e.type === "integer").map((e) => e.value), p = f.length > 1 ? f[f.length - 1].length : 3, m = f.length > 2 ? f[f.length - 2].length : p, h = "";
37
38
  for (let e of a.formatToParts(-1)) {
38
39
  if (e.type === "integer") break;
39
40
  e.type === "minusSign" ? h += "-" : e.type === "literal" && (h += e.value.replace(/[^\u200e\u200f\u061c]/g, ""));
@@ -41,41 +42,32 @@ var e = {
41
42
  h.includes("-") || (h = "-");
42
43
  let g = {
43
44
  tag: e,
44
- decimal: u.replace(t, ""),
45
- group: d.replace(t, ""),
45
+ decimal: u.replace(n, ""),
46
+ group: d.replace(n, ""),
46
47
  primary: p,
47
48
  secondary: m,
48
- groupInt: c ? (e) => c.formatToParts(e).filter((e) => e.type === "integer" || e.type === "group").map((e) => e.value).join("").replace(t, "") : (e) => a.format(e).replace(t, "").replace(/^[-\u2212]/, ""),
49
+ groupInt: o ? (e) => o.formatToParts(e).filter((e) => e.type === "integer" || e.type === "group").map((e) => e.value).join("").replace(n, "") : (e) => a.format(e).replace(n, "").replace(/^[-\u2212]/, ""),
49
50
  minusPrefix: h
50
51
  };
51
- return o.set(r, g), g;
52
- }, c = /* @__PURE__ */ new Map(), l = (e, t) => {
53
- let n = `${t}|${e}`;
54
- if (c.has(n)) return c.get(n);
55
- let r = null;
56
- try {
57
- let { minimumFractionDigits: n, maximumFractionDigits: i } = new Intl.NumberFormat(t, {
58
- style: "currency",
59
- currency: e
60
- }).resolvedOptions();
61
- r = {
62
- min: n ?? 0,
63
- max: i ?? 0
64
- };
65
- } catch {
66
- r = null;
67
- }
68
- return c.set(n, r), r;
52
+ return s.set(r, g), g;
53
+ }, l = (t) => {
54
+ if (!/^[a-z]{3}$/i.test(t)) return null;
55
+ let n = e[t.toUpperCase()] ?? 2;
56
+ return {
57
+ min: n,
58
+ max: n
59
+ };
69
60
  }, u = (e) => {
70
61
  let t = e;
71
62
  for (; t > 0 && /\p{Nd}/u.test(String.fromCodePoint(t - 1));) t--;
72
63
  return t;
73
64
  }, d = (e) => {
65
+ if (i.includes(e)) return e;
74
66
  let t = e.normalize("NFKC");
75
67
  if (t.length !== 1 && [...t].length !== 1) return t;
76
68
  let n = t.codePointAt(0);
77
- return n >= 48 && n <= 57 ? t : a.includes(t) ? "-" : /\p{Nd}/u.test(t) ? String((n - u(n)) % 10) : t;
78
- }, f = (e) => [...e.replace(t, "")].map(d).join(""), p = (e) => e >= "0" && e <= "9", m = (e, t, n) => {
69
+ return n >= 48 && n <= 57 ? t : o.includes(t) ? "-" : /\p{Nd}/u.test(t) ? String((n - u(n)) % 10) : t;
70
+ }, f = (e) => [...e.replace(n, "")].map(d).join(""), p = (e) => e >= "0" && e <= "9", m = (e, t, n) => {
79
71
  let r = e.startsWith("-"), i = r ? e.slice(1) : e, a = i.indexOf("."), o = a === -1 ? i : i.slice(0, a), s = a === -1 ? "" : i.slice(a + 1), c = o.length > 1 && o.startsWith("0"), l = o && t.groupInt && !c ? t.groupInt(o) : o, u = [], d = "";
80
72
  r && (u.push(t.minusPrefix.indexOf("-")), d = t.minusPrefix);
81
73
  for (let e of l) p(e) && u.push(d.length), d += e;
@@ -169,41 +161,41 @@ var e = {
169
161
  digits: s,
170
162
  negative: n
171
163
  };
172
- }, T = (e, t, n) => {
164
+ }, ee = (e, t, n) => {
173
165
  let r = w(t, n), i = b(e, r.digits), a = (e) => i ? i.formatToParts(e) : [];
174
166
  return C(a(r.text)) ?? C(a(r.negative ? "-5" : "5")) ?? {
175
167
  before: "",
176
168
  after: "",
177
169
  minusAt: -1
178
170
  };
179
- }, E = /* @__PURE__ */ new Set([
171
+ }, T = /* @__PURE__ */ new Set([
180
172
  "Arab",
181
173
  "Hebr",
182
174
  "Thaa",
183
175
  "Syrc",
184
176
  "Nkoo",
185
177
  "Adlm"
186
- ]), D = /* @__PURE__ */ new Map(), O = (e) => {
187
- let t = D.get(e);
178
+ ]), E = /* @__PURE__ */ new Map(), D = (e) => {
179
+ let t = E.get(e);
188
180
  if (t === void 0) {
189
181
  try {
190
- t = E.has(new Intl.Locale(e).maximize().script ?? "");
182
+ t = T.has(new Intl.Locale(e).maximize().script ?? "");
191
183
  } catch {
192
184
  t = !1;
193
185
  }
194
- D.set(e, t);
186
+ E.set(e, t);
195
187
  }
196
188
  return t;
197
- }, k = (e, t, n, r) => {
189
+ }, O = (e, t, n, r) => {
198
190
  let i = m(e, t, n);
199
191
  if (!r || !/\d/.test(e)) return i;
200
- let a = e.startsWith("-"), o = T(r, e, n.minPrecision), { before: s, minusAt: c } = o, l = i.text, u = i.positions;
192
+ let a = e.startsWith("-"), o = ee(r, e, n.minPrecision), { before: s, minusAt: c } = o, l = i.text, u = i.positions;
201
193
  if (a) {
202
194
  let e = t.minusPrefix.length;
203
195
  l = l.slice(e), u = u.slice(1).map((t) => t - e), c === -1 && (c = s.length, s += "-");
204
196
  }
205
197
  let { after: d } = o;
206
- O(r.tag) && /[\p{Script=Latin}\p{Sc}#%°‰]$/u.test(d) && (d += "‎");
198
+ D(r.tag) && /[\p{Script=Latin}\p{Sc}#%°‰]$/u.test(d) && (d += "‎");
207
199
  let f = s.length;
208
200
  return {
209
201
  text: s + l + d,
@@ -211,113 +203,113 @@ var e = {
211
203
  hole: [f, f + l.length],
212
204
  shell: `${s}\u0000${d}`
213
205
  };
214
- }, A = ["¥", "¥"], j = [
206
+ }, k = ["¥", "¥"], A = [
215
207
  "0",
216
208
  "1",
217
209
  "2",
218
210
  "5",
219
211
  "1.5",
220
212
  "1234.5"
221
- ], M = /* @__PURE__ */ new Map(), N = (e) => {
222
- let n = `${e.tag}|${e.kind}|${e.code}`, r = M.get(n);
213
+ ], j = /* @__PURE__ */ new Map(), M = (e) => {
214
+ let t = `${e.tag}|${e.kind}|${e.code}`, r = j.get(t);
223
215
  if (r) return r;
224
216
  let i = /* @__PURE__ */ new Set(), a = b(e, null);
225
- for (let e of j) for (let n of [e, `-${e}`]) for (let e of a?.formatToParts(n) ?? []) (e.type === "currency" || e.type === "unit") && i.add(e.value.replace(t, "").trim());
226
- return e.kind === "currency" && i.add(e.code.toUpperCase()), [...i].some((e) => A.includes(e)) && A.forEach((e) => i.add(e)), i.delete(""), r = [...i].sort((e, t) => t.length - e.length), M.set(n, r), r;
227
- }, P = /^([-−﹣-(+]?\s*)\p{L}[\p{L}\p{M}.]*\s*(?=[-−﹣-(\p{Sc}\p{Nd}])/u, F = (e, n) => {
228
- if (!n) return e;
229
- let r = e.replace(t, "");
230
- for (let e of N(n)) {
217
+ for (let e of A) for (let t of [e, `-${e}`]) for (let e of a?.formatToParts(t) ?? []) (e.type === "currency" || e.type === "unit") && i.add(e.value.replace(n, "").trim());
218
+ return e.kind === "currency" && i.add(e.code.toUpperCase()), [...i].some((e) => k.includes(e)) && k.forEach((e) => i.add(e)), i.delete(""), r = [...i].sort((e, t) => t.length - e.length), j.set(t, r), r;
219
+ }, N = /^([-−﹣-(+]?\s*)\p{L}[\p{L}\p{M}.]*\s*(?=[-−﹣-(\p{Sc}\p{Nd}])/u, P = (e, t) => {
220
+ if (!t) return e;
221
+ let r = e.replace(n, "");
222
+ for (let e of M(t)) {
231
223
  let t = /\p{L}$/u.test(e) ? `${e}.` : null;
232
224
  t && (r = r.split(t).join("")), r = r.split(e).join("");
233
225
  }
234
- return r.trim().replace(P, "$1");
235
- }, ee = (e, t, n) => {
226
+ return r.trim().replace(N, "$1");
227
+ }, te = (e, t, n) => {
236
228
  let r = w(e, t), i = b(n, r.digits, "name");
237
229
  return i ? i.format(r.text) : e;
238
- }, I = /* @__PURE__ */ new Map(), L = (e, t) => {
230
+ }, F = /* @__PURE__ */ new Map(), I = (e, t) => {
239
231
  if (!Number.isFinite(e)) return "";
240
- let n = Math.max(0, Math.min(100, t)), r = I.get(n);
232
+ let n = Math.max(0, Math.min(100, t)), r = F.get(n);
241
233
  r || (r = new Intl.NumberFormat("en", {
242
234
  maximumFractionDigits: n,
243
235
  numberingSystem: "latn",
244
236
  useGrouping: !1
245
- }), I.set(n, r));
237
+ }), F.set(n, r));
246
238
  let i = r.format(e);
247
239
  return i === "-0" ? "0" : i;
248
- }, R = (e) => {
240
+ }, L = (e) => {
249
241
  if (e === "") return null;
250
242
  if (!/\d/.test(e)) return;
251
243
  let t = Number(e.endsWith(".") ? e.slice(0, -1) : e);
252
244
  if (Number.isFinite(t)) return t === 0 ? 0 : t;
253
- }, z = (e) => {
245
+ }, R = (e) => {
254
246
  let { group: t } = e;
255
- return t ? n.includes(t) ? n : r.includes(t) ? r : t : "";
256
- }, B = (e) => e.replace(/[\\\]^-]/g, "\\$&"), V = /* @__PURE__ */ new Map(), H = (e) => {
257
- let t = `${e.tag}|${e.decimal}|${e.group}`, n = V.get(t);
247
+ return t ? r.includes(t) || i.includes(t) ? r + i : t : "";
248
+ }, z = (e) => e.replace(/[\\\]^-]/g, "\\$&"), B = /* @__PURE__ */ new Map(), V = (e) => {
249
+ let t = `${e.tag}|${e.decimal}|${e.group}`, n = B.get(t);
258
250
  if (n) return n;
259
- let r = z(e), i = e.primary, a = e.secondary, o = r ? `\\d{1,${a}}(?:[${B(r)}]\\d{${a}})*[${B(r)}]\\d{${i}}` : "(?!)", s = e.decimal.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
260
- return n = RegExp(`^(-?)(\\d*|${o})(?:${s}(\\d*))?$`), V.set(t, n), n;
261
- }, U = (e, t) => {
262
- let n = f(e.trim()), r = H(t).exec(n);
251
+ let r = R(e), i = e.primary, a = e.secondary, o = r ? `\\d{1,${a}}(?:[${z(r)}]\\d{${a}})*[${z(r)}]\\d{${i}}` : "(?!)", s = e.decimal.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
252
+ return n = RegExp(`^(-?)(\\d*|${o})(?:${s}(\\d*))?$`), B.set(t, n), n;
253
+ }, H = (e, t) => {
254
+ let n = f(e.trim()), r = V(t).exec(n);
263
255
  if (!r) return null;
264
256
  let [, i, a, o] = r, s = a.replace(/\D/g, "");
265
257
  return !s && o === void 0 ? i ? "-" : "" : `${i}${s}${o === void 0 ? "" : `.${o}`}`;
266
- }, W = (e) => {
258
+ }, U = (e) => {
267
259
  let t = "";
268
- for (let n of f(e)) n === i ? t += "." : (p(n) || n === "." || n === "," || n === "-") && (t += n);
260
+ for (let n of f(e)) n === a ? t += "." : (p(n) || n === "." || n === "," || n === "-") && (t += n);
269
261
  let n = /^[^\d]*-/.test(t);
270
262
  t = t.replace(/-/g, "");
271
- let r = t.lastIndexOf(","), a = t.lastIndexOf("."), o;
272
- if (r !== -1 && a !== -1) {
273
- let e = Math.max(r, a);
263
+ let r = t.lastIndexOf(","), i = t.lastIndexOf("."), o;
264
+ if (r !== -1 && i !== -1) {
265
+ let e = Math.max(r, i);
274
266
  o = [...t].map((t, n) => t === "," || t === "." ? n === e ? "." : "" : t).join("");
275
267
  } else {
276
268
  let e = r === -1 ? "." : ",";
277
269
  o = t.split(e).length - 1 > 1 ? t.replaceAll(e, "") : t.replace(",", ".");
278
270
  }
279
271
  return `${n ? "-" : ""}${o}`;
280
- }, G = /\p{Nd}/u, K = (e) => {
272
+ }, W = /\p{Nd}/u, G = (e) => {
281
273
  let t = e?.normalize("NFKC");
282
- return t === "." || t === "," || t === i;
283
- }, q = /^(\d+(?:[.,]\d+)?)[eE]([+-]?\d+)$/, J = `.,\u066b\u066c${n}${r}`, Y = (e) => {
284
- let t = [...e], n = t.findIndex((e) => G.test(e));
274
+ return t === "." || t === "," || t === a;
275
+ }, K = /^(\d+(?:[.,]\d+)?)[eE]([+-]?\d+)$/, q = `.,\u066b\u066c${r}${i}`, J = (e) => {
276
+ let t = [...e], n = t.findIndex((e) => W.test(e));
285
277
  if (n === -1) return null;
286
- let r = (e) => e < t.length && G.test(t[e]), i = n, o = !1;
278
+ let r = (e) => e < t.length && W.test(t[e]), i = n, a = !1;
287
279
  for (; i < t.length;) {
288
280
  let e = t[i];
289
- if (G.test(e)) i++;
290
- else if (J.includes(e.normalize("NFKC")) && r(i + 1)) i++;
291
- else if (!o && (e === "e" || e === "E")) {
292
- let e = a.includes(t[i + 1]) || t[i + 1] === "+";
281
+ if (W.test(e)) i++;
282
+ else if (q.includes(d(e)) && r(i + 1)) i++;
283
+ else if (!a && (e === "e" || e === "E")) {
284
+ let e = o.includes(t[i + 1]) || t[i + 1] === "+";
293
285
  if (!r(i + (e ? 2 : 1))) break;
294
- o = !0, i += e ? 2 : 1;
286
+ a = !0, i += e ? 2 : 1;
295
287
  } else break;
296
288
  }
297
289
  let s = n;
298
- K(t[s - 1]) && s--, K(t[i]) && i++;
299
- let c = f(t.slice(0, s).join("")), l = t.slice(i).join(""), u = c.includes("-") || c.includes("(") && l.includes(")"), d = f(t.slice(s, i).join("")), p = q.exec(d);
300
- if (p) {
301
- let e = L(Number(`${p[1].replace(",", ".")}e${p[2]}`), 20);
290
+ G(t[s - 1]) && s--, G(t[i]) && i++;
291
+ let c = f(t.slice(0, s).join("")), l = t.slice(i).join(""), u = c.includes("-") || c.includes("(") && l.includes(")"), p = f(t.slice(s, i).join("")), m = K.exec(p);
292
+ if (m) {
293
+ let e = I(Number(`${m[1].replace(",", ".")}e${m[2]}`), 20);
302
294
  return e && u ? `-${e}` : e;
303
295
  }
304
- return `${u ? "-" : ""}${d}`;
305
- }, X = (e, t) => {
306
- let n = Y(e) ?? e;
307
- return U(n, t) ?? W(n);
308
- }, Z = 20, Q = (e, t, n, r) => {
309
- let a = d(n), { raw: o } = e;
310
- if (p(a)) {
296
+ return `${u ? "-" : ""}${p}`;
297
+ }, Y = (e, t) => {
298
+ let n = J(e) ?? e;
299
+ return H(n, t) ?? U(n);
300
+ }, X = 20, Z = (e, t, n, r) => {
301
+ let i = d(n), { raw: o } = e;
302
+ if (p(i)) {
311
303
  let n = t === 0 && o.startsWith("-") ? 1 : t;
312
304
  return {
313
305
  state: {
314
306
  ...e,
315
- raw: o.slice(0, n) + a + o.slice(n)
307
+ raw: o.slice(0, n) + i + o.slice(n)
316
308
  },
317
309
  caret: n + 1
318
310
  };
319
311
  }
320
- if (a === "-") return o.startsWith("-") ? {
312
+ if (i === "-") return o.startsWith("-") ? {
321
313
  state: {
322
314
  ...e,
323
315
  raw: o.slice(1)
@@ -330,7 +322,7 @@ var e = {
330
322
  },
331
323
  caret: t + 1
332
324
  };
333
- let s = a === i ? "." : a;
325
+ let s = i === a ? "." : i;
334
326
  if (s !== "," && s !== "." || s === e.groupChar) return null;
335
327
  let c = o.indexOf(".");
336
328
  if (c === -1) return t === 0 && o.startsWith("-") ? null : {
@@ -369,7 +361,7 @@ var e = {
369
361
  },
370
362
  caret: t - 1
371
363
  };
372
- }, te = (e, t, n) => {
364
+ }, ne = (e, t, n) => {
373
365
  let r = e, i = t, a = +!!r.startsWith("-");
374
366
  r[a] === "." && (r = `${r.slice(0, a)}0${r.slice(a)}`, i > a && i++);
375
367
  let o = r.indexOf(".");
@@ -377,13 +369,13 @@ var e = {
377
369
  let e = Math.max(0, n.maxPrecision);
378
370
  r.length - o - 1 > e && (r = r.slice(0, o + 1 + e));
379
371
  }
380
- let s = r.length > Z;
381
- return s && (r = r.slice(0, Z)), {
372
+ let s = r.length > X;
373
+ return s && (r = r.slice(0, X)), {
382
374
  raw: r,
383
375
  caret: Math.min(i, r.length),
384
376
  cut: s
385
377
  };
386
- }, ne = (e, t, n) => {
378
+ }, re = (e, t, n) => {
387
379
  let r = Math.min(n.minPrecision, n.maxPrecision), { raw: i } = e, a = Math.max(0, Math.min(t.start, i.length)), o = Math.max(a, Math.min(t.end, i.length)), s = {
388
380
  ...e,
389
381
  caret: a,
@@ -400,7 +392,7 @@ var e = {
400
392
  });
401
393
  let r = !c;
402
394
  for (let e of t.text) {
403
- let t = Q(d, f, e, n);
395
+ let t = Z(d, f, e, n);
404
396
  t && (d = t.state, f = t.caret, r = !0);
405
397
  }
406
398
  if (!r) return {
@@ -411,7 +403,7 @@ var e = {
411
403
  }
412
404
  case "paste": {
413
405
  let e = i.slice(0, a) + i.slice(o), r = t.raw;
414
- if (r.startsWith("-") && (a !== 0 || e.startsWith("-")) && (r = r.slice(1)), r.replace(/^-/, "").length > Z || (n.maxPrecision <= 0 && (r = r.replace(/\.\d*$/, "")), r.includes(".") && e.includes("."))) return {
406
+ if (r.startsWith("-") && (a !== 0 || e.startsWith("-")) && (r = r.slice(1)), r.replace(/^-/, "").length > X || (n.maxPrecision <= 0 && (r = r.replace(/\.\d*$/, "")), r.includes(".") && e.includes("."))) return {
415
407
  ...s,
416
408
  caret: o
417
409
  };
@@ -469,7 +461,7 @@ var e = {
469
461
  ...d,
470
462
  decChar: ""
471
463
  });
472
- let p = te(d.raw, f, n);
464
+ let p = ne(d.raw, f, n);
473
465
  if ((t.type === "insert" || t.type === "paste") && p.cut) return {
474
466
  ...s,
475
467
  caret: o
@@ -479,9 +471,9 @@ var e = {
479
471
  raw: p.raw,
480
472
  caret: p.caret,
481
473
  rejected: !1
482
- }, h = R(m.raw);
474
+ }, h = L(m.raw);
483
475
  if (typeof h == "number" && h > n.max) {
484
- let e = L(n.max, n.maxPrecision);
476
+ let e = I(n.max, n.maxPrecision);
485
477
  m = {
486
478
  raw: e,
487
479
  decChar: "",
@@ -492,7 +484,11 @@ var e = {
492
484
  }
493
485
  return {
494
486
  ...m,
495
- raw: $(m.raw, r)
487
+ raw: Q(m.raw, r)
496
488
  };
497
- }, $ = (e, t) => t > 0 && /\d/.test(e) && !e.includes(".") ? `${e}.` : e, re = (e, t) => typeof e == "number" ? L(e, t) : "", ie = { span: "minimal" };
498
- export { e as PLAIN_SYMBOLS, x as affixOf, ne as applyEdit, l as currencyDigitsOf, h as displayIndexOf, k as formatAffixed, m as formatRaw, v as isShellOnly, d as normalizeChar, s as numberSymbolsOf, U as parseLocaleText, W as parseLooseText, re as rawAtRest, g as rawIndexOf, L as rawOfNumber, X as readText, _ as snapOffset, ee as spokenAffixed, F as stripAffix, R as valueOfRaw, $ as withPaddedMark, ie as writeStrategy };
489
+ }, Q = (e, t) => t > 0 && /\d/.test(e) && !e.includes(".") ? `${e}.` : e, $ = (e) => {
490
+ if (!Number.isFinite(e)) return 0;
491
+ let [t, n = "0"] = String(Math.abs(e)).split("e"), r = t.split(".")[1]?.length ?? 0;
492
+ return Math.max(0, r - Number(n));
493
+ }, ie = (e, t) => typeof e == "number" ? I(e, Math.max(t, $(e))) : "", ae = { span: "minimal" };
494
+ export { t as PLAIN_SYMBOLS, x as affixOf, re as applyEdit, l as currencyDigitsOf, h as displayIndexOf, O as formatAffixed, m as formatRaw, $ as fractionDigitsOf, v as isShellOnly, d as normalizeChar, c as numberSymbolsOf, H as parseLocaleText, U as parseLooseText, ie as rawAtRest, g as rawIndexOf, I as rawOfNumber, Y as readText, _ as snapOffset, te as spokenAffixed, P as stripAffix, L as valueOfRaw, Q as withPaddedMark, ae as writeStrategy };
@@ -198,9 +198,10 @@ export type BbNumberInputProps = BbNumberInputPtProps & {
198
198
  */
199
199
  max?: number;
200
200
  /**
201
- * Maximum precision of the number: fraction digits past it are refused as
202
- * typed (never rounded). With `currency`, the currency's own digits (`2`
203
- * for EUR, `0` for JPY, `3` for KWD), or `minPrecision` when that is larger.
201
+ * Maximum fraction digits the user can TYPE (more are refused, never
202
+ * rounded); a model with more still shows them all. With `currency`, the
203
+ * currency's own digits (`2` EUR, `0` JPY and HUF, `3` KWD), or
204
+ * `minPrecision` when that is larger.
204
205
  *
205
206
  * @defaultValue `8`
206
207
  */