morghulis 3.0.18 → 3.0.20
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/index.css +1 -1
- package/dist/morghulis.es.js +4364 -4074
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +22 -22
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/types/components/common/MCtrlBtn.vue.d.ts +23 -0
- package/dist/types/components/common/MOption.vue.d.ts +9 -0
- package/dist/types/components/table-data/DTable.vue.d.ts +11 -1
- package/dist/types/components/table-data/controller/DTableController.vue.d.ts +18 -0
- package/dist/types/components/table-data/types.d.ts +0 -2
- package/dist/types/components/table-simple/STable.vue.d.ts +12 -0
- package/dist/types/hooks/use-channel/types.d.ts +1 -0
- package/dist/types/hooks/use-dao/index.d.ts +1 -0
- package/dist/types/hooks/use-query/types.d.ts +2 -2
- package/dist/types/hooks/use-table-data/index.d.ts +34 -8
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
@@ -0,0 +1,23 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
disabled?: boolean;
|
3
|
+
type?: "success" | "info" | "warning" | "danger" | 'primary' | '';
|
4
|
+
size?: 'default' | 'small' | 'large' | "";
|
5
|
+
title?: string;
|
6
|
+
icon?: string;
|
7
|
+
};
|
8
|
+
declare var __VLS_14: {};
|
9
|
+
type __VLS_Slots = {} & {
|
10
|
+
default?: (props: typeof __VLS_14) => any;
|
11
|
+
};
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
13
|
+
click: (...args: any[]) => void;
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
15
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
18
|
+
export default _default;
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
20
|
+
new (): {
|
21
|
+
$slots: S;
|
22
|
+
};
|
23
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
option: {
|
3
|
+
label: any;
|
4
|
+
value: any;
|
5
|
+
display: any;
|
6
|
+
};
|
7
|
+
};
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
9
|
+
export default _default;
|
@@ -1,3 +1,13 @@
|
|
1
1
|
import { DTableProps } from "./types";
|
2
|
-
declare
|
2
|
+
declare var __VLS_7: {};
|
3
|
+
type __VLS_Slots = {} & {
|
4
|
+
header?: (props: typeof __VLS_7) => any;
|
5
|
+
};
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<DTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
3
8
|
export default _default;
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
10
|
+
new (): {
|
11
|
+
$slots: S;
|
12
|
+
};
|
13
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
selection?: any;
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
4
|
+
remove: (...args: any[]) => void;
|
5
|
+
open: (...args: any[]) => void;
|
6
|
+
copy: (...args: any[]) => void;
|
7
|
+
upload: (...args: any[]) => void;
|
8
|
+
download: (...args: any[]) => void;
|
9
|
+
}, string, import("vue").PublicProps, Readonly<{
|
10
|
+
selection?: any;
|
11
|
+
}> & Readonly<{
|
12
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
13
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
14
|
+
onCopy?: ((...args: any[]) => any) | undefined;
|
15
|
+
onUpload?: ((...args: any[]) => any) | undefined;
|
16
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DataItem } from "../../hooks/use-query/types";
|
2
|
+
import { MetaView } from "../../hooks/use-mata/types";
|
3
|
+
import { MTableButton, MTableColumn } from "../table-morghulis/types";
|
4
|
+
type __VLS_Props = {
|
5
|
+
title?: string;
|
6
|
+
data: DataItem[];
|
7
|
+
view: MetaView;
|
8
|
+
buttons?: MTableButton[];
|
9
|
+
columns?: MTableColumn[];
|
10
|
+
};
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
12
|
+
export default _default;
|
@@ -7,6 +7,7 @@ import { DataItem, Query } from "../use-query/types";
|
|
7
7
|
*/
|
8
8
|
export declare function useMDao(meta: Ref<Meta>, channelConfig?: MorghulisChannelConfig, auth?: boolean): {
|
9
9
|
loading: import("vue").ComputedRef<boolean>;
|
10
|
+
payload: Ref<any, any>;
|
10
11
|
find_many: (query: Query) => Promise<{
|
11
12
|
results: DataItem[];
|
12
13
|
total?: number;
|
@@ -1,10 +1,38 @@
|
|
1
1
|
import { ComputedRef, Ref } from "vue";
|
2
2
|
import { DTableInfo, DTableProps } from "../../components/table-data/types";
|
3
|
-
import {
|
4
|
-
import { DataItem,
|
3
|
+
import { MetaView } from "../use-mata/types";
|
4
|
+
import { DataItem, QueryConfig } from "../use-query/types";
|
5
5
|
export declare function useDTable(table: Ref, props: DTableProps): {
|
6
|
-
|
7
|
-
|
6
|
+
config: Ref<{
|
7
|
+
includes?: {
|
8
|
+
[x: string]: any;
|
9
|
+
id?: (string | number) | undefined;
|
10
|
+
} | undefined;
|
11
|
+
excludes?: {
|
12
|
+
[x: string]: any;
|
13
|
+
id?: (string | number) | undefined;
|
14
|
+
} | undefined;
|
15
|
+
orders?: {
|
16
|
+
[key: string]: 1 | -1;
|
17
|
+
} | undefined;
|
18
|
+
page?: number | undefined;
|
19
|
+
size?: number | undefined;
|
20
|
+
}, QueryConfig | {
|
21
|
+
includes?: {
|
22
|
+
[x: string]: any;
|
23
|
+
id?: (string | number) | undefined;
|
24
|
+
} | undefined;
|
25
|
+
excludes?: {
|
26
|
+
[x: string]: any;
|
27
|
+
id?: (string | number) | undefined;
|
28
|
+
} | undefined;
|
29
|
+
orders?: {
|
30
|
+
[key: string]: 1 | -1;
|
31
|
+
} | undefined;
|
32
|
+
page?: number | undefined;
|
33
|
+
size?: number | undefined;
|
34
|
+
}>;
|
35
|
+
payload: Ref<any, any>;
|
8
36
|
view: Ref<{
|
9
37
|
fields?: {
|
10
38
|
[key: string]: import("../use-mata/types").MetaField;
|
@@ -55,13 +83,9 @@ export declare function useDTable(table: Ref, props: DTableProps): {
|
|
55
83
|
info: Ref<{
|
56
84
|
current: number;
|
57
85
|
total: number;
|
58
|
-
page: number;
|
59
|
-
size: number;
|
60
86
|
}, DTableInfo | {
|
61
87
|
current: number;
|
62
88
|
total: number;
|
63
|
-
page: number;
|
64
|
-
size: number;
|
65
89
|
}>;
|
66
90
|
results: Ref<{
|
67
91
|
[x: string]: any;
|
@@ -73,4 +97,6 @@ export declare function useDTable(table: Ref, props: DTableProps): {
|
|
73
97
|
selection: ComputedRef<any[]>;
|
74
98
|
loading: ComputedRef<boolean>;
|
75
99
|
load: () => void;
|
100
|
+
upload: (array: any[]) => void;
|
101
|
+
remove: (id?: number | string) => void;
|
76
102
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -10,15 +10,17 @@ import MApp from "./MApp.vue";
|
|
10
10
|
import MTable from "./components/table-morghulis/MTable.vue";
|
11
11
|
import DTable from "./components/table-data/DTable.vue";
|
12
12
|
import type { MTableButton, MTableColumn } from "./components/table-morghulis/types";
|
13
|
+
import STable from "./components/table-simple/STable.vue";
|
13
14
|
declare module "vue" {
|
14
15
|
interface GlobalComponents {
|
15
16
|
MApp: typeof MApp;
|
16
17
|
MDialog: typeof MDialog;
|
17
18
|
MTable: typeof MTable;
|
18
19
|
DTable: typeof DTable;
|
20
|
+
STable: typeof STable;
|
19
21
|
}
|
20
22
|
}
|
21
23
|
declare const createMorghulis: (options?: MorghulisOptions) => {
|
22
24
|
install(Vue: App): void;
|
23
25
|
};
|
24
|
-
export { MApp, MDialog, MTable, DTable, createMorghulis, useMRequest, useMChannel, useMSockets, MorghulisChannelConfig, MTableButton, MTableColumn };
|
26
|
+
export { MApp, MDialog, MTable, DTable, STable, createMorghulis, useMRequest, useMChannel, useMSockets, MorghulisChannelConfig, MTableButton, MTableColumn };
|