bitboss-ui 3.0.0-beta.69 → 3.0.0-beta.70

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 (407) hide show
  1. package/README.md +20 -11
  2. package/bin/bitboss-ui-mcp.mjs +7 -4
  3. package/bin/bitboss-ui.mjs +0 -0
  4. package/bin/cli.mjs +47 -28
  5. package/dist/ai/BbBaseButton.md +4 -4
  6. package/dist/ai/BbCarousel.md +32 -29
  7. package/dist/ai/BbCheckboxGroup.md +15 -12
  8. package/dist/ai/BbColorInput.md +6 -10
  9. package/dist/ai/BbDropzone.md +3 -3
  10. package/dist/ai/BbGallery.md +2034 -0
  11. package/dist/ai/BbPopover.md +12 -6
  12. package/dist/ai/BbRadioGroup.md +18 -15
  13. package/dist/ai/BbRating.md +3 -7
  14. package/dist/ai/BbSwitchGroup.md +3 -3
  15. package/dist/ai/BbTextInput.md +8 -8
  16. package/dist/ai/OptionsContainer.md +10 -7
  17. package/dist/ai/changelog.json +80 -4
  18. package/dist/ai/components.json +19 -14
  19. package/dist/ai/guides/ai-router.md +3 -2
  20. package/dist/ai/guides/component-picker.md +1 -0
  21. package/dist/ai/guides/eslint-rules.md +3 -3
  22. package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
  23. package/dist/ai/guides/migration/v2-to-v3.md +29 -1
  24. package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
  25. package/dist/ai/guides/passthrough.md +2 -1
  26. package/dist/ai/guides/preset-components.md +19 -10
  27. package/dist/ai/helpers/definePreset.ts +8 -4
  28. package/dist/ai/helpers/inertia/manifest.json +1 -1
  29. package/dist/ai/index.md +2 -1
  30. package/dist/ai/manifest/components/BbCarousel.json +3 -2
  31. package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
  32. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +13 -11
  33. package/dist/ai/manifest/components/BbConfigScope.json +1 -1
  34. package/dist/ai/manifest/components/BbGallery.json +54 -0
  35. package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
  36. package/dist/ai/manifest/components/BbRadioGroup.tree.json +12 -10
  37. package/dist/ai/manifest/components/BbRating.removed.json +1 -1
  38. package/dist/ai/manifest/components/BbSlider.json +1 -1
  39. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +1 -1
  40. package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
  41. package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
  42. package/dist/ai/manifest/components/OptionsContainer.tree.json +10 -7
  43. package/dist/ai/manifest/index.json +4 -3
  44. package/dist/ai/manifest/meta.json +5 -1
  45. package/dist/ai/manifest/types.advanced.json +3 -1
  46. package/dist/ai/manifest/types.api.json +1 -1
  47. package/dist/ai/manifest/types.wrapper.json +1 -0
  48. package/dist/ai/recipes/inertia/onboarding.md +5 -8
  49. package/dist/ai/recipes/inertia/record-form.md +33 -12
  50. package/dist/ai/recipes/nuxt/onboarding.md +5 -8
  51. package/dist/ai/recipes/nuxt/record-form.md +27 -11
  52. package/dist/ai/recipes/vue/onboarding.md +5 -8
  53. package/dist/ai/recipes/vue/record-form.md +25 -11
  54. package/dist/ai/source/BbCalendar.md +2 -0
  55. package/dist/ai/source/BbCarousel.md +135 -32
  56. package/dist/ai/source/BbDropdown.md +2 -0
  57. package/dist/ai/source/BbDropdownGroup.md +2 -0
  58. package/dist/ai/source/BbGallery.md +2027 -0
  59. package/dist/ai/source/BbRadioGroup.md +2 -2
  60. package/dist/ai/source/BbSelectPopover.md +1 -0
  61. package/dist/ai/source/BbSwitchGroup.md +1 -0
  62. package/dist/ai/source/BbTable.md +11 -7
  63. package/dist/ai/source/BbTree.md +7 -3
  64. package/dist/ai/source/CommonPopover.md +13 -3
  65. package/dist/ai/source/FlatListBox.md +3 -3
  66. package/dist/ai/source/GroupedListBox.md +3 -3
  67. package/dist/ai/source/ListBox.md +4 -4
  68. package/dist/ai/source/OptionsContainer.md +4 -4
  69. package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
  70. package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
  71. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
  72. package/dist/components/BbCarousel/dragRelease.js +14 -0
  73. package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
  74. package/dist/components/BbCarousel/types.d.ts +11 -6
  75. package/dist/components/BbCarousel/types.js +1 -0
  76. package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
  77. package/dist/components/BbGallery/BbGallery.vue.js +5 -0
  78. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
  79. package/dist/components/BbGallery/findItem.js +41 -0
  80. package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
  81. package/dist/components/BbGallery/types.d.ts +177 -0
  82. package/dist/components/BbGallery/types.js +29 -0
  83. package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
  84. package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
  85. package/dist/components/BbRadioGroup/types.d.ts +2 -2
  86. package/dist/components/BbTable/types.d.ts +7 -7
  87. package/dist/components/BbTree/types.d.ts +3 -3
  88. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
  89. package/dist/composables/overlayRegistry.d.ts +17 -0
  90. package/dist/composables/overlayRegistry.js +16 -9
  91. package/dist/composables/useChoiceIndicator.js +1 -1
  92. package/dist/deprecation/ai-deprecations.json.js +1 -1
  93. package/dist/directives/bbGallery.d.ts +64 -0
  94. package/dist/directives/bbGallery.js +38 -0
  95. package/dist/i18n/locales/ar.json +3 -1
  96. package/dist/i18n/locales/cs.json +3 -1
  97. package/dist/i18n/locales/da.json +3 -1
  98. package/dist/i18n/locales/de-CH.json +3 -1
  99. package/dist/i18n/locales/de.json +3 -1
  100. package/dist/i18n/locales/el.json +3 -1
  101. package/dist/i18n/locales/en-GB.json +3 -1
  102. package/dist/i18n/locales/en.json +3 -1
  103. package/dist/i18n/locales/es-MX.json +3 -1
  104. package/dist/i18n/locales/es.json +3 -1
  105. package/dist/i18n/locales/fa.json +3 -1
  106. package/dist/i18n/locales/fi.json +3 -1
  107. package/dist/i18n/locales/fr.json +3 -1
  108. package/dist/i18n/locales/he.json +3 -1
  109. package/dist/i18n/locales/hu.json +3 -1
  110. package/dist/i18n/locales/it.json +3 -1
  111. package/dist/i18n/locales/ja.json +3 -1
  112. package/dist/i18n/locales/ko.json +3 -1
  113. package/dist/i18n/locales/nb.json +3 -1
  114. package/dist/i18n/locales/nl.json +3 -1
  115. package/dist/i18n/locales/pl.json +3 -1
  116. package/dist/i18n/locales/pt-BR.json +3 -1
  117. package/dist/i18n/locales/pt-PT.json +3 -1
  118. package/dist/i18n/locales/ro.json +3 -1
  119. package/dist/i18n/locales/ru.json +3 -1
  120. package/dist/i18n/locales/sv.json +3 -1
  121. package/dist/i18n/locales/tr.json +3 -1
  122. package/dist/i18n/locales/uk.json +3 -1
  123. package/dist/i18n/locales/zh-CN.json +3 -1
  124. package/dist/i18n/locales/zh-HK.json +3 -1
  125. package/dist/i18n/locales/zh-TW.json +3 -1
  126. package/dist/index.d.ts +4 -0
  127. package/dist/index.js +38 -36
  128. package/dist/llms-full.txt +2328 -185
  129. package/dist/llms-medium.txt +10 -7
  130. package/dist/llms.txt +1 -1
  131. package/dist/locale-blueprint.json +3 -1
  132. package/dist/nuxt-auto-imports.js +1 -1
  133. package/dist/plugin.js +18 -17
  134. package/dist/project-dts.js +17 -16
  135. package/dist/runtime/nuxt-plugin.js +22 -21
  136. package/dist/scripts/lib/atomic-write.js +42 -0
  137. package/dist/styles.css +2 -2
  138. package/dist/types/passthrough.d.ts +2 -2
  139. package/dist/types/ptComponentMap.d.ts +2 -1
  140. package/dist/utilities/calendar/canonicalParts.js +10 -2
  141. package/dist/utils/versionCheck.js +1 -1
  142. package/dist/vite.js +361 -331
  143. package/llms.txt +2 -2
  144. package/package.json +2 -1
  145. package/scripts/README.md +25 -25
  146. package/scripts/lib/agent-refresh.mjs +15 -9
  147. package/scripts/lib/agent-setup.mjs +46 -15
  148. package/scripts/lib/atomic-write.d.mts +6 -0
  149. package/scripts/lib/atomic-write.mjs +85 -0
  150. package/scripts/lib/define-preset-copy.mjs +23 -3
  151. package/scripts/lib/eslint-plugin.mjs +74 -36
  152. package/scripts/lib/hand-imported-styles.mjs +44 -99
  153. package/scripts/lib/helpers-add.mjs +3 -1
  154. package/scripts/lib/linked-target.mjs +1 -1
  155. package/scripts/lib/locale-check.mjs +41 -25
  156. package/scripts/lib/mcp-config.mjs +250 -133
  157. package/scripts/lib/mcp-sdk.mjs +24 -0
  158. package/scripts/lib/plugin-options-check.mjs +22 -15
  159. package/scripts/lib/pnp.mjs +1 -1
  160. package/scripts/lib/project-variant-dts.mjs +80 -136
  161. package/scripts/lib/release-results.mjs +331 -0
  162. package/scripts/lib/setup.mjs +53 -3
  163. package/scripts/lib/toolchain-check.mjs +10 -8
  164. package/scripts/lib/tooling-options.mjs +357 -38
  165. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
  166. package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
  167. package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
  168. package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
  169. package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
  170. package/dist/components/BbButton/toggleRoving.d.ts +0 -6
  171. package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
  172. package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
  173. package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
  174. package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
  175. package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
  176. package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
  177. package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
  178. package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
  179. package/dist/components/BbCalendar/useToday.d.ts +0 -25
  180. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
  181. package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
  182. package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
  183. package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
  184. package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
  185. package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
  186. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
  187. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
  188. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
  189. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
  190. package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
  191. package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
  192. package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
  193. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
  194. package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
  195. package/dist/components/BbForm/bindFormField.d.ts +0 -56
  196. package/dist/components/BbForm/formFields.d.ts +0 -77
  197. package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
  198. package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
  199. package/dist/components/BbIcon/iconCache.d.ts +0 -63
  200. package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
  201. package/dist/components/BbNumberInput/platform.d.ts +0 -7
  202. package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
  203. package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
  204. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
  205. package/dist/components/BbPagination/paginationFit.d.ts +0 -38
  206. package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
  207. package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
  208. package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
  209. package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
  210. package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
  211. package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
  212. package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
  213. package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
  214. package/dist/components/BbTable/gridWidgets.d.ts +0 -30
  215. package/dist/components/BbTable/measuredFloors.d.ts +0 -46
  216. package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
  217. package/dist/components/BbTable/textRuler.d.ts +0 -73
  218. package/dist/components/BbTable/useRowReorder.d.ts +0 -60
  219. package/dist/components/BbTable/utils.d.ts +0 -375
  220. package/dist/components/BbTabs/tablistName.d.ts +0 -4
  221. package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
  222. package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
  223. package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
  224. package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
  225. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
  226. package/dist/components/BbTree/context.d.ts +0 -25
  227. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
  228. package/dist/components/ChipsBox/types.d.ts +0 -28
  229. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
  230. package/dist/components/ClearableButton/types.d.ts +0 -9
  231. package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
  232. package/dist/components/CloseIcon/types.d.ts +0 -2
  233. package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
  234. package/dist/components/CommaBox/types.d.ts +0 -20
  235. package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
  236. package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
  237. package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
  238. package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
  239. package/dist/components/CommonFieldInput/types.d.ts +0 -114
  240. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
  241. package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
  242. package/dist/components/CommonPopover/types.d.ts +0 -120
  243. package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
  244. package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
  245. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
  246. package/dist/components/ErrorIcon/types.d.ts +0 -3
  247. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
  248. package/dist/components/FlatListBox/types.d.ts +0 -140
  249. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
  250. package/dist/components/GroupedListBox/types.d.ts +0 -163
  251. package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
  252. package/dist/components/ListBox/types.d.ts +0 -180
  253. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
  254. package/dist/components/OptionsContainer/types.d.ts +0 -168
  255. package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
  256. package/dist/components/Transitions/Slide.vue.d.ts +0 -39
  257. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
  258. package/dist/components/WarningIcon/types.d.ts +0 -3
  259. package/dist/composables/__testResets.d.ts +0 -1
  260. package/dist/composables/autoHost.d.ts +0 -22
  261. package/dist/composables/formSubmitLock.d.ts +0 -48
  262. package/dist/composables/hostOpenings.d.ts +0 -88
  263. package/dist/composables/hostRegistry.d.ts +0 -47
  264. package/dist/composables/ssrMarker.d.ts +0 -15
  265. package/dist/composables/useActiveInactiveState.d.ts +0 -4
  266. package/dist/composables/useArray.d.ts +0 -7
  267. package/dist/composables/useBaseOptions.d.ts +0 -51
  268. package/dist/composables/useBodyScrollLock.d.ts +0 -4
  269. package/dist/composables/useBreakpoint.d.ts +0 -13
  270. package/dist/composables/useCancelableFunction.d.ts +0 -17
  271. package/dist/composables/useChoiceIndicator.d.ts +0 -58
  272. package/dist/composables/useClosingInert.d.ts +0 -28
  273. package/dist/composables/useCoarsePointer.d.ts +0 -9
  274. package/dist/composables/useCoherence.d.ts +0 -21
  275. package/dist/composables/useConfig.d.ts +0 -59
  276. package/dist/composables/useConfigDefaults.d.ts +0 -54
  277. package/dist/composables/useDirection.d.ts +0 -43
  278. package/dist/composables/useEscapeStackEntry.d.ts +0 -13
  279. package/dist/composables/useFrameworkDetection.d.ts +0 -12
  280. package/dist/composables/useHashedWatcher.d.ts +0 -19
  281. package/dist/composables/useHydrated.d.ts +0 -37
  282. package/dist/composables/useImeDismissBlur.d.ts +0 -103
  283. package/dist/composables/useIndexById.d.ts +0 -11
  284. package/dist/composables/useInertiaPage.d.ts +0 -10
  285. package/dist/composables/useItemText.d.ts +0 -17
  286. package/dist/composables/useItemValue.d.ts +0 -7
  287. package/dist/composables/useItemsGetter.d.ts +0 -83
  288. package/dist/composables/useKeyboardInset.d.ts +0 -28
  289. package/dist/composables/useListboxFocus.d.ts +0 -21
  290. package/dist/composables/useLocale.d.ts +0 -5
  291. package/dist/composables/useLogger.d.ts +0 -5
  292. package/dist/composables/useMinimalQueue.d.ts +0 -9
  293. package/dist/composables/useOnFalsy.d.ts +0 -2
  294. package/dist/composables/useOnTruthy.d.ts +0 -7
  295. package/dist/composables/useOverlayNavigation.d.ts +0 -37
  296. package/dist/composables/useOverlayYield.d.ts +0 -23
  297. package/dist/composables/usePrefill.d.ts +0 -44
  298. package/dist/composables/useQuery.d.ts +0 -39
  299. package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
  300. package/dist/composables/useRoute.d.ts +0 -3
  301. package/dist/composables/useRouter.d.ts +0 -2
  302. package/dist/composables/useSegmentedFields.d.ts +0 -129
  303. package/dist/composables/useServerPrefetch.d.ts +0 -28
  304. package/dist/composables/useSheetSurface.d.ts +0 -39
  305. package/dist/composables/useSsrState.d.ts +0 -28
  306. package/dist/composables/useTableWidthContext.d.ts +0 -73
  307. package/dist/composables/useToggleInput.d.ts +0 -44
  308. package/dist/composables/useTopLayer.d.ts +0 -9
  309. package/dist/composables/useTypeahead.d.ts +0 -112
  310. package/dist/composables/useUntil.d.ts +0 -7
  311. package/dist/composables/useUrlQueryParam.d.ts +0 -21
  312. package/dist/composables/useViewportWidth.d.ts +0 -14
  313. package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
  314. package/dist/deprecation/removedProps.d.ts +0 -3
  315. package/dist/directives/createPopoverDirective.d.ts +0 -111
  316. package/dist/directives/renderingInstance.d.ts +0 -2
  317. package/dist/i18n/eraNames.d.ts +0 -2
  318. package/dist/i18n/regionHints.d.ts +0 -16
  319. package/dist/icons-whitelist.d.ts +0 -9
  320. package/dist/reset.d.ts +0 -0
  321. package/dist/runtime/nuxt-plugin.d.ts +0 -2
  322. package/dist/styles.d.ts +0 -0
  323. package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
  324. package/dist/types/ExtractGenericFromRef.d.ts +0 -2
  325. package/dist/types/NestedKeyOf.d.ts +0 -3
  326. package/dist/types/PrefixWith.d.ts +0 -1
  327. package/dist/types/ShapeErased.d.ts +0 -15
  328. package/dist/types/Simplify.d.ts +0 -6
  329. package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
  330. package/dist/utilities/calendar/digits.d.ts +0 -18
  331. package/dist/utilities/calendar/gregorian.d.ts +0 -2
  332. package/dist/utilities/calendar/index.d.ts +0 -3
  333. package/dist/utilities/calendar/international.d.ts +0 -19
  334. package/dist/utilities/calendar/resolve.d.ts +0 -32
  335. package/dist/utilities/calendar/runtime.d.ts +0 -49
  336. package/dist/utilities/functions/animationsSettled.d.ts +0 -7
  337. package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
  338. package/dist/utilities/functions/chunk.d.ts +0 -1
  339. package/dist/utilities/functions/clamp.d.ts +0 -9
  340. package/dist/utilities/functions/clampPrecision.d.ts +0 -1
  341. package/dist/utilities/functions/convertDateValue.d.ts +0 -57
  342. package/dist/utilities/functions/curry.d.ts +0 -6
  343. package/dist/utilities/functions/deburr.d.ts +0 -1
  344. package/dist/utilities/functions/elementLabel.d.ts +0 -8
  345. package/dist/utilities/functions/empty.d.ts +0 -1
  346. package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
  347. package/dist/utilities/functions/findInTree.d.ts +0 -4
  348. package/dist/utilities/functions/flattenTree.d.ts +0 -1
  349. package/dist/utilities/functions/get.d.ts +0 -3
  350. package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
  351. package/dist/utilities/functions/hash.d.ts +0 -1
  352. package/dist/utilities/functions/head.d.ts +0 -2
  353. package/dist/utilities/functions/identity.d.ts +0 -1
  354. package/dist/utilities/functions/indexBy.d.ts +0 -11
  355. package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
  356. package/dist/utilities/functions/isEqual.d.ts +0 -1
  357. package/dist/utilities/functions/isHex.d.ts +0 -1
  358. package/dist/utilities/functions/isImeComposing.d.ts +0 -7
  359. package/dist/utilities/functions/isNil.d.ts +0 -6
  360. package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
  361. package/dist/utilities/functions/isNotNil.d.ts +0 -6
  362. package/dist/utilities/functions/isTextEntry.d.ts +0 -5
  363. package/dist/utilities/functions/isoWeek.d.ts +0 -36
  364. package/dist/utilities/functions/itemProps.d.ts +0 -46
  365. package/dist/utilities/functions/last.d.ts +0 -2
  366. package/dist/utilities/functions/negative.d.ts +0 -1
  367. package/dist/utilities/functions/noop.d.ts +0 -1
  368. package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
  369. package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
  370. package/dist/utilities/functions/parseSize.d.ts +0 -3
  371. package/dist/utilities/functions/parseWidthString.d.ts +0 -6
  372. package/dist/utilities/functions/percentage.d.ts +0 -26
  373. package/dist/utilities/functions/pickBy.d.ts +0 -1
  374. package/dist/utilities/functions/range.d.ts +0 -1
  375. package/dist/utilities/functions/readableValue.d.ts +0 -6
  376. package/dist/utilities/functions/reject.d.ts +0 -25
  377. package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
  378. package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
  379. package/dist/utilities/functions/searchRank.d.ts +0 -19
  380. package/dist/utilities/functions/settlesVisible.d.ts +0 -20
  381. package/dist/utilities/functions/snapToStep.d.ts +0 -1
  382. package/dist/utilities/functions/sort.d.ts +0 -6
  383. package/dist/utilities/functions/throttle.d.ts +0 -1
  384. package/dist/utilities/functions/toggleInput.d.ts +0 -114
  385. package/dist/utilities/functions/transpose.d.ts +0 -1
  386. package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
  387. package/dist/utilities/functions/wait.d.ts +0 -2
  388. package/dist/utilities/functions/waitFor.d.ts +0 -9
  389. package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
  390. package/dist/utilities/functions/when.d.ts +0 -9
  391. package/dist/utilities/misc/autofocus.d.ts +0 -20
  392. package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
  393. package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
  394. package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
  395. package/dist/utilities/misc/pageText.d.ts +0 -16
  396. package/dist/utilities/misc/ssrValue.d.ts +0 -20
  397. package/dist/utilities/misc/transitions.d.ts +0 -5
  398. package/dist/utils/configDefaults.d.ts +0 -43
  399. package/dist/utils/configScope.d.ts +0 -43
  400. package/dist/utils/copyData.d.ts +0 -13
  401. package/dist/utils/focusVisibility.d.ts +0 -15
  402. package/dist/utils/injectLibraryStyles.d.ts +0 -8
  403. package/dist/utils/overlayEscapeStack.d.ts +0 -52
  404. package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
  405. package/dist/utils/passthroughDeduper.d.ts +0 -16
  406. package/dist/utils/releasedActivator.d.ts +0 -20
  407. package/dist/utils/versionCheck.d.ts +0 -19
