bitboss-ui 3.0.0-beta.69 → 3.0.0-beta.71
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.
- package/README.md +20 -11
- package/bin/bitboss-ui-mcp.mjs +7 -4
- package/bin/bitboss-ui.mjs +0 -0
- package/bin/cli.mjs +47 -28
- package/dist/ai/BbBaseButton.md +4 -4
- package/dist/ai/BbBreadcrumbs.md +3 -0
- package/dist/ai/BbCarousel.md +32 -29
- package/dist/ai/BbCheckbox.md +5 -6
- package/dist/ai/BbCheckboxGroup.md +28 -26
- package/dist/ai/BbColorInput.md +9 -14
- package/dist/ai/BbDatePickerInput.md +3 -4
- package/dist/ai/BbDropdown.md +35 -1
- package/dist/ai/BbDropdownButton.md +4 -3
- package/dist/ai/BbDropzone.md +3 -3
- package/dist/ai/BbGallery.md +2034 -0
- package/dist/ai/BbNumberInput.md +3 -4
- package/dist/ai/BbPopover.md +12 -6
- package/dist/ai/BbRadio.md +5 -6
- package/dist/ai/BbRadioGroup.md +28 -31
- package/dist/ai/BbRating.md +6 -16
- package/dist/ai/BbSelect.md +10 -11
- package/dist/ai/BbSlider.md +3 -9
- package/dist/ai/BbSwitch.md +6 -6
- package/dist/ai/BbSwitchGroup.md +4 -7
- package/dist/ai/BbTag.md +3 -4
- package/dist/ai/BbTextInput.md +19 -19
- package/dist/ai/BbTextarea.md +8 -8
- package/dist/ai/BbTimePickerInput.md +3 -4
- package/dist/ai/BbTooltip.md +17 -13
- package/dist/ai/CommonField.md +2 -10
- package/dist/ai/OptionsContainer.md +7 -12
- package/dist/ai/changelog.json +119 -4
- package/dist/ai/components.json +37 -32
- package/dist/ai/guides/ai-router.md +3 -2
- package/dist/ai/guides/component-picker.md +1 -0
- package/dist/ai/guides/eslint-rules.md +3 -3
- package/dist/ai/guides/installation-and-plugin-setup.md +5 -5
- package/dist/ai/guides/migration/v2-to-v3.md +53 -1
- package/dist/ai/guides/migration/v3-beta-tooling.md +25 -15
- package/dist/ai/guides/passthrough.md +2 -1
- package/dist/ai/guides/preset-components.md +53 -19
- package/dist/ai/helpers/definePreset.json +8 -1
- package/dist/ai/helpers/definePreset.ts +42 -13
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/common.json +2 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbCarousel.json +3 -2
- package/dist/ai/manifest/components/BbCarousel.tree.json +7 -0
- package/dist/ai/manifest/components/BbCheckbox.json +2 -2
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +10 -18
- package/dist/ai/manifest/components/BbColorInput.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbConfigScope.json +1 -1
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +2 -2
- package/dist/ai/manifest/components/BbGallery.json +54 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
- package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +9 -17
- package/dist/ai/manifest/components/BbRating.removed.json +1 -1
- package/dist/ai/manifest/components/BbRating.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +15 -15
- package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
- package/dist/ai/manifest/components/BbSlider.json +1 -1
- package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
- package/dist/ai/manifest/components/BbTabs.removed.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +4 -4
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +5 -10
- package/dist/ai/manifest/components/OptionsContainer.tree.json +7 -12
- package/dist/ai/manifest/index.json +4 -3
- package/dist/ai/manifest/meta.json +5 -1
- package/dist/ai/manifest/types.advanced.json +4 -2
- package/dist/ai/manifest/types.api.json +3 -3
- package/dist/ai/manifest/types.wrapper.json +1 -0
- package/dist/ai/recipes/inertia/onboarding.md +5 -8
- package/dist/ai/recipes/inertia/record-form.md +33 -12
- package/dist/ai/recipes/nuxt/onboarding.md +5 -8
- package/dist/ai/recipes/nuxt/record-form.md +27 -11
- package/dist/ai/recipes/vue/onboarding.md +5 -8
- package/dist/ai/recipes/vue/record-form.md +25 -11
- package/dist/ai/source/BbBreadcrumbs.md +31 -12
- package/dist/ai/source/BbCalendar.md +2 -0
- package/dist/ai/source/BbCarousel.md +135 -32
- package/dist/ai/source/BbCheckbox.md +36 -42
- package/dist/ai/source/BbCheckboxGroup.md +2 -4
- package/dist/ai/source/BbColorInput.md +2 -4
- package/dist/ai/source/BbDatePickerInput.md +2 -4
- package/dist/ai/source/BbDropdown.md +13 -2
- package/dist/ai/source/BbDropdownButton.md +4 -1
- package/dist/ai/source/BbDropdownGroup.md +11 -2
- package/dist/ai/source/BbGallery.md +2027 -0
- package/dist/ai/source/BbNumberInput.md +2 -4
- package/dist/ai/source/BbRadio.md +36 -42
- package/dist/ai/source/BbRadioGroup.md +4 -6
- package/dist/ai/source/BbRating.md +2 -14
- package/dist/ai/source/BbSelect.md +30 -13
- package/dist/ai/source/BbSelectPopover.md +1 -0
- package/dist/ai/source/BbSlider.md +2 -4
- package/dist/ai/source/BbSwitch.md +34 -38
- package/dist/ai/source/BbSwitchGroup.md +1 -0
- package/dist/ai/source/BbTable.md +15 -8
- package/dist/ai/source/BbTag.md +2 -4
- package/dist/ai/source/BbTextInput.md +2 -4
- package/dist/ai/source/BbTextarea.md +2 -4
- package/dist/ai/source/BbTimePickerInput.md +2 -4
- package/dist/ai/source/BbTooltip.md +9 -3
- package/dist/ai/source/BbTree.md +7 -3
- package/dist/ai/source/CommonField.md +17 -106
- package/dist/ai/source/CommonPopover.md +13 -3
- package/dist/ai/source/FlatListBox.md +3 -3
- package/dist/ai/source/GroupedListBox.md +3 -3
- package/dist/ai/source/GuidesComponent.md +3 -0
- package/dist/ai/source/ListBox.md +4 -4
- package/dist/ai/source/OptionsContainer.md +4 -4
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
- package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
- package/dist/components/BbCalendar/useDayjsLocale.js +5 -3
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +1 -1
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +506 -481
- package/dist/components/BbCarousel/dragRelease.js +14 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +4 -0
- package/dist/components/BbCarousel/types.d.ts +11 -6
- package/dist/components/BbCarousel/types.js +1 -0
- package/dist/components/BbCheckbox/types.d.ts +2 -4
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -4
- package/dist/components/BbColorInput/types.d.ts +2 -4
- package/dist/components/BbDatePickerInput/types.d.ts +2 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
- package/dist/components/BbDropdown/normalizeGroups.js +37 -33
- package/dist/components/BbDropdown/types.d.ts +9 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +95 -94
- package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
- package/dist/components/BbGallery/BbGallery.vue.js +5 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
- package/dist/components/BbGallery/findItem.js +41 -0
- package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
- package/dist/components/BbGallery/types.d.ts +177 -0
- package/dist/components/BbGallery/types.js +29 -0
- package/dist/components/BbNumberInput/types.d.ts +2 -4
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -0
- package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
- package/dist/components/BbRadio/types.d.ts +2 -4
- package/dist/components/BbRadioGroup/types.d.ts +4 -6
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +116 -118
- package/dist/components/BbRating/types.d.ts +2 -4
- package/dist/components/BbSelect/BbSelect.vue.d.ts +10 -4
- package/dist/components/BbSelect/types.d.ts +4 -6
- package/dist/components/BbSlider/types.d.ts +2 -4
- package/dist/components/BbTable/types.d.ts +8 -8
- package/dist/components/BbTag/types.d.ts +2 -4
- package/dist/components/BbTextInput/types.d.ts +2 -4
- package/dist/components/BbTextarea/types.d.ts +2 -4
- package/dist/components/BbTimePickerInput/types.d.ts +2 -4
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
- package/dist/components/BbTooltip/types.d.ts +3 -1
- package/dist/components/BbTree/types.d.ts +3 -3
- package/dist/components/CommonField/types.d.ts +2 -4
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +28 -26
- package/dist/composables/overlayRegistry.d.ts +17 -0
- package/dist/composables/overlayRegistry.js +16 -9
- package/dist/composables/useChoiceIndicator.js +66 -63
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +1 -1
- package/dist/directives/bbGallery.d.ts +64 -0
- package/dist/directives/bbGallery.js +38 -0
- package/dist/i18n/locales/ar.json +3 -1
- package/dist/i18n/locales/cs.json +3 -1
- package/dist/i18n/locales/da.json +3 -1
- package/dist/i18n/locales/de-CH.json +3 -1
- package/dist/i18n/locales/de.json +3 -1
- package/dist/i18n/locales/el.json +3 -1
- package/dist/i18n/locales/en-GB.json +3 -1
- package/dist/i18n/locales/en.json +3 -1
- package/dist/i18n/locales/es-MX.json +3 -1
- package/dist/i18n/locales/es.json +3 -1
- package/dist/i18n/locales/fa.json +3 -1
- package/dist/i18n/locales/fi.json +3 -1
- package/dist/i18n/locales/fr.json +3 -1
- package/dist/i18n/locales/he.json +3 -1
- package/dist/i18n/locales/hu.json +3 -1
- package/dist/i18n/locales/it.json +3 -1
- package/dist/i18n/locales/ja.json +3 -1
- package/dist/i18n/locales/ko.json +3 -1
- package/dist/i18n/locales/nb.json +3 -1
- package/dist/i18n/locales/nl.json +3 -1
- package/dist/i18n/locales/pl.json +3 -1
- package/dist/i18n/locales/pt-BR.json +3 -1
- package/dist/i18n/locales/pt-PT.json +3 -1
- package/dist/i18n/locales/ro.json +3 -1
- package/dist/i18n/locales/ru.json +3 -1
- package/dist/i18n/locales/sv.json +3 -1
- package/dist/i18n/locales/tr.json +3 -1
- package/dist/i18n/locales/uk.json +3 -1
- package/dist/i18n/locales/zh-CN.json +3 -1
- package/dist/i18n/locales/zh-HK.json +3 -1
- package/dist/i18n/locales/zh-TW.json +3 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +38 -36
- package/dist/llms-full.txt +2534 -346
- package/dist/llms-medium.txt +10 -7
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +3 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/plugin.js +18 -17
- package/dist/project-dts.js +17 -16
- package/dist/runtime/nuxt-plugin.js +22 -21
- package/dist/scripts/lib/atomic-write.js +42 -0
- package/dist/styles.css +2 -2
- package/dist/types/FieldLayout.d.ts +4 -1
- package/dist/types/ItemAccessor.d.ts +3 -1
- package/dist/types/ItemPath.d.ts +33 -0
- package/dist/types/passthrough.d.ts +2 -2
- package/dist/types/ptComponentMap.d.ts +2 -1
- package/dist/utilities/calendar/canonicalParts.js +10 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +361 -331
- package/llms.txt +2 -2
- package/package.json +7 -4
- package/scripts/README.md +31 -29
- package/scripts/lib/agent-refresh.mjs +15 -9
- package/scripts/lib/agent-setup.mjs +46 -15
- package/scripts/lib/atomic-write.d.mts +6 -0
- package/scripts/lib/atomic-write.mjs +85 -0
- package/scripts/lib/define-preset-copy.mjs +24 -4
- package/scripts/lib/eslint-plugin.mjs +74 -36
- package/scripts/lib/hand-imported-styles.mjs +44 -99
- package/scripts/lib/helpers-add.mjs +3 -1
- package/scripts/lib/linked-target.mjs +1 -1
- package/scripts/lib/locale-check.mjs +41 -25
- package/scripts/lib/mcp-config.mjs +250 -133
- package/scripts/lib/mcp-sdk.mjs +24 -0
- package/scripts/lib/plugin-options-check.mjs +22 -15
- package/scripts/lib/pnp.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +80 -136
- package/scripts/lib/release-results.mjs +331 -0
- package/scripts/lib/setup.mjs +61 -3
- package/scripts/lib/toolchain-check.mjs +134 -14
- package/scripts/lib/tooling-options.mjs +357 -38
- package/scripts/lib/validate-bb-markup.mjs +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
- package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
- package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
- package/dist/components/BbButton/toggleRoving.d.ts +0 -6
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
- package/dist/components/BbCalendar/calendarMath.d.ts +0 -102
- package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -116
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -411
- package/dist/components/BbCalendar/useDayGrid.d.ts +0 -122
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -93
- package/dist/components/BbCalendar/useToday.d.ts +0 -25
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
- package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
- package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
- package/dist/components/BbDatePickerInput/calendarFields.d.ts +0 -91
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -29
- package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
- package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
- package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
- package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
- package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
- package/dist/components/BbForm/bindFormField.d.ts +0 -56
- package/dist/components/BbForm/formFields.d.ts +0 -77
- package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
- package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
- package/dist/components/BbIcon/iconCache.d.ts +0 -63
- package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -255
- package/dist/components/BbNumberInput/platform.d.ts +0 -7
- package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
- package/dist/components/BbPagination/paginationFit.d.ts +0 -38
- package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
- package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
- package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
- package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
- package/dist/components/BbTable/gridWidgets.d.ts +0 -30
- package/dist/components/BbTable/measuredFloors.d.ts +0 -46
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
- package/dist/components/BbTable/textRuler.d.ts +0 -73
- package/dist/components/BbTable/useRowReorder.d.ts +0 -60
- package/dist/components/BbTable/utils.d.ts +0 -375
- package/dist/components/BbTabs/tablistName.d.ts +0 -4
- package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -15
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
- package/dist/components/BbTree/context.d.ts +0 -25
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
- package/dist/components/ChipsBox/types.d.ts +0 -28
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
- package/dist/components/ClearableButton/types.d.ts +0 -9
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
- package/dist/components/CloseIcon/types.d.ts +0 -2
- package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
- package/dist/components/CommaBox/types.d.ts +0 -20
- package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
- package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
- package/dist/components/CommonFieldInput/types.d.ts +0 -114
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
- package/dist/components/CommonPopover/resolvePlacement.d.ts +0 -9
- package/dist/components/CommonPopover/types.d.ts +0 -120
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
- package/dist/components/ErrorIcon/types.d.ts +0 -3
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
- package/dist/components/FlatListBox/types.d.ts +0 -140
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
- package/dist/components/GroupedListBox/types.d.ts +0 -163
- package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
- package/dist/components/ListBox/types.d.ts +0 -180
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
- package/dist/components/OptionsContainer/types.d.ts +0 -168
- package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
- package/dist/components/Transitions/Slide.vue.d.ts +0 -39
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
- package/dist/components/WarningIcon/types.d.ts +0 -3
- package/dist/composables/__testResets.d.ts +0 -1
- package/dist/composables/autoHost.d.ts +0 -22
- package/dist/composables/formSubmitLock.d.ts +0 -48
- package/dist/composables/hostOpenings.d.ts +0 -88
- package/dist/composables/hostRegistry.d.ts +0 -47
- package/dist/composables/ssrMarker.d.ts +0 -15
- package/dist/composables/useActiveInactiveState.d.ts +0 -4
- package/dist/composables/useArray.d.ts +0 -7
- package/dist/composables/useBaseOptions.d.ts +0 -51
- package/dist/composables/useBodyScrollLock.d.ts +0 -4
- package/dist/composables/useBreakpoint.d.ts +0 -13
- package/dist/composables/useCancelableFunction.d.ts +0 -17
- package/dist/composables/useChoiceIndicator.d.ts +0 -58
- package/dist/composables/useClosingInert.d.ts +0 -28
- package/dist/composables/useCoarsePointer.d.ts +0 -9
- package/dist/composables/useCoherence.d.ts +0 -21
- package/dist/composables/useConfig.d.ts +0 -59
- package/dist/composables/useConfigDefaults.d.ts +0 -54
- package/dist/composables/useDirection.d.ts +0 -43
- package/dist/composables/useEscapeStackEntry.d.ts +0 -13
- package/dist/composables/useFrameworkDetection.d.ts +0 -12
- package/dist/composables/useHashedWatcher.d.ts +0 -19
- package/dist/composables/useHydrated.d.ts +0 -37
- package/dist/composables/useImeDismissBlur.d.ts +0 -103
- package/dist/composables/useIndexById.d.ts +0 -11
- package/dist/composables/useInertiaPage.d.ts +0 -10
- package/dist/composables/useItemText.d.ts +0 -17
- package/dist/composables/useItemValue.d.ts +0 -7
- package/dist/composables/useItemsGetter.d.ts +0 -83
- package/dist/composables/useKeyboardInset.d.ts +0 -28
- package/dist/composables/useListboxFocus.d.ts +0 -21
- package/dist/composables/useLocale.d.ts +0 -5
- package/dist/composables/useLogger.d.ts +0 -5
- package/dist/composables/useMinimalQueue.d.ts +0 -9
- package/dist/composables/useOnFalsy.d.ts +0 -2
- package/dist/composables/useOnTruthy.d.ts +0 -7
- package/dist/composables/useOverlayNavigation.d.ts +0 -37
- package/dist/composables/useOverlayYield.d.ts +0 -23
- package/dist/composables/usePrefill.d.ts +0 -44
- package/dist/composables/useQuery.d.ts +0 -39
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
- package/dist/composables/useRoute.d.ts +0 -3
- package/dist/composables/useRouter.d.ts +0 -2
- package/dist/composables/useSegmentedFields.d.ts +0 -129
- package/dist/composables/useServerPrefetch.d.ts +0 -28
- package/dist/composables/useSheetSurface.d.ts +0 -39
- package/dist/composables/useSsrState.d.ts +0 -28
- package/dist/composables/useTableWidthContext.d.ts +0 -73
- package/dist/composables/useToggleInput.d.ts +0 -44
- package/dist/composables/useTopLayer.d.ts +0 -9
- package/dist/composables/useTypeahead.d.ts +0 -112
- package/dist/composables/useUntil.d.ts +0 -7
- package/dist/composables/useUrlQueryParam.d.ts +0 -21
- package/dist/composables/useViewportWidth.d.ts +0 -14
- package/dist/deprecation/ai-deprecations.json.d.ts +0 -2984
- package/dist/deprecation/removedProps.d.ts +0 -3
- package/dist/directives/createPopoverDirective.d.ts +0 -111
- package/dist/directives/renderingInstance.d.ts +0 -2
- package/dist/i18n/eraNames.d.ts +0 -2
- package/dist/i18n/regionHints.d.ts +0 -16
- package/dist/icons-whitelist.d.ts +0 -9
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +0 -2
- package/dist/styles.d.ts +0 -0
- package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
- package/dist/types/ExtractGenericFromRef.d.ts +0 -2
- package/dist/types/NestedKeyOf.d.ts +0 -3
- package/dist/types/PrefixWith.d.ts +0 -1
- package/dist/types/ShapeErased.d.ts +0 -15
- package/dist/types/Simplify.d.ts +0 -6
- package/dist/utilities/calendar/canonicalParts.d.ts +0 -29
- package/dist/utilities/calendar/digits.d.ts +0 -18
- package/dist/utilities/calendar/gregorian.d.ts +0 -2
- package/dist/utilities/calendar/index.d.ts +0 -3
- package/dist/utilities/calendar/international.d.ts +0 -19
- package/dist/utilities/calendar/resolve.d.ts +0 -32
- package/dist/utilities/calendar/runtime.d.ts +0 -49
- package/dist/utilities/functions/animationsSettled.d.ts +0 -7
- package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
- package/dist/utilities/functions/chunk.d.ts +0 -1
- package/dist/utilities/functions/clamp.d.ts +0 -9
- package/dist/utilities/functions/clampPrecision.d.ts +0 -1
- package/dist/utilities/functions/convertDateValue.d.ts +0 -57
- package/dist/utilities/functions/curry.d.ts +0 -6
- package/dist/utilities/functions/deburr.d.ts +0 -1
- package/dist/utilities/functions/elementLabel.d.ts +0 -8
- package/dist/utilities/functions/empty.d.ts +0 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
- package/dist/utilities/functions/findInTree.d.ts +0 -4
- package/dist/utilities/functions/flattenTree.d.ts +0 -1
- package/dist/utilities/functions/get.d.ts +0 -3
- package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
- package/dist/utilities/functions/hash.d.ts +0 -1
- package/dist/utilities/functions/head.d.ts +0 -2
- package/dist/utilities/functions/identity.d.ts +0 -1
- package/dist/utilities/functions/indexBy.d.ts +0 -11
- package/dist/utilities/functions/isDateDisabled.d.ts +0 -25
- package/dist/utilities/functions/isEqual.d.ts +0 -1
- package/dist/utilities/functions/isHex.d.ts +0 -1
- package/dist/utilities/functions/isImeComposing.d.ts +0 -7
- package/dist/utilities/functions/isNil.d.ts +0 -6
- package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
- package/dist/utilities/functions/isNotNil.d.ts +0 -6
- package/dist/utilities/functions/isTextEntry.d.ts +0 -5
- package/dist/utilities/functions/isoWeek.d.ts +0 -36
- package/dist/utilities/functions/itemProps.d.ts +0 -46
- package/dist/utilities/functions/last.d.ts +0 -2
- package/dist/utilities/functions/negative.d.ts +0 -1
- package/dist/utilities/functions/noop.d.ts +0 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +0 -69
- package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
- package/dist/utilities/functions/parseSize.d.ts +0 -3
- package/dist/utilities/functions/parseWidthString.d.ts +0 -6
- package/dist/utilities/functions/percentage.d.ts +0 -26
- package/dist/utilities/functions/pickBy.d.ts +0 -1
- package/dist/utilities/functions/range.d.ts +0 -1
- package/dist/utilities/functions/readableValue.d.ts +0 -6
- package/dist/utilities/functions/reject.d.ts +0 -25
- package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
- package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
- package/dist/utilities/functions/searchRank.d.ts +0 -19
- package/dist/utilities/functions/settlesVisible.d.ts +0 -20
- package/dist/utilities/functions/snapToStep.d.ts +0 -1
- package/dist/utilities/functions/sort.d.ts +0 -6
- package/dist/utilities/functions/throttle.d.ts +0 -1
- package/dist/utilities/functions/toggleInput.d.ts +0 -114
- package/dist/utilities/functions/transpose.d.ts +0 -1
- package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
- package/dist/utilities/functions/wait.d.ts +0 -2
- package/dist/utilities/functions/waitFor.d.ts +0 -9
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
- package/dist/utilities/functions/when.d.ts +0 -9
- package/dist/utilities/misc/autofocus.d.ts +0 -20
- package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
- package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
- package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
- package/dist/utilities/misc/pageText.d.ts +0 -16
- package/dist/utilities/misc/ssrValue.d.ts +0 -20
- package/dist/utilities/misc/transitions.d.ts +0 -5
- package/dist/utils/configDefaults.d.ts +0 -43
- package/dist/utils/configScope.d.ts +0 -43
- package/dist/utils/copyData.d.ts +0 -13
- package/dist/utils/focusVisibility.d.ts +0 -15
- package/dist/utils/injectLibraryStyles.d.ts +0 -8
- package/dist/utils/overlayEscapeStack.d.ts +0 -52
- package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
- package/dist/utils/passthroughDeduper.d.ts +0 -16
- package/dist/utils/releasedActivator.d.ts +0 -20
- package/dist/utils/versionCheck.d.ts +0 -19
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { App, Ref } from 'vue';
|
|
2
|
-
/** @internal exported for its own spec; the library uses the one below. */
|
|
3
|
-
export declare const createHydrationGate: (browser: boolean) => {
|
|
4
|
-
gate: Readonly<Ref<boolean, boolean>>;
|
|
5
|
-
/**
|
|
6
|
-
* Hold the gate until the caller's app has hydrated; returns the
|
|
7
|
-
* function that opens it. A no-op on the server and once any app has
|
|
8
|
-
* mounted.
|
|
9
|
-
*/
|
|
10
|
-
arm: () => (() => void);
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Arm the page gate AND give `app` its own, closed until this app has
|
|
14
|
-
* hydrated. `open` opens both; `openApp` opens the app's alone, for an app
|
|
15
|
-
* that mounts client-only (nothing to agree with, so its components take
|
|
16
|
-
* the live answer from their first render). On the server nothing is
|
|
17
|
-
* provided: `useHydrated()` falls back to the page gate, which never opens
|
|
18
|
-
* there. @internal used by the runtime plugins only.
|
|
19
|
-
*/
|
|
20
|
-
export declare const armAppHydrationGate: (app: App) => {
|
|
21
|
-
open: () => void;
|
|
22
|
-
openApp: () => void;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The raw gate, without the test override: for the module-level signals
|
|
26
|
-
* (`useMobile`, `useCoarsePointer`, `useViewportWidth`), which keep their own
|
|
27
|
-
* test seams. @internal
|
|
28
|
-
*/
|
|
29
|
-
export declare const hydrationGate: Readonly<Ref<boolean, boolean>>;
|
|
30
|
-
/** @internal test-only */
|
|
31
|
-
export declare const __setHydratedForTest: (value: boolean | null) => void;
|
|
32
|
-
/** @internal test-only */
|
|
33
|
-
export declare const __resetForTest: () => void;
|
|
34
|
-
/** The calling component's app gate, else the page gate. */
|
|
35
|
-
export declare const useHydrated: () => {
|
|
36
|
-
isHydrated: import('vue').ComputedRef<boolean>;
|
|
37
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Drop focus from a surface's text field when the user dismisses the on-screen
|
|
4
|
-
* keyboard, so the next tap cannot summon it again.
|
|
5
|
-
*
|
|
6
|
-
* ## The bug this exists for (Android)
|
|
7
|
-
*
|
|
8
|
-
* In an adaptive SHEET (a select's or a dropdown's bottom off-canvas) the search
|
|
9
|
-
* field takes focus on open and the IME slides up. The user dismisses the
|
|
10
|
-
* keyboard with the back gesture/button to see more rows — but Android only
|
|
11
|
-
* HIDES the IME, it does not blur the field. DOM focus is still on the input, so
|
|
12
|
-
* the very next interaction that touches focus (tapping an option, or any
|
|
13
|
-
* re-focus the component performs on pick) re-summons the keyboard and the sheet
|
|
14
|
-
* jumps under the user's thumb.
|
|
15
|
-
*
|
|
16
|
-
* iOS is not affected the same way: its "Done" key really does blur the field,
|
|
17
|
-
* which is exactly the end state this composable reproduces on Android.
|
|
18
|
-
*
|
|
19
|
-
* ## The signal
|
|
20
|
-
*
|
|
21
|
-
* There is no "IME dismissed" event. The one thing the platform does expose is
|
|
22
|
-
* `window.visualViewport`: with the default `interactive-widget=resizes-visual`
|
|
23
|
-
* behaviour, opening the keyboard shrinks the VISUAL viewport (and leaves the
|
|
24
|
-
* layout viewport alone), closing it grows it back. So a keyboard-sized height
|
|
25
|
-
* GROWTH, with the width and the pinch-zoom scale unchanged, is the keyboard
|
|
26
|
-
* going away.
|
|
27
|
-
*
|
|
28
|
-
* Three guards keep other viewport churn out:
|
|
29
|
-
*
|
|
30
|
-
* - **Arming.** A dismissal only counts after this surface has actually watched
|
|
31
|
-
* the keyboard OPEN (a keyboard-sized SHRINK). Without that, any large growth
|
|
32
|
-
* would be read as a dismissal.
|
|
33
|
-
* - **Geometry.** A rotation changes the width, a pinch-zoom changes width and
|
|
34
|
-
* `scale`; both are rejected and re-baselined instead. The keyboard changes
|
|
35
|
-
* neither.
|
|
36
|
-
* - **Size.** `KEYBOARD_MIN_DELTA_PX` sits above the tallest browser-chrome step
|
|
37
|
-
* (an address bar collapsing/expanding on scroll is ~56px, ~112px with a
|
|
38
|
-
* bottom bar) and below the shortest IME (Android keyboards run ~250-350px,
|
|
39
|
-
* ~200px in landscape).
|
|
40
|
-
*
|
|
41
|
-
* Readings are debounced (`SETTLE_MS`): the keyboard animates over ~250ms and
|
|
42
|
-
* fires a stream of `resize` events, each a fraction of the total. Comparing
|
|
43
|
-
* consecutive events would only ever see those fractions, so we compare
|
|
44
|
-
* SETTLED heights — the height when the churn stops against the height when it
|
|
45
|
-
* last stopped.
|
|
46
|
-
*
|
|
47
|
-
* ## Gates
|
|
48
|
-
*
|
|
49
|
-
* Coarse pointer only, so a desktop window resize (or a devtools dock) can never
|
|
50
|
-
* blur a field mid-typing — there is no IME there to dismiss in the first place.
|
|
51
|
-
* Callers add the surface gate on top via `active` (the sheet, while open).
|
|
52
|
-
*
|
|
53
|
-
* ## What blurring does NOT do
|
|
54
|
-
*
|
|
55
|
-
* It does not close the sheet (the sheet is modal and owns its own dismissal; it
|
|
56
|
-
* attaches no focus-out listeners), and it does not clear the typed query — that
|
|
57
|
-
* lives in a ref, not in the DOM. It only puts the surface into the state a tap
|
|
58
|
-
* outside the field would have produced anyway, which is what the existing
|
|
59
|
-
* "don't hand focus back to the search field" guards
|
|
60
|
-
* (`canHandOffFocusToSearchInput`, `searchIsFocused`) are already written
|
|
61
|
-
* against.
|
|
62
|
-
*
|
|
63
|
-
* @internal Not re-exported from `src/index.ts`.
|
|
64
|
-
*/
|
|
65
|
-
/**
|
|
66
|
-
* The slice of `VisualViewport` this needs. Declared structurally so specs can
|
|
67
|
-
* drive the logic with a fake — a real IME cannot be opened headlessly.
|
|
68
|
-
*/
|
|
69
|
-
export interface ImeViewportLike {
|
|
70
|
-
readonly height: number;
|
|
71
|
-
readonly width: number;
|
|
72
|
-
/** Pinch-zoom factor; absent on fakes that do not model zoom (treated as 1). */
|
|
73
|
-
readonly scale?: number;
|
|
74
|
-
addEventListener(type: 'resize', listener: () => void): void;
|
|
75
|
-
removeEventListener(type: 'resize', listener: () => void): void;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Height change that counts as the keyboard appearing or disappearing. See the
|
|
79
|
-
* "Size" guard above for why it sits where it does.
|
|
80
|
-
*/
|
|
81
|
-
export declare const KEYBOARD_MIN_DELTA_PX = 150;
|
|
82
|
-
/** Quiet period after the last `resize` before a reading is taken as settled. */
|
|
83
|
-
export declare const SETTLE_MS = 150;
|
|
84
|
-
export interface UseImeDismissBlurOptions {
|
|
85
|
-
/**
|
|
86
|
-
* Run only while this is true — the surface gate. Pass the sheet's open
|
|
87
|
-
* state: a desktop-style flyout has no IME problem worth solving and a closed
|
|
88
|
-
* surface has no field to protect.
|
|
89
|
-
*/
|
|
90
|
-
active: MaybeRefOrGetter<boolean>;
|
|
91
|
-
/**
|
|
92
|
-
* The field to drop focus from, or `null` when this surface has none right
|
|
93
|
-
* now. It is only blurred while it actually holds DOM focus, so a surface
|
|
94
|
-
* with several fields can return whichever one is focused.
|
|
95
|
-
*/
|
|
96
|
-
input: () => HTMLElement | null | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* @internal Test seam: the viewport to observe. Defaults to
|
|
99
|
-
* `window.visualViewport`, which no spec can resize by a keyboard's worth.
|
|
100
|
-
*/
|
|
101
|
-
viewport?: MaybeRefOrGetter<ImeViewportLike | null | undefined>;
|
|
102
|
-
}
|
|
103
|
-
export declare const useImeDismissBlur: (options: UseImeDismissBlurOptions) => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MaybeRef } from 'vue';
|
|
2
|
-
type Options<TItem = unknown> = {
|
|
3
|
-
items: MaybeRef<readonly TItem[]>;
|
|
4
|
-
key?: string;
|
|
5
|
-
};
|
|
6
|
-
export type IndexById = ReturnType<typeof useIndexById>;
|
|
7
|
-
export declare const useIndexById: <TItem = unknown>({ items, key, }: Options<TItem>) => {
|
|
8
|
-
data: import('vue').ComputedRef<Record<string, TItem>>;
|
|
9
|
-
get: (value: unknown) => TItem | undefined;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides access to the current Inertia page state via the component instance.
|
|
3
|
-
*
|
|
4
|
-
* Returns a `getPageUrl` function rather than a reactive ref so callers can
|
|
5
|
-
* invoke it inside a `computed()` — Vue then tracks `$page` as a reactive
|
|
6
|
-
* dependency automatically, since Inertia provides it as a reactive global.
|
|
7
|
-
*/
|
|
8
|
-
export declare const useInertiaPage: () => {
|
|
9
|
-
getPageUrl: () => string | undefined;
|
|
10
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type NestedKeyOf<ObjectType extends object> = {
|
|
2
|
-
[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}` : `${Key}`;
|
|
3
|
-
}[keyof ObjectType & (string | number)];
|
|
4
|
-
export type Path<T> = T extends object ? NestedKeyOf<T> | ((item: T) => string | number) | undefined | (string & Record<never, never>) : undefined;
|
|
5
|
-
/**
|
|
6
|
-
* A string, number, boolean or bigint item: its own text and value. A path
|
|
7
|
-
* accessor has nothing to read on it; a function accessor still runs.
|
|
8
|
-
*/
|
|
9
|
-
export declare const isPrimitiveItem: (item: unknown) => item is string | number | bigint | boolean;
|
|
10
|
-
/** A non-null object item that has `key` as an OWN property (never `in`). */
|
|
11
|
-
export declare const hasOwnItemKey: (item: unknown, key: string) => item is Record<string, unknown>;
|
|
12
|
-
declare function getItemText<T>(item: T, getter?: Path<T>): string;
|
|
13
|
-
export declare const useItemText: () => {
|
|
14
|
-
getItemText: typeof getItemText;
|
|
15
|
-
getOptionText: <T>(item: T, getter?: Path<T>) => string;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type ValueGetter<T> = string | ((item: T) => unknown);
|
|
2
|
-
declare function getItemValue<T>(item: T, getter?: ValueGetter<T>): any;
|
|
3
|
-
export declare const useItemValue: () => {
|
|
4
|
-
getItemValue: typeof getItemValue;
|
|
5
|
-
getOptionValue: <T>(item: T, getter?: ValueGetter<T>) => any;
|
|
6
|
-
};
|
|
7
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { MaybeRef } from 'vue';
|
|
2
|
-
import { BbItemsProviderReason } from '../types/ItemsProvider.js';
|
|
3
|
-
/**
|
|
4
|
-
* What a request did. Every caller's follow-up work — the coherence
|
|
5
|
-
* prune, `stash`, BbTable's `pruneIncoherent` — runs on `'applied'` ONLY: a
|
|
6
|
-
* superseded request returned at once when a newer one aborted it, and acting
|
|
7
|
-
* on it would prune against the old (or still empty) list; a failed one
|
|
8
|
-
* cleared the rows, and a failure never prunes.
|
|
9
|
-
*/
|
|
10
|
-
export type ItemsGetterOutcome = 'applied' | 'superseded' | 'failed'
|
|
11
|
-
/** No source to load from (`items` is `null` / `undefined`): not a load, so nothing to prune against (review F4). */
|
|
12
|
-
| 'skipped';
|
|
13
|
-
/**
|
|
14
|
-
* The positional internals of one request. The provider never sees them: the
|
|
15
|
-
* context object is built from them at the provider call, and only there
|
|
16
|
-
* (E2 — storing the object here would make a select's dirty-reopen check,
|
|
17
|
-
* which reads the query, see an always-truthy object). `query` is `undefined`
|
|
18
|
-
* on the components that have no search field, and the context then has no
|
|
19
|
-
* `query` field at all.
|
|
20
|
-
*/
|
|
21
|
-
export type ItemsRequestArgs = [
|
|
22
|
-
query: string | undefined,
|
|
23
|
-
reason: BbItemsProviderReason,
|
|
24
|
-
modelValue: unknown
|
|
25
|
-
];
|
|
26
|
-
type Options = {
|
|
27
|
-
items: MaybeRef<unknown>;
|
|
28
|
-
debounce?: number;
|
|
29
|
-
/**
|
|
30
|
-
* The consumer renders `<SsrMarker :value="ssrMarker" />` as the first node
|
|
31
|
-
* inside its root (see `ssrMarker.ts`), so a hydrating instance may read its
|
|
32
|
-
* payload key there. Off for a consumer that renders no marker: reading a
|
|
33
|
-
* position it does not own could find another component's key.
|
|
34
|
-
*/
|
|
35
|
-
marker?: boolean;
|
|
36
|
-
};
|
|
37
|
-
export declare const useItemsGetter: (options: Options) => {
|
|
38
|
-
getter: (query: string | undefined, reason: BbItemsProviderReason, modelValue: unknown) => Promise<ItemsGetterOutcome>;
|
|
39
|
-
debouncedGetter: (args: () => ItemsRequestArgs) => import('@vueuse/shared').Promisify<Promise<ItemsGetterOutcome> | undefined>;
|
|
40
|
-
items: import('vue').ShallowRef<any[], any[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Can the client rebuild this load unaided? True for a plain ARRAY source:
|
|
43
|
-
* it arrives as a prop, so the server may resolve it even where no
|
|
44
|
-
* SSR-state adapter exists. Consumers hand it to `usePrefill`.
|
|
45
|
-
*/
|
|
46
|
-
clientReproducible: import('vue').ComputedRef<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* Plain boolean, not a ref: it is decided once, in setup, before the first
|
|
49
|
-
* render, and nothing can flip it afterwards.
|
|
50
|
-
*/
|
|
51
|
-
hydratedFromSsr: boolean;
|
|
52
|
-
loading: import('vue').ComputedRef<boolean>;
|
|
53
|
-
/**
|
|
54
|
-
* What the latest failed request rejected with; `null` while nothing has
|
|
55
|
-
* failed and again once a later request applies rows.
|
|
56
|
-
*/
|
|
57
|
-
error: import('vue').ShallowRef<unknown, unknown>;
|
|
58
|
-
/** A request of this instance is running (ungated `loading`). */
|
|
59
|
-
inFlight: () => boolean;
|
|
60
|
-
/** Arguments of the latest request that started; `null` before any. */
|
|
61
|
-
startedArgs: () => ItemsRequestArgs | null;
|
|
62
|
-
/**
|
|
63
|
-
* Arguments of the request whose outcome `items` holds — applied rows, or
|
|
64
|
-
* the cleared rows of a failure; `null` before any.
|
|
65
|
-
*/
|
|
66
|
-
settledArgs: () => ItemsRequestArgs | null;
|
|
67
|
-
/** Ticks each time a request settles into `items` (applied or failed). */
|
|
68
|
-
settledCount: import('vue').Ref<number, number>;
|
|
69
|
-
/**
|
|
70
|
-
* Drop what is on its way: a debounced call not yet fired never runs, and
|
|
71
|
-
* a request in flight is aborted and lands nowhere. `items` keeps what it
|
|
72
|
-
* holds.
|
|
73
|
-
*/
|
|
74
|
-
discard: () => void;
|
|
75
|
-
/** Drop only the debounced calls not yet fired. */
|
|
76
|
-
discardScheduled: () => void;
|
|
77
|
-
/**
|
|
78
|
-
* The payload key the server wrote, for the consumer's `<SsrMarker>`;
|
|
79
|
-
* `''` on the client and whenever nothing was transferred.
|
|
80
|
-
*/
|
|
81
|
-
ssrMarker: import('vue').Ref<string, string>;
|
|
82
|
-
};
|
|
83
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Below this, a shrink of the visual viewport is browser chrome (a collapsing
|
|
4
|
-
* URL bar is ~50–60px), not an on-screen keyboard (~250px and up).
|
|
5
|
-
*/
|
|
6
|
-
export declare const KEYBOARD_MIN_PX = 120;
|
|
7
|
-
export type UseKeyboardInsetOptions = {
|
|
8
|
-
/** Whether to measure at all (the panel is open). */
|
|
9
|
-
active: MaybeRefOrGetter<boolean>;
|
|
10
|
-
/** The panel: only a text field focused INSIDE it counts. */
|
|
11
|
-
container: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
12
|
-
/** Injectable for tests; defaults to `window.visualViewport`. */
|
|
13
|
-
viewport?: () => VisualViewport | null | undefined;
|
|
14
|
-
/** Injectable for tests; defaults to `window.innerHeight`. */
|
|
15
|
-
layoutHeight?: () => number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* How many px of the layout viewport the on-screen keyboard covers, while a
|
|
19
|
-
* text field inside `container` has focus — 0 otherwise.
|
|
20
|
-
*
|
|
21
|
-
* Where the browser resizes the layout for the keyboard
|
|
22
|
-
* (`interactive-widget=resizes-content`, Android Chrome) this stays 0 and the
|
|
23
|
-
* fixed panel already sits above it. Where it only shrinks the VISUAL viewport
|
|
24
|
-
* (iOS Safari), a fixed bottom sheet stays under the keyboard — this is the
|
|
25
|
-
* gap to lift it by. When it rises, the focused field is scrolled back into
|
|
26
|
-
* view inside its scroller.
|
|
27
|
-
*/
|
|
28
|
-
export declare const useKeyboardInset: (options: UseKeyboardInsetOptions) => Ref<number>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
import { Option } from '../types/Option.js';
|
|
3
|
-
interface UseListboxFocusOptions {
|
|
4
|
-
disabled?: MaybeRefOrGetter<boolean>;
|
|
5
|
-
}
|
|
6
|
-
export declare function useListboxFocus(options: MaybeRefOrGetter<Option[]>, { disabled }?: UseListboxFocusOptions): {
|
|
7
|
-
focusedIndex: import('vue').Ref<number | null, number | null>;
|
|
8
|
-
canFocus: import('vue').ComputedRef<boolean>;
|
|
9
|
-
focusNext: () => void;
|
|
10
|
-
focusPrevious: () => void;
|
|
11
|
-
focusFirst: () => void;
|
|
12
|
-
focusLast: () => void;
|
|
13
|
-
focusFirstSelected: () => void;
|
|
14
|
-
focusLastSelected: () => void;
|
|
15
|
-
focusByHash: (hash: Option["valueHash"]) => void;
|
|
16
|
-
blur: () => void;
|
|
17
|
-
focusByPointer: (index: number) => void;
|
|
18
|
-
blurPointerFocus: () => void;
|
|
19
|
-
getHighlighted: () => Option | undefined;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a minimal queue that allows to queue functions and execute them one by one.
|
|
3
|
-
* It is useful to avoid race conditions and to ensure that the functions are executed in the correct order.
|
|
4
|
-
*
|
|
5
|
-
* @returns A function that can be used to queue functions.
|
|
6
|
-
*/
|
|
7
|
-
export declare const useMinimalQueue: () => {
|
|
8
|
-
queueFunction: (fn: (...args: any[]) => Promise<any>) => (...args: any[]) => Promise<any>;
|
|
9
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WatchOptions, WatchSource } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Runs `fn` whenever the watched source transitions to a truthy value — the
|
|
4
|
-
* mirror of `useOnFalsy`. Used to emit a symmetric `active` event alongside the
|
|
5
|
-
* `inactive` one on activation-tracking inputs.
|
|
6
|
-
*/
|
|
7
|
-
export declare const useOnTruthy: (value: WatchSource<any>, fn: () => void, options?: WatchOptions) => void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
/** Present and not `'false'` opens (`?dialog`, `?dialog=1`, …); we write `true`. */
|
|
3
|
-
export declare const isOpenQueryValue: (value: string | null | undefined) => boolean;
|
|
4
|
-
/**
|
|
5
|
-
* THE Inertia seam. Inertia answers every popstate
|
|
6
|
-
* by remounting the page from `history.state` (`preserveState: false`); for a
|
|
7
|
-
* Back that only closes a URL dialog that would drop page state, skip the
|
|
8
|
-
* leave transition and settle `'unmounted'`. So a popstate whose URL differs
|
|
9
|
-
* from the last known one by navigation-dialog keys ALONE never reaches
|
|
10
|
-
* Inertia: its page is identical in both entries (our writes copy
|
|
11
|
-
* `history.state`), and `history.state` is never written. Any other
|
|
12
|
-
* difference (path, hash, another query key) passes through untouched.
|
|
13
|
-
*/
|
|
14
|
-
export declare const swallowsPopstate: (before: string | null, after: string, keys: Iterable<string>) => boolean;
|
|
15
|
-
/** Client-only, idempotent. Called by `bitbossUiPlugin.install`. */
|
|
16
|
-
export declare const installOverlayNavigation: () => void;
|
|
17
|
-
/** In the surface that renders a stand-in: what a Back asks of it. */
|
|
18
|
-
export declare const provideStandInClose: () => () => boolean | null;
|
|
19
|
-
/** In the stand-in itself (only: check `isOverlayStandIn()` first). */
|
|
20
|
-
export declare const registerStandInClose: (request: () => boolean) => void;
|
|
21
|
-
/**
|
|
22
|
-
* The surface side, once in BbDialog / BbOffCanvas setup, right after
|
|
23
|
-
* `useOverlayHost`. A no-op unless `enabled()`.
|
|
24
|
-
*/
|
|
25
|
-
export declare const useOverlayNavigation: (options: {
|
|
26
|
-
component: "BbDialog" | "BbOffCanvas";
|
|
27
|
-
enabled: () => boolean;
|
|
28
|
-
key: () => string;
|
|
29
|
-
replace: () => boolean;
|
|
30
|
-
id: () => string | undefined;
|
|
31
|
-
model: Ref<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* The system close request (Esc's path): closes with `'escape'` and
|
|
34
|
-
* returns true, or refuses with the deny nudge and returns false.
|
|
35
|
-
*/
|
|
36
|
-
requestClose: () => boolean;
|
|
37
|
-
}) => void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A surface the pointer or focus opens on its own (a hover card; a tooltip,
|
|
3
|
-
* should it opt in) gives way to anything the user opened deliberately — a
|
|
4
|
-
* menu, a popover, a dialog, a select, a picker.
|
|
5
|
-
*
|
|
6
|
-
* While such an overlay is open, `blocked()` is true and an open surface is
|
|
7
|
-
* closed (`close`). EXCEPTION: a trigger inside that overlay (a name inside a
|
|
8
|
-
* dialog or a popover) works normally, and so does a surface the overlay was
|
|
9
|
-
* opened from (a menu opened by a command inside the card). Both are decided
|
|
10
|
-
* by DOM containment against the overlay's element, which overlays hand the
|
|
11
|
-
* shared Escape stack when they register (`EscapeSurface.element`); every
|
|
12
|
-
* library overlay renders in place, inside the tree that opened it, so
|
|
13
|
-
* containment is the opening relationship. An overlay that gave no element
|
|
14
|
-
* blocks everything.
|
|
15
|
-
*
|
|
16
|
-
* Nothing reopens when the overlay closes: the next hover or focus does.
|
|
17
|
-
*
|
|
18
|
-
* One line to opt in:
|
|
19
|
-
* `const { blocked } = useOverlayYield(() => triggerEl.value, () => panelEl.value, close);`
|
|
20
|
-
*/
|
|
21
|
-
export declare const useOverlayYield: (trigger: () => Element | null | undefined, own: () => Element | null | undefined, close: () => void) => {
|
|
22
|
-
blocked: () => boolean;
|
|
23
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
type Options = {
|
|
3
|
-
/**
|
|
4
|
-
* Performs the first load. The consumer's `fn` calls its getter with
|
|
5
|
-
* `reason: 'initial'` and runs its post-load work; whatever it resolves to
|
|
6
|
-
* is discarded here.
|
|
7
|
-
*/
|
|
8
|
-
fn: () => any;
|
|
9
|
-
/**
|
|
10
|
-
* External trigger used to unlock preload.
|
|
11
|
-
* Can be a boolean or reactive getter.
|
|
12
|
-
*/
|
|
13
|
-
trigger?: MaybeRefOrGetter<boolean>;
|
|
14
|
-
multiple?: boolean;
|
|
15
|
-
currentValue?: MaybeRefOrGetter<any>;
|
|
16
|
-
/**
|
|
17
|
-
* "The first load already happened — don't do it again."
|
|
18
|
-
*
|
|
19
|
-
* Set by consumers from `useItemsGetter`'s `hydratedFromSsr`: the server
|
|
20
|
-
* resolved the provider and the result travelled in the SSR payload, so the
|
|
21
|
-
* options are already in hand before the first client render. Read ONCE, in
|
|
22
|
-
* setup — it describes how this instance started, and nothing later changes
|
|
23
|
-
* that.
|
|
24
|
-
*/
|
|
25
|
-
alreadyLoaded?: MaybeRefOrGetter<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* "The client can rebuild this load without help."
|
|
28
|
-
*
|
|
29
|
-
* True for a plain `items` ARRAY: it arrives as a prop, so a server render of
|
|
30
|
-
* it is reproduced exactly on the client with no transfer. Such a source may
|
|
31
|
-
* resolve during SSR even on a host with no SSR-state adapter. An async
|
|
32
|
-
* provider is the opposite case and needs the adapter.
|
|
33
|
-
*/
|
|
34
|
-
clientReproducible?: MaybeRefOrGetter<boolean>;
|
|
35
|
-
};
|
|
36
|
-
export declare const usePrefill: ({ fn, trigger, multiple, currentValue, alreadyLoaded, clientReproducible, }: Options) => {
|
|
37
|
-
isPrefilling: import('vue').ComputedRef<boolean>;
|
|
38
|
-
hasPrefilled: import('vue').Ref<boolean, boolean>;
|
|
39
|
-
canLoad: import('vue').ComputedRef<boolean>;
|
|
40
|
-
prefill: () => Promise<void>;
|
|
41
|
-
markPrefilled: () => void;
|
|
42
|
-
whenPrefilled: () => Promise<void>;
|
|
43
|
-
};
|
|
44
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
export type QueryArrayFormat = 'comma' | 'repeat' | 'bracket';
|
|
3
|
-
export type QueryValue = string | string[];
|
|
4
|
-
export interface UseQueryOptions {
|
|
5
|
-
arrayFormat?: QueryArrayFormat;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Parses a query string into a plain object.
|
|
9
|
-
* Supports repeated keys, comma arrays and bracket notation arrays.
|
|
10
|
-
*/
|
|
11
|
-
export declare const parseQueryString: (queryString: string, { arrayFormat }?: UseQueryOptions) => Record<string, QueryValue>;
|
|
12
|
-
/**
|
|
13
|
-
* Returns a reactive query object from the active runtime context.
|
|
14
|
-
*
|
|
15
|
-
* MUST be called synchronously during component `setup` (like every
|
|
16
|
-
* composable): the owning instance is captured exactly once, and Inertia's
|
|
17
|
-
* `$page` stays reactive through that captured proxy — so the returned
|
|
18
|
-
* computed keeps working (and stays in sync with Inertia navigations) no
|
|
19
|
-
* matter when or where it is re-evaluated. This is what makes it safe to
|
|
20
|
-
* read from watchers, event handlers, or other computeds; calling `useQuery`
|
|
21
|
-
* itself from inside a `computed` would capture no instance and silently
|
|
22
|
-
* lose Inertia detection on re-evaluation.
|
|
23
|
-
*
|
|
24
|
-
* The live address bar (`location.search`) is preferred whenever it's
|
|
25
|
-
* reachable — client-side, on every platform, Inertia included. `$page.url`
|
|
26
|
-
* is only an SSR-time fallback for Inertia (no `window` there). A real
|
|
27
|
-
* Inertia visit always moves the address bar and `$page.url` together, but a
|
|
28
|
-
* client-only history write (e.g. `BbTabs`' own
|
|
29
|
-
* `history.pushState`/`replaceState`) advances only the address bar —
|
|
30
|
-
* `$page.url` only moves on a full round-trip, so preferring it would return
|
|
31
|
-
* a stale query the moment something writes the URL without one.
|
|
32
|
-
* `$page.url` is still READ unconditionally on the Inertia branch (its value
|
|
33
|
-
* only matters for the SSR fallback) so a real Inertia navigation — which
|
|
34
|
-
* reassigns that reactive property — keeps invalidating this computed the
|
|
35
|
-
* same way it always did; a client-only write triggers no such invalidation
|
|
36
|
-
* (nothing reactive changed), but the next unrelated re-evaluation still
|
|
37
|
-
* reads the live address bar, so it can never observe a stale value.
|
|
38
|
-
*/
|
|
39
|
-
export declare const useQuery: (options?: UseQueryOptions) => ComputedRef<Record<string, QueryValue>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* a refused close (backdrop, Escape, ✕ or the slots' `close` under
|
|
3
|
-
* `prevent-close` / `persistent`) plays the deny shake, which a screen reader
|
|
4
|
-
* cannot see. This puts one polite line in the surface's live region instead.
|
|
5
|
-
*
|
|
6
|
-
* Once per burst: the text stays while refusals keep coming (a held or
|
|
7
|
-
* repeated Escape changes nothing, so nothing is re-read), and clears after
|
|
8
|
-
* `quietMs` without one, so the next refused attempt is announced again.
|
|
9
|
-
*/
|
|
10
|
-
export declare const useRefusedCloseAnnouncement: (message: () => string, quietMs?: number) => {
|
|
11
|
-
text: import('vue').Ref<string, string>;
|
|
12
|
-
announce: () => void;
|
|
13
|
-
};
|