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,131 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, Ref, Slots } from 'vue';
|
|
2
|
-
import { BbDropdownProps, KeyedItem, NormalizedGroup, BbDropdownPtPart, BbDropdownPtState } from './types.js';
|
|
3
|
-
import { PassthroughBindings } from '../../composables/usePassthrough.js';
|
|
4
|
-
/**
|
|
5
|
-
* Shared state and actions published by `BbDropdown` to every (recursive)
|
|
6
|
-
* `BbDropdownList`. Passing it through provide/inject keeps the recursive
|
|
7
|
-
* panel free of prop-drilling across submenu levels.
|
|
8
|
-
*/
|
|
9
|
-
export type DropdownContext = {
|
|
10
|
-
/**
|
|
11
|
-
* The dropdown's passthrough resolver: the lists resolve `item` (and its `itemText` / `itemIcon` / `itemDescription` / `check`) per entry
|
|
12
|
-
* with `part()`, the adaptive sheet forwards `root` / `header` / `footer`.
|
|
13
|
-
*/
|
|
14
|
-
passthrough: PassthroughBindings<BbDropdownPtPart, BbDropdownPtState>;
|
|
15
|
-
/** Root component id, used to derive item ids and the activator selector. */
|
|
16
|
-
rootId: string;
|
|
17
|
-
/**
|
|
18
|
-
* Id of the element that labels the menu (the activator, or the component id
|
|
19
|
-
* when the activator has no pre-existing id) — same source the desktop
|
|
20
|
-
* flyout's `aria-labelledby` uses.
|
|
21
|
-
*/
|
|
22
|
-
activatorId: Ref<string>;
|
|
23
|
-
/** Whether the root menu is open (exposed to slots). */
|
|
24
|
-
open: Ref<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* Current selection (item keys) for a group by key. Used by recursive panels
|
|
27
|
-
* to render checks on **nested** selectable groups, which re-normalize their
|
|
28
|
-
* items locally and so don't get the root's selection injection.
|
|
29
|
-
*/
|
|
30
|
-
selectedFor: (key: string) => string[];
|
|
31
|
-
/** Dropdown-level default placeholder text while a pipeline group loads. */
|
|
32
|
-
loadingText: ComputedRef<string | undefined>;
|
|
33
|
-
/** Dropdown-level default placeholder text when a pipeline group is empty. */
|
|
34
|
-
emptyText: ComputedRef<string | undefined>;
|
|
35
|
-
/** Dropdown-level default for a pipeline group's `failedText` (a failed load). */
|
|
36
|
-
failedText: ComputedRef<string | undefined>;
|
|
37
|
-
/** Dropdown-level default for pipeline-group selection coherence enforcement. */
|
|
38
|
-
enforceCoherence: ComputedRef<boolean | undefined>;
|
|
39
|
-
/** Live search query for a searchable group, by group key ('' when none). */
|
|
40
|
-
queryFor: (key: string) => string;
|
|
41
|
-
/** Sets a searchable group's query (from its own search field). */
|
|
42
|
-
setQuery: (key: string, value: string) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Signals that a group's items are now on screen (its list rendered — the root
|
|
45
|
-
* on open, a submenu on drill-in), so its pipeline resolver can fetch lazily
|
|
46
|
-
* only when the user actually reaches it.
|
|
47
|
-
*/
|
|
48
|
-
activateGroup: (key: string) => void;
|
|
49
|
-
/** Whether a group has been activated (its list has rendered at least once). */
|
|
50
|
-
isActivated: (key: string) => boolean;
|
|
51
|
-
/** Whether a group key resolves through the async/mapped pipeline. */
|
|
52
|
-
isPipelineGroup: (key: string) => boolean;
|
|
53
|
-
/** Whether a group is re-fetching over an existing result set (dim + strip). */
|
|
54
|
-
isGroupLoading: (key: string) => boolean;
|
|
55
|
-
/** Whether a pipeline group sits at the root level (loads on open, not drill-in). */
|
|
56
|
-
isTopLevelPipeline: (key: string) => boolean;
|
|
57
|
-
/** Debounce (ms) for the query-driven async re-fetch of searchable groups. */
|
|
58
|
-
queryDebounceTime: ComputedRef<number>;
|
|
59
|
-
/** Current placement (exposed to slots). */
|
|
60
|
-
placement: ComputedRef<BbDropdownProps['placement']>;
|
|
61
|
-
/** Whether the whole dropdown is disabled. */
|
|
62
|
-
disabled: ComputedRef<boolean>;
|
|
63
|
-
/**
|
|
64
|
-
* Selected options of a group as `{ key, text }`, resolved even when the
|
|
65
|
-
* current search filters them out of the list — for the adaptive sheet's
|
|
66
|
-
* removable selection chips.
|
|
67
|
-
*/
|
|
68
|
-
selectedChipsFor: (key: string) => Array<{
|
|
69
|
-
key: string;
|
|
70
|
-
text: string;
|
|
71
|
-
}>;
|
|
72
|
-
/** Remove one item from a group's selection (chip clear); syncs `v-model`. */
|
|
73
|
-
deselect: (groupKey: string, itemKey: string) => void;
|
|
74
|
-
/** Closes the entire menu (all levels). */
|
|
75
|
-
close: () => void | Promise<void>;
|
|
76
|
-
/** Returns focus to the activator. */
|
|
77
|
-
focusActivator: () => void;
|
|
78
|
-
/**
|
|
79
|
-
* Whether this menu is the top of the overlay Escape stack: a submenu level
|
|
80
|
-
* closes on Escape only then, never under a popover or dialog opened from
|
|
81
|
-
* one of its items.
|
|
82
|
-
*/
|
|
83
|
-
ownsEscape: () => boolean;
|
|
84
|
-
/** What opened the menu (unset: a `v-model` or script open). */
|
|
85
|
-
openModality: () => 'pointer' | 'keyboard' | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Toggles selection of `item` within `group` (passed directly so groups
|
|
88
|
-
* nested in submenus work too), emitting the dropdown's
|
|
89
|
-
* `item:selected`/`item:unselected` events and handling the top-level
|
|
90
|
-
* single-group radio auto-close.
|
|
91
|
-
*/
|
|
92
|
-
toggleSelect: (group: NormalizedGroup, item: KeyedItem) => void;
|
|
93
|
-
/** Whether `item`'s async `onClick` is currently in flight (per item key). */
|
|
94
|
-
isItemLoading: (key: string) => boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Runs `item.onClick`. With `close`, the whole menu closes immediately; the
|
|
97
|
-
* loading flag then lives on independently until an async handler settles, so
|
|
98
|
-
* the activator can keep showing a busy state after the menu has closed.
|
|
99
|
-
* Without `close` (selectable items) the menu stays open and the item is
|
|
100
|
-
* flagged as loading until the handler settles.
|
|
101
|
-
*/
|
|
102
|
-
runItemAction: (item: KeyedItem, event: Event, options?: {
|
|
103
|
-
close?: boolean;
|
|
104
|
-
}) => Promise<void>;
|
|
105
|
-
/** `BbDropdown`'s slots, forwarded so any level can render named item slots. */
|
|
106
|
-
slots: Slots;
|
|
107
|
-
/**
|
|
108
|
-
* Publishes the ROOT level's placeholder copy ("Loading…", "No results") so
|
|
109
|
-
* the surface can announce it from a status region OUTSIDE the menu.
|
|
110
|
-
*
|
|
111
|
-
* The placeholder row itself cannot carry the announcement: it lives inside
|
|
112
|
-
* `role="menu"`, whose content model admits only items and groups, and a
|
|
113
|
-
* reader in menu mode walks items — so a `role="presentation"` row is
|
|
114
|
-
* skipped and an empty search announces nothing at all, which reads as a
|
|
115
|
-
* hang. Promoting it to a disabled menuitem was rejected: it is not a
|
|
116
|
-
* command, and it would make an empty menu announce "1 item". So the row
|
|
117
|
-
* stays presentational and the surface renders the same copy in a
|
|
118
|
-
* purpose-built `role="status"` node next to the menu.
|
|
119
|
-
*
|
|
120
|
-
* Only the root list publishes (`level === 0`): a submenu's placeholder is
|
|
121
|
-
* announced by its own level when the user drills into it, and two writers
|
|
122
|
-
* would race for one region.
|
|
123
|
-
*/
|
|
124
|
-
setStatus: (text: string | undefined) => void;
|
|
125
|
-
/** The published copy, read by whichever surface renders the status node. */
|
|
126
|
-
status: Ref<string | undefined>;
|
|
127
|
-
};
|
|
128
|
-
/** Called once by `BbDropdown` to publish the render context. */
|
|
129
|
-
export declare const provideDropdownContext: (context: DropdownContext) => void;
|
|
130
|
-
/** Consumed by `BbDropdownList`. Throws when used outside a `BbDropdown`. */
|
|
131
|
-
export declare const useDropdownContext: () => DropdownContext;
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { IconType } from '../../types/Icon.js';
|
|
3
|
-
import { DropdownItemVariantType } from '../../types/DropdownItemVariant.js';
|
|
4
|
-
import { InternalGroup, InternalItem } from './types.js';
|
|
5
|
-
/**
|
|
6
|
-
* Live description of a group contributed by a `<BbDropdownGroup>` companion.
|
|
7
|
-
* Selection state is owned by `BbDropdown`; the companion only declares the
|
|
8
|
-
* group's shape and observes its selection via {@link DropdownGroupRegistry}.
|
|
9
|
-
* `BbDropdown` merges these descriptors into the items it renders, keyed by
|
|
10
|
-
* {@link DropdownGroupDescriptor.key}.
|
|
11
|
-
*/
|
|
12
|
-
export type DropdownGroupDescriptor = {
|
|
13
|
-
key: string;
|
|
14
|
-
label?: string;
|
|
15
|
-
hideLabel?: boolean;
|
|
16
|
-
items?: InternalGroup['items'];
|
|
17
|
-
selectable?: boolean;
|
|
18
|
-
multiple?: boolean;
|
|
19
|
-
'prepend:icon'?: IconType;
|
|
20
|
-
'append:icon'?: IconType;
|
|
21
|
-
variant?: DropdownItemVariantType;
|
|
22
|
-
onClick?: (...args: any[]) => any;
|
|
23
|
-
/** Registration order, used to keep appended groups in declaration order. */
|
|
24
|
-
order: number;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* A change to a controlled group's value, asked of its companion. In
|
|
28
|
-
* VALUES, never selection keys: the picked row's value is known (it was just
|
|
29
|
-
* clicked), the rest is the app's current value, so nothing is reversed
|
|
30
|
-
* through the key map.
|
|
31
|
-
*
|
|
32
|
-
* - `add` / `remove` — a `multiple` group gains / loses a value (or a single
|
|
33
|
-
* group's chip × removes its value);
|
|
34
|
-
* - `replace` — a single group picks a value;
|
|
35
|
-
* - `clear` — a `clearable` single group's re-click;
|
|
36
|
-
* - `keep` — coherence pruning: keep only the values whose selection key is
|
|
37
|
-
* in the set.
|
|
38
|
-
*/
|
|
39
|
-
export type DropdownGroupRequest = {
|
|
40
|
-
add: any;
|
|
41
|
-
} | {
|
|
42
|
-
remove: any;
|
|
43
|
-
} | {
|
|
44
|
-
replace: any;
|
|
45
|
-
} | {
|
|
46
|
-
clear: true;
|
|
47
|
-
} | {
|
|
48
|
-
keep: Set<string>;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* What a `<BbDropdownGroup>` companion hands the dropdown so a CONTROLLED
|
|
52
|
-
* group (the app listens for `update:modelValue`) is never
|
|
53
|
-
* written by the dropdown: its ticks are always the app's value, and a pick is
|
|
54
|
-
* a request the app answers.
|
|
55
|
-
*/
|
|
56
|
-
export type DropdownGroupController = {
|
|
57
|
-
/** Whether the group is controlled right now. */
|
|
58
|
-
controlled: () => boolean;
|
|
59
|
-
/** Emit the value a change asks for (`update:modelValue`, then the group's `item:*`). */
|
|
60
|
-
request: (change: DropdownGroupRequest) => void;
|
|
61
|
-
};
|
|
62
|
-
export type DropdownGroupRegistry = {
|
|
63
|
-
/** A companion binds its controller for a group. */
|
|
64
|
-
bindController: (key: string, controller: DropdownGroupController) => void;
|
|
65
|
-
/**
|
|
66
|
-
* A companion unbinds its controller on unmount — only if it is still the
|
|
67
|
-
* bound one (a successor with the same `id` may have bound already).
|
|
68
|
-
* Returns whether it was.
|
|
69
|
-
*/
|
|
70
|
-
unbindController: (key: string, controller: DropdownGroupController) => boolean;
|
|
71
|
-
/**
|
|
72
|
-
* A resolver listens for a controlled group's picks (`null` stops): the
|
|
73
|
-
* value is on its way to the app, so it keeps the picked row, which stays
|
|
74
|
-
* named if the value lands after a new search.
|
|
75
|
-
*/
|
|
76
|
-
onPick: (key: string, listener: ((itemKey: string) => void) | null) => void;
|
|
77
|
-
/** Whether a group is controlled: its companion's app listens for `update:modelValue`. */
|
|
78
|
-
isControlled: (key: string) => boolean;
|
|
79
|
-
/** Ask a controlled group's companion for a change; the dropdown writes nothing. */
|
|
80
|
-
request: (key: string, change: DropdownGroupRequest) => void;
|
|
81
|
-
/** Register or update a companion's descriptor. */
|
|
82
|
-
register: (id: number, descriptor: Ref<DropdownGroupDescriptor>) => void;
|
|
83
|
-
/** Remove a companion's descriptor on unmount. */
|
|
84
|
-
unregister: (id: number) => void;
|
|
85
|
-
/** Seeds a group's initial selection (only applied if not already set). */
|
|
86
|
-
seed: (key: string, initial: string[]) => void;
|
|
87
|
-
/**
|
|
88
|
-
* Replaces a group's current selection (item keys). Used by the companion to
|
|
89
|
-
* prune incoherent keys when enforcing coherence; the change propagates back to
|
|
90
|
-
* `v-model` through the companion's selection watcher.
|
|
91
|
-
*/
|
|
92
|
-
setSelection: (key: string, keys: string[]) => void;
|
|
93
|
-
/**
|
|
94
|
-
* True while {@link DropdownGroupRegistry.setSelection} is writing — the
|
|
95
|
-
* app's value or a coherence prune, never the user's pick. A companion's
|
|
96
|
-
* synchronous selection watcher reads it to fire no `item:*` then (the one
|
|
97
|
-
* meaning of those events: the user picked / unpicked a row).
|
|
98
|
-
*/
|
|
99
|
-
isAppWrite: () => boolean;
|
|
100
|
-
/** Reactive current selection (item keys) for a group, for the companion to spy on. */
|
|
101
|
-
selectionFor: (key: string) => string[];
|
|
102
|
-
/** Resolved item list for a group after dropdown inheritance/overrides are applied. */
|
|
103
|
-
itemsFor: (key: string) => InternalItem[];
|
|
104
|
-
/**
|
|
105
|
-
* The raw group definition declared in `BbDropdown.items` for this key,
|
|
106
|
-
* before any companion override — the source of truth for a pipeline group's
|
|
107
|
-
* `items` getter, `itemText`/`itemValue`, `max`, etc. `undefined` when the
|
|
108
|
-
* key has no declared group.
|
|
109
|
-
*/
|
|
110
|
-
configFor: (key: string) => InternalGroup | undefined;
|
|
111
|
-
/** Resolved selectable flag for a group after dropdown inheritance/overrides are applied. */
|
|
112
|
-
selectableFor: (key: string) => boolean | undefined;
|
|
113
|
-
/** Resolved selection mode for a group after dropdown inheritance/overrides are applied. */
|
|
114
|
-
multipleFor: (key: string) => boolean | undefined;
|
|
115
|
-
/** Whether the group resolves its items through the async/mapping pipeline. */
|
|
116
|
-
isPipeline: (key: string) => boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Published by the internal pipeline resolver: per selection-key lookups of the
|
|
119
|
-
* resolved value (`item-value`) and the original item. `null` clears them on
|
|
120
|
-
* unmount. The companion reads these to translate selection ⇄ `v-model`.
|
|
121
|
-
*/
|
|
122
|
-
publishPipeline: (key: string, maps: {
|
|
123
|
-
valueByKey: Map<string, any>;
|
|
124
|
-
itemByKey: Map<string, any>;
|
|
125
|
-
textByKey: Map<string, string>;
|
|
126
|
-
descriptionByKey: Map<string, string>;
|
|
127
|
-
} | null) => void;
|
|
128
|
-
/**
|
|
129
|
-
* Published by the internal pipeline resolver: whether a re-fetch is running
|
|
130
|
-
* over an existing result set, so the group can dim its rows and show a loading
|
|
131
|
-
* strip instead of blanking to a placeholder.
|
|
132
|
-
*/
|
|
133
|
-
publishLoading: (key: string, loading: boolean) => void;
|
|
134
|
-
/**
|
|
135
|
-
* Published by the internal pipeline resolver: whether ANY fetch is in flight
|
|
136
|
-
* for the group (first load or re-fetch) — surfaced to `useBbDropdown`.
|
|
137
|
-
*/
|
|
138
|
-
publishFetching: (key: string, fetching: boolean) => void;
|
|
139
|
-
/**
|
|
140
|
-
* Published by a `<BbDropdownGroup>` companion: its raw `v-model`, as handed
|
|
141
|
-
* to the fetch provider's `modelValue` argument. `undefined` clears it on
|
|
142
|
-
* unmount. The companion is the only holder of the *unresolved* value —
|
|
143
|
-
* selection keys are `hash(value)`, so before the first fetch there is no map
|
|
144
|
-
* to reverse them through. See {@link DropdownGroupRegistry.modelValueFor}.
|
|
145
|
-
*/
|
|
146
|
-
publishModel: (key: string, value: any) => void;
|
|
147
|
-
/**
|
|
148
|
-
* A group's current selection in `v-model` shape (array when `multiple`, the
|
|
149
|
-
* single value or `null` otherwise) — the provider's `modelValue` argument.
|
|
150
|
-
* Prefers a companion's published `v-model`, since that survives the
|
|
151
|
-
* chicken-and-egg of the very first fetch (nothing is loaded yet, so the
|
|
152
|
-
* seeded keys can't be resolved). Falls back to resolving the dropdown-owned
|
|
153
|
-
* selection for a pipeline group declared without a companion, where the
|
|
154
|
-
* selection can only have come from clicking an already-loaded item.
|
|
155
|
-
*/
|
|
156
|
-
modelValueFor: (key: string) => any;
|
|
157
|
-
/** Resolved value for a selection key — the `item-value` for pipeline groups, else the key itself. */
|
|
158
|
-
valueForKey: (key: string, itemKey: string) => any;
|
|
159
|
-
/** Selection key for a model value — `hash(value)` for pipeline groups, else the value itself. */
|
|
160
|
-
keyForValue: (key: string, value: any) => string;
|
|
161
|
-
/** Original item behind a selection key — used to validate a key resolves to a real item. */
|
|
162
|
-
itemForKey: (key: string, itemKey: string) => any;
|
|
163
|
-
};
|
|
164
|
-
/** Called once by `BbDropdown` to publish the group registry. */
|
|
165
|
-
export declare const provideDropdownGroupRegistry: (registry: DropdownGroupRegistry) => void;
|
|
166
|
-
/**
|
|
167
|
-
* Consumed by `<BbDropdownGroup>`. Returns `null` when used outside a
|
|
168
|
-
* `BbDropdown` so the companion can warn instead of throwing.
|
|
169
|
-
*/
|
|
170
|
-
export declare const useDropdownGroupRegistry: () => DropdownGroupRegistry | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { BbFormFieldSpec } from '../../composables/useBbFormField.js';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
spec: {
|
|
5
|
-
type: PropType<BbFormFieldSpec>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
-
spec: {
|
|
10
|
-
type: PropType<BbFormFieldSpec>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ValidationMode } from '../../types/Config.js';
|
|
2
|
-
import { FieldBinding, FieldBindingOptions } from '../../composables/useFormBinding.js';
|
|
3
|
-
/**
|
|
4
|
-
* a native form `name` as a vee-validate path. Brackets are how an
|
|
5
|
-
* HTML form (and PHP / Laravel on the other end) spells nesting, so both
|
|
6
|
-
* spellings reach the same field: `address[city]` → `address.city`,
|
|
7
|
-
* `users[0][name]` → `users.0.name`, and a trailing `[]` (the "post every
|
|
8
|
-
* value" suffix) goes: `tags[]` → `tags`. Dots are accepted as they are.
|
|
9
|
-
*/
|
|
10
|
-
export declare const nameToPath: (name: string) => string;
|
|
11
|
-
/**
|
|
12
|
-
* Does this rule expression actually make the field mandatory?
|
|
13
|
-
*
|
|
14
|
-
* "Has rules" is NOT the same question, and answering it that way marks
|
|
15
|
-
* optional fields as required: every other vee-validate rule is conditional on
|
|
16
|
-
* a value being present — `max:5` passes on an empty field by design, because
|
|
17
|
-
* a rule that also rejected emptiness would leave no way to express "optional,
|
|
18
|
-
* but if filled, at most 5". Only `required` (and the `required` prop) means
|
|
19
|
-
* "you must fill this", so only `required` earns the asterisk.
|
|
20
|
-
*
|
|
21
|
-
* Two shapes can be introspected, matching what vee-validate accepts:
|
|
22
|
-
*
|
|
23
|
-
* - **string** — pipe-delimited, each segment `name` or `name:args`
|
|
24
|
-
* (`'required|max:5'`). Compared on the name alone, so `required:true` counts.
|
|
25
|
-
* - **object** — `{ required: true, max: 5 }`. Truthiness decides, so
|
|
26
|
-
* `{ required: false }` (the documented way to switch a rule off) correctly
|
|
27
|
-
* shows nothing, while `{ required: [] }` — an on rule with no params — does.
|
|
28
|
-
*
|
|
29
|
-
* `required_if` and friends deliberately do NOT match: conditionally required
|
|
30
|
-
* is not required, and claiming otherwise is the same lie in the other
|
|
31
|
-
* direction.
|
|
32
|
-
*
|
|
33
|
-
* A validator function or an array of them is opaque — we do not guess. It
|
|
34
|
-
* checks a value only when there is one, so it never raises the asterisk; the
|
|
35
|
-
* `required` prop beside it is the hint (inside a BbForm
|
|
36
|
-
* `required` checks nothing, it marks). A form-level `schema`
|
|
37
|
-
* answers for itself through `BbForm` (see `schemaRequires` in formSchema.ts).
|
|
38
|
-
*/
|
|
39
|
-
export declare const hasRequiredRule: (rules: unknown) => boolean;
|
|
40
|
-
/** A value change by the user re-checks the field. */
|
|
41
|
-
export declare const validatesOnChangeIn: (mode: ValidationMode, showsError: boolean) => boolean;
|
|
42
|
-
/** Leaving the control checks the field. */
|
|
43
|
-
export declare const validatesOnLeaveIn: (mode: ValidationMode) => boolean;
|
|
44
|
-
/**
|
|
45
|
-
* The page wrote the value itself (a loaded record, its own model): only a
|
|
46
|
-
* field already showing an error re-checks, and never in a mode that waits
|
|
47
|
-
* for leave or submit, so a loaded record never flashes errors.
|
|
48
|
-
*/
|
|
49
|
-
export declare const pageWriteRechecksIn: (mode: ValidationMode, showsError: boolean) => boolean;
|
|
50
|
-
/**
|
|
51
|
-
* The binding a `BbForm` gives every form control inside it: binds the field to
|
|
52
|
-
* vee-validate, keeps `modelValue` and the field value in sync, merges the
|
|
53
|
-
* engine's errors with any external `errors` prop, and derives the required
|
|
54
|
-
* asterisk. The control routes its events through it (useFormBinding).
|
|
55
|
-
*/
|
|
56
|
-
export declare function bindFormField<T>(props: Record<string, any>, emit: (event: any, ...args: any[]) => void, opts: FieldBindingOptions): FieldBinding<T>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
2
|
-
import { ValidationMode } from '../../types/Config.js';
|
|
3
|
-
export type BbFormField = {
|
|
4
|
-
/** The field's vee-validate path (its `name` as a path, or its slugged label). */
|
|
5
|
-
name: () => string;
|
|
6
|
-
/** The field's root element, once mounted. */
|
|
7
|
-
el: () => Element | null;
|
|
8
|
-
/** The visible label (the legend for a group). */
|
|
9
|
-
label: () => string | undefined;
|
|
10
|
-
/** The `validation-label` prop. */
|
|
11
|
-
validationLabel: () => string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Every current message: rules, schema, server (`setErrors` and the form's
|
|
14
|
-
* `field-errors`) and the `errors` prop.
|
|
15
|
-
*/
|
|
16
|
-
errors: () => string[];
|
|
17
|
-
dirty: () => boolean;
|
|
18
|
-
touched: () => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* write the value the page owns for this field (its `v-model`)
|
|
21
|
-
* back to its path, when the page owns one. The form calls it after a
|
|
22
|
-
* render that moved or removed fields, because vee-validate keys values by
|
|
23
|
-
* path: a field that moved (an id-keyed row after a delete) would otherwise
|
|
24
|
-
* read the leftover at its new path, and a removed sibling's unmount can
|
|
25
|
-
* unset it.
|
|
26
|
-
*/
|
|
27
|
-
reassert: () => void;
|
|
28
|
-
};
|
|
29
|
-
export type BbFormFieldsContext = {
|
|
30
|
-
/** The current schema marks the field at this path as mandatory. */
|
|
31
|
-
isRequired: (name: string) => boolean;
|
|
32
|
-
/** The form's `validation-mode`, when it sets one (a field's own wins). */
|
|
33
|
-
validationMode: () => ValidationMode | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* the form's `field-errors` messages for the field at this path
|
|
36
|
-
* (display only: shown after the field's own, never validated).
|
|
37
|
-
*/
|
|
38
|
-
fieldErrors: (path: string) => string[];
|
|
39
|
-
/**
|
|
40
|
-
* Registers a mounted field; returns the function its unmount calls, with
|
|
41
|
-
* `dirty` / `touched` / its vee-validate messages as the user left them (a
|
|
42
|
-
* preserving form keeps what still applies).
|
|
43
|
-
*/
|
|
44
|
-
register: (field: BbFormField) => (left: {
|
|
45
|
-
dirty: boolean;
|
|
46
|
-
touched: boolean;
|
|
47
|
-
errors: string[];
|
|
48
|
-
}) => void;
|
|
49
|
-
/**
|
|
50
|
-
* A mounted field's path changed (`lines.2` → `lines.1`): after the render,
|
|
51
|
-
* the form re-asserts the fields the page owns and releases the old path if
|
|
52
|
-
* no field on the page owns it any more.
|
|
53
|
-
*/
|
|
54
|
-
moved: (from: string) => void;
|
|
55
|
-
/**
|
|
56
|
-
* the object bound with `<BbForm :model>`, when there is one. A
|
|
57
|
-
* field without its own `v-model` reads its page value from it (`read`) and
|
|
58
|
-
* writes every change back into it (`write`), by path.
|
|
59
|
-
*/
|
|
60
|
-
model: () => Record<string, unknown> | undefined;
|
|
61
|
-
read: (path: string) => unknown;
|
|
62
|
-
write: (path: string, value: unknown) => void;
|
|
63
|
-
/**
|
|
64
|
-
* a `@submit` promise is pending and the form locks while it
|
|
65
|
-
* runs (no `disable-submit-lock`): every joined control is read-only.
|
|
66
|
-
*/
|
|
67
|
-
locked: () => boolean;
|
|
68
|
-
};
|
|
69
|
-
export declare const BB_FORM_FIELDS: InjectionKey<BbFormFieldsContext>;
|
|
70
|
-
/**
|
|
71
|
-
* The element to focus inside a field: the one marked `aria-invalid` when the
|
|
72
|
-
* control marks one, else its first tabbable element (a radio group's roving
|
|
73
|
-
* tabindex leaves exactly one at `0`).
|
|
74
|
-
*/
|
|
75
|
-
export declare const focusTarget: (root: Element) => HTMLElement | null;
|
|
76
|
-
/** Document order, so "first" means first on the page, not first mounted. */
|
|
77
|
-
export declare const byDocumentOrder: (a: Element, b: Element) => 0 | 1 | -1;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { Opening } from '../../composables/hostOpenings.js';
|
|
3
|
-
/**
|
|
4
|
-
* One on-demand opening (step 4), internal to `<BbHost />`: a real
|
|
5
|
-
* child of the host whose provides chain is the CALLER's, so the opened
|
|
6
|
-
* component injects as if written where it was opened (its page's `provide`,
|
|
7
|
-
* a `<BbConfigScope>`, a `BbForm`), while it paints in the host.
|
|
8
|
-
*
|
|
9
|
-
* `instance.provides` is Vue-internal, the same one `createPopoverDirective`
|
|
10
|
-
* already sets and `inject` walks. `Object.create`, not the caller's
|
|
11
|
-
* object: a `provide()` in here writes on the new object and never leaks
|
|
12
|
-
* back onto the page.
|
|
13
|
-
*/
|
|
14
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
-
opening: {
|
|
16
|
-
type: PropType<Opening>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
-
opening: {
|
|
23
|
-
type: PropType<Opening>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Geometry and focus helpers for `BbHoverCard`: what Tab can reach inside the
|
|
3
|
-
* card (which also decides its semantics), where Tab goes after it, and the
|
|
4
|
-
* safe zone between the activator and the card.
|
|
5
|
-
*/
|
|
6
|
-
/** The tabbable elements inside `root`, in document order. */
|
|
7
|
-
export declare const tabbablesIn: (root: ParentNode) => HTMLElement[];
|
|
8
|
-
export declare const firstTabbable: (root: ParentNode) => HTMLElement;
|
|
9
|
-
export declare const lastTabbable: (root: ParentNode) => HTMLElement | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* The first tabbable element after `activator` in document order, skipping the
|
|
12
|
-
* activator's own descendants and the card — where Tab from the card's last
|
|
13
|
-
* control would have gone had the card not been in the way.
|
|
14
|
-
*/
|
|
15
|
-
export declare const nextTabbableAfter: (activator: Element, card: Element) => HTMLElement | undefined;
|
|
16
|
-
type Point = [number, number];
|
|
17
|
-
/**
|
|
18
|
-
* The safe zone: the convex hull of the point where the pointer left one
|
|
19
|
-
* surface and the four corners of the other surface's box. Any straight path
|
|
20
|
-
* from that point into the box stays inside it.
|
|
21
|
-
*/
|
|
22
|
-
export declare const safeZone: (from: Point, target: Element) => Point[];
|
|
23
|
-
/**
|
|
24
|
-
* Whether `p` lies inside (or on the edge of) the counter-clockwise convex
|
|
25
|
-
* polygon {@link safeZone} returns. A 1px tolerance keeps a pointer gliding
|
|
26
|
-
* along an edge inside.
|
|
27
|
-
*/
|
|
28
|
-
export declare const isConvexHit: (polygon: Point[], p: Point) => boolean;
|
|
29
|
-
export {};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Module-wide store of icons this page has already resolved.
|
|
3
|
-
*
|
|
4
|
-
* MUST live in its own module: a `const` at the top of a `<script setup>` block
|
|
5
|
-
* compiles into `setup()` and is therefore per-instance state, not module
|
|
6
|
-
* state — the same trap that once gave every `BbDropdown` pipeline resolver the
|
|
7
|
-
* same uid.
|
|
8
|
-
*
|
|
9
|
-
* What it saves, per mounted icon:
|
|
10
|
-
*
|
|
11
|
-
* 1. **A render pass.** `icons[key]` is an `import()`; even for a module the
|
|
12
|
-
* bundler already holds, the promise settles a microtask later, so an icon
|
|
13
|
-
* rendered an empty `<svg>` first and patched its content in on a second
|
|
14
|
-
* pass. Two icons in a table row is two wasted passes per row, on every
|
|
15
|
-
* window move of a virtualized body.
|
|
16
|
-
* 2. **Four regex passes over a full SVG string** — three to strip the wrapper
|
|
17
|
-
* tag, one to read the wrapper's attributes back off. Both results are pure
|
|
18
|
-
* functions of the source markup, and the source for a given key never
|
|
19
|
-
* changes within a page, so they are derived exactly once.
|
|
20
|
-
*/
|
|
21
|
-
export type ParsedIcon = {
|
|
22
|
-
/** Inner markup for `v-html`, or `null` to render nothing at all. */
|
|
23
|
-
content: string | null;
|
|
24
|
-
/** Attributes copied from the source's root `<svg>` element. */
|
|
25
|
-
attributes: Record<string, string>;
|
|
26
|
-
};
|
|
27
|
-
/** Keyed by registry key (`lucide:x`, `local:y`) or, for inline SVG, its markup. */
|
|
28
|
-
export declare const parsedIcons: Map<string, ParsedIcon>;
|
|
29
|
-
/** The "no icon at all" outcome: a rejected payload, or a value we never got. */
|
|
30
|
-
export declare const EMPTY_ICON: ParsedIcon;
|
|
31
|
-
/**
|
|
32
|
-
* The built-in placeholder: a question mark in a circle on the house set's
|
|
33
|
-
* 24×24 grid and 2px stroke, painted in `currentColor`, no fixed size. It is
|
|
34
|
-
* part of the library bundle — never a provider or `local:` icon — so it can
|
|
35
|
-
* never itself be missing, and it is deliberately not configurable.
|
|
36
|
-
*/
|
|
37
|
-
export declare const MISSING_ICON_SVG: string;
|
|
38
|
-
/**
|
|
39
|
-
* Names this page has already failed to resolve, with the message that was
|
|
40
|
-
* reported for each. Reported ONCE per name per page load — a table with the
|
|
41
|
-
* same missing glyph on every row logs one line, not one per cell.
|
|
42
|
-
*/
|
|
43
|
-
export declare const missingIcons: Map<string, string>;
|
|
44
|
-
/** Test-only: forget every reported miss so a spec starts on a clean page. */
|
|
45
|
-
export declare const __resetForTest: () => void;
|
|
46
|
-
/**
|
|
47
|
-
* Resolve a registry key to its parsed icon, or to the placeholder when the
|
|
48
|
-
* name does not resolve. Never rejects: an unknown name is a rendering
|
|
49
|
-
* outcome (the placeholder plus one `console.error`), not an exception, so
|
|
50
|
-
* the component tree around the icon stays mounted.
|
|
51
|
-
*
|
|
52
|
-
* The registry's loader for an unknown name (a Proxy the build plugin emits)
|
|
53
|
-
* rejects with the actionable diagnosis — "does not exist in the lucide icon
|
|
54
|
-
* set — did you mean …", "exists but is not bundled … add it to
|
|
55
|
-
* `iconWhitelist`", "requires @iconify-json/… run npm install …" — and, in
|
|
56
|
-
* dev, also raises the Vite error overlay. That message is what gets logged.
|
|
57
|
-
*/
|
|
58
|
-
export declare const resolveRegistryIcon: (key: string, registry: Record<string, (() => Promise<string>) | undefined>) => Promise<ParsedIcon>;
|
|
59
|
-
export declare const parseIcon: (source: string) => ParsedIcon;
|
|
60
|
-
/** The placeholder, parsed once — `BbIcon` compares against it by identity. */
|
|
61
|
-
export declare const MISSING_ICON: ParsedIcon;
|
|
62
|
-
/** Registry key for a name, or the markup itself for an inline payload. */
|
|
63
|
-
export declare const cacheKeyFor: (value: string, isInlineSvg: boolean) => string;
|