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
|
@@ -6,71 +6,72 @@ import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttr
|
|
|
6
6
|
import { useConfig as a } from "../../composables/useConfig.js";
|
|
7
7
|
import { slotKey as o } from "../../utilities/functions/slotKey.js";
|
|
8
8
|
import { toInnerValue as s, toOuterValue as ee } from "../../utilities/functions/convertDateValue.js";
|
|
9
|
-
import { isCoarseType as
|
|
10
|
-
import { useId as
|
|
11
|
-
import { useOwnModel as
|
|
12
|
-
import { useLocale as
|
|
13
|
-
import { usePassthrough as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { checkCalendarProps as
|
|
21
|
-
import { CALENDAR_GRID as
|
|
22
|
-
import { useDayGrid as
|
|
23
|
-
import { longDateOf as
|
|
24
|
-
import { isoMondayOf as
|
|
25
|
-
import { BB_CALENDAR_PT as
|
|
26
|
-
import {
|
|
9
|
+
import { isCoarseType as c, isLabelType as te } from "../../types/DatePickerType.js";
|
|
10
|
+
import { useId as ne } from "../../composables/useId.js";
|
|
11
|
+
import { useOwnModel as re } from "../../composables/useOwnModel.js";
|
|
12
|
+
import { useLocale as ie } from "../../composables/useLocale.js";
|
|
13
|
+
import { usePassthrough as ae } from "../../composables/usePassthrough.js";
|
|
14
|
+
import l from "../BbBaseButton/BbBaseButton.vue.js";
|
|
15
|
+
import oe from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
16
|
+
import se from "../Transitions/ScaleFade.vue.js";
|
|
17
|
+
import ce from "../Transitions/Slide.vue.js";
|
|
18
|
+
import le from "./CalendarMonthPanel.vue.js";
|
|
19
|
+
import ue from "./CalendarYearPanel.vue.js";
|
|
20
|
+
import { checkCalendarProps as de, useCalendarHost as fe } from "./calendarHost.js";
|
|
21
|
+
import { CALENDAR_GRID as u, useCalendarGrid as pe } from "./useCalendarGrid.js";
|
|
22
|
+
import { useDayGrid as me } from "./useDayGrid.js";
|
|
23
|
+
import { longDateOf as he, useDayjsLocale as ge, weekSpanOf as _e, weekStartOf as ve } from "./useDayjsLocale.js";
|
|
24
|
+
import { isoMondayOf as ye, isoWeekOf as be, weekBoundAsDay as xe } from "../../utilities/functions/isoWeek.js";
|
|
25
|
+
import { BB_CALENDAR_PT as Se } from "./types.js";
|
|
26
|
+
import { useInternalIcon as d } from "../../composables/useInternalIcon.js";
|
|
27
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, inject as Ce, mergeProps as x, normalizeClass as S, openBlock as C, provide as we, proxyRefs as Te, ref as Ee, renderList as w, renderSlot as T, resolveDynamicComponent as De, toDisplayString as E, unref as D, useAttrs as Oe, watch as O, withCtx as k, withKeys as A, withModifiers as j } from "vue";
|
|
27
28
|
// src/components/BbCalendar/BbCalendar.vue?vue&type=script&setup=true&lang.ts
|
|
28
|
-
var
|
|
29
|
+
var ke = ["role"], Ae = {
|
|
29
30
|
"aria-live": "polite",
|
|
30
31
|
class: "bb-sr-only"
|
|
31
|
-
},
|
|
32
|
+
}, je = {
|
|
32
33
|
"aria-live": "polite",
|
|
33
34
|
class: "bb-sr-only"
|
|
34
|
-
},
|
|
35
|
+
}, Me = { class: "bb-calendar__body" }, Ne = { class: "bb-calendar__panes" }, Pe = ["inert"], Fe = { class: "bb-sr-only" }, Ie = {
|
|
35
36
|
key: 1,
|
|
36
37
|
"aria-hidden": "true",
|
|
37
38
|
class: "bb-calendar__arrow-spacer"
|
|
38
|
-
},
|
|
39
|
+
}, Le = {
|
|
39
40
|
key: 2,
|
|
40
41
|
class: "bb-calendar__nav-center"
|
|
41
|
-
},
|
|
42
|
+
}, Re = {
|
|
42
43
|
key: 3,
|
|
43
44
|
class: "bb-calendar__caption"
|
|
44
|
-
},
|
|
45
|
+
}, ze = { class: "bb-sr-only" }, Be = {
|
|
45
46
|
key: 5,
|
|
46
47
|
"aria-hidden": "true",
|
|
47
48
|
class: "bb-calendar__arrow-spacer"
|
|
48
|
-
},
|
|
49
|
+
}, Ve = { class: "bb-calendar__content" }, He = [
|
|
49
50
|
"id",
|
|
50
51
|
"aria-label",
|
|
51
52
|
"inert",
|
|
52
53
|
"onKeydown",
|
|
53
54
|
"onMouseleave",
|
|
54
55
|
"onMouseover"
|
|
55
|
-
],
|
|
56
|
+
], Ue = {
|
|
56
57
|
class: "bb-calendar__header-container",
|
|
57
58
|
role: "row"
|
|
58
|
-
},
|
|
59
|
+
}, We = {
|
|
59
60
|
key: 0,
|
|
60
61
|
class: "bb-calendar__cell-column-header bb-calendar__week-number-header",
|
|
61
62
|
role: "columnheader"
|
|
62
|
-
},
|
|
63
|
+
}, Ge = { class: "bb-sr-only" }, Ke = ["aria-label"], qe = ["aria-label"], Je = ["aria-current", "aria-selected"], Ye = [
|
|
63
64
|
"aria-label",
|
|
64
65
|
"data-date",
|
|
65
66
|
"disabled",
|
|
66
67
|
"tabindex",
|
|
67
68
|
"onClick"
|
|
68
|
-
],
|
|
69
|
+
], Xe = { class: "bb-calendar__day-append" }, Ze = {
|
|
69
70
|
key: 0,
|
|
70
71
|
"aria-live": "polite",
|
|
71
72
|
class: "bb-sr-only",
|
|
72
73
|
role: "status"
|
|
73
|
-
},
|
|
74
|
+
}, Qe = ["id"], M = /*@__PURE__*/ b({
|
|
74
75
|
inheritAttrs: !1,
|
|
75
76
|
__name: "BbCalendar",
|
|
76
77
|
props: {
|
|
@@ -163,34 +164,34 @@ var Ae = ["role"], je = {
|
|
|
163
164
|
"grid-pick",
|
|
164
165
|
"time-pick"
|
|
165
166
|
],
|
|
166
|
-
setup(
|
|
167
|
-
let tt =
|
|
167
|
+
setup(M, { emit: $e }) {
|
|
168
|
+
let et = M, tt = $e, nt = d("next", n), rt = d("prev", t), N = et, P = tt, { model: F, set: I } = re(N, "modelValue", (e, t) => P(e, t), () => N.range || N.multiple ? [] : null);
|
|
168
169
|
process.env.NODE_ENV !== "production" && i("BbCalendar", r("BbCalendar"));
|
|
169
|
-
let
|
|
170
|
+
let L = Oe(), R = (e, t = "") => `${o(e)}${t}`, z = ae({
|
|
170
171
|
component: "BbCalendar",
|
|
171
|
-
props:
|
|
172
|
-
parts:
|
|
173
|
-
states:
|
|
174
|
-
active: { disabled: () => !!
|
|
175
|
-
attrs:
|
|
176
|
-
}), it =
|
|
172
|
+
props: N,
|
|
173
|
+
parts: Se.parts,
|
|
174
|
+
states: Se.states,
|
|
175
|
+
active: { disabled: () => !!N.disabled },
|
|
176
|
+
attrs: L
|
|
177
|
+
}), it = p(() => L["aria-label"] != null || L["aria-labelledby"] != null), B = (e) => ({
|
|
177
178
|
outside: e.outside,
|
|
178
179
|
today: e.today,
|
|
179
180
|
inRange: e.middle,
|
|
180
181
|
selected: e.selected,
|
|
181
182
|
rangeStart: e.first,
|
|
182
183
|
rangeEnd: e.last,
|
|
183
|
-
disabled:
|
|
184
|
+
disabled: N.disabled || e.disabled || void 0,
|
|
184
185
|
highlighted: e.current
|
|
185
|
-
}),
|
|
186
|
-
|
|
187
|
-
let
|
|
188
|
-
let t =
|
|
189
|
-
if (
|
|
190
|
-
let n =
|
|
191
|
-
t += `, ${
|
|
186
|
+
}), V = a();
|
|
187
|
+
ge();
|
|
188
|
+
let H = p(() => N.type === "datetime"), at = p(() => N.floating || te(N.type)), U = p(() => N.type === "week"), ot = (e) => {
|
|
189
|
+
let t = he(e.original, V.locale);
|
|
190
|
+
if (U.value) {
|
|
191
|
+
let n = ye(e.original);
|
|
192
|
+
t += `, ${G("datePicker.weekSpan", String(be(n).week), _e(n, V.locale)).value}`;
|
|
192
193
|
}
|
|
193
|
-
return e.selected && (t += `, ${
|
|
194
|
+
return e.selected && (t += `, ${G("datePicker.selectedLabel").value}`), t;
|
|
194
195
|
}, st = (e) => {
|
|
195
196
|
let t = e[0];
|
|
196
197
|
return {
|
|
@@ -202,34 +203,34 @@ var Ae = ["role"], je = {
|
|
|
202
203
|
}, ct = (e) => {
|
|
203
204
|
let t = e[0];
|
|
204
205
|
return {
|
|
205
|
-
"bb-calendar__week--selected": t.selected && !
|
|
206
|
+
"bb-calendar__week--selected": t.selected && !N.range,
|
|
206
207
|
"bb-calendar__week--range-start": t.first,
|
|
207
208
|
"bb-calendar__week--range-end": t.last,
|
|
208
209
|
"bb-calendar__week--in-range": t.middle,
|
|
209
210
|
"bb-calendar__week--preview": t.preview,
|
|
210
211
|
"bb-calendar__week--preview-end": t.previewEnd,
|
|
211
|
-
"bb-calendar__week--disabled":
|
|
212
|
+
"bb-calendar__week--disabled": N.disabled || e.every((e) => e.disabled)
|
|
212
213
|
};
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
let { t:
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
let t =
|
|
219
|
-
return t == null ? null : Array.isArray(t) ? t[
|
|
220
|
-
},
|
|
221
|
-
let t =
|
|
214
|
+
}, W = fe();
|
|
215
|
+
W || de("BbCalendar", N);
|
|
216
|
+
let { t: G } = ie(), K = `bcal-${ne().id.value}`, q = p(() => N.activeSegment ?? lt.value), lt = Ee("start"), ut = (e) => {
|
|
217
|
+
lt.value = e, P("update:activeSegment", e);
|
|
218
|
+
}, dt = p(() => c(N.type) ? N.min : U.value ? xe(N.min, "min") : N.min?.slice(0, 10)), ft = p(() => c(N.type) ? N.max : U.value ? xe(N.max, "max") : N.max?.slice(0, 10)), pt = p(() => (N.range || N.multiple) && !Array.isArray(F.value) ? [] : F.value), mt = (e) => +(e === "end"), J = (e) => {
|
|
219
|
+
let t = F.value;
|
|
220
|
+
return t == null ? null : Array.isArray(t) ? t[mt(e)] ?? null : e === "start" ? t : null;
|
|
221
|
+
}, ht = (e) => {
|
|
222
|
+
let t = N.time;
|
|
222
223
|
if (t != null) {
|
|
223
|
-
if (Array.isArray(t)) return t[
|
|
224
|
+
if (Array.isArray(t)) return t[mt(e)] ?? null;
|
|
224
225
|
if (e === "start" && typeof t == "string") return t;
|
|
225
226
|
}
|
|
226
|
-
if (
|
|
227
|
-
let n =
|
|
227
|
+
if (N.floating) return null;
|
|
228
|
+
let n = J(e);
|
|
228
229
|
if (!n) return null;
|
|
229
230
|
let r = s(n);
|
|
230
|
-
return r.isValid() ? r.format(
|
|
231
|
-
},
|
|
232
|
-
let t =
|
|
231
|
+
return r.isValid() ? r.format(N.seconds ? "HH:mm:ss" : "HH:mm") : null;
|
|
232
|
+
}, Y = (e) => {
|
|
233
|
+
let t = ht(e);
|
|
233
234
|
if (!t) return null;
|
|
234
235
|
let [n = "", r = "", i = ""] = t.split(":");
|
|
235
236
|
return {
|
|
@@ -237,59 +238,59 @@ var Ae = ["role"], je = {
|
|
|
237
238
|
minute: r,
|
|
238
239
|
second: i
|
|
239
240
|
};
|
|
240
|
-
},
|
|
241
|
-
let n = s(e, { floating:
|
|
241
|
+
}, gt = (e, t) => {
|
|
242
|
+
let n = s(e, { floating: N.floating });
|
|
242
243
|
if (!n.isValid()) return null;
|
|
243
|
-
let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a =
|
|
244
|
+
let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a = N.seconds && t?.second ? parseInt(t.second, 10) : 0, o = n.hour(r).minute(i).second(a).millisecond(0);
|
|
244
245
|
return {
|
|
245
246
|
value: ee(o, {
|
|
246
|
-
floating:
|
|
247
|
-
utc:
|
|
247
|
+
floating: N.floating,
|
|
248
|
+
utc: N.utc
|
|
248
249
|
}),
|
|
249
|
-
time:
|
|
250
|
+
time: N.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
|
|
250
251
|
};
|
|
251
|
-
},
|
|
252
|
+
}, _t = () => ({
|
|
252
253
|
start: {
|
|
253
|
-
date:
|
|
254
|
-
time:
|
|
254
|
+
date: J("start"),
|
|
255
|
+
time: Y("start")
|
|
255
256
|
},
|
|
256
257
|
end: {
|
|
257
|
-
date:
|
|
258
|
-
time:
|
|
258
|
+
date: J("end"),
|
|
259
|
+
time: Y("end")
|
|
259
260
|
}
|
|
260
|
-
}),
|
|
261
|
-
if (
|
|
261
|
+
}), vt = (e) => {
|
|
262
|
+
if (N.range) {
|
|
262
263
|
let t = [], n = [];
|
|
263
264
|
for (let r of ["start", "end"]) {
|
|
264
265
|
let i = e[r];
|
|
265
266
|
if (!i.date) continue;
|
|
266
|
-
let a =
|
|
267
|
+
let a = gt(i.date, i.time);
|
|
267
268
|
a && (t.push(a.value), n.push(a.time));
|
|
268
269
|
}
|
|
269
|
-
|
|
270
|
+
I(t), P("update:time", n);
|
|
270
271
|
return;
|
|
271
272
|
}
|
|
272
273
|
let t = e.start;
|
|
273
274
|
if (!t.date) {
|
|
274
|
-
|
|
275
|
+
I(null), P("update:time", null);
|
|
275
276
|
return;
|
|
276
277
|
}
|
|
277
|
-
let n =
|
|
278
|
-
|
|
279
|
-
},
|
|
280
|
-
if (
|
|
281
|
-
|
|
278
|
+
let n = gt(t.date, t.time);
|
|
279
|
+
I(n ? n.value : null), P("update:time", n ? n.time : null);
|
|
280
|
+
}, yt = (e) => {
|
|
281
|
+
if (N.range && e === null && (e = []), P("grid-pick", e), !H.value) {
|
|
282
|
+
I(e);
|
|
282
283
|
return;
|
|
283
284
|
}
|
|
284
285
|
if (e === null) {
|
|
285
|
-
|
|
286
|
+
I(null), P("update:time", null);
|
|
286
287
|
return;
|
|
287
288
|
}
|
|
288
|
-
let t =
|
|
289
|
-
Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e,
|
|
290
|
-
},
|
|
291
|
-
if (!
|
|
292
|
-
let e = q
|
|
289
|
+
let t = _t();
|
|
290
|
+
Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e, vt(t);
|
|
291
|
+
}, bt = p(() => !!J(q.value)), X = p(() => Y(q.value)), xt = p(() => X.value?.hour ?? ""), St = p(() => X.value?.minute ?? ""), Ct = p(() => X.value?.second ?? ""), wt = p(() => ""), Tt = (e) => parseInt(e.slice(0, 2), 10) * 60 + parseInt(e.slice(3, 5), 10), Z = p(() => {
|
|
292
|
+
if (!H.value) return {};
|
|
293
|
+
let e = J(q.value);
|
|
293
294
|
if (!e) return {};
|
|
294
295
|
let t = s(e).format("YYYY-MM-DD"), n = (e) => {
|
|
295
296
|
if (!e || e.length <= 10) return;
|
|
@@ -297,12 +298,12 @@ var Ae = ["role"], je = {
|
|
|
297
298
|
return n.isValid() && n.format("YYYY-MM-DD") === t ? n.format("HH:mm") : void 0;
|
|
298
299
|
};
|
|
299
300
|
return {
|
|
300
|
-
min: n(
|
|
301
|
-
max: n(
|
|
301
|
+
min: n(N.min),
|
|
302
|
+
max: n(N.max)
|
|
302
303
|
};
|
|
303
|
-
}),
|
|
304
|
-
if (
|
|
305
|
-
let t =
|
|
304
|
+
}), Et = (e) => {
|
|
305
|
+
if (P("time-pick", e), !H.value) return;
|
|
306
|
+
let t = q.value, n = _t();
|
|
306
307
|
if (!n[t].date) return;
|
|
307
308
|
let r = n[t].time ? { ...n[t].time } : {
|
|
308
309
|
hour: "",
|
|
@@ -313,39 +314,39 @@ var Ae = ["role"], je = {
|
|
|
313
314
|
let t = r.hour ? parseInt(r.hour, 10) : 0, n = e.value === "PM";
|
|
314
315
|
n && t < 12 && (t += 12), !n && t >= 12 && (t -= 12), r.hour = String(t).padStart(2, "0");
|
|
315
316
|
} else r[e.unit] = e.value;
|
|
316
|
-
r.hour ||= "00", r.minute ||= "00",
|
|
317
|
-
let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } = Z.value, s = a && i <
|
|
318
|
-
s && ([r.hour, r.minute] = s.split(":"),
|
|
319
|
-
},
|
|
320
|
-
if (!
|
|
317
|
+
r.hour ||= "00", r.minute ||= "00", N.seconds && !r.second && (r.second = "00");
|
|
318
|
+
let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } = Z.value, s = a && i < Tt(a) ? a : o && i > Tt(o) ? o : null;
|
|
319
|
+
s && ([r.hour, r.minute] = s.split(":"), N.seconds && (r.second = "00")), n[t].time = r, vt(n);
|
|
320
|
+
}, Dt = p(() => {
|
|
321
|
+
if (!H.value) return;
|
|
321
322
|
let e = [44, 44];
|
|
322
|
-
return
|
|
323
|
+
return N.seconds && e.push(44), N.ampm && e.push(48), { "--rail-w": `${33 + e.reduce((e, t) => e + t, 0) + (e.length - 1) * 6}px` };
|
|
323
324
|
});
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
O(() => F.value, (e) => {
|
|
326
|
+
N.range && H.value && N.activeSegment == null && Array.isArray(e) && e.length === 2 && ut("end");
|
|
326
327
|
});
|
|
327
|
-
let
|
|
328
|
-
props:
|
|
329
|
-
passthrough:
|
|
330
|
-
firstDayOfWeek: () =>
|
|
328
|
+
let Ot = {
|
|
329
|
+
props: N,
|
|
330
|
+
passthrough: z,
|
|
331
|
+
firstDayOfWeek: () => U.value ? 1 : N.firstDayOfWeek ?? ve(V.locale),
|
|
331
332
|
floating: () => at.value,
|
|
332
|
-
min: () =>
|
|
333
|
-
max: () =>
|
|
334
|
-
modelValue: () =>
|
|
335
|
-
pick: (e) =>
|
|
336
|
-
}, Q =
|
|
337
|
-
we(
|
|
333
|
+
min: () => dt.value,
|
|
334
|
+
max: () => ft.value,
|
|
335
|
+
modelValue: () => pt.value,
|
|
336
|
+
pick: (e) => yt(e)
|
|
337
|
+
}, Q = pe(Ot);
|
|
338
|
+
we(u, Q);
|
|
338
339
|
let $ = Te(Q);
|
|
339
|
-
|
|
340
|
+
W && O(W.open, (e) => {
|
|
340
341
|
e || Q.resetStatus();
|
|
341
342
|
});
|
|
342
|
-
let
|
|
343
|
+
let kt = b({
|
|
343
344
|
name: "BbCalendarDayGridScope",
|
|
344
345
|
slots: Object,
|
|
345
346
|
setup() {
|
|
346
|
-
let e = Ce(
|
|
347
|
-
return { days: Te(
|
|
348
|
-
...
|
|
347
|
+
let e = Ce(u);
|
|
348
|
+
return { days: Te(me({
|
|
349
|
+
...Ot,
|
|
349
350
|
cursor: e.cursor,
|
|
350
351
|
panes: e.panes,
|
|
351
352
|
system: e.system,
|
|
@@ -357,68 +358,68 @@ var Ae = ["role"], je = {
|
|
|
357
358
|
render() {
|
|
358
359
|
return this.$slots.default?.({ days: this.days });
|
|
359
360
|
}
|
|
360
|
-
}),
|
|
361
|
+
}), At = b({
|
|
361
362
|
name: "BbCalendarNoDayGrid",
|
|
362
363
|
slots: Object,
|
|
363
364
|
render() {
|
|
364
365
|
return this.$slots.default?.({ days: null });
|
|
365
366
|
}
|
|
366
367
|
});
|
|
367
|
-
return (
|
|
368
|
+
return (t, n) => (C(), g("div", x({
|
|
368
369
|
class: ["bb-calendar", {
|
|
369
|
-
"bb-calendar--datetime":
|
|
370
|
-
"bb-calendar--seconds":
|
|
371
|
-
"bb-calendar--ampm":
|
|
372
|
-
"bb-calendar--disabled":
|
|
373
|
-
"bb-calendar--months":
|
|
374
|
-
"bb-calendar--week":
|
|
370
|
+
"bb-calendar--datetime": H.value,
|
|
371
|
+
"bb-calendar--seconds": H.value && M.seconds,
|
|
372
|
+
"bb-calendar--ampm": H.value && M.ampm,
|
|
373
|
+
"bb-calendar--disabled": M.disabled,
|
|
374
|
+
"bb-calendar--months": D($).monthCount > 1,
|
|
375
|
+
"bb-calendar--week": U.value
|
|
375
376
|
}],
|
|
376
377
|
role: it.value ? "group" : void 0,
|
|
377
|
-
style:
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
default:
|
|
383
|
-
key:
|
|
384
|
-
class:
|
|
385
|
-
inert:
|
|
386
|
-
}, [
|
|
378
|
+
style: Dt.value
|
|
379
|
+
}, D(z).rootAttrs), [_("div", { class: S(["bb-calendar__grid", D($).isCoarse ? `bb-calendar__grid--unit-${D($).homeMode}` : void 0]) }, [
|
|
380
|
+
_("span", Ae, E(D($).formattedYear), 1),
|
|
381
|
+
_("div", je, E(D($).cursorAnnouncement), 1),
|
|
382
|
+
_("div", Me, [(C(), m(De(D($).isCoarse ? D(At) : D(kt)), null, {
|
|
383
|
+
default: k(({ days: r }) => [_("div", Ne, [(C(!0), g(f, null, w(D($).panes, (i, a) => (C(), g("div", {
|
|
384
|
+
key: a,
|
|
385
|
+
class: S(["bb-calendar__pane", { "bb-calendar__pane--idle": a > 0 && D($).mode !== "day" }]),
|
|
386
|
+
inert: a > 0 && D($).mode !== "day" || void 0
|
|
387
|
+
}, [M.type === "year" ? h("", !0) : (C(), g("div", x({
|
|
387
388
|
key: 0,
|
|
388
389
|
class: "bb-calendar__header"
|
|
389
|
-
}, { ref_for: !0 },
|
|
390
|
-
|
|
390
|
+
}, { ref_for: !0 }, D(z).header), [
|
|
391
|
+
a === 0 ? (C(), m(l, x({
|
|
391
392
|
key: 0,
|
|
392
|
-
"aria-label":
|
|
393
|
+
"aria-label": D($).previousPageLabel,
|
|
393
394
|
class: "bb-calendar__arrow",
|
|
394
|
-
disabled:
|
|
395
|
-
onClick:
|
|
396
|
-
}, { ref_for: !0 },
|
|
397
|
-
default:
|
|
398
|
-
icon:
|
|
395
|
+
disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPagePrevious,
|
|
396
|
+
onClick: D($).goToPreviousPage
|
|
397
|
+
}, { ref_for: !0 }, D(z).part("arrow", { disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPagePrevious || void 0 })), {
|
|
398
|
+
default: k(() => [y(e, {
|
|
399
|
+
icon: D(rt),
|
|
399
400
|
size: "16"
|
|
400
|
-
}, null, 8, ["icon"]),
|
|
401
|
+
}, null, 8, ["icon"]), _("span", Fe, E(D($).previousPageLabel), 1)]),
|
|
401
402
|
_: 1
|
|
402
403
|
}, 16, [
|
|
403
404
|
"aria-label",
|
|
404
405
|
"disabled",
|
|
405
406
|
"onClick"
|
|
406
|
-
])) : (
|
|
407
|
-
|
|
407
|
+
])) : (C(), g("span", Ie)),
|
|
408
|
+
a === 0 ? (C(), g("div", Le, [M.type === "month" ? h("", !0) : (C(), m(l, x({
|
|
408
409
|
key: 0,
|
|
409
410
|
ref_for: !0,
|
|
410
|
-
ref:
|
|
411
|
-
"aria-expanded":
|
|
412
|
-
"aria-label":
|
|
413
|
-
class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active":
|
|
414
|
-
disabled:
|
|
415
|
-
onClick:
|
|
416
|
-
onKeydown:
|
|
417
|
-
}, { ref_for: !0 },
|
|
418
|
-
active:
|
|
419
|
-
disabled:
|
|
411
|
+
ref: D($).setMonthHeadingButton,
|
|
412
|
+
"aria-expanded": D($).mode === "month",
|
|
413
|
+
"aria-label": D($).monthHeadingLabel,
|
|
414
|
+
class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": D($).mode === "month" }],
|
|
415
|
+
disabled: M.disabled,
|
|
416
|
+
onClick: n[0] ||= (e) => D($).toggleMode("month"),
|
|
417
|
+
onKeydown: D($).onMonthHeadingKeydown
|
|
418
|
+
}, { ref_for: !0 }, D(z).part("month", {
|
|
419
|
+
active: D($).mode === "month",
|
|
420
|
+
disabled: M.disabled || void 0
|
|
420
421
|
})), {
|
|
421
|
-
default:
|
|
422
|
+
default: k(() => [v(E(D($).formattedMonth), 1)]),
|
|
422
423
|
_: 1
|
|
423
424
|
}, 16, [
|
|
424
425
|
"aria-expanded",
|
|
@@ -426,20 +427,20 @@ var Ae = ["role"], je = {
|
|
|
426
427
|
"class",
|
|
427
428
|
"disabled",
|
|
428
429
|
"onKeydown"
|
|
429
|
-
])),
|
|
430
|
+
])), y(l, x({
|
|
430
431
|
ref_for: !0,
|
|
431
|
-
ref:
|
|
432
|
-
"aria-expanded":
|
|
433
|
-
"aria-label":
|
|
434
|
-
class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active":
|
|
435
|
-
disabled:
|
|
436
|
-
onClick:
|
|
437
|
-
onKeydown:
|
|
438
|
-
}, { ref_for: !0 },
|
|
439
|
-
active:
|
|
440
|
-
disabled:
|
|
432
|
+
ref: D($).setYearHeadingButton,
|
|
433
|
+
"aria-expanded": D($).mode === "year",
|
|
434
|
+
"aria-label": D($).yearHeadingLabel,
|
|
435
|
+
class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": D($).mode === "year" }],
|
|
436
|
+
disabled: M.disabled || !D($).canOpenYearPanel,
|
|
437
|
+
onClick: n[1] ||= (e) => D($).toggleMode("year"),
|
|
438
|
+
onKeydown: D($).onYearHeadingKeydown
|
|
439
|
+
}, { ref_for: !0 }, D(z).part("year", {
|
|
440
|
+
active: D($).mode === "year",
|
|
441
|
+
disabled: M.disabled || !D($).canOpenYearPanel || void 0
|
|
441
442
|
})), {
|
|
442
|
-
default:
|
|
443
|
+
default: k(() => [v(E(D($).formattedYear), 1)]),
|
|
443
444
|
_: 1
|
|
444
445
|
}, 16, [
|
|
445
446
|
"aria-expanded",
|
|
@@ -447,74 +448,74 @@ var Ae = ["role"], je = {
|
|
|
447
448
|
"class",
|
|
448
449
|
"disabled",
|
|
449
450
|
"onKeydown"
|
|
450
|
-
])])) : (
|
|
451
|
-
|
|
451
|
+
])])) : (C(), g("span", Re, E(D($).monthYearOf(i)), 1)),
|
|
452
|
+
a === D($).monthCount - 1 ? (C(), m(l, x({
|
|
452
453
|
key: 4,
|
|
453
|
-
"aria-label":
|
|
454
|
+
"aria-label": D($).nextPageLabel,
|
|
454
455
|
class: "bb-calendar__arrow",
|
|
455
|
-
disabled:
|
|
456
|
-
onClick:
|
|
457
|
-
}, { ref_for: !0 },
|
|
458
|
-
default:
|
|
459
|
-
icon:
|
|
456
|
+
disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPageNext,
|
|
457
|
+
onClick: D($).goToNextPage
|
|
458
|
+
}, { ref_for: !0 }, D(z).part("arrow", { disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPageNext || void 0 })), {
|
|
459
|
+
default: k(() => [y(e, {
|
|
460
|
+
icon: D(nt),
|
|
460
461
|
size: "16"
|
|
461
|
-
}, null, 8, ["icon"]),
|
|
462
|
+
}, null, 8, ["icon"]), _("span", ze, E(D($).nextPageLabel), 1)]),
|
|
462
463
|
_: 1
|
|
463
464
|
}, 16, [
|
|
464
465
|
"aria-label",
|
|
465
466
|
"disabled",
|
|
466
467
|
"onClick"
|
|
467
|
-
])) : (
|
|
468
|
-
], 16)),
|
|
468
|
+
])) : (C(), g("span", Be))
|
|
469
|
+
], 16)), _("div", Ve, [r ? (C(), g("div", {
|
|
469
470
|
key: 0,
|
|
470
|
-
id:
|
|
471
|
+
id: a === 0 ? K : `${K}-${a}`,
|
|
471
472
|
ref_for: !0,
|
|
472
|
-
ref:
|
|
473
|
-
"aria-label":
|
|
474
|
-
class:
|
|
475
|
-
inert:
|
|
473
|
+
ref: a === 0 ? r.setCalendarEl : void 0,
|
|
474
|
+
"aria-label": D($).monthCount > 1 ? D($).monthYearOf(i) : D(G)("datePicker.calendarLabel").value,
|
|
475
|
+
class: S(["bb-calendar__days-selector", { "bb-calendar__days-selector--hidden": D($).mode !== "day" }]),
|
|
476
|
+
inert: D($).mode !== "day",
|
|
476
477
|
role: "grid",
|
|
477
478
|
onKeydown: [
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
479
|
+
r.onDayTypeaheadKeydown,
|
|
480
|
+
A(j(r.onArrowDown, ["prevent"]), ["down"]),
|
|
481
|
+
A(j(r.onEnd, ["prevent"]), ["end"]),
|
|
482
|
+
A(j(r.onHome, ["prevent"]), ["home"]),
|
|
483
|
+
A(j(r.onInlineArrow, ["prevent"]), ["left"]),
|
|
484
|
+
A(j(r.onPageDown, ["prevent"]), ["page-down"]),
|
|
485
|
+
A(j(r.onPageUp, ["prevent"]), ["page-up"]),
|
|
486
|
+
A(j(r.onInlineArrow, ["prevent"]), ["right"]),
|
|
487
|
+
A(j(r.onArrowUp, ["prevent"]), ["up"])
|
|
487
488
|
],
|
|
488
|
-
onMouseleave:
|
|
489
|
-
onMouseover:
|
|
490
|
-
}, [
|
|
491
|
-
direction:
|
|
489
|
+
onMouseleave: r.onGridMouseleave,
|
|
490
|
+
onMouseover: r.onGridMouseover
|
|
491
|
+
}, [y(ce, {
|
|
492
|
+
direction: r.direction,
|
|
492
493
|
gap: 30
|
|
493
494
|
}, {
|
|
494
|
-
default:
|
|
495
|
-
key:
|
|
495
|
+
default: k(() => [(C(), g("div", {
|
|
496
|
+
key: D($).system ? i.format("YYYY-MM-DD") : i.month(),
|
|
496
497
|
class: "bb-calendar__month-grid",
|
|
497
498
|
role: "none"
|
|
498
|
-
}, [
|
|
499
|
+
}, [_("div", Ue, [U.value ? (C(), g("div", We, [_("span", Ge, E(D(G)("datePicker.weekColumnLabel").value), 1)])) : h("", !0), (C(!0), g(f, null, w(r.mappedHeaders, (e) => (C(), g("div", x({
|
|
499
500
|
key: e.id,
|
|
500
501
|
"aria-label": e.accessibleLabel,
|
|
501
502
|
class: "bb-calendar__cell-column-header",
|
|
502
503
|
role: "columnheader"
|
|
503
|
-
}, { ref_for: !0 },
|
|
504
|
+
}, { ref_for: !0 }, D(z).cellColumnHeader), E(e.label), 17, Ke))), 128))]), (C(!0), g(f, null, w(r.months[a].weeks, (e) => (C(), g("div", x({
|
|
504
505
|
key: e[0].id,
|
|
505
|
-
class: ["bb-calendar__week",
|
|
506
|
+
class: ["bb-calendar__week", U.value ? ct(e) : void 0],
|
|
506
507
|
role: "row"
|
|
507
|
-
}, { ref_for: !0 },
|
|
508
|
+
}, { ref_for: !0 }, U.value ? D(z).part("week", st(e)) : void 0), [U.value ? (C(), g("div", x({
|
|
508
509
|
key: 0,
|
|
509
|
-
"aria-label":
|
|
510
|
+
"aria-label": D(G)("datePicker.weekNumber", String(r.weekNumberOf(e))).value,
|
|
510
511
|
class: "bb-calendar__week-number",
|
|
511
512
|
role: "rowheader"
|
|
512
|
-
}, { ref_for: !0 },
|
|
513
|
+
}, { ref_for: !0 }, D(z).part("weekNumber", st(e))), E(r.weekNumberOf(e)), 17, qe)) : h("", !0), (C(!0), g(f, null, w(e, (e) => (C(), g("div", x({
|
|
513
514
|
key: e.id,
|
|
514
515
|
"aria-current": e.today ? "date" : void 0,
|
|
515
516
|
"aria-selected": e.selected,
|
|
516
517
|
class: ["bb-calendar__day", {
|
|
517
|
-
"bb-calendar__day--disabled":
|
|
518
|
+
"bb-calendar__day--disabled": M.disabled || e.disabled,
|
|
518
519
|
"bb-calendar__day--first": e.first,
|
|
519
520
|
"bb-calendar__day--highlighted": e.current,
|
|
520
521
|
"bb-calendar__day--last": e.last,
|
|
@@ -527,15 +528,15 @@ var Ae = ["role"], je = {
|
|
|
527
528
|
"bb-calendar__day--today": e.today
|
|
528
529
|
}],
|
|
529
530
|
role: "gridcell"
|
|
530
|
-
}, { ref_for: !0 },
|
|
531
|
+
}, { ref_for: !0 }, D(z).part("day", B(e))), [!e.void && !(e.outside && D($).monthCount > 1) ? (C(), g(f, { key: 0 }, [_("button", x({
|
|
531
532
|
"aria-label": ot(e),
|
|
532
533
|
class: "bb-calendar__day-button",
|
|
533
534
|
"data-date": e.id,
|
|
534
|
-
disabled:
|
|
535
|
+
disabled: M.disabled || e.disabled,
|
|
535
536
|
tabindex: Number(e.current) - 1,
|
|
536
537
|
type: "button",
|
|
537
|
-
onClick:
|
|
538
|
-
}, { ref_for: !0 },
|
|
538
|
+
onClick: r.onButtonClick
|
|
539
|
+
}, { ref_for: !0 }, D(z).part("dayButton", B(e))), [T(t.$slots, R(e.id), {
|
|
539
540
|
first: e.first,
|
|
540
541
|
item: e.id,
|
|
541
542
|
label: e.label,
|
|
@@ -543,7 +544,7 @@ var Ae = ["role"], je = {
|
|
|
543
544
|
middle: e.middle,
|
|
544
545
|
outside: e.outside,
|
|
545
546
|
selected: e.selected
|
|
546
|
-
}, () => [
|
|
547
|
+
}, () => [T(t.$slots, "day", {
|
|
547
548
|
first: e.first,
|
|
548
549
|
item: e.id,
|
|
549
550
|
label: e.label,
|
|
@@ -551,7 +552,7 @@ var Ae = ["role"], je = {
|
|
|
551
552
|
middle: e.middle,
|
|
552
553
|
outside: e.outside,
|
|
553
554
|
selected: e.selected
|
|
554
|
-
}, () => [
|
|
555
|
+
}, () => [v(E(e.label), 1)])])], 16, Ye), _("div", Xe, [T(t.$slots, R(e.id, ":append"), {
|
|
555
556
|
first: e.first,
|
|
556
557
|
item: e.id,
|
|
557
558
|
label: e.label,
|
|
@@ -559,7 +560,7 @@ var Ae = ["role"], je = {
|
|
|
559
560
|
middle: e.middle,
|
|
560
561
|
outside: e.outside,
|
|
561
562
|
selected: e.selected
|
|
562
|
-
}, () => [
|
|
563
|
+
}, () => [T(t.$slots, "day:append", {
|
|
563
564
|
first: e.first,
|
|
564
565
|
item: e.id,
|
|
565
566
|
label: e.label,
|
|
@@ -567,38 +568,38 @@ var Ae = ["role"], je = {
|
|
|
567
568
|
middle: e.middle,
|
|
568
569
|
outside: e.outside,
|
|
569
570
|
selected: e.selected
|
|
570
|
-
})])])], 64)) :
|
|
571
|
+
})])])], 64)) : h("", !0)], 16, Je))), 128))], 16))), 128))]))]),
|
|
571
572
|
_: 2
|
|
572
|
-
}, 1032, ["direction"]),
|
|
573
|
-
default:
|
|
573
|
+
}, 1032, ["direction"]), a === 0 ? (C(), g("div", Ze, E(r.rangePending ? D(G)("datePicker.selectEndDate").value : ""), 1)) : h("", !0)], 42, He)) : h("", !0), a === 0 ? (C(), g(f, { key: 1 }, [y(se, { duration: 150 }, {
|
|
574
|
+
default: k(() => [D($).mode === "month" ? (C(), m(le, { key: 0 })) : h("", !0)]),
|
|
574
575
|
_: 1
|
|
575
|
-
}),
|
|
576
|
-
default:
|
|
576
|
+
}), y(se, { duration: 150 }, {
|
|
577
|
+
default: k(() => [D($).mode === "year" ? (C(), m(ue, { key: 0 })) : h("", !0)]),
|
|
577
578
|
_: 1
|
|
578
|
-
})], 64)) :
|
|
579
|
+
})], 64)) : h("", !0)])], 10, Pe))), 128))])]),
|
|
579
580
|
_: 3
|
|
580
581
|
}))]),
|
|
581
|
-
|
|
582
|
-
id: `${
|
|
582
|
+
_("div", {
|
|
583
|
+
id: `${K}-status`,
|
|
583
584
|
"aria-atomic": "true",
|
|
584
585
|
"aria-live": "polite",
|
|
585
586
|
class: "bb-sr-only",
|
|
586
587
|
role: "status"
|
|
587
|
-
},
|
|
588
|
-
], 2),
|
|
588
|
+
}, E(D($).modeAnnouncement), 9, Qe)
|
|
589
|
+
], 2), H.value ? (C(), m(oe, {
|
|
589
590
|
key: 0,
|
|
590
|
-
ampm:
|
|
591
|
-
disabled:
|
|
592
|
-
hour:
|
|
591
|
+
ampm: M.ampm,
|
|
592
|
+
disabled: M.disabled || M.readonly || !bt.value,
|
|
593
|
+
hour: xt.value,
|
|
593
594
|
max: Z.value.max,
|
|
594
|
-
meridiem:
|
|
595
|
+
meridiem: wt.value,
|
|
595
596
|
min: Z.value.min,
|
|
596
|
-
minute:
|
|
597
|
-
passthrough:
|
|
598
|
-
second:
|
|
599
|
-
seconds:
|
|
600
|
-
step:
|
|
601
|
-
onSelect:
|
|
597
|
+
minute: St.value,
|
|
598
|
+
passthrough: D(z),
|
|
599
|
+
second: Ct.value,
|
|
600
|
+
seconds: M.seconds,
|
|
601
|
+
step: M.step,
|
|
602
|
+
onSelect: Et
|
|
602
603
|
}, null, 8, [
|
|
603
604
|
"ampm",
|
|
604
605
|
"disabled",
|
|
@@ -611,7 +612,7 @@ var Ae = ["role"], je = {
|
|
|
611
612
|
"second",
|
|
612
613
|
"seconds",
|
|
613
614
|
"step"
|
|
614
|
-
])) :
|
|
615
|
+
])) : h("", !0)], 16, ke));
|
|
615
616
|
}
|
|
616
617
|
});
|
|
617
|
-
export {
|
|
618
|
+
export { M as default };
|