bitboss-ui 3.0.0-beta.47 → 3.0.0-beta.49
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 +24 -7
- package/bin/bitboss-ui-mcp.mjs +15 -3
- package/bin/bitboss-ui.mjs +167 -14
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +65 -65
- package/dist/ai/BbButton.md +28 -8
- package/dist/ai/BbCheckbox.md +0 -2
- package/dist/ai/BbCheckboxGroup.md +13 -20
- package/dist/ai/BbCollapsible.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +8 -0
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePickerInput.md +4 -2
- package/dist/ai/BbDialog.md +1 -8
- package/dist/ai/BbDropdown.md +231 -220
- package/dist/ai/BbDropdownButton.md +65 -65
- package/dist/ai/BbDropdownGroup.md +2 -2
- package/dist/ai/BbDropzone.md +10 -10
- package/dist/ai/BbForm.md +43 -52
- package/dist/ai/BbHoverCard.md +19 -7
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +88 -21
- package/dist/ai/BbPopover.md +47 -40
- package/dist/ai/BbPopoverPortal.md +1 -1
- package/dist/ai/BbProgress.md +48 -22
- package/dist/ai/BbRadioGroup.md +13 -19
- package/dist/ai/BbSelect.md +16 -36
- package/dist/ai/BbSelectPopover.md +14 -30
- package/dist/ai/BbSmoothHeight.md +0 -2
- package/dist/ai/BbSwitchGroup.md +13 -20
- package/dist/ai/BbTable.md +11 -10
- package/dist/ai/BbTabs.md +107 -106
- package/dist/ai/BbTabsList.md +2 -2
- package/dist/ai/BbTabsPanels.md +1 -1
- package/dist/ai/BbTabsRoot.md +3 -3
- package/dist/ai/BbTooltip.md +29 -13
- package/dist/ai/BbTree.md +14 -11
- package/dist/ai/CommonPopover.md +1 -1
- package/dist/ai/changelog.json +297 -6
- package/dist/ai/components.json +50 -45
- package/dist/ai/composables/useBbDropdownContext.md +16 -16
- package/dist/ai/composables/useBbFormField.md +5 -1
- package/dist/ai/composables/useBbTabsContext.md +14 -14
- package/dist/ai/guides/agent-contract.md +27 -27
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/component-picker.md +3 -3
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +10 -10
- package/dist/ai/guides/inertia-helpers.md +120 -67
- package/dist/ai/guides/installation-and-plugin-setup.md +45 -15
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +3 -2
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -16
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +9 -8
- package/dist/ai/guides/migration/components/bb-dropdown.md +15 -14
- package/dist/ai/guides/migration/components/bb-radio-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +6 -1
- package/dist/ai/guides/migration/components/bb-select.md +10 -2
- package/dist/ai/guides/migration/components/bb-switch-group.md +2 -1
- package/dist/ai/guides/migration/components/bb-tabs.md +9 -8
- package/dist/ai/guides/migration/components/bb-tooltip.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +143 -28
- package/dist/ai/guides/migration/v3-beta-css-classes.md +29 -27
- package/dist/ai/guides/migration/v3-beta-tooling.md +11 -0
- package/dist/ai/guides/options-items-playbook.md +30 -24
- package/dist/ai/guides/passthrough.md +4 -4
- package/dist/ai/guides/preset-components.md +18 -3
- package/dist/ai/guides/typescript-generic-components.md +1 -1
- package/dist/ai/guides/validated-forms.md +11 -22
- package/dist/ai/guides/validation-providers.md +4 -3
- package/dist/ai/helpers/inertia/manifest.json +636 -0
- package/dist/ai/helpers/inertia/types.ts +15 -0
- package/dist/ai/helpers/inertia/useAsyncFn.ts +110 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +102 -0
- package/dist/ai/helpers/inertia/useDeleteCmd.ts +30 -0
- package/dist/ai/helpers/inertia/useHasChanged.ts +36 -0
- package/dist/ai/helpers/inertia/useIndexById.ts +23 -0
- package/dist/ai/helpers/inertia/useLazyProp.ts +148 -0
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +50 -0
- package/dist/ai/helpers/inertia/useLoading.ts +20 -0
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +88 -0
- package/dist/ai/helpers/inertia/usePromiseForm.ts +62 -0
- package/dist/ai/helpers/inertia/useProp.ts +63 -0
- package/dist/ai/helpers/inertia/useQuery.ts +19 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +116 -0
- package/dist/ai/helpers/inertia/useResourceContext.ts +69 -0
- package/dist/ai/helpers/inertia/useRouteQuery.ts +54 -0
- package/dist/ai/helpers/inertia/useScreenSizes.ts +23 -0
- package/dist/ai/helpers/inertia/useTableContext.ts +34 -0
- package/dist/ai/helpers/inertia/useTableSelectionContext.ts +48 -0
- package/dist/ai/helpers/inertia/useUntil.ts +33 -0
- package/dist/ai/helpers/inertia/utils.ts +24 -0
- package/dist/ai/index.md +6 -6
- package/dist/ai/manifest/components/BbAccordion.json +1 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.json +10 -6
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +2 -1
- package/dist/ai/manifest/components/BbButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCollapsible.json +1 -1
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirmPortal.json +5 -2
- package/dist/ai/manifest/components/BbDropdown.json +23 -20
- package/dist/ai/manifest/components/BbDropdown.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +22 -19
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownGroup.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +1 -0
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +2 -2
- package/dist/ai/manifest/components/BbNumberInput.json +6 -1
- package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +2 -2
- package/dist/ai/manifest/components/BbProgress.json +6 -6
- package/dist/ai/manifest/components/BbProgress.tree.json +1 -0
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbSelect.json +2 -2
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbTabs.json +8 -7
- package/dist/ai/manifest/components/BbTabsList.json +3 -3
- package/dist/ai/manifest/components/BbTabsPanels.json +1 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTooltip.json +2 -2
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +5 -0
- package/dist/ai/manifest/types.advanced.json +10 -9
- package/dist/ai/manifest/types.api.json +8 -5
- package/dist/ai/manifest/types.wrapper.json +1 -0
- package/dist/ai/recipes/inertia/approvals-inbox.md +16 -18
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +23 -33
- package/dist/ai/recipes/inertia/layout-scaffold.md +16 -16
- package/dist/ai/recipes/inertia/onboarding.md +6 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +15 -18
- package/dist/ai/recipes/inertia/record-form.md +11 -11
- package/dist/ai/recipes/inertia/records-workspace.md +38 -41
- package/dist/ai/recipes/inertia/settings-workspace.md +26 -38
- package/dist/ai/recipes/inertia/upload-center.md +31 -39
- package/dist/ai/recipes/inertia/wizard-form.md +10 -19
- package/dist/ai/recipes/nuxt/approvals-inbox.md +7 -8
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/nuxt/layout-scaffold.md +16 -16
- package/dist/ai/recipes/nuxt/onboarding.md +2 -6
- package/dist/ai/recipes/nuxt/ownership-atlas.md +7 -9
- package/dist/ai/recipes/nuxt/record-form.md +5 -5
- package/dist/ai/recipes/nuxt/records-workspace.md +29 -31
- package/dist/ai/recipes/nuxt/settings-workspace.md +22 -34
- package/dist/ai/recipes/nuxt/upload-center.md +22 -29
- package/dist/ai/recipes/nuxt/wizard-form.md +3 -11
- package/dist/ai/recipes/vue/approvals-inbox.md +7 -8
- package/dist/ai/recipes/vue/inline-edit-workspace.md +14 -24
- package/dist/ai/recipes/vue/layout-scaffold.md +16 -16
- package/dist/ai/recipes/vue/onboarding.md +2 -6
- package/dist/ai/recipes/vue/ownership-atlas.md +7 -9
- package/dist/ai/recipes/vue/record-form.md +5 -5
- package/dist/ai/recipes/vue/records-workspace.md +29 -31
- package/dist/ai/recipes/vue/settings-workspace.md +22 -34
- package/dist/ai/recipes/vue/upload-center.md +22 -29
- package/dist/ai/recipes/vue/wizard-form.md +3 -11
- package/dist/ai/source/BbAccordion.md +1 -1
- package/dist/ai/source/BbAlert.md +3 -3
- package/dist/ai/source/BbBadge.md +14 -10
- package/dist/ai/source/BbBadgeButton.md +17 -12
- package/dist/ai/source/BbBaseButton.md +1 -1
- package/dist/ai/source/BbBaseRadioIcon.md +1 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +1 -0
- package/dist/ai/source/BbBreadcrumbs.md +63 -42
- package/dist/ai/source/BbButton.md +84 -38
- package/dist/ai/source/BbCalendar.md +17 -16
- package/dist/ai/source/BbCheckbox.md +3 -2
- package/dist/ai/source/BbCheckboxGroup.md +11 -4
- package/dist/ai/source/BbCollapsible.md +2 -1
- package/dist/ai/source/BbColorInput.md +10 -9
- package/dist/ai/source/BbColorPalette.md +2 -1
- package/dist/ai/source/BbConfirm.md +18 -1
- package/dist/ai/source/BbConfirmPortal.md +20 -6
- package/dist/ai/source/BbDatePicker.md +2 -2
- package/dist/ai/source/BbDatePickerInput.md +47 -20
- package/dist/ai/source/BbDialog.md +5 -5
- package/dist/ai/source/BbDropdown.md +231 -158
- package/dist/ai/source/BbDropdownButton.md +19 -12
- package/dist/ai/source/BbDropdownGroup.md +127 -93
- package/dist/ai/source/BbForm.md +25 -1
- package/dist/ai/source/BbHoverCard.md +30 -3
- package/dist/ai/source/BbHoverCardPortal.md +18 -3
- package/dist/ai/source/BbIndicator.md +4 -0
- package/dist/ai/source/BbNumberInput.md +855 -19
- package/dist/ai/source/BbOffCanvas.md +27 -11
- package/dist/ai/source/BbPagination.md +3 -3
- package/dist/ai/source/BbPopover.md +185 -12
- package/dist/ai/source/BbPopoverPortal.md +30 -3
- package/dist/ai/source/BbProgress.md +82 -18
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +11 -9
- package/dist/ai/source/BbSelect.md +16 -10
- package/dist/ai/source/BbSelectPopover.md +29 -23
- package/dist/ai/source/BbSlider.md +12 -6
- package/dist/ai/source/BbSwitch.md +3 -2
- package/dist/ai/source/BbSwitchGroup.md +5 -2
- package/dist/ai/source/BbTable.md +102 -18
- package/dist/ai/source/BbTabs.md +30 -24
- package/dist/ai/source/BbTabsList.md +29 -23
- package/dist/ai/source/BbTabsPanels.md +29 -23
- package/dist/ai/source/BbTabsRoot.md +28 -22
- package/dist/ai/source/BbTag.md +10 -9
- package/dist/ai/source/BbTextInput.md +5 -4
- package/dist/ai/source/BbTextarea.md +6 -5
- package/dist/ai/source/BbTimePicker.md +1 -1
- package/dist/ai/source/BbTimePickerInput.md +46 -9
- package/dist/ai/source/BbToast.md +10 -7
- package/dist/ai/source/BbToastPortal.md +10 -7
- package/dist/ai/source/BbTooltip.md +88 -11
- package/dist/ai/source/BbTree.md +21 -3
- package/dist/ai/source/CommonField.md +6 -4
- package/dist/ai/source/CommonFieldInput.md +15 -10
- package/dist/ai/source/CommonPopover.md +8 -1
- package/dist/ai/source/CommonTimeSelector.md +5 -4
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +10 -8
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +45 -45
- package/dist/components/BbBreadcrumbs/types.d.ts +25 -17
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +88 -70
- package/dist/components/BbButton/toggleRoving.d.ts +6 -0
- package/dist/components/BbButton/toggleRoving.js +45 -0
- package/dist/components/BbButton/types.d.ts +12 -4
- package/dist/components/BbButton/types.js +5 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +178 -178
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/BbCalendar/useCalendarGrid.js +141 -139
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +38 -15
- package/dist/components/BbCalendar/useDayjsLocale.js +31 -30
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +48 -48
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbCheckboxGroup/types.d.ts +6 -2
- package/dist/components/BbCollapsible/types.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/BbColorPalette/types.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -5
- package/dist/components/BbConfirm/types.d.ts +15 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +363 -349
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +91 -86
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +298 -289
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +322 -356
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +17 -15
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +40 -0
- package/dist/components/BbDropdown/DropdownRow.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +8 -2
- package/dist/components/BbDropdown/normalizeGroups.js +60 -46
- package/dist/components/BbDropdown/types.d.ts +120 -88
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/components/BbDropdownButton/types.d.ts +2 -2
- package/dist/components/BbForm/BbForm.vue.d.ts +9 -0
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +114 -105
- package/dist/components/BbForm/BbFormCustomField.js +1 -1
- package/dist/components/BbForm/bindFormField.js +2 -1
- package/dist/components/BbForm/formFields.d.ts +5 -0
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +145 -142
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/types.d.ts +14 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +0 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +452 -125
- package/dist/components/BbNumberInput/numberDisplay.d.ts +256 -0
- package/dist/components/BbNumberInput/numberDisplay.js +499 -0
- package/dist/components/BbNumberInput/types.d.ts +54 -1
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +58 -0
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +28 -0
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +2 -0
- package/dist/components/BbNumberInput/warroom/harness.d.ts +217 -0
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +150 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +207 -162
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -2
- package/dist/components/BbPopover/types.d.ts +26 -1
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +15 -7
- package/dist/components/BbProgress/types.d.ts +23 -7
- package/dist/components/BbProgress/types.js +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +102 -101
- package/dist/components/BbRadioGroup/types.d.ts +6 -2
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +63 -63
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +156 -154
- package/dist/components/BbSelect/types.d.ts +6 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbSelectPopover/types.d.ts +6 -2
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +153 -153
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +62 -62
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +711 -676
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/types.d.ts +28 -22
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +76 -76
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +58 -58
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +246 -236
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -86
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +23 -0
- package/dist/components/BbTooltip/tooltipWarmup.js +7 -0
- package/dist/components/BbTooltip/types.d.ts +10 -3
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +29 -21
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +10 -7
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +37 -36
- package/dist/components/CommonPopover/types.d.ts +2 -1
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/composables/formSubmitLock.d.ts +6 -0
- package/dist/composables/formSubmitLock.js +4 -0
- package/dist/composables/useBaseOptions.d.ts +7 -1
- package/dist/composables/useBaseOptions.js +32 -32
- package/dist/composables/useBbDropdownContext.d.ts +8 -8
- package/dist/composables/useBbFormField.d.ts +9 -0
- package/dist/composables/useBbFormField.js +5 -3
- package/dist/composables/useBbTabsContext.d.ts +10 -10
- package/dist/composables/useBbTabsContext.js +18 -18
- package/dist/composables/useFormBinding.d.ts +11 -0
- package/dist/composables/useFormBinding.js +15 -13
- package/dist/composables/useItemText.d.ts +5 -1
- package/dist/composables/useItemText.js +8 -3
- package/dist/composables/useItemValue.d.ts +5 -1
- package/dist/composables/useItemValue.js +8 -3
- package/dist/composables/useLocale.js +10 -9
- package/dist/deprecation/ai-deprecations.json.d.ts +130 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +1 -1
- package/dist/directives/bbDropdown.js +1 -1
- package/dist/directives/directivePortal.d.ts +13 -7
- package/dist/directives/directivePortal.js +1 -4
- package/dist/i18n/index.d.ts +7 -12
- package/dist/i18n/locales/cs.json +11 -14
- package/dist/i18n/locales/da.json +13 -16
- package/dist/i18n/locales/de-CH.json +137 -0
- package/dist/i18n/locales/de.json +14 -17
- package/dist/i18n/locales/el.json +10 -13
- package/dist/i18n/locales/en-GB.json +137 -0
- package/dist/i18n/locales/en.json +8 -11
- package/dist/i18n/locales/es-MX.json +137 -0
- package/dist/i18n/locales/es.json +16 -19
- package/dist/i18n/locales/fi.json +8 -11
- package/dist/i18n/locales/fr.json +23 -26
- package/dist/i18n/locales/hu.json +8 -11
- package/dist/i18n/locales/it.json +12 -15
- package/dist/i18n/locales/ja.json +13 -16
- package/dist/i18n/locales/ko.json +10 -13
- package/dist/i18n/locales/nb.json +13 -16
- package/dist/i18n/locales/nl.json +21 -24
- package/dist/i18n/locales/pl.json +10 -13
- package/dist/i18n/locales/{pt.json → pt-BR.json} +19 -22
- package/dist/i18n/locales/pt-PT.json +137 -0
- package/dist/i18n/locales/ro.json +22 -25
- package/dist/i18n/locales/ru.json +11 -14
- package/dist/i18n/locales/sv.json +16 -19
- package/dist/i18n/locales/tr.json +14 -17
- package/dist/i18n/locales/uk.json +11 -14
- package/dist/i18n/locales/{zh-cn.json → zh-CN.json} +10 -13
- package/dist/i18n/locales/zh-HK.json +137 -0
- package/dist/i18n/locales/zh-TW.json +137 -0
- package/dist/i18n/regionHints.d.ts +16 -0
- package/dist/i18n/regionHints.js +49 -0
- package/dist/i18n/regions.d.ts +286 -0
- package/dist/i18n/regions.js +265 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/llms-full.txt +1914 -1714
- package/dist/llms-medium.txt +76 -46
- package/dist/llms.txt +7 -7
- package/dist/locale-blueprint.json +16 -13
- package/dist/styles.css +2 -2
- package/dist/types/passthrough.d.ts +1 -1
- package/dist/types/ptComponentMap.d.ts +2 -2
- package/dist/utilities/functions/slotKey.d.ts +2 -2
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +22 -19
- package/dist/vite.js +309 -297
- package/llms.txt +7 -7
- package/package.json +5 -3
- package/scripts/lib/agent-manifest.mjs +2 -1
- package/scripts/lib/eslint-disable.mjs +17 -4
- package/scripts/lib/eslint-plugin.d.ts +9 -1
- package/scripts/lib/eslint-plugin.mjs +256 -6
- package/scripts/lib/helper-canon.mjs +176 -0
- package/scripts/lib/helpers-add.mjs +1303 -0
- package/scripts/lib/local-components.mjs +33 -4
- package/scripts/lib/locale-check.mjs +165 -0
- package/scripts/lib/portal-names.mjs +458 -0
- package/scripts/lib/redundant-item-accessor.mjs +398 -0
- package/scripts/lib/renamed-item-field.mjs +343 -0
- package/scripts/lib/slot-key.mjs +2 -2
- package/scripts/lib/slot-renames.mjs +1 -1
- package/scripts/lib/unimported-components.mjs +5 -2
- package/scripts/lib/validate-bb-markup.mjs +123 -56
- package/dist/i18n/index.js +0 -27
|
@@ -4,8 +4,8 @@ import { useId as n } from "../../composables/useId.js";
|
|
|
4
4
|
import { removedPropsFor as r } from "../../deprecation/removedProps.js";
|
|
5
5
|
import { slotKey as i } from "../../utilities/functions/slotKey.js";
|
|
6
6
|
import { warnRemovedAttrs as a } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
7
|
-
import o from "
|
|
8
|
-
import
|
|
7
|
+
import { useLocale as o } from "../../composables/useLocale.js";
|
|
8
|
+
import s from "../BbBaseButton/BbBaseButton.vue.js";
|
|
9
9
|
import { isCoarseType as c } from "../../types/DatePickerType.js";
|
|
10
10
|
import { toInnerValue as l, toOuterValue as ee } from "../../utilities/functions/convertDateValue.js";
|
|
11
11
|
import te from "../CommonTimeSelector/CommonTimeSelector.vue.js";
|
|
@@ -15,37 +15,37 @@ import re from "./CalendarMonthPanel.vue.js";
|
|
|
15
15
|
import ie from "./CalendarYearPanel.vue.js";
|
|
16
16
|
import { checkCalendarProps as ae, useCalendarHost as oe } from "./calendarHost.js";
|
|
17
17
|
import { longDateOf as se, useDayjsLocale as ce, weekStartOf as le } from "./useDayjsLocale.js";
|
|
18
|
-
import { CALENDAR_GRID as
|
|
19
|
-
import { useDayGrid as
|
|
20
|
-
import { BB_CALENDAR_PT as
|
|
21
|
-
import { Fragment as
|
|
18
|
+
import { CALENDAR_GRID as ue, useCalendarGrid as de } from "./useCalendarGrid.js";
|
|
19
|
+
import { useDayGrid as fe } from "./useDayGrid.js";
|
|
20
|
+
import { BB_CALENDAR_PT as d } from "./types.js";
|
|
21
|
+
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 pe, mergeProps as x, normalizeClass as S, openBlock as C, provide as me, proxyRefs as w, ref as he, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useAttrs as ge, watch as _e, withCtx as k, withKeys as A, withModifiers as j } from "vue";
|
|
22
22
|
//#region src/components/BbCalendar/BbCalendar.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
23
|
+
var ve = ["role"], ye = {
|
|
24
24
|
"aria-live": "polite",
|
|
25
25
|
class: "bb-sr-only"
|
|
26
|
-
},
|
|
26
|
+
}, be = {
|
|
27
27
|
"aria-live": "polite",
|
|
28
28
|
class: "bb-sr-only"
|
|
29
|
-
},
|
|
29
|
+
}, xe = { class: "bb-calendar__body" }, Se = { class: "bb-sr-only" }, Ce = { class: "bb-calendar__nav-center" }, we = { class: "bb-sr-only" }, Te = { class: "bb-calendar__content" }, Ee = [
|
|
30
30
|
"aria-label",
|
|
31
31
|
"inert",
|
|
32
32
|
"onKeydown",
|
|
33
33
|
"onMouseleave",
|
|
34
34
|
"onMouseover"
|
|
35
|
-
],
|
|
35
|
+
], De = {
|
|
36
36
|
class: "bb-calendar__header-container",
|
|
37
37
|
role: "row"
|
|
38
|
-
},
|
|
38
|
+
}, Oe = ["abbr", "aria-label"], ke = ["aria-current", "aria-selected"], Ae = [
|
|
39
39
|
"aria-label",
|
|
40
40
|
"data-date",
|
|
41
41
|
"disabled",
|
|
42
42
|
"tabindex",
|
|
43
43
|
"onClick"
|
|
44
|
-
],
|
|
44
|
+
], je = { class: "bb-calendar__day-append" }, Me = {
|
|
45
45
|
"aria-live": "polite",
|
|
46
46
|
class: "bb-sr-only",
|
|
47
47
|
role: "status"
|
|
48
|
-
},
|
|
48
|
+
}, Ne = ["id"], M = /*@__PURE__*/ b({
|
|
49
49
|
inheritAttrs: !1,
|
|
50
50
|
__name: "BbCalendar",
|
|
51
51
|
props: {
|
|
@@ -185,47 +185,47 @@ var _e = ["role"], ve = {
|
|
|
185
185
|
"grid-pick",
|
|
186
186
|
"time-pick"
|
|
187
187
|
],
|
|
188
|
-
setup(
|
|
189
|
-
let
|
|
188
|
+
setup(M, { emit: Pe }) {
|
|
189
|
+
let N = M, P = Pe;
|
|
190
190
|
process.env.NODE_ENV !== "production" && a("BbCalendar", r("BbCalendar"));
|
|
191
|
-
let
|
|
191
|
+
let F = ge(), I = (e, t = "") => `${i(e)}${t}`, L = e({
|
|
192
192
|
component: "BbCalendar",
|
|
193
|
-
props:
|
|
194
|
-
parts:
|
|
195
|
-
states:
|
|
196
|
-
active: { disabled: () => !!
|
|
197
|
-
attrs:
|
|
198
|
-
}),
|
|
193
|
+
props: N,
|
|
194
|
+
parts: d.parts,
|
|
195
|
+
states: d.states,
|
|
196
|
+
active: { disabled: () => !!N.disabled },
|
|
197
|
+
attrs: F
|
|
198
|
+
}), Fe = p(() => F["aria-label"] != null || F["aria-labelledby"] != null), Ie = (e) => ({
|
|
199
199
|
outside: e.outside,
|
|
200
200
|
today: e.today,
|
|
201
201
|
inRange: e.middle,
|
|
202
202
|
selected: e.selected,
|
|
203
203
|
rangeStart: e.first,
|
|
204
204
|
rangeEnd: e.last,
|
|
205
|
-
disabled:
|
|
205
|
+
disabled: N.disabled || e.disabled || void 0,
|
|
206
206
|
highlighted: e.current
|
|
207
|
-
}),
|
|
207
|
+
}), Le = t();
|
|
208
208
|
ce();
|
|
209
|
-
let
|
|
210
|
-
|
|
211
|
-
let { t:
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
let t =
|
|
215
|
-
return t == null ? null : Array.isArray(t) ? t[
|
|
216
|
-
},
|
|
217
|
-
let t =
|
|
209
|
+
let R = p(() => N.type === "datetime"), Re = p(() => N.floating || c(N.type)), z = oe();
|
|
210
|
+
z || ae("BbCalendar", N);
|
|
211
|
+
let { t: B } = o(), V = `bcal-${n().id.value}`, H = p(() => N.activeSegment ?? U.value), U = he("start"), ze = (e) => {
|
|
212
|
+
U.value = e, P("update:activeSegment", e);
|
|
213
|
+
}, Be = p(() => c(N.type) ? N.min : N.min?.slice(0, 10)), Ve = p(() => c(N.type) ? N.max : N.max?.slice(0, 10)), He = p(() => (N.range || N.multiple) && !Array.isArray(N.modelValue) ? [] : N.modelValue), W = (e) => +(e === "end"), G = (e) => {
|
|
214
|
+
let t = N.modelValue;
|
|
215
|
+
return t == null ? null : Array.isArray(t) ? t[W(e)] ?? null : e === "start" ? t : null;
|
|
216
|
+
}, Ue = (e) => {
|
|
217
|
+
let t = N.time;
|
|
218
218
|
if (t != null) {
|
|
219
|
-
if (Array.isArray(t)) return t[
|
|
219
|
+
if (Array.isArray(t)) return t[W(e)] ?? null;
|
|
220
220
|
if (e === "start" && typeof t == "string") return t;
|
|
221
221
|
}
|
|
222
|
-
if (
|
|
223
|
-
let n =
|
|
222
|
+
if (N.floating) return null;
|
|
223
|
+
let n = G(e);
|
|
224
224
|
if (!n) return null;
|
|
225
225
|
let r = l(n);
|
|
226
|
-
return r.isValid() ? r.format(
|
|
227
|
-
},
|
|
228
|
-
let t =
|
|
226
|
+
return r.isValid() ? r.format(N.seconds ? "HH:mm:ss" : "HH:mm") : null;
|
|
227
|
+
}, K = (e) => {
|
|
228
|
+
let t = Ue(e);
|
|
229
229
|
if (!t) return null;
|
|
230
230
|
let [n = "", r = "", i = ""] = t.split(":");
|
|
231
231
|
return {
|
|
@@ -233,59 +233,59 @@ var _e = ["role"], ve = {
|
|
|
233
233
|
minute: r,
|
|
234
234
|
second: i
|
|
235
235
|
};
|
|
236
|
-
},
|
|
237
|
-
let n = l(e, { floating:
|
|
236
|
+
}, q = (e, t) => {
|
|
237
|
+
let n = l(e, { floating: N.floating });
|
|
238
238
|
if (!n.isValid()) return null;
|
|
239
|
-
let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a =
|
|
239
|
+
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);
|
|
240
240
|
return {
|
|
241
241
|
value: ee(o, {
|
|
242
|
-
floating:
|
|
243
|
-
utc:
|
|
242
|
+
floating: N.floating,
|
|
243
|
+
utc: N.utc
|
|
244
244
|
}),
|
|
245
|
-
time:
|
|
245
|
+
time: N.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
|
|
246
246
|
};
|
|
247
|
-
},
|
|
247
|
+
}, J = () => ({
|
|
248
248
|
start: {
|
|
249
|
-
date:
|
|
250
|
-
time:
|
|
249
|
+
date: G("start"),
|
|
250
|
+
time: K("start")
|
|
251
251
|
},
|
|
252
252
|
end: {
|
|
253
|
-
date:
|
|
254
|
-
time:
|
|
253
|
+
date: G("end"),
|
|
254
|
+
time: K("end")
|
|
255
255
|
}
|
|
256
|
-
}),
|
|
257
|
-
if (
|
|
256
|
+
}), Y = (e) => {
|
|
257
|
+
if (N.range) {
|
|
258
258
|
let t = [], n = [];
|
|
259
259
|
for (let r of ["start", "end"]) {
|
|
260
260
|
let i = e[r];
|
|
261
261
|
if (!i.date) continue;
|
|
262
|
-
let a =
|
|
262
|
+
let a = q(i.date, i.time);
|
|
263
263
|
a && (t.push(a.value), n.push(a.time));
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
P("update:modelValue", t), P("update:time", n);
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
268
|
let t = e.start;
|
|
269
269
|
if (!t.date) {
|
|
270
|
-
|
|
270
|
+
P("update:modelValue", null), P("update:time", null);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
let n =
|
|
274
|
-
|
|
273
|
+
let n = q(t.date, t.time);
|
|
274
|
+
P("update:modelValue", n ? n.value : null), P("update:time", n ? n.time : null);
|
|
275
275
|
}, We = (e) => {
|
|
276
|
-
if (
|
|
277
|
-
|
|
276
|
+
if (N.range && e === null && (e = []), P("grid-pick", e), !R.value) {
|
|
277
|
+
P("update:modelValue", e);
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
if (e === null) {
|
|
281
|
-
|
|
281
|
+
P("update:modelValue", null), P("update:time", null);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
let t =
|
|
285
|
-
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,
|
|
286
|
-
}, Ge =
|
|
287
|
-
if (!
|
|
288
|
-
let e =
|
|
284
|
+
let t = J();
|
|
285
|
+
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, Y(t);
|
|
286
|
+
}, Ge = p(() => !!G(H.value)), X = p(() => K(H.value)), Ke = p(() => X.value?.hour ?? ""), qe = p(() => X.value?.minute ?? ""), Je = p(() => X.value?.second ?? ""), Ye = p(() => ""), Xe = (e) => parseInt(e.slice(0, 2), 10) * 60 + parseInt(e.slice(3, 5), 10), Z = p(() => {
|
|
287
|
+
if (!R.value) return {};
|
|
288
|
+
let e = G(H.value);
|
|
289
289
|
if (!e) return {};
|
|
290
290
|
let t = l(e).format("YYYY-MM-DD"), n = (e) => {
|
|
291
291
|
if (!e || e.length <= 10) return;
|
|
@@ -293,12 +293,12 @@ var _e = ["role"], ve = {
|
|
|
293
293
|
return n.isValid() && n.format("YYYY-MM-DD") === t ? n.format("HH:mm") : void 0;
|
|
294
294
|
};
|
|
295
295
|
return {
|
|
296
|
-
min: n(
|
|
297
|
-
max: n(
|
|
296
|
+
min: n(N.min),
|
|
297
|
+
max: n(N.max)
|
|
298
298
|
};
|
|
299
299
|
}), Ze = (e) => {
|
|
300
|
-
if (
|
|
301
|
-
let t =
|
|
300
|
+
if (P("time-pick", e), !R.value) return;
|
|
301
|
+
let t = H.value, n = J();
|
|
302
302
|
if (!n[t].date) return;
|
|
303
303
|
let r = n[t].time ? { ...n[t].time } : {
|
|
304
304
|
hour: "",
|
|
@@ -309,38 +309,38 @@ var _e = ["role"], ve = {
|
|
|
309
309
|
let t = r.hour ? parseInt(r.hour, 10) : 0, n = e.value === "PM";
|
|
310
310
|
n && t < 12 && (t += 12), !n && t >= 12 && (t -= 12), r.hour = String(t).padStart(2, "0");
|
|
311
311
|
} else r[e.unit] = e.value;
|
|
312
|
-
r.hour ||= "00", r.minute ||= "00",
|
|
312
|
+
r.hour ||= "00", r.minute ||= "00", N.seconds && !r.second && (r.second = "00");
|
|
313
313
|
let i = parseInt(r.hour, 10) * 60 + parseInt(r.minute, 10), { min: a, max: o } = Z.value, s = a && i < Xe(a) ? a : o && i > Xe(o) ? o : null;
|
|
314
|
-
s && ([r.hour, r.minute] = s.split(":"),
|
|
315
|
-
}, Qe =
|
|
316
|
-
if (!
|
|
314
|
+
s && ([r.hour, r.minute] = s.split(":"), N.seconds && (r.second = "00")), n[t].time = r, Y(n);
|
|
315
|
+
}, Qe = p(() => {
|
|
316
|
+
if (!R.value) return;
|
|
317
317
|
let e = [44, 44];
|
|
318
|
-
return
|
|
318
|
+
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` };
|
|
319
319
|
});
|
|
320
|
-
|
|
321
|
-
!
|
|
320
|
+
_e(() => N.modelValue, (e) => {
|
|
321
|
+
!N.range || !R.value || N.activeSegment != null || Array.isArray(e) && e.length === 2 && ze("end");
|
|
322
322
|
});
|
|
323
323
|
let $e = {
|
|
324
|
-
props:
|
|
325
|
-
passthrough:
|
|
326
|
-
firstDayOfWeek: () =>
|
|
327
|
-
floating: () =>
|
|
328
|
-
min: () =>
|
|
329
|
-
max: () =>
|
|
330
|
-
modelValue: () =>
|
|
324
|
+
props: N,
|
|
325
|
+
passthrough: L,
|
|
326
|
+
firstDayOfWeek: () => N.firstDayOfWeek ?? le(Le.locale),
|
|
327
|
+
floating: () => Re.value,
|
|
328
|
+
min: () => Be.value,
|
|
329
|
+
max: () => Ve.value,
|
|
330
|
+
modelValue: () => He.value,
|
|
331
331
|
pick: (e) => We(e)
|
|
332
|
-
}, Q =
|
|
333
|
-
|
|
334
|
-
let $ =
|
|
335
|
-
|
|
332
|
+
}, Q = de($e);
|
|
333
|
+
me(ue, Q);
|
|
334
|
+
let $ = w(Q);
|
|
335
|
+
z && _e(z.open, (e) => {
|
|
336
336
|
e || Q.resetStatus();
|
|
337
337
|
});
|
|
338
|
-
let et =
|
|
338
|
+
let et = b({
|
|
339
339
|
name: "BbCalendarDayGridScope",
|
|
340
340
|
slots: Object,
|
|
341
341
|
setup() {
|
|
342
|
-
let e =
|
|
343
|
-
return { days:
|
|
342
|
+
let e = pe(ue);
|
|
343
|
+
return { days: w(fe({
|
|
344
344
|
...$e,
|
|
345
345
|
cursor: e.cursor,
|
|
346
346
|
setCursor: e.handleCursorUpdate,
|
|
@@ -351,61 +351,61 @@ var _e = ["role"], ve = {
|
|
|
351
351
|
return this.$slots.default?.({ days: this.days });
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
|
-
return (e, t) => (
|
|
354
|
+
return (e, t) => (C(), g("div", x({
|
|
355
355
|
class: ["bb-calendar", {
|
|
356
|
-
"bb-calendar--datetime":
|
|
357
|
-
"bb-calendar--seconds":
|
|
358
|
-
"bb-calendar--ampm":
|
|
356
|
+
"bb-calendar--datetime": R.value,
|
|
357
|
+
"bb-calendar--seconds": R.value && e.seconds,
|
|
358
|
+
"bb-calendar--ampm": R.value && e.ampm,
|
|
359
359
|
"bb-calendar--disabled": e.disabled
|
|
360
360
|
}],
|
|
361
|
-
role:
|
|
361
|
+
role: Fe.value ? "group" : void 0,
|
|
362
362
|
style: Qe.value
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
}, O(L).rootAttrs), [_("div", { class: S(["bb-calendar__grid", O($).isCoarse ? `bb-calendar__grid--unit-${O($).homeMode}` : void 0]) }, [
|
|
364
|
+
_("span", ye, D(O($).formattedYear), 1),
|
|
365
|
+
_("div", be, D(O($).cursorAnnouncement), 1),
|
|
366
|
+
_("div", xe, [e.type === "year" ? h("", !0) : (C(), g("div", x({
|
|
367
367
|
key: 0,
|
|
368
368
|
class: "bb-calendar__header"
|
|
369
|
-
},
|
|
370
|
-
|
|
371
|
-
"aria-label":
|
|
369
|
+
}, O(L).header), [
|
|
370
|
+
y(s, x({
|
|
371
|
+
"aria-label": O($).previousPageLabel,
|
|
372
372
|
class: "bb-calendar__arrow",
|
|
373
|
-
disabled: e.disabled ||
|
|
374
|
-
onClick:
|
|
375
|
-
},
|
|
376
|
-
default:
|
|
373
|
+
disabled: e.disabled || O($).mode !== O($).homeMode || !O($).canPagePrevious,
|
|
374
|
+
onClick: O($).goToPreviousPage
|
|
375
|
+
}, O(L).part("arrow", { disabled: e.disabled || O($).mode !== O($).homeMode || !O($).canPagePrevious || void 0 })), {
|
|
376
|
+
default: k(() => [t[2] ||= _("svg", {
|
|
377
377
|
fill: "none",
|
|
378
378
|
height: "16",
|
|
379
379
|
viewBox: "0 0 16 16",
|
|
380
380
|
width: "16",
|
|
381
381
|
xmlns: "http://www.w3.org/2000/svg"
|
|
382
|
-
}, [
|
|
382
|
+
}, [_("path", {
|
|
383
383
|
d: "M10 12 6 8l4-4",
|
|
384
384
|
stroke: "currentColor",
|
|
385
385
|
"stroke-linecap": "round",
|
|
386
386
|
"stroke-linejoin": "round",
|
|
387
387
|
"stroke-width": "1.5"
|
|
388
|
-
})], -1),
|
|
388
|
+
})], -1), _("span", Se, D(O($).previousPageLabel), 1)]),
|
|
389
389
|
_: 1
|
|
390
390
|
}, 16, [
|
|
391
391
|
"aria-label",
|
|
392
392
|
"disabled",
|
|
393
393
|
"onClick"
|
|
394
394
|
]),
|
|
395
|
-
|
|
395
|
+
_("div", Ce, [e.type === "month" ? h("", !0) : (C(), m(s, x({
|
|
396
396
|
key: 0,
|
|
397
|
-
ref:
|
|
398
|
-
"aria-expanded":
|
|
399
|
-
"aria-label":
|
|
400
|
-
class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active":
|
|
397
|
+
ref: O($).setMonthHeadingButton,
|
|
398
|
+
"aria-expanded": O($).mode === "month",
|
|
399
|
+
"aria-label": O($).monthHeadingLabel,
|
|
400
|
+
class: ["bb-calendar__month bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": O($).mode === "month" }],
|
|
401
401
|
disabled: e.disabled,
|
|
402
|
-
onClick: t[0] ||= (e) =>
|
|
403
|
-
onKeydown:
|
|
404
|
-
},
|
|
405
|
-
active:
|
|
402
|
+
onClick: t[0] ||= (e) => O($).toggleMode("month"),
|
|
403
|
+
onKeydown: O($).onMonthHeadingKeydown
|
|
404
|
+
}, O(L).part("month", {
|
|
405
|
+
active: O($).mode === "month",
|
|
406
406
|
disabled: e.disabled || void 0
|
|
407
407
|
})), {
|
|
408
|
-
default:
|
|
408
|
+
default: k(() => [v(D(O($).formattedMonth), 1)]),
|
|
409
409
|
_: 1
|
|
410
410
|
}, 16, [
|
|
411
411
|
"aria-expanded",
|
|
@@ -413,19 +413,19 @@ var _e = ["role"], ve = {
|
|
|
413
413
|
"class",
|
|
414
414
|
"disabled",
|
|
415
415
|
"onKeydown"
|
|
416
|
-
])),
|
|
417
|
-
ref:
|
|
418
|
-
"aria-expanded":
|
|
419
|
-
"aria-label":
|
|
420
|
-
class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active":
|
|
421
|
-
disabled: e.disabled || !
|
|
422
|
-
onClick: t[1] ||= (e) =>
|
|
423
|
-
onKeydown:
|
|
424
|
-
},
|
|
425
|
-
active:
|
|
426
|
-
disabled: e.disabled || !
|
|
416
|
+
])), y(s, x({
|
|
417
|
+
ref: O($).setYearHeadingButton,
|
|
418
|
+
"aria-expanded": O($).mode === "year",
|
|
419
|
+
"aria-label": O($).yearHeadingLabel,
|
|
420
|
+
class: ["bb-calendar__year bb-calendar__heading-btn", { "bb-calendar__heading-btn--active": O($).mode === "year" }],
|
|
421
|
+
disabled: e.disabled || !O($).canOpenYearPanel,
|
|
422
|
+
onClick: t[1] ||= (e) => O($).toggleMode("year"),
|
|
423
|
+
onKeydown: O($).onYearHeadingKeydown
|
|
424
|
+
}, O(L).part("year", {
|
|
425
|
+
active: O($).mode === "year",
|
|
426
|
+
disabled: e.disabled || !O($).canOpenYearPanel || void 0
|
|
427
427
|
})), {
|
|
428
|
-
default:
|
|
428
|
+
default: k(() => [v(D(O($).formattedYear), 1)]),
|
|
429
429
|
_: 1
|
|
430
430
|
}, 16, [
|
|
431
431
|
"aria-expanded",
|
|
@@ -434,73 +434,73 @@ var _e = ["role"], ve = {
|
|
|
434
434
|
"disabled",
|
|
435
435
|
"onKeydown"
|
|
436
436
|
])]),
|
|
437
|
-
|
|
438
|
-
"aria-label":
|
|
437
|
+
y(s, x({
|
|
438
|
+
"aria-label": O($).nextPageLabel,
|
|
439
439
|
class: "bb-calendar__arrow",
|
|
440
|
-
disabled: e.disabled ||
|
|
441
|
-
onClick:
|
|
442
|
-
},
|
|
443
|
-
default:
|
|
440
|
+
disabled: e.disabled || O($).mode !== O($).homeMode || !O($).canPageNext,
|
|
441
|
+
onClick: O($).goToNextPage
|
|
442
|
+
}, O(L).part("arrow", { disabled: e.disabled || O($).mode !== O($).homeMode || !O($).canPageNext || void 0 })), {
|
|
443
|
+
default: k(() => [t[3] ||= _("svg", {
|
|
444
444
|
fill: "none",
|
|
445
445
|
height: "16",
|
|
446
446
|
viewBox: "0 0 16 16",
|
|
447
447
|
width: "16",
|
|
448
448
|
xmlns: "http://www.w3.org/2000/svg"
|
|
449
|
-
}, [
|
|
449
|
+
}, [_("path", {
|
|
450
450
|
d: "M6 12l4-4-4-4",
|
|
451
451
|
stroke: "currentColor",
|
|
452
452
|
"stroke-linecap": "round",
|
|
453
453
|
"stroke-linejoin": "round",
|
|
454
454
|
"stroke-width": "1.5"
|
|
455
|
-
})], -1),
|
|
455
|
+
})], -1), _("span", we, D(O($).nextPageLabel), 1)]),
|
|
456
456
|
_: 1
|
|
457
457
|
}, 16, [
|
|
458
458
|
"aria-label",
|
|
459
459
|
"disabled",
|
|
460
460
|
"onClick"
|
|
461
461
|
])
|
|
462
|
-
], 16)),
|
|
463
|
-
|
|
464
|
-
default:
|
|
465
|
-
id:
|
|
462
|
+
], 16)), _("div", Te, [
|
|
463
|
+
O($).isCoarse ? h("", !0) : (C(), m(O(et), { key: 0 }, {
|
|
464
|
+
default: k(({ days: t }) => [_("div", {
|
|
465
|
+
id: V,
|
|
466
466
|
ref: t.setCalendarEl,
|
|
467
|
-
"aria-label":
|
|
468
|
-
class:
|
|
469
|
-
inert:
|
|
467
|
+
"aria-label": O(B)("datePicker.calendarLabel").value,
|
|
468
|
+
class: S(["bb-calendar__days-selector", { "bb-calendar__days-selector--hidden": O($).mode !== "day" }]),
|
|
469
|
+
inert: O($).mode !== "day",
|
|
470
470
|
role: "grid",
|
|
471
471
|
onKeydown: [
|
|
472
472
|
t.onDayTypeaheadKeydown,
|
|
473
|
-
j(
|
|
474
|
-
j(
|
|
475
|
-
j(
|
|
476
|
-
j(
|
|
477
|
-
j(
|
|
478
|
-
j(
|
|
479
|
-
j(
|
|
480
|
-
j(
|
|
473
|
+
A(j(t.onArrowDown, ["prevent"]), ["down"]),
|
|
474
|
+
A(j(t.onEnd, ["prevent"]), ["end"]),
|
|
475
|
+
A(j(t.onHome, ["prevent"]), ["home"]),
|
|
476
|
+
A(j(t.onArrowLeft, ["prevent"]), ["left"]),
|
|
477
|
+
A(j(t.onPageDown, ["prevent"]), ["page-down"]),
|
|
478
|
+
A(j(t.onPageUp, ["prevent"]), ["page-up"]),
|
|
479
|
+
A(j(t.onArrowRight, ["prevent"]), ["right"]),
|
|
480
|
+
A(j(t.onArrowUp, ["prevent"]), ["up"])
|
|
481
481
|
],
|
|
482
482
|
onMouseleave: t.onGridMouseleave,
|
|
483
483
|
onMouseover: t.onGridMouseover
|
|
484
|
-
}, [
|
|
484
|
+
}, [y(ne, {
|
|
485
485
|
direction: t.direction,
|
|
486
486
|
gap: 30
|
|
487
487
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
key:
|
|
488
|
+
default: k(() => [(C(), g("div", {
|
|
489
|
+
key: O($).cursor.month().toString(),
|
|
490
490
|
class: "bb-calendar__month-grid",
|
|
491
491
|
role: "none"
|
|
492
|
-
}, [
|
|
492
|
+
}, [_("div", De, [(C(!0), g(f, null, T(t.mappedHeaders, (e) => (C(), g("div", x({
|
|
493
493
|
key: e.id,
|
|
494
494
|
abbr: e.accessibleLabel,
|
|
495
495
|
"aria-label": e.accessibleLabel,
|
|
496
496
|
class: "bb-calendar__cell-column-header",
|
|
497
497
|
role: "columnheader",
|
|
498
498
|
ref_for: !0
|
|
499
|
-
},
|
|
499
|
+
}, O(L).cellColumnHeader), D(e.label), 17, Oe))), 128))]), (C(!0), g(f, null, T(t.dates, (n) => (C(), g("div", {
|
|
500
500
|
key: n[0].id,
|
|
501
501
|
class: "bb-calendar__week",
|
|
502
502
|
role: "row"
|
|
503
|
-
}, [(
|
|
503
|
+
}, [(C(!0), g(f, null, T(n, (n) => (C(), g("div", x({
|
|
504
504
|
key: n.id,
|
|
505
505
|
"aria-current": n.today ? "date" : void 0,
|
|
506
506
|
"aria-selected": n.selected,
|
|
@@ -519,8 +519,8 @@ var _e = ["role"], ve = {
|
|
|
519
519
|
}],
|
|
520
520
|
role: "gridcell",
|
|
521
521
|
ref_for: !0
|
|
522
|
-
},
|
|
523
|
-
"aria-label": `${
|
|
522
|
+
}, O(L).part("day", Ie(n))), [_("button", x({
|
|
523
|
+
"aria-label": `${O(se)(n.original, O(Le).locale)}${n.selected ? `, ${O(B)("datePicker.selectedLabel").value}` : ""}`,
|
|
524
524
|
class: "bb-calendar__day-button",
|
|
525
525
|
"data-date": n.id,
|
|
526
526
|
disabled: e.disabled || n.disabled,
|
|
@@ -528,7 +528,7 @@ var _e = ["role"], ve = {
|
|
|
528
528
|
type: "button",
|
|
529
529
|
onClick: t.onButtonClick,
|
|
530
530
|
ref_for: !0
|
|
531
|
-
},
|
|
531
|
+
}, O(L).part("dayButton", Ie(n))), [E(e.$slots, I(n.id), {
|
|
532
532
|
first: n.first,
|
|
533
533
|
item: n.original,
|
|
534
534
|
label: n.label,
|
|
@@ -536,7 +536,7 @@ var _e = ["role"], ve = {
|
|
|
536
536
|
middle: n.middle,
|
|
537
537
|
outside: n.outside,
|
|
538
538
|
selected: n.selected
|
|
539
|
-
}, () => [
|
|
539
|
+
}, () => [E(e.$slots, "day", {
|
|
540
540
|
first: n.first,
|
|
541
541
|
item: n.original,
|
|
542
542
|
label: n.label,
|
|
@@ -544,7 +544,7 @@ var _e = ["role"], ve = {
|
|
|
544
544
|
middle: n.middle,
|
|
545
545
|
outside: n.outside,
|
|
546
546
|
selected: n.selected
|
|
547
|
-
}, () => [
|
|
547
|
+
}, () => [v(D(n.label), 1)])])], 16, Ae), _("div", je, [E(e.$slots, I(n.id, ":append"), {
|
|
548
548
|
first: n.first,
|
|
549
549
|
item: n.original,
|
|
550
550
|
label: n.label,
|
|
@@ -552,7 +552,7 @@ var _e = ["role"], ve = {
|
|
|
552
552
|
middle: n.middle,
|
|
553
553
|
outside: n.outside,
|
|
554
554
|
selected: n.selected
|
|
555
|
-
}, () => [
|
|
555
|
+
}, () => [E(e.$slots, "day:append", {
|
|
556
556
|
first: n.first,
|
|
557
557
|
item: n.original,
|
|
558
558
|
label: n.label,
|
|
@@ -560,28 +560,28 @@ var _e = ["role"], ve = {
|
|
|
560
560
|
middle: n.middle,
|
|
561
561
|
outside: n.outside,
|
|
562
562
|
selected: n.selected
|
|
563
|
-
})])])], 16,
|
|
563
|
+
})])])], 16, ke))), 128))]))), 128))]))]),
|
|
564
564
|
_: 2
|
|
565
|
-
}, 1032, ["direction"]),
|
|
565
|
+
}, 1032, ["direction"]), _("div", Me, D(t.rangePending ? O(B)("datePicker.selectEndDate").value : ""), 1)], 42, Ee)]),
|
|
566
566
|
_: 3
|
|
567
567
|
})),
|
|
568
|
-
|
|
569
|
-
default:
|
|
568
|
+
y(u, { duration: 150 }, {
|
|
569
|
+
default: k(() => [O($).mode === "month" ? (C(), m(re, { key: 0 })) : h("", !0)]),
|
|
570
570
|
_: 1
|
|
571
571
|
}),
|
|
572
|
-
|
|
573
|
-
default:
|
|
572
|
+
y(u, { duration: 150 }, {
|
|
573
|
+
default: k(() => [O($).mode === "year" ? (C(), m(ie, { key: 0 })) : h("", !0)]),
|
|
574
574
|
_: 1
|
|
575
575
|
})
|
|
576
576
|
])]),
|
|
577
|
-
|
|
578
|
-
id: `${
|
|
577
|
+
_("div", {
|
|
578
|
+
id: `${V}-status`,
|
|
579
579
|
"aria-atomic": "true",
|
|
580
580
|
"aria-live": "polite",
|
|
581
581
|
class: "bb-sr-only",
|
|
582
582
|
role: "status"
|
|
583
|
-
}, O(
|
|
584
|
-
], 2),
|
|
583
|
+
}, D(O($).modeAnnouncement), 9, Ne)
|
|
584
|
+
], 2), R.value ? (C(), m(te, {
|
|
585
585
|
key: 0,
|
|
586
586
|
ampm: e.ampm,
|
|
587
587
|
disabled: e.disabled || e.readonly || !Ge.value,
|
|
@@ -590,7 +590,7 @@ var _e = ["role"], ve = {
|
|
|
590
590
|
meridiem: Ye.value,
|
|
591
591
|
min: Z.value.min,
|
|
592
592
|
minute: qe.value,
|
|
593
|
-
passthrough:
|
|
593
|
+
passthrough: O(L),
|
|
594
594
|
second: Je.value,
|
|
595
595
|
seconds: e.seconds,
|
|
596
596
|
step: e.step,
|
|
@@ -607,8 +607,8 @@ var _e = ["role"], ve = {
|
|
|
607
607
|
"second",
|
|
608
608
|
"seconds",
|
|
609
609
|
"step"
|
|
610
|
-
])) :
|
|
610
|
+
])) : h("", !0)], 16, ve));
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
//#endregion
|
|
614
|
-
export {
|
|
614
|
+
export { M as default };
|