@epie/bi-crud 2.0.13 → 2.0.14
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/lib/bi-crud.esm.js +5744 -12118
- package/lib/bi-crud.umd.js +13576 -19947
- package/lib/components/crud/helper.d.ts +1 -1
- package/lib/components/descriptions/descriptions.d.ts +100 -0
- package/lib/components/descriptions/index.d.ts +5 -70
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/{types/base → components/form}/form.d.ts +1 -1
- package/lib/components/form/helper.d.ts +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/inline-search/index.d.ts +1 -1
- package/lib/components/search-key.d.ts +1 -1
- package/lib/components/upsert/index.d.ts +3 -3
- package/lib/hooks/crud.d.ts +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/types/base/index.d.ts +1 -2
- package/package.json +22 -17
- package/lib/types/base/descriptions.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fun } from "../../types";
|
|
2
2
|
export declare function useHelper({ mitt, props, crud }: any): {
|
|
3
|
-
proxy: (name: string, data?: any[]
|
|
3
|
+
proxy: (name: string, data?: any[]) => void;
|
|
4
4
|
set: (key: string, value: any) => void;
|
|
5
5
|
on: (name: string, callback: fun) => void;
|
|
6
6
|
rowAdd: () => void;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
import { EpieColumn } from "../..";
|
|
3
|
+
export declare const epieDescriptionsProps: () => {
|
|
4
|
+
border: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
column: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
direction: {
|
|
13
|
+
type: PropType<"horizontal" | "vertical">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
extra: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
columns: {
|
|
28
|
+
type: PropType<EpieColumn[]>;
|
|
29
|
+
default: never[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare type EpieDescriptionsProps = Partial<ExtractPropTypes<ReturnType<typeof epieDescriptionsProps>>>;
|
|
33
|
+
declare const _default: import("vue").DefineComponent<{
|
|
34
|
+
border: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
column: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
direction: {
|
|
43
|
+
type: PropType<"horizontal" | "vertical">;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
48
|
+
};
|
|
49
|
+
title: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
extra: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
columns: {
|
|
58
|
+
type: PropType<EpieColumn[]>;
|
|
59
|
+
default: never[];
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
show: import("vue").Ref<boolean>;
|
|
63
|
+
data: import("vue").Ref<any>;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
65
|
+
border: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
column: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
direction: {
|
|
74
|
+
type: PropType<"horizontal" | "vertical">;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
79
|
+
};
|
|
80
|
+
title: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
extra: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
columns: {
|
|
89
|
+
type: PropType<EpieColumn[]>;
|
|
90
|
+
default: never[];
|
|
91
|
+
};
|
|
92
|
+
}>>, {
|
|
93
|
+
border: boolean;
|
|
94
|
+
column: number;
|
|
95
|
+
direction: "horizontal" | "vertical";
|
|
96
|
+
title: string;
|
|
97
|
+
extra: string;
|
|
98
|
+
columns: EpieColumn[];
|
|
99
|
+
}>;
|
|
100
|
+
export default _default;
|
|
@@ -1,70 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
default: boolean;
|
|
7
|
-
};
|
|
8
|
-
column: {
|
|
9
|
-
type: NumberConstructor;
|
|
10
|
-
default: number;
|
|
11
|
-
};
|
|
12
|
-
direction: {
|
|
13
|
-
type: PropType<"horizontal" | "vertical">;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
size: {
|
|
17
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
18
|
-
};
|
|
19
|
-
title: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
extra: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
columns: {
|
|
28
|
-
type: PropType<EpieColumn[]>;
|
|
29
|
-
default: never[];
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
show: import("vue").Ref<boolean>;
|
|
33
|
-
data: import("vue").Ref<any>;
|
|
34
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
border: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
column: {
|
|
40
|
-
type: NumberConstructor;
|
|
41
|
-
default: number;
|
|
42
|
-
};
|
|
43
|
-
direction: {
|
|
44
|
-
type: PropType<"horizontal" | "vertical">;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
size: {
|
|
48
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
49
|
-
};
|
|
50
|
-
title: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
extra: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
columns: {
|
|
59
|
-
type: PropType<EpieColumn[]>;
|
|
60
|
-
default: never[];
|
|
61
|
-
};
|
|
62
|
-
}>>, {
|
|
63
|
-
border: boolean;
|
|
64
|
-
column: number;
|
|
65
|
-
direction: "horizontal" | "vertical";
|
|
66
|
-
title: string;
|
|
67
|
-
extra: string;
|
|
68
|
-
columns: EpieColumn[];
|
|
69
|
-
}>;
|
|
70
|
-
export default _default;
|
|
1
|
+
import { EpieSchema } from "../../types/base/base";
|
|
2
|
+
export declare type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
|
|
3
|
+
export * from "./descriptions";
|
|
4
|
+
import EpieDescriptions from "./descriptions";
|
|
5
|
+
export { EpieDescriptions };
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
close: () => void;
|
|
36
36
|
onOpen: () => void;
|
|
37
37
|
onClose: () => void;
|
|
38
|
-
changeFullscreen: (val?: boolean
|
|
38
|
+
changeFullscreen: (val?: boolean) => void;
|
|
39
39
|
dblClickFullscreen: () => void;
|
|
40
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "fullscreen-change")[], "update:modelValue" | "fullscreen-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
41
|
modelValue: {
|
|
@@ -5,7 +5,7 @@ export declare function useAction({ conf, form, Form }: any): {
|
|
|
5
5
|
setConfig: (path: string, value: any) => void;
|
|
6
6
|
setOptions: (prop: string, value: any[]) => void;
|
|
7
7
|
setProps: (prop: string, value: any) => void;
|
|
8
|
-
toggleItem: (prop: string, value?: boolean
|
|
8
|
+
toggleItem: (prop: string, value?: boolean) => void;
|
|
9
9
|
hideItem: (...props: string[]) => void;
|
|
10
10
|
showItem: (...props: string[]) => void;
|
|
11
11
|
setTitle: (value: string) => void;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
selectField: import("vue").Ref<string>;
|
|
17
17
|
search: () => void;
|
|
18
18
|
onKeydown: ({ keyCode }: any) => void;
|
|
19
|
-
onInput: (val?: string
|
|
19
|
+
onInput: (val?: string) => void;
|
|
20
20
|
onFieldChange: () => void;
|
|
21
21
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "field-change")[], "update:modelValue" | "change" | "field-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
modelValue: StringConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from "vue";
|
|
2
|
-
import { EpieForm } from "
|
|
2
|
+
import { EpieForm } from "../form/form";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
items: {
|
|
5
5
|
type: PropType<EpieForm.Item[]>;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
hidden?: boolean | undefined;
|
|
15
15
|
saveButtonText?: string | undefined;
|
|
16
16
|
closeButtonText?: string | undefined;
|
|
17
|
-
buttons?: ("close" | "save" | import("
|
|
17
|
+
buttons?: ("close" | "save" | import("src/types").Render.OpButton)[] | undefined;
|
|
18
18
|
} | undefined>;
|
|
19
19
|
dialog: PropType<{
|
|
20
20
|
[key: string]: any;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
hidden?: boolean | undefined;
|
|
42
42
|
saveButtonText?: string | undefined;
|
|
43
43
|
closeButtonText?: string | undefined;
|
|
44
|
-
buttons?: ("close" | "save" | import("
|
|
44
|
+
buttons?: ("close" | "save" | import("src/types").Render.OpButton)[] | undefined;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
dialog: PropType<{
|
|
47
47
|
[key: string]: any;
|
package/lib/hooks/crud.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EpieDescriptionsProps } from "../components/descriptions";
|
|
1
2
|
import { Ref } from "vue";
|
|
2
|
-
import { EpieAdvSearch, EpieCrud, EpieForm, EpieTable, EpieUpsert
|
|
3
|
+
import { EpieAdvSearch, EpieCrud, EpieForm, EpieTable, EpieUpsert } from "../types";
|
|
3
4
|
export declare function useCrud(options?: EpieCrud.Props, cb?: (app: EpieCrud.Ref) => void): Ref<EpieCrud.Ref | undefined>;
|
|
4
5
|
export declare function useUpsert(options?: EpieUpsert.Props): Ref<EpieUpsert.Ref | undefined>;
|
|
5
6
|
export declare function useTable(options?: EpieTable.Props): Ref<EpieTable.Ref | undefined>;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type fun = () => void;
|
|
2
|
-
export * from "
|
|
2
|
+
export * from "../../components/form/form";
|
|
3
3
|
export * from "./crud";
|
|
4
4
|
export * from "./adv-search";
|
|
5
5
|
export * from "./browser";
|
|
@@ -9,4 +9,3 @@ export * from "./hook";
|
|
|
9
9
|
export * from "./render";
|
|
10
10
|
export * from "./table";
|
|
11
11
|
export * from "./upsert";
|
|
12
|
-
export * from "./descriptions";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epie/bi-crud",
|
|
3
3
|
"simpleName": "bi-crud",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.14",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/bi-crud.umd.js",
|
|
7
7
|
"module": "lib/bi-crud.esm.js",
|
|
@@ -21,23 +21,10 @@
|
|
|
21
21
|
"require": "./lib/css/bi-crud.min.css"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"serve": "vue-cli-service serve",
|
|
26
|
-
"lint": "vue-cli-service lint",
|
|
27
|
-
"build:lib": "vue-cli-service build",
|
|
28
|
-
"crud": "tsc && yarn build:lib --target lib --name bi-crud ./src/index.ts",
|
|
29
|
-
"dev": "npm run clean && npm run lint && rollup -c config/rollup.config.js -w --environment NODE_ENV:development,IS_SERVE",
|
|
30
|
-
"build": "npm run clean && rollup -c config/rollup.config.js --environment NODE_ENV:production",
|
|
31
|
-
"build:components": "npm run clean:components && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:components",
|
|
32
|
-
"build:bundle": "npm run clean:bundle && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:bundle",
|
|
33
|
-
"clean": "rimraf ./lib ./dist ./coverage",
|
|
34
|
-
"clean:test": "rimraf ./coverage",
|
|
35
|
-
"clean:bundle": "rimraf ./lib/*.js ./lib/*.js.map",
|
|
36
|
-
"clean:components": "rimraf ./lib/components ",
|
|
37
|
-
"watch": "rollup -c config/rollup.config.js -w --environment NODE_ENV:production --watch.onEnd 'yalc push'"
|
|
38
|
-
},
|
|
39
24
|
"dependencies": {
|
|
25
|
+
"@element-plus/icons-vue": "^2.0.6",
|
|
40
26
|
"array.prototype.flat": "^1.2.4",
|
|
27
|
+
"clone-deep": "^4.0.1",
|
|
41
28
|
"core-js": "^3.21.1",
|
|
42
29
|
"element-plus": "^2.2.6",
|
|
43
30
|
"merge": "^2.1.1",
|
|
@@ -62,6 +49,7 @@
|
|
|
62
49
|
"@vue/cli-service": "^5.0.3",
|
|
63
50
|
"@vue/compiler-sfc": "^3.2.31",
|
|
64
51
|
"esbuild": "^0.14.48",
|
|
52
|
+
"lint": "^0.7.0",
|
|
65
53
|
"node-sass": "^7.0.1",
|
|
66
54
|
"nodemon": "^2.0.19",
|
|
67
55
|
"postcss": "^8.4.14",
|
|
@@ -85,5 +73,22 @@
|
|
|
85
73
|
"rollup-plugin-vue-jsx-compat": "^0.0.6",
|
|
86
74
|
"sass-loader": "^12.6.0",
|
|
87
75
|
"typescript": "^4.6.2"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"serve": "vue-cli-service serve",
|
|
79
|
+
"lint": "vue-cli-service lint",
|
|
80
|
+
"build:lib": "vue-cli-service build",
|
|
81
|
+
"crud": "tsc && yarn build:lib --target lib --name bi-crud ./src/index.ts",
|
|
82
|
+
"devs": "rollup -c config/rollup.config.js -w --environment NODE_ENV:production",
|
|
83
|
+
"dev": "npm run clean && npm run lint && rollup -c config/rollup.config.js -w --environment NODE_ENV:development,IS_SERVE",
|
|
84
|
+
"build:local": "npm run clean && rollup -c config/rollup.config.js --environment NODE_ENV:production && yalc push",
|
|
85
|
+
"build": "npm run clean && rollup -c config/rollup.config.js --environment NODE_ENV:production",
|
|
86
|
+
"build:components": "npm run clean:components && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:components",
|
|
87
|
+
"build:bundle": "npm run clean:bundle && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:bundle",
|
|
88
|
+
"clean": "rimraf ./lib ./dist ./coverage",
|
|
89
|
+
"clean:test": "rimraf ./coverage",
|
|
90
|
+
"clean:bundle": "rimraf ./lib/*.js ./lib/*.js.map",
|
|
91
|
+
"clean:components": "rimraf ./lib/components ",
|
|
92
|
+
"watch": "rollup -c config/rollup.config.js -w --environment NODE_ENV:production --watch.onEnd 'yalc push'"
|
|
88
93
|
}
|
|
89
|
-
}
|
|
94
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EpieSchema } from "./base";
|
|
2
|
-
export declare type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
|
|
3
|
-
export declare type EpieDescriptionsProps = {
|
|
4
|
-
border?: boolean;
|
|
5
|
-
column?: number;
|
|
6
|
-
direction?: "vertical" | "horizontal";
|
|
7
|
-
size?: "" | "default" | "small" | "large";
|
|
8
|
-
title?: string;
|
|
9
|
-
extra?: string;
|
|
10
|
-
columns?: EpieDescriptionsItemProps[];
|
|
11
|
-
};
|