@oiij/naive-ui 0.0.68 → 0.0.70

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 (45) hide show
  1. package/dist/components/config-providers/ConfigProviders.js +1 -1
  2. package/dist/components/config-providers/ConfigProviders.vue.d.ts +3 -24
  3. package/dist/components/config-providers/index.d.ts +2 -2
  4. package/dist/components/copy-button/CopyButton.vue.d.ts +5 -18
  5. package/dist/components/data-table-plus/DataTablePlus.js +1 -1
  6. package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +58 -114
  7. package/dist/components/data-table-plus/index.d.ts +1 -1
  8. package/dist/components/index.d.ts +1 -1
  9. package/dist/components/loading-provider/LoadingProvider.vue.d.ts +3 -19
  10. package/dist/components/preset-form/PresetForm.js +1 -1
  11. package/dist/components/preset-form/PresetForm.vue.d.ts +19 -19
  12. package/dist/components/preset-form/index.d.ts +2 -2
  13. package/dist/components/preset-input/PresetInput.vue.d.ts +3 -3
  14. package/dist/components/preset-picker/PresetPicker.vue.d.ts +5 -5
  15. package/dist/components/preset-picker/index.d.ts +1 -1
  16. package/dist/components/preset-select/PresetSelect.js +1 -1
  17. package/dist/components/preset-select/PresetSelect.vue.d.ts +32 -52
  18. package/dist/components/preset-select/index.d.ts +1 -1
  19. package/dist/components/remote-request/RemoteRequest.js +1 -1
  20. package/dist/components/remote-request/RemoteRequest.vue.d.ts +6 -10
  21. package/dist/components/remote-request/index.d.ts +1 -1
  22. package/dist/components/search-input/SearchInput.js +2 -2
  23. package/dist/components/search-input/SearchInput.vue.d.ts +5 -25
  24. package/dist/components/toggle-input/ToggleInput.vue.d.ts +1 -1
  25. package/dist/components/tooltip-button/TooltipButton.vue.d.ts +3 -13
  26. package/dist/components/transition/BaseTransition.vue.d.ts +3 -10
  27. package/dist/components/type-writer/TypeWriter.vue.d.ts +5 -18
  28. package/dist/components.d.ts +1 -1
  29. package/dist/composables/_helper.js +7 -1
  30. package/dist/composables/index.d.ts +4 -4
  31. package/dist/composables/index.js +4 -4
  32. package/dist/composables/{useDataRequest.d.ts → use-data-request.d.ts} +9 -13
  33. package/dist/composables/{useDataRequest.js → use-data-request.js} +1 -1
  34. package/dist/composables/use-loading.d.ts +6 -0
  35. package/dist/composables/{useLoading.js → use-loading.js} +1 -1
  36. package/dist/composables/{useNaiveForm.d.ts → use-naive-form.d.ts} +8 -8
  37. package/dist/composables/{useNaiveForm.js → use-naive-form.js} +1 -1
  38. package/dist/composables/use-naive-theme.d.ts +52 -0
  39. package/dist/composables/use-naive-theme.js +89 -0
  40. package/dist/index.d.ts +5 -5
  41. package/dist/index.js +4 -4
  42. package/package.json +7 -7
  43. package/dist/composables/useLoading.d.ts +0 -10
  44. package/dist/composables/useNaiveTheme.d.ts +0 -171
  45. package/dist/composables/useNaiveTheme.js +0 -86
@@ -1,11 +1,11 @@
1
- import { DataObject } from "../../composables/useDataRequest.js";
1
+ import { DataObject } from "../../composables/use-data-request.js";
2
2
  import { PresetPickerEmits, PresetPickerExpose, PresetPickerProps, PresetPickerValue } from "./index.js";
3
- import * as vue81 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: vue81.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: vue81.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
- }>) => vue81.VNode & {
57
+ }>) => vue60.VNode & {
58
58
  __ctx?: Awaited<typeof __VLS_setup>;
59
59
  };
60
60
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { DataObject } from "../../composables/useDataRequest.js";
1
+ import { DataObject } from "../../composables/use-data-request.js";
2
2
  import { ClassStyle } from "../data-table-plus/index.js";