@@ -1,65 +0,0 @@
1
- import { PropType } from 'vue';
2
- /**
3
- * `BbSelect`'s `known-items`, the rows the app already holds for the
4
- * model's values.
5
- *
6
- * The engine lives in `BbSelectPopover`, which `BbSelect` renders. The
7
- * popover has its own `known-items` prop (R5), which wins; `BbSelect` hands
8
- * its rows over here instead, an internal hand-off like `sheetChipAttrs`,
9
- * because it also needs a channel back (`userUnpick`) for its field chips.
10
- * Provided by `BbSelect`, read by `BbSelectPopover`, which provides `null`
11
- * below itself so a popover nested in its panel does not inherit it.
12
- */
13
- export type KnownItemsSource = {
14
- /** The `{ value, label }` rows as passed (other entries are skipped by the reader). */
15
- rows: () => readonly unknown[] | null | undefined;
16
- /** The `prefill` the consumer set on `BbSelect` (not the one it forwards). */
17
- prefill: () => boolean | 'interaction' | undefined;
18
- /**
19
- * Set by the popover: `BbSelect` reports the values the user removed from
20
- * outside the list (a field chip's ×), so the open list keeps their pins.
21
- */
22
- userUnpick?: (values: unknown[]) => void;
23
- /**
24
- * Set by the popover: whether a row is a known row, for `BbSelect`'s chip
25
- * slot `known`.
26
- */
27
- isKnown?: (row: unknown) => boolean;
28
- };
29
- export declare const provideKnownItems: (source: KnownItemsSource | null) => void;
30
- export declare const useKnownItems: () => KnownItemsSource | null;
31
- /**
32
- * Provides a source to its default slot only: `BbSelect` wraps its popover
33
- * in it, so the field's other slots (`#label`, `#description`) never see the
34
- * rows (round 1, code-5).
35
- */
36
- export declare const KnownItemsScope: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
37
- source: {
38
- type: PropType<KnownItemsSource>;
39
- required: true;
40
- };
41
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
42
- [key: string]: any;
43
- }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
44
- source: {
45
- type: PropType<KnownItemsSource>;
46
- required: true;
47
- };
48
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
49
- /**
50
- * A known row: the value the model holds and the text that names it, whatever
51
- * shape the options have. Never read through `item-value`,
52
- * `item-text`, `item-props` or `selectable`, which are written for the options.
53
- */
54
- export type KnownRow = {
55
- value: unknown;
56
- label: string;
57
- };
58
- /** The `{ value, label }` rows, by the hash of their `value`; the first duplicate wins. */
59
- export declare const indexKnownRows: (rows: readonly unknown[] | null | undefined) => Map<string, KnownRow>;
60
- /**
61
- * Whether the known rows name every value of a non-empty model. The model is
62
- * wrapped, never concatenated, in single mode (an option value may itself be
63
- * an array), the same rule as the popover's `modelValueList`.
64
- */
65
- export declare const knownRowsCover: (index: Map<string, unknown>, modelValue: unknown, multiple: boolean | undefined) => boolean;
@@ -1,17 +0,0 @@
1
- /**
2
- * whether re-clicking the picked option of a single select clears
3
- * it.
4
- *
5
- * A single `BbSelectPopover` keeps its value on a re-click: emptying is the
6
- * `clear` callback. A `clearable` `BbSelect` clears on it as well, the way a
7
- * `clearable` BbDropdown group does. The popover's own `clearable` is its
8
- * search field's ✕ and says nothing about re-clicks, so this is an internal
9
- * hand-off from the `BbSelect` that owns the popover, not public surface.
10
- *
11
- * Provided by `BbSelect`; read by `BbSelectPopover`, which provides `null`
12
- * below itself so a popover nested in its panel does not inherit it.
13
- */
14
- type ReclickClears = () => boolean;
15
- export declare const provideReclickClears: (clears: ReclickClears | null) => void;
16
- export declare const useReclickClears: () => ReclickClears | null;
17
- export {};
@@ -1,18 +0,0 @@
1
- /**
2
- * the attributes a phone sheet's selection chips take, per item.
3
- *
4
- * A multiple `BbSelect` lists its selection twice: as chips in the field (its
5
- * own template, bound with its `pt:badge`) and as chips on its popover's phone
6
- * sheet (the popover's template). The sheet's chips must take the same
7
- * `pt:badge` — per-item functions included — or a consumer's chip styling
8
- * changes between the two. The popover has no `badge` part of its own and
9
- * gets none: this is an internal hand-off from the `BbSelect` that owns it,
10
- * not public surface.
11
- *
12
- * Provided by `BbSelect`; read by `BbSelectPopover`, which provides `null`
13
- * below itself so a popover nested in its panel does not inherit it.
14
- */
15
- type SheetChipAttrs = (item: unknown) => Record<string, unknown>;
16
- export declare const provideSheetChipAttrs: (attrs: SheetChipAttrs | null) => void;
17
- export declare const useSheetChipAttrs: () => SheetChipAttrs | null;
18
- export {};
@@ -1,204 +0,0 @@
1
- import { BbTablePtPart, BbTablePtState, MappedItem } from './types.js';
2
- import { RowReorderRowContext } from './useRowReorder.js';
3
- import { PassthroughBindings } from '../../composables/usePassthrough.js';
4
- import { PropType, Slots, VNode } from 'vue';
5
- /**
6
- * Everything a body row needs from the table that is NOT about the row itself.
7
- * It is assembled ONCE, in a computed, so its identity survives a render of the
8
- * table — which is the whole point of this component (see below).
9
- *
10
- * Shared with `BbTableExpandRow`, which needs the same identity for the same
11
- * reason. It keeps the data row's name because that is where the shape and the
12
- * reasoning live; the expand row uses the four fields it needs and ignores the
13
- * rest.
14
- */
15
- export type DataRowContext = {
16
- /**
17
- * The table's passthrough resolver: `row`, `cell` and `selectIcon` are
18
- * resolved per row with the row's own states (`part()`, cached per state
19
- * combination — a virtual window pays one merge per combination).
20
- */
21
- passthrough: PassthroughBindings<BbTablePtPart, BbTablePtState>;
22
- /** The table's own slot bag, forwarded by reference. See the note below. */
23
- slots: Slots;
24
- selectable: boolean | ((item: any) => boolean) | undefined;
25
- multiple: boolean;
26
- readonly: boolean;
27
- actions: boolean;
28
- /**
29
- * The table is a `role="grid"` (or `treegrid`): cells are `gridcell`s with a
30
- * roving tabindex, selectable rows carry `aria-selected`.
31
- */
32
- grid: boolean;
33
- /** A `role="treegrid"`: rows take focus and carry `aria-level` / `aria-expanded`. */
34
- treegrid: boolean;
35
- /** `gridcell` under a grid, `cell` under a table. */
36
- cellRole: string;
37
- /** Keys of the `rowHeader` columns: their cells are `rowheader`s. */
38
- rowHeaderKeys: ReadonlySet<string>;
39
- contentInert: boolean;
40
- /** `aria-rowindex` is only meaningful once the pager facts are known. */
41
- hasRowIndex: boolean;
42
- /** Rows before this page (`aria-posinset` of a treegrid's top-level rows). */
43
- rowOffset: number;
44
- /** `totalItems` once the pager facts are known (a treegrid's `aria-setsize`). */
45
- setSize: number | undefined;
46
- /** Tracks a full-width row spans — the expand row's `aria-colspan`. */
47
- columnSpan: number;
48
- /** Shared `name` for the radio group. */
49
- inputName: string;
50
- /** Passed through verbatim — a `ColumnClasses` may legitimately be a function. */
51
- tdClass: unknown;
52
- /**
53
- * The width-driven state classes of each column's data cells, already
54
- * joined — the table works out `--resized` / `--nowrap` / `--clip` once per
55
- * column so the row does one `Map` lookup per cell instead of three
56
- * membership tests.
57
- */
58
- cellClasses: Map<string, string>;
59
- sortOrders: Map<string, 'asc' | 'desc'>;
60
- /** The virtualizer's measurer, or a no-op on a plain table. */
61
- measureRow: (el: unknown) => void;
62
- /** The expand row's `id` for a value hash — the controller's `aria-controls`. */
63
- expandRegionId: (valueHash: string) => string;
64
- /** A Shift+click on the built-in checkbox: the range to this row. */
65
- selectRange: (item: MappedItem) => void;
66
- /**
67
- * Row reorder (POC): the drag handle column at the far left, `null` when
68
- * the table has none.
69
- */
70
- rowReorder: RowReorderRowContext | null;
71
- };
72
- /**
73
- * The `tabindex` of a row's cell `index` under a grid, given the row's `stop`
74
- * (`-2` not this row, `-1` the row itself, `n` cell `n`, clamped to the last
75
- * cell). `undefined` outside a grid.
76
- */
77
- export declare const gridCellTabindex: (grid: boolean, stop: number, index: number, count: number) => 0 | -1 | undefined;
78
- /** A row's own `tabindex`: focusable only in a treegrid. */
79
- export declare const gridRowTabindex: (treegrid: boolean, stop: number) => 0 | -1 | undefined;
80
- /**
81
- * One data row — the same markup the table used to render inline, moved behind
82
- * a component boundary so that a row which has not changed does NO WORK when
83
- * the table re-renders.
84
- *
85
- * WHY THIS EXISTS. A `virtual` table re-renders its body on every window move,
86
- * and the body's `v-for` re-renders EVERY mounted row, not just the one or two
87
- * that arrived: a notch scroll moves the window by ~2 rows and used to rebuild
88
- * all 30, sixteen cells and a consumer slot call each, ~300 child-component
89
- * prop updates in all. The window moving is not even the only trigger — a
90
- * table's parent re-renders for reasons of its own, and any prop of the table
91
- * whose identity changed (an array or object literal in the parent's template)
92
- * forces the same full-body render with nothing at all to show for it.
93
- *
94
- * With the row as a component, that render costs one small vnode per row and a
95
- * handful of `!==` comparisons: every prop here is either the row's own
96
- * projection (`item`, stable until the item's state changes) or the shared
97
- * `context` (one computed, stable until a table-level setting changes), so
98
- * Vue's `shouldUpdateComponent` bails and the subtree is never touched. The
99
- * rows that DID change — the ones that arrived, the one focus moved to, the
100
- * one that was selected — re-render exactly as before.
101
- *
102
- * WHY NOT `v-memo`, which is the usual answer to "skip an unchanged row": its
103
- * cache is indexed by POSITION in the `v-for`, and a window that moves shifts
104
- * every row's position, so every entry misses. And it would be wrong here even
105
- * if it hit: the cells call the CONSUMER's slots, whose reactive dependencies
106
- * we cannot enumerate into a memo key — a slot reading a ref of its own would
107
- * freeze. A component boundary has no such problem, because the slot runs
108
- * inside THIS component's render effect and that effect subscribes to whatever
109
- * the slot happens to read.
110
- *
111
- * WHY THE SLOTS COME IN AS A PROP rather than as this component's own slots:
112
- * forwarding them (`<template v-for="(_, name) in $slots" #[name]>`) compiles
113
- * to dynamic slots, and a vnode with dynamic slots is FORCED to update — it
114
- * would defeat the only thing this component is for. `renderSlot` does not
115
- * care whose bag it is handed.
116
- */
117
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
118
- context: {
119
- type: PropType<DataRowContext>;
120
- required: true;
121
- };
122
- item: {
123
- type: PropType<MappedItem>;
124
- required: true;
125
- };
126
- /** Index into the item list (a treegrid's `aria-posinset` counts in it). */
127
- index: {
128
- type: NumberConstructor;
129
- required: true;
130
- };
131
- /** Index into the flat row list — `data-index`, what the virtualizer reads. */
132
- virtualIndex: {
133
- type: NumberConstructor;
134
- required: true;
135
- };
136
- /**
137
- * Where the grid's single tab stop is on this row: `-2` not here, `-1`
138
- * the row itself (treegrid), `n` its cell `n`.
139
- */
140
- stop: {
141
- type: NumberConstructor;
142
- default: number;
143
- };
144
- /**
145
- * Selection resolved by the table (`selectAll` and the unselected set
146
- * included), passed as a value so the row does not re-derive it per cell.
147
- */
148
- selected: {
149
- type: BooleanConstructor;
150
- default: boolean;
151
- };
152
- /** `isSelectToggleBlocked`, likewise resolved once by the table. */
153
- selectBlocked: {
154
- type: BooleanConstructor;
155
- default: boolean;
156
- };
157
- }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
158
- [key: string]: any;
159
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
160
- context: {
161
- type: PropType<DataRowContext>;
162
- required: true;
163
- };
164
- item: {
165
- type: PropType<MappedItem>;
166
- required: true;
167
- };
168
- /** Index into the item list (a treegrid's `aria-posinset` counts in it). */
169
- index: {
170
- type: NumberConstructor;
171
- required: true;
172
- };
173
- /** Index into the flat row list — `data-index`, what the virtualizer reads. */
174
- virtualIndex: {
175
- type: NumberConstructor;
176
- required: true;
177
- };
178
- /**
179
- * Where the grid's single tab stop is on this row: `-2` not here, `-1`
180
- * the row itself (treegrid), `n` its cell `n`.
181
- */
182
- stop: {
183
- type: NumberConstructor;
184
- default: number;
185
- };
186
- /**
187
- * Selection resolved by the table (`selectAll` and the unselected set
188
- * included), passed as a value so the row does not re-derive it per cell.
189
- */
190
- selected: {
191
- type: BooleanConstructor;
192
- default: boolean;
193
- };
194
- /** `isSelectToggleBlocked`, likewise resolved once by the table. */
195
- selectBlocked: {
196
- type: BooleanConstructor;
197
- default: boolean;
198
- };
199
- }>> & Readonly<{}>, {
200
- selected: boolean;
201
- stop: number;
202
- selectBlocked: boolean;
203
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
204
- export default _default;
@@ -1,112 +0,0 @@
1
- import { BbTablePtPart, BbTablePtState } from './types.js';
2
- import { PassthroughBindings } from '../../composables/usePassthrough.js';
3
- import { PropType, Slots, VNode } from 'vue';
4
- /** One rendered data column, as an edge row needs it. */
5
- export type EdgeRowColumn = {
6
- key: string;
7
- /** `slotKey(key)`: the cell's slot is `#<slotName>:first` / `:last`. */
8
- slotName: string;
9
- /** Alignment (and `--fluid`), the same classes as the column's data cells. */
10
- classes: string[];
11
- };
12
- /**
13
- * Everything an edge row needs from the table, assembled once in a computed so
14
- * its identity survives a render of the table (see `BbTableDataRow`).
15
- */
16
- export type EdgeRowContext = {
17
- passthrough: PassthroughBindings<BbTablePtPart, BbTablePtState>;
18
- /** The table's own slot bag, forwarded by reference. */
19
- slots: Slots;
20
- selectable: boolean;
21
- /** The row reorder handle column (POC) renders: the edge row fills it. */
22
- rowDrag: boolean;
23
- actions: boolean;
24
- /** `gridcell` under a grid, `cell` under a table. */
25
- cellRole: string;
26
- /** Under `role="grid"` / `"treegrid"`: the cells take the roving tabindex. */
27
- grid: boolean;
28
- /** Keys of the `rowHeader` columns: their cells are `rowheader`s. */
29
- rowHeaderKeys: ReadonlySet<string>;
30
- contentInert: boolean;
31
- columns: EdgeRowColumn[];
32
- /** The width-driven state classes of each column (`--resized` / `--clip`). */
33
- cellClasses: Map<string, string>;
34
- /** The rows in view — the slots' `items`. */
35
- items: unknown[];
36
- };
37
- /**
38
- * the leading (`first`) or trailing (`last`) row of `#<key>:first` /
39
- * `#<key>:last` cells, one per rendered column, in the body rowgroup — so the
40
- * pin pass sticks its pinned cells, and the cells follow `order`, `hidden` and
41
- * resize like the data cells. Not an item: no selection, highlight, expansion
42
- * or row events; the select and actions tracks get empty cells.
43
- *
44
- * A component for the reason `BbTableDataRow` is one: a `virtual` table
45
- * re-renders its body on every window move, and these cells run the
46
- * CONSUMER's slots — typically a sum over every row. Behind a boundary, a
47
- * window move costs a prop comparison, not a re-summed total.
48
- */
49
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
50
- context: {
51
- type: PropType<EdgeRowContext>;
52
- required: true;
53
- };
54
- edge: {
55
- type: PropType<"first" | "last">;
56
- required: true;
57
- };
58
- /** `aria-rowindex`, once the pager facts are known. */
59
- rowIndex: {
60
- type: NumberConstructor;
61
- default: undefined;
62
- };
63
- /** `fixed-first` / `fixed-last`: the row sticks to the scrollport edge. */
64
- fixed: {
65
- type: BooleanConstructor;
66
- default: boolean;
67
- };
68
- /**
69
- * Where the grid's single tab stop is on this row: `-2` not
70
- * here, `n` its cell `n` (clamped to the last cell). An edge row is never
71
- * a row stop, even in a treegrid: it is no item.
72
- */
73
- stop: {
74
- type: NumberConstructor;
75
- default: number;
76
- };
77
- }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
78
- [key: string]: any;
79
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
80
- context: {
81
- type: PropType<EdgeRowContext>;
82
- required: true;
83
- };
84
- edge: {
85
- type: PropType<"first" | "last">;
86
- required: true;
87
- };
88
- /** `aria-rowindex`, once the pager facts are known. */
89
- rowIndex: {
90
- type: NumberConstructor;
91
- default: undefined;
92
- };
93
- /** `fixed-first` / `fixed-last`: the row sticks to the scrollport edge. */
94
- fixed: {
95
- type: BooleanConstructor;
96
- default: boolean;
97
- };
98
- /**
99
- * Where the grid's single tab stop is on this row: `-2` not
100
- * here, `n` its cell `n` (clamped to the last cell). An edge row is never
101
- * a row stop, even in a treegrid: it is no item.
102
- */
103
- stop: {
104
- type: NumberConstructor;
105
- default: number;
106
- };
107
- }>> & Readonly<{}>, {
108
- fixed: boolean;
109
- stop: number;
110
- rowIndex: number;
111
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
112
- export default _default;
@@ -1,84 +0,0 @@
1
- import { DataRowContext } from './BbTableDataRow.js';
2
- import { MappedItem } from './types.js';
3
- import { PropType, VNode } from 'vue';
4
- /**
5
- * One expand row — the row an open item drops below itself, holding the
6
- * consumer's `#expand` slot.
7
- *
8
- * WHY THIS EXISTS: the same reason `BbTableDataRow` does, for the row kind that
9
- * did not get the treatment. Data rows moved behind a component boundary so
10
- * that a table render costs an unchanged row nothing; the expand row stayed in
11
- * the table's own render function, so every one of those renders re-invoked the
12
- * CONSUMER's `#expand` slot for every open row on screen — and what that slot
13
- * usually contains is a whole nested table. Measured on the playground with
14
- * three rows open, dragging: 57 invocations across 20 scroll steps, i.e. all
15
- * three nested tables rebuilt their vnode trees on essentially every step,
16
- * having changed in no way whatsoever. (A `virtual` table re-renders its body
17
- * on every window move, and there are one and a half to two of those per step.)
18
- *
19
- * Its props are the same shape and the same identities as the data row's, so
20
- * `shouldUpdateComponent` bails for exactly the same reason: `context` is one
21
- * computed, `item` comes from `mappedItemAt`'s memo, and the rest are scalars.
22
- *
23
- * The slot bag arrives inside `context` rather than as this component's own
24
- * slots — forwarding would compile to dynamic slots, and a vnode with those is
25
- * forced to update, which would defeat the whole point. See the long note at
26
- * the top of `BbTableDataRow`.
27
- *
28
- * The markup is the table's, not the consumer's: a full-width row whose single
29
- * cell spans every column, carrying the `id` that the expand controller's
30
- * `aria-controls` points at. That cell is the `expand` passthrough part.
31
- */
32
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
33
- context: {
34
- type: PropType<DataRowContext>;
35
- required: true;
36
- };
37
- item: {
38
- type: PropType<MappedItem>;
39
- required: true;
40
- };
41
- /** Index into the flat row list — `data-index`, what the virtualizer reads. */
42
- virtualIndex: {
43
- type: NumberConstructor;
44
- required: true;
45
- };
46
- /** Selection resolved by the table, as on the data row. */
47
- selected: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- /** The grid's tab stop on this row, as on the data row. */
52
- stop: {
53
- type: NumberConstructor;
54
- default: number;
55
- };
56
- }>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
57
- context: {
58
- type: PropType<DataRowContext>;
59
- required: true;
60
- };
61
- item: {
62
- type: PropType<MappedItem>;
63
- required: true;
64
- };
65
- /** Index into the flat row list — `data-index`, what the virtualizer reads. */
66
- virtualIndex: {
67
- type: NumberConstructor;
68
- required: true;
69
- };
70
- /** Selection resolved by the table, as on the data row. */
71
- selected: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- /** The grid's tab stop on this row, as on the data row. */
76
- stop: {
77
- type: NumberConstructor;
78
- default: number;
79
- };
80
- }>> & Readonly<{}>, {
81
- selected: boolean;
82
- stop: number;
83
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
84
- export default _default;
@@ -1,128 +0,0 @@
1
- import { PropType } from 'vue';
2
- /**
3
- * A body row's default selection toggle: the native checkbox (or radio), its
4
- * glyph and its screen-reader label.
5
- *
6
- * It is a component of its own so that its focus ring is ITS render
7
- * dependency, not the row's: focusing or blurring the toggle re-renders this
8
- * toggle only; the row, whose cells run the consumer's slots, is not touched.
9
- * Every prop is a primitive or a reference the row keeps stable, so a row
10
- * render that changes nothing here skips it.
11
- *
12
- * The toggle shows `checked`, the table's selection: a click asks the table to
13
- * change it, and the input is put back to what the selection says afterwards.
14
- * Focus starts over when the toggle switches between checkbox and radio, as a
15
- * fresh input would.
16
- */
17
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
18
- /** Checkbox (multiple selection) or radio. */
19
- multiple: {
20
- type: BooleanConstructor;
21
- required: true;
22
- };
23
- /** Whether the row is selected, as the table resolves it. */
24
- checked: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- disabled: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- readonly: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- /** The shared `name` of the radio group. */
37
- inputName: {
38
- type: StringConstructor;
39
- default: undefined;
40
- };
41
- /** The radio's value. */
42
- value: {
43
- type: PropType<unknown>;
44
- default: undefined;
45
- };
46
- accessibleLabel: {
47
- type: StringConstructor;
48
- default: undefined;
49
- };
50
- /**
51
- * The resolved `pt:selectIcon` binding for the glyph — a cached object
52
- * per state combination, so an unchanged row still skips this toggle.
53
- */
54
- iconAttrs: {
55
- type: PropType<Record<string, unknown>>;
56
- default: undefined;
57
- };
58
- /**
59
- * A committed change — the row asks the table to toggle the item, or,
60
- * `range` (a Shift+click on the checkbox), to extend the
61
- * selection from the last toggled row to this one.
62
- */
63
- onSelect: {
64
- type: PropType<(range: boolean) => void>;
65
- required: true;
66
- };
67
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
68
- [key: string]: any;
69
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
70
- /** Checkbox (multiple selection) or radio. */
71
- multiple: {
72
- type: BooleanConstructor;
73
- required: true;
74
- };
75
- /** Whether the row is selected, as the table resolves it. */
76
- checked: {
77
- type: BooleanConstructor;
78
- default: boolean;
79
- };
80
- disabled: {
81
- type: BooleanConstructor;
82
- default: boolean;
83
- };
84
- readonly: {
85
- type: BooleanConstructor;
86
- default: boolean;
87
- };
88
- /** The shared `name` of the radio group. */
89
- inputName: {
90
- type: StringConstructor;
91
- default: undefined;
92
- };
93
- /** The radio's value. */
94
- value: {
95
- type: PropType<unknown>;
96
- default: undefined;
97
- };
98
- accessibleLabel: {
99
- type: StringConstructor;
100
- default: undefined;
101
- };
102
- /**
103
- * The resolved `pt:selectIcon` binding for the glyph — a cached object
104
- * per state combination, so an unchanged row still skips this toggle.
105
- */
106
- iconAttrs: {
107
- type: PropType<Record<string, unknown>>;
108
- default: undefined;
109
- };
110
- /**
111
- * A committed change — the row asks the table to toggle the item, or,
112
- * `range` (a Shift+click on the checkbox), to extend the
113
- * selection from the last toggled row to this one.
114
- */
115
- onSelect: {
116
- type: PropType<(range: boolean) => void>;
117
- required: true;
118
- };
119
- }>> & Readonly<{}>, {
120
- value: undefined;
121
- checked: boolean;
122
- readonly: boolean;
123
- disabled: boolean;
124
- accessibleLabel: string;
125
- inputName: string;
126
- iconAttrs: Record<string, unknown>;
127
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
128
- export default _default;
@@ -1,25 +0,0 @@
1
- import { TrackEstimate, FittedFloors } from './utils.js';
2
- type Entry = {
3
- kind: string;
4
- column: string;
5
- value: string;
6
- };
7
- type Estimate = (values: string[], label: string, padEm?: number, headerExtraEm?: number, labelType?: {
8
- scale: number;
9
- spacingEm: number;
10
- }, legacyPadEm?: number) => TrackEstimate;
11
- type Fit = (estimates: Record<string, TrackEstimate>, available: number) => FittedFloors;
12
- /** A small seeded generator (mulberry32): the same mixes on every run. */
13
- export declare const seeded: (seed: number) => () => number;
14
- export declare const goldenCases: (corpus: Entry[], estimate: Estimate, fit: Fit) => {
15
- estimates: {
16
- key: string;
17
- e: TrackEstimate;
18
- }[];
19
- fits: {
20
- keys: string[];
21
- room: number;
22
- fit: unknown;
23
- }[];
24
- };
25
- export {};