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
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
2
|
import { useLocale as t } from "../../composables/useLocale.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import f from "
|
|
13
|
-
import
|
|
3
|
+
import { slotKey as n } from "../../utilities/functions/slotKey.js";
|
|
4
|
+
import { toInnerValue as r, toOuterValue as i } from "../../utilities/functions/convertDateValue.js";
|
|
5
|
+
import { last as a } from "../../utilities/functions/last.js";
|
|
6
|
+
import { validateDateFormat as o } from "../../utilities/functions/validateDateFormat.js";
|
|
7
|
+
import { isDateDisabled as s } from "../../utilities/functions/isDateDisabled.js";
|
|
8
|
+
import { identity as c } from "../../utilities/functions/identity.js";
|
|
9
|
+
import { isNotNil as l } from "../../utilities/functions/isNotNil.js";
|
|
10
|
+
import { sort as u } from "../../utilities/functions/sort.js";
|
|
11
|
+
import { chunk as d } from "../../utilities/functions/chunk.js";
|
|
12
|
+
import { useTypeahead as f } from "./typeahead.js";
|
|
13
|
+
import p from "../Transitions/Slide.vue.js";
|
|
14
14
|
import { Fragment as m, computed as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, watch as ee, withCtx as te, withKeys as k, withModifiers as A } from "vue";
|
|
15
15
|
import j from "dayjs";
|
|
16
16
|
//#region src/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue?vue&type=script&setup=true&lang.ts
|
|
17
17
|
var ne = ["aria-label", "onKeydown"], re = {
|
|
18
18
|
class: "bb-base-date-picker__header-container",
|
|
19
19
|
role: "row"
|
|
20
|
-
}, ie = ["abbr", "aria-label"], ae = ["aria-current", "aria-selected"],
|
|
20
|
+
}, ie = ["abbr", "aria-label"], ae = ["aria-current", "aria-selected"], oe = [
|
|
21
21
|
"aria-label",
|
|
22
22
|
"data-date",
|
|
23
23
|
"disabled",
|
|
24
24
|
"tabindex"
|
|
25
|
-
],
|
|
25
|
+
], M = { class: "bb-base-date-picker__date-append" }, N = {
|
|
26
26
|
"aria-live": "polite",
|
|
27
27
|
class: "sr-only",
|
|
28
28
|
role: "status"
|
|
@@ -46,45 +46,45 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["update:modelValue", "update:cursor"],
|
|
48
48
|
setup(b, { emit: P }) {
|
|
49
|
-
let F = b, I = P, { t:
|
|
49
|
+
let F = b, I = P, L = e(), { t: R } = t(), z = h(() => ({
|
|
50
50
|
floating: F.floating,
|
|
51
51
|
utc: F.utc,
|
|
52
52
|
type: F.type
|
|
53
|
-
})),
|
|
54
|
-
F.min &&
|
|
53
|
+
})), B = w(null), ce = j().startOf("day");
|
|
54
|
+
F.min && o(F.min, "Min"), F.max && o(F.max, "Max");
|
|
55
55
|
let le = h(() => {
|
|
56
|
-
let e = Infinity, t = -Infinity,
|
|
57
|
-
return F.modelValue && [].concat(F.modelValue).filter(
|
|
58
|
-
|
|
56
|
+
let e = Infinity, t = -Infinity, n = {};
|
|
57
|
+
return F.modelValue && [].concat(F.modelValue).filter(c).map((e) => r(e, z.value)).map((e) => e.startOf("day").valueOf()).forEach((r, i) => {
|
|
58
|
+
r < e && (e = r), r > t && (t = r), n[r] = i;
|
|
59
59
|
}), {
|
|
60
60
|
min: e,
|
|
61
61
|
max: t,
|
|
62
|
-
index: (e) =>
|
|
63
|
-
selected: (e) =>
|
|
62
|
+
index: (e) => n[e.valueOf()],
|
|
63
|
+
selected: (e) => l(n[e.valueOf()]),
|
|
64
64
|
isFirstOfRange: (t) => t.valueOf() === e,
|
|
65
65
|
isLastOfRange: (e) => e.valueOf() === t,
|
|
66
66
|
isBetween: (n) => n.valueOf() > e && n.valueOf() < t
|
|
67
67
|
};
|
|
68
|
-
}),
|
|
68
|
+
}), V = h(() => Array(7).fill("").map((e, t) => j().day((t + F.firstDayOfWeek) % 7).locale(L.locale)).map((e) => ({
|
|
69
69
|
accessibleLabel: e.format("dddd"),
|
|
70
70
|
label: e.format("dd").slice(0, 1).toUpperCase(),
|
|
71
71
|
id: e.toISOString(),
|
|
72
72
|
original: e
|
|
73
|
-
}))),
|
|
74
|
-
if (!
|
|
73
|
+
}))), H = h(() => !!F.range && Array.isArray(F.modelValue) && F.modelValue.length === 1), U = w(null), ue = (e) => {
|
|
74
|
+
if (!H.value) return;
|
|
75
75
|
let t = e.target;
|
|
76
76
|
if (!(t instanceof Element)) return;
|
|
77
77
|
let n = t.closest("[data-date]");
|
|
78
|
-
n?.dataset.date && (
|
|
79
|
-
},
|
|
80
|
-
|
|
78
|
+
n?.dataset.date && (U.value = j(n.dataset.date).startOf("day").valueOf());
|
|
79
|
+
}, de = () => {
|
|
80
|
+
U.value = null;
|
|
81
81
|
}, W = h(() => {
|
|
82
|
-
let
|
|
82
|
+
let e = F.cursor.year().toString(), t = F.cursor.month().toString(), r = F.firstDayOfWeek, i = F.cursor.clone().startOf("month"), a = (i.day() - r + 7) % 7, o = i.subtract(a, "day"), s = F.cursor.clone().endOf("month"), c = ((r + 6) % 7 - s.day() + 7) % 7 + 1, l = s.startOf("day").add(c, "day"), u = j(F.cursor).startOf("day"), f = le.value, p = F.range, m = H.value ? f.min : null, h = H.value ? U.value ?? u.valueOf() : null, g = m !== null && h !== null ? Math.min(m, h) : null, _ = m !== null && h !== null ? Math.max(m, h) : null, v = [];
|
|
83
83
|
for (let e = o; e.isBefore(l); e = e.add(1, "day")) v.push(e.clone());
|
|
84
|
-
return
|
|
85
|
-
let i = r.format("YYYY-MM-DD"), a = r.week().toString(), o = f.selected(r), s = p && f.isFirstOfRange(r), c = p && f.isLastOfRange(r), l = p && !s && !c && f.isBetween(r),
|
|
84
|
+
return d(v.map((r) => {
|
|
85
|
+
let i = r.format("YYYY-MM-DD"), a = r.week().toString(), o = f.selected(r), s = p && f.isFirstOfRange(r), c = p && f.isLastOfRange(r), l = p && !s && !c && f.isBetween(r), d = r.valueOf(), h = g !== null && _ !== null && g !== _ && d > g && d <= _ && !f.selected(r), v = h && d === _ && _ !== m, y = g !== null && g !== m && d === g && g !== _, b = r.month().toString() === t && r.year().toString() === e, x = r.isSame(ce);
|
|
86
86
|
return {
|
|
87
|
-
current: r.isSame(
|
|
87
|
+
current: r.isSame(u),
|
|
88
88
|
disabled: G(r),
|
|
89
89
|
first: s,
|
|
90
90
|
highlighted: b,
|
|
@@ -97,19 +97,19 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
97
97
|
previewEnd: v,
|
|
98
98
|
previewStart: y,
|
|
99
99
|
selected: o,
|
|
100
|
-
slotName:
|
|
100
|
+
slotName: n(i),
|
|
101
101
|
today: x,
|
|
102
102
|
week: a
|
|
103
103
|
};
|
|
104
104
|
}), 7);
|
|
105
|
-
}), G = (e) =>
|
|
105
|
+
}), G = (e) => s(e, {
|
|
106
106
|
min: F.min,
|
|
107
107
|
max: F.max,
|
|
108
108
|
selectable: F.selectable,
|
|
109
109
|
floating: F.floating,
|
|
110
110
|
type: F.type,
|
|
111
111
|
utc: F.utc
|
|
112
|
-
}), K = h(() => W.value.flat().filter((e) => e.highlighted && !e.disabled)), { onKeydown: q } =
|
|
112
|
+
}), K = h(() => W.value.flat().filter((e) => e.highlighted && !e.disabled)), { onKeydown: q } = f({
|
|
113
113
|
candidates: () => K.value,
|
|
114
114
|
getTokens: (e) => {
|
|
115
115
|
let t = e.original.date();
|
|
@@ -125,18 +125,18 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
125
125
|
onCommit: (e) => {
|
|
126
126
|
e.disabled || Z(e);
|
|
127
127
|
}
|
|
128
|
-
}), J = w("left"),
|
|
128
|
+
}), J = w("left"), fe = (e, t) => {
|
|
129
129
|
e && t && (J.value = e.isBefore(t) ? "left" : "right");
|
|
130
130
|
};
|
|
131
131
|
ee(() => F.cursor, (e, t) => {
|
|
132
|
-
|
|
132
|
+
fe(e, t);
|
|
133
133
|
});
|
|
134
134
|
let Y = (e) => I("update:cursor", e), X = async () => {
|
|
135
|
-
if (!
|
|
135
|
+
if (!B.value) return;
|
|
136
136
|
await x();
|
|
137
|
-
let e =
|
|
137
|
+
let e = a([...B.value.querySelectorAll(".bb-base-date-picker__date--current button")]);
|
|
138
138
|
e instanceof HTMLElement && e.focus();
|
|
139
|
-
},
|
|
139
|
+
}, pe = (e) => {
|
|
140
140
|
if (F.readonly) return;
|
|
141
141
|
let t = e.currentTarget instanceof HTMLButtonElement ? e.currentTarget : null;
|
|
142
142
|
if (!t) return;
|
|
@@ -150,48 +150,48 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
150
150
|
let i = W.value.flat().find((e) => e.id === n);
|
|
151
151
|
!i || i.disabled || (Y(r), Z(i));
|
|
152
152
|
}, Z = (e) => {
|
|
153
|
-
F.range ?
|
|
154
|
-
},
|
|
153
|
+
F.range ? me(e) : F.multiple ? he(e) : ge(e);
|
|
154
|
+
}, me = (e) => {
|
|
155
155
|
if (Array.isArray(F.modelValue)) if (F.modelValue.length !== 1) {
|
|
156
|
-
let t = [
|
|
156
|
+
let t = [i(e.original, z.value)];
|
|
157
157
|
I("update:modelValue", t);
|
|
158
158
|
} else {
|
|
159
|
-
let t =
|
|
159
|
+
let t = u([F.modelValue[0], i(e.original, z.value)]);
|
|
160
160
|
I("update:modelValue", t);
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, he = (e) => {
|
|
163
163
|
if (Array.isArray(F.modelValue)) if (e.selected) {
|
|
164
|
-
let t =
|
|
164
|
+
let t = i(e.original, z.value), n = F.modelValue.filter((e) => e !== t);
|
|
165
165
|
I("update:modelValue", n);
|
|
166
166
|
} else {
|
|
167
|
-
let t =
|
|
167
|
+
let t = u([...F.modelValue, i(e.original, z.value)]);
|
|
168
168
|
I("update:modelValue", t);
|
|
169
169
|
}
|
|
170
|
-
},
|
|
171
|
-
e.selected ? I("update:modelValue", null) : I("update:modelValue",
|
|
172
|
-
},
|
|
170
|
+
}, ge = (e) => {
|
|
171
|
+
e.selected ? I("update:modelValue", null) : I("update:modelValue", i(e.original, z.value));
|
|
172
|
+
}, Q = (e, t) => {
|
|
173
173
|
let n = F.cursor.clone();
|
|
174
174
|
for (let r = 0; r < se; r++) if (n = n.add(e, t), !G(n)) return n;
|
|
175
175
|
return null;
|
|
176
|
-
},
|
|
177
|
-
let e =
|
|
178
|
-
e && (I("update:cursor", e), X());
|
|
179
|
-
}, ge = () => {
|
|
180
|
-
let e = $(-1, "day");
|
|
176
|
+
}, $ = () => {
|
|
177
|
+
let e = Q(1, "day");
|
|
181
178
|
e && (I("update:cursor", e), X());
|
|
182
179
|
}, _e = () => {
|
|
183
|
-
let e =
|
|
180
|
+
let e = Q(-1, "day");
|
|
184
181
|
e && (I("update:cursor", e), X());
|
|
185
182
|
}, ve = () => {
|
|
186
|
-
let e =
|
|
183
|
+
let e = Q(-1, "week");
|
|
187
184
|
e && (I("update:cursor", e), X());
|
|
188
185
|
}, ye = () => {
|
|
186
|
+
let e = Q(1, "week");
|
|
187
|
+
e && (I("update:cursor", e), X());
|
|
188
|
+
}, be = () => {
|
|
189
189
|
let e = F.cursor.clone().endOf("week");
|
|
190
190
|
G(e) || (I("update:cursor", e), X());
|
|
191
|
-
},
|
|
191
|
+
}, xe = () => {
|
|
192
192
|
let e = F.cursor.clone().startOf("week");
|
|
193
193
|
G(e) || (I("update:cursor", e), X());
|
|
194
|
-
},
|
|
194
|
+
}, Se = (e) => {
|
|
195
195
|
if (e.shiftKey) {
|
|
196
196
|
let e = F.cursor.clone().subtract(1, "year");
|
|
197
197
|
if (G(e)) return;
|
|
@@ -202,7 +202,7 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
202
202
|
I("update:cursor", e);
|
|
203
203
|
}
|
|
204
204
|
X();
|
|
205
|
-
},
|
|
205
|
+
}, Ce = (e) => {
|
|
206
206
|
if (e.shiftKey) {
|
|
207
207
|
let e = F.cursor.clone().add(1, "year");
|
|
208
208
|
if (G(e)) return;
|
|
@@ -216,24 +216,24 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
216
216
|
};
|
|
217
217
|
return (e, t) => (C(), g("div", {
|
|
218
218
|
ref_key: "calendar",
|
|
219
|
-
ref:
|
|
220
|
-
"aria-label": O(
|
|
219
|
+
ref: B,
|
|
220
|
+
"aria-label": O(R)("datePicker.calendarLabel").value,
|
|
221
221
|
class: S(["bb-base-date-picker__days-selector", { "bb-base-date-picker__days-selector--hidden": !e.current }]),
|
|
222
222
|
role: "grid",
|
|
223
223
|
onKeydown: [
|
|
224
224
|
t[0] ||= (...e) => O(q) && O(q)(...e),
|
|
225
|
-
k(A(
|
|
226
|
-
k(A(
|
|
227
|
-
k(A(
|
|
228
|
-
k(A(
|
|
229
|
-
k(A(
|
|
230
|
-
k(A(
|
|
231
|
-
k(A(
|
|
232
|
-
k(A(
|
|
225
|
+
k(A(ye, ["prevent"]), ["down"]),
|
|
226
|
+
k(A(be, ["prevent"]), ["end"]),
|
|
227
|
+
k(A(xe, ["prevent"]), ["home"]),
|
|
228
|
+
k(A(_e, ["prevent"]), ["left"]),
|
|
229
|
+
k(A(Ce, ["prevent"]), ["page-down"]),
|
|
230
|
+
k(A(Se, ["prevent"]), ["page-up"]),
|
|
231
|
+
k(A($, ["prevent"]), ["right"]),
|
|
232
|
+
k(A(ve, ["prevent"]), ["up"])
|
|
233
233
|
],
|
|
234
|
-
onMouseleave:
|
|
235
|
-
onMouseover:
|
|
236
|
-
}, [y(
|
|
234
|
+
onMouseleave: de,
|
|
235
|
+
onMouseover: ue
|
|
236
|
+
}, [y(p, {
|
|
237
237
|
direction: J.value,
|
|
238
238
|
gap: 30
|
|
239
239
|
}, {
|
|
@@ -241,7 +241,7 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
241
241
|
key: e.cursor.month().toString(),
|
|
242
242
|
class: "bb-base-date-picker__month",
|
|
243
243
|
role: "none"
|
|
244
|
-
}, [_("div", re, [(C(!0), g(m, null, T(
|
|
244
|
+
}, [_("div", re, [(C(!0), g(m, null, T(V.value, (e) => (C(), g("div", {
|
|
245
245
|
key: e.id,
|
|
246
246
|
abbr: e.accessibleLabel,
|
|
247
247
|
"aria-label": e.accessibleLabel,
|
|
@@ -270,13 +270,13 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
270
270
|
}]),
|
|
271
271
|
role: "gridcell"
|
|
272
272
|
}, [_("button", {
|
|
273
|
-
"aria-label": `${t.original.locale(O(
|
|
273
|
+
"aria-label": `${t.original.locale(O(L).locale).format("dddd, MMMM D, YYYY")}${t.selected ? `, ${O(R)("datePicker.selectedLabel").value}` : ""}`,
|
|
274
274
|
class: "bb-base-date-picker__date-button",
|
|
275
275
|
"data-date": t.id,
|
|
276
276
|
disabled: e.disabled || t.disabled,
|
|
277
277
|
tabindex: Number(t.current) - 1,
|
|
278
278
|
type: "button",
|
|
279
|
-
onClick:
|
|
279
|
+
onClick: pe
|
|
280
280
|
}, [E(e.$slots, t.slotName, {
|
|
281
281
|
first: t.first,
|
|
282
282
|
highlighted: t.highlighted,
|
|
@@ -293,7 +293,7 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
293
293
|
last: t.last,
|
|
294
294
|
middle: t.middle,
|
|
295
295
|
selected: t.selected
|
|
296
|
-
}, () => [v(D(t.label), 1)])])], 8,
|
|
296
|
+
}, () => [v(D(t.label), 1)])])], 8, oe), _("div", M, [E(e.$slots, `append:${t.slotName}`, {
|
|
297
297
|
first: t.first,
|
|
298
298
|
highlighted: t.highlighted,
|
|
299
299
|
item: t.original,
|
|
@@ -311,7 +311,7 @@ var ne = ["aria-label", "onKeydown"], re = {
|
|
|
311
311
|
selected: t.selected
|
|
312
312
|
})])])], 10, ae))), 128))]))), 128))]))]),
|
|
313
313
|
_: 3
|
|
314
|
-
}, 8, ["direction"]), _("div",
|
|
314
|
+
}, 8, ["direction"]), _("div", N, D(H.value ? O(R)("datePicker.selectEndDate").value : ""), 1)], 42, ne));
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
//#endregion
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import t from "../BbBaseButton/BbBaseButton.vue.js";
|
|
3
|
+
import { useLocale as n } from "../../composables/useLocale.js";
|
|
4
|
+
import { chunk as r } from "../../utilities/functions/chunk.js";
|
|
5
|
+
import { useTypeahead as i } from "./typeahead.js";
|
|
6
|
+
import { useDatePickerContext as a } from "./useDatePickerContext.js";
|
|
7
7
|
import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, watch as S, withCtx as C, withKeys as w, withModifiers as T } from "vue";
|
|
8
8
|
//#region src/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var E = ["aria-label", "role"], D = ["role"], O = ["role"], k = 3, A = /*@__PURE__*/ f({
|
|
10
10
|
__name: "BbBaseDatePickerMonthSelector",
|
|
11
11
|
setup(f, { expose: A }) {
|
|
12
|
-
let j =
|
|
13
|
-
if (!
|
|
12
|
+
let j = e(), M = a(), { t: N } = n(), { cursor: P, disabled: F, monthOptions: I, typeaheadResetKey: L } = M, R = s(() => P.value.month()), z = s(() => M.terminalUnit.value === "month"), B = (e) => P.value.set("month", e), V = v(null), H = s(() => I.value.map((e) => {
|
|
13
|
+
if (!z.value) return {
|
|
14
14
|
...e,
|
|
15
|
-
selected: e.value === (
|
|
16
|
-
cursored: e.value ===
|
|
15
|
+
selected: e.value === (V.value ?? R.value),
|
|
16
|
+
cursored: e.value === R.value,
|
|
17
17
|
first: !1,
|
|
18
18
|
last: !1,
|
|
19
19
|
middle: !1,
|
|
20
20
|
preview: !1,
|
|
21
21
|
disabled: !1
|
|
22
22
|
};
|
|
23
|
-
let t =
|
|
23
|
+
let t = M.unitState(B(e.value));
|
|
24
24
|
return {
|
|
25
25
|
...e,
|
|
26
26
|
...t,
|
|
27
|
-
cursored: e.value === (
|
|
27
|
+
cursored: e.value === (V.value ?? R.value)
|
|
28
28
|
};
|
|
29
|
-
})),
|
|
30
|
-
(
|
|
31
|
-
}, G = (e) => {
|
|
32
|
-
let t = B.value ?? L.value, n = Math.min(11, Math.max(0, t + e));
|
|
33
|
-
n !== t && (B.value = n, R.value && j.setHoveredUnit(z(n)), W(n));
|
|
29
|
+
})), U = s(() => r(H.value, k)), W = v(), G = (e) => {
|
|
30
|
+
(W.value?.querySelector(`[data-month="${e}"]`))?.focus();
|
|
34
31
|
}, K = (e) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
let t = V.value ?? R.value, n = Math.min(11, Math.max(0, t + e));
|
|
33
|
+
n !== t && (V.value = n, z.value && M.setHoveredUnit(B(n)), G(n));
|
|
34
|
+
}, q = (e) => {
|
|
35
|
+
P.value = P.value.add(e, "year"), p(() => G(V.value ?? R.value));
|
|
36
|
+
}, { onKeydown: J, reset: Y } = i({
|
|
37
|
+
candidates: () => H.value,
|
|
38
38
|
getTokens: (e) => e.tokens,
|
|
39
|
-
getCurrent: () =>
|
|
39
|
+
getCurrent: () => H.value.find((e) => e.value === R.value),
|
|
40
40
|
onMatch: (e) => {
|
|
41
|
-
|
|
41
|
+
V.value = e.value, z.value && M.setHoveredUnit(B(e.value)), G(e.value);
|
|
42
42
|
},
|
|
43
43
|
onCommit: (e) => {
|
|
44
|
-
|
|
44
|
+
M.selectMonth(e.value);
|
|
45
45
|
},
|
|
46
|
-
locale: () =>
|
|
46
|
+
locale: () => j.locale
|
|
47
47
|
});
|
|
48
|
-
return S(
|
|
49
|
-
|
|
48
|
+
return S(L, () => {
|
|
49
|
+
V.value = null, Y();
|
|
50
50
|
}), g(async () => {
|
|
51
|
-
await p(),
|
|
51
|
+
await p(), z.value || G(R.value);
|
|
52
52
|
}), h(() => {
|
|
53
|
-
|
|
54
|
-
}), A({ processKey:
|
|
53
|
+
Y();
|
|
54
|
+
}), A({ processKey: J }), (e, n) => (_(), l("div", {
|
|
55
55
|
ref_key: "container",
|
|
56
|
-
ref:
|
|
57
|
-
"aria-label": x(
|
|
58
|
-
class: m(["bb-base-date-picker__button-menu bb-base-date-picker__month-selector", { "bb-base-date-picker__button-menu--terminal":
|
|
59
|
-
role:
|
|
60
|
-
onKeydownCapture: n[0] ||= (...e) => x(
|
|
56
|
+
ref: W,
|
|
57
|
+
"aria-label": x(N)("datePicker.monthSelectorLabel").value,
|
|
58
|
+
class: m(["bb-base-date-picker__button-menu bb-base-date-picker__month-selector", { "bb-base-date-picker__button-menu--terminal": z.value }]),
|
|
59
|
+
role: z.value ? "grid" : "group",
|
|
60
|
+
onKeydownCapture: n[0] ||= (...e) => x(J) && x(J)(...e),
|
|
61
61
|
onKeydown: [
|
|
62
|
-
n[1] ||= w(T((e) =>
|
|
63
|
-
n[2] ||= w(T((e) =>
|
|
64
|
-
n[3] ||= w(T((e) =>
|
|
65
|
-
n[4] ||= w(T((e) =>
|
|
66
|
-
n[5] ||= w(T((e) =>
|
|
67
|
-
n[6] ||= w(T((e) =>
|
|
68
|
-
n[7] ||= w(T((e) =>
|
|
69
|
-
n[8] ||= w(T((e) =>
|
|
62
|
+
n[1] ||= w(T((e) => z.value && K(3), ["prevent"]), ["down"]),
|
|
63
|
+
n[2] ||= w(T((e) => z.value && G(11), ["prevent"]), ["end"]),
|
|
64
|
+
n[3] ||= w(T((e) => z.value && G(0), ["prevent"]), ["home"]),
|
|
65
|
+
n[4] ||= w(T((e) => z.value && K(-1), ["prevent"]), ["left"]),
|
|
66
|
+
n[5] ||= w(T((e) => z.value && q(1), ["prevent"]), ["page-down"]),
|
|
67
|
+
n[6] ||= w(T((e) => z.value && q(-1), ["prevent"]), ["page-up"]),
|
|
68
|
+
n[7] ||= w(T((e) => z.value && K(1), ["prevent"]), ["right"]),
|
|
69
|
+
n[8] ||= w(T((e) => z.value && K(-3), ["prevent"]), ["up"])
|
|
70
70
|
],
|
|
71
|
-
onMouseleave: n[9] ||= (e) =>
|
|
71
|
+
onMouseleave: n[9] ||= (e) => z.value && x(M).setHoveredUnit(null)
|
|
72
72
|
}, [u("div", {
|
|
73
73
|
class: "content",
|
|
74
|
-
role:
|
|
75
|
-
}, [(_(!0), l(o, null, y(
|
|
76
|
-
key:
|
|
74
|
+
role: z.value ? "none" : void 0
|
|
75
|
+
}, [(_(!0), l(o, null, y(U.value, (e) => (_(), l("div", {
|
|
76
|
+
key: e[0].key,
|
|
77
77
|
class: "content__row",
|
|
78
|
-
role:
|
|
79
|
-
}, [(_(!0), l(o, null, y(
|
|
80
|
-
key:
|
|
81
|
-
"aria-current":
|
|
82
|
-
"aria-label":
|
|
83
|
-
"aria-pressed":
|
|
84
|
-
"aria-selected":
|
|
78
|
+
role: z.value ? "row" : void 0
|
|
79
|
+
}, [(_(!0), l(o, null, y(e, (e) => (_(), c(t, {
|
|
80
|
+
key: e.key,
|
|
81
|
+
"aria-current": e.cursored ? "date" : void 0,
|
|
82
|
+
"aria-label": e.ariaLabel,
|
|
83
|
+
"aria-pressed": z.value ? void 0 : e.selected,
|
|
84
|
+
"aria-selected": z.value ? e.selected : void 0,
|
|
85
85
|
class: m(["content__btn", {
|
|
86
|
-
"content__btn--selected":
|
|
87
|
-
"content__btn--first":
|
|
88
|
-
"content__btn--last":
|
|
89
|
-
"content__btn--middle":
|
|
90
|
-
"content__btn--preview":
|
|
86
|
+
"content__btn--selected": e.selected,
|
|
87
|
+
"content__btn--first": e.first,
|
|
88
|
+
"content__btn--last": e.last,
|
|
89
|
+
"content__btn--middle": e.middle,
|
|
90
|
+
"content__btn--preview": e.preview
|
|
91
91
|
}]),
|
|
92
|
-
"data-month":
|
|
93
|
-
disabled: x(
|
|
94
|
-
role:
|
|
95
|
-
onClick: (
|
|
96
|
-
onMouseenter: (
|
|
92
|
+
"data-month": e.value,
|
|
93
|
+
disabled: x(F) || e.disabled,
|
|
94
|
+
role: z.value ? "gridcell" : void 0,
|
|
95
|
+
onClick: (t) => x(M).selectMonth(e.value),
|
|
96
|
+
onMouseenter: (t) => z.value && x(M).setHoveredUnit(B(e.value))
|
|
97
97
|
}, {
|
|
98
|
-
default: C(() => [d(b(
|
|
98
|
+
default: C(() => [d(b(e.text), 1)]),
|
|
99
99
|
_: 2
|
|
100
100
|
}, 1032, [
|
|
101
101
|
"aria-current",
|
|
@@ -15,10 +15,10 @@ declare const __VLS_base: import('vue').DefineComponent<BaseDatePickerInputProps
|
|
|
15
15
|
"onUpdate:time"?: ((value: string | string[] | null) => any) | undefined;
|
|
16
16
|
onInactive?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
adaptive: boolean;
|
|
18
19
|
type: import('../../types/DatePickerType').DatePickerType;
|
|
19
20
|
disableWriting: boolean | "mobile" | "desktop";
|
|
20
21
|
disableCalendar: boolean | "mobile" | "desktop";
|
|
21
|
-
adaptive: boolean;
|
|
22
22
|
autocomplete: string;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|