@soybeanjs/headless 0.16.0 → 0.18.0
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 +10 -5
- package/README.zh-CN.md +10 -5
- package/dist/components/_icon/types.d.ts +9 -0
- package/dist/components/accordion/types.d.ts +87 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/types.d.ts +78 -0
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +122 -10
- package/dist/components/arrow/types.d.ts +3 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -1
- package/dist/components/autocomplete/types.d.ts +141 -0
- package/dist/components/avatar/avatar-compact.js +1 -0
- package/dist/components/avatar/avatar-compact.vue.d.ts +20 -0
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/index.d.ts +6 -5
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/types.d.ts +50 -1
- package/dist/components/backtop/backtop.vue.d.ts +10 -4
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/badge-compact.js +1 -0
- package/dist/components/badge/badge-compact.vue.d.ts +21 -0
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/index.d.ts +5 -4
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/types.d.ts +42 -1
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +99 -0
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/types.d.ts +103 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.vue.d.ts +2 -2
- package/dist/components/button/types.d.ts +18 -3
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/types.d.ts +363 -0
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/types.d.ts +90 -0
- package/dist/components/carousel/carousel-compact.js +1 -0
- package/dist/components/carousel/carousel-compact.vue.d.ts +23 -0
- package/dist/components/carousel/carousel-container.js +1 -0
- package/dist/components/carousel/carousel-container.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -0
- package/dist/components/carousel/carousel-control.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -0
- package/dist/components/carousel/carousel-navigation.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-next.vue.d.ts +2 -12
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-previous.vue.d.ts +2 -12
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/carousel-root.vue.d.ts +6 -28
- package/dist/components/carousel/context.d.ts +0 -1
- package/dist/components/carousel/context.js +1 -1
- package/dist/components/carousel/hooks.js +1 -0
- package/dist/components/carousel/index.d.ts +11 -9
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/types.d.ts +146 -12
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
- package/dist/components/clipboard/types.d.ts +43 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-area/types.d.ts +60 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/types.d.ts +51 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- package/dist/components/color-slider/types.d.ts +60 -0
- package/dist/components/color-swatch/types.d.ts +9 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/types.d.ts +27 -0
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-content.vue.d.ts +1 -1
- package/dist/components/combobox/types.d.ts +237 -0
- package/dist/components/command/command-compact.vue.d.ts +2 -2
- package/dist/components/command/types.d.ts +147 -0
- package/dist/components/config-provider/config-provider.js +12 -0
- package/dist/components/config-provider/types.d.ts +3 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/types.d.ts +78 -0
- package/dist/components/date-field/types.d.ts +147 -0
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -0
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
- package/dist/components/date-picker/date-picker-content.js +1 -0
- package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
- package/dist/components/date-picker/date-picker-root.js +1 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +3 -8
- package/dist/components/date-picker/index.d.ts +8 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +236 -10
- package/dist/components/date-range-field/types.d.ts +192 -0
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +3 -3
- package/dist/components/date-range-picker/types.d.ts +189 -0
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/types.d.ts +196 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/types.d.ts +123 -0
- package/dist/components/empty/empty-compact.js +1 -0
- package/dist/components/empty/empty-compact.vue.d.ts +15 -0
- package/dist/components/empty/empty-content.js +1 -1
- package/dist/components/empty/empty-description.js +1 -1
- package/dist/components/empty/empty-header.js +1 -1
- package/dist/components/empty/empty-media.js +1 -1
- package/dist/components/empty/empty-root.js +1 -1
- package/dist/components/empty/empty-title.js +1 -1
- package/dist/components/empty/index.d.ts +9 -8
- package/dist/components/empty/index.js +1 -1
- package/dist/components/empty/types.d.ts +88 -1
- package/dist/components/form/context.d.ts +3 -2
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/types.d.ts +399 -16
- package/dist/components/form/core/use-form.js +1 -1
- package/dist/components/form/form-compact.js +1 -0
- package/dist/components/form/form-compact.vue.d.ts +21 -0
- package/dist/components/form/form-control.js +1 -1
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -0
- package/dist/components/form/form-field-array-compact.vue.d.ts +16 -0
- package/dist/components/form/form-field-base-compact.js +1 -0
- package/dist/components/form/form-field-base-compact.vue.d.ts +26 -0
- package/dist/components/form/form-field-compact.js +1 -0
- package/dist/components/form/form-field-compact.vue.d.ts +16 -0
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/index.d.ts +14 -10
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/shared.js +1 -0
- package/dist/components/form/types.d.ts +149 -3
- package/dist/components/form/use-form.d.ts +8 -0
- package/dist/components/form/use-form.js +1 -0
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +1 -1
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +57 -0
- package/dist/components/input/index.d.ts +6 -4
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input-clear.js +1 -0
- package/dist/components/input/input-clear.vue.d.ts +22 -0
- package/dist/components/input/input-compact.js +1 -0
- package/dist/components/input/input-compact.vue.d.ts +21 -0
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/types.d.ts +94 -2
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-number/types.d.ts +30 -0
- package/dist/components/input-otp/index.d.ts +1 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +1 -1
- package/dist/components/input-otp/types.d.ts +186 -0
- package/dist/components/kbd/types.d.ts +6 -0
- package/dist/components/label/types.d.ts +3 -0
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +2 -2
- package/dist/components/layout/types.d.ts +124 -10
- package/dist/components/link/types.d.ts +12 -0
- package/dist/components/list/types.d.ts +21 -0
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +66 -0
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/types.d.ts +266 -2
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +1 -1
- package/dist/components/month-picker/types.d.ts +141 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +3 -3
- package/dist/components/month-range-picker/types.d.ts +165 -0
- package/dist/components/navigation-menu/types.d.ts +96 -9
- package/dist/components/page-tabs/types.d.ts +24 -0
- package/dist/components/pagination/types.d.ts +96 -0
- package/dist/components/popover/context.d.ts +9 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-compact.vue.d.ts +1 -1
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +0 -2
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +94 -6
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/popper/types.d.ts +21 -0
- package/dist/components/portal/types.d.ts +3 -0
- package/dist/components/primitive/types.d.ts +6 -0
- package/dist/components/progress/types.d.ts +81 -0
- package/dist/components/radio-group/types.d.ts +66 -0
- package/dist/components/range-calendar/types.d.ts +330 -0
- package/dist/components/roving-focus/types.d.ts +18 -0
- package/dist/components/scroll-area/types.d.ts +33 -0
- package/dist/components/segment/types.d.ts +36 -0
- package/dist/components/select/select-content.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +240 -0
- package/dist/components/separator/types.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +3 -0
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/types.d.ts +114 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +96 -0
- package/dist/components/switch/types.d.ts +21 -0
- package/dist/components/table/types.d.ts +819 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +75 -0
- package/dist/components/tag/types.d.ts +12 -0
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/types.d.ts +138 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +1 -1
- package/dist/components/time-picker/types.d.ts +156 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
- package/dist/components/time-range-field/types.d.ts +192 -0
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +3 -3
- package/dist/components/time-range-picker/types.d.ts +201 -0
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +224 -4
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/types.d.ts +60 -0
- package/dist/components/virtualizer/types.d.ts +33 -0
- package/dist/components/visually-hidden/types.d.ts +30 -0
- package/dist/components/year-picker/types.d.ts +144 -0
- package/dist/components/year-picker/year-picker-root.vue.d.ts +1 -1
- package/dist/components/year-range-picker/types.d.ts +168 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +3 -3
- package/dist/composables/use-collection.js +1 -1
- package/dist/constants/components.d.ts +5 -5
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +1 -1
- package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
- package/dist/date/parts.d.ts +1 -1
- package/dist/index.d.ts +440 -428
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +903 -872
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/string.d.ts +1 -34
- package/dist/shared/string.js +1 -1
- package/dist/types/common.d.ts +10 -2
- package/dist/types/dom.d.ts +3 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +0 -0
- package/dist/types/vue.d.ts +4 -1
- package/package.json +9 -2
- package/dist/components/date-picker/date-picker-popup.js +0 -1
- package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-picker/date-picker-trigger.js +0 -1
- package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
- package/dist/components/form/core/use-form.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +0 -16
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +0 -31
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +0 -67
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +0 -29
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +0 -43
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +0 -20
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +0 -14
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +0 -12
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +0 -19
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +0 -4
- /package/dist/{components/input-otp → constants}/regexp.js +0 -0
|
@@ -2,63 +2,289 @@ import { Direction, UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
3
|
import { PropsToContext } from "../../types/vue.js";
|
|
4
4
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
5
|
+
import { PortalProps } from "../portal/types.js";
|
|
5
6
|
import { DateStep, Granularity, HourCycle, Matcher } from "../../date/types.js";
|
|
6
7
|
import { Formatter } from "../../date/formatter.js";
|
|
8
|
+
import { PopoverPopupProps, PopoverPositionerEmits, PopoverPositionerProps, PopoverRootProps, PopoverTriggerProps, PopoverUiSlot } from "../popover/types.js";
|
|
7
9
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
8
10
|
import { DateValue } from "@internationalized/date";
|
|
9
11
|
|
|
10
12
|
//#region src/components/date-picker/types.d.ts
|
|
11
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Properties for the DatePickerRoot component.
|
|
15
|
+
*/
|
|
16
|
+
interface DatePickerRootProps extends PrimitiveProps, FormFieldCommonProps, PopoverRootProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
17
|
+
/**
|
|
18
|
+
* Default value.
|
|
19
|
+
*/
|
|
12
20
|
defaultValue?: DateValue;
|
|
21
|
+
/**
|
|
22
|
+
* Default placeholder.
|
|
23
|
+
*/
|
|
13
24
|
defaultPlaceholder?: DateValue;
|
|
25
|
+
/**
|
|
26
|
+
* Placeholder.
|
|
27
|
+
*/
|
|
14
28
|
placeholder?: DateValue;
|
|
29
|
+
/**
|
|
30
|
+
* Current model value.
|
|
31
|
+
*/
|
|
15
32
|
modelValue?: DateValue;
|
|
33
|
+
/**
|
|
34
|
+
* Hour cycle.
|
|
35
|
+
*/
|
|
16
36
|
hourCycle?: HourCycle;
|
|
37
|
+
/**
|
|
38
|
+
* Step.
|
|
39
|
+
*/
|
|
17
40
|
step?: DateStep;
|
|
41
|
+
/**
|
|
42
|
+
* Granularity.
|
|
43
|
+
*/
|
|
18
44
|
granularity?: Granularity;
|
|
45
|
+
/**
|
|
46
|
+
* Whether hide time zone.
|
|
47
|
+
*/
|
|
19
48
|
hideTimeZone?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Max value.
|
|
51
|
+
*/
|
|
20
52
|
maxValue?: DateValue;
|
|
53
|
+
/**
|
|
54
|
+
* Min value.
|
|
55
|
+
*/
|
|
21
56
|
minValue?: DateValue;
|
|
57
|
+
/**
|
|
58
|
+
* Locale.
|
|
59
|
+
*/
|
|
22
60
|
locale?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the component is disabled.
|
|
63
|
+
*/
|
|
23
64
|
disabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the component is readonly.
|
|
67
|
+
*/
|
|
24
68
|
readonly?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the date is unavailable.
|
|
71
|
+
*/
|
|
25
72
|
isDateUnavailable?: Matcher;
|
|
73
|
+
/**
|
|
74
|
+
* Id.
|
|
75
|
+
*/
|
|
26
76
|
id?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Reading direction of the component.
|
|
79
|
+
*/
|
|
27
80
|
dir?: Direction;
|
|
28
|
-
defaultOpen?: boolean;
|
|
29
|
-
open?: boolean;
|
|
30
|
-
modal?: boolean;
|
|
31
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Events for the DatePickerRoot component.
|
|
84
|
+
*/
|
|
32
85
|
type DatePickerRootEmits = {
|
|
86
|
+
/**
|
|
87
|
+
* Emitted when the model value changes.
|
|
88
|
+
*/
|
|
33
89
|
'update:modelValue': [date: DateValue | undefined];
|
|
90
|
+
/**
|
|
91
|
+
* Emitted when the placeholder value changes.
|
|
92
|
+
*/
|
|
34
93
|
'update:placeholder': [date: DateValue];
|
|
94
|
+
/**
|
|
95
|
+
* Emitted when the open state changes.
|
|
96
|
+
*/
|
|
35
97
|
'update:open': [open: boolean];
|
|
36
98
|
};
|
|
37
|
-
|
|
38
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Slot properties for the DatePicker component.
|
|
101
|
+
*/
|
|
102
|
+
interface DatePickerSlotProps {
|
|
103
|
+
/**
|
|
104
|
+
* Current model value.
|
|
105
|
+
*/
|
|
106
|
+
modelValue: DateValue | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Placeholder exposed in the slot scope.
|
|
109
|
+
*/
|
|
110
|
+
placeholder: DateValue;
|
|
111
|
+
/**
|
|
112
|
+
* Set placeholder exposed in the slot scope.
|
|
113
|
+
*/
|
|
114
|
+
setPlaceholder: (date: DateValue) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Set date exposed in the slot scope.
|
|
117
|
+
*/
|
|
118
|
+
setDate: (date: DateValue | undefined) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Whether the component is open.
|
|
121
|
+
*/
|
|
122
|
+
open?: boolean;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Slots for the DatePickerRoot component.
|
|
126
|
+
*/
|
|
127
|
+
type DatePickerRootSlots = {
|
|
128
|
+
/**
|
|
129
|
+
* Custom content for the default slot.
|
|
130
|
+
*/
|
|
131
|
+
default?: (props: DatePickerSlotProps) => any;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Context for the DatePickerRoot component.
|
|
135
|
+
*/
|
|
39
136
|
interface DatePickerRootContext extends PropsToContext<DatePickerRootProps, 'disabled' | 'readonly'> {
|
|
137
|
+
/**
|
|
138
|
+
* Locale used by the component context.
|
|
139
|
+
*/
|
|
40
140
|
locale: ComputedRef<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Reading direction of the component.
|
|
143
|
+
*/
|
|
41
144
|
dir: ComputedRef<Direction>;
|
|
145
|
+
/**
|
|
146
|
+
* Current model value.
|
|
147
|
+
*/
|
|
42
148
|
modelValue: ShallowRef<DateValue | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* Placeholder used by the component context.
|
|
151
|
+
*/
|
|
43
152
|
placeholder: ShallowRef<DateValue>;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the date is unavailable.
|
|
155
|
+
*/
|
|
44
156
|
isDateUnavailable?: Matcher;
|
|
157
|
+
/**
|
|
158
|
+
* Whether the current value is invalid.
|
|
159
|
+
*/
|
|
45
160
|
isInvalid: ComputedRef<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* Formatter used by the component context.
|
|
163
|
+
*/
|
|
46
164
|
formatter: Formatter;
|
|
165
|
+
/**
|
|
166
|
+
* Hour cycle used by the component context.
|
|
167
|
+
*/
|
|
47
168
|
hourCycle: HourCycle;
|
|
169
|
+
/**
|
|
170
|
+
* Step used by the component context.
|
|
171
|
+
*/
|
|
48
172
|
step: ComputedRef<DateStep>;
|
|
49
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Whether the placeholder is focusable.
|
|
175
|
+
*/
|
|
50
176
|
isPlaceholderFocusable: ComputedRef<boolean>;
|
|
177
|
+
/**
|
|
178
|
+
* Whether the component has selected date.
|
|
179
|
+
*/
|
|
51
180
|
hasSelectedDate: ComputedRef<boolean>;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the selected date is disabled.
|
|
183
|
+
*/
|
|
52
184
|
isSelectedDateDisabled: ComputedRef<boolean>;
|
|
185
|
+
/**
|
|
186
|
+
* Min value used by the component context.
|
|
187
|
+
*/
|
|
53
188
|
minValue: ComputedRef<DateValue | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* Max value used by the component context.
|
|
191
|
+
*/
|
|
54
192
|
maxValue: ComputedRef<DateValue | undefined>;
|
|
55
|
-
|
|
193
|
+
/**
|
|
194
|
+
* Callback invoked when the date changes.
|
|
195
|
+
*/
|
|
196
|
+
onDateChange: (date: DateValue | undefined) => void;
|
|
197
|
+
/**
|
|
198
|
+
* Callback invoked when the placeholder changes.
|
|
199
|
+
*/
|
|
56
200
|
onPlaceholderChange: (date: DateValue) => void;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the date is disabled.
|
|
203
|
+
*/
|
|
57
204
|
isDateDisabled: Matcher;
|
|
205
|
+
/**
|
|
206
|
+
* Whether the date is selected.
|
|
207
|
+
*/
|
|
58
208
|
isDateSelected: Matcher;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the component is open.
|
|
211
|
+
*/
|
|
212
|
+
open: ShallowRef<boolean | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* Set open used by the component context.
|
|
215
|
+
*/
|
|
59
216
|
setOpen: (value: boolean) => void;
|
|
60
217
|
}
|
|
61
|
-
|
|
218
|
+
/**
|
|
219
|
+
* Properties for the DatePickerContent component.
|
|
220
|
+
*/
|
|
221
|
+
interface DatePickerContentProps extends PopoverPositionerProps {
|
|
222
|
+
/**
|
|
223
|
+
* Properties forwarded to the popup element.
|
|
224
|
+
*/
|
|
225
|
+
popupProps?: PopoverPopupProps;
|
|
226
|
+
/**
|
|
227
|
+
* Properties forwarded to the portal element.
|
|
228
|
+
*/
|
|
229
|
+
portalProps?: PortalProps;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Slots for the DatePickerContent component.
|
|
233
|
+
*/
|
|
234
|
+
type DatePickerContentSlots = {
|
|
235
|
+
/**
|
|
236
|
+
* Custom content for the default slot.
|
|
237
|
+
*/
|
|
238
|
+
default?: (props: DatePickerSlotProps) => any;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Properties for the DatePickerCompact component.
|
|
242
|
+
*/
|
|
243
|
+
interface DatePickerCompactProps extends DatePickerRootProps {
|
|
244
|
+
/**
|
|
245
|
+
* Trigger placeholder.
|
|
246
|
+
*/
|
|
247
|
+
triggerPlaceholder?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Properties forwarded to the positioner element.
|
|
250
|
+
*/
|
|
251
|
+
positionerProps?: PopoverPositionerProps;
|
|
252
|
+
/**
|
|
253
|
+
* Properties forwarded to the popup element.
|
|
254
|
+
*/
|
|
255
|
+
popupProps?: PopoverPopupProps;
|
|
256
|
+
/**
|
|
257
|
+
* Properties forwarded to the portal element.
|
|
258
|
+
*/
|
|
259
|
+
portalProps?: PortalProps;
|
|
260
|
+
/**
|
|
261
|
+
* Properties forwarded to the trigger element.
|
|
262
|
+
*/
|
|
263
|
+
triggerProps?: PopoverTriggerProps;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Events for the DatePickerCompact component.
|
|
267
|
+
*/
|
|
268
|
+
type DatePickerCompactEmits = DatePickerRootEmits;
|
|
269
|
+
/**
|
|
270
|
+
* Slots for the DatePickerCompact component.
|
|
271
|
+
*/
|
|
272
|
+
type DatePickerCompactSlots = DatePickerContentSlots & {
|
|
273
|
+
/**
|
|
274
|
+
* Custom content for the trigger slot.
|
|
275
|
+
*/
|
|
276
|
+
trigger?: (props: {
|
|
277
|
+
modelValue: DateValue | undefined;
|
|
278
|
+
open?: boolean;
|
|
279
|
+
}) => any;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Available UI slots for the DatePicker component.
|
|
283
|
+
*/
|
|
284
|
+
type DatePickerUiSlot = PopoverUiSlot | 'root';
|
|
285
|
+
/**
|
|
286
|
+
* UI class overrides for the DatePicker component.
|
|
287
|
+
*/
|
|
62
288
|
type DatePickerUi = UiClass<DatePickerUiSlot>;
|
|
63
289
|
//#endregion
|
|
64
|
-
export {
|
|
290
|
+
export { DatePickerCompactEmits, DatePickerCompactProps, DatePickerCompactSlots, DatePickerContentProps, DatePickerContentSlots, DatePickerRootContext, DatePickerRootEmits, DatePickerRootProps, DatePickerRootSlots, DatePickerUi, DatePickerUiSlot };
|
|
@@ -8,80 +8,272 @@ import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
|
8
8
|
import { DateValue } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/components/date-range-field/types.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Properties for the DateRangeFieldRoot component.
|
|
13
|
+
*/
|
|
11
14
|
interface DateRangeFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
15
|
+
/**
|
|
16
|
+
* Default value.
|
|
17
|
+
*/
|
|
12
18
|
defaultValue?: DateRange;
|
|
19
|
+
/**
|
|
20
|
+
* Default placeholder.
|
|
21
|
+
*/
|
|
13
22
|
defaultPlaceholder?: DateValue;
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder.
|
|
25
|
+
*/
|
|
14
26
|
placeholder?: DateValue;
|
|
27
|
+
/**
|
|
28
|
+
* Current model value.
|
|
29
|
+
*/
|
|
15
30
|
modelValue?: DateRange;
|
|
31
|
+
/**
|
|
32
|
+
* Hour cycle.
|
|
33
|
+
*/
|
|
16
34
|
hourCycle?: HourCycle;
|
|
35
|
+
/**
|
|
36
|
+
* Step.
|
|
37
|
+
*/
|
|
17
38
|
step?: DateStep;
|
|
39
|
+
/**
|
|
40
|
+
* Granularity.
|
|
41
|
+
*/
|
|
18
42
|
granularity?: Granularity;
|
|
43
|
+
/**
|
|
44
|
+
* Whether hide time zone.
|
|
45
|
+
*/
|
|
19
46
|
hideTimeZone?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Max value.
|
|
49
|
+
*/
|
|
20
50
|
maxValue?: DateValue;
|
|
51
|
+
/**
|
|
52
|
+
* Min value.
|
|
53
|
+
*/
|
|
21
54
|
minValue?: DateValue;
|
|
55
|
+
/**
|
|
56
|
+
* Locale.
|
|
57
|
+
*/
|
|
22
58
|
locale?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component is disabled.
|
|
61
|
+
*/
|
|
23
62
|
disabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the component is readonly.
|
|
65
|
+
*/
|
|
24
66
|
readonly?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the date is unavailable.
|
|
69
|
+
*/
|
|
25
70
|
isDateUnavailable?: Matcher;
|
|
71
|
+
/**
|
|
72
|
+
* Id.
|
|
73
|
+
*/
|
|
26
74
|
id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Reading direction of the component.
|
|
77
|
+
*/
|
|
27
78
|
dir?: Direction;
|
|
79
|
+
/**
|
|
80
|
+
* Start name.
|
|
81
|
+
*/
|
|
28
82
|
startName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* End name.
|
|
85
|
+
*/
|
|
29
86
|
endName?: string;
|
|
30
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Events for the DateRangeFieldRoot component.
|
|
90
|
+
*/
|
|
31
91
|
type DateRangeFieldRootEmits = {
|
|
92
|
+
/**
|
|
93
|
+
* Emitted when the model value changes.
|
|
94
|
+
*/
|
|
32
95
|
'update:modelValue': [range: DateRange];
|
|
96
|
+
/**
|
|
97
|
+
* Emitted when the placeholder value changes.
|
|
98
|
+
*/
|
|
33
99
|
'update:placeholder': [date: DateValue];
|
|
100
|
+
/**
|
|
101
|
+
* Emitted when the start value changes.
|
|
102
|
+
*/
|
|
34
103
|
'update:startValue': [date: DateValue | undefined];
|
|
104
|
+
/**
|
|
105
|
+
* Emitted when the end value changes.
|
|
106
|
+
*/
|
|
35
107
|
'update:endValue': [date: DateValue | undefined];
|
|
36
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* Properties for the DateRangeFieldInput component.
|
|
111
|
+
*/
|
|
37
112
|
interface DateRangeFieldInputProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
113
|
+
/**
|
|
114
|
+
* Part.
|
|
115
|
+
*/
|
|
38
116
|
part: SegmentPart;
|
|
117
|
+
/**
|
|
118
|
+
* Type.
|
|
119
|
+
*/
|
|
39
120
|
type?: 'start' | 'end';
|
|
40
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Type information for DateRangeFieldSegment.
|
|
124
|
+
*/
|
|
41
125
|
interface DateRangeFieldSegment {
|
|
126
|
+
/**
|
|
127
|
+
* Part.
|
|
128
|
+
*/
|
|
42
129
|
part: SegmentPart;
|
|
130
|
+
/**
|
|
131
|
+
* Value associated with the current item.
|
|
132
|
+
*/
|
|
43
133
|
value: string;
|
|
44
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Context for the DateRangeFieldRoot component.
|
|
137
|
+
*/
|
|
45
138
|
interface DateRangeFieldRootContext extends PropsToContext<DateRangeFieldRootProps, 'disabled' | 'readonly'> {
|
|
139
|
+
/**
|
|
140
|
+
* Locale used by the component context.
|
|
141
|
+
*/
|
|
46
142
|
locale: ComputedRef<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Reading direction of the component.
|
|
145
|
+
*/
|
|
47
146
|
dir: ComputedRef<Direction>;
|
|
147
|
+
/**
|
|
148
|
+
* Current model value.
|
|
149
|
+
*/
|
|
48
150
|
modelValue: ShallowRef<DateRange>;
|
|
151
|
+
/**
|
|
152
|
+
* Placeholder used by the component context.
|
|
153
|
+
*/
|
|
49
154
|
placeholder: ShallowRef<DateValue>;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the date is unavailable.
|
|
157
|
+
*/
|
|
50
158
|
isDateUnavailable?: Matcher;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the current value is invalid.
|
|
161
|
+
*/
|
|
51
162
|
isInvalid: ComputedRef<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Formatter used by the component context.
|
|
165
|
+
*/
|
|
52
166
|
formatter: Formatter;
|
|
167
|
+
/**
|
|
168
|
+
* Hour cycle used by the component context.
|
|
169
|
+
*/
|
|
53
170
|
hourCycle: HourCycle;
|
|
171
|
+
/**
|
|
172
|
+
* Step used by the component context.
|
|
173
|
+
*/
|
|
54
174
|
step: ComputedRef<DateStep>;
|
|
175
|
+
/**
|
|
176
|
+
* Start segment values used by the component context.
|
|
177
|
+
*/
|
|
55
178
|
startSegmentValues: ShallowRef<SegmentValueObj>;
|
|
179
|
+
/**
|
|
180
|
+
* End segment values used by the component context.
|
|
181
|
+
*/
|
|
56
182
|
endSegmentValues: ShallowRef<SegmentValueObj>;
|
|
183
|
+
/**
|
|
184
|
+
* Start segment contents used by the component context.
|
|
185
|
+
*/
|
|
57
186
|
startSegmentContents: ComputedRef<DateRangeFieldSegment[]>;
|
|
187
|
+
/**
|
|
188
|
+
* End segment contents used by the component context.
|
|
189
|
+
*/
|
|
58
190
|
endSegmentContents: ComputedRef<DateRangeFieldSegment[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Start input type used by the component context.
|
|
193
|
+
*/
|
|
59
194
|
startInputType: ComputedRef<DateInputType>;
|
|
195
|
+
/**
|
|
196
|
+
* End input type used by the component context.
|
|
197
|
+
*/
|
|
60
198
|
endInputType: ComputedRef<DateInputType>;
|
|
199
|
+
/**
|
|
200
|
+
* Start input value used by the component context.
|
|
201
|
+
*/
|
|
61
202
|
startInputValue: ComputedRef<string>;
|
|
203
|
+
/**
|
|
204
|
+
* End input value used by the component context.
|
|
205
|
+
*/
|
|
62
206
|
endInputValue: ComputedRef<string>;
|
|
207
|
+
/**
|
|
208
|
+
* Input max value used by the component context.
|
|
209
|
+
*/
|
|
63
210
|
inputMaxValue: ComputedRef<string | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* Input min value used by the component context.
|
|
213
|
+
*/
|
|
64
214
|
inputMinValue: ComputedRef<string | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Start elements used by the component context.
|
|
217
|
+
*/
|
|
65
218
|
startElements: ShallowRef<HTMLElement[]>;
|
|
219
|
+
/**
|
|
220
|
+
* End elements used by the component context.
|
|
221
|
+
*/
|
|
66
222
|
endElements: ShallowRef<HTMLElement[]>;
|
|
223
|
+
/**
|
|
224
|
+
* Focused type used by the component context.
|
|
225
|
+
*/
|
|
67
226
|
focusedType: ShallowRef<'start' | 'end'>;
|
|
227
|
+
/**
|
|
228
|
+
* Focus next used by the component context.
|
|
229
|
+
*/
|
|
68
230
|
focusNext: (type: 'start' | 'end') => void;
|
|
231
|
+
/**
|
|
232
|
+
* Set focused element used by the component context.
|
|
233
|
+
*/
|
|
69
234
|
setFocusedElement: (el: HTMLElement, type: 'start' | 'end') => void;
|
|
70
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Available UI slots for the DateRangeField component.
|
|
238
|
+
*/
|
|
71
239
|
type DateRangeFieldUiSlot = 'root' | 'input' | 'separator';
|
|
240
|
+
/**
|
|
241
|
+
* UI class overrides for the DateRangeField component.
|
|
242
|
+
*/
|
|
72
243
|
type DateRangeFieldUi = UiClass<DateRangeFieldUiSlot>;
|
|
244
|
+
/**
|
|
245
|
+
* Properties for the DateRangeFieldCompact component.
|
|
246
|
+
*/
|
|
73
247
|
interface DateRangeFieldCompactProps extends DateRangeFieldRootProps {
|
|
248
|
+
/**
|
|
249
|
+
* Properties forwarded to the input element.
|
|
250
|
+
*/
|
|
74
251
|
inputProps?: Omit<DateRangeFieldInputProps, 'part' | 'type'>;
|
|
252
|
+
/**
|
|
253
|
+
* Separator.
|
|
254
|
+
*/
|
|
75
255
|
separator?: string;
|
|
76
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Events for the DateRangeFieldCompact component.
|
|
259
|
+
*/
|
|
77
260
|
type DateRangeFieldCompactEmits = DateRangeFieldRootEmits;
|
|
261
|
+
/**
|
|
262
|
+
* Slots for the DateRangeFieldCompact component.
|
|
263
|
+
*/
|
|
78
264
|
type DateRangeFieldCompactSlots = {
|
|
265
|
+
/**
|
|
266
|
+
* Custom content for the default slot.
|
|
267
|
+
*/
|
|
79
268
|
default?: (props: {
|
|
80
269
|
startSegments: DateRangeFieldSegment[];
|
|
81
270
|
endSegments: DateRangeFieldSegment[];
|
|
82
271
|
modelValue: DateRange;
|
|
83
272
|
isInvalid: boolean;
|
|
84
273
|
}) => any;
|
|
274
|
+
/**
|
|
275
|
+
* Custom content for the separator slot.
|
|
276
|
+
*/
|
|
85
277
|
separator?: () => any;
|
|
86
278
|
};
|
|
87
279
|
//#endregion
|
|
@@ -8,15 +8,15 @@ type __VLS_Slots = DateRangePickerCompactSlots;
|
|
|
8
8
|
declare const __VLS_base: _$vue.DefineComponent<DateRangePickerCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (range: DateRange) => any;
|
|
10
10
|
"update:placeholder": (date: _$_internationalized_date0.DateValue) => any;
|
|
11
|
-
"update:open": (open: boolean) => any;
|
|
12
11
|
"update:startValue": (date: _$_internationalized_date0.DateValue | undefined) => any;
|
|
13
12
|
"update:endValue": (date: _$_internationalized_date0.DateValue | undefined) => any;
|
|
13
|
+
"update:open": (open: boolean) => any;
|
|
14
14
|
}, string, _$vue.PublicProps, Readonly<DateRangePickerCompactProps> & Readonly<{
|
|
15
15
|
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
16
16
|
"onUpdate:placeholder"?: ((date: _$_internationalized_date0.DateValue) => any) | undefined;
|
|
17
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
18
17
|
"onUpdate:startValue"?: ((date: _$_internationalized_date0.DateValue | undefined) => any) | undefined;
|
|
19
18
|
"onUpdate:endValue"?: ((date: _$_internationalized_date0.DateValue | undefined) => any) | undefined;
|
|
19
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
open: boolean;
|
|
22
22
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -15,15 +15,15 @@ type __VLS_Slots = {
|
|
|
15
15
|
declare const __VLS_base: _$vue.DefineComponent<DateRangePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (range: DateRange) => any;
|
|
17
17
|
"update:placeholder": (date: DateValue) => any;
|
|
18
|
-
"update:open": (open: boolean) => any;
|
|
19
18
|
"update:startValue": (date: DateValue | undefined) => any;
|
|
20
19
|
"update:endValue": (date: DateValue | undefined) => any;
|
|
20
|
+
"update:open": (open: boolean) => any;
|
|
21
21
|
}, string, _$vue.PublicProps, Readonly<DateRangePickerRootProps> & Readonly<{
|
|
22
22
|
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
23
23
|
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
24
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
25
24
|
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
26
25
|
"onUpdate:endValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
26
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
placeholder: DateValue;
|
|
29
29
|
disabled: boolean;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: _$vue.DefineComponent<DateRangePickerRootProps, {}, {}
|
|
|
35
35
|
hideTimeZone: boolean;
|
|
36
36
|
readonly: boolean;
|
|
37
37
|
isDateUnavailable: Matcher;
|
|
38
|
-
open: boolean;
|
|
39
38
|
defaultOpen: boolean;
|
|
39
|
+
open: boolean;
|
|
40
40
|
modal: boolean;
|
|
41
41
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|