@soybeanjs/headless 0.16.0 → 0.17.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/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/anchor-root.vue.d.ts +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-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/types.d.ts +141 -0
- package/dist/components/avatar/types.d.ts +18 -0
- package/dist/components/backtop/backtop.vue.d.ts +9 -3
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/types.d.ts +21 -0
- 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-nested.vue.d.ts +2 -2
- 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/types.d.ts +16 -1
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/types.d.ts +363 -0
- package/dist/components/card/types.d.ts +90 -0
- package/dist/components/carousel/types.d.ts +42 -0
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/types.d.ts +42 -0
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- 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 +1 -1
- 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/types.d.ts +27 -0
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/types.d.ts +237 -0
- package/dist/components/command/types.d.ts +147 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- 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-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- 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/types.d.ts +78 -0
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- 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 +9 -14
- 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/date-range-field-root.vue.d.ts +2 -2
- 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 +7 -7
- 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 +5 -5
- 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-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/types.d.ts +123 -0
- package/dist/components/empty/types.d.ts +24 -0
- package/dist/components/form/core/types.d.ts +396 -13
- package/dist/components/form/types.d.ts +27 -0
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/types.d.ts +57 -0
- package/dist/components/input/types.d.ts +21 -0
- 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-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
- 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-root.vue.d.ts +1 -1
- 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/types.d.ts +66 -0
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/types.d.ts +266 -2
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +4 -4
- package/dist/components/month-picker/types.d.ts +141 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +4 -4
- package/dist/components/month-range-picker/types.d.ts +165 -0
- package/dist/components/navigation-menu/types.d.ts +87 -0
- 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-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 +2 -2
- 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/range-calendar-root.vue.d.ts +2 -2
- package/dist/components/range-calendar/types.d.ts +330 -0
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- 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 +1 -1
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- 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/tags-input-root.vue.d.ts +2 -2
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-field/types.d.ts +138 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +6 -6
- package/dist/components/time-picker/types.d.ts +156 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
- 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 +6 -6
- 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/toggle.vue.d.ts +1 -1
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- 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 +4 -4
- package/dist/components/year-range-picker/types.d.ts +168 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +4 -4
- 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 +418 -417
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +877 -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 +9 -1
- 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 +6 -1
- 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/input-otp → constants}/regexp.js +0 -0
|
@@ -7,6 +7,9 @@ import { ToggleGroupItemProps, ToggleGroupRootEmits, ToggleGroupRootProps } from
|
|
|
7
7
|
import { ComputedRef, HTMLAttributes } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/components/toolbar/types.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Props for the toolbar root component.
|
|
12
|
+
*/
|
|
10
13
|
interface ToolbarRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
11
14
|
/** The orientation of the toolbar. */
|
|
12
15
|
orientation?: DataOrientation;
|
|
@@ -15,22 +18,67 @@ interface ToolbarRootProps extends PrimitiveProps, /** @vue-ignore */HTMLAttribu
|
|
|
15
18
|
/** Whether keyboard roving focus loops. */
|
|
16
19
|
loop?: boolean;
|
|
17
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Context for the toolbar root component.
|
|
23
|
+
*/
|
|
18
24
|
interface ToolbarRootContext {
|
|
25
|
+
/**
|
|
26
|
+
* Orientation of the component.
|
|
27
|
+
*/
|
|
19
28
|
orientation: ComputedRef<DataOrientation>;
|
|
29
|
+
/**
|
|
30
|
+
* Reading direction of the component.
|
|
31
|
+
*/
|
|
20
32
|
dir: ComputedRef<Direction>;
|
|
21
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Parameters used to create the toolbar root context.
|
|
36
|
+
*/
|
|
22
37
|
interface ToolbarRootContextParams {
|
|
38
|
+
/**
|
|
39
|
+
* Orientation of the component.
|
|
40
|
+
*/
|
|
23
41
|
orientation: ComputedRef<DataOrientation>;
|
|
42
|
+
/**
|
|
43
|
+
* Reading direction of the component.
|
|
44
|
+
*/
|
|
24
45
|
dir: ComputedRef<Direction | undefined>;
|
|
25
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Available UI slots for the toolbar component.
|
|
49
|
+
*/
|
|
26
50
|
type ToolbarUiSlot = 'root' | 'button' | 'link' | 'separator' | 'toggleGroup' | 'toggleItem';
|
|
51
|
+
/**
|
|
52
|
+
* UI class overrides for the toolbar component.
|
|
53
|
+
*/
|
|
27
54
|
type ToolbarUi = UiClass<ToolbarUiSlot>;
|
|
55
|
+
/**
|
|
56
|
+
* Props for the toolbar button component.
|
|
57
|
+
*/
|
|
28
58
|
interface ToolbarButtonProps extends ButtonProps {}
|
|
59
|
+
/**
|
|
60
|
+
* Emits for the toolbar button component.
|
|
61
|
+
*/
|
|
29
62
|
type ToolbarButtonEmits = ButtonEmits;
|
|
63
|
+
/**
|
|
64
|
+
* Props for the toolbar link component.
|
|
65
|
+
*/
|
|
30
66
|
interface ToolbarLinkProps extends LinkProps {}
|
|
67
|
+
/**
|
|
68
|
+
* Props for the toolbar separator component.
|
|
69
|
+
*/
|
|
31
70
|
interface ToolbarSeparatorProps extends Omit<SeparatorRootProps, 'orientation'> {}
|
|
71
|
+
/**
|
|
72
|
+
* Props for the toolbar toggle group component.
|
|
73
|
+
*/
|
|
32
74
|
interface ToolbarToggleGroupProps<M extends boolean = false, T extends DefinedValue = string> extends ToggleGroupRootProps<M, T> {}
|
|
75
|
+
/**
|
|
76
|
+
* Emits for the toolbar toggle group component.
|
|
77
|
+
*/
|
|
33
78
|
type ToolbarToggleGroupEmits<M extends boolean = false, T extends DefinedValue = string> = ToggleGroupRootEmits<M, T>;
|
|
79
|
+
/**
|
|
80
|
+
* Props for the toolbar toggle item component.
|
|
81
|
+
*/
|
|
34
82
|
interface ToolbarToggleItemProps<T extends DefinedValue = string> extends ToggleGroupItemProps<T> {}
|
|
35
83
|
//#endregion
|
|
36
84
|
export { ToolbarButtonEmits, ToolbarButtonProps, ToolbarLinkProps, ToolbarRootContext, ToolbarRootContextParams, ToolbarRootProps, ToolbarSeparatorProps, ToolbarToggleGroupEmits, ToolbarToggleGroupProps, ToolbarToggleItemProps, ToolbarUi, ToolbarUiSlot };
|
|
@@ -3,6 +3,9 @@ import { PopperAnchorProps, PopperPopupProps, PopperPositionerProps } from "../p
|
|
|
3
3
|
import { Ref, ShallowRef } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Props for the tooltip provider component.
|
|
8
|
+
*/
|
|
6
9
|
interface TooltipProviderProps {
|
|
7
10
|
/**
|
|
8
11
|
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
@@ -47,21 +50,45 @@ interface TooltipProviderProps {
|
|
|
47
50
|
*/
|
|
48
51
|
positionerProps?: TooltipPositionerProps;
|
|
49
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Props for the tooltip root component.
|
|
55
|
+
*/
|
|
50
56
|
interface TooltipRootProps extends TooltipProviderProps {
|
|
51
57
|
/** The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. */
|
|
52
58
|
defaultOpen?: boolean;
|
|
53
59
|
/** The controlled open state of the tooltip. */
|
|
54
60
|
open?: boolean;
|
|
55
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Emits for the tooltip root component.
|
|
64
|
+
*/
|
|
56
65
|
interface TooltipRootEmits {
|
|
57
66
|
/** Event handler called when the open state of the tooltip changes. */
|
|
58
67
|
'update:open': [value: boolean];
|
|
59
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* State values for the tooltip component.
|
|
71
|
+
*/
|
|
60
72
|
type TooltipDataState = 'closed' | 'delayed-open' | 'instant-open';
|
|
73
|
+
/**
|
|
74
|
+
* Props for the tooltip positioner impl component.
|
|
75
|
+
*/
|
|
61
76
|
interface TooltipPositionerImplProps extends PopperPositionerProps {}
|
|
77
|
+
/**
|
|
78
|
+
* Emits for the tooltip positioner impl component.
|
|
79
|
+
*/
|
|
62
80
|
type TooltipPositionerImplEmits = Pick<DismissableLayerEmits, 'escapeKeyDown' | 'pointerDownOutside'>;
|
|
81
|
+
/**
|
|
82
|
+
* Props for the tooltip positioner component.
|
|
83
|
+
*/
|
|
63
84
|
interface TooltipPositionerProps extends TooltipPositionerImplProps, ForceMountProps {}
|
|
85
|
+
/**
|
|
86
|
+
* Emits for the tooltip positioner component.
|
|
87
|
+
*/
|
|
64
88
|
type TooltipPositionerEmits = TooltipPositionerImplEmits;
|
|
89
|
+
/**
|
|
90
|
+
* Props for the tooltip popup component.
|
|
91
|
+
*/
|
|
65
92
|
interface TooltipPopupProps extends PopperPopupProps {
|
|
66
93
|
/**
|
|
67
94
|
* By default, screen readers will announce the content inside the component.
|
|
@@ -4,18 +4,33 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
4
4
|
import { VirtualizerItemProps, VirtualizerRootProps } from "../virtualizer/types.js";
|
|
5
5
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
6
6
|
//#region src/components/tree/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Type information for the tree item base data component.
|
|
9
|
+
*/
|
|
7
10
|
interface TreeItemBaseData {
|
|
8
11
|
/** Value given to this item */
|
|
9
12
|
value: string;
|
|
10
13
|
/** When `true`, prevents the user from interacting with the item. */
|
|
11
14
|
disabled?: boolean;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Type information for the tree item data component.
|
|
18
|
+
*/
|
|
13
19
|
type TreeItemData<T extends TreeItemBaseData = TreeItemBaseData> = T & {
|
|
14
20
|
/** List of children items */children?: TreeItemData<T>[];
|
|
15
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Type information for the tree select behavior component.
|
|
24
|
+
*/
|
|
16
25
|
type TreeSelectBehavior = 'toggle' | 'replace';
|
|
26
|
+
/**
|
|
27
|
+
* Type information for the tree toggle behavior component.
|
|
28
|
+
*/
|
|
17
29
|
type TreeToggleBehavior = 'single' | 'multiple';
|
|
18
30
|
type IsMultiple<U extends MaybeArray<string> | undefined, M extends boolean> = U extends string ? false : M extends true ? true : false;
|
|
31
|
+
/**
|
|
32
|
+
* Props for the tree root component.
|
|
33
|
+
*/
|
|
19
34
|
interface TreeRootProps<T extends TreeItemData = TreeItemData, U extends MaybeArray<string> | undefined = MaybeArray<string> | undefined, M extends boolean = boolean> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'onSelect' | 'onToggle'> {
|
|
20
35
|
/** The controlled value of the tree. Can be bound-with with `v-model`. */
|
|
21
36
|
modelValue?: U;
|
|
@@ -54,26 +69,71 @@ interface TreeRootProps<T extends TreeItemData = TreeItemData, U extends MaybeAr
|
|
|
54
69
|
/** When `true`, parent can be selected. */
|
|
55
70
|
allowParentSelect?: boolean;
|
|
56
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Emits for the tree root component.
|
|
74
|
+
*/
|
|
57
75
|
type TreeRootEmits<M extends boolean | undefined> = {
|
|
76
|
+
/**
|
|
77
|
+
* Emitted when the model value changes.
|
|
78
|
+
*/
|
|
58
79
|
'update:modelValue': [value: M extends true ? string[] : string];
|
|
80
|
+
/**
|
|
81
|
+
* Emitted when the expanded state changes.
|
|
82
|
+
*/
|
|
59
83
|
'update:expanded': [value: string[]];
|
|
60
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* Type information for the flattened item component.
|
|
87
|
+
*/
|
|
61
88
|
type FlattenedItem<T extends TreeItemData> = {
|
|
89
|
+
/**
|
|
90
|
+
* Id.
|
|
91
|
+
*/
|
|
62
92
|
_id: string;
|
|
93
|
+
/**
|
|
94
|
+
* Index of the current item.
|
|
95
|
+
*/
|
|
63
96
|
index: number;
|
|
97
|
+
/**
|
|
98
|
+
* Value associated with the current item.
|
|
99
|
+
*/
|
|
64
100
|
value: string;
|
|
101
|
+
/**
|
|
102
|
+
* Data.
|
|
103
|
+
*/
|
|
65
104
|
data: T;
|
|
105
|
+
/**
|
|
106
|
+
* Level.
|
|
107
|
+
*/
|
|
66
108
|
level: number;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the component has children.
|
|
111
|
+
*/
|
|
67
112
|
hasChildren: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Parent.
|
|
115
|
+
*/
|
|
68
116
|
parent?: T;
|
|
117
|
+
/**
|
|
118
|
+
* Bind.
|
|
119
|
+
*/
|
|
69
120
|
bind: {
|
|
70
121
|
data: T;
|
|
71
122
|
level: number;
|
|
72
123
|
[key: string]: any;
|
|
73
124
|
};
|
|
74
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Props for the tree item component.
|
|
128
|
+
*/
|
|
75
129
|
interface TreeItemProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'onSelect' | 'onToggle'> {
|
|
130
|
+
/**
|
|
131
|
+
* Value associated with the current item.
|
|
132
|
+
*/
|
|
76
133
|
value: string;
|
|
134
|
+
/**
|
|
135
|
+
* Level.
|
|
136
|
+
*/
|
|
77
137
|
level: number;
|
|
78
138
|
/** When `true`, prevents the user from selecting or toggling the item. */
|
|
79
139
|
disabled?: boolean;
|
|
@@ -82,13 +142,28 @@ interface TreeItemProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttri
|
|
|
82
142
|
/** When `true`, prevents the user from toggling the item. */
|
|
83
143
|
disabledToggle?: boolean;
|
|
84
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Emits for the tree item component.
|
|
147
|
+
*/
|
|
85
148
|
type TreeItemEmits = {
|
|
86
149
|
/** Event handler called when selecting item. */select: [event: TreeSelectEvent<string>]; /** Event handler called when toggling item. */
|
|
87
150
|
toggle: [event: TreeToggleEvent<string>];
|
|
88
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* Props for the tree virtualizer root component.
|
|
154
|
+
*/
|
|
89
155
|
interface TreeVirtualizerRootProps<T extends TreeItemData = TreeItemData, U extends MaybeArray<string> | undefined = MaybeArray<string> | undefined, M extends boolean = boolean> extends TreeRootProps<T, U, M>, Omit<VirtualizerRootProps<FlattenedItem<T>>, 'dir' | 'items'> {}
|
|
156
|
+
/**
|
|
157
|
+
* Emits for the tree virtualizer root component.
|
|
158
|
+
*/
|
|
90
159
|
type TreeVirtualizerRootEmits<M extends boolean | undefined> = TreeRootEmits<M>;
|
|
160
|
+
/**
|
|
161
|
+
* Props for the tree virtualizer item component.
|
|
162
|
+
*/
|
|
91
163
|
interface TreeVirtualizerItemProps extends TreeItemProps, VirtualizerItemProps {}
|
|
164
|
+
/**
|
|
165
|
+
* Emits for the tree virtualizer item component.
|
|
166
|
+
*/
|
|
92
167
|
type TreeVirtualizerItemEmits = TreeItemEmits;
|
|
93
168
|
//#endregion
|
|
94
169
|
export { FlattenedItem, TreeItemBaseData, TreeItemData, TreeItemEmits, TreeItemProps, TreeRootEmits, TreeRootProps, TreeSelectBehavior, TreeToggleBehavior, TreeVirtualizerItemEmits, TreeVirtualizerItemProps, TreeVirtualizerRootEmits, TreeVirtualizerRootProps };
|
|
@@ -16,8 +16,8 @@ declare const __VLS_base: _$vue.DefineComponent<TreeMenuRootProps, {}, {}, {}, {
|
|
|
16
16
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
defaultValue: string;
|
|
19
|
-
defaultExpanded: string[];
|
|
20
19
|
collapsed: boolean;
|
|
20
|
+
defaultExpanded: string[];
|
|
21
21
|
defaultCollapsed: boolean;
|
|
22
22
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,7 +3,13 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
3
3
|
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-menu/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* State values for the tree menu component.
|
|
8
|
+
*/
|
|
6
9
|
type TreeMenuCollapsedState = 'expanded' | 'collapsed';
|
|
10
|
+
/**
|
|
11
|
+
* Props for the tree menu root component.
|
|
12
|
+
*/
|
|
7
13
|
interface TreeMenuRootProps {
|
|
8
14
|
/**
|
|
9
15
|
* the active value of the tree menu. can be bound-with with `v-model`.
|
|
@@ -32,14 +38,38 @@ interface TreeMenuRootProps {
|
|
|
32
38
|
*/
|
|
33
39
|
defaultCollapsed?: boolean;
|
|
34
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Emits for the tree menu root component.
|
|
43
|
+
*/
|
|
35
44
|
type TreeMenuRootEmits = {
|
|
45
|
+
/**
|
|
46
|
+
* Emitted when the model value changes.
|
|
47
|
+
*/
|
|
36
48
|
'update:modelValue': [value: string];
|
|
49
|
+
/**
|
|
50
|
+
* Emitted when the expanded state changes.
|
|
51
|
+
*/
|
|
37
52
|
'update:expanded': [value: string[]];
|
|
53
|
+
/**
|
|
54
|
+
* Emitted when the collapsed state changes.
|
|
55
|
+
*/
|
|
38
56
|
'update:collapsed': [value: boolean];
|
|
39
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Props for the tree menu group root component.
|
|
60
|
+
*/
|
|
40
61
|
interface TreeMenuGroupRootProps extends /** @vue-ignore */HTMLAttributes {}
|
|
62
|
+
/**
|
|
63
|
+
* Props for the tree menu group component.
|
|
64
|
+
*/
|
|
41
65
|
interface TreeMenuGroupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
66
|
+
/**
|
|
67
|
+
* Props for the tree menu group label component.
|
|
68
|
+
*/
|
|
42
69
|
interface TreeMenuGroupLabelProps extends /** @vue-ignore */HTMLAttributes {}
|
|
70
|
+
/**
|
|
71
|
+
* Props for the tree menu base item component.
|
|
72
|
+
*/
|
|
43
73
|
interface TreeMenuBaseItemProps {
|
|
44
74
|
/**
|
|
45
75
|
* The unique value of the item.
|
|
@@ -50,7 +80,13 @@ interface TreeMenuBaseItemProps {
|
|
|
50
80
|
*/
|
|
51
81
|
disabled?: boolean;
|
|
52
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Props for the tree menu item component.
|
|
85
|
+
*/
|
|
53
86
|
interface TreeMenuItemProps extends TreeMenuBaseItemProps, PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
87
|
+
/**
|
|
88
|
+
* Props for the tree menu button component.
|
|
89
|
+
*/
|
|
54
90
|
interface TreeMenuButtonProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
55
91
|
/**
|
|
56
92
|
* When `true`, prevents the user from activating the item.
|
|
@@ -59,19 +95,43 @@ interface TreeMenuButtonProps extends PrimitiveProps, /** @vue-ignore */HTMLAttr
|
|
|
59
95
|
*/
|
|
60
96
|
disabledActive?: boolean;
|
|
61
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Props for the tree menu collapsible component.
|
|
100
|
+
*/
|
|
62
101
|
interface TreeMenuCollapsibleProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
63
102
|
/**
|
|
64
103
|
* When `true`, prevents the user from activating the collapsible trigger.
|
|
65
104
|
*/
|
|
66
105
|
disabledCollapsible?: boolean;
|
|
67
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Props for the tree menu sub component.
|
|
109
|
+
*/
|
|
68
110
|
interface TreeMenuSubProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
111
|
+
/**
|
|
112
|
+
* Parameters used to create the tree menu root context.
|
|
113
|
+
*/
|
|
69
114
|
interface TreeMenuRootContextParams {
|
|
115
|
+
/**
|
|
116
|
+
* Current model value.
|
|
117
|
+
*/
|
|
70
118
|
modelValue: ShallowRef<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Expanded used by the component context.
|
|
121
|
+
*/
|
|
71
122
|
expanded: ShallowRef<string[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the component is collapsed.
|
|
125
|
+
*/
|
|
72
126
|
collapsed: ShallowRef<boolean>;
|
|
73
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Available UI slots for the tree menu component.
|
|
130
|
+
*/
|
|
74
131
|
type TreeMenuUiSlot = 'root' | 'groupRoot' | 'groupLabel' | 'group' | 'item' | 'button' | 'sub' | 'subItem' | 'subButton' | 'collapsibleRoot' | 'collapsibleTrigger' | 'collapsibleContent';
|
|
132
|
+
/**
|
|
133
|
+
* UI class overrides for the tree menu component.
|
|
134
|
+
*/
|
|
75
135
|
type TreeMenuUi = UiClass<TreeMenuUiSlot>;
|
|
76
136
|
//#endregion
|
|
77
137
|
export { TreeMenuBaseItemProps, TreeMenuButtonProps, TreeMenuCollapsedState, TreeMenuCollapsibleProps, TreeMenuGroupLabelProps, TreeMenuGroupProps, TreeMenuGroupRootProps, TreeMenuItemProps, TreeMenuRootContextParams, TreeMenuRootEmits, TreeMenuRootProps, TreeMenuSubProps, TreeMenuUi, TreeMenuUiSlot };
|
|
@@ -3,22 +3,55 @@ import { ComputedRef, HTMLAttributes, Ref } from "vue";
|
|
|
3
3
|
import { PartialKeys, VirtualItem, Virtualizer, VirtualizerOptions } from "@tanstack/vue-virtual";
|
|
4
4
|
|
|
5
5
|
//#region src/components/virtualizer/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Type information for the virtualizer options component.
|
|
8
|
+
*/
|
|
6
9
|
interface VirtualizerOptions$1 extends Omit<PartialKeys<VirtualizerOptions<HTMLElement, Element>, 'observeElementRect' | 'observeElementOffset' | 'scrollToFn' | 'estimateSize'>, 'count' | 'getScrollElement'> {}
|
|
10
|
+
/**
|
|
11
|
+
* Props for the virtualizer root component.
|
|
12
|
+
*/
|
|
7
13
|
interface VirtualizerRootProps<T extends Record<string, any> = Record<string, any>> extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
8
14
|
/**
|
|
9
15
|
* The height of the virtualizer root
|
|
10
16
|
*/
|
|
11
17
|
height: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* Items rendered by the component.
|
|
20
|
+
*/
|
|
12
21
|
items: T[];
|
|
22
|
+
/**
|
|
23
|
+
* Options.
|
|
24
|
+
*/
|
|
13
25
|
options?: VirtualizerOptions$1;
|
|
26
|
+
/**
|
|
27
|
+
* Whether dynamic.
|
|
28
|
+
*/
|
|
14
29
|
dynamic?: boolean;
|
|
15
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Props for the virtualizer dynamic content component.
|
|
33
|
+
*/
|
|
16
34
|
interface VirtualizerDynamicContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
35
|
+
/**
|
|
36
|
+
* Props for the virtualizer content component.
|
|
37
|
+
*/
|
|
17
38
|
interface VirtualizerContentProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
39
|
+
/**
|
|
40
|
+
* Props forwarded to the dynamic content element.
|
|
41
|
+
*/
|
|
18
42
|
dynamicContentProps?: VirtualizerDynamicContentProps;
|
|
19
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Props for the virtualizer item component.
|
|
46
|
+
*/
|
|
20
47
|
interface VirtualizerItemProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
48
|
+
/**
|
|
49
|
+
* Data.
|
|
50
|
+
*/
|
|
21
51
|
data: VirtualItem;
|
|
52
|
+
/**
|
|
53
|
+
* Whether custom style.
|
|
54
|
+
*/
|
|
22
55
|
customStyle?: boolean;
|
|
23
56
|
}
|
|
24
57
|
//#endregion
|
|
@@ -2,16 +2,46 @@ import { PrimitiveProps } from "../primitive/types.js";
|
|
|
2
2
|
import { HTMLAttributes } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/visually-hidden/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Type information for the visually hidden feature component.
|
|
7
|
+
*/
|
|
5
8
|
type VisuallyHiddenFeature = 'focusable' | 'fully-hidden';
|
|
9
|
+
/**
|
|
10
|
+
* Props for the visually hidden component.
|
|
11
|
+
*/
|
|
6
12
|
interface VisuallyHiddenProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
13
|
+
/**
|
|
14
|
+
* Feature.
|
|
15
|
+
*/
|
|
7
16
|
feature?: VisuallyHiddenFeature;
|
|
8
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Props for the visually hidden input component.
|
|
20
|
+
*/
|
|
9
21
|
interface VisuallyHiddenInputProps {
|
|
22
|
+
/**
|
|
23
|
+
* Name.
|
|
24
|
+
*/
|
|
10
25
|
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Value associated with the current item.
|
|
28
|
+
*/
|
|
11
29
|
value: any;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the item is checked.
|
|
32
|
+
*/
|
|
12
33
|
checked?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the value is required.
|
|
36
|
+
*/
|
|
13
37
|
required?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the component is disabled.
|
|
40
|
+
*/
|
|
14
41
|
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Feature.
|
|
44
|
+
*/
|
|
15
45
|
feature?: VisuallyHiddenFeature;
|
|
16
46
|
}
|
|
17
47
|
//#endregion
|
|
@@ -8,56 +8,200 @@ import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
|
8
8
|
import { DateValue } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/components/year-picker/types.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Props for the year picker root component.
|
|
13
|
+
*/
|
|
11
14
|
interface YearPickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
15
|
+
/**
|
|
16
|
+
* Default value.
|
|
17
|
+
*/
|
|
12
18
|
defaultValue?: DateValue;
|
|
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?: DateValue;
|
|
31
|
+
/**
|
|
32
|
+
* Min value.
|
|
33
|
+
*/
|
|
16
34
|
minValue?: DateValue;
|
|
35
|
+
/**
|
|
36
|
+
* Max value.
|
|
37
|
+
*/
|
|
17
38
|
maxValue?: DateValue;
|
|
39
|
+
/**
|
|
40
|
+
* Locale.
|
|
41
|
+
*/
|
|
18
42
|
locale?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the component is disabled.
|
|
45
|
+
*/
|
|
19
46
|
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the component is readonly.
|
|
49
|
+
*/
|
|
20
50
|
readonly?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Id.
|
|
53
|
+
*/
|
|
21
54
|
id?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Reading direction of the component.
|
|
57
|
+
*/
|
|
22
58
|
dir?: Direction;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component is open by default.
|
|
61
|
+
*/
|
|
23
62
|
defaultOpen?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the component is open.
|
|
65
|
+
*/
|
|
24
66
|
open?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the popup is modal.
|
|
69
|
+
*/
|
|
25
70
|
modal?: boolean;
|
|
26
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Emits for the year picker root component.
|
|
74
|
+
*/
|
|
27
75
|
type YearPickerRootEmits = {
|
|
76
|
+
/**
|
|
77
|
+
* Emitted when the model value changes.
|
|
78
|
+
*/
|
|
28
79
|
'update:modelValue': [date: DateValue | undefined];
|
|
80
|
+
/**
|
|
81
|
+
* Emitted when the placeholder value changes.
|
|
82
|
+
*/
|
|
29
83
|
'update:placeholder': [date: DateValue];
|
|
84
|
+
/**
|
|
85
|
+
* Emitted when the open state changes.
|
|
86
|
+
*/
|
|
30
87
|
'update:open': [open: boolean];
|
|
31
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Props for the year picker trigger component.
|
|
91
|
+
*/
|
|
32
92
|
interface YearPickerTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
93
|
+
/**
|
|
94
|
+
* Props for the year picker popup component.
|
|
95
|
+
*/
|
|
33
96
|
interface YearPickerPopupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
97
|
+
/**
|
|
98
|
+
* Context for the year picker root component.
|
|
99
|
+
*/
|
|
34
100
|
interface YearPickerRootContext extends PropsToContext<YearPickerRootProps, 'disabled' | 'readonly'> {
|
|
101
|
+
/**
|
|
102
|
+
* Locale used by the component context.
|
|
103
|
+
*/
|
|
35
104
|
locale: ComputedRef<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Reading direction of the component.
|
|
107
|
+
*/
|
|
36
108
|
dir: ComputedRef<Direction>;
|
|
109
|
+
/**
|
|
110
|
+
* Current model value.
|
|
111
|
+
*/
|
|
37
112
|
modelValue: ShallowRef<DateValue | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* Placeholder used by the component context.
|
|
115
|
+
*/
|
|
38
116
|
placeholder: ShallowRef<DateValue>;
|
|
117
|
+
/**
|
|
118
|
+
* Whether the current value is invalid.
|
|
119
|
+
*/
|
|
39
120
|
isInvalid: ComputedRef<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
* Formatter used by the component context.
|
|
123
|
+
*/
|
|
40
124
|
formatter: Formatter;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the component is open.
|
|
127
|
+
*/
|
|
41
128
|
open: ShallowRef<boolean | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* Popup id used by the component context.
|
|
131
|
+
*/
|
|
42
132
|
popupId: string;
|
|
133
|
+
/**
|
|
134
|
+
* Display value used by the component context.
|
|
135
|
+
*/
|
|
43
136
|
displayValue: ComputedRef<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Heading value used by the component context.
|
|
139
|
+
*/
|
|
44
140
|
headingValue: ComputedRef<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Focused year used by the component context.
|
|
143
|
+
*/
|
|
45
144
|
focusedYear: ShallowRef<DateValue>;
|
|
145
|
+
/**
|
|
146
|
+
* Year grid used by the component context.
|
|
147
|
+
*/
|
|
46
148
|
yearGrid: ComputedRef<Grid<DateValue>>;
|
|
149
|
+
/**
|
|
150
|
+
* Min value used by the component context.
|
|
151
|
+
*/
|
|
47
152
|
minValue: ComputedRef<DateValue | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* Max value used by the component context.
|
|
155
|
+
*/
|
|
48
156
|
maxValue: ComputedRef<DateValue | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* Callback invoked when the year changes.
|
|
159
|
+
*/
|
|
49
160
|
onYearChange: (date: DateValue) => void;
|
|
161
|
+
/**
|
|
162
|
+
* Callback invoked when the placeholder changes.
|
|
163
|
+
*/
|
|
50
164
|
onPlaceholderChange: (date: DateValue) => void;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the year is disabled.
|
|
167
|
+
*/
|
|
51
168
|
isYearDisabled: (date: DateValue) => boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Whether the year is selected.
|
|
171
|
+
*/
|
|
52
172
|
isYearSelected: (date: DateValue) => boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Set open used by the component context.
|
|
175
|
+
*/
|
|
53
176
|
setOpen: (value: boolean) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Set focused year used by the component context.
|
|
179
|
+
*/
|
|
54
180
|
setFocusedYear: (date: DateValue) => void;
|
|
181
|
+
/**
|
|
182
|
+
* Prev page used by the component context.
|
|
183
|
+
*/
|
|
55
184
|
prevPage: () => void;
|
|
185
|
+
/**
|
|
186
|
+
* Next page used by the component context.
|
|
187
|
+
*/
|
|
56
188
|
nextPage: () => void;
|
|
189
|
+
/**
|
|
190
|
+
* Whether the previous button is disabled.
|
|
191
|
+
*/
|
|
57
192
|
isPrevButtonDisabled: () => boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the next button is disabled.
|
|
195
|
+
*/
|
|
58
196
|
isNextButtonDisabled: () => boolean;
|
|
59
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Available UI slots for the year picker component.
|
|
200
|
+
*/
|
|
60
201
|
type YearPickerUiSlot = 'root' | 'trigger' | 'popup' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'cellTrigger';
|
|
202
|
+
/**
|
|
203
|
+
* UI class overrides for the year picker component.
|
|
204
|
+
*/
|
|
61
205
|
type YearPickerUi = UiClass<YearPickerUiSlot>;
|
|
62
206
|
//#endregion
|
|
63
207
|
export { YearPickerPopupProps, YearPickerRootContext, YearPickerRootEmits, YearPickerRootProps, YearPickerTriggerProps, YearPickerUi, YearPickerUiSlot };
|