bitboss-ui 3.0.0-beta.2 → 3.0.0-beta.21
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 +72 -33
- package/dist/ai/BbAccordion.md +3 -3
- package/dist/ai/BbAlert.md +9 -5
- package/dist/ai/BbAsterisk.md +17 -0
- package/dist/ai/BbAvatar.md +12 -3
- package/dist/ai/BbBadge.md +15 -10
- package/dist/ai/BbBadgeButton.md +16 -16
- package/dist/ai/BbBaseButton.md +16 -16
- package/dist/ai/BbBaseCheckbox.md +8 -8
- package/dist/ai/BbBaseCheckboxGroup.md +13 -13
- package/dist/ai/BbBaseCheckboxIcon.md +26 -9
- package/dist/ai/BbBaseColorInput.md +11 -11
- package/dist/ai/BbBaseDatePicker.md +6 -6
- package/dist/ai/BbBaseDatePickerInput.md +15 -15
- package/dist/ai/BbBaseInputContainer.md +12 -12
- package/dist/ai/BbBaseNumberInput.md +8 -8
- package/dist/ai/BbBaseRadio.md +5 -5
- package/dist/ai/BbBaseRadioGroup.md +7 -7
- package/dist/ai/BbBaseRadioIcon.md +25 -9
- package/dist/ai/BbBaseRating.md +5 -5
- package/dist/ai/BbBaseSelect.md +22 -21
- package/dist/ai/BbBaseSlider.md +9 -9
- package/dist/ai/BbBaseSwitch.md +8 -8
- package/dist/ai/BbBaseSwitchGroup.md +13 -13
- package/dist/ai/BbBaseSwitchIcon.md +28 -10
- package/dist/ai/BbBaseTag.md +10 -10
- package/dist/ai/BbBaseTextInput.md +9 -9
- package/dist/ai/BbBaseTextarea.md +9 -9
- package/dist/ai/BbBaseTimePickerInput.md +13 -13
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +15 -15
- package/dist/ai/BbCheckbox.md +18 -17
- package/dist/ai/BbCheckboxGroup.md +15 -14
- package/dist/ai/BbCollapsible.md +11 -9
- package/dist/ai/BbColorInput.md +15 -15
- package/dist/ai/BbColorPalette.md +12 -6
- package/dist/ai/BbConfirm.md +12 -5
- package/dist/ai/BbDatePicker.md +13 -13
- package/dist/ai/BbDatePickerInput.md +20 -20
- package/dist/ai/BbDialog.md +78 -12
- package/dist/ai/BbDropdown.md +132 -22
- package/dist/ai/BbDropdownButton.md +12 -12
- package/dist/ai/BbDropdownGroup.md +1 -1
- package/dist/ai/BbDropzone.md +4 -4
- package/dist/ai/BbForm.md +49 -14
- package/dist/ai/BbIcon.md +6 -0
- package/dist/ai/BbIndicator.md +5 -5
- package/dist/ai/BbNumberInput.md +11 -11
- package/dist/ai/BbOffCanvas.md +90 -20
- package/dist/ai/BbPagination.md +3 -3
- package/dist/ai/BbPopover.md +32 -17
- package/dist/ai/BbProgress.md +7 -4
- package/dist/ai/BbRadio.md +16 -15
- package/dist/ai/BbRadioGroup.md +20 -17
- package/dist/ai/BbRating.md +11 -11
- package/dist/ai/BbSelect.md +138 -37
- package/dist/ai/BbSelectPopover.md +40 -41
- package/dist/ai/BbSlider.md +37 -22
- package/dist/ai/BbSmoothHeight.md +1 -1
- package/dist/ai/BbSwitch.md +25 -10
- package/dist/ai/BbSwitchGroup.md +17 -14
- package/dist/ai/BbTable.md +920 -109
- package/dist/ai/BbTabs.md +28 -14
- package/dist/ai/BbTabsList.md +1 -1
- package/dist/ai/BbTabsPanes.md +1 -1
- package/dist/ai/BbTabsRoot.md +10 -10
- package/dist/ai/BbTag.md +14 -14
- package/dist/ai/BbTextInput.md +16 -15
- package/dist/ai/BbTextarea.md +13 -13
- package/dist/ai/BbTimePicker.md +10 -10
- package/dist/ai/BbTimePickerInput.md +17 -17
- package/dist/ai/BbToast.md +1 -1
- package/dist/ai/BbToastPortal.md +1 -1
- package/dist/ai/BbTooltip.md +12 -10
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonInputWrapper.md +10 -10
- package/dist/ai/CommonPopover.md +6 -6
- package/dist/ai/FlatListBox.md +5 -5
- package/dist/ai/GroupedListBox.md +5 -5
- package/dist/ai/ListBox.md +4 -4
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +128 -2
- package/dist/ai/components.json +917 -100
- package/dist/ai/composables/useBbConfig.md +72 -11
- package/dist/ai/composables/useConfirm.md +5 -3
- package/dist/ai/guides/ai-router.md +9 -4
- package/dist/ai/guides/component-picker.md +18 -18
- package/dist/ai/guides/design-language.md +14 -14
- package/dist/ai/guides/design-tokens.md +25 -18
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +11 -5
- package/dist/ai/guides/installation-and-plugin-setup.md +85 -23
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +30 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +37 -3
- package/dist/ai/guides/migration/components/bb-collapsible.md +5 -5
- package/dist/ai/guides/migration/components/bb-dialog.md +62 -34
- package/dist/ai/guides/migration/components/bb-offcanvas.md +29 -13
- package/dist/ai/guides/migration/components/bb-rating.md +8 -2
- package/dist/ai/guides/migration/components/bb-select.md +5 -2
- package/dist/ai/guides/migration/components/bb-table.md +560 -28
- package/dist/ai/guides/migration/components/bb-text-input.md +6 -6
- package/dist/ai/guides/migration/v2-to-v3.md +260 -89
- package/dist/ai/guides/ssr-prefill.md +120 -0
- package/dist/ai/index.md +10 -9
- package/dist/ai/recipes/inertia/approvals-inbox.md +0 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/inertia/layout-scaffold.md +5 -1
- package/dist/ai/recipes/inertia/ownership-atlas.md +49 -29
- package/dist/ai/recipes/inertia/record-form.md +0 -1
- package/dist/ai/recipes/inertia/records-workspace.md +26 -8
- package/dist/ai/recipes/inertia/upload-center.md +0 -1
- package/dist/ai/recipes/nuxt/approvals-inbox.md +0 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -1
- package/dist/ai/recipes/nuxt/record-form.md +0 -1
- package/dist/ai/recipes/nuxt/records-workspace.md +26 -8
- package/dist/ai/recipes/nuxt/upload-center.md +0 -1
- package/dist/ai/recipes/vue/approvals-inbox.md +0 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +0 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +5 -1
- package/dist/ai/recipes/vue/records-workspace.md +26 -8
- package/dist/ai/recipes/vue/upload-center.md +0 -1
- package/dist/ai/source/BbAlert.md +60 -2
- package/dist/ai/source/BbAvatar.md +3 -3
- package/dist/ai/source/BbBadge.md +60 -15
- package/dist/ai/source/BbBadgeButton.md +8 -2
- package/dist/ai/source/BbBaseButton.md +3 -1
- package/dist/ai/source/BbBaseCheckboxGroup.md +6 -2
- package/dist/ai/source/BbBaseDatePicker.md +3 -1
- package/dist/ai/source/BbBaseDatePickerInput.md +5 -1
- package/dist/ai/source/BbBaseInputContainer.md +52 -1
- package/dist/ai/source/BbBaseRadioGroup.md +4 -0
- package/dist/ai/source/BbBaseRating.md +3 -1
- package/dist/ai/source/BbBaseSelect.md +71 -16
- package/dist/ai/source/BbBaseSwitchGroup.md +4 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +5 -1
- package/dist/ai/source/BbBreadcrumbs.md +31 -0
- package/dist/ai/source/BbButton.md +51 -24
- package/dist/ai/source/BbCheckbox.md +15 -1
- package/dist/ai/source/BbCheckboxGroup.md +2 -1
- package/dist/ai/source/BbCollapsible.md +7 -1
- package/dist/ai/source/BbColorInput.md +3 -4
- package/dist/ai/source/BbColorPalette.md +3 -4
- package/dist/ai/source/BbDatePicker.md +5 -1
- package/dist/ai/source/BbDatePickerInput.md +5 -1
- package/dist/ai/source/BbDialog.md +175 -19
- package/dist/ai/source/BbDropdown.md +376 -69
- package/dist/ai/source/BbDropdownGroup.md +330 -59
- package/dist/ai/source/BbForm.md +93 -5
- package/dist/ai/source/BbIcon.md +46 -36
- package/dist/ai/source/BbNumberInput.md +3 -4
- package/dist/ai/source/BbOffCanvas.md +474 -194
- package/dist/ai/source/BbPopover.md +24 -17
- package/dist/ai/source/BbProgress.md +2 -2
- package/dist/ai/source/BbRadio.md +15 -1
- package/dist/ai/source/BbRadioGroup.md +3 -1
- package/dist/ai/source/BbSelect.md +50 -2
- package/dist/ai/source/BbSelectPopover.md +171 -23
- package/dist/ai/source/BbSlider.md +3 -4
- package/dist/ai/source/BbSwitch.md +15 -1
- package/dist/ai/source/BbSwitchGroup.md +8 -5
- package/dist/ai/source/BbTable.md +5092 -1446
- package/dist/ai/source/BbTabs.md +6 -7
- package/dist/ai/source/BbTabsList.md +6 -7
- package/dist/ai/source/BbTabsPanes.md +6 -7
- package/dist/ai/source/BbTabsRoot.md +6 -7
- package/dist/ai/source/BbTag.md +3 -4
- package/dist/ai/source/BbTextInput.md +3 -4
- package/dist/ai/source/BbTextarea.md +3 -4
- package/dist/ai/source/BbTimePicker.md +4 -1
- package/dist/ai/source/BbTimePickerInput.md +5 -1
- package/dist/ai/source/BbToast.md +3 -1
- package/dist/ai/source/BbTooltip.md +5 -1
- package/dist/ai/source/CommonInputWrapper.md +4 -0
- package/dist/ai/source/CommonPopover.md +6 -0
- package/dist/ai/source/FlatListBox.md +11 -5
- package/dist/ai/source/GroupedListBox.md +7 -5
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAlert/types.d.ts +10 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +22 -16
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +36 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +21 -8
- package/dist/components/BbBadge/types.d.ts +8 -2
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +2 -2
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +167 -167
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +9 -9
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +78 -78
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +64 -64
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +138 -138
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +24 -22
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +74 -65
- package/dist/components/BbBaseSelect/types.d.ts +22 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +30 -28
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +1 -1
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +104 -104
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +35 -35
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +85 -81
- package/dist/components/BbCheckboxGroup/types.d.ts +2 -1
- package/dist/components/BbCollapsible/types.d.ts +7 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDialog/BbDialog.vue.d.ts +1 -1
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +133 -107
- package/dist/components/BbDialog/types.d.ts +29 -2
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +2 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +99 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +208 -201
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +225 -208
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/components/BbDropdown/types.d.ts +20 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +46 -46
- package/dist/components/BbIcon/iconCache.d.ts +33 -0
- package/dist/components/BbIcon/iconCache.js +17 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +254 -208
- package/dist/components/BbOffCanvas/types.d.ts +30 -5
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +149 -146
- package/dist/components/BbPopover/types.d.ts +3 -2
- package/dist/components/BbRadioGroup/types.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +27 -23
- package/dist/components/BbSelect/types.d.ts +32 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +221 -213
- package/dist/components/BbSlider/BbSlider.vue.d.ts +1 -1
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/components/BbTable/BbTable.vue.d.ts +10 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1433 -600
- package/dist/components/BbTable/BbTableDataRow.d.ts +162 -0
- package/dist/components/BbTable/BbTableDataRow.js +136 -0
- package/dist/components/BbTable/BbTableExpandRow.d.ts +73 -0
- package/dist/components/BbTable/BbTableExpandRow.js +52 -0
- package/dist/components/BbTable/types.d.ts +324 -111
- package/dist/components/BbTable/utils.d.ts +92 -4
- package/dist/components/BbTable/utils.js +71 -36
- package/dist/components/BbTabs/types.d.ts +0 -8
- package/dist/components/BbTag/BbTag.vue.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +54 -54
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +80 -80
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +61 -61
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/BbTooltip/types.d.ts +5 -1
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +83 -83
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/composables/useBaseOptions.js +30 -20
- package/dist/composables/useBbConfig.d.ts +27 -6
- package/dist/composables/useBbConfig.js +8 -2
- package/dist/composables/useConfig.d.ts +59 -0
- package/dist/composables/useConfig.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +11 -0
- package/dist/composables/useItemsGetter.js +44 -18
- package/dist/composables/useLocale.js +10 -7
- package/dist/composables/useMobile.js +5 -5
- package/dist/composables/usePrefill.d.ts +21 -2
- package/dist/composables/usePrefill.js +25 -19
- 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.js +5 -5
- package/dist/deprecation/ai-deprecations.json.d.ts +121 -11
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.d.ts +15 -4
- package/dist/directives/bbDropdown.js +31 -9
- package/dist/directives/createPopoverDirective.d.ts +62 -0
- package/dist/directives/createPopoverDirective.js +63 -23
- package/dist/i18n/locales/cs.json +4 -1
- package/dist/i18n/locales/da.json +4 -1
- package/dist/i18n/locales/de.json +4 -1
- package/dist/i18n/locales/el.json +4 -1
- package/dist/i18n/locales/en.json +4 -1
- package/dist/i18n/locales/es.json +4 -1
- package/dist/i18n/locales/fi.json +4 -1
- package/dist/i18n/locales/fr.json +4 -1
- package/dist/i18n/locales/hu.json +4 -1
- package/dist/i18n/locales/it.json +4 -1
- package/dist/i18n/locales/ja.json +4 -1
- package/dist/i18n/locales/ko.json +4 -1
- package/dist/i18n/locales/nb.json +4 -1
- package/dist/i18n/locales/nl.json +4 -1
- package/dist/i18n/locales/pl.json +4 -1
- package/dist/i18n/locales/pt.json +4 -1
- package/dist/i18n/locales/ro.json +4 -1
- package/dist/i18n/locales/ru.json +4 -1
- package/dist/i18n/locales/sv.json +4 -1
- package/dist/i18n/locales/tr.json +4 -1
- package/dist/i18n/locales/uk.json +4 -1
- package/dist/i18n/locales/zh-cn.json +4 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +69 -67
- package/dist/llms-full.txt +3997 -1458
- package/dist/llms-medium.txt +140 -73
- package/dist/llms.txt +7 -6
- package/dist/locale-blueprint.json +4 -1
- package/dist/nuxt-auto-imports.d.ts +100 -0
- package/dist/nuxt-auto-imports.js +55 -0
- package/dist/nuxt-module.d.ts +22 -1
- package/dist/nuxt.js +22 -8
- package/dist/plugin.d.ts +10 -1
- package/dist/plugin.js +20 -19
- package/dist/runtime/nuxt-plugin.js +28 -21
- package/dist/styles.css +1 -1
- package/dist/utilities/misc/listboxMetrics.d.ts +3 -3
- package/dist/utilities/misc/listboxMetrics.js +2 -2
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +42 -0
- package/dist/utilities/misc/ssrStateInjectionKey.js +4 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +45 -27
- package/dist/validated/BbSelect.vue.d.ts +2 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/useValidatedField.js +25 -23
- package/dist/vite.js +7 -3
- package/llms.txt +8 -7
- package/package.json +2 -2
- package/scripts/lib/eslint-plugin.d.ts +19 -1
- package/scripts/lib/eslint-plugin.mjs +155 -14
- package/scripts/lib/html-attributes.mjs +91 -0
- package/scripts/lib/validate-bb-markup.mjs +59 -11
- package/dist/assets/svgs/sort.svg_raw.js +0 -4
- 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/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import se from "./
|
|
17
|
-
import
|
|
18
|
-
import le from "./
|
|
19
|
-
import ue from "
|
|
20
|
-
import de from "
|
|
21
|
-
import
|
|
22
|
-
import { computed as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { useId as t } from "../../composables/useId.js";
|
|
3
|
+
import { useLogger as n } from "../../composables/useLogger.js";
|
|
4
|
+
import r from "../BbBaseButton/BbBaseButton.vue.js";
|
|
5
|
+
import { useLocale as i } from "../../composables/useLocale.js";
|
|
6
|
+
import { hash as a } from "../../utilities/functions/hash.js";
|
|
7
|
+
import { isCoarseType as o, unitOfType as s } from "../../types/DatePickerType.js";
|
|
8
|
+
import { toInnerValue as c, toOuterValue as l } from "../../utilities/functions/convertDateValue.js";
|
|
9
|
+
import { last as u } from "../../utilities/functions/last.js";
|
|
10
|
+
import { validateDateFormat as ee } from "../../utilities/functions/validateDateFormat.js";
|
|
11
|
+
import { normalizeDateBound as te } from "../../utilities/functions/normalizeDateBound.js";
|
|
12
|
+
import { isDateDisabled as ne } from "../../utilities/functions/isDateDisabled.js";
|
|
13
|
+
import { identity as re } from "../../utilities/functions/identity.js";
|
|
14
|
+
import { isNotNil as ie } from "../../utilities/functions/isNotNil.js";
|
|
15
|
+
import { sort as ae } from "../../utilities/functions/sort.js";
|
|
16
|
+
import { normalizeSearchToken as oe, useTypeahead as se } from "./typeahead.js";
|
|
17
|
+
import ce from "./BbBaseDatePickerInputDaySelector.vue.js";
|
|
18
|
+
import { provideDatePickerContext as le } from "./useDatePickerContext.js";
|
|
19
|
+
import ue from "./BbBaseDatePickerMonthSelector.vue.js";
|
|
20
|
+
import de from "../Transitions/ScaleFade.vue.js";
|
|
21
|
+
import fe from "./BbBaseDatePickerYearSelector.vue.js";
|
|
22
|
+
import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as pe, createElementVNode as m, createSlots as me, createTextVNode as he, createVNode as h, defineComponent as ge, guardReactiveProps as _e, nextTick as ve, normalizeClass as g, normalizeProps as ye, normalizeStyle as be, openBlock as _, ref as v, renderList as xe, renderSlot as Se, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
|
|
23
|
+
import C from "dayjs";
|
|
24
|
+
import Ce from "dayjs/plugin/isSameOrAfter";
|
|
25
|
+
import we from "dayjs/plugin/isSameOrBefore";
|
|
26
|
+
import Te from "dayjs/plugin/weekOfYear";
|
|
27
27
|
//#region src/components/BbBaseDatePicker/BbBaseDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var Ee = {
|
|
29
29
|
"aria-live": "polite",
|
|
30
30
|
class: "sr-only"
|
|
31
|
-
},
|
|
31
|
+
}, De = {
|
|
32
32
|
"aria-live": "polite",
|
|
33
33
|
class: "sr-only"
|
|
34
|
-
},
|
|
34
|
+
}, Oe = { class: "bb-base-date-picker__body" }, ke = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "bb-base-date-picker__controls"
|
|
37
|
-
},
|
|
37
|
+
}, Ae = { class: "sr-only" }, je = { class: "bb-base-date-picker__nav-center" }, Me = { class: "sr-only" }, Ne = { class: "bb-base-date-picker__content" }, Pe = ["id"], w = /*@__PURE__*/ ge({
|
|
38
38
|
__name: "BbBaseDatePicker",
|
|
39
39
|
props: {
|
|
40
40
|
disabled: { type: Boolean },
|
|
@@ -52,69 +52,69 @@ var Te = {
|
|
|
52
52
|
utc: { type: Boolean }
|
|
53
53
|
},
|
|
54
54
|
emits: ["update:modelValue"],
|
|
55
|
-
setup(
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
let { t: D } =
|
|
59
|
-
|
|
60
|
-
let k =
|
|
61
|
-
k.value || (
|
|
62
|
-
let
|
|
63
|
-
floating:
|
|
64
|
-
utc:
|
|
65
|
-
type:
|
|
66
|
-
})), N = (e) =>
|
|
55
|
+
setup(ge, { expose: w, emit: Fe }) {
|
|
56
|
+
let T = ge, Ie = Fe;
|
|
57
|
+
C.extend(Te), C.extend(Ce), C.extend(we);
|
|
58
|
+
let E = e(), { t: D } = i(), Le = T.id || t().id, O = n();
|
|
59
|
+
T.multiple && T.range && O.throw("Date picker cannot be both multiple and range."), (T.multiple || T.range) && (Array.isArray(T.modelValue) || O.throw("Date picker is set to select multiple dates but modelValue is not an array."));
|
|
60
|
+
let k = d(() => o(T.type)), A = d(() => s(T.type)), j = d(() => te(T.min, T.type, "min", (e) => O.warn(`Date picker: ${e}`))), M = d(() => te(T.max, T.type, "max", (e) => O.warn(`Date picker: ${e}`)));
|
|
61
|
+
k.value || (T.min && ee(T.min, "Min"), T.max && ee(T.max, "Max"));
|
|
62
|
+
let Re = d(() => ({
|
|
63
|
+
floating: T.floating,
|
|
64
|
+
utc: T.utc,
|
|
65
|
+
type: T.type
|
|
66
|
+
})), N = (e) => c(e, Re.value), P = v(C()), F = (e) => {
|
|
67
67
|
if (!e) return null;
|
|
68
68
|
let t = N(e);
|
|
69
69
|
return t.isValid() ? t : null;
|
|
70
|
-
},
|
|
71
|
-
let e =
|
|
70
|
+
}, ze = () => {
|
|
71
|
+
let e = C().startOf("day"), t = F(j.value), n = F(M.value);
|
|
72
72
|
return t && e.isBefore(t, A.value) ? t.startOf(A.value) : n && e.isAfter(n, A.value) ? n.startOf(A.value) : e;
|
|
73
|
-
},
|
|
73
|
+
}, I = (e) => {
|
|
74
74
|
if (!e) {
|
|
75
|
-
P.value =
|
|
75
|
+
P.value = ze();
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
if (Array.isArray(e)) {
|
|
79
79
|
if (e.length === 0) {
|
|
80
|
-
P.value =
|
|
80
|
+
P.value = ze();
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
let t = e.map((e) => N(e).startOf(A.value).valueOf()), n = P.value.valueOf();
|
|
84
84
|
if (t.includes(n)) return;
|
|
85
|
-
P.value = N(
|
|
85
|
+
P.value = N(u(e) ?? "").startOf(A.value);
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
P.value = N(e).startOf(A.value);
|
|
89
89
|
};
|
|
90
|
-
|
|
91
|
-
let
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
I(T.modelValue);
|
|
91
|
+
let L = d(() => k.value ? A.value : "day"), R = v(L.value);
|
|
92
|
+
x(L, (e) => {
|
|
93
|
+
R.value = e;
|
|
94
94
|
});
|
|
95
|
-
let
|
|
96
|
-
|
|
95
|
+
let z = v(null), B = v(null), V = v(0), H = () => {
|
|
96
|
+
V.value += 1;
|
|
97
97
|
}, Be = (e) => {
|
|
98
|
-
e ===
|
|
99
|
-
},
|
|
100
|
-
let e = P.value.startOf("month"), t = P.value.endOf("month"), n = (e.day() -
|
|
98
|
+
e === L.value || T.type === "year" || (R.value = R.value === e ? L.value : e, H());
|
|
99
|
+
}, U = d(() => P.value.locale(E.locale).format("MMMM")), W = d(() => P.value.format("YYYY")), Ve = d(() => `${U.value}, ${D("datePicker.monthLabel").value}`), He = d(() => `${W.value}, ${D("datePicker.yearLabel").value}`), Ue = d(() => {
|
|
100
|
+
let e = P.value.startOf("month"), t = P.value.endOf("month"), n = (e.day() - T.firstDayOfWeek + 7) % 7, r = ((T.firstDayOfWeek + 6) % 7 - t.day() + 7) % 7 + 1;
|
|
101
101
|
return (P.value.daysInMonth() - 1 + n + r) / 7;
|
|
102
|
-
}), We =
|
|
102
|
+
}), We = d(() => R.value === "month" ? D("datePicker.selectingMonth").value : R.value === "year" ? D("datePicker.selectingYear").value : ""), Ge = d(() => T.type === "year" ? W.value : T.type === "month" ? `${U.value} ${W.value}` : `${P.value.format("ddd")}, ${P.value.format("D")} ${U.value}`), G = (e) => {
|
|
103
103
|
P.value = P.value.set("month", e);
|
|
104
|
-
},
|
|
105
|
-
|
|
104
|
+
}, K = d(() => T.type === "month" ? "year" : "month"), Ke = () => {
|
|
105
|
+
X.value = null, P.value = P.value.subtract(1, K.value);
|
|
106
106
|
}, qe = () => {
|
|
107
|
-
|
|
107
|
+
X.value = null, P.value = P.value.add(1, K.value);
|
|
108
108
|
}, Je = (e) => {
|
|
109
109
|
let t = F(j.value);
|
|
110
110
|
return !t || t.isBefore(P.value.startOf(e));
|
|
111
111
|
}, Ye = (e) => {
|
|
112
112
|
let t = F(M.value);
|
|
113
113
|
return !t || t.isAfter(P.value.endOf(e));
|
|
114
|
-
}, Xe =
|
|
114
|
+
}, Xe = d(() => Je(K.value)), Ze = d(() => Ye(K.value)), Qe = d(() => Je("year") || Ye("year")), $e = d(() => k.value ? D("datePicker.previousYearLabel").value : D("datePicker.previousMonthLabel").value), et = d(() => k.value ? D("datePicker.nextYearLabel").value : D("datePicker.nextMonthLabel").value), q = (e) => {
|
|
115
115
|
P.value = P.value.set("year", e);
|
|
116
|
-
},
|
|
117
|
-
let e = P.value.startOf("year"), t =
|
|
116
|
+
}, J = d(() => {
|
|
117
|
+
let e = P.value.startOf("year"), t = E.locale;
|
|
118
118
|
return Array.from({ length: 12 }, (n, r) => {
|
|
119
119
|
let i = e.add(r, "month"), a = i.locale(t).format("MMMM"), o = i.locale(t).format("MMM");
|
|
120
120
|
return {
|
|
@@ -126,84 +126,84 @@ var Te = {
|
|
|
126
126
|
o,
|
|
127
127
|
String(r + 1),
|
|
128
128
|
String(r + 1).padStart(2, "0")
|
|
129
|
-
].map((e) =>
|
|
129
|
+
].map((e) => oe(e, t)),
|
|
130
130
|
value: r
|
|
131
131
|
};
|
|
132
132
|
});
|
|
133
|
-
}), tt = (e) =>
|
|
134
|
-
let e = [].concat(
|
|
133
|
+
}), tt = (e) => oe(String(e), "en"), nt = d(() => {
|
|
134
|
+
let e = [].concat(T.modelValue).filter(re).map((e) => N(e).startOf(A.value).valueOf()), t = e.length ? Math.min(...e) : Infinity, n = e.length ? Math.max(...e) : -Infinity, r = {};
|
|
135
135
|
return e.forEach((e, t) => {
|
|
136
136
|
r[e] = t;
|
|
137
137
|
}), {
|
|
138
138
|
min: t,
|
|
139
139
|
max: n,
|
|
140
|
-
selected: (e) =>
|
|
140
|
+
selected: (e) => ie(r[e.valueOf()]),
|
|
141
141
|
isFirst: (e) => e.valueOf() === t,
|
|
142
142
|
isLast: (e) => e.valueOf() === n,
|
|
143
143
|
isBetween: (e) => e.valueOf() > t && e.valueOf() < n
|
|
144
144
|
};
|
|
145
|
-
}),
|
|
146
|
-
|
|
147
|
-
}, it = (e) =>
|
|
145
|
+
}), Y = d(() => !!T.range && Array.isArray(T.modelValue) && T.modelValue.length === 1), X = v(null), rt = (e) => {
|
|
146
|
+
X.value = Y.value && e ? e.valueOf() : null;
|
|
147
|
+
}, it = (e) => ne(e, {
|
|
148
148
|
min: j.value,
|
|
149
149
|
max: M.value,
|
|
150
|
-
selectable:
|
|
151
|
-
floating:
|
|
152
|
-
utc:
|
|
153
|
-
type:
|
|
154
|
-
}),
|
|
155
|
-
let t = e.startOf(A.value), n = nt.value, r = t.valueOf(), i = n.selected(t), a = !!
|
|
150
|
+
selectable: T.selectable,
|
|
151
|
+
floating: T.floating,
|
|
152
|
+
utc: T.utc,
|
|
153
|
+
type: T.type
|
|
154
|
+
}), at = (e) => {
|
|
155
|
+
let t = e.startOf(A.value), n = nt.value, r = t.valueOf(), i = n.selected(t), a = !!T.range && n.isFirst(t), o = !!T.range && n.isLast(t), s = Y.value ? n.min : null, c = Y.value ? X.value : null, l = s !== null && c !== null ? Math.min(s, c) : null, u = s !== null && c !== null ? Math.max(s, c) : null;
|
|
156
156
|
return {
|
|
157
157
|
selected: i,
|
|
158
158
|
first: a,
|
|
159
159
|
last: o,
|
|
160
|
-
middle: !!
|
|
160
|
+
middle: !!T.range && !a && !o && n.isBetween(t),
|
|
161
161
|
preview: l !== null && u !== null && l !== u && r >= l && r <= u,
|
|
162
|
-
disabled:
|
|
162
|
+
disabled: T.disabled === !0 || it(t)
|
|
163
163
|
};
|
|
164
|
-
},
|
|
165
|
-
if (
|
|
164
|
+
}, ot = (e) => {
|
|
165
|
+
if (T.readonly) return;
|
|
166
166
|
let t = e.startOf(A.value);
|
|
167
167
|
if (it(t)) return;
|
|
168
|
-
let n =
|
|
169
|
-
if (
|
|
170
|
-
if (!Array.isArray(
|
|
171
|
-
|
|
168
|
+
let n = l(t, Re.value), r = at(t);
|
|
169
|
+
if (T.range) {
|
|
170
|
+
if (!Array.isArray(T.modelValue)) return;
|
|
171
|
+
T.modelValue.length === 1 ? $(ae([T.modelValue[0], n])) : $([n]), X.value = null;
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
if (
|
|
175
|
-
if (!Array.isArray(
|
|
176
|
-
$(r.selected ?
|
|
174
|
+
if (T.multiple) {
|
|
175
|
+
if (!Array.isArray(T.modelValue)) return;
|
|
176
|
+
$(r.selected ? T.modelValue.filter((e) => e !== n) : ae([...T.modelValue, n]));
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
$(r.selected ? null : n);
|
|
180
180
|
};
|
|
181
|
-
|
|
181
|
+
le({
|
|
182
182
|
cursor: P,
|
|
183
|
-
disabled:
|
|
184
|
-
monthOptions:
|
|
183
|
+
disabled: d(() => T.disabled === !0),
|
|
184
|
+
monthOptions: J,
|
|
185
185
|
yearToken: tt,
|
|
186
|
-
typeaheadResetKey:
|
|
186
|
+
typeaheadResetKey: V,
|
|
187
187
|
selectMonth: (e) => {
|
|
188
188
|
if (k.value) {
|
|
189
|
-
|
|
189
|
+
ot(P.value.set("month", e)), G(e);
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
G(e), H(), R.value = L.value, ve(() => {
|
|
193
|
+
z.value?.$el instanceof HTMLElement && z.value.$el.focus();
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
selectYear: (e) => {
|
|
197
|
-
if (
|
|
198
|
-
|
|
197
|
+
if (T.type === "year") {
|
|
198
|
+
ot(P.value.set("year", e)), q(e);
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
q(e), H(), R.value = L.value, ve(() => {
|
|
202
|
+
B.value?.$el instanceof HTMLElement && B.value.$el.focus();
|
|
203
203
|
});
|
|
204
204
|
},
|
|
205
|
-
terminalUnit:
|
|
206
|
-
boundYears:
|
|
205
|
+
terminalUnit: d(() => T.type === "month" || T.type === "year" ? T.type : null),
|
|
206
|
+
boundYears: d(() => {
|
|
207
207
|
let e = (e) => {
|
|
208
208
|
if (!e) return null;
|
|
209
209
|
let t = N(e);
|
|
@@ -214,106 +214,106 @@ var Te = {
|
|
|
214
214
|
max: e(M.value)
|
|
215
215
|
};
|
|
216
216
|
}),
|
|
217
|
-
unitState:
|
|
217
|
+
unitState: at,
|
|
218
218
|
setHoveredUnit: rt
|
|
219
219
|
});
|
|
220
|
-
let { onKeydown:
|
|
221
|
-
candidates: () =>
|
|
220
|
+
let { onKeydown: st, reset: ct } = se({
|
|
221
|
+
candidates: () => J.value,
|
|
222
222
|
getTokens: (e) => e.tokens,
|
|
223
|
-
getCurrent: () =>
|
|
223
|
+
getCurrent: () => J.value.find((e) => e.value === P.value.month()),
|
|
224
224
|
onMatch: () => {},
|
|
225
|
-
onCommit: (e) =>
|
|
225
|
+
onCommit: (e) => G(e.value),
|
|
226
226
|
autoCommit: !0,
|
|
227
|
-
locale: () =>
|
|
228
|
-
}),
|
|
229
|
-
e.key === "Enter" ||
|
|
230
|
-
}, Z =
|
|
227
|
+
locale: () => E.locale
|
|
228
|
+
}), lt = (e) => {
|
|
229
|
+
e.key === "Enter" || R.value !== L.value || st(e);
|
|
230
|
+
}, Z = d(() => {
|
|
231
231
|
let e = P.value.year(), t = [];
|
|
232
232
|
for (let n = e - 100; n <= e + 100; n++) t.push({
|
|
233
233
|
value: n,
|
|
234
234
|
token: tt(n)
|
|
235
235
|
});
|
|
236
236
|
return t;
|
|
237
|
-
}), { onKeydown:
|
|
237
|
+
}), { onKeydown: ut, reset: dt } = se({
|
|
238
238
|
candidates: () => Z.value,
|
|
239
239
|
getTokens: (e) => [e.token],
|
|
240
240
|
getCurrent: () => Z.value.find((e) => e.value === P.value.year()),
|
|
241
241
|
onMatch: () => {},
|
|
242
|
-
onCommit: (e) =>
|
|
242
|
+
onCommit: (e) => q(e.value),
|
|
243
243
|
autoCommit: !0,
|
|
244
244
|
locale: () => "en"
|
|
245
|
-
}),
|
|
246
|
-
e.key === "Enter" ||
|
|
245
|
+
}), ft = (e) => {
|
|
246
|
+
e.key === "Enter" || R.value !== L.value || ut(e);
|
|
247
247
|
};
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
x(V, () => {
|
|
249
|
+
ct(), dt();
|
|
250
250
|
});
|
|
251
|
-
let
|
|
251
|
+
let pt = (e) => {
|
|
252
252
|
P.value = e;
|
|
253
|
-
}, Q =
|
|
254
|
-
Q.value = e,
|
|
253
|
+
}, Q = v(T.modelValue), $ = (e) => {
|
|
254
|
+
Q.value = e, Ie("update:modelValue", e);
|
|
255
255
|
};
|
|
256
|
-
return
|
|
257
|
-
|
|
258
|
-
}),
|
|
259
|
-
|
|
260
|
-
} }), (e, t) => (
|
|
261
|
-
class:
|
|
262
|
-
style:
|
|
256
|
+
return x(() => T.modelValue, () => {
|
|
257
|
+
a(T.modelValue) !== a(Q.value) && (Q.value = T.modelValue, I(T.modelValue));
|
|
258
|
+
}), w({ resetStatus: () => {
|
|
259
|
+
R.value = L.value;
|
|
260
|
+
} }), (e, t) => (_(), pe("div", {
|
|
261
|
+
class: g(["bb-base-date-picker", k.value ? `bb-base-date-picker--unit-${L.value}` : void 0]),
|
|
262
|
+
style: be({ "--weeks": Ue.value })
|
|
263
263
|
}, [
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
m("span", Ee, y(W.value), 1),
|
|
265
|
+
m("div", De, y(Ge.value), 1),
|
|
266
|
+
m("div", Oe, [e.type === "year" ? p("", !0) : (_(), pe("div", ke, [
|
|
267
|
+
h(b(r), {
|
|
268
268
|
"aria-label": $e.value,
|
|
269
269
|
class: "bb-base-date-picker__nav-btn",
|
|
270
|
-
disabled: e.disabled ||
|
|
270
|
+
disabled: e.disabled || R.value !== L.value || !Xe.value,
|
|
271
271
|
onClick: Ke
|
|
272
272
|
}, {
|
|
273
|
-
default:
|
|
273
|
+
default: S(() => [t[2] ||= m("svg", {
|
|
274
274
|
fill: "none",
|
|
275
275
|
height: "16",
|
|
276
276
|
viewBox: "0 0 16 16",
|
|
277
277
|
width: "16",
|
|
278
278
|
xmlns: "http://www.w3.org/2000/svg"
|
|
279
|
-
}, [
|
|
279
|
+
}, [m("path", {
|
|
280
280
|
d: "M10 12 6 8l4-4",
|
|
281
281
|
stroke: "currentColor",
|
|
282
282
|
"stroke-linecap": "round",
|
|
283
283
|
"stroke-linejoin": "round",
|
|
284
284
|
"stroke-width": "1.5"
|
|
285
|
-
})], -1),
|
|
285
|
+
})], -1), m("span", Ae, y($e.value), 1)]),
|
|
286
286
|
_: 1
|
|
287
287
|
}, 8, ["aria-label", "disabled"]),
|
|
288
|
-
|
|
288
|
+
m("div", je, [e.type === "month" ? p("", !0) : (_(), f(b(r), {
|
|
289
289
|
key: 0,
|
|
290
290
|
ref_key: "monthHeadingButton",
|
|
291
|
-
ref:
|
|
292
|
-
"aria-expanded":
|
|
291
|
+
ref: z,
|
|
292
|
+
"aria-expanded": R.value === "month",
|
|
293
293
|
"aria-label": Ve.value,
|
|
294
|
-
class:
|
|
294
|
+
class: g(["bb-base-date-picker__heading-btn", { "bb-base-date-picker__heading-btn--active": R.value === "month" }]),
|
|
295
295
|
disabled: e.disabled,
|
|
296
296
|
onClick: t[0] ||= (e) => Be("month"),
|
|
297
|
-
onKeydown:
|
|
297
|
+
onKeydown: lt
|
|
298
298
|
}, {
|
|
299
|
-
default:
|
|
299
|
+
default: S(() => [he(y(U.value), 1)]),
|
|
300
300
|
_: 1
|
|
301
301
|
}, 8, [
|
|
302
302
|
"aria-expanded",
|
|
303
303
|
"aria-label",
|
|
304
304
|
"class",
|
|
305
305
|
"disabled"
|
|
306
|
-
])),
|
|
306
|
+
])), h(b(r), {
|
|
307
307
|
ref_key: "yearHeadingButton",
|
|
308
|
-
ref:
|
|
309
|
-
"aria-expanded":
|
|
308
|
+
ref: B,
|
|
309
|
+
"aria-expanded": R.value === "year",
|
|
310
310
|
"aria-label": He.value,
|
|
311
|
-
class:
|
|
311
|
+
class: g(["bb-base-date-picker__heading-btn", { "bb-base-date-picker__heading-btn--active": R.value === "year" }]),
|
|
312
312
|
disabled: e.disabled || !Qe.value,
|
|
313
313
|
onClick: t[1] ||= (e) => Be("year"),
|
|
314
|
-
onKeydown:
|
|
314
|
+
onKeydown: ft
|
|
315
315
|
}, {
|
|
316
|
-
default:
|
|
316
|
+
default: S(() => [he(y(W.value), 1)]),
|
|
317
317
|
_: 1
|
|
318
318
|
}, 8, [
|
|
319
319
|
"aria-expanded",
|
|
@@ -321,37 +321,37 @@ var Te = {
|
|
|
321
321
|
"class",
|
|
322
322
|
"disabled"
|
|
323
323
|
])]),
|
|
324
|
-
|
|
324
|
+
h(b(r), {
|
|
325
325
|
"aria-label": et.value,
|
|
326
326
|
class: "bb-base-date-picker__nav-btn",
|
|
327
|
-
disabled: e.disabled ||
|
|
327
|
+
disabled: e.disabled || R.value !== L.value || !Ze.value,
|
|
328
328
|
onClick: qe
|
|
329
329
|
}, {
|
|
330
|
-
default:
|
|
330
|
+
default: S(() => [t[3] ||= m("svg", {
|
|
331
331
|
fill: "none",
|
|
332
332
|
height: "16",
|
|
333
333
|
viewBox: "0 0 16 16",
|
|
334
334
|
width: "16",
|
|
335
335
|
xmlns: "http://www.w3.org/2000/svg"
|
|
336
|
-
}, [
|
|
336
|
+
}, [m("path", {
|
|
337
337
|
d: "M6 12l4-4-4-4",
|
|
338
338
|
stroke: "currentColor",
|
|
339
339
|
"stroke-linecap": "round",
|
|
340
340
|
"stroke-linejoin": "round",
|
|
341
341
|
"stroke-width": "1.5"
|
|
342
|
-
})], -1),
|
|
342
|
+
})], -1), m("span", Me, y(et.value), 1)]),
|
|
343
343
|
_: 1
|
|
344
344
|
}, 8, ["aria-label", "disabled"])
|
|
345
|
-
])),
|
|
346
|
-
k.value ?
|
|
345
|
+
])), m("div", Ne, [
|
|
346
|
+
k.value ? p("", !0) : (_(), f(ce, {
|
|
347
347
|
key: 0,
|
|
348
|
-
id:
|
|
349
|
-
current:
|
|
348
|
+
id: b(Le),
|
|
349
|
+
current: R.value === "day",
|
|
350
350
|
cursor: P.value,
|
|
351
351
|
disabled: e.disabled,
|
|
352
352
|
"first-day-of-week": e.firstDayOfWeek,
|
|
353
353
|
floating: e.floating,
|
|
354
|
-
inert:
|
|
354
|
+
inert: R.value !== "day",
|
|
355
355
|
max: e.max,
|
|
356
356
|
min: e.min,
|
|
357
357
|
"model-value": e.modelValue,
|
|
@@ -361,11 +361,11 @@ var Te = {
|
|
|
361
361
|
selectable: e.selectable,
|
|
362
362
|
type: e.type,
|
|
363
363
|
utc: e.utc,
|
|
364
|
-
"onUpdate:cursor":
|
|
364
|
+
"onUpdate:cursor": pt,
|
|
365
365
|
"onUpdate:modelValue": $
|
|
366
|
-
},
|
|
366
|
+
}, me({ _: 2 }, [xe(e.$slots, (t, n) => ({
|
|
367
367
|
name: n,
|
|
368
|
-
fn:
|
|
368
|
+
fn: S((t) => [Se(e.$slots, n, ye(_e(t)))])
|
|
369
369
|
}))]), 1032, [
|
|
370
370
|
"id",
|
|
371
371
|
"current",
|
|
@@ -384,24 +384,24 @@ var Te = {
|
|
|
384
384
|
"type",
|
|
385
385
|
"utc"
|
|
386
386
|
])),
|
|
387
|
-
|
|
388
|
-
default:
|
|
387
|
+
h(de, { duration: 150 }, {
|
|
388
|
+
default: S(() => [R.value === "month" ? (_(), f(ue, { key: 0 })) : p("", !0)]),
|
|
389
389
|
_: 1
|
|
390
390
|
}),
|
|
391
|
-
|
|
392
|
-
default:
|
|
391
|
+
h(de, { duration: 150 }, {
|
|
392
|
+
default: S(() => [R.value === "year" ? (_(), f(fe, { key: 0 })) : p("", !0)]),
|
|
393
393
|
_: 1
|
|
394
394
|
})
|
|
395
395
|
])]),
|
|
396
|
-
|
|
397
|
-
id: `${
|
|
396
|
+
m("div", {
|
|
397
|
+
id: `${b(Le)}-status`,
|
|
398
398
|
"aria-atomic": "true",
|
|
399
399
|
"aria-live": "polite",
|
|
400
400
|
class: "sr-only",
|
|
401
401
|
role: "status"
|
|
402
|
-
},
|
|
402
|
+
}, y(We.value), 9, Pe)
|
|
403
403
|
], 6));
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
//#endregion
|
|
407
|
-
export {
|
|
407
|
+
export { w as default };
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { default as dayjs, Dayjs } from 'dayjs';
|
|
2
2
|
import { DatePickerType } from '../../types/DatePickerType';
|
|
3
|
+
type __VLS_Slots = Record<string, (props: {
|
|
4
|
+
first: boolean;
|
|
5
|
+
highlighted: boolean;
|
|
6
|
+
item: Dayjs;
|
|
7
|
+
label: string;
|
|
8
|
+
last: boolean;
|
|
9
|
+
middle: boolean;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
}) => any>;
|
|
3
12
|
type Props = {
|
|
4
13
|
cursor: Dayjs;
|
|
5
14
|
current: boolean;
|
|
@@ -20,15 +29,6 @@ type Props = {
|
|
|
20
29
|
type?: DatePickerType;
|
|
21
30
|
utc?: boolean;
|
|
22
31
|
};
|
|
23
|
-
type __VLS_Slots = Record<string, (props: {
|
|
24
|
-
first: boolean;
|
|
25
|
-
highlighted: boolean;
|
|
26
|
-
item: Dayjs;
|
|
27
|
-
label: string;
|
|
28
|
-
last: boolean;
|
|
29
|
-
middle: boolean;
|
|
30
|
-
selected: boolean;
|
|
31
|
-
}) => any>;
|
|
32
32
|
type DateValue = string | string[] | null;
|
|
33
33
|
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
34
34
|
"update:modelValue": (value: DateValue) => any;
|