3
3
  import { _default } from "./PresetPicker.vue.js";
4
4
  import { Ref } from "vue";
@@ -1,4 +1,4 @@
1
- import { useDataRequest } from "../../composables/useDataRequest.js";
1
+ import { useDataRequest } from "../../composables/use-data-request.js";
2
2
  import { useDebounceFn } from "@vueuse/core";
3
3
  import { computed, createBlock, createCommentVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, reactive, ref, renderSlot, toRaw, toValue, unref, useTemplateRef, withCtx } from "vue";
4
4
  import { NFlex, NPagination, NSelect } from "naive-ui";
@@ -1,12 +1,12 @@
1
- import { DataObject } from "../../composables/useDataRequest.js";
1
+ import { DataObject, UseDataRequestPagination } from "../../composables/use-data-request.js";
2
2
  import { PresetSelectEmits, PresetSelectExpose, PresetSelectProps, PresetSelectValue } from "./index.js";
3
- import * as _vueuse_core41 from "@vueuse/core";
4
- import * as vue78 from "vue";
3
+ import * as _vueuse_core11 from "@vueuse/core";
4
+ import * as vue42 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: vue78.PublicProps & __VLS_PrettifyLocal<PresetSelectProps<V, P, D, R> & {
9
+ props: vue42.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;
@@ -17,13 +17,13 @@ declare const __VLS_export: <V extends PresetSelectValue, P extends DataObject,
17
17
  onSearch?: ((value: string) => any) | undefined;
18
18
  onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
19
19
  onBefore?: ((params: P[]) => any) | undefined;
20
+ onCreate?: ((label: string) => any) | undefined;
20
21
  "onUpdate:page"?: ((page: number) => any) | undefined;
21
22
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
22
- onCreate?: ((label: string) => any) | undefined;
23
23
  }> & (typeof globalThis extends {
24
24
  __VLS_PROPS_FALLBACK: infer P_1;
25
25
  } ? P_1 : {});
26
- expose: (exposed: vue78.ShallowUnwrapRef<PresetSelectExpose<P, D, R>>) => void;
26
+ expose: (exposed: vue42.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_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]>;
50
+ onBefore: _vueuse_core11.EventHookOn<[P[]]>;
51
+ onSuccess: _vueuse_core11.EventHookOn<[D, P[]]>;
52
+ onError: _vueuse_core11.EventHookOn<[Error, P[]]>;
53
+ onFinally: _vueuse_core11.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_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]>;
77
+ onBefore: _vueuse_core11.EventHookOn<[P[]]>;
78
+ onSuccess: _vueuse_core11.EventHookOn<[D, P[]]>;
79
+ onError: _vueuse_core11.EventHookOn<[Error, P[]]>;
80
+ onFinally: _vueuse_core11.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_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]>;
104
+ onBefore: _vueuse_core11.EventHookOn<[P[]]>;
105
+ onSuccess: _vueuse_core11.EventHookOn<[D, P[]]>;
106
+ onError: _vueuse_core11.EventHookOn<[Error, P[]]>;
107
+ onFinally: _vueuse_core11.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_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]>;
131
+ onBefore: _vueuse_core11.EventHookOn<[P[]]>;
132
+ onSuccess: _vueuse_core11.EventHookOn<[D, P[]]>;
133
+ onError: _vueuse_core11.EventHookOn<[Error, P[]]>;
134
+ onFinally: _vueuse_core11.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_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]>;
158
+ onBefore: _vueuse_core11.EventHookOn<[P[]]>;
159
+ onSuccess: _vueuse_core11.EventHookOn<[D, P[]]>;
160
+ onError: _vueuse_core11.EventHookOn<[Error, P[]]>;
161
+ onFinally: _vueuse_core11.EventHookOn<[P[], D | undefined, Error | undefined]>;
182
162
  }) => any;
183
163
  };
184
164
  emit: PresetSelectEmits<V, P, D, R>;
185
- }>) => vue78.VNode & {
165
+ }>) => vue42.VNode & {
186
166
  __ctx?: Awaited<typeof __VLS_setup>;
187
167
  };
