@oiij/naive-ui 0.0.66 → 0.0.68
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/_utils/index.js +2 -0
- package/dist/components/config-providers/ConfigProviders.js +13 -19
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +11 -11
- package/dist/components/config-providers/index.d.ts +7 -9
- package/dist/components/config-providers/index.js +1 -0
- package/dist/components/copy-button/CopyButton.vue.d.ts +13 -13
- package/dist/components/copy-button/index.js +1 -0
- package/dist/components/data-table-plus/DataTablePlus.js +1 -0
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +44 -44
- package/dist/components/data-table-plus/index.js +1 -0
- package/dist/components/index.d.ts +17 -19
- package/dist/components/index.js +28 -0
- package/dist/components/loading-provider/LoadingProvider.js +79 -0
- package/dist/components/loading-provider/LoadingProvider.vue.d.ts +38 -0
- package/dist/components/loading-provider/index.d.ts +24 -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} +6 -5
- package/dist/components/preset-form/PresetForm.js +1 -0
- package/dist/components/preset-form/PresetForm.vue.d.ts +19 -19
- package/dist/components/preset-form/index.js +1 -0
- package/dist/components/preset-input/PresetInput.js +1 -0
- package/dist/components/preset-input/PresetInput.vue.d.ts +4 -4
- package/dist/components/preset-input/index.js +1 -0
- package/dist/components/preset-picker/PresetPicker.js +1 -1
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +5 -5
- package/dist/components/preset-picker/index.js +1 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +28 -28
- package/dist/components/preset-select/index.js +1 -0
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +11 -11
- package/dist/components/remote-request/index.js +1 -0
- package/dist/components/search-input/SearchInput.vue.d.ts +12 -12
- package/dist/components/search-input/index.js +1 -0
- package/dist/components/toggle-input/index.js +1 -0
- package/dist/components/tooltip-button/index.js +1 -0
- package/dist/components/transition/BaseTransition.vue.d.ts +6 -6
- package/dist/components/transition/index.js +1 -0
- package/dist/components/type-writer/TypeWriter.js +2 -1
- package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -5
- package/dist/components/type-writer/index.js +1 -0
- package/dist/components/type-writer/type-writer.cssr.js +1 -0
- package/dist/components.d.ts +19 -21
- package/dist/components.js +6 -5
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +4 -0
- package/dist/composables/useDataRequest.d.ts +7 -7
- package/dist/composables/useLoading.d.ts +10 -0
- package/dist/composables/useLoading.js +10 -0
- package/dist/composables/useNaiveForm.d.ts +6 -6
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ClassStyle } from "../data-table-plus/index.js";
|
|
2
|
+
import { _default } from "./LoadingProvider.vue.js";
|
|
3
|
+
import { CSSProperties, InjectionKey, RendererElement } from "vue";
|
|
4
|
+
import { SpinProps } from "naive-ui";
|
|
5
|
+
|
|
6
|
+
//#region src/components/loading-provider/index.d.ts
|
|
7
|
+
type LoadingProviderInst = {
|
|
8
|
+
show: (options?: {
|
|
9
|
+
text?: string;
|
|
10
|
+
duration?: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
hide: () => void;
|
|
13
|
+
};
|
|
14
|
+
declare const loadingProviderInjectionKey: InjectionKey<LoadingProviderInst>;
|
|
15
|
+
type LoadingProviderProps = {
|
|
16
|
+
show?: boolean;
|
|
17
|
+
appendTo?: string | RendererElement;
|
|
18
|
+
mask?: boolean | CSSProperties;
|
|
19
|
+
blur?: boolean;
|
|
20
|
+
duration?: number;
|
|
21
|
+
spinProps?: Omit<SpinProps, 'show'> & ClassStyle;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { cssr, namespace, plugin } from "../_utils/cssr-bem.js";
|
|
2
|
+
import "../_utils/index.js";
|
|
2
3
|
import { cM } from "naive-ui";
|
|
3
4
|
|
|
4
|
-
//#region src/components/
|
|
5
|
+
//#region src/components/loading-provider/loading-provider.cssr.ts
|
|
5
6
|
const { c, cB } = {
|
|
6
7
|
...cssr,
|
|
7
8
|
...plugin
|
|
8
9
|
};
|
|
9
|
-
const cName = `${namespace}-
|
|
10
|
-
function
|
|
11
|
-
return c([cB("
|
|
10
|
+
const cName = `${namespace}-loading-provider`;
|
|
11
|
+
function loadingProviderCssr() {
|
|
12
|
+
return c([cB("loading-provider", {
|
|
12
13
|
position: "fixed",
|
|
13
14
|
inset: 0,
|
|
14
15
|
zIndex: 99,
|
|
@@ -19,4 +20,4 @@ function fullLoadingCssr() {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
//#endregion
|
|
22
|
-
export { cName,
|
|
23
|
+
export { cName, loadingProviderCssr };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useNaiveForm } from "../../composables/useNaiveForm.js";
|
|
2
2
|
import PresetInput_default from "../preset-input/PresetInput.js";
|
|
3
|
+
import "../preset-input/index.js";
|
|
3
4
|
import { mergeRule } from "./_utils.js";
|
|
4
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toValue, unref, useTemplateRef, withCtx } from "vue";
|
|
5
6
|
import { NButton, NCollapseTransition, NDivider, NForm, NFormItem, NGi, NGrid } from "naive-ui";
|
|
@@ -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_core38 from "@vueuse/core";
|
|
4
|
+
import * as vue69 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: vue69.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: vue69.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: vue69.Reactive<V>;
|
|
25
|
+
rules: vue69.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_core38.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: vue69.Reactive<V>;
|
|
44
|
+
rules: vue69.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_core38.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: vue69.Reactive<V>;
|
|
63
|
+
rules: vue69.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_core38.EventHookOn<[V]>;
|
|
74
74
|
}) => any;
|
|
75
75
|
};
|
|
76
76
|
emit: (e: "validated", val: V) => void;
|
|
77
|
-
}>) =>
|
|
77
|
+
}>) => vue69.VNode & {
|
|
78
78
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
79
79
|
};
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetForm_default from "./PresetForm.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import SearchInput_default from "../search-input/SearchInput.js";
|
|
2
|
+
import "../search-input/index.js";
|
|
2
3
|
import { createBlock, defineComponent, h, openBlock, resolveDynamicComponent } from "vue";
|
|
3
4
|
import { NButton, NCheckbox, NCheckboxGroup, NColorPicker, NDatePicker, NDivider, NDynamicTags, NInput, NInputNumber, NRadio, NRadioGroup, NRate, NSelect, NSlider, NSwitch, NTimePicker } from "naive-ui";
|
|
4
5
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PresetInputProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue18 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: vue18.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
|
+
}>) => vue18.VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetInput_default from "./PresetInput.js";
|
|
@@ -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 vue81 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: vue81.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: vue81.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
|
+
}>) => vue81.VNode & {
|
|
58
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
59
|
};
|
|
60
60
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetPicker_default from "./PresetPicker.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
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_core41 from "@vueuse/core";
|
|
4
|
+
import * as vue78 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> & {
|
|
9
|
+
props: vue78.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
|
|
10
10
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
11
11
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
12
12
|
onClear?: (() => any) | undefined;
|
|
@@ -15,15 +15,15 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
|
|
|
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
|
-
onCreate?: ((label: string) => any) | undefined;
|
|
20
20
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
21
21
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
22
|
-
|
|
23
|
-
}> &
|
|
22
|
+
onCreate?: ((label: string) => any) | undefined;
|
|
23
|
+
}> & (typeof globalThis extends {
|
|
24
24
|
__VLS_PROPS_FALLBACK: infer P_1;
|
|
25
25
|
} ? P_1 : {});
|
|
26
|
-
expose: (exposed:
|
|
26
|
+
expose: (exposed: vue78.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_core41.EventHookOn<[P[]]>;
|
|
55
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
56
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
57
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
86
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
87
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
88
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
117
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
118
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
119
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
148
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
149
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
150
|
+
onFinally: _vueuse_core41.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_core41.EventHookOn<[P[]]>;
|
|
179
|
+
onSuccess: _vueuse_core41.EventHookOn<[D, P[]]>;
|
|
180
|
+
onError: _vueuse_core41.EventHookOn<[Error, P[]]>;
|
|
181
|
+
onFinally: _vueuse_core41.EventHookOn<[P[], D | undefined, Error | undefined]>;
|
|
182
182
|
}) => any;
|
|
183
183
|
};
|
|
184
184
|
emit: PresetSelectEmits<V, P, D, R>;
|
|
185
|
-
}>) =>
|
|
185
|
+
}>) => vue78.VNode & {
|
|
186
186
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
187
187
|
};
|
|
188
188
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import PresetSelect_default from "./PresetSelect.js";
|
|
@@ -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> & {
|
|
8
|
+
props: vue32.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
|
|
9
9
|
onSuccess?: ((data: D, params: P[]) => any) | undefined;
|
|
10
10
|
onError?: ((err: Error, params: P[]) => any) | undefined;
|
|
11
|
-
onBefore?: ((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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import RemoteRequest_default from "./RemoteRequest.js";
|
|
@@ -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 vue35 from "vue";
|
|
4
|
+
import * as naive_ui15 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: vue35.DefineComponent<{
|
|
21
21
|
value?: string | null;
|
|
22
|
-
type?:
|
|
22
|
+
type?: naive_ui15.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_ui15.InputProps & ClassStyle;
|
|
28
|
+
buttonProps?: naive_ui15.ButtonProps & ClassStyle;
|
|
29
|
+
}, {}, {}, {}, {}, vue35.ComponentOptionsMixin, vue35.ComponentOptionsMixin, {} & {
|
|
30
30
|
"update:value": (v: string | null | undefined) => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue35.PublicProps, Readonly<{
|
|
32
32
|
value?: string | null;
|
|
33
|
-
type?:
|
|
33
|
+
type?: naive_ui15.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_ui15.InputProps & ClassStyle;
|
|
39
|
+
buttonProps?: naive_ui15.ButtonProps & ClassStyle;
|
|
40
40
|
}> & Readonly<{
|
|
41
41
|
"onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
|
|
42
|
-
}>, {}, {}, {}, {}, string,
|
|
42
|
+
}>, {}, {}, {}, {}, string, vue35.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 & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import SearchInput_default from "./SearchInput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ToggleInput_default from "./ToggleInput.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import TooltipButton_default from "./TooltipButton.js";
|
|
@@ -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 vue25 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: vue25.DefineComponent<{
|
|
11
11
|
name?: string;
|
|
12
|
-
transitionProps?:
|
|
13
|
-
}, {}, {}, {}, {},
|
|
12
|
+
transitionProps?: vue25.TransitionProps & ClassStyle;
|
|
13
|
+
}, {}, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {}, string, vue25.PublicProps, Readonly<{
|
|
14
14
|
name?: string;
|
|
15
|
-
transitionProps?:
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
15
|
+
transitionProps?: vue25.TransitionProps & ClassStyle;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, vue25.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 & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import BaseTransition_default from "./BaseTransition.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { highlight } from "../_utils/prismjs.js";
|
|
2
|
+
import "../_utils/index.js";
|
|
2
3
|
import { cName, typeWriterCssr } from "./type-writer.cssr.js";
|
|
3
4
|
import { computed, createBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
4
|
-
import { NEl } from "naive-ui";
|
|
5
5
|
import { useStyle } from "@oiij/css-render";
|
|
6
|
+
import { NEl } from "naive-ui";
|
|
6
7
|
import { useMarkdownIt } from "@oiij/markdown-it";
|
|
7
8
|
import { useTypeWriter } from "@oiij/use";
|
|
8
9
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue54 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: vue54.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
|
+
}, {}, {}, {}, {}, vue54.ComponentOptionsMixin, vue54.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, vue54.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, vue54.ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import TypeWriter_default from "./TypeWriter.js";
|