@duxweb/dvha-pro 1.0.22 → 1.0.23
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/cjs/component.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -0
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +1 -1
- package/dist/esm/component.js +3 -3
- package/dist/esm/components/drawer/drawer.js +11 -10
- package/dist/esm/components/drawer/drawerPage.js +10 -10
- package/dist/esm/components/form/drawerForm.js +149 -0
- package/dist/esm/components/form/formItem.js +8 -8
- package/dist/esm/components/form/modalForm.js +1 -1
- package/dist/esm/components/form/pageForm.js +1 -1
- package/dist/esm/hooks/action.js +82 -82
- package/dist/esm/index.js +166 -164
- package/dist/esm/theme/uno.css.js +1 -1
- package/dist/types/components/drawer/drawerPage.d.ts +1 -1
- package/dist/types/components/form/drawerForm.d.ts +98 -0
- package/dist/types/components/form/index.d.ts +1 -0
- package/dist/types/hooks/table/types.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const r = `/* layer: properties */
|
|
2
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:0;--un-border-style:solid;--un-divide-
|
|
2
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:0;--un-border-style:solid;--un-divide-x-reverse:0;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
|
|
3
3
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
4
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
5
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { IDataProviderError, IDataProviderResponse } from '@duxweb/dvha-core';
|
|
2
|
+
import type { MaybeRef, PropType } from 'vue';
|
|
3
|
+
export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
id: {
|
|
5
|
+
type: PropType<string | number>;
|
|
6
|
+
};
|
|
7
|
+
action: {
|
|
8
|
+
type: PropType<"create" | "edit">;
|
|
9
|
+
};
|
|
10
|
+
path: {
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
15
|
+
};
|
|
16
|
+
onClose: {
|
|
17
|
+
type: PropType<() => void>;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
onSuccess: {
|
|
23
|
+
type: PropType<(data?: IDataProviderResponse) => void>;
|
|
24
|
+
};
|
|
25
|
+
onError: {
|
|
26
|
+
type: PropType<(error?: IDataProviderError) => void>;
|
|
27
|
+
};
|
|
28
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
|
+
labelPlacement: {
|
|
30
|
+
type: PropType<"left" | "top" | "setting" | "page">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
labelAlign: {
|
|
34
|
+
type: PropType<"left" | "right">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
labelWidth: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
};
|
|
40
|
+
inline: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
divider: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
labelPlacement: {
|
|
50
|
+
type: PropType<"left" | "top" | "setting" | "page">;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
labelAlign: {
|
|
54
|
+
type: PropType<"left" | "right">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
labelWidth: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
};
|
|
60
|
+
inline: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
divider: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{}>, {
|
|
69
|
+
inline: boolean;
|
|
70
|
+
labelAlign: "left" | "right";
|
|
71
|
+
labelPlacement: "left" | "top" | "page" | "setting";
|
|
72
|
+
divider: boolean;
|
|
73
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
id: {
|
|
75
|
+
type: PropType<string | number>;
|
|
76
|
+
};
|
|
77
|
+
action: {
|
|
78
|
+
type: PropType<"create" | "edit">;
|
|
79
|
+
};
|
|
80
|
+
path: {
|
|
81
|
+
type: PropType<string>;
|
|
82
|
+
};
|
|
83
|
+
data: {
|
|
84
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
85
|
+
};
|
|
86
|
+
onClose: {
|
|
87
|
+
type: PropType<() => void>;
|
|
88
|
+
};
|
|
89
|
+
title: {
|
|
90
|
+
type: PropType<string>;
|
|
91
|
+
};
|
|
92
|
+
onSuccess: {
|
|
93
|
+
type: PropType<(data?: IDataProviderResponse) => void>;
|
|
94
|
+
};
|
|
95
|
+
onError: {
|
|
96
|
+
type: PropType<(error?: IDataProviderError) => void>;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -33,14 +33,14 @@ export interface ConfirmActionItem extends BaseActionItem {
|
|
|
33
33
|
export interface RequestActionItem extends BaseActionItem {
|
|
34
34
|
type: 'request';
|
|
35
35
|
method?: 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
36
|
-
path?: string;
|
|
36
|
+
path: string | ((id?: unknown, item?: Record<string, any>) => string);
|
|
37
37
|
data?: Record<string, any> | ((id?: unknown, item?: Record<string, any>) => Record<string, any>);
|
|
38
38
|
content?: string;
|
|
39
39
|
}
|
|
40
40
|
export interface DeleteActionItem extends BaseActionItem {
|
|
41
41
|
type: 'delete';
|
|
42
42
|
content?: string;
|
|
43
|
-
path?: string;
|
|
43
|
+
path: string | ((id?: unknown, item?: Record<string, any>) => string);
|
|
44
44
|
}
|
|
45
45
|
export interface CallbackActionItem extends BaseActionItem {
|
|
46
46
|
type: 'callback';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-pro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.23",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ant-design/colors": "^7.2.1",
|
|
36
|
-
"@duxweb/dvha-core": "^1.0.
|
|
37
|
-
"@duxweb/dvha-naiveui": "^1.0.
|
|
36
|
+
"@duxweb/dvha-core": "^1.0.23",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.23",
|
|
38
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
39
|
"@overlastic/vue": "^0.8.1",
|
|
40
40
|
"@tanstack/vue-query": "^5.80.7",
|