188
168
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { DataObject, DataRequestFields, UseDataRequestReturns } from "../../composables/useDataRequest.js";
1
+ import { DataObject, DataRequestFields, UseDataRequestReturns } from "../../composables/use-data-request.js";
2
2
  import { RemoteRequestEmits, RemoteRequestProps } from "../remote-request/index.js";
3
3
  import { ClassStyle } from "../data-table-plus/index.js";
4
4
  import { _default } from "./PresetSelect.vue.js";
@@ -1,4 +1,4 @@
1
- import { useDataRequest } from "../../composables/useDataRequest.js";
1
+ import { useDataRequest } from "../../composables/use-data-request.js";
2
2
  import { computed, defineComponent, guardReactiveProps, normalizeProps, renderSlot, toValue } from "vue";
3
3
 
4
4
  //#region src/components/remote-request/RemoteRequest.vue
@@ -1,11 +1,11 @@
1
- import { DataObject } from "../../composables/useDataRequest.js";
1
+ import { DataObject, UseDataRequestPagination } from "../../composables/use-data-request.js";
2
2
  import { RemoteRequestEmits, RemoteRequestExpose, RemoteRequestProps } from "./index.js";
3
3
  import * as _vueuse_core4 from "@vueuse/core";
4
- import * as vue32 from "vue";
4
+ import * as vue18 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> & {
8
+ props: vue18.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
11
  onFinally?: ((params: P[], data?: D | undefined, err?: Error | undefined) => any) | undefined;
@@ -13,7 +13,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
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: vue18.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;
@@ -47,7 +43,7 @@ declare const __VLS_export: <P extends DataObject, D extends DataObject, R exten
47
43
  }) => any;
48
44
  };
49
45
  emit: RemoteRequestEmits<P, D>;
50
- }>) => vue32.VNode & {
46
+ }>) => vue18.VNode & {
51
47
  __ctx?: Awaited<typeof __VLS_setup>;
52
48
  };
53
49
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { DataObject, DataRequestFields, UseDataRequestReturns } from "../../composables/useDataRequest.js";
1
+ import { DataObject, DataRequestFields, UseDataRequestReturns } from "../../composables/use-data-request.js";
2
2
  import { _default } from "./RemoteRequest.vue.js";
3
3
  import { ComponentExposed } from "vue-component-type-helpers";
4
4
  import { UseRequestOptions, UseRequestPlugin } from "vue-hooks-plus/es/useRequest/types";
@@ -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 vue35 from "vue";
4
- import * as naive_ui15 from "naive-ui";
1
+ import { SearchInputProps } from "./index.js";
2
+ import * as vue50 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: vue35.DefineComponent<{
21
- value?: string | null;
22
- type?: naive_ui15.ButtonProps["type"];
23
- placeholder?: string;
24
- loading?: boolean;
25
- autoTrigger?: boolean | number;
26
- searchButton?: "text" | "icon" | boolean;
27
- inputProps?: naive_ui15.InputProps & ClassStyle;
28
- buttonProps?: naive_ui15.ButtonProps & ClassStyle;
29
- }, {}, {}, {}, {}, vue35.ComponentOptionsMixin, vue35.ComponentOptionsMixin, {} & {
18
+ declare const __VLS_base: vue50.DefineComponent<SearchInputProps, {}, {}, {}, {}, vue50.ComponentOptionsMixin, vue50.ComponentOptionsMixin, {} & {
30
19
  "update:value": (v: string | null | undefined) => any;
31
- }, string, vue35.PublicProps, Readonly<{
32
- value?: string | null;
33
- type?: naive_ui15.ButtonProps["type"];
34
- placeholder?: string;
35
- loading?: boolean;
36
- autoTrigger?: boolean | number;
37
- searchButton?: "text" | "icon" | boolean;
38
- inputProps?: naive_ui15.InputProps & ClassStyle;
39
- buttonProps?: naive_ui15.ButtonProps & ClassStyle;
40
- }> & Readonly<{
20
+ }, string, vue50.PublicProps, Readonly<SearchInputProps> & Readonly<{
41
21
  "onUpdate:value"?: ((v: string | null | undefined) => any) | undefined;
42
- }>, {}, {}, {}, {}, string, vue35.ComponentProvideOptions, false, {}, any>;
22
+ }>, {}, {}, {}, {}, string, vue50.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 & {
@@ -32,8 +32,8 @@ declare const __VLS_base: vue13.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
32
32
  } & {
33
33
  trigger: () => any;
34
34
  }, string, vue13.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
