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,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import ee from "
|
|
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 { extractDomContainer as r } from "../../utilities/functions/extractDomContainer.js";
|
|
5
|
+
import { transitions as i } from "../../utilities/misc/transitions.js";
|
|
6
|
+
import a from "../CommonPopover/CommonPopover.vue.js";
|
|
7
|
+
import { useMobile as o } from "../../composables/useMobile.js";
|
|
8
|
+
import { useLocale as ee } from "../../composables/useLocale.js";
|
|
9
|
+
import te from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
9
10
|
import { isCoarseType as s } from "../../types/DatePickerType.js";
|
|
10
|
-
import { toInnerValue as c, toOuterValue as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import { Fragment as ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as oe, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as se, normalizeClass as ce, normalizeProps as _, normalizeStyle as le, onBeforeUnmount as ue, openBlock as v, ref as y, renderSlot as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
11
|
+
import { toInnerValue as c, toOuterValue as ne } from "../../utilities/functions/convertDateValue.js";
|
|
12
|
+
import re from "../BbBaseDatePicker/BbBaseDatePicker.vue.js";
|
|
13
|
+
import ie from "../BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js";
|
|
14
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as ae, createElementVNode as oe, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as se, normalizeClass as ce, normalizeProps as _, normalizeStyle as le, onBeforeUnmount as ue, openBlock as v, ref as y, renderSlot as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
15
15
|
import { createReusableTemplate as de } from "@vueuse/core";
|
|
16
16
|
//#region src/components/BbDatePicker/BbDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
17
17
|
var w = /*@__PURE__*/ m({
|
|
@@ -41,7 +41,7 @@ var w = /*@__PURE__*/ m({
|
|
|
41
41
|
default: void 0
|
|
42
42
|
},
|
|
43
43
|
offCanvasProps: {},
|
|
44
|
-
transitionDuration: { default:
|
|
44
|
+
transitionDuration: { default: i.medium },
|
|
45
45
|
placement: {},
|
|
46
46
|
offset: { default: 4 },
|
|
47
47
|
padding: {},
|
|
@@ -57,78 +57,78 @@ var w = /*@__PURE__*/ m({
|
|
|
57
57
|
"grid-pick",
|
|
58
58
|
"time-pick"
|
|
59
59
|
],
|
|
60
|
-
setup(
|
|
61
|
-
let T =
|
|
62
|
-
T.multiple && T.range &&
|
|
63
|
-
let { t:
|
|
60
|
+
setup(i, { expose: m, emit: w }) {
|
|
61
|
+
let T = i, E = w, fe = e(), D = u(() => T.type === "datetime"), pe = u(() => T.floating || s(T.type));
|
|
62
|
+
T.multiple && T.range && n().throw("BbDatePicker: cannot be both multiple and range — they are two different selection models. Pick one."), T.multiple && T.type === "datetime" && n().throw("BbDatePicker: `multiple` cannot be combined with type=\"datetime\" — the time rail edits a single value. Drop one of the two.");
|
|
63
|
+
let { t: me } = ee(), { isMobile: O } = o(), he = `bdp-${t().id.value}`, [ge, k] = de(), A = y(null), j = y(null), M = u(() => T.activeSegment ?? N.value), N = y("start"), _e = (e) => {
|
|
64
64
|
N.value = e, E("update:activeSegment", e);
|
|
65
|
-
}, P = y(), F = y(), I =
|
|
66
|
-
P.value =
|
|
67
|
-
},
|
|
68
|
-
F.value =
|
|
65
|
+
}, P = y(), F = y(), I = u(() => T.activator != null), ve = (e) => {
|
|
66
|
+
P.value = r(e) ?? void 0;
|
|
67
|
+
}, ye = (e) => {
|
|
68
|
+
F.value = r(e) ?? void 0;
|
|
69
69
|
};
|
|
70
70
|
S(() => T.activator, (e) => {
|
|
71
|
-
P.value =
|
|
71
|
+
P.value = r(e) ?? void 0;
|
|
72
72
|
}, { immediate: !0 }), S(() => T.anchor, (e) => {
|
|
73
|
-
F.value = e == null ? void 0 :
|
|
73
|
+
F.value = e == null ? void 0 : r(e) ?? void 0;
|
|
74
74
|
}, { immediate: !0 });
|
|
75
|
-
let
|
|
76
|
-
T.disabled || T.readonly || (e.stopPropagation(),
|
|
77
|
-
},
|
|
78
|
-
e.target instanceof HTMLDialogElement && (
|
|
75
|
+
let be = u(() => F.value ?? P.value), L = y(!1), R = null, z = (e) => {
|
|
76
|
+
T.disabled || T.readonly || (e.stopPropagation(), L.value = !L.value);
|
|
77
|
+
}, B = (e) => {
|
|
78
|
+
e.target instanceof HTMLDialogElement && (L.value = !1);
|
|
79
79
|
};
|
|
80
|
-
S(
|
|
81
|
-
e ? (
|
|
80
|
+
S(L, async (e) => {
|
|
81
|
+
e ? (R = document.activeElement instanceof HTMLElement ? document.activeElement : null, G.value || document.addEventListener("click", B, { passive: !0 }), await se(), A.value?.querySelector("[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", B), j.value?.resetStatus(), R?.focus(), R = null);
|
|
82
82
|
});
|
|
83
|
-
let
|
|
83
|
+
let V = null;
|
|
84
84
|
S(P, (e) => {
|
|
85
|
-
|
|
86
|
-
e.removeEventListener("click",
|
|
85
|
+
V?.(), V = null, e && (e.addEventListener("click", z), V = () => {
|
|
86
|
+
e.removeEventListener("click", z), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-label");
|
|
87
87
|
});
|
|
88
88
|
}, { immediate: !0 });
|
|
89
|
-
let
|
|
89
|
+
let H = u(() => T.label ?? me("datePicker.openPicker").value);
|
|
90
90
|
S([
|
|
91
91
|
P,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
L,
|
|
93
|
+
H
|
|
94
94
|
], ([e, t, n]) => {
|
|
95
95
|
e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-label", n));
|
|
96
96
|
}, { immediate: !0 }), ue(() => {
|
|
97
|
-
|
|
97
|
+
V?.(), document.removeEventListener("click", B);
|
|
98
98
|
});
|
|
99
|
-
let
|
|
99
|
+
let U = () => (T.adaptive ?? fe.adaptive) && O.value ? "canvas" : "popover", W = y(U()), G = u(() => W.value === "canvas");
|
|
100
100
|
S([
|
|
101
101
|
() => T.adaptive,
|
|
102
102
|
O,
|
|
103
|
-
|
|
103
|
+
L
|
|
104
104
|
], () => {
|
|
105
|
-
|
|
105
|
+
L.value || (W.value = U());
|
|
106
106
|
});
|
|
107
|
-
let
|
|
107
|
+
let xe = u(() => ({
|
|
108
108
|
side: "bottom",
|
|
109
109
|
size: "auto",
|
|
110
110
|
draggable: !0,
|
|
111
111
|
disabled: T.disabled,
|
|
112
112
|
transitionDuration: T.transitionDuration,
|
|
113
113
|
...T.offCanvasProps
|
|
114
|
-
})),
|
|
114
|
+
})), Se = () => {
|
|
115
115
|
P.value?.focus();
|
|
116
|
-
},
|
|
116
|
+
}, Ce = u(() => s(T.type) ? T.min : T.min?.slice(0, 10)), we = u(() => s(T.type) ? T.max : T.max?.slice(0, 10)), Te = u(() => (T.range || T.multiple) && !Array.isArray(T.modelValue) ? [] : T.modelValue), Ee = (e) => T.multiple ? !1 : T.range ? Array.isArray(e) && e.length === 2 : !!e, K = (e) => +(e === "end"), q = (e) => {
|
|
117
117
|
let t = T.modelValue;
|
|
118
|
-
return t == null ? null : Array.isArray(t) ? t[
|
|
119
|
-
},
|
|
118
|
+
return t == null ? null : Array.isArray(t) ? t[K(e)] ?? null : e === "start" ? t : null;
|
|
119
|
+
}, De = (e) => {
|
|
120
120
|
let t = T.time;
|
|
121
121
|
if (t != null) {
|
|
122
|
-
if (Array.isArray(t)) return t[
|
|
122
|
+
if (Array.isArray(t)) return t[K(e)] ?? null;
|
|
123
123
|
if (e === "start" && typeof t == "string") return t;
|
|
124
124
|
}
|
|
125
125
|
if (T.floating) return null;
|
|
126
|
-
let n =
|
|
126
|
+
let n = q(e);
|
|
127
127
|
if (!n) return null;
|
|
128
128
|
let r = c(n);
|
|
129
129
|
return r.isValid() ? r.format(T.seconds ? "HH:mm:ss" : "HH:mm") : null;
|
|
130
|
-
},
|
|
131
|
-
let t =
|
|
130
|
+
}, J = (e) => {
|
|
131
|
+
let t = De(e);
|
|
132
132
|
if (!t) return null;
|
|
133
133
|
let [n = "", r = "", i = ""] = t.split(":");
|
|
134
134
|
return {
|
|
@@ -136,33 +136,33 @@ var w = /*@__PURE__*/ m({
|
|
|
136
136
|
minute: r,
|
|
137
137
|
second: i
|
|
138
138
|
};
|
|
139
|
-
},
|
|
139
|
+
}, Y = (e, t) => {
|
|
140
140
|
let n = c(e, { floating: T.floating });
|
|
141
141
|
if (!n.isValid()) return null;
|
|
142
142
|
let r = t?.hour ? parseInt(t.hour, 10) : 0, i = t?.minute ? parseInt(t.minute, 10) : 0, a = T.seconds && t?.second ? parseInt(t.second, 10) : 0, o = n.hour(r).minute(i).second(a).millisecond(0);
|
|
143
143
|
return {
|
|
144
|
-
value:
|
|
144
|
+
value: ne(o, {
|
|
145
145
|
floating: T.floating,
|
|
146
146
|
utc: T.utc
|
|
147
147
|
}),
|
|
148
148
|
time: T.seconds ? o.format("HH:mm:ss") : o.format("HH:mm")
|
|
149
149
|
};
|
|
150
|
-
},
|
|
150
|
+
}, X = () => ({
|
|
151
151
|
start: {
|
|
152
|
-
date:
|
|
153
|
-
time:
|
|
152
|
+
date: q("start"),
|
|
153
|
+
time: J("start")
|
|
154
154
|
},
|
|
155
155
|
end: {
|
|
156
|
-
date:
|
|
157
|
-
time:
|
|
156
|
+
date: q("end"),
|
|
157
|
+
time: J("end")
|
|
158
158
|
}
|
|
159
|
-
}),
|
|
159
|
+
}), Z = (e) => {
|
|
160
160
|
if (T.range) {
|
|
161
161
|
let t = [], n = [];
|
|
162
162
|
for (let r of ["start", "end"]) {
|
|
163
163
|
let i = e[r];
|
|
164
164
|
if (!i.date) continue;
|
|
165
|
-
let a =
|
|
165
|
+
let a = Y(i.date, i.time);
|
|
166
166
|
a && (t.push(a.value), n.push(a.time));
|
|
167
167
|
}
|
|
168
168
|
E("update:modelValue", t.length ? t : null), E("update:time", n.length ? n : null);
|
|
@@ -173,22 +173,22 @@ var w = /*@__PURE__*/ m({
|
|
|
173
173
|
E("update:modelValue", null), E("update:time", null);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
|
-
let n =
|
|
176
|
+
let n = Y(t.date, t.time);
|
|
177
177
|
E("update:modelValue", n ? n.value : null), E("update:time", n ? n.time : null);
|
|
178
|
-
},
|
|
178
|
+
}, Oe = (e) => {
|
|
179
179
|
if (E("grid-pick", e), !D.value) {
|
|
180
|
-
E("update:modelValue", e),
|
|
180
|
+
E("update:modelValue", e), Ee(e) && (L.value = !1);
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
if (e === null) {
|
|
184
184
|
E("update:modelValue", null), E("update:time", null);
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
let t =
|
|
188
|
-
Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e,
|
|
189
|
-
},
|
|
187
|
+
let t = X();
|
|
188
|
+
Array.isArray(e) ? (t.start.date = e[0] ?? null, t.end.date = e[1] ?? null, e[1] || (t.end.time = null)) : t.start.date = e, Z(t);
|
|
189
|
+
}, ke = u(() => !!q(M.value)), Q = u(() => J(M.value)), Ae = u(() => Q.value?.hour ?? ""), $ = u(() => Q.value?.minute ?? ""), je = u(() => Q.value?.second ?? ""), Me = u(() => ""), Ne = (e) => {
|
|
190
190
|
if (E("time-pick", e), !D.value) return;
|
|
191
|
-
let t = M.value, n =
|
|
191
|
+
let t = M.value, n = X();
|
|
192
192
|
if (!n[t].date) return;
|
|
193
193
|
let r = n[t].time ? { ...n[t].time } : {
|
|
194
194
|
hour: "",
|
|
@@ -199,49 +199,49 @@ var w = /*@__PURE__*/ m({
|
|
|
199
199
|
let t = r.hour ? parseInt(r.hour, 10) : 0, n = e.value === "PM";
|
|
200
200
|
n && t < 12 && (t += 12), !n && t >= 12 && (t -= 12), r.hour = String(t).padStart(2, "0");
|
|
201
201
|
} else r[e.unit] = e.value;
|
|
202
|
-
r.hour ||= "00", r.minute ||= "00", T.seconds && !r.second && (r.second = "00"), n[t].time = r,
|
|
203
|
-
},
|
|
202
|
+
r.hour ||= "00", r.minute ||= "00", T.seconds && !r.second && (r.second = "00"), n[t].time = r, Z(n);
|
|
203
|
+
}, Pe = u(() => {
|
|
204
204
|
if (!D.value) return;
|
|
205
205
|
let e = [44, 44];
|
|
206
206
|
return T.seconds && e.push(44), T.ampm && e.push(48), { "--rail-w": `${33 + e.reduce((e, t) => e + t, 0) + (e.length - 1) * 6}px` };
|
|
207
207
|
});
|
|
208
208
|
return S(() => T.modelValue, (e) => {
|
|
209
|
-
!T.range || !D.value || T.activeSegment != null || Array.isArray(e) && e.length === 2 &&
|
|
210
|
-
}), m({ calendarEl: A }), (e, t) => (v(),
|
|
211
|
-
I.value ?
|
|
212
|
-
props: { ref:
|
|
213
|
-
anchorProps: { ref:
|
|
214
|
-
open:
|
|
209
|
+
!T.range || !D.value || T.activeSegment != null || Array.isArray(e) && e.length === 2 && _e("end");
|
|
210
|
+
}), m({ calendarEl: A }), (e, t) => (v(), ae(l, null, [
|
|
211
|
+
I.value ? f("", !0) : b(e.$slots, "activator", _(g({ key: 0 }, {
|
|
212
|
+
props: { ref: ve },
|
|
213
|
+
anchorProps: { ref: ye },
|
|
214
|
+
open: L.value,
|
|
215
215
|
value: e.modelValue,
|
|
216
216
|
disabled: !!e.disabled
|
|
217
217
|
}))),
|
|
218
|
-
p(x(
|
|
218
|
+
p(x(ge), null, {
|
|
219
219
|
default: C(() => [oe("div", {
|
|
220
220
|
ref_key: "calendarRef",
|
|
221
221
|
ref: A,
|
|
222
222
|
class: ce(["bb-date-picker__calendar", {
|
|
223
223
|
"bb-date-picker__calendar--datetime": D.value,
|
|
224
|
-
"bb-date-picker__calendar--sheet":
|
|
224
|
+
"bb-date-picker__calendar--sheet": G.value
|
|
225
225
|
}]),
|
|
226
|
-
style: le(
|
|
227
|
-
}, [p(
|
|
228
|
-
id:
|
|
226
|
+
style: le(Pe.value)
|
|
227
|
+
}, [p(re, {
|
|
228
|
+
id: he,
|
|
229
229
|
ref_key: "gridRef",
|
|
230
230
|
ref: j,
|
|
231
231
|
disabled: e.disabled,
|
|
232
232
|
"first-day-of-week": e.firstDayOfWeek,
|
|
233
|
-
floating:
|
|
233
|
+
floating: pe.value,
|
|
234
234
|
header: "",
|
|
235
|
-
max:
|
|
236
|
-
min:
|
|
237
|
-
"model-value":
|
|
235
|
+
max: we.value,
|
|
236
|
+
min: Ce.value,
|
|
237
|
+
"model-value": Te.value,
|
|
238
238
|
multiple: e.multiple,
|
|
239
239
|
range: e.range,
|
|
240
240
|
readonly: e.readonly,
|
|
241
241
|
selectable: e.selectable,
|
|
242
242
|
type: e.type,
|
|
243
243
|
utc: e.utc,
|
|
244
|
-
"onUpdate:modelValue":
|
|
244
|
+
"onUpdate:modelValue": Oe
|
|
245
245
|
}, {
|
|
246
246
|
day: C((t) => [b(e.$slots, "day", _(h(t)))]),
|
|
247
247
|
"append:day": C((t) => [b(e.$slots, "append:day", _(h(t)))]),
|
|
@@ -259,17 +259,17 @@ var w = /*@__PURE__*/ m({
|
|
|
259
259
|
"selectable",
|
|
260
260
|
"type",
|
|
261
261
|
"utc"
|
|
262
|
-
]), D.value ? (v(),
|
|
262
|
+
]), D.value ? (v(), d(ie, {
|
|
263
263
|
key: 0,
|
|
264
264
|
ampm: e.ampm,
|
|
265
|
-
disabled: e.disabled || e.readonly || !
|
|
266
|
-
hour:
|
|
267
|
-
meridiem:
|
|
268
|
-
minute:
|
|
269
|
-
second:
|
|
265
|
+
disabled: e.disabled || e.readonly || !ke.value,
|
|
266
|
+
hour: Ae.value,
|
|
267
|
+
meridiem: Me.value,
|
|
268
|
+
minute: $.value,
|
|
269
|
+
second: je.value,
|
|
270
270
|
seconds: e.seconds,
|
|
271
271
|
step: e.step,
|
|
272
|
-
onSelect:
|
|
272
|
+
onSelect: Ne
|
|
273
273
|
}, null, 8, [
|
|
274
274
|
"ampm",
|
|
275
275
|
"disabled",
|
|
@@ -279,23 +279,23 @@ var w = /*@__PURE__*/ m({
|
|
|
279
279
|
"second",
|
|
280
280
|
"seconds",
|
|
281
281
|
"step"
|
|
282
|
-
])) :
|
|
282
|
+
])) : f("", !0)], 6)]),
|
|
283
283
|
_: 3
|
|
284
284
|
}),
|
|
285
|
-
|
|
285
|
+
G.value ? (v(), d(te, g({
|
|
286
286
|
key: 1,
|
|
287
|
-
modelValue:
|
|
288
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
287
|
+
modelValue: L.value,
|
|
288
|
+
"onUpdate:modelValue": t[0] ||= (e) => L.value = e,
|
|
289
289
|
class: "bb-date-picker-offcanvas"
|
|
290
|
-
},
|
|
290
|
+
}, xe.value, { onHidden: Se }), {
|
|
291
291
|
default: C(() => [p(x(k))]),
|
|
292
292
|
_: 1
|
|
293
|
-
}, 16, ["modelValue"])) : (v(),
|
|
293
|
+
}, 16, ["modelValue"])) : (v(), d(a, {
|
|
294
294
|
key: 2,
|
|
295
|
-
modelValue:
|
|
296
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
297
|
-
anchor:
|
|
298
|
-
"aria-label":
|
|
295
|
+
modelValue: L.value,
|
|
296
|
+
"onUpdate:modelValue": t[1] ||= (e) => L.value = e,
|
|
297
|
+
anchor: be.value,
|
|
298
|
+
"aria-label": H.value,
|
|
299
299
|
boundary: e.boundary,
|
|
300
300
|
class: "bb-date-picker__popover",
|
|
301
301
|
dialog: "",
|
package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
import
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
1
|
+
import { useConfig as e } from "../../composables/useConfig.js";
|
|
2
|
+
import { removedPropsFor as t } from "../../deprecation/removedProps.js";
|
|
3
|
+
import { warnRemovedAttrs as n } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
4
|
+
import r from "../BbBaseInputContainer/BbBaseInputContainer.vue.js";
|
|
5
|
+
import { isNotEmpty as i } from "../../utilities/functions/isNotEmpty.js";
|
|
6
|
+
import a from "../BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js";
|
|
7
7
|
import { computed as o, createBlock as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, onBeforeUnmount as p, onDeactivated as m, openBlock as h, ref as g, renderSlot as _, withCtx as v } from "vue";
|
|
8
8
|
//#region src/components/BbDatePickerInput/BbDatePickerInput.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var y = /*@__PURE__*/ l({
|
|
@@ -66,25 +66,25 @@ var y = /*@__PURE__*/ l({
|
|
|
66
66
|
"update:time"
|
|
67
67
|
],
|
|
68
68
|
setup(l, { emit: y }) {
|
|
69
|
-
let b = l, x = y;
|
|
70
|
-
process.env.NODE_ENV !== "production" &&
|
|
71
|
-
let
|
|
72
|
-
|
|
69
|
+
let b = l, x = y, S = e();
|
|
70
|
+
process.env.NODE_ENV !== "production" && n("BbDatePickerInput", t("BbDatePickerInput"));
|
|
71
|
+
let C = g(!1), w = o(() => b.persistentHint || C.value), T = o(() => i(b.modelValue)), E = o(() => b.labelMode ?? S.defaultInputLabelMode), D = () => {
|
|
72
|
+
C.value = !1;
|
|
73
73
|
};
|
|
74
|
-
m(
|
|
75
|
-
let
|
|
74
|
+
m(D), p(D);
|
|
75
|
+
let O = {
|
|
76
76
|
onError: (e) => x("error", e),
|
|
77
77
|
onFocus: (e) => x("focus", e),
|
|
78
78
|
onActive: () => {
|
|
79
|
-
|
|
79
|
+
C.value = !0, x("active");
|
|
80
80
|
},
|
|
81
81
|
onInactive: () => {
|
|
82
|
-
|
|
82
|
+
D(), x("inactive");
|
|
83
83
|
},
|
|
84
84
|
"onUpdate:modelValue": (e) => x("update:modelValue", e),
|
|
85
85
|
"onUpdate:time": (e) => x("update:time", e)
|
|
86
86
|
};
|
|
87
|
-
return (e, t) => (h(), s(
|
|
87
|
+
return (e, t) => (h(), s(r, {
|
|
88
88
|
id: e.id,
|
|
89
89
|
class: "bb-date-picker-input",
|
|
90
90
|
compact: e.compact,
|
|
@@ -92,26 +92,26 @@ var y = /*@__PURE__*/ l({
|
|
|
92
92
|
direction: e.direction,
|
|
93
93
|
errors: e.errors,
|
|
94
94
|
"has-errors": e.hasErrors,
|
|
95
|
-
"has-value":
|
|
95
|
+
"has-value": T.value,
|
|
96
96
|
"has-warning": e.hasWarning,
|
|
97
97
|
"hide-label": e.hideLabel,
|
|
98
98
|
hint: e.hint,
|
|
99
99
|
label: e.label,
|
|
100
|
-
"label-mode":
|
|
100
|
+
"label-mode": E.value,
|
|
101
101
|
"label-position": e.labelPosition,
|
|
102
102
|
"model-value": e.modelValue,
|
|
103
103
|
name: e.name,
|
|
104
104
|
reverse: e.reverse,
|
|
105
|
-
"show-hint":
|
|
105
|
+
"show-hint": w.value,
|
|
106
106
|
warnings: e.warnings
|
|
107
107
|
}, {
|
|
108
108
|
label: v((t) => [_(e.$slots, "label", f(u(t)))]),
|
|
109
|
-
input: v(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby:
|
|
109
|
+
input: v(({ id: t, hasErrors: n, hasWarning: r, ariaDescribedby: i }) => [c(a, d({
|
|
110
110
|
id: t,
|
|
111
111
|
adaptive: e.adaptive,
|
|
112
112
|
ampm: e.ampm,
|
|
113
113
|
"append:icon": b["append:icon"],
|
|
114
|
-
"aria-describedby":
|
|
114
|
+
"aria-describedby": i,
|
|
115
115
|
autocomplete: e.autocomplete,
|
|
116
116
|
autofocus: e.autofocus,
|
|
117
117
|
clearable: e.clearable,
|
|
@@ -141,7 +141,7 @@ var y = /*@__PURE__*/ l({
|
|
|
141
141
|
"transition-duration": e.transitionDuration,
|
|
142
142
|
type: e.type,
|
|
143
143
|
utc: e.utc
|
|
144
|
-
},
|
|
144
|
+
}, O), {
|
|
145
145
|
"prepend-outer": v(() => [_(e.$slots, "prepend-outer")]),
|
|
146
146
|
prepend: v(() => [_(e.$slots, "prepend")]),
|
|
147
147
|
prefix: v(() => [_(e.$slots, "prefix")]),
|
|
@@ -26,8 +26,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
26
26
|
onHidden?: (() => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
size: import('../..').Responsive<NonNullable<import('../../types/CommonProps').Size<import('./types').Sizes>["size"]>>;
|
|
29
|
-
transitionDuration: number;
|
|
30
29
|
adaptive: boolean;
|
|
30
|
+
transitionDuration: number;
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|