bitboss-ui 3.0.0-beta.68 → 3.0.0-beta.70
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 +250 -102
- package/bin/bitboss-ui-mcp.mjs +290 -129
- package/bin/bitboss-ui.mjs +24 -2077
- package/bin/cli.mjs +1941 -0
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbAvatar.md +1 -1
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBadgeButton.md +1 -1
- package/dist/ai/BbBaseButton.md +5 -5
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +1 -1
- package/dist/ai/BbCalendar.md +14 -1
- package/dist/ai/BbCarousel.md +1096 -0
- package/dist/ai/BbCheckbox.md +7 -5
- package/dist/ai/BbCheckboxGroup.md +30 -21
- package/dist/ai/BbColorInput.md +12 -14
- package/dist/ai/BbColorPalette.md +4 -1
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +8 -2
- package/dist/ai/BbDatePickerInput.md +14 -4
- package/dist/ai/BbDialog.md +1 -1
- package/dist/ai/BbDropdown.md +10 -13
- package/dist/ai/BbDropdownButton.md +3 -3
- package/dist/ai/BbDropzone.md +7 -18
- package/dist/ai/BbForm.md +8 -4
- package/dist/ai/BbGallery.md +2034 -0
- package/dist/ai/BbHost.md +1 -1
- package/dist/ai/BbHoverCard.md +2 -2
- package/dist/ai/BbNumberInput.md +4 -4
- package/dist/ai/BbOffCanvas.md +12 -8
- package/dist/ai/BbPagination.md +6 -5
- package/dist/ai/BbPopover.md +23 -10
- package/dist/ai/BbRadio.md +9 -7
- package/dist/ai/BbRadioGroup.md +29 -22
- package/dist/ai/BbRating.md +13 -15
- package/dist/ai/BbSelect.md +11 -11
- package/dist/ai/BbSelectPopover.md +6 -6
- package/dist/ai/BbSlider.md +9 -6
- package/dist/ai/BbSpinner.md +1 -1
- package/dist/ai/BbSwitch.md +8 -7
- package/dist/ai/BbSwitchGroup.md +10 -10
- package/dist/ai/BbTable.md +19 -21
- package/dist/ai/BbTabs.md +23 -26
- package/dist/ai/BbTabsList.md +4 -4
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +4 -4
- package/dist/ai/BbTextInput.md +16 -14
- package/dist/ai/BbTextarea.md +6 -5
- package/dist/ai/BbTimePicker.md +2 -2
- package/dist/ai/BbTimePickerInput.md +4 -4
- package/dist/ai/BbToast.md +8 -3
- package/dist/ai/BbTooltip.md +5 -4
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/ClearableButton.md +1 -1
- package/dist/ai/CommonField.md +5 -5
- package/dist/ai/CommonFieldInput.md +1 -1
- package/dist/ai/CommonPopover.md +4 -4
- package/dist/ai/CommonTimeSelector.md +1 -1
- package/dist/ai/ErrorIcon.md +1 -1
- package/dist/ai/FlatListBox.md +1 -1
- package/dist/ai/GroupedListBox.md +1 -1
- package/dist/ai/ListBox.md +1 -1
- package/dist/ai/OptionsContainer.md +13 -10
- package/dist/ai/WarningIcon.md +1 -1
- package/dist/ai/changelog.json +602 -10
- package/dist/ai/components.json +101 -233
- package/dist/ai/composables/useToast.md +15 -15
- package/dist/ai/guides/agent-contract.md +7 -2
- package/dist/ai/guides/ai-router.md +17 -11
- package/dist/ai/guides/calendars-and-digits.md +123 -0
- package/dist/ai/guides/component-picker.md +2 -1
- package/dist/ai/guides/design-language.md +1 -1
- package/dist/ai/guides/design-tokens.md +4 -1
- package/dist/ai/guides/eslint-rules.md +18 -1
- package/dist/ai/guides/inertia-helpers.md +322 -41
- package/dist/ai/guides/installation-and-plugin-setup.md +166 -31
- package/dist/ai/guides/migration/components/bb-rating.md +1 -1
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +32 -14
- package/dist/ai/guides/migration/components/bb-toast.md +4 -3
- package/dist/ai/guides/migration/v2-to-v3.md +186 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +38 -11
- package/dist/ai/guides/options-items-playbook.md +5 -1
- package/dist/ai/guides/passthrough.md +13 -6
- package/dist/ai/guides/preset-components.md +19 -10
- package/dist/ai/guides/ssr-prefill.md +7 -1
- package/dist/ai/guides/validated-forms.md +9 -0
- package/dist/ai/helpers/definePreset.ts +8 -4
- package/dist/ai/helpers/inertia/manifest.json +23 -14
- package/dist/ai/helpers/inertia/useQuery.ts +74 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +33 -1
- package/dist/ai/helpers/inertia/useRouteQuery.ts +158 -30
- package/dist/ai/index.md +4 -1
- package/dist/ai/manifest/common.json +7 -7
- package/dist/ai/manifest/components/BbAccordion.tree.json +22 -4
- package/dist/ai/manifest/components/BbAlert.tree.json +26 -3
- package/dist/ai/manifest/components/BbAsterisk.tree.json +7 -1
- package/dist/ai/manifest/components/BbAvatar.tree.json +16 -2
- package/dist/ai/manifest/components/BbBadge.json +1 -1
- package/dist/ai/manifest/components/BbBadge.tree.json +39 -4
- package/dist/ai/manifest/components/BbBadgeButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbBaseButton.tree.json +16 -1
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +18 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +14 -1
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +17 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +34 -4
- package/dist/ai/manifest/components/BbButton.json +1 -1
- package/dist/ai/manifest/components/BbButton.tree.json +75 -4
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbCalendar.tree.json +81 -6
- package/dist/ai/manifest/components/BbCarousel.json +60 -0
- package/dist/ai/manifest/components/BbCarousel.tree.json +142 -0
- package/dist/ai/manifest/components/BbCheckbox.json +1 -1
- package/dist/ai/manifest/components/BbCheckbox.tree.json +31 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.json +3 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +76 -11
- package/dist/ai/manifest/components/BbCollapsible.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +2 -2
- package/dist/ai/manifest/components/BbColorInput.tree.json +47 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -2
- package/dist/ai/manifest/components/BbColorPalette.tree.json +36 -3
- package/dist/ai/manifest/components/BbConfigScope.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +27 -3
- package/dist/ai/manifest/components/BbDatePicker.json +5 -5
- package/dist/ai/manifest/components/BbDatePicker.tree.json +42 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +83 -4
- package/dist/ai/manifest/components/BbDialog.tree.json +28 -3
- package/dist/ai/manifest/components/BbDropdown.json +8 -7
- package/dist/ai/manifest/components/BbDropdown.tree.json +80 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +4 -4
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +46 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -1
- package/dist/ai/manifest/components/BbDropzone.tree.json +27 -1
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbGallery.json +54 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +139 -0
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +3 -3
- package/dist/ai/manifest/components/BbHoverCard.tree.json +18 -1
- package/dist/ai/manifest/components/BbIcon.tree.json +7 -1
- package/dist/ai/manifest/components/BbIndicator.tree.json +27 -1
- package/dist/ai/manifest/components/BbNumberInput.json +2 -2
- package/dist/ai/manifest/components/BbNumberInput.tree.json +38 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +55 -2
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +22 -3
- package/dist/ai/manifest/components/BbPopover.json +3 -3
- package/dist/ai/manifest/components/BbPopover.tree.json +20 -2
- package/dist/ai/manifest/components/BbProgress.tree.json +9 -1
- package/dist/ai/manifest/components/BbRadio.tree.json +30 -2
- package/dist/ai/manifest/components/BbRadioGroup.json +3 -3
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +75 -11
- package/dist/ai/manifest/components/BbRating.json +4 -4
- package/dist/ai/manifest/components/BbRating.removed.json +1 -0
- package/dist/ai/manifest/components/BbRating.tree.json +37 -2
- package/dist/ai/manifest/components/BbSelect.json +3 -3
- package/dist/ai/manifest/components/BbSelect.tree.json +65 -4
- package/dist/ai/manifest/components/BbSelectPopover.json +8 -6
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +91 -8
- package/dist/ai/manifest/components/BbSlider.json +13 -12
- package/dist/ai/manifest/components/BbSlider.tree.json +44 -1
- package/dist/ai/manifest/components/BbSmoothHeight.tree.json +10 -1
- package/dist/ai/manifest/components/BbSpinner.tree.json +21 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -2
- package/dist/ai/manifest/components/BbSwitch.tree.json +31 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +4 -4
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +61 -3
- package/dist/ai/manifest/components/BbTable.json +8 -8
- package/dist/ai/manifest/components/BbTable.tree.json +142 -4
- package/dist/ai/manifest/components/BbTabs.json +4 -4
- package/dist/ai/manifest/components/BbTabs.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabs.tree.json +34 -3
- package/dist/ai/manifest/components/BbTabsList.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabsList.tree.json +24 -2
- package/dist/ai/manifest/components/BbTabsPanels.tree.json +16 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
- package/dist/ai/manifest/components/BbTag.json +2 -2
- package/dist/ai/manifest/components/BbTag.tree.json +47 -3
- package/dist/ai/manifest/components/BbTextInput.json +2 -2
- package/dist/ai/manifest/components/BbTextInput.tree.json +41 -2
- package/dist/ai/manifest/components/BbTextarea.json +2 -2
- package/dist/ai/manifest/components/BbTextarea.tree.json +44 -2
- package/dist/ai/manifest/components/BbTimePicker.json +5 -5
- package/dist/ai/manifest/components/BbTimePicker.tree.json +30 -3
- package/dist/ai/manifest/components/BbTimePickerInput.json +2 -2
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +55 -5
- package/dist/ai/manifest/components/BbToast.json +1 -1
- package/dist/ai/manifest/components/BbToast.tree.json +41 -2
- package/dist/ai/manifest/components/BbTooltip.json +3 -3
- package/dist/ai/manifest/components/BbTooltip.tree.json +17 -1
- package/dist/ai/manifest/components/BbTree.tree.json +14 -1
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/ClearableButton.tree.json +8 -2
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +68 -1
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +36 -6
- package/dist/ai/manifest/components/CommonPopover.json +7 -5
- package/dist/ai/manifest/components/CommonPopover.tree.json +11 -1
- package/dist/ai/manifest/components/CommonTimeSelector.tree.json +18 -2
- package/dist/ai/manifest/components/ErrorIcon.tree.json +8 -2
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -2
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +10 -7
- package/dist/ai/manifest/components/WarningIcon.tree.json +8 -2
- package/dist/ai/manifest/index.json +7 -5
- package/dist/ai/manifest/meta.json +12 -147
- package/dist/ai/manifest/types.advanced.json +80 -76
- package/dist/ai/manifest/types.api.json +17 -16
- package/dist/ai/manifest/types.wrapper.json +116 -112
- package/dist/ai/recipes/inertia/approvals-inbox.md +8 -8
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +11 -11
- package/dist/ai/recipes/inertia/onboarding.md +13 -16
- package/dist/ai/recipes/inertia/ownership-atlas.md +6 -6
- package/dist/ai/recipes/inertia/record-form.md +47 -26
- package/dist/ai/recipes/inertia/records-workspace.md +11 -10
- package/dist/ai/recipes/inertia/settings-workspace.md +11 -11
- package/dist/ai/recipes/inertia/upload-center.md +10 -10
- package/dist/ai/recipes/inertia/wizard-form.md +14 -14
- package/dist/ai/recipes/nuxt/approvals-inbox.md +11 -11
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -13
- package/dist/ai/recipes/nuxt/onboarding.md +13 -16
- package/dist/ai/recipes/nuxt/ownership-atlas.md +10 -10
- package/dist/ai/recipes/nuxt/record-form.md +41 -25
- package/dist/ai/recipes/nuxt/records-workspace.md +14 -13
- package/dist/ai/recipes/nuxt/settings-workspace.md +10 -10
- package/dist/ai/recipes/nuxt/upload-center.md +11 -11
- package/dist/ai/recipes/nuxt/wizard-form.md +15 -15
- package/dist/ai/recipes/vue/approvals-inbox.md +13 -11
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -13
- package/dist/ai/recipes/vue/onboarding.md +19 -17
- package/dist/ai/recipes/vue/ownership-atlas.md +10 -10
- package/dist/ai/recipes/vue/record-form.md +41 -25
- package/dist/ai/recipes/vue/records-workspace.md +16 -13
- package/dist/ai/recipes/vue/settings-workspace.md +13 -11
- package/dist/ai/recipes/vue/upload-center.md +11 -11
- package/dist/ai/recipes/vue/wizard-form.md +16 -14
- package/dist/ai/source/BbAccordion.md +11 -14
- package/dist/ai/source/BbAlert.md +95 -89
- package/dist/ai/source/BbAsterisk.md +6 -7
- package/dist/ai/source/BbAvatar.md +37 -37
- package/dist/ai/source/BbBadge.md +85 -81
- package/dist/ai/source/BbBadgeButton.md +80 -76
- package/dist/ai/source/BbBaseButton.md +284 -276
- package/dist/ai/source/BbBaseCheckboxIcon.md +69 -63
- package/dist/ai/source/BbBaseRadioIcon.md +63 -57
- package/dist/ai/source/BbBaseSwitchIcon.md +84 -65
- package/dist/ai/source/BbBreadcrumbs.md +76 -63
- package/dist/ai/source/BbButton.md +63 -55
- package/dist/ai/source/BbCalendar.md +163 -146
- package/dist/ai/source/BbCarousel.md +3000 -0
- package/dist/ai/source/BbCheckbox.md +211 -186
- package/dist/ai/source/BbCheckboxGroup.md +108 -54
- package/dist/ai/source/BbCollapsible.md +7 -10
- package/dist/ai/source/BbColorInput.md +233 -227
- package/dist/ai/source/BbColorPalette.md +218 -140
- package/dist/ai/source/BbConfirm.md +33 -29
- package/dist/ai/source/BbConfirmPortal.md +30 -26
- package/dist/ai/source/BbDatePicker.md +202 -181
- package/dist/ai/source/BbDatePickerInput.md +751 -407
- package/dist/ai/source/BbDialog.md +187 -181
- package/dist/ai/source/BbDropdown.md +276 -218
- package/dist/ai/source/BbDropdownButton.md +50 -45
- package/dist/ai/source/BbDropdownGroup.md +244 -210
- package/dist/ai/source/BbDropzone.md +101 -100
- package/dist/ai/source/BbForm.md +28 -28
- package/dist/ai/source/BbGallery.md +2027 -0
- package/dist/ai/source/BbHost.md +2 -2
- package/dist/ai/source/BbHoverCard.md +28 -18
- package/dist/ai/source/BbHoverCardPortal.md +9 -12
- package/dist/ai/source/BbIcon.md +27 -26
- package/dist/ai/source/BbIndicator.md +76 -70
- package/dist/ai/source/BbNumberInput.md +300 -293
- package/dist/ai/source/BbOffCanvas.md +236 -214
- package/dist/ai/source/BbPagination.md +134 -98
- package/dist/ai/source/BbPopover.md +32 -22
- package/dist/ai/source/BbPopoverPortal.md +9 -12
- package/dist/ai/source/BbProgress.md +20 -12
- package/dist/ai/source/BbRadio.md +188 -175
- package/dist/ai/source/BbRadioGroup.md +409 -352
- package/dist/ai/source/BbRating.md +192 -167
- package/dist/ai/source/BbSelect.md +474 -461
- package/dist/ai/source/BbSelectPopover.md +427 -385
- package/dist/ai/source/BbSlider.md +333 -266
- package/dist/ai/source/BbSmoothHeight.md +8 -9
- package/dist/ai/source/BbSpinner.md +20 -20
- package/dist/ai/source/BbSwitch.md +25 -13
- package/dist/ai/source/BbSwitchGroup.md +89 -26
- package/dist/ai/source/BbTable.md +571 -508
- package/dist/ai/source/BbTabs.md +129 -114
- package/dist/ai/source/BbTabsList.md +163 -135
- package/dist/ai/source/BbTabsPanels.md +127 -112
- package/dist/ai/source/BbTabsRoot.md +124 -109
- package/dist/ai/source/BbTag.md +264 -266
- package/dist/ai/source/BbTextInput.md +31 -25
- package/dist/ai/source/BbTextarea.md +33 -27
- package/dist/ai/source/BbTimePicker.md +128 -121
- package/dist/ai/source/BbTimePickerInput.md +356 -302
- package/dist/ai/source/BbToast.md +80 -36
- package/dist/ai/source/BbToastPortal.md +42 -30
- package/dist/ai/source/BbTooltip.md +154 -128
- package/dist/ai/source/BbTree.md +23 -15
- package/dist/ai/source/CommonField.md +94 -59
- package/dist/ai/source/CommonFieldInput.md +9 -9
- package/dist/ai/source/CommonPopover.md +41 -12
- package/dist/ai/source/CommonTimeSelector.md +41 -8
- package/dist/ai/source/FlatListBox.md +8 -7
- package/dist/ai/source/GroupedListBox.md +9 -8
- package/dist/ai/source/ListBox.md +5 -4
- package/dist/ai/source/OptionsContainer.md +43 -12
- package/dist/assets/svgs/chevron_left.svg_raw.js +3 -0
- package/dist/assets/svgs/pause.svg_raw.js +3 -0
- package/dist/assets/svgs/play.svg_raw.js +3 -0
- package/dist/assets/svgs/star.svg_raw.js +1 -1
- package/dist/calendar-runtime.js +112 -0
- package/dist/calendars.js +83 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbAccordion/types.d.ts +5 -6
- package/dist/components/BbAlert/BbAlert.vue.d.ts +4 -4
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAlert/ptKeys.generated.d.ts +104 -0
- package/dist/components/BbAlert/types.d.ts +15 -8
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +2 -2
- package/dist/components/BbAsterisk/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbAsterisk/types.d.ts +4 -5
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +3 -3
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +12 -0
- package/dist/components/BbAvatar/types.d.ts +5 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +4 -4
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +2 -2
- package/dist/components/BbBadge/ptKeys.generated.d.ts +160 -0
- package/dist/components/BbBadge/types.d.ts +16 -9
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +2 -2
- package/dist/components/BbBaseButton/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbBaseButton/types.d.ts +13 -6
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseCheckboxIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +12 -6
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseRadioIcon/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +12 -6
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseSwitchIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +12 -6
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +2 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBreadcrumbs/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +15 -8
- package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/components/BbButton/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbButton/toggleRoving.js +29 -28
- package/dist/components/BbButton/types.d.ts +17 -11
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +9 -71
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +34 -32
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +67 -65
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +76 -67
- package/dist/components/BbCalendar/calendarMath.js +124 -0
- package/dist/components/BbCalendar/ptKeys.generated.d.ts +248 -0
- package/dist/components/BbCalendar/types.d.ts +15 -9
- package/dist/components/BbCalendar/useCalendarGrid.js +264 -210
- package/dist/components/BbCalendar/useDayGrid.js +178 -172
- package/dist/components/BbCalendar/useDayjsLocale.js +31 -29
- package/dist/components/BbCalendar/useToday.js +22 -12
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +51 -0
- package/dist/components/BbCarousel/BbCarousel.vue.js +5 -0
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +843 -0
- package/dist/components/BbCarousel/dragRelease.js +14 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +64 -0
- package/dist/components/BbCarousel/types.d.ts +218 -0
- package/dist/components/BbCarousel/types.js +28 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -4
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/components/BbCheckbox/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbCheckbox/types.d.ts +30 -14
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +164 -326
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/components/BbCheckboxGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +32 -23
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +3 -3
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCollapsible/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbCollapsible/types.d.ts +5 -6
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -3
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +124 -124
- package/dist/components/BbColorInput/ptKeys.generated.d.ts +656 -0
- package/dist/components/BbColorInput/types.d.ts +24 -14
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +324 -287
- package/dist/components/BbColorPalette/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbColorPalette/types.d.ts +15 -8
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +1 -1
- package/dist/components/BbConfigScope/types.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +24 -24
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -1
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +184 -0
- package/dist/components/BbConfirm/types.d.ts +14 -7
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -97
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +208 -205
- package/dist/components/BbDatePicker/ptKeys.generated.d.ts +324 -0
- package/dist/components/BbDatePicker/types.d.ts +20 -13
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +17 -306
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +696 -579
- package/dist/components/BbDatePickerInput/calendarFields.js +188 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.js +11 -1
- package/dist/components/BbDatePickerInput/ptKeys.generated.d.ts +1156 -0
- package/dist/components/BbDatePickerInput/types.d.ts +30 -20
- package/dist/components/BbDialog/BbDialog.vue.d.ts +6 -6
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/BbDialog/ptKeys.generated.d.ts +100 -0
- package/dist/components/BbDialog/types.d.ts +24 -18
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -3
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +333 -327
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +278 -277
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +228 -0
- package/dist/components/BbDropdown/types.d.ts +40 -35
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -4
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +84 -84
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +616 -0
- package/dist/components/BbDropdownButton/types.d.ts +17 -10
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +6 -25
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbDropzone/ptKeys.generated.d.ts +76 -0
- package/dist/components/BbDropzone/types.d.ts +15 -8
- package/dist/components/BbForm/BbForm.vue.d.ts +3 -3
- package/dist/components/BbForm/formSchema.d.ts +4 -4
- package/dist/components/BbGallery/BbGallery.vue.d.ts +50 -0
- package/dist/components/BbGallery/BbGallery.vue.js +5 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +587 -0
- package/dist/components/BbGallery/findItem.js +41 -0
- package/dist/components/BbGallery/ptKeys.generated.d.ts +112 -0
- package/dist/components/BbGallery/types.d.ts +177 -0
- package/dist/components/BbGallery/types.js +29 -0
- package/dist/components/BbHost/BbHost.vue.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +1 -1
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +3 -3
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +150 -144
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +1 -1
- package/dist/components/BbHoverCard/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbHoverCard/types.d.ts +8 -9
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -3
- package/dist/components/BbIcon/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbIcon/types.d.ts +7 -8
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +4 -4
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbIndicator/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbIndicator/types.d.ts +14 -7
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +3 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +79 -79
- package/dist/components/BbNumberInput/ptKeys.generated.d.ts +476 -0
- package/dist/components/BbNumberInput/types.d.ts +23 -13
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +7 -7
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +407 -406
- package/dist/components/BbOffCanvas/ptKeys.generated.d.ts +88 -0
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +4 -2
- package/dist/components/BbOffCanvas/sheetSnap.js +5 -5
- package/dist/components/BbOffCanvas/types.d.ts +30 -23
- package/dist/components/BbPagination/BbPagination.vue.d.ts +3 -3
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/BbPagination/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbPagination/types.d.ts +16 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +3 -3
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +119 -113
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +1 -1
- package/dist/components/BbPopover/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbPopover/types.d.ts +8 -9
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -2
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbProgress/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbProgress/types.d.ts +4 -5
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -4
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/components/BbRadio/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbRadio/types.d.ts +24 -13
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +148 -267
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +44 -44
- package/dist/components/BbRadioGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbRadioGroup/types.d.ts +32 -21
- package/dist/components/BbRating/BbRating.vue.d.ts +3 -3
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +107 -107
- package/dist/components/BbRating/ptKeys.generated.d.ts +152 -0
- package/dist/components/BbRating/types.d.ts +31 -20
- package/dist/components/BbRating/types.js +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +264 -497
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +190 -190
- package/dist/components/BbSelect/ptKeys.generated.d.ts +960 -0
- package/dist/components/BbSelect/types.d.ts +29 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +19 -51
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +518 -512
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +148 -0
- package/dist/components/BbSelectPopover/types.d.ts +23 -15
- package/dist/components/BbSlider/BbSlider.vue.d.ts +14 -80
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +286 -270
- package/dist/components/BbSlider/ptKeys.generated.d.ts +316 -0
- package/dist/components/BbSlider/types.d.ts +28 -16
- package/dist/components/BbSlider/types.js +2 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
- package/dist/components/BbSmoothHeight/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSmoothHeight/types.d.ts +5 -6
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -3
- package/dist/components/BbSpinner/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSpinner/types.d.ts +5 -6
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +4 -4
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/components/BbSwitch/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbSwitch/types.d.ts +15 -5
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +35 -114
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/components/BbSwitchGroup/ptKeys.generated.d.ts +332 -0
- package/dist/components/BbSwitchGroup/types.d.ts +14 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +10 -10
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1274 -1273
- package/dist/components/BbTable/ptKeys.generated.d.ts +280 -0
- package/dist/components/BbTable/types.d.ts +37 -29
- package/dist/components/BbTable/utils.js +89 -88
- package/dist/components/BbTabs/BbTabs.vue.d.ts +41 -69
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +121 -122
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +2 -2
- package/dist/components/BbTabs/ptKeys.generated.d.ts +226 -0
- package/dist/components/BbTabs/types.d.ts +40 -22
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -3
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +261 -262
- package/dist/components/BbTag/ptKeys.generated.d.ts +540 -0
- package/dist/components/BbTag/types.d.ts +23 -13
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +14 -166
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +110 -110
- package/dist/components/BbTextInput/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextInput/types.d.ts +23 -14
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +14 -166
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +110 -110
- package/dist/components/BbTextarea/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextarea/types.d.ts +23 -14
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +13 -33
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/BbTimePicker/ptKeys.generated.d.ts +80 -0
- package/dist/components/BbTimePicker/types.d.ts +17 -11
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +15 -198
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +398 -387
- package/dist/components/BbTimePickerInput/ptKeys.generated.d.ts +732 -0
- package/dist/components/BbTimePickerInput/types.d.ts +29 -17
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +59 -52
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -1
- package/dist/components/BbToast/ptKeys.generated.d.ts +232 -0
- package/dist/components/BbToast/types.d.ts +20 -11
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +4 -4
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -88
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbTooltip/types.d.ts +15 -8
- package/dist/components/BbTree/BbTree.vue.d.ts +7 -11
- package/dist/components/BbTree/ptKeys.generated.d.ts +16 -0
- package/dist/components/BbTree/types.d.ts +8 -9
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +9 -4
- package/dist/components/CommonField/types.d.ts +18 -14
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +56 -53
- package/dist/components/CommonPopover/resolvePlacement.js +9 -0
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +110 -99
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +55 -41
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/composables/overlayRegistry.d.ts +42 -25
- package/dist/composables/overlayRegistry.js +29 -16
- package/dist/composables/useBbConfig.d.ts +5 -5
- package/dist/composables/useBbDialog.d.ts +17 -17
- package/dist/composables/useBbDialog.js +2 -1
- package/dist/composables/useBbDropdown.d.ts +1 -1
- package/dist/composables/useBbForm.d.ts +2 -2
- package/dist/composables/useBbFormField.d.ts +4 -4
- package/dist/composables/useBbOffCanvas.d.ts +6 -6
- package/dist/composables/useBbTable.d.ts +4 -4
- package/dist/composables/useBbTabs.d.ts +4 -4
- package/dist/composables/useBbTabs.js +44 -43
- package/dist/composables/useCharacterCounter.d.ts +2 -2
- package/dist/composables/useChoiceIndicator.js +1 -1
- package/dist/composables/useConfirm.d.ts +11 -11
- package/dist/composables/useDirection.js +12 -0
- package/dist/composables/useFormBinding.d.ts +4 -4
- package/dist/composables/useId.d.ts +1 -1
- package/dist/composables/useOnDemandOpener.d.ts +3 -3
- package/dist/composables/usePassthrough.d.ts +6 -6
- package/dist/composables/useSafeArea.d.ts +1 -1
- package/dist/composables/useSafeAreaInternal.d.ts +1 -1
- package/dist/composables/useSegmentedFields.js +165 -115
- package/dist/composables/useToast.d.ts +8 -1
- package/dist/composables/useToast.js +39 -35
- package/dist/composables/useTypeahead.js +22 -21
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbColor.d.ts +1 -1
- package/dist/directives/bbDate.d.ts +1 -1
- package/dist/directives/bbDialog.d.ts +3 -3
- package/dist/directives/bbDropdown.d.ts +1 -1
- package/dist/directives/bbGallery.d.ts +64 -0
- package/dist/directives/bbGallery.js +38 -0
- package/dist/directives/bbHoverCard.d.ts +3 -3
- package/dist/directives/bbOffCanvas.d.ts +2 -2
- package/dist/directives/bbPopover.d.ts +3 -3
- package/dist/directives/bbTime.d.ts +1 -1
- package/dist/directives/bbTooltip.d.ts +4 -4
- package/dist/directives/directivePortal.d.ts +4 -4
- package/dist/directives/overlayTrigger.d.ts +4 -4
- package/dist/directives/overlayTrigger.js +2 -1
- package/dist/i18n/eraNames.js +2013 -0
- package/dist/i18n/index.d.ts +9 -7
- package/dist/i18n/localeTags.d.ts +36 -0
- package/dist/i18n/locales/ar.json +178 -0
- package/dist/i18n/locales/cs.json +23 -2
- package/dist/i18n/locales/da.json +23 -2
- package/dist/i18n/locales/de-CH.json +23 -2
- package/dist/i18n/locales/de.json +23 -2
- package/dist/i18n/locales/el.json +23 -2
- package/dist/i18n/locales/en-GB.json +23 -2
- package/dist/i18n/locales/en.json +23 -2
- package/dist/i18n/locales/es-MX.json +23 -2
- package/dist/i18n/locales/es.json +23 -2
- package/dist/i18n/locales/fa.json +178 -0
- package/dist/i18n/locales/fi.json +23 -2
- package/dist/i18n/locales/fr.json +23 -2
- package/dist/i18n/locales/he.json +178 -0
- package/dist/i18n/locales/hu.json +23 -2
- package/dist/i18n/locales/it.json +23 -2
- package/dist/i18n/locales/ja.json +23 -2
- package/dist/i18n/locales/ko.json +23 -2
- package/dist/i18n/locales/nb.json +23 -2
- package/dist/i18n/locales/nl.json +23 -2
- package/dist/i18n/locales/pl.json +23 -2
- package/dist/i18n/locales/pt-BR.json +23 -2
- package/dist/i18n/locales/pt-PT.json +23 -2
- package/dist/i18n/locales/ro.json +23 -2
- package/dist/i18n/locales/ru.json +23 -2
- package/dist/i18n/locales/sv.json +23 -2
- package/dist/i18n/locales/tr.json +23 -2
- package/dist/i18n/locales/uk.json +23 -2
- package/dist/i18n/locales/zh-CN.json +23 -2
- package/dist/i18n/locales/zh-HK.json +23 -2
- package/dist/i18n/locales/zh-TW.json +23 -2
- package/dist/i18n/regionHints.js +22 -22
- package/dist/i18n/regions.d.ts +73 -24
- package/dist/i18n/regions.js +57 -12
- package/dist/index.d.ts +195 -189
- package/dist/index.js +57 -54
- package/dist/llms-full.txt +9299 -5210
- package/dist/llms-medium.txt +491 -342
- package/dist/llms.txt +4 -3
- package/dist/locale-blueprint.json +26 -2
- package/dist/locale-tags.js +81 -0
- package/dist/mcp-sdk.LICENSES.txt +210 -0
- package/dist/mcp-sdk.mjs +78 -0
- package/dist/nuxt-auto-imports.d.ts +1 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +5 -5
- package/dist/nuxt.js +20 -17
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +18 -17
- package/dist/project-dts.d.ts +4 -4
- package/dist/project-dts.js +79 -72
- package/dist/runtime/nuxt-plugin.js +22 -21
- package/dist/scripts/lib/atomic-write.js +42 -0
- package/dist/setup-kit.LICENSES.txt +23 -0
- package/dist/setup-kit.mjs +9 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -3
- 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 +2 -2
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +25 -3
- package/dist/types/Config.d.ts +9 -9
- package/dist/types/ConfigDefaults.d.ts +37 -37
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DatePickerType.d.ts +29 -2
- package/dist/types/DatePickerType.js +6 -2
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +1 -1
- package/dist/types/ItemAccessor.d.ts +7 -1
- package/dist/types/ItemProps.d.ts +3 -3
- package/dist/types/ItemsProvider.d.ts +2 -2
- package/dist/types/Placement.d.ts +7 -2
- package/dist/types/RadioVariant.d.ts +2 -2
- 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/fallthrough.d.ts +1 -1
- package/dist/types/passthrough.d.ts +19 -19
- package/dist/types/ptComponentMap.d.ts +17 -15
- package/dist/utilities/calendar/canonicalParts.js +20 -0
- package/dist/utilities/calendar/digits.js +26 -0
- package/dist/utilities/calendar/gregorian.js +36 -0
- package/dist/utilities/calendar/index.js +1 -0
- package/dist/utilities/calendar/resolve.js +12 -0
- package/dist/utilities/calendar/types.d.ts +140 -0
- package/dist/utilities/calendar/types.js +83 -0
- package/dist/utilities/functions/convertDateValue.js +22 -17
- package/dist/utilities/functions/isDateDisabled.js +38 -21
- package/dist/utilities/functions/normalizeDateBound.js +52 -11
- package/dist/utilities/functions/slotKey.d.ts +1 -1
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +1 -1
- package/dist/utils/configDefaults.js +73 -43
- package/dist/utils/cssLayers.d.ts +1 -1
- package/dist/utils/passthrough.d.ts +1 -1
- package/dist/utils/releasedActivator.js +11 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +90 -32
- package/dist/vite.js +466 -361
- package/llms.txt +5 -4
- package/package.json +52 -19
- package/scripts/README.md +26 -25
- package/scripts/lib/agent-manifest.mjs +105 -22
- package/scripts/lib/agent-refresh.mjs +157 -0
- package/scripts/lib/agent-setup.mjs +710 -0
- package/scripts/lib/atomic-write.d.mts +6 -0
- package/scripts/lib/atomic-write.mjs +85 -0
- package/scripts/lib/carousel-items-without-slide.mjs +263 -0
- package/scripts/lib/carousel-prop-or-local.mjs +117 -0
- package/scripts/lib/check-fix.mjs +1 -1
- package/scripts/lib/collapsible-trigger-aria.mjs +1 -1
- package/scripts/lib/css-class-check.mjs +3 -3
- package/scripts/lib/css-local-check.mjs +25 -17
- package/scripts/lib/css-surface-answer.mjs +117 -0
- package/scripts/lib/define-preset-copy.mjs +24 -4
- package/scripts/lib/distributed-alias.mjs +81 -0
- package/scripts/lib/doc-sections.mjs +12 -4
- package/scripts/lib/dropdown-default-slot.mjs +1 -1
- package/scripts/lib/eslint-disable.mjs +58 -2
- package/scripts/lib/eslint-plugin.d.ts +10 -1
- package/scripts/lib/eslint-plugin.mjs +587 -71
- package/scripts/lib/form-v-model.mjs +1 -1
- package/scripts/lib/hand-imported-styles.mjs +46 -101
- package/scripts/lib/hand-roll-hints.mjs +25 -3
- package/scripts/lib/helper-canon.mjs +4 -4
- package/scripts/lib/helpers-add.mjs +42 -25
- package/scripts/lib/hidden-label-placeholder.mjs +1 -1
- package/scripts/lib/idiom-scan.mjs +4 -4
- package/scripts/lib/is-direct-run.mjs +20 -0
- package/scripts/lib/items-provider-context.mjs +1 -1
- package/scripts/lib/linked-target.mjs +26 -2
- package/scripts/lib/local-components.mjs +2 -2
- package/scripts/lib/locale-check.mjs +137 -25
- package/scripts/lib/mcp-config.mjs +346 -164
- package/scripts/lib/mcp-sdk.mjs +223 -0
- package/scripts/lib/migrate-fix.mjs +3 -3
- package/scripts/lib/plugin-options-check.mjs +177 -0
- package/scripts/lib/pnp.mjs +165 -0
- package/scripts/lib/portal-names.mjs +4 -4
- package/scripts/lib/prefer-v-bb-dialog.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +132 -123
- package/scripts/lib/reactive-v-model.mjs +2 -2
- package/scripts/lib/redundant-item-accessor.mjs +1 -1
- package/scripts/lib/release-results.mjs +331 -0
- package/scripts/lib/renamed-item-field.mjs +1 -1
- package/scripts/lib/renamed-slot-prop.mjs +524 -0
- package/scripts/lib/rule-registry.mjs +1 -1
- package/scripts/lib/setup-edits.mjs +1845 -0
- package/scripts/lib/setup.mjs +490 -0
- package/scripts/lib/slot-key.mjs +1 -1
- package/scripts/lib/slot-renames.mjs +3 -3
- package/scripts/lib/squashed-slot-words.mjs +1 -1
- package/scripts/lib/tab-links.mjs +2 -2
- package/scripts/lib/text-null-value.mjs +1 -1
- package/scripts/lib/toolchain-check.mjs +13 -11
- package/scripts/lib/tooling-options.mjs +406 -0
- package/scripts/lib/unimported-components.mjs +1 -1
- package/scripts/lib/unstyled-variants.mjs +1 -1
- package/scripts/lib/valid-locale.mjs +119 -0
- package/scripts/lib/validate-bb-markup.mjs +146 -102
- package/scripts/lib/wrapper-props.mjs +2 -2
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +0 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +0 -55
- package/dist/components/BbBaseButton/RouterComponent.vue.d.ts +0 -18
- package/dist/components/BbBaseButton/useLinkState.d.ts +0 -43
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.d.ts +0 -18
- package/dist/components/BbButton/toggleRoving.d.ts +0 -6
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/CalendarYearPanel.vue.d.ts +0 -5
- package/dist/components/BbCalendar/calendarHost.d.ts +0 -29
- package/dist/components/BbCalendar/useCalendarContext.d.ts +0 -90
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +0 -344
- package/dist/components/BbCalendar/useDayGrid.d.ts +0 -104
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +0 -78
- package/dist/components/BbCalendar/useToday.d.ts +0 -23
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +0 -4
- package/dist/components/BbConfirm/BbConfirmHost.d.ts +0 -10
- package/dist/components/BbConfirm/confirmEntry.d.ts +0 -4
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +0 -23
- package/dist/components/BbDialog/useDialogStack.d.ts +0 -19
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +0 -26
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +0 -38
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +0 -16
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +0 -41
- package/dist/components/BbDropdown/normalizeGroups.d.ts +0 -39
- package/dist/components/BbDropdown/pointerTrail.d.ts +0 -5
- package/dist/components/BbDropdown/useDropdownContext.d.ts +0 -131
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +0 -170
- package/dist/components/BbForm/BbFormCustomField.d.ts +0 -14
- package/dist/components/BbForm/bindFormField.d.ts +0 -56
- package/dist/components/BbForm/formFields.d.ts +0 -77
- package/dist/components/BbHost/BbHostOpening.d.ts +0 -27
- package/dist/components/BbHoverCard/hoverCardFocus.d.ts +0 -29
- package/dist/components/BbIcon/iconCache.d.ts +0 -63
- package/dist/components/BbNumberInput/numberDisplay.d.ts +0 -256
- package/dist/components/BbNumberInput/platform.d.ts +0 -7
- package/dist/components/BbNumberInput/warroom/corpus.d.ts +0 -58
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +0 -28
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +0 -2
- package/dist/components/BbNumberInput/warroom/harness.d.ts +0 -217
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +0 -150
- package/dist/components/BbOffCanvas/hostCloseLabel.d.ts +0 -3
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +0 -9
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +0 -37
- package/dist/components/BbPagination/paginationFit.d.ts +0 -38
- package/dist/components/BbSelectPopover/knownItems.d.ts +0 -65
- package/dist/components/BbSelectPopover/reclickClears.d.ts +0 -17
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +0 -18
- package/dist/components/BbTable/BbTableDataRow.d.ts +0 -204
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +0 -112
- package/dist/components/BbTable/BbTableExpandRow.d.ts +0 -84
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +0 -128
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +0 -25
- package/dist/components/BbTable/gridWidgets.d.ts +0 -30
- package/dist/components/BbTable/measuredFloors.d.ts +0 -46
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +0 -27
- package/dist/components/BbTable/textRuler.d.ts +0 -73
- package/dist/components/BbTable/useRowReorder.d.ts +0 -60
- package/dist/components/BbTable/utils.d.ts +0 -375
- package/dist/components/BbTable/warroom/harness.d.ts +0 -260
- package/dist/components/BbTabs/tablistName.d.ts +0 -4
- package/dist/components/BbToast/BbToast.vue.d.ts +0 -5
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +0 -22
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +0 -13
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +0 -23
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +0 -19
- package/dist/components/BbTree/context.d.ts +0 -25
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +0 -21
- package/dist/components/ChipsBox/types.d.ts +0 -28
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +0 -6
- package/dist/components/ClearableButton/types.d.ts +0 -9
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +0 -7
- package/dist/components/CloseIcon/types.d.ts +0 -2
- package/dist/components/CommaBox/CommaBox.vue.d.ts +0 -21
- package/dist/components/CommaBox/types.d.ts +0 -20
- package/dist/components/CommonField/CommonField.vue.d.ts +0 -20
- package/dist/components/CommonField/messageHeightMatrix.d.ts +0 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +0 -22
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +0 -10
- package/dist/components/CommonFieldInput/types.d.ts +0 -114
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +0 -42
- package/dist/components/CommonPopover/types.d.ts +0 -120
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +0 -48
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +0 -19
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +0 -7
- package/dist/components/ErrorIcon/types.d.ts +0 -3
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +0 -39
- package/dist/components/FlatListBox/types.d.ts +0 -140
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +0 -39
- package/dist/components/GroupedListBox/types.d.ts +0 -163
- package/dist/components/ListBox/ListBox.vue.d.ts +0 -39
- package/dist/components/ListBox/types.d.ts +0 -180
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +0 -20
- package/dist/components/OptionsContainer/types.d.ts +0 -168
- package/dist/components/Transitions/ScaleFade.vue.d.ts +0 -28
- package/dist/components/Transitions/Slide.vue.d.ts +0 -37
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +0 -7
- package/dist/components/WarningIcon/types.d.ts +0 -3
- package/dist/composables/__testResets.d.ts +0 -1
- package/dist/composables/autoHost.d.ts +0 -22
- package/dist/composables/formSubmitLock.d.ts +0 -48
- package/dist/composables/hostOpenings.d.ts +0 -88
- package/dist/composables/hostRegistry.d.ts +0 -47
- package/dist/composables/ssrMarker.d.ts +0 -15
- package/dist/composables/useActiveInactiveState.d.ts +0 -4
- package/dist/composables/useArray.d.ts +0 -7
- package/dist/composables/useBaseOptions.d.ts +0 -51
- package/dist/composables/useBodyScrollLock.d.ts +0 -4
- package/dist/composables/useBreakpoint.d.ts +0 -13
- package/dist/composables/useCancelableFunction.d.ts +0 -17
- package/dist/composables/useChoiceIndicator.d.ts +0 -58
- package/dist/composables/useClosingInert.d.ts +0 -28
- package/dist/composables/useCoarsePointer.d.ts +0 -9
- package/dist/composables/useCoherence.d.ts +0 -21
- package/dist/composables/useConfig.d.ts +0 -59
- package/dist/composables/useConfigDefaults.d.ts +0 -54
- package/dist/composables/useEscapeStackEntry.d.ts +0 -13
- package/dist/composables/useFrameworkDetection.d.ts +0 -12
- package/dist/composables/useHashedWatcher.d.ts +0 -19
- package/dist/composables/useHydrated.d.ts +0 -37
- package/dist/composables/useImeDismissBlur.d.ts +0 -103
- package/dist/composables/useIndexById.d.ts +0 -11
- package/dist/composables/useInertiaPage.d.ts +0 -10
- package/dist/composables/useItemText.d.ts +0 -17
- package/dist/composables/useItemValue.d.ts +0 -7
- package/dist/composables/useItemsGetter.d.ts +0 -83
- package/dist/composables/useKeyboardInset.d.ts +0 -28
- package/dist/composables/useListboxFocus.d.ts +0 -21
- package/dist/composables/useLocale.d.ts +0 -5
- package/dist/composables/useLogger.d.ts +0 -5
- package/dist/composables/useMinimalQueue.d.ts +0 -9
- package/dist/composables/useOnFalsy.d.ts +0 -2
- package/dist/composables/useOnTruthy.d.ts +0 -7
- package/dist/composables/useOverlayNavigation.d.ts +0 -37
- package/dist/composables/useOverlayYield.d.ts +0 -23
- package/dist/composables/usePrefill.d.ts +0 -44
- package/dist/composables/useQuery.d.ts +0 -39
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +0 -13
- package/dist/composables/useRoute.d.ts +0 -3
- package/dist/composables/useRouter.d.ts +0 -2
- package/dist/composables/useSegmentedFields.d.ts +0 -104
- package/dist/composables/useServerPrefetch.d.ts +0 -28
- package/dist/composables/useSheetSurface.d.ts +0 -39
- package/dist/composables/useSsrState.d.ts +0 -28
- package/dist/composables/useTableWidthContext.d.ts +0 -73
- package/dist/composables/useToggleInput.d.ts +0 -44
- package/dist/composables/useTopLayer.d.ts +0 -9
- package/dist/composables/useTypeahead.d.ts +0 -112
- package/dist/composables/useUntil.d.ts +0 -7
- package/dist/composables/useUrlQueryParam.d.ts +0 -21
- package/dist/composables/useViewportWidth.d.ts +0 -14
- package/dist/deprecation/ai-deprecations.json.d.ts +0 -2868
- package/dist/deprecation/removedProps.d.ts +0 -3
- package/dist/directives/createPopoverDirective.d.ts +0 -111
- package/dist/directives/renderingInstance.d.ts +0 -2
- package/dist/i18n/regionHints.d.ts +0 -16
- package/dist/icons-whitelist.d.ts +0 -9
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +0 -2
- package/dist/styles.d.ts +0 -0
- package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -2
- package/dist/types/ExtractGenericFromRef.d.ts +0 -2
- package/dist/types/NestedKeyOf.d.ts +0 -3
- package/dist/types/PrefixWith.d.ts +0 -1
- package/dist/types/ShapeErased.d.ts +0 -15
- package/dist/types/Simplify.d.ts +0 -6
- package/dist/utilities/functions/animationsSettled.d.ts +0 -7
- package/dist/utilities/functions/bytesToUnit.d.ts +0 -2
- package/dist/utilities/functions/chunk.d.ts +0 -1
- package/dist/utilities/functions/clamp.d.ts +0 -9
- package/dist/utilities/functions/clampPrecision.d.ts +0 -1
- package/dist/utilities/functions/convertDateValue.d.ts +0 -44
- package/dist/utilities/functions/curry.d.ts +0 -6
- package/dist/utilities/functions/deburr.d.ts +0 -1
- package/dist/utilities/functions/elementLabel.d.ts +0 -8
- package/dist/utilities/functions/empty.d.ts +0 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +0 -20
- package/dist/utilities/functions/findInTree.d.ts +0 -4
- package/dist/utilities/functions/flattenTree.d.ts +0 -1
- package/dist/utilities/functions/get.d.ts +0 -3
- package/dist/utilities/functions/hasVnodeListener.d.ts +0 -16
- package/dist/utilities/functions/hash.d.ts +0 -1
- package/dist/utilities/functions/head.d.ts +0 -2
- package/dist/utilities/functions/identity.d.ts +0 -1
- package/dist/utilities/functions/indexBy.d.ts +0 -11
- package/dist/utilities/functions/isDateDisabled.d.ts +0 -17
- package/dist/utilities/functions/isEqual.d.ts +0 -1
- package/dist/utilities/functions/isHex.d.ts +0 -1
- package/dist/utilities/functions/isImeComposing.d.ts +0 -7
- package/dist/utilities/functions/isNil.d.ts +0 -6
- package/dist/utilities/functions/isNotEmpty.d.ts +0 -1
- package/dist/utilities/functions/isNotNil.d.ts +0 -6
- package/dist/utilities/functions/isTextEntry.d.ts +0 -5
- package/dist/utilities/functions/isoWeek.d.ts +0 -36
- package/dist/utilities/functions/itemProps.d.ts +0 -46
- package/dist/utilities/functions/last.d.ts +0 -2
- package/dist/utilities/functions/negative.d.ts +0 -1
- package/dist/utilities/functions/noop.d.ts +0 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +0 -26
- package/dist/utilities/functions/parsePaginationNumber.d.ts +0 -22
- package/dist/utilities/functions/parseSize.d.ts +0 -3
- package/dist/utilities/functions/parseWidthString.d.ts +0 -6
- package/dist/utilities/functions/percentage.d.ts +0 -26
- package/dist/utilities/functions/pickBy.d.ts +0 -1
- package/dist/utilities/functions/pipe.d.ts +0 -3
- package/dist/utilities/functions/range.d.ts +0 -1
- package/dist/utilities/functions/range.js +0 -7
- package/dist/utilities/functions/readableValue.d.ts +0 -6
- package/dist/utilities/functions/reject.d.ts +0 -25
- package/dist/utilities/functions/resolveEnumProp.d.ts +0 -19
- package/dist/utilities/functions/responsiveDefault.d.ts +0 -7
- package/dist/utilities/functions/searchRank.d.ts +0 -19
- package/dist/utilities/functions/settlesVisible.d.ts +0 -20
- package/dist/utilities/functions/snapToStep.d.ts +0 -1
- package/dist/utilities/functions/sort.d.ts +0 -6
- package/dist/utilities/functions/throttle.d.ts +0 -1
- package/dist/utilities/functions/toggleInput.d.ts +0 -114
- package/dist/utilities/functions/transpose.d.ts +0 -1
- package/dist/utilities/functions/validateDateFormat.d.ts +0 -8
- package/dist/utilities/functions/wait.d.ts +0 -2
- package/dist/utilities/functions/waitFor.d.ts +0 -9
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +0 -49
- package/dist/utilities/functions/when.d.ts +0 -9
- package/dist/utilities/misc/autofocus.d.ts +0 -20
- package/dist/utilities/misc/iconsInjectionKey.d.ts +0 -15
- package/dist/utilities/misc/listboxMetrics.d.ts +0 -47
- package/dist/utilities/misc/maskaDataOptions.d.ts +0 -12
- package/dist/utilities/misc/pageText.d.ts +0 -16
- package/dist/utilities/misc/ssrValue.d.ts +0 -20
- package/dist/utilities/misc/transitions.d.ts +0 -5
- package/dist/utils/configDefaults.d.ts +0 -33
- package/dist/utils/configScope.d.ts +0 -43
- package/dist/utils/copyData.d.ts +0 -13
- package/dist/utils/focusVisibility.d.ts +0 -15
- package/dist/utils/injectLibraryStyles.d.ts +0 -8
- package/dist/utils/overlayEscapeStack.d.ts +0 -52
- package/dist/utils/overlaySurfaceIsolation.d.ts +0 -1
- package/dist/utils/passthroughDeduper.d.ts +0 -16
- package/dist/utils/versionCheck.d.ts +0 -19
- package/scripts/lib/check-queue.mjs +0 -102
- package/scripts/lib/component-attr-targets.ts +0 -123
- package/scripts/lib/component-tree.ts +0 -648
- package/scripts/lib/consumer-install.mjs +0 -64
- package/scripts/lib/css-class-surface.mjs +0 -328
- package/scripts/lib/css-color-resolve.mjs +0 -296
- package/scripts/lib/css-comment-text.mjs +0 -16
- package/scripts/lib/design-token-manifest.mjs +0 -506
- package/scripts/lib/ensure-manifest.mjs +0 -135
- package/scripts/lib/example-checks.mjs +0 -337
- package/scripts/lib/guide-claims.mjs +0 -452
- package/scripts/lib/manifest-pointers.mjs +0 -71
- package/scripts/lib/pack.mjs +0 -55
- package/scripts/lib/public-type-exports.mjs +0 -273
- package/scripts/lib/quiet-gate.mjs +0 -385
- package/scripts/lib/recipe-excerpts.mjs +0 -98
- package/scripts/lib/swap-noun.mjs +0 -33
- package/scripts/lib/token-color-mix.mjs +0 -114
package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,89 +1,91 @@
|
|
|
1
1
|
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import a from "
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
2
|
+
import { inlineStep as t } from "../../composables/useDirection.js";
|
|
3
|
+
import { chunk as n } from "../../utilities/functions/chunk.js";
|
|
4
|
+
import { useTypeahead as r } from "../../composables/useTypeahead.js";
|
|
5
|
+
import { addYears as i } from "./calendarMath.js";
|
|
6
|
+
import { useCalendarContext as a } from "./useCalendarContext.js";
|
|
7
|
+
import { useLocale as o } from "../../composables/useLocale.js";
|
|
8
|
+
import s from "../BbBaseButton/BbBaseButton.vue.js";
|
|
9
|
+
import { focusVisibly as ee } from "../../utils/focusVisibility.js";
|
|
10
|
+
import { Fragment as c, computed as l, createBlock as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, defineComponent as m, mergeProps as h, nextTick as g, normalizeClass as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, watch as T, withCtx as E, withKeys as D, withModifiers as O } from "vue";
|
|
9
11
|
// src/components/BbCalendar/CalendarMonthPanel.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
12
|
+
var te = ["aria-label", "role"], ne = ["role"], k = ["role"], A = 3, j = /*@__PURE__*/ m({
|
|
11
13
|
__name: "CalendarMonthPanel",
|
|
12
|
-
setup(
|
|
13
|
-
let
|
|
14
|
-
if (!
|
|
14
|
+
setup(m, { expose: j }) {
|
|
15
|
+
let M = e(), N = a(), { t: P } = o(), { cursor: F, disabled: I, monthOptions: L, typeaheadResetKey: R } = N, z = N.cursorMonth, B = l(() => N.terminalUnit.value === "month"), V = N.monthDate, H = l(() => L.value[0]?.value ?? 0), U = l(() => L.value[L.value.length - 1]?.value ?? 11), W = x(null), G = l(() => L.value.map((e) => {
|
|
16
|
+
if (!B.value) return {
|
|
15
17
|
...e,
|
|
16
|
-
selected: e.value === (
|
|
17
|
-
cursored: e.value ===
|
|
18
|
+
selected: e.value === (W.value ?? z.value),
|
|
19
|
+
cursored: e.value === z.value,
|
|
18
20
|
first: !1,
|
|
19
21
|
last: !1,
|
|
20
22
|
middle: !1,
|
|
21
23
|
preview: !1,
|
|
22
24
|
disabled: !1
|
|
23
25
|
};
|
|
24
|
-
let t =
|
|
26
|
+
let t = N.unitState(e.start);
|
|
25
27
|
return {
|
|
26
28
|
...e,
|
|
27
29
|
...t,
|
|
28
|
-
cursored: e.value === (
|
|
30
|
+
cursored: e.value === (W.value ?? z.value)
|
|
29
31
|
};
|
|
30
|
-
})),
|
|
31
|
-
let n =
|
|
32
|
-
t ?
|
|
33
|
-
},
|
|
34
|
-
let t =
|
|
35
|
-
n !== t && (
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
}, { onKeydown:
|
|
39
|
-
candidates: () =>
|
|
32
|
+
})), K = l(() => n(G.value, A)), q = x(), J = (e, t = !1) => {
|
|
33
|
+
let n = q.value?.querySelector(`[data-month="${e}"]`);
|
|
34
|
+
t ? ee(n) : n?.focus();
|
|
35
|
+
}, Y = (e) => t(e.key, e.currentTarget) === "next" ? 1 : -1, X = (e) => {
|
|
36
|
+
let t = W.value ?? z.value, n = Math.min(U.value, Math.max(H.value, t + e));
|
|
37
|
+
n !== t && (W.value = n, B.value && N.setHoveredUnit(V(n)), J(n));
|
|
38
|
+
}, Z = (e) => {
|
|
39
|
+
F.value = i(N.system.value, F.value, e), g(() => J(W.value ?? z.value, !0));
|
|
40
|
+
}, { onKeydown: Q, reset: $ } = r({
|
|
41
|
+
candidates: () => G.value,
|
|
40
42
|
getTokens: (e) => e.tokens,
|
|
41
|
-
getCurrent: () =>
|
|
43
|
+
getCurrent: () => G.value.find((e) => e.value === z.value),
|
|
42
44
|
onMatch: (e) => {
|
|
43
|
-
|
|
45
|
+
W.value = e.value, B.value && N.setHoveredUnit(V(e.value)), J(e.value);
|
|
44
46
|
},
|
|
45
47
|
onCommit: (e) => {
|
|
46
|
-
|
|
48
|
+
N.selectMonth(e.value);
|
|
47
49
|
},
|
|
48
|
-
locale: () =>
|
|
50
|
+
locale: () => M.locale
|
|
49
51
|
});
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
await
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
}),
|
|
52
|
+
return T(R, () => {
|
|
53
|
+
W.value = null, $();
|
|
54
|
+
}), y(async () => {
|
|
55
|
+
await g(), B.value || J(z.value);
|
|
56
|
+
}), v(() => {
|
|
57
|
+
$();
|
|
58
|
+
}), j({ processKey: Q }), (e, t) => (b(), d("div", {
|
|
57
59
|
ref_key: "container",
|
|
58
|
-
ref:
|
|
59
|
-
"aria-label":
|
|
60
|
-
class:
|
|
61
|
-
role:
|
|
62
|
-
onKeydownCapture: t[0] ||= (...e) =>
|
|
60
|
+
ref: q,
|
|
61
|
+
"aria-label": w(P)("datePicker.monthSelectorLabel").value,
|
|
62
|
+
class: _(["bb-calendar__button-menu bb-calendar__month-selector", { "bb-calendar__button-menu--terminal": B.value }]),
|
|
63
|
+
role: B.value ? "grid" : "group",
|
|
64
|
+
onKeydownCapture: t[0] ||= (...e) => w(Q) && w(Q)(...e),
|
|
63
65
|
onKeydown: [
|
|
64
|
-
t[1] ||=
|
|
65
|
-
t[2] ||=
|
|
66
|
-
t[3] ||=
|
|
67
|
-
t[4] ||=
|
|
68
|
-
t[5] ||=
|
|
69
|
-
t[6] ||=
|
|
70
|
-
t[7] ||=
|
|
71
|
-
t[8] ||=
|
|
66
|
+
t[1] ||= D(O((e) => B.value && X(3), ["prevent"]), ["down"]),
|
|
67
|
+
t[2] ||= D(O((e) => B.value && J(U.value), ["prevent"]), ["end"]),
|
|
68
|
+
t[3] ||= D(O((e) => B.value && J(H.value), ["prevent"]), ["home"]),
|
|
69
|
+
t[4] ||= D(O((e) => B.value && X(Y(e)), ["prevent"]), ["left"]),
|
|
70
|
+
t[5] ||= D(O((e) => B.value && Z(1), ["prevent"]), ["page-down"]),
|
|
71
|
+
t[6] ||= D(O((e) => B.value && Z(-1), ["prevent"]), ["page-up"]),
|
|
72
|
+
t[7] ||= D(O((e) => B.value && X(Y(e)), ["prevent"]), ["right"]),
|
|
73
|
+
t[8] ||= D(O((e) => B.value && X(-3), ["prevent"]), ["up"])
|
|
72
74
|
],
|
|
73
|
-
onMouseleave: t[9] ||= (e) =>
|
|
74
|
-
}, [
|
|
75
|
+
onMouseleave: t[9] ||= (e) => B.value && w(N).setHoveredUnit(null)
|
|
76
|
+
}, [f("div", {
|
|
75
77
|
class: "bb-calendar__menu-grid",
|
|
76
|
-
role:
|
|
77
|
-
}, [(
|
|
78
|
+
role: B.value ? "none" : void 0
|
|
79
|
+
}, [(b(!0), d(c, null, S(K.value, (e) => (b(), d("div", {
|
|
78
80
|
key: e[0].key,
|
|
79
81
|
class: "bb-calendar__menu-row",
|
|
80
|
-
role:
|
|
81
|
-
}, [(
|
|
82
|
+
role: B.value ? "row" : void 0
|
|
83
|
+
}, [(b(!0), d(c, null, S(e, (e) => (b(), u(s, h({
|
|
82
84
|
key: e.key,
|
|
83
85
|
"aria-current": e.cursored ? "date" : void 0,
|
|
84
86
|
"aria-label": e.ariaLabel,
|
|
85
|
-
"aria-pressed":
|
|
86
|
-
"aria-selected":
|
|
87
|
+
"aria-pressed": B.value ? void 0 : e.selected,
|
|
88
|
+
"aria-selected": B.value ? e.selected : void 0,
|
|
87
89
|
class: ["bb-calendar__month-item bb-calendar__menu-btn", {
|
|
88
90
|
"bb-calendar__menu-btn--selected": e.selected,
|
|
89
91
|
"bb-calendar__menu-btn--first": e.first,
|
|
@@ -93,11 +95,11 @@ var O = ["aria-label", "role"], k = ["role"], A = ["role"], j = 3, M = /*@__PURE
|
|
|
93
95
|
"bb-calendar__menu-btn--preview": e.preview
|
|
94
96
|
}],
|
|
95
97
|
"data-month": e.value,
|
|
96
|
-
disabled:
|
|
97
|
-
role:
|
|
98
|
-
onClick: (t) =>
|
|
99
|
-
onMouseenter: (t) =>
|
|
100
|
-
}, { ref_for: !0 },
|
|
98
|
+
disabled: w(I) || e.disabled,
|
|
99
|
+
role: B.value ? "gridcell" : void 0,
|
|
100
|
+
onClick: (t) => w(N).selectMonth(e.value),
|
|
101
|
+
onMouseenter: (t) => B.value && w(N).setHoveredUnit(e.start)
|
|
102
|
+
}, { ref_for: !0 }, w(N).passthrough?.part?.("monthItem", {
|
|
101
103
|
inRange: e.middle,
|
|
102
104
|
selected: e.selected,
|
|
103
105
|
rangeStart: e.first,
|
|
@@ -105,7 +107,7 @@ var O = ["aria-label", "role"], k = ["role"], A = ["role"], j = 3, M = /*@__PURE
|
|
|
105
107
|
disabled: e.disabled || void 0,
|
|
106
108
|
highlighted: e.cursored
|
|
107
109
|
})), {
|
|
108
|
-
default:
|
|
110
|
+
default: E(() => [p(C(e.text), 1)]),
|
|
109
111
|
_: 2
|
|
110
112
|
}, 1040, [
|
|
111
113
|
"aria-current",
|
|
@@ -118,7 +120,7 @@ var O = ["aria-label", "role"], k = ["role"], A = ["role"], j = 3, M = /*@__PURE
|
|
|
118
120
|
"role",
|
|
119
121
|
"onClick",
|
|
120
122
|
"onMouseenter"
|
|
121
|
-
]))), 128))], 8,
|
|
123
|
+
]))), 128))], 8, k))), 128))], 8, ne)], 42, te));
|
|
122
124
|
}
|
|
123
125
|
});
|
|
124
|
-
export {
|
|
126
|
+
export { j as default };
|
|
@@ -1,93 +1,102 @@
|
|
|
1
1
|
import { chunk as e } from "../../utilities/functions/chunk.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useTypeahead as t } from "../../composables/useTypeahead.js";
|
|
3
|
+
import { useConfig as n } from "../../composables/useConfig.js";
|
|
4
4
|
import { useCalendarContext as r } from "./useCalendarContext.js";
|
|
5
5
|
import { useLocale as i } from "../../composables/useLocale.js";
|
|
6
6
|
import a from "../BbBaseButton/BbBaseButton.vue.js";
|
|
7
|
-
import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, watch as
|
|
7
|
+
import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, watch as ee, withCtx as C } from "vue";
|
|
8
8
|
// src/components/BbCalendar/CalendarYearPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var w = ["aria-label", "role"], T = ["role"], E = ["role"], D = 3, O = /*@__PURE__*/ f({
|
|
10
10
|
__name: "CalendarYearPanel",
|
|
11
|
-
setup(f, { expose:
|
|
12
|
-
let A = r(), { t: j } = i(), { boundYears: M, cursor: N, disabled: P,
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
setup(f, { expose: O }) {
|
|
12
|
+
let k = n(), A = r(), { t: j } = i(), { boundYears: M, cursor: N, disabled: P, typeaheadResetKey: F, yearFrom: I, yearInRange: L, yearOptionOf: R } = A, z = s(() => I(N.value, 0)), B = s(() => R(z.value).key), V = s(() => A.terminalUnit.value === "year"), H = y(null), U = y(I(z.value, -6)), W = y(I(z.value, 30)), G = (e, t) => {
|
|
13
|
+
let n = 0;
|
|
14
|
+
for (let r = e; r.isBefore(t); r = I(r, 1)) n++;
|
|
15
|
+
return n;
|
|
16
|
+
}, K = s(() => {
|
|
17
|
+
let e = [];
|
|
18
|
+
for (let t = U.value; !t.isAfter(W.value); t = I(t, 1)) {
|
|
19
|
+
if (!L(t)) continue;
|
|
20
|
+
let n = R(t), r = n.key === (H.value ?? B.value), i = {
|
|
21
|
+
...n,
|
|
22
|
+
cursored: r
|
|
23
|
+
};
|
|
24
|
+
e.push(V.value ? {
|
|
25
|
+
...i,
|
|
26
|
+
...A.unitState(t)
|
|
27
|
+
} : {
|
|
28
|
+
...i,
|
|
29
|
+
selected: r,
|
|
30
|
+
first: !1,
|
|
31
|
+
last: !1,
|
|
32
|
+
middle: !1,
|
|
33
|
+
preview: !1,
|
|
34
|
+
disabled: !1
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}), q = s(() => e(K.value, D)), J = y(), Y = (e) => {
|
|
39
|
+
let t = J.value?.querySelector(`[data-year="${e}"]`);
|
|
34
40
|
t?.focus(), t?.scrollIntoView({ block: "nearest" });
|
|
35
|
-
}, { onKeydown:
|
|
36
|
-
candidates: () =>
|
|
37
|
-
getTokens: (e) =>
|
|
38
|
-
getCurrent: () =>
|
|
41
|
+
}, { onKeydown: X, reset: Z } = t({
|
|
42
|
+
candidates: () => K.value,
|
|
43
|
+
getTokens: (e) => e.tokens,
|
|
44
|
+
getCurrent: () => K.value.find((e) => e.key === B.value),
|
|
39
45
|
onMatch: (e) => {
|
|
40
|
-
|
|
46
|
+
H.value = e.key, V.value && A.setHoveredUnit(e.start), Y(e.key);
|
|
41
47
|
},
|
|
42
48
|
onCommit: (e) => {
|
|
43
|
-
A.selectYear(e.
|
|
49
|
+
A.selectYear(e.start);
|
|
44
50
|
},
|
|
45
|
-
locale: () =>
|
|
51
|
+
locale: () => k.locale
|
|
46
52
|
});
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
ee(F, () => {
|
|
54
|
+
H.value = null, Z();
|
|
49
55
|
});
|
|
50
|
-
let
|
|
51
|
-
let e =
|
|
56
|
+
let Q = () => J.value?.querySelector(".bb-calendar__menu-grid") ?? null, $ = async () => {
|
|
57
|
+
let e = Q();
|
|
52
58
|
if (!e) return;
|
|
53
|
-
let t =
|
|
54
|
-
if (
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
},
|
|
59
|
+
let t = I(z.value, -200), n = M.value.min, r = n && n.isAfter(t) ? n : t, i = I(U.value, -30), a = i.isAfter(r) ? i : r;
|
|
60
|
+
if (!a.isBefore(U.value)) return;
|
|
61
|
+
let o = I(U.value, -3 * Math.ceil(G(a, U.value) / D)), s = e.querySelector(`[data-year="${R(U.value).key}"]`), c = s ? s.offsetTop - e.scrollTop : 0;
|
|
62
|
+
U.value = o, await m(), s && (e.scrollTop = s.offsetTop - c);
|
|
63
|
+
}, te = () => {
|
|
64
|
+
let e = I(N.value.year(2101).month(0).date(1), 0), t = M.value.max;
|
|
65
|
+
return t && t.isBefore(e) ? t : e;
|
|
66
|
+
}, ne = (e) => {
|
|
58
67
|
let t = e.target;
|
|
59
|
-
if (t.scrollTop <= 100)
|
|
68
|
+
if (t.scrollTop <= 100) $();
|
|
60
69
|
else if (t.scrollHeight - t.scrollTop <= t.clientHeight + 1) {
|
|
61
|
-
let e =
|
|
62
|
-
|
|
70
|
+
let e = te(), t = I(W.value, 30), n = t.isBefore(e) ? t : e;
|
|
71
|
+
n.isAfter(W.value) && (W.value = n);
|
|
63
72
|
}
|
|
64
73
|
};
|
|
65
74
|
return _(async () => {
|
|
66
|
-
|
|
75
|
+
J.value && (await $(), V.value || Y(B.value));
|
|
67
76
|
}), g(() => {
|
|
68
|
-
|
|
69
|
-
}),
|
|
77
|
+
Z();
|
|
78
|
+
}), O({ processKey: X }), (e, t) => (v(), l("div", {
|
|
70
79
|
ref_key: "container",
|
|
71
|
-
ref:
|
|
80
|
+
ref: J,
|
|
72
81
|
"aria-label": S(j)("datePicker.yearSelectorLabel").value,
|
|
73
|
-
class: h(["bb-calendar__button-menu bb-calendar__year-selector", { "bb-calendar__button-menu--terminal":
|
|
74
|
-
role:
|
|
75
|
-
onKeydownCapture: t[0] ||= (...e) => S(
|
|
76
|
-
onMouseleave: t[1] ||= (e) =>
|
|
82
|
+
class: h(["bb-calendar__button-menu bb-calendar__year-selector", { "bb-calendar__button-menu--terminal": V.value }]),
|
|
83
|
+
role: V.value ? "grid" : "group",
|
|
84
|
+
onKeydownCapture: t[0] ||= (...e) => S(X) && S(X)(...e),
|
|
85
|
+
onMouseleave: t[1] ||= (e) => V.value && S(A).setHoveredUnit(null)
|
|
77
86
|
}, [u("div", {
|
|
78
87
|
class: "bb-calendar__menu-grid",
|
|
79
88
|
"data-bb-no-drag": "",
|
|
80
|
-
role:
|
|
81
|
-
onScrollPassive:
|
|
82
|
-
}, [(v(!0), l(o, null, b(
|
|
89
|
+
role: V.value ? "none" : void 0,
|
|
90
|
+
onScrollPassive: ne
|
|
91
|
+
}, [(v(!0), l(o, null, b(q.value, (e) => (v(), l("div", {
|
|
83
92
|
key: e[0].key,
|
|
84
93
|
class: "bb-calendar__menu-row",
|
|
85
|
-
role:
|
|
94
|
+
role: V.value ? "row" : void 0
|
|
86
95
|
}, [(v(!0), l(o, null, b(e, (e) => (v(), c(a, p({
|
|
87
96
|
key: e.key,
|
|
88
97
|
"aria-current": e.cursored ? "date" : void 0,
|
|
89
|
-
"aria-pressed":
|
|
90
|
-
"aria-selected":
|
|
98
|
+
"aria-pressed": V.value ? void 0 : e.selected,
|
|
99
|
+
"aria-selected": V.value ? e.selected : void 0,
|
|
91
100
|
class: ["bb-calendar__year-item bb-calendar__menu-btn", {
|
|
92
101
|
"bb-calendar__menu-btn--selected": e.selected,
|
|
93
102
|
"bb-calendar__menu-btn--first": e.first,
|
|
@@ -96,11 +105,11 @@ var T = ["aria-label", "role"], E = ["role"], D = ["role"], O = 3, k = /*@__PURE
|
|
|
96
105
|
"bb-calendar__menu-btn--middle": e.middle,
|
|
97
106
|
"bb-calendar__menu-btn--preview": e.preview
|
|
98
107
|
}],
|
|
99
|
-
"data-year": e.
|
|
108
|
+
"data-year": e.key,
|
|
100
109
|
disabled: S(P) || e.disabled,
|
|
101
|
-
role:
|
|
102
|
-
onClick: (t) => S(A).selectYear(e.
|
|
103
|
-
onMouseenter: (t) =>
|
|
110
|
+
role: V.value ? "gridcell" : void 0,
|
|
111
|
+
onClick: (t) => S(A).selectYear(e.start),
|
|
112
|
+
onMouseenter: (t) => V.value && S(A).setHoveredUnit(e.start)
|
|
104
113
|
}, { ref_for: !0 }, S(A).passthrough?.part?.("yearItem", {
|
|
105
114
|
inRange: e.middle,
|
|
106
115
|
selected: e.selected,
|
|
@@ -109,7 +118,7 @@ var T = ["aria-label", "role"], E = ["role"], D = ["role"], O = 3, k = /*@__PURE
|
|
|
109
118
|
disabled: e.disabled || void 0,
|
|
110
119
|
highlighted: e.cursored
|
|
111
120
|
})), {
|
|
112
|
-
default:
|
|
121
|
+
default: C(() => [d(x(e.text), 1)]),
|
|
113
122
|
_: 2
|
|
114
123
|
}, 1040, [
|
|
115
124
|
"aria-current",
|
|
@@ -121,7 +130,7 @@ var T = ["aria-label", "role"], E = ["role"], D = ["role"], O = 3, k = /*@__PURE
|
|
|
121
130
|
"role",
|
|
122
131
|
"onClick",
|
|
123
132
|
"onMouseenter"
|
|
124
|
-
]))), 128))], 8,
|
|
133
|
+
]))), 128))], 8, E))), 128))], 40, T)], 42, w));
|
|
125
134
|
}
|
|
126
135
|
});
|
|
127
|
-
export {
|
|
136
|
+
export { O as default };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { clampToCalendarRange as e, isOutsideCalendarRange as t } from "../../utilities/functions/normalizeDateBound.js";
|
|
2
|
+
import { formatCalendarDate as n, formatDigits as r } from "virtual:bitboss-ui/calendars";
|
|
3
|
+
// src/components/BbCalendar/calendarMath.ts
|
|
4
|
+
var i = (e, t) => !n || !e ? t.startOf("month") : e.startOfMonth(t).startOf("day"), a = (e, t) => {
|
|
5
|
+
if (!n || !e) return t.endOf("month").startOf("day");
|
|
6
|
+
let r = i(e, t), a = e.fieldsOf(r);
|
|
7
|
+
return r.add(e.daysInMonth(a) - a.day, "day");
|
|
8
|
+
}, o = (e, t, r) => {
|
|
9
|
+
if (!n || !e) return t.startOf("month").add(r, "month");
|
|
10
|
+
let o = i(e, t);
|
|
11
|
+
for (let t = 0; t < r; t++) o = a(e, o).add(1, "day");
|
|
12
|
+
for (let t = 0; t > r; t--) o = i(e, o.subtract(1, "day"));
|
|
13
|
+
return o;
|
|
14
|
+
}, s = (e, t, r) => {
|
|
15
|
+
if (!n || !e) return (r.year() - t.year()) * 12 + (r.month() - t.month());
|
|
16
|
+
let o = i(e, t), s = i(e, r), c = Math.round(s.diff(o, "day") / 29.5), l = i(e, e.addMonths(o, c));
|
|
17
|
+
for (; l.isBefore(s);) l = a(e, l).add(1, "day"), c++;
|
|
18
|
+
for (; l.isAfter(s);) l = i(e, l.subtract(1, "day")), c--;
|
|
19
|
+
return c;
|
|
20
|
+
}, c = (e, t) => !n || !e ? t.startOf("year") : e.startOfYear(t).startOf("day"), l = (e, t) => {
|
|
21
|
+
if (!n || !e) return t.endOf("year").startOf("day");
|
|
22
|
+
let { era: r, year: i } = e.fieldsOf(c(e, t)), a = e.monthsInYear({
|
|
23
|
+
era: r,
|
|
24
|
+
year: i
|
|
25
|
+
}), o = e.daysInMonth({
|
|
26
|
+
era: r,
|
|
27
|
+
year: i,
|
|
28
|
+
month: a
|
|
29
|
+
});
|
|
30
|
+
return e.dateOf({
|
|
31
|
+
era: r,
|
|
32
|
+
year: i,
|
|
33
|
+
month: a,
|
|
34
|
+
day: o
|
|
35
|
+
}, t).startOf("day");
|
|
36
|
+
}, u = (e, t, r) => {
|
|
37
|
+
if (!n || !e) return t.startOf("year").add(r, "year");
|
|
38
|
+
let i = c(e, t);
|
|
39
|
+
for (let t = 0; t < r; t++) i = l(e, i).add(1, "day");
|
|
40
|
+
for (let t = 0; t > r; t--) i = c(e, i.subtract(1, "day"));
|
|
41
|
+
return i;
|
|
42
|
+
}, d = (e, t, n) => n === "year" ? c(e, t) : n === "month" ? i(e, t) : t.startOf("day"), f = (e, r) => !n || !e || !t(r, e), p = (t, r) => !n || !t ? r : e(r, t), m = (e, t, n) => Math.min(Math.max(n, e.firstDayInMonth(t)), e.daysInMonth(t)), h = (e, t, r) => {
|
|
43
|
+
if (!n || !e) return t.add(r - 1 - t.month(), "month");
|
|
44
|
+
let { era: i, year: a, day: o } = e.fieldsOf(t), s = {
|
|
45
|
+
era: i,
|
|
46
|
+
year: a,
|
|
47
|
+
month: r
|
|
48
|
+
};
|
|
49
|
+
return e.daysInMonth(s) ? e.dateOf({
|
|
50
|
+
...s,
|
|
51
|
+
day: m(e, s, o)
|
|
52
|
+
}, t) ?? t : t;
|
|
53
|
+
}, g = (e, t, r) => {
|
|
54
|
+
if (!n || !e) return t.add(r.year() - t.year(), "year");
|
|
55
|
+
let i = e.fieldsOf(t), a = e.fieldsOf(r);
|
|
56
|
+
if (i.era === a.era && i.year === a.year) return t;
|
|
57
|
+
if (e.eras.length < 2 || i.era === a.era) return e.addYears(t, a.year - i.year);
|
|
58
|
+
let o = {
|
|
59
|
+
era: a.era,
|
|
60
|
+
year: a.year
|
|
61
|
+
}, s = Math.min(Math.max(i.month, e.firstMonthInYear(o)), e.monthsInYear(o)), c = {
|
|
62
|
+
...o,
|
|
63
|
+
month: s
|
|
64
|
+
};
|
|
65
|
+
return e.dateOf({
|
|
66
|
+
...c,
|
|
67
|
+
day: m(e, c, i.day)
|
|
68
|
+
}, t) ?? r;
|
|
69
|
+
}, _ = (e) => !!n && (e?.id === "japanese" || e?.id === "roc"), v = (e, t, n = 1) => t === "latn" || !r ? String(e).padStart(n, "0") : r(e, t, n), y = (e, t) => {
|
|
70
|
+
if (!n || !e) return t.startOf("month").date(15);
|
|
71
|
+
let r = i(e, t);
|
|
72
|
+
return r.add(Math.floor(a(e, r).diff(r, "day") / 2), "day");
|
|
73
|
+
}, b = (e, t) => {
|
|
74
|
+
if (!n || !e) return t.startOf("year").month(6);
|
|
75
|
+
let r = c(e, t);
|
|
76
|
+
return y(e, r.add(Math.floor(l(e, r).diff(r, "day") / 2), "day"));
|
|
77
|
+
}, x = (e, t, r, i) => {
|
|
78
|
+
if (!n || !e) return i.date(1).year(t.year()).month(t.month()).date(Math.min(r, t.daysInMonth()));
|
|
79
|
+
let { era: a, year: o, month: s } = e.fieldsOf(t), c = {
|
|
80
|
+
era: a,
|
|
81
|
+
year: o,
|
|
82
|
+
month: s
|
|
83
|
+
};
|
|
84
|
+
return e.dateOf({
|
|
85
|
+
...c,
|
|
86
|
+
day: m(e, c, r)
|
|
87
|
+
}, i) ?? t.hour(i.hour()).minute(i.minute()).second(i.second());
|
|
88
|
+
}, S = (e, t) => e ? e.fieldsOf(t) : {
|
|
89
|
+
era: "AD",
|
|
90
|
+
year: t.year(),
|
|
91
|
+
month: t.month() + 1,
|
|
92
|
+
day: t.date()
|
|
93
|
+
}, C = (e, t, r) => n && e ? e.addMonths(t, r) : t.add(r, "month"), w = (e, t, r) => n && e ? e.addYears(t, r) : t.add(r, "year"), T = (e, t) => {
|
|
94
|
+
if (!n || !e) {
|
|
95
|
+
let e = t.startOf("year");
|
|
96
|
+
return Array.from({ length: 12 }, (t, n) => ({
|
|
97
|
+
month: n + 1,
|
|
98
|
+
start: e.add(n, "month")
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
let { era: r, year: i } = e.fieldsOf(c(e, t)), o = [];
|
|
102
|
+
for (let t = e.firstMonthInYear({
|
|
103
|
+
era: r,
|
|
104
|
+
year: i
|
|
105
|
+
}); !(t > e.monthsInYear({
|
|
106
|
+
era: r,
|
|
107
|
+
year: i
|
|
108
|
+
})); t++) {
|
|
109
|
+
let n = {
|
|
110
|
+
era: r,
|
|
111
|
+
year: i,
|
|
112
|
+
month: t
|
|
113
|
+
}, s = e.dateOf({
|
|
114
|
+
...n,
|
|
115
|
+
day: e.firstDayInMonth(n)
|
|
116
|
+
})?.startOf("day");
|
|
117
|
+
s && (f(e, s) || f(e, a(e, s))) && o.push({
|
|
118
|
+
month: t,
|
|
119
|
+
start: s
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return o;
|
|
123
|
+
};
|
|
124
|
+
export { C as addMonths, w as addYears, p as clampToRange, x as dayInMonth, v as digitsOf, S as fieldsOf, f as inCalendarRange, a as monthEnd, y as monthMiddle, i as monthStart, s as monthsBetween, T as monthsOfYear, o as shiftMonth, u as shiftYear, d as unitStart, h as withMonth, g as withYear, l as yearEnd, b as yearMiddle, c as yearStart, _ as yearsNeedEra };
|