vft 0.0.151 → 0.0.153
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/es/app-components/button/button-custom.d.ts +1 -1
- package/es/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/es/app-components/hooks/use-id.d.ts +2 -1
- package/es/components/affix/affix.d.ts +2 -2
- package/es/components/affix/affix.vue.d.ts +2 -2
- package/es/components/affix/index.d.ts +5 -5
- package/es/components/autocomplete/autocomplete.vue.d.ts +23 -23
- package/es/components/autocomplete/index.d.ts +68 -68
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +3 -3
- package/es/components/button/use-button.d.ts +3 -3
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/carousel/use-carousel.d.ts +2 -2
- package/es/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox.vue.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +58 -58
- package/es/components/color-picker/color-picker.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +1 -1
- package/es/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +4 -20
- package/es/components/date-picker/index.d.ts +8 -40
- package/es/components/date-picker/props/date-picker.d.ts +1 -9
- package/es/components/date-picker/props/shared.d.ts +1 -1
- package/es/components/date-picker/utils.d.ts +1 -1
- package/es/components/dialog/dialog.vue.d.ts +3 -3
- package/es/components/dialog/index.d.ts +8 -8
- package/es/components/drawer/drawer.vue.d.ts +3 -3
- package/es/components/drawer/index.d.ts +8 -8
- package/es/components/dropdown/dropdown.vue.d.ts +3 -3
- package/es/components/dropdown/index.d.ts +49 -49
- package/es/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/es/components/index.js +113 -113
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/input.vue.d.ts +4 -4
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/input-number.vue.d.ts +3 -3
- package/es/components/loading/index.d.ts +17 -9
- package/es/components/loading/loading.d.ts +17 -9
- package/es/components/modal/index.d.ts +11 -11
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/popconfirm/index.d.ts +11 -11
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/index.d.ts +8 -8
- package/es/components/popper/composables/use-content-dom.d.ts +3 -1
- package/es/components/popper/composables/use-content.d.ts +70 -6
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/popper/popper.vue.d.ts +2 -1
- package/es/components/popper/utils.d.ts +45 -2
- package/es/components/progress/index.d.ts +4 -4
- package/es/components/radio/index.d.ts +30 -30
- package/es/components/radio/radio-group.vue.d.ts +1 -1
- package/es/components/radio/radio.vue.d.ts +1 -1
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/search/index.d.ts +8 -8
- package/es/components/search/search.vue.d.ts +2 -2
- package/es/components/select/defaults.d.ts +4 -3
- package/es/components/select/index.d.ts +66 -66
- package/es/components/select/select.vue.d.ts +33 -33
- package/es/components/select/useSelect.d.ts +19 -19
- package/es/components/side-menu/index.d.ts +8 -4
- package/es/components/side-menu/side-menu.vue.d.ts +2 -2
- package/es/components/slider/composables/use-slide.d.ts +6 -6
- package/es/components/slider/index.d.ts +3 -3
- package/es/components/slider/slider.d.ts +3 -3
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/space/index.d.ts +5 -2
- package/es/components/space/space.d.ts +5 -2
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/types.d.ts +176 -0
- package/es/components/switch/index.d.ts +3 -3
- package/es/components/switch/switch.vue.d.ts +3 -3
- package/es/components/table/index.d.ts +41 -41
- package/es/components/table/table.vue.d.ts +2 -2
- package/es/components/table/use/use-columns.d.ts +801 -3
- package/es/components/time-picker/common/picker.vue.d.ts +9 -24
- package/es/components/time-picker/common/props.d.ts +2 -9
- package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +8 -40
- package/es/components/time-picker/time-picker.d.ts +4 -20
- package/es/components/time-picker/utils.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +4 -4
- package/es/components/tooltip/index.d.ts +16 -16
- package/es/components/tooltip/utils.d.ts +1 -1
- package/es/components/tree/index.d.ts +16 -16
- package/es/components/upload/index.d.ts +12 -12
- package/es/components/upload/use-handlers.d.ts +21 -1
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/hooks/use-id/index.d.ts +2 -1
- package/es/hooks/use-model-toggle/index.d.ts +2 -2
- package/es/hooks/use-popper/index.d.ts +70 -7
- package/es/hooks/use-same-target/index.d.ts +3 -3
- package/es/hooks/use-z-index/index.d.ts +1 -1
- package/es/index.js +113 -113
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/app-components/button/button-custom.d.ts +1 -1
- package/lib/app-components/form/hooks/use-form-common-props.d.ts +5 -4
- package/lib/app-components/hooks/use-id.d.ts +2 -1
- package/lib/components/affix/affix.d.ts +2 -2
- package/lib/components/affix/affix.vue.d.ts +2 -2
- package/lib/components/affix/index.d.ts +5 -5
- package/lib/components/autocomplete/autocomplete.vue.d.ts +23 -23
- package/lib/components/autocomplete/index.d.ts +68 -68
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/carousel/use-carousel.d.ts +2 -2
- package/lib/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +58 -58
- package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +1 -1
- package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -2
- package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +4 -20
- package/lib/components/date-picker/index.d.ts +8 -40
- package/lib/components/date-picker/props/date-picker.d.ts +1 -9
- package/lib/components/date-picker/props/shared.d.ts +1 -1
- package/lib/components/date-picker/utils.d.ts +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +3 -3
- package/lib/components/dialog/index.d.ts +8 -8
- package/lib/components/drawer/drawer.vue.d.ts +3 -3
- package/lib/components/drawer/index.d.ts +8 -8
- package/lib/components/dropdown/dropdown.vue.d.ts +3 -3
- package/lib/components/dropdown/index.d.ts +49 -49
- package/lib/components/form/hooks/use-form-common-props.d.ts +6 -4
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/input.vue.d.ts +4 -4
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/input-number.vue.d.ts +3 -3
- package/lib/components/loading/index.d.ts +17 -9
- package/lib/components/loading/loading.d.ts +17 -9
- package/lib/components/modal/index.d.ts +11 -11
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -11
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/index.d.ts +8 -8
- package/lib/components/popper/composables/use-content-dom.d.ts +3 -1
- package/lib/components/popper/composables/use-content.d.ts +70 -6
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/popper/popper.vue.d.ts +2 -1
- package/lib/components/popper/utils.d.ts +45 -2
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/radio/index.d.ts +30 -30
- package/lib/components/radio/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +1 -1
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/search/index.d.ts +8 -8
- package/lib/components/search/search.vue.d.ts +2 -2
- package/lib/components/select/defaults.d.ts +4 -3
- package/lib/components/select/index.d.ts +66 -66
- package/lib/components/select/select.vue.d.ts +33 -33
- package/lib/components/select/useSelect.d.ts +19 -19
- package/lib/components/side-menu/index.d.ts +8 -4
- package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
- package/lib/components/slider/composables/use-slide.d.ts +6 -6
- package/lib/components/slider/index.d.ts +3 -3
- package/lib/components/slider/slider.d.ts +3 -3
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/space/index.d.ts +5 -2
- package/lib/components/space/space.d.ts +5 -2
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/types.d.ts +176 -0
- package/lib/components/switch/index.d.ts +3 -3
- package/lib/components/switch/switch.vue.d.ts +3 -3
- package/lib/components/table/index.d.ts +41 -41
- package/lib/components/table/table.vue.d.ts +2 -2
- package/lib/components/table/use/use-columns.d.ts +801 -3
- package/lib/components/time-picker/common/picker.vue.d.ts +9 -24
- package/lib/components/time-picker/common/props.d.ts +2 -9
- package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +8 -40
- package/lib/components/time-picker/time-picker.d.ts +4 -20
- package/lib/components/time-picker/utils.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +4 -4
- package/lib/components/tooltip/index.d.ts +16 -16
- package/lib/components/tooltip/utils.d.ts +1 -1
- package/lib/components/tree/index.d.ts +16 -16
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/components/upload/use-handlers.d.ts +21 -1
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/hooks/use-id/index.d.ts +2 -1
- package/lib/hooks/use-model-toggle/index.d.ts +2 -2
- package/lib/hooks/use-popper/index.d.ts +70 -7
- package/lib/hooks/use-same-target/index.d.ts +3 -3
- package/lib/hooks/use-z-index/index.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/web-types.json +1 -1
|
@@ -2,7 +2,27 @@ import type { ShallowRef } from 'vue';
|
|
|
2
2
|
import type { UploadContentInstance, UploadFile, UploadProps, UploadRawFile, UploadStatus } from './types';
|
|
3
3
|
export declare const useHandlers: (props: UploadProps, uploadRef: ShallowRef<UploadContentInstance | undefined>) => {
|
|
4
4
|
/** @description two-way binding ref from props `fileList` */
|
|
5
|
-
uploadFiles:
|
|
5
|
+
uploadFiles: globalThis.Ref<{
|
|
6
|
+
name: string;
|
|
7
|
+
percentage?: number | undefined;
|
|
8
|
+
status: UploadStatus;
|
|
9
|
+
size?: number | undefined;
|
|
10
|
+
response?: unknown;
|
|
11
|
+
uid: number;
|
|
12
|
+
url?: string | undefined;
|
|
13
|
+
raw?: {
|
|
14
|
+
uid: number;
|
|
15
|
+
readonly lastModified: number;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly webkitRelativePath: string;
|
|
18
|
+
readonly size: number;
|
|
19
|
+
readonly type: string;
|
|
20
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
21
|
+
slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
|
|
22
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
23
|
+
text: () => Promise<string>;
|
|
24
|
+
} | undefined;
|
|
25
|
+
}[]>;
|
|
6
26
|
abort: (file: UploadFile) => void;
|
|
7
27
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
8
28
|
handleError: (err: import("./ajax").UploadAjaxError, rawFile: UploadRawFile) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useCache: () => globalThis.ComputedRef<any
|
|
1
|
+
export declare const useCache: () => globalThis.ComputedRef<(((_: any, __: any, ___: any) => {}) & import("lodash").MemoizedFunction) | import("memoize-one").MemoizedFn<(_: any, __: any, ___: any) => {}>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MaybeRef } from '@vueuse/core';
|
|
1
2
|
import type { InjectionKey, Ref } from 'vue';
|
|
2
3
|
export type ElIdInjectionContext = {
|
|
3
4
|
prefix: number;
|
|
@@ -5,4 +6,4 @@ export type ElIdInjectionContext = {
|
|
|
5
6
|
};
|
|
6
7
|
export declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>;
|
|
7
8
|
export declare const useIdInjection: () => ElIdInjectionContext;
|
|
8
|
-
export declare const useId: (deterministicId?:
|
|
9
|
+
export declare const useId: (deterministicId?: MaybeRef<string>) => Ref<string>;
|
|
@@ -4,7 +4,7 @@ export declare const createModelToggleComposable: <T extends string>(name: T) =>
|
|
|
4
4
|
hide: (event?: Event) => void;
|
|
5
5
|
show: (event?: Event) => void;
|
|
6
6
|
toggle: () => void;
|
|
7
|
-
hasUpdateHandler: globalThis.ComputedRef<
|
|
7
|
+
hasUpdateHandler: globalThis.ComputedRef<boolean>;
|
|
8
8
|
};
|
|
9
9
|
useModelToggleEmits: `update:${T}`[];
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ declare const useModelToggle: ({ indicator, toggleReason, shouldHideWhenRouteCha
|
|
|
12
12
|
hide: (event?: Event) => void;
|
|
13
13
|
show: (event?: Event) => void;
|
|
14
14
|
toggle: () => void;
|
|
15
|
-
hasUpdateHandler: globalThis.ComputedRef<
|
|
15
|
+
hasUpdateHandler: globalThis.ComputedRef<boolean>;
|
|
16
16
|
}, useModelToggleEmits: "update:modelValue"[];
|
|
17
17
|
export { useModelToggle, useModelToggleEmits };
|
|
18
18
|
export type ModelToggleParams = {
|
|
@@ -1,15 +1,78 @@
|
|
|
1
|
-
import type { Options, VirtualElement } from '@popperjs/core';
|
|
1
|
+
import type { Instance, Modifier, Options, State, VirtualElement } from '@popperjs/core';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
type ElementType = HTMLElement | undefined;
|
|
4
4
|
type ReferenceElement = ElementType | VirtualElement;
|
|
5
5
|
export type PartialOptions = Partial<Options>;
|
|
6
6
|
export declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, popperElementRef: Ref<ElementType>, opts?: Ref<PartialOptions> | PartialOptions) => {
|
|
7
|
-
state: globalThis.ComputedRef<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
state: globalThis.ComputedRef<{
|
|
8
|
+
elements?: {
|
|
9
|
+
reference: Element | VirtualElement;
|
|
10
|
+
popper: HTMLElement;
|
|
11
|
+
arrow?: HTMLElement | undefined;
|
|
12
|
+
} | undefined;
|
|
13
|
+
options?: import("@popperjs/core").OptionsGeneric<any> | undefined;
|
|
14
|
+
placement?: import("@popperjs/core").Placement | undefined;
|
|
15
|
+
strategy?: import("@popperjs/core").PositioningStrategy | undefined;
|
|
16
|
+
orderedModifiers?: Modifier<any, any>[] | undefined;
|
|
17
|
+
rects?: import("@popperjs/core").StateRects | undefined;
|
|
18
|
+
scrollParents?: {
|
|
19
|
+
reference: (Element | import("@popperjs/core").Window | import("@popperjs/core").VisualViewport)[];
|
|
20
|
+
popper: (Element | import("@popperjs/core").Window | import("@popperjs/core").VisualViewport)[];
|
|
21
|
+
} | undefined;
|
|
22
|
+
styles?: {
|
|
23
|
+
[key: string]: Partial<CSSStyleDeclaration>;
|
|
24
|
+
} | undefined;
|
|
25
|
+
attributes?: {
|
|
26
|
+
[key: string]: {
|
|
27
|
+
[key: string]: string | boolean;
|
|
28
|
+
};
|
|
29
|
+
} | undefined;
|
|
30
|
+
modifiersData?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
arrow?: {
|
|
33
|
+
x?: number | undefined;
|
|
34
|
+
y?: number | undefined;
|
|
35
|
+
centerOffset: number;
|
|
36
|
+
} | undefined;
|
|
37
|
+
hide?: {
|
|
38
|
+
isReferenceHidden: boolean;
|
|
39
|
+
hasPopperEscaped: boolean;
|
|
40
|
+
referenceClippingOffsets: import("@popperjs/core").SideObject;
|
|
41
|
+
popperEscapeOffsets: import("@popperjs/core").SideObject;
|
|
42
|
+
} | undefined;
|
|
43
|
+
offset?: {
|
|
44
|
+
auto?: import("@popperjs/core").Offsets | undefined;
|
|
45
|
+
left?: import("@popperjs/core").Offsets | undefined;
|
|
46
|
+
right?: import("@popperjs/core").Offsets | undefined;
|
|
47
|
+
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
48
|
+
top?: import("@popperjs/core").Offsets | undefined;
|
|
49
|
+
"auto-start"?: import("@popperjs/core").Offsets | undefined;
|
|
50
|
+
"auto-end"?: import("@popperjs/core").Offsets | undefined;
|
|
51
|
+
"top-start"?: import("@popperjs/core").Offsets | undefined;
|
|
52
|
+
"top-end"?: import("@popperjs/core").Offsets | undefined;
|
|
53
|
+
"bottom-start"?: import("@popperjs/core").Offsets | undefined;
|
|
54
|
+
"bottom-end"?: import("@popperjs/core").Offsets | undefined;
|
|
55
|
+
"right-start"?: import("@popperjs/core").Offsets | undefined;
|
|
56
|
+
"right-end"?: import("@popperjs/core").Offsets | undefined;
|
|
57
|
+
"left-start"?: import("@popperjs/core").Offsets | undefined;
|
|
58
|
+
"left-end"?: import("@popperjs/core").Offsets | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
preventOverflow?: import("@popperjs/core").Offsets | undefined;
|
|
61
|
+
popperOffsets?: import("@popperjs/core").Offsets | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
reset?: boolean | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
styles: globalThis.ComputedRef<{
|
|
66
|
+
[key: string]: Partial<CSSStyleDeclaration>;
|
|
67
|
+
}>;
|
|
68
|
+
attributes: globalThis.ComputedRef<{
|
|
69
|
+
[key: string]: {
|
|
70
|
+
[key: string]: string | boolean;
|
|
71
|
+
};
|
|
72
|
+
}>;
|
|
73
|
+
update: () => Promise<Partial<State>> | undefined;
|
|
74
|
+
forceUpdate: () => void | undefined;
|
|
75
|
+
instanceRef: globalThis.ComputedRef<Instance | undefined>;
|
|
13
76
|
};
|
|
14
77
|
export type UsePopperReturn = ReturnType<typeof usePopper>;
|
|
15
78
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useSameTarget: (handleClick?: ((e: MouseEvent) => void) | undefined) => {
|
|
2
|
-
onClick: any;
|
|
3
|
-
onMousedown: any;
|
|
4
|
-
onMouseup: any;
|
|
2
|
+
onClick: (...args: any[]) => void;
|
|
3
|
+
onMousedown: (...args: any[]) => void;
|
|
4
|
+
onMouseup: (...args: any[]) => void;
|
|
5
5
|
};
|
|
@@ -2,7 +2,7 @@ import type { InjectionKey, Ref } from 'vue';
|
|
|
2
2
|
export declare const defaultInitialZIndex = 2000;
|
|
3
3
|
export declare const zIndexContextKey: InjectionKey<Ref<number | undefined>>;
|
|
4
4
|
export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
|
|
5
|
-
initialZIndex: globalThis.ComputedRef<number
|
|
5
|
+
initialZIndex: globalThis.ComputedRef<number>;
|
|
6
6
|
currentZIndex: globalThis.ComputedRef<number>;
|
|
7
7
|
nextZIndex: () => number;
|
|
8
8
|
};
|
package/es/index.js
CHANGED
|
@@ -126,45 +126,45 @@ import { cAF as qf, rAF as Zf } from "./utils/vue/raf.js";
|
|
|
126
126
|
import { composeRefs as Xf } from "./utils/vue/refs.js";
|
|
127
127
|
import { PatchFlags as ep, ensureOnlyChild as op, flattedChildren as rp, getFirstValidNode as tp, getNormalizedProps as fp, isComment as pp, isFragment as mp, isTemplate as ap, isText as xp, isValidElementNode as ip, renderBlock as sp, renderIf as np } from "./utils/vue/vnode.js";
|
|
128
128
|
import { default as Vp } from "dayjs";
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import { default as lm } from "./components/popper/
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
129
|
+
import { buttonGroupContextKey as dp } from "./components/button/constants.js";
|
|
130
|
+
import { checkboxGroupContextKey as Ip } from "./components/checkbox/constants.js";
|
|
131
|
+
import { configProviderContextKey as Tp, messageConfig as gp } from "./components/config-provider/constants.js";
|
|
132
|
+
import { provideGlobalConfig as Dp, useGlobalComponentSettings as Pp, useGlobalConfig as Sp } from "./components/config-provider/hooks/use-global-config.js";
|
|
133
|
+
import { ROOT_PICKER_INJECTION_KEY as yp, datePickerConfig as Mp } from "./components/date-picker/constants.js";
|
|
134
|
+
import { datePickerProps as bp } from "./components/date-picker/props/date-picker.js";
|
|
135
|
+
import { dialogInjectionKey as Ap } from "./components/dialog/constants.js";
|
|
136
|
+
import { useDialog as Kp } from "./components/dialog/hooks/use-dialog.js";
|
|
137
|
+
import { DROPDOWN_INJECTION_KEY as Rp } from "./components/dropdown/tokens.js";
|
|
138
|
+
import { EmptyEnum as Op } from "./components/empty/constants.js";
|
|
139
|
+
import { formContextKey as wp, formItemContextKey as zp } from "./components/form/constants.js";
|
|
140
|
+
import { useDisabled as Up, useFormDisabled as Yp, useFormSize as Bp, useSize as Hp } from "./components/form/hooks/use-form-common-props.js";
|
|
141
|
+
import { useFormItem as Wp, useFormItemInputId as jp } from "./components/form/hooks/use-form-item.js";
|
|
142
|
+
import { formItemValidateStates as Zp } from "./components/form/types.js";
|
|
143
|
+
import { MenuTypeEnum as Xp } from "./components/horizontal-menu/constants.js";
|
|
144
|
+
import { initAffixTabs as em, useTabsDrag as om } from "./components/multiple-tabs/use/use-multiple-tabs.js";
|
|
145
|
+
import { useTabDropdown as tm } from "./components/multiple-tabs/use/use-tab-dropdown.js";
|
|
146
|
+
import { usePagination as pm, vftPaginationKey as mm } from "./components/pagination/usePagination.js";
|
|
147
|
+
import { default as xm } from "./components/popper/arrow.vue2.js";
|
|
148
|
+
import { default as sm } from "./components/popper/content.vue2.js";
|
|
149
|
+
import { default as lm } from "./components/popper/trigger.vue2.js";
|
|
150
|
+
import { radioGroupKey as um } from "./components/radio/constants.js";
|
|
151
|
+
import { rowContextKey as cm } from "./components/row/constants.js";
|
|
152
|
+
import { scrollbarContextKey as Cm } from "./components/scrollbar/constants.js";
|
|
153
|
+
import { BAR_MAP as gm, GAP as Em, renderThumbStyle as Dm } from "./components/scrollbar/util.js";
|
|
154
|
+
import { selectInjectionKey as Sm } from "./components/select/token.js";
|
|
155
|
+
import { sliderContextKey as ym } from "./components/slider/constants.js";
|
|
156
|
+
import { sliderEmits as _m } from "./components/slider/slider.js";
|
|
157
|
+
import { spaceProps as Lm } from "./components/space/space.js";
|
|
158
|
+
import { useSpace as Nm } from "./components/space/use-space.js";
|
|
159
|
+
import { ACTION_FIELD as vm, CHECKED_FIELD as Rm, CREATE_TIME_FIELD as km, DATE_FIELD as Om, DATE_TIME_FIELD as hm, ID_FIELD as wm, NAME_FIELD as zm, SEQ_FIELD as Gm, STATUS_FIELD as Um, UPDATE_TIME_FIELD as Ym } from "./components/table/field.js";
|
|
160
|
+
import { useTable as Hm } from "./components/table/use/use-table.js";
|
|
161
|
+
import { addRequire as Wm, removeRequire as jm, selectMapping as qm } from "./components/table/utils.js";
|
|
162
|
+
import { TabsRootContextKey as Qm } from "./components/tabs/types.js";
|
|
163
|
+
import { timePickerDefaultProps as $m } from "./components/time-picker/common/props.js";
|
|
164
|
+
import { DEFAULT_FORMATS_DATE as oa, DEFAULT_FORMATS_DATEPICKER as ra, DEFAULT_FORMATS_TIME as ta, timeUnits as fa } from "./components/time-picker/constants.js";
|
|
165
|
+
import { buildTimeList as ma, dateEquals as aa, extractDateFormat as xa, extractTimeFormat as ia, formatter as sa, makeList as na, parseDate as la, rangeArr as Va, valueEquals as ua } from "./components/time-picker/utils.js";
|
|
166
|
+
import { default as ca } from "./components/time-picker/common/picker.vue2.js";
|
|
167
|
+
import { default as Ca } from "./components/time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
168
168
|
import { TOOLTIP_INJECTION_KEY as ga } from "./components/tooltip/constants.js";
|
|
169
169
|
import { getChildState as Da } from "./components/tree/model/node.js";
|
|
170
170
|
import { dragEventsKey as Sa, useDragNodeHandler as Fa } from "./components/tree/model/useDragNode.js";
|
|
@@ -178,46 +178,46 @@ import { Loading as Za } from "./components/loading/service.js";
|
|
|
178
178
|
import { messageDefaults as Xa, messageTypes as $a } from "./components/message/types.js";
|
|
179
179
|
const r = e.install, t = e.version;
|
|
180
180
|
export {
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
vm as ACTION_FIELD,
|
|
182
|
+
gm as BAR_MAP,
|
|
183
183
|
ft as CHANGE_EVENT,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
Rm as CHECKED_FIELD,
|
|
185
|
+
km as CREATE_TIME_FIELD,
|
|
186
|
+
ca as CommonPicker,
|
|
187
187
|
m as CompResolver,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
Om as DATE_FIELD,
|
|
189
|
+
hm as DATE_TIME_FIELD,
|
|
190
|
+
oa as DEFAULT_FORMATS_DATE,
|
|
191
|
+
ra as DEFAULT_FORMATS_DATEPICKER,
|
|
192
|
+
ta as DEFAULT_FORMATS_TIME,
|
|
193
|
+
Rp as DROPDOWN_INJECTION_KEY,
|
|
194
194
|
mr as DynamicSizeGrid,
|
|
195
195
|
xr as DynamicSizeList,
|
|
196
196
|
$r as EVENT_CODE,
|
|
197
|
-
|
|
197
|
+
Op as EmptyEnum,
|
|
198
198
|
Et as FORWARD_REF_INJECTION_KEY,
|
|
199
199
|
sr as FixedSizeGrid,
|
|
200
200
|
lr as FixedSizeList,
|
|
201
201
|
La as FormCompEnum,
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
Em as GAP,
|
|
203
|
+
wm as ID_FIELD,
|
|
204
204
|
Ft as ID_INJECTION_KEY,
|
|
205
205
|
pt as INPUT_EVENT,
|
|
206
206
|
xt as INSTALLED_KEY,
|
|
207
207
|
_e as Icon,
|
|
208
|
-
|
|
208
|
+
Xp as MenuTypeEnum,
|
|
209
209
|
Jr as Message,
|
|
210
|
-
|
|
210
|
+
zm as NAME_FIELD,
|
|
211
211
|
ep as PatchFlags,
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
yp as ROOT_PICKER_INJECTION_KEY,
|
|
213
|
+
Gm as SEQ_FIELD,
|
|
214
214
|
Zt as SIZE_INJECTION_KEY,
|
|
215
|
-
|
|
215
|
+
Um as STATUS_FIELD,
|
|
216
216
|
ga as TOOLTIP_INJECTION_KEY,
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
Qm as TabsRootContextKey,
|
|
218
|
+
Ca as TimePickPanel,
|
|
219
219
|
mt as UPDATE_MODEL_EVENT,
|
|
220
|
-
|
|
220
|
+
Ym as UPDATE_TIME_FIELD,
|
|
221
221
|
s as VftAlert,
|
|
222
222
|
w as VftAside,
|
|
223
223
|
Tr as VftAutocomplete,
|
|
@@ -293,9 +293,9 @@ export {
|
|
|
293
293
|
io as VftPopconfirm,
|
|
294
294
|
no as VftPopover,
|
|
295
295
|
Vo as VftPopper,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
xm as VftPopperArrow,
|
|
297
|
+
sm as VftPopperContent,
|
|
298
|
+
lm as VftPopperTrigger,
|
|
299
299
|
Pr as VftProgress,
|
|
300
300
|
Qr as VftProgressI,
|
|
301
301
|
co as VftQrcode,
|
|
@@ -328,28 +328,28 @@ export {
|
|
|
328
328
|
ot as WEEK_DAYS,
|
|
329
329
|
Rt as _bem,
|
|
330
330
|
Aa as add,
|
|
331
|
-
|
|
331
|
+
Wm as addRequire,
|
|
332
332
|
Yf as buildProp,
|
|
333
333
|
Bf as buildProps,
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
ma as buildTimeList,
|
|
335
|
+
dp as buttonGroupContextKey,
|
|
336
336
|
qf as cAF,
|
|
337
337
|
Ba as carouselContextKey,
|
|
338
|
-
|
|
338
|
+
Ip as checkboxGroupContextKey,
|
|
339
339
|
Na as componentMap,
|
|
340
340
|
st as componentSizeMap,
|
|
341
341
|
nt as componentSizes,
|
|
342
342
|
Ef as composeEventHandlers,
|
|
343
343
|
Xf as composeRefs,
|
|
344
|
-
|
|
344
|
+
Tp as configProviderContextKey,
|
|
345
345
|
H as createContextMenu,
|
|
346
346
|
Wa as createLoadingDirective,
|
|
347
347
|
At as createModelToggleComposable,
|
|
348
348
|
_f as cssVarValue,
|
|
349
|
-
|
|
349
|
+
aa as dateEquals,
|
|
350
350
|
rt as datePickTypes,
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
Mp as datePickerConfig,
|
|
352
|
+
bp as datePickerProps,
|
|
353
353
|
Vp as dayjs,
|
|
354
354
|
Cf as debugWarn,
|
|
355
355
|
e as default,
|
|
@@ -358,18 +358,18 @@ export {
|
|
|
358
358
|
Hf as definePropType,
|
|
359
359
|
Ka as del,
|
|
360
360
|
J as destroyContextMenu,
|
|
361
|
-
|
|
361
|
+
Ap as dialogInjectionKey,
|
|
362
362
|
Sa as dragEventsKey,
|
|
363
363
|
op as ensureOnlyChild,
|
|
364
364
|
Jf as epPropKey,
|
|
365
365
|
kf as escapeStringRegexp,
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
xa as extractDateFormat,
|
|
367
|
+
ia as extractTimeFormat,
|
|
368
368
|
rp as flattedChildren,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
369
|
+
wp as formContextKey,
|
|
370
|
+
zp as formItemContextKey,
|
|
371
|
+
Zp as formItemValidateStates,
|
|
372
|
+
sa as formatter,
|
|
373
373
|
Ga as genFileId,
|
|
374
374
|
bf as generateCssVars,
|
|
375
375
|
Da as getChildState,
|
|
@@ -383,7 +383,7 @@ export {
|
|
|
383
383
|
Vf as getScrollBarWidth,
|
|
384
384
|
uf as getScrollContainer,
|
|
385
385
|
Ff as getSizeType,
|
|
386
|
-
|
|
386
|
+
em as initAffixTabs,
|
|
387
387
|
r as install,
|
|
388
388
|
pp as isComment,
|
|
389
389
|
va as isDatePicker,
|
|
@@ -398,54 +398,54 @@ export {
|
|
|
398
398
|
yf as isValidComponentSize,
|
|
399
399
|
ip as isValidElementNode,
|
|
400
400
|
x as makeInstaller,
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
na as makeList,
|
|
402
|
+
gp as messageConfig,
|
|
403
403
|
Xa as messageDefaults,
|
|
404
404
|
$a as messageTypes,
|
|
405
405
|
vf as mutable,
|
|
406
406
|
Ot as namespaceContextKey,
|
|
407
|
-
|
|
407
|
+
la as parseDate,
|
|
408
408
|
Lf as primaryColor,
|
|
409
|
-
|
|
409
|
+
Dp as provideGlobalConfig,
|
|
410
410
|
Zf as rAF,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
um as radioGroupKey,
|
|
412
|
+
Va as rangeArr,
|
|
413
|
+
jm as removeRequire,
|
|
414
414
|
sp as renderBlock,
|
|
415
415
|
np as renderIf,
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
Dm as renderThumbStyle,
|
|
417
|
+
cm as rowContextKey,
|
|
418
418
|
cf as scrollIntoView,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
419
|
+
Cm as scrollbarContextKey,
|
|
420
|
+
Sm as selectInjectionKey,
|
|
421
|
+
qm as selectMapping,
|
|
422
422
|
Af as setCssVar,
|
|
423
423
|
Nf as setPrimaryColorCssvars,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
ym as sliderContextKey,
|
|
425
|
+
_m as sliderEmits,
|
|
426
|
+
Lm as spaceProps,
|
|
427
427
|
Tf as throwError,
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
$m as timePickerDefaultProps,
|
|
429
|
+
fa as timeUnits,
|
|
430
430
|
Ua as uploadContextKey,
|
|
431
431
|
Vt as useAttrs,
|
|
432
432
|
j as useContextMenu,
|
|
433
433
|
dt as useDelayedToggle,
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
Kp as useDialog,
|
|
435
|
+
Up as useDisabled,
|
|
436
436
|
Fa as useDragNodeHandler,
|
|
437
437
|
It as useDraggable,
|
|
438
438
|
Tt as useFocus,
|
|
439
439
|
wa as useForm,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
440
|
+
Yp as useFormDisabled,
|
|
441
|
+
Wp as useFormItem,
|
|
442
|
+
jp as useFormItemInputId,
|
|
443
|
+
Bp as useFormSize,
|
|
444
444
|
Dt as useForwardRef,
|
|
445
445
|
Pt as useForwardRefDirective,
|
|
446
446
|
ht as useGetDerivedNamespace,
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
Pp as useGlobalComponentSettings,
|
|
448
|
+
Sp as useGlobalConfig,
|
|
449
449
|
Qt as useGlobalSize,
|
|
450
450
|
yt as useId,
|
|
451
451
|
Mt as useIdInjection,
|
|
@@ -456,23 +456,23 @@ export {
|
|
|
456
456
|
Kt as useModelToggleEmits,
|
|
457
457
|
wt as useNamespace,
|
|
458
458
|
Gt as useOrderedChildren,
|
|
459
|
-
|
|
459
|
+
pm as usePagination,
|
|
460
460
|
Yt as usePopper,
|
|
461
461
|
Ht as usePopperContainer,
|
|
462
462
|
Jt as usePopperContainerId,
|
|
463
463
|
jt as useSameTarget,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
464
|
+
Hp as useSize,
|
|
465
|
+
Nm as useSpace,
|
|
466
|
+
tm as useTabDropdown,
|
|
467
|
+
Hm as useTable,
|
|
468
|
+
om as useTabsDrag,
|
|
469
469
|
$t as useThrottleRender,
|
|
470
470
|
of as useTimeout,
|
|
471
471
|
ff as useZIndex,
|
|
472
472
|
ja as vLoading,
|
|
473
|
-
|
|
473
|
+
ua as valueEquals,
|
|
474
474
|
t as version,
|
|
475
|
-
|
|
475
|
+
mm as vftPaginationKey,
|
|
476
476
|
ur as virtualizedGridProps,
|
|
477
477
|
dr as virtualizedListProps,
|
|
478
478
|
cr as virtualizedProps,
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TinyColor } from '@ctrl/tinycolor';
|
|
2
2
|
import type { ButtonProps } from './button.vue';
|
|
3
3
|
/** 生成暗色 */
|
|
4
|
-
export declare function darken(color: TinyColor, amount?: number):
|
|
4
|
+
export declare function darken(color: TinyColor, amount?: number): string;
|
|
5
5
|
export declare function useButtonCustomStyle(props: ButtonProps): globalThis.ComputedRef<Record<string, string>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ComponentSize } from '../types';
|
|
2
|
+
import type { MaybeRef } from '@vueuse/core';
|
|
2
3
|
import { type ComputedRef } from 'vue';
|
|
3
|
-
export declare const useFormSize: (fallback?:
|
|
4
|
-
export declare const useFormDisabled: (fallback?:
|
|
5
|
-
export declare const useSize: (fallback?:
|
|
6
|
-
export declare const useDisabled: (fallback?:
|
|
4
|
+
export declare const useFormSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => ComputedRef<ComponentSize>;
|
|
5
|
+
export declare const useFormDisabled: (fallback?: MaybeRef<boolean | undefined>) => ComputedRef<boolean>;
|
|
6
|
+
export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => ComputedRef<ComponentSize>;
|
|
7
|
+
export declare const useDisabled: (fallback?: MaybeRef<boolean | undefined>) => ComputedRef<boolean>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MaybeRef } from '@vueuse/core';
|
|
1
2
|
import type { InjectionKey, Ref } from 'vue';
|
|
2
3
|
export type IdInjectionContext = {
|
|
3
4
|
prefix: number;
|
|
@@ -5,4 +6,4 @@ export type IdInjectionContext = {
|
|
|
5
6
|
};
|
|
6
7
|
export declare const ID_INJECTION_KEY: InjectionKey<IdInjectionContext>;
|
|
7
8
|
export declare const useIdInjection: () => IdInjectionContext;
|
|
8
|
-
export declare const useId: (deterministicId?:
|
|
9
|
+
export declare const useId: (deterministicId?: MaybeRef<string>) => Ref<string>;
|
|
@@ -11,8 +11,8 @@ export declare const affixEmits: {
|
|
|
11
11
|
scroll: ({ scrollTop, fixed }: {
|
|
12
12
|
scrollTop: number;
|
|
13
13
|
fixed: boolean;
|
|
14
|
-
}) =>
|
|
15
|
-
change: (fixed: boolean) =>
|
|
14
|
+
}) => boolean;
|
|
15
|
+
change: (fixed: boolean) => boolean;
|
|
16
16
|
};
|
|
17
17
|
export type AffixEmits = typeof affixEmits;
|
|
18
18
|
export type AffixInstance = InstanceType<typeof Affix>;
|
|
@@ -7,13 +7,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
7
7
|
/** @description update affix status */
|
|
8
8
|
update: () => void;
|
|
9
9
|
/** @description update rootRect info */
|
|
10
|
-
updateRoot:
|
|
10
|
+
updateRoot: () => void;
|
|
11
11
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
change: (fixed: boolean) => void;
|
|
12
13
|
scroll: (args_0: {
|
|
13
14
|
scrollTop: number;
|
|
14
15
|
fixed: boolean;
|
|
15
16
|
}) => void;
|
|
16
|
-
change: (fixed: boolean) => void;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
18
|
readonly zIndex: import("vft/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
19
19
|
readonly target: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|