bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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 +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
|
@@ -1,72 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import e from "../BbIcon/BbIcon.vue.js";
|
|
2
|
+
import t from "../../assets/svgs/chevron_left_small.svg_raw.js";
|
|
3
|
+
import n from "../../assets/svgs/chevron_right_small.svg_raw.js";
|
|
4
|
+
import { removedPropsFor as r } from "../../deprecation/removedProps.js";
|
|
5
|
+
import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
6
|
+
import { useConfig as a } from "../../composables/useConfig.js";
|
|
7
|
+
import { slotKey as o } from "../../utilities/functions/slotKey.js";
|
|
8
|
+
import { toInnerValue as s, toOuterValue as ee } from "../../utilities/functions/convertDateValue.js";
|
|
9
|
+
import { isCoarseType as c, isLabelType as te } from "../../types/DatePickerType.js";
|
|
10
|
+
import { useId as ne } from "../../composables/useId.js";
|
|
11
|
+
import { useLocale as re } from "../../composables/useLocale.js";
|
|
12
|
+
import { usePassthrough as ie } from "../../composables/usePassthrough.js";
|
|
10
13
|
import l from "../BbBaseButton/BbBaseButton.vue.js";
|
|
11
|
-
import
|
|
14
|
+
import ae from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
12
15
|
import u from "../Transitions/ScaleFade.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { checkCalendarProps as
|
|
17
|
-
import { CALENDAR_GRID as
|
|
18
|
-
import { useDayGrid as
|
|
19
|
-
import { longDateOf as
|
|
20
|
-
import { isoMondayOf as
|
|
21
|
-
import { BB_CALENDAR_PT as
|
|
22
|
-
import { Fragment as
|
|
16
|
+
import oe from "../Transitions/Slide.vue.js";
|
|
17
|
+
import se from "./CalendarMonthPanel.vue.js";
|
|
18
|
+
import ce from "./CalendarYearPanel.vue.js";
|
|
19
|
+
import { checkCalendarProps as le, useCalendarHost as ue } from "./calendarHost.js";
|
|
20
|
+
import { CALENDAR_GRID as de, useCalendarGrid as fe } from "./useCalendarGrid.js";
|
|
21
|
+
import { useDayGrid as pe } from "./useDayGrid.js";
|
|
22
|
+
import { longDateOf as me, useDayjsLocale as he, weekSpanOf as ge, weekStartOf as _e } from "./useDayjsLocale.js";
|
|
23
|
+
import { isoMondayOf as ve, isoWeekOf as ye, weekBoundAsDay as be } from "../../utilities/functions/isoWeek.js";
|
|
24
|
+
import { BB_CALENDAR_PT as xe } from "./types.js";
|
|
25
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, inject as Se, mergeProps as b, normalizeClass as x, openBlock as S, provide as Ce, proxyRefs as C, ref as we, renderList as w, renderSlot as T, resolveDynamicComponent as Te, toDisplayString as E, unref as D, useAttrs as Ee, watch as O, withCtx as k, withKeys as A, withModifiers as j } from "vue";
|
|
23
26
|
// src/components/BbCalendar/BbCalendar.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var
|
|
27
|
+
var De = ["role"], Oe = {
|
|
25
28
|
"aria-live": "polite",
|
|
26
29
|
class: "bb-sr-only"
|
|
27
|
-
},
|
|
30
|
+
}, ke = {
|
|
28
31
|
"aria-live": "polite",
|
|
29
32
|
class: "bb-sr-only"
|
|
30
|
-
},
|
|
33
|
+
}, Ae = { class: "bb-calendar__body" }, je = { class: "bb-calendar__panes" }, Me = ["inert"], Ne = { class: "bb-sr-only" }, Pe = {
|
|
31
34
|
key: 1,
|
|
32
35
|
"aria-hidden": "true",
|
|
33
36
|
class: "bb-calendar__arrow-spacer"
|
|
34
|
-
},
|
|
37
|
+
}, Fe = {
|
|
35
38
|
key: 2,
|
|
36
39
|
class: "bb-calendar__nav-center"
|
|
37
|
-
},
|
|
40
|
+
}, Ie = {
|
|
38
41
|
key: 3,
|
|
39
42
|
class: "bb-calendar__caption"
|
|
40
|
-
},
|
|
43
|
+
}, Le = { class: "bb-sr-only" }, Re = {
|
|
41
44
|
key: 5,
|
|
42
45
|
"aria-hidden": "true",
|
|
43
46
|
class: "bb-calendar__arrow-spacer"
|
|
44
|
-
},
|
|
47
|
+
}, ze = { class: "bb-calendar__content" }, Be = [
|
|
45
48
|
"id",
|
|
46
49
|
"aria-label",
|
|
47
50
|
"inert",
|
|
48
51
|
"onKeydown",
|
|
49
52
|
"onMouseleave",
|
|
50
53
|
"onMouseover"
|
|
51
|
-
],
|
|
54
|
+
], Ve = {
|
|
52
55
|
class: "bb-calendar__header-container",
|
|
53
56
|
role: "row"
|
|
54
|
-
},
|
|
57
|
+
}, He = {
|
|
55
58
|
key: 0,
|
|
56
59
|
class: "bb-calendar__cell-column-header bb-calendar__week-number-header",
|
|
57
60
|
role: "columnheader"
|
|
58
|
-
},
|
|
61
|
+
}, Ue = { class: "bb-sr-only" }, We = ["aria-label"], Ge = ["aria-label"], Ke = ["aria-current", "aria-selected"], qe = [
|
|
59
62
|
"aria-label",
|
|
60
63
|
"data-date",
|
|
61
64
|
"disabled",
|
|
62
65
|
"tabindex",
|
|
63
66
|
"onClick"
|
|
64
|
-
],
|
|
67
|
+
], Je = { class: "bb-calendar__day-append" }, Ye = {
|
|
65
68
|
key: 0,
|
|
66
69
|
"aria-live": "polite",
|
|
67
70
|
class: "bb-sr-only",
|
|
68
71
|
role: "status"
|
|
69
|
-
},
|
|
72
|
+
}, Xe = ["id"], M = /*@__PURE__*/ y({
|
|
70
73
|
inheritAttrs: !1,
|
|
71
74
|
__name: "BbCalendar",
|
|
72
75
|
props: {
|
|
@@ -158,35 +161,35 @@ var Ce = ["role"], we = {
|
|
|
158
161
|
"grid-pick",
|
|
159
162
|
"time-pick"
|
|
160
163
|
],
|
|
161
|
-
setup(
|
|
162
|
-
let
|
|
163
|
-
process.env.NODE_ENV !== "production" &&
|
|
164
|
-
let
|
|
164
|
+
setup(M, { emit: Ze }) {
|
|
165
|
+
let Qe = M, $e = Ze, N = Qe, P = $e;
|
|
166
|
+
process.env.NODE_ENV !== "production" && i("BbCalendar", r("BbCalendar"));
|
|
167
|
+
let F = Ee(), I = (e, t = "") => `${o(e)}${t}`, L = ie({
|
|
165
168
|
component: "BbCalendar",
|
|
166
|
-
props:
|
|
167
|
-
parts:
|
|
168
|
-
states:
|
|
169
|
-
active: { disabled: () => !!
|
|
170
|
-
attrs:
|
|
171
|
-
}),
|
|
169
|
+
props: N,
|
|
170
|
+
parts: xe.parts,
|
|
171
|
+
states: xe.states,
|
|
172
|
+
active: { disabled: () => !!N.disabled },
|
|
173
|
+
attrs: F
|
|
174
|
+
}), et = f(() => F["aria-label"] != null || F["aria-labelledby"] != null), R = (e) => ({
|
|
172
175
|
outside: e.outside,
|
|
173
176
|
today: e.today,
|
|
174
177
|
inRange: e.middle,
|
|
175
178
|
selected: e.selected,
|
|
176
179
|
rangeStart: e.first,
|
|
177
180
|
rangeEnd: e.last,
|
|
178
|
-
disabled:
|
|
181
|
+
disabled: N.disabled || e.disabled || void 0,
|
|
179
182
|
highlighted: e.current
|
|
180
|
-
}), z =
|
|
181
|
-
|
|
182
|
-
let B =
|
|
183
|
-
let t =
|
|
183
|
+
}), z = a();
|
|
184
|
+
he();
|
|
185
|
+
let B = f(() => N.type === "datetime"), tt = f(() => N.floating || te(N.type)), V = f(() => N.type === "week"), nt = (e) => {
|
|
186
|
+
let t = me(e.original, z.locale);
|
|
184
187
|
if (V.value) {
|
|
185
|
-
let n =
|
|
186
|
-
t += `, ${
|
|
188
|
+
let n = ve(e.original);
|
|
189
|
+
t += `, ${W("datePicker.weekSpan", String(ye(n).week), ge(n, z.locale)).value}`;
|
|
187
190
|
}
|
|
188
|
-
return e.selected && (t += `, ${
|
|
189
|
-
},
|
|
191
|
+
return e.selected && (t += `, ${W("datePicker.selectedLabel").value}`), t;
|
|
192
|
+
}, H = (e) => {
|
|
190
193
|
let t = e[0];
|
|
191
194
|
return {
|
|
192
195
|
inRange: t.middle,
|
|
@@ -194,37 +197,37 @@ var Ce = ["role"], we = {
|
|
|
194
197
|
rangeStart: t.first,
|
|
195
198
|
rangeEnd: t.last
|
|
196
199
|
};
|
|
197
|
-
},
|
|
200
|
+
}, rt = (e) => {
|
|
198
201
|
let t = e[0];
|
|
199
202
|
return {
|
|
200
|
-
"bb-calendar__week--selected": t.selected && !
|
|
203
|
+
"bb-calendar__week--selected": t.selected && !N.range,
|
|
201
204
|
"bb-calendar__week--range-start": t.first,
|
|
202
205
|
"bb-calendar__week--range-end": t.last,
|
|
203
206
|
"bb-calendar__week--in-range": t.middle,
|
|
204
207
|
"bb-calendar__week--preview": t.preview,
|
|
205
208
|
"bb-calendar__week--preview-end": t.previewEnd,
|
|
206
|
-
"bb-calendar__week--disabled":
|
|
209
|
+
"bb-calendar__week--disabled": N.disabled || e.every((e) => e.disabled)
|
|
207
210
|
};
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
let { t:
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
let t =
|
|
214
|
-
return t == null ? null : Array.isArray(t) ? t[
|
|
215
|
-
},
|
|
216
|
-
let t =
|
|
211
|
+
}, U = ue();
|
|
212
|
+
U || le("BbCalendar", N);
|
|
213
|
+
let { t: W } = re(), G = `bcal-${ne().id.value}`, K = f(() => N.activeSegment ?? q.value), q = we("start"), it = (e) => {
|
|
214
|
+
q.value = e, P("update:activeSegment", e);
|
|
215
|
+
}, at = f(() => c(N.type) ? N.min : V.value ? be(N.min, "min") : N.min?.slice(0, 10)), ot = f(() => c(N.type) ? N.max : V.value ? be(N.max, "max") : N.max?.slice(0, 10)), st = f(() => (N.range || N.multiple) && !Array.isArray(N.modelValue) ? [] : N.modelValue), ct = (e) => +(e === "end"), J = (e) => {
|
|
216
|
+
let t = N.modelValue;
|
|
217
|
+
return t == null ? null : Array.isArray(t) ? t[ct(e)] ?? null : e === "start" ? t : null;
|
|
218
|
+
}, lt = (e) => {
|
|
219
|
+
let t = N.time;
|
|
217
220
|
if (t != null) {
|
|
218
|
-
if (Array.isArray(t)) return t[
|
|
221
|
+
if (Array.isArray(t)) return t[ct(e)] ?? null;
|
|
219
222
|
if (e === "start" && typeof t == "string") return t;
|
|
220
223
|
}
|
|
221
|
-
if (
|
|
222
|
-
let n =
|
|
224
|
+
if (N.floating) return null;
|
|
225
|
+
let n = J(e);
|
|
223
226
|
if (!n) return null;
|
|
224
|
-
let r =
|
|
225
|
-
return r.isValid() ? r.format(
|
|
226
|
-
},
|
|
227
|
-
let t =
|
|
227
|
+
let r = s(n);
|
|
228
|
+
return r.isValid() ? r.format(N.seconds ? "HH:mm:ss" : "HH:mm") : null;
|
|
229
|
+
}, Y = (e) => {
|
|
230
|
+
let t = lt(e);
|
|
228
231
|
if (!t) return null;
|
|
229
232
|
let [n = "", r = "", i = ""] = t.split(":");
|
|
230
233
|
return {
|
|
@@ -232,72 +235,72 @@ var Ce = ["role"], we = {
|
|
|
232
235
|
minute: r,
|
|
233
236
|
second: i
|
|
234
237
|
};
|
|
235
|
-
},
|
|
236
|
-
let n =
|
|
238
|
+
}, ut = (e, t) => {
|
|
239
|
+
let n = s(e, { floating: N.floating });
|
|
237
240
|
if (!n.isValid()) return null;
|
|
238
|
-
let r = t?.hour ? parseInt(t.hour, 10) : 0,
|
|
241
|
+
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);
|
|
239
242
|
return {
|
|
240
|
-
value:
|
|
241
|
-
floating:
|
|
242
|
-
utc:
|
|
243
|
+
value: ee(o, {
|
|
244
|
+
floating: N.floating,
|
|
245
|
+
utc: N.utc
|
|
243
246
|
}),
|
|
244
|
-
time:
|
|
247
|
+
time: N.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
|
|
245
248
|
};
|
|
246
|
-
},
|
|
249
|
+
}, dt = () => ({
|
|
247
250
|
start: {
|
|
248
|
-
date:
|
|
249
|
-
time:
|
|
251
|
+
date: J("start"),
|
|
252
|
+
time: Y("start")
|
|
250
253
|
},
|
|
251
254
|
end: {
|
|
252
|
-
date:
|
|
253
|
-
time:
|
|
255
|
+
date: J("end"),
|
|
256
|
+
time: Y("end")
|
|
254
257
|
}
|
|
255
|
-
}),
|
|
256
|
-
if (
|
|
258
|
+
}), ft = (e) => {
|
|
259
|
+
if (N.range) {
|
|
257
260
|
let t = [], n = [];
|
|
258
261
|
for (let r of ["start", "end"]) {
|
|
259
262
|
let i = e[r];
|
|
260
263
|
if (!i.date) continue;
|
|
261
|
-
let a =
|
|
264
|
+
let a = ut(i.date, i.time);
|
|
262
265
|
a && (t.push(a.value), n.push(a.time));
|
|
263
266
|
}
|
|
264
|
-
|
|
267
|
+
P("update:modelValue", t), P("update:time", n);
|
|
265
268
|
return;
|
|
266
269
|
}
|
|
267
270
|
let t = e.start;
|
|
268
271
|
if (!t.date) {
|
|
269
|
-
|
|
272
|
+
P("update:modelValue", null), P("update:time", null);
|
|
270
273
|
return;
|
|
271
274
|
}
|
|
272
|
-
let n =
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
if (
|
|
276
|
-
|
|
275
|
+
let n = ut(t.date, t.time);
|
|
276
|
+
P("update:modelValue", n ? n.value : null), P("update:time", n ? n.time : null);
|
|
277
|
+
}, pt = (e) => {
|
|
278
|
+
if (N.range && e === null && (e = []), P("grid-pick", e), !B.value) {
|
|
279
|
+
P("update:modelValue", e);
|
|
277
280
|
return;
|
|
278
281
|
}
|
|
279
282
|
if (e === null) {
|
|
280
|
-
|
|
283
|
+
P("update:modelValue", null), P("update:time", null);
|
|
281
284
|
return;
|
|
282
285
|
}
|
|
283
|
-
let t =
|
|
284
|
-
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,
|
|
285
|
-
},
|
|
286
|
+
let t = dt();
|
|
287
|
+
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, ft(t);
|
|
288
|
+
}, mt = f(() => !!J(K.value)), X = f(() => Y(K.value)), ht = f(() => X.value?.hour ?? ""), gt = f(() => X.value?.minute ?? ""), _t = f(() => X.value?.second ?? ""), vt = f(() => ""), yt = (e) => parseInt(e.slice(0, 2), 10) * 60 + parseInt(e.slice(3, 5), 10), Z = f(() => {
|
|
286
289
|
if (!B.value) return {};
|
|
287
|
-
let e = K
|
|
290
|
+
let e = J(K.value);
|
|
288
291
|
if (!e) return {};
|
|
289
|
-
let t =
|
|
292
|
+
let t = s(e).format("YYYY-MM-DD"), n = (e) => {
|
|
290
293
|
if (!e || e.length <= 10) return;
|
|
291
|
-
let n =
|
|
294
|
+
let n = s(e);
|
|
292
295
|
return n.isValid() && n.format("YYYY-MM-DD") === t ? n.format("HH:mm") : void 0;
|
|
293
296
|
};
|
|
294
297
|
return {
|
|
295
|
-
min: n(
|
|
296
|
-
max: n(
|
|
298
|
+
min: n(N.min),
|
|
299
|
+
max: n(N.max)
|
|
297
300
|
};
|
|
298
|
-
}),
|
|
299
|
-
if (
|
|
300
|
-
let t =
|
|
301
|
+
}), bt = (e) => {
|
|
302
|
+
if (P("time-pick", e), !B.value) return;
|
|
303
|
+
let t = K.value, n = dt();
|
|
301
304
|
if (!n[t].date) return;
|
|
302
305
|
let r = n[t].time ? { ...n[t].time } : {
|
|
303
306
|
hour: "",
|
|
@@ -308,39 +311,39 @@ var Ce = ["role"], we = {
|
|
|
308
311
|
let t = r.hour ? parseInt(r.hour, 10) : 0, n = e.value === "PM";
|
|
309
312
|
n && t < 12 && (t += 12), !n && t >= 12 && (t -= 12), r.hour = String(t).padStart(2, "0");
|
|
310
313
|
} else r[e.unit] = e.value;
|
|
311
|
-
r.hour ||= "00", r.minute ||= "00",
|
|
312
|
-
let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } =
|
|
313
|
-
s && ([r.hour, r.minute] = s.split(":"),
|
|
314
|
-
},
|
|
314
|
+
r.hour ||= "00", r.minute ||= "00", N.seconds && !r.second && (r.second = "00");
|
|
315
|
+
let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } = Z.value, s = a && i < yt(a) ? a : o && i > yt(o) ? o : null;
|
|
316
|
+
s && ([r.hour, r.minute] = s.split(":"), N.seconds && (r.second = "00")), n[t].time = r, ft(n);
|
|
317
|
+
}, xt = f(() => {
|
|
315
318
|
if (!B.value) return;
|
|
316
319
|
let e = [44, 44];
|
|
317
|
-
return
|
|
320
|
+
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` };
|
|
318
321
|
});
|
|
319
|
-
|
|
320
|
-
|
|
322
|
+
O(() => N.modelValue, (e) => {
|
|
323
|
+
N.range && B.value && N.activeSegment == null && Array.isArray(e) && e.length === 2 && it("end");
|
|
321
324
|
});
|
|
322
|
-
let
|
|
323
|
-
props:
|
|
324
|
-
passthrough:
|
|
325
|
-
firstDayOfWeek: () => V.value ? 1 :
|
|
326
|
-
floating: () =>
|
|
327
|
-
min: () =>
|
|
328
|
-
max: () =>
|
|
329
|
-
modelValue: () =>
|
|
330
|
-
pick: (e) =>
|
|
331
|
-
}, Q =
|
|
332
|
-
|
|
333
|
-
let $ =
|
|
334
|
-
|
|
325
|
+
let St = {
|
|
326
|
+
props: N,
|
|
327
|
+
passthrough: L,
|
|
328
|
+
firstDayOfWeek: () => V.value ? 1 : N.firstDayOfWeek ?? _e(z.locale),
|
|
329
|
+
floating: () => tt.value,
|
|
330
|
+
min: () => at.value,
|
|
331
|
+
max: () => ot.value,
|
|
332
|
+
modelValue: () => st.value,
|
|
333
|
+
pick: (e) => pt(e)
|
|
334
|
+
}, Q = fe(St);
|
|
335
|
+
Ce(de, Q);
|
|
336
|
+
let $ = C(Q);
|
|
337
|
+
U && O(U.open, (e) => {
|
|
335
338
|
e || Q.resetStatus();
|
|
336
339
|
});
|
|
337
|
-
let
|
|
340
|
+
let Ct = y({
|
|
338
341
|
name: "BbCalendarDayGridScope",
|
|
339
342
|
slots: Object,
|
|
340
343
|
setup() {
|
|
341
|
-
let e =
|
|
342
|
-
return { days:
|
|
343
|
-
...
|
|
344
|
+
let e = Se(de);
|
|
345
|
+
return { days: C(pe({
|
|
346
|
+
...St,
|
|
344
347
|
cursor: e.cursor,
|
|
345
348
|
panes: e.panes,
|
|
346
349
|
setCursor: e.handleCursorUpdate,
|
|
@@ -350,77 +353,68 @@ var Ce = ["role"], we = {
|
|
|
350
353
|
render() {
|
|
351
354
|
return this.$slots.default?.({ days: this.days });
|
|
352
355
|
}
|
|
353
|
-
}),
|
|
356
|
+
}), wt = y({
|
|
354
357
|
name: "BbCalendarNoDayGrid",
|
|
355
358
|
slots: Object,
|
|
356
359
|
render() {
|
|
357
360
|
return this.$slots.default?.({ days: null });
|
|
358
361
|
}
|
|
359
362
|
});
|
|
360
|
-
return (
|
|
363
|
+
return (r, i) => (S(), h("div", b({
|
|
361
364
|
class: ["bb-calendar", {
|
|
362
365
|
"bb-calendar--datetime": B.value,
|
|
363
|
-
"bb-calendar--seconds": B.value &&
|
|
364
|
-
"bb-calendar--ampm": B.value &&
|
|
365
|
-
"bb-calendar--disabled":
|
|
366
|
-
"bb-calendar--months":
|
|
366
|
+
"bb-calendar--seconds": B.value && M.seconds,
|
|
367
|
+
"bb-calendar--ampm": B.value && M.ampm,
|
|
368
|
+
"bb-calendar--disabled": M.disabled,
|
|
369
|
+
"bb-calendar--months": D($).monthCount > 1,
|
|
367
370
|
"bb-calendar--week": V.value
|
|
368
371
|
}],
|
|
369
|
-
role:
|
|
370
|
-
style:
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
default:
|
|
376
|
-
key:
|
|
377
|
-
class:
|
|
378
|
-
inert:
|
|
379
|
-
}, [
|
|
372
|
+
role: et.value ? "group" : void 0,
|
|
373
|
+
style: xt.value
|
|
374
|
+
}, D(L).rootAttrs), [g("div", { class: x(["bb-calendar__grid", D($).isCoarse ? `bb-calendar__grid--unit-${D($).homeMode}` : void 0]) }, [
|
|
375
|
+
g("span", Oe, E(D($).formattedYear), 1),
|
|
376
|
+
g("div", ke, E(D($).cursorAnnouncement), 1),
|
|
377
|
+
g("div", Ae, [(S(), p(Te(D($).isCoarse ? D(wt) : D(Ct)), null, {
|
|
378
|
+
default: k(({ days: a }) => [g("div", je, [(S(!0), h(d, null, w(D($).panes, (o, s) => (S(), h("div", {
|
|
379
|
+
key: s,
|
|
380
|
+
class: x(["bb-calendar__pane", { "bb-calendar__pane--idle": s > 0 && D($).mode !== "day" }]),
|
|
381
|
+
inert: s > 0 && D($).mode !== "day" || void 0
|
|
382
|
+
}, [M.type === "year" ? m("", !0) : (S(), h("div", b({
|
|
380
383
|
key: 0,
|
|
381
384
|
class: "bb-calendar__header"
|
|
382
|
-
}, { ref_for: !0 },
|
|
383
|
-
|
|
385
|
+
}, { ref_for: !0 }, D(L).header), [
|
|
386
|
+
s === 0 ? (S(), p(l, b({
|
|
384
387
|
key: 0,
|
|
385
|
-
"aria-label":
|
|
388
|
+
"aria-label": D($).previousPageLabel,
|
|
386
389
|
class: "bb-calendar__arrow",
|
|
387
|
-
disabled:
|
|
388
|
-
onClick:
|
|
389
|
-
}, { ref_for: !0 },
|
|
390
|
-
default:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
width: "16",
|
|
395
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
396
|
-
}, [v("path", {
|
|
397
|
-
d: "M10 12 6 8l4-4",
|
|
398
|
-
stroke: "currentColor",
|
|
399
|
-
"stroke-linecap": "round",
|
|
400
|
-
"stroke-linejoin": "round",
|
|
401
|
-
"stroke-width": "1.5"
|
|
402
|
-
})], -1), v("span", ke, D(O($).previousPageLabel), 1)]),
|
|
390
|
+
disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPagePrevious,
|
|
391
|
+
onClick: D($).goToPreviousPage
|
|
392
|
+
}, { ref_for: !0 }, D(L).part("arrow", { disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPagePrevious || void 0 })), {
|
|
393
|
+
default: k(() => [v(e, {
|
|
394
|
+
icon: D(t),
|
|
395
|
+
size: "16"
|
|
396
|
+
}, null, 8, ["icon"]), g("span", Ne, E(D($).previousPageLabel), 1)]),
|
|
403
397
|
_: 1
|
|
404
398
|
}, 16, [
|
|
405
399
|
"aria-label",
|
|
406
400
|
"disabled",
|
|
407
401
|
"onClick"
|
|
408
|
-
])) : (
|
|
409
|
-
|
|
402
|
+
])) : (S(), h("span", Pe)),
|
|
403
|
+
s === 0 ? (S(), h("div", Fe, [M.type === "month" ? m("", !0) : (S(), p(l, b({
|
|
410
404
|
key: 0,
|
|
411
405
|
ref_for: !0,
|
|
412
|
-
ref:
|
|
413
|
-
"aria-expanded":
|
|
414
|
-
"aria-label":
|
|
415
|
-
class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active":
|
|
416
|
-
disabled:
|
|
417
|
-
onClick:
|
|
418
|
-
onKeydown:
|
|
419
|
-
}, { ref_for: !0 },
|
|
420
|
-
active:
|
|
421
|
-
disabled:
|
|
406
|
+
ref: D($).setMonthHeadingButton,
|
|
407
|
+
"aria-expanded": D($).mode === "month",
|
|
408
|
+
"aria-label": D($).monthHeadingLabel,
|
|
409
|
+
class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": D($).mode === "month" }],
|
|
410
|
+
disabled: M.disabled,
|
|
411
|
+
onClick: i[0] ||= (e) => D($).toggleMode("month"),
|
|
412
|
+
onKeydown: D($).onMonthHeadingKeydown
|
|
413
|
+
}, { ref_for: !0 }, D(L).part("month", {
|
|
414
|
+
active: D($).mode === "month",
|
|
415
|
+
disabled: M.disabled || void 0
|
|
422
416
|
})), {
|
|
423
|
-
default:
|
|
417
|
+
default: k(() => [_(E(D($).formattedMonth), 1)]),
|
|
424
418
|
_: 1
|
|
425
419
|
}, 16, [
|
|
426
420
|
"aria-expanded",
|
|
@@ -428,20 +422,20 @@ var Ce = ["role"], we = {
|
|
|
428
422
|
"class",
|
|
429
423
|
"disabled",
|
|
430
424
|
"onKeydown"
|
|
431
|
-
])),
|
|
425
|
+
])), v(l, b({
|
|
432
426
|
ref_for: !0,
|
|
433
|
-
ref:
|
|
434
|
-
"aria-expanded":
|
|
435
|
-
"aria-label":
|
|
436
|
-
class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active":
|
|
437
|
-
disabled:
|
|
438
|
-
onClick:
|
|
439
|
-
onKeydown:
|
|
440
|
-
}, { ref_for: !0 },
|
|
441
|
-
active:
|
|
442
|
-
disabled:
|
|
427
|
+
ref: D($).setYearHeadingButton,
|
|
428
|
+
"aria-expanded": D($).mode === "year",
|
|
429
|
+
"aria-label": D($).yearHeadingLabel,
|
|
430
|
+
class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": D($).mode === "year" }],
|
|
431
|
+
disabled: M.disabled || !D($).canOpenYearPanel,
|
|
432
|
+
onClick: i[1] ||= (e) => D($).toggleMode("year"),
|
|
433
|
+
onKeydown: D($).onYearHeadingKeydown
|
|
434
|
+
}, { ref_for: !0 }, D(L).part("year", {
|
|
435
|
+
active: D($).mode === "year",
|
|
436
|
+
disabled: M.disabled || !D($).canOpenYearPanel || void 0
|
|
443
437
|
})), {
|
|
444
|
-
default:
|
|
438
|
+
default: k(() => [_(E(D($).formattedYear), 1)]),
|
|
445
439
|
_: 1
|
|
446
440
|
}, 16, [
|
|
447
441
|
"aria-expanded",
|
|
@@ -449,167 +443,158 @@ var Ce = ["role"], we = {
|
|
|
449
443
|
"class",
|
|
450
444
|
"disabled",
|
|
451
445
|
"onKeydown"
|
|
452
|
-
])])) : (
|
|
453
|
-
|
|
446
|
+
])])) : (S(), h("span", Ie, E(D($).monthYearOf(o)), 1)),
|
|
447
|
+
s === D($).monthCount - 1 ? (S(), p(l, b({
|
|
454
448
|
key: 4,
|
|
455
|
-
"aria-label":
|
|
449
|
+
"aria-label": D($).nextPageLabel,
|
|
456
450
|
class: "bb-calendar__arrow",
|
|
457
|
-
disabled:
|
|
458
|
-
onClick:
|
|
459
|
-
}, { ref_for: !0 },
|
|
460
|
-
default:
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
width: "16",
|
|
465
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
466
|
-
}, [v("path", {
|
|
467
|
-
d: "M6 12l4-4-4-4",
|
|
468
|
-
stroke: "currentColor",
|
|
469
|
-
"stroke-linecap": "round",
|
|
470
|
-
"stroke-linejoin": "round",
|
|
471
|
-
"stroke-width": "1.5"
|
|
472
|
-
})], -1), v("span", Ne, D(O($).nextPageLabel), 1)]),
|
|
451
|
+
disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPageNext,
|
|
452
|
+
onClick: D($).goToNextPage
|
|
453
|
+
}, { ref_for: !0 }, D(L).part("arrow", { disabled: M.disabled || D($).mode !== D($).homeMode || !D($).canPageNext || void 0 })), {
|
|
454
|
+
default: k(() => [v(e, {
|
|
455
|
+
icon: D(n),
|
|
456
|
+
size: "16"
|
|
457
|
+
}, null, 8, ["icon"]), g("span", Le, E(D($).nextPageLabel), 1)]),
|
|
473
458
|
_: 1
|
|
474
459
|
}, 16, [
|
|
475
460
|
"aria-label",
|
|
476
461
|
"disabled",
|
|
477
462
|
"onClick"
|
|
478
|
-
])) : (
|
|
479
|
-
], 16)),
|
|
463
|
+
])) : (S(), h("span", Re))
|
|
464
|
+
], 16)), g("div", ze, [a ? (S(), h("div", {
|
|
480
465
|
key: 0,
|
|
481
|
-
id:
|
|
466
|
+
id: s === 0 ? G : `${G}-${s}`,
|
|
482
467
|
ref_for: !0,
|
|
483
|
-
ref:
|
|
484
|
-
"aria-label":
|
|
485
|
-
class:
|
|
486
|
-
inert:
|
|
468
|
+
ref: s === 0 ? a.setCalendarEl : void 0,
|
|
469
|
+
"aria-label": D($).monthCount > 1 ? D($).monthYearOf(o) : D(W)("datePicker.calendarLabel").value,
|
|
470
|
+
class: x(["bb-calendar__days-selector", { "bb-calendar__days-selector--hidden": D($).mode !== "day" }]),
|
|
471
|
+
inert: D($).mode !== "day",
|
|
487
472
|
role: "grid",
|
|
488
473
|
onKeydown: [
|
|
489
|
-
|
|
490
|
-
j(
|
|
491
|
-
j(
|
|
492
|
-
j(
|
|
493
|
-
j(
|
|
494
|
-
j(
|
|
495
|
-
j(
|
|
496
|
-
j(
|
|
497
|
-
j(
|
|
474
|
+
a.onDayTypeaheadKeydown,
|
|
475
|
+
A(j(a.onArrowDown, ["prevent"]), ["down"]),
|
|
476
|
+
A(j(a.onEnd, ["prevent"]), ["end"]),
|
|
477
|
+
A(j(a.onHome, ["prevent"]), ["home"]),
|
|
478
|
+
A(j(a.onArrowLeft, ["prevent"]), ["left"]),
|
|
479
|
+
A(j(a.onPageDown, ["prevent"]), ["page-down"]),
|
|
480
|
+
A(j(a.onPageUp, ["prevent"]), ["page-up"]),
|
|
481
|
+
A(j(a.onArrowRight, ["prevent"]), ["right"]),
|
|
482
|
+
A(j(a.onArrowUp, ["prevent"]), ["up"])
|
|
498
483
|
],
|
|
499
|
-
onMouseleave:
|
|
500
|
-
onMouseover:
|
|
501
|
-
}, [
|
|
502
|
-
direction:
|
|
484
|
+
onMouseleave: a.onGridMouseleave,
|
|
485
|
+
onMouseover: a.onGridMouseover
|
|
486
|
+
}, [v(oe, {
|
|
487
|
+
direction: a.direction,
|
|
503
488
|
gap: 30
|
|
504
489
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
key:
|
|
490
|
+
default: k(() => [(S(), h("div", {
|
|
491
|
+
key: o.month().toString(),
|
|
507
492
|
class: "bb-calendar__month-grid",
|
|
508
493
|
role: "none"
|
|
509
|
-
}, [
|
|
494
|
+
}, [g("div", Ve, [V.value ? (S(), h("div", He, [g("span", Ue, E(D(W)("datePicker.weekColumnLabel").value), 1)])) : m("", !0), (S(!0), h(d, null, w(a.mappedHeaders, (e) => (S(), h("div", b({
|
|
510
495
|
key: e.id,
|
|
511
496
|
"aria-label": e.accessibleLabel,
|
|
512
497
|
class: "bb-calendar__cell-column-header",
|
|
513
498
|
role: "columnheader"
|
|
514
|
-
}, { ref_for: !0 },
|
|
515
|
-
key:
|
|
516
|
-
class: ["bb-calendar__week", V.value ?
|
|
499
|
+
}, { ref_for: !0 }, D(L).cellColumnHeader), E(e.label), 17, We))), 128))]), (S(!0), h(d, null, w(a.months[s].weeks, (e) => (S(), h("div", b({
|
|
500
|
+
key: e[0].id,
|
|
501
|
+
class: ["bb-calendar__week", V.value ? rt(e) : void 0],
|
|
517
502
|
role: "row"
|
|
518
|
-
}, { ref_for: !0 }, V.value ?
|
|
503
|
+
}, { ref_for: !0 }, V.value ? D(L).part("week", H(e)) : void 0), [V.value ? (S(), h("div", b({
|
|
519
504
|
key: 0,
|
|
520
|
-
"aria-label":
|
|
505
|
+
"aria-label": D(W)("datePicker.weekNumber", String(a.weekNumberOf(e))).value,
|
|
521
506
|
class: "bb-calendar__week-number",
|
|
522
507
|
role: "rowheader"
|
|
523
|
-
}, { ref_for: !0 },
|
|
524
|
-
key:
|
|
525
|
-
"aria-current":
|
|
526
|
-
"aria-selected":
|
|
508
|
+
}, { ref_for: !0 }, D(L).part("weekNumber", H(e))), E(a.weekNumberOf(e)), 17, Ge)) : m("", !0), (S(!0), h(d, null, w(e, (e) => (S(), h("div", b({
|
|
509
|
+
key: e.id,
|
|
510
|
+
"aria-current": e.today ? "date" : void 0,
|
|
511
|
+
"aria-selected": e.selected,
|
|
527
512
|
class: ["bb-calendar__day", {
|
|
528
|
-
"bb-calendar__day--disabled":
|
|
529
|
-
"bb-calendar__day--first":
|
|
530
|
-
"bb-calendar__day--highlighted":
|
|
531
|
-
"bb-calendar__day--last":
|
|
532
|
-
"bb-calendar__day--middle":
|
|
533
|
-
"bb-calendar__day--outside":
|
|
534
|
-
"bb-calendar__day--preview":
|
|
535
|
-
"bb-calendar__day--preview-end":
|
|
536
|
-
"bb-calendar__day--preview-start":
|
|
537
|
-
"bb-calendar__day--selected":
|
|
538
|
-
"bb-calendar__day--today":
|
|
513
|
+
"bb-calendar__day--disabled": M.disabled || e.disabled,
|
|
514
|
+
"bb-calendar__day--first": e.first,
|
|
515
|
+
"bb-calendar__day--highlighted": e.current,
|
|
516
|
+
"bb-calendar__day--last": e.last,
|
|
517
|
+
"bb-calendar__day--middle": e.middle,
|
|
518
|
+
"bb-calendar__day--outside": e.outside,
|
|
519
|
+
"bb-calendar__day--preview": e.preview,
|
|
520
|
+
"bb-calendar__day--preview-end": e.previewEnd,
|
|
521
|
+
"bb-calendar__day--preview-start": e.previewStart,
|
|
522
|
+
"bb-calendar__day--selected": e.selected,
|
|
523
|
+
"bb-calendar__day--today": e.today
|
|
539
524
|
}],
|
|
540
525
|
role: "gridcell"
|
|
541
|
-
}, { ref_for: !0 },
|
|
542
|
-
"aria-label":
|
|
526
|
+
}, { ref_for: !0 }, D(L).part("day", R(e))), [e.outside && D($).monthCount > 1 ? m("", !0) : (S(), h(d, { key: 0 }, [g("button", b({
|
|
527
|
+
"aria-label": nt(e),
|
|
543
528
|
class: "bb-calendar__day-button",
|
|
544
|
-
"data-date":
|
|
545
|
-
disabled:
|
|
546
|
-
tabindex: Number(
|
|
529
|
+
"data-date": e.id,
|
|
530
|
+
disabled: M.disabled || e.disabled,
|
|
531
|
+
tabindex: Number(e.current) - 1,
|
|
547
532
|
type: "button",
|
|
548
|
-
onClick:
|
|
549
|
-
}, { ref_for: !0 },
|
|
550
|
-
first:
|
|
551
|
-
item:
|
|
552
|
-
label:
|
|
553
|
-
last:
|
|
554
|
-
middle:
|
|
555
|
-
outside:
|
|
556
|
-
selected:
|
|
557
|
-
}, () => [
|
|
558
|
-
first:
|
|
559
|
-
item:
|
|
560
|
-
label:
|
|
561
|
-
last:
|
|
562
|
-
middle:
|
|
563
|
-
outside:
|
|
564
|
-
selected:
|
|
565
|
-
}, () => [
|
|
566
|
-
first:
|
|
567
|
-
item:
|
|
568
|
-
label:
|
|
569
|
-
last:
|
|
570
|
-
middle:
|
|
571
|
-
outside:
|
|
572
|
-
selected:
|
|
573
|
-
}, () => [
|
|
574
|
-
first:
|
|
575
|
-
item:
|
|
576
|
-
label:
|
|
577
|
-
last:
|
|
578
|
-
middle:
|
|
579
|
-
outside:
|
|
580
|
-
selected:
|
|
581
|
-
})])])], 64))], 16,
|
|
533
|
+
onClick: a.onButtonClick
|
|
534
|
+
}, { ref_for: !0 }, D(L).part("dayButton", R(e))), [T(r.$slots, I(e.id), {
|
|
535
|
+
first: e.first,
|
|
536
|
+
item: e.id,
|
|
537
|
+
label: e.label,
|
|
538
|
+
last: e.last,
|
|
539
|
+
middle: e.middle,
|
|
540
|
+
outside: e.outside,
|
|
541
|
+
selected: e.selected
|
|
542
|
+
}, () => [T(r.$slots, "day", {
|
|
543
|
+
first: e.first,
|
|
544
|
+
item: e.id,
|
|
545
|
+
label: e.label,
|
|
546
|
+
last: e.last,
|
|
547
|
+
middle: e.middle,
|
|
548
|
+
outside: e.outside,
|
|
549
|
+
selected: e.selected
|
|
550
|
+
}, () => [_(E(e.label), 1)])])], 16, qe), g("div", Je, [T(r.$slots, I(e.id, ":append"), {
|
|
551
|
+
first: e.first,
|
|
552
|
+
item: e.id,
|
|
553
|
+
label: e.label,
|
|
554
|
+
last: e.last,
|
|
555
|
+
middle: e.middle,
|
|
556
|
+
outside: e.outside,
|
|
557
|
+
selected: e.selected
|
|
558
|
+
}, () => [T(r.$slots, "day:append", {
|
|
559
|
+
first: e.first,
|
|
560
|
+
item: e.id,
|
|
561
|
+
label: e.label,
|
|
562
|
+
last: e.last,
|
|
563
|
+
middle: e.middle,
|
|
564
|
+
outside: e.outside,
|
|
565
|
+
selected: e.selected
|
|
566
|
+
})])])], 64))], 16, Ke))), 128))], 16))), 128))]))]),
|
|
582
567
|
_: 2
|
|
583
|
-
}, 1032, ["direction"]),
|
|
584
|
-
default:
|
|
568
|
+
}, 1032, ["direction"]), s === 0 ? (S(), h("div", Ye, E(a.rangePending ? D(W)("datePicker.selectEndDate").value : ""), 1)) : m("", !0)], 42, Be)) : m("", !0), s === 0 ? (S(), h(d, { key: 1 }, [v(u, { duration: 150 }, {
|
|
569
|
+
default: k(() => [D($).mode === "month" ? (S(), p(se, { key: 0 })) : m("", !0)]),
|
|
585
570
|
_: 1
|
|
586
|
-
}),
|
|
587
|
-
default:
|
|
571
|
+
}), v(u, { duration: 150 }, {
|
|
572
|
+
default: k(() => [D($).mode === "year" ? (S(), p(ce, { key: 0 })) : m("", !0)]),
|
|
588
573
|
_: 1
|
|
589
|
-
})], 64)) :
|
|
574
|
+
})], 64)) : m("", !0)])], 10, Me))), 128))])]),
|
|
590
575
|
_: 3
|
|
591
576
|
}))]),
|
|
592
|
-
|
|
593
|
-
id: `${
|
|
577
|
+
g("div", {
|
|
578
|
+
id: `${G}-status`,
|
|
594
579
|
"aria-atomic": "true",
|
|
595
580
|
"aria-live": "polite",
|
|
596
581
|
class: "bb-sr-only",
|
|
597
582
|
role: "status"
|
|
598
|
-
}, D(
|
|
599
|
-
], 2), B.value ? (
|
|
583
|
+
}, E(D($).modeAnnouncement), 9, Xe)
|
|
584
|
+
], 2), B.value ? (S(), p(ae, {
|
|
600
585
|
key: 0,
|
|
601
|
-
ampm:
|
|
602
|
-
disabled:
|
|
603
|
-
hour:
|
|
604
|
-
max:
|
|
605
|
-
meridiem:
|
|
606
|
-
min:
|
|
607
|
-
minute:
|
|
608
|
-
passthrough:
|
|
609
|
-
second:
|
|
610
|
-
seconds:
|
|
611
|
-
step:
|
|
612
|
-
onSelect:
|
|
586
|
+
ampm: M.ampm,
|
|
587
|
+
disabled: M.disabled || M.readonly || !mt.value,
|
|
588
|
+
hour: ht.value,
|
|
589
|
+
max: Z.value.max,
|
|
590
|
+
meridiem: vt.value,
|
|
591
|
+
min: Z.value.min,
|
|
592
|
+
minute: gt.value,
|
|
593
|
+
passthrough: D(L),
|
|
594
|
+
second: _t.value,
|
|
595
|
+
seconds: M.seconds,
|
|
596
|
+
step: M.step,
|
|
597
|
+
onSelect: bt
|
|
613
598
|
}, null, 8, [
|
|
614
599
|
"ampm",
|
|
615
600
|
"disabled",
|
|
@@ -622,7 +607,7 @@ var Ce = ["role"], we = {
|
|
|
622
607
|
"second",
|
|
623
608
|
"seconds",
|
|
624
609
|
"step"
|
|
625
|
-
])) :
|
|
610
|
+
])) : m("", !0)], 16, De));
|
|
626
611
|
}
|
|
627
612
|
});
|
|
628
|
-
export {
|
|
613
|
+
export { M as default };
|