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
|
@@ -47,6 +47,11 @@ export declare const BB_COLOR_PALETTE_PT: {
|
|
|
47
47
|
*/
|
|
48
48
|
type BbColorPalettePtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_COLOR_PALETTE_PT> & BbColorPalettePtKeys;
|
|
49
49
|
export type BbColorPaletteProps = BbColorPalettePtProps & {
|
|
50
|
+
/**
|
|
51
|
+
* Whether the panel is open (`v-model:open`; `v-model` stays the value).
|
|
52
|
+
* Bound, the app opens and closes it; unbound, the initial state.
|
|
53
|
+
*/
|
|
54
|
+
open?: boolean;
|
|
50
55
|
/**
|
|
51
56
|
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
52
57
|
* without the prefix. See the `pt:<part>` row.
|
|
@@ -130,7 +135,7 @@ export type BbColorPaletteProps = BbColorPalettePtProps & {
|
|
|
130
135
|
* v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when
|
|
131
136
|
* `alpha` is enabled), or `null` when empty.
|
|
132
137
|
*/
|
|
133
|
-
modelValue
|
|
138
|
+
modelValue?: string | null;
|
|
134
139
|
/**
|
|
135
140
|
* Space the floating container will maintain from the activator.
|
|
136
141
|
*
|
|
@@ -172,6 +177,8 @@ export type BbColorPaletteEvents = {
|
|
|
172
177
|
(e: 'shown'): void;
|
|
173
178
|
/** Emitted as soon as the palette starts to close. */
|
|
174
179
|
(e: 'hide'): void;
|
|
180
|
+
/** The panel opened or closed (`v-model:open`). */
|
|
181
|
+
(e: 'update:open', value: boolean): void;
|
|
175
182
|
/** Emitted once the palette has finished closing. */
|
|
176
183
|
(e: 'hidden'): void;
|
|
177
184
|
/** Emitted when a color is picked. Payload is a concrete `#RRGGBB` (or `#RRGGBBAA` when alpha is enabled) — the palette always emits a color, never `null`. */
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BbConfirmPortalSlots } from './types.js';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** The name a confirm passes as `portal: '<name>'` to render this content. */
|
|
4
4
|
name: string;
|
|
5
5
|
};
|
|
6
|
-
type __VLS_Slots =
|
|
7
|
-
default?: (scope: BbConfirmPortalSlotProps) => any;
|
|
8
|
-
};
|
|
6
|
+
type __VLS_Slots = BbConfirmPortalSlots;
|
|
9
7
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -70,4 +70,9 @@ export type BbConfirmPortalSlotProps<P = any> = {
|
|
|
70
70
|
/** Resolves the confirm with `false` (through `cancel.onClick` when set). */
|
|
71
71
|
cancel: () => void;
|
|
72
72
|
};
|
|
73
|
+
/** BbConfirmPortal's slots; index it for one slot's type: `BbConfirmPortalSlots<MyData>['default']`. */
|
|
74
|
+
export type BbConfirmPortalSlots<P = any> = {
|
|
75
|
+
/** The confirm's body. */
|
|
76
|
+
default?: (scope: BbConfirmPortalSlotProps<P>) => unknown;
|
|
77
|
+
};
|
|
73
78
|
export {};
|
|
@@ -20,10 +20,11 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
20
20
|
};
|
|
21
21
|
}> | undefined;
|
|
22
22
|
} & import('./ptKeys.generated.js').BbDatePickerPtKeys & {
|
|
23
|
+
open?: boolean;
|
|
23
24
|
pt?: { [K in import('./types.js').BbDatePickerPtKey]?: import('../../types/passthrough.js').PtValue; };
|
|
24
25
|
activator?: import('../../index.js').ElementOrComponentRef;
|
|
25
26
|
anchor?: import('../../index.js').ElementOrComponentRef;
|
|
26
|
-
modelValue
|
|
27
|
+
modelValue?: string | string[] | null;
|
|
27
28
|
time?: string | string[] | null;
|
|
28
29
|
activeSegment?: import('./types.js').BbDatePickerSegment;
|
|
29
30
|
type?: import('../../types/DatePickerType.js').DatePickerType;
|
|
@@ -52,12 +53,13 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
|
|
|
52
53
|
disableFlip?: boolean;
|
|
53
54
|
eager?: boolean;
|
|
54
55
|
label?: string;
|
|
55
|
-
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
|
|
56
|
+
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
|
|
56
57
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, M>) => any) | undefined;
|
|
57
58
|
onHide?: (() => any) | undefined;
|
|
58
59
|
onShow?: (() => any) | undefined;
|
|
59
60
|
onShown?: (() => any) | undefined;
|
|
60
61
|
onHidden?: (() => any) | undefined;
|
|
62
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
61
63
|
"onUpdate:activeSegment"?: ((value: import('../../index.js').BbCalendarSegment) => any) | undefined;
|
|
62
64
|
"onTime-pick"?: ((payload: {
|
|
63
65
|
unit: import('../CommonTimeSelector/types.js').TimeUnit;
|
|
@@ -5,27 +5,30 @@ import { useConfig as r } from "../../composables/useConfig.js";
|
|
|
5
5
|
import { useConfigDefaults as i, useConfigSetting as a } from "../../composables/useConfigDefaults.js";
|
|
6
6
|
import { extractDomContainer as o } from "../../utilities/functions/extractDomContainer.js";
|
|
7
7
|
import { useId as s } from "../../composables/useId.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import ee from "
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import ge from "../
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
8
|
+
import { useOwnModel as c } from "../../composables/useOwnModel.js";
|
|
9
|
+
import { useOpenModel as l } from "../../composables/useOpenModel.js";
|
|
10
|
+
import { useLocale as u } from "../../composables/useLocale.js";
|
|
11
|
+
import { useEscapeStackEntry as d } from "../../composables/useEscapeStackEntry.js";
|
|
12
|
+
import { useMobile as ee } from "../../composables/useMobile.js";
|
|
13
|
+
import { transitions as f } from "../../utilities/misc/transitions.js";
|
|
14
|
+
import te from "../BbCalendar/BbCalendar.vue.js";
|
|
15
|
+
import { isLabelType as ne } from "../../types/DatePickerType.js";
|
|
16
|
+
import { isoWeekOf as re } from "../../utilities/functions/isoWeek.js";
|
|
17
|
+
import { formatDateOf as ie, spokenClockOf as ae, spokenDateOptionsOf as oe, spokenTimeOf as se, useDayjsLocale as ce } from "../BbCalendar/useDayjsLocale.js";
|
|
18
|
+
import { useHydrated as le } from "../../composables/useHydrated.js";
|
|
19
|
+
import { toInnerValue as ue } from "../../utilities/functions/convertDateValue.js";
|
|
20
|
+
import { calendarSystemOf as de, formatCalendarDate as fe, localeOf as pe } from "../../utilities/calendar/index.js";
|
|
21
|
+
import { checkCalendarProps as me, provideCalendarHost as he } from "../BbCalendar/calendarHost.js";
|
|
22
|
+
import { BB_CALENDAR_PT as ge } from "../BbCalendar/types.js";
|
|
23
|
+
import _e from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
24
|
+
import { BB_OFF_CANVAS_PT as ve } from "../BbOffCanvas/types.js";
|
|
25
|
+
import ye from "../CommonPopover/CommonPopover.vue.js";
|
|
26
|
+
import { BB_DATE_PICKER_PT as p, DATE_PICKER_CALENDAR_PARTS as be } from "./types.js";
|
|
27
|
+
import { usePassthrough as xe } from "../../composables/usePassthrough.js";
|
|
28
|
+
import { firstFocusableMatch as Se } from "../../utils/focusVisibility.js";
|
|
29
|
+
import { withoutPt as Ce } from "../../utils/passthrough.js";
|
|
30
|
+
import { Fragment as we, computed as m, createBlock as h, createCommentVNode as Te, createElementBlock as Ee, createElementVNode as g, createSlots as De, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, nextTick as Oe, normalizeProps as x, onBeforeUnmount as ke, onDeactivated as Ae, openBlock as S, ref as C, renderList as je, renderSlot as w, toDisplayString as Me, unref as T, useAttrs as Ne, useSlots as Pe, watch as E, withCtx as D } from "vue";
|
|
31
|
+
import { createReusableTemplate as Fe } from "@vueuse/core";
|
|
29
32
|
import { formatDigits as O } from "virtual:bitboss-ui/calendars";
|
|
30
33
|
// src/components/BbDatePicker/BbDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
31
34
|
var k = /*@__PURE__*/ v({
|
|
@@ -112,6 +115,7 @@ var k = /*@__PURE__*/ v({
|
|
|
112
115
|
"pt:item:selected": {},
|
|
113
116
|
"pt:item:disabled": {},
|
|
114
117
|
"pt:item:open": {},
|
|
118
|
+
open: { type: Boolean },
|
|
115
119
|
pt: {},
|
|
116
120
|
activator: {},
|
|
117
121
|
anchor: {},
|
|
@@ -139,7 +143,7 @@ var k = /*@__PURE__*/ v({
|
|
|
139
143
|
default: void 0
|
|
140
144
|
},
|
|
141
145
|
offCanvasProps: {},
|
|
142
|
-
transitionDuration: { default:
|
|
146
|
+
transitionDuration: { default: f.medium },
|
|
143
147
|
placement: {},
|
|
144
148
|
offset: { default: void 0 },
|
|
145
149
|
padding: {},
|
|
@@ -152,6 +156,7 @@ var k = /*@__PURE__*/ v({
|
|
|
152
156
|
"show",
|
|
153
157
|
"shown",
|
|
154
158
|
"hide",
|
|
159
|
+
"update:open",
|
|
155
160
|
"hidden",
|
|
156
161
|
"update:modelValue",
|
|
157
162
|
"update:time",
|
|
@@ -159,161 +164,173 @@ var k = /*@__PURE__*/ v({
|
|
|
159
164
|
"grid-pick",
|
|
160
165
|
"time-pick"
|
|
161
166
|
],
|
|
162
|
-
setup(
|
|
163
|
-
let k =
|
|
167
|
+
setup(f, { emit: v }) {
|
|
168
|
+
let k = f, Ie = v, Le = Pe(), Re = a(null, "popoverOffset"), A = k, j = Ie, { model: M, set: ze } = c(A, "modelValue", (e, t) => j(e, t), () => A.multiple ? [] : null), Be = m(() => M.value);
|
|
164
169
|
process.env.NODE_ENV !== "production" && n("BbDatePicker", t("BbDatePicker"));
|
|
165
|
-
let
|
|
170
|
+
let Ve = /^\d{4}-\d{2}-\d{2}(:append)?$/, He = () => Object.keys(Le).filter((e) => Ve.test(e)), N = xe({
|
|
166
171
|
component: "BbDatePicker",
|
|
167
172
|
props: A,
|
|
168
173
|
parts: p.parts,
|
|
169
174
|
states: p.states,
|
|
170
175
|
active: {
|
|
171
|
-
open: () =>
|
|
176
|
+
open: () => U.value,
|
|
172
177
|
disabled: () => !!A.disabled
|
|
173
178
|
},
|
|
174
|
-
attrs:
|
|
175
|
-
}),
|
|
176
|
-
let e = A.type === "datetime", t = !!A.floating ||
|
|
177
|
-
let s =
|
|
179
|
+
attrs: Ne()
|
|
180
|
+
}), P = r(), { isHydrated: Ue } = le(), We = m(() => {
|
|
181
|
+
let e = A.type === "datetime", t = !!A.floating || ne(A.type), n = A.time, r = pe(P.locale), i = fe ? de(r.calendar) : void 0, a = (a, o) => {
|
|
182
|
+
let s = Ue.value, c = ue(a, {
|
|
178
183
|
floating: t,
|
|
179
184
|
utc: A.utc,
|
|
180
185
|
type: A.type,
|
|
181
186
|
calendar: i
|
|
182
187
|
});
|
|
183
|
-
if (!
|
|
188
|
+
if (!c.isValid()) return a;
|
|
184
189
|
if (A.type === "week") {
|
|
185
|
-
let { week: e, year: t } =
|
|
186
|
-
return
|
|
190
|
+
let { week: e, year: t } = re(c), n = r.numberingSystem, i = (e) => O ? O(e, n) : String(e);
|
|
191
|
+
return I("datePicker.weekValue", i(e), i(t)).value;
|
|
187
192
|
}
|
|
188
|
-
let
|
|
189
|
-
if (!e) return
|
|
190
|
-
let
|
|
191
|
-
return
|
|
192
|
-
}, o =
|
|
193
|
+
let l = ie(c, P.locale, oe(A.type));
|
|
194
|
+
if (!e) return l;
|
|
195
|
+
let u = t ? Array.isArray(n) ? n[o] : o === 0 ? n : null : null, d = t ? u ? se(u, P.locale, !!A.ampm, !!A.seconds, s) : "" : ae(c, P.locale, !!A.ampm, !!A.seconds, s);
|
|
196
|
+
return d ? `${l} ${d}` : l;
|
|
197
|
+
}, o = M.value;
|
|
193
198
|
return Array.isArray(o) ? o.filter(Boolean).map(a).join(A.multiple ? ", " : " – ") : o ? a(o, 0) : "";
|
|
194
199
|
});
|
|
195
|
-
|
|
196
|
-
let
|
|
197
|
-
|
|
198
|
-
let { t:
|
|
199
|
-
B.value = o(e) ?? void 0;
|
|
200
|
-
}, He = (e) => {
|
|
200
|
+
ce();
|
|
201
|
+
let F = m(() => A.type === "datetime");
|
|
202
|
+
me("BbDatePicker", A);
|
|
203
|
+
let { t: I } = u(), { isMobile: L } = ee(), R = `bdp-${s().id.value}`, [Ge, z] = Fe(), B = `${R}-panel`, V = C(), H = C(), Ke = m(() => A.activator != null), qe = (e) => {
|
|
201
204
|
V.value = o(e) ?? void 0;
|
|
205
|
+
}, Je = (e) => {
|
|
206
|
+
H.value = o(e) ?? void 0;
|
|
202
207
|
};
|
|
203
208
|
E(() => A.activator, (e) => {
|
|
204
|
-
|
|
209
|
+
V.value = o(e) ?? void 0;
|
|
205
210
|
}, { immediate: !0 }), E(() => A.anchor, (e) => {
|
|
206
|
-
|
|
211
|
+
H.value = e == null ? void 0 : o(e) ?? void 0;
|
|
207
212
|
}, { immediate: !0 });
|
|
208
|
-
let
|
|
209
|
-
|
|
213
|
+
let Ye = m(() => H.value ?? V.value), U = C(!1), W = null;
|
|
214
|
+
he({
|
|
210
215
|
name: "BbDatePicker",
|
|
211
|
-
open:
|
|
216
|
+
open: U
|
|
217
|
+
});
|
|
218
|
+
let G = (e) => {
|
|
219
|
+
A.disabled || A.readonly || (e.stopPropagation(), U.value = !U.value);
|
|
220
|
+
};
|
|
221
|
+
l(A, j, {
|
|
222
|
+
isOpen: () => U.value,
|
|
223
|
+
open: () => {
|
|
224
|
+
A.disabled || A.readonly || (U.value = !0);
|
|
225
|
+
},
|
|
226
|
+
close: () => U.value = !1
|
|
212
227
|
});
|
|
213
|
-
let
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
e.target instanceof HTMLDialogElement && (H.value = !1);
|
|
228
|
+
let K = (e) => {
|
|
229
|
+
let t = e.target;
|
|
230
|
+
t instanceof Node && ((document.getElementById(B)?.closest(".bb-common-popover"))?.contains(t) || V.value?.contains(t) || (U.value = !1));
|
|
217
231
|
};
|
|
218
|
-
E(
|
|
219
|
-
e ? (
|
|
232
|
+
E(U, async (e) => {
|
|
233
|
+
e ? (W = document.activeElement instanceof HTMLElement ? document.activeElement : null, Q.value || document.addEventListener("click", K, {
|
|
234
|
+
passive: !0,
|
|
235
|
+
capture: !0
|
|
236
|
+
}), await Oe(), Se(document.getElementById(B), "[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", K, { capture: !0 }), W?.focus(), W = null);
|
|
220
237
|
});
|
|
221
|
-
let
|
|
222
|
-
E(
|
|
223
|
-
if (
|
|
238
|
+
let q = null, J = C();
|
|
239
|
+
E(V, (e) => {
|
|
240
|
+
if (q?.(), q = null, !e) return;
|
|
224
241
|
let t = !e.id;
|
|
225
|
-
t && (e.id = `${
|
|
226
|
-
e.removeEventListener("click",
|
|
242
|
+
t && (e.id = `${R}_activator`), J.value = e.id, e.addEventListener("click", G), q = () => {
|
|
243
|
+
e.removeEventListener("click", G), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), t && e.removeAttribute("id"), J.value = void 0;
|
|
227
244
|
};
|
|
228
245
|
}, { immediate: !0 });
|
|
229
|
-
let
|
|
230
|
-
E([
|
|
231
|
-
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${
|
|
232
|
-
}, { immediate: !0 }),
|
|
233
|
-
|
|
246
|
+
let Y = m(() => A.label ?? I("datePicker.openPicker").value), X = `${R}_label`, Z = m(() => J.value ? `${X} ${J.value}` : X);
|
|
247
|
+
E([V, U], ([e, t]) => {
|
|
248
|
+
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${X} ${e.id}`), t ? e.setAttribute("aria-controls", B) : e.removeAttribute("aria-controls"));
|
|
249
|
+
}, { immediate: !0 }), ke(() => {
|
|
250
|
+
q?.(), document.removeEventListener("click", K, { capture: !0 });
|
|
234
251
|
});
|
|
235
|
-
let
|
|
252
|
+
let Xe = i("BbDatePicker", A, { adaptive: !0 }), Ze = () => Xe.adaptive && L.value ? "canvas" : "popover", Qe = C(Ze()), Q = m(() => Qe.value === "canvas");
|
|
236
253
|
E([
|
|
237
|
-
() =>
|
|
238
|
-
|
|
239
|
-
|
|
254
|
+
() => Xe.adaptive,
|
|
255
|
+
L,
|
|
256
|
+
U
|
|
240
257
|
], () => {
|
|
241
|
-
|
|
242
|
-
}),
|
|
243
|
-
let
|
|
258
|
+
U.value || (Qe.value = Ze());
|
|
259
|
+
}), d(() => U.value && !Q.value, () => U.value = !1);
|
|
260
|
+
let $e = m(() => ({
|
|
244
261
|
side: "bottom",
|
|
245
262
|
size: "auto",
|
|
246
263
|
draggable: !0,
|
|
247
264
|
transitionDuration: A.transitionDuration,
|
|
248
265
|
hideClose: !0,
|
|
249
|
-
...A.offCanvasProps?.title ? {} : { "aria-labelledby":
|
|
250
|
-
...
|
|
251
|
-
})),
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
|
|
266
|
+
...A.offCanvasProps?.title ? {} : { "aria-labelledby": Z.value },
|
|
267
|
+
...Ce(A.offCanvasProps)
|
|
268
|
+
})), et = () => {
|
|
269
|
+
V.value?.focus(), j("hidden");
|
|
270
|
+
}, tt = (e) => A.multiple || F.value ? !1 : A.range ? Array.isArray(e) && e.length === 2 : !!e, nt = (e) => {
|
|
271
|
+
ze(e), tt(e) && (U.value = !1);
|
|
255
272
|
}, $ = m(() => b({
|
|
256
|
-
id:
|
|
273
|
+
id: B,
|
|
257
274
|
class: ["bb-date-picker__panel", {
|
|
258
|
-
"bb-date-picker__panel--datetime":
|
|
275
|
+
"bb-date-picker__panel--datetime": F.value,
|
|
259
276
|
"bb-date-picker__panel--sheet": Q.value
|
|
260
277
|
}]
|
|
261
|
-
}, Q.value ? {} :
|
|
278
|
+
}, Q.value ? {} : N.panel ?? {})), rt = ({ availableHeight: e }) => (A.numberOfMonths ?? 1) > 1 && e ? b($.value, { style: {
|
|
262
279
|
maxHeight: `${e}px`,
|
|
263
280
|
overflowY: "auto"
|
|
264
281
|
} }) : $.value;
|
|
265
|
-
return
|
|
266
|
-
|
|
267
|
-
}), (t, n) => (S(),
|
|
268
|
-
|
|
282
|
+
return Ae(() => {
|
|
283
|
+
U.value = !1;
|
|
284
|
+
}), (t, n) => (S(), Ee(we, null, [
|
|
285
|
+
Ke.value ? Te("", !0) : w(t.$slots, "activator", x(y({
|
|
269
286
|
props: {
|
|
270
|
-
ref:
|
|
287
|
+
ref: qe,
|
|
271
288
|
"aria-haspopup": "dialog",
|
|
272
|
-
"aria-expanded":
|
|
273
|
-
"aria-labelledby":
|
|
289
|
+
"aria-expanded": U.value ? "true" : "false",
|
|
290
|
+
"aria-labelledby": Z.value
|
|
274
291
|
},
|
|
275
|
-
anchorProps: { ref:
|
|
276
|
-
open:
|
|
277
|
-
value:
|
|
278
|
-
text:
|
|
279
|
-
disabled: !!
|
|
292
|
+
anchorProps: { ref: Je },
|
|
293
|
+
open: U.value,
|
|
294
|
+
value: T(M),
|
|
295
|
+
text: We.value,
|
|
296
|
+
disabled: !!f.disabled
|
|
280
297
|
})), void 0, void 0, 0),
|
|
281
298
|
g("span", {
|
|
282
|
-
id:
|
|
299
|
+
id: X,
|
|
283
300
|
hidden: ""
|
|
284
|
-
},
|
|
285
|
-
_(T(
|
|
286
|
-
default: D(() => [_(
|
|
287
|
-
"active-segment":
|
|
288
|
-
ampm:
|
|
289
|
-
clearable:
|
|
290
|
-
disabled:
|
|
291
|
-
"first-day-of-week":
|
|
292
|
-
floating:
|
|
293
|
-
max:
|
|
294
|
-
min:
|
|
295
|
-
"model-value":
|
|
296
|
-
multiple:
|
|
297
|
-
"number-of-months": Q.value ? 1 :
|
|
298
|
-
pt: T(
|
|
299
|
-
range:
|
|
300
|
-
readonly:
|
|
301
|
-
seconds:
|
|
302
|
-
selectable:
|
|
303
|
-
step:
|
|
304
|
-
time:
|
|
305
|
-
type:
|
|
306
|
-
utc:
|
|
301
|
+
}, Me(Y.value), 1),
|
|
302
|
+
_(T(Ge), null, {
|
|
303
|
+
default: D(() => [_(te, {
|
|
304
|
+
"active-segment": f.activeSegment,
|
|
305
|
+
ampm: f.ampm,
|
|
306
|
+
clearable: f.clearable,
|
|
307
|
+
disabled: f.disabled,
|
|
308
|
+
"first-day-of-week": f.firstDayOfWeek,
|
|
309
|
+
floating: f.floating,
|
|
310
|
+
max: f.max,
|
|
311
|
+
min: f.min,
|
|
312
|
+
"model-value": Be.value,
|
|
313
|
+
multiple: f.multiple,
|
|
314
|
+
"number-of-months": Q.value ? 1 : f.numberOfMonths,
|
|
315
|
+
pt: T(N).forward(T(be), T(ge).states),
|
|
316
|
+
range: f.range,
|
|
317
|
+
readonly: f.readonly,
|
|
318
|
+
seconds: f.seconds,
|
|
319
|
+
selectable: f.selectable,
|
|
320
|
+
step: f.step,
|
|
321
|
+
time: f.time,
|
|
322
|
+
type: f.type,
|
|
323
|
+
utc: f.utc,
|
|
307
324
|
onGridPick: n[0] ||= (e) => T(j)("grid-pick", e),
|
|
308
325
|
onTimePick: n[1] ||= (e) => T(j)("time-pick", e),
|
|
309
326
|
"onUpdate:activeSegment": n[2] ||= (e) => T(j)("update:activeSegment", e),
|
|
310
|
-
"onUpdate:modelValue":
|
|
327
|
+
"onUpdate:modelValue": nt,
|
|
311
328
|
"onUpdate:time": n[3] ||= (e) => T(j)("update:time", e)
|
|
312
|
-
},
|
|
329
|
+
}, De({
|
|
313
330
|
day: D((e) => [w(t.$slots, "day", x(y(e)))]),
|
|
314
331
|
"day:append": D((e) => [w(t.$slots, "day:append", x(y(e)))]),
|
|
315
332
|
_: 2
|
|
316
|
-
}, [
|
|
333
|
+
}, [je(He(), (e) => ({
|
|
317
334
|
name: e,
|
|
318
335
|
fn: D((n) => [w(t.$slots, e, x(y(n)))])
|
|
319
336
|
}))]), 1032, [
|
|
@@ -340,46 +357,46 @@ var k = /*@__PURE__*/ v({
|
|
|
340
357
|
])]),
|
|
341
358
|
_: 3
|
|
342
359
|
}),
|
|
343
|
-
Q.value ? (S(), h(
|
|
360
|
+
Q.value ? (S(), h(_e, b({
|
|
344
361
|
key: 1,
|
|
345
|
-
modelValue:
|
|
346
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
362
|
+
modelValue: U.value,
|
|
363
|
+
"onUpdate:modelValue": n[4] ||= (e) => U.value = e,
|
|
347
364
|
class: "bb-date-picker__sheet",
|
|
348
|
-
pt: T(
|
|
365
|
+
pt: T(N).forward({
|
|
349
366
|
panel: "root",
|
|
350
367
|
sheet: "root"
|
|
351
|
-
}, T(
|
|
352
|
-
}, b(
|
|
353
|
-
onHidden:
|
|
368
|
+
}, T(ve).states, () => f.offCanvasProps?.pt)
|
|
369
|
+
}, b($e.value, T(e)(T(N).forwardAttrs)), {
|
|
370
|
+
onHidden: et,
|
|
354
371
|
onHide: n[5] ||= (e) => T(j)("hide"),
|
|
355
372
|
onShow: n[6] ||= (e) => T(j)("show"),
|
|
356
373
|
onShown: n[7] ||= (e) => T(j)("shown")
|
|
357
374
|
}), {
|
|
358
|
-
default: D(() => [g("div", x(y($.value)), [_(T(
|
|
375
|
+
default: D(() => [g("div", x(y($.value)), [_(T(z))], 16)]),
|
|
359
376
|
_: 1
|
|
360
|
-
}, 16, ["modelValue", "pt"])) : (S(), h(
|
|
377
|
+
}, 16, ["modelValue", "pt"])) : (S(), h(ye, b({
|
|
361
378
|
key: 2,
|
|
362
|
-
modelValue:
|
|
363
|
-
"onUpdate:modelValue": n[8] ||= (e) =>
|
|
364
|
-
anchor:
|
|
365
|
-
"aria-label":
|
|
366
|
-
boundary:
|
|
367
|
-
"bubble-attrs":
|
|
379
|
+
modelValue: U.value,
|
|
380
|
+
"onUpdate:modelValue": n[8] ||= (e) => U.value = e,
|
|
381
|
+
anchor: Ye.value,
|
|
382
|
+
"aria-label": Y.value,
|
|
383
|
+
boundary: f.boundary,
|
|
384
|
+
"bubble-attrs": rt,
|
|
368
385
|
class: "bb-date-picker",
|
|
369
386
|
dialog: "",
|
|
370
|
-
"disable-flip":
|
|
371
|
-
eager:
|
|
387
|
+
"disable-flip": f.disableFlip,
|
|
388
|
+
eager: f.eager,
|
|
372
389
|
"hide-arrow": "",
|
|
373
|
-
offset:
|
|
374
|
-
padding:
|
|
375
|
-
placement:
|
|
376
|
-
"transition-duration":
|
|
390
|
+
offset: f.offset ?? T(Re)() ?? 4,
|
|
391
|
+
padding: f.padding,
|
|
392
|
+
placement: f.placement,
|
|
393
|
+
"transition-duration": f.transitionDuration,
|
|
377
394
|
onHidden: n[9] ||= (e) => T(j)("hidden"),
|
|
378
395
|
onHide: n[10] ||= (e) => T(j)("hide"),
|
|
379
396
|
onShow: n[11] ||= (e) => T(j)("show"),
|
|
380
397
|
onShown: n[12] ||= (e) => T(j)("shown")
|
|
381
|
-
}, T(
|
|
382
|
-
default: D(() => [_(T(
|
|
398
|
+
}, T(N).rootAttrs), {
|
|
399
|
+
default: D(() => [_(T(z))]),
|
|
383
400
|
_: 1
|
|
384
401
|
}, 16, [
|
|
385
402
|
"modelValue",
|
|
@@ -80,6 +80,11 @@ export declare const DATE_PICKER_CALENDAR_PARTS: ReadonlyArray<Exclude<BbCalenda
|
|
|
80
80
|
*/
|
|
81
81
|
type BbDatePickerPtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_DATE_PICKER_PT> & BbDatePickerPtKeys;
|
|
82
82
|
export type BbDatePickerBaseProps = BbDatePickerPtProps & {
|
|
83
|
+
/**
|
|
84
|
+
* Whether the panel is open (`v-model:open`; `v-model` stays the value).
|
|
85
|
+
* Bound, the app opens and closes it; unbound, the initial state.
|
|
86
|
+
*/
|
|
87
|
+
open?: boolean;
|
|
83
88
|
/**
|
|
84
89
|
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
85
90
|
* without the prefix. See the `pt:<part>` row.
|
|
@@ -106,7 +111,7 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
|
|
|
106
111
|
* `year`), otherwise a zoned
|
|
107
112
|
* ISO instant (carrying the time under `datetime`).
|
|
108
113
|
*/
|
|
109
|
-
modelValue
|
|
114
|
+
modelValue?: string | string[] | null;
|
|
110
115
|
/**
|
|
111
116
|
* Companion time model (`v-model:time`), 24-hour `HH:mm` / `HH:mm:ss`.
|
|
112
117
|
* With `floating` it is the only carrier of the time; otherwise it mirrors
|
|
@@ -249,7 +254,7 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
|
|
|
249
254
|
export type BbDatePickerModelProps<R extends boolean = boolean, M extends boolean = boolean> = {
|
|
250
255
|
range?: R;
|
|
251
256
|
multiple?: M;
|
|
252
|
-
modelValue
|
|
257
|
+
modelValue?: PtNoInfer<BbDateModel<R, M>>;
|
|
253
258
|
time?: PtNoInfer<BbTimeModel<R>>;
|
|
254
259
|
};
|
|
255
260
|
export type BbDatePickerProps<R extends boolean = boolean, M extends boolean = boolean> = BbDatePickerBaseProps & BbDatePickerModelProps<R, M>;
|
|
@@ -260,6 +265,8 @@ export type BbDatePickerEvents<R extends boolean = boolean, M extends boolean =
|
|
|
260
265
|
(e: 'shown'): void;
|
|
261
266
|
/** Emitted as soon as the calendar surface starts to close. */
|
|
262
267
|
(e: 'hide'): void;
|
|
268
|
+
/** The panel opened or closed (`v-model:open`). */
|
|
269
|
+
(e: 'update:open', value: boolean): void;
|
|
263
270
|
/** Emitted once the calendar surface has finished closing. */
|
|
264
271
|
(e: 'hidden'): void;
|
|
265
272
|
/** Emitted when the selected date value changes (single/range/null). */
|
|
@@ -29,6 +29,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
|
|
|
29
29
|
};
|
|
30
30
|
}> | undefined;
|
|
31
31
|
} & import('../../types/passthrough.js').PtVariantAttrs<import('../../types/passthrough.js').TextControlPtPart | "activator", keyof import('../../index.js').DatePickerInputVariantRegistry> & import('./ptKeys.generated.js').BbDatePickerInputPtKeys & {
|
|
32
|
+
open?: boolean;
|
|
32
33
|
pt?: { [K in import('./types.js').BbDatePickerInputPtKey]?: import('../../types/passthrough.js').PtValue; } & { [K in `${import('../../types/passthrough.js').TextControlPtPart | "activator"}:${import('../../types/InputVariant.js').InputVariantBuiltIn | keyof import('../../index.js').DatePickerInputVariantRegistry}`]?: import('../../types/passthrough.js').PtValue; };
|
|
33
34
|
adaptive?: boolean;
|
|
34
35
|
description?: string;
|
|
@@ -78,7 +79,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
|
|
|
78
79
|
time?: string | string[] | null;
|
|
79
80
|
transitionDuration?: number;
|
|
80
81
|
utc?: boolean;
|
|
81
|
-
} & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
|
|
82
|
+
} & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "open" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
|
|
82
83
|
onActive?: (() => any) | undefined;
|
|
83
84
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, false>) => any) | undefined;
|
|
84
85
|
onInactive?: (() => any) | undefined;
|
|
@@ -88,6 +89,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
|
|
|
88
89
|
onShow?: (() => any) | undefined;
|
|
89
90
|
onShown?: (() => any) | undefined;
|
|
90
91
|
onHidden?: (() => any) | undefined;
|
|
92
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
91
93
|
"onUpdate:time"?: ((value: import('../../index.js').BbTimeValue<R>) => any) | undefined;
|
|
92
94
|
}> & (typeof globalThis extends {
|
|
93
95
|
__VLS_PROPS_FALLBACK: infer P;
|