bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +31 -5
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +9 -5
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +19 -15
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +16 -3
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +16 -4
- package/dist/ai/BbDropdown.md +175 -67
- package/dist/ai/BbDropdownButton.md +27 -8
- package/dist/ai/BbForm.md +4 -1
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +8 -4
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +59 -34
- package/dist/ai/BbTimePicker.md +16 -3
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +215 -6
- package/dist/ai/components.json +77 -43
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +33 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +46 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +7 -4
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +6 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
- package/dist/ai/manifest/components/BbDropdown.json +23 -17
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
- package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +16 -6
- package/dist/ai/manifest/components/BbTimePicker.json +7 -4
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +2 -1
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +36 -3
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +64 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +121 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +56 -55
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +22 -12
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +59 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +71 -22
- package/dist/ai/source/BbDatePickerInput.md +72 -9
- package/dist/ai/source/BbDialog.md +45 -2
- package/dist/ai/source/BbDropdown.md +263 -63
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +121 -59
- package/dist/ai/source/BbForm.md +73 -6
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +22 -16
- package/dist/ai/source/BbOffCanvas.md +48 -2
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +19 -10
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +126 -32
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +69 -15
- package/dist/ai/source/BbTimePickerInput.md +45 -7
- package/dist/ai/source/BbToast.md +16 -2
- package/dist/ai/source/BbToastPortal.md +18 -6
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +28 -2
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
- package/dist/components/BbColorPalette/types.d.ts +8 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
- package/dist/components/BbDatePicker/types.d.ts +9 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
- package/dist/components/BbDialog/leaveGhost.js +38 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +73 -58
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
- package/dist/components/BbTimePicker/types.d.ts +9 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +7 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/composables/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +35 -31
- package/dist/llms-full.txt +1428 -400
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +4 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/hash.js +97 -64
- package/dist/utilities/functions/isEqual.js +33 -25
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +2 -1
- package/dist/vite.js +11 -4
- package/llms.txt +4 -2
- package/package.json +3 -2
- package/scripts/README.md +3 -1
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +90 -24
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +5 -2
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +37 -2
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
package/dist/ai/BbTable.md
CHANGED
|
@@ -397,6 +397,9 @@ match; `bitboss-ui check` catches it when `columns` is in the same file, and
|
|
|
397
397
|
warns on a loop over keys it cannot see (`#[column.key]` over a prop) until
|
|
398
398
|
the name goes through `slotKey`. Keep the column in `columns`
|
|
399
399
|
even when you fully slot it: label, alignment and width still come from there.
|
|
400
|
+
A `#<key>` slot owns its cell: when it renders nothing (a `v-if` that is
|
|
401
|
+
false), the cell is empty, never the raw value (the one exception to the
|
|
402
|
+
empty-slot rule).
|
|
400
403
|
|
|
401
404
|
Body cell scope: `content` (this cell, formatted), `item` (raw row), `value`
|
|
402
405
|
(the row's `item-value`, e.g. its id — not this cell), `classes`, plus the row's interaction surface —
|
|
@@ -424,7 +427,8 @@ costs you the built-in sort button. The table-wide pair `#header:prepend` /
|
|
|
424
427
|
structural select/actions cells); both forms receive the header scope above
|
|
425
428
|
plus `columnKey` (the raw column key) so a table-wide template can branch per
|
|
426
429
|
column. When both a per-column and the table-wide slot are provided for the
|
|
427
|
-
same side, the per-column one wins for that column — they never stack
|
|
430
|
+
same side, the per-column one wins for that column — they never stack; one
|
|
431
|
+
that renders nothing for its column falls back to the table-wide one. Affixes
|
|
428
432
|
render even beside a full `#<key>:header` replacement (the same rule as
|
|
429
433
|
BbDropdown's `#<value>:prepend/append`). The key always comes first, so a
|
|
430
434
|
column keyed `prepend` still owns `#prepend:header`, and `#header:prepend`
|
|
@@ -751,9 +755,10 @@ There is no `error-text` prop and no `empty-text` alias — don't guess either
|
|
|
751
755
|
by analogy with `loading-text`. A failed _server_ visit (Inertia, a full-page
|
|
752
756
|
load) is a full error page, not something the table renders inline. A failed
|
|
753
757
|
_client-side_ fetch is the table's own: an `items` provider function that
|
|
754
|
-
throws clears the rows and the
|
|
755
|
-
load items"),
|
|
756
|
-
Async items and filters)
|
|
758
|
+
throws clears the rows and the table shows its failure row: `failed-text`
|
|
759
|
+
("Couldn't load items"), announced, then a "Try again" button that runs the
|
|
760
|
+
failed call again (see § Async items and filters). `#empty` is for an empty
|
|
761
|
+
result only — don't catch the error yourself.
|
|
757
762
|
|
|
758
763
|
**Skeletons and a custom empty state**
|
|
759
764
|
|
|
@@ -845,11 +850,9 @@ type BbTableItemsContext = {
|
|
|
845
850
|
- A newer call aborts the one in flight and its late answer is dropped. A
|
|
846
851
|
provider **throws** to fail — never `return []`, an applied empty result:
|
|
847
852
|
the rows are cleared (stale rows never sit under a new filter), nothing is
|
|
848
|
-
pruned, and the
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
becomes an `Error`), and `null` when nothing failed. Retry by bumping a
|
|
852
|
-
counter you list in `dependencies`.
|
|
853
|
+
pruned, and the failure row shows `failed-text` ("Couldn't load items")
|
|
854
|
+
with a built-in "Try again" (on click only; focus then moves to the table).
|
|
855
|
+
`#empty` never renders for a failure.
|
|
853
856
|
- Return the page as it is: the table never merges the selection into it.
|
|
854
857
|
- A plain array bypasses the provider machinery entirely.
|
|
855
858
|
|
|
@@ -2590,8 +2593,9 @@ being pinned.
|
|
|
2590
2593
|
A pinned cell is opaque — it paints the table's `--bg` surface because it
|
|
2591
2594
|
slides over its siblings — so a nested table sitting on a tinted expand row
|
|
2592
2595
|
(`--bb-muted` is the usual choice) shows white pinned actions unless you tell
|
|
2593
|
-
it which surface it is on: `.nest .bb-table { --bg: var(--bb-muted); }`.
|
|
2594
|
-
|
|
2596
|
+
it which surface it is on: `.nest .bb-table { --bg: var(--bb-muted); }`. A
|
|
2597
|
+
nested table paints no surface of its own, so its pinned cells are the only
|
|
2598
|
+
place its `--bg` shows (see **Styling hooks**).
|
|
2595
2599
|
|
|
2596
2600
|
#### Flush tables + inherited widths: mind the edge padding
|
|
2597
2601
|
|
|
@@ -3516,8 +3520,9 @@ Four rules:
|
|
|
3516
3520
|
positional, so a lone left-pinned column dragged to the middle sticks at
|
|
3517
3521
|
`left: 0` and slides over the columns before it — by design; lock the
|
|
3518
3522
|
pinned columns in place by normalizing `@update:order` if you need to.
|
|
3519
|
-
- **Pinned cells are opaque** — they paint the table's `--bg
|
|
3520
|
-
|
|
3523
|
+
- **Pinned cells are opaque** — they paint the table's `--bg`, the same
|
|
3524
|
+
colour the whole table paints (see Styling hooks), so they always match
|
|
3525
|
+
the cells beside them. Under a glass
|
|
3521
3526
|
theme (a translucent `--bb-panel`) the alpha is forced to 1, so the rows
|
|
3522
3527
|
never show through: the pinned column and the stuck header read as a solid
|
|
3523
3528
|
band.
|
|
@@ -3640,13 +3645,11 @@ const rows: Entry[] = Array.from({ length: 5000 }, (_, i) => ({
|
|
|
3640
3645
|
|
|
3641
3646
|
### Styling hooks
|
|
3642
3647
|
|
|
3643
|
-
**The table
|
|
3644
|
-
`.bb-table
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
as a hole). When a table sits on a surface that is not the panel colour, set
|
|
3649
|
-
the one knob and everything pinned follows:
|
|
3648
|
+
**The table paints `--bg`** (default `var(--bb-panel)`), a local on
|
|
3649
|
+
`.bb-table`: the whole table is one solid surface, and the stuck header band
|
|
3650
|
+
and pinned (`fixed`) cells paint the same colour, so they never stand out.
|
|
3651
|
+
Rows and cells stay transparent so hover, highlight and row tones lay over
|
|
3652
|
+
it. To blend into a different surface, set it once:
|
|
3650
3653
|
|
|
3651
3654
|
```css
|
|
3652
3655
|
.my-card .bb-table {
|
|
@@ -3654,6 +3657,8 @@ the one knob and everything pinned follows:
|
|
|
3654
3657
|
}
|
|
3655
3658
|
```
|
|
3656
3659
|
|
|
3660
|
+
A nested table paints nothing; it sits on its parent's rows.
|
|
3661
|
+
|
|
3657
3662
|
**The row hover.** A hovered row takes a faint wash, the hovered row's pinned
|
|
3658
3663
|
cells included. Retint it or switch it off with one local on the table, never
|
|
3659
3664
|
with a `hover:bg-*` on `pt:row`: a pinned cell can only inherit its row's
|
|
@@ -3665,6 +3670,25 @@ colour, so a transparent one lets the scrolled columns show through it.
|
|
|
3665
3670
|
}
|
|
3666
3671
|
```
|
|
3667
3672
|
|
|
3673
|
+
**A resting row tone** (overdue, archived, a status): set `--row-tone` to a
|
|
3674
|
+
colour on the row, never a `bg-*`. The table lays a faint layer of it (8%)
|
|
3675
|
+
over the row, so hover and highlighted still darken it, and pinned cells,
|
|
3676
|
+
the keyboard-lifted row and the dragged copy show the same colour.
|
|
3677
|
+
|
|
3678
|
+
```vue
|
|
3679
|
+
<BbTable
|
|
3680
|
+
:items="rows"
|
|
3681
|
+
:columns="cols"
|
|
3682
|
+
:pt:row="({ item }) => (item.overdue ? '[--row-tone:var(--bb-danger)]' : '')"
|
|
3683
|
+
/>
|
|
3684
|
+
```
|
|
3685
|
+
|
|
3686
|
+
`--row-tone-mix` sets the strength (`[--row-tone-mix:4%]`). An open row's
|
|
3687
|
+
expansion is not toned with its row; to tone it, set the same value there:
|
|
3688
|
+
`:pt:expand="({ item }) => (item.overdue ? '[--row-tone:var(--bb-danger)]' : '')"`.
|
|
3689
|
+
A `bg-*` on the row hides hover and highlighted, and pinned cells keep the
|
|
3690
|
+
table surface.
|
|
3691
|
+
|
|
3668
3692
|
**The scroll cue.** While content is hidden past an edge the root carries
|
|
3669
3693
|
`bb-table--overflow-left` / `bb-table--overflow-right`. On a side with no
|
|
3670
3694
|
pinned column a `mask-image` on the root fades that edge (to 30% over 20px,
|
|
@@ -3741,22 +3765,20 @@ Or in CSS, once for the whole app:
|
|
|
3741
3765
|
|
|
3742
3766
|
#### The table as a card
|
|
3743
3767
|
|
|
3744
|
-
The root paints no
|
|
3745
|
-
scrollport. That is exactly what makes a card
|
|
3768
|
+
The root paints `--bg` and no border or radius of its own — it is the
|
|
3769
|
+
scrollport. That is exactly what makes a card two declarations of ordinary
|
|
3746
3770
|
CSS on your own class, with no component change and nothing to keep in sync:
|
|
3747
3771
|
|
|
3748
3772
|
```css
|
|
3749
3773
|
.bb-table.card {
|
|
3750
|
-
background: var(--bg);
|
|
3751
3774
|
border: var(--bb-border-w) solid var(--bb-border);
|
|
3752
3775
|
border-radius: var(--bb-radius-surface);
|
|
3753
3776
|
}
|
|
3754
3777
|
```
|
|
3755
3778
|
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
still retints all three at once.
|
|
3779
|
+
The fill is already there: the card, the stuck header band and the pinned
|
|
3780
|
+
cells all paint `--bg`, so they cannot drift, and `.my-table { --bg: … }`
|
|
3781
|
+
retints them at once.
|
|
3760
3782
|
|
|
3761
3783
|
The radius needs no `overflow` beside it, and **must not be given one**. The
|
|
3762
3784
|
root already clips in both axes (`overflow-x: auto`, and `overflow-y` computes
|
|
@@ -4417,7 +4439,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
4417
4439
|
| `id` | `string \| undefined` | | | Stable id for this table's width context. When omitted a unique id is generated. Nested tables use the nearest ancestor id to inherit widths. |
|
|
4418
4440
|
| `inheritColumnWidths` | `string \| boolean \| undefined` | | | Snaps a nested table's columns to an ancestor table's tracks: `true` = the nearest one, a table `id` = that one (when a table in between has a different column count). Off by default: a nested table sizes itself. |
|
|
4419
4441
|
| `interactiveWhileLoading` | `boolean \| undefined` | `false` | | Keeps the header and rows interactive while loading (by default they are `inert`: a refetch is about to replace them). For background refreshes that must not interrupt an open editor. |
|
|
4420
|
-
| `items` | `Item[] \| ((context: BbTableItemsContext) => Item[] \| Promise<Item[]>)` | `[]` | yes | Rows to render: an array, or a provider called with a `BbTableItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and
|
|
4442
|
+
| `items` | `Item[] \| ((context: BbTableItemsContext) => Item[] \| Promise<Item[]>)` | `[]` | yes | Rows to render: an array, or a provider called with a `BbTableItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with "Try again". Return the page as it is. |
|
|
4421
4443
|
| `itemValue` | `ItemAccessor<Item> \| undefined` | | | The row's value, as a property path or a function returning any value; the selection, `expandedItems` and row keys compare by it. |
|
|
4422
4444
|
| `keyboardNavigation` | `boolean \| undefined` | `false` | | Opt-in keyboard navigation: the table becomes an ARIA `grid` (`treegrid` with an `#expand` slot) with ONE tab stop and roving focus over its cells. Controls in cells leave the tab order (Enter/F2 go in). Ignored with a `#tbody` slot. |
|
|
4423
4445
|
| `legend` | `string \| undefined` | | | The `<legend>` of a `selectable` table (it renders as a `<fieldset>`): the selection's accessible name. Falls back to `caption`, then to a localized default. |
|
|
@@ -4511,10 +4533,10 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
4511
4533
|
|
|
4512
4534
|
- `actions` — scope: `{ expanded?: boolean \| undefined; expandProps?: ExpandControllerProps \| undefined; toggleExpanded?: (() => void) \| undefined; highlighted?: boolean \| undefi…` — Content of each row's actions cell; this slot CREATES the actions column (there is no prop). The header cell (labelled by `actions-text`, replaceable through `#actions:header`) and one cell per row come and go with it. Pin it with `fixed-actions`.
|
|
4513
4535
|
- `actions:header` — scope: `{ text: string; }` — Replaces the default actions header cell content.
|
|
4514
|
-
- `empty` — scope: `
|
|
4536
|
+
- `empty` — scope: `object` — Content shown when there are no rows and nothing is loading, inside the table's own full-width cell: pass content, never a row. Empty only: a failed load shows the table's failure row instead (its message is `failed-text`, and it ends with "Try again").
|
|
4515
4537
|
- `expand` — scope: `{ expanded: boolean; expandProps?: ExpandControllerProps \| undefined; toggleExpanded: () => void; highlighted?: boolean \| undefined; toggleHighlighted?: (() =…` — Full-width expandable content row rendered below each main row when expanded.
|
|
4516
|
-
- `header:append` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content after every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:append` wins over this for that column; they never stack. Branch on `columnKey` for per-column output.
|
|
4517
|
-
- `header:prepend` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content before every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:prepend` wins over this for that column; they never stack. Branch on `columnKey` for per-column output.
|
|
4538
|
+
- `header:append` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content after every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:append` wins over this for that column; they never stack, unless it renders nothing there. Branch on `columnKey` for per-column output.
|
|
4539
|
+
- `header:prepend` — scope: `BbTableHeaderAffixSlotProps<Item>` `{ classes?: Classes; columnKey: string; items?: Item[]; label?: string; sortable?: boolean; sortOrder?: "asc" \| "desc" \| null; toggleSort?: ((event?: MouseEvent \| KeyboardEvent \| undefined) => void); hideColumn?: (() => void) }` — Content before every data column's header content (the label + sort control, or its own `<key>:header` replacement). A column's `<key>:header:prepend` wins over this for that column; they never stack, unless it renders nothing there. Branch on `columnKey` for per-column output.
|
|
4518
4540
|
- `loading` — scope: `{ items: Item[]; }` — Content shown while table rows are loading (replaces the skeleton rows).
|
|
4519
4541
|
- `select` — scope: `{ item: Item; value: TableValueOf<Item, A>; checked: boolean; disabled: boolean; inputName: string; readonly: boolean; toggleSelected?: (() => void) \| undefine…` — Replaces the default checkbox/radio in the selection cell for each row.
|
|
4520
4542
|
- `select:header` — scope: `{ multiple: boolean; selectAll: boolean; text: string; }` — Replaces the default selection header cell content (checkbox or radio label).
|
|
@@ -4523,8 +4545,8 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
4523
4545
|
- `thead` — scope: `{ empty: boolean; }` — Replaces the header row group's content (`.bb-table__head`). The table is a CSS grid: provide `<div role="row">` rows of `<div role="columnheader">` cells, never `<tr>` / `<th>`.
|
|
4524
4546
|
- `#<key>` (named from data) — scope: `object` — One column's body cell in every row, by the column `key` through `slotKey`. Scope: `{ item, value, content, selected, expanded, highlighted, classes, sortOrder, toggleSelected, toggleExpanded, toggleHighlighted, expandProps }`; `content` is this cell, `value` the row's `item-value`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `actions`, `empty`, `expand`, `loading`, `select`, `tbody`, `tfoot`, `thead`.
|
|
4525
4547
|
- `#<key>:header` (named from data) — scope: `object` — One column's header content, replacing its label and the built-in sort button. Scope: `{ label, items, sortable, sortOrder, toggleSort, hideColumn, classes }`.
|
|
4526
|
-
- `#<key>:header:prepend` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content before one column's header, keeping the sort button; beats `header:prepend` (they never stack).
|
|
4527
|
-
- `#<key>:header:append` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content after one column's header, keeping the sort button; beats `header:append` (they never stack).
|
|
4548
|
+
- `#<key>:header:prepend` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content before one column's header, keeping the sort button; beats `header:prepend` (they never stack) unless it renders nothing.
|
|
4549
|
+
- `#<key>:header:append` (named from data) — scope: `BbTableHeaderAffixSlotProps<Item>` — Content after one column's header, keeping the sort button; beats `header:append` (they never stack) unless it renders nothing.
|
|
4528
4550
|
- `#<key>:first` (named from data) — scope: `BbTableEdgeCellSlotProps<Item>` — One column's cell in a row before the data rows; any such slot creates the row, aligned with the columns. Only over rows.
|
|
4529
4551
|
- `#<key>:last` (named from data) — scope: `BbTableEdgeCellSlotProps<Item>` — One column's cell in a row after the data rows (a totals row); any such slot creates that row, aligned like `<key>:first`.
|
|
4530
4552
|
|
|
@@ -4535,8 +4557,10 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
4535
4557
|
| Property | Set on | Default | What it is |
|
|
4536
4558
|
| --- | --- | --- | --- |
|
|
4537
4559
|
| `--min-w` | `.bb-table` | `0px` | |
|
|
4538
|
-
| `--bg` | `.bb-table` | `var(--bb-panel)` | The table's surface colour.
|
|
4560
|
+
| `--bg` | `.bb-table` | `var(--bb-panel)` | The table's surface colour. A root table PAINTS it (below), so the whole table is one solid surface: pinned cells, the stuck head band and the rows between them always match, whatever the table sits on. Set it on the table (`.my-table { --bg: … }`) to blend into another surface. Rows and cells stay transparent so the row states and tones lay over it; a nested table re-declares its own and paints nothing (it sits on its parent's rows). |
|
|
4539
4561
|
| `--row-hover` | `.bb-table` | `var(--bb-surface-hover)` | The row hover's fill: the faint wash by default. Retint it or switch it off here (`transparent`), never with a `hover:bg-*` on the row: a pinned cell can only inherit the row's colour, and a transparent one would let the scrolled cells show through it. This one knob reaches the row and its pinned cells alike. |
|
|
4562
|
+
| `--row-tone` | `.bb-table` | `initial` | A row's resting tone: set `--row-tone` on a row (`pt:row`, `row-class`) on an open row's expansion (`pt:expand`) or on a `#<key>:first` / `:last` row (`pt:firstRow` / `pt:lastRow`), never a `bg-*`. It paints as one translucent layer (`--row-tone-mix` of the colour) ABOVE every state fill, so hover and highlighted still show through it, and pinned cells and sticky rows lay the same layer over their opaque base. Re-declared on every table, so a table nested in a toned row starts untoned (the row's value would otherwise inherit into it). |
|
|
4563
|
+
| `--row-tone-mix` | `.bb-table` | `8%` | |
|
|
4540
4564
|
| `--px` | `.bb-table` | `12px` | |
|
|
4541
4565
|
| `--cell-h` | `.bb-table` | `36px` | |
|
|
4542
4566
|
| `--py` | `.bb-table` | `6px` | |
|
|
@@ -4565,6 +4589,7 @@ Set these on the element, or on a class you put on it, to retune this component
|
|
|
4565
4589
|
| `--cue-w` | `.bb-table` | `8px` | |
|
|
4566
4590
|
| `--cue` | `.bb-table` | `rgb(0 0 0 / 0.1)` | |
|
|
4567
4591
|
| `--row-bg` | `.bb-table__row--lifted` | `var(--bb-panel)` | |
|
|
4592
|
+
| `--tone` | `.bb-table__row` | `color-mix( in oklab, var(--row-tone, transparent) var(--row-tone-mix), transpare…` | |
|
|
4568
4593
|
|
|
4569
4594
|
## Component tree
|
|
4570
4595
|
|
package/dist/ai/BbTimePicker.md
CHANGED
|
@@ -76,7 +76,8 @@ const opensAt = ref<string | null>(null);
|
|
|
76
76
|
|
|
77
77
|
The value is typed `string | string[] | null` in either mode. `v-model` needs
|
|
78
78
|
nothing: bind a `ref<string | null>` for one time, a `ref<string[]>` for a
|
|
79
|
-
range (always an array, `[]` when empty).
|
|
79
|
+
range (always an array, `[]` when empty). With no `v-model` at all the picker keeps the picked value itself, like a
|
|
80
|
+
native input, and still emits `update:modelValue`. An explicit `@update:model-value`
|
|
80
81
|
handler narrows in one line:
|
|
81
82
|
|
|
82
83
|
```ts no-check
|
|
@@ -211,6 +212,15 @@ Reach for the **component** (slot or `activator` prop) when you want the
|
|
|
211
212
|
the directive is the shortcut for the bare-trigger cell case, not a replacement
|
|
212
213
|
for the component's `v-model` in a form.
|
|
213
214
|
|
|
215
|
+
### Opening from code: `v-model:open`
|
|
216
|
+
|
|
217
|
+
`v-model` is the value; `v-model:open` is whether the time panel is open. Bound,
|
|
218
|
+
your ref opens and closes it, and every open and close the user makes is
|
|
219
|
+
written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
|
|
220
|
+
listener is only the initial state. An open from code is the same open a
|
|
221
|
+
click makes, and `disabled` / `readonly` refuse it (the ref is set back
|
|
222
|
+
to `false`).
|
|
223
|
+
|
|
214
224
|
### Relationship to BbTimePickerInput
|
|
215
225
|
|
|
216
226
|
`BbTimePickerInput` _is_ these columns with a segmented text field wrapped around
|
|
@@ -294,7 +304,8 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
|
|
|
294
304
|
## v-model
|
|
295
305
|
|
|
296
306
|
- `v-model:activeSegment` — type: `BbTimePickerSegment \| undefined`
|
|
297
|
-
- `v-model` — type: `string \| string[] \| null`
|
|
307
|
+
- `v-model` — type: `string \| string[] \| null \| undefined`
|
|
308
|
+
- `v-model:open` — type: `boolean \| undefined`
|
|
298
309
|
|
|
299
310
|
## Props
|
|
300
311
|
|
|
@@ -313,9 +324,10 @@ typeahead. Always pass a `label` when the trigger is an unlabelled cell or icon.
|
|
|
313
324
|
| `label` | `string \| undefined` | | | Accessible label. The activator is named by it followed by the activator's own text ("Due date 12 Sep"), through `aria-labelledby`. |
|
|
314
325
|
| `max` | `string \| undefined` | | | Maximum selectable time, `HH:mm` (other shapes throw at setup). The columns disable the entries no in-range time can use; a typed value (or an hour beside an out-of-range minute) is clamped with a `disabled_time` error. |
|
|
315
326
|
| `min` | `string \| undefined` | | | Minimum selectable time, `HH:mm` (other shapes throw at setup). The columns disable the entries no in-range time can use; a typed value (or an hour beside an out-of-range minute) is clamped with a `disabled_time` error. |
|
|
316
|
-
| `modelValue` | `string \| string[] \| null` | |
|
|
327
|
+
| `modelValue` | `string \| string[] \| null \| undefined` | | | v-model value: `null` for empty, a 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`) string, or a two-element `[start, end]` array when `range` is true. |
|
|
317
328
|
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
|
|
318
329
|
| `offset` | `number \| undefined` | `4` | | Space the popover keeps from the activator. |
|
|
330
|
+
| `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
|
|
319
331
|
| `padding` | `number \| undefined` | | | Minimum empty space to keep from the edge of the page. |
|
|
320
332
|
| `placement` | `'start'` \| `'end'` \| `'top'` \| `'bottom'` \| `'left'` \| `'right'` \| `'top-start'` \| `'top-end'` \| `'right-start'` \| `'right-end'` \| `'bottom-start'` \| `'bottom-end'` \| `'left-start'` \| `'left-end'` \| `'start-start'` \| `'start-end'` \| `'end-start'` \| `'end-end'` | | | Position of the popover relative to the activator/anchor. |
|
|
321
333
|
| `range` | `boolean` | `false` | | Range selection: the value is a two-element `[start, end]` array. |
|
|
@@ -355,6 +367,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
355
367
|
- `time-pick` — `(payload: { unit: TimeUnit; value: string; }): void` — Relay of the raw column pick, before this component combines it into the value. A host binds this to run its own engine; clean consumers ignore it.
|
|
356
368
|
- `update:activeSegment` — `(value: BbTimePickerSegment): void` — The active range end changed (range only).
|
|
357
369
|
- `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted when the selected time changes (single/range/null).
|
|
370
|
+
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
358
371
|
|
|
359
372
|
## Slots
|
|
360
373
|
|
|
@@ -133,7 +133,9 @@ and parses its own digits. Any other attribute lands on the field root; a
|
|
|
133
133
|
|
|
134
134
|
`min` / `max` (`HH:mm`) clamp typed times when interaction ends — the value
|
|
135
135
|
snaps to the nearest bound and an `error` event with code `disabled_time`
|
|
136
|
-
fires (`{ original, normalized }`).
|
|
136
|
+
fires (`{ original, normalized }`). A value your app sets past a bound stays
|
|
137
|
+
as it is while nobody touches the field; once the user focuses it and leaves,
|
|
138
|
+
it is clamped like a typed one. In `range` mode the model is `[start,
|
|
137
139
|
end]`; typing an inverted pair swaps it on blur with the usual
|
|
138
140
|
`end_before_start` error.
|
|
139
141
|
|
|
@@ -162,6 +164,15 @@ title and ✕: none of the input's own parts reach inside the sheet). `disableWr
|
|
|
162
164
|
interaction, and a tap anywhere on the field opens them (Enter or Space too;
|
|
163
165
|
the ✕ still only clears).
|
|
164
166
|
|
|
167
|
+
### Opening from code: `v-model:open`
|
|
168
|
+
|
|
169
|
+
`v-model` is the value; `v-model:open` is whether the time panel is open. Bound,
|
|
170
|
+
your ref opens and closes it, and every open and close the user makes is
|
|
171
|
+
written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
|
|
172
|
+
listener is only the initial state. An open from code is the same open a
|
|
173
|
+
click makes, and `disabled` / `readonly` refuse it (the ref is set back
|
|
174
|
+
to `false`).
|
|
175
|
+
|
|
165
176
|
### Events & v-model
|
|
166
177
|
|
|
167
178
|
| Event | Payload | When |
|
|
@@ -295,6 +306,7 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
295
306
|
## v-model
|
|
296
307
|
|
|
297
308
|
- `v-model` — type: `string \| string[] \| null \| undefined`
|
|
309
|
+
- `v-model:open` — type: `boolean \| undefined`
|
|
298
310
|
|
|
299
311
|
## Props
|
|
300
312
|
|
|
@@ -330,6 +342,7 @@ Messages _also_ render in an `aria-live="polite"` region.
|
|
|
330
342
|
| `modelValue` | `string \| string[] \| null \| undefined` | | | v-model value: `null` for empty, a 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`) string, or a two-element array when `range` is true. |
|
|
331
343
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
332
344
|
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). The sheet hides its ✕; `{ hideClose: false }` brings it back. |
|
|
345
|
+
| `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
|
|
333
346
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
334
347
|
| `placeholder` | `string \| undefined` | | | Text shown while the field is empty. |
|
|
335
348
|
| `prepend:icon` | `string \| undefined` | | | Name of the icon to be added at the start of the input. |
|
|
@@ -398,6 +411,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
398
411
|
- `show` — `(): void` — Emitted as soon as the time panel (the popover, or the sheet on a phone) starts to open.
|
|
399
412
|
- `shown` — `(): void` — Emitted once the time panel is open and its open transition has finished.
|
|
400
413
|
- `update:modelValue` — `(value: string \| string[] \| null): void` — Emitted whenever the selected time changes. `null` for cleared values, a `HH:mm(:ss)` string, or an array in range mode.
|
|
414
|
+
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
401
415
|
|
|
402
416
|
## Slots
|
|
403
417
|
|
package/dist/ai/BbToast.md
CHANGED
|
@@ -365,8 +365,9 @@ positions form independent stacks.
|
|
|
365
365
|
### Action buttons
|
|
366
366
|
|
|
367
367
|
Pass an `actions` array to render buttons in a row below the text. While a
|
|
368
|
-
button's `onClick` runs it shows a spinner, its siblings
|
|
369
|
-
|
|
368
|
+
button's `onClick` runs it shows a spinner, its siblings ignore clicks (they
|
|
369
|
+
keep their look and leave the tab order), and the auto-dismiss countdown is
|
|
370
|
+
held; the toast dismisses itself when the callback
|
|
370
371
|
resolves. A rejected callback keeps the toast open and the countdown resumes.
|
|
371
372
|
Defaults per button: `variant: 'primary'`, `size: 'sm'`. An action's `text`
|
|
372
373
|
is its button label; the toast's own `text` is the body copy above them.
|
package/dist/ai/BbToastPortal.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Slots
|
|
22
22
|
|
|
23
|
-
- `default` — scope: `BbToastPortalContext
|
|
23
|
+
- `default` — scope: `BbToastPortalContext<any>` `{ toast: BbToast; data: P; close: () => void }` — The toast's body, rendered per toast with its own context.
|
|
24
24
|
|
|
25
25
|
## See Also
|
|
26
26
|
|
package/dist/ai/BbTree.md
CHANGED
|
@@ -471,6 +471,10 @@ and `#<depth>:children` slots that **replace the children container** of the
|
|
|
471
471
|
matching node — the recursion stops there and your content renders instead,
|
|
472
472
|
useful for a custom layout or an inline empty state under one branch.
|
|
473
473
|
|
|
474
|
+
A slot that renders nothing for a node (its content behind a `v-if` that is
|
|
475
|
+
false there) is skipped: `#<value>` falls to `#<depth>`, then `default`; an
|
|
476
|
+
empty `:children` slot leaves that node its default children.
|
|
477
|
+
|
|
474
478
|
**Sections, pages and a special trash node**
|
|
475
479
|
|
|
476
480
|
```vue
|
|
@@ -1216,7 +1220,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1216
1220
|
- `default` — scope: `BbTreeNodeSlotProps<Meta>` `{ meta: Meta; item: BbTreeItem<Meta>; parent?: BbTreeItem<Meta>; index: number; depth: number; value: any; expanded: boolean; expandable: boolean; toggleExpanded: () => void; expandProps: BbTreeExpandControllerProps }`
|
|
1217
1221
|
- `#<value>` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node, by its resolved `item-value` (string or number) through `slotKey`; beats `<depth>`, which beats `default`. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`.
|
|
1218
1222
|
- `#<depth>` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — Every node at one depth (`0` = root); a numeric value can share this name. Reserved names (their slot is one of this component's own, so an item value or column key spelled like them is an error): `default`.
|
|
1219
|
-
- `#<value>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too.
|
|
1223
|
+
- `#<value>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too; empty, the default children.
|
|
1220
1224
|
- `#<depth>:children` (named from data) — scope: `BbTreeNodeSlotProps<Meta>` — The children container of every node at one depth.
|
|
1221
1225
|
|
|
1222
1226
|
## CSS custom properties
|
package/dist/ai/CommonPopover.md
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
| `anchor` | `ElementOrComponentRef \| VirtualAnchor \| undefined` | | | The element the popover positions itself relative to. Accepts an HTMLElement, a Vue component ref, or a virtual element with a `getBoundingClientRect` method. |
|
|
20
20
|
| `arrowPadding` | `number \| undefined` | | | Space the arrow will maintain to the edge of the dropdown. Useful when the floating element has border radius so it won't appear broken |
|
|
21
21
|
| `boundary` | `ElementOrComponentRefOrSelector \| undefined` | | | Keeps the popover inside this element alongside its anchor (sideways above or below, vertically beside it); away from the anchor it may pass the edge, and only the viewport flips it. It never clamps the size (that is `overflowBoundary`). An HTMLElement, component ref or selector. |
|
|
22
|
+
| `boundaryX` | `Element \| undefined` | | | Internal: keeps the popover inside this element's left and right edges only; its top and bottom stay the viewport's. Ignored when `boundary` is set. A dropdown inside a table passes the table. |
|
|
22
23
|
| `bubbleAttrs` | `Record<string, unknown> \| ((space: CommonPopoverAvailableSpace) => Record<string, unknown>) \| undefined` | | | Attributes bound on the bubble (`class`, `style`, `inert`, …) after its own class, so the owner can make the bubble its layout container. The function form receives the default slot's free space (for a height cap). |
|
|
23
24
|
| `dialog` | `boolean \| undefined` | `false` | | Renders the popover as a `<dialog>` element (modal overlay) instead of a `<span>` with the Popover API. |
|
|
24
25
|
| `disableFlip` | `boolean \| undefined` | `false` | | Disables the automatic flip to the opposite side when the popover would overflow (flipping is on by default). |
|
package/dist/ai/FlatListBox.md
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
- `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
|
|
50
50
|
- `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
|
|
51
51
|
- `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
|
|
52
|
+
- `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
|
|
52
53
|
|
|
53
54
|
## Slots
|
|
54
55
|
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
- `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
|
|
51
51
|
- `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
|
|
52
52
|
- `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
|
|
53
|
+
- `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
|
|
53
54
|
|
|
54
55
|
## Slots
|
|
55
56
|
|
package/dist/ai/ListBox.md
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
- `focused:change` — `(id: string \| undefined): void` — Emitted when the keyboard-focused option changes.
|
|
56
56
|
- `option:selected` — `(option: Option): void` — Emitted when an option is selected by the user.
|
|
57
57
|
- `option:unselected` — `(option: Option): void` — Emitted when a previously selected option is deselected.
|
|
58
|
+
- `retry` — `(event: MouseEvent): void` — The failure footer's "Try again" was pressed: the host runs the failed load again.
|
|
58
59
|
|
|
59
60
|
## Slots
|
|
60
61
|
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
| --- | --- | --- | --- | --- |
|
|
15
15
|
| `block` | `string` | | yes | The owning group's public BEM block (`bb-checkbox-group`): the nodes are its elements (`__list`, `__loading`, `__item`, `__label`, …), named after the `pt` parts. |
|
|
16
16
|
| `emptyText` | `string \| undefined` | | | String displayed when there are no items to display. |
|
|
17
|
-
| `error` | `unknown` | | | What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the
|
|
18
|
-
| `failedText` | `string \| undefined` | | |
|
|
17
|
+
| `error` | `unknown` | | | What the owning group's latest failed `items` load rejected with; `null` (or unset) when nothing failed. While set, the list shows the failure row (`failedText` and "Try again"), never the `empty` slot. Internal. |
|
|
18
|
+
| `failedText` | `string \| undefined` | | | The failure row's message while `error` is set. |
|
|
19
19
|
| `hasErrors` | `boolean \| undefined` | `false` | | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
|
|
20
20
|
| `hasWarnings` | `boolean \| undefined` | `false` | | Define if the component should be in a warning state. Attaches a `--warnings` CSS class; suppressed when `hasErrors` is true. |
|
|
21
21
|
| `hideLabel` | `boolean \| undefined` | `false` | | Visually hides the label of the input while maintaining accessibility. |
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
|
|
35
35
|
## Events
|
|
36
36
|
|
|
37
|
-
-
|
|
37
|
+
- `retry` — `(event: MouseEvent): void` — The failure row's "Try again" was pressed: the group runs the failed load again.
|
|
38
38
|
|
|
39
39
|
## Slots
|
|
40
40
|
|
|
41
41
|
- `append` — scope: `object` — Content rendered after the last option, inside the options container.
|
|
42
|
-
- `empty` — scope: `
|
|
42
|
+
- `empty` — scope: `object` — Content shown when no options are available (replaces the default "no data" text). Empty only: a failed load shows the failure row.
|
|
43
43
|
- `input` — scope: `OptionsContainerInputSlotProps<T>` `{ index: number; option: Option<T>; labelId: string; descriptionId: string; rowStates: Partial<Record<RowPtState, boolean>> }` — The actual input element for each option (e.g. radio or checkbox).
|
|
44
44
|
- `label` — scope: `OptionsContainerLabelSlotProps<T>` `{ checked: boolean; item: T; text: string; description: string }` — Replaces the default label text for each option.
|
|
45
45
|
- `loading` — scope: `object` — Content shown while options are loading (replaces the default loading text).
|