@oiij/naive-ui 0.0.66 → 0.0.67
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/config-providers/ConfigProviders.js +10 -18
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +5 -5
- package/dist/components/config-providers/index.d.ts +6 -8
- package/dist/components/copy-button/CopyButton.vue.d.ts +8 -8
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +43 -43
- package/dist/components/index.d.ts +17 -19
- package/dist/components/loading-provider/LoadingProvider.js +78 -0
- package/dist/components/loading-provider/LoadingProvider.vue.d.ts +38 -0
- package/dist/components/loading-provider/index.d.ts +23 -0
- package/dist/components/loading-provider/index.js +7 -0
- package/dist/components/{full-loading/full-loading.cssr.js → loading-provider/loading-provider.cssr.js} +5 -5
- package/dist/components/preset-form/PresetForm.vue.d.ts +19 -19
- package/dist/components/preset-input/PresetInput.vue.d.ts +4 -4
- package/dist/components/preset-picker/PresetPicker.js +1 -1
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +5 -5
- package/dist/components/preset-select/PresetSelect.vue.d.ts +28 -28
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +12 -12
- package/dist/components/search-input/SearchInput.vue.d.ts +12 -12
- package/dist/components/toggle-input/ToggleInput.vue.d.ts +5 -5
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +5 -5
- package/dist/components/transition/BaseTransition.vue.d.ts +6 -6
- package/dist/components/type-writer/TypeWriter.js +1 -1
- package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -5
- package/dist/components.d.ts +19 -21
- package/dist/components.js +5 -5
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useDataRequest.d.ts +1 -1
- package/dist/composables/useLoading.d.ts +10 -0
- package/dist/composables/useLoading.js +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +11 -11
- package/dist/components/bubble/Bubble.js +0 -67
- package/dist/components/bubble/Bubble.vue.d.ts +0 -54
- package/dist/components/bubble/bubble.cssr.js +0 -23
- package/dist/components/bubble/index.d.ts +0 -20
- package/dist/components/full-loading/FullLoading.js +0 -70
- package/dist/components/full-loading/FullLoading.vue.d.ts +0 -38
- package/dist/components/full-loading/index.d.ts +0 -17
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetFormExpose, PresetFormProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _vueuse_core10 from "@vueuse/core";
|
|
4
|
+
import * as vue57 from "vue";
|
|
5
|
+
import * as naive_ui27 from "naive-ui";
|
|
6
6
|
import { FormInst } from "naive-ui";
|
|
7
7
|
import * as async_validator0 from "async-validator";
|
|
8
8
|
|
|
9
9
|
//#region src/components/preset-form/PresetForm.vue.d.ts
|
|
10
10
|
declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
|
-
props: __VLS_PrettifyLocal<PresetFormProps<V> & {
|
|
11
|
+
props: vue57.PublicProps & __VLS_PrettifyLocal<PresetFormProps<V> & {
|
|
12
12
|
onValidated?: ((val: V) => any) | undefined;
|
|
13
|
-
}> &
|
|
13
|
+
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
15
15
|
} ? P : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue57.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
header?: (props: {
|
|
20
20
|
formRef: FormInst | null;
|
|
21
21
|
formValue: V;
|
|
22
|
-
formRules: Partial<Record<keyof V,
|
|
22
|
+
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
23
23
|
formProps: {
|
|
24
|
-
model:
|
|
25
|
-
rules:
|
|
24
|
+
model: vue57.Reactive<V>;
|
|
25
|
+
rules: vue57.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
|
|
26
26
|
};
|
|
27
27
|
setValue: (_value: Partial<V>) => void;
|
|
28
28
|
validate: () => Promise<{
|
|
@@ -32,16 +32,16 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
32
32
|
resetForm: () => void;
|
|
33
33
|
reset: () => void;
|
|
34
34
|
clear: () => void;
|
|
35
|
-
onValidated:
|
|
35
|
+
onValidated: _vueuse_core10.EventHookOn<[V]>;
|
|
36
36
|
}) => any;
|
|
37
37
|
} & {
|
|
38
38
|
default?: (props: {
|
|
39
39
|
formRef: FormInst | null;
|
|
40
40
|
formValue: V;
|
|
41
|
-
formRules: Partial<Record<keyof V,
|
|
41
|
+
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
42
42
|
formProps: {
|
|
43
|
-
model:
|
|
44
|
-
rules:
|
|
43
|
+
model: vue57.Reactive<V>;
|
|
44
|
+
rules: vue57.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
|
|
45
45
|
};
|
|
46
46
|
setValue: (_value: Partial<V>) => void;
|
|
47
47
|
validate: () => Promise<{
|
|
@@ -51,16 +51,16 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
51
51
|
resetForm: () => void;
|
|
52
52
|
reset: () => void;
|
|
53
53
|
clear: () => void;
|
|
54
|
-
onValidated:
|
|
54
|
+
onValidated: _vueuse_core10.EventHookOn<[V]>;
|
|
55
55
|
}) => any;
|
|
56
56
|
} & {
|
|
57
57
|
footer?: (props: {
|
|
58
58
|
formRef: FormInst | null;
|
|
59
59
|
formValue: V;
|
|
60
|
-
formRules: Partial<Record<keyof V,
|
|
60
|
+
formRules: Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
|
|
61
61
|
formProps: {
|
|
62
|
-
model:
|
|
63
|
-
rules:
|
|
62
|
+
model: vue57.Reactive<V>;
|
|
63
|
+
rules: vue57.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
|
|
64
64
|
};
|
|
65
65
|
setValue: (_value: Partial<V>) => void;
|
|
66
66
|
validate: () => Promise<{
|
|
@@ -70,11 +70,11 @@ declare const __VLS_export: <V extends DataObject>(__VLS_props: NonNullable<Awai
|
|
|
70
70
|
resetForm: () => void;
|
|
71
71
|
reset: () => void;
|
|
72
72
|
clear: () => void;
|
|
73
|
-
onValidated:
|
|
73
|
+
onValidated: _vueuse_core10.EventHookOn<[V]>;
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue57.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PresetInputProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue52 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/preset-input/PresetInput.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<PresetInputProps<V> & {
|
|
6
|
+
props: vue52.PublicProps & __VLS_PrettifyLocal<PresetInputProps<V> & {
|
|
7
7
|
"onUpdate:value"?: ((val?: V | undefined) => any) | undefined;
|
|
8
|
-
}> &
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
10
10
|
} ? P : {});
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {};
|
|
14
14
|
emit: (e: "update:value", val?: V) => void;
|
|
15
|
-
}>) =>
|
|
15
|
+
}>) => vue52.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import MageMultiplyCircleFill_default from "../icons/MageMultiplyCircleFill.js";
|
|
2
2
|
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, reactive, ref, renderSlot, toDisplayString, toRaw, toValue, unref, watch, withCtx, withModifiers } from "vue";
|
|
3
|
-
import { cloneDeep } from "es-toolkit/object";
|
|
4
3
|
import { NBadge, NButton, NButtonGroup, NModal, NTooltip } from "naive-ui";
|
|
4
|
+
import { cloneDeep } from "es-toolkit/object";
|
|
5
5
|
|
|
6
6
|
//#region src/components/preset-picker/PresetPicker.vue
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetPickerEmits, PresetPickerExpose, PresetPickerProps, PresetPickerValue } from "./index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue54 from "vue";
|
|
4
4
|
import { DataTableColumns } from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/preset-picker/PresetPicker.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props: __VLS_PrettifyLocal<PresetPickerProps<V, R> & {
|
|
8
|
+
props: vue54.PublicProps & __VLS_PrettifyLocal<PresetPickerProps<V, R> & {
|
|
9
9
|
onClose?: (() => any) | undefined;
|
|
10
10
|
"onUpdate:value"?: ((val: V | null, raw: R | R[] | null) => any) | undefined;
|
|
11
11
|
onAfterEnter?: (() => any) | undefined;
|
|
@@ -15,10 +15,10 @@ declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(
|
|
|
15
15
|
onNegativeClick?: (() => any) | undefined;
|
|
16
16
|
onPositiveClick?: (() => any) | undefined;
|
|
17
17
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
18
|
-
}> &
|
|
18
|
+
}> & (typeof globalThis extends {
|
|
19
19
|
__VLS_PROPS_FALLBACK: infer P;
|
|
20
20
|
} ? P : {});
|
|
21
|
-
expose: (exposed:
|
|
21
|
+
expose: (exposed: vue54.ShallowUnwrapRef<PresetPickerExpose<R>>) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: {
|
|
24
24
|
'button-icon'?: (props: {}) => any;
|
|
@@ -54,7 +54,7 @@ declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(
|
|
|
54
54
|
'modal-close'?: (props: {}) => any;
|
|
55
55
|
};
|
|
56
56
|
emit: PresetPickerEmits<V, R>;
|
|
57
|
-
}>) =>
|
|
57
|
+
}>) => vue54.VNode & {
|
|
58
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
59
|
};
|
|
60
60
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { PresetSelectEmits, PresetSelectExpose, PresetSelectProps, PresetSelectValue } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core13 from "@vueuse/core";
|
|
4
|
+
import * as vue66 from "vue";
|
|
5
5
|
import { SelectInst, SelectOption } from "naive-ui";
|
|
6
6
|
|
|
7
7
|
//#region src/components/preset-select/PresetSelect.vue.d.ts
|
|
8
8
|
declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject, D extends DataObject, R extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
|
-
props: __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
10
|
-
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
9
|
+
props: vue66.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
11
10
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
11
|
+
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
12
12
|
onClear?: (() => any) | undefined;
|
|
13
13
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
14
14
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
15
15
|
onScroll?: ((ev: Event) => any) | undefined;
|
|
16
16
|
"onUpdate:value"?: ((val: V | null, option: SelectOption | SelectOption[] | null, raw: R | R[] | null) => any) | undefined;
|
|
17
17
|
onSearch?: ((value: string) => any) | undefined;
|
|
18
|
+
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
18
19
|
onBefore?: ((params: P[]) => any) | undefined;
|
|
19
20
|
onCreate?: ((label: string) => any) | undefined;
|
|
20
21
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
21
22
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
22
|
-
|
|
23
|
-
}> & vue48.PublicProps & (typeof globalThis extends {
|
|
23
|
+
}> & (typeof globalThis extends {
|
|
24
24
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
25
25
|
} ? P_1 : {});
|
|
26
|
-
expose: (exposed:
|
|
26
|
+
expose: (exposed: vue66.ShallowUnwrapRef<PresetSelectExpose<P, D, R>>) => void;
|
|
27
27
|
attrs: any;
|
|
28
28
|
slots: {
|
|
29
29
|
header?: (props: {
|
|
@@ -51,10 +51,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
51
51
|
setParams: (_params: Partial<P>) => void;
|
|
52
52
|
runParams: (_params: Partial<P>) => void;
|
|
53
53
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
54
|
-
onBefore:
|
|
55
|
-
onSuccess:
|
|
56
|
-
onError:
|
|
57
|
-
onFinally:
|
|
54
|
+
onBefore: _vueuse_core13.EventHookOn<[P[]]>;
|
|
55
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
56
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
57
|
+
onFinally: _vueuse_core13.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
58
58
|
}) => any;
|
|
59
59
|
} & {
|
|
60
60
|
footer?: (props: {
|
|
@@ -82,10 +82,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
82
82
|
setParams: (_params: Partial<P>) => void;
|
|
83
83
|
runParams: (_params: Partial<P>) => void;
|
|
84
84
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
85
|
-
onBefore:
|
|
86
|
-
onSuccess:
|
|
87
|
-
onError:
|
|
88
|
-
onFinally:
|
|
85
|
+
onBefore: _vueuse_core13.EventHookOn<[P[]]>;
|
|
86
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
87
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
88
|
+
onFinally: _vueuse_core13.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
89
89
|
}) => any;
|
|
90
90
|
} & {
|
|
91
91
|
'footer-extra'?: (props: {
|
|
@@ -113,10 +113,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
113
113
|
setParams: (_params: Partial<P>) => void;
|
|
114
114
|
runParams: (_params: Partial<P>) => void;
|
|
115
115
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
116
|
-
onBefore:
|
|
117
|
-
onSuccess:
|
|
118
|
-
onError:
|
|
119
|
-
onFinally:
|
|
116
|
+
onBefore: _vueuse_core13.EventHookOn<[P[]]>;
|
|
117
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
118
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
119
|
+
onFinally: _vueuse_core13.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
120
120
|
}) => any;
|
|
121
121
|
} & {
|
|
122
122
|
empty?: (props: {
|
|
@@ -144,10 +144,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
144
144
|
setParams: (_params: Partial<P>) => void;
|
|
145
145
|
runParams: (_params: Partial<P>) => void;
|
|
146
146
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
147
|
-
onBefore:
|
|
148
|
-
onSuccess:
|
|
149
|
-
onError:
|
|
150
|
-
onFinally:
|
|
147
|
+
onBefore: _vueuse_core13.EventHookOn<[P[]]>;
|
|
148
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
149
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
150
|
+
onFinally: _vueuse_core13.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
151
151
|
}) => any;
|
|
152
152
|
} & {
|
|
153
153
|
arrow?: (props: {
|
|
@@ -175,14 +175,14 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
175
175
|
setParams: (_params: Partial<P>) => void;
|
|
176
176
|
runParams: (_params: Partial<P>) => void;
|
|
177
177
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
178
|
-
onBefore:
|
|
179
|
-
onSuccess:
|
|
180
|
-
onError:
|
|
181
|
-
onFinally:
|
|
178
|
+
onBefore: _vueuse_core13.EventHookOn<[P[]]>;
|
|
179
|
+
onSuccess: _vueuse_core13.EventHookOn<[D, P[]]>;
|
|
180
|
+
onError: _vueuse_core13.EventHookOn<[Error, P[]]>;
|
|
181
|
+
onFinally: _vueuse_core13.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
182
182
|
}) => any;
|
|
183
183
|
};
|
|
184
184
|
emit: PresetSelectEmits<V, P, D, R>;
|
|
185
|
-
}>) =>
|
|
185
|
+
}>) => vue66.VNode & {
|
|
186
186
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
187
187
|
};
|
|
188
188
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DataObject } from "../../composables/useDataRequest.js";
|
|
2
2
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestProps } from "./index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _vueuse_core4 from "@vueuse/core";
|
|
4
|
+
import * as vue32 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/remote-request/RemoteRequest.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <P extends DataObject, D extends DataObject, R extends DataObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props: __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
9
|
-
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
8
|
+
props: vue32.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
10
9
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
11
|
-
|
|
10
|
+
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
12
11
|
onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
|
|
13
|
-
|
|
12
|
+
onBefore?: ((params: P[]) => any) | undefined;
|
|
13
|
+
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
15
15
|
} ? P_1 : {});
|
|
16
|
-
expose: (exposed:
|
|
16
|
+
expose: (exposed: vue32.ShallowUnwrapRef<RemoteRequestExpose<P, D, R>>) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
default?: (props: {
|
|
@@ -40,14 +40,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
|
|
|
40
40
|
setParams: (_params: Partial<P>) => void;
|
|
41
41
|
runParams: (_params: Partial<P>) => void;
|
|
42
42
|
runParamsAsync: (_params: Partial<P>) => Promise<D>;
|
|
43
|
-
onBefore:
|
|
44
|
-
onSuccess:
|
|
45
|
-
onError:
|
|
46
|
-
onFinally:
|
|
43
|
+
onBefore: _vueuse_core4.EventHookOn<[P[]]>;
|
|
44
|
+
onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
|
|
45
|
+
onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
|
|
46
|
+
onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
47
47
|
}) => any;
|
|
48
48
|
};
|
|
49
49
|
emit: RemoteRequestEmits<P, D>;
|
|
50
|
-
}>) =>
|
|
50
|
+
}>) => vue32.VNode & {
|
|
51
51
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
52
|
};
|
|
53
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as vue40 from "vue";
|
|
4
|
+
import * as naive_ui21 from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/search-input/SearchInput.vue.d.ts
|
|
7
7
|
declare var __VLS_19: {}, __VLS_21: {}, __VLS_28: {
|
|
@@ -17,29 +17,29 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
} & {
|
|
18
18
|
'button-icon'?: (props: typeof __VLS_39) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const __VLS_base:
|
|
20
|
+
declare const __VLS_base: vue40.DefineComponent<{
|
|
21
21
|
value?: string | null;
|
|
22
|
-
type?:
|
|
22
|
+
type?: naive_ui21.ButtonProps["type"];
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
loading?: boolean;
|
|
25
25
|
autoTrigger?: boolean | number;
|
|
26
26
|
searchButton?: "text" | "icon" | boolean;
|
|
27
|
-
inputProps?:
|
|
28
|
-
buttonProps?:
|
|
29
|
-
}, {}, {}, {}, {},
|
|
27
|
+
inputProps?: naive_ui21.InputProps & ClassStyle;
|
|
28
|
+
buttonProps?: naive_ui21.ButtonProps & ClassStyle;
|
|
29
|
+
}, {}, {}, {}, {}, vue40.ComponentOptionsMixin, vue40.ComponentOptionsMixin, {} & {
|
|
30
30
|
"update:value": (v: string | null | undefined) => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue40.PublicProps, Readonly<{
|
|
32
32
|
value?: string | null;
|
|
33
|
-
type?:
|
|
33
|
+
type?: naive_ui21.ButtonProps["type"];
|
|
34
34
|
placeholder?: string;
|
|
35
35
|
loading?: boolean;
|
|
36
36
|
autoTrigger?: boolean | number;
|
|
37
37
|
searchButton?: "text" | "icon" | boolean;
|
|
38
|
-
inputProps?:
|
|
39
|
-
buttonProps?:
|
|
38
|
+
inputProps?: naive_ui21.InputProps & ClassStyle;
|
|
39
|
+
buttonProps?: naive_ui21.ButtonProps & ClassStyle;
|
|
40
40
|
}> & Readonly<{
|
|
41
41
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string,
|
|
42
|
+
}>, {}, {}, {}, {}, string, vue40.ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue8 from "vue";
|
|
3
3
|
import { InputProps } from "naive-ui";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toggle-input/ToggleInput.vue.d.ts
|
|
@@ -27,14 +27,14 @@ type __VLS_Slots = {} & {
|
|
|
27
27
|
} & {
|
|
28
28
|
default?: (props: typeof __VLS_13) => any;
|
|
29
29
|
};
|
|
30
|
-
declare const __VLS_base:
|
|
30
|
+
declare const __VLS_base: vue8.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {
|
|
31
31
|
"update:value": (value: string | number | undefined) => any;
|
|
32
32
|
} & {
|
|
33
33
|
trigger: () => any;
|
|
34
|
-
}, string,
|
|
35
|
-
onTrigger?: (() => any) | undefined;
|
|
34
|
+
}, string, vue8.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
35
|
"onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
|
|
37
|
-
|
|
36
|
+
onTrigger?: (() => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, vue8.ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
40
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue13 from "vue";
|
|
4
4
|
import * as naive_ui0 from "naive-ui";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tooltip-button/TooltipButton.vue.d.ts
|
|
@@ -12,19 +12,19 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
} & {
|
|
13
13
|
tooltip?: (props: typeof __VLS_22) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue13.DefineComponent<{
|
|
16
16
|
tooltip?: string;
|
|
17
17
|
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
18
18
|
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
19
|
-
}, {}, {}, {}, {},
|
|
19
|
+
}, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {} & {
|
|
20
20
|
click: (ev: MouseEvent) => any;
|
|
21
|
-
}, string,
|
|
21
|
+
}, string, vue13.PublicProps, Readonly<{
|
|
22
22
|
tooltip?: string;
|
|
23
23
|
tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
|
|
24
24
|
buttonProps?: naive_ui0.ButtonProps & ClassStyle;
|
|
25
25
|
}> & Readonly<{
|
|
26
26
|
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string,
|
|
27
|
+
}>, {}, {}, {}, {}, string, vue13.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
2
|
import "../../components.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue45 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/transition/BaseTransition.vue.d.ts
|
|
6
6
|
declare var __VLS_7: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_7) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base:
|
|
10
|
+
declare const __VLS_base: vue45.DefineComponent<{
|
|
11
11
|
name?: string;
|
|
12
|
-
transitionProps?:
|
|
13
|
-
}, {}, {}, {}, {},
|
|
12
|
+
transitionProps?: vue45.TransitionProps & ClassStyle;
|
|
13
|
+
}, {}, {}, {}, {}, vue45.ComponentOptionsMixin, vue45.ComponentOptionsMixin, {}, string, vue45.PublicProps, Readonly<{
|
|
14
14
|
name?: string;
|
|
15
|
-
transitionProps?:
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
15
|
+
transitionProps?: vue45.TransitionProps & ClassStyle;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue45.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { highlight } from "../_utils/prismjs.js";
|
|
2
2
|
import { cName, typeWriterCssr } from "./type-writer.cssr.js";
|
|
3
3
|
import { computed, createBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
4
|
-
import { NEl } from "naive-ui";
|
|
5
4
|
import { useStyle } from "@oiij/css-render";
|
|
5
|
+
import { NEl } from "naive-ui";
|
|
6
6
|
import { useMarkdownIt } from "@oiij/markdown-it";
|
|
7
7
|
import { useTypeWriter } from "@oiij/use";
|
|
8
8
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue79 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/components/type-writer/TypeWriter.vue.d.ts
|
|
4
|
-
declare const __VLS_export:
|
|
4
|
+
declare const __VLS_export: vue79.DefineComponent<{
|
|
5
5
|
value?: string;
|
|
6
6
|
typing?: boolean;
|
|
7
7
|
markdown?: boolean;
|
|
8
8
|
step?: number;
|
|
9
9
|
interval?: number;
|
|
10
10
|
suffix?: string;
|
|
11
|
-
}, {}, {}, {}, {},
|
|
11
|
+
}, {}, {}, {}, {}, vue79.ComponentOptionsMixin, vue79.ComponentOptionsMixin, {} & {
|
|
12
12
|
start: () => any;
|
|
13
13
|
update: (v: {
|
|
14
14
|
index: number;
|
|
15
15
|
value: string;
|
|
16
16
|
}) => any;
|
|
17
17
|
stop: (v: string) => any;
|
|
18
|
-
}, string,
|
|
18
|
+
}, string, vue79.PublicProps, Readonly<{
|
|
19
19
|
value?: string;
|
|
20
20
|
typing?: boolean;
|
|
21
21
|
markdown?: boolean;
|
|
@@ -29,7 +29,7 @@ declare const __VLS_export: vue88.DefineComponent<{
|
|
|
29
29
|
value: string;
|
|
30
30
|
}) => any) | undefined;
|
|
31
31
|
onStop?: ((v: string) => any) | undefined;
|
|
32
|
-
}>, {}, {}, {}, {}, string,
|
|
32
|
+
}>, {}, {}, {}, {}, string, vue79.ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { _default };
|
package/dist/components.d.ts
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _default as _default$9 } from "./components/remote-request/RemoteRequest.vue.js";
|
|
1
|
+
import { NaiveFormRules } from "./composables/useNaiveForm.js";
|
|
2
|
+
import { _default as _default$8 } from "./components/remote-request/RemoteRequest.vue.js";
|
|
4
3
|
import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps } from "./components/remote-request/index.js";
|
|
5
|
-
import { _default as _default$
|
|
4
|
+
import { _default as _default$9 } from "./components/search-input/SearchInput.vue.js";
|
|
6
5
|
import { SearchInputProps } from "./components/search-input/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import { _default as _default$3 } from "./components/data-table-plus/DataTablePlus.vue.js";
|
|
6
|
+
import { _default as _default$2 } from "./components/data-table-plus/DataTablePlus.vue.js";
|
|
9
7
|
import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./components/data-table-plus/index.js";
|
|
10
|
-
import { _default as _default$
|
|
11
|
-
import {
|
|
12
|
-
import { _default
|
|
13
|
-
import { ConfigProvidersProps
|
|
14
|
-
import { _default as _default$
|
|
8
|
+
import { _default as _default$3 } from "./components/loading-provider/LoadingProvider.vue.js";
|
|
9
|
+
import { LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.js";
|
|
10
|
+
import { _default } from "./components/config-providers/ConfigProviders.vue.js";
|
|
11
|
+
import { ConfigProvidersProps } from "./components/config-providers/index.js";
|
|
12
|
+
import { _default as _default$1 } from "./components/copy-button/CopyButton.vue.js";
|
|
15
13
|
import { CopyButtonProps } from "./components/copy-button/index.js";
|
|
16
|
-
import { _default as _default$
|
|
14
|
+
import { _default as _default$5 } from "./components/preset-input/PresetInput.vue.js";
|
|
17
15
|
import { PresetInputOptions, PresetInputProps, PresetInputType } from "./components/preset-input/index.js";
|
|
18
|
-
import { _default as _default$
|
|
16
|
+
import { _default as _default$4 } from "./components/preset-form/PresetForm.vue.js";
|
|
19
17
|
import { PresetFormExpose, PresetFormInst, PresetFormOptionItem, PresetFormOptions, PresetFormProps } from "./components/preset-form/index.js";
|
|
20
|
-
import { _default as _default$
|
|
18
|
+
import { _default as _default$6 } from "./components/preset-picker/PresetPicker.vue.js";
|
|
21
19
|
import { PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerProps, PresetPickerValue } from "./components/preset-picker/index.js";
|
|
22
|
-
import { _default as _default$
|
|
20
|
+
import { _default as _default$7 } from "./components/preset-select/PresetSelect.vue.js";
|
|
23
21
|
import { ArrayAwareType, OptionFormat, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue } from "./components/preset-select/index.js";
|
|
24
|
-
import { _default as _default$
|
|
25
|
-
import { _default as _default$
|
|
22
|
+
import { _default as _default$10 } from "./components/toggle-input/ToggleInput.vue.js";
|
|
23
|
+
import { _default as _default$11 } from "./components/tooltip-button/TooltipButton.vue.js";
|
|
26
24
|
import { TooltipButtonProps } from "./components/tooltip-button/index.js";
|
|
27
|
-
import { _default as _default$
|
|
25
|
+
import { _default as _default$12 } from "./components/transition/BaseTransition.vue.js";
|
|
28
26
|
import { TransitionProps } from "./components/transition/index.js";
|
|
29
|
-
import { _default as _default$
|
|
27
|
+
import { _default as _default$13 } from "./components/type-writer/TypeWriter.vue.js";
|
|
30
28
|
import { TypeWriterProps } from "./components/type-writer/index.js";
|
|
31
29
|
import "./components/index.js";
|
|
32
|
-
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots
|
|
33
|
-
export { ArrayAwareType,
|
|
30
|
+
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots } from "vue-component-type-helpers";
|
|
31
|
+
export { ArrayAwareType, ClassStyle, ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ConfigProvidersProps, CopyButtonProps, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps, LoadingProviderProps, _default as NConfigProviders, _default$1 as NCopyButton, _default$2 as NDataTablePlus, _default$3 as NLoadingProvider, _default$4 as NPresetForm, _default$5 as NPresetInput, _default$6 as NPresetPicker, _default$7 as NPresetSelect, _default$8 as NRemoteRequest, _default$9 as NSearchInput, _default$10 as NToggleInput, _default$11 as NTooltipButton, _default$12 as NTransition, _default$13 as NTypeWriter, NaiveFormRules, OptionFormat, PresetFormExpose, PresetFormInst, PresetFormOptionItem, PresetFormOptions, PresetFormProps, PresetInputOptions, PresetInputProps, PresetInputType, PresetPickerEmits, PresetPickerExpose, PresetPickerInst, PresetPickerProps, PresetPickerValue, PresetSelectEmits, PresetSelectExpose, PresetSelectFields, PresetSelectInst, PresetSelectProps, PresetSelectValue, RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps, SearchInputProps, TooltipButtonProps, TransitionProps, TypeWriterProps, loadingProviderInjectionKey };
|
package/dist/components.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import BaseTransition_default from "./components/transition/BaseTransition.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import FullLoading_default from "./components/full-loading/FullLoading.js";
|
|
2
|
+
import LoadingProvider_default from "./components/loading-provider/LoadingProvider.js";
|
|
3
|
+
import { loadingProviderInjectionKey } from "./components/loading-provider/index.js";
|
|
5
4
|
import ConfigProviders_default from "./components/config-providers/ConfigProviders.js";
|
|
6
5
|
import CopyButton_default from "./components/copy-button/CopyButton.js";
|
|
7
6
|
import SearchInput_default from "./components/search-input/SearchInput.js";
|
|
@@ -13,6 +12,7 @@ import PresetSelect_default from "./components/preset-select/PresetSelect.js";
|
|
|
13
12
|
import RemoteRequest_default from "./components/remote-request/RemoteRequest.js";
|
|
14
13
|
import ToggleInput_default from "./components/toggle-input/ToggleInput.js";
|
|
15
14
|
import TooltipButton_default from "./components/tooltip-button/TooltipButton.js";
|
|
16
|
-
import
|
|
15
|
+
import TypeWriter_default from "./components/type-writer/TypeWriter.js";
|
|
16
|
+
import { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots } from "vue-component-type-helpers";
|
|
17
17
|
|
|
18
|
-
export { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots,
|
|
18
|
+
export { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ConfigProviders_default as NConfigProviders, CopyButton_default as NCopyButton, DataTablePlus_default as NDataTablePlus, LoadingProvider_default as NLoadingProvider, PresetForm_default as NPresetForm, PresetInput_default as NPresetInput, PresetPicker_default as NPresetPicker, PresetSelect_default as NPresetSelect, RemoteRequest_default as NRemoteRequest, SearchInput_default as NSearchInput, ToggleInput_default as NToggleInput, TooltipButton_default as NTooltipButton, BaseTransition_default as NTransition, TypeWriter_default as NTypeWriter, loadingProviderInjectionKey };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { DataObject, DataRequestFields, UseDataRequestOptions, UseDataRequestPagination, UseDataRequestReturns, useDataRequest } from "./useDataRequest.js";
|
|
2
|
+
import { useLoading } from "./useLoading.js";
|
|
2
3
|
import { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./useNaiveForm.js";
|
|
3
4
|
import { NaiveThemeReturns, useNaiveTheme } from "./useNaiveTheme.js";
|
|
@@ -27,7 +27,7 @@ declare function useDataRequest<P extends DataObject = DataObject, D extends Dat
|
|
|
27
27
|
loading: Readonly<vue0.Ref<boolean, boolean>>;
|
|
28
28
|
data: Readonly<vue0.Ref<D | undefined, D | undefined>>;
|
|
29
29
|
error: Readonly<vue0.Ref<Error | undefined, Error | undefined>>;
|
|
30
|
-
params: Readonly<vue0.Ref<[] |
|
|
30
|
+
params: Readonly<vue0.Ref<P[] | [], P[] | []>>;
|
|
31
31
|
list: vue0.ComputedRef<R[]>;
|
|
32
32
|
pagination: vue0.Ref<{
|
|
33
33
|
page: number;
|