bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76
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 +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +4 -4
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +13 -1
- package/dist/ai/BbColorPalette.md +12 -7
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +13 -1
- package/dist/ai/BbDatePickerInput.md +18 -2
- package/dist/ai/BbDialog.md +6 -3
- package/dist/ai/BbDropdown.md +174 -77
- package/dist/ai/BbDropdownButton.md +37 -16
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +227 -105
- package/dist/ai/BbSelectPopover.md +139 -14
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +18 -17
- package/dist/ai/BbTimePicker.md +13 -1
- package/dist/ai/BbTimePickerInput.md +16 -2
- package/dist/ai/BbToast.md +3 -2
- 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 +3 -2
- package/dist/ai/ListBox.md +4 -2
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +310 -7
- package/dist/ai/components.json +33 -35
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +9 -5
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- 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-icon.md +4 -4
- 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 +70 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -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 +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
- package/dist/ai/manifest/components/BbDropdown.json +36 -28
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
- package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -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 +47 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
- 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 +9 -1
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +3 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +3 -2
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +128 -11
- package/dist/ai/source/BbBadge.md +18 -7
- package/dist/ai/source/BbBreadcrumbs.md +57 -56
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +41 -34
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +23 -2
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +47 -3
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +296 -99
- package/dist/ai/source/BbDropdownButton.md +61 -19
- package/dist/ai/source/BbDropdownGroup.md +189 -98
- package/dist/ai/source/BbGallery.md +82 -60
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +151 -112
- package/dist/ai/source/BbSelectPopover.md +244 -29
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +114 -35
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +21 -2
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +33 -7
- package/dist/ai/source/GroupedListBox.md +85 -14
- package/dist/ai/source/ListBox.md +11 -1
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -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 +66 -64
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
- 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 +240 -239
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- 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 +208 -196
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
- 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 +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
- package/dist/components/BbDropdown/types.d.ts +109 -87
- package/dist/components/BbDropdown/types.js +3 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
- package/dist/components/BbDropdownButton/types.d.ts +23 -10
- package/dist/components/BbDropdownButton/types.js +4 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +110 -111
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +32 -17
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- 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 +2 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
- package/dist/components/BbToast/types.d.ts +2 -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/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
- 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/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- 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/icon-scan.d.ts +1 -1
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +1038 -451
- package/dist/llms-medium.txt +33 -28
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +5 -5
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +323 -307
- package/llms.txt +2 -2
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +93 -12
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
|
@@ -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.
|
|
@@ -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`. */
|
|
@@ -20,6 +20,7 @@ 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;
|
|
@@ -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" | "
|
|
56
|
+
} & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "max" | "selectable" | "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;
|
|
@@ -6,28 +6,29 @@ import { useConfigDefaults as i, useConfigSetting as a } from "../../composables
|
|
|
6
6
|
import { extractDomContainer as o } from "../../utilities/functions/extractDomContainer.js";
|
|
7
7
|
import { useId as s } from "../../composables/useId.js";
|
|
8
8
|
import { useOwnModel as c } from "../../composables/useOwnModel.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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";
|
|
12
13
|
import { transitions as f } from "../../utilities/misc/transitions.js";
|
|
13
|
-
import
|
|
14
|
-
import { isLabelType as
|
|
15
|
-
import { isoWeekOf as
|
|
16
|
-
import { formatDateOf as
|
|
17
|
-
import { useHydrated as
|
|
18
|
-
import { toInnerValue as
|
|
19
|
-
import { calendarSystemOf as
|
|
20
|
-
import { checkCalendarProps as
|
|
21
|
-
import { BB_CALENDAR_PT as
|
|
22
|
-
import
|
|
23
|
-
import { BB_OFF_CANVAS_PT as
|
|
24
|
-
import
|
|
25
|
-
import { BB_DATE_PICKER_PT as p, DATE_PICKER_CALENDAR_PARTS as
|
|
26
|
-
import { usePassthrough as
|
|
27
|
-
import { firstFocusableMatch as
|
|
28
|
-
import { withoutPt as
|
|
29
|
-
import { Fragment as
|
|
30
|
-
import { createReusableTemplate as
|
|
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";
|
|
31
32
|
import { formatDigits as O } from "virtual:bitboss-ui/calendars";
|
|
32
33
|
// src/components/BbDatePicker/BbDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
33
34
|
var k = /*@__PURE__*/ v({
|
|
@@ -114,6 +115,7 @@ var k = /*@__PURE__*/ v({
|
|
|
114
115
|
"pt:item:selected": {},
|
|
115
116
|
"pt:item:disabled": {},
|
|
116
117
|
"pt:item:open": {},
|
|
118
|
+
open: { type: Boolean },
|
|
117
119
|
pt: {},
|
|
118
120
|
activator: {},
|
|
119
121
|
anchor: {},
|
|
@@ -154,6 +156,7 @@ var k = /*@__PURE__*/ v({
|
|
|
154
156
|
"show",
|
|
155
157
|
"shown",
|
|
156
158
|
"hide",
|
|
159
|
+
"update:open",
|
|
157
160
|
"hidden",
|
|
158
161
|
"update:modelValue",
|
|
159
162
|
"update:time",
|
|
@@ -162,9 +165,9 @@ var k = /*@__PURE__*/ v({
|
|
|
162
165
|
"time-pick"
|
|
163
166
|
],
|
|
164
167
|
setup(f, { emit: v }) {
|
|
165
|
-
let k = f,
|
|
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);
|
|
166
169
|
process.env.NODE_ENV !== "production" && n("BbDatePicker", t("BbDatePicker"));
|
|
167
|
-
let
|
|
170
|
+
let Ve = /^\d{4}-\d{2}-\d{2}(:append)?$/, He = () => Object.keys(Le).filter((e) => Ve.test(e)), N = xe({
|
|
168
171
|
component: "BbDatePicker",
|
|
169
172
|
props: A,
|
|
170
173
|
parts: p.parts,
|
|
@@ -173,10 +176,10 @@ var k = /*@__PURE__*/ v({
|
|
|
173
176
|
open: () => U.value,
|
|
174
177
|
disabled: () => !!A.disabled
|
|
175
178
|
},
|
|
176
|
-
attrs:
|
|
177
|
-
}), P = r(), { isHydrated:
|
|
178
|
-
let e = A.type === "datetime", t = !!A.floating ||
|
|
179
|
-
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, {
|
|
180
183
|
floating: t,
|
|
181
184
|
utc: A.utc,
|
|
182
185
|
type: A.type,
|
|
@@ -184,22 +187,22 @@ var k = /*@__PURE__*/ v({
|
|
|
184
187
|
});
|
|
185
188
|
if (!c.isValid()) return a;
|
|
186
189
|
if (A.type === "week") {
|
|
187
|
-
let { week: e, year: t } =
|
|
190
|
+
let { week: e, year: t } = re(c), n = r.numberingSystem, i = (e) => O ? O(e, n) : String(e);
|
|
188
191
|
return I("datePicker.weekValue", i(e), i(t)).value;
|
|
189
192
|
}
|
|
190
|
-
let l =
|
|
193
|
+
let l = ie(c, P.locale, oe(A.type));
|
|
191
194
|
if (!e) return l;
|
|
192
|
-
let u = t ? Array.isArray(n) ? n[o] : o === 0 ? n : null : null, d = t ? u ?
|
|
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);
|
|
193
196
|
return d ? `${l} ${d}` : l;
|
|
194
197
|
}, o = M.value;
|
|
195
198
|
return Array.isArray(o) ? o.filter(Boolean).map(a).join(A.multiple ? ", " : " – ") : o ? a(o, 0) : "";
|
|
196
199
|
});
|
|
197
|
-
|
|
200
|
+
ce();
|
|
198
201
|
let F = m(() => A.type === "datetime");
|
|
199
|
-
|
|
200
|
-
let { t: I } =
|
|
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;
|
|
202
|
-
},
|
|
205
|
+
}, Je = (e) => {
|
|
203
206
|
H.value = o(e) ?? void 0;
|
|
204
207
|
};
|
|
205
208
|
E(() => A.activator, (e) => {
|
|
@@ -207,14 +210,22 @@ var k = /*@__PURE__*/ v({
|
|
|
207
210
|
}, { immediate: !0 }), E(() => A.anchor, (e) => {
|
|
208
211
|
H.value = e == null ? void 0 : o(e) ?? void 0;
|
|
209
212
|
}, { immediate: !0 });
|
|
210
|
-
let
|
|
211
|
-
|
|
213
|
+
let Ye = m(() => H.value ?? V.value), U = C(!1), W = null;
|
|
214
|
+
he({
|
|
212
215
|
name: "BbDatePicker",
|
|
213
216
|
open: U
|
|
214
217
|
});
|
|
215
218
|
let G = (e) => {
|
|
216
219
|
A.disabled || A.readonly || (e.stopPropagation(), U.value = !U.value);
|
|
217
|
-
}
|
|
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
|
|
227
|
+
});
|
|
228
|
+
let K = (e) => {
|
|
218
229
|
let t = e.target;
|
|
219
230
|
t instanceof Node && ((document.getElementById(B)?.closest(".bb-common-popover"))?.contains(t) || V.value?.contains(t) || (U.value = !1));
|
|
220
231
|
};
|
|
@@ -222,7 +233,7 @@ var k = /*@__PURE__*/ v({
|
|
|
222
233
|
e ? (W = document.activeElement instanceof HTMLElement ? document.activeElement : null, Q.value || document.addEventListener("click", K, {
|
|
223
234
|
passive: !0,
|
|
224
235
|
capture: !0
|
|
225
|
-
}), await
|
|
236
|
+
}), await Oe(), Se(document.getElementById(B), "[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", K, { capture: !0 }), W?.focus(), W = null);
|
|
226
237
|
});
|
|
227
238
|
let q = null, J = C();
|
|
228
239
|
E(V, (e) => {
|
|
@@ -232,64 +243,64 @@ var k = /*@__PURE__*/ v({
|
|
|
232
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;
|
|
233
244
|
};
|
|
234
245
|
}, { immediate: !0 });
|
|
235
|
-
let Y = m(() => A.label ?? I("datePicker.openPicker").value), X = `${R}_label`,
|
|
246
|
+
let Y = m(() => A.label ?? I("datePicker.openPicker").value), X = `${R}_label`, Z = m(() => J.value ? `${X} ${J.value}` : X);
|
|
236
247
|
E([V, U], ([e, t]) => {
|
|
237
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"));
|
|
238
|
-
}, { immediate: !0 }),
|
|
249
|
+
}, { immediate: !0 }), ke(() => {
|
|
239
250
|
q?.(), document.removeEventListener("click", K, { capture: !0 });
|
|
240
251
|
});
|
|
241
|
-
let Xe = i("BbDatePicker", A, { adaptive: !0 }), Ze = () => Xe.adaptive && L.value ? "canvas" : "popover",
|
|
252
|
+
let Xe = i("BbDatePicker", A, { adaptive: !0 }), Ze = () => Xe.adaptive && L.value ? "canvas" : "popover", Qe = C(Ze()), Q = m(() => Qe.value === "canvas");
|
|
242
253
|
E([
|
|
243
254
|
() => Xe.adaptive,
|
|
244
255
|
L,
|
|
245
256
|
U
|
|
246
257
|
], () => {
|
|
247
|
-
U.value || (
|
|
248
|
-
}),
|
|
249
|
-
let
|
|
258
|
+
U.value || (Qe.value = Ze());
|
|
259
|
+
}), d(() => U.value && !Q.value, () => U.value = !1);
|
|
260
|
+
let $e = m(() => ({
|
|
250
261
|
side: "bottom",
|
|
251
262
|
size: "auto",
|
|
252
263
|
draggable: !0,
|
|
253
264
|
transitionDuration: A.transitionDuration,
|
|
254
265
|
hideClose: !0,
|
|
255
|
-
...A.offCanvasProps?.title ? {} : { "aria-labelledby":
|
|
256
|
-
...
|
|
257
|
-
})),
|
|
266
|
+
...A.offCanvasProps?.title ? {} : { "aria-labelledby": Z.value },
|
|
267
|
+
...Ce(A.offCanvasProps)
|
|
268
|
+
})), et = () => {
|
|
258
269
|
V.value?.focus(), j("hidden");
|
|
259
|
-
},
|
|
260
|
-
|
|
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);
|
|
261
272
|
}, $ = m(() => b({
|
|
262
273
|
id: B,
|
|
263
274
|
class: ["bb-date-picker__panel", {
|
|
264
275
|
"bb-date-picker__panel--datetime": F.value,
|
|
265
276
|
"bb-date-picker__panel--sheet": Q.value
|
|
266
277
|
}]
|
|
267
|
-
}, Q.value ? {} : N.panel ?? {})),
|
|
278
|
+
}, Q.value ? {} : N.panel ?? {})), rt = ({ availableHeight: e }) => (A.numberOfMonths ?? 1) > 1 && e ? b($.value, { style: {
|
|
268
279
|
maxHeight: `${e}px`,
|
|
269
280
|
overflowY: "auto"
|
|
270
281
|
} }) : $.value;
|
|
271
|
-
return
|
|
282
|
+
return Ae(() => {
|
|
272
283
|
U.value = !1;
|
|
273
|
-
}), (t, n) => (S(),
|
|
274
|
-
|
|
284
|
+
}), (t, n) => (S(), Ee(we, null, [
|
|
285
|
+
Ke.value ? Te("", !0) : w(t.$slots, "activator", x(y({
|
|
275
286
|
props: {
|
|
276
|
-
ref:
|
|
287
|
+
ref: qe,
|
|
277
288
|
"aria-haspopup": "dialog",
|
|
278
289
|
"aria-expanded": U.value ? "true" : "false",
|
|
279
|
-
"aria-labelledby":
|
|
290
|
+
"aria-labelledby": Z.value
|
|
280
291
|
},
|
|
281
|
-
anchorProps: { ref:
|
|
292
|
+
anchorProps: { ref: Je },
|
|
282
293
|
open: U.value,
|
|
283
294
|
value: T(M),
|
|
284
|
-
text:
|
|
295
|
+
text: We.value,
|
|
285
296
|
disabled: !!f.disabled
|
|
286
297
|
})), void 0, void 0, 0),
|
|
287
298
|
g("span", {
|
|
288
299
|
id: X,
|
|
289
300
|
hidden: ""
|
|
290
|
-
},
|
|
291
|
-
_(T(
|
|
292
|
-
default: D(() => [_(
|
|
301
|
+
}, Me(Y.value), 1),
|
|
302
|
+
_(T(Ge), null, {
|
|
303
|
+
default: D(() => [_(te, {
|
|
293
304
|
"active-segment": f.activeSegment,
|
|
294
305
|
ampm: f.ampm,
|
|
295
306
|
clearable: f.clearable,
|
|
@@ -298,10 +309,10 @@ var k = /*@__PURE__*/ v({
|
|
|
298
309
|
floating: f.floating,
|
|
299
310
|
max: f.max,
|
|
300
311
|
min: f.min,
|
|
301
|
-
"model-value":
|
|
312
|
+
"model-value": Be.value,
|
|
302
313
|
multiple: f.multiple,
|
|
303
314
|
"number-of-months": Q.value ? 1 : f.numberOfMonths,
|
|
304
|
-
pt: T(N).forward(T(
|
|
315
|
+
pt: T(N).forward(T(be), T(ge).states),
|
|
305
316
|
range: f.range,
|
|
306
317
|
readonly: f.readonly,
|
|
307
318
|
seconds: f.seconds,
|
|
@@ -313,13 +324,13 @@ var k = /*@__PURE__*/ v({
|
|
|
313
324
|
onGridPick: n[0] ||= (e) => T(j)("grid-pick", e),
|
|
314
325
|
onTimePick: n[1] ||= (e) => T(j)("time-pick", e),
|
|
315
326
|
"onUpdate:activeSegment": n[2] ||= (e) => T(j)("update:activeSegment", e),
|
|
316
|
-
"onUpdate:modelValue":
|
|
327
|
+
"onUpdate:modelValue": nt,
|
|
317
328
|
"onUpdate:time": n[3] ||= (e) => T(j)("update:time", e)
|
|
318
|
-
},
|
|
329
|
+
}, De({
|
|
319
330
|
day: D((e) => [w(t.$slots, "day", x(y(e)))]),
|
|
320
331
|
"day:append": D((e) => [w(t.$slots, "day:append", x(y(e)))]),
|
|
321
332
|
_: 2
|
|
322
|
-
}, [
|
|
333
|
+
}, [je(He(), (e) => ({
|
|
323
334
|
name: e,
|
|
324
335
|
fn: D((n) => [w(t.$slots, e, x(y(n)))])
|
|
325
336
|
}))]), 1032, [
|
|
@@ -346,7 +357,7 @@ var k = /*@__PURE__*/ v({
|
|
|
346
357
|
])]),
|
|
347
358
|
_: 3
|
|
348
359
|
}),
|
|
349
|
-
Q.value ? (S(), h(
|
|
360
|
+
Q.value ? (S(), h(_e, b({
|
|
350
361
|
key: 1,
|
|
351
362
|
modelValue: U.value,
|
|
352
363
|
"onUpdate:modelValue": n[4] ||= (e) => U.value = e,
|
|
@@ -354,29 +365,29 @@ var k = /*@__PURE__*/ v({
|
|
|
354
365
|
pt: T(N).forward({
|
|
355
366
|
panel: "root",
|
|
356
367
|
sheet: "root"
|
|
357
|
-
}, T(
|
|
358
|
-
}, b(
|
|
359
|
-
onHidden:
|
|
368
|
+
}, T(ve).states, () => f.offCanvasProps?.pt)
|
|
369
|
+
}, b($e.value, T(e)(T(N).forwardAttrs)), {
|
|
370
|
+
onHidden: et,
|
|
360
371
|
onHide: n[5] ||= (e) => T(j)("hide"),
|
|
361
372
|
onShow: n[6] ||= (e) => T(j)("show"),
|
|
362
373
|
onShown: n[7] ||= (e) => T(j)("shown")
|
|
363
374
|
}), {
|
|
364
375
|
default: D(() => [g("div", x(y($.value)), [_(T(z))], 16)]),
|
|
365
376
|
_: 1
|
|
366
|
-
}, 16, ["modelValue", "pt"])) : (S(), h(
|
|
377
|
+
}, 16, ["modelValue", "pt"])) : (S(), h(ye, b({
|
|
367
378
|
key: 2,
|
|
368
379
|
modelValue: U.value,
|
|
369
380
|
"onUpdate:modelValue": n[8] ||= (e) => U.value = e,
|
|
370
|
-
anchor:
|
|
381
|
+
anchor: Ye.value,
|
|
371
382
|
"aria-label": Y.value,
|
|
372
383
|
boundary: f.boundary,
|
|
373
|
-
"bubble-attrs":
|
|
384
|
+
"bubble-attrs": rt,
|
|
374
385
|
class: "bb-date-picker",
|
|
375
386
|
dialog: "",
|
|
376
387
|
"disable-flip": f.disableFlip,
|
|
377
388
|
eager: f.eager,
|
|
378
389
|
"hide-arrow": "",
|
|
379
|
-
offset: f.offset ?? T(
|
|
390
|
+
offset: f.offset ?? T(Re)() ?? 4,
|
|
380
391
|
padding: f.padding,
|
|
381
392
|
placement: f.placement,
|
|
382
393
|
"transition-duration": f.transitionDuration,
|
|
@@ -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.
|
|
@@ -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,16 +79,17 @@ 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" | "
|
|
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" | "offCanvasProps" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "numberOfMonths" | "seconds" | "ampm" | "min" | "max" | "selectable" | "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;
|
|
84
|
+
onError?: ((error: DatePickerInputError) => any) | undefined;
|
|
83
85
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, false>) => any) | undefined;
|
|
84
86
|
onInactive?: (() => any) | undefined;
|
|
85
87
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
86
88
|
onHide?: (() => any) | undefined;
|
|
87
|
-
onError?: ((error: DatePickerInputError) => any) | undefined;
|
|
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;
|