bitboss-ui 3.0.0-beta.4 → 3.0.0-beta.41
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 +317 -98
- package/bin/bitboss-ui-mcp.mjs +1566 -75
- package/bin/bitboss-ui.mjs +716 -72
- package/dist/ai/BbAccordion.md +178 -56
- package/dist/ai/BbAlert.md +140 -28
- package/dist/ai/BbAsterisk.md +61 -4
- package/dist/ai/BbAvatar.md +194 -53
- package/dist/ai/BbBadge.md +250 -50
- package/dist/ai/BbBadgeButton.md +74 -21
- package/dist/ai/BbBaseButton.md +132 -51
- package/dist/ai/BbBaseCheckboxIcon.md +118 -26
- package/dist/ai/BbBaseRadioIcon.md +115 -26
- package/dist/ai/BbBaseSwitchIcon.md +123 -28
- package/dist/ai/BbBreadcrumbs.md +221 -51
- package/dist/ai/BbButton.md +389 -107
- package/dist/ai/BbCalendar.md +667 -0
- package/dist/ai/BbCheckbox.md +242 -80
- package/dist/ai/BbCheckboxGroup.md +575 -66
- package/dist/ai/BbCollapsible.md +158 -39
- package/dist/ai/BbColorInput.md +322 -82
- package/dist/ai/BbColorPalette.md +261 -61
- package/dist/ai/BbConfirm.md +220 -51
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +272 -37
- package/dist/ai/BbDatePickerInput.md +321 -92
- package/dist/ai/BbDialog.md +492 -87
- package/dist/ai/BbDropdown.md +1182 -104
- package/dist/ai/BbDropdownButton.md +239 -61
- package/dist/ai/BbDropdownGroup.md +5 -5
- package/dist/ai/BbDropzone.md +140 -36
- package/dist/ai/BbForm.md +1165 -40
- package/dist/ai/BbIcon.md +100 -33
- package/dist/ai/BbIndicator.md +79 -12
- package/dist/ai/BbNumberInput.md +257 -87
- package/dist/ai/BbOffCanvas.md +396 -91
- package/dist/ai/BbPagination.md +199 -32
- package/dist/ai/BbPopover.md +219 -54
- package/dist/ai/BbProgress.md +137 -71
- package/dist/ai/BbPtScope.md +136 -0
- package/dist/ai/BbRadio.md +234 -43
- package/dist/ai/BbRadioGroup.md +529 -91
- package/dist/ai/BbRating.md +243 -61
- package/dist/ai/BbSelect.md +690 -120
- package/dist/ai/BbSelectPopover.md +434 -122
- package/dist/ai/BbSlider.md +275 -79
- package/dist/ai/BbSmoothHeight.md +142 -34
- package/dist/ai/BbSpinner.md +179 -81
- package/dist/ai/BbSwitch.md +249 -63
- package/dist/ai/BbSwitchGroup.md +394 -65
- package/dist/ai/BbTable.md +1666 -222
- package/dist/ai/BbTabs.md +898 -178
- package/dist/ai/BbTabsList.md +81 -7
- package/dist/ai/BbTabsPanels.md +77 -0
- package/dist/ai/BbTabsRoot.md +16 -15
- package/dist/ai/BbTag.md +256 -76
- package/dist/ai/BbTextInput.md +480 -102
- package/dist/ai/BbTextarea.md +310 -96
- package/dist/ai/BbTimePicker.md +159 -24
- package/dist/ai/BbTimePickerInput.md +277 -46
- package/dist/ai/BbToast.md +286 -40
- package/dist/ai/BbToastPortal.md +3 -3
- package/dist/ai/BbTooltip.md +187 -34
- package/dist/ai/BbTree.md +260 -85
- package/dist/ai/ChipsBox.md +43 -2
- package/dist/ai/ClearableButton.md +12 -0
- package/dist/ai/CommaBox.md +2 -1
- package/dist/ai/CommonField.md +63 -0
- package/dist/ai/CommonFieldInput.md +90 -0
- package/dist/ai/CommonPopover.md +17 -12
- package/dist/ai/CommonTimeSelector.md +63 -0
- package/dist/ai/ErrorIcon.md +20 -0
- package/dist/ai/FlatListBox.md +41 -11
- package/dist/ai/GroupedListBox.md +42 -12
- package/dist/ai/ListBox.md +46 -11
- package/dist/ai/OptionsContainer.md +13 -10
- package/dist/ai/WarningIcon.md +20 -0
- package/dist/ai/changelog.json +4025 -141
- package/dist/ai/components.json +51872 -10136
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useBbDropdownContext.md +168 -0
- package/dist/ai/composables/useBbFormContext.md +51 -24
- package/dist/ai/composables/useBbFormField.md +134 -0
- package/dist/ai/composables/useBbTableContext.md +41 -19
- package/dist/ai/composables/useConfirm.md +16 -8
- package/dist/ai/composables/useCountdown.md +1 -1
- package/dist/ai/composables/useId.md +10 -10
- package/dist/ai/composables/useMobile.md +17 -10
- package/dist/ai/composables/useToast.md +25 -19
- package/dist/ai/design-tokens.json +940 -0
- package/dist/ai/design-tokens.manifest.yaml +175 -0
- package/dist/ai/guides/agent-contract.md +168 -22
- package/dist/ai/guides/ai-router.md +79 -40
- package/dist/ai/guides/app-layout.md +8 -4
- package/dist/ai/guides/coherence-playbook.md +8 -8
- package/dist/ai/guides/component-picker.md +42 -34
- package/dist/ai/guides/design-language.md +274 -97
- package/dist/ai/guides/design-tokens.md +493 -105
- package/dist/ai/guides/fetch-items-playbook.md +22 -16
- package/dist/ai/guides/icons-policy.md +67 -35
- package/dist/ai/guides/inertia-helpers.md +4 -1
- package/dist/ai/guides/inline-edit-playbook.md +13 -6
- package/dist/ai/guides/installation-and-plugin-setup.md +817 -73
- package/dist/ai/guides/migration/components/bb-accordion.md +37 -0
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-avatar.md +13 -14
- package/dist/ai/guides/migration/components/bb-badge.md +5 -5
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +9 -8
- package/dist/ai/guides/migration/components/bb-button.md +80 -20
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +116 -29
- package/dist/ai/guides/migration/components/bb-checkbox.md +53 -10
- package/dist/ai/guides/migration/components/bb-chip.md +6 -6
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-input.md +5 -5
- package/dist/ai/guides/migration/components/bb-color-palette.md +16 -9
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +45 -35
- package/dist/ai/guides/migration/components/bb-dialog.md +69 -36
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +7 -1
- package/dist/ai/guides/migration/components/bb-dropdown.md +31 -8
- package/dist/ai/guides/migration/components/bb-dropzone.md +8 -0
- package/dist/ai/guides/migration/components/bb-icon.md +7 -7
- package/dist/ai/guides/migration/components/bb-intersection.md +1 -1
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -31
- package/dist/ai/guides/migration/components/bb-pagination.md +10 -0
- package/dist/ai/guides/migration/components/bb-popover.md +19 -11
- package/dist/ai/guides/migration/components/bb-radio-group.md +14 -0
- package/dist/ai/guides/migration/components/bb-rating.md +61 -24
- package/dist/ai/guides/migration/components/bb-select-popover.md +9 -1
- package/dist/ai/guides/migration/components/bb-select.md +21 -4
- package/dist/ai/guides/migration/components/bb-slider.md +14 -6
- package/dist/ai/guides/migration/components/bb-switch-group.md +14 -0
- package/dist/ai/guides/migration/components/bb-table.md +574 -33
- package/dist/ai/guides/migration/components/bb-tabs.md +91 -41
- package/dist/ai/guides/migration/components/bb-tag.md +9 -7
- package/dist/ai/guides/migration/components/bb-text-input.md +12 -12
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
- package/dist/ai/guides/migration/components/bb-tree.md +11 -9
- package/dist/ai/guides/migration/components/use-confirm.md +9 -1
- package/dist/ai/guides/migration/v2-to-v3.md +828 -240
- package/dist/ai/guides/migration/v3-beta-css-classes.md +751 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +119 -0
- package/dist/ai/guides/options-items-playbook.md +161 -12
- package/dist/ai/guides/page-shell.md +1 -1
- package/dist/ai/guides/passthrough.md +958 -0
- package/dist/ai/guides/preset-components.md +361 -0
- package/dist/ai/guides/ssr-prefill.md +127 -0
- package/dist/ai/guides/validated-forms.md +466 -55
- package/dist/ai/guides/validation-libraries.md +171 -0
- package/dist/ai/guides/validation-providers.md +113 -0
- package/dist/ai/index.md +45 -44
- package/dist/ai/recipes/inertia/approvals-inbox.md +26 -10
- package/dist/ai/recipes/inertia/command-palette.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +46 -30
- package/dist/ai/recipes/inertia/layout-scaffold.md +6 -2
- package/dist/ai/recipes/inertia/onboarding.md +30 -8
- package/dist/ai/recipes/inertia/ownership-atlas.md +72 -49
- package/dist/ai/recipes/inertia/record-form.md +53 -19
- package/dist/ai/recipes/inertia/records-workspace.md +201 -49
- package/dist/ai/recipes/inertia/settings-workspace.md +3809 -0
- package/dist/ai/recipes/inertia/upload-center.md +54 -43
- package/dist/ai/recipes/inertia/wizard-form.md +98 -14
- package/dist/ai/recipes/nuxt/approvals-inbox.md +26 -10
- package/dist/ai/recipes/nuxt/command-palette.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +68 -52
- package/dist/ai/recipes/nuxt/layout-scaffold.md +6 -2
- package/dist/ai/recipes/nuxt/onboarding.md +30 -8
- package/dist/ai/recipes/nuxt/record-form.md +66 -22
- package/dist/ai/recipes/nuxt/records-workspace.md +199 -48
- package/dist/ai/recipes/nuxt/settings-workspace.md +3898 -0
- package/dist/ai/recipes/nuxt/upload-center.md +52 -41
- package/dist/ai/recipes/nuxt/wizard-form.md +98 -14
- package/dist/ai/recipes/vue/approvals-inbox.md +28 -12
- package/dist/ai/recipes/vue/command-palette.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +69 -53
- package/dist/ai/recipes/vue/layout-scaffold.md +6 -2
- package/dist/ai/recipes/vue/onboarding.md +32 -8
- package/dist/ai/recipes/vue/record-form.md +81 -54
- package/dist/ai/recipes/vue/records-workspace.md +198 -49
- package/dist/ai/recipes/vue/settings-workspace.md +3836 -0
- package/dist/ai/recipes/vue/upload-center.md +53 -42
- package/dist/ai/recipes/vue/wizard-form.md +97 -14
- package/dist/ai/source/BbAccordion.md +90 -24
- package/dist/ai/source/BbAlert.md +209 -62
- package/dist/ai/source/BbAsterisk.md +54 -4
- package/dist/ai/source/BbAvatar.md +73 -16
- package/dist/ai/source/BbBadge.md +265 -97
- package/dist/ai/source/BbBadgeButton.md +218 -79
- package/dist/ai/source/BbBaseButton.md +108 -12
- package/dist/ai/source/BbBaseCheckboxIcon.md +151 -36
- package/dist/ai/source/BbBaseRadioIcon.md +121 -17
- package/dist/ai/source/BbBaseSwitchIcon.md +138 -28
- package/dist/ai/source/BbBreadcrumbs.md +363 -69
- package/dist/ai/source/BbButton.md +563 -174
- package/dist/ai/source/BbCalendar.md +1744 -0
- package/dist/ai/source/BbCheckbox.md +470 -68
- package/dist/ai/source/BbCheckboxGroup.md +976 -95
- package/dist/ai/source/BbCollapsible.md +96 -8
- package/dist/ai/source/BbColorInput.md +597 -67
- package/dist/ai/source/BbColorPalette.md +1284 -65
- package/dist/ai/source/BbConfirm.md +149 -7
- package/dist/ai/source/BbConfirmPortal.md +89 -3
- package/dist/ai/source/BbDatePicker.md +527 -381
- package/dist/ai/source/BbDatePickerInput.md +2015 -118
- package/dist/ai/source/BbDialog.md +531 -64
- package/dist/ai/source/BbDropdown.md +885 -175
- package/dist/ai/source/BbDropdownButton.md +377 -79
- package/dist/ai/source/BbDropdownGroup.md +687 -96
- package/dist/ai/source/BbDropzone.md +140 -31
- package/dist/ai/source/BbForm.md +875 -17
- package/dist/ai/source/BbIcon.md +130 -52
- package/dist/ai/source/BbIndicator.md +117 -60
- package/dist/ai/source/BbNumberInput.md +667 -84
- package/dist/ai/source/BbOffCanvas.md +1007 -261
- package/dist/ai/source/BbPagination.md +203 -31
- package/dist/ai/source/BbPopover.md +267 -90
- package/dist/ai/source/BbProgress.md +88 -26
- package/dist/ai/source/BbPtScope.md +54 -0
- package/dist/ai/source/BbRadio.md +388 -58
- package/dist/ai/source/BbRadioGroup.md +940 -109
- package/dist/ai/source/BbRating.md +736 -84
- package/dist/ai/source/BbSelect.md +1096 -96
- package/dist/ai/source/BbSelectPopover.md +807 -114
- package/dist/ai/source/BbSlider.md +1390 -98
- package/dist/ai/source/BbSmoothHeight.md +48 -2
- package/dist/ai/source/BbSpinner.md +62 -6
- package/dist/ai/source/BbSwitch.md +297 -60
- package/dist/ai/source/BbSwitchGroup.md +761 -83
- package/dist/ai/source/BbTable.md +6950 -1864
- package/dist/ai/source/BbTabs.md +368 -111
- package/dist/ai/source/BbTabsList.md +503 -146
- package/dist/ai/source/BbTabsPanels.md +625 -0
- package/dist/ai/source/BbTabsRoot.md +319 -100
- package/dist/ai/source/BbTag.md +796 -87
- package/dist/ai/source/BbTextInput.md +497 -68
- package/dist/ai/source/BbTextarea.md +550 -65
- package/dist/ai/source/BbTimePicker.md +395 -69
- package/dist/ai/source/BbTimePickerInput.md +1233 -106
- package/dist/ai/source/BbToast.md +250 -74
- package/dist/ai/source/BbToastPortal.md +210 -66
- package/dist/ai/source/BbTooltip.md +181 -30
- package/dist/ai/source/BbTree.md +76 -11
- package/dist/ai/source/ChipsBox.md +25 -5
- package/dist/ai/source/CommaBox.md +21 -6
- package/dist/ai/source/{BbBaseInputContainer.md → CommonField.md} +467 -250
- package/dist/ai/source/CommonFieldInput.md +848 -0
- package/dist/ai/source/CommonPopover.md +116 -30
- package/dist/ai/source/CommonTimeSelector.md +726 -0
- package/dist/ai/source/ErrorIcon.md +2 -2
- package/dist/ai/source/FlatListBox.md +188 -17
- package/dist/ai/source/GroupedListBox.md +236 -44
- package/dist/ai/source/GuidesComponent.md +14 -7
- package/dist/ai/source/ListBox.md +46 -8
- package/dist/ai/source/OptionsContainer.md +288 -60
- package/dist/ai/source/WarningIcon.md +2 -2
- package/dist/assets/css/reset.css_inline.js +1 -1
- package/dist/assets/svgs/star.svg_raw.js +4 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +49 -32
- package/dist/components/BbAccordion/types.d.ts +35 -3
- package/dist/components/BbAccordion/types.js +11 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +46 -30
- package/dist/components/BbAlert/types.d.ts +37 -3
- package/dist/components/BbAlert/types.js +13 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -1
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +23 -8
- package/dist/components/BbAsterisk/types.d.ts +18 -0
- package/dist/components/BbAsterisk/types.js +7 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +57 -44
- package/dist/components/BbAvatar/types.d.ts +23 -0
- package/dist/components/BbAvatar/types.js +7 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -18
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +96 -53
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +27 -8
- package/dist/components/BbBadge/badgeButtonContext.d.ts +25 -8
- package/dist/components/BbBadge/types.d.ts +46 -3
- package/dist/components/BbBadge/types.js +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +109 -96
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/BbBaseButton/types.d.ts +33 -3
- package/dist/components/BbBaseButton/types.js +9 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +50 -18
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +31 -2
- package/dist/components/BbBaseCheckboxIcon/types.js +8 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +45 -15
- package/dist/components/BbBaseRadioIcon/types.d.ts +31 -2
- package/dist/components/BbBaseRadioIcon/types.js +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +48 -16
- package/dist/components/BbBaseSwitchIcon/types.d.ts +31 -2
- package/dist/components/BbBaseSwitchIcon/types.js +8 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +187 -132
- package/dist/components/BbBreadcrumbs/types.d.ts +45 -3
- package/dist/components/BbBreadcrumbs/types.js +12 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +5 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +107 -81
- package/dist/components/BbButton/types.d.ts +113 -2
- package/dist/components/BbButton/types.js +12 -0
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +34 -0
- package/dist/components/BbCalendar/BbCalendar.vue.js +6 -0
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +608 -0
- package/dist/components/BbCalendar/CalendarMonthPanel.vue.js +5 -0
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +124 -0
- package/dist/components/BbCalendar/CalendarYearPanel.vue.js +5 -0
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbCalendar/calendarHost.d.ts +29 -0
- package/dist/components/BbCalendar/calendarHost.js +10 -0
- package/dist/components/BbCalendar/types.d.ts +225 -0
- package/dist/components/BbCalendar/types.js +29 -0
- package/dist/components/{BbBaseDatePicker/useDatePickerContext.d.ts → BbCalendar/useCalendarContext.d.ts} +10 -7
- package/dist/components/BbCalendar/useCalendarContext.js +11 -0
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +208 -0
- package/dist/components/BbCalendar/useCalendarGrid.js +274 -0
- package/dist/components/BbCalendar/useDayGrid.d.ts +79 -0
- package/dist/components/BbCalendar/useDayGrid.js +204 -0
- package/dist/components/BbCalendar/useToday.d.ts +23 -0
- package/dist/components/BbCalendar/useToday.js +21 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +214 -72
- package/dist/components/BbCheckbox/types.d.ts +180 -13
- package/dist/components/BbCheckbox/types.js +8 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +15 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +338 -90
- package/dist/components/BbCheckboxGroup/types.d.ts +195 -20
- package/dist/components/BbCheckboxGroup/types.js +10 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +41 -19
- package/dist/components/BbCollapsible/types.d.ts +44 -1
- package/dist/components/BbCollapsible/types.js +7 -0
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +17 -7
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +330 -86
- package/dist/components/BbColorInput/types.d.ts +230 -12
- package/dist/components/BbColorInput/types.js +24 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +10 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +515 -108
- package/dist/components/BbColorPalette/types.d.ts +76 -7
- package/dist/components/BbColorPalette/types.js +12 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +125 -76
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -0
- package/dist/components/BbConfirm/types.d.ts +49 -0
- package/dist/components/BbConfirm/types.js +17 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -10
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +320 -223
- package/dist/components/BbDatePicker/types.d.ts +111 -17
- package/dist/components/BbDatePicker/types.js +33 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1172 -87
- package/dist/components/BbDatePickerInput/types.d.ts +224 -19
- package/dist/components/BbDatePickerInput/types.js +39 -0
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +227 -136
- package/dist/components/BbDialog/types.d.ts +92 -3
- package/dist/components/BbDialog/types.js +16 -0
- package/dist/components/BbDialog/useDialogStack.d.ts +12 -0
- package/dist/components/BbDialog/useDialogStack.js +9 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +108 -96
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +337 -268
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +5 -1
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +8 -2
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +377 -293
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +129 -118
- package/dist/components/BbDropdown/normalizeGroups.js +55 -31
- package/dist/components/BbDropdown/types.d.ts +288 -30
- package/dist/components/BbDropdown/types.js +21 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +10 -4
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +18 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +172 -40
- package/dist/components/BbDropdownButton/types.d.ts +137 -8
- package/dist/components/BbDropdownButton/types.js +35 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +2 -2
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +186 -144
- package/dist/components/BbDropzone/types.d.ts +38 -4
- package/dist/components/BbDropzone/types.js +16 -0
- package/dist/components/BbForm/BbForm.vue.d.ts +94 -0
- package/dist/{validated → components/BbForm}/BbForm.vue.js +1 -1
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +317 -0
- package/dist/components/BbForm/BbFormCustomField.d.ts +14 -0
- package/dist/components/BbForm/BbFormCustomField.js +43 -0
- package/dist/components/BbForm/bindFormField.d.ts +16 -0
- package/dist/components/BbForm/bindFormField.js +85 -0
- package/dist/components/BbForm/formFields.d.ts +64 -0
- package/dist/components/BbForm/formFields.js +11 -0
- package/dist/components/BbForm/formSchema.d.ts +56 -0
- package/dist/components/BbForm/formSchema.js +196 -0
- package/dist/components/BbForm/standardSchema.d.ts +59 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +58 -48
- package/dist/components/BbIcon/iconCache.d.ts +63 -0
- package/dist/components/BbIcon/iconCache.js +35 -0
- package/dist/components/BbIcon/types.d.ts +22 -2
- package/dist/components/BbIcon/types.js +7 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +34 -21
- package/dist/components/BbIndicator/types.d.ts +24 -0
- package/dist/components/BbIndicator/types.js +7 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -8
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +308 -85
- package/dist/components/BbNumberInput/types.d.ts +201 -18
- package/dist/components/BbNumberInput/types.js +8 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +311 -210
- package/dist/components/BbOffCanvas/types.d.ts +79 -6
- package/dist/components/BbOffCanvas/types.js +15 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +125 -90
- package/dist/components/BbPagination/types.d.ts +38 -0
- package/dist/components/BbPagination/types.js +13 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +219 -179
- package/dist/components/BbPopover/types.d.ts +51 -5
- package/dist/components/BbPopover/types.js +14 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +29 -16
- package/dist/components/BbProgress/types.d.ts +25 -0
- package/dist/components/BbProgress/types.js +7 -0
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +12 -0
- package/dist/components/BbPtScope/BbPtScope.vue.js +5 -0
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbPtScope/types.d.ts +15 -0
- package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +172 -59
- package/dist/components/BbRadio/types.d.ts +152 -13
- package/dist/components/BbRadio/types.js +8 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +14 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +319 -92
- package/dist/components/BbRadioGroup/types.d.ts +198 -22
- package/dist/components/BbRadioGroup/types.js +10 -0
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -8
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +259 -78
- package/dist/components/BbRating/types.d.ts +174 -13
- package/dist/components/BbRating/types.js +21 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +553 -83
- package/dist/components/BbSelect/types.d.ts +235 -20
- package/dist/components/BbSelect/types.js +41 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +15 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +541 -391
- package/dist/components/BbSelectPopover/types.d.ts +124 -8
- package/dist/components/BbSelectPopover/types.js +24 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +13 -8
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +472 -96
- package/dist/components/BbSlider/types.d.ts +202 -13
- package/dist/components/BbSlider/types.js +26 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +60 -48
- package/dist/components/BbSmoothHeight/types.d.ts +19 -0
- package/dist/components/BbSmoothHeight/types.js +7 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +27 -14
- package/dist/components/BbSpinner/types.d.ts +22 -1
- package/dist/components/BbSpinner/types.js +7 -0
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +220 -78
- package/dist/components/BbSwitch/types.d.ts +25 -10
- package/dist/components/BbSwitch/types.js +5 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +14 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +338 -90
- package/dist/components/BbSwitchGroup/types.d.ts +30 -7
- package/dist/components/BbSwitchGroup/types.js +5 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +27 -6
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +2013 -685
- package/dist/components/BbTable/BbTableDataRow.d.ts +196 -0
- package/dist/components/BbTable/BbTableDataRow.js +151 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +84 -0
- package/dist/components/BbTable/BbTableExpandRow.js +62 -0
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +120 -0
- package/dist/components/BbTable/BbTableSelectToggle.js +122 -0
- package/dist/components/BbTable/gridWidgets.d.ts +30 -0
- package/dist/components/BbTable/gridWidgets.js +14 -0
- package/dist/components/BbTable/types.d.ts +473 -123
- package/dist/components/BbTable/types.js +31 -0
- package/dist/components/BbTable/utils.d.ts +145 -4
- package/dist/components/BbTable/utils.js +154 -37
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -1
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +62 -26
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -10
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +143 -81
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +12 -0
- package/dist/components/{BbBaseSwitch/BbBaseSwitch.vue.js → BbTabs/BbTabsPanels.vue.js} +2 -2
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +3 -1
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/BbTabs/types.d.ts +183 -23
- package/dist/components/BbTabs/types.js +34 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +383 -92
- package/dist/components/BbTag/types.d.ts +139 -14
- package/dist/components/BbTag/types.js +22 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -8
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +257 -84
- package/dist/components/BbTextInput/types.d.ts +168 -13
- package/dist/components/BbTextInput/types.js +8 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -7
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +291 -94
- package/dist/components/BbTextarea/types.d.ts +158 -14
- package/dist/components/BbTextarea/types.js +8 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -4
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +199 -122
- package/dist/components/BbTimePicker/types.d.ts +94 -7
- package/dist/components/BbTimePicker/types.js +18 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +14 -4
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +749 -86
- package/dist/components/BbTimePickerInput/types.d.ts +171 -22
- package/dist/components/BbTimePickerInput/types.js +25 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +63 -25
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +4 -1
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -76
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +4 -1
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +72 -64
- package/dist/components/BbToast/types.d.ts +54 -1
- package/dist/components/BbToast/types.js +28 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +104 -87
- package/dist/components/BbTooltip/types.d.ts +40 -2
- package/dist/components/BbTooltip/types.js +7 -0
- package/dist/components/BbTree/BbTree.vue.d.ts +15 -3
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +51 -29
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +17 -16
- package/dist/components/BbTree/context.d.ts +9 -1
- package/dist/components/BbTree/types.d.ts +40 -5
- package/dist/components/BbTree/types.js +7 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +46 -44
- package/dist/components/ChipsBox/types.d.ts +7 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +11 -7
- package/dist/components/CommaBox/types.d.ts +7 -0
- package/dist/components/{BbBaseInputContainer/BbBaseInputContainer.vue.d.ts → CommonField/CommonField.vue.d.ts} +5 -5
- package/dist/components/{BbBaseRadio/BbBaseRadio.vue.js → CommonField/CommonField.vue.js} +2 -2
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +189 -0
- package/dist/components/CommonField/messageHeightMatrix.d.ts +2 -0
- package/dist/components/{BbBaseInputContainer → CommonField}/types.d.ts +52 -16
- package/dist/components/{CommonInputWrapper/CommonInputWrapper.vue.d.ts → CommonFieldInput/CommonFieldInput.vue.d.ts} +5 -4
- package/dist/components/{BbBaseRadioGroup/BbBaseRadioGroup.vue.js → CommonFieldInput/CommonFieldInput.vue.js} +2 -2
- package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/components/CommonFieldInput/boxBorderMatrix.d.ts +10 -0
- package/dist/components/{CommonInputWrapper → CommonFieldInput}/types.d.ts +27 -8
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +11 -2
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +76 -63
- package/dist/components/CommonPopover/types.d.ts +27 -8
- package/dist/components/{BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts → CommonTimeSelector/CommonTimeSelector.vue.d.ts} +21 -2
- package/dist/components/{BbBaseColorPalette/BbBaseColorPalette.vue.js → CommonTimeSelector/CommonTimeSelector.vue.js} +2 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +232 -0
- package/dist/components/CommonTimeSelector/types.d.ts +6 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +5 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +165 -95
- package/dist/components/FlatListBox/types.d.ts +24 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +5 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +217 -134
- package/dist/components/GroupedListBox/types.d.ts +24 -2
- package/dist/components/ListBox/ListBox.vue.d.ts +5 -1
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +95 -69
- package/dist/components/ListBox/types.d.ts +24 -2
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +109 -37
- package/dist/components/OptionsContainer/types.d.ts +53 -9
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/composables/useBaseOptions.d.ts +12 -1
- package/dist/composables/useBaseOptions.js +77 -37
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useBbDropdownContext.d.ts +5 -0
- package/dist/composables/useBbFormContext.d.ts +131 -8
- package/dist/composables/useBbFormContext.js +49 -30
- package/dist/composables/useBbFormField.d.ts +40 -0
- package/dist/composables/useBbFormField.js +39 -0
- package/dist/composables/useBbTableContext.d.ts +45 -1
- package/dist/composables/useBbTableContext.js +93 -87
- package/dist/composables/useBbTabsContext.d.ts +15 -9
- package/dist/composables/useBbTabsContext.js +121 -90
- package/dist/composables/useClosingInert.d.ts +4 -4
- package/dist/composables/useCoarsePointer.js +7 -10
- package/dist/composables/useCoherence.js +1 -1
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +15 -0
- package/dist/composables/useConfirm.d.ts +39 -7
- package/dist/composables/useConfirm.js +50 -41
- package/dist/composables/useEscapeStackEntry.d.ts +13 -0
- package/dist/composables/useEscapeStackEntry.js +16 -0
- package/dist/composables/useFormBinding.d.ts +116 -0
- package/dist/composables/useFormBinding.js +34 -0
- package/dist/composables/useHydrated.d.ts +18 -0
- package/dist/composables/useHydrated.js +13 -7
- package/dist/composables/useId.d.ts +4 -3
- package/dist/composables/useId.js +1 -7
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useKeyboardInset.d.ts +28 -0
- package/dist/composables/useKeyboardInset.js +32 -0
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +7 -10
- package/dist/composables/usePassthrough.d.ts +228 -0
- package/dist/composables/usePassthrough.js +247 -0
- package/dist/composables/usePrefill.d.ts +22 -2
- package/dist/composables/usePrefill.js +35 -19
- package/dist/composables/useSafeAreaInternal.js +1 -1
- package/dist/composables/useSegmentedFields.d.ts +2 -2
- package/dist/composables/useSsrState.d.ts +20 -0
- package/dist/composables/useSsrState.js +13 -0
- package/dist/composables/useTableWidthContext.d.ts +24 -4
- package/dist/composables/useTableWidthContext.js +31 -28
- package/dist/composables/useToast.d.ts +18 -1
- package/dist/composables/useToast.js +31 -18
- package/dist/composables/useToggleInput.d.ts +44 -0
- package/dist/composables/useToggleInput.js +39 -0
- package/dist/composables/useViewportWidth.d.ts +5 -25
- package/dist/composables/useViewportWidth.js +14 -7
- package/dist/deprecation/ai-deprecations.json.d.ts +1977 -289
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.js +9 -4
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/bbTooltip.d.ts +6 -0
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +92 -37
- package/dist/i18n/index.d.ts +10 -16
- package/dist/i18n/locales/cs.json +9 -5
- package/dist/i18n/locales/da.json +9 -5
- package/dist/i18n/locales/de.json +9 -5
- package/dist/i18n/locales/el.json +9 -5
- package/dist/i18n/locales/en.json +9 -5
- package/dist/i18n/locales/es.json +9 -5
- package/dist/i18n/locales/fi.json +9 -5
- package/dist/i18n/locales/fr.json +9 -5
- package/dist/i18n/locales/hu.json +9 -5
- package/dist/i18n/locales/it.json +9 -5
- package/dist/i18n/locales/ja.json +9 -5
- package/dist/i18n/locales/ko.json +9 -5
- package/dist/i18n/locales/nb.json +9 -5
- package/dist/i18n/locales/nl.json +9 -5
- package/dist/i18n/locales/pl.json +9 -5
- package/dist/i18n/locales/pt.json +9 -5
- package/dist/i18n/locales/ro.json +9 -5
- package/dist/i18n/locales/ru.json +9 -5
- package/dist/i18n/locales/sv.json +9 -5
- package/dist/i18n/locales/tr.json +9 -5
- package/dist/i18n/locales/uk.json +9 -5
- package/dist/i18n/locales/zh-cn.json +9 -5
- package/dist/icon-scan.d.ts +276 -0
- package/dist/icon-scan.js +485 -0
- package/dist/icons-whitelist.d.ts +5 -4
- package/dist/index.d.ts +40 -21
- package/dist/index.js +78 -71
- package/dist/llms-full.txt +61164 -27972
- package/dist/llms-medium.txt +1482 -366
- package/dist/llms.txt +32 -15
- package/dist/locale-blueprint.json +9 -5
- package/dist/nuxt-auto-imports.d.ts +76 -0
- package/dist/nuxt-auto-imports.js +32 -0
- package/dist/nuxt-module.d.ts +30 -15
- package/dist/nuxt.js +35 -9
- package/dist/passthrough-deduper.js +5 -0
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +29 -19
- package/dist/project-dts.d.ts +84 -0
- package/dist/project-dts.js +170 -0
- package/dist/reset.css +1 -1
- package/dist/runtime/nuxt-plugin.js +34 -21
- package/dist/styles.css +3 -2
- package/dist/types/AlertVariant.d.ts +10 -1
- package/dist/types/BadgeVariant.d.ts +16 -5
- package/dist/types/ButtonVariant.d.ts +12 -1
- package/dist/types/ColumnName.d.ts +30 -3
- package/dist/types/CommonProps.d.ts +2 -2
- package/dist/types/Config.d.ts +94 -1
- package/dist/types/ConfirmVariant.d.ts +8 -1
- package/dist/types/DropdownItemVariant.d.ts +8 -1
- package/dist/types/FieldLayout.d.ts +32 -0
- package/dist/types/IndicatorVariant.d.ts +11 -1
- package/dist/types/InputVariant.d.ts +30 -0
- package/dist/types/ItemProps.d.ts +50 -0
- package/dist/types/Option.d.ts +6 -0
- package/dist/types/PtScope.d.ts +15 -0
- package/dist/types/RegistryKey.d.ts +10 -0
- package/dist/types/TabsVariant.d.ts +25 -0
- package/dist/types/ToastVariant.d.ts +12 -2
- package/dist/types/TooltipVariant.d.ts +8 -1
- package/dist/types/passthrough.d.ts +362 -0
- package/dist/types/passthrough.js +78 -0
- package/dist/types/ptComponentMap.d.ts +62 -0
- package/dist/utilities/functions/hasVnodeListener.d.ts +16 -0
- package/dist/utilities/functions/hasVnodeListener.js +12 -0
- package/dist/utilities/functions/isImeComposing.d.ts +7 -0
- package/dist/utilities/functions/isImeComposing.js +4 -0
- package/dist/utilities/functions/itemProps.d.ts +46 -0
- package/dist/utilities/functions/itemProps.js +47 -0
- package/dist/utilities/functions/slotKey.d.ts +13 -8
- package/dist/utilities/functions/slotKey.js +78 -2
- package/dist/utilities/functions/snapToStep.js +2 -1
- package/dist/utilities/functions/toggleInput.d.ts +98 -0
- package/dist/utilities/functions/toggleInput.js +56 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +27 -1
- package/dist/utilities/functions/warnRemovedAttrs.js +75 -14
- package/dist/utilities/misc/listboxMetrics.d.ts +9 -3
- package/dist/utilities/misc/listboxMetrics.js +5 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/utils/cssLayers.d.ts +91 -0
- package/dist/utils/cssLayers.js +43 -0
- package/dist/utils/injectLibraryStyles.d.ts +3 -1
- package/dist/utils/injectLibraryStyles.js +24 -23
- package/dist/utils/overlayEscapeStack.d.ts +10 -0
- package/dist/utils/overlayEscapeStack.js +5 -3
- package/dist/utils/passthrough.d.ts +67 -0
- package/dist/utils/passthrough.js +100 -0
- package/dist/utils/passthroughDeduper.d.ts +2 -0
- package/dist/utils/ptScope.d.ts +8 -0
- package/dist/utils/ptScope.js +4 -0
- package/dist/utils/versionCheck.d.ts +19 -0
- package/dist/utils/versionCheck.js +18 -0
- package/dist/vite-plugin.d.ts +301 -53
- package/dist/vite.js +547 -375
- package/llms.txt +33 -16
- package/package.json +49 -27
- package/scripts/lib/check-fix.mjs +129 -0
- package/scripts/lib/component-attr-targets.ts +123 -0
- package/scripts/lib/component-tree.ts +648 -0
- package/scripts/lib/css-class-check.mjs +326 -0
- package/scripts/lib/css-class-surface.mjs +292 -0
- package/scripts/lib/css-color-resolve.mjs +172 -0
- package/scripts/lib/css-local-check.mjs +267 -0
- package/scripts/lib/design-token-manifest.mjs +499 -0
- package/scripts/lib/doc-sections.mjs +248 -0
- package/scripts/lib/ensure-manifest.mjs +28 -5
- package/scripts/lib/eslint-disable.mjs +141 -0
- package/scripts/lib/eslint-plugin.d.ts +64 -1
- package/scripts/lib/eslint-plugin.mjs +1285 -30
- package/scripts/lib/hand-imported-styles.mjs +326 -0
- package/scripts/lib/hand-roll-hints.mjs +50 -6
- package/scripts/lib/html-attributes.mjs +353 -0
- package/scripts/lib/local-components.mjs +177 -0
- package/scripts/lib/mcp-config.mjs +87 -58
- package/scripts/lib/migrate-fix.mjs +62 -3
- package/scripts/lib/project-variant-dts.mjs +122 -0
- package/scripts/lib/public-type-exports.mjs +273 -0
- package/scripts/lib/slot-key.mjs +147 -0
- package/scripts/lib/slot-renames.mjs +46 -0
- package/scripts/lib/squashed-slot-words.mjs +133 -0
- package/scripts/lib/validate-bb-markup.mjs +2213 -76
- package/scripts/lib/wrapper-props.mjs +188 -0
- package/dist/ai/BbBaseCheckbox.md +0 -49
- package/dist/ai/BbBaseCheckboxGroup.md +0 -64
- package/dist/ai/BbBaseColorInput.md +0 -65
- package/dist/ai/BbBaseColorPalette.md +0 -39
- package/dist/ai/BbBaseDatePicker.md +0 -43
- package/dist/ai/BbBaseDatePickerInput.md +0 -73
- package/dist/ai/BbBaseInputContainer.md +0 -48
- package/dist/ai/BbBaseNumberInput.md +0 -71
- package/dist/ai/BbBaseRadio.md +0 -46
- package/dist/ai/BbBaseRadioGroup.md +0 -64
- package/dist/ai/BbBaseRating.md +0 -52
- package/dist/ai/BbBaseSelect.md +0 -88
- package/dist/ai/BbBaseSlider.md +0 -56
- package/dist/ai/BbBaseSwitch.md +0 -49
- package/dist/ai/BbBaseSwitchGroup.md +0 -64
- package/dist/ai/BbBaseTag.md +0 -68
- package/dist/ai/BbBaseTextInput.md +0 -75
- package/dist/ai/BbBaseTextarea.md +0 -62
- package/dist/ai/BbBaseTimePickerInput.md +0 -62
- package/dist/ai/BbTabsPanes.md +0 -27
- package/dist/ai/CommonInputWrapper.md +0 -42
- package/dist/ai/source/BbBaseCheckbox.md +0 -461
- package/dist/ai/source/BbBaseCheckboxGroup.md +0 -554
- package/dist/ai/source/BbBaseColorInput.md +0 -431
- package/dist/ai/source/BbBaseColorPalette.md +0 -942
- package/dist/ai/source/BbBaseDatePicker.md +0 -1448
- package/dist/ai/source/BbBaseDatePickerInput.md +0 -1940
- package/dist/ai/source/BbBaseNumberInput.md +0 -617
- package/dist/ai/source/BbBaseRadio.md +0 -381
- package/dist/ai/source/BbBaseRadioGroup.md +0 -539
- package/dist/ai/source/BbBaseRating.md +0 -607
- package/dist/ai/source/BbBaseSelect.md +0 -945
- package/dist/ai/source/BbBaseSlider.md +0 -1144
- package/dist/ai/source/BbBaseSwitch.md +0 -246
- package/dist/ai/source/BbBaseSwitchGroup.md +0 -302
- package/dist/ai/source/BbBaseTag.md +0 -694
- package/dist/ai/source/BbBaseTextInput.md +0 -511
- package/dist/ai/source/BbBaseTextarea.md +0 -504
- package/dist/ai/source/BbBaseTimePickerInput.md +0 -1037
- package/dist/ai/source/BbTabsPanes.md +0 -377
- package/dist/ai/source/CommonInputWrapper.md +0 -584
- package/dist/alert-variants.d.ts +0 -19
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- package/dist/badge-variants.d.ts +0 -19
- package/dist/button-variants.d.ts +0 -21
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +0 -3
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +0 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +0 -40
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +0 -6
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +0 -145
- package/dist/components/BbBaseCheckbox/types.d.ts +0 -224
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +0 -6
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +0 -257
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +0 -43
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +0 -6
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +0 -184
- package/dist/components/BbBaseColorInput/types.d.ts +0 -219
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +0 -13
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +0 -395
- package/dist/components/BbBaseColorPalette/types.d.ts +0 -40
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.d.ts +0 -20
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +0 -6
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +0 -407
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +0 -47
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +0 -318
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +0 -115
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +0 -5
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +0 -116
- package/dist/components/BbBaseDatePicker/types.d.ts +0 -108
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +0 -11
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +0 -31
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +0 -6
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -737
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +0 -6
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +0 -204
- package/dist/components/BbBaseDatePickerInput/types.d.ts +0 -325
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +0 -6
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +0 -52
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +0 -6
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +0 -215
- package/dist/components/BbBaseNumberInput/types.d.ts +0 -211
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +0 -33
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +0 -113
- package/dist/components/BbBaseRadio/types.d.ts +0 -179
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -179
- package/dist/components/BbBaseRadioGroup/types.d.ts +0 -223
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +0 -38
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +0 -6
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +0 -192
- package/dist/components/BbBaseRating/types.d.ts +0 -176
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +0 -19
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +0 -6
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +0 -311
- package/dist/components/BbBaseSelect/types.d.ts +0 -297
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +0 -35
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +0 -6
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +0 -340
- package/dist/components/BbBaseSlider/types.d.ts +0 -200
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +0 -35
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +0 -146
- package/dist/components/BbBaseSwitch/types.d.ts +0 -10
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +0 -19
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +0 -6
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/BbBaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +0 -50
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +0 -6
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +0 -266
- package/dist/components/BbBaseTag/types.d.ts +0 -160
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +0 -45
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +0 -6
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +0 -200
- package/dist/components/BbBaseTextInput/types.d.ts +0 -209
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +0 -39
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +0 -6
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +0 -187
- package/dist/components/BbBaseTextarea/types.d.ts +0 -170
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +0 -27
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +0 -6
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -519
- package/dist/components/BbBaseTimePickerInput/types.d.ts +0 -151
- package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +0 -16
- package/dist/components/BbTabs/BbTabsPanes.vue.js +0 -6
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +0 -35
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +0 -6
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +0 -107
- package/dist/confirm-variants.d.ts +0 -17
- package/dist/dropdown-item-variants.d.ts +0 -17
- package/dist/indicator-variants.d.ts +0 -20
- package/dist/locale-registry.d.ts +0 -37
- package/dist/toast-variants.d.ts +0 -20
- package/dist/tooltip-variants.d.ts +0 -17
- package/dist/types/InputDirection.d.ts +0 -15
- package/dist/validated/BbCheckbox.vue.d.ts +0 -29
- package/dist/validated/BbCheckbox.vue.js +0 -5
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbCheckboxGroup.vue.d.ts +0 -34
- package/dist/validated/BbCheckboxGroup.vue.js +0 -5
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/validated/BbColorInput.vue.d.ts +0 -37
- package/dist/validated/BbColorInput.vue.js +0 -5
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbDatePickerInput.vue.d.ts +0 -41
- package/dist/validated/BbDatePickerInput.vue.js +0 -5
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +0 -90
- package/dist/validated/BbDropzone.vue.d.ts +0 -24
- package/dist/validated/BbDropzone.vue.js +0 -5
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/validated/BbForm.vue.d.ts +0 -28
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/validated/BbNumberInput.vue.d.ts +0 -36
- package/dist/validated/BbNumberInput.vue.js +0 -5
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbRadioGroup.vue.d.ts +0 -34
- package/dist/validated/BbRadioGroup.vue.js +0 -5
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +0 -78
- package/dist/validated/BbRating.vue.d.ts +0 -30
- package/dist/validated/BbRating.vue.js +0 -5
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/validated/BbSelect.vue.d.ts +0 -46
- package/dist/validated/BbSelect.vue.js +0 -5
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +0 -109
- package/dist/validated/BbSlider.vue.d.ts +0 -36
- package/dist/validated/BbSlider.vue.js +0 -5
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +0 -69
- package/dist/validated/BbSwitch.vue.d.ts +0 -29
- package/dist/validated/BbSwitch.vue.js +0 -5
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +0 -75
- package/dist/validated/BbSwitchGroup.vue.d.ts +0 -34
- package/dist/validated/BbSwitchGroup.vue.js +0 -5
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +0 -82
- package/dist/validated/BbTag.vue.d.ts +0 -36
- package/dist/validated/BbTag.vue.js +0 -5
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbTextInput.vue.d.ts +0 -36
- package/dist/validated/BbTextInput.vue.js +0 -5
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/validated/BbTextarea.vue.d.ts +0 -36
- package/dist/validated/BbTextarea.vue.js +0 -5
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +0 -70
- package/dist/validated/BbTimePickerInput.vue.d.ts +0 -37
- package/dist/validated/BbTimePickerInput.vue.js +0 -5
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +0 -81
- package/dist/validated/index.d.ts +0 -43
- package/dist/validated/useValidatedField.d.ts +0 -93
- package/dist/validated/useValidatedField.js +0 -51
- package/dist/validated.js +0 -21
- /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts → BbCalendar/CalendarMonthPanel.vue.d.ts} +0 -0
- /package/dist/components/{BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts → BbCalendar/CalendarYearPanel.vue.d.ts} +0 -0
- /package/dist/{components/BbBaseDatePicker/typeahead.d.ts → composables/useTypeahead.d.ts} +0 -0
- /package/dist/{components/BbBaseDatePicker/typeahead.js → composables/useTypeahead.js} +0 -0
|
@@ -1,737 +0,0 @@
|
|
|
1
|
-
import { useId as e } from "../../composables/useId.js";
|
|
2
|
-
import { useLogger as t } from "../../composables/useLogger.js";
|
|
3
|
-
import { useMobile as n } from "../../composables/useMobile.js";
|
|
4
|
-
import r from "../BbIcon/BbIcon.vue.js";
|
|
5
|
-
import { useLocale as i } from "../../composables/useLocale.js";
|
|
6
|
-
import { hash as a } from "../../utilities/functions/hash.js";
|
|
7
|
-
import { formatOfType as o, isCoarseType as s, unitOfType as c } from "../../types/DatePickerType.js";
|
|
8
|
-
import { toInnerValue as l, toOuterValue as u } from "../../utilities/functions/convertDateValue.js";
|
|
9
|
-
import { normalizeDateBound as d } from "../../utilities/functions/normalizeDateBound.js";
|
|
10
|
-
import f from "../BbDatePicker/BbDatePicker.vue.js";
|
|
11
|
-
import ee from "../CommonInputWrapper/CommonInputWrapper.vue.js";
|
|
12
|
-
import { isEmpty as te } from "../../utilities/functions/empty.js";
|
|
13
|
-
import { useSegmentedFields as ne } from "../../composables/useSegmentedFields.js";
|
|
14
|
-
import re from "../../assets/svgs/calendar.svg_raw.js";
|
|
15
|
-
import { isNotEmpty as ie } from "../../utilities/functions/isNotEmpty.js";
|
|
16
|
-
import { config as ae } from "virtual:bitboss-ui/config";
|
|
17
|
-
import { Fragment as oe, computed as p, createBlock as se, createCommentVNode as ce, createElementBlock as m, createElementVNode as h, createSlots as le, createVNode as ue, defineComponent as de, guardReactiveProps as fe, mergeProps as pe, normalizeClass as g, normalizeProps as me, normalizeStyle as he, onBeforeUnmount as ge, openBlock as _, ref as v, renderList as _e, renderSlot as y, toDisplayString as b, unref as x, watch as ve, watchEffect as ye, withCtx as S } from "vue";
|
|
18
|
-
import C from "dayjs";
|
|
19
|
-
import be from "dayjs/plugin/customParseFormat";
|
|
20
|
-
import xe from "dayjs/plugin/isSameOrAfter";
|
|
21
|
-
import Se from "dayjs/plugin/isSameOrBefore";
|
|
22
|
-
import { dayjsLocales as Ce } from "virtual:bitboss-ui/dayjs-locales";
|
|
23
|
-
//#region src/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var we = ["data-value"], Te = [
|
|
25
|
-
"id",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"aria-disabled",
|
|
28
|
-
"aria-invalid",
|
|
29
|
-
"aria-label",
|
|
30
|
-
"aria-readonly",
|
|
31
|
-
"autocomplete",
|
|
32
|
-
"autofocus",
|
|
33
|
-
"disabled",
|
|
34
|
-
"inputmode",
|
|
35
|
-
"maxlength",
|
|
36
|
-
"name",
|
|
37
|
-
"readonly",
|
|
38
|
-
"required",
|
|
39
|
-
"tabindex",
|
|
40
|
-
"value",
|
|
41
|
-
"onBlur",
|
|
42
|
-
"onFocus",
|
|
43
|
-
"onInput",
|
|
44
|
-
"onKeydown",
|
|
45
|
-
"onPaste"
|
|
46
|
-
], Ee = ["onClick"], De = ["disabled"], w = "YYYY-MM-DD", Oe = "YYYY-MM-DDTHH:mm", ke = /*@__PURE__*/ de({
|
|
47
|
-
__name: "BbBaseDatePickerInput",
|
|
48
|
-
props: {
|
|
49
|
-
adaptive: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: void 0
|
|
52
|
-
},
|
|
53
|
-
offCanvasProps: {},
|
|
54
|
-
disableWriting: {
|
|
55
|
-
type: [Boolean, String],
|
|
56
|
-
default: !1
|
|
57
|
-
},
|
|
58
|
-
"append:icon": {},
|
|
59
|
-
autocomplete: { default: "off" },
|
|
60
|
-
ariaDescribedby: {},
|
|
61
|
-
autofocus: {},
|
|
62
|
-
clearable: { type: Boolean },
|
|
63
|
-
compact: { type: Boolean },
|
|
64
|
-
disabled: { type: Boolean },
|
|
65
|
-
firstDayOfWeek: {},
|
|
66
|
-
floating: { type: Boolean },
|
|
67
|
-
hasErrors: { type: Boolean },
|
|
68
|
-
hasWarning: { type: Boolean },
|
|
69
|
-
id: {},
|
|
70
|
-
loading: { type: Boolean },
|
|
71
|
-
max: {},
|
|
72
|
-
min: {},
|
|
73
|
-
modelValue: {},
|
|
74
|
-
name: {},
|
|
75
|
-
placeholder: {},
|
|
76
|
-
"prepend:icon": {},
|
|
77
|
-
range: { type: Boolean },
|
|
78
|
-
readonly: { type: Boolean },
|
|
79
|
-
required: { type: Boolean },
|
|
80
|
-
selectable: {},
|
|
81
|
-
disableCalendar: {
|
|
82
|
-
type: [Boolean, String],
|
|
83
|
-
default: !1
|
|
84
|
-
},
|
|
85
|
-
type: { default: "date" },
|
|
86
|
-
ampm: { type: Boolean },
|
|
87
|
-
seconds: { type: Boolean },
|
|
88
|
-
step: {},
|
|
89
|
-
time: {},
|
|
90
|
-
utc: { type: Boolean },
|
|
91
|
-
transitionDuration: {}
|
|
92
|
-
},
|
|
93
|
-
emits: [
|
|
94
|
-
"active",
|
|
95
|
-
"error",
|
|
96
|
-
"focus",
|
|
97
|
-
"inactive",
|
|
98
|
-
"update:modelValue",
|
|
99
|
-
"update:time"
|
|
100
|
-
],
|
|
101
|
-
setup(de, { emit: ke }) {
|
|
102
|
-
let T = de, E = ke, D = p(() => T.type === "datetime"), O = p(() => s(T.type)), Ae = p(() => T.floating || O.value), k = p(() => c(T.type)), je = p(() => o(T.type));
|
|
103
|
-
C.extend(be), C.extend(xe), C.extend(Se), ye(() => {
|
|
104
|
-
C.locale(Ce[ae.locale] ?? "en");
|
|
105
|
-
});
|
|
106
|
-
let { t: A } = i(), j = t(), M = v(null), Me = v(null), N = T.id || `bdpi-${e().id.value}`, Ne = `bdpi-description_${N}`, Pe = p(() => {
|
|
107
|
-
let e = [T.ariaDescribedby, Ne].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
|
|
108
|
-
return Array.from(new Set(e)).join(" ");
|
|
109
|
-
}), Fe = p(() => ie(T.modelValue)), { isMobile: P } = n(), Ie = p(() => T.disableWriting === "mobile" ? !P.value : T.disableWriting === "desktop" ? P.value : !T.disableWriting), Le = p(() => T.disableCalendar === "mobile" ? P.value : T.disableCalendar === "desktop" ? !P.value : !!T.disableCalendar), Re = p(() => !!T.readonly || !Ie.value), ze = (e) => Ie.value ? dt.value[e].kind === "enum" ? "none" : "numeric" : "none", F = (e) => e.includes("T"), I = (e) => {
|
|
110
|
-
if (O.value) {
|
|
111
|
-
let t = C(e, je.value, !0);
|
|
112
|
-
return t.isValid() ? t : C(e);
|
|
113
|
-
}
|
|
114
|
-
return F(e) ? C(e, Oe, !0) : C(e, w, !0);
|
|
115
|
-
}, Be = p(() => d(T.min, T.type, "min", (e) => j.warn(`BaseDatePickerInput: ${e}`))), Ve = p(() => d(T.max, T.type, "max", (e) => j.warn(`BaseDatePickerInput: ${e}`)));
|
|
116
|
-
for (let [e, t] of [["min", T.min], ["max", T.max]]) if (t && (I(t).isValid() || j.throw(O.value ? `BaseDatePickerInput: ${e} must be a ${je.value} value (a longer date is accepted and rounded to the ${k.value}) with type="${T.type}"` : `BaseDatePickerInput: ${e} must be in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm`), O.value)) {
|
|
117
|
-
e === "min" ? Be.value : Ve.value;
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
let He = T.disableWriting !== !0 && T.disableWriting !== "desktop", Ue = T.disableCalendar !== !0 && T.disableCalendar !== "desktop", We = T.disableWriting !== !0 && T.disableWriting !== "mobile", Ge = T.disableCalendar !== !0 && T.disableCalendar !== "mobile";
|
|
121
|
-
!He && !Ue && j.throw("BaseDatePickerInput: desktop users would have no interaction method — disableWriting:true (or \"desktop\") and disableCalendar:true (or \"desktop\") cannot be combined."), !We && !Ge && j.throw("BaseDatePickerInput: mobile users would have no interaction method — combine disableWriting:\"mobile\" with disableCalendar:\"desktop\" to keep calendar interaction on mobile while staying keyboard-first on desktop.");
|
|
122
|
-
let Ke = p(() => ({
|
|
123
|
-
floating: Ae.value,
|
|
124
|
-
utc: T.utc,
|
|
125
|
-
type: T.type
|
|
126
|
-
})), L = (e) => u(e, Ke.value), R = (e) => l(e, Ke.value), z = v(!1), qe = () => {
|
|
127
|
-
z.value || (E("active"), z.value = !0, document.addEventListener("focusin", B), document.addEventListener("click", B));
|
|
128
|
-
}, B = (e) => {
|
|
129
|
-
let t = e.target;
|
|
130
|
-
t instanceof HTMLElement && M.value?.$el && (M.value.$el.contains(t) || Me.value?.calendarEl?.contains(t) || ($({ finalize: !0 }), Ut() && (Vt(), K()), z.value = !1, E("inactive"), document.removeEventListener("focusin", B), document.removeEventListener("click", B)));
|
|
131
|
-
}, Je = (e, t) => {
|
|
132
|
-
let n = R(t);
|
|
133
|
-
if (!n.isValid()) return;
|
|
134
|
-
let r = W.value[e];
|
|
135
|
-
r.day = n.format("DD"), r.month = n.format("MM"), r.year = n.format("YYYY");
|
|
136
|
-
}, Ye = { "onUpdate:modelValue": (e) => {
|
|
137
|
-
if (!D.value) {
|
|
138
|
-
E("update:modelValue", e);
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
if (e === null) {
|
|
142
|
-
W.value.start = G(), W.value.end = G(), K(), Q(null);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
if (Array.isArray(e)) {
|
|
146
|
-
let [t, n] = e;
|
|
147
|
-
t ? Je("start", t) : W.value.start = G(), n ? Je("end", n) : W.value.end = G(), K(), $({ finalize: !1 });
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
Je("start", e), K(), $({ finalize: !1 });
|
|
151
|
-
} }, Xe = (e) => {
|
|
152
|
-
let t = W.value[e];
|
|
153
|
-
return !!(t.day && t.month && t.year && t.year.length === 4);
|
|
154
|
-
}, Ze = v("start"), Qe = (e) => {
|
|
155
|
-
Ze.value = e.segment, St(e);
|
|
156
|
-
}, $e = p(() => T.range ? Xe(Ze.value) ? Ze.value : Xe("end") ? "end" : "start" : "start"), et = ({ unit: e, value: t }) => {
|
|
157
|
-
let n = W.value[$e.value];
|
|
158
|
-
e === "hour" ? J(n, parseInt(t, 10)) : n[e] = t, n.hour || (T.ampm ? n.hour = "12" : n.hour = "00"), T.ampm && !n.meridiem && (n.meridiem = "AM"), n.minute ||= "00", T.seconds && !n.second && (n.second = "00"), K(), $({ finalize: !1 });
|
|
159
|
-
}, tt = p(() => T.type === "year" ? "YYYY" : T.type === "month" ? "MMMM YYYY" : D.value ? T.ampm ? T.seconds ? "D MMMM YYYY h:mm:ss A" : "D MMMM YYYY h:mm A" : T.seconds ? "D MMMM YYYY HH:mm:ss" : "D MMMM YYYY HH:mm" : "D MMMM YYYY"), nt = p(() => {
|
|
160
|
-
if (T.range) {
|
|
161
|
-
let [e, t] = Array.isArray(T.modelValue) ? T.modelValue : [];
|
|
162
|
-
if (!e || !t) return A("baseDatePickerInput.emptyRange").value;
|
|
163
|
-
let n = R(e), r = R(t);
|
|
164
|
-
return !n.isValid() || !r.isValid() ? A("baseDatePickerInput.emptyRange").value : A("baseDatePickerInput.changeSelectionRange", n.format(tt.value), r.format(tt.value)).value;
|
|
165
|
-
}
|
|
166
|
-
if (typeof T.modelValue == "string") {
|
|
167
|
-
let e = R(T.modelValue);
|
|
168
|
-
return e.isValid() ? A("baseDatePickerInput.changeSelection", e.format(tt.value)).value : A("baseDatePickerInput.emptySelection").value;
|
|
169
|
-
}
|
|
170
|
-
return A("baseDatePickerInput.emptySelection").value;
|
|
171
|
-
}), V = (e) => {
|
|
172
|
-
if (!e.isValid()) return !0;
|
|
173
|
-
let t = !0, n = (e) => O.value ? k.value : D.value && F(e) ? "minute" : "day", r = Be.value, i = Ve.value;
|
|
174
|
-
return r && (t &&= e.isSameOrAfter(I(r), n(r))), i && (t &&= e.isSameOrBefore(I(i), n(i))), typeof T.selectable == "function" && (t &&= T.selectable(L(e))), !t;
|
|
175
|
-
}, rt = () => {
|
|
176
|
-
T.range ? (E("update:modelValue", []), D.value && (Z.value = [], E("update:time", []))) : (E("update:modelValue", null), D.value && (Z.value = null, E("update:time", null)));
|
|
177
|
-
}, it = /* @__PURE__ */ new Set([
|
|
178
|
-
"hour",
|
|
179
|
-
"minute",
|
|
180
|
-
"second",
|
|
181
|
-
"meridiem"
|
|
182
|
-
]), at = (e, t) => t === "PM" ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, ot = (e) => {
|
|
183
|
-
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
184
|
-
return n === 0 && (n = 12), {
|
|
185
|
-
hour: String(n).padStart(2, "0"),
|
|
186
|
-
meridiem: t
|
|
187
|
-
};
|
|
188
|
-
}, st = p(() => T.type === "year" ? ["year"] : T.type === "month" ? ["month", "year"] : ae.locale === "en" ? [
|
|
189
|
-
"month",
|
|
190
|
-
"day",
|
|
191
|
-
"year"
|
|
192
|
-
] : [
|
|
193
|
-
"day",
|
|
194
|
-
"month",
|
|
195
|
-
"year"
|
|
196
|
-
]), H = p(() => new Set(st.value)), ct = p(() => {
|
|
197
|
-
if (!D.value) return [];
|
|
198
|
-
let e = ["hour", "minute"];
|
|
199
|
-
return T.seconds && e.push("second"), T.ampm && e.push("meridiem"), e;
|
|
200
|
-
}), U = p(() => {
|
|
201
|
-
let e = [...st.value, ...ct.value], t = e.map((e) => ({
|
|
202
|
-
segment: "start",
|
|
203
|
-
field: e
|
|
204
|
-
}));
|
|
205
|
-
if (!T.range) return t;
|
|
206
|
-
let n = e.map((e) => ({
|
|
207
|
-
segment: "end",
|
|
208
|
-
field: e
|
|
209
|
-
}));
|
|
210
|
-
return [...t, ...n];
|
|
211
|
-
}), lt = p(() => {
|
|
212
|
-
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
|
|
213
|
-
return U.value.forEach((n, r) => {
|
|
214
|
-
e.has(n.segment) || (e.add(n.segment), t.add(r));
|
|
215
|
-
}), t;
|
|
216
|
-
}), ut = (e) => lt.value.has(e), dt = p(() => ({
|
|
217
|
-
day: {
|
|
218
|
-
kind: "numeric",
|
|
219
|
-
maxLength: 2,
|
|
220
|
-
max: 31,
|
|
221
|
-
rejectZero: !0,
|
|
222
|
-
padTo: 2,
|
|
223
|
-
autoAdvanceFrom: 4,
|
|
224
|
-
label: "Day"
|
|
225
|
-
},
|
|
226
|
-
month: {
|
|
227
|
-
kind: "numeric",
|
|
228
|
-
maxLength: 2,
|
|
229
|
-
max: 12,
|
|
230
|
-
rejectZero: !0,
|
|
231
|
-
padTo: 2,
|
|
232
|
-
autoAdvanceFrom: 2,
|
|
233
|
-
label: "Month"
|
|
234
|
-
},
|
|
235
|
-
year: {
|
|
236
|
-
kind: "numeric",
|
|
237
|
-
maxLength: 4,
|
|
238
|
-
requireFullLength: !0,
|
|
239
|
-
label: "Year"
|
|
240
|
-
},
|
|
241
|
-
hour: T.ampm ? {
|
|
242
|
-
kind: "numeric",
|
|
243
|
-
maxLength: 2,
|
|
244
|
-
max: 12,
|
|
245
|
-
rejectZero: !0,
|
|
246
|
-
padTo: 2,
|
|
247
|
-
autoAdvanceFrom: 2,
|
|
248
|
-
label: "Hour"
|
|
249
|
-
} : {
|
|
250
|
-
kind: "numeric",
|
|
251
|
-
maxLength: 2,
|
|
252
|
-
max: 23,
|
|
253
|
-
padTo: 2,
|
|
254
|
-
autoAdvanceFrom: 3,
|
|
255
|
-
label: "Hour"
|
|
256
|
-
},
|
|
257
|
-
minute: {
|
|
258
|
-
kind: "numeric",
|
|
259
|
-
maxLength: 2,
|
|
260
|
-
max: 59,
|
|
261
|
-
padTo: 2,
|
|
262
|
-
autoAdvanceFrom: 6,
|
|
263
|
-
label: "Minute"
|
|
264
|
-
},
|
|
265
|
-
second: {
|
|
266
|
-
kind: "numeric",
|
|
267
|
-
maxLength: 2,
|
|
268
|
-
max: 59,
|
|
269
|
-
padTo: 2,
|
|
270
|
-
autoAdvanceFrom: 6,
|
|
271
|
-
label: "Second"
|
|
272
|
-
},
|
|
273
|
-
meridiem: {
|
|
274
|
-
kind: "enum",
|
|
275
|
-
maxLength: 2,
|
|
276
|
-
enum: {
|
|
277
|
-
values: ["AM", "PM"],
|
|
278
|
-
keys: {
|
|
279
|
-
a: "AM",
|
|
280
|
-
p: "PM"
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
sizerMin: "AM",
|
|
284
|
-
label: "AM/PM"
|
|
285
|
-
}
|
|
286
|
-
})), ft = (e, t) => {
|
|
287
|
-
if (e.segment !== t.segment) return "–";
|
|
288
|
-
if (t.field === "meridiem") return "\xA0";
|
|
289
|
-
let n = it.has(e.field), r = it.has(t.field);
|
|
290
|
-
return n && r ? ":" : !n && r ? "\xA0" : "/";
|
|
291
|
-
}, { fields: W, fieldRefs: pt, descriptorKey: mt, emptyFieldGroup: G, getSizedValue: ht, minChars: gt, updateAllSizedValues: K, isOwnField: _t, focusField: vt, focusFirstField: yt, segmentStatus: q, onFieldInput: bt, onFieldKeydown: xt, onFieldFocus: St, onFieldBlur: Ct, onFieldPaste: wt } = ne({
|
|
292
|
-
fieldOrder: U,
|
|
293
|
-
specs: dt,
|
|
294
|
-
segments: ["start", "end"],
|
|
295
|
-
fieldKeys: [
|
|
296
|
-
"day",
|
|
297
|
-
"month",
|
|
298
|
-
"year",
|
|
299
|
-
"hour",
|
|
300
|
-
"minute",
|
|
301
|
-
"second",
|
|
302
|
-
"meridiem"
|
|
303
|
-
],
|
|
304
|
-
optionalGroups: [[
|
|
305
|
-
"hour",
|
|
306
|
-
"minute",
|
|
307
|
-
"meridiem"
|
|
308
|
-
], ["second"]],
|
|
309
|
-
onDirty: () => $({ finalize: !1 })
|
|
310
|
-
}), Tt = (e) => T.range ? `${N}-${e.segment}-${e.field}` : `${N}-${e.field}`, Et = (e) => {
|
|
311
|
-
if (T.name) return T.range ? `${T.name}-${e.segment}-${e.field}` : `${T.name}-${e.field}`;
|
|
312
|
-
}, Dt = {
|
|
313
|
-
day: "baseDatePickerInput.dayField",
|
|
314
|
-
month: "baseDatePickerInput.monthField",
|
|
315
|
-
year: "baseDatePickerInput.yearField",
|
|
316
|
-
hour: "baseDatePickerInput.hourField",
|
|
317
|
-
minute: "baseDatePickerInput.minuteField",
|
|
318
|
-
second: "baseDatePickerInput.secondField",
|
|
319
|
-
meridiem: "baseDatePickerInput.meridiemField"
|
|
320
|
-
}, Ot = (e) => {
|
|
321
|
-
let t = A(Dt[e.field]).value;
|
|
322
|
-
return T.range ? A(e.segment === "start" ? "baseDatePickerInput.startFieldLabel" : "baseDatePickerInput.endFieldLabel", t).value : t;
|
|
323
|
-
}, J = (e, t) => {
|
|
324
|
-
if (!T.ampm) {
|
|
325
|
-
e.hour = String(t).padStart(2, "0");
|
|
326
|
-
return;
|
|
327
|
-
}
|
|
328
|
-
let n = ot(t);
|
|
329
|
-
e.hour = n.hour, e.meridiem = n.meridiem;
|
|
330
|
-
}, kt = (e) => {
|
|
331
|
-
if (!e.hour) return 0;
|
|
332
|
-
let t = parseInt(e.hour, 10);
|
|
333
|
-
return T.ampm ? at(t, e.meridiem || "AM") : t;
|
|
334
|
-
}, At = p(() => T.seconds ? "HH:mm:ss" : "HH:mm"), jt = (e) => e.format(At.value), Mt = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, Nt = (e) => {
|
|
335
|
-
if (!e) return null;
|
|
336
|
-
let t = Mt.exec(e);
|
|
337
|
-
if (!t) return null;
|
|
338
|
-
let [, n, r, i] = t;
|
|
339
|
-
return parseInt(n, 10) > 23 || parseInt(r, 10) > 59 || i && parseInt(i, 10) > 59 ? null : {
|
|
340
|
-
hour: n.padStart(2, "0"),
|
|
341
|
-
minute: r.padStart(2, "0"),
|
|
342
|
-
second: (i ?? "").padStart(i ? 2 : 0, "0")
|
|
343
|
-
};
|
|
344
|
-
}, Pt = (e, t) => {
|
|
345
|
-
if (!D.value) return;
|
|
346
|
-
let n = Nt(t);
|
|
347
|
-
if (!n) {
|
|
348
|
-
e.hour = "", e.minute = "", e.second = "", e.meridiem = "";
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
J(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second = T.seconds ? n.second : "";
|
|
352
|
-
}, Ft = p(() => T.seconds ? "baseDatePickerInput.timeFormatSeconds" : "baseDatePickerInput.timeFormat"), It = p(() => {
|
|
353
|
-
if (T.type === "month" || T.type === "year") {
|
|
354
|
-
let e = T.type === "month" ? "month" : "year";
|
|
355
|
-
return A(T.range ? `baseDatePickerInput.${e}FormatRange` : `baseDatePickerInput.${e}FormatSingle`).value;
|
|
356
|
-
}
|
|
357
|
-
if (!D.value) return A(T.range ? "baseDatePickerInput.dateFormatRange" : "baseDatePickerInput.dateFormatSingle").value;
|
|
358
|
-
let e = `${A("baseDatePickerInput.dateFormatSingle").value} ${A(Ft.value).value}`;
|
|
359
|
-
return T.range ? `${e} – ${e}` : e;
|
|
360
|
-
}), Lt = p(() => T.placeholder || It.value), Rt = p(() => U.value.every((e) => !W.value[e.segment][e.field])), zt = (e) => {
|
|
361
|
-
if (!e) return G();
|
|
362
|
-
let t = R(e);
|
|
363
|
-
if (!t.isValid()) return G();
|
|
364
|
-
let n = G();
|
|
365
|
-
return H.value.has("day") && (n.day = t.format("DD")), H.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY"), D.value && !T.floating && (J(n, t.hour()), n.minute = t.format("mm"), n.second = T.seconds ? t.format("ss") : ""), n;
|
|
366
|
-
}, Bt = (e) => Array.isArray(T.time) ? T.time[e === "start" ? 0 : 1] : e === "start" ? T.time : void 0, Y = (e) => {
|
|
367
|
-
if (!e) {
|
|
368
|
-
W.value = {
|
|
369
|
-
start: G(),
|
|
370
|
-
end: G()
|
|
371
|
-
};
|
|
372
|
-
return;
|
|
373
|
-
}
|
|
374
|
-
if (T.range) {
|
|
375
|
-
let [t, n] = Array.isArray(e) ? e : [];
|
|
376
|
-
W.value = {
|
|
377
|
-
start: zt(t),
|
|
378
|
-
end: zt(n)
|
|
379
|
-
};
|
|
380
|
-
} else Array.isArray(e) ? W.value = {
|
|
381
|
-
start: G(),
|
|
382
|
-
end: G()
|
|
383
|
-
} : W.value = {
|
|
384
|
-
start: zt(e),
|
|
385
|
-
end: G()
|
|
386
|
-
};
|
|
387
|
-
if (D.value && T.floating) for (let e of ["start", "end"]) {
|
|
388
|
-
let t = W.value[e];
|
|
389
|
-
t.day && Pt(t, Bt(e));
|
|
390
|
-
}
|
|
391
|
-
}, Vt = () => {
|
|
392
|
-
Y(T.modelValue);
|
|
393
|
-
};
|
|
394
|
-
Y(T.modelValue), K();
|
|
395
|
-
let Ht = (e) => {
|
|
396
|
-
if (!D.value || T.floating) return;
|
|
397
|
-
let t;
|
|
398
|
-
t = e ? Array.isArray(e) ? e.map((e) => jt(R(e))) : jt(R(e)) : null, Z.value = t, E("update:time", t);
|
|
399
|
-
};
|
|
400
|
-
ve(() => T.modelValue, (e) => {
|
|
401
|
-
if (e === null || Array.isArray(e) && e.length === 0) {
|
|
402
|
-
Y(e), K(), Ht(e);
|
|
403
|
-
return;
|
|
404
|
-
}
|
|
405
|
-
let t = document.activeElement;
|
|
406
|
-
t && _t(t) || (Y(e), K(), Ht(e));
|
|
407
|
-
}), ve(() => T.time, (e) => {
|
|
408
|
-
if (!D.value || a(e ?? null) === a(Z.value ?? null)) return;
|
|
409
|
-
let t = document.activeElement;
|
|
410
|
-
if (!(t && _t(t))) {
|
|
411
|
-
for (let e of ["start", "end"]) {
|
|
412
|
-
if (e === "end" && !T.range) break;
|
|
413
|
-
let t = Bt(e), n = W.value[e];
|
|
414
|
-
t !== void 0 && Pt(n, t);
|
|
415
|
-
}
|
|
416
|
-
K(), $({ finalize: !1 });
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
let Ut = () => q("start") === "partial" ? !0 : T.range ? q("end") === "partial" : !1, Wt = (e) => {
|
|
420
|
-
let t = W.value[e], n = H.value;
|
|
421
|
-
if (n.has("day") && !t.day || n.has("month") && !t.month || !t.year) return null;
|
|
422
|
-
let r = n.has("day") ? parseInt(t.day, 10) : 1, i = n.has("month") ? parseInt(t.month, 10) : 1, a = parseInt(t.year, 10);
|
|
423
|
-
if (r < 1 || r > 31 || i < 1 || i > 12 || a < 1e3 || a > 9999) return null;
|
|
424
|
-
let o = t.year.padStart(4, "0"), s = String(i).padStart(2, "0"), c = String(r).padStart(2, "0"), l = "", u = "";
|
|
425
|
-
if (D.value) {
|
|
426
|
-
if (T.ampm && t.hour) {
|
|
427
|
-
let e = parseInt(t.hour, 10);
|
|
428
|
-
if (e < 1 || e > 12) return null;
|
|
429
|
-
}
|
|
430
|
-
let e = String(kt(t)).padStart(2, "0"), n = (t.minute || "0").padStart(2, "0"), r = ((T.seconds ? t.second : "") || "0").padStart(2, "0");
|
|
431
|
-
if (parseInt(e, 10) > 23 || parseInt(n, 10) > 59 || parseInt(r, 10) > 59) return null;
|
|
432
|
-
l = `T${e}:${n}:${r}`, u = "THH:mm:ss";
|
|
433
|
-
}
|
|
434
|
-
let d = C(`${o}-${s}-${c}${l}`, w + u, !0);
|
|
435
|
-
if (!d.isValid()) {
|
|
436
|
-
let t = C(`${o}-${s}-01`, w, !0).endOf("month").date(), n = Math.min(r, t);
|
|
437
|
-
d = C(`${o}-${s}-${String(n).padStart(2, "0")}${l}`, w + u, !0), W.value[e].day = String(n).padStart(2, "0");
|
|
438
|
-
}
|
|
439
|
-
return d.isValid() ? d : null;
|
|
440
|
-
}, Gt = (e) => {
|
|
441
|
-
let t = G();
|
|
442
|
-
return H.value.has("day") && (t.day = e.format("DD")), H.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY"), D.value && (J(t, e.hour()), t.minute = e.format("mm"), t.second = T.seconds ? e.format("ss") : ""), t;
|
|
443
|
-
}, Kt = (e) => {
|
|
444
|
-
let t = (t, n) => D.value && !n ? t.hour(e.hour()).minute(e.minute()).second(e.second()) : t, n = O.value ? k.value : D.value ? "minute" : "day", r = e, i = Be.value, a = Ve.value;
|
|
445
|
-
if (i) {
|
|
446
|
-
let e = F(i), n = I(i);
|
|
447
|
-
r.isBefore(n, O.value ? k.value : D.value && e ? "minute" : "day") && (r = O.value ? n : t(n, e));
|
|
448
|
-
}
|
|
449
|
-
if (a) {
|
|
450
|
-
let e = F(a), n = I(a);
|
|
451
|
-
r.isAfter(n, O.value ? k.value : D.value && e ? "minute" : "day") && (r = O.value ? n.startOf(k.value) : t(n, e));
|
|
452
|
-
}
|
|
453
|
-
return r.isSame(e, n) || V(r) ? null : r;
|
|
454
|
-
}, X = (e) => {
|
|
455
|
-
E("error", e);
|
|
456
|
-
}, qt = (e) => {
|
|
457
|
-
let t = W.value[e], n = String(kt(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
|
|
458
|
-
return T.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
|
|
459
|
-
}, Z = v(void 0), Q = (e) => {
|
|
460
|
-
if (E("update:modelValue", e), !D.value) return;
|
|
461
|
-
let t;
|
|
462
|
-
t = e === null ? null : Array.isArray(e) ? e.map((e, t) => qt(t === 0 ? "start" : "end")) : qt("start"), Z.value = t, E("update:time", t);
|
|
463
|
-
}, $ = (e = {}) => {
|
|
464
|
-
let t = !!e.finalize, n = q("start");
|
|
465
|
-
if (!T.range) {
|
|
466
|
-
if (n === "empty") {
|
|
467
|
-
Q(null);
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
if (n === "partial") return;
|
|
471
|
-
let e = Wt("start");
|
|
472
|
-
if (!e) return;
|
|
473
|
-
if (V(e)) {
|
|
474
|
-
if (!t) return;
|
|
475
|
-
let n = L(e), r = Kt(e);
|
|
476
|
-
if (r) {
|
|
477
|
-
let e = L(r);
|
|
478
|
-
W.value.start = Gt(r), Q(e), X({
|
|
479
|
-
code: "disabled_date",
|
|
480
|
-
original: n,
|
|
481
|
-
normalized: e
|
|
482
|
-
});
|
|
483
|
-
} else W.value.start = G(), Q(null), X({
|
|
484
|
-
code: "disabled_date",
|
|
485
|
-
original: n,
|
|
486
|
-
normalized: null
|
|
487
|
-
});
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
Q(L(e));
|
|
491
|
-
return;
|
|
492
|
-
}
|
|
493
|
-
let r = q("end");
|
|
494
|
-
if (n === "empty" && r === "empty") {
|
|
495
|
-
Q(null);
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
if (n === "partial" || r === "partial" || n === "empty") return;
|
|
499
|
-
let i = Wt("start");
|
|
500
|
-
if (!i) return;
|
|
501
|
-
let a = r === "empty" ? null : Wt("end"), o = L(i), s = a ? L(a) : null, c = i, l = !1;
|
|
502
|
-
if (V(i)) {
|
|
503
|
-
if (!t) return;
|
|
504
|
-
let e = Kt(i), n = s ? [o, s] : [o];
|
|
505
|
-
if (!e) {
|
|
506
|
-
W.value.start = G(), W.value.end = G(), Q(null), X({
|
|
507
|
-
code: "disabled_range_start",
|
|
508
|
-
original: n,
|
|
509
|
-
normalized: null
|
|
510
|
-
});
|
|
511
|
-
return;
|
|
512
|
-
}
|
|
513
|
-
if (c = e, l = !0, W.value.start = Gt(e), !a) {
|
|
514
|
-
let t = [L(e)];
|
|
515
|
-
Q(t), X({
|
|
516
|
-
code: "disabled_range_start",
|
|
517
|
-
original: n,
|
|
518
|
-
normalized: t
|
|
519
|
-
});
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
if (!a) {
|
|
524
|
-
Q([L(c)]);
|
|
525
|
-
return;
|
|
526
|
-
}
|
|
527
|
-
let u = a, d = !1;
|
|
528
|
-
if (V(a)) {
|
|
529
|
-
if (!t) return;
|
|
530
|
-
let e = Kt(a), n = [o, s];
|
|
531
|
-
if (!e) {
|
|
532
|
-
let e = [L(c)];
|
|
533
|
-
W.value.end = G(), Q(e), l && X({
|
|
534
|
-
code: "disabled_range_start",
|
|
535
|
-
original: n,
|
|
536
|
-
normalized: e
|
|
537
|
-
}), X({
|
|
538
|
-
code: "disabled_range_end",
|
|
539
|
-
original: n,
|
|
540
|
-
normalized: e
|
|
541
|
-
});
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
u = e, d = !0, W.value.end = Gt(e);
|
|
545
|
-
}
|
|
546
|
-
if (u.isBefore(c, D.value ? "second" : "day")) {
|
|
547
|
-
if (!t) return;
|
|
548
|
-
let e = [L(c), L(u)], n = [L(u), L(c)], r = { ...W.value.start };
|
|
549
|
-
W.value.start = { ...W.value.end }, W.value.end = r, K(), Q(n), l && X({
|
|
550
|
-
code: "disabled_range_start",
|
|
551
|
-
original: [o, s],
|
|
552
|
-
normalized: n
|
|
553
|
-
}), d && X({
|
|
554
|
-
code: "disabled_range_end",
|
|
555
|
-
original: [o, s],
|
|
556
|
-
normalized: n
|
|
557
|
-
}), X({
|
|
558
|
-
code: "end_before_start",
|
|
559
|
-
original: e,
|
|
560
|
-
normalized: n
|
|
561
|
-
});
|
|
562
|
-
return;
|
|
563
|
-
}
|
|
564
|
-
let f = [L(c), L(u)];
|
|
565
|
-
Q(f), l && X({
|
|
566
|
-
code: "disabled_range_start",
|
|
567
|
-
original: s ? [o, s] : [o],
|
|
568
|
-
normalized: f
|
|
569
|
-
}), d && X({
|
|
570
|
-
code: "disabled_range_end",
|
|
571
|
-
original: [o, s],
|
|
572
|
-
normalized: f
|
|
573
|
-
});
|
|
574
|
-
};
|
|
575
|
-
return ge(() => {
|
|
576
|
-
document.removeEventListener("focusin", B), document.removeEventListener("click", B);
|
|
577
|
-
}), (e, t) => (_(), se(ee, {
|
|
578
|
-
ref_key: "wrapper",
|
|
579
|
-
ref: M,
|
|
580
|
-
active: z.value,
|
|
581
|
-
"append:icon": T["append:icon"],
|
|
582
|
-
class: g(["bb-base-date-picker-input", { "bb-base-date-picker-input--range": T.range }]),
|
|
583
|
-
clearable: T.clearable && !x(te)(e.modelValue),
|
|
584
|
-
compact: T.compact,
|
|
585
|
-
disabled: T.disabled,
|
|
586
|
-
"has-errors": T.hasErrors,
|
|
587
|
-
"has-value": Fe.value,
|
|
588
|
-
"has-warning": T.hasWarning,
|
|
589
|
-
loading: T.loading,
|
|
590
|
-
"prepend:icon": T["prepend:icon"],
|
|
591
|
-
readonly: T.readonly,
|
|
592
|
-
"onClick:clear": rt,
|
|
593
|
-
onFocusin: qe
|
|
594
|
-
}, le({
|
|
595
|
-
"prepend-outer": S(() => [y(e.$slots, "prepend-outer")]),
|
|
596
|
-
prepend: S(() => [y(e.$slots, "prepend")]),
|
|
597
|
-
append: S(() => [Le.value ? ce("", !0) : (_(), se(f, {
|
|
598
|
-
key: 0,
|
|
599
|
-
ref_key: "datePicker",
|
|
600
|
-
ref: Me,
|
|
601
|
-
"active-segment": $e.value,
|
|
602
|
-
adaptive: e.adaptive,
|
|
603
|
-
ampm: e.ampm,
|
|
604
|
-
anchor: M.value,
|
|
605
|
-
disabled: e.disabled,
|
|
606
|
-
"first-day-of-week": e.firstDayOfWeek,
|
|
607
|
-
floating: e.floating,
|
|
608
|
-
label: nt.value,
|
|
609
|
-
max: e.max,
|
|
610
|
-
min: e.min,
|
|
611
|
-
"model-value": e.modelValue,
|
|
612
|
-
"off-canvas-props": e.offCanvasProps,
|
|
613
|
-
range: e.range,
|
|
614
|
-
readonly: e.readonly,
|
|
615
|
-
seconds: e.seconds,
|
|
616
|
-
selectable: e.selectable,
|
|
617
|
-
step: e.step,
|
|
618
|
-
time: e.time,
|
|
619
|
-
"transition-duration": e.transitionDuration,
|
|
620
|
-
type: e.type,
|
|
621
|
-
utc: e.utc,
|
|
622
|
-
onGridPick: Ye["onUpdate:modelValue"],
|
|
623
|
-
onTimePick: et
|
|
624
|
-
}, {
|
|
625
|
-
activator: S(({ props: t }) => [h("button", pe(t, {
|
|
626
|
-
class: "bb-segmented-field__trigger-btn",
|
|
627
|
-
disabled: e.disabled || e.readonly,
|
|
628
|
-
type: "button"
|
|
629
|
-
}), [ue(r, {
|
|
630
|
-
class: "bb-segmented-field__trigger-icon",
|
|
631
|
-
icon: x(re)
|
|
632
|
-
}, null, 8, ["icon"])], 16, De)]),
|
|
633
|
-
day: S((t) => [y(e.$slots, "day", me(fe(t)))]),
|
|
634
|
-
"append:day": S((t) => [y(e.$slots, "append:day", me(fe(t)))]),
|
|
635
|
-
_: 3
|
|
636
|
-
}, 8, [
|
|
637
|
-
"active-segment",
|
|
638
|
-
"adaptive",
|
|
639
|
-
"ampm",
|
|
640
|
-
"anchor",
|
|
641
|
-
"disabled",
|
|
642
|
-
"first-day-of-week",
|
|
643
|
-
"floating",
|
|
644
|
-
"label",
|
|
645
|
-
"max",
|
|
646
|
-
"min",
|
|
647
|
-
"model-value",
|
|
648
|
-
"off-canvas-props",
|
|
649
|
-
"range",
|
|
650
|
-
"readonly",
|
|
651
|
-
"seconds",
|
|
652
|
-
"selectable",
|
|
653
|
-
"step",
|
|
654
|
-
"time",
|
|
655
|
-
"transition-duration",
|
|
656
|
-
"type",
|
|
657
|
-
"utc",
|
|
658
|
-
"onGridPick"
|
|
659
|
-
])), y(e.$slots, "append")]),
|
|
660
|
-
"append-outer": S(() => [y(e.$slots, "append-outer")]),
|
|
661
|
-
default: S(() => [h("div", {
|
|
662
|
-
class: g(["bb-segmented-field__fields", {
|
|
663
|
-
"bb-segmented-field__fields--empty": Rt.value,
|
|
664
|
-
"bb-segmented-field__fields--range": e.range
|
|
665
|
-
}]),
|
|
666
|
-
style: he({ "--fields-min-ch": x(gt) })
|
|
667
|
-
}, [Rt.value ? (_(), m("span", {
|
|
668
|
-
key: 0,
|
|
669
|
-
"aria-hidden": "true",
|
|
670
|
-
class: "bb-segmented-field__placeholder",
|
|
671
|
-
onClick: t[0] ||= (...e) => x(yt) && x(yt)(...e)
|
|
672
|
-
}, b(Lt.value), 1)) : ce("", !0), (_(!0), m(oe, null, _e(U.value, (t, n) => (_(), m(oe, { key: x(mt)(t) }, [h("span", {
|
|
673
|
-
class: "bb-segmented-field__field-sizer",
|
|
674
|
-
"data-value": x(ht)(t)
|
|
675
|
-
}, [h("input", {
|
|
676
|
-
id: n === 0 ? x(N) : Tt(t),
|
|
677
|
-
ref_for: !0,
|
|
678
|
-
ref: (e) => x(pt)[x(mt)(t)] = e,
|
|
679
|
-
"aria-describedby": Pe.value,
|
|
680
|
-
"aria-disabled": e.disabled || void 0,
|
|
681
|
-
"aria-invalid": T.hasErrors ? "true" : void 0,
|
|
682
|
-
"aria-label": Ot(t),
|
|
683
|
-
"aria-readonly": Re.value || void 0,
|
|
684
|
-
autocomplete: e.autocomplete,
|
|
685
|
-
autofocus: e.autofocus && n === 0,
|
|
686
|
-
class: g(["bb-segmented-field__field", [`bb-segmented-field__field--${t.field}`, `bb-segmented-field__field--${t.segment}`]]),
|
|
687
|
-
disabled: e.disabled,
|
|
688
|
-
inputmode: ze(t.field),
|
|
689
|
-
maxlength: dt.value[t.field].maxLength,
|
|
690
|
-
name: Et(t),
|
|
691
|
-
readonly: Re.value,
|
|
692
|
-
required: e.required,
|
|
693
|
-
tabindex: ut(n) ? 0 : -1,
|
|
694
|
-
type: "text",
|
|
695
|
-
value: x(W)[t.segment][t.field],
|
|
696
|
-
onBlur: (e) => x(Ct)(t),
|
|
697
|
-
onFocus: (e) => Qe(t),
|
|
698
|
-
onInput: (e) => x(bt)(t, e),
|
|
699
|
-
onKeydown: (e) => x(xt)(t, e),
|
|
700
|
-
onPaste: (e) => x(wt)(t, e)
|
|
701
|
-
}, null, 42, Te)], 8, we), n < U.value.length - 1 ? (_(), m("span", {
|
|
702
|
-
key: 0,
|
|
703
|
-
"aria-hidden": "true",
|
|
704
|
-
class: g(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": U.value[n].segment !== U.value[n + 1].segment }]),
|
|
705
|
-
role: "presentation",
|
|
706
|
-
onClick: (e) => x(vt)(U.value[n + 1], { select: !0 })
|
|
707
|
-
}, b(ft(U.value[n], U.value[n + 1])), 11, Ee)) : ce("", !0)], 64))), 128))], 6), h("span", {
|
|
708
|
-
id: Ne,
|
|
709
|
-
class: "bb-base-date-picker-input__accessible-description sr-only"
|
|
710
|
-
}, b(x(A)("baseDatePickerInput.dateFormat")) + " " + b(It.value), 1)]),
|
|
711
|
-
_: 2
|
|
712
|
-
}, [e.$slots.prefix ? {
|
|
713
|
-
name: "prefix",
|
|
714
|
-
fn: S(() => [y(e.$slots, "prefix")]),
|
|
715
|
-
key: "0"
|
|
716
|
-
} : void 0, e.$slots.suffix ? {
|
|
717
|
-
name: "suffix",
|
|
718
|
-
fn: S(() => [y(e.$slots, "suffix")]),
|
|
719
|
-
key: "1"
|
|
720
|
-
} : void 0]), 1032, [
|
|
721
|
-
"active",
|
|
722
|
-
"append:icon",
|
|
723
|
-
"class",
|
|
724
|
-
"clearable",
|
|
725
|
-
"compact",
|
|
726
|
-
"disabled",
|
|
727
|
-
"has-errors",
|
|
728
|
-
"has-value",
|
|
729
|
-
"has-warning",
|
|
730
|
-
"loading",
|
|
731
|
-
"prepend:icon",
|
|
732
|
-
"readonly"
|
|
733
|
-
]));
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
//#endregion
|
|
737
|
-
export { ke as default };
|