@oiij/naive-ui 0.0.67 → 0.0.69

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.
Files changed (49) hide show
  1. package/dist/components/_utils/index.js +2 -0
  2. package/dist/components/config-providers/ConfigProviders.js +4 -2
  3. package/dist/components/config-providers/ConfigProviders.vue.d.ts +2 -23
  4. package/dist/components/config-providers/index.d.ts +3 -3
  5. package/dist/components/config-providers/index.js +1 -0
  6. package/dist/components/copy-button/CopyButton.vue.d.ts +5 -18
  7. package/dist/components/copy-button/index.js +1 -0
  8. package/dist/components/data-table-plus/DataTablePlus.js +1 -0
  9. package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +58 -114
  10. package/dist/components/data-table-plus/index.js +1 -0
  11. package/dist/components/index.d.ts +2 -2
  12. package/dist/components/index.js +28 -0
  13. package/dist/components/loading-provider/LoadingProvider.js +1 -0
  14. package/dist/components/loading-provider/LoadingProvider.vue.d.ts +3 -19
  15. package/dist/components/loading-provider/index.d.ts +4 -3
  16. package/dist/components/loading-provider/loading-provider.cssr.js +1 -0
  17. package/dist/components/preset-form/PresetForm.js +1 -0
  18. package/dist/components/preset-form/PresetForm.vue.d.ts +18 -18
  19. package/dist/components/preset-form/index.d.ts +1 -1
  20. package/dist/components/preset-form/index.js +1 -0
  21. package/dist/components/preset-input/PresetInput.js +1 -0
  22. package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
  23. package/dist/components/preset-input/index.js +1 -0
  24. package/dist/components/preset-picker/PresetPicker.vue.d.ts +4 -4
  25. package/dist/components/preset-picker/index.js +1 -0
  26. package/dist/components/preset-select/PresetSelect.vue.d.ts +33 -53
  27. package/dist/components/preset-select/index.js +1 -0
  28. package/dist/components/remote-request/RemoteRequest.vue.d.ts +13 -17
  29. package/dist/components/remote-request/index.js +1 -0
  30. package/dist/components/search-input/SearchInput.js +2 -2
  31. package/dist/components/search-input/SearchInput.vue.d.ts +5 -25
  32. package/dist/components/search-input/index.js +1 -0
  33. package/dist/components/toggle-input/index.js +1 -0
  34. package/dist/components/tooltip-button/TooltipButton.vue.d.ts +3 -13
  35. package/dist/components/tooltip-button/index.js +1 -0
  36. package/dist/components/transition/BaseTransition.vue.d.ts +3 -10
  37. package/dist/components/transition/index.js +1 -0
  38. package/dist/components/type-writer/TypeWriter.js +1 -0
  39. package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -18
  40. package/dist/components/type-writer/index.js +1 -0
  41. package/dist/components/type-writer/type-writer.cssr.js +1 -0
  42. package/dist/components.d.ts +3 -3
  43. package/dist/components.js +1 -0
  44. package/dist/composables/index.js +4 -0
  45. package/dist/composables/useDataRequest.d.ts +2 -6
  46. package/dist/composables/useLoading.d.ts +3 -7
  47. package/dist/composables/useNaiveTheme.d.ts +3 -9
  48. package/dist/index.js +1 -0
  49. package/package.json +7 -7
@@ -1,28 +1,28 @@
1
1
  import { DataObject } from "../../composables/useDataRequest.js";
2
2
  import { PresetFormExpose, PresetFormProps } from "./index.js";