35
- onTrigger?: (() => any) | undefined;
36
35
  "onUpdate:value"?: ((value: string | number | undefined) => any) | undefined;
36
+ onTrigger?: (() => any) | undefined;
37
37
  }>, {}, {}, {}, {}, string, vue13.ComponentProvideOptions, false, {}, any>;
38
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
39
  declare const _default: typeof __VLS_export;
@@ -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 vue8 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: vue8.DefineComponent<{
16
- tooltip?: string;
17
- tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
18
- buttonProps?: naive_ui0.ButtonProps & ClassStyle;
19
- }, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {} & {
13
+ declare const __VLS_base: vue8.DefineComponent<TooltipButtonProps, {}, {}, {}, {}, vue8.ComponentOptionsMixin, vue8.ComponentOptionsMixin, {} & {
20
14
  click: (ev: MouseEvent) => any;
21
- }, string, vue8.PublicProps, Readonly<{
22
- tooltip?: string;
23
- tooltipProps?: naive_ui0.TooltipProps & ClassStyle;
24
- buttonProps?: naive_ui0.ButtonProps & ClassStyle;
25
- }> & Readonly<{
15
+ }, string, vue8.PublicProps, Readonly<TooltipButtonProps> & Readonly<{
26
16
  onClick?: ((ev: MouseEvent) => any) | undefined;
27
17
  }>, {}, {}, {}, {}, string, vue8.ComponentProvideOptions, false, {}, any>;
28
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,19 +1,12 @@
1
- import { ClassStyle } from "../data-table-plus/index.js";
2
- import "../../components.js";
3
- import * as vue25 from "vue";
1
+ import { TransitionProps as TransitionProps$1 } from "./index.js";
2
+ import * as vue45 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: vue25.DefineComponent<{
11
- name?: string;
12
- transitionProps?: vue25.TransitionProps & ClassStyle;
13
- }, {}, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {}, string, vue25.PublicProps, Readonly<{
14
- name?: string;
15
- transitionProps?: vue25.TransitionProps & ClassStyle;
16
- }> & Readonly<{}>, {}, {}, {}, {}, string, vue25.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue45.DefineComponent<TransitionProps$1, {}, {}, {}, {}, vue45.ComponentOptionsMixin, vue45.ComponentOptionsMixin, {}, string, vue45.PublicProps, Readonly<TransitionProps$1> & Readonly<{}>, {}, {}, {}, {}, string, vue45.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 & {
@@ -1,35 +1,22 @@
1
- import * as vue54 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: vue54.DefineComponent<{
5
- value?: string;
6
- typing?: boolean;
7
- markdown?: boolean;
8
- step?: number;
9
- interval?: number;
10
- suffix?: string;
11
- }, {}, {}, {}, {}, vue54.ComponentOptionsMixin, vue54.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, vue54.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, vue54.ComponentProvideOptions, false, {}, any>;
19
+ }>, {}, {}, {}, {}, string, vue73.ComponentProvideOptions, false, {}, any>;
33
20
  declare const _default: typeof __VLS_export;
34
21
  //#endregion
35
22
  export { _default };
@@ -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";
@@ -7,6 +6,7 @@ import { _default as _default$2 } from "./components/data-table-plus/DataTablePl
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
8
  import { LoadingProviderInst, LoadingProviderProps, loadingProviderInjectionKey } from "./components/loading-provider/index.js";
9
+ import { NaiveFormRules } from "./composables/use-naive-form.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";
@@ -1,6 +1,12 @@
1
1
  import { colord } from "colord";
2
2
 
3
3
  //#region src/composables/_helper.ts
4
+ function getDarkColor(color) {
5
+ if (!color) return void 0;
6
+ const baseColor = colord(color);
7
+ if (!baseColor.isValid()) return void 0;
8
+ return baseColor.lighten(.2).toHex();
9
+ }
4
10
  function getStatusColor(color) {
5
11
  if (!color) return void 0;
6
12
  const baseColor = colord(color);
@@ -24,4 +30,4 @@ function getColors(colors) {
24
30
  }
25
31
 
26
32
  //#endregion
27
- export { getColors };
33
+ export { getColors, getDarkColor };
@@ -1,4 +1,4 @@
1
- import { DataObject, DataRequestFields, UseDataRequestOptions, UseDataRequestPagination, UseDataRequestReturns, useDataRequest } from "./useDataRequest.js";
2
- import { useLoading } from "./useLoading.js";
3
- import { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./useNaiveForm.js";
4
- import { NaiveThemeReturns, useNaiveTheme } from "./useNaiveTheme.js";
1
+ import { DataObject, DataRequestFields, UseDataRequestOptions, UseDataRequestPagination, UseDataRequestReturns, useDataRequest } from "./use-data-request.js";
2
+ import { useLoading } from "./use-loading.js";
3
+ import { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./use-naive-form.js";
4
+ import { NaiveThemeOptions, NaiveThemeReturns, useNaiveTheme } from "./use-naive-theme.js";
@@ -1,4 +1,4 @@
1
- import { useDataRequest } from "./useDataRequest.js";
2
- import { useLoading } from "./useLoading.js";
3
- import { useNaiveForm } from "./useNaiveForm.js";
4
- import { useNaiveTheme } from "./useNaiveTheme.js";
1
+ import { useDataRequest } from "./use-data-request.js";
2
+ import { useLoading } from "./use-loading.js";
3
+ import { useNaiveForm } from "./use-naive-form.js";
4
+ import { useNaiveTheme } from "./use-naive-theme.js";
@@ -1,8 +1,8 @@
1
1
  import * as _vueuse_core0 from "@vueuse/core";
2
- import * as vue2 from "vue";
2
+ import * as vue0 from "vue";
3
3
  import { UseRequestOptions, UseRequestPlugin } from "vue-hooks-plus/es/useRequest/types";
4
4
 
5
- //#region src/composables/useDataRequest.d.ts
5
+ //#region src/composables/use-data-request.d.ts
6
6
  type DataObject = Record<string, any>;
7
7
  type DataRequestFields = Record<string, string | undefined> & {
8
8
  page?: string;
@@ -24,20 +24,16 @@ type UseDataRequestPagination = {
24
24
  itemCount: number;
25
25
  };
26
26
  declare function useDataRequest<P extends DataObject = DataObject, D extends DataObject = DataObject, R extends DataObject = DataObject>(api: (...args: P[]) => Promise<D>, options?: UseDataRequestOptions<P, D>): {
27
- loading: Readonly<vue2.Ref<boolean, boolean>>;
28
- data: Readonly<vue2.Ref<D | undefined, D | undefined>>;
29
- error: Readonly<vue2.Ref<Error | undefined, Error | undefined>>;
30
- params: Readonly<vue2.Ref<[] | P[], [] | P[]>>;
31
- list: vue2.ComputedRef<R[]>;
32
- pagination: vue2.Ref<{
27
+ loading: Readonly<vue0.Ref<boolean, boolean>>;
28
+ data: Readonly<vue0.Ref<D | undefined, D | undefined>>;
29
+ error: Readonly<vue0.Ref<Error | undefined, Error | undefined>>;
30
+ params: Readonly<vue0.Ref<[] | P[], [] | P[]>>;
31
+ list: vue0.ComputedRef<R[]>;
32
+ pagination: vue0.Ref<{
33
33
  page: number;
34
34
  pageSize: number;
35
35
  itemCount: number;
36
- }, {
37
- page: number;
38
- pageSize: number;
39
- itemCount: number;
40
- } | {
36
+ }, UseDataRequestPagination | {
41
37
  page: number;
42
38
  pageSize: number;
43
39
  itemCount: number;
@@ -2,7 +2,7 @@ import { createEventHook } from "@vueuse/core";
2
2
  import { computed, ref } from "vue";
3
3
  import useRequest from "vue-hooks-plus/es/useRequest";
4
4
 
5
- //#region src/composables/useDataRequest.ts
5
+ //#region src/composables/use-data-request.ts
6
6
  function useDataRequest(api, options) {
7
7
  const { defaultParams, manual, fields, requestOptions, requestPlugins } = options ?? {};
8
8
  const _fields = {
@@ -0,0 +1,6 @@
1
+ import { LoadingProviderInst } from "../components/loading-provider/index.js";
2
+
3
+ //#region src/composables/use-loading.d.ts
4
+ declare function useLoading(): LoadingProviderInst | undefined;
5
+ //#endregion
6
+ export { useLoading };
@@ -1,7 +1,7 @@
1
1
  import { loadingProviderInjectionKey } from "../components/loading-provider/index.js";
2
2
  import { inject } from "vue";
3
3
 
4
- //#region src/composables/useLoading.ts
4
+ //#region src/composables/use-loading.ts
5
5
  function useLoading() {
6
6
  return inject(loadingProviderInjectionKey);
7
7
  }
@@ -1,11 +1,11 @@
1
- import { DataObject } from "./useDataRequest.js";
2
- import * as _vueuse_core0 from "@vueuse/core";
3
- import * as vue0 from "vue";
1
+ import { DataObject } from "./use-data-request.js";
2
+ import * as _vueuse_core3 from "@vueuse/core";
3
+ import * as vue5 from "vue";
4
4
  import { Ref, TemplateRef } from "vue";
5
5
  import { FormInst, FormItemRule, FormRules } from "naive-ui";
6
6
  import { ValidateError } from "async-validator";
7
7
 
8
- //#region src/composables/useNaiveForm.d.ts
8
+ //#region src/composables/use-naive-form.d.ts
9
9
  type NaiveFormClearRules = {
10
10
  string?: string | null;
11
11
  number?: number | null;
@@ -17,12 +17,12 @@ type NaiveFormOptions<T extends DataObject> = {
17
17
  clearRules?: NaiveFormClearRules;
18
18
  };
19
19
  declare function useNaiveForm<T extends DataObject = DataObject>(formRef: TemplateRef<FormInst>, value?: T | Ref<T>, options?: NaiveFormOptions<T>): {
20
- formRef: Readonly<vue0.ShallowRef<FormInst | null>>;
20
+ formRef: Readonly<vue5.ShallowRef<FormInst | null>>;
21
21
  formValue: Ref<T, T>;
22
22
  formRules: Ref<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>, Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
23
23
  formProps: {
24
- model: vue0.Reactive<T>;
25
- rules: vue0.Reactive<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
24
+ model: vue5.Reactive<T>;
25
+ rules: vue5.Reactive<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
26
26
  };
27
27
  setValue: (_value: Partial<T>) => void;
28
28
  validate: () => Promise<{
@@ -32,7 +32,7 @@ declare function useNaiveForm<T extends DataObject = DataObject>(formRef: Templa
32
32
  resetForm: () => void;
33
33
  reset: () => void;
34
34
  clear: () => void;
35
- onValidated: _vueuse_core0.EventHookOn<[T]>;
35
+ onValidated: _vueuse_core3.EventHookOn<[T]>;
36
36
  };
37
37
  type NaiveFormReturns<T extends DataObject = DataObject> = ReturnType<typeof useNaiveForm<T>>;
38
38
  //#endregion
@@ -2,7 +2,7 @@ import { createEventHook } from "@vueuse/core";
2
2
  import { reactive, ref, toRaw, toValue } from "vue";
3
3
  import { cloneDeep } from "es-toolkit/object";
4
4
 
5
- //#region src/composables/useNaiveForm.ts
5
+ //#region src/composables/use-naive-form.ts
6
6
  function isObject(value) {
7
7
  return typeof value === "object" && value !== null && !Array.isArray(value);
8
8
  }