@oiij/naive-ui 0.0.57 → 0.0.59
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/search-input/SearchInput.vue.d.ts +248 -24
- package/dist/components/toggle-editor/ToggleEditor.vue.d.ts +124 -12
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +2 -2
- package/dist/components/tooltip-button/index.d.ts +1 -1
- package/dist/components.cjs +20 -20
- package/dist/components.js +341 -333
- package/dist/components.umd.cjs +18 -18
- package/dist/composables/useDataRequest.cjs +6 -3
- package/dist/composables/useDataRequest.d.cts +1 -1
- package/dist/composables/useDataRequest.d.ts +7 -7
- package/dist/composables/useNaiveForm.cjs +4 -2
- package/dist/composables/useNaiveForm.d.ts +5 -5
- package/dist/composables/useNaiveTheme.cjs +6 -3
- package/dist/composables/useNaiveTheme.d.cts +6 -0
- package/dist/composables/useNaiveTheme.d.ts +6 -0
- package/package.json +16 -16
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let __vueuse_core = require("@vueuse/core");
|
|
3
|
+
__vueuse_core = require_rolldown_runtime.__toESM(__vueuse_core);
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
vue = require_rolldown_runtime.__toESM(vue);
|
|
6
|
+
let vue_hooks_plus_es_useRequest = require("vue-hooks-plus/es/useRequest");
|
|
7
|
+
vue_hooks_plus_es_useRequest = require_rolldown_runtime.__toESM(vue_hooks_plus_es_useRequest);
|
|
5
8
|
|
|
6
9
|
//#region src/composables/useDataRequest.ts
|
|
7
10
|
function useDataRequest(api, options) {
|
|
@@ -27,7 +27,7 @@ declare function useDataRequest<P extends DataObject = DataObject, D extends Dat
|
|
|
27
27
|
loading: Readonly<vue0.Ref<boolean, boolean>>;
|
|
28
28
|
data: Readonly<vue0.Ref<D | undefined, D | undefined>>;
|
|
29
29
|
error: Readonly<vue0.Ref<Error | undefined, Error | undefined>>;
|
|
30
|
-
params: Readonly<vue0.Ref<
|
|
30
|
+
params: Readonly<vue0.Ref<[] | P[], [] | P[]>>;
|
|
31
31
|
list: vue0.ComputedRef<R[]>;
|
|
32
32
|
pagination: vue0.Ref<{
|
|
33
33
|
page: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _vueuse_core0 from "@vueuse/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1 from "vue";
|
|
3
3
|
import { UseRequestOptions, UseRequestPlugin } from "vue-hooks-plus/es/useRequest/types";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/useDataRequest.d.ts
|
|
@@ -24,12 +24,12 @@ 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<
|
|
28
|
-
data: Readonly<
|
|
29
|
-
error: Readonly<
|
|
30
|
-
params: Readonly<
|
|
31
|
-
list:
|
|
32
|
-
pagination:
|
|
27
|
+
loading: Readonly<vue1.Ref<boolean, boolean>>;
|
|
28
|
+
data: Readonly<vue1.Ref<D | undefined, D | undefined>>;
|
|
29
|
+
error: Readonly<vue1.Ref<Error | undefined, Error | undefined>>;
|
|
30
|
+
params: Readonly<vue1.Ref<[] | P[], [] | P[]>>;
|
|
31
|
+
list: vue1.ComputedRef<R[]>;
|
|
32
|
+
pagination: vue1.Ref<{
|
|
33
33
|
page: number;
|
|
34
34
|
pageSize: number;
|
|
35
35
|
itemCount: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
let __vueuse_core = require("@vueuse/core");
|
|
3
|
+
__vueuse_core = require_rolldown_runtime.__toESM(__vueuse_core);
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
vue = require_rolldown_runtime.__toESM(vue);
|
|
4
6
|
|
|
5
7
|
//#region src/composables/useNaiveForm.ts
|
|
6
8
|
function isObject(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataObject } from "./useDataRequest.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _vueuse_core0 from "@vueuse/core";
|
|
3
|
+
import * as vue0 from "vue";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
import { FormInst, FormItemRule, FormRules } from "naive-ui";
|
|
6
6
|
import { ValidateError } from "async-validator";
|
|
@@ -22,8 +22,8 @@ declare function useNaiveForm<T extends DataObject = DataObject>(value?: T | Ref
|
|
|
22
22
|
formRules: Ref<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>, Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
|
|
23
23
|
formProps: {
|
|
24
24
|
ref: Ref<FormInst | undefined, FormInst | undefined>;
|
|
25
|
-
model:
|
|
26
|
-
rules:
|
|
25
|
+
model: vue0.Reactive<T>;
|
|
26
|
+
rules: vue0.Reactive<Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>>;
|
|
27
27
|
};
|
|
28
28
|
setValue: (_value: Partial<T>) => void;
|
|
29
29
|
validate: () => Promise<{
|
|
@@ -33,7 +33,7 @@ declare function useNaiveForm<T extends DataObject = DataObject>(value?: T | Ref
|
|
|
33
33
|
resetForm: () => void;
|
|
34
34
|
reset: () => void;
|
|
35
35
|
clear: () => void;
|
|
36
|
-
onValidated:
|
|
36
|
+
onValidated: _vueuse_core0.EventHookOn<[T]>;
|
|
37
37
|
};
|
|
38
38
|
type NaiveFormReturns<T extends DataObject = DataObject> = ReturnType<typeof useNaiveForm<T>>;
|
|
39
39
|
//#endregion
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
vue = require_rolldown_runtime.__toESM(vue);
|
|
4
|
+
let colord = require("colord");
|
|
5
|
+
colord = require_rolldown_runtime.__toESM(colord);
|
|
6
|
+
let naive_ui = require("naive-ui");
|
|
7
|
+
naive_ui = require_rolldown_runtime.__toESM(naive_ui);
|
|
5
8
|
|
|
6
9
|
//#region src/composables/useNaiveTheme.ts
|
|
7
10
|
function getStatusColor(color = "#ff461f") {
|
|
@@ -143,6 +143,12 @@ declare function useNaiveTheme(options?: NaiveThemeOptions): {
|
|
|
143
143
|
tipClose: string;
|
|
144
144
|
tipOriginalSize: string;
|
|
145
145
|
};
|
|
146
|
+
Heatmap: {
|
|
147
|
+
less: string;
|
|
148
|
+
more: string;
|
|
149
|
+
monthFormat: string;
|
|
150
|
+
weekdayFormat: string;
|
|
151
|
+
};
|
|
146
152
|
}>;
|
|
147
153
|
dateLocale: ComputedRef<NDateLocale>;
|
|
148
154
|
color: Ref<{
|
|
@@ -143,6 +143,12 @@ declare function useNaiveTheme(options?: NaiveThemeOptions): {
|
|
|
143
143
|
tipClose: string;
|
|
144
144
|
tipOriginalSize: string;
|
|
145
145
|
};
|
|
146
|
+
Heatmap: {
|
|
147
|
+
less: string;
|
|
148
|
+
more: string;
|
|
149
|
+
monthFormat: string;
|
|
150
|
+
weekdayFormat: string;
|
|
151
|
+
};
|
|
146
152
|
}>;
|
|
147
153
|
dateLocale: ComputedRef<NDateLocale>;
|
|
148
154
|
color: Ref<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oiij/naive-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.59",
|
|
5
5
|
"description": "Some Composable Functions And Components for Vue 3",
|
|
6
6
|
"author": "oiij",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,30 +38,30 @@
|
|
|
38
38
|
"package.json"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@vueuse/core": "^13.
|
|
41
|
+
"@vueuse/core": "^13.9.0",
|
|
42
42
|
"async-validator": "^4.2.5",
|
|
43
43
|
"colord": "^2.9.3",
|
|
44
|
-
"naive-ui": "^2.
|
|
44
|
+
"naive-ui": "^2.43.1",
|
|
45
45
|
"prismjs": "^1.30.0",
|
|
46
|
-
"vue": "^3.5.
|
|
47
|
-
"vue-hooks-plus": "^2.4.
|
|
48
|
-
"@oiij/css-render": "0.0.
|
|
49
|
-
"@oiij/markdown-it": "0.0.
|
|
50
|
-
"@oiij/use": "0.0.
|
|
46
|
+
"vue": "^3.5.21",
|
|
47
|
+
"vue-hooks-plus": "^2.4.1",
|
|
48
|
+
"@oiij/css-render": "0.0.4",
|
|
49
|
+
"@oiij/markdown-it": "0.0.6",
|
|
50
|
+
"@oiij/use": "0.0.23"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/prismjs": "^1.26.5",
|
|
54
|
-
"@vueuse/core": "^13.
|
|
54
|
+
"@vueuse/core": "^13.9.0",
|
|
55
55
|
"async-validator": "^4.2.5",
|
|
56
56
|
"colord": "^2.9.3",
|
|
57
|
-
"naive-ui": "^2.
|
|
57
|
+
"naive-ui": "^2.43.1",
|
|
58
58
|
"prismjs": "^1.30.0",
|
|
59
|
-
"vue": "^3.5.
|
|
60
|
-
"vue-component-type-helpers": "^3.0.
|
|
61
|
-
"vue-hooks-plus": "^2.4.
|
|
62
|
-
"@oiij/markdown-it": "0.0.
|
|
63
|
-
"@oiij/
|
|
64
|
-
"@oiij/
|
|
59
|
+
"vue": "^3.5.21",
|
|
60
|
+
"vue-component-type-helpers": "^3.0.7",
|
|
61
|
+
"vue-hooks-plus": "^2.4.1",
|
|
62
|
+
"@oiij/markdown-it": "0.0.6",
|
|
63
|
+
"@oiij/use": "0.0.23",
|
|
64
|
+
"@oiij/css-render": "0.0.4"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|