3
- import * as _vueuse_core10 from "@vueuse/core";
4
- import * as vue57 from "vue";
5
- import * as naive_ui27 from "naive-ui";
3
+ import * as _vueuse_core28 from "@vueuse/core";
4
+ import * as vue36 from "vue";
5
+ import * as naive_ui0 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: vue57.PublicProps & __VLS_PrettifyLocal<PresetFormProps<V> & {
11
+ props: vue36.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: vue57.ShallowUnwrapRef<PresetFormExpose<V>>) => void;
16
+ expose: (exposed: vue36.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, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
22
+ formRules: Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
23
23
  formProps: {
24
- model: vue57.Reactive<V>;
25
- rules: vue57.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
24
+ model: vue36.Reactive<V>;
25
+ rules: vue36.Reactive<Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.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: _vueuse_core10.EventHookOn<[V]>;
35
+ onValidated: _vueuse_core28.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, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
41
+ formRules: Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
42
42
  formProps: {
43
- model: vue57.Reactive<V>;
44
- rules: vue57.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
43
+ model: vue36.Reactive<V>;
44
+ rules: vue36.Reactive<Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.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: _vueuse_core10.EventHookOn<[V]>;
54
+ onValidated: _vueuse_core28.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, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>;
60
+ formRules: Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.FormItemRule[]>>;
61
61
  formProps: {
62
- model: vue57.Reactive<V>;
63
- rules: vue57.Reactive<Partial<Record<keyof V, naive_ui27.FormRules | naive_ui27.FormItemRule | naive_ui27.FormItemRule[]>>>;
62
+ model: vue36.Reactive<V>;
63
+ rules: vue36.Reactive<Partial<Record<keyof V, naive_ui0.FormRules | naive_ui0.FormItemRule | naive_ui0.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: _vueuse_core10.EventHookOn<[V]>;
73
+ onValidated: _vueuse_core28.EventHookOn<[V]>;
74
74
  }) => any;
75
75
  };
76
76
  emit: (e: "validated", val: V) => void;
77
- }>) => vue57.VNode & {
77
+ }>) => vue36.VNode & {
78
78
  __ctx?: Awaited<typeof __VLS_setup>;
79
79
  };
80
80
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,6 @@
1
1
  import { DataObject } from "../../composables/useDataRequest.js";
2
- import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/useNaiveForm.js";
3
2
  import { ClassStyle } from "../data-table-plus/index.js";
3
+ import { NaiveFormClearRules, NaiveFormReturns, NaiveFormRules } from "../../composables/useNaiveForm.js";
4
4
  import { PresetInputOptions } from "../preset-input/index.js";
5
5
  import { _default } from "./PresetForm.vue.js";
6
6
  import { VNode } from "vue";
@@ -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,9 +1,9 @@
1
1
  import { PresetInputProps } from "./index.js";
2
- import * as vue52 from "vue";
2
+ import * as vue26 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: vue52.PublicProps & __VLS_PrettifyLocal<PresetInputProps<V> & {
6
+ props: vue26.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;
@@ -12,7 +12,7 @@ declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
12
12
  attrs: any;
13
13
  slots: {};
14
14
  emit: (e: "update:value", val?: V) => void;
15
- }>) => vue52.VNode & {
15
+ }>) => vue26.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,11 +1,11 @@
1
1
  import { DataObject } from "../../composables/useDataRequest.js";
2
2
  import { PresetPickerEmits, PresetPickerExpose, PresetPickerProps, PresetPickerValue } from "./index.js";
3
- import * as vue54 from "vue";
3
+ import * as vue60 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: vue54.PublicProps & __VLS_PrettifyLocal<PresetPickerProps<V, R> & {
8
+ props: vue60.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;
@@ -18,7 +18,7 @@ declare const __VLS_export: <V extends PresetPickerValue, R extends DataObject>(
18
18
  }> & (typeof globalThis extends {
19
19
  __VLS_PROPS_FALLBACK: infer P;
20
20
  } ? P : {});
21
- expose: (exposed: vue54.ShallowUnwrapRef<PresetPickerExpose<R>>) => void;
21
+ expose: (exposed: vue60.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
- }>) => vue54.VNode & {
57
+ }>) => vue60.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,29 +1,29 @@
1
- import { DataObject } from "../../composables/useDataRequest.js";
1
+ import { DataObject, UseDataRequestPagination } from "../../composables/useDataRequest.js";
2
2
  import { PresetSelectEmits, PresetSelectExpose, PresetSelectProps, PresetSelectValue } from "./index.js";
