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
|
@@ -3,30 +3,31 @@ import { useConfig as t } from "../../composables/useConfig.js";
|
|
|
3
3
|
import { useConfigDefaults as n, useConfigSetting as r } from "../../composables/useConfigDefaults.js";
|
|
4
4
|
import { useId as i } from "../../composables/useId.js";
|
|
5
5
|
import { useOwnModel as a } from "../../composables/useOwnModel.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { useOpenModel as o } from "../../composables/useOpenModel.js";
|
|
7
|
+
import { extractDomContainer as s } from "../../utilities/functions/extractDomContainer.js";
|
|
8
|
+
import { useLocale as c } from "../../composables/useLocale.js";
|
|
9
|
+
import { useLogger as ee } from "../../composables/useLogger.js";
|
|
10
|
+
import { useEscapeStackEntry as te } from "../../composables/useEscapeStackEntry.js";
|
|
11
|
+
import { useMobile as ne } from "../../composables/useMobile.js";
|
|
11
12
|
import { transitions as l } from "../../utilities/misc/transitions.js";
|
|
12
|
-
import
|
|
13
|
-
import { spokenTimeOf as
|
|
14
|
-
import { useHydrated as
|
|
15
|
-
import
|
|
16
|
-
import { BB_OFF_CANVAS_PT as
|
|
17
|
-
import
|
|
13
|
+
import re from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
14
|
+
import { spokenTimeOf as ie } from "../BbCalendar/useDayjsLocale.js";
|
|
15
|
+
import { useHydrated as ae } from "../../composables/useHydrated.js";
|
|
16
|
+
import oe from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
17
|
+
import { BB_OFF_CANVAS_PT as se } from "../BbOffCanvas/types.js";
|
|
18
|
+
import ce from "../CommonPopover/CommonPopover.vue.js";
|
|
18
19
|
import { BB_TIME_PICKER_PT as u } from "./types.js";
|
|
19
|
-
import { usePassthrough as
|
|
20
|
-
import { firstFocusableMatch as
|
|
21
|
-
import { withoutPt as
|
|
22
|
-
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as
|
|
23
|
-
import { createReusableTemplate as
|
|
20
|
+
import { usePassthrough as le } from "../../composables/usePassthrough.js";
|
|
21
|
+
import { firstFocusableMatch as ue } from "../../utils/focusVisibility.js";
|
|
22
|
+
import { withoutPt as de } from "../../utils/passthrough.js";
|
|
23
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as fe, guardReactiveProps as pe, mergeProps as v, nextTick as me, normalizeClass as he, normalizeProps as ge, onBeforeUnmount as _e, onDeactivated as ve, openBlock as y, ref as b, renderList as ye, renderSlot as be, toDisplayString as x, unref as S, useAttrs as xe, watch as C, withCtx as w } from "vue";
|
|
24
|
+
import { createReusableTemplate as Se } from "@vueuse/core";
|
|
24
25
|
// src/components/BbTimePicker/BbTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
-
var
|
|
26
|
+
var Ce = ["aria-label"], we = [
|
|
26
27
|
"aria-pressed",
|
|
27
28
|
"disabled",
|
|
28
29
|
"onClick"
|
|
29
|
-
],
|
|
30
|
+
], T = /*@__PURE__*/ fe({
|
|
30
31
|
inheritAttrs: !1,
|
|
31
32
|
__name: "BbTimePicker",
|
|
32
33
|
props: {
|
|
@@ -49,6 +50,7 @@ var xe = ["aria-label"], Se = [
|
|
|
49
50
|
"pt:item:selected": {},
|
|
50
51
|
"pt:item:disabled": {},
|
|
51
52
|
"pt:item:open": {},
|
|
53
|
+
open: { type: Boolean },
|
|
52
54
|
pt: {},
|
|
53
55
|
activator: {},
|
|
54
56
|
anchor: {},
|
|
@@ -80,114 +82,123 @@ var xe = ["aria-label"], Se = [
|
|
|
80
82
|
"show",
|
|
81
83
|
"shown",
|
|
82
84
|
"hide",
|
|
85
|
+
"update:open",
|
|
83
86
|
"hidden",
|
|
84
87
|
"update:modelValue",
|
|
85
88
|
"update:activeSegment",
|
|
86
89
|
"error",
|
|
87
90
|
"time-pick"
|
|
88
91
|
],
|
|
89
|
-
setup(l, { emit:
|
|
90
|
-
let
|
|
92
|
+
setup(l, { emit: fe }) {
|
|
93
|
+
let T = l, Te = fe, Ee = r(null, "popoverOffset"), E = T, D = Te, { model: O, set: k } = a(E, "modelValue", (e, t) => D(e, t), () => E.range ? [] : null), A = le({
|
|
91
94
|
component: "BbTimePicker",
|
|
92
|
-
props:
|
|
95
|
+
props: E,
|
|
93
96
|
parts: u.parts,
|
|
94
97
|
states: u.states,
|
|
95
98
|
active: {
|
|
96
|
-
open: () =>
|
|
97
|
-
disabled: () => !!
|
|
99
|
+
open: () => U.value,
|
|
100
|
+
disabled: () => !!E.disabled
|
|
98
101
|
},
|
|
99
|
-
attrs:
|
|
100
|
-
}),
|
|
101
|
-
let e = (e) =>
|
|
102
|
+
attrs: xe()
|
|
103
|
+
}), De = t(), { isHydrated: Oe } = ae(), ke = f(() => {
|
|
104
|
+
let e = (e) => ie(e, De.locale, !!E.ampm, !!E.seconds, Oe.value), t = O.value;
|
|
102
105
|
return Array.isArray(t) ? t.filter(Boolean).map(e).join(" – ") : t ? e(t) : "";
|
|
103
|
-
}), { t:
|
|
106
|
+
}), { t: j } = c(), { isMobile: M } = ne(), Ae = ee(), [je, N] = Se(), P = i().id.value, F = `${P}-panel`, I = f(() => v({
|
|
104
107
|
id: F,
|
|
105
108
|
class: ["bb-time-picker__panel", { "bb-time-picker__panel--sheet": Q.value }]
|
|
106
|
-
}, Q.value ? {} :
|
|
107
|
-
let t =
|
|
109
|
+
}, Q.value ? {} : A.panel ?? {})), L = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, R = (e) => {
|
|
110
|
+
let t = L.exec(e);
|
|
108
111
|
if (!t) return null;
|
|
109
112
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
110
113
|
return n > 23 || r > 59 ? null : n * 60 + r;
|
|
111
114
|
};
|
|
112
|
-
for (let [e, t] of [["min",
|
|
113
|
-
let
|
|
114
|
-
|
|
115
|
+
for (let [e, t] of [["min", E.min], ["max", E.max]]) t && R(t) === null && Ae.throw(`BbTimePicker: ${e} must be in the format HH:mm`);
|
|
116
|
+
let z = f(() => E.activeSegment ?? B.value), B = b("start"), Me = (e) => {
|
|
117
|
+
B.value = e, D("update:activeSegment", e);
|
|
115
118
|
}, Ne = f(() => [{
|
|
116
119
|
value: "start",
|
|
117
|
-
label:
|
|
120
|
+
label: j("timePickerInput.start").value
|
|
118
121
|
}, {
|
|
119
122
|
value: "end",
|
|
120
|
-
label:
|
|
121
|
-
}]), Pe = f(() => `${
|
|
122
|
-
|
|
123
|
+
label: j("timePickerInput.end").value
|
|
124
|
+
}]), Pe = f(() => `${j("timePickerInput.start").value} / ${j("timePickerInput.end").value}`), V = b(), H = b(), Fe = f(() => E.activator != null), Ie = (e) => {
|
|
125
|
+
V.value = s(e) ?? void 0;
|
|
123
126
|
}, Le = (e) => {
|
|
124
|
-
|
|
127
|
+
H.value = s(e) ?? void 0;
|
|
125
128
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}, { immediate: !0 }),
|
|
129
|
-
|
|
129
|
+
C(() => E.activator, (e) => {
|
|
130
|
+
V.value = s(e) ?? void 0;
|
|
131
|
+
}, { immediate: !0 }), C(() => E.anchor, (e) => {
|
|
132
|
+
H.value = e == null ? void 0 : s(e) ?? void 0;
|
|
130
133
|
}, { immediate: !0 });
|
|
131
|
-
let Re = f(() =>
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
+
let Re = f(() => H.value ?? V.value), U = b(!1), W = null, ze = (e) => {
|
|
135
|
+
E.disabled || E.readonly || (e.stopPropagation(), U.value || (Z.value = X()), U.value = !U.value);
|
|
136
|
+
};
|
|
137
|
+
o(E, D, {
|
|
138
|
+
isOpen: () => U.value,
|
|
139
|
+
open: () => {
|
|
140
|
+
E.disabled || E.readonly || (Z.value = X(), U.value = !0);
|
|
141
|
+
},
|
|
142
|
+
close: () => U.value = !1
|
|
143
|
+
});
|
|
144
|
+
let G = (e) => {
|
|
134
145
|
let t = e.target;
|
|
135
|
-
t instanceof Node && ((document.getElementById(F)?.closest(".bb-common-popover"))?.contains(t) ||
|
|
146
|
+
t instanceof Node && ((document.getElementById(F)?.closest(".bb-common-popover"))?.contains(t) || V.value?.contains(t) || (U.value = !1));
|
|
136
147
|
};
|
|
137
|
-
|
|
138
|
-
e ? (
|
|
148
|
+
C(U, async (e) => {
|
|
149
|
+
e ? (W = document.activeElement instanceof HTMLElement ? document.activeElement : null, Q.value || document.addEventListener("click", G, {
|
|
139
150
|
passive: !0,
|
|
140
151
|
capture: !0
|
|
141
|
-
}), await
|
|
152
|
+
}), await me(), ue(document.getElementById(F), "[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", G, { capture: !0 }), W?.focus(), W = null);
|
|
142
153
|
});
|
|
143
|
-
let K = null, q =
|
|
144
|
-
|
|
154
|
+
let K = null, q = b();
|
|
155
|
+
C(V, (e) => {
|
|
145
156
|
if (K?.(), K = null, !e) return;
|
|
146
157
|
let t = !e.id;
|
|
147
|
-
t && (e.id = `${P}_activator`), q.value = e.id, e.addEventListener("click",
|
|
148
|
-
e.removeEventListener("click",
|
|
158
|
+
t && (e.id = `${P}_activator`), q.value = e.id, e.addEventListener("click", ze), K = () => {
|
|
159
|
+
e.removeEventListener("click", ze), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), t && e.removeAttribute("id"), q.value = void 0;
|
|
149
160
|
};
|
|
150
161
|
}, { immediate: !0 });
|
|
151
|
-
let
|
|
152
|
-
|
|
153
|
-
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${
|
|
154
|
-
}, { immediate: !0 }),
|
|
162
|
+
let Be = f(() => E.label ?? j("timePickerInput.openPicker").value), J = `${P}_label`, Ve = f(() => q.value ? `${J} ${q.value}` : J);
|
|
163
|
+
C([V, U], ([e, t]) => {
|
|
164
|
+
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${J} ${e.id}`), t ? e.setAttribute("aria-controls", F) : e.removeAttribute("aria-controls"));
|
|
165
|
+
}, { immediate: !0 }), _e(() => {
|
|
155
166
|
K?.(), document.removeEventListener("click", G, { capture: !0 });
|
|
156
167
|
});
|
|
157
|
-
let
|
|
158
|
-
|
|
159
|
-
() =>
|
|
160
|
-
|
|
161
|
-
|
|
168
|
+
let Y = n("BbTimePicker", E, { adaptive: !0 }), X = () => Y.adaptive && M.value ? "canvas" : "popover", Z = b(X()), Q = f(() => Z.value === "canvas");
|
|
169
|
+
C([
|
|
170
|
+
() => Y.adaptive,
|
|
171
|
+
M,
|
|
172
|
+
U
|
|
162
173
|
], () => {
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
let
|
|
174
|
+
U.value || (Z.value = X());
|
|
175
|
+
}), te(() => U.value && !Q.value, () => U.value = !1);
|
|
176
|
+
let He = f(() => ({
|
|
166
177
|
side: "bottom",
|
|
167
178
|
size: "auto",
|
|
168
179
|
draggable: !0,
|
|
169
|
-
transitionDuration:
|
|
180
|
+
transitionDuration: E.transitionDuration,
|
|
170
181
|
hideClose: !0,
|
|
171
|
-
...
|
|
172
|
-
...
|
|
173
|
-
})),
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
let t =
|
|
177
|
-
return t == null ? null : Array.isArray(t) ? t[
|
|
178
|
-
},
|
|
179
|
-
let t =
|
|
182
|
+
...E.offCanvasProps?.title ? {} : { "aria-labelledby": Ve.value },
|
|
183
|
+
...de(E.offCanvasProps)
|
|
184
|
+
})), Ue = () => {
|
|
185
|
+
V.value?.focus(), D("hidden");
|
|
186
|
+
}, We = (e) => +(e === "end"), Ge = (e) => {
|
|
187
|
+
let t = O.value;
|
|
188
|
+
return t == null ? null : Array.isArray(t) ? t[We(e)] ?? null : e === "start" && typeof t == "string" ? t : null;
|
|
189
|
+
}, Ke = (e) => {
|
|
190
|
+
let t = Ge(e), n = t ? L.exec(t) : null;
|
|
180
191
|
return n ? {
|
|
181
192
|
hour: n[1].padStart(2, "0"),
|
|
182
193
|
minute: n[2].padStart(2, "0"),
|
|
183
194
|
second: (n[3] ?? "").padStart(n[3] ? 2 : 0, "0")
|
|
184
195
|
} : null;
|
|
185
|
-
}, $ = f(() =>
|
|
186
|
-
let t =
|
|
187
|
-
return t === null ? e :
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
let t =
|
|
196
|
+
}, $ = f(() => Ke(z.value)), qe = f(() => $.value?.hour ?? ""), Je = f(() => $.value?.minute ?? ""), Ye = f(() => $.value?.second ?? ""), Xe = (e) => E.seconds ? `${e.hour}:${e.minute}:${e.second || "00"}` : `${e.hour}:${e.minute}`, Ze = (e) => {
|
|
197
|
+
let t = R(e);
|
|
198
|
+
return t === null ? e : E.min && t < R(E.min) ? E.min + (E.seconds ? ":00" : "") : E.max && t > R(E.max) ? E.max + (E.seconds ? ":00" : "") : e;
|
|
199
|
+
}, Qe = (e) => {
|
|
200
|
+
D("time-pick", e);
|
|
201
|
+
let t = z.value, n = $.value ? { ...$.value } : {
|
|
191
202
|
hour: "",
|
|
192
203
|
minute: "",
|
|
193
204
|
second: ""
|
|
@@ -196,64 +207,64 @@ var xe = ["aria-label"], Se = [
|
|
|
196
207
|
let t = n.hour ? parseInt(n.hour, 10) : 0, r = e.value === "PM";
|
|
197
208
|
r && t < 12 && (t += 12), !r && t >= 12 && (t -= 12), n.hour = String(t).padStart(2, "0");
|
|
198
209
|
} else n[e.unit] = e.value;
|
|
199
|
-
n.hour ||= "00", n.minute ||= "00",
|
|
200
|
-
let r =
|
|
201
|
-
if (i !== r &&
|
|
210
|
+
n.hour ||= "00", n.minute ||= "00", E.seconds && !n.second && (n.second = "00");
|
|
211
|
+
let r = Xe(n), i = Ze(r);
|
|
212
|
+
if (i !== r && D("error", {
|
|
202
213
|
code: "disabled_time",
|
|
203
214
|
original: r,
|
|
204
215
|
normalized: i
|
|
205
|
-
}), !
|
|
206
|
-
|
|
216
|
+
}), !E.range) {
|
|
217
|
+
k(i);
|
|
207
218
|
return;
|
|
208
219
|
}
|
|
209
|
-
let a =
|
|
210
|
-
o && c.push(o), s && c.push(s),
|
|
220
|
+
let a = Ge(t === "start" ? "end" : "start"), o = t === "start" ? i : a, s = t === "start" ? a : i, c = [];
|
|
221
|
+
o && c.push(o), s && c.push(s), k(c);
|
|
211
222
|
};
|
|
212
|
-
return
|
|
213
|
-
|
|
214
|
-
}), (t, n) => (
|
|
215
|
-
Fe.value ? m("", !0) :
|
|
223
|
+
return ve(() => {
|
|
224
|
+
U.value = !1;
|
|
225
|
+
}), (t, n) => (y(), h(d, null, [
|
|
226
|
+
Fe.value ? m("", !0) : be(t.$slots, "activator", ge(pe({
|
|
216
227
|
props: {
|
|
217
228
|
ref: Ie,
|
|
218
229
|
"aria-haspopup": "dialog",
|
|
219
|
-
"aria-expanded":
|
|
220
|
-
"aria-labelledby":
|
|
230
|
+
"aria-expanded": U.value ? "true" : "false",
|
|
231
|
+
"aria-labelledby": Ve.value
|
|
221
232
|
},
|
|
222
233
|
anchorProps: { ref: Le },
|
|
223
|
-
open:
|
|
224
|
-
value:
|
|
225
|
-
text:
|
|
234
|
+
open: U.value,
|
|
235
|
+
value: S(O),
|
|
236
|
+
text: ke.value,
|
|
226
237
|
disabled: !!l.disabled
|
|
227
238
|
})), void 0, void 0, 0),
|
|
228
|
-
|
|
229
|
-
id:
|
|
239
|
+
g("span", {
|
|
240
|
+
id: J,
|
|
230
241
|
hidden: ""
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
default:
|
|
242
|
+
}, x(Be.value), 1),
|
|
243
|
+
_(S(je), null, {
|
|
244
|
+
default: w(() => [l.range ? (y(), h("div", {
|
|
234
245
|
key: 0,
|
|
235
246
|
"aria-label": Pe.value,
|
|
236
247
|
class: "bb-time-picker__segments",
|
|
237
248
|
role: "group"
|
|
238
|
-
}, [(
|
|
249
|
+
}, [(y(!0), h(d, null, ye(Ne.value, (e) => (y(), h("button", {
|
|
239
250
|
key: e.value,
|
|
240
|
-
"aria-pressed":
|
|
241
|
-
class:
|
|
251
|
+
"aria-pressed": z.value === e.value,
|
|
252
|
+
class: he(["bb-time-picker__segment", { "bb-time-picker__segment--active": z.value === e.value }]),
|
|
242
253
|
disabled: l.disabled || l.readonly,
|
|
243
254
|
type: "button",
|
|
244
255
|
onClick: (t) => Me(e.value)
|
|
245
|
-
},
|
|
256
|
+
}, x(e.label), 11, we))), 128))], 8, Ce)) : m("", !0), _(re, {
|
|
246
257
|
ampm: l.ampm,
|
|
247
258
|
disabled: l.disabled || l.readonly,
|
|
248
|
-
hour:
|
|
259
|
+
hour: qe.value,
|
|
249
260
|
max: l.max,
|
|
250
261
|
min: l.min,
|
|
251
|
-
minute:
|
|
252
|
-
passthrough:
|
|
253
|
-
second:
|
|
262
|
+
minute: Je.value,
|
|
263
|
+
passthrough: S(A),
|
|
264
|
+
second: Ye.value,
|
|
254
265
|
seconds: l.seconds,
|
|
255
266
|
step: l.step,
|
|
256
|
-
onSelect:
|
|
267
|
+
onSelect: Qe
|
|
257
268
|
}, null, 8, [
|
|
258
269
|
"ampm",
|
|
259
270
|
"disabled",
|
|
@@ -268,46 +279,46 @@ var xe = ["aria-label"], Se = [
|
|
|
268
279
|
])]),
|
|
269
280
|
_: 1
|
|
270
281
|
}),
|
|
271
|
-
Q.value ? (
|
|
282
|
+
Q.value ? (y(), p(oe, v({
|
|
272
283
|
key: 1,
|
|
273
|
-
modelValue:
|
|
274
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
284
|
+
modelValue: U.value,
|
|
285
|
+
"onUpdate:modelValue": n[0] ||= (e) => U.value = e,
|
|
275
286
|
class: "bb-time-picker__sheet",
|
|
276
|
-
pt:
|
|
287
|
+
pt: S(A).forward({
|
|
277
288
|
panel: "root",
|
|
278
289
|
sheet: "root"
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
onHidden:
|
|
282
|
-
onHide: n[1] ||= (e) =>
|
|
283
|
-
onShow: n[2] ||= (e) =>
|
|
284
|
-
onShown: n[3] ||= (e) =>
|
|
290
|
+
}, S(se).states, () => l.offCanvasProps?.pt)
|
|
291
|
+
}, v(He.value, S(e)(S(A).forwardAttrs)), {
|
|
292
|
+
onHidden: Ue,
|
|
293
|
+
onHide: n[1] ||= (e) => S(D)("hide"),
|
|
294
|
+
onShow: n[2] ||= (e) => S(D)("show"),
|
|
295
|
+
onShown: n[3] ||= (e) => S(D)("shown")
|
|
285
296
|
}), {
|
|
286
|
-
default:
|
|
297
|
+
default: w(() => [g("div", ge(pe(I.value)), [_(S(N))], 16)]),
|
|
287
298
|
_: 1
|
|
288
|
-
}, 16, ["modelValue", "pt"])) : (
|
|
299
|
+
}, 16, ["modelValue", "pt"])) : (y(), p(ce, v({
|
|
289
300
|
key: 2,
|
|
290
|
-
modelValue:
|
|
291
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
301
|
+
modelValue: U.value,
|
|
302
|
+
"onUpdate:modelValue": n[4] ||= (e) => U.value = e,
|
|
292
303
|
anchor: Re.value,
|
|
293
|
-
"aria-label":
|
|
304
|
+
"aria-label": Be.value,
|
|
294
305
|
boundary: l.boundary,
|
|
295
|
-
"bubble-attrs":
|
|
306
|
+
"bubble-attrs": I.value,
|
|
296
307
|
class: "bb-time-picker",
|
|
297
308
|
dialog: "",
|
|
298
309
|
"disable-flip": l.disableFlip,
|
|
299
310
|
eager: l.eager,
|
|
300
311
|
"hide-arrow": "",
|
|
301
|
-
offset: l.offset ??
|
|
312
|
+
offset: l.offset ?? S(Ee)() ?? 4,
|
|
302
313
|
padding: l.padding,
|
|
303
314
|
placement: l.placement,
|
|
304
315
|
"transition-duration": l.transitionDuration,
|
|
305
|
-
onHidden: n[5] ||= (e) =>
|
|
306
|
-
onHide: n[6] ||= (e) =>
|
|
307
|
-
onShow: n[7] ||= (e) =>
|
|
308
|
-
onShown: n[8] ||= (e) =>
|
|
309
|
-
},
|
|
310
|
-
default:
|
|
316
|
+
onHidden: n[5] ||= (e) => S(D)("hidden"),
|
|
317
|
+
onHide: n[6] ||= (e) => S(D)("hide"),
|
|
318
|
+
onShow: n[7] ||= (e) => S(D)("show"),
|
|
319
|
+
onShown: n[8] ||= (e) => S(D)("shown")
|
|
320
|
+
}, S(A).rootAttrs), {
|
|
321
|
+
default: w(() => [_(S(N))]),
|
|
311
322
|
_: 1
|
|
312
323
|
}, 16, [
|
|
313
324
|
"modelValue",
|
|
@@ -325,4 +336,4 @@ var xe = ["aria-label"], Se = [
|
|
|
325
336
|
], 64));
|
|
326
337
|
}
|
|
327
338
|
});
|
|
328
|
-
export {
|
|
339
|
+
export { T as default };
|
|
@@ -71,6 +71,11 @@ export type BbTimeModel<R extends boolean = boolean> = BbTimeValue<R> | null;
|
|
|
71
71
|
*/
|
|
72
72
|
type BbTimePickerPtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_TIME_PICKER_PT> & BbTimePickerPtKeys;
|
|
73
73
|
export type BbTimePickerBaseProps = BbTimePickerPtProps & {
|
|
74
|
+
/**
|
|
75
|
+
* Whether the panel is open (`v-model:open`; `v-model` stays the value).
|
|
76
|
+
* Bound, the app opens and closes it; unbound, the initial state.
|
|
77
|
+
*/
|
|
78
|
+
open?: boolean;
|
|
74
79
|
/**
|
|
75
80
|
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
76
81
|
* without the prefix. See the `pt:<part>` row.
|
|
@@ -190,6 +195,8 @@ export type BbTimePickerEvents<R extends boolean = boolean> = {
|
|
|
190
195
|
(e: 'shown'): void;
|
|
191
196
|
/** Emitted as soon as the time panel starts to close. */
|
|
192
197
|
(e: 'hide'): void;
|
|
198
|
+
/** The panel opened or closed (`v-model:open`). */
|
|
199
|
+
(e: 'update:open', value: boolean): void;
|
|
193
200
|
/** Emitted once the time panel has finished closing. */
|
|
194
201
|
(e: 'hidden'): void;
|
|
195
202
|
/** Emitted when the selected time changes (single/range/null). */
|
|
@@ -21,6 +21,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
|
|
|
21
21
|
};
|
|
22
22
|
}> | undefined;
|
|
23
23
|
} & import('../../types/passthrough.js').PtVariantAttrs<import('../../types/passthrough.js').TextControlPtPart | "activator", keyof import('../../index.js').TimePickerInputVariantRegistry> & import('./ptKeys.generated.js').BbTimePickerInputPtKeys & {
|
|
24
|
+
open?: boolean;
|
|
24
25
|
pt?: { [K in import('./types.js').BbTimePickerInputPtKey]?: import('../../types/passthrough.js').PtValue; } & { [K in `${import('../../types/passthrough.js').TextControlPtPart | "activator"}:${import('../../types/InputVariant.js').InputVariantBuiltIn | keyof import('../../index.js').TimePickerInputVariantRegistry}`]?: import('../../types/passthrough.js').PtValue; };
|
|
25
26
|
adaptive?: boolean;
|
|
26
27
|
ampm?: boolean;
|
|
@@ -62,16 +63,17 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
|
|
|
62
63
|
seconds?: boolean;
|
|
63
64
|
step?: number;
|
|
64
65
|
transitionDuration?: number;
|
|
65
|
-
} & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbTimePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "
|
|
66
|
+
} & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbTimePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "open" | "loading" | "description" | "hint" | "step" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "transitionDuration" | "clearable" | "offCanvasProps" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "seconds" | "ampm" | "min" | "max" | "disableWriting" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | keyof import('./ptKeys.generated.js').BbTimePickerInputPtKeys | "onFocus" | keyof BbTimePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
|
|
66
67
|
onActive?: (() => any) | undefined;
|
|
68
|
+
onError?: ((error: TimePickerInputError) => any) | undefined;
|
|
67
69
|
"onUpdate:modelValue"?: ((value: import('../../index.js').BbTimeValue<R>) => any) | undefined;
|
|
68
70
|
onInactive?: (() => any) | undefined;
|
|
69
71
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
70
72
|
onHide?: (() => any) | undefined;
|
|
71
|
-
onError?: ((error: TimePickerInputError) => any) | undefined;
|
|
72
73
|
onShow?: (() => any) | undefined;
|
|
73
74
|
onShown?: (() => any) | undefined;
|
|
74
75
|
onHidden?: (() => any) | undefined;
|
|
76
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
75
77
|
}> & (typeof globalThis extends {
|
|
76
78
|
__VLS_PROPS_FALLBACK: infer P;
|
|
77
79
|
} ? P : {});
|