3
- import * as _vueuse_core13 from "@vueuse/core";
4
- import * as vue66 from "vue";
3
+ import * as _vueuse_core4 from "@vueuse/core";
4
+ import * as vue23 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: vue66.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
10
- onError?: ((err: Error, params: P[]) => any) | undefined;
9
+ props: vue23.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
11
10
  onSuccess?: ((data: D, params: P[]) => any) | undefined;
11
+ onError?: ((err: Error, 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;
19
18
  onBefore?: ((params: P[]) => any) | undefined;
20
19
  onCreate?: ((label: string) => any) | undefined;
21
20
  "onUpdate:page"?: ((page: number) => any) | undefined;
22
21
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
22
+ onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
23
23
  }> & (typeof globalThis extends {
24
24
  __VLS_PROPS_FALLBACK: infer P_1;
25
25
  } ? P_1 : {});
26
- expose: (exposed: vue66.ShallowUnwrapRef<PresetSelectExpose<P, D, R>>) => void;
26
+ expose: (exposed: vue23.ShallowUnwrapRef<PresetSelectExpose<P, D, R>>) => void;
27
27
  attrs: any;
28
28
  slots: {
29
29
  header?: (props: {
@@ -32,11 +32,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
32
32
  error: Error | undefined;
33
33
  params: [] | P[];
34
34
  list: R[];
35
- pagination: {
36
- page: number;
37
- pageSize: number;
38
- itemCount: number;
39
- } | {
35
+ pagination: UseDataRequestPagination | {
40
36
  page: number;
41
37
  pageSize: number;
42
38
  itemCount: number;
@@ -51,10 +47,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
51
47
  setParams: (_params: Partial<P>) => void;
52
48
  runParams: (_params: Partial<P>) => void;
53
49
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
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]>;
50
+ onBefore: _vueuse_core4.EventHookOn<[P[]]>;
51
+ onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
52
+ onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
53
+ onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
58
54
  }) => any;
59
55
  } & {
60
56
  footer?: (props: {
@@ -63,11 +59,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
63
59
  error: Error | undefined;
64
60
  params: [] | P[];
65
61
  list: R[];
66
- pagination: {
67
- page: number;
68
- pageSize: number;
69
- itemCount: number;
70
- } | {
62
+ pagination: UseDataRequestPagination | {
71
63
  page: number;
72
64
  pageSize: number;
73
65
  itemCount: number;
@@ -82,10 +74,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
82
74
  setParams: (_params: Partial<P>) => void;
83
75
  runParams: (_params: Partial<P>) => void;
84
76
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
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]>;
77
+ onBefore: _vueuse_core4.EventHookOn<[P[]]>;
78
+ onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
79
+ onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
80
+ onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
89
81
  }) => any;
90
82
  } & {
91
83
  'footer-extra'?: (props: {
@@ -94,11 +86,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
94
86
  error: Error | undefined;
95
87
  params: [] | P[];
96
88
  list: R[];
97
- pagination: {
98
- page: number;
99
- pageSize: number;
100
- itemCount: number;
101
- } | {
89
+ pagination: UseDataRequestPagination | {
102
90
  page: number;
103
91
  pageSize: number;
104
92
  itemCount: number;
@@ -113,10 +101,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
113
101
  setParams: (_params: Partial<P>) => void;
114
102
  runParams: (_params: Partial<P>) => void;
115
103
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
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]>;
104
+ onBefore: _vueuse_core4.EventHookOn<[P[]]>;
105
+ onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
106
+ onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
107
+ onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
120
108
  }) => any;
121
109
  } & {
122
110
  empty?: (props: {
@@ -125,11 +113,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
125
113
  error: Error | undefined;
126
114
  params: [] | P[];
127
115
  list: R[];
128
- pagination: {
129
- page: number;
130
- pageSize: number;
131
- itemCount: number;
132
- } | {
116
+ pagination: UseDataRequestPagination | {
133
117
  page: number;
134
118
  pageSize: number;
135
119
  itemCount: number;
@@ -144,10 +128,10 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
144
128
  setParams: (_params: Partial<P>) => void;
145
129
  runParams: (_params: Partial<P>) => void;
146
130
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
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]>;
131
+ onBefore: _vueuse_core4.EventHookOn<[P[]]>;
132
+ onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
133
+ onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
134
+ onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
151
135
  }) => any;
152
136
  } & {
153
137
  arrow?: (props: {
@@ -156,11 +140,7 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
156
140
  error: Error | undefined;
157
141
  params: [] | P[];
158
142
  list: R[];
159
- pagination: {
160
- page: number;
161
- pageSize: number;
162
- itemCount: number;
163
- } | {
143
+ pagination: UseDataRequestPagination | {
164
144
  page: number;
165
145
  pageSize: number;
166
146
  itemCount: number;
@@ -175,14 +155,14 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
175
155
  setParams: (_params: Partial<P>) => void;
176
156
  runParams: (_params: Partial<P>) => void;
177
157
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
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]>;
158
+ onBefore: _vueuse_core4.EventHookOn<[P[]]>;
159
+ onSuccess: _vueuse_core4.EventHookOn<[D, P[]]>;
160
+ onError: _vueuse_core4.EventHookOn<[Error, P[]]>;
161
+ onFinally: _vueuse_core4.EventHookOn<[P[], D | undefined, Error | undefined]>;
182
162
  }) => any;
183
163
  };
184
164
  emit: PresetSelectEmits<V, P, D, R>;
185
- }>) => vue66.VNode & {
165
+ }>) => vue23.VNode & {
186
166
  __ctx?: Awaited<typeof __VLS_setup>;
187
167
  };
188
168
  declare const _default: typeof __VLS_export;
@@ -0,0 +1 @@
1
+ import PresetSelect_default from "./PresetSelect.js";
@@ -1,19 +1,19 @@
1
- import { DataObject } from "../../composables/useDataRequest.js";
1
+ import { DataObject, UseDataRequestPagination } from "../../composables/useDataRequest.js";
2
2
  import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestProps } from "./index.js";
3
- import * as _vueuse_core4 from "@vueuse/core";
4
- import * as vue32 from "vue";
3
+ import * as _vueuse_core24 from "@vueuse/core";
4
+ import * as vue28 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: vue32.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
9
- onError?: ((err: Error, params: P[]) => any) | undefined;
8
+ props: vue28.PublicProps & __VLS_PrettifyLocal<RemoteRequestProps<P, D> & {
10
9
  onSuccess?: ((data: D, params: P[]) => any) | undefined;
11
- onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
10
+ onError?: ((err: Error, params: P[]) => any) | undefined;
12
11
  onBefore?: ((params: P[]) => any) | undefined;
12
+ onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P_1;
15
15
  } ? P_1 : {});
16
- expose: (exposed: vue32.ShallowUnwrapRef<RemoteRequestExpose<P, D, R>>) => void;
16
+ expose: (exposed: vue28.ShallowUnwrapRef<RemoteRequestExpose<P, D, R>>) => void;
17
17
  attrs: any;
18
18
  slots: {
19
19
  default?: (props: {
@@ -22,11 +22,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
22
22
  error: Error | undefined;
23
23
  params: [] | P[];
24
24
  list: R[];
25
- pagination: {
26
- page: number;
27
- pageSize: number;
28
- itemCount: number;
29
- } | {
25
+ pagination: UseDataRequestPagination | {
30
26
  page: number;
31
27
  pageSize: number;
32
28
  itemCount: number;
@@ -40,14 +36,14 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
40
36
  setParams: (_params: Partial<P>) => void;
41
37
  runParams: (_params: Partial<P>) => void;
42
38
  runParamsAsync: (_params: Partial<P>) => Promise<D>;
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]>;
39
+ onBefore: _vueuse_core24.EventHookOn<[P[]]>;
40
+ onSuccess: _vueuse_core24.EventHookOn<[D, P[]]>;
41
+ onError: _vueuse_core24.EventHookOn<[Error, P[]]>;
42
+ onFinally: _vueuse_core24.EventHookOn<[P[], D | undefined, Error | undefined]>;
47
43
  }) => any;
48
44
  };
49
45
  emit: RemoteRequestEmits<P, D>;
50
- }>) => vue32.VNode & {
46
+ }>) => vue28.VNode & {
51
47
  __ctx?: Awaited<typeof __VLS_setup>;
52
48
  };
53
49
  declare const _default: typeof __VLS_export;
@@ -0,0 +1 @@
1
+ import RemoteRequest_default from "./RemoteRequest.js";
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  const emit = __emit;
25
25
  const inputRef = useTemplateRef("input-ref");
26
26
  const _value = ref(__props.value ?? null);
27
- const _searchButtonType = computed(() => typeof __props.searchButton === "boolean" ? "text" : __props.searchButton);
27
+ const _searchButtonType = computed(() => typeof __props.searchButton === "boolean" ? "text" : __props.searchButton ?? "text");
28
28
  const { start } = useTimeoutFn(() => {}, typeof __props.autoTrigger === "number" ? __props.autoTrigger : 500);
29
29
  watchEffect(() => {
30
30
  _value.value = __props.value ?? null;
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
62
  }, 16, ["value", "placeholder"]), renderSlot(_ctx.$slots, "button", {
63
63
  value: __props.value,
64
64
  loading: __props.loading
65
- }, () => [_searchButtonType.value ? (openBlock(), createBlock(unref(NButton), mergeProps({
65
+ }, () => [__props.searchButton ? (openBlock(), createBlock(unref(NButton), mergeProps({
66
66
  key: 0,
67
67
  type: __props.type,
68
68
  loading: __props.loading
@@ -1,7 +1,5 @@
1
- import { ClassStyle } from "../data-table-plus/index.js";
2
- import "../../components.js";
3
- import * as vue40 from "vue";
4
- import * as naive_ui21 from "naive-ui";
1
+ import { SearchInputProps } from "./index.js";
2
+ import * as vue45 from "vue";
5
3
 
6
4
  //#region src/components/search-input/SearchInput.vue.d.ts
7
5
  declare var __VLS_19: {}, __VLS_21: {}, __VLS_28: {
@@ -17,29 +15,11 @@ type __VLS_Slots = {} & {
17
15
  } & {
18
16
  'button-icon'?: (props: typeof __VLS_39) => any;
19
17
  };
20
- declare const __VLS_base: vue40.DefineComponent<{
21
- value?: string | null;
22
- type?: naive_ui21.ButtonProps["type"];
23
- placeholder?: string;
24
- loading?: boolean;
25
- autoTrigger?: boolean | number;
26
- searchButton?: "text" | "icon" | boolean;
27
- inputProps?: naive_ui21.InputProps & ClassStyle;
28
- buttonProps?: naive_ui21.ButtonProps & ClassStyle;
29
- }, {}, {}, {}, {}, vue40.ComponentOptionsMixin, vue40.ComponentOptionsMixin, {} & {
18
+ declare const __VLS_base: vue45.DefineComponent<SearchInputProps, {}, {}, {}, {}, vue45.ComponentOptionsMixin, vue45.ComponentOptionsMixin, {} & {
30
19
  "update:value": (v: string | null | undefined) => any;
31
- }, string, vue40.PublicProps, Readonly<{
32
- value?: string | null;
33
- type?: naive_ui21.ButtonProps["type"];
34
- placeholder?: string;
35
- loading?: boolean;
36
- autoTrigger?: boolean | number;
37
- searchButton?: "text" | "icon" | boolean;
38
- inputProps?: naive_ui21.InputProps & ClassStyle;
39
- buttonProps?: naive_ui21.ButtonProps & ClassStyle;
40
- }> & Readonly<{
20
+ }, string, vue45.PublicProps, Readonly<SearchInputProps> & Readonly<{
41
21
  "onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
42
- }>, {}, {}, {}, {}, string, vue40.ComponentProvideOptions, false, {}, any>;
22
+ }>, {}, {}, {}, {}, string, vue45.ComponentProvideOptions, false, {}, any>;
43
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
24
  declare const _default: typeof __VLS_export;
45
25
  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";
@@ -1,7 +1,5 @@
1
- import { ClassStyle } from "../data-table-plus/index.js";
2
- import "../../components.js";
1
+ import { TooltipButtonProps } from "./index.js";
3
2
  import * as vue13 from "vue";
4
- import * as naive_ui0 from "naive-ui";
5
3
 
6
4
  //#region src/components/tooltip-button/TooltipButton.vue.d.ts
7
5
  declare var __VLS_17: {}, __VLS_20: {}, __VLS_22: {};
@@ -12,17 +10,9 @@ type __VLS_Slots = {} & {
12
10
  } & {
13
11
  tooltip?: (props: typeof __VLS_22) => any;
14
12
  };
15
- declare const __VLS_base: vue13.DefineComponent<{
16
- tooltip?: string;
17
- tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
18
- buttonProps?: naive_ui0.ButtonProps & ClassStyle;
19
- }, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {} & {
13
+ declare const __VLS_base: vue13.DefineComponent<TooltipButtonProps, {}, {}, {}, {}, vue13.ComponentOptionsMixin, vue13.ComponentOptionsMixin, {} & {
20
14
  click: (ev: MouseEvent) => any;
21
- }, string, vue13.PublicProps, Readonly<{
22
- tooltip?: string;
23
- tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
24
- buttonProps?: naive_ui0.ButtonProps & ClassStyle;
25
- }> & Readonly<{
15
+ }, string, vue13.PublicProps, Readonly<TooltipButtonProps> & Readonly<{
26
16
  onClick?: ((ev: MouseEvent) => any) | undefined;
27
17
  }>, {}, {}, {}, {}, string, vue13.ComponentProvideOptions, false, {}, any>;
28
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1 @@
1
+ import TooltipButton_default from "./TooltipButton.js";
@@ -1,19 +1,12 @@
1
- import { ClassStyle } from "../data-table-plus/index.js";
2
- import "../../components.js";
3
- import * as vue45 from "vue";
1
+ import { TransitionProps as TransitionProps$1 } from "./index.js";
2
+ import * as vue50 from "vue";
4
3
 
5
4
  //#region src/components/transition/BaseTransition.vue.d.ts
6
5
  declare var __VLS_7: {};
7
6
  type __VLS_Slots = {} & {
8
7
  default?: (props: typeof __VLS_7) => any;
9
8
  };
10
- declare const __VLS_base: vue45.DefineComponent<{
11
- name?: string;
12
- transitionProps?: vue45.TransitionProps & ClassStyle;
13
- }, {}, {}, {}, {}, vue45.ComponentOptionsMixin, vue45.ComponentOptionsMixin, {}, string, vue45.PublicProps, Readonly<{
14
- name?: string;
15
- transitionProps?: vue45.TransitionProps & ClassStyle;
16
- }> & Readonly<{}>, {}, {}, {}, {}, string, vue45.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue50.DefineComponent<TransitionProps$1, {}, {}, {}, {}, vue50.ComponentOptionsMixin, vue50.ComponentOptionsMixin, {}, string, vue50.PublicProps, Readonly<TransitionProps$1> & Readonly<{}>, {}, {}, {}, {}, string, vue50.ComponentProvideOptions, false, {}, any>;
17
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
11
  declare const _default: typeof __VLS_export;
19
12
  type __VLS_WithSlots<T, S> = T & {
@@ -0,0 +1 @@
1
+ import BaseTransition_default from "./BaseTransition.js";
@@ -1,4 +1,5 @@
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
5
  import { useStyle } from "@oiij/css-render";
@@ -1,35 +1,22 @@
1
- import * as vue79 from "vue";
1
+ import { TypeWriterProps } from "./index.js";
2
+ import * as vue73 from "vue";
2
3
 
3
4
  //#region src/components/type-writer/TypeWriter.vue.d.ts
4
- declare const __VLS_export: vue79.DefineComponent<{
5
- value?: string;
6
- typing?: boolean;
7
- markdown?: boolean;
8
- step?: number;
9
- interval?: number;
10
- suffix?: string;
11
- }, {}, {}, {}, {}, vue79.ComponentOptionsMixin, vue79.ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: vue73.DefineComponent<TypeWriterProps, {}, {}, {}, {}, vue73.ComponentOptionsMixin, vue73.ComponentOptionsMixin, {} & {
12
6
  start: () => any;
13
7
  update: (v: {
14
8
  index: number;
15
9
  value: string;
16
10
  }) => any;
17
11
  stop: (v: string) => any;
18
- }, string, vue79.PublicProps, Readonly<{
19
- value?: string;
20
- typing?: boolean;
21
- markdown?: boolean;
22
- step?: number;
23
- interval?: number;
24
- suffix?: string;
25
- }> & Readonly<{
12
+ }, string, vue73.PublicProps, Readonly<TypeWriterProps> & Readonly<{
26
13
  onStart?: (() => any) | undefined;
27
14
  onUpdate?: ((v: {
28
15
  index: number;
29
16
  value: string;
30
17
  }) => any) | undefined;
31
18
  onStop?: ((v: string) => any) | undefined;
32
- }>, {}, {}, {}, {}, string, vue79.ComponentProvideOptions, false, {}, any>;
19
+ }>, {}, {}, {}, {}, string, vue73.ComponentProvideOptions, false, {}, any>;
33
20
  declare const _default: typeof __VLS_export;
34
21
  //#endregion
35
22
  export { _default };
@@ -0,0 +1 @@
1
+ import TypeWriter_default from "./TypeWriter.js";
@@ -1,4 +1,5 @@
1
1
  import { cssr, namespace, plugin } from "../_utils/cssr-bem.js";
2
+ import "../_utils/index.js";
2
3
 
3
4
  //#region src/components/type-writer/type-writer.cssr.ts
4
5
  const prismjsDark = `
@@ -1,4 +1,3 @@
1
- import { NaiveFormRules } from "./composables/useNaiveForm.js";
2
1
  import { _default as _default$8 } from "./components/remote-request/RemoteRequest.vue.js";
3
2
  import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestFields, RemoteRequestInst, RemoteRequestProps } from "./components/remote-request/index.js";
4
3
  import { _default as _default$9 } from "./components/search-input/SearchInput.vue.js";
@@ -6,7 +5,8 @@ import { SearchInputProps } from "./components/search-input/index.js";
6
5
  import { _default as _default$2 } from "./components/data-table-plus/DataTablePlus.vue.js";
7
6
  import { ClassStyle, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps } from "./components/data-table-plus/index.js";
8
7
  import { _default as _default$3 } from "./components/loading-provider/LoadingProvider.vue.js";
9
- import { LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.js";
8
+ import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.js";
9
+ import { NaiveFormRules } from "./composables/useNaiveForm.js";
10
10
  import { _default } from "./components/config-providers/ConfigProviders.vue.js";
11
11
  import { ConfigProvidersProps } from "./components/config-providers/index.js";
12
12
  import { _default as _default$1 } from "./components/copy-button/CopyButton.vue.js";
@@ -28,4 +28,4 @@ import { _default as _default$13 } from "./components/type-writer/TypeWriter.vue
28
28
  import { TypeWriterProps } from "./components/type-writer/index.js";
29
29
  import "./components/index.js";
30
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 };
31
+ export { ArrayAwareType, ClassStyle, ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentSlots, ConfigProvidersProps, CopyButtonProps, DataTablePlusEmits, DataTablePlusExpose, DataTablePlusFields, DataTablePlusInst, DataTablePlusProps, LoadingProviderInst, 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 };